blob: e8c48e92607aa1229dd92528b4baaeeb631b033b [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
Haibo Huang65021c72019-03-27 15:37:23 -0700906FISH_FUNCTIONS_DIR
Elliott Hughes82be86d2017-09-20 17:00:17 -0700907ZSH_FUNCTIONS_DIR
908USE_NGHTTP2
909IDN_ENABLED
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
911CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
912CURL_LT_SHLIB_VERSIONED_FLAVOUR
913USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800914USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700915USE_LIBSSH2
916LIBMETALINK_CPPFLAGS
917LIBMETALINK_LDFLAGS
918LIBMETALINK_LIBS
919USE_LIBPSL_FALSE
920USE_LIBPSL_TRUE
921CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100922CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700923SSL_ENABLED
Elliott Hughes82be86d2017-09-20 17:00:17 -0700924NSS_LIBS
925USE_NSS
Elliott Hughesa93fb052018-12-12 14:22:48 -0800926USE_MESALINK
Elliott Hughes82be86d2017-09-20 17:00:17 -0700927USE_CYASSL
928USE_MBEDTLS
929USE_POLARSSL
930HAVE_GNUTLS_SRP
931USE_GNUTLS_NETTLE
932USE_GNUTLS
933HAVE_OPENSSL_SRP
934RANDOM_FILE
935SSL_LIBS
Haibo Huang65021c72019-03-27 15:37:23 -0700936USE_SECTRANSP
Elliott Hughes82be86d2017-09-20 17:00:17 -0700937USE_WINDOWS_SSPI
938USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100939DEFAULT_SSL_BACKEND
940BUILD_STUB_GSS_FALSE
941BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700942USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100943HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700944ZLIB_LIBS
945HAVE_LIBZ_FALSE
946HAVE_LIBZ_TRUE
947HAVE_LIBZ
948PKGCONFIG
Haibo Huang65021c72019-03-27 15:37:23 -0700949HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -0700950CURL_DISABLE_GOPHER
951CURL_DISABLE_SMTP
952CURL_DISABLE_SMB
953CURL_DISABLE_IMAP
954CURL_DISABLE_POP3
955CURL_DISABLE_TFTP
956CURL_DISABLE_TELNET
957CURL_DISABLE_DICT
958CURL_DISABLE_PROXY
959HAVE_LDAP_SSL
960CURL_DISABLE_LDAPS
961CURL_DISABLE_LDAP
962CURL_DISABLE_FILE
963CURL_DISABLE_FTP
964CURL_DISABLE_RTSP
965CURL_DISABLE_HTTP
966DOING_NATIVE_WINDOWS_FALSE
967DOING_NATIVE_WINDOWS_TRUE
968BUILD_UNITTESTS_FALSE
969BUILD_UNITTESTS_TRUE
970CURLDEBUG_FALSE
971CURLDEBUG_TRUE
972USE_EXPLICIT_LIB_DEPS_FALSE
973USE_EXPLICIT_LIB_DEPS_TRUE
974REQUIRE_LIB_DEPS
975CPPFLAG_CURL_STATICLIB
976USE_CPPFLAG_CURL_STATICLIB_FALSE
977USE_CPPFLAG_CURL_STATICLIB_TRUE
978CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
979CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
980CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
981CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
982CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
983CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
984LT_SYS_LIBRARY_PATH
985OTOOL64
986OTOOL
987LIPO
988NMEDIT
989DSYMUTIL
990MANIFEST_TOOL
991RANLIB
992ac_ct_AR
993LN_S
994NM
995ac_ct_DUMPBIN
996DUMPBIN
997LD
998FGREP
999LIBTOOL
1000OBJDUMP
1001DLLTOOL
1002AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001003AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001004host_os
1005host_vendor
1006host_cpu
1007host
1008build_os
1009build_vendor
1010build_cpu
1011build
1012PKGADD_VENDOR
1013PKGADD_NAME
1014PKGADD_PKG
1015VERSIONNUM
1016CURLVERSION
1017am__fastdepCC_FALSE
1018am__fastdepCC_TRUE
1019CCDEPMODE
1020am__nodep
1021AMDEPBACKSLASH
1022AMDEP_FALSE
1023AMDEP_TRUE
1024am__quote
1025am__include
1026DEPDIR
1027am__untar
1028am__tar
1029AMTAR
1030am__leading_dot
1031SET_MAKE
1032AWK
1033mkdir_p
1034MKDIR_P
1035INSTALL_STRIP_PROGRAM
1036STRIP
1037install_sh
1038MAKEINFO
1039AUTOHEADER
1040AUTOMAKE
1041AUTOCONF
1042ACLOCAL
1043VERSION
1044PACKAGE
1045CYGPATH_W
1046am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001047LCOV
1048GCOV
Elliott Hughes82be86d2017-09-20 17:00:17 -07001049CPP
1050OBJEXT
1051EXEEXT
1052ac_ct_CC
1053CPPFLAGS
1054LDFLAGS
1055CFLAGS
1056CC
1057INSTALL_DATA
1058INSTALL_SCRIPT
1059INSTALL_PROGRAM
1060libext
1061AR
1062EGREP
1063GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001064SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001065CURL_CFLAG_EXTRAS
1066CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001067AM_BACKSLASH
1068AM_DEFAULT_VERBOSITY
1069AM_DEFAULT_V
1070AM_V
1071MAINT
1072MAINTAINER_MODE_FALSE
1073MAINTAINER_MODE_TRUE
1074target_alias
1075host_alias
1076build_alias
1077LIBS
1078ECHO_T
1079ECHO_N
1080ECHO_C
1081DEFS
1082mandir
1083localedir
1084libdir
1085psdir
1086pdfdir
1087dvidir
1088htmldir
1089infodir
1090docdir
1091oldincludedir
1092includedir
1093runstatedir
1094localstatedir
1095sharedstatedir
1096sysconfdir
1097datadir
1098datarootdir
1099libexecdir
1100sbindir
1101bindir
1102program_transform_name
1103prefix
1104exec_prefix
1105PACKAGE_URL
1106PACKAGE_BUGREPORT
1107PACKAGE_STRING
1108PACKAGE_VERSION
1109PACKAGE_TARNAME
1110PACKAGE_NAME
1111SHELL
1112PATH_SEPARATOR'
1113ac_subst_files=''
1114ac_user_opts='
1115enable_option_checking
1116enable_maintainer_mode
1117enable_silent_rules
1118enable_debug
1119enable_optimize
1120enable_warnings
1121enable_werror
1122enable_curldebug
1123enable_symbol_hiding
1124enable_hidden_symbols
1125enable_ares
1126enable_rt
Elliott Hughes82be86d2017-09-20 17:00:17 -07001127enable_code_coverage
1128enable_dependency_tracking
1129enable_largefile
1130enable_shared
1131enable_static
1132with_pic
1133enable_fast_install
1134with_aix_soname
1135with_gnu_ld
1136with_sysroot
1137enable_libtool_lock
1138enable_http
1139enable_ftp
1140enable_file
1141enable_ldap
1142enable_ldaps
1143enable_rtsp
1144enable_proxy
1145enable_dict
1146enable_telnet
1147enable_tftp
1148enable_pop3
1149enable_imap
1150enable_smb
1151enable_smtp
1152enable_gopher
1153enable_manual
1154enable_libcurl_option
1155enable_libgcc
1156with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001157with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001158with_ldap_lib
1159with_lber_lib
1160enable_ipv6
1161with_gssapi_includes
1162with_gssapi_libs
1163with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001164with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001165with_winssl
Haibo Huang51d9d882019-02-06 01:36:06 -08001166with_schannel
Elliott Hughes82be86d2017-09-20 17:00:17 -07001167with_darwinssl
Haibo Huang65021c72019-03-27 15:37:23 -07001168with_secure_transport
1169with_amissl
Elliott Hughes82be86d2017-09-20 17:00:17 -07001170with_ssl
1171with_egd_socket
1172with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001173enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001174with_gnutls
1175with_polarssl
1176with_mbedtls
1177with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001178with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001179with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001180with_nss
Elliott Hughes82be86d2017-09-20 17:00:17 -07001181with_ca_bundle
1182with_ca_path
1183with_ca_fallback
1184with_libpsl
1185with_libmetalink
1186with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001187with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001188with_librtmp
1189enable_versioned_symbols
1190with_winidn
1191with_libidn2
1192with_nghttp2
1193with_zsh_functions_dir
Haibo Huang65021c72019-03-27 15:37:23 -07001194with_fish_functions_dir
Elliott Hughes82be86d2017-09-20 17:00:17 -07001195enable_threaded_resolver
1196enable_pthreads
1197enable_verbose
1198enable_sspi
1199enable_crypto_auth
1200enable_ntlm_wb
1201enable_tls_srp
1202enable_unix_sockets
1203enable_cookies
Haibo Huang65021c72019-03-27 15:37:23 -07001204enable_alt_svc
Elliott Hughes82be86d2017-09-20 17:00:17 -07001205'
1206 ac_precious_vars='build_alias
1207host_alias
1208target_alias
1209CC
1210CFLAGS
1211LDFLAGS
1212LIBS
1213CPPFLAGS
1214CPP
1215LT_SYS_LIBRARY_PATH'
1216ac_subdirs_all='ares'
1217
1218# Initialize some variables set by options.
1219ac_init_help=
1220ac_init_version=false
1221ac_unrecognized_opts=
1222ac_unrecognized_sep=
1223# The variables have the same names as the options, with
1224# dashes changed to underlines.
1225cache_file=/dev/null
1226exec_prefix=NONE
1227no_create=
1228no_recursion=
1229prefix=NONE
1230program_prefix=NONE
1231program_suffix=NONE
1232program_transform_name=s,x,x,
1233silent=
1234site=
1235srcdir=
1236verbose=
1237x_includes=NONE
1238x_libraries=NONE
1239
1240# Installation directory options.
1241# These are left unexpanded so users can "make install exec_prefix=/foo"
1242# and all the variables that are supposed to be based on exec_prefix
1243# by default will actually change.
1244# Use braces instead of parens because sh, perl, etc. also accept them.
1245# (The list follows the same order as the GNU Coding Standards.)
1246bindir='${exec_prefix}/bin'
1247sbindir='${exec_prefix}/sbin'
1248libexecdir='${exec_prefix}/libexec'
1249datarootdir='${prefix}/share'
1250datadir='${datarootdir}'
1251sysconfdir='${prefix}/etc'
1252sharedstatedir='${prefix}/com'
1253localstatedir='${prefix}/var'
1254runstatedir='${localstatedir}/run'
1255includedir='${prefix}/include'
1256oldincludedir='/usr/include'
1257docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1258infodir='${datarootdir}/info'
1259htmldir='${docdir}'
1260dvidir='${docdir}'
1261pdfdir='${docdir}'
1262psdir='${docdir}'
1263libdir='${exec_prefix}/lib'
1264localedir='${datarootdir}/locale'
1265mandir='${datarootdir}/man'
1266
1267ac_prev=
1268ac_dashdash=
1269for ac_option
1270do
1271 # If the previous option needs an argument, assign it.
1272 if test -n "$ac_prev"; then
1273 eval $ac_prev=\$ac_option
1274 ac_prev=
1275 continue
1276 fi
1277
1278 case $ac_option in
1279 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1280 *=) ac_optarg= ;;
1281 *) ac_optarg=yes ;;
1282 esac
1283
1284 # Accept the important Cygnus configure options, so we can diagnose typos.
1285
1286 case $ac_dashdash$ac_option in
1287 --)
1288 ac_dashdash=yes ;;
1289
1290 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1291 ac_prev=bindir ;;
1292 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1293 bindir=$ac_optarg ;;
1294
1295 -build | --build | --buil | --bui | --bu)
1296 ac_prev=build_alias ;;
1297 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1298 build_alias=$ac_optarg ;;
1299
1300 -cache-file | --cache-file | --cache-fil | --cache-fi \
1301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1302 ac_prev=cache_file ;;
1303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1305 cache_file=$ac_optarg ;;
1306
1307 --config-cache | -C)
1308 cache_file=config.cache ;;
1309
1310 -datadir | --datadir | --datadi | --datad)
1311 ac_prev=datadir ;;
1312 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1313 datadir=$ac_optarg ;;
1314
1315 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1316 | --dataroo | --dataro | --datar)
1317 ac_prev=datarootdir ;;
1318 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1319 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1320 datarootdir=$ac_optarg ;;
1321
1322 -disable-* | --disable-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid feature name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"enable_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval enable_$ac_useropt=no ;;
1337
1338 -docdir | --docdir | --docdi | --doc | --do)
1339 ac_prev=docdir ;;
1340 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1341 docdir=$ac_optarg ;;
1342
1343 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1344 ac_prev=dvidir ;;
1345 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1346 dvidir=$ac_optarg ;;
1347
1348 -enable-* | --enable-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error $? "invalid feature name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1356 *"
1357"enable_$ac_useropt"
1358"*) ;;
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1361 esac
1362 eval enable_$ac_useropt=\$ac_optarg ;;
1363
1364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1366 | --exec | --exe | --ex)
1367 ac_prev=exec_prefix ;;
1368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1370 | --exec=* | --exe=* | --ex=*)
1371 exec_prefix=$ac_optarg ;;
1372
1373 -gas | --gas | --ga | --g)
1374 # Obsolete; use --with-gas.
1375 with_gas=yes ;;
1376
1377 -help | --help | --hel | --he | -h)
1378 ac_init_help=long ;;
1379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1380 ac_init_help=recursive ;;
1381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1382 ac_init_help=short ;;
1383
1384 -host | --host | --hos | --ho)
1385 ac_prev=host_alias ;;
1386 -host=* | --host=* | --hos=* | --ho=*)
1387 host_alias=$ac_optarg ;;
1388
1389 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1390 ac_prev=htmldir ;;
1391 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1392 | --ht=*)
1393 htmldir=$ac_optarg ;;
1394
1395 -includedir | --includedir | --includedi | --included | --include \
1396 | --includ | --inclu | --incl | --inc)
1397 ac_prev=includedir ;;
1398 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1399 | --includ=* | --inclu=* | --incl=* | --inc=*)
1400 includedir=$ac_optarg ;;
1401
1402 -infodir | --infodir | --infodi | --infod | --info | --inf)
1403 ac_prev=infodir ;;
1404 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1405 infodir=$ac_optarg ;;
1406
1407 -libdir | --libdir | --libdi | --libd)
1408 ac_prev=libdir ;;
1409 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1410 libdir=$ac_optarg ;;
1411
1412 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1413 | --libexe | --libex | --libe)
1414 ac_prev=libexecdir ;;
1415 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1416 | --libexe=* | --libex=* | --libe=*)
1417 libexecdir=$ac_optarg ;;
1418
1419 -localedir | --localedir | --localedi | --localed | --locale)
1420 ac_prev=localedir ;;
1421 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1422 localedir=$ac_optarg ;;
1423
1424 -localstatedir | --localstatedir | --localstatedi | --localstated \
1425 | --localstate | --localstat | --localsta | --localst | --locals)
1426 ac_prev=localstatedir ;;
1427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1428 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1429 localstatedir=$ac_optarg ;;
1430
1431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1432 ac_prev=mandir ;;
1433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1434 mandir=$ac_optarg ;;
1435
1436 -nfp | --nfp | --nf)
1437 # Obsolete; use --without-fp.
1438 with_fp=no ;;
1439
1440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1441 | --no-cr | --no-c | -n)
1442 no_create=yes ;;
1443
1444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1446 no_recursion=yes ;;
1447
1448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1450 | --oldin | --oldi | --old | --ol | --o)
1451 ac_prev=oldincludedir ;;
1452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1455 oldincludedir=$ac_optarg ;;
1456
1457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1458 ac_prev=prefix ;;
1459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1460 prefix=$ac_optarg ;;
1461
1462 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1463 | --program-pre | --program-pr | --program-p)
1464 ac_prev=program_prefix ;;
1465 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1467 program_prefix=$ac_optarg ;;
1468
1469 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1470 | --program-suf | --program-su | --program-s)
1471 ac_prev=program_suffix ;;
1472 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1474 program_suffix=$ac_optarg ;;
1475
1476 -program-transform-name | --program-transform-name \
1477 | --program-transform-nam | --program-transform-na \
1478 | --program-transform-n | --program-transform- \
1479 | --program-transform | --program-transfor \
1480 | --program-transfo | --program-transf \
1481 | --program-trans | --program-tran \
1482 | --progr-tra | --program-tr | --program-t)
1483 ac_prev=program_transform_name ;;
1484 -program-transform-name=* | --program-transform-name=* \
1485 | --program-transform-nam=* | --program-transform-na=* \
1486 | --program-transform-n=* | --program-transform-=* \
1487 | --program-transform=* | --program-transfor=* \
1488 | --program-transfo=* | --program-transf=* \
1489 | --program-trans=* | --program-tran=* \
1490 | --progr-tra=* | --program-tr=* | --program-t=*)
1491 program_transform_name=$ac_optarg ;;
1492
1493 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1494 ac_prev=pdfdir ;;
1495 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1496 pdfdir=$ac_optarg ;;
1497
1498 -psdir | --psdir | --psdi | --psd | --ps)
1499 ac_prev=psdir ;;
1500 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1501 psdir=$ac_optarg ;;
1502
1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504 | -silent | --silent | --silen | --sile | --sil)
1505 silent=yes ;;
1506
1507 -runstatedir | --runstatedir | --runstatedi | --runstated \
1508 | --runstate | --runstat | --runsta | --runst | --runs \
1509 | --run | --ru | --r)
1510 ac_prev=runstatedir ;;
1511 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1512 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1513 | --run=* | --ru=* | --r=*)
1514 runstatedir=$ac_optarg ;;
1515
1516 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1517 ac_prev=sbindir ;;
1518 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1519 | --sbi=* | --sb=*)
1520 sbindir=$ac_optarg ;;
1521
1522 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1523 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1524 | --sharedst | --shareds | --shared | --share | --shar \
1525 | --sha | --sh)
1526 ac_prev=sharedstatedir ;;
1527 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1528 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1529 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1530 | --sha=* | --sh=*)
1531 sharedstatedir=$ac_optarg ;;
1532
1533 -site | --site | --sit)
1534 ac_prev=site ;;
1535 -site=* | --site=* | --sit=*)
1536 site=$ac_optarg ;;
1537
1538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1539 ac_prev=srcdir ;;
1540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1541 srcdir=$ac_optarg ;;
1542
1543 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1544 | --syscon | --sysco | --sysc | --sys | --sy)
1545 ac_prev=sysconfdir ;;
1546 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1547 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1548 sysconfdir=$ac_optarg ;;
1549
1550 -target | --target | --targe | --targ | --tar | --ta | --t)
1551 ac_prev=target_alias ;;
1552 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1553 target_alias=$ac_optarg ;;
1554
1555 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1556 verbose=yes ;;
1557
1558 -version | --version | --versio | --versi | --vers | -V)
1559 ac_init_version=: ;;
1560
1561 -with-* | --with-*)
1562 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1563 # Reject names that are not valid shell variable names.
1564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1565 as_fn_error $? "invalid package name: $ac_useropt"
1566 ac_useropt_orig=$ac_useropt
1567 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1568 case $ac_user_opts in
1569 *"
1570"with_$ac_useropt"
1571"*) ;;
1572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1573 ac_unrecognized_sep=', ';;
1574 esac
1575 eval with_$ac_useropt=\$ac_optarg ;;
1576
1577 -without-* | --without-*)
1578 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1579 # Reject names that are not valid shell variable names.
1580 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1581 as_fn_error $? "invalid package name: $ac_useropt"
1582 ac_useropt_orig=$ac_useropt
1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1584 case $ac_user_opts in
1585 *"
1586"with_$ac_useropt"
1587"*) ;;
1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1589 ac_unrecognized_sep=', ';;
1590 esac
1591 eval with_$ac_useropt=no ;;
1592
1593 --x)
1594 # Obsolete; use --with-x.
1595 with_x=yes ;;
1596
1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1598 | --x-incl | --x-inc | --x-in | --x-i)
1599 ac_prev=x_includes ;;
1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1602 x_includes=$ac_optarg ;;
1603
1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1606 ac_prev=x_libraries ;;
1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1609 x_libraries=$ac_optarg ;;
1610
1611 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1612Try \`$0 --help' for more information"
1613 ;;
1614
1615 *=*)
1616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1617 # Reject names that are not valid shell variable names.
1618 case $ac_envvar in #(
1619 '' | [0-9]* | *[!_$as_cr_alnum]* )
1620 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1621 esac
1622 eval $ac_envvar=\$ac_optarg
1623 export $ac_envvar ;;
1624
1625 *)
1626 # FIXME: should be removed in autoconf 3.0.
1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1630 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1631 ;;
1632
1633 esac
1634done
1635
1636if test -n "$ac_prev"; then
1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1638 as_fn_error $? "missing argument to $ac_option"
1639fi
1640
1641if test -n "$ac_unrecognized_opts"; then
1642 case $enable_option_checking in
1643 no) ;;
1644 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1645 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1646 esac
1647fi
1648
1649# Check all directory arguments for consistency.
1650for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1651 datadir sysconfdir sharedstatedir localstatedir includedir \
1652 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1653 libdir localedir mandir runstatedir
1654do
1655 eval ac_val=\$$ac_var
1656 # Remove trailing slashes.
1657 case $ac_val in
1658 */ )
1659 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1660 eval $ac_var=\$ac_val;;
1661 esac
1662 # Be sure to have absolute directory names.
1663 case $ac_val in
1664 [\\/$]* | ?:[\\/]* ) continue;;
1665 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1666 esac
1667 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1668done
1669
1670# There might be people who depend on the old broken behavior: `$host'
1671# used to hold the argument of --host etc.
1672# FIXME: To remove some day.
1673build=$build_alias
1674host=$host_alias
1675target=$target_alias
1676
1677# FIXME: To remove some day.
1678if test "x$host_alias" != x; then
1679 if test "x$build_alias" = x; then
1680 cross_compiling=maybe
1681 elif test "x$build_alias" != "x$host_alias"; then
1682 cross_compiling=yes
1683 fi
1684fi
1685
1686ac_tool_prefix=
1687test -n "$host_alias" && ac_tool_prefix=$host_alias-
1688
1689test "$silent" = yes && exec 6>/dev/null
1690
1691
1692ac_pwd=`pwd` && test -n "$ac_pwd" &&
1693ac_ls_di=`ls -di .` &&
1694ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1695 as_fn_error $? "working directory cannot be determined"
1696test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1697 as_fn_error $? "pwd does not report name of working directory"
1698
1699
1700# Find the source files, if location was not specified.
1701if test -z "$srcdir"; then
1702 ac_srcdir_defaulted=yes
1703 # Try the directory containing this script, then the parent directory.
1704 ac_confdir=`$as_dirname -- "$as_myself" ||
1705$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1706 X"$as_myself" : 'X\(//\)[^/]' \| \
1707 X"$as_myself" : 'X\(//\)$' \| \
1708 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1709$as_echo X"$as_myself" |
1710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1711 s//\1/
1712 q
1713 }
1714 /^X\(\/\/\)[^/].*/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)$/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\).*/{
1723 s//\1/
1724 q
1725 }
1726 s/.*/./; q'`
1727 srcdir=$ac_confdir
1728 if test ! -r "$srcdir/$ac_unique_file"; then
1729 srcdir=..
1730 fi
1731else
1732 ac_srcdir_defaulted=no
1733fi
1734if test ! -r "$srcdir/$ac_unique_file"; then
1735 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1736 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1737fi
1738ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1739ac_abs_confdir=`(
1740 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1741 pwd)`
1742# When building in place, set srcdir=.
1743if test "$ac_abs_confdir" = "$ac_pwd"; then
1744 srcdir=.
1745fi
1746# Remove unnecessary trailing slashes from srcdir.
1747# Double slashes in file names in object file debugging info
1748# mess up M-x gdb in Emacs.
1749case $srcdir in
1750*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1751esac
1752for ac_var in $ac_precious_vars; do
1753 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_env_${ac_var}_value=\$${ac_var}
1755 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1756 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1757done
1758
1759#
1760# Report the --help message.
1761#
1762if test "$ac_init_help" = "long"; then
1763 # Omit some internal or obsolete options to make the list less imposing.
1764 # This message is too long to be a string in the A/UX 3.1 sh.
1765 cat <<_ACEOF
1766\`configure' configures curl - to adapt to many kinds of systems.
1767
1768Usage: $0 [OPTION]... [VAR=VALUE]...
1769
1770To assign environment variables (e.g., CC, CFLAGS...), specify them as
1771VAR=VALUE. See below for descriptions of some of the useful variables.
1772
1773Defaults for the options are specified in brackets.
1774
1775Configuration:
1776 -h, --help display this help and exit
1777 --help=short display options specific to this package
1778 --help=recursive display the short help of all the included packages
1779 -V, --version display version information and exit
1780 -q, --quiet, --silent do not print \`checking ...' messages
1781 --cache-file=FILE cache test results in FILE [disabled]
1782 -C, --config-cache alias for \`--cache-file=config.cache'
1783 -n, --no-create do not create output files
1784 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1785
1786Installation directories:
1787 --prefix=PREFIX install architecture-independent files in PREFIX
1788 [$ac_default_prefix]
1789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1790 [PREFIX]
1791
1792By default, \`make install' will install all the files in
1793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1795for instance \`--prefix=\$HOME'.
1796
1797For better control, use the options below.
1798
1799Fine tuning of the installation directories:
1800 --bindir=DIR user executables [EPREFIX/bin]
1801 --sbindir=DIR system admin executables [EPREFIX/sbin]
1802 --libexecdir=DIR program executables [EPREFIX/libexec]
1803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1805 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1806 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1807 --libdir=DIR object code libraries [EPREFIX/lib]
1808 --includedir=DIR C header files [PREFIX/include]
1809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1812 --infodir=DIR info documentation [DATAROOTDIR/info]
1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1814 --mandir=DIR man documentation [DATAROOTDIR/man]
1815 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1816 --htmldir=DIR html documentation [DOCDIR]
1817 --dvidir=DIR dvi documentation [DOCDIR]
1818 --pdfdir=DIR pdf documentation [DOCDIR]
1819 --psdir=DIR ps documentation [DOCDIR]
1820_ACEOF
1821
1822 cat <<\_ACEOF
1823
1824Program names:
1825 --program-prefix=PREFIX prepend PREFIX to installed program names
1826 --program-suffix=SUFFIX append SUFFIX to installed program names
1827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832_ACEOF
1833fi
1834
1835if test -n "$ac_init_help"; then
1836 case $ac_init_help in
1837 short | recursive ) echo "Configuration of curl -:";;
1838 esac
1839 cat <<\_ACEOF
1840
1841Optional Features:
1842 --disable-option-checking ignore unrecognized --enable/--with options
1843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1845 --enable-maintainer-mode
1846 enable make rules and dependencies not useful (and
1847 sometimes confusing) to the casual installer
1848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-debug Enable debug build options
1851 --disable-debug Disable debug build options
1852 --enable-optimize Enable compiler optimizations
1853 --disable-optimize Disable compiler optimizations
1854 --enable-warnings Enable strict compiler warnings
1855 --disable-warnings Disable strict compiler warnings
1856 --enable-werror Enable compiler warnings as errors
1857 --disable-werror Disable compiler warnings as errors
1858 --enable-curldebug Enable curl debug memory tracking
1859 --disable-curldebug Disable curl debug memory tracking
1860 --enable-symbol-hiding Enable hiding of library internal symbols
1861 --disable-symbol-hiding Disable hiding of library internal symbols
1862 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1863 --disable-hidden-symbols
1864 To be deprecated, use --disable-symbol-hiding
1865 --enable-ares[=PATH] Enable c-ares for DNS lookups
1866 --disable-ares Disable c-ares for DNS lookups
1867 --disable-rt disable dependency on -lrt
Haibo Huang51d9d882019-02-06 01:36:06 -08001868 --enable-code-coverage Provide code coverage
Elliott Hughes82be86d2017-09-20 17:00:17 -07001869 --enable-dependency-tracking
1870 do not reject slow dependency extractors
1871 --disable-dependency-tracking
1872 speeds up one-time build
1873 --disable-largefile omit support for large files
1874 --enable-shared[=PKGS] build shared libraries [default=yes]
1875 --enable-static[=PKGS] build static libraries [default=yes]
1876 --enable-fast-install[=PKGS]
1877 optimize for fast installation [default=yes]
1878 --disable-libtool-lock avoid locking (might break parallel builds)
1879 --enable-http Enable HTTP support
1880 --disable-http Disable HTTP support
1881 --enable-ftp Enable FTP support
1882 --disable-ftp Disable FTP support
1883 --enable-file Enable FILE support
1884 --disable-file Disable FILE support
1885 --enable-ldap Enable LDAP support
1886 --disable-ldap Disable LDAP support
1887 --enable-ldaps Enable LDAPS support
1888 --disable-ldaps Disable LDAPS support
1889 --enable-rtsp Enable RTSP support
1890 --disable-rtsp Disable RTSP support
1891 --enable-proxy Enable proxy support
1892 --disable-proxy Disable proxy support
1893 --enable-dict Enable DICT support
1894 --disable-dict Disable DICT support
1895 --enable-telnet Enable TELNET support
1896 --disable-telnet Disable TELNET support
1897 --enable-tftp Enable TFTP support
1898 --disable-tftp Disable TFTP support
1899 --enable-pop3 Enable POP3 support
1900 --disable-pop3 Disable POP3 support
1901 --enable-imap Enable IMAP support
1902 --disable-imap Disable IMAP support
1903 --enable-smb Enable SMB/CIFS support
1904 --disable-smb Disable SMB/CIFS support
1905 --enable-smtp Enable SMTP support
1906 --disable-smtp Disable SMTP support
1907 --enable-gopher Enable Gopher support
1908 --disable-gopher Disable Gopher support
1909 --enable-manual Enable built-in manual
1910 --disable-manual Disable built-in manual
1911 --enable-libcurl-option Enable --libcurl C code generation support
1912 --disable-libcurl-option
1913 Disable --libcurl C code generation support
1914 --enable-libgcc use libgcc when linking
1915 --enable-ipv6 Enable IPv6 (with IPv4) support
1916 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001917 --enable-openssl-auto-load-config
1918 Enable automatic loading of OpenSSL configuration
1919 --disable-openssl-auto-load-config
1920 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001921 --enable-versioned-symbols
1922 Enable versioned symbols in shared library
1923 --disable-versioned-symbols
1924 Disable versioned symbols in shared library
1925 --enable-threaded-resolver
1926 Enable threaded resolver
1927 --disable-threaded-resolver
1928 Disable threaded resolver
1929 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1930 --disable-pthreads Disable POSIX threads
1931 --enable-verbose Enable verbose strings
1932 --disable-verbose Disable verbose strings
1933 --enable-sspi Enable SSPI
1934 --disable-sspi Disable SSPI
1935 --enable-crypto-auth Enable cryptographic authentication
1936 --disable-crypto-auth Disable cryptographic authentication
1937 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1938 helper, where FILE is ntlm_auth's absolute filename
1939 (default: /usr/bin/ntlm_auth)
1940 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1941 helper
1942 --enable-tls-srp Enable TLS-SRP authentication
1943 --disable-tls-srp Disable TLS-SRP authentication
1944 --enable-unix-sockets Enable Unix domain sockets
1945 --disable-unix-sockets Disable Unix domain sockets
1946 --enable-cookies Enable cookies support
1947 --disable-cookies Disable cookies support
Haibo Huang65021c72019-03-27 15:37:23 -07001948 --enable-alt-svc Enable alt-svc support
1949 --disable-alt-svc Disable alt-svc support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001950
1951Optional Packages:
1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001954 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-aix-soname=aix|svr4|both
1957 shared library versioning (aka "SONAME") variant to
1958 provide on AIX, [default=aix].
1959 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1960 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1961 compiler's sysroot if not specified).
1962 --with-zlib=PATH search for zlib in PATH
1963 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001964 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1965 installation; when possible, set the PKG_CONFIG_PATH
1966 environment variable instead of using this option
1967 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001968 --with-ldap-lib=libname Specify name of ldap lib file
1969 --with-lber-lib=libname Specify name of lber lib file
1970 --with-gssapi-includes=DIR
1971 Specify location of GSS-API headers
1972 --with-gssapi-libs=DIR Specify location of GSS-API libs
1973 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001974 --with-default-ssl-backend=NAME
1975 Use NAME as default SSL backend
1976 --without-default-ssl-backend
1977 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001978 --with-winssl enable Windows native SSL/TLS
1979 --without-winssl disable Windows native SSL/TLS
Haibo Huang51d9d882019-02-06 01:36:06 -08001980 --with-schannel enable Windows native SSL/TLS
1981 --without-schannel disable Windows native SSL/TLS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001982 --with-darwinssl enable Apple OS native SSL/TLS
1983 --without-darwinssl disable Apple OS native SSL/TLS
Haibo Huang65021c72019-03-27 15:37:23 -07001984 --with-secure-transport enable Apple OS native SSL/TLS
1985 --without-secure-transport
1986 disable Apple OS native SSL/TLS
1987 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
1988 --without-amissl disable Amiga native SSL/TLS (AmiSSL)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001989 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1990 installation (default: /usr/local/ssl); when
1991 possible, set the PKG_CONFIG_PATH environment
1992 variable instead of using this option
1993 --without-ssl disable OpenSSL
1994 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1995 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1996 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1997 installation root
1998 --without-gnutls disable GnuTLS detection
1999 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
2000 installation root
2001 --without-polarssl disable PolarSSL detection
2002 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2003 installation root
2004 --without-mbedtls disable mbedTLS detection
2005 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2006 installation root (default: system lib default)
2007 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07002008 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2009 installation root (default: system lib default)
2010 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08002011 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2012 installation root
2013 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002014 --with-nss=PATH where to look for NSS, PATH points to the
2015 installation root
2016 --without-nss disable NSS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002017 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2018 /etc/ca-bundle.crt)
2019 --without-ca-bundle Don't use a default CA bundle
2020 --with-ca-path=DIRECTORY
2021 Path to a directory containing CA certificates
2022 stored individually, with their filenames in a hash
2023 format. This option can be used with OpenSSL, GnuTLS
2024 and PolarSSL backends. Refer to OpenSSL c_rehash for
2025 details. (example: /etc/certificates)
2026 --without-ca-path Don't use a default CA path
2027 --with-ca-fallback Use the built in CA store of the SSL library
2028 --without-ca-fallback Don't use the built in CA store of the SSL library
2029 --without-libpsl disable support for libpsl cookie checking
2030 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2031 installation root
2032 --without-libmetalink disable libmetalink detection
2033 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2034 LIBSSH2 installation; when possible, set the
2035 PKG_CONFIG_PATH environment variable instead of
2036 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002037 --with-libssh2 enable LIBSSH2
2038 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2039 installation; when possible, set the PKG_CONFIG_PATH
2040 environment variable instead of using this option
2041 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002042 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2043 LIBRTMP installation; when possible, set the
2044 PKG_CONFIG_PATH environment variable instead of
2045 using this option
2046 --without-librtmp disable LIBRTMP
2047 --with-winidn=PATH enable Windows native IDN
2048 --without-winidn disable Windows native IDN
2049 --with-libidn2=PATH Enable libidn2 usage
2050 --without-libidn2 Disable libidn2 usage
2051 --with-nghttp2=PATH Enable nghttp2 usage
2052 --without-nghttp2 Disable nghttp2 usage
2053 --with-zsh-functions-dir=PATH
2054 Install zsh completions to PATH
2055 --without-zsh-functions-dir
2056 Do not install zsh completions
Haibo Huang65021c72019-03-27 15:37:23 -07002057 --with-fish-functions-dir=PATH
2058 Install fish completions to PATH
2059 --without-fish-functions-dir
2060 Do not install fish completions
Elliott Hughes82be86d2017-09-20 17:00:17 -07002061
2062Some influential environment variables:
2063 CC C compiler command
2064 CFLAGS C compiler flags
2065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2066 nonstandard directory <lib dir>
2067 LIBS libraries to pass to the linker, e.g. -l<library>
2068 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2069 you have headers in a nonstandard directory <include dir>
2070 CPP C preprocessor
2071 LT_SYS_LIBRARY_PATH
2072 User-defined run-time library search path.
2073
2074Use these variables to override the choices made by `configure' or to help
2075it to find libraries and programs with nonstandard names/locations.
2076
2077Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2078_ACEOF
2079ac_status=$?
2080fi
2081
2082if test "$ac_init_help" = "recursive"; then
2083 # If there are subdirs, report their specific --help.
2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2085 test -d "$ac_dir" ||
2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2087 continue
2088 ac_builddir=.
2089
2090case "$ac_dir" in
2091.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2092*)
2093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2094 # A ".." for each directory in $ac_dir_suffix.
2095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2096 case $ac_top_builddir_sub in
2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2099 esac ;;
2100esac
2101ac_abs_top_builddir=$ac_pwd
2102ac_abs_builddir=$ac_pwd$ac_dir_suffix
2103# for backward compatibility:
2104ac_top_builddir=$ac_top_build_prefix
2105
2106case $srcdir in
2107 .) # We are building in place.
2108 ac_srcdir=.
2109 ac_top_srcdir=$ac_top_builddir_sub
2110 ac_abs_top_srcdir=$ac_pwd ;;
2111 [\\/]* | ?:[\\/]* ) # Absolute name.
2112 ac_srcdir=$srcdir$ac_dir_suffix;
2113 ac_top_srcdir=$srcdir
2114 ac_abs_top_srcdir=$srcdir ;;
2115 *) # Relative name.
2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2117 ac_top_srcdir=$ac_top_build_prefix$srcdir
2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2119esac
2120ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2121
2122 cd "$ac_dir" || { ac_status=$?; continue; }
2123 # Check for guested configure.
2124 if test -f "$ac_srcdir/configure.gnu"; then
2125 echo &&
2126 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2127 elif test -f "$ac_srcdir/configure"; then
2128 echo &&
2129 $SHELL "$ac_srcdir/configure" --help=recursive
2130 else
2131 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2132 fi || ac_status=$?
2133 cd "$ac_pwd" || { ac_status=$?; break; }
2134 done
2135fi
2136
2137test -n "$ac_init_help" && exit $ac_status
2138if $ac_init_version; then
2139 cat <<\_ACEOF
2140curl configure -
2141generated by GNU Autoconf 2.69
2142
2143Copyright (C) 2012 Free Software Foundation, Inc.
2144This configure script is free software; the Free Software Foundation
2145gives unlimited permission to copy, distribute and modify it.
2146
Haibo Huang51d9d882019-02-06 01:36:06 -08002147Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -07002148This configure script may be copied, distributed and modified under the
2149terms of the curl license; see COPYING for more details
2150_ACEOF
2151 exit
2152fi
2153
2154## ------------------------ ##
2155## Autoconf initialization. ##
2156## ------------------------ ##
2157
2158# ac_fn_c_try_compile LINENO
2159# --------------------------
2160# Try to compile conftest.$ac_ext, and return whether this succeeded.
2161ac_fn_c_try_compile ()
2162{
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext
2165 if { { ac_try="$ac_compile"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_compile") 2>conftest.err
2173 ac_status=$?
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2178 fi
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_c_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest.$ac_objext; then :
2184 ac_retval=0
2185else
2186 $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=1
2190fi
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2193
2194} # ac_fn_c_try_compile
2195
2196# ac_fn_c_try_cpp LINENO
2197# ----------------------
2198# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2199ac_fn_c_try_cpp ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 if { { ac_try="$ac_cpp conftest.$ac_ext"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208$as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2210 ac_status=$?
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2215 fi
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } > conftest.i && {
2218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 }; then :
2221 ac_retval=0
2222else
2223 $as_echo "$as_me: failed program was:" >&5
2224sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 ac_retval=1
2227fi
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2230
2231} # ac_fn_c_try_cpp
2232
Alex Deymo486467e2017-12-19 19:04:07 +01002233# ac_fn_c_try_link LINENO
2234# -----------------------
2235# Try to link conftest.$ac_ext, and return whether this succeeded.
2236ac_fn_c_try_link ()
2237{
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 rm -f conftest.$ac_objext conftest$ac_exeext
2240 if { { ac_try="$ac_link"
2241case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_link") 2>conftest.err
2248 ac_status=$?
2249 if test -s conftest.err; then
2250 grep -v '^ *+' conftest.err >conftest.er1
2251 cat conftest.er1 >&5
2252 mv -f conftest.er1 conftest.err
2253 fi
2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; } && {
2256 test -z "$ac_c_werror_flag" ||
2257 test ! -s conftest.err
2258 } && test -s conftest$ac_exeext && {
2259 test "$cross_compiling" = yes ||
2260 test -x conftest$ac_exeext
2261 }; then :
2262 ac_retval=0
2263else
2264 $as_echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 ac_retval=1
2268fi
2269 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2270 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2271 # interfere with the next link command; also delete a directory that is
2272 # left behind by Apple's compiler. We do this before executing the actions.
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2276
2277} # ac_fn_c_try_link
2278
Elliott Hughes82be86d2017-09-20 17:00:17 -07002279# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2280# -------------------------------------------------------
2281# Tests whether HEADER exists and can be compiled using the include files in
2282# INCLUDES, setting the cache variable VAR accordingly.
2283ac_fn_c_check_header_compile ()
2284{
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287$as_echo_n "checking for $2... " >&6; }
2288if eval \${$3+:} false; then :
2289 $as_echo_n "(cached) " >&6
2290else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h. */
2293$4
2294#include <$2>
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$3=yes"
2298else
2299 eval "$3=no"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_header_compile
2309
2310# ac_fn_c_try_run LINENO
2311# ----------------------
2312# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2313# that executables *can* be run.
2314ac_fn_c_try_run ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 if { { ac_try="$ac_link"
2318case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321esac
2322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323$as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_link") 2>&5
2325 ac_status=$?
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2328 { { case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333$as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_try") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; }; }; then :
2338 ac_retval=0
2339else
2340 $as_echo "$as_me: program exited with status $ac_status" >&5
2341 $as_echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=$ac_status
2345fi
2346 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status $ac_retval
2349
2350} # ac_fn_c_try_run
2351
Alex Deymo486467e2017-12-19 19:04:07 +01002352# ac_fn_c_check_func LINENO FUNC VAR
2353# ----------------------------------
2354# Tests whether FUNC exists, setting the cache variable VAR accordingly
2355ac_fn_c_check_func ()
2356{
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359$as_echo_n "checking for $2... " >&6; }
2360if eval \${$3+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h. */
2365
2366#define $2 innocuous_$2
2367#ifdef __STDC__
2368# include <limits.h>
2369#else
2370# include <assert.h>
2371#endif
2372#undef $2
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376char $2 ();
2377#if defined __stub_$2 || defined __stub___$2
2378choke me
2379#endif
2380
2381int main (void)
2382{
2383return $2 ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_link "$LINENO"; then :
2389 eval "$3=yes"
2390else
2391 eval "$3=no"
2392fi
2393rm -f core conftest.err conftest.$ac_objext \
2394 conftest$ac_exeext conftest.$ac_ext
2395fi
2396eval ac_res=\$$3
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398$as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400
2401} # ac_fn_c_check_func
2402
2403# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2404# -------------------------------------------------------
2405# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406# the include files in INCLUDES and setting the cache variable VAR
2407# accordingly.
2408ac_fn_c_check_header_mongrel ()
2409{
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 if eval \${$3+:} false; then :
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416fi
2417eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419$as_echo "$ac_res" >&6; }
2420else
2421 # Is the header compilable?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423$as_echo_n "checking $2 usability... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426$4
2427#include <$2>
2428_ACEOF
2429if ac_fn_c_try_compile "$LINENO"; then :
2430 ac_header_compiler=yes
2431else
2432 ac_header_compiler=no
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436$as_echo "$ac_header_compiler" >&6; }
2437
2438# Is the header present?
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440$as_echo_n "checking $2 presence... " >&6; }
2441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442/* end confdefs.h. */
2443#include <$2>
2444_ACEOF
2445if ac_fn_c_try_cpp "$LINENO"; then :
2446 ac_header_preproc=yes
2447else
2448 ac_header_preproc=no
2449fi
2450rm -f conftest.err conftest.i conftest.$ac_ext
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452$as_echo "$ac_header_preproc" >&6; }
2453
2454# So? What about this header?
2455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2456 yes:no: )
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 ;;
2462 no:yes:* )
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2466$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2470$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473( $as_echo "## ----------------------------------------------------------------------- ##
2474## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2475## ----------------------------------------------------------------------- ##"
2476 ) | sed "s/^/$as_me: WARNING: /" >&2
2477 ;;
2478esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480$as_echo_n "checking for $2... " >&6; }
2481if eval \${$3+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483else
2484 eval "$3=\$ac_header_compiler"
2485fi
2486eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488$as_echo "$ac_res" >&6; }
2489fi
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_c_check_header_mongrel
2493
Elliott Hughes82be86d2017-09-20 17:00:17 -07002494# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2495# -------------------------------------------
2496# Tests whether TYPE exists after having included INCLUDES, setting cache
2497# variable VAR accordingly.
2498ac_fn_c_check_type ()
2499{
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502$as_echo_n "checking for $2... " >&6; }
2503if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 eval "$3=no"
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int main (void)
2511{
2512if (sizeof ($2))
2513 return 0;
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518if ac_fn_c_try_compile "$LINENO"; then :
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int main (void)
2523{
2524if (sizeof (($2)))
2525 return 0;
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530if ac_fn_c_try_compile "$LINENO"; then :
2531
2532else
2533 eval "$3=yes"
2534fi
2535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536fi
2537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538fi
2539eval ac_res=\$$3
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541$as_echo "$ac_res" >&6; }
2542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2543
2544} # ac_fn_c_check_type
2545
Elliott Hughes72d948d2018-08-03 14:37:21 -07002546# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2547# ---------------------------------------------
2548# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2549# accordingly.
2550ac_fn_c_check_decl ()
2551{
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 as_decl_name=`echo $2|sed 's/ *(.*//'`
2554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2556$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2557if eval \${$3+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559else
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561/* end confdefs.h. */
2562$4
2563int main (void)
2564{
2565#ifndef $as_decl_name
2566#ifdef __cplusplus
2567 (void) $as_decl_use;
2568#else
2569 (void) $as_decl_name;
2570#endif
2571#endif
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577if ac_fn_c_try_compile "$LINENO"; then :
2578 eval "$3=yes"
2579else
2580 eval "$3=no"
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588
2589} # ac_fn_c_check_decl
2590
Elliott Hughes82be86d2017-09-20 17:00:17 -07002591# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592# ----------------------------------------------------
2593# Tries to find if the field MEMBER exists in type AGGR, after including
2594# INCLUDES, setting cache variable VAR accordingly.
2595ac_fn_c_check_member ()
2596{
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599$as_echo_n "checking for $2.$3... " >&6; }
2600if eval \${$4+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$5
2606int main (void)
2607{
2608static $2 ac_aggr;
2609if (ac_aggr.$3)
2610return 0;
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616 eval "$4=yes"
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int main (void)
2622{
2623static $2 ac_aggr;
2624if (sizeof ac_aggr.$3)
2625return 0;
2626 ;
2627 return 0;
2628}
2629_ACEOF
2630if ac_fn_c_try_compile "$LINENO"; then :
2631 eval "$4=yes"
2632else
2633 eval "$4=no"
2634fi
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639eval ac_res=\$$4
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641$as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643
2644} # ac_fn_c_check_member
2645cat >config.log <<_ACEOF
2646This file contains any messages produced by compilers while
2647running configure, to aid debugging if configure makes a mistake.
2648
2649It was created by curl $as_me -, which was
2650generated by GNU Autoconf 2.69. Invocation command line was
2651
2652 $ $0 $@
2653
2654_ACEOF
2655exec 5>>config.log
2656{
2657cat <<_ASUNAME
2658## --------- ##
2659## Platform. ##
2660## --------- ##
2661
2662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2663uname -m = `(uname -m) 2>/dev/null || echo unknown`
2664uname -r = `(uname -r) 2>/dev/null || echo unknown`
2665uname -s = `(uname -s) 2>/dev/null || echo unknown`
2666uname -v = `(uname -v) 2>/dev/null || echo unknown`
2667
2668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2669/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2670
2671/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2672/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2674/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2675/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2676/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2677/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2678
2679_ASUNAME
2680
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 $as_echo "PATH: $as_dir"
2687 done
2688IFS=$as_save_IFS
2689
2690} >&5
2691
2692cat >&5 <<_ACEOF
2693
2694
2695## ----------- ##
2696## Core tests. ##
2697## ----------- ##
2698
2699_ACEOF
2700
2701
2702# Keep a trace of the command line.
2703# Strip out --no-create and --no-recursion so they do not pile up.
2704# Strip out --silent because we don't want to record it for future runs.
2705# Also quote any args containing shell meta-characters.
2706# Make two passes to allow for proper duplicate-argument suppression.
2707ac_configure_args=
2708ac_configure_args0=
2709ac_configure_args1=
2710ac_must_keep_next=false
2711for ac_pass in 1 2
2712do
2713 for ac_arg
2714 do
2715 case $ac_arg in
2716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2718 | -silent | --silent | --silen | --sile | --sil)
2719 continue ;;
2720 *\'*)
2721 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2722 esac
2723 case $ac_pass in
2724 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2725 2)
2726 as_fn_append ac_configure_args1 " '$ac_arg'"
2727 if test $ac_must_keep_next = true; then
2728 ac_must_keep_next=false # Got value, back to normal.
2729 else
2730 case $ac_arg in
2731 *=* | --config-cache | -C | -disable-* | --disable-* \
2732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2734 | -with-* | --with-* | -without-* | --without-* | --x)
2735 case "$ac_configure_args0 " in
2736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2737 esac
2738 ;;
2739 -* ) ac_must_keep_next=true ;;
2740 esac
2741 fi
2742 as_fn_append ac_configure_args " '$ac_arg'"
2743 ;;
2744 esac
2745 done
2746done
2747{ ac_configure_args0=; unset ac_configure_args0;}
2748{ ac_configure_args1=; unset ac_configure_args1;}
2749
2750# When interrupted or exit'd, cleanup temporary files, and complete
2751# config.log. We remove comments because anyway the quotes in there
2752# would cause problems or look ugly.
2753# WARNING: Use '\'' to represent an apostrophe within the trap.
2754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2755trap 'exit_status=$?
2756 # Save into config.log some information that might help in debugging.
2757 {
2758 echo
2759
2760 $as_echo "## ---------------- ##
2761## Cache variables. ##
2762## ---------------- ##"
2763 echo
2764 # The following way of writing the cache mishandles newlines in values,
2765(
2766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2767 eval ac_val=\$$ac_var
2768 case $ac_val in #(
2769 *${as_nl}*)
2770 case $ac_var in #(
2771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2772$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2773 esac
2774 case $ac_var in #(
2775 _ | IFS | as_nl) ;; #(
2776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2777 *) { eval $ac_var=; unset $ac_var;} ;;
2778 esac ;;
2779 esac
2780 done
2781 (set) 2>&1 |
2782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2783 *${as_nl}ac_space=\ *)
2784 sed -n \
2785 "s/'\''/'\''\\\\'\'''\''/g;
2786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2787 ;; #(
2788 *)
2789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790 ;;
2791 esac |
2792 sort
2793)
2794 echo
2795
2796 $as_echo "## ----------------- ##
2797## Output variables. ##
2798## ----------------- ##"
2799 echo
2800 for ac_var in $ac_subst_vars
2801 do
2802 eval ac_val=\$$ac_var
2803 case $ac_val in
2804 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2805 esac
2806 $as_echo "$ac_var='\''$ac_val'\''"
2807 done | sort
2808 echo
2809
2810 if test -n "$ac_subst_files"; then
2811 $as_echo "## ------------------- ##
2812## File substitutions. ##
2813## ------------------- ##"
2814 echo
2815 for ac_var in $ac_subst_files
2816 do
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2824 fi
2825
2826 if test -s confdefs.h; then
2827 $as_echo "## ----------- ##
2828## confdefs.h. ##
2829## ----------- ##"
2830 echo
2831 cat confdefs.h
2832 echo
2833 fi
2834 test "$ac_signal" != 0 &&
2835 $as_echo "$as_me: caught signal $ac_signal"
2836 $as_echo "$as_me: exit $exit_status"
2837 } >&5
2838 rm -f core *.core core.conftest.* &&
2839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2840 exit $exit_status
2841' 0
2842for ac_signal in 1 2 13 15; do
2843 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2844done
2845ac_signal=0
2846
2847# confdefs.h avoids OS command line length limits that DEFS can exceed.
2848rm -f -r conftest* confdefs.h
2849
2850$as_echo "/* confdefs.h */" > confdefs.h
2851
2852# Predefined preprocessor variables.
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE_NAME "$PACKAGE_NAME"
2856_ACEOF
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2860_ACEOF
2861
2862cat >>confdefs.h <<_ACEOF
2863#define PACKAGE_VERSION "$PACKAGE_VERSION"
2864_ACEOF
2865
2866cat >>confdefs.h <<_ACEOF
2867#define PACKAGE_STRING "$PACKAGE_STRING"
2868_ACEOF
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2872_ACEOF
2873
2874cat >>confdefs.h <<_ACEOF
2875#define PACKAGE_URL "$PACKAGE_URL"
2876_ACEOF
2877
2878
2879# Let the site file select an alternate cache file if it wants to.
2880# Prefer an explicitly selected file to automatically selected ones.
2881ac_site_file1=NONE
2882ac_site_file2=NONE
2883if test -n "$CONFIG_SITE"; then
2884 # We do not want a PATH search for config.site.
2885 case $CONFIG_SITE in #((
2886 -*) ac_site_file1=./$CONFIG_SITE;;
2887 */*) ac_site_file1=$CONFIG_SITE;;
2888 *) ac_site_file1=./$CONFIG_SITE;;
2889 esac
2890elif test "x$prefix" != xNONE; then
2891 ac_site_file1=$prefix/share/config.site
2892 ac_site_file2=$prefix/etc/config.site
2893else
2894 ac_site_file1=$ac_default_prefix/share/config.site
2895 ac_site_file2=$ac_default_prefix/etc/config.site
2896fi
2897for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2898do
2899 test "x$ac_site_file" = xNONE && continue
2900 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2902$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2903 sed 's/^/| /' "$ac_site_file" >&5
2904 . "$ac_site_file" \
2905 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "failed to load site script $ac_site_file
2908See \`config.log' for more details" "$LINENO" 5; }
2909 fi
2910done
2911
2912if test -r "$cache_file"; then
2913 # Some versions of bash will fail to source /dev/null (special files
2914 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2915 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2917$as_echo "$as_me: loading cache $cache_file" >&6;}
2918 case $cache_file in
2919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2920 *) . "./$cache_file";;
2921 esac
2922 fi
2923else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2925$as_echo "$as_me: creating cache $cache_file" >&6;}
2926 >$cache_file
2927fi
2928
2929# Check that the precious variables saved in the cache have kept the same
2930# value.
2931ac_cache_corrupted=false
2932for ac_var in $ac_precious_vars; do
2933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2934 eval ac_new_set=\$ac_env_${ac_var}_set
2935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2936 eval ac_new_val=\$ac_env_${ac_var}_value
2937 case $ac_old_set,$ac_new_set in
2938 set,)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2940$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2941 ac_cache_corrupted=: ;;
2942 ,set)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2944$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2946 ,);;
2947 *)
2948 if test "x$ac_old_val" != "x$ac_new_val"; then
2949 # differences in whitespace do not lead to failure.
2950 ac_old_val_w=`echo x $ac_old_val`
2951 ac_new_val_w=`echo x $ac_new_val`
2952 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2954$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2955 ac_cache_corrupted=:
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2958$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2959 eval $ac_var=\$ac_old_val
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2962$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2964$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2965 fi;;
2966 esac
2967 # Pass precious variables to config.status.
2968 if test "$ac_new_set" = set; then
2969 case $ac_new_val in
2970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2971 *) ac_arg=$ac_var=$ac_new_val ;;
2972 esac
2973 case " $ac_configure_args " in
2974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2975 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976 esac
2977 fi
2978done
2979if $ac_cache_corrupted; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2983$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2984 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2985fi
2986## -------------------- ##
2987## Main body of script. ##
2988## -------------------- ##
2989
2990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
2996
2997
2998
2999
3000
3001
3002# using curl-override.m4
3003
3004
3005
3006
3007
3008ac_config_headers="$ac_config_headers lib/curl_config.h"
3009
3010
3011
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3014 # Check whether --enable-maintainer-mode was given.
3015if test "${enable_maintainer_mode+set}" = set; then :
3016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3017else
3018 USE_MAINTAINER_MODE=no
3019fi
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3022$as_echo "$USE_MAINTAINER_MODE" >&6; }
3023 if test $USE_MAINTAINER_MODE = yes; then
3024 MAINTAINER_MODE_TRUE=
3025 MAINTAINER_MODE_FALSE='#'
3026else
3027 MAINTAINER_MODE_TRUE='#'
3028 MAINTAINER_MODE_FALSE=
3029fi
3030
3031 MAINT=$MAINTAINER_MODE_TRUE
3032
3033
3034# Check whether --enable-silent-rules was given.
3035if test "${enable_silent_rules+set}" = set; then :
3036 enableval=$enable_silent_rules;
3037fi
3038
3039case $enable_silent_rules in # (((
3040 yes) AM_DEFAULT_VERBOSITY=0;;
3041 no) AM_DEFAULT_VERBOSITY=1;;
3042 *) AM_DEFAULT_VERBOSITY=0;;
3043esac
3044am_make=${MAKE-make}
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3046$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3047if ${am_cv_make_support_nested_variables+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049else
3050 if $as_echo 'TRUE=$(BAR$(V))
3051BAR0=false
3052BAR1=true
3053V=1
3054am__doit:
3055 @$(TRUE)
3056.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3057 am_cv_make_support_nested_variables=yes
3058else
3059 am_cv_make_support_nested_variables=no
3060fi
3061fi
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3063$as_echo "$am_cv_make_support_nested_variables" >&6; }
3064if test $am_cv_make_support_nested_variables = yes; then
3065 AM_V='$(V)'
3066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3067else
3068 AM_V=$AM_DEFAULT_VERBOSITY
3069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3070fi
3071AM_BACKSLASH='\'
3072
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3076$as_echo_n "checking whether to enable debug build options... " >&6; }
3077 OPT_DEBUG_BUILD="default"
3078 # Check whether --enable-debug was given.
3079if test "${enable_debug+set}" = set; then :
3080 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3081fi
3082
3083 case "$OPT_DEBUG_BUILD" in
3084 no)
3085 want_debug="no"
3086 ;;
3087 default)
3088 want_debug="no"
3089 ;;
3090 *)
3091 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003092
3093$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3094
Elliott Hughes82be86d2017-09-20 17:00:17 -07003095 ;;
3096 esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3098$as_echo "$want_debug" >&6; }
3099
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3102$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3103 OPT_COMPILER_OPTIMIZE="default"
3104 # Check whether --enable-optimize was given.
3105if test "${enable_optimize+set}" = set; then :
3106 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3107fi
3108
3109 case "$OPT_COMPILER_OPTIMIZE" in
3110 no)
3111 want_optimize="no"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114 ;;
3115 default)
3116 if test "$want_debug" = "yes"; then
3117 want_optimize="assume_no"
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3119$as_echo "(assumed) no" >&6; }
3120 else
3121 want_optimize="assume_yes"
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3123$as_echo "(assumed) yes" >&6; }
3124 fi
3125 ;;
3126 *)
3127 want_optimize="yes"
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129$as_echo "yes" >&6; }
3130 ;;
3131 esac
3132
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3135$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3136 OPT_COMPILER_WARNINGS="default"
3137 # Check whether --enable-warnings was given.
3138if test "${enable_warnings+set}" = set; then :
3139 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3140fi
3141
3142 case "$OPT_COMPILER_WARNINGS" in
3143 no)
3144 want_warnings="no"
3145 ;;
3146 default)
3147 want_warnings="$want_debug"
3148 ;;
3149 *)
3150 want_warnings="yes"
3151 ;;
3152 esac
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3154$as_echo "$want_warnings" >&6; }
3155
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3158$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3159 OPT_COMPILER_WERROR="default"
3160 # Check whether --enable-werror was given.
3161if test "${enable_werror+set}" = set; then :
3162 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3163fi
3164
3165 case "$OPT_COMPILER_WERROR" in
3166 no)
3167 want_werror="no"
3168 ;;
3169 default)
3170 want_werror="no"
3171 ;;
3172 *)
3173 want_werror="yes"
3174 ;;
3175 esac
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3177$as_echo "$want_werror" >&6; }
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3181$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3182 OPT_CURLDEBUG_BUILD="default"
3183 # Check whether --enable-curldebug was given.
3184if test "${enable_curldebug+set}" = set; then :
3185 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3186fi
3187
3188 case "$OPT_CURLDEBUG_BUILD" in
3189 no)
3190 want_curldebug="no"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193 ;;
3194 default)
3195 if test "$want_debug" = "yes"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3197$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003198
3199$as_echo "#define CURLDEBUG 1" >>confdefs.h
3200
Elliott Hughes82be86d2017-09-20 17:00:17 -07003201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204 fi
3205 want_curldebug_assumed="yes"
3206 want_curldebug="$want_debug"
3207 ;;
3208 *)
3209 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003210
3211$as_echo "#define CURLDEBUG 1" >>confdefs.h
3212
Elliott Hughes82be86d2017-09-20 17:00:17 -07003213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215 ;;
3216 esac
3217
3218
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3220$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3221 OPT_SYMBOL_HIDING="default"
3222 # Check whether --enable-symbol-hiding was given.
3223if test "${enable_symbol_hiding+set}" = set; then :
3224 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3225fi
3226
3227 # Check whether --enable-hidden-symbols was given.
3228if test "${enable_hidden_symbols+set}" = set; then :
3229 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3230fi
3231
3232 case "$OPT_SYMBOL_HIDING" in
3233 no)
3234 want_symbol_hiding="no"
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 ;;
3238 default)
3239 want_symbol_hiding="yes"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 ;;
3243 *)
3244 want_symbol_hiding="yes"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 ;;
3248 esac
3249
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3252$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3253 OPT_ARES="default"
3254 # Check whether --enable-ares was given.
3255if test "${enable_ares+set}" = set; then :
3256 enableval=$enable_ares; OPT_ARES=$enableval
3257fi
3258
3259 case "$OPT_ARES" in
3260 no)
3261 want_ares="no"
3262 ;;
3263 default)
3264 want_ares="no"
3265 ;;
3266 *)
3267 want_ares="yes"
3268 if test -n "$enableval" && test "$enableval" != "yes"; then
3269 want_ares_path="$enableval"
3270 fi
3271 ;;
3272 esac
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3274$as_echo "$want_ares" >&6; }
3275
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3278$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3279 OPT_RT="default"
3280 # Check whether --enable-rt was given.
3281if test "${enable_rt+set}" = set; then :
3282 enableval=$enable_rt; OPT_RT=$enableval
3283fi
3284
3285 case "$OPT_RT" in
3286 no)
3287 dontwant_rt="yes"
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289$as_echo "yes" >&6; }
3290 ;;
3291 default)
3292 dontwant_rt="no"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3294$as_echo "(assumed no)" >&6; }
3295 ;;
3296 *)
3297 dontwant_rt="no"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300 ;;
3301 esac
3302
3303
3304#
3305# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3306#
3307
3308if test -z "$xc_configure_preamble_result"; then
3309 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3310fi
3311
3312#
3313# Check that 'PATH_SEPARATOR' has already been set.
3314#
3315
3316if test -z "$xc_PATH_SEPARATOR"; then
3317 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3318fi
3319if test -z "$PATH_SEPARATOR"; then
3320 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3323$as_echo_n "checking for path separator... " >&6; }
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3325$as_echo "$PATH_SEPARATOR" >&6; }
3326if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3328$as_echo_n "checking for initial path separator... " >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3330$as_echo "$xc_PATH_SEPARATOR" >&6; }
3331 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3332fi
3333
Elliott Hughes82be86d2017-09-20 17:00:17 -07003334
3335#
3336# save the configure arguments
3337#
3338CONFIGURE_OPTIONS="\"$ac_configure_args\""
3339
3340
3341CURL_CFLAG_EXTRAS=""
3342if test X"$want_werror" = Xyes; then
3343 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003344 if test "$compiler_id" = "GNU_C"; then
3345 if test "$compiler_num" -ge "500"; then
3346 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3347 fi
3348 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003349fi
3350
3351
3352if test -z "$SED"; then
3353 # Extract the first word of "sed", so it can be a program name with args.
3354set dummy sed; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if ${ac_cv_path_SED+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359else
3360 case $SED in
3361 [\\/]* | ?:[\\/]*)
3362 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3363 ;;
3364 *)
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366as_dummy="$PATH:/usr/bin:/usr/local/bin"
3367for as_dir in $as_dummy
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378 done
3379IFS=$as_save_IFS
3380
3381 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3382 ;;
3383esac
3384fi
3385SED=$ac_cv_path_SED
3386if test -n "$SED"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3388$as_echo "$SED" >&6; }
3389else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395 if test -z "$SED" || test "$SED" = "not_found"; then
3396 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3397 fi
3398fi
3399
3400
3401if test -z "$GREP"; then
3402 # Extract the first word of "grep", so it can be a program name with args.
3403set dummy grep; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_path_GREP+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 case $GREP in
3410 [\\/]* | ?:[\\/]*)
3411 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3412 ;;
3413 *)
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415as_dummy="$PATH:/usr/bin:/usr/local/bin"
3416for as_dir in $as_dummy
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3431 ;;
3432esac
3433fi
3434GREP=$ac_cv_path_GREP
3435if test -n "$GREP"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3437$as_echo "$GREP" >&6; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444 if test -z "$GREP" || test "$GREP" = "not_found"; then
3445 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3446 fi
3447fi
3448
3449
3450if test -z "$EGREP"; then
3451 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3453$as_echo_n "checking for egrep... " >&6; }
3454 EGREP="$GREP -E"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3456$as_echo "$EGREP" >&6; }
3457 else
3458 # Extract the first word of "egrep", so it can be a program name with args.
3459set dummy egrep; ac_word=$2
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461$as_echo_n "checking for $ac_word... " >&6; }
3462if ${ac_cv_path_EGREP+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464else
3465 case $EGREP in
3466 [\\/]* | ?:[\\/]*)
3467 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3468 ;;
3469 *)
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471as_dummy="$PATH:/usr/bin:/usr/local/bin"
3472for as_dir in $as_dummy
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482done
3483 done
3484IFS=$as_save_IFS
3485
3486 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3487 ;;
3488esac
3489fi
3490EGREP=$ac_cv_path_EGREP
3491if test -n "$EGREP"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3493$as_echo "$EGREP" >&6; }
3494else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500 fi
3501fi
3502if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3503 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3504fi
3505
3506
3507if test -z "$AR"; then
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3510set dummy ${ac_tool_prefix}ar; ac_word=$2
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512$as_echo_n "checking for $ac_word... " >&6; }
3513if ${ac_cv_path_AR+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515else
3516 case $AR in
3517 [\\/]* | ?:[\\/]*)
3518 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3519 ;;
3520 *)
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522as_dummy="$PATH:/usr/bin:/usr/local/bin"
3523for as_dir in $as_dummy
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534 done
3535IFS=$as_save_IFS
3536
3537 ;;
3538esac
3539fi
3540AR=$ac_cv_path_AR
3541if test -n "$AR"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3543$as_echo "$AR" >&6; }
3544else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550fi
3551if test -z "$ac_cv_path_AR"; then
3552 ac_pt_AR=$AR
3553 # Extract the first word of "ar", so it can be a program name with args.
3554set dummy ar; ac_word=$2
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556$as_echo_n "checking for $ac_word... " >&6; }
3557if ${ac_cv_path_ac_pt_AR+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 case $ac_pt_AR in
3561 [\\/]* | ?:[\\/]*)
3562 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3563 ;;
3564 *)
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566as_dummy="$PATH:/usr/bin:/usr/local/bin"
3567for as_dir in $as_dummy
3568do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577done
3578 done
3579IFS=$as_save_IFS
3580
3581 ;;
3582esac
3583fi
3584ac_pt_AR=$ac_cv_path_ac_pt_AR
3585if test -n "$ac_pt_AR"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3587$as_echo "$ac_pt_AR" >&6; }
3588else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591fi
3592
3593 if test "x$ac_pt_AR" = x; then
3594 AR="not_found"
3595 else
3596 case $cross_compiling:$ac_tool_warned in
3597yes:)
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600ac_tool_warned=yes ;;
3601esac
3602 AR=$ac_pt_AR
3603 fi
3604else
3605 AR="$ac_cv_path_AR"
3606fi
3607
3608 if test -z "$AR" || test "$AR" = "not_found"; then
3609 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3610 fi
3611fi
3612
3613
3614
3615
3616CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3617
3618 xc_prog_cc_prev_IFS=$IFS
3619 xc_prog_cc_prev_LIBS=$LIBS
3620 xc_prog_cc_prev_CFLAGS=$CFLAGS
3621 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3622 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3623
3624
3625
3626 xc_bad_var_libs=no
3627 for xc_word in $LIBS; do
3628 case "$xc_word" in
3629 -l* | --library=*)
3630 :
3631 ;;
3632 *)
3633 xc_bad_var_libs=yes
3634 ;;
3635 esac
3636 done
3637 if test $xc_bad_var_libs = yes; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3639$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3641$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3642 fi
3643
3644
3645 xc_bad_var_ldflags=no
3646 for xc_word in $LDFLAGS; do
3647 case "$xc_word" in
3648 -D*)
3649 xc_bad_var_ldflags=yes
3650 ;;
3651 -U*)
3652 xc_bad_var_ldflags=yes
3653 ;;
3654 -I*)
3655 xc_bad_var_ldflags=yes
3656 ;;
3657 -l* | --library=*)
3658 xc_bad_var_ldflags=yes
3659 ;;
3660 esac
3661 done
3662 if test $xc_bad_var_ldflags = yes; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3664$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3665 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3666 for xc_word in $LDFLAGS; do
3667 case "$xc_word" in
3668 -D*)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3670$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3671 ;;
3672 -U*)
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3674$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3675 ;;
3676 -I*)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3678$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3679 ;;
3680 -l* | --library=*)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3682$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3683 ;;
3684 esac
3685 done
3686 fi
3687
3688
3689 xc_bad_var_cppflags=no
3690 for xc_word in $CPPFLAGS; do
3691 case "$xc_word" in
3692 -rpath*)
3693 xc_bad_var_cppflags=yes
3694 ;;
3695 -L* | --library-path=*)
3696 xc_bad_var_cppflags=yes
3697 ;;
3698 -l* | --library=*)
3699 xc_bad_var_cppflags=yes
3700 ;;
3701 esac
3702 done
3703 if test $xc_bad_var_cppflags = yes; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3705$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3706 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3707 for xc_word in $CPPFLAGS; do
3708 case "$xc_word" in
3709 -rpath*)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3711$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3712 ;;
3713 -L* | --library-path=*)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3715$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3716 ;;
3717 -l* | --library=*)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3719$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3720 ;;
3721 esac
3722 done
3723 fi
3724
3725
3726 xc_bad_var_cflags=no
3727 for xc_word in $CFLAGS; do
3728 case "$xc_word" in
3729 -D*)
3730 xc_bad_var_cflags=yes
3731 ;;
3732 -U*)
3733 xc_bad_var_cflags=yes
3734 ;;
3735 -I*)
3736 xc_bad_var_cflags=yes
3737 ;;
3738 -rpath*)
3739 xc_bad_var_cflags=yes
3740 ;;
3741 -L* | --library-path=*)
3742 xc_bad_var_cflags=yes
3743 ;;
3744 -l* | --library=*)
3745 xc_bad_var_cflags=yes
3746 ;;
3747 esac
3748 done
3749 if test $xc_bad_var_cflags = yes; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3751$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3752 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3753 for xc_word in $CFLAGS; do
3754 case "$xc_word" in
3755 -D*)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3757$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3758 ;;
3759 -U*)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3761$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3762 ;;
3763 -I*)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3765$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3766 ;;
3767 -rpath*)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3769$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3770 ;;
3771 -L* | --library-path=*)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3773$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3774 ;;
3775 -l* | --library=*)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3777$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3778 ;;
3779 esac
3780 done
3781 fi
3782
3783 if test $xc_bad_var_libs = yes ||
3784 test $xc_bad_var_cflags = yes ||
3785 test $xc_bad_var_ldflags = yes ||
3786 test $xc_bad_var_cppflags = yes; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3788$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3789 fi
3790
3791ac_aux_dir=
3792for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3793 if test -f "$ac_dir/install-sh"; then
3794 ac_aux_dir=$ac_dir
3795 ac_install_sh="$ac_aux_dir/install-sh -c"
3796 break
3797 elif test -f "$ac_dir/install.sh"; then
3798 ac_aux_dir=$ac_dir
3799 ac_install_sh="$ac_aux_dir/install.sh -c"
3800 break
3801 elif test -f "$ac_dir/shtool"; then
3802 ac_aux_dir=$ac_dir
3803 ac_install_sh="$ac_aux_dir/shtool install -c"
3804 break
3805 fi
3806done
3807if test -z "$ac_aux_dir"; then
3808 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3809fi
3810
3811# These three variables are undocumented and unsupported,
3812# and are intended to be withdrawn in a future Autoconf release.
3813# They can cause serious problems if a builder's source tree is in a directory
3814# whose full name contains unusual characters.
3815ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3816ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3817ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3818
3819
3820# Find a good install program. We prefer a C program (faster),
3821# so one script is as good as another. But avoid the broken or
3822# incompatible versions:
3823# SysV /etc/install, /usr/sbin/install
3824# SunOS /usr/etc/install
3825# IRIX /sbin/install
3826# AIX /bin/install
3827# AmigaOS /C/install, which installs bootblocks on floppy discs
3828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3831# OS/2's system install, which has a completely different semantic
3832# ./install, which can be erroneously created by make from ./install.sh.
3833# Reject install programs that cannot install multiple files.
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3835$as_echo_n "checking for a BSD-compatible install... " >&6; }
3836if test -z "$INSTALL"; then
3837if ${ac_cv_path_install+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 # Account for people who put trailing slashes in PATH elements.
3846case $as_dir/ in #((
3847 ./ | .// | /[cC]/* | \
3848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3849 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3850 /usr/ucb/* ) ;;
3851 *)
3852 # OSF1 and SCO ODT 3.0 have their own names for install.
3853 # Don't use installbsd from OSF since it installs stuff as root
3854 # by default.
3855 for ac_prog in ginstall scoinst install; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3858 if test $ac_prog = install &&
3859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3860 # AIX install. It has an incompatible calling convention.
3861 :
3862 elif test $ac_prog = install &&
3863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3864 # program-specific install script used by HP pwplus--don't use.
3865 :
3866 else
3867 rm -rf conftest.one conftest.two conftest.dir
3868 echo one > conftest.one
3869 echo two > conftest.two
3870 mkdir conftest.dir
3871 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3872 test -s conftest.one && test -s conftest.two &&
3873 test -s conftest.dir/conftest.one &&
3874 test -s conftest.dir/conftest.two
3875 then
3876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3877 break 3
3878 fi
3879 fi
3880 fi
3881 done
3882 done
3883 ;;
3884esac
3885
3886 done
3887IFS=$as_save_IFS
3888
3889rm -rf conftest.one conftest.two conftest.dir
3890
3891fi
3892 if test "${ac_cv_path_install+set}" = set; then
3893 INSTALL=$ac_cv_path_install
3894 else
3895 # As a last resort, use the slow shell script. Don't cache a
3896 # value for INSTALL within a source directory, because that will
3897 # break other packages using the cache if that directory is
3898 # removed, or if the value is a relative name.
3899 INSTALL=$ac_install_sh
3900 fi
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3903$as_echo "$INSTALL" >&6; }
3904
3905# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3906# It thinks the first close brace ends the variable substitution.
3907test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3908
3909test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3910
3911test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3912
3913# Expand $ac_aux_dir to an absolute path.
3914am_aux_dir=`cd "$ac_aux_dir" && pwd`
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}gcc; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if ${ac_cv_prog_CC+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928else
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944 done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949CC=$ac_cv_prog_CC
3950if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952$as_echo "$CC" >&6; }
3953else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958
3959fi
3960if test -z "$ac_cv_prog_CC"; then
3961 ac_ct_CC=$CC
3962 # Extract the first word of "gcc", so it can be a program name with args.
3963set dummy gcc; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if ${ac_cv_prog_ac_ct_CC+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968else
3969 if test -n "$ac_ct_CC"; then
3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CC="gcc"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984 done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990if test -n "$ac_ct_CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992$as_echo "$ac_ct_CC" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
4009else
4010 CC="$ac_cv_prog_CC"
4011fi
4012
4013if test -z "$CC"; then
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}cc; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_CC+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_CC="${ac_tool_prefix}cc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036done
4037 done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042CC=$ac_cv_prog_CC
4043if test -n "$CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045$as_echo "$CC" >&6; }
4046else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052 fi
4053fi
4054if test -z "$CC"; then
4055 # Extract the first word of "cc", so it can be a program name with args.
4056set dummy cc; ac_word=$2
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058$as_echo_n "checking for $ac_word... " >&6; }
4059if ${ac_cv_prog_CC+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061else
4062 if test -n "$CC"; then
4063 ac_cv_prog_CC="$CC" # Let the user override the test.
4064else
4065 ac_prog_rejected=no
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4074 ac_prog_rejected=yes
4075 continue
4076 fi
4077 ac_cv_prog_CC="cc"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081done
4082 done
4083IFS=$as_save_IFS
4084
4085if test $ac_prog_rejected = yes; then
4086 # We found a bogon in the path, so make sure we never use it.
4087 set dummy $ac_cv_prog_CC
4088 shift
4089 if test $# != 0; then
4090 # We chose a different compiler from the bogus one.
4091 # However, it has the same basename, so the bogon will be chosen
4092 # first if we set CC to just the basename; use the full file name.
4093 shift
4094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4095 fi
4096fi
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102$as_echo "$CC" >&6; }
4103else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109fi
4110if test -z "$CC"; then
4111 if test -n "$ac_tool_prefix"; then
4112 for ac_prog in cl.exe
4113 do
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117$as_echo_n "checking for $ac_word... " >&6; }
4118if ${ac_cv_prog_CC+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136 done
4137IFS=$as_save_IFS
4138
4139fi
4140fi
4141CC=$ac_cv_prog_CC
4142if test -n "$CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144$as_echo "$CC" >&6; }
4145else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
4148fi
4149
4150
4151 test -n "$CC" && break
4152 done
4153fi
4154if test -z "$CC"; then
4155 ac_ct_CC=$CC
4156 for ac_prog in cl.exe
4157do
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159set dummy $ac_prog; ac_word=$2
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161$as_echo_n "checking for $ac_word... " >&6; }
4162if ${ac_cv_prog_ac_ct_CC+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 if test -n "$ac_ct_CC"; then
4166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_CC="$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180 done
4181IFS=$as_save_IFS
4182
4183fi
4184fi
4185ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186if test -n "$ac_ct_CC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4188$as_echo "$ac_ct_CC" >&6; }
4189else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191$as_echo "no" >&6; }
4192fi
4193
4194
4195 test -n "$ac_ct_CC" && break
4196done
4197
4198 if test "x$ac_ct_CC" = x; then
4199 CC=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202yes:)
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205ac_tool_warned=yes ;;
4206esac
4207 CC=$ac_ct_CC
4208 fi
4209fi
4210
4211fi
4212
4213
4214test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "no acceptable C compiler found in \$PATH
4217See \`config.log' for more details" "$LINENO" 5; }
4218
4219# Provide some information about the compiler.
4220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4221set X $ac_compile
4222ac_compiler=$2
4223for ac_option in --version -v -V -qversion; do
4224 { { ac_try="$ac_compiler $ac_option >&5"
4225case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230$as_echo "$ac_try_echo"; } >&5
4231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4232 ac_status=$?
4233 if test -s conftest.err; then
4234 sed '10a\
4235... rest of stderr output deleted ...
4236 10q' conftest.err >conftest.er1
4237 cat conftest.er1 >&5
4238 fi
4239 rm -f conftest.er1 conftest.err
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }
4242done
4243
4244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h. */
4246
4247int main (void)
4248{
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254ac_clean_files_save=$ac_clean_files
4255ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4256# Try to create an executable without -o first, disregard a.out.
4257# It will help us diagnose broken compilers, and finding out an intuition
4258# of exeext.
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4260$as_echo_n "checking whether the C compiler works... " >&6; }
4261ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4262
4263# The possible output files:
4264ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4265
4266ac_rmfiles=
4267for ac_file in $ac_files
4268do
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4272 esac
4273done
4274rm -f $ac_rmfiles
4275
4276if { { ac_try="$ac_link_default"
4277case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282$as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_link_default") 2>&5
4284 ac_status=$?
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }; then :
4287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4288# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4289# in a Makefile. We should not override ac_cv_exeext if it was cached,
4290# so that the user can short-circuit this test for compilers unknown to
4291# Autoconf.
4292for ac_file in $ac_files ''
4293do
4294 test -f "$ac_file" || continue
4295 case $ac_file in
4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4297 ;;
4298 [ab].out )
4299 # We found the default executable, but exeext='' is most
4300 # certainly right.
4301 break;;
4302 *.* )
4303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4304 then :; else
4305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4306 fi
4307 # We set ac_cv_exeext here because the later test for it is not
4308 # safe: cross compilers may not add the suffix if given an `-o'
4309 # argument, so we may need to know it at that point already.
4310 # Even if this section looks crufty: it has the advantage of
4311 # actually working.
4312 break;;
4313 * )
4314 break;;
4315 esac
4316done
4317test "$ac_cv_exeext" = no && ac_cv_exeext=
4318
4319else
4320 ac_file=''
4321fi
4322if test -z "$ac_file"; then :
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325$as_echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error 77 "C compiler cannot create executables
4331See \`config.log' for more details" "$LINENO" 5; }
4332else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334$as_echo "yes" >&6; }
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337$as_echo_n "checking for C compiler default output file name... " >&6; }
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4339$as_echo "$ac_file" >&6; }
4340ac_exeext=$ac_cv_exeext
4341
4342rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4343ac_clean_files=$ac_clean_files_save
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4345$as_echo_n "checking for suffix of executables... " >&6; }
4346if { { ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_link") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4358# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4359# work properly (i.e., refer to `conftest.exe'), while it won't with
4360# `rm'.
4361for ac_file in conftest.exe conftest conftest.*; do
4362 test -f "$ac_file" || continue
4363 case $ac_file in
4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4366 break;;
4367 * ) break;;
4368 esac
4369done
4370else
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4374See \`config.log' for more details" "$LINENO" 5; }
4375fi
4376rm -f conftest conftest$ac_cv_exeext
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4378$as_echo "$ac_cv_exeext" >&6; }
4379
4380rm -f conftest.$ac_ext
4381EXEEXT=$ac_cv_exeext
4382ac_exeext=$EXEEXT
4383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h. */
4385#include <stdio.h>
4386int main (void)
4387{
4388FILE *f = fopen ("conftest.out", "w");
4389 return ferror (f) || fclose (f) != 0;
4390
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395ac_clean_files="$ac_clean_files conftest.out"
4396# Check that the compiler produces executables we can run. If not, either
4397# the compiler is broken, or we cross compile.
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4399$as_echo_n "checking whether we are cross compiling... " >&6; }
4400if test "$cross_compiling" != yes; then
4401 { { ac_try="$ac_link"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link") 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }
4412 if { ac_try='./conftest$ac_cv_exeext'
4413 { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418$as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
4420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; }; then
4423 cross_compiling=no
4424 else
4425 if test "$cross_compiling" = maybe; then
4426 cross_compiling=yes
4427 else
4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430as_fn_error $? "cannot run C compiled programs.
4431If you meant to cross compile, use \`--host'.
4432See \`config.log' for more details" "$LINENO" 5; }
4433 fi
4434 fi
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4437$as_echo "$cross_compiling" >&6; }
4438
4439rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4440ac_clean_files=$ac_clean_files_save
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4442$as_echo_n "checking for suffix of object files... " >&6; }
4443if ${ac_cv_objext+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445else
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h. */
4448
4449int main (void)
4450{
4451
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456rm -f conftest.o conftest.obj
4457if { { ac_try="$ac_compile"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_compile") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
4468 for ac_file in conftest.o conftest.obj conftest.*; do
4469 test -f "$ac_file" || continue;
4470 case $ac_file in
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4473 break;;
4474 esac
4475done
4476else
4477 $as_echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482as_fn_error $? "cannot compute suffix of object files: cannot compile
4483See \`config.log' for more details" "$LINENO" 5; }
4484fi
4485rm -f conftest.$ac_cv_objext conftest.$ac_ext
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4488$as_echo "$ac_cv_objext" >&6; }
4489OBJEXT=$ac_cv_objext
4490ac_objext=$OBJEXT
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4493if ${ac_cv_c_compiler_gnu+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */
4498
4499int main (void)
4500{
4501#ifndef __GNUC__
4502 choke me
4503#endif
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
4509if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_compiler_gnu=yes
4511else
4512 ac_compiler_gnu=no
4513fi
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515ac_cv_c_compiler_gnu=$ac_compiler_gnu
4516
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4520if test $ac_compiler_gnu = yes; then
4521 GCC=yes
4522else
4523 GCC=
4524fi
4525ac_test_CFLAGS=${CFLAGS+set}
4526ac_save_CFLAGS=$CFLAGS
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4528$as_echo_n "checking whether $CC accepts -g... " >&6; }
4529if ${ac_cv_prog_cc_g+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531else
4532 ac_save_c_werror_flag=$ac_c_werror_flag
4533 ac_c_werror_flag=yes
4534 ac_cv_prog_cc_g=no
4535 CFLAGS="-g"
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539int main (void)
4540{
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_prog_cc_g=yes
4548else
4549 CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552
4553int main (void)
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_c_try_compile "$LINENO"; then :
4561
4562else
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h. */
4567
4568int main (void)
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_cv_prog_cc_g=yes
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_c_werror_flag=$ac_save_c_werror_flag
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586$as_echo "$ac_cv_prog_cc_g" >&6; }
4587if test "$ac_test_CFLAGS" = set; then
4588 CFLAGS=$ac_save_CFLAGS
4589elif test $ac_cv_prog_cc_g = yes; then
4590 if test "$GCC" = yes; then
4591 CFLAGS="-g -O2"
4592 else
4593 CFLAGS="-g"
4594 fi
4595else
4596 if test "$GCC" = yes; then
4597 CFLAGS="-O2"
4598 else
4599 CFLAGS=
4600 fi
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604if ${ac_cv_prog_cc_c89+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606else
4607 ac_cv_prog_cc_c89=no
4608ac_save_CC=$CC
4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <stdarg.h>
4612#include <stdio.h>
4613struct stat;
4614/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4615struct buf { int x; };
4616FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617static char *e (p, i)
4618 char **p;
4619 int i;
4620{
4621 return p[i];
4622}
4623static char *f (char * (*g) (char **, int), char **p, ...)
4624{
4625 char *s;
4626 va_list v;
4627 va_start (v,p);
4628 s = g (p, va_arg (v,int));
4629 va_end (v);
4630 return s;
4631}
4632
4633/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4634 function prototypes and stuff, but not '\xHH' hex character constants.
4635 These don't provoke an error unfortunately, instead are silently treated
4636 as 'x'. The following induces an error, until -std is added to get
4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4638 array size at least. It's necessary to write '\x00'==0 to get something
4639 that's true only with -std. */
4640int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641
4642/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643 inside strings and character constants. */
4644#define FOO(x) 'x'
4645int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646
4647int test (int i, double x);
4648struct s1 {int (*f) (int a);};
4649struct s2 {int (*f) (double a);};
4650int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651int argc;
4652char **argv;
4653int main (void)
4654{
4655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4662do
4663 CC="$ac_save_CC $ac_arg"
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c89=$ac_arg
4666fi
4667rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c89" != "xno" && break
4669done
4670rm -f conftest.$ac_ext
4671CC=$ac_save_CC
4672
4673fi
4674# AC_CACHE_VAL
4675case "x$ac_cv_prog_cc_c89" in
4676 x)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678$as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681$as_echo "unsupported" >&6; } ;;
4682 *)
4683 CC="$CC $ac_cv_prog_cc_c89"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4685$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4686esac
4687if test "x$ac_cv_prog_cc_c89" != xno; then :
4688
4689fi
4690
4691ac_ext=c
4692ac_cpp='$CPP $CPPFLAGS'
4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696
4697ac_ext=c
4698ac_cpp='$CPP $CPPFLAGS'
4699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4703$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4704if ${am_cv_prog_cc_c_o+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
4709
4710int main (void)
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717 # Make sure it works both with $CC and with simple cc.
4718 # Following AC_PROG_CC_C_O, we do the test twice because some
4719 # compilers refuse to overwrite an existing .o file with -o,
4720 # though they will create one.
4721 am_cv_prog_cc_c_o=yes
4722 for am_i in 1 2; do
4723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } \
4728 && test -f conftest2.$ac_objext; then
4729 : OK
4730 else
4731 am_cv_prog_cc_c_o=no
4732 break
4733 fi
4734 done
4735 rm -f core conftest*
4736 unset am_i
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4739$as_echo "$am_cv_prog_cc_c_o" >&6; }
4740if test "$am_cv_prog_cc_c_o" != yes; then
4741 # Losing compiler, so override with the script.
4742 # FIXME: It is wrong to rewrite CC.
4743 # But if we don't then we get into trouble of one sort or another.
4744 # A longer-term fix would be to have automake use am__CC in this case,
4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4746 CC="$am_aux_dir/compile $CC"
4747fi
4748ac_ext=c
4749ac_cpp='$CPP $CPPFLAGS'
4750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753
4754
4755
4756ac_ext=c
4757ac_cpp='$CPP $CPPFLAGS'
4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4762$as_echo_n "checking how to run the C preprocessor... " >&6; }
4763# On Suns, sometimes $CPP names a directory.
4764if test -n "$CPP" && test -d "$CPP"; then
4765 CPP=
4766fi
4767if test -z "$CPP"; then
4768 if ${ac_cv_prog_CPP+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 # Double quotes because CPP needs to be expanded
4772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4773 do
4774 ac_preproc_ok=false
4775for ac_c_preproc_warn_flag in '' yes
4776do
4777 # Use a header file that comes with gcc, so configuring glibc
4778 # with a fresh cross-compiler works.
4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 # <limits.h> exists even on freestanding compilers.
4781 # On the NeXT, cc -E runs the code through the compiler's parser,
4782 # not just through cpp. "Syntax error" is here to catch this case.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h. */
4785#ifdef __STDC__
4786# include <limits.h>
4787#else
4788# include <assert.h>
4789#endif
4790 Syntax error
4791_ACEOF
4792if ac_fn_c_try_cpp "$LINENO"; then :
4793
4794else
4795 # Broken: fails on valid input.
4796continue
4797fi
4798rm -f conftest.err conftest.i conftest.$ac_ext
4799
4800 # OK, works on sane cases. Now check whether nonexistent headers
4801 # can be detected and how.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h. */
4804#include <ac_nonexistent.h>
4805_ACEOF
4806if ac_fn_c_try_cpp "$LINENO"; then :
4807 # Broken: success on invalid input.
4808continue
4809else
4810 # Passes both tests.
4811ac_preproc_ok=:
4812break
4813fi
4814rm -f conftest.err conftest.i conftest.$ac_ext
4815
4816done
4817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818rm -f conftest.i conftest.err conftest.$ac_ext
4819if $ac_preproc_ok; then :
4820 break
4821fi
4822
4823 done
4824 ac_cv_prog_CPP=$CPP
4825
4826fi
4827 CPP=$ac_cv_prog_CPP
4828else
4829 ac_cv_prog_CPP=$CPP
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4832$as_echo "$CPP" >&6; }
4833ac_preproc_ok=false
4834for ac_c_preproc_warn_flag in '' yes
4835do
4836 # Use a header file that comes with gcc, so configuring glibc
4837 # with a fresh cross-compiler works.
4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4839 # <limits.h> exists even on freestanding compilers.
4840 # On the NeXT, cc -E runs the code through the compiler's parser,
4841 # not just through cpp. "Syntax error" is here to catch this case.
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#ifdef __STDC__
4845# include <limits.h>
4846#else
4847# include <assert.h>
4848#endif
4849 Syntax error
4850_ACEOF
4851if ac_fn_c_try_cpp "$LINENO"; then :
4852
4853else
4854 # Broken: fails on valid input.
4855continue
4856fi
4857rm -f conftest.err conftest.i conftest.$ac_ext
4858
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863#include <ac_nonexistent.h>
4864_ACEOF
4865if ac_fn_c_try_cpp "$LINENO"; then :
4866 # Broken: success on invalid input.
4867continue
4868else
4869 # Passes both tests.
4870ac_preproc_ok=:
4871break
4872fi
4873rm -f conftest.err conftest.i conftest.$ac_ext
4874
4875done
4876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4877rm -f conftest.i conftest.err conftest.$ac_ext
4878if $ac_preproc_ok; then :
4879
4880else
4881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4883as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4884See \`config.log' for more details" "$LINENO" 5; }
4885fi
4886
4887ac_ext=c
4888ac_cpp='$CPP $CPPFLAGS'
4889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892
4893
4894 IFS=$xc_prog_cc_prev_IFS
4895 LIBS=$xc_prog_cc_prev_LIBS
4896 CFLAGS=$xc_prog_cc_prev_CFLAGS
4897 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4898 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4899
4900
4901
4902
4903
Elliott Hughes0128fe42018-02-27 14:57:55 -08004904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4906$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4907if ${ac_cv_path_SED+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4911 for ac_i in 1 2 3 4 5 6 7; do
4912 ac_script="$ac_script$as_nl$ac_script"
4913 done
4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4915 { ac_script=; unset ac_script;}
4916 if test -z "$SED"; then
4917 ac_path_SED_found=false
4918 # Loop through the user's path and test for each of PROGNAME-LIST
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_prog in sed gsed; do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4927 as_fn_executable_p "$ac_path_SED" || continue
4928# Check for GNU ac_path_SED and select it if it is found.
4929 # Check for GNU $ac_path_SED
4930case `"$ac_path_SED" --version 2>&1` in
4931*GNU*)
4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4933*)
4934 ac_count=0
4935 $as_echo_n 0123456789 >"conftest.in"
4936 while :
4937 do
4938 cat "conftest.in" "conftest.in" >"conftest.tmp"
4939 mv "conftest.tmp" "conftest.in"
4940 cp "conftest.in" "conftest.nl"
4941 $as_echo '' >> "conftest.nl"
4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944 as_fn_arith $ac_count + 1 && ac_count=$as_val
4945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4946 # Best one so far, save it but keep looking for a better one
4947 ac_cv_path_SED="$ac_path_SED"
4948 ac_path_SED_max=$ac_count
4949 fi
4950 # 10*(2^10) chars as input seems more than enough
4951 test $ac_count -gt 10 && break
4952 done
4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954esac
4955
4956 $ac_path_SED_found && break 3
4957 done
4958 done
4959 done
4960IFS=$as_save_IFS
4961 if test -z "$ac_cv_path_SED"; then
4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4963 fi
4964else
4965 ac_cv_path_SED=$SED
4966fi
4967
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4970$as_echo "$ac_cv_path_SED" >&6; }
4971 SED="$ac_cv_path_SED"
4972 rm -f conftest.sed
4973
Elliott Hughes0128fe42018-02-27 14:57:55 -08004974
4975
4976
Haibo Huang51d9d882019-02-06 01:36:06 -08004977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
4978$as_echo_n "checking for code coverage support... " >&6; }
4979 coverage="no"
4980 curl_coverage_msg="disabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004981
Haibo Huang51d9d882019-02-06 01:36:06 -08004982 # Check whether --enable-code-coverage was given.
Elliott Hughes0128fe42018-02-27 14:57:55 -08004983if test "${enable_code_coverage+set}" = set; then :
Haibo Huang51d9d882019-02-06 01:36:06 -08004984 enableval=$enable_code_coverage; coverage="yes"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004985else
Haibo Huang51d9d882019-02-06 01:36:06 -08004986 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004987fi
4988
4989
Haibo Huang51d9d882019-02-06 01:36:06 -08004990 if test "$GCC" != "yes" ; then :
4991 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004992fi
Haibo Huang51d9d882019-02-06 01:36:06 -08004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
4994$as_echo "$coverage" >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -08004995
Haibo Huang51d9d882019-02-06 01:36:06 -08004996 if test "x$coverage" = "xyes"; then
4997 curl_coverage_msg="enabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004998
Haibo Huang51d9d882019-02-06 01:36:06 -08004999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5001set dummy ${ac_tool_prefix}gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if ${ac_cv_prog_GCOV+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 if test -n "$GCOV"; then
5008 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005017 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021done
5022 done
5023IFS=$as_save_IFS
5024
5025fi
5026fi
5027GCOV=$ac_cv_prog_GCOV
5028if test -n "$GCOV"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5030$as_echo "$GCOV" >&6; }
5031else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034fi
5035
5036
5037fi
5038if test -z "$ac_cv_prog_GCOV"; then
5039 ac_ct_GCOV=$GCOV
Haibo Huang51d9d882019-02-06 01:36:06 -08005040 # Extract the first word of "gcov", so it can be a program name with args.
5041set dummy gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 if test -n "$ac_ct_GCOV"; then
5048 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005057 ac_cv_prog_ac_ct_GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061done
5062 done
5063IFS=$as_save_IFS
5064
5065fi
5066fi
5067ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5068if test -n "$ac_ct_GCOV"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5070$as_echo "$ac_ct_GCOV" >&6; }
5071else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
5074fi
5075
5076 if test "x$ac_ct_GCOV" = x; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005077 GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005078 else
5079 case $cross_compiling:$ac_tool_warned in
5080yes:)
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083ac_tool_warned=yes ;;
5084esac
5085 GCOV=$ac_ct_GCOV
5086 fi
5087else
5088 GCOV="$ac_cv_prog_GCOV"
5089fi
5090
Haibo Huang51d9d882019-02-06 01:36:06 -08005091 if test -z "$GCOV"; then
5092 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5093 fi
5094 # Extract the first word of "lcov", so it can be a program name with args.
Elliott Hughes0128fe42018-02-27 14:57:55 -08005095set dummy lcov; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if ${ac_cv_prog_LCOV+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100else
5101 if test -n "$LCOV"; then
5102 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_LCOV="lcov"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115done
5116 done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121LCOV=$ac_cv_prog_LCOV
5122if test -n "$LCOV"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5124$as_echo "$LCOV" >&6; }
5125else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129
5130
Haibo Huang51d9d882019-02-06 01:36:06 -08005131 if test -z "$LCOV"; then
5132 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5133 fi
5134
5135 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5136 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5137 LIBS="$LIBS -lgcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005138 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -08005139
Elliott Hughes0128fe42018-02-27 14:57:55 -08005140
Elliott Hughes82be86d2017-09-20 17:00:17 -07005141am__api_version='1.15'
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5144$as_echo_n "checking whether build environment is sane... " >&6; }
5145# Reject unsafe characters in $srcdir or the absolute working directory
5146# name. Accept space and tab only in the latter.
5147am_lf='
5148'
5149case `pwd` in
5150 *[\\\"\#\$\&\'\`$am_lf]*)
5151 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5152esac
5153case $srcdir in
5154 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5156esac
5157
5158# Do 'set' in a subshell so we don't clobber the current shell's
5159# arguments. Must try -L first in case configure is actually a
5160# symlink; some systems play weird games with the mod time of symlinks
5161# (eg FreeBSD returns the mod time of the symlink's containing
5162# directory).
5163if (
5164 am_has_slept=no
5165 for am_try in 1 2; do
5166 echo "timestamp, slept: $am_has_slept" > conftest.file
5167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5168 if test "$*" = "X"; then
5169 # -L didn't work.
5170 set X `ls -t "$srcdir/configure" conftest.file`
5171 fi
5172 if test "$*" != "X $srcdir/configure conftest.file" \
5173 && test "$*" != "X conftest.file $srcdir/configure"; then
5174
5175 # If neither matched, then we have a broken ls. This can happen
5176 # if, for instance, CONFIG_SHELL is bash and it inherits a
5177 # broken ls alias from the environment. This has actually
5178 # happened. Such a system could not be considered "sane".
5179 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5180 alias in your environment" "$LINENO" 5
5181 fi
5182 if test "$2" = conftest.file || test $am_try -eq 2; then
5183 break
5184 fi
5185 # Just in case.
5186 sleep 1
5187 am_has_slept=yes
5188 done
5189 test "$2" = conftest.file
5190 )
5191then
5192 # Ok.
5193 :
5194else
5195 as_fn_error $? "newly created file is older than distributed files!
5196Check your system clock" "$LINENO" 5
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
5200# If we didn't sleep, we still need to ensure time stamps of config.status and
5201# generated files are strictly newer.
5202am_sleep_pid=
5203if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5204 ( sleep 1 ) &
5205 am_sleep_pid=$!
5206fi
5207
5208rm -f conftest.file
5209
5210test "$program_prefix" != NONE &&
5211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5212# Use a double $ so make ignores it.
5213test "$program_suffix" != NONE &&
5214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5215# Double any \ or $.
5216# By default was `s,x,x', remove it if useless.
5217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5219
5220if test x"${MISSING+set}" != xset; then
5221 case $am_aux_dir in
5222 *\ * | *\ *)
5223 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5224 *)
5225 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5226 esac
5227fi
5228# Use eval to expand $SHELL
5229if eval "$MISSING --is-lightweight"; then
5230 am_missing_run="$MISSING "
5231else
5232 am_missing_run=
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5234$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5235fi
5236
5237if test x"${install_sh+set}" != xset; then
5238 case $am_aux_dir in
5239 *\ * | *\ *)
5240 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5241 *)
5242 install_sh="\${SHELL} $am_aux_dir/install-sh"
5243 esac
5244fi
5245
5246# Installed binaries are usually stripped using 'strip' when the user
5247# run "make install-strip". However 'strip' might not be the right
5248# tool to use in cross-compilation environments, therefore Automake
5249# will honor the 'STRIP' environment variable to overrule this program.
5250if test "$cross_compiling" != no; then
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5253set dummy ${ac_tool_prefix}strip; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_STRIP+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$STRIP"; then
5260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279STRIP=$ac_cv_prog_STRIP
5280if test -n "$STRIP"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5282$as_echo "$STRIP" >&6; }
5283else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289fi
5290if test -z "$ac_cv_prog_STRIP"; then
5291 ac_ct_STRIP=$STRIP
5292 # Extract the first word of "strip", so it can be a program name with args.
5293set dummy strip; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 if test -n "$ac_ct_STRIP"; then
5300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_ac_ct_STRIP="strip"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313done
5314 done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5320if test -n "$ac_ct_STRIP"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5322$as_echo "$ac_ct_STRIP" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328 if test "x$ac_ct_STRIP" = x; then
5329 STRIP=":"
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335ac_tool_warned=yes ;;
5336esac
5337 STRIP=$ac_ct_STRIP
5338 fi
5339else
5340 STRIP="$ac_cv_prog_STRIP"
5341fi
5342
5343fi
5344INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5347$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5348if test -z "$MKDIR_P"; then
5349 if ${ac_cv_path_mkdir+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in mkdir gmkdir; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5360 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5361 'mkdir (GNU coreutils) '* | \
5362 'mkdir (coreutils) '* | \
5363 'mkdir (fileutils) '4.1*)
5364 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5365 break 3;;
5366 esac
5367 done
5368 done
5369 done
5370IFS=$as_save_IFS
5371
5372fi
5373
5374 test -d ./--version && rmdir ./--version
5375 if test "${ac_cv_path_mkdir+set}" = set; then
5376 MKDIR_P="$ac_cv_path_mkdir -p"
5377 else
5378 # As a last resort, use the slow shell script. Don't cache a
5379 # value for MKDIR_P within a source directory, because that will
5380 # break other packages using the cache if that directory is
5381 # removed, or if the value is a relative name.
5382 MKDIR_P="$ac_install_sh -d"
5383 fi
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5386$as_echo "$MKDIR_P" >&6; }
5387
5388for ac_prog in gawk mawk nawk awk
5389do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if ${ac_cv_prog_AWK+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396else
5397 if test -n "$AWK"; then
5398 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_AWK="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412 done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417AWK=$ac_cv_prog_AWK
5418if test -n "$AWK"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5420$as_echo "$AWK" >&6; }
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427 test -n "$AWK" && break
5428done
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5431$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5432set x ${MAKE-make}
5433ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5434if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 cat >conftest.make <<\_ACEOF
5438SHELL = /bin/sh
5439all:
5440 @echo '@@@%%%=$(MAKE)=@@@%%%'
5441_ACEOF
5442# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5443case `${MAKE-make} -f conftest.make 2>/dev/null` in
5444 *@@@%%%=?*=@@@%%%*)
5445 eval ac_cv_prog_make_${ac_make}_set=yes;;
5446 *)
5447 eval ac_cv_prog_make_${ac_make}_set=no;;
5448esac
5449rm -f conftest.make
5450fi
5451if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453$as_echo "yes" >&6; }
5454 SET_MAKE=
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458 SET_MAKE="MAKE=${MAKE-make}"
5459fi
5460
5461rm -rf .tst 2>/dev/null
5462mkdir .tst 2>/dev/null
5463if test -d .tst; then
5464 am__leading_dot=.
5465else
5466 am__leading_dot=_
5467fi
5468rmdir .tst 2>/dev/null
5469
5470DEPDIR="${am__leading_dot}deps"
5471
5472ac_config_commands="$ac_config_commands depfiles"
5473
5474
5475am_make=${MAKE-make}
5476cat > confinc << 'END'
5477am__doit:
5478 @echo this is the am__doit target
5479.PHONY: am__doit
5480END
5481# If we don't find an include directive, just comment out the code.
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5483$as_echo_n "checking for style of include used by $am_make... " >&6; }
5484am__include="#"
5485am__quote=
5486_am_result=none
5487# First try GNU make style include.
5488echo "include confinc" > confmf
5489# Ignore all kinds of additional output from 'make'.
5490case `$am_make -s -f confmf 2> /dev/null` in #(
5491*the\ am__doit\ target*)
5492 am__include=include
5493 am__quote=
5494 _am_result=GNU
5495 ;;
5496esac
5497# Now try BSD make style include.
5498if test "$am__include" = "#"; then
5499 echo '.include "confinc"' > confmf
5500 case `$am_make -s -f confmf 2> /dev/null` in #(
5501 *the\ am__doit\ target*)
5502 am__include=.include
5503 am__quote="\""
5504 _am_result=BSD
5505 ;;
5506 esac
5507fi
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5511$as_echo "$_am_result" >&6; }
5512rm -f confinc confmf
5513
5514# Check whether --enable-dependency-tracking was given.
5515if test "${enable_dependency_tracking+set}" = set; then :
5516 enableval=$enable_dependency_tracking;
5517fi
5518
5519if test "x$enable_dependency_tracking" != xno; then
5520 am_depcomp="$ac_aux_dir/depcomp"
5521 AMDEPBACKSLASH='\'
5522 am__nodep='_no'
5523fi
5524 if test "x$enable_dependency_tracking" != xno; then
5525 AMDEP_TRUE=
5526 AMDEP_FALSE='#'
5527else
5528 AMDEP_TRUE='#'
5529 AMDEP_FALSE=
5530fi
5531
5532
5533## --------------------------------------- ##
5534## Start of automake initialization code ##
5535## --------------------------------------- ##
5536
5537if test "`cd $srcdir && pwd`" != "`pwd`"; then
5538 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5539 # is not polluted with repeated "-I."
5540 am__isrc=' -I$(srcdir)'
5541 # test to see if srcdir already configured
5542 if test -f $srcdir/config.status; then
5543 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5544 fi
5545fi
5546
5547# test whether we have cygpath
5548if test -z "$CYGPATH_W"; then
5549 if (cygpath --version) >/dev/null 2>/dev/null; then
5550 CYGPATH_W='cygpath -w'
5551 else
5552 CYGPATH_W=echo
5553 fi
5554fi
5555
5556
5557# Define the identity of the package.
5558 PACKAGE='curl'
5559 VERSION='-'
5560
5561
5562cat >>confdefs.h <<_ACEOF
5563#define PACKAGE "$PACKAGE"
5564_ACEOF
5565
5566
5567cat >>confdefs.h <<_ACEOF
5568#define VERSION "$VERSION"
5569_ACEOF
5570
5571# Some tools Automake needs.
5572
5573ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5574
5575
5576AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5577
5578
5579AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5580
5581
5582AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5583
5584
5585MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5586
5587# For better backward compatibility. To be removed once Automake 1.9.x
5588# dies out for good. For more background, see:
5589# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5590# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5591mkdir_p='$(MKDIR_P)'
5592
5593# We need awk for the "check" target (and possibly the TAP driver). The
5594# system "awk" is bad on some platforms.
5595# Always define AMTAR for backward compatibility. Yes, it's still used
5596# in the wild :-( We should find a proper way to deprecate it ...
5597AMTAR='$${TAR-tar}'
5598
5599
5600# We'll loop over all known methods to create a tar archive until one works.
5601_am_tools='gnutar pax cpio none'
5602
5603am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5604
5605
5606
5607
5608
5609depcc="$CC" am_compiler_list=
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5612$as_echo_n "checking dependency style of $depcc... " >&6; }
5613if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615else
5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5617 # We make a subdir and do the tests there. Otherwise we can end up
5618 # making bogus files that we don't know about and never remove. For
5619 # instance it was reported that on HP-UX the gcc test will end up
5620 # making a dummy file named 'D' -- because '-MD' means "put the output
5621 # in D".
5622 rm -rf conftest.dir
5623 mkdir conftest.dir
5624 # Copy depcomp to subdir because otherwise we won't find it if we're
5625 # using a relative directory.
5626 cp "$am_depcomp" conftest.dir
5627 cd conftest.dir
5628 # We will build objects and dependencies in a subdirectory because
5629 # it helps to detect inapplicable dependency modes. For instance
5630 # both Tru64's cc and ICC support -MD to output dependencies as a
5631 # side effect of compilation, but ICC will put the dependencies in
5632 # the current directory while Tru64 will put them in the object
5633 # directory.
5634 mkdir sub
5635
5636 am_cv_CC_dependencies_compiler_type=none
5637 if test "$am_compiler_list" = ""; then
5638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5639 fi
5640 am__universal=false
5641 case " $depcc " in #(
5642 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5643 esac
5644
5645 for depmode in $am_compiler_list; do
5646 # Setup a source with many dependencies, because some compilers
5647 # like to wrap large dependency lists on column 80 (with \), and
5648 # we should not choose a depcomp mode which is confused by this.
5649 #
5650 # We need to recreate these files for each test, as the compiler may
5651 # overwrite some of them when testing with obscure command lines.
5652 # This happens at least with the AIX C compiler.
5653 : > sub/conftest.c
5654 for i in 1 2 3 4 5 6; do
5655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5656 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5657 # Solaris 10 /bin/sh.
5658 echo '/* dummy */' > sub/conftst$i.h
5659 done
5660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5661
5662 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5663 # mode. It turns out that the SunPro C++ compiler does not properly
5664 # handle '-M -o', and we need to detect this. Also, some Intel
5665 # versions had trouble with output in subdirs.
5666 am__obj=sub/conftest.${OBJEXT-o}
5667 am__minus_obj="-o $am__obj"
5668 case $depmode in
5669 gcc)
5670 # This depmode causes a compiler race in universal mode.
5671 test "$am__universal" = false || continue
5672 ;;
5673 nosideeffect)
5674 # After this tag, mechanisms are not by side-effect, so they'll
5675 # only be used when explicitly requested.
5676 if test "x$enable_dependency_tracking" = xyes; then
5677 continue
5678 else
5679 break
5680 fi
5681 ;;
5682 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5683 # This compiler won't grok '-c -o', but also, the minuso test has
5684 # not run yet. These depmodes are late enough in the game, and
5685 # so weak that their functioning should not be impacted.
5686 am__obj=conftest.${OBJEXT-o}
5687 am__minus_obj=
5688 ;;
5689 none) break ;;
5690 esac
5691 if depmode=$depmode \
5692 source=sub/conftest.c object=$am__obj \
5693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5695 >/dev/null 2>conftest.err &&
5696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5700 # icc doesn't choke on unknown options, it will just issue warnings
5701 # or remarks (even with -Werror). So we grep stderr for any message
5702 # that says an option was ignored or not supported.
5703 # When given -MP, icc 7.0 and 7.1 complain thusly:
5704 # icc: Command line warning: ignoring option '-M'; no argument required
5705 # The diagnosis changed in icc 8.0:
5706 # icc: Command line remark: option '-MP' not supported
5707 if (grep 'ignoring option' conftest.err ||
5708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5709 am_cv_CC_dependencies_compiler_type=$depmode
5710 break
5711 fi
5712 fi
5713 done
5714
5715 cd ..
5716 rm -rf conftest.dir
5717else
5718 am_cv_CC_dependencies_compiler_type=none
5719fi
5720
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5723$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5724CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5725
5726 if
5727 test "x$enable_dependency_tracking" != xno \
5728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5729 am__fastdepCC_TRUE=
5730 am__fastdepCC_FALSE='#'
5731else
5732 am__fastdepCC_TRUE='#'
5733 am__fastdepCC_FALSE=
5734fi
5735
5736
5737
5738# POSIX will say in a future version that running "rm -f" with no argument
5739# is OK; and we want to be able to make that assumption in our Makefile
5740# recipes. So use an aggressive probe to check that the usage we want is
5741# actually supported "in the wild" to an acceptable degree.
5742# See automake bug#10828.
5743# To make any issue more visible, cause the running configure to be aborted
5744# by default if the 'rm' program in use doesn't match our expectations; the
5745# user can still override this though.
5746if rm -f && rm -fr && rm -rf; then : OK; else
5747 cat >&2 <<'END'
5748Oops!
5749
5750Your 'rm' program seems unable to run without file operands specified
5751on the command line, even when the '-f' option is present. This is contrary
5752to the behaviour of most rm programs out there, and not conforming with
5753the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5754
5755Please tell bug-automake@gnu.org about your system, including the value
5756of your $PATH and any error possibly output before this message. This
5757can help us improve future automake versions.
5758
5759END
5760 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5761 echo 'Configuration will proceed anyway, since you have set the' >&2
5762 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5763 echo >&2
5764 else
5765 cat >&2 <<'END'
5766Aborting the configuration process, to ensure you take notice of the issue.
5767
5768You can download and install GNU coreutils to get an 'rm' implementation
5769that behaves properly: <http://www.gnu.org/software/coreutils/>.
5770
5771If you want to complete the configuration process using your problematic
5772'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5773to "yes", and re-run configure.
5774
5775END
5776 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5777 fi
5778fi
5779
5780## ------------------------------------- ##
5781## End of automake initialization code ##
5782## ------------------------------------- ##
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5786$as_echo_n "checking curl version... " >&6; }
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5788$as_echo "$CURLVERSION" >&6; }
5789
5790
5791
5792VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5793
5794
5795PKGADD_PKG="HAXXcurl"
5796PKGADD_NAME="curl - a client that groks URLs"
5797PKGADD_VENDOR="curl.haxx.se"
5798
5799
5800
5801
Haibo Huang65021c72019-03-27 15:37:23 -07005802 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,schannel,secure-transport,mesalink,amissl} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005803 curl_ssh_msg="no (--with-libssh2)"
5804 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01005805 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005806 curl_gss_msg="no (--with-gssapi)"
5807curl_tls_srp_msg="no (--enable-tls-srp)"
5808 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5809 curl_ipv6_msg="no (--enable-ipv6)"
5810curl_unix_sockets_msg="no (--enable-unix-sockets)"
5811 curl_idn_msg="no (--with-{libidn2,winidn})"
5812 curl_manual_msg="no (--enable-manual)"
5813curl_libcurl_msg="enabled (--disable-libcurl-option)"
5814curl_verbose_msg="enabled (--disable-verbose)"
5815 curl_sspi_msg="no (--enable-sspi)"
5816 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5817 curl_ldaps_msg="no (--enable-ldaps)"
5818 curl_rtsp_msg="no (--enable-rtsp)"
5819 curl_rtmp_msg="no (--with-librtmp)"
5820 curl_mtlnk_msg="no (--with-libmetalink)"
5821 curl_psl_msg="no (--with-libpsl)"
5822
Alex Deymo486467e2017-12-19 19:04:07 +01005823 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07005824
5825INITIAL_LDFLAGS=$LDFLAGS
5826INITIAL_LIBS=$LIBS
5827
5828
5829# Make sure we can run config.sub.
5830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5834$as_echo_n "checking build system type... " >&6; }
5835if ${ac_cv_build+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 ac_build_alias=$build_alias
5839test "x$ac_build_alias" = x &&
5840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5841test "x$ac_build_alias" = x &&
5842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5845
5846fi
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5848$as_echo "$ac_cv_build" >&6; }
5849case $ac_cv_build in
5850*-*-*) ;;
5851*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5852esac
5853build=$ac_cv_build
5854ac_save_IFS=$IFS; IFS='-'
5855set x $ac_cv_build
5856shift
5857build_cpu=$1
5858build_vendor=$2
5859shift; shift
5860# Remember, the first character of IFS is used to create $*,
5861# except with old shells:
5862build_os=$*
5863IFS=$ac_save_IFS
5864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5865
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5868$as_echo_n "checking host system type... " >&6; }
5869if ${ac_cv_host+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871else
5872 if test "x$host_alias" = x; then
5873 ac_cv_host=$ac_cv_build
5874else
5875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5877fi
5878
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5881$as_echo "$ac_cv_host" >&6; }
5882case $ac_cv_host in
5883*-*-*) ;;
5884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5885esac
5886host=$ac_cv_host
5887ac_save_IFS=$IFS; IFS='-'
5888set x $ac_cv_host
5889shift
5890host_cpu=$1
5891host_vendor=$2
5892shift; shift
5893# Remember, the first character of IFS is used to create $*,
5894# except with old shells:
5895host_os=$*
5896IFS=$ac_save_IFS
5897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5898
5899
5900
5901cat >>confdefs.h <<_ACEOF
5902#define OS "${host}"
5903_ACEOF
5904
5905
Elliott Hughes72d948d2018-08-03 14:37:21 -07005906# Silence warning: ar: 'u' modifier ignored since 'D' is the default
5907AR_FLAGS=cr
5908
Elliott Hughes82be86d2017-09-20 17:00:17 -07005909
5910
5911
Elliott Hughes82be86d2017-09-20 17:00:17 -07005912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5913$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5914if ${ac_cv_path_GREP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 if test -z "$GREP"; then
5918 ac_path_GREP_found=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_prog in grep ggrep; do
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5928 as_fn_executable_p "$ac_path_GREP" || continue
5929# Check for GNU ac_path_GREP and select it if it is found.
5930 # Check for GNU $ac_path_GREP
5931case `"$ac_path_GREP" --version 2>&1` in
5932*GNU*)
5933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5934*)
5935 ac_count=0
5936 $as_echo_n 0123456789 >"conftest.in"
5937 while :
5938 do
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'GREP' >> "conftest.nl"
5943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945 as_fn_arith $ac_count + 1 && ac_count=$as_val
5946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_GREP="$ac_path_GREP"
5949 ac_path_GREP_max=$ac_count
5950 fi
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5953 done
5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955esac
5956
5957 $ac_path_GREP_found && break 3
5958 done
5959 done
5960 done
5961IFS=$as_save_IFS
5962 if test -z "$ac_cv_path_GREP"; then
5963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 fi
5965else
5966 ac_cv_path_GREP=$GREP
5967fi
5968
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5971$as_echo "$ac_cv_path_GREP" >&6; }
5972 GREP="$ac_cv_path_GREP"
5973
5974
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5976$as_echo_n "checking for egrep... " >&6; }
5977if ${ac_cv_path_EGREP+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979else
5980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5981 then ac_cv_path_EGREP="$GREP -E"
5982 else
5983 if test -z "$EGREP"; then
5984 ac_path_EGREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in egrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5994 as_fn_executable_p "$ac_path_EGREP" || continue
5995# Check for GNU ac_path_EGREP and select it if it is found.
5996 # Check for GNU $ac_path_EGREP
5997case `"$ac_path_EGREP" --version 2>&1` in
5998*GNU*)
5999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6000*)
6001 ac_count=0
6002 $as_echo_n 0123456789 >"conftest.in"
6003 while :
6004 do
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo 'EGREP' >> "conftest.nl"
6009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 as_fn_arith $ac_count + 1 && ac_count=$as_val
6012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_EGREP="$ac_path_EGREP"
6015 ac_path_EGREP_max=$ac_count
6016 fi
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6019 done
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021esac
6022
6023 $ac_path_EGREP_found && break 3
6024 done
6025 done
6026 done
6027IFS=$as_save_IFS
6028 if test -z "$ac_cv_path_EGREP"; then
6029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6030 fi
6031else
6032 ac_cv_path_EGREP=$EGREP
6033fi
6034
6035 fi
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6038$as_echo "$ac_cv_path_EGREP" >&6; }
6039 EGREP="$ac_cv_path_EGREP"
6040
6041
Elliott Hughes82be86d2017-09-20 17:00:17 -07006042
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6045$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048
6049#ifdef _AIX
6050 yes_this_is_aix
6051#endif
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058$as_echo "yes" >&6; }
6059 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6060
6061
6062else
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066
6067fi
6068rm -f conftest*
6069
6070
6071
6072
6073 #
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6075$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h. */
6078
6079
6080
6081int main (void)
6082{
6083
6084#ifdef _THREAD_SAFE
6085 int dummy=1;
6086#else
6087 force compilation error
6088#endif
6089
6090 ;
6091 return 0;
6092}
6093
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6098$as_echo "yes" >&6; }
6099 tmp_thread_safe_initially_defined="yes"
6100
6101else
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105 tmp_thread_safe_initially_defined="no"
6106
6107fi
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 #
6110 if test "$tmp_thread_safe_initially_defined" = "no"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6112$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6113
6114 case $host_os in
6115 aix[123].* | aix4.[012].*)
6116 tmp_need_thread_safe="no"
6117 ;;
6118 aix*)
6119 tmp_need_thread_safe="yes"
6120 ;;
6121 *)
6122 tmp_need_thread_safe="no"
6123 ;;
6124 esac
6125
6126 if test "$tmp_need_thread_safe" = "yes"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6128$as_echo "yes" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132 fi
6133 fi
6134 #
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6136$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6137 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6138 test "$tmp_need_thread_safe" = "yes"; then
6139
6140
6141$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6142
6143cat >>confdefs.h <<_EOF
6144#ifndef _THREAD_SAFE
6145# define _THREAD_SAFE
6146#endif
6147_EOF
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150$as_echo "yes" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154 fi
6155 #
6156
6157
6158 #
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6160$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164
6165
6166int main (void)
6167{
6168
6169#ifdef _REENTRANT
6170 int dummy=1;
6171#else
6172 force compilation error
6173#endif
6174
6175 ;
6176 return 0;
6177}
6178
6179_ACEOF
6180if ac_fn_c_try_compile "$LINENO"; then :
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183$as_echo "yes" >&6; }
6184 tmp_reentrant_initially_defined="yes"
6185
6186else
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190 tmp_reentrant_initially_defined="no"
6191
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 #
6195 if test "$tmp_reentrant_initially_defined" = "no"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6197$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6198
6199 case $host_os in
6200 solaris*)
6201 tmp_need_reentrant="yes"
6202 ;;
6203 *)
6204 tmp_need_reentrant="no"
6205 ;;
6206 esac
6207
6208 if test "$tmp_need_reentrant" = "no"; then
6209
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212
6213
6214#include <errno.h>
6215
6216int main (void)
6217{
6218
6219 if(0 != errno)
6220 return 1;
6221
6222 ;
6223 return 0;
6224}
6225
6226_ACEOF
6227if ac_fn_c_try_compile "$LINENO"; then :
6228
6229 tmp_errno="yes"
6230
6231else
6232
6233 tmp_errno="no"
6234
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 if test "$tmp_errno" = "yes"; then
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h. */
6240
6241
6242#include <errno.h>
6243
6244int main (void)
6245{
6246
6247#ifdef errno
6248 int dummy=1;
6249#else
6250 force compilation error
6251#endif
6252
6253 ;
6254 return 0;
6255}
6256
6257_ACEOF
6258if ac_fn_c_try_compile "$LINENO"; then :
6259
6260 tmp_errno="errno_macro_defined"
6261
6262else
6263
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h. */
6266
6267
6268#define _REENTRANT
6269#include <errno.h>
6270
6271int main (void)
6272{
6273
6274#ifdef errno
6275 int dummy=1;
6276#else
6277 force compilation error
6278#endif
6279
6280 ;
6281 return 0;
6282}
6283
6284_ACEOF
6285if ac_fn_c_try_compile "$LINENO"; then :
6286
6287 tmp_errno="errno_macro_needs_reentrant"
6288 tmp_need_reentrant="yes"
6289
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296
6297 fi
6298 if test "$tmp_need_reentrant" = "no"; then
6299
6300 if test "$tmp_need_reentrant" = "no"; then
6301
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h. */
6304
6305
6306#define gmtime_r innocuous_gmtime_r
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312#undef gmtime_r
6313#ifdef __cplusplus
6314extern "C"
6315#endif
6316char gmtime_r ();
6317#if defined __stub_gmtime_r || defined __stub___gmtime_r
6318choke me
6319#endif
6320
6321int main (void)
6322{
6323return gmtime_r ();
6324 ;
6325 return 0;
6326}
6327
6328_ACEOF
6329if ac_fn_c_try_link "$LINENO"; then :
6330
6331 tmp_gmtime_r="yes"
6332
6333else
6334
6335 tmp_gmtime_r="no"
6336
6337fi
6338rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6340 if test "$tmp_gmtime_r" = "yes"; then
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343
6344#include <sys/types.h>
6345#include <time.h>
6346
6347_ACEOF
6348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6349 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6350
6351 tmp_gmtime_r="proto_declared"
6352
6353else
6354
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357
6358#define _REENTRANT
6359#include <sys/types.h>
6360#include <time.h>
6361
6362_ACEOF
6363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6364 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6365
6366 tmp_gmtime_r="proto_needs_reentrant"
6367 tmp_need_reentrant="yes"
6368
6369fi
6370rm -f conftest*
6371
6372
6373fi
6374rm -f conftest*
6375
6376 fi
6377
6378 fi
6379 if test "$tmp_need_reentrant" = "no"; then
6380
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h. */
6383
6384
6385#define localtime_r innocuous_localtime_r
6386#ifdef __STDC__
6387# include <limits.h>
6388#else
6389# include <assert.h>
6390#endif
6391#undef localtime_r
6392#ifdef __cplusplus
6393extern "C"
6394#endif
6395char localtime_r ();
6396#if defined __stub_localtime_r || defined __stub___localtime_r
6397choke me
6398#endif
6399
6400int main (void)
6401{
6402return localtime_r ();
6403 ;
6404 return 0;
6405}
6406
6407_ACEOF
6408if ac_fn_c_try_link "$LINENO"; then :
6409
6410 tmp_localtime_r="yes"
6411
6412else
6413
6414 tmp_localtime_r="no"
6415
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 if test "$tmp_localtime_r" = "yes"; then
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422
6423#include <sys/types.h>
6424#include <time.h>
6425
6426_ACEOF
6427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6428 $EGREP "localtime_r" >/dev/null 2>&1; then :
6429
6430 tmp_localtime_r="proto_declared"
6431
6432else
6433
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h. */
6436
6437#define _REENTRANT
6438#include <sys/types.h>
6439#include <time.h>
6440
6441_ACEOF
6442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "localtime_r" >/dev/null 2>&1; then :
6444
6445 tmp_localtime_r="proto_needs_reentrant"
6446 tmp_need_reentrant="yes"
6447
6448fi
6449rm -f conftest*
6450
6451
6452fi
6453rm -f conftest*
6454
6455 fi
6456
6457 fi
6458 if test "$tmp_need_reentrant" = "no"; then
6459
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462
6463
6464#define strerror_r innocuous_strerror_r
6465#ifdef __STDC__
6466# include <limits.h>
6467#else
6468# include <assert.h>
6469#endif
6470#undef strerror_r
6471#ifdef __cplusplus
6472extern "C"
6473#endif
6474char strerror_r ();
6475#if defined __stub_strerror_r || defined __stub___strerror_r
6476choke me
6477#endif
6478
6479int main (void)
6480{
6481return strerror_r ();
6482 ;
6483 return 0;
6484}
6485
6486_ACEOF
6487if ac_fn_c_try_link "$LINENO"; then :
6488
6489 tmp_strerror_r="yes"
6490
6491else
6492
6493 tmp_strerror_r="no"
6494
6495fi
6496rm -f core conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6498 if test "$tmp_strerror_r" = "yes"; then
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h. */
6501
6502#include <sys/types.h>
6503#include <string.h>
6504
6505_ACEOF
6506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 $EGREP "strerror_r" >/dev/null 2>&1; then :
6508
6509 tmp_strerror_r="proto_declared"
6510
6511else
6512
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h. */
6515
6516#define _REENTRANT
6517#include <sys/types.h>
6518#include <string.h>
6519
6520_ACEOF
6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "strerror_r" >/dev/null 2>&1; then :
6523
6524 tmp_strerror_r="proto_needs_reentrant"
6525 tmp_need_reentrant="yes"
6526
6527fi
6528rm -f conftest*
6529
6530
6531fi
6532rm -f conftest*
6533
6534 fi
6535
6536 fi
6537 if test "$tmp_need_reentrant" = "no"; then
6538
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h. */
6541
6542
6543#define strtok_r innocuous_strtok_r
6544#ifdef __STDC__
6545# include <limits.h>
6546#else
6547# include <assert.h>
6548#endif
6549#undef strtok_r
6550#ifdef __cplusplus
6551extern "C"
6552#endif
6553char strtok_r ();
6554#if defined __stub_strtok_r || defined __stub___strtok_r
6555choke me
6556#endif
6557
6558int main (void)
6559{
6560return strtok_r ();
6561 ;
6562 return 0;
6563}
6564
6565_ACEOF
6566if ac_fn_c_try_link "$LINENO"; then :
6567
6568 tmp_strtok_r="yes"
6569
6570else
6571
6572 tmp_strtok_r="no"
6573
6574fi
6575rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577 if test "$tmp_strtok_r" = "yes"; then
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h. */
6580
6581#include <sys/types.h>
6582#include <string.h>
6583
6584_ACEOF
6585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 $EGREP "strtok_r" >/dev/null 2>&1; then :
6587
6588 tmp_strtok_r="proto_declared"
6589
6590else
6591
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h. */
6594
6595#define _REENTRANT
6596#include <sys/types.h>
6597#include <string.h>
6598
6599_ACEOF
6600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "strtok_r" >/dev/null 2>&1; then :
6602
6603 tmp_strtok_r="proto_needs_reentrant"
6604 tmp_need_reentrant="yes"
6605
6606fi
6607rm -f conftest*
6608
6609
6610fi
6611rm -f conftest*
6612
6613 fi
6614
6615 fi
6616 if test "$tmp_need_reentrant" = "no"; then
6617
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
6620
6621
6622#define inet_ntoa_r innocuous_inet_ntoa_r
6623#ifdef __STDC__
6624# include <limits.h>
6625#else
6626# include <assert.h>
6627#endif
6628#undef inet_ntoa_r
6629#ifdef __cplusplus
6630extern "C"
6631#endif
6632char inet_ntoa_r ();
6633#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6634choke me
6635#endif
6636
6637int main (void)
6638{
6639return inet_ntoa_r ();
6640 ;
6641 return 0;
6642}
6643
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646
6647 tmp_inet_ntoa_r="yes"
6648
6649else
6650
6651 tmp_inet_ntoa_r="no"
6652
6653fi
6654rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 if test "$tmp_inet_ntoa_r" = "yes"; then
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h. */
6659
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_declared"
6670
6671else
6672
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676#define _REENTRANT
6677#include <sys/types.h>
6678#include <sys/socket.h>
6679#include <netinet/in.h>
6680#include <arpa/inet.h>
6681
6682_ACEOF
6683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6685
6686 tmp_inet_ntoa_r="proto_needs_reentrant"
6687 tmp_need_reentrant="yes"
6688
6689fi
6690rm -f conftest*
6691
6692
6693fi
6694rm -f conftest*
6695
6696 fi
6697
6698 fi
6699 if test "$tmp_need_reentrant" = "no"; then
6700
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703
6704
6705#define gethostbyaddr_r innocuous_gethostbyaddr_r
6706#ifdef __STDC__
6707# include <limits.h>
6708#else
6709# include <assert.h>
6710#endif
6711#undef gethostbyaddr_r
6712#ifdef __cplusplus
6713extern "C"
6714#endif
6715char gethostbyaddr_r ();
6716#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6717choke me
6718#endif
6719
6720int main (void)
6721{
6722return gethostbyaddr_r ();
6723 ;
6724 return 0;
6725}
6726
6727_ACEOF
6728if ac_fn_c_try_link "$LINENO"; then :
6729
6730 tmp_gethostbyaddr_r="yes"
6731
6732else
6733
6734 tmp_gethostbyaddr_r="no"
6735
6736fi
6737rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 if test "$tmp_gethostbyaddr_r" = "yes"; then
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h. */
6742
6743#include <sys/types.h>
6744#include <netdb.h>
6745
6746_ACEOF
6747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6749
6750 tmp_gethostbyaddr_r="proto_declared"
6751
6752else
6753
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h. */
6756
6757#define _REENTRANT
6758#include <sys/types.h>
6759#include <netdb.h>
6760
6761_ACEOF
6762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6764
6765 tmp_gethostbyaddr_r="proto_needs_reentrant"
6766 tmp_need_reentrant="yes"
6767
6768fi
6769rm -f conftest*
6770
6771
6772fi
6773rm -f conftest*
6774
6775 fi
6776
6777 fi
6778 if test "$tmp_need_reentrant" = "no"; then
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h. */
6782
6783
6784#define gethostbyname_r innocuous_gethostbyname_r
6785#ifdef __STDC__
6786# include <limits.h>
6787#else
6788# include <assert.h>
6789#endif
6790#undef gethostbyname_r
6791#ifdef __cplusplus
6792extern "C"
6793#endif
6794char gethostbyname_r ();
6795#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6796choke me
6797#endif
6798
6799int main (void)
6800{
6801return gethostbyname_r ();
6802 ;
6803 return 0;
6804}
6805
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"; then :
6808
6809 tmp_gethostbyname_r="yes"
6810
6811else
6812
6813 tmp_gethostbyname_r="no"
6814
6815fi
6816rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 if test "$tmp_gethostbyname_r" = "yes"; then
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h. */
6821
6822#include <sys/types.h>
6823#include <netdb.h>
6824
6825_ACEOF
6826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6827 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6828
6829 tmp_gethostbyname_r="proto_declared"
6830
6831else
6832
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h. */
6835
6836#define _REENTRANT
6837#include <sys/types.h>
6838#include <netdb.h>
6839
6840_ACEOF
6841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6843
6844 tmp_gethostbyname_r="proto_needs_reentrant"
6845 tmp_need_reentrant="yes"
6846
6847fi
6848rm -f conftest*
6849
6850
6851fi
6852rm -f conftest*
6853
6854 fi
6855
6856 fi
6857 if test "$tmp_need_reentrant" = "no"; then
6858
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860/* end confdefs.h. */
6861
6862
6863#define getprotobyname_r innocuous_getprotobyname_r
6864#ifdef __STDC__
6865# include <limits.h>
6866#else
6867# include <assert.h>
6868#endif
6869#undef getprotobyname_r
6870#ifdef __cplusplus
6871extern "C"
6872#endif
6873char getprotobyname_r ();
6874#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6875choke me
6876#endif
6877
6878int main (void)
6879{
6880return getprotobyname_r ();
6881 ;
6882 return 0;
6883}
6884
6885_ACEOF
6886if ac_fn_c_try_link "$LINENO"; then :
6887
6888 tmp_getprotobyname_r="yes"
6889
6890else
6891
6892 tmp_getprotobyname_r="no"
6893
6894fi
6895rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 if test "$tmp_getprotobyname_r" = "yes"; then
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h. */
6900
6901#include <sys/types.h>
6902#include <netdb.h>
6903
6904_ACEOF
6905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6907
6908 tmp_getprotobyname_r="proto_declared"
6909
6910else
6911
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h. */
6914
6915#define _REENTRANT
6916#include <sys/types.h>
6917#include <netdb.h>
6918
6919_ACEOF
6920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6922
6923 tmp_getprotobyname_r="proto_needs_reentrant"
6924 tmp_need_reentrant="yes"
6925
6926fi
6927rm -f conftest*
6928
6929
6930fi
6931rm -f conftest*
6932
6933 fi
6934
6935 fi
6936 if test "$tmp_need_reentrant" = "no"; then
6937
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h. */
6940
6941
6942#define getservbyport_r innocuous_getservbyport_r
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
6948#undef getservbyport_r
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char getservbyport_r ();
6953#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6954choke me
6955#endif
6956
6957int main (void)
6958{
6959return getservbyport_r ();
6960 ;
6961 return 0;
6962}
6963
6964_ACEOF
6965if ac_fn_c_try_link "$LINENO"; then :
6966
6967 tmp_getservbyport_r="yes"
6968
6969else
6970
6971 tmp_getservbyport_r="no"
6972
6973fi
6974rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 if test "$tmp_getservbyport_r" = "yes"; then
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h. */
6979
6980#include <sys/types.h>
6981#include <netdb.h>
6982
6983_ACEOF
6984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6986
6987 tmp_getservbyport_r="proto_declared"
6988
6989else
6990
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h. */
6993
6994#define _REENTRANT
6995#include <sys/types.h>
6996#include <netdb.h>
6997
6998_ACEOF
6999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7001
7002 tmp_getservbyport_r="proto_needs_reentrant"
7003 tmp_need_reentrant="yes"
7004
7005fi
7006rm -f conftest*
7007
7008
7009fi
7010rm -f conftest*
7011
7012 fi
7013
7014 fi
7015
7016 fi
7017 if test "$tmp_need_reentrant" = "yes"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019$as_echo "yes" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023 fi
7024 fi
7025 #
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7027$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7028 if test "$tmp_reentrant_initially_defined" = "yes" ||
7029 test "$tmp_need_reentrant" = "yes"; then
7030
7031
7032$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7033
7034cat >>confdefs.h <<_EOF
7035#ifndef _REENTRANT
7036# define _REENTRANT
7037#endif
7038_EOF
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7041$as_echo "yes" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
7045 fi
7046 #
7047
7048
7049# Check whether --enable-largefile was given.
7050if test "${enable_largefile+set}" = set; then :
7051 enableval=$enable_largefile;
7052fi
7053
7054if test "$enable_largefile" != no; then
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7057$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7058if ${ac_cv_sys_largefile_CC+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060else
7061 ac_cv_sys_largefile_CC=no
7062 if test "$GCC" != yes; then
7063 ac_save_CC=$CC
7064 while :; do
7065 # IRIX 6.2 and later do not support large files by default,
7066 # so use the C compiler's -n32 option if that helps.
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069#include <sys/types.h>
7070 /* Check that off_t can represent 2**63 - 1 correctly.
7071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072 since some C++ compilers masquerading as C compilers
7073 incorrectly reject 9223372036854775807. */
7074#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076 && LARGE_OFF_T % 2147483647 == 1)
7077 ? 1 : -1];
7078int main (void)
7079{
7080
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 break
7087fi
7088rm -f core conftest.err conftest.$ac_objext
7089 CC="$CC -n32"
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 ac_cv_sys_largefile_CC=' -n32'; break
7092fi
7093rm -f core conftest.err conftest.$ac_objext
7094 break
7095 done
7096 CC=$ac_save_CC
7097 rm -f conftest.$ac_ext
7098 fi
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7101$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7102 if test "$ac_cv_sys_largefile_CC" != no; then
7103 CC=$CC$ac_cv_sys_largefile_CC
7104 fi
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7107$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7108if ${ac_cv_sys_file_offset_bits+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110else
7111 while :; do
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h. */
7114#include <sys/types.h>
7115 /* Check that off_t can represent 2**63 - 1 correctly.
7116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7117 since some C++ compilers masquerading as C compilers
7118 incorrectly reject 9223372036854775807. */
7119#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7121 && LARGE_OFF_T % 2147483647 == 1)
7122 ? 1 : -1];
7123int main (void)
7124{
7125
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"; then :
7131 ac_cv_sys_file_offset_bits=no; break
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h. */
7136#define _FILE_OFFSET_BITS 64
7137#include <sys/types.h>
7138 /* Check that off_t can represent 2**63 - 1 correctly.
7139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7140 since some C++ compilers masquerading as C compilers
7141 incorrectly reject 9223372036854775807. */
7142#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7144 && LARGE_OFF_T % 2147483647 == 1)
7145 ? 1 : -1];
7146int main (void)
7147{
7148
7149 ;
7150 return 0;
7151}
7152_ACEOF
7153if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_sys_file_offset_bits=64; break
7155fi
7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_cv_sys_file_offset_bits=unknown
7158 break
7159done
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7162$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7163case $ac_cv_sys_file_offset_bits in #(
7164 no | unknown) ;;
7165 *)
7166cat >>confdefs.h <<_ACEOF
7167#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7168_ACEOF
7169;;
7170esac
7171rm -rf conftest*
7172 if test $ac_cv_sys_file_offset_bits = unknown; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7174$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7175if ${ac_cv_sys_large_files+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 while :; do
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181#include <sys/types.h>
7182 /* Check that off_t can represent 2**63 - 1 correctly.
7183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7184 since some C++ compilers masquerading as C compilers
7185 incorrectly reject 9223372036854775807. */
7186#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7188 && LARGE_OFF_T % 2147483647 == 1)
7189 ? 1 : -1];
7190int main (void)
7191{
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_compile "$LINENO"; then :
7198 ac_cv_sys_large_files=no; break
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h. */
7203#define _LARGE_FILES 1
7204#include <sys/types.h>
7205 /* Check that off_t can represent 2**63 - 1 correctly.
7206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7207 since some C++ compilers masquerading as C compilers
7208 incorrectly reject 9223372036854775807. */
7209#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7211 && LARGE_OFF_T % 2147483647 == 1)
7212 ? 1 : -1];
7213int main (void)
7214{
7215
7216 ;
7217 return 0;
7218}
7219_ACEOF
7220if ac_fn_c_try_compile "$LINENO"; then :
7221 ac_cv_sys_large_files=1; break
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 ac_cv_sys_large_files=unknown
7225 break
7226done
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7229$as_echo "$ac_cv_sys_large_files" >&6; }
7230case $ac_cv_sys_large_files in #(
7231 no | unknown) ;;
7232 *)
7233cat >>confdefs.h <<_ACEOF
7234#define _LARGE_FILES $ac_cv_sys_large_files
7235_ACEOF
7236;;
7237esac
7238rm -rf conftest*
7239 fi
7240
7241
7242fi
7243
7244
7245case `pwd` in
7246 *\ * | *\ *)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7248$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7249esac
7250
7251
7252
7253macro_version='2.4.6'
7254macro_revision='2.4.6'
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268ltmain=$ac_aux_dir/ltmain.sh
7269
7270# Backslashify metacharacters that are still active within
7271# double-quoted strings.
7272sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7273
7274# Same as above, but do not quote variable references.
7275double_quote_subst='s/\(["`\\]\)/\\\1/g'
7276
7277# Sed substitution to delay expansion of an escaped shell variable in a
7278# double_quote_subst'ed string.
7279delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7280
7281# Sed substitution to delay expansion of an escaped single quote.
7282delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7283
7284# Sed substitution to avoid accidental globbing in evaled expressions
7285no_glob_subst='s/\*/\\\*/g'
7286
7287ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7288ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7289ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7290
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7292$as_echo_n "checking how to print strings... " >&6; }
7293# Test print first, because it will be a builtin if present.
7294if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7295 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7296 ECHO='print -r --'
7297elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7298 ECHO='printf %s\n'
7299else
7300 # Use this function as a fallback that always works.
7301 func_fallback_echo ()
7302 {
7303 eval 'cat <<_LTECHO_EOF
7304$1
7305_LTECHO_EOF'
7306 }
7307 ECHO='func_fallback_echo'
7308fi
7309
7310# func_echo_all arg...
7311# Invoke $ECHO with all args, space-separated.
7312func_echo_all ()
7313{
7314 $ECHO ""
7315}
7316
7317case $ECHO in
7318 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7319$as_echo "printf" >&6; } ;;
7320 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7321$as_echo "print -r" >&6; } ;;
7322 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7323$as_echo "cat" >&6; } ;;
7324esac
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7340$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7341if ${ac_cv_path_SED+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343else
7344 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7345 for ac_i in 1 2 3 4 5 6 7; do
7346 ac_script="$ac_script$as_nl$ac_script"
7347 done
7348 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7349 { ac_script=; unset ac_script;}
7350 if test -z "$SED"; then
7351 ac_path_SED_found=false
7352 # Loop through the user's path and test for each of PROGNAME-LIST
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_prog in sed gsed; do
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7361 as_fn_executable_p "$ac_path_SED" || continue
7362# Check for GNU ac_path_SED and select it if it is found.
7363 # Check for GNU $ac_path_SED
7364case `"$ac_path_SED" --version 2>&1` in
7365*GNU*)
7366 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7367*)
7368 ac_count=0
7369 $as_echo_n 0123456789 >"conftest.in"
7370 while :
7371 do
7372 cat "conftest.in" "conftest.in" >"conftest.tmp"
7373 mv "conftest.tmp" "conftest.in"
7374 cp "conftest.in" "conftest.nl"
7375 $as_echo '' >> "conftest.nl"
7376 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7378 as_fn_arith $ac_count + 1 && ac_count=$as_val
7379 if test $ac_count -gt ${ac_path_SED_max-0}; then
7380 # Best one so far, save it but keep looking for a better one
7381 ac_cv_path_SED="$ac_path_SED"
7382 ac_path_SED_max=$ac_count
7383 fi
7384 # 10*(2^10) chars as input seems more than enough
7385 test $ac_count -gt 10 && break
7386 done
7387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7388esac
7389
7390 $ac_path_SED_found && break 3
7391 done
7392 done
7393 done
7394IFS=$as_save_IFS
7395 if test -z "$ac_cv_path_SED"; then
7396 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7397 fi
7398else
7399 ac_cv_path_SED=$SED
7400fi
7401
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7404$as_echo "$ac_cv_path_SED" >&6; }
7405 SED="$ac_cv_path_SED"
7406 rm -f conftest.sed
7407
7408test -z "$SED" && SED=sed
7409Xsed="$SED -e 1s/^X//"
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7422$as_echo_n "checking for fgrep... " >&6; }
7423if ${ac_cv_path_FGREP+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7427 then ac_cv_path_FGREP="$GREP -F"
7428 else
7429 if test -z "$FGREP"; then
7430 ac_path_FGREP_found=false
7431 # Loop through the user's path and test for each of PROGNAME-LIST
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_prog in fgrep; do
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7440 as_fn_executable_p "$ac_path_FGREP" || continue
7441# Check for GNU ac_path_FGREP and select it if it is found.
7442 # Check for GNU $ac_path_FGREP
7443case `"$ac_path_FGREP" --version 2>&1` in
7444*GNU*)
7445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7446*)
7447 ac_count=0
7448 $as_echo_n 0123456789 >"conftest.in"
7449 while :
7450 do
7451 cat "conftest.in" "conftest.in" >"conftest.tmp"
7452 mv "conftest.tmp" "conftest.in"
7453 cp "conftest.in" "conftest.nl"
7454 $as_echo 'FGREP' >> "conftest.nl"
7455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7457 as_fn_arith $ac_count + 1 && ac_count=$as_val
7458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7459 # Best one so far, save it but keep looking for a better one
7460 ac_cv_path_FGREP="$ac_path_FGREP"
7461 ac_path_FGREP_max=$ac_count
7462 fi
7463 # 10*(2^10) chars as input seems more than enough
7464 test $ac_count -gt 10 && break
7465 done
7466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7467esac
7468
7469 $ac_path_FGREP_found && break 3
7470 done
7471 done
7472 done
7473IFS=$as_save_IFS
7474 if test -z "$ac_cv_path_FGREP"; then
7475 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7476 fi
7477else
7478 ac_cv_path_FGREP=$FGREP
7479fi
7480
7481 fi
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7484$as_echo "$ac_cv_path_FGREP" >&6; }
7485 FGREP="$ac_cv_path_FGREP"
7486
7487
7488test -z "$GREP" && GREP=grep
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508# Check whether --with-gnu-ld was given.
7509if test "${with_gnu_ld+set}" = set; then :
7510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7511else
7512 with_gnu_ld=no
7513fi
7514
7515ac_prog=ld
7516if test yes = "$GCC"; then
7517 # Check if gcc -print-prog-name=ld gives a path.
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7519$as_echo_n "checking for ld used by $CC... " >&6; }
7520 case $host in
7521 *-*-mingw*)
7522 # gcc leaves a trailing carriage return, which upsets mingw
7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7524 *)
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7526 esac
7527 case $ac_prog in
7528 # Accept absolute paths.
7529 [\\/]* | ?:[\\/]*)
7530 re_direlt='/[^/][^/]*/\.\./'
7531 # Canonicalize the pathname of ld
7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7535 done
7536 test -z "$LD" && LD=$ac_prog
7537 ;;
7538 "")
7539 # If it fails, then pretend we aren't using GCC.
7540 ac_prog=ld
7541 ;;
7542 *)
7543 # If it is relative, then search for the first ld in PATH.
7544 with_gnu_ld=unknown
7545 ;;
7546 esac
7547elif test yes = "$with_gnu_ld"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7549$as_echo_n "checking for GNU ld... " >&6; }
7550else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7552$as_echo_n "checking for non-GNU ld... " >&6; }
7553fi
7554if ${lt_cv_path_LD+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556else
7557 if test -z "$LD"; then
7558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7559 for ac_dir in $PATH; do
7560 IFS=$lt_save_ifs
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7563 lt_cv_path_LD=$ac_dir/$ac_prog
7564 # Check to see if the program is GNU ld. I'd rather use --version,
7565 # but apparently some variants of GNU ld only accept -v.
7566 # Break only if it was the GNU/non-GNU ld that we prefer.
7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7568 *GNU* | *'with BFD'*)
7569 test no != "$with_gnu_ld" && break
7570 ;;
7571 *)
7572 test yes != "$with_gnu_ld" && break
7573 ;;
7574 esac
7575 fi
7576 done
7577 IFS=$lt_save_ifs
7578else
7579 lt_cv_path_LD=$LD # Let the user override the test with a path.
7580fi
7581fi
7582
7583LD=$lt_cv_path_LD
7584if test -n "$LD"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7586$as_echo "$LD" >&6; }
7587else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7594if ${lt_cv_prog_gnu_ld+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596else
7597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7598case `$LD -v 2>&1 </dev/null` in
7599*GNU* | *'with BFD'*)
7600 lt_cv_prog_gnu_ld=yes
7601 ;;
7602*)
7603 lt_cv_prog_gnu_ld=no
7604 ;;
7605esac
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7608$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7609with_gnu_ld=$lt_cv_prog_gnu_ld
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7620$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7621if ${lt_cv_path_NM+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$NM"; then
7625 # Let the user override the test.
7626 lt_cv_path_NM=$NM
7627else
7628 lt_nm_to_check=${ac_tool_prefix}nm
7629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7630 lt_nm_to_check="$lt_nm_to_check nm"
7631 fi
7632 for lt_tmp_nm in $lt_nm_to_check; do
7633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7635 IFS=$lt_save_ifs
7636 test -z "$ac_dir" && ac_dir=.
7637 tmp_nm=$ac_dir/$lt_tmp_nm
7638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7639 # Check to see if the nm accepts a BSD-compat flag.
7640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7641 # nm: unknown option "B" ignored
7642 # Tru64's nm complains that /dev/null is an invalid object file
7643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7644 case $build_os in
7645 mingw*) lt_bad_file=conftest.nm/nofile ;;
7646 *) lt_bad_file=/dev/null ;;
7647 esac
7648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7649 *$lt_bad_file* | *'Invalid file or object type'*)
7650 lt_cv_path_NM="$tmp_nm -B"
7651 break 2
7652 ;;
7653 *)
7654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7655 */dev/null*)
7656 lt_cv_path_NM="$tmp_nm -p"
7657 break 2
7658 ;;
7659 *)
7660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7661 continue # so that we can try to find one that supports BSD flags
7662 ;;
7663 esac
7664 ;;
7665 esac
7666 fi
7667 done
7668 IFS=$lt_save_ifs
7669 done
7670 : ${lt_cv_path_NM=no}
7671fi
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7674$as_echo "$lt_cv_path_NM" >&6; }
7675if test no != "$lt_cv_path_NM"; then
7676 NM=$lt_cv_path_NM
7677else
7678 # Didn't find any BSD compatible name lister, look for dumpbin.
7679 if test -n "$DUMPBIN"; then :
7680 # Let the user override the test.
7681 else
7682 if test -n "$ac_tool_prefix"; then
7683 for ac_prog in dumpbin "link -dump"
7684 do
7685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688$as_echo_n "checking for $ac_word... " >&6; }
7689if ${ac_cv_prog_DUMPBIN+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691else
7692 if test -n "$DUMPBIN"; then
7693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707 done
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7712DUMPBIN=$ac_cv_prog_DUMPBIN
7713if test -n "$DUMPBIN"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7715$as_echo "$DUMPBIN" >&6; }
7716else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719fi
7720
7721
7722 test -n "$DUMPBIN" && break
7723 done
7724fi
7725if test -z "$DUMPBIN"; then
7726 ac_ct_DUMPBIN=$DUMPBIN
7727 for ac_prog in dumpbin "link -dump"
7728do
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730set dummy $ac_prog; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 if test -n "$ac_ct_DUMPBIN"; then
7737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751 done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7757if test -n "$ac_ct_DUMPBIN"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7759$as_echo "$ac_ct_DUMPBIN" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765
7766 test -n "$ac_ct_DUMPBIN" && break
7767done
7768
7769 if test "x$ac_ct_DUMPBIN" = x; then
7770 DUMPBIN=":"
7771 else
7772 case $cross_compiling:$ac_tool_warned in
7773yes:)
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776ac_tool_warned=yes ;;
7777esac
7778 DUMPBIN=$ac_ct_DUMPBIN
7779 fi
7780fi
7781
7782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7783 *COFF*)
7784 DUMPBIN="$DUMPBIN -symbols -headers"
7785 ;;
7786 *)
7787 DUMPBIN=:
7788 ;;
7789 esac
7790 fi
7791
7792 if test : != "$DUMPBIN"; then
7793 NM=$DUMPBIN
7794 fi
7795fi
7796test -z "$NM" && NM=nm
7797
7798
7799
7800
7801
7802
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7804$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7805if ${lt_cv_nm_interface+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807else
7808 lt_cv_nm_interface="BSD nm"
7809 echo "int some_variable = 0;" > conftest.$ac_ext
7810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7811 (eval "$ac_compile" 2>conftest.err)
7812 cat conftest.err >&5
7813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7815 cat conftest.err >&5
7816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7817 cat conftest.out >&5
7818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7819 lt_cv_nm_interface="MS dumpbin"
7820 fi
7821 rm -f conftest*
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7824$as_echo "$lt_cv_nm_interface" >&6; }
7825
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7827$as_echo_n "checking whether ln -s works... " >&6; }
7828LN_S=$as_ln_s
7829if test "$LN_S" = "ln -s"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7831$as_echo "yes" >&6; }
7832else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7834$as_echo "no, using $LN_S" >&6; }
7835fi
7836
7837# find the maximum length of command line arguments
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7840if ${lt_cv_sys_max_cmd_len+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842else
7843 i=0
7844 teststring=ABCD
7845
7846 case $build_os in
7847 msdosdjgpp*)
7848 # On DJGPP, this test can blow up pretty badly due to problems in libc
7849 # (any single argument exceeding 2000 bytes causes a buffer overrun
7850 # during glob expansion). Even if it were fixed, the result of this
7851 # check would be larger than it should be.
7852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7853 ;;
7854
7855 gnu*)
7856 # Under GNU Hurd, this test is not required because there is
7857 # no limit to the length of command line arguments.
7858 # Libtool will interpret -1 as no limit whatsoever
7859 lt_cv_sys_max_cmd_len=-1;
7860 ;;
7861
7862 cygwin* | mingw* | cegcc*)
7863 # On Win9x/ME, this test blows up -- it succeeds, but takes
7864 # about 5 minutes as the teststring grows exponentially.
7865 # Worse, since 9x/ME are not pre-emptively multitasking,
7866 # you end up with a "frozen" computer, even though with patience
7867 # the test eventually succeeds (with a max line length of 256k).
7868 # Instead, let's just punt: use the minimum linelength reported by
7869 # all of the supported platforms: 8192 (on NT/2K/XP).
7870 lt_cv_sys_max_cmd_len=8192;
7871 ;;
7872
7873 mint*)
7874 # On MiNT this can take a long time and run out of memory.
7875 lt_cv_sys_max_cmd_len=8192;
7876 ;;
7877
7878 amigaos*)
7879 # On AmigaOS with pdksh, this test takes hours, literally.
7880 # So we just punt and use a minimum line length of 8192.
7881 lt_cv_sys_max_cmd_len=8192;
7882 ;;
7883
7884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7885 # This has been around since 386BSD, at least. Likely further.
7886 if test -x /sbin/sysctl; then
7887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7888 elif test -x /usr/sbin/sysctl; then
7889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7890 else
7891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7892 fi
7893 # And add a safety zone
7894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7896 ;;
7897
7898 interix*)
7899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7900 lt_cv_sys_max_cmd_len=196608
7901 ;;
7902
7903 os2*)
7904 # The test takes a long time on OS/2.
7905 lt_cv_sys_max_cmd_len=8192
7906 ;;
7907
7908 osf*)
7909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7911 # nice to cause kernel panics so lets avoid the loop below.
7912 # First set a reasonable default.
7913 lt_cv_sys_max_cmd_len=16384
7914 #
7915 if test -x /sbin/sysconfig; then
7916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7917 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7918 esac
7919 fi
7920 ;;
7921 sco3.2v5*)
7922 lt_cv_sys_max_cmd_len=102400
7923 ;;
7924 sysv5* | sco5v6* | sysv4.2uw2*)
7925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7926 if test -n "$kargmax"; then
7927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7928 else
7929 lt_cv_sys_max_cmd_len=32768
7930 fi
7931 ;;
7932 *)
7933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7934 if test -n "$lt_cv_sys_max_cmd_len" && \
7935 test undefined != "$lt_cv_sys_max_cmd_len"; then
7936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7938 else
7939 # Make teststring a little bigger before we do anything with it.
7940 # a 1K string should be a reasonable start.
7941 for i in 1 2 3 4 5 6 7 8; do
7942 teststring=$teststring$teststring
7943 done
7944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7945 # If test is not a shell built-in, we'll probably end up computing a
7946 # maximum length that is only half of the actual maximum length, but
7947 # we can't tell.
7948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7949 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7950 test 17 != "$i" # 1/2 MB should be enough
7951 do
7952 i=`expr $i + 1`
7953 teststring=$teststring$teststring
7954 done
7955 # Only check the string length outside the loop.
7956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7957 teststring=
7958 # Add a significant safety factor because C++ compilers can tack on
7959 # massive amounts of additional arguments before passing them to the
7960 # linker. It appears as though 1/2 is a usable value.
7961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7962 fi
7963 ;;
7964 esac
7965
7966fi
7967
7968if test -n "$lt_cv_sys_max_cmd_len"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7970$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7973$as_echo "none" >&6; }
7974fi
7975max_cmd_len=$lt_cv_sys_max_cmd_len
7976
7977
7978
7979
7980
7981
7982: ${CP="cp -f"}
7983: ${MV="mv -f"}
7984: ${RM="rm -f"}
7985
7986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7987 lt_unset=unset
7988else
7989 lt_unset=false
7990fi
7991
7992
7993
7994
7995
7996# test EBCDIC or ASCII
7997case `echo X|tr X '\101'` in
7998 A) # ASCII based system
7999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8000 lt_SP2NL='tr \040 \012'
8001 lt_NL2SP='tr \015\012 \040\040'
8002 ;;
8003 *) # EBCDIC based system
8004 lt_SP2NL='tr \100 \n'
8005 lt_NL2SP='tr \r\n \100\100'
8006 ;;
8007esac
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8018$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8019if ${lt_cv_to_host_file_cmd+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021else
8022 case $host in
8023 *-*-mingw* )
8024 case $build in
8025 *-*-mingw* ) # actually msys
8026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8027 ;;
8028 *-*-cygwin* )
8029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8030 ;;
8031 * ) # otherwise, assume *nix
8032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8033 ;;
8034 esac
8035 ;;
8036 *-*-cygwin* )
8037 case $build in
8038 *-*-mingw* ) # actually msys
8039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8040 ;;
8041 *-*-cygwin* )
8042 lt_cv_to_host_file_cmd=func_convert_file_noop
8043 ;;
8044 * ) # otherwise, assume *nix
8045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8046 ;;
8047 esac
8048 ;;
8049 * ) # unhandled hosts (and "normal" native builds)
8050 lt_cv_to_host_file_cmd=func_convert_file_noop
8051 ;;
8052esac
8053
8054fi
8055
8056to_host_file_cmd=$lt_cv_to_host_file_cmd
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8058$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8059
8060
8061
8062
8063
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8065$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8066if ${lt_cv_to_tool_file_cmd+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068else
8069 #assume ordinary cross tools, or native build.
8070lt_cv_to_tool_file_cmd=func_convert_file_noop
8071case $host in
8072 *-*-mingw* )
8073 case $build in
8074 *-*-mingw* ) # actually msys
8075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8076 ;;
8077 esac
8078 ;;
8079esac
8080
8081fi
8082
8083to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8085$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8086
8087
8088
8089
8090
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8092$as_echo_n "checking for $LD option to reload object files... " >&6; }
8093if ${lt_cv_ld_reload_flag+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 lt_cv_ld_reload_flag='-r'
8097fi
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8099$as_echo "$lt_cv_ld_reload_flag" >&6; }
8100reload_flag=$lt_cv_ld_reload_flag
8101case $reload_flag in
8102"" | " "*) ;;
8103*) reload_flag=" $reload_flag" ;;
8104esac
8105reload_cmds='$LD$reload_flag -o $output$reload_objs'
8106case $host_os in
8107 cygwin* | mingw* | pw32* | cegcc*)
8108 if test yes != "$GCC"; then
8109 reload_cmds=false
8110 fi
8111 ;;
8112 darwin*)
8113 if test yes = "$GCC"; then
8114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8115 else
8116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8117 fi
8118 ;;
8119esac
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8131set dummy ${ac_tool_prefix}objdump; ac_word=$2
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if ${ac_cv_prog_OBJDUMP+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136else
8137 if test -n "$OBJDUMP"; then
8138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152 done
8153IFS=$as_save_IFS
8154
8155fi
8156fi
8157OBJDUMP=$ac_cv_prog_OBJDUMP
8158if test -n "$OBJDUMP"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8160$as_echo "$OBJDUMP" >&6; }
8161else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165
8166
8167fi
8168if test -z "$ac_cv_prog_OBJDUMP"; then
8169 ac_ct_OBJDUMP=$OBJDUMP
8170 # Extract the first word of "objdump", so it can be a program name with args.
8171set dummy objdump; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 if test -n "$ac_ct_OBJDUMP"; then
8178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192 done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8198if test -n "$ac_ct_OBJDUMP"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8200$as_echo "$ac_ct_OBJDUMP" >&6; }
8201else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206 if test "x$ac_ct_OBJDUMP" = x; then
8207 OBJDUMP="false"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210yes:)
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213ac_tool_warned=yes ;;
8214esac
8215 OBJDUMP=$ac_ct_OBJDUMP
8216 fi
8217else
8218 OBJDUMP="$ac_cv_prog_OBJDUMP"
8219fi
8220
8221test -z "$OBJDUMP" && OBJDUMP=objdump
8222
8223
8224
8225
8226
8227
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8229$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8230if ${lt_cv_deplibs_check_method+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232else
8233 lt_cv_file_magic_cmd='$MAGIC_CMD'
8234lt_cv_file_magic_test_file=
8235lt_cv_deplibs_check_method='unknown'
8236# Need to set the preceding variable on all platforms that support
8237# interlibrary dependencies.
8238# 'none' -- dependencies not supported.
8239# 'unknown' -- same as none, but documents that we really don't know.
8240# 'pass_all' -- all dependencies passed with no checks.
8241# 'test_compile' -- check by making test program.
8242# 'file_magic [[regex]]' -- check by looking for files in library path
8243# that responds to the $file_magic_cmd with a given extended regex.
8244# If you have 'file' or equivalent on your system and you're not sure
8245# whether 'pass_all' will *always* work, you probably want this one.
8246
8247case $host_os in
8248aix[4-9]*)
8249 lt_cv_deplibs_check_method=pass_all
8250 ;;
8251
8252beos*)
8253 lt_cv_deplibs_check_method=pass_all
8254 ;;
8255
8256bsdi[45]*)
8257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8258 lt_cv_file_magic_cmd='/usr/bin/file -L'
8259 lt_cv_file_magic_test_file=/shlib/libc.so
8260 ;;
8261
8262cygwin*)
8263 # func_win32_libid is a shell function defined in ltmain.sh
8264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8265 lt_cv_file_magic_cmd='func_win32_libid'
8266 ;;
8267
8268mingw* | pw32*)
8269 # Base MSYS/MinGW do not provide the 'file' command needed by
8270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8271 # unless we find 'file', for example because we are cross-compiling.
8272 if ( file / ) >/dev/null 2>&1; then
8273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8274 lt_cv_file_magic_cmd='func_win32_libid'
8275 else
8276 # Keep this pattern in sync with the one in func_win32_libid.
8277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8278 lt_cv_file_magic_cmd='$OBJDUMP -f'
8279 fi
8280 ;;
8281
8282cegcc*)
8283 # use the weaker test based on 'objdump'. See mingw*.
8284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8285 lt_cv_file_magic_cmd='$OBJDUMP -f'
8286 ;;
8287
8288darwin* | rhapsody*)
8289 lt_cv_deplibs_check_method=pass_all
8290 ;;
8291
8292freebsd* | dragonfly*)
8293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8294 case $host_cpu in
8295 i*86 )
8296 # Not sure whether the presence of OpenBSD here was a mistake.
8297 # Let's accept both of them until this is cleared up.
8298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8299 lt_cv_file_magic_cmd=/usr/bin/file
8300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8301 ;;
8302 esac
8303 else
8304 lt_cv_deplibs_check_method=pass_all
8305 fi
8306 ;;
8307
8308haiku*)
8309 lt_cv_deplibs_check_method=pass_all
8310 ;;
8311
8312hpux10.20* | hpux11*)
8313 lt_cv_file_magic_cmd=/usr/bin/file
8314 case $host_cpu in
8315 ia64*)
8316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8318 ;;
8319 hppa*64*)
8320 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]'
8321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8322 ;;
8323 *)
8324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8326 ;;
8327 esac
8328 ;;
8329
8330interix[3-9]*)
8331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8333 ;;
8334
8335irix5* | irix6* | nonstopux*)
8336 case $LD in
8337 *-32|*"-32 ") libmagic=32-bit;;
8338 *-n32|*"-n32 ") libmagic=N32;;
8339 *-64|*"-64 ") libmagic=64-bit;;
8340 *) libmagic=never-match;;
8341 esac
8342 lt_cv_deplibs_check_method=pass_all
8343 ;;
8344
8345# This must be glibc/ELF.
8346linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8347 lt_cv_deplibs_check_method=pass_all
8348 ;;
8349
8350netbsd* | netbsdelf*-gnu)
8351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8353 else
8354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8355 fi
8356 ;;
8357
8358newos6*)
8359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8360 lt_cv_file_magic_cmd=/usr/bin/file
8361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8362 ;;
8363
8364*nto* | *qnx*)
8365 lt_cv_deplibs_check_method=pass_all
8366 ;;
8367
8368openbsd* | bitrig*)
8369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8371 else
8372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8373 fi
8374 ;;
8375
8376osf3* | osf4* | osf5*)
8377 lt_cv_deplibs_check_method=pass_all
8378 ;;
8379
8380rdos*)
8381 lt_cv_deplibs_check_method=pass_all
8382 ;;
8383
8384solaris*)
8385 lt_cv_deplibs_check_method=pass_all
8386 ;;
8387
8388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8389 lt_cv_deplibs_check_method=pass_all
8390 ;;
8391
8392sysv4 | sysv4.3*)
8393 case $host_vendor in
8394 motorola)
8395 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]'
8396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8397 ;;
8398 ncr)
8399 lt_cv_deplibs_check_method=pass_all
8400 ;;
8401 sequent)
8402 lt_cv_file_magic_cmd='/bin/file'
8403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8404 ;;
8405 sni)
8406 lt_cv_file_magic_cmd='/bin/file'
8407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8408 lt_cv_file_magic_test_file=/lib/libc.so
8409 ;;
8410 siemens)
8411 lt_cv_deplibs_check_method=pass_all
8412 ;;
8413 pc)
8414 lt_cv_deplibs_check_method=pass_all
8415 ;;
8416 esac
8417 ;;
8418
8419tpf*)
8420 lt_cv_deplibs_check_method=pass_all
8421 ;;
8422os2*)
8423 lt_cv_deplibs_check_method=pass_all
8424 ;;
8425esac
8426
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8429$as_echo "$lt_cv_deplibs_check_method" >&6; }
8430
8431file_magic_glob=
8432want_nocaseglob=no
8433if test "$build" = "$host"; then
8434 case $host_os in
8435 mingw* | pw32*)
8436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8437 want_nocaseglob=yes
8438 else
8439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8440 fi
8441 ;;
8442 esac
8443fi
8444
8445file_magic_cmd=$lt_cv_file_magic_cmd
8446deplibs_check_method=$lt_cv_deplibs_check_method
8447test -z "$deplibs_check_method" && deplibs_check_method=unknown
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if ${ac_cv_prog_DLLTOOL+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477else
8478 if test -n "$DLLTOOL"; then
8479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8480else
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492done
8493 done
8494IFS=$as_save_IFS
8495
8496fi
8497fi
8498DLLTOOL=$ac_cv_prog_DLLTOOL
8499if test -n "$DLLTOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8501$as_echo "$DLLTOOL" >&6; }
8502else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
8507
8508fi
8509if test -z "$ac_cv_prog_DLLTOOL"; then
8510 ac_ct_DLLTOOL=$DLLTOOL
8511 # Extract the first word of "dlltool", so it can be a program name with args.
8512set dummy dlltool; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517else
8518 if test -n "$ac_ct_DLLTOOL"; then
8519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532done
8533 done
8534IFS=$as_save_IFS
8535
8536fi
8537fi
8538ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8539if test -n "$ac_ct_DLLTOOL"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8541$as_echo "$ac_ct_DLLTOOL" >&6; }
8542else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547 if test "x$ac_ct_DLLTOOL" = x; then
8548 DLLTOOL="false"
8549 else
8550 case $cross_compiling:$ac_tool_warned in
8551yes:)
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554ac_tool_warned=yes ;;
8555esac
8556 DLLTOOL=$ac_ct_DLLTOOL
8557 fi
8558else
8559 DLLTOOL="$ac_cv_prog_DLLTOOL"
8560fi
8561
8562test -z "$DLLTOOL" && DLLTOOL=dlltool
8563
8564
8565
8566
8567
8568
8569
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8571$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8572if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574else
8575 lt_cv_sharedlib_from_linklib_cmd='unknown'
8576
8577case $host_os in
8578cygwin* | mingw* | pw32* | cegcc*)
8579 # two different shell functions defined in ltmain.sh;
8580 # decide which one to use based on capabilities of $DLLTOOL
8581 case `$DLLTOOL --help 2>&1` in
8582 *--identify-strict*)
8583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8584 ;;
8585 *)
8586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8587 ;;
8588 esac
8589 ;;
8590*)
8591 # fallback: assume linklib IS sharedlib
8592 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8593 ;;
8594esac
8595
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8598$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8599sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8600test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8601
8602
8603
8604
8605
8606
8607
8608if test -n "$ac_tool_prefix"; then
8609 for ac_prog in ar
8610 do
8611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614$as_echo_n "checking for $ac_word... " >&6; }
8615if ${ac_cv_prog_AR+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 if test -n "$AR"; then
8619 ac_cv_prog_AR="$AR" # Let the user override the test.
8620else
8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8631 fi
8632done
8633 done
8634IFS=$as_save_IFS
8635
8636fi
8637fi
8638AR=$ac_cv_prog_AR
8639if test -n "$AR"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8641$as_echo "$AR" >&6; }
8642else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
8645fi
8646
8647
8648 test -n "$AR" && break
8649 done
8650fi
8651if test -z "$AR"; then
8652 ac_ct_AR=$AR
8653 for ac_prog in ar
8654do
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656set dummy $ac_prog; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if ${ac_cv_prog_ac_ct_AR+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661else
8662 if test -n "$ac_ct_AR"; then
8663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8664else
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_ac_ct_AR="$ac_prog"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676done
8677 done
8678IFS=$as_save_IFS
8679
8680fi
8681fi
8682ac_ct_AR=$ac_cv_prog_ac_ct_AR
8683if test -n "$ac_ct_AR"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8685$as_echo "$ac_ct_AR" >&6; }
8686else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692 test -n "$ac_ct_AR" && break
8693done
8694
8695 if test "x$ac_ct_AR" = x; then
8696 AR="false"
8697 else
8698 case $cross_compiling:$ac_tool_warned in
8699yes:)
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8702ac_tool_warned=yes ;;
8703esac
8704 AR=$ac_ct_AR
8705 fi
8706fi
8707
8708: ${AR=ar}
8709: ${AR_FLAGS=cru}
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8722$as_echo_n "checking for archiver @FILE support... " >&6; }
8723if ${lt_cv_ar_at_file+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725else
8726 lt_cv_ar_at_file=no
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h. */
8729
8730int main (void)
8731{
8732
8733 ;
8734 return 0;
8735}
8736_ACEOF
8737if ac_fn_c_try_compile "$LINENO"; then :
8738 echo conftest.$ac_objext > conftest.lst
8739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8741 (eval $lt_ar_try) 2>&5
8742 ac_status=$?
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }
8745 if test 0 -eq "$ac_status"; then
8746 # Ensure the archiver fails upon bogus file names.
8747 rm -f conftest.$ac_objext libconftest.a
8748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8749 (eval $lt_ar_try) 2>&5
8750 ac_status=$?
8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }
8753 if test 0 -ne "$ac_status"; then
8754 lt_cv_ar_at_file=@
8755 fi
8756 fi
8757 rm -f conftest.* libconftest.a
8758
8759fi
8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761
8762fi
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8764$as_echo "$lt_cv_ar_at_file" >&6; }
8765
8766if test no = "$lt_cv_ar_at_file"; then
8767 archiver_list_spec=
8768else
8769 archiver_list_spec=$lt_cv_ar_at_file
8770fi
8771
8772
8773
8774
8775
8776
8777
8778if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8780set dummy ${ac_tool_prefix}strip; ac_word=$2
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if ${ac_cv_prog_STRIP+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$STRIP"; then
8787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800done
8801 done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806STRIP=$ac_cv_prog_STRIP
8807if test -n "$STRIP"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8809$as_echo "$STRIP" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816fi
8817if test -z "$ac_cv_prog_STRIP"; then
8818 ac_ct_STRIP=$STRIP
8819 # Extract the first word of "strip", so it can be a program name with args.
8820set dummy strip; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 if test -n "$ac_ct_STRIP"; then
8827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_STRIP="strip"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840done
8841 done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8847if test -n "$ac_ct_STRIP"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8849$as_echo "$ac_ct_STRIP" >&6; }
8850else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855 if test "x$ac_ct_STRIP" = x; then
8856 STRIP=":"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859yes:)
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862ac_tool_warned=yes ;;
8863esac
8864 STRIP=$ac_ct_STRIP
8865 fi
8866else
8867 STRIP="$ac_cv_prog_STRIP"
8868fi
8869
8870test -z "$STRIP" && STRIP=:
8871
8872
8873
8874
8875
8876
8877if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8879set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if ${ac_cv_prog_RANLIB+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884else
8885 if test -n "$RANLIB"; then
8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899done
8900 done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905RANLIB=$ac_cv_prog_RANLIB
8906if test -n "$RANLIB"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8908$as_echo "$RANLIB" >&6; }
8909else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915fi
8916if test -z "$ac_cv_prog_RANLIB"; then
8917 ac_ct_RANLIB=$RANLIB
8918 # Extract the first word of "ranlib", so it can be a program name with args.
8919set dummy ranlib; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
8922if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924else
8925 if test -n "$ac_ct_RANLIB"; then
8926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_RANLIB="ranlib"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943fi
8944fi
8945ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8946if test -n "$ac_ct_RANLIB"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8948$as_echo "$ac_ct_RANLIB" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954 if test "x$ac_ct_RANLIB" = x; then
8955 RANLIB=":"
8956 else
8957 case $cross_compiling:$ac_tool_warned in
8958yes:)
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961ac_tool_warned=yes ;;
8962esac
8963 RANLIB=$ac_ct_RANLIB
8964 fi
8965else
8966 RANLIB="$ac_cv_prog_RANLIB"
8967fi
8968
8969test -z "$RANLIB" && RANLIB=:
8970
8971
8972
8973
8974
8975
8976# Determine commands to create old-style static archives.
8977old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8978old_postinstall_cmds='chmod 644 $oldlib'
8979old_postuninstall_cmds=
8980
8981if test -n "$RANLIB"; then
8982 case $host_os in
8983 bitrig* | openbsd*)
8984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8985 ;;
8986 *)
8987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8988 ;;
8989 esac
8990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8991fi
8992
8993case $host_os in
8994 darwin*)
8995 lock_old_archive_extraction=yes ;;
8996 *)
8997 lock_old_archive_extraction=no ;;
8998esac
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038# If no C compiler was specified, use CC.
9039LTCC=${LTCC-"$CC"}
9040
9041# If no C compiler flags were specified, use CFLAGS.
9042LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9043
9044# Allow CC to be a program name with arguments.
9045compiler=$CC
9046
9047
9048# Check for command to grab the raw symbol name followed by C symbol from nm.
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9050$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9051if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053else
9054
9055# These are sane defaults that work on at least a few old systems.
9056# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9057
9058# Character class describing NM global symbol codes.
9059symcode='[BCDEGRST]'
9060
9061# Regexp to match symbols that can be accessed directly from C.
9062sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9063
9064# Define system-specific variables.
9065case $host_os in
9066aix*)
9067 symcode='[BCDT]'
9068 ;;
9069cygwin* | mingw* | pw32* | cegcc*)
9070 symcode='[ABCDGISTW]'
9071 ;;
9072hpux*)
9073 if test ia64 = "$host_cpu"; then
9074 symcode='[ABCDEGRST]'
9075 fi
9076 ;;
9077irix* | nonstopux*)
9078 symcode='[BCDEGRST]'
9079 ;;
9080osf*)
9081 symcode='[BCDEGQRST]'
9082 ;;
9083solaris*)
9084 symcode='[BDRT]'
9085 ;;
9086sco3.2v5*)
9087 symcode='[DT]'
9088 ;;
9089sysv4.2uw2*)
9090 symcode='[DT]'
9091 ;;
9092sysv5* | sco5v6* | unixware* | OpenUNIX*)
9093 symcode='[ABDT]'
9094 ;;
9095sysv4)
9096 symcode='[DFNSTU]'
9097 ;;
9098esac
9099
9100# If we're using GNU nm, then use its standard symbol codes.
9101case `$NM -V 2>&1` in
9102*GNU* | *'with BFD'*)
9103 symcode='[ABCDGIRSTW]' ;;
9104esac
9105
9106if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9107 # Gets list of data symbols to import.
9108 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9109 # Adjust the below global symbol transforms to fixup imported variables.
9110 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9111 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9112 lt_c_name_lib_hook="\
9113 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9114 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9115else
9116 # Disable hooks by default.
9117 lt_cv_sys_global_symbol_to_import=
9118 lt_cdecl_hook=
9119 lt_c_name_hook=
9120 lt_c_name_lib_hook=
9121fi
9122
9123# Transform an extracted symbol line into a proper C declaration.
9124# Some systems (esp. on ia64) link data and code symbols differently,
9125# so use this general approach.
9126lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9127$lt_cdecl_hook\
9128" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9129" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9130
9131# Transform an extracted symbol line into symbol name and symbol address
9132lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9133$lt_c_name_hook\
9134" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9135" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9136
9137# Transform an extracted symbol line into symbol name with lib prefix and
9138# symbol address.
9139lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9140$lt_c_name_lib_hook\
9141" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9142" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9143" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9144
9145# Handle CRLF in mingw tool chain
9146opt_cr=
9147case $build_os in
9148mingw*)
9149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9150 ;;
9151esac
9152
9153# Try without a prefix underscore, then with it.
9154for ac_symprfx in "" "_"; do
9155
9156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9157 symxfrm="\\1 $ac_symprfx\\2 \\2"
9158
9159 # Write the raw and C identifiers.
9160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9161 # Fake it for dumpbin and say T for any non-static function,
9162 # D for any global variable and I for any imported variable.
9163 # Also find C++ and __fastcall symbols from MSVC++,
9164 # which start with @ or ?.
9165 lt_cv_sys_global_symbol_pipe="$AWK '"\
9166" {last_section=section; section=\$ 3};"\
9167" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9168" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9169" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9170" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9171" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9172" \$ 0!~/External *\|/{next};"\
9173" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9174" {if(hide[section]) next};"\
9175" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9176" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9177" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9178" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9179" ' prfx=^$ac_symprfx"
9180 else
9181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9182 fi
9183 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9184
9185 # Check to see that the pipe works correctly.
9186 pipe_works=no
9187
9188 rm -f conftest*
9189 cat > conftest.$ac_ext <<_LT_EOF
9190#ifdef __cplusplus
9191extern "C" {
9192#endif
9193char nm_test_var;
9194void nm_test_func(void);
9195void nm_test_func(void){}
9196#ifdef __cplusplus
9197}
9198#endif
9199int main(){nm_test_var='a';nm_test_func();return(0);}
9200_LT_EOF
9201
9202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9203 (eval $ac_compile) 2>&5
9204 ac_status=$?
9205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9206 test $ac_status = 0; }; then
9207 # Now try to grab the symbols.
9208 nlist=conftest.nm
9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9210 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9211 ac_status=$?
9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; } && test -s "$nlist"; then
9214 # Try sorting and uniquifying the output.
9215 if sort "$nlist" | uniq > "$nlist"T; then
9216 mv -f "$nlist"T "$nlist"
9217 else
9218 rm -f "$nlist"T
9219 fi
9220
9221 # Make sure that we snagged all the symbols we need.
9222 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9223 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9224 cat <<_LT_EOF > conftest.$ac_ext
9225/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9226#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9227/* DATA imports from DLLs on WIN32 can't be const, because runtime
9228 relocations are performed -- see ld's documentation on pseudo-relocs. */
9229# define LT_DLSYM_CONST
9230#elif defined __osf__
9231/* This system does not cope well with relocations in const data. */
9232# define LT_DLSYM_CONST
9233#else
9234# define LT_DLSYM_CONST const
9235#endif
9236
9237#ifdef __cplusplus
9238extern "C" {
9239#endif
9240
9241_LT_EOF
9242 # Now generate the symbol file.
9243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9244
9245 cat <<_LT_EOF >> conftest.$ac_ext
9246
9247/* The mapping between symbol names and symbols. */
9248LT_DLSYM_CONST struct {
9249 const char *name;
9250 void *address;
9251}
9252lt__PROGRAM__LTX_preloaded_symbols[] =
9253{
9254 { "@PROGRAM@", (void *) 0 },
9255_LT_EOF
9256 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9257 cat <<\_LT_EOF >> conftest.$ac_ext
9258 {0, (void *) 0}
9259};
9260
9261/* This works around a problem in FreeBSD linker */
9262#ifdef FREEBSD_WORKAROUND
9263static const void *lt_preloaded_setup() {
9264 return lt__PROGRAM__LTX_preloaded_symbols;
9265}
9266#endif
9267
9268#ifdef __cplusplus
9269}
9270#endif
9271_LT_EOF
9272 # Now try linking the two files.
9273 mv -f conftest.$ac_objext conftstm.$ac_objext
9274 lt_globsym_save_LIBS=$LIBS
9275 lt_globsym_save_CFLAGS=$CFLAGS
9276 LIBS=conftstm.$ac_objext
9277 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9279 (eval $ac_link) 2>&5
9280 ac_status=$?
9281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9282 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9283 pipe_works=yes
9284 fi
9285 LIBS=$lt_globsym_save_LIBS
9286 CFLAGS=$lt_globsym_save_CFLAGS
9287 else
9288 echo "cannot find nm_test_func in $nlist" >&5
9289 fi
9290 else
9291 echo "cannot find nm_test_var in $nlist" >&5
9292 fi
9293 else
9294 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9295 fi
9296 else
9297 echo "$progname: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 fi
9300 rm -rf conftest* conftst*
9301
9302 # Do not use the global_symbol_pipe unless it works.
9303 if test yes = "$pipe_works"; then
9304 break
9305 else
9306 lt_cv_sys_global_symbol_pipe=
9307 fi
9308done
9309
9310fi
9311
9312if test -z "$lt_cv_sys_global_symbol_pipe"; then
9313 lt_cv_sys_global_symbol_to_cdecl=
9314fi
9315if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9317$as_echo "failed" >&6; }
9318else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9320$as_echo "ok" >&6; }
9321fi
9322
9323# Response file support.
9324if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9325 nm_file_list_spec='@'
9326elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9327 nm_file_list_spec='@'
9328fi
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9367$as_echo_n "checking for sysroot... " >&6; }
9368
9369# Check whether --with-sysroot was given.
9370if test "${with_sysroot+set}" = set; then :
9371 withval=$with_sysroot;
9372else
9373 with_sysroot=no
9374fi
9375
9376
9377lt_sysroot=
9378case $with_sysroot in #(
9379 yes)
9380 if test yes = "$GCC"; then
9381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9382 fi
9383 ;; #(
9384 /*)
9385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9386 ;; #(
9387 no|'')
9388 ;; #(
9389 *)
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9391$as_echo "$with_sysroot" >&6; }
9392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9393 ;;
9394esac
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9397$as_echo "${lt_sysroot:-no}" >&6; }
9398
9399
9400
9401
9402
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9404$as_echo_n "checking for a working dd... " >&6; }
9405if ${ac_cv_path_lt_DD+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407else
9408 printf 0123456789abcdef0123456789abcdef >conftest.i
9409cat conftest.i conftest.i >conftest2.i
9410: ${lt_DD:=$DD}
9411if test -z "$lt_DD"; then
9412 ac_path_lt_DD_found=false
9413 # Loop through the user's path and test for each of PROGNAME-LIST
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_prog in dd; do
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9422 as_fn_executable_p "$ac_path_lt_DD" || continue
9423if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9424 cmp -s conftest.i conftest.out \
9425 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9426fi
9427 $ac_path_lt_DD_found && break 3
9428 done
9429 done
9430 done
9431IFS=$as_save_IFS
9432 if test -z "$ac_cv_path_lt_DD"; then
9433 :
9434 fi
9435else
9436 ac_cv_path_lt_DD=$lt_DD
9437fi
9438
9439rm -f conftest.i conftest2.i conftest.out
9440fi
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9442$as_echo "$ac_cv_path_lt_DD" >&6; }
9443
9444
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9446$as_echo_n "checking how to truncate binary pipes... " >&6; }
9447if ${lt_cv_truncate_bin+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 printf 0123456789abcdef0123456789abcdef >conftest.i
9451cat conftest.i conftest.i >conftest2.i
9452lt_cv_truncate_bin=
9453if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9454 cmp -s conftest.i conftest.out \
9455 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9456fi
9457rm -f conftest.i conftest2.i conftest.out
9458test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9461$as_echo "$lt_cv_truncate_bin" >&6; }
9462
9463
9464
9465
9466
9467
9468
9469# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9470func_cc_basename ()
9471{
9472 for cc_temp in $*""; do
9473 case $cc_temp in
9474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9476 \-*) ;;
9477 *) break;;
9478 esac
9479 done
9480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9481}
9482
9483# Check whether --enable-libtool-lock was given.
9484if test "${enable_libtool_lock+set}" = set; then :
9485 enableval=$enable_libtool_lock;
9486fi
9487
9488test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9489
9490# Some flags need to be propagated to the compiler or linker for good
9491# libtool support.
9492case $host in
9493ia64-*-hpux*)
9494 # Find out what ABI is being produced by ac_compile, and set mode
9495 # options accordingly.
9496 echo 'int i;' > conftest.$ac_ext
9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9498 (eval $ac_compile) 2>&5
9499 ac_status=$?
9500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9501 test $ac_status = 0; }; then
9502 case `/usr/bin/file conftest.$ac_objext` in
9503 *ELF-32*)
9504 HPUX_IA64_MODE=32
9505 ;;
9506 *ELF-64*)
9507 HPUX_IA64_MODE=64
9508 ;;
9509 esac
9510 fi
9511 rm -rf conftest*
9512 ;;
9513*-*-irix6*)
9514 # Find out what ABI is being produced by ac_compile, and set linker
9515 # options accordingly.
9516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518 (eval $ac_compile) 2>&5
9519 ac_status=$?
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; }; then
9522 if test yes = "$lt_cv_prog_gnu_ld"; then
9523 case `/usr/bin/file conftest.$ac_objext` in
9524 *32-bit*)
9525 LD="${LD-ld} -melf32bsmip"
9526 ;;
9527 *N32*)
9528 LD="${LD-ld} -melf32bmipn32"
9529 ;;
9530 *64-bit*)
9531 LD="${LD-ld} -melf64bmip"
9532 ;;
9533 esac
9534 else
9535 case `/usr/bin/file conftest.$ac_objext` in
9536 *32-bit*)
9537 LD="${LD-ld} -32"
9538 ;;
9539 *N32*)
9540 LD="${LD-ld} -n32"
9541 ;;
9542 *64-bit*)
9543 LD="${LD-ld} -64"
9544 ;;
9545 esac
9546 fi
9547 fi
9548 rm -rf conftest*
9549 ;;
9550
9551mips64*-*linux*)
9552 # Find out what ABI is being produced by ac_compile, and set linker
9553 # options accordingly.
9554 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9556 (eval $ac_compile) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }; then
9560 emul=elf
9561 case `/usr/bin/file conftest.$ac_objext` in
9562 *32-bit*)
9563 emul="${emul}32"
9564 ;;
9565 *64-bit*)
9566 emul="${emul}64"
9567 ;;
9568 esac
9569 case `/usr/bin/file conftest.$ac_objext` in
9570 *MSB*)
9571 emul="${emul}btsmip"
9572 ;;
9573 *LSB*)
9574 emul="${emul}ltsmip"
9575 ;;
9576 esac
9577 case `/usr/bin/file conftest.$ac_objext` in
9578 *N32*)
9579 emul="${emul}n32"
9580 ;;
9581 esac
9582 LD="${LD-ld} -m $emul"
9583 fi
9584 rm -rf conftest*
9585 ;;
9586
9587x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9588s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9589 # Find out what ABI is being produced by ac_compile, and set linker
9590 # options accordingly. Note that the listed cases only cover the
9591 # situations where additional linker options are needed (such as when
9592 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9593 # vice versa); the common cases where no linker options are needed do
9594 # not appear in the list.
9595 echo 'int i;' > conftest.$ac_ext
9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9597 (eval $ac_compile) 2>&5
9598 ac_status=$?
9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9600 test $ac_status = 0; }; then
9601 case `/usr/bin/file conftest.o` in
9602 *32-bit*)
9603 case $host in
9604 x86_64-*kfreebsd*-gnu)
9605 LD="${LD-ld} -m elf_i386_fbsd"
9606 ;;
9607 x86_64-*linux*)
9608 case `/usr/bin/file conftest.o` in
9609 *x86-64*)
9610 LD="${LD-ld} -m elf32_x86_64"
9611 ;;
9612 *)
9613 LD="${LD-ld} -m elf_i386"
9614 ;;
9615 esac
9616 ;;
9617 powerpc64le-*linux*)
9618 LD="${LD-ld} -m elf32lppclinux"
9619 ;;
9620 powerpc64-*linux*)
9621 LD="${LD-ld} -m elf32ppclinux"
9622 ;;
9623 s390x-*linux*)
9624 LD="${LD-ld} -m elf_s390"
9625 ;;
9626 sparc64-*linux*)
9627 LD="${LD-ld} -m elf32_sparc"
9628 ;;
9629 esac
9630 ;;
9631 *64-bit*)
9632 case $host in
9633 x86_64-*kfreebsd*-gnu)
9634 LD="${LD-ld} -m elf_x86_64_fbsd"
9635 ;;
9636 x86_64-*linux*)
9637 LD="${LD-ld} -m elf_x86_64"
9638 ;;
9639 powerpcle-*linux*)
9640 LD="${LD-ld} -m elf64lppc"
9641 ;;
9642 powerpc-*linux*)
9643 LD="${LD-ld} -m elf64ppc"
9644 ;;
9645 s390*-*linux*|s390*-*tpf*)
9646 LD="${LD-ld} -m elf64_s390"
9647 ;;
9648 sparc*-*linux*)
9649 LD="${LD-ld} -m elf64_sparc"
9650 ;;
9651 esac
9652 ;;
9653 esac
9654 fi
9655 rm -rf conftest*
9656 ;;
9657
9658*-*-sco3.2v5*)
9659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9660 SAVE_CFLAGS=$CFLAGS
9661 CFLAGS="$CFLAGS -belf"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9663$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9664if ${lt_cv_cc_needs_belf+:} false; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675
9676int main (void)
9677{
9678
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683if ac_fn_c_try_link "$LINENO"; then :
9684 lt_cv_cc_needs_belf=yes
9685else
9686 lt_cv_cc_needs_belf=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 ac_ext=c
9691ac_cpp='$CPP $CPPFLAGS'
9692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9694ac_compiler_gnu=$ac_cv_c_compiler_gnu
9695
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9698$as_echo "$lt_cv_cc_needs_belf" >&6; }
9699 if test yes != "$lt_cv_cc_needs_belf"; then
9700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9701 CFLAGS=$SAVE_CFLAGS
9702 fi
9703 ;;
9704*-*solaris*)
9705 # Find out what ABI is being produced by ac_compile, and set linker
9706 # options accordingly.
9707 echo 'int i;' > conftest.$ac_ext
9708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9709 (eval $ac_compile) 2>&5
9710 ac_status=$?
9711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9712 test $ac_status = 0; }; then
9713 case `/usr/bin/file conftest.o` in
9714 *64-bit*)
9715 case $lt_cv_prog_gnu_ld in
9716 yes*)
9717 case $host in
9718 i?86-*-solaris*|x86_64-*-solaris*)
9719 LD="${LD-ld} -m elf_x86_64"
9720 ;;
9721 sparc*-*-solaris*)
9722 LD="${LD-ld} -m elf64_sparc"
9723 ;;
9724 esac
9725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9727 LD=${LD-ld}_sol2
9728 fi
9729 ;;
9730 *)
9731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9732 LD="${LD-ld} -64"
9733 fi
9734 ;;
9735 esac
9736 ;;
9737 esac
9738 fi
9739 rm -rf conftest*
9740 ;;
9741esac
9742
9743need_locks=$enable_libtool_lock
9744
9745if test -n "$ac_tool_prefix"; then
9746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9747set dummy ${ac_tool_prefix}mt; ac_word=$2
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749$as_echo_n "checking for $ac_word... " >&6; }
9750if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752else
9753 if test -n "$MANIFEST_TOOL"; then
9754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9755else
9756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757for as_dir in $PATH
9758do
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9766 fi
9767done
9768 done
9769IFS=$as_save_IFS
9770
9771fi
9772fi
9773MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9774if test -n "$MANIFEST_TOOL"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9776$as_echo "$MANIFEST_TOOL" >&6; }
9777else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779$as_echo "no" >&6; }
9780fi
9781
9782
9783fi
9784if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9786 # Extract the first word of "mt", so it can be a program name with args.
9787set dummy mt; ac_word=$2
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789$as_echo_n "checking for $ac_word... " >&6; }
9790if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792else
9793 if test -n "$ac_ct_MANIFEST_TOOL"; then
9794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9795else
9796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797for as_dir in $PATH
9798do
9799 IFS=$as_save_IFS
9800 test -z "$as_dir" && as_dir=.
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9805 break 2
9806 fi
9807done
9808 done
9809IFS=$as_save_IFS
9810
9811fi
9812fi
9813ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9814if test -n "$ac_ct_MANIFEST_TOOL"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9816$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9817else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819$as_echo "no" >&6; }
9820fi
9821
9822 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9823 MANIFEST_TOOL=":"
9824 else
9825 case $cross_compiling:$ac_tool_warned in
9826yes:)
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9829ac_tool_warned=yes ;;
9830esac
9831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9832 fi
9833else
9834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9835fi
9836
9837test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9839$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9840if ${lt_cv_path_mainfest_tool+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842else
9843 lt_cv_path_mainfest_tool=no
9844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9846 cat conftest.err >&5
9847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9848 lt_cv_path_mainfest_tool=yes
9849 fi
9850 rm -f conftest*
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9853$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9854if test yes != "$lt_cv_path_mainfest_tool"; then
9855 MANIFEST_TOOL=:
9856fi
9857
9858
9859
9860
9861
9862
9863 case $host_os in
9864 rhapsody* | darwin*)
9865 if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9867set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869$as_echo_n "checking for $ac_word... " >&6; }
9870if ${ac_cv_prog_DSYMUTIL+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$DSYMUTIL"; then
9874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9875else
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887done
9888 done
9889IFS=$as_save_IFS
9890
9891fi
9892fi
9893DSYMUTIL=$ac_cv_prog_DSYMUTIL
9894if test -n "$DSYMUTIL"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9896$as_echo "$DSYMUTIL" >&6; }
9897else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899$as_echo "no" >&6; }
9900fi
9901
9902
9903fi
9904if test -z "$ac_cv_prog_DSYMUTIL"; then
9905 ac_ct_DSYMUTIL=$DSYMUTIL
9906 # Extract the first word of "dsymutil", so it can be a program name with args.
9907set dummy dsymutil; ac_word=$2
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909$as_echo_n "checking for $ac_word... " >&6; }
9910if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912else
9913 if test -n "$ac_ct_DSYMUTIL"; then
9914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928 done
9929IFS=$as_save_IFS
9930
9931fi
9932fi
9933ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9934if test -n "$ac_ct_DSYMUTIL"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9936$as_echo "$ac_ct_DSYMUTIL" >&6; }
9937else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
9940fi
9941
9942 if test "x$ac_ct_DSYMUTIL" = x; then
9943 DSYMUTIL=":"
9944 else
9945 case $cross_compiling:$ac_tool_warned in
9946yes:)
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9949ac_tool_warned=yes ;;
9950esac
9951 DSYMUTIL=$ac_ct_DSYMUTIL
9952 fi
9953else
9954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9955fi
9956
9957 if test -n "$ac_tool_prefix"; then
9958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9959set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961$as_echo_n "checking for $ac_word... " >&6; }
9962if ${ac_cv_prog_NMEDIT+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964else
9965 if test -n "$NMEDIT"; then
9966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9978 fi
9979done
9980 done
9981IFS=$as_save_IFS
9982
9983fi
9984fi
9985NMEDIT=$ac_cv_prog_NMEDIT
9986if test -n "$NMEDIT"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9988$as_echo "$NMEDIT" >&6; }
9989else
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
9992fi
9993
9994
9995fi
9996if test -z "$ac_cv_prog_NMEDIT"; then
9997 ac_ct_NMEDIT=$NMEDIT
9998 # Extract the first word of "nmedit", so it can be a program name with args.
9999set dummy nmedit; ac_word=$2
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001$as_echo_n "checking for $ac_word... " >&6; }
10002if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$ac_ct_NMEDIT"; then
10006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020 done
10021IFS=$as_save_IFS
10022
10023fi
10024fi
10025ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10026if test -n "$ac_ct_NMEDIT"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10028$as_echo "$ac_ct_NMEDIT" >&6; }
10029else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032fi
10033
10034 if test "x$ac_ct_NMEDIT" = x; then
10035 NMEDIT=":"
10036 else
10037 case $cross_compiling:$ac_tool_warned in
10038yes:)
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10041ac_tool_warned=yes ;;
10042esac
10043 NMEDIT=$ac_ct_NMEDIT
10044 fi
10045else
10046 NMEDIT="$ac_cv_prog_NMEDIT"
10047fi
10048
10049 if test -n "$ac_tool_prefix"; then
10050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10051set dummy ${ac_tool_prefix}lipo; ac_word=$2
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053$as_echo_n "checking for $ac_word... " >&6; }
10054if ${ac_cv_prog_LIPO+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056else
10057 if test -n "$LIPO"; then
10058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10059else
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072 done
10073IFS=$as_save_IFS
10074
10075fi
10076fi
10077LIPO=$ac_cv_prog_LIPO
10078if test -n "$LIPO"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10080$as_echo "$LIPO" >&6; }
10081else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083$as_echo "no" >&6; }
10084fi
10085
10086
10087fi
10088if test -z "$ac_cv_prog_LIPO"; then
10089 ac_ct_LIPO=$LIPO
10090 # Extract the first word of "lipo", so it can be a program name with args.
10091set dummy lipo; ac_word=$2
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096else
10097 if test -n "$ac_ct_LIPO"; then
10098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10099else
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10107 ac_cv_prog_ac_ct_LIPO="lipo"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10110 fi
10111done
10112 done
10113IFS=$as_save_IFS
10114
10115fi
10116fi
10117ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10118if test -n "$ac_ct_LIPO"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10120$as_echo "$ac_ct_LIPO" >&6; }
10121else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
10124fi
10125
10126 if test "x$ac_ct_LIPO" = x; then
10127 LIPO=":"
10128 else
10129 case $cross_compiling:$ac_tool_warned in
10130yes:)
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10133ac_tool_warned=yes ;;
10134esac
10135 LIPO=$ac_ct_LIPO
10136 fi
10137else
10138 LIPO="$ac_cv_prog_LIPO"
10139fi
10140
10141 if test -n "$ac_tool_prefix"; then
10142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10143set dummy ${ac_tool_prefix}otool; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if ${ac_cv_prog_OTOOL+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148else
10149 if test -n "$OTOOL"; then
10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164 done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169OTOOL=$ac_cv_prog_OTOOL
10170if test -n "$OTOOL"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10172$as_echo "$OTOOL" >&6; }
10173else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179fi
10180if test -z "$ac_cv_prog_OTOOL"; then
10181 ac_ct_OTOOL=$OTOOL
10182 # Extract the first word of "otool", so it can be a program name with args.
10183set dummy otool; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 if test -n "$ac_ct_OTOOL"; then
10190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_prog_ac_ct_OTOOL="otool"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203done
10204 done
10205IFS=$as_save_IFS
10206
10207fi
10208fi
10209ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10210if test -n "$ac_ct_OTOOL"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10212$as_echo "$ac_ct_OTOOL" >&6; }
10213else
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
10216fi
10217
10218 if test "x$ac_ct_OTOOL" = x; then
10219 OTOOL=":"
10220 else
10221 case $cross_compiling:$ac_tool_warned in
10222yes:)
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225ac_tool_warned=yes ;;
10226esac
10227 OTOOL=$ac_ct_OTOOL
10228 fi
10229else
10230 OTOOL="$ac_cv_prog_OTOOL"
10231fi
10232
10233 if test -n "$ac_tool_prefix"; then
10234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10235set dummy ${ac_tool_prefix}otool64; ac_word=$2
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if ${ac_cv_prog_OTOOL64+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 if test -n "$OTOOL64"; then
10242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256 done
10257IFS=$as_save_IFS
10258
10259fi
10260fi
10261OTOOL64=$ac_cv_prog_OTOOL64
10262if test -n "$OTOOL64"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10264$as_echo "$OTOOL64" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
10271fi
10272if test -z "$ac_cv_prog_OTOOL64"; then
10273 ac_ct_OTOOL64=$OTOOL64
10274 # Extract the first word of "otool64", so it can be a program name with args.
10275set dummy otool64; ac_word=$2
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
10278if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280else
10281 if test -n "$ac_ct_OTOOL64"; then
10282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_prog_ac_ct_OTOOL64="otool64"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296 done
10297IFS=$as_save_IFS
10298
10299fi
10300fi
10301ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10302if test -n "$ac_ct_OTOOL64"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10304$as_echo "$ac_ct_OTOOL64" >&6; }
10305else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
10308fi
10309
10310 if test "x$ac_ct_OTOOL64" = x; then
10311 OTOOL64=":"
10312 else
10313 case $cross_compiling:$ac_tool_warned in
10314yes:)
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10317ac_tool_warned=yes ;;
10318esac
10319 OTOOL64=$ac_ct_OTOOL64
10320 fi
10321else
10322 OTOOL64="$ac_cv_prog_OTOOL64"
10323fi
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10352$as_echo_n "checking for -single_module linker flag... " >&6; }
10353if ${lt_cv_apple_cc_single_mod+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355else
10356 lt_cv_apple_cc_single_mod=no
10357 if test -z "$LT_MULTI_MODULE"; then
10358 # By default we will add the -single_module flag. You can override
10359 # by either setting the environment variable LT_MULTI_MODULE
10360 # non-empty at configure time, or by adding -multi_module to the
10361 # link flags.
10362 rm -rf libconftest.dylib*
10363 echo "int foo(void){return 1;}" > conftest.c
10364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10365-dynamiclib -Wl,-single_module conftest.c" >&5
10366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10368 _lt_result=$?
10369 # If there is a non-empty error log, and "single_module"
10370 # appears in it, assume the flag caused a linker warning
10371 if test -s conftest.err && $GREP single_module conftest.err; then
10372 cat conftest.err >&5
10373 # Otherwise, if the output was created with a 0 exit code from
10374 # the compiler, it worked.
10375 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10376 lt_cv_apple_cc_single_mod=yes
10377 else
10378 cat conftest.err >&5
10379 fi
10380 rm -rf libconftest.dylib*
10381 rm -f conftest.*
10382 fi
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10385$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10388$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10389if ${lt_cv_ld_exported_symbols_list+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392 lt_cv_ld_exported_symbols_list=no
10393 save_LDFLAGS=$LDFLAGS
10394 echo "_main" > conftest.sym
10395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h. */
10398
10399int main (void)
10400{
10401
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"; then :
10407 lt_cv_ld_exported_symbols_list=yes
10408else
10409 lt_cv_ld_exported_symbols_list=no
10410fi
10411rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS=$save_LDFLAGS
10414
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10418
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10420$as_echo_n "checking for -force_load linker flag... " >&6; }
10421if ${lt_cv_ld_force_load+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424 lt_cv_ld_force_load=no
10425 cat > conftest.c << _LT_EOF
10426int forced_loaded() { return 2;}
10427_LT_EOF
10428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10430 echo "$AR cru libconftest.a conftest.o" >&5
10431 $AR cru libconftest.a conftest.o 2>&5
10432 echo "$RANLIB libconftest.a" >&5
10433 $RANLIB libconftest.a 2>&5
10434 cat > conftest.c << _LT_EOF
10435int main() { return 0;}
10436_LT_EOF
10437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10439 _lt_result=$?
10440 if test -s conftest.err && $GREP force_load conftest.err; then
10441 cat conftest.err >&5
10442 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10443 lt_cv_ld_force_load=yes
10444 else
10445 cat conftest.err >&5
10446 fi
10447 rm -f conftest.err libconftest.a conftest conftest.c
10448 rm -rf conftest.dSYM
10449
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10452$as_echo "$lt_cv_ld_force_load" >&6; }
10453 case $host_os in
10454 rhapsody* | darwin1.[012])
10455 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10456 darwin1.*)
10457 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10458 darwin*) # darwin 5.x on
10459 # if running on 10.5 or later, the deployment target defaults
10460 # to the OS version, if on x86, and 10.4, the deployment
10461 # target defaults to 10.4. Don't you love it?
10462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10463 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10464 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10465 10.[012][,.]*)
10466 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10467 10.*)
10468 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10469 esac
10470 ;;
10471 esac
10472 if test yes = "$lt_cv_apple_cc_single_mod"; then
10473 _lt_dar_single_mod='$single_module'
10474 fi
10475 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10476 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10477 else
10478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10479 fi
10480 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10481 _lt_dsymutil='~$DSYMUTIL $lib || :'
10482 else
10483 _lt_dsymutil=
10484 fi
10485 ;;
10486 esac
10487
10488# func_munge_path_list VARIABLE PATH
10489# -----------------------------------
10490# VARIABLE is name of variable containing _space_ separated list of
10491# directories to be munged by the contents of PATH, which is string
10492# having a format:
10493# "DIR[:DIR]:"
10494# string "DIR[ DIR]" will be prepended to VARIABLE
10495# ":DIR[:DIR]"
10496# string "DIR[ DIR]" will be appended to VARIABLE
10497# "DIRP[:DIRP]::[DIRA:]DIRA"
10498# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10499# "DIRA[ DIRA]" will be appended to VARIABLE
10500# "DIR[:DIR]"
10501# VARIABLE will be replaced by "DIR[ DIR]"
10502func_munge_path_list ()
10503{
10504 case x$2 in
10505 x)
10506 ;;
10507 *:)
10508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10509 ;;
10510 x:*)
10511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10512 ;;
10513 *::*)
10514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10516 ;;
10517 *)
10518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10519 ;;
10520 esac
10521}
10522
Alex Deymo486467e2017-12-19 19:04:07 +010010523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10524$as_echo_n "checking for ANSI C header files... " >&6; }
10525if ${ac_cv_header_stdc+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h. */
10530#include <stdlib.h>
10531#include <stdarg.h>
10532#include <string.h>
10533#include <float.h>
10534
10535int main (void)
10536{
10537
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_compile "$LINENO"; then :
10543 ac_cv_header_stdc=yes
10544else
10545 ac_cv_header_stdc=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548
10549if test $ac_cv_header_stdc = yes; then
10550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h. */
10553#include <string.h>
10554
10555_ACEOF
10556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10557 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h. */
10570#include <stdlib.h>
10571
10572_ACEOF
10573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10574 $EGREP "free" >/dev/null 2>&1; then :
10575
10576else
10577 ac_cv_header_stdc=no
10578fi
10579rm -f conftest*
10580
10581fi
10582
10583if test $ac_cv_header_stdc = yes; then
10584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10585 if test "$cross_compiling" = yes; then :
10586 :
10587else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h. */
10590#include <ctype.h>
10591#include <stdlib.h>
10592#if ((' ' & 0x0FF) == 0x020)
10593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10595#else
10596# define ISLOWER(c) \
10597 (('a' <= (c) && (c) <= 'i') \
10598 || ('j' <= (c) && (c) <= 'r') \
10599 || ('s' <= (c) && (c) <= 'z'))
10600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10601#endif
10602
10603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10604int
10605main ()
10606{
10607 int i;
10608 for (i = 0; i < 256; i++)
10609 if (XOR (islower (i), ISLOWER (i))
10610 || toupper (i) != TOUPPER (i))
10611 return 2;
10612 return 0;
10613}
10614_ACEOF
10615if ac_fn_c_try_run "$LINENO"; then :
10616
10617else
10618 ac_cv_header_stdc=no
10619fi
10620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10621 conftest.$ac_objext conftest.beam conftest.$ac_ext
10622fi
10623
10624fi
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10627$as_echo "$ac_cv_header_stdc" >&6; }
10628if test $ac_cv_header_stdc = yes; then
10629
10630$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10631
10632fi
10633
10634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10636 inttypes.h stdint.h unistd.h
10637do :
10638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10640"
10641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10642 cat >>confdefs.h <<_ACEOF
10643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644_ACEOF
10645
10646fi
10647
10648done
10649
10650
Elliott Hughes82be86d2017-09-20 17:00:17 -070010651for ac_header in dlfcn.h
10652do :
10653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10654"
10655if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10656 cat >>confdefs.h <<_ACEOF
10657#define HAVE_DLFCN_H 1
10658_ACEOF
10659
10660fi
10661
10662done
10663
10664# ------------------------------------ #
10665# Determine libtool default behavior #
10666# ------------------------------------ #
10667
10668#
10669# Default behavior is to enable shared and static libraries on systems
10670# where libtool knows how to build both library versions, and does not
10671# require separate configuration and build runs for each flavor.
10672#
10673
10674xc_lt_want_enable_shared='yes'
10675xc_lt_want_enable_static='yes'
10676
10677#
10678# User may have disabled shared or static libraries.
10679#
10680case "x$enable_shared" in # (
10681 xno)
10682 xc_lt_want_enable_shared='no'
10683 ;;
10684esac
10685case "x$enable_static" in # (
10686 xno)
10687 xc_lt_want_enable_static='no'
10688 ;;
10689esac
10690if test "x$xc_lt_want_enable_shared" = 'xno' &&
10691 test "x$xc_lt_want_enable_static" = 'xno'; then
10692 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10693fi
10694
10695#
10696# Default behavior on systems that require independent configuration
10697# and build runs for shared and static is to enable shared libraries
10698# and disable static ones. On these systems option '--disable-shared'
10699# must be used in order to build a proper static library.
10700#
10701
10702if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10703 test "x$xc_lt_want_enable_static" = 'xyes'; then
10704 case $host_os in # (
10705 pw32* | cegcc* | os2* | aix*)
10706 xc_lt_want_enable_static='no'
10707 ;;
10708 esac
10709fi
10710
10711#
10712# Make libtool aware of current shared and static library preferences
10713# taking in account that, depending on host characteristics, libtool
10714# may modify these option preferences later in this configure script.
10715#
10716
10717enable_shared=$xc_lt_want_enable_shared
10718enable_static=$xc_lt_want_enable_static
10719
10720#
10721# Default behavior is to build PIC objects for shared libraries and
10722# non-PIC objects for static libraries.
10723#
10724
10725xc_lt_want_with_pic='default'
10726
10727#
10728# User may have specified PIC preference.
10729#
10730
10731case "x$with_pic" in # ((
10732 xno)
10733 xc_lt_want_with_pic='no'
10734 ;;
10735 xyes)
10736 xc_lt_want_with_pic='yes'
10737 ;;
10738esac
10739
10740#
10741# Default behavior on some systems where building a shared library out
10742# of non-PIC compiled objects will fail with following linker error
10743# "relocation R_X86_64_32 can not be used when making a shared object"
10744# is to build PIC objects even for static libraries. This behavior may
10745# be overridden using 'configure --disable-shared --without-pic'.
10746#
10747
10748if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10749 case $host_cpu in # (
10750 x86_64 | amd64 | ia64)
10751 case $host_os in # (
10752 linux* | freebsd*)
10753 xc_lt_want_with_pic='yes'
10754 ;;
10755 esac
10756 ;;
10757 esac
10758fi
10759
10760#
10761# Make libtool aware of current PIC preference taking in account that,
10762# depending on host characteristics, libtool may modify PIC default
10763# behavior to fit host system idiosyncrasies later in this script.
10764#
10765
10766with_pic=$xc_lt_want_with_pic
10767
10768## ----------------------- ##
10769## Start of libtool code ##
10770## ----------------------- ##
10771
10772
10773
10774
10775# Set options
10776enable_win32_dll=yes
10777
10778case $host in
10779*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10780 if test -n "$ac_tool_prefix"; then
10781 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10782set dummy ${ac_tool_prefix}as; ac_word=$2
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784$as_echo_n "checking for $ac_word... " >&6; }
10785if ${ac_cv_prog_AS+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$AS"; then
10789 ac_cv_prog_AS="$AS" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_AS="${ac_tool_prefix}as"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803 done
10804IFS=$as_save_IFS
10805
10806fi
10807fi
10808AS=$ac_cv_prog_AS
10809if test -n "$AS"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10811$as_echo "$AS" >&6; }
10812else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818fi
10819if test -z "$ac_cv_prog_AS"; then
10820 ac_ct_AS=$AS
10821 # Extract the first word of "as", so it can be a program name with args.
10822set dummy as; ac_word=$2
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if ${ac_cv_prog_ac_ct_AS+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827else
10828 if test -n "$ac_ct_AS"; then
10829 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10838 ac_cv_prog_ac_ct_AS="as"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843 done
10844IFS=$as_save_IFS
10845
10846fi
10847fi
10848ac_ct_AS=$ac_cv_prog_ac_ct_AS
10849if test -n "$ac_ct_AS"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10851$as_echo "$ac_ct_AS" >&6; }
10852else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855fi
10856
10857 if test "x$ac_ct_AS" = x; then
10858 AS="false"
10859 else
10860 case $cross_compiling:$ac_tool_warned in
10861yes:)
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10864ac_tool_warned=yes ;;
10865esac
10866 AS=$ac_ct_AS
10867 fi
10868else
10869 AS="$ac_cv_prog_AS"
10870fi
10871
10872 if test -n "$ac_tool_prefix"; then
10873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10874set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if ${ac_cv_prog_DLLTOOL+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$DLLTOOL"; then
10881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900DLLTOOL=$ac_cv_prog_DLLTOOL
10901if test -n "$DLLTOOL"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10903$as_echo "$DLLTOOL" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910fi
10911if test -z "$ac_cv_prog_DLLTOOL"; then
10912 ac_ct_DLLTOOL=$DLLTOOL
10913 # Extract the first word of "dlltool", so it can be a program name with args.
10914set dummy dlltool; ac_word=$2
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
10917if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$ac_ct_DLLTOOL"; then
10921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10941if test -n "$ac_ct_DLLTOOL"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10943$as_echo "$ac_ct_DLLTOOL" >&6; }
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
10949 if test "x$ac_ct_DLLTOOL" = x; then
10950 DLLTOOL="false"
10951 else
10952 case $cross_compiling:$ac_tool_warned in
10953yes:)
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10956ac_tool_warned=yes ;;
10957esac
10958 DLLTOOL=$ac_ct_DLLTOOL
10959 fi
10960else
10961 DLLTOOL="$ac_cv_prog_DLLTOOL"
10962fi
10963
10964 if test -n "$ac_tool_prefix"; then
10965 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10966set dummy ${ac_tool_prefix}objdump; ac_word=$2
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968$as_echo_n "checking for $ac_word... " >&6; }
10969if ${ac_cv_prog_OBJDUMP+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971else
10972 if test -n "$OBJDUMP"; then
10973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987 done
10988IFS=$as_save_IFS
10989
10990fi
10991fi
10992OBJDUMP=$ac_cv_prog_OBJDUMP
10993if test -n "$OBJDUMP"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10995$as_echo "$OBJDUMP" >&6; }
10996else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
10999fi
11000
11001
11002fi
11003if test -z "$ac_cv_prog_OBJDUMP"; then
11004 ac_ct_OBJDUMP=$OBJDUMP
11005 # Extract the first word of "objdump", so it can be a program name with args.
11006set dummy objdump; ac_word=$2
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008$as_echo_n "checking for $ac_word... " >&6; }
11009if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011else
11012 if test -n "$ac_ct_OBJDUMP"; then
11013 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11014else
11015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $PATH
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11025 fi
11026done
11027 done
11028IFS=$as_save_IFS
11029
11030fi
11031fi
11032ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11033if test -n "$ac_ct_OBJDUMP"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11035$as_echo "$ac_ct_OBJDUMP" >&6; }
11036else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039fi
11040
11041 if test "x$ac_ct_OBJDUMP" = x; then
11042 OBJDUMP="false"
11043 else
11044 case $cross_compiling:$ac_tool_warned in
11045yes:)
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048ac_tool_warned=yes ;;
11049esac
11050 OBJDUMP=$ac_ct_OBJDUMP
11051 fi
11052else
11053 OBJDUMP="$ac_cv_prog_OBJDUMP"
11054fi
11055
11056 ;;
11057esac
11058
11059test -z "$AS" && AS=as
11060
11061
11062
11063
11064
11065test -z "$DLLTOOL" && DLLTOOL=dlltool
11066
11067
11068
11069
11070
11071test -z "$OBJDUMP" && OBJDUMP=objdump
11072
11073
11074
11075
11076
11077
11078
11079 enable_dlopen=no
11080
11081
11082
11083 # Check whether --enable-shared was given.
11084if test "${enable_shared+set}" = set; then :
11085 enableval=$enable_shared; p=${PACKAGE-default}
11086 case $enableval in
11087 yes) enable_shared=yes ;;
11088 no) enable_shared=no ;;
11089 *)
11090 enable_shared=no
11091 # Look at the argument we got. We use all the common list separators.
11092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11093 for pkg in $enableval; do
11094 IFS=$lt_save_ifs
11095 if test "X$pkg" = "X$p"; then
11096 enable_shared=yes
11097 fi
11098 done
11099 IFS=$lt_save_ifs
11100 ;;
11101 esac
11102else
11103 enable_shared=yes
11104fi
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114 # Check whether --enable-static was given.
11115if test "${enable_static+set}" = set; then :
11116 enableval=$enable_static; p=${PACKAGE-default}
11117 case $enableval in
11118 yes) enable_static=yes ;;
11119 no) enable_static=no ;;
11120 *)
11121 enable_static=no
11122 # Look at the argument we got. We use all the common list separators.
11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11124 for pkg in $enableval; do
11125 IFS=$lt_save_ifs
11126 if test "X$pkg" = "X$p"; then
11127 enable_static=yes
11128 fi
11129 done
11130 IFS=$lt_save_ifs
11131 ;;
11132 esac
11133else
11134 enable_static=yes
11135fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146# Check whether --with-pic was given.
11147if test "${with_pic+set}" = set; then :
11148 withval=$with_pic; lt_p=${PACKAGE-default}
11149 case $withval in
11150 yes|no) pic_mode=$withval ;;
11151 *)
11152 pic_mode=default
11153 # Look at the argument we got. We use all the common list separators.
11154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11155 for lt_pkg in $withval; do
11156 IFS=$lt_save_ifs
11157 if test "X$lt_pkg" = "X$lt_p"; then
11158 pic_mode=yes
11159 fi
11160 done
11161 IFS=$lt_save_ifs
11162 ;;
11163 esac
11164else
11165 pic_mode=default
11166fi
11167
11168
11169
11170
11171
11172
11173
11174
11175 # Check whether --enable-fast-install was given.
11176if test "${enable_fast_install+set}" = set; then :
11177 enableval=$enable_fast_install; p=${PACKAGE-default}
11178 case $enableval in
11179 yes) enable_fast_install=yes ;;
11180 no) enable_fast_install=no ;;
11181 *)
11182 enable_fast_install=no
11183 # Look at the argument we got. We use all the common list separators.
11184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11185 for pkg in $enableval; do
11186 IFS=$lt_save_ifs
11187 if test "X$pkg" = "X$p"; then
11188 enable_fast_install=yes
11189 fi
11190 done
11191 IFS=$lt_save_ifs
11192 ;;
11193 esac
11194else
11195 enable_fast_install=yes
11196fi
11197
11198
11199
11200
11201
11202
11203
11204
11205 shared_archive_member_spec=
11206case $host,$enable_shared in
11207power*-*-aix[5-9]*,yes)
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11209$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11210
11211# Check whether --with-aix-soname was given.
11212if test "${with_aix_soname+set}" = set; then :
11213 withval=$with_aix_soname; case $withval in
11214 aix|svr4|both)
11215 ;;
11216 *)
11217 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11218 ;;
11219 esac
11220 lt_cv_with_aix_soname=$with_aix_soname
11221else
11222 if ${lt_cv_with_aix_soname+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224else
11225 lt_cv_with_aix_soname=aix
11226fi
11227
11228 with_aix_soname=$lt_cv_with_aix_soname
11229fi
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11232$as_echo "$with_aix_soname" >&6; }
11233 if test aix != "$with_aix_soname"; then
11234 # For the AIX way of multilib, we name the shared archive member
11235 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11236 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11237 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11238 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11239 if test 64 = "${OBJECT_MODE-32}"; then
11240 shared_archive_member_spec=shr_64
11241 else
11242 shared_archive_member_spec=shr
11243 fi
11244 fi
11245 ;;
11246*)
11247 with_aix_soname=aix
11248 ;;
11249esac
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260# This can be used to rebuild libtool when needed
11261LIBTOOL_DEPS=$ltmain
11262
11263# Always use our own libtool.
11264LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295test -z "$LN_S" && LN_S="ln -s"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310if test -n "${ZSH_VERSION+set}"; then
11311 setopt NO_GLOB_SUBST
11312fi
11313
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11315$as_echo_n "checking for objdir... " >&6; }
11316if ${lt_cv_objdir+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318else
11319 rm -f .libs 2>/dev/null
11320mkdir .libs 2>/dev/null
11321if test -d .libs; then
11322 lt_cv_objdir=.libs
11323else
11324 # MS-DOS does not allow filenames that begin with a dot.
11325 lt_cv_objdir=_libs
11326fi
11327rmdir .libs 2>/dev/null
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11330$as_echo "$lt_cv_objdir" >&6; }
11331objdir=$lt_cv_objdir
11332
11333
11334
11335
11336
11337cat >>confdefs.h <<_ACEOF
11338#define LT_OBJDIR "$lt_cv_objdir/"
11339_ACEOF
11340
11341
11342
11343
11344case $host_os in
11345aix3*)
11346 # AIX sometimes has problems with the GCC collect2 program. For some
11347 # reason, if we set the COLLECT_NAMES environment variable, the problems
11348 # vanish in a puff of smoke.
11349 if test set != "${COLLECT_NAMES+set}"; then
11350 COLLECT_NAMES=
11351 export COLLECT_NAMES
11352 fi
11353 ;;
11354esac
11355
11356# Global variables:
11357ofile=libtool
11358can_build_shared=yes
11359
11360# All known linkers require a '.a' archive for static linking (except MSVC,
11361# which needs '.lib').
11362libext=a
11363
11364with_gnu_ld=$lt_cv_prog_gnu_ld
11365
11366old_CC=$CC
11367old_CFLAGS=$CFLAGS
11368
11369# Set sane defaults for various variables
11370test -z "$CC" && CC=cc
11371test -z "$LTCC" && LTCC=$CC
11372test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11373test -z "$LD" && LD=ld
11374test -z "$ac_objext" && ac_objext=o
11375
11376func_cc_basename $compiler
11377cc_basename=$func_cc_basename_result
11378
11379
11380# Only perform the check for file, if the check method requires it
11381test -z "$MAGIC_CMD" && MAGIC_CMD=file
11382case $deplibs_check_method in
11383file_magic*)
11384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11386$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11387if ${lt_cv_path_MAGIC_CMD+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389else
11390 case $MAGIC_CMD in
11391[\\/*] | ?:[\\/]*)
11392 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11393 ;;
11394*)
11395 lt_save_MAGIC_CMD=$MAGIC_CMD
11396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11398 for ac_dir in $ac_dummy; do
11399 IFS=$lt_save_ifs
11400 test -z "$ac_dir" && ac_dir=.
11401 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11402 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11403 if test -n "$file_magic_test_file"; then
11404 case $deplibs_check_method in
11405 "file_magic "*)
11406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11409 $EGREP "$file_magic_regex" > /dev/null; then
11410 :
11411 else
11412 cat <<_LT_EOF 1>&2
11413
11414*** Warning: the command libtool uses to detect shared libraries,
11415*** $file_magic_cmd, produces output that libtool cannot recognize.
11416*** The result is that libtool may fail to recognize shared libraries
11417*** as such. This will affect the creation of libtool libraries that
11418*** depend on shared libraries, but programs linked with such libtool
11419*** libraries will work regardless of this problem. Nevertheless, you
11420*** may want to report the problem to your system manager and/or to
11421*** bug-libtool@gnu.org
11422
11423_LT_EOF
11424 fi ;;
11425 esac
11426 fi
11427 break
11428 fi
11429 done
11430 IFS=$lt_save_ifs
11431 MAGIC_CMD=$lt_save_MAGIC_CMD
11432 ;;
11433esac
11434fi
11435
11436MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11437if test -n "$MAGIC_CMD"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11439$as_echo "$MAGIC_CMD" >&6; }
11440else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
11443fi
11444
11445
11446
11447
11448
11449if test -z "$lt_cv_path_MAGIC_CMD"; then
11450 if test -n "$ac_tool_prefix"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11452$as_echo_n "checking for file... " >&6; }
11453if ${lt_cv_path_MAGIC_CMD+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455else
11456 case $MAGIC_CMD in
11457[\\/*] | ?:[\\/]*)
11458 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11459 ;;
11460*)
11461 lt_save_MAGIC_CMD=$MAGIC_CMD
11462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11464 for ac_dir in $ac_dummy; do
11465 IFS=$lt_save_ifs
11466 test -z "$ac_dir" && ac_dir=.
11467 if test -f "$ac_dir/file"; then
11468 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11469 if test -n "$file_magic_test_file"; then
11470 case $deplibs_check_method in
11471 "file_magic "*)
11472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11475 $EGREP "$file_magic_regex" > /dev/null; then
11476 :
11477 else
11478 cat <<_LT_EOF 1>&2
11479
11480*** Warning: the command libtool uses to detect shared libraries,
11481*** $file_magic_cmd, produces output that libtool cannot recognize.
11482*** The result is that libtool may fail to recognize shared libraries
11483*** as such. This will affect the creation of libtool libraries that
11484*** depend on shared libraries, but programs linked with such libtool
11485*** libraries will work regardless of this problem. Nevertheless, you
11486*** may want to report the problem to your system manager and/or to
11487*** bug-libtool@gnu.org
11488
11489_LT_EOF
11490 fi ;;
11491 esac
11492 fi
11493 break
11494 fi
11495 done
11496 IFS=$lt_save_ifs
11497 MAGIC_CMD=$lt_save_MAGIC_CMD
11498 ;;
11499esac
11500fi
11501
11502MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11503if test -n "$MAGIC_CMD"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11505$as_echo "$MAGIC_CMD" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
11512 else
11513 MAGIC_CMD=:
11514 fi
11515fi
11516
11517 fi
11518 ;;
11519esac
11520
11521# Use C for the default configuration in the libtool script
11522
11523lt_save_CC=$CC
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530
11531# Source file extension for C test sources.
11532ac_ext=c
11533
11534# Object file extension for compiled C test sources.
11535objext=o
11536objext=$objext
11537
11538# Code to be used in simple compile tests
11539lt_simple_compile_test_code="int some_variable = 0;"
11540
11541# Code to be used in simple link tests
11542lt_simple_link_test_code='int main(){return(0);}'
11543
11544
11545
11546
11547
11548
11549
11550# If no C compiler was specified, use CC.
11551LTCC=${LTCC-"$CC"}
11552
11553# If no C compiler flags were specified, use CFLAGS.
11554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11555
11556# Allow CC to be a program name with arguments.
11557compiler=$CC
11558
11559# Save the default compiler, since it gets overwritten when the other
11560# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11561compiler_DEFAULT=$CC
11562
11563# save warnings/boilerplate of simple test code
11564ac_outfile=conftest.$ac_objext
11565echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11566eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11567_lt_compiler_boilerplate=`cat conftest.err`
11568$RM conftest*
11569
11570ac_outfile=conftest.$ac_objext
11571echo "$lt_simple_link_test_code" >conftest.$ac_ext
11572eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11573_lt_linker_boilerplate=`cat conftest.err`
11574$RM -r conftest*
11575
11576
11577## CAVEAT EMPTOR:
11578## There is no encapsulation within the following macros, do not change
11579## the running order or otherwise move them around unless you know exactly
11580## what you are doing...
11581if test -n "$compiler"; then
11582
11583lt_prog_compiler_no_builtin_flag=
11584
11585if test yes = "$GCC"; then
11586 case $cc_basename in
11587 nvcc*)
11588 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11589 *)
11590 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11591 esac
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11594$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11595if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 lt_cv_prog_compiler_rtti_exceptions=no
11599 ac_outfile=conftest.$ac_objext
11600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11601 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11602 # Insert the option either (1) after the last *FLAGS variable, or
11603 # (2) before a word containing "conftest.", or (3) at the end.
11604 # Note that $ac_compile itself does not contain backslashes and begins
11605 # with a dollar sign (not a hyphen), so the echo should work correctly.
11606 # The option is referenced via a variable to avoid confusing sed.
11607 lt_compile=`echo "$ac_compile" | $SED \
11608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11610 -e 's:$: $lt_compiler_flag:'`
11611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11612 (eval "$lt_compile" 2>conftest.err)
11613 ac_status=$?
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 if (exit $ac_status) && test -s "$ac_outfile"; then
11617 # The compiler can only warn and ignore the option if not recognized
11618 # So say no if there are warnings other than the usual output.
11619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11622 lt_cv_prog_compiler_rtti_exceptions=yes
11623 fi
11624 fi
11625 $RM conftest*
11626
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11629$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11630
11631if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11632 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11633else
11634 :
11635fi
11636
11637fi
11638
11639
11640
11641
11642
11643
11644 lt_prog_compiler_wl=
11645lt_prog_compiler_pic=
11646lt_prog_compiler_static=
11647
11648
11649 if test yes = "$GCC"; then
11650 lt_prog_compiler_wl='-Wl,'
11651 lt_prog_compiler_static='-static'
11652
11653 case $host_os in
11654 aix*)
11655 # All AIX code is PIC.
11656 if test ia64 = "$host_cpu"; then
11657 # AIX 5 now supports IA64 processor
11658 lt_prog_compiler_static='-Bstatic'
11659 fi
11660 lt_prog_compiler_pic='-fPIC'
11661 ;;
11662
11663 amigaos*)
11664 case $host_cpu in
11665 powerpc)
11666 # see comment about AmigaOS4 .so support
11667 lt_prog_compiler_pic='-fPIC'
11668 ;;
11669 m68k)
11670 # FIXME: we need at least 68020 code to build shared libraries, but
11671 # adding the '-m68020' flag to GCC prevents building anything better,
11672 # like '-m68040'.
11673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11674 ;;
11675 esac
11676 ;;
11677
11678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11679 # PIC is the default for these OSes.
11680 ;;
11681
11682 mingw* | cygwin* | pw32* | os2* | cegcc*)
11683 # This hack is so that the source file can tell whether it is being
11684 # built for inclusion in a dll (and should export symbols for example).
11685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11686 # (--disable-auto-import) libraries
11687 lt_prog_compiler_pic='-DDLL_EXPORT'
11688 case $host_os in
11689 os2*)
11690 lt_prog_compiler_static='$wl-static'
11691 ;;
11692 esac
11693 ;;
11694
11695 darwin* | rhapsody*)
11696 # PIC is the default on this platform
11697 # Common symbols not allowed in MH_DYLIB files
11698 lt_prog_compiler_pic='-fno-common'
11699 ;;
11700
11701 haiku*)
11702 # PIC is the default for Haiku.
11703 # The "-static" flag exists, but is broken.
11704 lt_prog_compiler_static=
11705 ;;
11706
11707 hpux*)
11708 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11709 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11710 # sets the default TLS model and affects inlining.
11711 case $host_cpu in
11712 hppa*64*)
11713 # +Z the default
11714 ;;
11715 *)
11716 lt_prog_compiler_pic='-fPIC'
11717 ;;
11718 esac
11719 ;;
11720
11721 interix[3-9]*)
11722 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11723 # Instead, we relocate shared libraries at runtime.
11724 ;;
11725
11726 msdosdjgpp*)
11727 # Just because we use GCC doesn't mean we suddenly get shared libraries
11728 # on systems that don't support them.
11729 lt_prog_compiler_can_build_shared=no
11730 enable_shared=no
11731 ;;
11732
11733 *nto* | *qnx*)
11734 # QNX uses GNU C++, but need to define -shared option too, otherwise
11735 # it will coredump.
11736 lt_prog_compiler_pic='-fPIC -shared'
11737 ;;
11738
11739 sysv4*MP*)
11740 if test -d /usr/nec; then
11741 lt_prog_compiler_pic=-Kconform_pic
11742 fi
11743 ;;
11744
11745 *)
11746 lt_prog_compiler_pic='-fPIC'
11747 ;;
11748 esac
11749
11750 case $cc_basename in
11751 nvcc*) # Cuda Compiler Driver 2.2
11752 lt_prog_compiler_wl='-Xlinker '
11753 if test -n "$lt_prog_compiler_pic"; then
11754 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11755 fi
11756 ;;
11757 esac
11758 else
11759 # PORTME Check for flag to pass linker flags through the system compiler.
11760 case $host_os in
11761 aix*)
11762 lt_prog_compiler_wl='-Wl,'
11763 if test ia64 = "$host_cpu"; then
11764 # AIX 5 now supports IA64 processor
11765 lt_prog_compiler_static='-Bstatic'
11766 else
11767 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11768 fi
11769 ;;
11770
11771 darwin* | rhapsody*)
11772 # PIC is the default on this platform
11773 # Common symbols not allowed in MH_DYLIB files
11774 lt_prog_compiler_pic='-fno-common'
11775 case $cc_basename in
11776 nagfor*)
11777 # NAG Fortran compiler
11778 lt_prog_compiler_wl='-Wl,-Wl,,'
11779 lt_prog_compiler_pic='-PIC'
11780 lt_prog_compiler_static='-Bstatic'
11781 ;;
11782 esac
11783 ;;
11784
11785 mingw* | cygwin* | pw32* | os2* | cegcc*)
11786 # This hack is so that the source file can tell whether it is being
11787 # built for inclusion in a dll (and should export symbols for example).
11788 lt_prog_compiler_pic='-DDLL_EXPORT'
11789 case $host_os in
11790 os2*)
11791 lt_prog_compiler_static='$wl-static'
11792 ;;
11793 esac
11794 ;;
11795
11796 hpux9* | hpux10* | hpux11*)
11797 lt_prog_compiler_wl='-Wl,'
11798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11799 # not for PA HP-UX.
11800 case $host_cpu in
11801 hppa*64*|ia64*)
11802 # +Z the default
11803 ;;
11804 *)
11805 lt_prog_compiler_pic='+Z'
11806 ;;
11807 esac
11808 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11809 lt_prog_compiler_static='$wl-a ${wl}archive'
11810 ;;
11811
11812 irix5* | irix6* | nonstopux*)
11813 lt_prog_compiler_wl='-Wl,'
11814 # PIC (with -KPIC) is the default.
11815 lt_prog_compiler_static='-non_shared'
11816 ;;
11817
11818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11819 case $cc_basename in
11820 # old Intel for x86_64, which still supported -KPIC.
11821 ecc*)
11822 lt_prog_compiler_wl='-Wl,'
11823 lt_prog_compiler_pic='-KPIC'
11824 lt_prog_compiler_static='-static'
11825 ;;
11826 # icc used to be incompatible with GCC.
11827 # ICC 10 doesn't accept -KPIC any more.
11828 icc* | ifort*)
11829 lt_prog_compiler_wl='-Wl,'
11830 lt_prog_compiler_pic='-fPIC'
11831 lt_prog_compiler_static='-static'
11832 ;;
11833 # Lahey Fortran 8.1.
11834 lf95*)
11835 lt_prog_compiler_wl='-Wl,'
11836 lt_prog_compiler_pic='--shared'
11837 lt_prog_compiler_static='--static'
11838 ;;
11839 nagfor*)
11840 # NAG Fortran compiler
11841 lt_prog_compiler_wl='-Wl,-Wl,,'
11842 lt_prog_compiler_pic='-PIC'
11843 lt_prog_compiler_static='-Bstatic'
11844 ;;
11845 tcc*)
11846 # Fabrice Bellard et al's Tiny C Compiler
11847 lt_prog_compiler_wl='-Wl,'
11848 lt_prog_compiler_pic='-fPIC'
11849 lt_prog_compiler_static='-static'
11850 ;;
11851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11852 # Portland Group compilers (*not* the Pentium gcc compiler,
11853 # which looks to be a dead project)
11854 lt_prog_compiler_wl='-Wl,'
11855 lt_prog_compiler_pic='-fpic'
11856 lt_prog_compiler_static='-Bstatic'
11857 ;;
11858 ccc*)
11859 lt_prog_compiler_wl='-Wl,'
11860 # All Alpha code is PIC.
11861 lt_prog_compiler_static='-non_shared'
11862 ;;
11863 xl* | bgxl* | bgf* | mpixl*)
11864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11865 lt_prog_compiler_wl='-Wl,'
11866 lt_prog_compiler_pic='-qpic'
11867 lt_prog_compiler_static='-qstaticlink'
11868 ;;
11869 *)
11870 case `$CC -V 2>&1 | sed 5q` in
11871 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11875 lt_prog_compiler_wl=''
11876 ;;
11877 *Sun\ F* | *Sun*Fortran*)
11878 lt_prog_compiler_pic='-KPIC'
11879 lt_prog_compiler_static='-Bstatic'
11880 lt_prog_compiler_wl='-Qoption ld '
11881 ;;
11882 *Sun\ C*)
11883 # Sun C 5.9
11884 lt_prog_compiler_pic='-KPIC'
11885 lt_prog_compiler_static='-Bstatic'
11886 lt_prog_compiler_wl='-Wl,'
11887 ;;
11888 *Intel*\ [CF]*Compiler*)
11889 lt_prog_compiler_wl='-Wl,'
11890 lt_prog_compiler_pic='-fPIC'
11891 lt_prog_compiler_static='-static'
11892 ;;
11893 *Portland\ Group*)
11894 lt_prog_compiler_wl='-Wl,'
11895 lt_prog_compiler_pic='-fpic'
11896 lt_prog_compiler_static='-Bstatic'
11897 ;;
11898 esac
11899 ;;
11900 esac
11901 ;;
11902
11903 newsos6)
11904 lt_prog_compiler_pic='-KPIC'
11905 lt_prog_compiler_static='-Bstatic'
11906 ;;
11907
11908 *nto* | *qnx*)
11909 # QNX uses GNU C++, but need to define -shared option too, otherwise
11910 # it will coredump.
11911 lt_prog_compiler_pic='-fPIC -shared'
11912 ;;
11913
11914 osf3* | osf4* | osf5*)
11915 lt_prog_compiler_wl='-Wl,'
11916 # All OSF/1 code is PIC.
11917 lt_prog_compiler_static='-non_shared'
11918 ;;
11919
11920 rdos*)
11921 lt_prog_compiler_static='-non_shared'
11922 ;;
11923
11924 solaris*)
11925 lt_prog_compiler_pic='-KPIC'
11926 lt_prog_compiler_static='-Bstatic'
11927 case $cc_basename in
11928 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11929 lt_prog_compiler_wl='-Qoption ld ';;
11930 *)
11931 lt_prog_compiler_wl='-Wl,';;
11932 esac
11933 ;;
11934
11935 sunos4*)
11936 lt_prog_compiler_wl='-Qoption ld '
11937 lt_prog_compiler_pic='-PIC'
11938 lt_prog_compiler_static='-Bstatic'
11939 ;;
11940
11941 sysv4 | sysv4.2uw2* | sysv4.3*)
11942 lt_prog_compiler_wl='-Wl,'
11943 lt_prog_compiler_pic='-KPIC'
11944 lt_prog_compiler_static='-Bstatic'
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 lt_prog_compiler_pic='-Kconform_pic'
11950 lt_prog_compiler_static='-Bstatic'
11951 fi
11952 ;;
11953
11954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
11958 ;;
11959
11960 unicos*)
11961 lt_prog_compiler_wl='-Wl,'
11962 lt_prog_compiler_can_build_shared=no
11963 ;;
11964
11965 uts4*)
11966 lt_prog_compiler_pic='-pic'
11967 lt_prog_compiler_static='-Bstatic'
11968 ;;
11969
11970 *)
11971 lt_prog_compiler_can_build_shared=no
11972 ;;
11973 esac
11974 fi
11975
11976case $host_os in
11977 # For platforms that do not support PIC, -DPIC is meaningless:
11978 *djgpp*)
11979 lt_prog_compiler_pic=
11980 ;;
11981 *)
11982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11983 ;;
11984esac
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11987$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11988if ${lt_cv_prog_compiler_pic+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990else
11991 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11994$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11995lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11996
11997#
11998# Check to make sure the PIC flag actually works.
11999#
12000if test -n "$lt_prog_compiler_pic"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12002$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12003if ${lt_cv_prog_compiler_pic_works+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005else
12006 lt_cv_prog_compiler_pic_works=no
12007 ac_outfile=conftest.$ac_objext
12008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12010 # Insert the option either (1) after the last *FLAGS variable, or
12011 # (2) before a word containing "conftest.", or (3) at the end.
12012 # Note that $ac_compile itself does not contain backslashes and begins
12013 # with a dollar sign (not a hyphen), so the echo should work correctly.
12014 # The option is referenced via a variable to avoid confusing sed.
12015 lt_compile=`echo "$ac_compile" | $SED \
12016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12018 -e 's:$: $lt_compiler_flag:'`
12019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12020 (eval "$lt_compile" 2>conftest.err)
12021 ac_status=$?
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 if (exit $ac_status) && test -s "$ac_outfile"; then
12025 # The compiler can only warn and ignore the option if not recognized
12026 # So say no if there are warnings other than the usual output.
12027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12030 lt_cv_prog_compiler_pic_works=yes
12031 fi
12032 fi
12033 $RM conftest*
12034
12035fi
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12037$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12038
12039if test yes = "$lt_cv_prog_compiler_pic_works"; then
12040 case $lt_prog_compiler_pic in
12041 "" | " "*) ;;
12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12043 esac
12044else
12045 lt_prog_compiler_pic=
12046 lt_prog_compiler_can_build_shared=no
12047fi
12048
12049fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061#
12062# Check to make sure the static flag actually works.
12063#
12064wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12066$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12067if ${lt_cv_prog_compiler_static_works+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069else
12070 lt_cv_prog_compiler_static_works=no
12071 save_LDFLAGS=$LDFLAGS
12072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12075 # The linker can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 if test -s conftest.err; then
12078 # Append any errors to the config.log.
12079 cat conftest.err 1>&5
12080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12082 if diff conftest.exp conftest.er2 >/dev/null; then
12083 lt_cv_prog_compiler_static_works=yes
12084 fi
12085 else
12086 lt_cv_prog_compiler_static_works=yes
12087 fi
12088 fi
12089 $RM -r conftest*
12090 LDFLAGS=$save_LDFLAGS
12091
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12094$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12095
12096if test yes = "$lt_cv_prog_compiler_static_works"; then
12097 :
12098else
12099 lt_prog_compiler_static=
12100fi
12101
12102
12103
12104
12105
12106
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12109$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12110if ${lt_cv_prog_compiler_c_o+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112else
12113 lt_cv_prog_compiler_c_o=no
12114 $RM -r conftest 2>/dev/null
12115 mkdir conftest
12116 cd conftest
12117 mkdir out
12118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12119
12120 lt_compiler_flag="-o out/conftest2.$ac_objext"
12121 # Insert the option either (1) after the last *FLAGS variable, or
12122 # (2) before a word containing "conftest.", or (3) at the end.
12123 # Note that $ac_compile itself does not contain backslashes and begins
12124 # with a dollar sign (not a hyphen), so the echo should work correctly.
12125 lt_compile=`echo "$ac_compile" | $SED \
12126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12128 -e 's:$: $lt_compiler_flag:'`
12129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12130 (eval "$lt_compile" 2>out/conftest.err)
12131 ac_status=$?
12132 cat out/conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12135 then
12136 # The compiler can only warn and ignore the option if not recognized
12137 # So say no if there are warnings
12138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12141 lt_cv_prog_compiler_c_o=yes
12142 fi
12143 fi
12144 chmod u+w . 2>&5
12145 $RM conftest*
12146 # SGI C++ compiler will create directory out/ii_files/ for
12147 # template instantiation
12148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12149 $RM out/* && rmdir out
12150 cd ..
12151 $RM -r conftest
12152 $RM conftest*
12153
12154fi
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12156$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12157
12158
12159
12160
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12164$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12165if ${lt_cv_prog_compiler_c_o+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167else
12168 lt_cv_prog_compiler_c_o=no
12169 $RM -r conftest 2>/dev/null
12170 mkdir conftest
12171 cd conftest
12172 mkdir out
12173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12174
12175 lt_compiler_flag="-o out/conftest2.$ac_objext"
12176 # Insert the option either (1) after the last *FLAGS variable, or
12177 # (2) before a word containing "conftest.", or (3) at the end.
12178 # Note that $ac_compile itself does not contain backslashes and begins
12179 # with a dollar sign (not a hyphen), so the echo should work correctly.
12180 lt_compile=`echo "$ac_compile" | $SED \
12181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12183 -e 's:$: $lt_compiler_flag:'`
12184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12185 (eval "$lt_compile" 2>out/conftest.err)
12186 ac_status=$?
12187 cat out/conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12190 then
12191 # The compiler can only warn and ignore the option if not recognized
12192 # So say no if there are warnings
12193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12196 lt_cv_prog_compiler_c_o=yes
12197 fi
12198 fi
12199 chmod u+w . 2>&5
12200 $RM conftest*
12201 # SGI C++ compiler will create directory out/ii_files/ for
12202 # template instantiation
12203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12204 $RM out/* && rmdir out
12205 cd ..
12206 $RM -r conftest
12207 $RM conftest*
12208
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12211$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12212
12213
12214
12215
12216hard_links=nottested
12217if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12218 # do not overwrite the value of need_locks provided by the user
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12220$as_echo_n "checking if we can lock with hard links... " >&6; }
12221 hard_links=yes
12222 $RM conftest*
12223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12224 touch conftest.a
12225 ln conftest.a conftest.b 2>&5 || hard_links=no
12226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12228$as_echo "$hard_links" >&6; }
12229 if test no = "$hard_links"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12231$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12232 need_locks=warn
12233 fi
12234else
12235 need_locks=no
12236fi
12237
12238
12239
12240
12241
12242
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12244$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12245
12246 runpath_var=
12247 allow_undefined_flag=
12248 always_export_symbols=no
12249 archive_cmds=
12250 archive_expsym_cmds=
12251 compiler_needs_object=no
12252 enable_shared_with_static_runtimes=no
12253 export_dynamic_flag_spec=
12254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12255 hardcode_automatic=no
12256 hardcode_direct=no
12257 hardcode_direct_absolute=no
12258 hardcode_libdir_flag_spec=
12259 hardcode_libdir_separator=
12260 hardcode_minus_L=no
12261 hardcode_shlibpath_var=unsupported
12262 inherit_rpath=no
12263 link_all_deplibs=unknown
12264 module_cmds=
12265 module_expsym_cmds=
12266 old_archive_from_new_cmds=
12267 old_archive_from_expsyms_cmds=
12268 thread_safe_flag_spec=
12269 whole_archive_flag_spec=
12270 # include_expsyms should be a list of space-separated symbols to be *always*
12271 # included in the symbol list
12272 include_expsyms=
12273 # exclude_expsyms can be an extended regexp of symbols to exclude
12274 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12275 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12276 # as well as any symbol that contains 'd'.
12277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12279 # platforms (ab)use it in PIC code, but their linkers get confused if
12280 # the symbol is explicitly referenced. Since portable code cannot
12281 # rely on this symbol name, it's probably fine to never include it in
12282 # preloaded symbol tables.
12283 # Exclude shared library initialization/finalization symbols.
12284 extract_expsyms_cmds=
12285
12286 case $host_os in
12287 cygwin* | mingw* | pw32* | cegcc*)
12288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12289 # When not using gcc, we currently assume that we are using
12290 # Microsoft Visual C++.
12291 if test yes != "$GCC"; then
12292 with_gnu_ld=no
12293 fi
12294 ;;
12295 interix*)
12296 # we just hope/assume this is gcc and not c89 (= MSVC++)
12297 with_gnu_ld=yes
12298 ;;
12299 openbsd* | bitrig*)
12300 with_gnu_ld=no
12301 ;;
12302 linux* | k*bsd*-gnu | gnu*)
12303 link_all_deplibs=no
12304 ;;
12305 esac
12306
12307 ld_shlibs=yes
12308
12309 # On some targets, GNU ld is compatible enough with the native linker
12310 # that we're better off using the native interface for both.
12311 lt_use_gnu_ld_interface=no
12312 if test yes = "$with_gnu_ld"; then
12313 case $host_os in
12314 aix*)
12315 # The AIX port of GNU ld has always aspired to compatibility
12316 # with the native linker. However, as the warning in the GNU ld
12317 # block says, versions before 2.19.5* couldn't really create working
12318 # shared libraries, regardless of the interface used.
12319 case `$LD -v 2>&1` in
12320 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12321 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12322 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12323 *)
12324 lt_use_gnu_ld_interface=yes
12325 ;;
12326 esac
12327 ;;
12328 *)
12329 lt_use_gnu_ld_interface=yes
12330 ;;
12331 esac
12332 fi
12333
12334 if test yes = "$lt_use_gnu_ld_interface"; then
12335 # If archive_cmds runs LD, not CC, wlarc should be empty
12336 wlarc='$wl'
12337
12338 # Set some defaults for GNU ld with shared library support. These
12339 # are reset later if shared libraries are not supported. Putting them
12340 # here allows them to be overridden if necessary.
12341 runpath_var=LD_RUN_PATH
12342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12343 export_dynamic_flag_spec='$wl--export-dynamic'
12344 # ancient GNU ld didn't support --whole-archive et. al.
12345 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12346 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12347 else
12348 whole_archive_flag_spec=
12349 fi
12350 supports_anon_versioning=no
12351 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12352 *GNU\ gold*) supports_anon_versioning=yes ;;
12353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12356 *\ 2.11.*) ;; # other 2.11 versions
12357 *) supports_anon_versioning=yes ;;
12358 esac
12359
12360 # See if GNU ld supports shared libraries.
12361 case $host_os in
12362 aix[3-9]*)
12363 # On AIX/PPC, the GNU linker is very broken
12364 if test ia64 != "$host_cpu"; then
12365 ld_shlibs=no
12366 cat <<_LT_EOF 1>&2
12367
12368*** Warning: the GNU linker, at least up to release 2.19, is reported
12369*** to be unable to reliably create shared libraries on AIX.
12370*** Therefore, libtool is disabling shared libraries support. If you
12371*** really care for shared libraries, you may want to install binutils
12372*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12373*** You will then need to restart the configuration process.
12374
12375_LT_EOF
12376 fi
12377 ;;
12378
12379 amigaos*)
12380 case $host_cpu in
12381 powerpc)
12382 # see comment about AmigaOS4 .so support
12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384 archive_expsym_cmds=''
12385 ;;
12386 m68k)
12387 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)'
12388 hardcode_libdir_flag_spec='-L$libdir'
12389 hardcode_minus_L=yes
12390 ;;
12391 esac
12392 ;;
12393
12394 beos*)
12395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12396 allow_undefined_flag=unsupported
12397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12398 # support --undefined. This deserves some investigation. FIXME
12399 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12400 else
12401 ld_shlibs=no
12402 fi
12403 ;;
12404
12405 cygwin* | mingw* | pw32* | cegcc*)
12406 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12407 # as there is no search path for DLLs.
12408 hardcode_libdir_flag_spec='-L$libdir'
12409 export_dynamic_flag_spec='$wl--export-all-symbols'
12410 allow_undefined_flag=unsupported
12411 always_export_symbols=no
12412 enable_shared_with_static_runtimes=yes
12413 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'
12414 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12415
12416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12418 # If the export-symbols file already is a .def file, use it as
12419 # is; otherwise, prepend EXPORTS...
12420 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12421 cp $export_symbols $output_objdir/$soname.def;
12422 else
12423 echo EXPORTS > $output_objdir/$soname.def;
12424 cat $export_symbols >> $output_objdir/$soname.def;
12425 fi~
12426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12427 else
12428 ld_shlibs=no
12429 fi
12430 ;;
12431
12432 haiku*)
12433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12434 link_all_deplibs=yes
12435 ;;
12436
12437 os2*)
12438 hardcode_libdir_flag_spec='-L$libdir'
12439 hardcode_minus_L=yes
12440 allow_undefined_flag=unsupported
12441 shrext_cmds=.dll
12442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12445 $ECHO EXPORTS >> $output_objdir/$libname.def~
12446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12448 emximp -o $lib $output_objdir/$libname.def'
12449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12452 $ECHO EXPORTS >> $output_objdir/$libname.def~
12453 prefix_cmds="$SED"~
12454 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12455 prefix_cmds="$prefix_cmds -e 1d";
12456 fi~
12457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12460 emximp -o $lib $output_objdir/$libname.def'
12461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12462 enable_shared_with_static_runtimes=yes
12463 ;;
12464
12465 interix[3-9]*)
12466 hardcode_direct=no
12467 hardcode_shlibpath_var=no
12468 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12469 export_dynamic_flag_spec='$wl-E'
12470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12471 # Instead, shared libraries are loaded at an image base (0x10000000 by
12472 # default) and relocated if they conflict, which is a slow very memory
12473 # consuming and fragmenting process. To avoid this, we pick a random,
12474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12477 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'
12478 ;;
12479
12480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12481 tmp_diet=no
12482 if test linux-dietlibc = "$host_os"; then
12483 case $cc_basename in
12484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12485 esac
12486 fi
12487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12488 && test no = "$tmp_diet"
12489 then
12490 tmp_addflag=' $pic_flag'
12491 tmp_sharedflag='-shared'
12492 case $cc_basename,$host_cpu in
12493 pgcc*) # Portland Group C compiler
12494 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'
12495 tmp_addflag=' $pic_flag'
12496 ;;
12497 pgf77* | pgf90* | pgf95* | pgfortran*)
12498 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
12501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12502 tmp_addflag=' -i_dynamic' ;;
12503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12504 tmp_addflag=' -i_dynamic -nofor_main' ;;
12505 ifc* | ifort*) # Intel Fortran compiler
12506 tmp_addflag=' -nofor_main' ;;
12507 lf95*) # Lahey Fortran 8.1
12508 whole_archive_flag_spec=
12509 tmp_sharedflag='--shared' ;;
12510 nagfor*) # NAGFOR 5.3
12511 tmp_sharedflag='-Wl,-shared' ;;
12512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12513 tmp_sharedflag='-qmkshrobj'
12514 tmp_addflag= ;;
12515 nvcc*) # Cuda Compiler Driver 2.2
12516 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'
12517 compiler_needs_object=yes
12518 ;;
12519 esac
12520 case `$CC -V 2>&1 | sed 5q` in
12521 *Sun\ C*) # Sun C 5.9
12522 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'
12523 compiler_needs_object=yes
12524 tmp_sharedflag='-G' ;;
12525 *Sun\ F*) # Sun Fortran 8.3
12526 tmp_sharedflag='-G' ;;
12527 esac
12528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12529
12530 if test yes = "$supports_anon_versioning"; then
12531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12533 echo "local: *; };" >> $output_objdir/$libname.ver~
12534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12535 fi
12536
12537 case $cc_basename in
12538 tcc*)
12539 export_dynamic_flag_spec='-rdynamic'
12540 ;;
12541 xlf* | bgf* | bgxlf* | mpixlf*)
12542 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12543 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12545 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12546 if test yes = "$supports_anon_versioning"; then
12547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12549 echo "local: *; };" >> $output_objdir/$libname.ver~
12550 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12551 fi
12552 ;;
12553 esac
12554 else
12555 ld_shlibs=no
12556 fi
12557 ;;
12558
12559 netbsd* | netbsdelf*-gnu)
12560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12561 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12562 wlarc=
12563 else
12564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12566 fi
12567 ;;
12568
12569 solaris*)
12570 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12571 ld_shlibs=no
12572 cat <<_LT_EOF 1>&2
12573
12574*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12575*** create shared libraries on Solaris systems. Therefore, libtool
12576*** is disabling shared libraries support. We urge you to upgrade GNU
12577*** binutils to release 2.9.1 or newer. Another option is to modify
12578*** your PATH or compiler configuration so that the native linker is
12579*** used, and then restart.
12580
12581_LT_EOF
12582 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12585 else
12586 ld_shlibs=no
12587 fi
12588 ;;
12589
12590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12591 case `$LD -v 2>&1` in
12592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12593 ld_shlibs=no
12594 cat <<_LT_EOF 1>&2
12595
12596*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12597*** reliably create shared libraries on SCO systems. Therefore, libtool
12598*** is disabling shared libraries support. We urge you to upgrade GNU
12599*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12600*** your PATH or compiler configuration so that the native linker is
12601*** used, and then restart.
12602
12603_LT_EOF
12604 ;;
12605 *)
12606 # For security reasons, it is highly recommended that you always
12607 # use absolute paths for naming shared libraries, and exclude the
12608 # DT_RUNPATH tag from executables and libraries. But doing so
12609 # requires that you compile everything twice, which is a pain.
12610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12614 else
12615 ld_shlibs=no
12616 fi
12617 ;;
12618 esac
12619 ;;
12620
12621 sunos4*)
12622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12623 wlarc=
12624 hardcode_direct=yes
12625 hardcode_shlibpath_var=no
12626 ;;
12627
12628 *)
12629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12632 else
12633 ld_shlibs=no
12634 fi
12635 ;;
12636 esac
12637
12638 if test no = "$ld_shlibs"; then
12639 runpath_var=
12640 hardcode_libdir_flag_spec=
12641 export_dynamic_flag_spec=
12642 whole_archive_flag_spec=
12643 fi
12644 else
12645 # PORTME fill in a description of your system's linker (not GNU ld)
12646 case $host_os in
12647 aix3*)
12648 allow_undefined_flag=unsupported
12649 always_export_symbols=yes
12650 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'
12651 # Note: this linker hardcodes the directories in LIBPATH if there
12652 # are no directories specified by -L.
12653 hardcode_minus_L=yes
12654 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12655 # Neither direct hardcoding nor static linking is supported with a
12656 # broken collect2.
12657 hardcode_direct=unsupported
12658 fi
12659 ;;
12660
12661 aix[4-9]*)
12662 if test ia64 = "$host_cpu"; then
12663 # On IA64, the linker does run time linking by default, so we don't
12664 # have to do anything special.
12665 aix_use_runtimelinking=no
12666 exp_sym_flag='-Bexport'
12667 no_entry_flag=
12668 else
12669 # If we're using GNU nm, then we don't want the "-C" option.
12670 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12671 # Without the "-l" option, or with the "-B" option, AIX nm treats
12672 # weak defined symbols like other global defined symbols, whereas
12673 # GNU nm marks them as "W".
12674 # While the 'weak' keyword is ignored in the Export File, we need
12675 # it in the Import File for the 'aix-soname' feature, so we have
12676 # to replace the "-B" option with "-P" for AIX nm.
12677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12678 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'
12679 else
12680 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'
12681 fi
12682 aix_use_runtimelinking=no
12683
12684 # Test if we are trying to use run time linking or normal
12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12686 # have runtime linking enabled, and use it for executables.
12687 # For shared libraries, we enable/disable runtime linking
12688 # depending on the kind of the shared library created -
12689 # when "with_aix_soname,aix_use_runtimelinking" is:
12690 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12691 # "aix,yes" lib.so shared, rtl:yes, for executables
12692 # lib.a static archive
12693 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12694 # lib.a(lib.so.V) shared, rtl:no, for executables
12695 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12696 # lib.a(lib.so.V) shared, rtl:no
12697 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12698 # lib.a static archive
12699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12700 for ld_flag in $LDFLAGS; do
12701 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12702 aix_use_runtimelinking=yes
12703 break
12704 fi
12705 done
12706 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12707 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12708 # so we don't have lib.a shared libs to link our executables.
12709 # We have to force runtime linking in this case.
12710 aix_use_runtimelinking=yes
12711 LDFLAGS="$LDFLAGS -Wl,-brtl"
12712 fi
12713 ;;
12714 esac
12715
12716 exp_sym_flag='-bexport'
12717 no_entry_flag='-bnoentry'
12718 fi
12719
12720 # When large executables or shared objects are built, AIX ld can
12721 # have problems creating the table of contents. If linking a library
12722 # or program results in "error TOC overflow" add -mminimal-toc to
12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12725
12726 archive_cmds=''
12727 hardcode_direct=yes
12728 hardcode_direct_absolute=yes
12729 hardcode_libdir_separator=':'
12730 link_all_deplibs=yes
12731 file_list_spec='$wl-f,'
12732 case $with_aix_soname,$aix_use_runtimelinking in
12733 aix,*) ;; # traditional, no import file
12734 svr4,* | *,yes) # use import file
12735 # The Import File defines what to hardcode.
12736 hardcode_direct=no
12737 hardcode_direct_absolute=no
12738 ;;
12739 esac
12740
12741 if test yes = "$GCC"; then
12742 case $host_os in aix4.[012]|aix4.[012].*)
12743 # We only want to do this on AIX 4.2 and lower, the check
12744 # below for broken collect2 doesn't work under 4.3+
12745 collect2name=`$CC -print-prog-name=collect2`
12746 if test -f "$collect2name" &&
12747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12748 then
12749 # We have reworked collect2
12750 :
12751 else
12752 # We have old collect2
12753 hardcode_direct=unsupported
12754 # It fails to find uninstalled libraries when the uninstalled
12755 # path is not listed in the libpath. Setting hardcode_minus_L
12756 # to unsupported forces relinking
12757 hardcode_minus_L=yes
12758 hardcode_libdir_flag_spec='-L$libdir'
12759 hardcode_libdir_separator=
12760 fi
12761 ;;
12762 esac
12763 shared_flag='-shared'
12764 if test yes = "$aix_use_runtimelinking"; then
12765 shared_flag="$shared_flag "'$wl-G'
12766 fi
12767 # Need to ensure runtime linking is disabled for the traditional
12768 # shared library, or the linker may eventually find shared libraries
12769 # /with/ Import File - we do not want to mix them.
12770 shared_flag_aix='-shared'
12771 shared_flag_svr4='-shared $wl-G'
12772 else
12773 # not using gcc
12774 if test ia64 = "$host_cpu"; then
12775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12776 # chokes on -Wl,-G. The following line is correct:
12777 shared_flag='-G'
12778 else
12779 if test yes = "$aix_use_runtimelinking"; then
12780 shared_flag='$wl-G'
12781 else
12782 shared_flag='$wl-bM:SRE'
12783 fi
12784 shared_flag_aix='$wl-bM:SRE'
12785 shared_flag_svr4='$wl-G'
12786 fi
12787 fi
12788
12789 export_dynamic_flag_spec='$wl-bexpall'
12790 # It seems that -bexpall does not export symbols beginning with
12791 # underscore (_), so it is better to generate a list of symbols to export.
12792 always_export_symbols=yes
12793 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12794 # Warning - without using the other runtime loading flags (-brtl),
12795 # -berok will link without error, but may produce a broken library.
12796 allow_undefined_flag='-berok'
12797 # Determine the default libpath from the value encoded in an
12798 # empty executable.
12799 if test set = "${lt_cv_aix_libpath+set}"; then
12800 aix_libpath=$lt_cv_aix_libpath
12801else
12802 if ${lt_cv_aix_libpath_+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h. */
12807
12808int main (void)
12809{
12810
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_link "$LINENO"; then :
12816
12817 lt_aix_libpath_sed='
12818 /Import File Strings/,/^$/ {
12819 /^0/ {
12820 s/^0 *\([^ ]*\) *$/\1/
12821 p
12822 }
12823 }'
12824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12825 # Check for a 64-bit object if we didn't find anything.
12826 if test -z "$lt_cv_aix_libpath_"; then
12827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12828 fi
12829fi
12830rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 if test -z "$lt_cv_aix_libpath_"; then
12833 lt_cv_aix_libpath_=/usr/lib:/lib
12834 fi
12835
12836fi
12837
12838 aix_libpath=$lt_cv_aix_libpath_
12839fi
12840
12841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12842 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
12843 else
12844 if test ia64 = "$host_cpu"; then
12845 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12846 allow_undefined_flag="-z nodefs"
12847 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"
12848 else
12849 # Determine the default libpath from the value encoded in an
12850 # empty executable.
12851 if test set = "${lt_cv_aix_libpath+set}"; then
12852 aix_libpath=$lt_cv_aix_libpath
12853else
12854 if ${lt_cv_aix_libpath_+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856else
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858/* end confdefs.h. */
12859
12860int main (void)
12861{
12862
12863 ;
12864 return 0;
12865}
12866_ACEOF
12867if ac_fn_c_try_link "$LINENO"; then :
12868
12869 lt_aix_libpath_sed='
12870 /Import File Strings/,/^$/ {
12871 /^0/ {
12872 s/^0 *\([^ ]*\) *$/\1/
12873 p
12874 }
12875 }'
12876 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12877 # Check for a 64-bit object if we didn't find anything.
12878 if test -z "$lt_cv_aix_libpath_"; then
12879 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12880 fi
12881fi
12882rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 if test -z "$lt_cv_aix_libpath_"; then
12885 lt_cv_aix_libpath_=/usr/lib:/lib
12886 fi
12887
12888fi
12889
12890 aix_libpath=$lt_cv_aix_libpath_
12891fi
12892
12893 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12894 # Warning - without using the other run time loading flags,
12895 # -berok will link without error, but may produce a broken library.
12896 no_undefined_flag=' $wl-bernotok'
12897 allow_undefined_flag=' $wl-berok'
12898 if test yes = "$with_gnu_ld"; then
12899 # We only use this code for GNU lds that support --whole-archive.
12900 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12901 else
12902 # Exported symbols can be pulled into shared objects from archives
12903 whole_archive_flag_spec='$convenience'
12904 fi
12905 archive_cmds_need_lc=yes
12906 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12907 # -brtl affects multiple linker settings, -berok does not and is overridden later
12908 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12909 if test svr4 != "$with_aix_soname"; then
12910 # This is similar to how AIX traditionally builds its shared libraries.
12911 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'
12912 fi
12913 if test aix != "$with_aix_soname"; then
12914 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'
12915 else
12916 # used by -dlpreopen to get the symbols
12917 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12918 fi
12919 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12920 fi
12921 fi
12922 ;;
12923
12924 amigaos*)
12925 case $host_cpu in
12926 powerpc)
12927 # see comment about AmigaOS4 .so support
12928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12929 archive_expsym_cmds=''
12930 ;;
12931 m68k)
12932 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)'
12933 hardcode_libdir_flag_spec='-L$libdir'
12934 hardcode_minus_L=yes
12935 ;;
12936 esac
12937 ;;
12938
12939 bsdi[45]*)
12940 export_dynamic_flag_spec=-rdynamic
12941 ;;
12942
12943 cygwin* | mingw* | pw32* | cegcc*)
12944 # When not using gcc, we currently assume that we are using
12945 # Microsoft Visual C++.
12946 # hardcode_libdir_flag_spec is actually meaningless, as there is
12947 # no search path for DLLs.
12948 case $cc_basename in
12949 cl*)
12950 # Native MSVC
12951 hardcode_libdir_flag_spec=' '
12952 allow_undefined_flag=unsupported
12953 always_export_symbols=yes
12954 file_list_spec='@'
12955 # Tell ltmain to make .lib files, not .a files.
12956 libext=lib
12957 # Tell ltmain to make .dll files, not .so files.
12958 shrext_cmds=.dll
12959 # FIXME: Setting linknames here is a bad hack.
12960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12961 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12962 cp "$export_symbols" "$output_objdir/$soname.def";
12963 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12964 else
12965 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12966 fi~
12967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12968 linknames='
12969 # The linker will not automatically build a static lib if we build a DLL.
12970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12971 enable_shared_with_static_runtimes=yes
12972 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12974 # Don't use ranlib
12975 old_postinstall_cmds='chmod 644 $oldlib'
12976 postlink_cmds='lt_outputfile="@OUTPUT@"~
12977 lt_tool_outputfile="@TOOL_OUTPUT@"~
12978 case $lt_outputfile in
12979 *.exe|*.EXE) ;;
12980 *)
12981 lt_outputfile=$lt_outputfile.exe
12982 lt_tool_outputfile=$lt_tool_outputfile.exe
12983 ;;
12984 esac~
12985 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12987 $RM "$lt_outputfile.manifest";
12988 fi'
12989 ;;
12990 *)
12991 # Assume MSVC wrapper
12992 hardcode_libdir_flag_spec=' '
12993 allow_undefined_flag=unsupported
12994 # Tell ltmain to make .lib files, not .a files.
12995 libext=lib
12996 # Tell ltmain to make .dll files, not .so files.
12997 shrext_cmds=.dll
12998 # FIXME: Setting linknames here is a bad hack.
12999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13000 # The linker will automatically build a .lib file if we build a DLL.
13001 old_archive_from_new_cmds='true'
13002 # FIXME: Should let the user specify the lib program.
13003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13004 enable_shared_with_static_runtimes=yes
13005 ;;
13006 esac
13007 ;;
13008
13009 darwin* | rhapsody*)
13010
13011
13012 archive_cmds_need_lc=no
13013 hardcode_direct=no
13014 hardcode_automatic=yes
13015 hardcode_shlibpath_var=unsupported
13016 if test yes = "$lt_cv_ld_force_load"; then
13017 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\"`'
13018
13019 else
13020 whole_archive_flag_spec=''
13021 fi
13022 link_all_deplibs=yes
13023 allow_undefined_flag=$_lt_dar_allow_undefined
13024 case $cc_basename in
13025 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13026 *) _lt_dar_can_shared=$GCC ;;
13027 esac
13028 if test yes = "$_lt_dar_can_shared"; then
13029 output_verbose_link_cmd=func_echo_all
13030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13032 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"
13033 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"
13034
13035 else
13036 ld_shlibs=no
13037 fi
13038
13039 ;;
13040
13041 dgux*)
13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_libdir_flag_spec='-L$libdir'
13044 hardcode_shlibpath_var=no
13045 ;;
13046
13047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13048 # support. Future versions do this automatically, but an explicit c++rt0.o
13049 # does not break anything, and helps significantly (at the cost of a little
13050 # extra space).
13051 freebsd2.2*)
13052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13053 hardcode_libdir_flag_spec='-R$libdir'
13054 hardcode_direct=yes
13055 hardcode_shlibpath_var=no
13056 ;;
13057
13058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13059 freebsd2.*)
13060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_direct=yes
13062 hardcode_minus_L=yes
13063 hardcode_shlibpath_var=no
13064 ;;
13065
13066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13067 freebsd* | dragonfly*)
13068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13069 hardcode_libdir_flag_spec='-R$libdir'
13070 hardcode_direct=yes
13071 hardcode_shlibpath_var=no
13072 ;;
13073
13074 hpux9*)
13075 if test yes = "$GCC"; then
13076 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'
13077 else
13078 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'
13079 fi
13080 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13081 hardcode_libdir_separator=:
13082 hardcode_direct=yes
13083
13084 # hardcode_minus_L: Not really in the search PATH,
13085 # but as the default location of the library.
13086 hardcode_minus_L=yes
13087 export_dynamic_flag_spec='$wl-E'
13088 ;;
13089
13090 hpux10*)
13091 if test yes,no = "$GCC,$with_gnu_ld"; then
13092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13093 else
13094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13095 fi
13096 if test no = "$with_gnu_ld"; then
13097 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13098 hardcode_libdir_separator=:
13099 hardcode_direct=yes
13100 hardcode_direct_absolute=yes
13101 export_dynamic_flag_spec='$wl-E'
13102 # hardcode_minus_L: Not really in the search PATH,
13103 # but as the default location of the library.
13104 hardcode_minus_L=yes
13105 fi
13106 ;;
13107
13108 hpux11*)
13109 if test yes,no = "$GCC,$with_gnu_ld"; then
13110 case $host_cpu in
13111 hppa*64*)
13112 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 ;;
13114 ia64*)
13115 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13116 ;;
13117 *)
13118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13119 ;;
13120 esac
13121 else
13122 case $host_cpu in
13123 hppa*64*)
13124 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 ;;
13126 ia64*)
13127 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13128 ;;
13129 *)
13130
13131 # Older versions of the 11.00 compiler do not understand -b yet
13132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13134$as_echo_n "checking if $CC understands -b... " >&6; }
13135if ${lt_cv_prog_compiler__b+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 lt_cv_prog_compiler__b=no
13139 save_LDFLAGS=$LDFLAGS
13140 LDFLAGS="$LDFLAGS -b"
13141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13143 # The linker can only warn and ignore the option if not recognized
13144 # So say no if there are warnings
13145 if test -s conftest.err; then
13146 # Append any errors to the config.log.
13147 cat conftest.err 1>&5
13148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13150 if diff conftest.exp conftest.er2 >/dev/null; then
13151 lt_cv_prog_compiler__b=yes
13152 fi
13153 else
13154 lt_cv_prog_compiler__b=yes
13155 fi
13156 fi
13157 $RM -r conftest*
13158 LDFLAGS=$save_LDFLAGS
13159
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13162$as_echo "$lt_cv_prog_compiler__b" >&6; }
13163
13164if test yes = "$lt_cv_prog_compiler__b"; then
13165 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13166else
13167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13168fi
13169
13170 ;;
13171 esac
13172 fi
13173 if test no = "$with_gnu_ld"; then
13174 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13175 hardcode_libdir_separator=:
13176
13177 case $host_cpu in
13178 hppa*64*|ia64*)
13179 hardcode_direct=no
13180 hardcode_shlibpath_var=no
13181 ;;
13182 *)
13183 hardcode_direct=yes
13184 hardcode_direct_absolute=yes
13185 export_dynamic_flag_spec='$wl-E'
13186
13187 # hardcode_minus_L: Not really in the search PATH,
13188 # but as the default location of the library.
13189 hardcode_minus_L=yes
13190 ;;
13191 esac
13192 fi
13193 ;;
13194
13195 irix5* | irix6* | nonstopux*)
13196 if test yes = "$GCC"; then
13197 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'
13198 # Try to use the -exported_symbol ld option, if it does not
13199 # work, assume that -exports_file does not work either and
13200 # implicitly export all symbols.
13201 # This should be the same for all languages, so no per-tag cache variable.
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13203$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13204if ${lt_cv_irix_exported_symbol+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206else
13207 save_LDFLAGS=$LDFLAGS
13208 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h. */
13211int foo (void) { return 0; }
13212_ACEOF
13213if ac_fn_c_try_link "$LINENO"; then :
13214 lt_cv_irix_exported_symbol=yes
13215else
13216 lt_cv_irix_exported_symbol=no
13217fi
13218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LDFLAGS=$save_LDFLAGS
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13223$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13224 if test yes = "$lt_cv_irix_exported_symbol"; then
13225 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'
13226 fi
13227 link_all_deplibs=no
13228 else
13229 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'
13230 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'
13231 fi
13232 archive_cmds_need_lc='no'
13233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13234 hardcode_libdir_separator=:
13235 inherit_rpath=yes
13236 link_all_deplibs=yes
13237 ;;
13238
13239 linux*)
13240 case $cc_basename in
13241 tcc*)
13242 # Fabrice Bellard et al's Tiny C Compiler
13243 ld_shlibs=yes
13244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13245 ;;
13246 esac
13247 ;;
13248
13249 netbsd* | netbsdelf*-gnu)
13250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13252 else
13253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13254 fi
13255 hardcode_libdir_flag_spec='-R$libdir'
13256 hardcode_direct=yes
13257 hardcode_shlibpath_var=no
13258 ;;
13259
13260 newsos6)
13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13262 hardcode_direct=yes
13263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13264 hardcode_libdir_separator=:
13265 hardcode_shlibpath_var=no
13266 ;;
13267
13268 *nto* | *qnx*)
13269 ;;
13270
13271 openbsd* | bitrig*)
13272 if test -f /usr/libexec/ld.so; then
13273 hardcode_direct=yes
13274 hardcode_shlibpath_var=no
13275 hardcode_direct_absolute=yes
13276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13279 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13280 export_dynamic_flag_spec='$wl-E'
13281 else
13282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13283 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13284 fi
13285 else
13286 ld_shlibs=no
13287 fi
13288 ;;
13289
13290 os2*)
13291 hardcode_libdir_flag_spec='-L$libdir'
13292 hardcode_minus_L=yes
13293 allow_undefined_flag=unsupported
13294 shrext_cmds=.dll
13295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13298 $ECHO EXPORTS >> $output_objdir/$libname.def~
13299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13301 emximp -o $lib $output_objdir/$libname.def'
13302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13305 $ECHO EXPORTS >> $output_objdir/$libname.def~
13306 prefix_cmds="$SED"~
13307 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13308 prefix_cmds="$prefix_cmds -e 1d";
13309 fi~
13310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13313 emximp -o $lib $output_objdir/$libname.def'
13314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13315 enable_shared_with_static_runtimes=yes
13316 ;;
13317
13318 osf3*)
13319 if test yes = "$GCC"; then
13320 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13321 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'
13322 else
13323 allow_undefined_flag=' -expect_unresolved \*'
13324 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'
13325 fi
13326 archive_cmds_need_lc='no'
13327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13328 hardcode_libdir_separator=:
13329 ;;
13330
13331 osf4* | osf5*) # as osf3* with the addition of -msym flag
13332 if test yes = "$GCC"; then
13333 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13334 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'
13335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13336 else
13337 allow_undefined_flag=' -expect_unresolved \*'
13338 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'
13339 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~
13340 $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'
13341
13342 # Both c and cxx compiler support -rpath directly
13343 hardcode_libdir_flag_spec='-rpath $libdir'
13344 fi
13345 archive_cmds_need_lc='no'
13346 hardcode_libdir_separator=:
13347 ;;
13348
13349 solaris*)
13350 no_undefined_flag=' -z defs'
13351 if test yes = "$GCC"; then
13352 wlarc='$wl'
13353 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13355 $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'
13356 else
13357 case `$CC -V 2>&1` in
13358 *"Compilers 5.0"*)
13359 wlarc=''
13360 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13362 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13363 ;;
13364 *)
13365 wlarc='$wl'
13366 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13369 ;;
13370 esac
13371 fi
13372 hardcode_libdir_flag_spec='-R$libdir'
13373 hardcode_shlibpath_var=no
13374 case $host_os in
13375 solaris2.[0-5] | solaris2.[0-5].*) ;;
13376 *)
13377 # The compiler driver will combine and reorder linker options,
13378 # but understands '-z linker_flag'. GCC discards it without '$wl',
13379 # but is careful enough not to reorder.
13380 # Supported since Solaris 2.6 (maybe 2.5.1?)
13381 if test yes = "$GCC"; then
13382 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13383 else
13384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13385 fi
13386 ;;
13387 esac
13388 link_all_deplibs=yes
13389 ;;
13390
13391 sunos4*)
13392 if test sequent = "$host_vendor"; then
13393 # Use $CC to link under sequent, because it throws in some extra .o
13394 # files that make .init and .fini sections work.
13395 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13396 else
13397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13398 fi
13399 hardcode_libdir_flag_spec='-L$libdir'
13400 hardcode_direct=yes
13401 hardcode_minus_L=yes
13402 hardcode_shlibpath_var=no
13403 ;;
13404
13405 sysv4)
13406 case $host_vendor in
13407 sni)
13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_direct=yes # is this really true???
13410 ;;
13411 siemens)
13412 ## LD is ld it makes a PLAMLIB
13413 ## CC just makes a GrossModule.
13414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415 reload_cmds='$CC -r -o $output$reload_objs'
13416 hardcode_direct=no
13417 ;;
13418 motorola)
13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13421 ;;
13422 esac
13423 runpath_var='LD_RUN_PATH'
13424 hardcode_shlibpath_var=no
13425 ;;
13426
13427 sysv4.3*)
13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_shlibpath_var=no
13430 export_dynamic_flag_spec='-Bexport'
13431 ;;
13432
13433 sysv4*MP*)
13434 if test -d /usr/nec; then
13435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13436 hardcode_shlibpath_var=no
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13439 ld_shlibs=yes
13440 fi
13441 ;;
13442
13443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13444 no_undefined_flag='$wl-z,text'
13445 archive_cmds_need_lc=no
13446 hardcode_shlibpath_var=no
13447 runpath_var='LD_RUN_PATH'
13448
13449 if test yes = "$GCC"; then
13450 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13452 else
13453 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 fi
13456 ;;
13457
13458 sysv5* | sco3.2v5* | sco5v6*)
13459 # Note: We CANNOT use -z defs as we might desire, because we do not
13460 # link with -lc, and that would cause any symbols used from libc to
13461 # always be unresolved, which means just about no library would
13462 # ever link correctly. If we're not using GNU ld we use -z text
13463 # though, which does catch some bad symbols but isn't as heavy-handed
13464 # as -z defs.
13465 no_undefined_flag='$wl-z,text'
13466 allow_undefined_flag='$wl-z,nodefs'
13467 archive_cmds_need_lc=no
13468 hardcode_shlibpath_var=no
13469 hardcode_libdir_flag_spec='$wl-R,$libdir'
13470 hardcode_libdir_separator=':'
13471 link_all_deplibs=yes
13472 export_dynamic_flag_spec='$wl-Bexport'
13473 runpath_var='LD_RUN_PATH'
13474
13475 if test yes = "$GCC"; then
13476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13478 else
13479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13481 fi
13482 ;;
13483
13484 uts4*)
13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_libdir_flag_spec='-L$libdir'
13487 hardcode_shlibpath_var=no
13488 ;;
13489
13490 *)
13491 ld_shlibs=no
13492 ;;
13493 esac
13494
13495 if test sni = "$host_vendor"; then
13496 case $host in
13497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13498 export_dynamic_flag_spec='$wl-Blargedynsym'
13499 ;;
13500 esac
13501 fi
13502 fi
13503
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13505$as_echo "$ld_shlibs" >&6; }
13506test no = "$ld_shlibs" && can_build_shared=no
13507
13508with_gnu_ld=$with_gnu_ld
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524#
13525# Do we need to explicitly link libc?
13526#
13527case "x$archive_cmds_need_lc" in
13528x|xyes)
13529 # Assume -lc should be added
13530 archive_cmds_need_lc=yes
13531
13532 if test yes,yes = "$GCC,$enable_shared"; then
13533 case $archive_cmds in
13534 *'~'*)
13535 # FIXME: we may have to deal with multi-command sequences.
13536 ;;
13537 '$CC '*)
13538 # Test whether the compiler implicitly links with -lc since on some
13539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13540 # to ld, don't add -lc before -lgcc.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13543if ${lt_cv_archive_cmds_need_lc+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545else
13546 $RM conftest*
13547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13548
13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13550 (eval $ac_compile) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; } 2>conftest.err; then
13554 soname=conftest
13555 lib=conftest
13556 libobjs=conftest.$ac_objext
13557 deplibs=
13558 wl=$lt_prog_compiler_wl
13559 pic_flag=$lt_prog_compiler_pic
13560 compiler_flags=-v
13561 linker_flags=-v
13562 verstring=
13563 output_objdir=.
13564 libname=conftest
13565 lt_save_allow_undefined_flag=$allow_undefined_flag
13566 allow_undefined_flag=
13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13569 ac_status=$?
13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13571 test $ac_status = 0; }
13572 then
13573 lt_cv_archive_cmds_need_lc=no
13574 else
13575 lt_cv_archive_cmds_need_lc=yes
13576 fi
13577 allow_undefined_flag=$lt_save_allow_undefined_flag
13578 else
13579 cat conftest.err 1>&5
13580 fi
13581 $RM conftest*
13582
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13585$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13587 ;;
13588 esac
13589 fi
13590 ;;
13591esac
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
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13745$as_echo_n "checking dynamic linker characteristics... " >&6; }
13746
13747if test yes = "$GCC"; then
13748 case $host_os in
13749 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13750 *) lt_awk_arg='/^libraries:/' ;;
13751 esac
13752 case $host_os in
13753 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13754 *) lt_sed_strip_eq='s|=/|/|g' ;;
13755 esac
13756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13757 case $lt_search_path_spec in
13758 *\;*)
13759 # if the path contains ";" then we assume it to be the separator
13760 # otherwise default to the standard path separator (i.e. ":") - it is
13761 # assumed that no part of a normal pathname contains ";" but that should
13762 # okay in the real world where ";" in dirpaths is itself problematic.
13763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13764 ;;
13765 *)
13766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13767 ;;
13768 esac
13769 # Ok, now we have the path, separated by spaces, we can step through it
13770 # and add multilib dir if necessary...
13771 lt_tmp_lt_search_path_spec=
13772 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13773 # ...but if some path component already ends with the multilib dir we assume
13774 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13775 case "$lt_multi_os_dir; $lt_search_path_spec " in
13776 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13777 lt_multi_os_dir=
13778 ;;
13779 esac
13780 for lt_sys_path in $lt_search_path_spec; do
13781 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13783 elif test -n "$lt_multi_os_dir"; then
13784 test -d "$lt_sys_path" && \
13785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13786 fi
13787 done
13788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13789BEGIN {RS = " "; FS = "/|\n";} {
13790 lt_foo = "";
13791 lt_count = 0;
13792 for (lt_i = NF; lt_i > 0; lt_i--) {
13793 if ($lt_i != "" && $lt_i != ".") {
13794 if ($lt_i == "..") {
13795 lt_count++;
13796 } else {
13797 if (lt_count == 0) {
13798 lt_foo = "/" $lt_i lt_foo;
13799 } else {
13800 lt_count--;
13801 }
13802 }
13803 }
13804 }
13805 if (lt_foo != "") { lt_freq[lt_foo]++; }
13806 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13807}'`
13808 # AWK program above erroneously prepends '/' to C:/dos/paths
13809 # for these hosts.
13810 case $host_os in
13811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13812 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13813 esac
13814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13815else
13816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13817fi
13818library_names_spec=
13819libname_spec='lib$name'
13820soname_spec=
13821shrext_cmds=.so
13822postinstall_cmds=
13823postuninstall_cmds=
13824finish_cmds=
13825finish_eval=
13826shlibpath_var=
13827shlibpath_overrides_runpath=unknown
13828version_type=none
13829dynamic_linker="$host_os ld.so"
13830sys_lib_dlsearch_path_spec="/lib /usr/lib"
13831need_lib_prefix=unknown
13832hardcode_into_libs=no
13833
13834# when you set need_version to no, make sure it does not cause -set_version
13835# flags to be left without arguments
13836need_version=unknown
13837
13838
13839
13840case $host_os in
13841aix3*)
13842 version_type=linux # correct to gnu/linux during the next big refactor
13843 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13844 shlibpath_var=LIBPATH
13845
13846 # AIX 3 has no versioning support, so we append a major version to the name.
13847 soname_spec='$libname$release$shared_ext$major'
13848 ;;
13849
13850aix[4-9]*)
13851 version_type=linux # correct to gnu/linux during the next big refactor
13852 need_lib_prefix=no
13853 need_version=no
13854 hardcode_into_libs=yes
13855 if test ia64 = "$host_cpu"; then
13856 # AIX 5 supports IA64
13857 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13858 shlibpath_var=LD_LIBRARY_PATH
13859 else
13860 # With GCC up to 2.95.x, collect2 would create an import file
13861 # for dependence libraries. The import file would start with
13862 # the line '#! .'. This would cause the generated library to
13863 # depend on '.', always an invalid library. This was fixed in
13864 # development snapshots of GCC prior to 3.0.
13865 case $host_os in
13866 aix4 | aix4.[01] | aix4.[01].*)
13867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13868 echo ' yes '
13869 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13870 :
13871 else
13872 can_build_shared=no
13873 fi
13874 ;;
13875 esac
13876 # Using Import Files as archive members, it is possible to support
13877 # filename-based versioning of shared library archives on AIX. While
13878 # this would work for both with and without runtime linking, it will
13879 # prevent static linking of such archives. So we do filename-based
13880 # shared library versioning with .so extension only, which is used
13881 # when both runtime linking and shared linking is enabled.
13882 # Unfortunately, runtime linking may impact performance, so we do
13883 # not want this to be the default eventually. Also, we use the
13884 # versioned .so libs for executables only if there is the -brtl
13885 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13886 # To allow for filename-based versioning support, we need to create
13887 # libNAME.so.V as an archive file, containing:
13888 # *) an Import File, referring to the versioned filename of the
13889 # archive as well as the shared archive member, telling the
13890 # bitwidth (32 or 64) of that shared object, and providing the
13891 # list of exported symbols of that shared object, eventually
13892 # decorated with the 'weak' keyword
13893 # *) the shared object with the F_LOADONLY flag set, to really avoid
13894 # it being seen by the linker.
13895 # At run time we better use the real file rather than another symlink,
13896 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13897
13898 case $with_aix_soname,$aix_use_runtimelinking in
13899 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13900 # soname into executable. Probably we can add versioning support to
13901 # collect2, so additional links can be useful in future.
13902 aix,yes) # traditional libtool
13903 dynamic_linker='AIX unversionable lib.so'
13904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13905 # instead of lib<name>.a to let people know that these are not
13906 # typical AIX shared libraries.
13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13908 ;;
13909 aix,no) # traditional AIX only
13910 dynamic_linker='AIX lib.a(lib.so.V)'
13911 # We preserve .a as extension for shared libraries through AIX4.2
13912 # and later when we are not doing run time linking.
13913 library_names_spec='$libname$release.a $libname.a'
13914 soname_spec='$libname$release$shared_ext$major'
13915 ;;
13916 svr4,*) # full svr4 only
13917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13919 # We do not specify a path in Import Files, so LIBPATH fires.
13920 shlibpath_overrides_runpath=yes
13921 ;;
13922 *,yes) # both, prefer svr4
13923 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13924 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13925 # unpreferred sharedlib libNAME.a needs extra handling
13926 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"'
13927 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"'
13928 # We do not specify a path in Import Files, so LIBPATH fires.
13929 shlibpath_overrides_runpath=yes
13930 ;;
13931 *,no) # both, prefer aix
13932 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13933 library_names_spec='$libname$release.a $libname.a'
13934 soname_spec='$libname$release$shared_ext$major'
13935 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13936 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)'
13937 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"'
13938 ;;
13939 esac
13940 shlibpath_var=LIBPATH
13941 fi
13942 ;;
13943
13944amigaos*)
13945 case $host_cpu in
13946 powerpc)
13947 # Since July 2007 AmigaOS4 officially supports .so libraries.
13948 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13950 ;;
13951 m68k)
13952 library_names_spec='$libname.ixlibrary $libname.a'
13953 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13954 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'
13955 ;;
13956 esac
13957 ;;
13958
13959beos*)
13960 library_names_spec='$libname$shared_ext'
13961 dynamic_linker="$host_os ld.so"
13962 shlibpath_var=LIBRARY_PATH
13963 ;;
13964
13965bsdi[45]*)
13966 version_type=linux # correct to gnu/linux during the next big refactor
13967 need_version=no
13968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13969 soname_spec='$libname$release$shared_ext$major'
13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13974 # the default ld.so.conf also contains /usr/contrib/lib and
13975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13976 # libtool to hard-code these into programs
13977 ;;
13978
13979cygwin* | mingw* | pw32* | cegcc*)
13980 version_type=windows
13981 shrext_cmds=.dll
13982 need_version=no
13983 need_lib_prefix=no
13984
13985 case $GCC,$cc_basename in
13986 yes,*)
13987 # gcc
13988 library_names_spec='$libname.dll.a'
13989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13990 postinstall_cmds='base_file=`basename \$file`~
13991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13992 dldir=$destdir/`dirname \$dlpath`~
13993 test -d \$dldir || mkdir -p \$dldir~
13994 $install_prog $dir/$dlname \$dldir/$dlname~
13995 chmod a+x \$dldir/$dlname~
13996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13998 fi'
13999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14000 dlpath=$dir/\$dldll~
14001 $RM \$dlpath'
14002 shlibpath_overrides_runpath=yes
14003
14004 case $host_os in
14005 cygwin*)
14006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14007 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14008
14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14010 ;;
14011 mingw* | cegcc*)
14012 # MinGW DLLs use traditional 'lib' prefix
14013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14014 ;;
14015 pw32*)
14016 # pw32 DLLs use 'pw' prefix rather than 'lib'
14017 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14018 ;;
14019 esac
14020 dynamic_linker='Win32 ld.exe'
14021 ;;
14022
14023 *,cl*)
14024 # Native MSVC
14025 libname_spec='$name'
14026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14027 library_names_spec='$libname.dll.lib'
14028
14029 case $build_os in
14030 mingw*)
14031 sys_lib_search_path_spec=
14032 lt_save_ifs=$IFS
14033 IFS=';'
14034 for lt_path in $LIB
14035 do
14036 IFS=$lt_save_ifs
14037 # Let DOS variable expansion print the short 8.3 style file name.
14038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14040 done
14041 IFS=$lt_save_ifs
14042 # Convert to MSYS style.
14043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14044 ;;
14045 cygwin*)
14046 # Convert to unix form, then to dos form, then back to unix form
14047 # but this time dos style (no spaces!) so that the unix form looks
14048 # like /cygdrive/c/PROGRA~1:/cygdr...
14049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14052 ;;
14053 *)
14054 sys_lib_search_path_spec=$LIB
14055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14056 # It is most probably a Windows format PATH.
14057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14058 else
14059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14060 fi
14061 # FIXME: find the short name or the path components, as spaces are
14062 # common. (e.g. "Program Files" -> "PROGRA~1")
14063 ;;
14064 esac
14065
14066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14067 postinstall_cmds='base_file=`basename \$file`~
14068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14069 dldir=$destdir/`dirname \$dlpath`~
14070 test -d \$dldir || mkdir -p \$dldir~
14071 $install_prog $dir/$dlname \$dldir/$dlname'
14072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14073 dlpath=$dir/\$dldll~
14074 $RM \$dlpath'
14075 shlibpath_overrides_runpath=yes
14076 dynamic_linker='Win32 link.exe'
14077 ;;
14078
14079 *)
14080 # Assume MSVC wrapper
14081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14082 dynamic_linker='Win32 ld.exe'
14083 ;;
14084 esac
14085 # FIXME: first we should search . and the directory the executable is in
14086 shlibpath_var=PATH
14087 ;;
14088
14089darwin* | rhapsody*)
14090 dynamic_linker="$host_os dyld"
14091 version_type=darwin
14092 need_lib_prefix=no
14093 need_version=no
14094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14095 soname_spec='$libname$release$major$shared_ext'
14096 shlibpath_overrides_runpath=yes
14097 shlibpath_var=DYLD_LIBRARY_PATH
14098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14099
14100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14102 ;;
14103
14104dgux*)
14105 version_type=linux # correct to gnu/linux during the next big refactor
14106 need_lib_prefix=no
14107 need_version=no
14108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14109 soname_spec='$libname$release$shared_ext$major'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 ;;
14112
14113freebsd* | dragonfly*)
14114 # DragonFly does not have aout. When/if they implement a new
14115 # versioning mechanism, adjust this.
14116 if test -x /usr/bin/objformat; then
14117 objformat=`/usr/bin/objformat`
14118 else
14119 case $host_os in
14120 freebsd[23].*) objformat=aout ;;
14121 *) objformat=elf ;;
14122 esac
14123 fi
14124 version_type=freebsd-$objformat
14125 case $version_type in
14126 freebsd-elf*)
14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14128 soname_spec='$libname$release$shared_ext$major'
14129 need_version=no
14130 need_lib_prefix=no
14131 ;;
14132 freebsd-*)
14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14134 need_version=yes
14135 ;;
14136 esac
14137 shlibpath_var=LD_LIBRARY_PATH
14138 case $host_os in
14139 freebsd2.*)
14140 shlibpath_overrides_runpath=yes
14141 ;;
14142 freebsd3.[01]* | freebsdelf3.[01]*)
14143 shlibpath_overrides_runpath=yes
14144 hardcode_into_libs=yes
14145 ;;
14146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14148 shlibpath_overrides_runpath=no
14149 hardcode_into_libs=yes
14150 ;;
14151 *) # from 4.6 on, and DragonFly
14152 shlibpath_overrides_runpath=yes
14153 hardcode_into_libs=yes
14154 ;;
14155 esac
14156 ;;
14157
14158haiku*)
14159 version_type=linux # correct to gnu/linux during the next big refactor
14160 need_lib_prefix=no
14161 need_version=no
14162 dynamic_linker="$host_os runtime_loader"
14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14164 soname_spec='$libname$release$shared_ext$major'
14165 shlibpath_var=LIBRARY_PATH
14166 shlibpath_overrides_runpath=no
14167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14168 hardcode_into_libs=yes
14169 ;;
14170
14171hpux9* | hpux10* | hpux11*)
14172 # Give a soname corresponding to the major version so that dld.sl refuses to
14173 # link against other versions.
14174 version_type=sunos
14175 need_lib_prefix=no
14176 need_version=no
14177 case $host_cpu in
14178 ia64*)
14179 shrext_cmds='.so'
14180 hardcode_into_libs=yes
14181 dynamic_linker="$host_os dld.so"
14182 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14185 soname_spec='$libname$release$shared_ext$major'
14186 if test 32 = "$HPUX_IA64_MODE"; then
14187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14189 else
14190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14192 fi
14193 ;;
14194 hppa*64*)
14195 shrext_cmds='.sl'
14196 hardcode_into_libs=yes
14197 dynamic_linker="$host_os dld.sl"
14198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14201 soname_spec='$libname$release$shared_ext$major'
14202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14204 ;;
14205 *)
14206 shrext_cmds='.sl'
14207 dynamic_linker="$host_os dld.sl"
14208 shlibpath_var=SHLIB_PATH
14209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14211 soname_spec='$libname$release$shared_ext$major'
14212 ;;
14213 esac
14214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14215 postinstall_cmds='chmod 555 $lib'
14216 # or fails outright, so override atomically:
14217 install_override_mode=555
14218 ;;
14219
14220interix[3-9]*)
14221 version_type=linux # correct to gnu/linux during the next big refactor
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14225 soname_spec='$libname$release$shared_ext$major'
14226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14230 ;;
14231
14232irix5* | irix6* | nonstopux*)
14233 case $host_os in
14234 nonstopux*) version_type=nonstopux ;;
14235 *)
14236 if test yes = "$lt_cv_prog_gnu_ld"; then
14237 version_type=linux # correct to gnu/linux during the next big refactor
14238 else
14239 version_type=irix
14240 fi ;;
14241 esac
14242 need_lib_prefix=no
14243 need_version=no
14244 soname_spec='$libname$release$shared_ext$major'
14245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14246 case $host_os in
14247 irix5* | nonstopux*)
14248 libsuff= shlibsuff=
14249 ;;
14250 *)
14251 case $LD in # libtool.m4 will add one of these switches to LD
14252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14253 libsuff= shlibsuff= libmagic=32-bit;;
14254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14255 libsuff=32 shlibsuff=N32 libmagic=N32;;
14256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14257 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14258 *) libsuff= shlibsuff= libmagic=never-match;;
14259 esac
14260 ;;
14261 esac
14262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14263 shlibpath_overrides_runpath=no
14264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14266 hardcode_into_libs=yes
14267 ;;
14268
14269# No shared lib support for Linux oldld, aout, or coff.
14270linux*oldld* | linux*aout* | linux*coff*)
14271 dynamic_linker=no
14272 ;;
14273
14274linux*android*)
14275 version_type=none # Android doesn't support versioned libraries.
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='$libname$release$shared_ext'
14279 soname_spec='$libname$release$shared_ext'
14280 finish_cmds=
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283
14284 # This implies no fast_install, which is unacceptable.
14285 # Some rework will be needed to allow for fast_install
14286 # before this can be enabled.
14287 hardcode_into_libs=yes
14288
14289 dynamic_linker='Android linker'
14290 # Don't embed -rpath directories since the linker doesn't support them.
14291 hardcode_libdir_flag_spec='-L$libdir'
14292 ;;
14293
14294# This must be glibc/ELF.
14295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14296 version_type=linux # correct to gnu/linux during the next big refactor
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14300 soname_spec='$libname$release$shared_ext$major'
14301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=no
14304
14305 # Some binutils ld are patched to set DT_RUNPATH
14306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14307 $as_echo_n "(cached) " >&6
14308else
14309 lt_cv_shlibpath_overrides_runpath=no
14310 save_LDFLAGS=$LDFLAGS
14311 save_libdir=$libdir
14312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h. */
14316
14317int main (void)
14318{
14319
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324if ac_fn_c_try_link "$LINENO"; then :
14325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14326 lt_cv_shlibpath_overrides_runpath=yes
14327fi
14328fi
14329rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LDFLAGS=$save_LDFLAGS
14332 libdir=$save_libdir
14333
14334fi
14335
14336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14337
14338 # This implies no fast_install, which is unacceptable.
14339 # Some rework will be needed to allow for fast_install
14340 # before this can be enabled.
14341 hardcode_into_libs=yes
14342
14343 # Ideally, we could use ldconfig to report *all* directores which are
14344 # searched for libraries, however this is still not possible. Aside from not
14345 # being certain /sbin/ldconfig is available, command
14346 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14347 # even though it is searched at run-time. Try to do the best guess by
14348 # appending ld.so.conf contents (and includes) to the search path.
14349 if test -f /etc/ld.so.conf; then
14350 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' ' '`
14351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14352 fi
14353
14354 # We used to test for /lib/ld.so.1 and disable shared libraries on
14355 # powerpc, because MkLinux only supported shared libraries with the
14356 # GNU dynamic linker. Since this was broken with cross compilers,
14357 # most powerpc-linux boxes support dynamic linking these days and
14358 # people can always --disable-shared, the test was removed, and we
14359 # assume the GNU/Linux dynamic linker is in use.
14360 dynamic_linker='GNU/Linux ld.so'
14361 ;;
14362
14363netbsdelf*-gnu)
14364 version_type=linux
14365 need_lib_prefix=no
14366 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
14370 shlibpath_overrides_runpath=no
14371 hardcode_into_libs=yes
14372 dynamic_linker='NetBSD ld.elf_so'
14373 ;;
14374
14375netbsd*)
14376 version_type=sunos
14377 need_lib_prefix=no
14378 need_version=no
14379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14380 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14382 dynamic_linker='NetBSD (a.out) ld.so'
14383 else
14384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14385 soname_spec='$libname$release$shared_ext$major'
14386 dynamic_linker='NetBSD ld.elf_so'
14387 fi
14388 shlibpath_var=LD_LIBRARY_PATH
14389 shlibpath_overrides_runpath=yes
14390 hardcode_into_libs=yes
14391 ;;
14392
14393newsos6)
14394 version_type=linux # correct to gnu/linux during the next big refactor
14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396 shlibpath_var=LD_LIBRARY_PATH
14397 shlibpath_overrides_runpath=yes
14398 ;;
14399
14400*nto* | *qnx*)
14401 version_type=qnx
14402 need_lib_prefix=no
14403 need_version=no
14404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14405 soname_spec='$libname$release$shared_ext$major'
14406 shlibpath_var=LD_LIBRARY_PATH
14407 shlibpath_overrides_runpath=no
14408 hardcode_into_libs=yes
14409 dynamic_linker='ldqnx.so'
14410 ;;
14411
14412openbsd* | bitrig*)
14413 version_type=sunos
14414 sys_lib_dlsearch_path_spec=/usr/lib
14415 need_lib_prefix=no
14416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14417 need_version=no
14418 else
14419 need_version=yes
14420 fi
14421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 shlibpath_overrides_runpath=yes
14425 ;;
14426
14427os2*)
14428 libname_spec='$name'
14429 version_type=windows
14430 shrext_cmds=.dll
14431 need_version=no
14432 need_lib_prefix=no
14433 # OS/2 can only load a DLL with a base name of 8 characters or less.
14434 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14435 v=$($ECHO $release$versuffix | tr -d .-);
14436 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14437 $ECHO $n$v`$shared_ext'
14438 library_names_spec='${libname}_dll.$libext'
14439 dynamic_linker='OS/2 ld.exe'
14440 shlibpath_var=BEGINLIBPATH
14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443 postinstall_cmds='base_file=`basename \$file`~
14444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14445 dldir=$destdir/`dirname \$dlpath`~
14446 test -d \$dldir || mkdir -p \$dldir~
14447 $install_prog $dir/$dlname \$dldir/$dlname~
14448 chmod a+x \$dldir/$dlname~
14449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14451 fi'
14452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14453 dlpath=$dir/\$dldll~
14454 $RM \$dlpath'
14455 ;;
14456
14457osf3* | osf4* | osf5*)
14458 version_type=osf
14459 need_lib_prefix=no
14460 need_version=no
14461 soname_spec='$libname$release$shared_ext$major'
14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14466 ;;
14467
14468rdos*)
14469 dynamic_linker=no
14470 ;;
14471
14472solaris*)
14473 version_type=linux # correct to gnu/linux during the next big refactor
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477 soname_spec='$libname$release$shared_ext$major'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 shlibpath_overrides_runpath=yes
14480 hardcode_into_libs=yes
14481 # ldd complains unless libraries are executable
14482 postinstall_cmds='chmod +x $lib'
14483 ;;
14484
14485sunos4*)
14486 version_type=sunos
14487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491 if test yes = "$with_gnu_ld"; then
14492 need_lib_prefix=no
14493 fi
14494 need_version=yes
14495 ;;
14496
14497sysv4 | sysv4.3*)
14498 version_type=linux # correct to gnu/linux during the next big refactor
14499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14500 soname_spec='$libname$release$shared_ext$major'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 case $host_vendor in
14503 sni)
14504 shlibpath_overrides_runpath=no
14505 need_lib_prefix=no
14506 runpath_var=LD_RUN_PATH
14507 ;;
14508 siemens)
14509 need_lib_prefix=no
14510 ;;
14511 motorola)
14512 need_lib_prefix=no
14513 need_version=no
14514 shlibpath_overrides_runpath=no
14515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14516 ;;
14517 esac
14518 ;;
14519
14520sysv4*MP*)
14521 if test -d /usr/nec; then
14522 version_type=linux # correct to gnu/linux during the next big refactor
14523 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14524 soname_spec='$libname$shared_ext.$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 fi
14527 ;;
14528
14529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14530 version_type=sco
14531 need_lib_prefix=no
14532 need_version=no
14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14534 soname_spec='$libname$release$shared_ext$major'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14537 hardcode_into_libs=yes
14538 if test yes = "$with_gnu_ld"; then
14539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14540 else
14541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14542 case $host_os in
14543 sco3.2v5*)
14544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14545 ;;
14546 esac
14547 fi
14548 sys_lib_dlsearch_path_spec='/usr/lib'
14549 ;;
14550
14551tpf*)
14552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14553 version_type=linux # correct to gnu/linux during the next big refactor
14554 need_lib_prefix=no
14555 need_version=no
14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561
14562uts4*)
14563 version_type=linux # correct to gnu/linux during the next big refactor
14564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14565 soname_spec='$libname$release$shared_ext$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 ;;
14568
14569*)
14570 dynamic_linker=no
14571 ;;
14572esac
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14574$as_echo "$dynamic_linker" >&6; }
14575test no = "$dynamic_linker" && can_build_shared=no
14576
14577variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14578if test yes = "$GCC"; then
14579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14580fi
14581
14582if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14583 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14584fi
14585
14586if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14587 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14588fi
14589
14590# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14591configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14592
14593# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14594func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14595
14596# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14597configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14696$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14697hardcode_action=
14698if test -n "$hardcode_libdir_flag_spec" ||
14699 test -n "$runpath_var" ||
14700 test yes = "$hardcode_automatic"; then
14701
14702 # We can hardcode non-existent directories.
14703 if test no != "$hardcode_direct" &&
14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14705 # have to relink, otherwise we might link with an installed library
14706 # when we should be linking with a yet-to-be-installed one
14707 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14708 test no != "$hardcode_minus_L"; then
14709 # Linking always hardcodes the temporary library directory.
14710 hardcode_action=relink
14711 else
14712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14713 hardcode_action=immediate
14714 fi
14715else
14716 # We cannot hardcode anything, or else we can only hardcode existing
14717 # directories.
14718 hardcode_action=unsupported
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14721$as_echo "$hardcode_action" >&6; }
14722
14723if test relink = "$hardcode_action" ||
14724 test yes = "$inherit_rpath"; then
14725 # Fast installation is not supported
14726 enable_fast_install=no
14727elif test yes = "$shlibpath_overrides_runpath" ||
14728 test no = "$enable_shared"; then
14729 # Fast installation is not necessary
14730 enable_fast_install=needless
14731fi
14732
14733
14734
14735
14736
14737
14738 if test yes != "$enable_dlopen"; then
14739 enable_dlopen=unknown
14740 enable_dlopen_self=unknown
14741 enable_dlopen_self_static=unknown
14742else
14743 lt_cv_dlopen=no
14744 lt_cv_dlopen_libs=
14745
14746 case $host_os in
14747 beos*)
14748 lt_cv_dlopen=load_add_on
14749 lt_cv_dlopen_libs=
14750 lt_cv_dlopen_self=yes
14751 ;;
14752
14753 mingw* | pw32* | cegcc*)
14754 lt_cv_dlopen=LoadLibrary
14755 lt_cv_dlopen_libs=
14756 ;;
14757
14758 cygwin*)
14759 lt_cv_dlopen=dlopen
14760 lt_cv_dlopen_libs=
14761 ;;
14762
14763 darwin*)
14764 # if libdl is installed we need to link against it
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14766$as_echo_n "checking for dlopen in -ldl... " >&6; }
14767if ${ac_cv_lib_dl_dlopen+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769else
14770 ac_check_lib_save_LIBS=$LIBS
14771LIBS="-ldl $LIBS"
14772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h. */
14774
14775
14776#ifdef __cplusplus
14777extern "C"
14778#endif
14779char dlopen ();
14780int main (void)
14781{
14782return dlopen ();
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787if ac_fn_c_try_link "$LINENO"; then :
14788 ac_cv_lib_dl_dlopen=yes
14789else
14790 ac_cv_lib_dl_dlopen=no
14791fi
14792rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
14794LIBS=$ac_check_lib_save_LIBS
14795fi
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14797$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14798if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14799 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14800else
14801
14802 lt_cv_dlopen=dyld
14803 lt_cv_dlopen_libs=
14804 lt_cv_dlopen_self=yes
14805
14806fi
14807
14808 ;;
14809
14810 tpf*)
14811 # Don't try to run any link tests for TPF. We know it's impossible
14812 # because TPF is a cross-compiler, and we know how we open DSOs.
14813 lt_cv_dlopen=dlopen
14814 lt_cv_dlopen_libs=
14815 lt_cv_dlopen_self=no
14816 ;;
14817
14818 *)
14819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14820if test "x$ac_cv_func_shl_load" = xyes; then :
14821 lt_cv_dlopen=shl_load
14822else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14824$as_echo_n "checking for shl_load in -ldld... " >&6; }
14825if ${ac_cv_lib_dld_shl_load+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827else
14828 ac_check_lib_save_LIBS=$LIBS
14829LIBS="-ldld $LIBS"
14830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h. */
14832
14833
14834#ifdef __cplusplus
14835extern "C"
14836#endif
14837char shl_load ();
14838int main (void)
14839{
14840return shl_load ();
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845if ac_fn_c_try_link "$LINENO"; then :
14846 ac_cv_lib_dld_shl_load=yes
14847else
14848 ac_cv_lib_dld_shl_load=no
14849fi
14850rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852LIBS=$ac_check_lib_save_LIBS
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14855$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14856if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14857 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14858else
14859 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14860if test "x$ac_cv_func_dlopen" = xyes; then :
14861 lt_cv_dlopen=dlopen
14862else
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14864$as_echo_n "checking for dlopen in -ldl... " >&6; }
14865if ${ac_cv_lib_dl_dlopen+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 ac_check_lib_save_LIBS=$LIBS
14869LIBS="-ldl $LIBS"
14870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h. */
14872
14873
14874#ifdef __cplusplus
14875extern "C"
14876#endif
14877char dlopen ();
14878int main (void)
14879{
14880return dlopen ();
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_lib_dl_dlopen=yes
14887else
14888 ac_cv_lib_dl_dlopen=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892LIBS=$ac_check_lib_save_LIBS
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14896if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14898else
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14900$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14901if ${ac_cv_lib_svld_dlopen+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903else
14904 ac_check_lib_save_LIBS=$LIBS
14905LIBS="-lsvld $LIBS"
14906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907/* end confdefs.h. */
14908
14909
14910#ifdef __cplusplus
14911extern "C"
14912#endif
14913char dlopen ();
14914int main (void)
14915{
14916return dlopen ();
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921if ac_fn_c_try_link "$LINENO"; then :
14922 ac_cv_lib_svld_dlopen=yes
14923else
14924 ac_cv_lib_svld_dlopen=no
14925fi
14926rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14928LIBS=$ac_check_lib_save_LIBS
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14931$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14932if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14934else
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14936$as_echo_n "checking for dld_link in -ldld... " >&6; }
14937if ${ac_cv_lib_dld_dld_link+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 ac_check_lib_save_LIBS=$LIBS
14941LIBS="-ldld $LIBS"
14942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h. */
14944
14945
14946#ifdef __cplusplus
14947extern "C"
14948#endif
14949char dld_link ();
14950int main (void)
14951{
14952return dld_link ();
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957if ac_fn_c_try_link "$LINENO"; then :
14958 ac_cv_lib_dld_dld_link=yes
14959else
14960 ac_cv_lib_dld_dld_link=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14964LIBS=$ac_check_lib_save_LIBS
14965fi
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14967$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14968if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14969 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14970fi
14971
14972
14973fi
14974
14975
14976fi
14977
14978
14979fi
14980
14981
14982fi
14983
14984
14985fi
14986
14987 ;;
14988 esac
14989
14990 if test no = "$lt_cv_dlopen"; then
14991 enable_dlopen=no
14992 else
14993 enable_dlopen=yes
14994 fi
14995
14996 case $lt_cv_dlopen in
14997 dlopen)
14998 save_CPPFLAGS=$CPPFLAGS
14999 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15000
15001 save_LDFLAGS=$LDFLAGS
15002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15003
15004 save_LIBS=$LIBS
15005 LIBS="$lt_cv_dlopen_libs $LIBS"
15006
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15008$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15009if ${lt_cv_dlopen_self+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011else
15012 if test yes = "$cross_compiling"; then :
15013 lt_cv_dlopen_self=cross
15014else
15015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15016 lt_status=$lt_dlunknown
15017 cat > conftest.$ac_ext <<_LT_EOF
15018#line $LINENO "configure"
15019#include "confdefs.h"
15020
15021#if HAVE_DLFCN_H
15022#include <dlfcn.h>
15023#endif
15024
15025#include <stdio.h>
15026
15027#ifdef RTLD_GLOBAL
15028# define LT_DLGLOBAL RTLD_GLOBAL
15029#else
15030# ifdef DL_GLOBAL
15031# define LT_DLGLOBAL DL_GLOBAL
15032# else
15033# define LT_DLGLOBAL 0
15034# endif
15035#endif
15036
15037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15038 find out it does not work in some platform. */
15039#ifndef LT_DLLAZY_OR_NOW
15040# ifdef RTLD_LAZY
15041# define LT_DLLAZY_OR_NOW RTLD_LAZY
15042# else
15043# ifdef DL_LAZY
15044# define LT_DLLAZY_OR_NOW DL_LAZY
15045# else
15046# ifdef RTLD_NOW
15047# define LT_DLLAZY_OR_NOW RTLD_NOW
15048# else
15049# ifdef DL_NOW
15050# define LT_DLLAZY_OR_NOW DL_NOW
15051# else
15052# define LT_DLLAZY_OR_NOW 0
15053# endif
15054# endif
15055# endif
15056# endif
15057#endif
15058
15059/* When -fvisibility=hidden is used, assume the code has been annotated
15060 correspondingly for the symbols needed. */
15061#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15062int fnord () __attribute__((visibility("default")));
15063#endif
15064
15065int fnord () { return 42; }
15066int main ()
15067{
15068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15069 int status = $lt_dlunknown;
15070
15071 if (self)
15072 {
15073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15074 else
15075 {
15076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15077 else puts (dlerror ());
15078 }
15079 /* dlclose (self); */
15080 }
15081 else
15082 puts (dlerror ());
15083
15084 return status;
15085}
15086_LT_EOF
15087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15088 (eval $ac_link) 2>&5
15089 ac_status=$?
15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15091 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15092 (./conftest; exit; ) >&5 2>/dev/null
15093 lt_status=$?
15094 case x$lt_status in
15095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15098 esac
15099 else :
15100 # compilation failed
15101 lt_cv_dlopen_self=no
15102 fi
15103fi
15104rm -fr conftest*
15105
15106
15107fi
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15109$as_echo "$lt_cv_dlopen_self" >&6; }
15110
15111 if test yes = "$lt_cv_dlopen_self"; then
15112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15114$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15115if ${lt_cv_dlopen_self_static+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117else
15118 if test yes = "$cross_compiling"; then :
15119 lt_cv_dlopen_self_static=cross
15120else
15121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15122 lt_status=$lt_dlunknown
15123 cat > conftest.$ac_ext <<_LT_EOF
15124#line $LINENO "configure"
15125#include "confdefs.h"
15126
15127#if HAVE_DLFCN_H
15128#include <dlfcn.h>
15129#endif
15130
15131#include <stdio.h>
15132
15133#ifdef RTLD_GLOBAL
15134# define LT_DLGLOBAL RTLD_GLOBAL
15135#else
15136# ifdef DL_GLOBAL
15137# define LT_DLGLOBAL DL_GLOBAL
15138# else
15139# define LT_DLGLOBAL 0
15140# endif
15141#endif
15142
15143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15144 find out it does not work in some platform. */
15145#ifndef LT_DLLAZY_OR_NOW
15146# ifdef RTLD_LAZY
15147# define LT_DLLAZY_OR_NOW RTLD_LAZY
15148# else
15149# ifdef DL_LAZY
15150# define LT_DLLAZY_OR_NOW DL_LAZY
15151# else
15152# ifdef RTLD_NOW
15153# define LT_DLLAZY_OR_NOW RTLD_NOW
15154# else
15155# ifdef DL_NOW
15156# define LT_DLLAZY_OR_NOW DL_NOW
15157# else
15158# define LT_DLLAZY_OR_NOW 0
15159# endif
15160# endif
15161# endif
15162# endif
15163#endif
15164
15165/* When -fvisibility=hidden is used, assume the code has been annotated
15166 correspondingly for the symbols needed. */
15167#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15168int fnord () __attribute__((visibility("default")));
15169#endif
15170
15171int fnord () { return 42; }
15172int main ()
15173{
15174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15175 int status = $lt_dlunknown;
15176
15177 if (self)
15178 {
15179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15180 else
15181 {
15182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15183 else puts (dlerror ());
15184 }
15185 /* dlclose (self); */
15186 }
15187 else
15188 puts (dlerror ());
15189
15190 return status;
15191}
15192_LT_EOF
15193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15194 (eval $ac_link) 2>&5
15195 ac_status=$?
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15198 (./conftest; exit; ) >&5 2>/dev/null
15199 lt_status=$?
15200 case x$lt_status in
15201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15204 esac
15205 else :
15206 # compilation failed
15207 lt_cv_dlopen_self_static=no
15208 fi
15209fi
15210rm -fr conftest*
15211
15212
15213fi
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15215$as_echo "$lt_cv_dlopen_self_static" >&6; }
15216 fi
15217
15218 CPPFLAGS=$save_CPPFLAGS
15219 LDFLAGS=$save_LDFLAGS
15220 LIBS=$save_LIBS
15221 ;;
15222 esac
15223
15224 case $lt_cv_dlopen_self in
15225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15226 *) enable_dlopen_self=unknown ;;
15227 esac
15228
15229 case $lt_cv_dlopen_self_static in
15230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15231 *) enable_dlopen_self_static=unknown ;;
15232 esac
15233fi
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251striplib=
15252old_striplib=
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15254$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15255if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15259$as_echo "yes" >&6; }
15260else
15261# FIXME - insert some real tests, host_os isn't really good enough
15262 case $host_os in
15263 darwin*)
15264 if test -n "$STRIP"; then
15265 striplib="$STRIP -x"
15266 old_striplib="$STRIP -S"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268$as_echo "yes" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
15272 fi
15273 ;;
15274 *)
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276$as_echo "no" >&6; }
15277 ;;
15278 esac
15279fi
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292 # Report what library types will actually be built
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15294$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15296$as_echo "$can_build_shared" >&6; }
15297
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15299$as_echo_n "checking whether to build shared libraries... " >&6; }
15300 test no = "$can_build_shared" && enable_shared=no
15301
15302 # On AIX, shared libraries and static libraries use the same namespace, and
15303 # are all built from PIC.
15304 case $host_os in
15305 aix3*)
15306 test yes = "$enable_shared" && enable_static=no
15307 if test -n "$RANLIB"; then
15308 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15309 postinstall_cmds='$RANLIB $lib'
15310 fi
15311 ;;
15312
15313 aix[4-9]*)
15314 if test ia64 != "$host_cpu"; then
15315 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15316 yes,aix,yes) ;; # shared object as lib.so file only
15317 yes,svr4,*) ;; # shared object as lib.so archive member only
15318 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15319 esac
15320 fi
15321 ;;
15322 esac
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15324$as_echo "$enable_shared" >&6; }
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15327$as_echo_n "checking whether to build static libraries... " >&6; }
15328 # Make sure either enable_shared or enable_static is yes.
15329 test yes = "$enable_shared" || enable_static=yes
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15331$as_echo "$enable_static" >&6; }
15332
15333
15334
15335
15336fi
15337ac_ext=c
15338ac_cpp='$CPP $CPPFLAGS'
15339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341ac_compiler_gnu=$ac_cv_c_compiler_gnu
15342
15343CC=$lt_save_CC
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359 ac_config_commands="$ac_config_commands libtool"
15360
15361
15362
15363
15364# Only expand once:
15365
15366
15367## --------------------- ##
15368## End of libtool code ##
15369## --------------------- ##
15370
15371#
15372# Verify if finally libtool shared libraries will be built
15373#
15374
15375case "x$enable_shared" in # ((
15376 xyes | xno)
15377 xc_lt_build_shared=$enable_shared
15378 ;;
15379 *)
15380 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15381 ;;
15382esac
15383
15384#
15385# Verify if finally libtool static libraries will be built
15386#
15387
15388case "x$enable_static" in # ((
15389 xyes | xno)
15390 xc_lt_build_static=$enable_static
15391 ;;
15392 *)
15393 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15394 ;;
15395esac
15396
15397#
15398# Verify if libtool shared libraries should be linked using flag -version-info
15399#
15400
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15402$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15403xc_lt_shlib_use_version_info='yes'
15404if test "x$version_type" = 'xnone'; then
15405 xc_lt_shlib_use_version_info='no'
15406fi
15407case $host_os in # (
15408 amigaos*)
15409 xc_lt_shlib_use_version_info='yes'
15410 ;;
15411esac
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15413$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15414
15415#
15416# Verify if libtool shared libraries should be linked using flag -no-undefined
15417#
15418
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15420$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15421xc_lt_shlib_use_no_undefined='no'
15422if test "x$allow_undefined" = 'xno'; then
15423 xc_lt_shlib_use_no_undefined='yes'
15424elif test "x$allow_undefined_flag" = 'xunsupported'; then
15425 xc_lt_shlib_use_no_undefined='yes'
15426fi
15427case $host_os in # (
15428 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15429 xc_lt_shlib_use_no_undefined='yes'
15430 ;;
15431esac
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15433$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15434
15435#
15436# Verify if libtool shared libraries should be linked using flag -mimpure-text
15437#
15438
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15440$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15441xc_lt_shlib_use_mimpure_text='no'
15442case $host_os in # (
15443 solaris2*)
15444 if test "x$GCC" = 'xyes'; then
15445 xc_lt_shlib_use_mimpure_text='yes'
15446 fi
15447 ;;
15448esac
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15450$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15451
15452#
15453# Find out whether libtool libraries would be built wit PIC
15454#
15455
15456case "x$pic_mode" in # ((((
15457 xdefault)
15458 xc_lt_build_shared_with_pic='yes'
15459 xc_lt_build_static_with_pic='no'
15460 ;;
15461 xyes)
15462 xc_lt_build_shared_with_pic='yes'
15463 xc_lt_build_static_with_pic='yes'
15464 ;;
15465 xno)
15466 xc_lt_build_shared_with_pic='no'
15467 xc_lt_build_static_with_pic='no'
15468 ;;
15469 *)
15470 xc_lt_build_shared_with_pic='unknown'
15471 xc_lt_build_static_with_pic='unknown'
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15473$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15474 ;;
15475esac
15476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15477$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15479$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15481$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15483$as_echo "$xc_lt_build_static_with_pic" >&6; }
15484
15485#
15486# Verify if libtool shared libraries will be built while static not built
15487#
15488
15489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15490$as_echo_n "checking whether to build shared libraries only... " >&6; }
15491if test "$xc_lt_build_shared" = 'yes' &&
15492 test "$xc_lt_build_static" = 'no'; then
15493 xc_lt_build_shared_only='yes'
15494else
15495 xc_lt_build_shared_only='no'
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15498$as_echo "$xc_lt_build_shared_only" >&6; }
15499
15500#
15501# Verify if libtool static libraries will be built while shared not built
15502#
15503
15504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15505$as_echo_n "checking whether to build static libraries only... " >&6; }
15506if test "$xc_lt_build_static" = 'yes' &&
15507 test "$xc_lt_build_shared" = 'no'; then
15508 xc_lt_build_static_only='yes'
15509else
15510 xc_lt_build_static_only='no'
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15513$as_echo "$xc_lt_build_static_only" >&6; }
15514
15515
15516
15517
15518#
15519# Automake conditionals based on libtool related checks
15520#
15521
15522 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15523 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15524 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15525else
15526 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15527 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15528fi
15529
15530 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15531 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15532 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15533else
15534 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15535 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15536fi
15537
15538 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15539 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15540 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15541else
15542 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15543 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15544fi
15545
15546
15547#
15548# Due to libtool and automake machinery limitations of not allowing
15549# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15550# inclusion of these in shared or static libraries, we are forced to
15551# build using separate configure runs for shared and static libraries
15552# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15553# to compile objects for each kind of library. Notice that relying on
15554# the '-DPIC' CFLAG that libtool provides is not valid given that the
15555# user might for example choose to build static libraries with PIC.
15556#
15557
15558#
15559# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15560# targeting a static library and not building its shared counterpart.
15561#
15562
15563 if test "x$xc_lt_build_static_only" = 'xyes'; then
15564 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15565 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15566else
15567 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15568 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15569fi
15570
15571
15572#
15573# Make staticlib CPPFLAG variable and its definition visible in output
15574# files unconditionally, providing an empty definition unless strictly
15575# targeting a static library and not building its shared counterpart.
15576#
15577
15578CPPFLAG_CURL_STATICLIB=
15579if test "x$xc_lt_build_static_only" = 'xyes'; then
15580 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15581fi
15582
15583
15584
15585# Determine whether all dependent libraries must be specified when linking
15586if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15587then
15588 REQUIRE_LIB_DEPS=no
15589else
15590 REQUIRE_LIB_DEPS=yes
15591fi
15592
15593 if test x$REQUIRE_LIB_DEPS = xyes; then
15594 USE_EXPLICIT_LIB_DEPS_TRUE=
15595 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15596else
15597 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15598 USE_EXPLICIT_LIB_DEPS_FALSE=
15599fi
15600
15601
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15603$as_echo_n "checking for inline... " >&6; }
15604if ${ac_cv_c_inline+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606else
15607 ac_cv_c_inline=no
15608for ac_kw in inline __inline__ __inline; do
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611#ifndef __cplusplus
15612typedef int foo_t;
15613static $ac_kw foo_t static_foo () {return 0; }
15614$ac_kw foo_t foo () {return 0; }
15615#endif
15616
15617_ACEOF
15618if ac_fn_c_try_compile "$LINENO"; then :
15619 ac_cv_c_inline=$ac_kw
15620fi
15621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 test "$ac_cv_c_inline" != no && break
15623done
15624
15625fi
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15627$as_echo "$ac_cv_c_inline" >&6; }
15628
15629case $ac_cv_c_inline in
15630 inline | yes) ;;
15631 *)
15632 case $ac_cv_c_inline in
15633 no) ac_val=;;
15634 *) ac_val=$ac_cv_c_inline;;
15635 esac
15636 cat >>confdefs.h <<_ACEOF
15637#ifndef __cplusplus
15638#define inline $ac_val
15639#endif
15640_ACEOF
15641 ;;
15642esac
15643
15644
15645
15646
Alex Deymo486467e2017-12-19 19:04:07 +010015647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15648$as_echo_n "checking if cpp -P is needed... " >&6; }
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h. */
15651
15652 #include <errno.h>
15653TEST EINVAL TEST
15654
15655_ACEOF
15656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15657 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15658 cpp=no
15659else
15660 cpp=yes
15661fi
15662rm -f conftest*
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15665$as_echo "$cpp" >&6; }
15666
15667 if test "x$cpp" = "xyes"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15669$as_echo_n "checking if cpp -P works... " >&6; }
15670 OLDCPPFLAGS=$CPPFLAGS
15671 CPPFLAGS="$CPPFLAGS -P"
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673/* end confdefs.h. */
15674
15675 #include <errno.h>
15676TEST EINVAL TEST
15677
15678_ACEOF
15679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15680 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15681 cpp_p=yes
15682else
15683 cpp_p=no
15684fi
15685rm -f conftest*
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15688$as_echo "$cpp_p" >&6; }
15689
15690 if test "x$cpp_p" = "xno"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15692$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15693 # without -P
15694 CPPPFLAG=""
15695 else
15696 # with -P
15697 CPPPFLAG="-P"
15698 fi
15699 CPPFLAGS=$OLDCPPFLAGS
15700 else
15701 # without -P
15702 CPPPFLAG=""
15703 fi
15704
15705
Elliott Hughes82be86d2017-09-20 17:00:17 -070015706 #
15707 compiler_id="unknown"
15708 compiler_num="0"
15709 #
15710 flags_dbg_all="unknown"
15711 flags_dbg_yes="unknown"
15712 flags_dbg_off="unknown"
15713 flags_opt_all="unknown"
15714 flags_opt_yes="unknown"
15715 flags_opt_off="unknown"
15716 #
15717 flags_prefer_cppflags="no"
15718 #
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15721$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15722
15723 OLDCPPFLAGS=$CPPFLAGS
15724 # CPPPFLAG comes from CURL_CPP_P
15725 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15726 if test -z "$SED"; then
15727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15728 fi
15729 if test -z "$GREP"; then
15730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15731 fi
15732
15733 tmp_exp=""
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h. */
15736
15737
15738#ifdef __DECC
15739CURL_DEF_TOKEN __DECC
15740#endif
15741
15742
15743_ACEOF
15744if ac_fn_c_try_cpp "$LINENO"; then :
15745
15746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15749 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15750 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15751 tmp_exp=""
15752 fi
15753
15754fi
15755rm -f conftest.err conftest.i conftest.$ac_ext
15756 if test -z "$tmp_exp"; then
15757 curl_cv_have_def___DECC=no
15758
15759 else
15760 curl_cv_have_def___DECC=yes
15761 curl_cv_def___DECC=$tmp_exp
15762
15763 fi
15764 CPPFLAGS=$OLDCPPFLAGS
15765
15766
15767 OLDCPPFLAGS=$CPPFLAGS
15768 # CPPPFLAG comes from CURL_CPP_P
15769 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15770 if test -z "$SED"; then
15771 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15772 fi
15773 if test -z "$GREP"; then
15774 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15775 fi
15776
15777 tmp_exp=""
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779/* end confdefs.h. */
15780
15781
15782#ifdef __DECC_VER
15783CURL_DEF_TOKEN __DECC_VER
15784#endif
15785
15786
15787_ACEOF
15788if ac_fn_c_try_cpp "$LINENO"; then :
15789
15790 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15791 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15792 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15793 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15794 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15795 tmp_exp=""
15796 fi
15797
15798fi
15799rm -f conftest.err conftest.i conftest.$ac_ext
15800 if test -z "$tmp_exp"; then
15801 curl_cv_have_def___DECC_VER=no
15802
15803 else
15804 curl_cv_have_def___DECC_VER=yes
15805 curl_cv_def___DECC_VER=$tmp_exp
15806
15807 fi
15808 CPPFLAGS=$OLDCPPFLAGS
15809
15810 if test "$curl_cv_have_def___DECC" = "yes" &&
15811 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813$as_echo "yes" >&6; }
15814 compiler_id="DEC_C"
15815 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15816 flags_dbg_yes="-g2"
15817 flags_dbg_off=""
15818 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15819 flags_opt_yes="-O1"
15820 flags_opt_off="-O0"
15821 else
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823$as_echo "no" >&6; }
15824 fi
15825
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15828$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15829
15830 OLDCPPFLAGS=$CPPFLAGS
15831 # CPPPFLAG comes from CURL_CPP_P
15832 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15833 if test -z "$SED"; then
15834 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15835 fi
15836 if test -z "$GREP"; then
15837 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15838 fi
15839
15840 tmp_exp=""
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h. */
15843
15844
15845#ifdef __HP_cc
15846CURL_DEF_TOKEN __HP_cc
15847#endif
15848
15849
15850_ACEOF
15851if ac_fn_c_try_cpp "$LINENO"; then :
15852
15853 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15854 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15855 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15856 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15857 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15858 tmp_exp=""
15859 fi
15860
15861fi
15862rm -f conftest.err conftest.i conftest.$ac_ext
15863 if test -z "$tmp_exp"; then
15864 curl_cv_have_def___HP_cc=no
15865
15866 else
15867 curl_cv_have_def___HP_cc=yes
15868 curl_cv_def___HP_cc=$tmp_exp
15869
15870 fi
15871 CPPFLAGS=$OLDCPPFLAGS
15872
15873 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15875$as_echo "yes" >&6; }
15876 compiler_id="HP_UX_C"
15877 flags_dbg_all="-g -s"
15878 flags_dbg_yes="-g"
15879 flags_dbg_off="-s"
15880 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15881 flags_opt_yes="+O2"
15882 flags_opt_off="+O0"
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885$as_echo "no" >&6; }
15886 fi
15887
15888
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15890$as_echo_n "checking if compiler is IBM C... " >&6; }
15891
15892 OLDCPPFLAGS=$CPPFLAGS
15893 # CPPPFLAG comes from CURL_CPP_P
15894 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15895 if test -z "$SED"; then
15896 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15897 fi
15898 if test -z "$GREP"; then
15899 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15900 fi
15901
15902 tmp_exp=""
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h. */
15905
15906
15907#ifdef __IBMC__
15908CURL_DEF_TOKEN __IBMC__
15909#endif
15910
15911
15912_ACEOF
15913if ac_fn_c_try_cpp "$LINENO"; then :
15914
15915 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15916 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15917 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15918 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15919 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15920 tmp_exp=""
15921 fi
15922
15923fi
15924rm -f conftest.err conftest.i conftest.$ac_ext
15925 if test -z "$tmp_exp"; then
15926 curl_cv_have_def___IBMC__=no
15927
15928 else
15929 curl_cv_have_def___IBMC__=yes
15930 curl_cv_def___IBMC__=$tmp_exp
15931
15932 fi
15933 CPPFLAGS=$OLDCPPFLAGS
15934
15935 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15937$as_echo "yes" >&6; }
15938 compiler_id="IBM_C"
15939 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15940 flags_dbg_yes="-g"
15941 flags_dbg_off=""
15942 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15943 flags_opt_all="$flags_opt_all -qnooptimize"
15944 flags_opt_all="$flags_opt_all -qoptimize=0"
15945 flags_opt_all="$flags_opt_all -qoptimize=1"
15946 flags_opt_all="$flags_opt_all -qoptimize=2"
15947 flags_opt_all="$flags_opt_all -qoptimize=3"
15948 flags_opt_all="$flags_opt_all -qoptimize=4"
15949 flags_opt_all="$flags_opt_all -qoptimize=5"
15950 flags_opt_yes="-O2"
15951 flags_opt_off="-qnooptimize"
15952 flags_prefer_cppflags="yes"
15953 else
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955$as_echo "no" >&6; }
15956 fi
15957
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15960$as_echo_n "checking if compiler is Intel C... " >&6; }
15961
15962 OLDCPPFLAGS=$CPPFLAGS
15963 # CPPPFLAG comes from CURL_CPP_P
15964 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15965 if test -z "$SED"; then
15966 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15967 fi
15968 if test -z "$GREP"; then
15969 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15970 fi
15971
15972 tmp_exp=""
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974/* end confdefs.h. */
15975
15976
15977#ifdef __INTEL_COMPILER
15978CURL_DEF_TOKEN __INTEL_COMPILER
15979#endif
15980
15981
15982_ACEOF
15983if ac_fn_c_try_cpp "$LINENO"; then :
15984
15985 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15986 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15987 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15988 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15989 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15990 tmp_exp=""
15991 fi
15992
15993fi
15994rm -f conftest.err conftest.i conftest.$ac_ext
15995 if test -z "$tmp_exp"; then
15996 curl_cv_have_def___INTEL_COMPILER=no
15997
15998 else
15999 curl_cv_have_def___INTEL_COMPILER=yes
16000 curl_cv_def___INTEL_COMPILER=$tmp_exp
16001
16002 fi
16003 CPPFLAGS=$OLDCPPFLAGS
16004
16005 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007$as_echo "yes" >&6; }
16008 compiler_num="$curl_cv_def___INTEL_COMPILER"
16009
16010 OLDCPPFLAGS=$CPPFLAGS
16011 # CPPPFLAG comes from CURL_CPP_P
16012 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16013 if test -z "$SED"; then
16014 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16015 fi
16016 if test -z "$GREP"; then
16017 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16018 fi
16019
16020 tmp_exp=""
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h. */
16023
16024
16025#ifdef __unix__
16026CURL_DEF_TOKEN __unix__
16027#endif
16028
16029
16030_ACEOF
16031if ac_fn_c_try_cpp "$LINENO"; then :
16032
16033 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16034 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16035 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16036 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16037 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16038 tmp_exp=""
16039 fi
16040
16041fi
16042rm -f conftest.err conftest.i conftest.$ac_ext
16043 if test -z "$tmp_exp"; then
16044 curl_cv_have_def___unix__=no
16045
16046 else
16047 curl_cv_have_def___unix__=yes
16048 curl_cv_def___unix__=$tmp_exp
16049
16050 fi
16051 CPPFLAGS=$OLDCPPFLAGS
16052
16053 if test "$curl_cv_have_def___unix__" = "yes"; then
16054 compiler_id="INTEL_UNIX_C"
16055 flags_dbg_all="-g -g0"
16056 flags_dbg_yes="-g"
16057 flags_dbg_off=""
16058 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16059 flags_opt_yes="-O2"
16060 flags_opt_off="-O0"
16061 else
16062 compiler_id="INTEL_WINDOWS_C"
16063 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16064 flags_dbg_all="$flags_dbg_all /debug"
16065 flags_dbg_all="$flags_dbg_all /debug:none"
16066 flags_dbg_all="$flags_dbg_all /debug:minimal"
16067 flags_dbg_all="$flags_dbg_all /debug:partial"
16068 flags_dbg_all="$flags_dbg_all /debug:full"
16069 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16070 flags_dbg_all="$flags_dbg_all /debug:extended"
16071 flags_dbg_yes="/Zi /Oy-"
16072 flags_dbg_off="/debug:none /Oy-"
16073 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16074 flags_opt_yes="/O2"
16075 flags_opt_off="/Od"
16076 fi
16077 else
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16079$as_echo "no" >&6; }
16080 fi
16081
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16084$as_echo_n "checking if compiler is clang... " >&6; }
16085
16086 OLDCPPFLAGS=$CPPFLAGS
16087 # CPPPFLAG comes from CURL_CPP_P
16088 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16089 if test -z "$SED"; then
16090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16091 fi
16092 if test -z "$GREP"; then
16093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16094 fi
16095
16096 tmp_exp=""
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h. */
16099
16100
16101#ifdef __clang__
16102CURL_DEF_TOKEN __clang__
16103#endif
16104
16105
16106_ACEOF
16107if ac_fn_c_try_cpp "$LINENO"; then :
16108
16109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16112 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16113 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16114 tmp_exp=""
16115 fi
16116
16117fi
16118rm -f conftest.err conftest.i conftest.$ac_ext
16119 if test -z "$tmp_exp"; then
16120 curl_cv_have_def___clang__=no
16121
16122 else
16123 curl_cv_have_def___clang__=yes
16124 curl_cv_def___clang__=$tmp_exp
16125
16126 fi
16127 CPPFLAGS=$OLDCPPFLAGS
16128
16129 if test "$curl_cv_have_def___clang__" = "yes"; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16131$as_echo "yes" >&6; }
Haibo Huang51d9d882019-02-06 01:36:06 -080016132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16133$as_echo_n "checking if compiler is xlclang... " >&6; }
16134
16135 OLDCPPFLAGS=$CPPFLAGS
16136 # CPPPFLAG comes from CURL_CPP_P
16137 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16138 if test -z "$SED"; then
16139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16140 fi
16141 if test -z "$GREP"; then
16142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16143 fi
16144
16145 tmp_exp=""
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147/* end confdefs.h. */
16148
16149
16150#ifdef __ibmxl__
16151CURL_DEF_TOKEN __ibmxl__
16152#endif
16153
16154
16155_ACEOF
16156if ac_fn_c_try_cpp "$LINENO"; then :
16157
16158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16161 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16162 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16163 tmp_exp=""
16164 fi
16165
16166fi
16167rm -f conftest.err conftest.i conftest.$ac_ext
16168 if test -z "$tmp_exp"; then
16169 curl_cv_have_def___ibmxl__=no
16170
16171 else
16172 curl_cv_have_def___ibmxl__=yes
16173 curl_cv_def___ibmxl__=$tmp_exp
16174
16175 fi
16176 CPPFLAGS=$OLDCPPFLAGS
16177
16178 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16180$as_echo "yes" >&6; }
16181 compiler_id="XLCLANG"
16182 else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185 compiler_id="CLANG"
16186 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070016187 fullclangver=`$CC -v 2>&1 | grep version`
16188 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16189 if test -z "$clangver"; then
16190 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016191 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016192 else
16193 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16194 fi
16195 fi
16196 clangvhi=`echo $clangver | cut -d . -f1`
16197 clangvlo=`echo $clangver | cut -d . -f2`
16198 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16199 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16200 flags_dbg_all="$flags_dbg_all -ggdb"
16201 flags_dbg_all="$flags_dbg_all -gstabs"
16202 flags_dbg_all="$flags_dbg_all -gstabs+"
16203 flags_dbg_all="$flags_dbg_all -gcoff"
16204 flags_dbg_all="$flags_dbg_all -gxcoff"
16205 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16206 flags_dbg_all="$flags_dbg_all -gvms"
16207 flags_dbg_yes="-g"
16208 flags_dbg_off=""
16209 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16210 flags_opt_yes="-Os"
16211 flags_opt_off="-O0"
16212 else
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214$as_echo "no" >&6; }
16215 fi
16216
16217
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16219$as_echo_n "checking if compiler is GNU C... " >&6; }
16220
16221 OLDCPPFLAGS=$CPPFLAGS
16222 # CPPPFLAG comes from CURL_CPP_P
16223 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16224 if test -z "$SED"; then
16225 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16226 fi
16227 if test -z "$GREP"; then
16228 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16229 fi
16230
16231 tmp_exp=""
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233/* end confdefs.h. */
16234
16235
16236#ifdef __GNUC__
16237CURL_DEF_TOKEN __GNUC__
16238#endif
16239
16240
16241_ACEOF
16242if ac_fn_c_try_cpp "$LINENO"; then :
16243
16244 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16245 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16246 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16247 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16248 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16249 tmp_exp=""
16250 fi
16251
16252fi
16253rm -f conftest.err conftest.i conftest.$ac_ext
16254 if test -z "$tmp_exp"; then
16255 curl_cv_have_def___GNUC__=no
16256
16257 else
16258 curl_cv_have_def___GNUC__=yes
16259 curl_cv_def___GNUC__=$tmp_exp
16260
16261 fi
16262 CPPFLAGS=$OLDCPPFLAGS
16263
16264 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16265 test "$compiler_id" = "unknown"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16267$as_echo "yes" >&6; }
16268 compiler_id="GNU_C"
16269 gccver=`$CC -dumpversion`
16270 gccvhi=`echo $gccver | cut -d . -f1`
16271 gccvlo=`echo $gccver | cut -d . -f2`
16272 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16273 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16274 flags_dbg_all="$flags_dbg_all -ggdb"
16275 flags_dbg_all="$flags_dbg_all -gstabs"
16276 flags_dbg_all="$flags_dbg_all -gstabs+"
16277 flags_dbg_all="$flags_dbg_all -gcoff"
16278 flags_dbg_all="$flags_dbg_all -gxcoff"
16279 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16280 flags_dbg_all="$flags_dbg_all -gvms"
16281 flags_dbg_yes="-g"
16282 flags_dbg_off=""
16283 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16284 flags_opt_yes="-O2"
16285 flags_opt_off="-O0"
16286
16287 OLDCPPFLAGS=$CPPFLAGS
16288 # CPPPFLAG comes from CURL_CPP_P
16289 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16290 if test -z "$SED"; then
16291 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16292 fi
16293 if test -z "$GREP"; then
16294 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16295 fi
16296
16297 tmp_exp=""
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h. */
16300
16301
16302#ifdef _WIN32
16303CURL_DEF_TOKEN _WIN32
16304#endif
16305
16306
16307_ACEOF
16308if ac_fn_c_try_cpp "$LINENO"; then :
16309
16310 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16311 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16312 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16313 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16314 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16315 tmp_exp=""
16316 fi
16317
16318fi
16319rm -f conftest.err conftest.i conftest.$ac_ext
16320 if test -z "$tmp_exp"; then
16321 curl_cv_have_def__WIN32=no
16322
16323 else
16324 curl_cv_have_def__WIN32=yes
16325 curl_cv_def__WIN32=$tmp_exp
16326
16327 fi
16328 CPPFLAGS=$OLDCPPFLAGS
16329
16330 else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
16333 fi
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16337$as_echo_n "checking if compiler is LCC... " >&6; }
16338
16339 OLDCPPFLAGS=$CPPFLAGS
16340 # CPPPFLAG comes from CURL_CPP_P
16341 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16342 if test -z "$SED"; then
16343 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16344 fi
16345 if test -z "$GREP"; then
16346 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16347 fi
16348
16349 tmp_exp=""
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351/* end confdefs.h. */
16352
16353
16354#ifdef __LCC__
16355CURL_DEF_TOKEN __LCC__
16356#endif
16357
16358
16359_ACEOF
16360if ac_fn_c_try_cpp "$LINENO"; then :
16361
16362 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16363 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16364 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16365 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16366 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16367 tmp_exp=""
16368 fi
16369
16370fi
16371rm -f conftest.err conftest.i conftest.$ac_ext
16372 if test -z "$tmp_exp"; then
16373 curl_cv_have_def___LCC__=no
16374
16375 else
16376 curl_cv_have_def___LCC__=yes
16377 curl_cv_def___LCC__=$tmp_exp
16378
16379 fi
16380 CPPFLAGS=$OLDCPPFLAGS
16381
16382 if test "$curl_cv_have_def___LCC__" = "yes"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384$as_echo "yes" >&6; }
16385 compiler_id="LCC"
16386 flags_dbg_all="-g"
16387 flags_dbg_yes="-g"
16388 flags_dbg_off=""
16389 flags_opt_all=""
16390 flags_opt_yes=""
16391 flags_opt_off=""
16392 else
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394$as_echo "no" >&6; }
16395 fi
16396
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16399$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16400
16401 OLDCPPFLAGS=$CPPFLAGS
16402 # CPPPFLAG comes from CURL_CPP_P
16403 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16404 if test -z "$SED"; then
16405 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16406 fi
16407 if test -z "$GREP"; then
16408 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16409 fi
16410
16411 tmp_exp=""
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413/* end confdefs.h. */
16414
16415
16416#ifdef __GNUC__
16417CURL_DEF_TOKEN __GNUC__
16418#endif
16419
16420
16421_ACEOF
16422if ac_fn_c_try_cpp "$LINENO"; then :
16423
16424 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16425 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16426 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16427 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16428 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16429 tmp_exp=""
16430 fi
16431
16432fi
16433rm -f conftest.err conftest.i conftest.$ac_ext
16434 if test -z "$tmp_exp"; then
16435 curl_cv_have_def___GNUC__=no
16436
16437 else
16438 curl_cv_have_def___GNUC__=yes
16439 curl_cv_def___GNUC__=$tmp_exp
16440
16441 fi
16442 CPPFLAGS=$OLDCPPFLAGS
16443
16444
16445 OLDCPPFLAGS=$CPPFLAGS
16446 # CPPPFLAG comes from CURL_CPP_P
16447 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16448 if test -z "$SED"; then
16449 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16450 fi
16451 if test -z "$GREP"; then
16452 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16453 fi
16454
16455 tmp_exp=""
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457/* end confdefs.h. */
16458
16459
16460#ifdef _COMPILER_VERSION
16461CURL_DEF_TOKEN _COMPILER_VERSION
16462#endif
16463
16464
16465_ACEOF
16466if ac_fn_c_try_cpp "$LINENO"; then :
16467
16468 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16469 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16470 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16471 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16472 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16473 tmp_exp=""
16474 fi
16475
16476fi
16477rm -f conftest.err conftest.i conftest.$ac_ext
16478 if test -z "$tmp_exp"; then
16479 curl_cv_have_def__COMPILER_VERSION=no
16480
16481 else
16482 curl_cv_have_def__COMPILER_VERSION=yes
16483 curl_cv_def__COMPILER_VERSION=$tmp_exp
16484
16485 fi
16486 CPPFLAGS=$OLDCPPFLAGS
16487
16488
16489 OLDCPPFLAGS=$CPPFLAGS
16490 # CPPPFLAG comes from CURL_CPP_P
16491 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16492 if test -z "$SED"; then
16493 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16494 fi
16495 if test -z "$GREP"; then
16496 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16497 fi
16498
16499 tmp_exp=""
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h. */
16502
16503
16504#ifdef _SGI_COMPILER_VERSION
16505CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16506#endif
16507
16508
16509_ACEOF
16510if ac_fn_c_try_cpp "$LINENO"; then :
16511
16512 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16513 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16514 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16515 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16516 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16517 tmp_exp=""
16518 fi
16519
16520fi
16521rm -f conftest.err conftest.i conftest.$ac_ext
16522 if test -z "$tmp_exp"; then
16523 curl_cv_have_def__SGI_COMPILER_VERSION=no
16524
16525 else
16526 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16527 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16528
16529 fi
16530 CPPFLAGS=$OLDCPPFLAGS
16531
16532 if test "$curl_cv_have_def___GNUC__" = "no" &&
16533 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16534 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16536$as_echo "yes" >&6; }
16537 compiler_id="SGI_MIPSPRO_C"
16538 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16539 flags_dbg_yes="-g"
16540 flags_dbg_off=""
16541 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16542 flags_opt_yes="-O2"
16543 flags_opt_off="-O0"
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547 fi
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16551$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16552
16553 OLDCPPFLAGS=$CPPFLAGS
16554 # CPPPFLAG comes from CURL_CPP_P
16555 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16556 if test -z "$SED"; then
16557 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16558 fi
16559 if test -z "$GREP"; then
16560 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16561 fi
16562
16563 tmp_exp=""
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h. */
16566
16567
16568#ifdef __GNUC__
16569CURL_DEF_TOKEN __GNUC__
16570#endif
16571
16572
16573_ACEOF
16574if ac_fn_c_try_cpp "$LINENO"; then :
16575
16576 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16577 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16578 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16579 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16580 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16581 tmp_exp=""
16582 fi
16583
16584fi
16585rm -f conftest.err conftest.i conftest.$ac_ext
16586 if test -z "$tmp_exp"; then
16587 curl_cv_have_def___GNUC__=no
16588
16589 else
16590 curl_cv_have_def___GNUC__=yes
16591 curl_cv_def___GNUC__=$tmp_exp
16592
16593 fi
16594 CPPFLAGS=$OLDCPPFLAGS
16595
16596
16597 OLDCPPFLAGS=$CPPFLAGS
16598 # CPPPFLAG comes from CURL_CPP_P
16599 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16600 if test -z "$SED"; then
16601 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16602 fi
16603 if test -z "$GREP"; then
16604 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16605 fi
16606
16607 tmp_exp=""
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609/* end confdefs.h. */
16610
16611
16612#ifdef __sgi
16613CURL_DEF_TOKEN __sgi
16614#endif
16615
16616
16617_ACEOF
16618if ac_fn_c_try_cpp "$LINENO"; then :
16619
16620 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16621 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16622 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16623 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16624 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16625 tmp_exp=""
16626 fi
16627
16628fi
16629rm -f conftest.err conftest.i conftest.$ac_ext
16630 if test -z "$tmp_exp"; then
16631 curl_cv_have_def___sgi=no
16632
16633 else
16634 curl_cv_have_def___sgi=yes
16635 curl_cv_def___sgi=$tmp_exp
16636
16637 fi
16638 CPPFLAGS=$OLDCPPFLAGS
16639
16640 if test "$curl_cv_have_def___GNUC__" = "no" &&
16641 test "$curl_cv_have_def___sgi" = "yes" &&
16642 test "$compiler_id" = "unknown"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16644$as_echo "yes" >&6; }
16645 compiler_id="SGI_MIPS_C"
16646 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16647 flags_dbg_yes="-g"
16648 flags_dbg_off=""
16649 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16650 flags_opt_yes="-O2"
16651 flags_opt_off="-O0"
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654$as_echo "no" >&6; }
16655 fi
16656
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16659$as_echo_n "checking if compiler is SunPro C... " >&6; }
16660
16661 OLDCPPFLAGS=$CPPFLAGS
16662 # CPPPFLAG comes from CURL_CPP_P
16663 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16664 if test -z "$SED"; then
16665 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16666 fi
16667 if test -z "$GREP"; then
16668 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16669 fi
16670
16671 tmp_exp=""
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673/* end confdefs.h. */
16674
16675
16676#ifdef __SUNPRO_C
16677CURL_DEF_TOKEN __SUNPRO_C
16678#endif
16679
16680
16681_ACEOF
16682if ac_fn_c_try_cpp "$LINENO"; then :
16683
16684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16687 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16688 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16689 tmp_exp=""
16690 fi
16691
16692fi
16693rm -f conftest.err conftest.i conftest.$ac_ext
16694 if test -z "$tmp_exp"; then
16695 curl_cv_have_def___SUNPRO_C=no
16696
16697 else
16698 curl_cv_have_def___SUNPRO_C=yes
16699 curl_cv_def___SUNPRO_C=$tmp_exp
16700
16701 fi
16702 CPPFLAGS=$OLDCPPFLAGS
16703
16704 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706$as_echo "yes" >&6; }
16707 compiler_id="SUNPRO_C"
16708 flags_dbg_all="-g -s"
16709 flags_dbg_yes="-g"
16710 flags_dbg_off="-s"
16711 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16712 flags_opt_yes="-xO2"
16713 flags_opt_off=""
16714 else
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716$as_echo "no" >&6; }
16717 fi
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16721$as_echo_n "checking if compiler is Tiny C... " >&6; }
16722
16723 OLDCPPFLAGS=$CPPFLAGS
16724 # CPPPFLAG comes from CURL_CPP_P
16725 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16726 if test -z "$SED"; then
16727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16728 fi
16729 if test -z "$GREP"; then
16730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16731 fi
16732
16733 tmp_exp=""
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h. */
16736
16737
16738#ifdef __TINYC__
16739CURL_DEF_TOKEN __TINYC__
16740#endif
16741
16742
16743_ACEOF
16744if ac_fn_c_try_cpp "$LINENO"; then :
16745
16746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16749 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16750 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16751 tmp_exp=""
16752 fi
16753
16754fi
16755rm -f conftest.err conftest.i conftest.$ac_ext
16756 if test -z "$tmp_exp"; then
16757 curl_cv_have_def___TINYC__=no
16758
16759 else
16760 curl_cv_have_def___TINYC__=yes
16761 curl_cv_def___TINYC__=$tmp_exp
16762
16763 fi
16764 CPPFLAGS=$OLDCPPFLAGS
16765
16766 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768$as_echo "yes" >&6; }
16769 compiler_id="TINY_C"
16770 flags_dbg_all="-g -b"
16771 flags_dbg_yes="-g"
16772 flags_dbg_off=""
16773 flags_opt_all=""
16774 flags_opt_yes=""
16775 flags_opt_off=""
16776 else
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778$as_echo "no" >&6; }
16779 fi
16780
16781
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16783$as_echo_n "checking if compiler is Watcom C... " >&6; }
16784
16785 OLDCPPFLAGS=$CPPFLAGS
16786 # CPPPFLAG comes from CURL_CPP_P
16787 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16788 if test -z "$SED"; then
16789 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16790 fi
16791 if test -z "$GREP"; then
16792 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16793 fi
16794
16795 tmp_exp=""
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h. */
16798
16799
16800#ifdef __WATCOMC__
16801CURL_DEF_TOKEN __WATCOMC__
16802#endif
16803
16804
16805_ACEOF
16806if ac_fn_c_try_cpp "$LINENO"; then :
16807
16808 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16809 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16810 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16811 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16812 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16813 tmp_exp=""
16814 fi
16815
16816fi
16817rm -f conftest.err conftest.i conftest.$ac_ext
16818 if test -z "$tmp_exp"; then
16819 curl_cv_have_def___WATCOMC__=no
16820
16821 else
16822 curl_cv_have_def___WATCOMC__=yes
16823 curl_cv_def___WATCOMC__=$tmp_exp
16824
16825 fi
16826 CPPFLAGS=$OLDCPPFLAGS
16827
16828 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830$as_echo "yes" >&6; }
16831
16832 OLDCPPFLAGS=$CPPFLAGS
16833 # CPPPFLAG comes from CURL_CPP_P
16834 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16835 if test -z "$SED"; then
16836 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16837 fi
16838 if test -z "$GREP"; then
16839 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16840 fi
16841
16842 tmp_exp=""
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844/* end confdefs.h. */
16845
16846
16847#ifdef __UNIX__
16848CURL_DEF_TOKEN __UNIX__
16849#endif
16850
16851
16852_ACEOF
16853if ac_fn_c_try_cpp "$LINENO"; then :
16854
16855 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16856 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16857 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16858 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16859 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16860 tmp_exp=""
16861 fi
16862
16863fi
16864rm -f conftest.err conftest.i conftest.$ac_ext
16865 if test -z "$tmp_exp"; then
16866 curl_cv_have_def___UNIX__=no
16867
16868 else
16869 curl_cv_have_def___UNIX__=yes
16870 curl_cv_def___UNIX__=$tmp_exp
16871
16872 fi
16873 CPPFLAGS=$OLDCPPFLAGS
16874
16875 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16876 compiler_id="WATCOM_UNIX_C"
16877 flags_dbg_all="-g1 -g1+ -g2 -g3"
16878 flags_dbg_yes="-g2"
16879 flags_dbg_off=""
16880 flags_opt_all="-O0 -O1 -O2 -O3"
16881 flags_opt_yes="-O2"
16882 flags_opt_off="-O0"
16883 else
16884 compiler_id="WATCOM_WINDOWS_C"
16885 flags_dbg_all=""
16886 flags_dbg_yes=""
16887 flags_dbg_off=""
16888 flags_opt_all=""
16889 flags_opt_yes=""
16890 flags_opt_off=""
16891 fi
16892 else
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894$as_echo "no" >&6; }
16895 fi
16896
16897 #
16898 if test "$compiler_id" = "unknown"; then
16899 cat <<_EOF 1>&2
16900***
16901*** Warning: This configure script does not have information about the
16902*** compiler you are using, relative to the flags required to enable or
16903*** disable generation of debug info, optimization options or warnings.
16904***
16905*** Whatever settings are present in CFLAGS will be used for this run.
16906***
16907*** If you wish to help the curl project to better support your compiler
16908*** you can report this and the required info on the libcurl development
16909*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16910***
16911_EOF
16912 fi
16913
16914
16915squeeze() {
16916 _sqz_result=""
16917 eval _sqz_input=\$$1
16918 for _sqz_token in $_sqz_input; do
16919 if test -z "$_sqz_result"; then
16920 _sqz_result="$_sqz_token"
16921 else
16922 _sqz_result="$_sqz_result $_sqz_token"
16923 fi
16924 done
16925 eval $1=\$_sqz_result
16926 return 0
16927}
16928
16929
16930 #
16931 if test "$compiler_id" != "unknown"; then
16932 #
16933 if test "$compiler_id" = "GNU_C" ||
16934 test "$compiler_id" = "CLANG"; then
16935
16936 if test "$compiler_id" = "GNU_C" ||
16937 test "$compiler_id" = "CLANG"; then
16938 tmp_has_include="no"
16939 tmp_chg_FLAGS="$CFLAGS"
16940 for word1 in $tmp_chg_FLAGS; do
16941 case "$word1" in
16942 -I*)
16943 tmp_has_include="yes"
16944 ;;
16945 esac
16946 done
16947 if test "$tmp_has_include" = "yes"; then
16948 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16949 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16950 CFLAGS="$tmp_chg_FLAGS"
16951 squeeze CFLAGS
16952 fi
16953 tmp_has_include="no"
16954 tmp_chg_FLAGS="$CPPFLAGS"
16955 for word1 in $tmp_chg_FLAGS; do
16956 case "$word1" in
16957 -I*)
16958 tmp_has_include="yes"
16959 ;;
16960 esac
16961 done
16962 if test "$tmp_has_include" = "yes"; then
16963 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16964 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16965 CPPFLAGS="$tmp_chg_FLAGS"
16966 squeeze CPPFLAGS
16967 fi
16968 fi
16969
16970 fi
16971 #
16972 tmp_save_CPPFLAGS="$CPPFLAGS"
16973 tmp_save_CFLAGS="$CFLAGS"
16974 tmp_CPPFLAGS=""
16975 tmp_CFLAGS=""
16976 #
16977 case "$compiler_id" in
16978 #
16979 CLANG)
16980 #
16981 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16982 ;;
16983 #
16984 DEC_C)
16985 #
16986 tmp_CFLAGS="$tmp_CFLAGS -std1"
16987 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16988 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16989 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16990 ;;
16991 #
16992 GNU_C)
16993 #
16994 if test "$compiler_num" -ge "295"; then
16995 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
16996 fi
16997 ;;
16998 #
16999 HP_UX_C)
17000 #
17001 tmp_CFLAGS="$tmp_CFLAGS -z"
17002 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17003 ;;
17004 #
17005 IBM_C)
17006 #
17007 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17008 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17009 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17010 ;;
17011 #
17012 INTEL_UNIX_C)
17013 #
17014 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17015 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17016 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17017 ;;
17018 #
17019 INTEL_WINDOWS_C)
17020 #
17021 tmp_CFLAGS="$tmp_CFLAGS"
17022 ;;
17023 #
17024 LCC)
17025 #
17026 tmp_CFLAGS="$tmp_CFLAGS -n"
17027 ;;
17028 #
17029 SGI_MIPS_C)
17030 #
17031 tmp_CFLAGS="$tmp_CFLAGS"
17032 ;;
17033 #
17034 SGI_MIPSPRO_C)
17035 #
17036 tmp_CFLAGS="$tmp_CFLAGS"
17037 ;;
17038 #
17039 SUNPRO_C)
17040 #
17041 tmp_CFLAGS="$tmp_CFLAGS"
17042 ;;
17043 #
17044 TINY_C)
17045 #
17046 tmp_CFLAGS="$tmp_CFLAGS"
17047 ;;
17048 #
17049 WATCOM_UNIX_C)
17050 #
17051 tmp_CFLAGS="$tmp_CFLAGS"
17052 ;;
17053 #
17054 WATCOM_WINDOWS_C)
17055 #
17056 tmp_CFLAGS="$tmp_CFLAGS"
17057 ;;
17058 #
17059 esac
17060 #
17061 squeeze tmp_CPPFLAGS
17062 squeeze tmp_CFLAGS
17063 #
17064 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17066$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17067 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17068 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17069 squeeze CPPFLAGS
17070 squeeze CFLAGS
17071
17072 tmp_compiler_works="unknown"
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h. */
17075
17076
17077
17078int main (void)
17079{
17080
17081 int i = 1;
17082 return i;
17083
17084 ;
17085 return 0;
17086}
17087
17088_ACEOF
17089if ac_fn_c_try_compile "$LINENO"; then :
17090
17091 tmp_compiler_works="yes"
17092
17093else
17094
17095 tmp_compiler_works="no"
17096 echo " " >&6
17097 sed 's/^/cc-fail: /' conftest.err >&6
17098 echo " " >&6
17099
17100fi
17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 if test "$tmp_compiler_works" = "yes"; then
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104/* end confdefs.h. */
17105
17106
17107
17108int main (void)
17109{
17110
17111 int i = 1;
17112 return i;
17113
17114 ;
17115 return 0;
17116}
17117
17118_ACEOF
17119if ac_fn_c_try_link "$LINENO"; then :
17120
17121 tmp_compiler_works="yes"
17122
17123else
17124
17125 tmp_compiler_works="no"
17126 echo " " >&6
17127 sed 's/^/link-fail: /' conftest.err >&6
17128 echo " " >&6
17129
17130fi
17131rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133 fi
17134 if test "x$cross_compiling" != "xyes" &&
17135 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017136
17137
17138 old=$LD_LIBRARY_PATH
17139 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17140 export LD_LIBRARY_PATH
17141 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17144as_fn_error $? "cannot run test program while cross compiling
17145See \`config.log' for more details" "$LINENO" 5; }
17146else
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h. */
17149
17150
17151# ifdef __STDC__
17152# include <stdlib.h>
17153# endif
17154
17155int main (void)
17156{
17157
17158 int i = 0;
17159 exit(i);
17160
17161 ;
17162 return 0;
17163}
17164
17165_ACEOF
17166if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017167 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017168
17169else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017170 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017171 echo " " >&6
17172 echo "run-fail: test program exited with status $ac_status" >&6
17173 echo " " >&6
17174
17175fi
17176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17177 conftest.$ac_objext conftest.beam conftest.$ac_ext
17178fi
17179
Elliott Hughesa93fb052018-12-12 14:22:48 -080017180 LD_LIBRARY_PATH=$old # restore
17181
Elliott Hughes82be86d2017-09-20 17:00:17 -070017182 fi
17183 if test "$tmp_compiler_works" = "yes"; then
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186$as_echo "yes" >&6; }
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17188$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17189
17190 else
17191
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17195$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17196 CPPFLAGS="$tmp_save_CPPFLAGS"
17197 CFLAGS="$tmp_save_CFLAGS"
17198
17199 fi
17200
17201 fi
17202 #
17203 fi
17204
17205
17206 #
17207 if test "$compiler_id" != "unknown"; then
17208 #
17209 tmp_save_CFLAGS="$CFLAGS"
17210 tmp_save_CPPFLAGS="$CPPFLAGS"
17211 #
17212 tmp_options=""
17213 tmp_CFLAGS="$CFLAGS"
17214 tmp_CPPFLAGS="$CPPFLAGS"
17215
17216 ac_var_stripped=""
17217 for word1 in $tmp_CFLAGS; do
17218 ac_var_strip_word="no"
17219 for word2 in $flags_dbg_all; do
17220 if test "$word1" = "$word2"; then
17221 ac_var_strip_word="yes"
17222 fi
17223 done
17224 if test "$ac_var_strip_word" = "no"; then
17225 ac_var_stripped="$ac_var_stripped $word1"
17226 fi
17227 done
17228 tmp_CFLAGS="$ac_var_stripped"
17229 squeeze tmp_CFLAGS
17230
17231
17232 ac_var_stripped=""
17233 for word1 in $tmp_CPPFLAGS; do
17234 ac_var_strip_word="no"
17235 for word2 in $flags_dbg_all; do
17236 if test "$word1" = "$word2"; then
17237 ac_var_strip_word="yes"
17238 fi
17239 done
17240 if test "$ac_var_strip_word" = "no"; then
17241 ac_var_stripped="$ac_var_stripped $word1"
17242 fi
17243 done
17244 tmp_CPPFLAGS="$ac_var_stripped"
17245 squeeze tmp_CPPFLAGS
17246
17247 #
17248 if test "$want_debug" = "yes"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17250$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17251 tmp_options="$flags_dbg_yes"
17252 fi
17253 if test "$want_debug" = "no"; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17255$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17256 tmp_options="$flags_dbg_off"
17257 fi
17258 #
17259 if test "$flags_prefer_cppflags" = "yes"; then
17260 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17261 CFLAGS="$tmp_CFLAGS"
17262 else
17263 CPPFLAGS="$tmp_CPPFLAGS"
17264 CFLAGS="$tmp_CFLAGS $tmp_options"
17265 fi
17266 squeeze CPPFLAGS
17267 squeeze CFLAGS
17268
17269 tmp_compiler_works="unknown"
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h. */
17272
17273
17274
17275int main (void)
17276{
17277
17278 int i = 1;
17279 return i;
17280
17281 ;
17282 return 0;
17283}
17284
17285_ACEOF
17286if ac_fn_c_try_compile "$LINENO"; then :
17287
17288 tmp_compiler_works="yes"
17289
17290else
17291
17292 tmp_compiler_works="no"
17293 echo " " >&6
17294 sed 's/^/cc-fail: /' conftest.err >&6
17295 echo " " >&6
17296
17297fi
17298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 if test "$tmp_compiler_works" = "yes"; then
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h. */
17302
17303
17304
17305int main (void)
17306{
17307
17308 int i = 1;
17309 return i;
17310
17311 ;
17312 return 0;
17313}
17314
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317
17318 tmp_compiler_works="yes"
17319
17320else
17321
17322 tmp_compiler_works="no"
17323 echo " " >&6
17324 sed 's/^/link-fail: /' conftest.err >&6
17325 echo " " >&6
17326
17327fi
17328rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330 fi
17331 if test "x$cross_compiling" != "xyes" &&
17332 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017333
17334
17335 old=$LD_LIBRARY_PATH
17336 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17337 export LD_LIBRARY_PATH
17338 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17341as_fn_error $? "cannot run test program while cross compiling
17342See \`config.log' for more details" "$LINENO" 5; }
17343else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h. */
17346
17347
17348# ifdef __STDC__
17349# include <stdlib.h>
17350# endif
17351
17352int main (void)
17353{
17354
17355 int i = 0;
17356 exit(i);
17357
17358 ;
17359 return 0;
17360}
17361
17362_ACEOF
17363if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017364 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017365
17366else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017367 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017368 echo " " >&6
17369 echo "run-fail: test program exited with status $ac_status" >&6
17370 echo " " >&6
17371
17372fi
17373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17374 conftest.$ac_objext conftest.beam conftest.$ac_ext
17375fi
17376
Elliott Hughesa93fb052018-12-12 14:22:48 -080017377 LD_LIBRARY_PATH=$old # restore
17378
Elliott Hughes82be86d2017-09-20 17:00:17 -070017379 fi
17380 if test "$tmp_compiler_works" = "yes"; then
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383$as_echo "yes" >&6; }
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17385$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17386
17387 else
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390$as_echo "no" >&6; }
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17392$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17393 CPPFLAGS="$tmp_save_CPPFLAGS"
17394 CFLAGS="$tmp_save_CFLAGS"
17395
17396 fi
17397
17398 #
17399 fi
17400
17401
17402 #
17403 if test "$compiler_id" != "unknown"; then
17404 #
17405 tmp_save_CFLAGS="$CFLAGS"
17406 tmp_save_CPPFLAGS="$CPPFLAGS"
17407 #
17408 tmp_options=""
17409 tmp_CFLAGS="$CFLAGS"
17410 tmp_CPPFLAGS="$CPPFLAGS"
17411 honor_optimize_option="yes"
17412 #
17413 #
17414 if test "$want_optimize" = "assume_no" ||
17415 test "$want_optimize" = "assume_yes"; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17417$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17418
17419
17420 ac_var_match_word="no"
17421 for word1 in $tmp_CFLAGS; do
17422 for word2 in $flags_opt_all; do
17423 if test "$word1" = "$word2"; then
17424 ac_var_match_word="yes"
17425 fi
17426 done
17427 done
17428
17429 if test "$ac_var_match_word" = "yes"; then
17430
17431 honor_optimize_option="no"
17432
17433
17434 fi
17435
17436
17437
17438 ac_var_match_word="no"
17439 for word1 in $tmp_CPPFLAGS; do
17440 for word2 in $flags_opt_all; do
17441 if test "$word1" = "$word2"; then
17442 ac_var_match_word="yes"
17443 fi
17444 done
17445 done
17446
17447 if test "$ac_var_match_word" = "yes"; then
17448
17449 honor_optimize_option="no"
17450
17451
17452 fi
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17455$as_echo "$honor_optimize_option" >&6; }
17456 if test "$honor_optimize_option" = "yes"; then
17457 if test "$want_optimize" = "assume_yes"; then
17458 want_optimize="yes"
17459 fi
17460 if test "$want_optimize" = "assume_no"; then
17461 want_optimize="no"
17462 fi
17463 fi
17464 fi
17465 #
17466 if test "$honor_optimize_option" = "yes"; then
17467
17468 ac_var_stripped=""
17469 for word1 in $tmp_CFLAGS; do
17470 ac_var_strip_word="no"
17471 for word2 in $flags_opt_all; do
17472 if test "$word1" = "$word2"; then
17473 ac_var_strip_word="yes"
17474 fi
17475 done
17476 if test "$ac_var_strip_word" = "no"; then
17477 ac_var_stripped="$ac_var_stripped $word1"
17478 fi
17479 done
17480 tmp_CFLAGS="$ac_var_stripped"
17481 squeeze tmp_CFLAGS
17482
17483
17484 ac_var_stripped=""
17485 for word1 in $tmp_CPPFLAGS; do
17486 ac_var_strip_word="no"
17487 for word2 in $flags_opt_all; do
17488 if test "$word1" = "$word2"; then
17489 ac_var_strip_word="yes"
17490 fi
17491 done
17492 if test "$ac_var_strip_word" = "no"; then
17493 ac_var_stripped="$ac_var_stripped $word1"
17494 fi
17495 done
17496 tmp_CPPFLAGS="$ac_var_stripped"
17497 squeeze tmp_CPPFLAGS
17498
17499 if test "$want_optimize" = "yes"; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17501$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17502 tmp_options="$flags_opt_yes"
17503 fi
17504 if test "$want_optimize" = "no"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17506$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17507 tmp_options="$flags_opt_off"
17508 fi
17509 if test "$flags_prefer_cppflags" = "yes"; then
17510 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17511 CFLAGS="$tmp_CFLAGS"
17512 else
17513 CPPFLAGS="$tmp_CPPFLAGS"
17514 CFLAGS="$tmp_CFLAGS $tmp_options"
17515 fi
17516 squeeze CPPFLAGS
17517 squeeze CFLAGS
17518
17519 tmp_compiler_works="unknown"
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521/* end confdefs.h. */
17522
17523
17524
17525int main (void)
17526{
17527
17528 int i = 1;
17529 return i;
17530
17531 ;
17532 return 0;
17533}
17534
17535_ACEOF
17536if ac_fn_c_try_compile "$LINENO"; then :
17537
17538 tmp_compiler_works="yes"
17539
17540else
17541
17542 tmp_compiler_works="no"
17543 echo " " >&6
17544 sed 's/^/cc-fail: /' conftest.err >&6
17545 echo " " >&6
17546
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 if test "$tmp_compiler_works" = "yes"; then
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551/* end confdefs.h. */
17552
17553
17554
17555int main (void)
17556{
17557
17558 int i = 1;
17559 return i;
17560
17561 ;
17562 return 0;
17563}
17564
17565_ACEOF
17566if ac_fn_c_try_link "$LINENO"; then :
17567
17568 tmp_compiler_works="yes"
17569
17570else
17571
17572 tmp_compiler_works="no"
17573 echo " " >&6
17574 sed 's/^/link-fail: /' conftest.err >&6
17575 echo " " >&6
17576
17577fi
17578rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 fi
17581 if test "x$cross_compiling" != "xyes" &&
17582 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017583
17584
17585 old=$LD_LIBRARY_PATH
17586 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17587 export LD_LIBRARY_PATH
17588 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17591as_fn_error $? "cannot run test program while cross compiling
17592See \`config.log' for more details" "$LINENO" 5; }
17593else
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595/* end confdefs.h. */
17596
17597
17598# ifdef __STDC__
17599# include <stdlib.h>
17600# endif
17601
17602int main (void)
17603{
17604
17605 int i = 0;
17606 exit(i);
17607
17608 ;
17609 return 0;
17610}
17611
17612_ACEOF
17613if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017614 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017615
17616else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017617 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017618 echo " " >&6
17619 echo "run-fail: test program exited with status $ac_status" >&6
17620 echo " " >&6
17621
17622fi
17623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17624 conftest.$ac_objext conftest.beam conftest.$ac_ext
17625fi
17626
Elliott Hughesa93fb052018-12-12 14:22:48 -080017627 LD_LIBRARY_PATH=$old # restore
17628
Elliott Hughes82be86d2017-09-20 17:00:17 -070017629 fi
17630 if test "$tmp_compiler_works" = "yes"; then
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633$as_echo "yes" >&6; }
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17635$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17636
17637 else
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640$as_echo "no" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17642$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17643 CPPFLAGS="$tmp_save_CPPFLAGS"
17644 CFLAGS="$tmp_save_CFLAGS"
17645
17646 fi
17647
17648 fi
17649 #
17650 fi
17651
17652
17653 #
17654 if test "$compiler_id" != "unknown"; then
17655 #
17656 tmp_save_CPPFLAGS="$CPPFLAGS"
17657 tmp_save_CFLAGS="$CFLAGS"
17658 tmp_CPPFLAGS=""
17659 tmp_CFLAGS=""
17660 #
17661 case "$compiler_id" in
17662 #
17663 CLANG)
17664 #
17665 if test "$want_warnings" = "yes"; then
17666 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17667 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17668 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17669 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17670 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17671 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17672 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17673 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17674 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17675 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17676 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17677 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17678 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17679 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17680 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17681 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17682 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17683 #
17684 if test "$compiler_num" -ge "101"; then
17685 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17686 fi
17687 #
17688 if test "$compiler_num" -ge "208"; then
17689 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17690 fi
17691 #
17692 if test "$compiler_num" -ge "209"; then
17693 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17694 fi
17695 #
17696 if test "$compiler_num" -ge "302"; then
17697 case $host_os in
17698 cygwin* | mingw*)
17699 ;;
17700 *)
17701 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17702 ;;
17703 esac
17704 fi
17705 #
17706 if test "$compiler_num" -ge "306"; then
17707 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17708 fi
17709 #
17710 if test "$compiler_num" -ge "309"; then
17711 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017712 # avoid the varargs warning, fixed in 4.0
17713 # https://bugs.llvm.org/show_bug.cgi?id=29140
17714 if test "$compiler_num" -lt "400"; then
17715 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17716 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017717 fi
17718 fi
17719 ;;
17720 #
17721 DEC_C)
17722 #
17723 if test "$want_warnings" = "yes"; then
17724 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17725 fi
17726 ;;
17727 #
17728 GNU_C)
17729 #
17730 if test "$want_warnings" = "yes"; then
17731 #
17732 if test "x$cross_compiling" != "xyes" ||
17733 test "$compiler_num" -ge "300"; then
17734 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17735 fi
17736 #
17737 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17738 #
17739 if test "$compiler_num" -ge "104"; then
17740 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17741 if test "x$cross_compiling" != "xyes" ||
17742 test "$compiler_num" -ge "300"; then
17743 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17744 fi
17745 fi
17746 #
17747 if test "$compiler_num" -ge "207"; then
17748 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17749 if test "x$cross_compiling" != "xyes" ||
17750 test "$compiler_num" -ge "300"; then
17751 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17752 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17753 fi
17754 fi
17755 #
17756 if test "$compiler_num" -ge "295"; then
17757 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017758 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017759 fi
17760 #
17761 if test "$compiler_num" -ge "296"; then
17762 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17763 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17764 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17765 fi
17766 #
17767 if test "$compiler_num" -ge "297"; then
17768 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17769 fi
17770 #
17771 if test "$compiler_num" -ge "300"; then
17772 tmp_CFLAGS="$tmp_CFLAGS"
17773 fi
17774 #
17775 if test "$compiler_num" -ge "303"; then
17776 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17777 fi
17778 #
17779 if test "$compiler_num" -ge "304"; then
17780 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017781 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017782 fi
17783 #
17784 if test "$compiler_num" -ge "400"; then
17785 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17786 fi
17787 #
17788 if test "$compiler_num" -ge "402"; then
17789 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17790 fi
17791 #
17792 if test "$compiler_num" -ge "403"; then
17793 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17794 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17795 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17796 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017797 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017798 fi
17799 #
17800 if test "$compiler_num" -ge "405"; then
17801 if test "$curl_cv_have_def__WIN32" = "yes"; then
17802 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17803 fi
17804 fi
17805 #
17806 if test "$compiler_num" -ge "406"; then
17807 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17808 fi
17809 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017810 if test "$compiler_num" -ge "408"; then
17811 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17812 fi
17813 #
17814 if test "$compiler_num" -ge "500"; then
17815 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17816 fi
17817 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017818 if test "$compiler_num" -ge "600"; then
17819 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17820 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017821 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017822 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017823 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017824 fi
17825 #
17826 if test "$compiler_num" -ge "700"; then
17827 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17828 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17829 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17831 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017832 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017833 fi
17834 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017835 fi
17836 #
17837 if test "$compiler_num" -ge "300"; then
17838 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17839 else
17840 if test "x$cross_compiling" = "xyes"; then
17841 if test "$compiler_num" -ge "104"; then
17842 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17843 fi
17844 if test "$compiler_num" -ge "207"; then
17845 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17846 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17847 fi
17848 fi
17849 fi
17850 ;;
17851 #
17852 HP_UX_C)
17853 #
17854 if test "$want_warnings" = "yes"; then
17855 tmp_CFLAGS="$tmp_CFLAGS +w1"
17856 fi
17857 ;;
17858 #
17859 IBM_C)
17860 #
17861 tmp_CFLAGS="$tmp_CFLAGS"
17862 ;;
17863 #
17864 INTEL_UNIX_C)
17865 #
17866 if test "$want_warnings" = "yes"; then
17867 if test "$compiler_num" -gt "600"; then
17868 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17869 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17870 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17871 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17872 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17873 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17874 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17875 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17876 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17877 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17878 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17879 fi
17880 fi
17881 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17882 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17883 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17884 if test "$compiler_num" -ge "1000"; then
17885 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17886 fi
17887 ;;
17888 #
17889 INTEL_WINDOWS_C)
17890 #
17891 tmp_CFLAGS="$tmp_CFLAGS"
17892 ;;
17893 #
17894 LCC)
17895 #
17896 if test "$want_warnings" = "yes"; then
17897 tmp_CFLAGS="$tmp_CFLAGS"
17898 fi
17899 ;;
17900 #
17901 SGI_MIPS_C)
17902 #
17903 if test "$want_warnings" = "yes"; then
17904 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17905 fi
17906 ;;
17907 #
17908 SGI_MIPSPRO_C)
17909 #
17910 if test "$want_warnings" = "yes"; then
17911 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17912 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17913 fi
17914 ;;
17915 #
17916 SUNPRO_C)
17917 #
17918 if test "$want_warnings" = "yes"; then
17919 tmp_CFLAGS="$tmp_CFLAGS -v"
17920 fi
17921 ;;
17922 #
17923 TINY_C)
17924 #
17925 if test "$want_warnings" = "yes"; then
17926 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17927 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17928 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17929 fi
17930 ;;
17931 #
17932 WATCOM_UNIX_C)
17933 #
17934 if test "$want_warnings" = "yes"; then
17935 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17936 fi
17937 ;;
17938 #
17939 WATCOM_WINDOWS_C)
17940 #
17941 tmp_CFLAGS="$tmp_CFLAGS"
17942 ;;
17943 #
17944 esac
17945 #
17946 squeeze tmp_CPPFLAGS
17947 squeeze tmp_CFLAGS
17948 #
17949 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17951$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17952 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17953 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17954 squeeze CPPFLAGS
17955 squeeze CFLAGS
17956
17957 tmp_compiler_works="unknown"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959/* end confdefs.h. */
17960
17961
17962
17963int main (void)
17964{
17965
17966 int i = 1;
17967 return i;
17968
17969 ;
17970 return 0;
17971}
17972
17973_ACEOF
17974if ac_fn_c_try_compile "$LINENO"; then :
17975
17976 tmp_compiler_works="yes"
17977
17978else
17979
17980 tmp_compiler_works="no"
17981 echo " " >&6
17982 sed 's/^/cc-fail: /' conftest.err >&6
17983 echo " " >&6
17984
17985fi
17986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 if test "$tmp_compiler_works" = "yes"; then
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989/* end confdefs.h. */
17990
17991
17992
17993int main (void)
17994{
17995
17996 int i = 1;
17997 return i;
17998
17999 ;
18000 return 0;
18001}
18002
18003_ACEOF
18004if ac_fn_c_try_link "$LINENO"; then :
18005
18006 tmp_compiler_works="yes"
18007
18008else
18009
18010 tmp_compiler_works="no"
18011 echo " " >&6
18012 sed 's/^/link-fail: /' conftest.err >&6
18013 echo " " >&6
18014
18015fi
18016rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 fi
18019 if test "x$cross_compiling" != "xyes" &&
18020 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018021
18022
18023 old=$LD_LIBRARY_PATH
18024 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18025 export LD_LIBRARY_PATH
18026 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18029as_fn_error $? "cannot run test program while cross compiling
18030See \`config.log' for more details" "$LINENO" 5; }
18031else
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h. */
18034
18035
18036# ifdef __STDC__
18037# include <stdlib.h>
18038# endif
18039
18040int main (void)
18041{
18042
18043 int i = 0;
18044 exit(i);
18045
18046 ;
18047 return 0;
18048}
18049
18050_ACEOF
18051if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018052 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018053
18054else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018055 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018056 echo " " >&6
18057 echo "run-fail: test program exited with status $ac_status" >&6
18058 echo " " >&6
18059
18060fi
18061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18062 conftest.$ac_objext conftest.beam conftest.$ac_ext
18063fi
18064
Elliott Hughesa93fb052018-12-12 14:22:48 -080018065 LD_LIBRARY_PATH=$old # restore
18066
Elliott Hughes82be86d2017-09-20 17:00:17 -070018067 fi
18068 if test "$tmp_compiler_works" = "yes"; then
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071$as_echo "yes" >&6; }
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18073$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18074
18075 else
18076
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078$as_echo "no" >&6; }
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18080$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18081 CPPFLAGS="$tmp_save_CPPFLAGS"
18082 CFLAGS="$tmp_save_CFLAGS"
18083
18084 fi
18085
18086 fi
18087 #
18088 fi
18089
18090
18091if test "$compiler_id" = "INTEL_UNIX_C"; then
18092 #
18093 if test "$compiler_num" -ge "1000"; then
18094 CFLAGS="$CFLAGS -shared-intel"
18095 elif test "$compiler_num" -ge "900"; then
18096 CFLAGS="$CFLAGS -i-dynamic"
18097 fi
18098 #
18099fi
18100
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18103$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h. */
18106
18107
18108
18109int main (void)
18110{
18111
18112 force compilation error
18113
18114 ;
18115 return 0;
18116}
18117
18118_ACEOF
18119if ac_fn_c_try_compile "$LINENO"; then :
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18122$as_echo "no" >&6; }
18123 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18124
18125else
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128$as_echo "yes" >&6; }
18129
18130fi
18131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18135$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137/* end confdefs.h. */
18138
18139
18140 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18141
18142int main (void)
18143{
18144
18145 bad_t dummy;
18146
18147 ;
18148 return 0;
18149}
18150
18151_ACEOF
18152if ac_fn_c_try_compile "$LINENO"; then :
18153
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155$as_echo "no" >&6; }
18156 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18157
18158else
18159
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161$as_echo "yes" >&6; }
18162
18163fi
18164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18168$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h. */
18171
18172
18173# include <stdlib.h>
18174 int rand(int n);
18175 int rand(int n)
18176 {
18177 if(n)
18178 return ++n;
18179 else
18180 return n;
18181 }
18182
18183int main (void)
18184{
18185
18186 int i[2]={0,0};
18187 int j = rand(i[0]);
18188 if(j)
18189 return j;
18190
18191 ;
18192 return 0;
18193}
18194
18195_ACEOF
18196if ac_fn_c_try_compile "$LINENO"; then :
18197
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199$as_echo "no" >&6; }
18200 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18201
18202else
18203
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18205$as_echo "yes" >&6; }
18206
18207fi
18208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209
18210
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18212$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18213 supports_symbol_hiding="no"
18214 symbol_hiding_CFLAGS=""
18215 symbol_hiding_EXTERN=""
18216 tmp_CFLAGS=""
18217 tmp_EXTERN=""
18218 case "$compiler_id" in
18219 CLANG)
18220 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18221 tmp_CFLAGS="-fvisibility=hidden"
18222 supports_symbol_hiding="yes"
18223 ;;
18224 GNU_C)
18225 if test "$compiler_num" -ge "304"; then
18226 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18227 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18228 tmp_CFLAGS="-fvisibility=hidden"
18229 supports_symbol_hiding="yes"
18230 fi
18231 fi
18232 ;;
18233 INTEL_UNIX_C)
18234 if test "$compiler_num" -ge "900"; then
18235 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18236 tmp_save_CFLAGS="$CFLAGS"
18237 CFLAGS="$CFLAGS -fvisibility=hidden"
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h. */
18240
18241
18242# include <stdio.h>
18243
18244int main (void)
18245{
18246
18247 printf("icc fvisibility bug test");
18248
18249 ;
18250 return 0;
18251}
18252
18253_ACEOF
18254if ac_fn_c_try_link "$LINENO"; then :
18255
18256 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18257 tmp_CFLAGS="-fvisibility=hidden"
18258 supports_symbol_hiding="yes"
18259
18260fi
18261rm -f core conftest.err conftest.$ac_objext \
18262 conftest$ac_exeext conftest.$ac_ext
18263 CFLAGS="$tmp_save_CFLAGS"
18264 fi
18265 fi
18266 ;;
18267 SUNPRO_C)
18268 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18269 tmp_EXTERN="__global"
18270 tmp_CFLAGS="-xldscope=hidden"
18271 supports_symbol_hiding="yes"
18272 fi
18273 ;;
18274 esac
18275 if test "$supports_symbol_hiding" = "yes"; then
18276 tmp_save_CFLAGS="$CFLAGS"
18277 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18278 squeeze CFLAGS
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h. */
18281
18282
18283 $tmp_EXTERN char *dummy(char *buff);
18284 char *dummy(char *buff)
18285 {
18286 if(buff)
18287 return ++buff;
18288 else
18289 return buff;
18290 }
18291
18292int main (void)
18293{
18294
18295 char b[16];
18296 char *r = dummy(&b[0]);
18297 if(r)
18298 return (int)*r;
18299
18300 ;
18301 return 0;
18302}
18303
18304_ACEOF
18305if ac_fn_c_try_compile "$LINENO"; then :
18306
18307 supports_symbol_hiding="yes"
18308 if test -f conftest.err; then
18309 grep 'visibility' conftest.err >/dev/null
18310 if test "$?" -eq "0"; then
18311 supports_symbol_hiding="no"
18312 fi
18313 fi
18314
18315else
18316
18317 supports_symbol_hiding="no"
18318 echo " " >&6
18319 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18320 sed 's/^/cc-err: /' conftest.err >&6
18321 echo " " >&6
18322
18323fi
18324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 CFLAGS="$tmp_save_CFLAGS"
18326 fi
18327 if test "$supports_symbol_hiding" = "yes"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18329$as_echo "yes" >&6; }
18330 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18331 symbol_hiding_EXTERN="$tmp_EXTERN"
18332 else
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18334$as_echo "no" >&6; }
18335 fi
18336
18337
18338
18339 supports_curldebug="unknown"
18340 if test "$want_curldebug" = "yes"; then
18341 if test "x$enable_shared" != "xno" &&
18342 test "x$enable_shared" != "xyes"; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18344$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18345 supports_curldebug="no"
18346 fi
18347 if test "x$enable_static" != "xno" &&
18348 test "x$enable_static" != "xyes"; then
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18350$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18351 supports_curldebug="no"
18352 fi
18353 if test "$supports_curldebug" != "no"; then
18354 if test "$enable_shared" = "yes" &&
18355 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18356 supports_curldebug="no"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18358$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18359 fi
18360 fi
18361 fi
18362 #
18363 if test "$want_curldebug" = "yes"; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18365$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18366 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18368$as_echo "$supports_curldebug" >&6; }
18369 if test "$supports_curldebug" = "no"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18371$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18372 want_curldebug="no"
18373 fi
18374 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018375
18376 if test x$want_curldebug = xyes; then
18377 CURLDEBUG_TRUE=
18378 CURLDEBUG_FALSE='#'
18379else
18380 CURLDEBUG_TRUE='#'
18381 CURLDEBUG_FALSE=
18382fi
18383
18384
18385supports_unittests=yes
18386# cross-compilation of unit tests static library/programs fails when
18387# libcurl shared library is built. This might be due to a libtool or
18388# automake issue. In this case we disable unit tests.
18389if test "x$cross_compiling" != "xno" &&
18390 test "x$enable_shared" != "xno"; then
18391 supports_unittests=no
18392fi
18393
18394# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18395# a problem related with OpenSSL headers and library versions not matching.
18396# Disable unit tests while time to further investigate this is found.
18397case $host in
18398 mips-sgi-irix6.5)
18399 if test "$compiler_id" = "GNU_C"; then
18400 supports_unittests=no
18401 fi
18402 ;;
18403esac
18404
18405# All AIX autobuilds fails unit tests linking against unittests library
18406# due to unittests library being built with no symbols or members. Libtool ?
18407# Disable unit tests while time to further investigate this is found.
18408case $host_os in
18409 aix*)
18410 supports_unittests=no
18411 ;;
18412esac
18413
18414if test "x$want_debug" = "xyes" &&
18415 test "x$supports_unittests" = "xyes"; then
18416 want_unittests=yes
18417else
18418 want_unittests=no
18419fi
18420 if test x$want_unittests = xyes; then
18421 BUILD_UNITTESTS_TRUE=
18422 BUILD_UNITTESTS_FALSE='#'
18423else
18424 BUILD_UNITTESTS_TRUE='#'
18425 BUILD_UNITTESTS_FALSE=
18426fi
18427
18428
18429
18430
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18433$as_echo_n "checking for windows.h... " >&6; }
18434if ${curl_cv_header_windows_h+:} false; then :
18435 $as_echo_n "(cached) " >&6
18436else
18437
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439/* end confdefs.h. */
18440
18441
18442#undef inline
18443#ifndef WIN32_LEAN_AND_MEAN
18444#define WIN32_LEAN_AND_MEAN
18445#endif
18446#include <windows.h>
18447
18448int main (void)
18449{
18450
18451#if defined(__CYGWIN__) || defined(__CEGCC__)
18452 HAVE_WINDOWS_H shall not be defined.
18453#else
18454 int dummy=2*WINVER;
18455#endif
18456
18457 ;
18458 return 0;
18459}
18460
18461_ACEOF
18462if ac_fn_c_try_compile "$LINENO"; then :
18463
18464 curl_cv_header_windows_h="yes"
18465
18466else
18467
18468 curl_cv_header_windows_h="no"
18469
18470fi
18471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472
18473fi
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18475$as_echo "$curl_cv_header_windows_h" >&6; }
18476 case "$curl_cv_header_windows_h" in
18477 yes)
18478
18479cat >>confdefs.h <<_ACEOF
18480#define HAVE_WINDOWS_H 1
18481_ACEOF
18482
18483 ;;
18484 esac
18485
18486
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18488$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18489if ${curl_cv_native_windows+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491else
18492
18493 if test "$curl_cv_header_windows_h" = "no"; then
18494 curl_cv_native_windows="no"
18495 else
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h. */
18498
18499
18500
18501int main (void)
18502{
18503
18504#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18505 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18506 int dummy=1;
18507#else
18508 Not a native Windows build target.
18509#endif
18510
18511 ;
18512 return 0;
18513}
18514
18515_ACEOF
18516if ac_fn_c_try_compile "$LINENO"; then :
18517
18518 curl_cv_native_windows="yes"
18519
18520else
18521
18522 curl_cv_native_windows="no"
18523
18524fi
18525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18526 fi
18527
18528fi
18529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18530$as_echo "$curl_cv_native_windows" >&6; }
18531 if test "x$curl_cv_native_windows" = xyes; then
18532 DOING_NATIVE_WINDOWS_TRUE=
18533 DOING_NATIVE_WINDOWS_FALSE='#'
18534else
18535 DOING_NATIVE_WINDOWS_TRUE='#'
18536 DOING_NATIVE_WINDOWS_FALSE=
18537fi
18538
18539
18540case X-"$curl_cv_native_windows" in
18541 X-yes)
18542
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18544$as_echo_n "checking for winsock.h... " >&6; }
18545if ${curl_cv_header_winsock_h+:} false; then :
18546 $as_echo_n "(cached) " >&6
18547else
18548
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550/* end confdefs.h. */
18551
18552
18553#undef inline
18554#ifndef WIN32_LEAN_AND_MEAN
18555#define WIN32_LEAN_AND_MEAN
18556#endif
18557#include <windows.h>
18558#include <winsock.h>
18559
18560int main (void)
18561{
18562
18563#if defined(__CYGWIN__) || defined(__CEGCC__)
18564 HAVE_WINSOCK_H shall not be defined.
18565#else
18566 int dummy=WSACleanup();
18567#endif
18568
18569 ;
18570 return 0;
18571}
18572
18573_ACEOF
18574if ac_fn_c_try_compile "$LINENO"; then :
18575
18576 curl_cv_header_winsock_h="yes"
18577
18578else
18579
18580 curl_cv_header_winsock_h="no"
18581
18582fi
18583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584
18585fi
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18587$as_echo "$curl_cv_header_winsock_h" >&6; }
18588 case "$curl_cv_header_winsock_h" in
18589 yes)
18590
18591cat >>confdefs.h <<_ACEOF
18592#define HAVE_WINSOCK_H 1
18593_ACEOF
18594
18595 ;;
18596 esac
18597
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18600$as_echo_n "checking for winsock2.h... " >&6; }
18601if ${curl_cv_header_winsock2_h+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603else
18604
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606/* end confdefs.h. */
18607
18608
18609#undef inline
18610#ifndef WIN32_LEAN_AND_MEAN
18611#define WIN32_LEAN_AND_MEAN
18612#endif
18613#include <windows.h>
18614#include <winsock2.h>
18615
18616int main (void)
18617{
18618
18619#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18620 HAVE_WINSOCK2_H shall not be defined.
18621#else
18622 int dummy=2*IPPROTO_ESP;
18623#endif
18624
18625 ;
18626 return 0;
18627}
18628
18629_ACEOF
18630if ac_fn_c_try_compile "$LINENO"; then :
18631
18632 curl_cv_header_winsock2_h="yes"
18633
18634else
18635
18636 curl_cv_header_winsock2_h="no"
18637
18638fi
18639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640
18641fi
18642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18643$as_echo "$curl_cv_header_winsock2_h" >&6; }
18644 case "$curl_cv_header_winsock2_h" in
18645 yes)
18646
18647cat >>confdefs.h <<_ACEOF
18648#define HAVE_WINSOCK2_H 1
18649_ACEOF
18650
18651 ;;
18652 esac
18653
18654
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18656$as_echo_n "checking for ws2tcpip.h... " >&6; }
18657if ${curl_cv_header_ws2tcpip_h+:} false; then :
18658 $as_echo_n "(cached) " >&6
18659else
18660
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h. */
18663
18664
18665#undef inline
18666#ifndef WIN32_LEAN_AND_MEAN
18667#define WIN32_LEAN_AND_MEAN
18668#endif
18669#include <windows.h>
18670#include <winsock2.h>
18671#include <ws2tcpip.h>
18672
18673int main (void)
18674{
18675
18676#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18677 HAVE_WS2TCPIP_H shall not be defined.
18678#else
18679 int dummy=2*IP_PKTINFO;
18680#endif
18681
18682 ;
18683 return 0;
18684}
18685
18686_ACEOF
18687if ac_fn_c_try_compile "$LINENO"; then :
18688
18689 curl_cv_header_ws2tcpip_h="yes"
18690
18691else
18692
18693 curl_cv_header_ws2tcpip_h="no"
18694
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697
18698fi
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18700$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18701 case "$curl_cv_header_ws2tcpip_h" in
18702 yes)
18703
18704cat >>confdefs.h <<_ACEOF
18705#define HAVE_WS2TCPIP_H 1
18706_ACEOF
18707
18708 ;;
18709 esac
18710
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18713$as_echo_n "checking for winldap.h... " >&6; }
18714if ${curl_cv_header_winldap_h+:} false; then :
18715 $as_echo_n "(cached) " >&6
18716else
18717
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719/* end confdefs.h. */
18720
18721
18722#undef inline
18723#ifdef HAVE_WINDOWS_H
18724#ifndef WIN32_LEAN_AND_MEAN
18725#define WIN32_LEAN_AND_MEAN
18726#endif
18727#include <windows.h>
18728#endif
18729#include <winldap.h>
18730
18731int main (void)
18732{
18733
18734#if defined(__CYGWIN__) || defined(__CEGCC__)
18735 HAVE_WINLDAP_H shall not be defined.
18736#else
18737 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18738 ULONG res = ldap_unbind(ldp);
18739#endif
18740
18741 ;
18742 return 0;
18743}
18744
18745_ACEOF
18746if ac_fn_c_try_compile "$LINENO"; then :
18747
18748 curl_cv_header_winldap_h="yes"
18749
18750else
18751
18752 curl_cv_header_winldap_h="no"
18753
18754fi
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756
18757fi
18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18759$as_echo "$curl_cv_header_winldap_h" >&6; }
18760 case "$curl_cv_header_winldap_h" in
18761 yes)
18762
18763cat >>confdefs.h <<_ACEOF
18764#define HAVE_WINLDAP_H 1
18765_ACEOF
18766
18767 ;;
18768 esac
18769
18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18772$as_echo_n "checking for winber.h... " >&6; }
18773if ${curl_cv_header_winber_h+:} false; then :
18774 $as_echo_n "(cached) " >&6
18775else
18776
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778/* end confdefs.h. */
18779
18780
18781#undef inline
18782#ifdef HAVE_WINDOWS_H
18783#ifndef WIN32_LEAN_AND_MEAN
18784#define WIN32_LEAN_AND_MEAN
18785#endif
18786#include <windows.h>
18787#endif
18788#include <winldap.h>
18789#include <winber.h>
18790
18791int main (void)
18792{
18793
18794#if defined(__CYGWIN__) || defined(__CEGCC__)
18795 HAVE_WINBER_H shall not be defined.
18796#else
18797 BERVAL *bvp = NULL;
18798 BerElement *bep = ber_init(bvp);
18799 ber_free(bep, 1);
18800#endif
18801
18802 ;
18803 return 0;
18804}
18805
18806_ACEOF
18807if ac_fn_c_try_compile "$LINENO"; then :
18808
18809 curl_cv_header_winber_h="yes"
18810
18811else
18812
18813 curl_cv_header_winber_h="no"
18814
18815fi
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18820$as_echo "$curl_cv_header_winber_h" >&6; }
18821 case "$curl_cv_header_winber_h" in
18822 yes)
18823
18824cat >>confdefs.h <<_ACEOF
18825#define HAVE_WINBER_H 1
18826_ACEOF
18827
18828 ;;
18829 esac
18830
18831 ;;
18832 *)
18833 curl_cv_header_winsock_h="no"
18834 curl_cv_header_winsock2_h="no"
18835 curl_cv_header_ws2tcpip_h="no"
18836 curl_cv_header_winldap_h="no"
18837 curl_cv_header_winber_h="no"
18838 ;;
18839esac
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18842$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18843 curl_win32_file_api="no"
18844 if test "$curl_cv_header_windows_h" = "yes"; then
18845 if test x"$enable_largefile" != "xno"; then
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847/* end confdefs.h. */
18848
18849
18850
18851int main (void)
18852{
18853
18854#if !defined(_WIN32_WCE) && \
18855 (defined(__MINGW32__) || \
18856 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18857 int dummy=1;
18858#else
18859 WIN32 large file API not supported.
18860#endif
18861
18862 ;
18863 return 0;
18864}
18865
18866_ACEOF
18867if ac_fn_c_try_compile "$LINENO"; then :
18868
18869 curl_win32_file_api="win32_large_files"
18870
18871fi
18872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 fi
18874 if test "$curl_win32_file_api" = "no"; then
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h. */
18877
18878
18879
18880int main (void)
18881{
18882
18883#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18884 int dummy=1;
18885#else
18886 WIN32 small file API not supported.
18887#endif
18888
18889 ;
18890 return 0;
18891}
18892
18893_ACEOF
18894if ac_fn_c_try_compile "$LINENO"; then :
18895
18896 curl_win32_file_api="win32_small_files"
18897
18898fi
18899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18900 fi
18901 fi
18902 case "$curl_win32_file_api" in
18903 win32_large_files)
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18905$as_echo "yes (large file enabled)" >&6; }
18906
18907cat >>confdefs.h <<_ACEOF
18908#define USE_WIN32_LARGE_FILES 1
18909_ACEOF
18910
18911 ;;
18912 win32_small_files)
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18914$as_echo "yes (large file disabled)" >&6; }
18915
18916cat >>confdefs.h <<_ACEOF
18917#define USE_WIN32_SMALL_FILES 1
18918_ACEOF
18919
18920 ;;
18921 *)
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923$as_echo "no" >&6; }
18924 ;;
18925 esac
18926
18927
18928
18929
18930 tst_cflags="no"
18931 case $host_os in
18932 darwin*)
18933 tst_cflags="yes"
18934 ;;
18935 esac
18936
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
18938$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
18940$as_echo "$tst_cflags" >&6; };
18941
18942 if test "$tst_cflags" = "yes"; then
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
18944$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
18945 min=""
18946 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
18947 min="-mmacosx-version-min=10.8"
18948 CFLAGS="$CFLAGS $min"
18949 fi
18950 if test -z "$min"; then
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
18952$as_echo "set by user" >&6; }
18953 else
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
18955$as_echo "$min set" >&6; }
18956 fi
18957
18958 old_CFLAGS=$CFLAGS
18959 CFLAGS="$CFLAGS -Werror=partial-availability"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
18961$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h. */
18964
18965int main (void)
18966{
18967
18968 ;
18969 return 0;
18970}
18971_ACEOF
18972if ac_fn_c_try_compile "$LINENO"; then :
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18974$as_echo "yes" >&6; }
18975else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977$as_echo "no" >&6; }
18978 CFLAGS=$old_CFLAGS
18979fi
18980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 fi
18982
18983
18984
Alex Deymo486467e2017-12-19 19:04:07 +010018985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
18986$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988/* end confdefs.h. */
18989
18990
18991#include <stdlib.h>
18992
18993int main (void)
18994{
18995
18996 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
18997
18998 ;
18999 return 0;
19000}
19001
19002_ACEOF
19003if ac_fn_c_try_compile "$LINENO"; then :
19004
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19006$as_echo "yes" >&6; }
19007
19008cat >>confdefs.h <<_ACEOF
19009#define HAVE_BUILTIN_AVAILABLE 1
19010_ACEOF
19011
19012
19013else
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016$as_echo "no" >&6; }
19017
19018fi
19019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020
19021
Haibo Huang65021c72019-03-27 15:37:23 -070019022
Elliott Hughes82be86d2017-09-20 17:00:17 -070019023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19024$as_echo_n "checking whether to support http... " >&6; }
19025# Check whether --enable-http was given.
19026if test "${enable_http+set}" = set; then :
19027 enableval=$enable_http; case "$enableval" in
19028 no)
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030$as_echo "no" >&6; }
19031
19032$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19033
19034 disable_http="yes"
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19036$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19037 CURL_DISABLE_HTTP=1
19038
19039
19040$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19041
19042 CURL_DISABLE_RTSP=1
19043
19044 ;;
19045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19046$as_echo "yes" >&6; }
19047 ;;
19048 esac
19049else
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19051$as_echo "yes" >&6; }
19052
19053fi
19054
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19056$as_echo_n "checking whether to support ftp... " >&6; }
19057# Check whether --enable-ftp was given.
19058if test "${enable_ftp+set}" = set; then :
19059 enableval=$enable_ftp; case "$enableval" in
19060 no)
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19062$as_echo "no" >&6; }
19063
19064$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19065
19066 CURL_DISABLE_FTP=1
19067
19068 ;;
19069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19070$as_echo "yes" >&6; }
19071 ;;
19072 esac
19073else
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19075$as_echo "yes" >&6; }
19076
19077fi
19078
19079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19080$as_echo_n "checking whether to support file... " >&6; }
19081# Check whether --enable-file was given.
19082if test "${enable_file+set}" = set; then :
19083 enableval=$enable_file; case "$enableval" in
19084 no)
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19086$as_echo "no" >&6; }
19087
19088$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19089
19090 CURL_DISABLE_FILE=1
19091
19092 ;;
19093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094$as_echo "yes" >&6; }
19095 ;;
19096 esac
19097else
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19099$as_echo "yes" >&6; }
19100
19101fi
19102
19103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19104$as_echo_n "checking whether to support ldap... " >&6; }
19105# Check whether --enable-ldap was given.
19106if test "${enable_ldap+set}" = set; then :
19107 enableval=$enable_ldap; case "$enableval" in
19108 no)
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110$as_echo "no" >&6; }
19111
19112$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19113
19114 CURL_DISABLE_LDAP=1
19115
19116 ;;
19117 *)
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19119$as_echo "yes" >&6; }
19120 ;;
19121 esac
19122else
19123
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19125$as_echo "yes" >&6; }
19126
19127fi
19128
19129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19130$as_echo_n "checking whether to support ldaps... " >&6; }
19131# Check whether --enable-ldaps was given.
19132if test "${enable_ldaps+set}" = set; then :
19133 enableval=$enable_ldaps; case "$enableval" in
19134 no)
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136$as_echo "no" >&6; }
19137
19138$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19139
19140 CURL_DISABLE_LDAPS=1
19141
19142 ;;
19143 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19145$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19146
19147$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19148
19149 CURL_DISABLE_LDAPS=1
19150
19151 else
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19153$as_echo "yes" >&6; }
19154
19155$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19156
19157 HAVE_LDAP_SSL=1
19158
19159 fi
19160 ;;
19161 esac
19162else
19163
19164 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166$as_echo "no" >&6; }
19167
19168$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19169
19170 CURL_DISABLE_LDAPS=1
19171
19172 else
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174$as_echo "yes" >&6; }
19175
19176$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19177
19178 HAVE_LDAP_SSL=1
19179
19180 fi
19181
19182fi
19183
19184
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19186$as_echo_n "checking whether to support rtsp... " >&6; }
19187# Check whether --enable-rtsp was given.
19188if test "${enable_rtsp+set}" = set; then :
19189 enableval=$enable_rtsp; case "$enableval" in
19190 no)
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192$as_echo "no" >&6; }
19193
19194$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19195
19196 CURL_DISABLE_RTSP=1
19197
19198 ;;
19199 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19200 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19201 else
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19203$as_echo "yes" >&6; }
19204 curl_rtsp_msg="enabled"
19205 fi
19206 ;;
19207 esac
19208else
19209 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19211$as_echo "yes" >&6; }
19212 curl_rtsp_msg="enabled"
19213 else
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215$as_echo "no" >&6; }
19216 fi
19217
19218fi
19219
19220
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19222$as_echo_n "checking whether to support proxies... " >&6; }
19223# Check whether --enable-proxy was given.
19224if test "${enable_proxy+set}" = set; then :
19225 enableval=$enable_proxy; case "$enableval" in
19226 no)
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228$as_echo "no" >&6; }
19229
19230$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19231
19232 CURL_DISABLE_PROXY=1
19233
19234 ;;
19235 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236$as_echo "yes" >&6; }
19237 ;;
19238 esac
19239else
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241$as_echo "yes" >&6; }
19242
19243fi
19244
19245
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19247$as_echo_n "checking whether to support dict... " >&6; }
19248# Check whether --enable-dict was given.
19249if test "${enable_dict+set}" = set; then :
19250 enableval=$enable_dict; case "$enableval" in
19251 no)
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253$as_echo "no" >&6; }
19254
19255$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19256
19257 CURL_DISABLE_DICT=1
19258
19259 ;;
19260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261$as_echo "yes" >&6; }
19262 ;;
19263 esac
19264else
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266$as_echo "yes" >&6; }
19267
19268fi
19269
19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19271$as_echo_n "checking whether to support telnet... " >&6; }
19272# Check whether --enable-telnet was given.
19273if test "${enable_telnet+set}" = set; then :
19274 enableval=$enable_telnet; case "$enableval" in
19275 no)
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277$as_echo "no" >&6; }
19278
19279$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19280
19281 CURL_DISABLE_TELNET=1
19282
19283 ;;
19284 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285$as_echo "yes" >&6; }
19286 ;;
19287 esac
19288else
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290$as_echo "yes" >&6; }
19291
19292fi
19293
19294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19295$as_echo_n "checking whether to support tftp... " >&6; }
19296# Check whether --enable-tftp was given.
19297if test "${enable_tftp+set}" = set; then :
19298 enableval=$enable_tftp; case "$enableval" in
19299 no)
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301$as_echo "no" >&6; }
19302
19303$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19304
19305 CURL_DISABLE_TFTP=1
19306
19307 ;;
19308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19309$as_echo "yes" >&6; }
19310 ;;
19311 esac
19312else
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19314$as_echo "yes" >&6; }
19315
19316fi
19317
19318
19319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19320$as_echo_n "checking whether to support pop3... " >&6; }
19321# Check whether --enable-pop3 was given.
19322if test "${enable_pop3+set}" = set; then :
19323 enableval=$enable_pop3; case "$enableval" in
19324 no)
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326$as_echo "no" >&6; }
19327
19328$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19329
19330 CURL_DISABLE_POP3=1
19331
19332 ;;
19333 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334$as_echo "yes" >&6; }
19335 ;;
19336 esac
19337else
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339$as_echo "yes" >&6; }
19340
19341fi
19342
19343
19344
19345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19346$as_echo_n "checking whether to support imap... " >&6; }
19347# Check whether --enable-imap was given.
19348if test "${enable_imap+set}" = set; then :
19349 enableval=$enable_imap; case "$enableval" in
19350 no)
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352$as_echo "no" >&6; }
19353
19354$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19355
19356 CURL_DISABLE_IMAP=1
19357
19358 ;;
19359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19360$as_echo "yes" >&6; }
19361 ;;
19362 esac
19363else
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365$as_echo "yes" >&6; }
19366
19367fi
19368
19369
19370
19371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19372$as_echo_n "checking whether to support smb... " >&6; }
19373# Check whether --enable-smb was given.
19374if test "${enable_smb+set}" = set; then :
19375 enableval=$enable_smb; case "$enableval" in
19376 no)
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378$as_echo "no" >&6; }
19379
19380$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19381
19382 CURL_DISABLE_SMB=1
19383
19384 ;;
19385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386$as_echo "yes" >&6; }
19387 ;;
19388 esac
19389else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391$as_echo "yes" >&6; }
19392
19393fi
19394
19395
19396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19397$as_echo_n "checking whether to support smtp... " >&6; }
19398# Check whether --enable-smtp was given.
19399if test "${enable_smtp+set}" = set; then :
19400 enableval=$enable_smtp; case "$enableval" in
19401 no)
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403$as_echo "no" >&6; }
19404
19405$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19406
19407 CURL_DISABLE_SMTP=1
19408
19409 ;;
19410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412 ;;
19413 esac
19414else
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416$as_echo "yes" >&6; }
19417
19418fi
19419
19420
19421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19422$as_echo_n "checking whether to support gopher... " >&6; }
19423# Check whether --enable-gopher was given.
19424if test "${enable_gopher+set}" = set; then :
19425 enableval=$enable_gopher; case "$enableval" in
19426 no)
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428$as_echo "no" >&6; }
19429
19430$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19431
19432 CURL_DISABLE_GOPHER=1
19433
19434 ;;
19435 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437 ;;
19438 esac
19439else
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441$as_echo "yes" >&6; }
19442
19443fi
19444
19445
19446
19447
19448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19449$as_echo_n "checking whether to provide built-in manual... " >&6; }
19450# Check whether --enable-manual was given.
19451if test "${enable_manual+set}" = set; then :
19452 enableval=$enable_manual; case "$enableval" in
19453 no)
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19455$as_echo "no" >&6; }
19456 ;;
19457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19458$as_echo "yes" >&6; }
19459 USE_MANUAL="1"
19460 ;;
19461 esac
19462else
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464$as_echo "yes" >&6; }
19465 USE_MANUAL="1"
19466
19467fi
19468
19469
19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19471$as_echo_n "checking whether to enable generation of C code... " >&6; }
19472# Check whether --enable-libcurl_option was given.
19473if test "${enable_libcurl_option+set}" = set; then :
19474 enableval=$enable_libcurl_option; case "$enableval" in
19475 no)
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19477$as_echo "no" >&6; }
19478
19479$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19480
19481 curl_libcurl_msg="no"
19482 ;;
19483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484$as_echo "yes" >&6; }
19485 ;;
19486 esac
19487else
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489$as_echo "yes" >&6; }
19490
19491fi
19492
19493
19494
19495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19496$as_echo_n "checking whether to use libgcc... " >&6; }
19497# Check whether --enable-libgcc was given.
19498if test "${enable_libgcc+set}" = set; then :
19499 enableval=$enable_libgcc; case "$enableval" in
19500 yes)
19501 LIBS="-lgcc $LIBS"
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503$as_echo "yes" >&6; }
19504 ;;
19505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506$as_echo "no" >&6; }
19507 ;;
19508 esac
19509else
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511$as_echo "no" >&6; }
19512
19513fi
19514
19515
19516
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19518$as_echo_n "checking if X/Open network library is required... " >&6; }
19519 tst_lib_xnet_required="no"
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521/* end confdefs.h. */
19522
19523
19524int main (void)
19525{
19526#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19527 return 0;
19528#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19529 return 0;
19530#else
19531 force compilation error
19532#endif
19533}
19534
19535
19536_ACEOF
19537if ac_fn_c_try_compile "$LINENO"; then :
19538
19539 tst_lib_xnet_required="yes"
19540 LIBS="-lxnet $LIBS"
19541
19542fi
19543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19545$as_echo "$tst_lib_xnet_required" >&6; }
19546
19547
19548ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19549if test "x$ac_cv_func_gethostbyname" = xyes; then :
19550 HAVE_GETHOSTBYNAME="1"
19551
19552else
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19554$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19555if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19556 $as_echo_n "(cached) " >&6
19557else
19558 ac_check_lib_save_LIBS=$LIBS
19559LIBS="-lnsl $LIBS"
19560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561/* end confdefs.h. */
19562
19563
19564#ifdef __cplusplus
19565extern "C"
19566#endif
19567char gethostbyname ();
19568int main (void)
19569{
19570return gethostbyname ();
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575if ac_fn_c_try_link "$LINENO"; then :
19576 ac_cv_lib_nsl_gethostbyname=yes
19577else
19578 ac_cv_lib_nsl_gethostbyname=no
19579fi
19580rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582LIBS=$ac_check_lib_save_LIBS
19583fi
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19585$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19586if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19587 HAVE_GETHOSTBYNAME="1"
19588 LIBS="-lnsl $LIBS"
19589
19590fi
19591
19592
19593fi
19594
19595
19596if test "$HAVE_GETHOSTBYNAME" != "1"
19597then
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19599$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19600if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19601 $as_echo_n "(cached) " >&6
19602else
19603 ac_check_lib_save_LIBS=$LIBS
19604LIBS="-lsocket $LIBS"
19605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606/* end confdefs.h. */
19607
19608
19609#ifdef __cplusplus
19610extern "C"
19611#endif
19612char gethostbyname ();
19613int main (void)
19614{
19615return gethostbyname ();
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620if ac_fn_c_try_link "$LINENO"; then :
19621 ac_cv_lib_socket_gethostbyname=yes
19622else
19623 ac_cv_lib_socket_gethostbyname=no
19624fi
19625rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19627LIBS=$ac_check_lib_save_LIBS
19628fi
19629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19630$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19631if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19632 HAVE_GETHOSTBYNAME="1"
19633 LIBS="-lsocket $LIBS"
19634
19635fi
19636
19637fi
19638
19639if test "$HAVE_GETHOSTBYNAME" != "1"
19640then
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19642$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19643if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19644 $as_echo_n "(cached) " >&6
19645else
19646 ac_check_lib_save_LIBS=$LIBS
19647LIBS="-lwatt $LIBS"
19648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649/* end confdefs.h. */
19650
19651
19652#ifdef __cplusplus
19653extern "C"
19654#endif
19655char gethostbyname ();
19656int main (void)
19657{
19658return gethostbyname ();
19659 ;
19660 return 0;
19661}
19662_ACEOF
19663if ac_fn_c_try_link "$LINENO"; then :
19664 ac_cv_lib_watt_gethostbyname=yes
19665else
19666 ac_cv_lib_watt_gethostbyname=no
19667fi
19668rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670LIBS=$ac_check_lib_save_LIBS
19671fi
19672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19673$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19674if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19675 HAVE_GETHOSTBYNAME="1"
19676 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19677 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19678 LIBS="-lwatt $LIBS"
19679
19680fi
19681
19682fi
19683
19684if test "$HAVE_GETHOSTBYNAME" != "1"
19685then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19687$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19688 my_ac_save_LIBS=$LIBS
19689 LIBS="-lnsl -lsocket $LIBS"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h. */
19692
19693
19694
19695int main (void)
19696{
19697
19698 gethostbyname();
19699
19700 ;
19701 return 0;
19702}
19703
19704_ACEOF
19705if ac_fn_c_try_link "$LINENO"; then :
19706
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19708$as_echo "yes" >&6; }
19709 HAVE_GETHOSTBYNAME="1"
19710
19711else
19712
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19714$as_echo "no" >&6; }
19715 LIBS=$my_ac_save_LIBS
19716
19717fi
19718rm -f core conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720fi
19721
19722if test "$HAVE_GETHOSTBYNAME" != "1"
19723then
19724 if test "$curl_cv_header_windows_h" = "yes"; then
19725 if test "$curl_cv_header_winsock_h" = "yes"; then
19726 case $host in
19727 *-*-mingw32ce*)
19728 winsock_LIB="-lwinsock"
19729 ;;
19730 *)
19731 winsock_LIB="-lwsock32"
19732 ;;
19733 esac
19734 fi
19735 if test "$curl_cv_header_winsock2_h" = "yes"; then
19736 winsock_LIB="-lws2_32"
19737 fi
19738 if test ! -z "$winsock_LIB"; then
19739 my_ac_save_LIBS=$LIBS
19740 LIBS="$winsock_LIB $LIBS"
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19742$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744/* end confdefs.h. */
19745
19746
19747#ifdef HAVE_WINDOWS_H
19748#ifndef WIN32_LEAN_AND_MEAN
19749#define WIN32_LEAN_AND_MEAN
19750#endif
19751#include <windows.h>
19752#ifdef HAVE_WINSOCK2_H
19753#include <winsock2.h>
19754#else
19755#ifdef HAVE_WINSOCK_H
19756#include <winsock.h>
19757#endif
19758#endif
19759#endif
19760
19761int main (void)
19762{
19763
19764 gethostbyname("www.dummysite.com");
19765
19766 ;
19767 return 0;
19768}
19769
19770_ACEOF
19771if ac_fn_c_try_link "$LINENO"; then :
19772
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19774$as_echo "yes" >&6; }
19775 HAVE_GETHOSTBYNAME="1"
19776
19777else
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780$as_echo "no" >&6; }
19781 winsock_LIB=""
19782 LIBS=$my_ac_save_LIBS
19783
19784fi
19785rm -f core conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787 fi
19788 fi
19789fi
19790
19791if test "$HAVE_GETHOSTBYNAME" != "1"
19792then
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19794$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h. */
19797
19798
19799/* Older Minix versions may need <net/gen/netdb.h> here instead */
19800#include <netdb.h>
19801
19802int main (void)
19803{
19804
19805 gethostbyname("www.dummysite.com");
19806
19807 ;
19808 return 0;
19809}
19810
19811_ACEOF
19812if ac_fn_c_try_link "$LINENO"; then :
19813
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815$as_echo "yes" >&6; }
19816 HAVE_GETHOSTBYNAME="1"
19817
19818else
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19821$as_echo "no" >&6; }
19822
19823fi
19824rm -f core conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19826fi
19827
19828if test "$HAVE_GETHOSTBYNAME" != "1"
19829then
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19831$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833/* end confdefs.h. */
19834
19835
19836#include <stdio.h>
19837#include <netdb.h>
19838
19839int main (void)
19840{
19841
19842 gethostbyname("www.dummysite.com");
19843
19844 ;
19845 return 0;
19846}
19847
19848_ACEOF
19849if ac_fn_c_try_link "$LINENO"; then :
19850
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19852$as_echo "yes" >&6; }
19853 HAVE_GETHOSTBYNAME="1"
19854
19855else
19856
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19858$as_echo "no" >&6; }
19859
19860fi
19861rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19863fi
19864
19865if test "$HAVE_GETHOSTBYNAME" != "1"
19866then
Haibo Huang65021c72019-03-27 15:37:23 -070019867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
19868$as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h. */
19871
19872
19873#include <proto/bsdsocket.h>
19874struct Library *SocketBase = NULL;
19875
19876int main (void)
19877{
19878
19879 gethostbyname("www.dummysite.com");
19880
19881 ;
19882 return 0;
19883}
19884
19885_ACEOF
19886if ac_fn_c_try_link "$LINENO"; then :
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19889$as_echo "yes" >&6; }
19890 HAVE_GETHOSTBYNAME="1"
19891 HAVE_PROTO_BSDSOCKET_H="1"
19892
19893$as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
19894
19895 HAVE_PROTO_BSDSOCKET_H=1
19896
19897
19898else
19899
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901$as_echo "no" >&6; }
19902
19903fi
19904rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906fi
19907
19908if test "$HAVE_GETHOSTBYNAME" != "1"
19909then
Elliott Hughes82be86d2017-09-20 17:00:17 -070019910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19911$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19912if ${ac_cv_lib_network_gethostbyname+:} false; then :
19913 $as_echo_n "(cached) " >&6
19914else
19915 ac_check_lib_save_LIBS=$LIBS
19916LIBS="-lnetwork $LIBS"
19917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918/* end confdefs.h. */
19919
19920
19921#ifdef __cplusplus
19922extern "C"
19923#endif
19924char gethostbyname ();
19925int main (void)
19926{
19927return gethostbyname ();
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932if ac_fn_c_try_link "$LINENO"; then :
19933 ac_cv_lib_network_gethostbyname=yes
19934else
19935 ac_cv_lib_network_gethostbyname=no
19936fi
19937rm -f core conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939LIBS=$ac_check_lib_save_LIBS
19940fi
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19942$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19943if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19944 HAVE_GETHOSTBYNAME="1"
19945 LIBS="-lnetwork $LIBS"
19946
19947fi
19948
19949fi
19950
19951if test "$HAVE_GETHOSTBYNAME" != "1"
19952then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19954$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19955if ${ac_cv_lib_net_gethostbyname+:} false; then :
19956 $as_echo_n "(cached) " >&6
19957else
19958 ac_check_lib_save_LIBS=$LIBS
19959LIBS="-lnet $LIBS"
19960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961/* end confdefs.h. */
19962
19963
19964#ifdef __cplusplus
19965extern "C"
19966#endif
19967char gethostbyname ();
19968int main (void)
19969{
19970return gethostbyname ();
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975if ac_fn_c_try_link "$LINENO"; then :
19976 ac_cv_lib_net_gethostbyname=yes
19977else
19978 ac_cv_lib_net_gethostbyname=no
19979fi
19980rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19982LIBS=$ac_check_lib_save_LIBS
19983fi
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19985$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19986if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19987 HAVE_GETHOSTBYNAME="1"
19988 LIBS="-lnet $LIBS"
19989
19990fi
19991
19992fi
19993
19994
19995if test "$HAVE_GETHOSTBYNAME" != "1"; then
19996 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19997fi
19998
19999
20000curl_includes_winsock2="\
20001/* includes start */
20002#ifdef HAVE_WINDOWS_H
20003# ifndef WIN32_LEAN_AND_MEAN
20004# define WIN32_LEAN_AND_MEAN
20005# endif
20006# include <windows.h>
20007# ifdef HAVE_WINSOCK2_H
20008# include <winsock2.h>
20009# else
20010# ifdef HAVE_WINSOCK_H
20011# include <winsock.h>
20012# endif
20013# endif
20014#endif
20015/* includes end */"
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20018$as_echo_n "checking for windows.h... " >&6; }
20019if ${curl_cv_header_windows_h+:} false; then :
20020 $as_echo_n "(cached) " >&6
20021else
20022
20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024/* end confdefs.h. */
20025
20026
20027#undef inline
20028#ifndef WIN32_LEAN_AND_MEAN
20029#define WIN32_LEAN_AND_MEAN
20030#endif
20031#include <windows.h>
20032
20033int main (void)
20034{
20035
20036#if defined(__CYGWIN__) || defined(__CEGCC__)
20037 HAVE_WINDOWS_H shall not be defined.
20038#else
20039 int dummy=2*WINVER;
20040#endif
20041
20042 ;
20043 return 0;
20044}
20045
20046_ACEOF
20047if ac_fn_c_try_compile "$LINENO"; then :
20048
20049 curl_cv_header_windows_h="yes"
20050
20051else
20052
20053 curl_cv_header_windows_h="no"
20054
20055fi
20056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057
20058fi
20059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20060$as_echo "$curl_cv_header_windows_h" >&6; }
20061 case "$curl_cv_header_windows_h" in
20062 yes)
20063
20064cat >>confdefs.h <<_ACEOF
20065#define HAVE_WINDOWS_H 1
20066_ACEOF
20067
20068 ;;
20069 esac
20070
20071
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20073$as_echo_n "checking for winsock.h... " >&6; }
20074if ${curl_cv_header_winsock_h+:} false; then :
20075 $as_echo_n "(cached) " >&6
20076else
20077
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079/* end confdefs.h. */
20080
20081
20082#undef inline
20083#ifndef WIN32_LEAN_AND_MEAN
20084#define WIN32_LEAN_AND_MEAN
20085#endif
20086#include <windows.h>
20087#include <winsock.h>
20088
20089int main (void)
20090{
20091
20092#if defined(__CYGWIN__) || defined(__CEGCC__)
20093 HAVE_WINSOCK_H shall not be defined.
20094#else
20095 int dummy=WSACleanup();
20096#endif
20097
20098 ;
20099 return 0;
20100}
20101
20102_ACEOF
20103if ac_fn_c_try_compile "$LINENO"; then :
20104
20105 curl_cv_header_winsock_h="yes"
20106
20107else
20108
20109 curl_cv_header_winsock_h="no"
20110
20111fi
20112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113
20114fi
20115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20116$as_echo "$curl_cv_header_winsock_h" >&6; }
20117 case "$curl_cv_header_winsock_h" in
20118 yes)
20119
20120cat >>confdefs.h <<_ACEOF
20121#define HAVE_WINSOCK_H 1
20122_ACEOF
20123
20124 ;;
20125 esac
20126
20127
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20129$as_echo_n "checking for winsock2.h... " >&6; }
20130if ${curl_cv_header_winsock2_h+:} false; then :
20131 $as_echo_n "(cached) " >&6
20132else
20133
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135/* end confdefs.h. */
20136
20137
20138#undef inline
20139#ifndef WIN32_LEAN_AND_MEAN
20140#define WIN32_LEAN_AND_MEAN
20141#endif
20142#include <windows.h>
20143#include <winsock2.h>
20144
20145int main (void)
20146{
20147
20148#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20149 HAVE_WINSOCK2_H shall not be defined.
20150#else
20151 int dummy=2*IPPROTO_ESP;
20152#endif
20153
20154 ;
20155 return 0;
20156}
20157
20158_ACEOF
20159if ac_fn_c_try_compile "$LINENO"; then :
20160
20161 curl_cv_header_winsock2_h="yes"
20162
20163else
20164
20165 curl_cv_header_winsock2_h="no"
20166
20167fi
20168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169
20170fi
20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20172$as_echo "$curl_cv_header_winsock2_h" >&6; }
20173 case "$curl_cv_header_winsock2_h" in
20174 yes)
20175
20176cat >>confdefs.h <<_ACEOF
20177#define HAVE_WINSOCK2_H 1
20178_ACEOF
20179
20180 ;;
20181 esac
20182
20183
20184
Haibo Huang65021c72019-03-27 15:37:23 -070020185curl_includes_bsdsocket="\
20186/* includes start */
20187#ifdef HAVE_PROTO_BSDSOCKET_H
20188# include <proto/bsdsocket.h>
20189 struct Library *SocketBase = NULL;
20190#endif
20191/* includes end */"
20192 for ac_header in proto/bsdsocket.h
20193do :
20194 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
20195"
20196if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
20197 cat >>confdefs.h <<_ACEOF
20198#define HAVE_PROTO_BSDSOCKET_H 1
20199_ACEOF
20200
20201fi
20202
20203done
20204
20205
20206
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020208$as_echo_n "checking for connect in libraries... " >&6; }
20209 tst_connect_save_LIBS="$LIBS"
20210 tst_connect_need_LIBS="unknown"
20211 for tst_lib in '' '-lsocket' ; do
20212 if test "$tst_connect_need_LIBS" = "unknown"; then
20213 LIBS="$tst_lib $tst_connect_save_LIBS"
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215/* end confdefs.h. */
20216
20217
20218 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070020219 $curl_includes_bsdsocket
20220 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
Elliott Hughes82be86d2017-09-20 17:00:17 -070020221 int connect(int, void*, int);
20222 #endif
20223
20224int main (void)
20225{
20226
20227 if(0 != connect(0, 0, 0))
20228 return 1;
20229
20230 ;
20231 return 0;
20232}
20233
20234_ACEOF
20235if ac_fn_c_try_link "$LINENO"; then :
20236
20237 tst_connect_need_LIBS="$tst_lib"
20238
20239fi
20240rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242 fi
20243 done
20244 LIBS="$tst_connect_save_LIBS"
20245 #
20246 case X-"$tst_connect_need_LIBS" in
20247 X-unknown)
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20249$as_echo "cannot find connect" >&6; }
20250 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20251 ;;
20252 X-)
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20254$as_echo "yes" >&6; }
20255 ;;
20256 *)
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20258$as_echo "$tst_connect_need_LIBS" >&6; }
20259 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20260 ;;
20261 esac
20262
20263
20264CURL_NETWORK_LIBS=$LIBS
20265
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20267$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20268if ${ac_cv_header_time+:} false; then :
20269 $as_echo_n "(cached) " >&6
20270else
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272/* end confdefs.h. */
20273#include <sys/types.h>
20274#include <sys/time.h>
20275#include <time.h>
20276
20277int main (void)
20278{
20279if ((struct tm *) 0)
20280return 0;
20281 ;
20282 return 0;
20283}
20284_ACEOF
20285if ac_fn_c_try_compile "$LINENO"; then :
20286 ac_cv_header_time=yes
20287else
20288 ac_cv_header_time=no
20289fi
20290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291fi
20292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20293$as_echo "$ac_cv_header_time" >&6; }
20294if test $ac_cv_header_time = yes; then
20295
20296$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20297
20298fi
20299
20300
20301 for ac_header in sys/types.h sys/time.h time.h
20302do :
20303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20306 cat >>confdefs.h <<_ACEOF
20307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308_ACEOF
20309
20310fi
20311
20312done
20313
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20315$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20316 #
20317 if test "x$dontwant_rt" = "xno" ; then
20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319/* end confdefs.h. */
20320
20321
20322#ifdef HAVE_SYS_TYPES_H
20323#include <sys/types.h>
20324#endif
20325#ifdef HAVE_SYS_TIME_H
20326#include <sys/time.h>
20327#ifdef TIME_WITH_SYS_TIME
20328#include <time.h>
20329#endif
20330#else
20331#ifdef HAVE_TIME_H
20332#include <time.h>
20333#endif
20334#endif
20335
20336int main (void)
20337{
20338
20339 struct timespec ts;
20340 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20341
20342 ;
20343 return 0;
20344}
20345
20346_ACEOF
20347if ac_fn_c_try_compile "$LINENO"; then :
20348
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20350$as_echo "yes" >&6; }
20351 curl_func_clock_gettime="yes"
20352
20353else
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356$as_echo "no" >&6; }
20357 curl_func_clock_gettime="no"
20358
20359fi
20360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 fi
20362
20363
20364 #
20365 if test "$curl_func_clock_gettime" = "yes"; then
20366 #
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20368$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20369 #
20370 curl_cv_save_LIBS="$LIBS"
20371 curl_cv_gclk_LIBS="unknown"
20372 #
20373 for x_xlibs in '' '-lrt' '-lposix4' ; do
20374 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20375 if test -z "$x_xlibs"; then
20376 LIBS="$curl_cv_save_LIBS"
20377 else
20378 LIBS="$x_xlibs $curl_cv_save_LIBS"
20379 fi
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h. */
20382
20383
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 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20403
20404 ;
20405 return 0;
20406}
20407
20408_ACEOF
20409if ac_fn_c_try_link "$LINENO"; then :
20410
20411 curl_cv_gclk_LIBS="$x_xlibs"
20412
20413fi
20414rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 done
20418 #
20419 LIBS="$curl_cv_save_LIBS"
20420 #
20421 case X-"$curl_cv_gclk_LIBS" in
20422 X-unknown)
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20424$as_echo "cannot find clock_gettime" >&6; }
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20426$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20427 curl_func_clock_gettime="no"
20428 ;;
20429 X-)
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20431$as_echo "no additional lib required" >&6; }
20432 curl_func_clock_gettime="yes"
20433 ;;
20434 *)
20435 if test -z "$curl_cv_save_LIBS"; then
20436 LIBS="$curl_cv_gclk_LIBS"
20437 else
20438 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20439 fi
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20441$as_echo "$curl_cv_gclk_LIBS" >&6; }
20442 curl_func_clock_gettime="yes"
20443 ;;
20444 esac
20445 #
20446 if test "x$cross_compiling" != "xyes" &&
20447 test "$curl_func_clock_gettime" = "yes"; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20449$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020450
20451
20452 old=$LD_LIBRARY_PATH
20453 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20454 export LD_LIBRARY_PATH
20455 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20458as_fn_error $? "cannot run test program while cross compiling
20459See \`config.log' for more details" "$LINENO" 5; }
20460else
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462/* end confdefs.h. */
20463
20464
20465#ifdef HAVE_STDLIB_H
20466#include <stdlib.h>
20467#endif
20468#ifdef HAVE_SYS_TYPES_H
20469#include <sys/types.h>
20470#endif
20471#ifdef HAVE_SYS_TIME_H
20472#include <sys/time.h>
20473#ifdef TIME_WITH_SYS_TIME
20474#include <time.h>
20475#endif
20476#else
20477#ifdef HAVE_TIME_H
20478#include <time.h>
20479#endif
20480#endif
20481
20482int main (void)
20483{
20484
20485 struct timespec ts;
20486 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20487 exit(0);
20488 else
20489 exit(1);
20490
20491 ;
20492 return 0;
20493}
20494
20495_ACEOF
20496if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020498$as_echo "yes" >&6; }
20499
20500else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020502$as_echo "no" >&6; }
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20504$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20505 curl_func_clock_gettime="no"
20506 LIBS="$curl_cv_save_LIBS"
20507
20508fi
20509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20510 conftest.$ac_objext conftest.beam conftest.$ac_ext
20511fi
20512
Elliott Hughesa93fb052018-12-12 14:22:48 -080020513 LD_LIBRARY_PATH=$old # restore
20514
Elliott Hughes82be86d2017-09-20 17:00:17 -070020515 fi
20516 #
20517 case "$curl_func_clock_gettime" in
20518 yes)
20519
20520cat >>confdefs.h <<_ACEOF
20521#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20522_ACEOF
20523
20524 ;;
20525 esac
20526 #
20527 fi
20528 #
20529
20530
20531CURL_NETWORK_AND_TIME_LIBS=$LIBS
20532
20533
20534
20535clean_CPPFLAGS=$CPPFLAGS
20536clean_LDFLAGS=$LDFLAGS
20537clean_LIBS=$LIBS
20538ZLIB_LIBS=""
20539
20540# Check whether --with-zlib was given.
20541if test "${with_zlib+set}" = set; then :
20542 withval=$with_zlib; OPT_ZLIB="$withval"
20543fi
20544
20545
20546if test "$OPT_ZLIB" = "no" ; then
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20548$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20549else
20550 if test "$OPT_ZLIB" = "yes" ; then
20551 OPT_ZLIB=""
20552 fi
20553
20554 if test -z "$OPT_ZLIB" ; then
20555
20556 if test -n "$PKG_CONFIG"; then
20557 PKGCONFIG="$PKG_CONFIG"
20558 else
20559 if test -n "$ac_tool_prefix"; then
20560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20561set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20563$as_echo_n "checking for $ac_word... " >&6; }
20564if ${ac_cv_path_PKGCONFIG+:} false; then :
20565 $as_echo_n "(cached) " >&6
20566else
20567 case $PKGCONFIG in
20568 [\\/]* | ?:[\\/]*)
20569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20570 ;;
20571 *)
20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573as_dummy="$PATH:/usr/bin:/usr/local/bin"
20574for as_dir in $as_dummy
20575do
20576 IFS=$as_save_IFS
20577 test -z "$as_dir" && as_dir=.
20578 for ac_exec_ext in '' $ac_executable_extensions; do
20579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20580 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20582 break 2
20583 fi
20584done
20585 done
20586IFS=$as_save_IFS
20587
20588 ;;
20589esac
20590fi
20591PKGCONFIG=$ac_cv_path_PKGCONFIG
20592if test -n "$PKGCONFIG"; then
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20594$as_echo "$PKGCONFIG" >&6; }
20595else
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20597$as_echo "no" >&6; }
20598fi
20599
20600
20601fi
20602if test -z "$ac_cv_path_PKGCONFIG"; then
20603 ac_pt_PKGCONFIG=$PKGCONFIG
20604 # Extract the first word of "pkg-config", so it can be a program name with args.
20605set dummy pkg-config; ac_word=$2
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20607$as_echo_n "checking for $ac_word... " >&6; }
20608if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20609 $as_echo_n "(cached) " >&6
20610else
20611 case $ac_pt_PKGCONFIG in
20612 [\\/]* | ?:[\\/]*)
20613 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20614 ;;
20615 *)
20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617as_dummy="$PATH:/usr/bin:/usr/local/bin"
20618for as_dir in $as_dummy
20619do
20620 IFS=$as_save_IFS
20621 test -z "$as_dir" && as_dir=.
20622 for ac_exec_ext in '' $ac_executable_extensions; do
20623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20624 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20626 break 2
20627 fi
20628done
20629 done
20630IFS=$as_save_IFS
20631
20632 ;;
20633esac
20634fi
20635ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20636if test -n "$ac_pt_PKGCONFIG"; then
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20638$as_echo "$ac_pt_PKGCONFIG" >&6; }
20639else
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641$as_echo "no" >&6; }
20642fi
20643
20644 if test "x$ac_pt_PKGCONFIG" = x; then
20645 PKGCONFIG="no"
20646 else
20647 case $cross_compiling:$ac_tool_warned in
20648yes:)
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20651ac_tool_warned=yes ;;
20652esac
20653 PKGCONFIG=$ac_pt_PKGCONFIG
20654 fi
20655else
20656 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20657fi
20658
20659 fi
20660
20661 if test "x$PKGCONFIG" != "xno"; then
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20663$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20664 itexists=`
20665 if test -n ""; then
20666 PKG_CONFIG_LIBDIR=""
20667 export PKG_CONFIG_LIBDIR
20668 fi
20669 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20670
20671 if test -z "$itexists"; then
20672 PKGCONFIG="no"
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20674$as_echo "no" >&6; }
20675 else
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20677$as_echo "found" >&6; }
20678 fi
20679 fi
20680
20681
20682 if test "$PKGCONFIG" != "no" ; then
20683 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20684 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20685 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20686 OPT_ZLIB=""
20687 HAVE_LIBZ="1"
20688 fi
20689
20690 if test -z "$HAVE_LIBZ"; then
20691
20692
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20694$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20695if ${ac_cv_lib_z_inflateEnd+:} false; then :
20696 $as_echo_n "(cached) " >&6
20697else
20698 ac_check_lib_save_LIBS=$LIBS
20699LIBS="-lz $LIBS"
20700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701/* end confdefs.h. */
20702
20703
20704#ifdef __cplusplus
20705extern "C"
20706#endif
20707char inflateEnd ();
20708int main (void)
20709{
20710return inflateEnd ();
20711 ;
20712 return 0;
20713}
20714_ACEOF
20715if ac_fn_c_try_link "$LINENO"; then :
20716 ac_cv_lib_z_inflateEnd=yes
20717else
20718 ac_cv_lib_z_inflateEnd=no
20719fi
20720rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722LIBS=$ac_check_lib_save_LIBS
20723fi
20724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20725$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20726if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20727 HAVE_LIBZ="1"
20728 LIBS="-lz $LIBS"
20729else
20730 OPT_ZLIB="/usr/local"
20731fi
20732
20733 fi
20734 fi
20735
20736 if test -n "$OPT_ZLIB"; then
20737 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20738 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20739 fi
20740
20741 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20742if test "x$ac_cv_header_zlib_h" = xyes; then :
20743
20744 HAVE_ZLIB_H="1"
20745 if test "$HAVE_LIBZ" != "1"; then
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20747$as_echo_n "checking for gzread in -lz... " >&6; }
20748if ${ac_cv_lib_z_gzread+:} false; then :
20749 $as_echo_n "(cached) " >&6
20750else
20751 ac_check_lib_save_LIBS=$LIBS
20752LIBS="-lz $LIBS"
20753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754/* end confdefs.h. */
20755
20756
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char gzread ();
20761int main (void)
20762{
20763return gzread ();
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768if ac_fn_c_try_link "$LINENO"; then :
20769 ac_cv_lib_z_gzread=yes
20770else
20771 ac_cv_lib_z_gzread=no
20772fi
20773rm -f core conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20775LIBS=$ac_check_lib_save_LIBS
20776fi
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20778$as_echo "$ac_cv_lib_z_gzread" >&6; }
20779if test "x$ac_cv_lib_z_gzread" = xyes; then :
20780
20781 HAVE_LIBZ="1"
20782 LIBS="-lz $LIBS"
20783
20784else
20785 CPPFLAGS=$clean_CPPFLAGS
20786 LDFLAGS=$clean_LDFLAGS
20787fi
20788
20789 fi
20790
20791else
20792
20793 CPPFLAGS=$clean_CPPFLAGS
20794 LDFLAGS=$clean_LDFLAGS
20795
20796fi
20797
20798
20799
20800 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20801 then
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20803$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20804 HAVE_LIBZ=""
20805 CPPFLAGS=$clean_CPPFLAGS
20806 LDFLAGS=$clean_LDFLAGS
20807 LIBS=$clean_LIBS
20808 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20809 then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20811$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20812 CPPFLAGS=$clean_CPPFLAGS
20813 LDFLAGS=$clean_LDFLAGS
20814 LIBS=$clean_LIBS
20815 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20816 then
20817
20818
20819$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20820
20821
20822$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20823
20824
20825 ZLIB_LIBS="-lz"
20826 LIBS="-lz $clean_LIBS"
20827
20828 AMFIXLIB="1"
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20830$as_echo "$as_me: found both libz and libz.h header" >&6;}
20831 curl_zlib_msg="enabled"
20832 fi
20833fi
20834
20835 if test x"$AMFIXLIB" = x1; then
20836 HAVE_LIBZ_TRUE=
20837 HAVE_LIBZ_FALSE='#'
20838else
20839 HAVE_LIBZ_TRUE='#'
20840 HAVE_LIBZ_FALSE=
20841fi
20842
20843
20844
20845
Alex Deymo486467e2017-12-19 19:04:07 +010020846
20847OPT_BROTLI=off
20848
20849# Check whether --with-brotli was given.
20850if test "${with_brotli+set}" = set; then :
20851 withval=$with_brotli; OPT_BROTLI=$withval
20852fi
20853
20854
20855if test X"$OPT_BROTLI" != Xno; then
20856 CLEANLDFLAGS="$LDFLAGS"
20857 CLEANCPPFLAGS="$CPPFLAGS"
20858 CLEANLIBS="$LIBS"
20859
20860 case "$OPT_BROTLI" in
20861 yes)
20862
20863 if test -n "$PKG_CONFIG"; then
20864 PKGCONFIG="$PKG_CONFIG"
20865 else
20866 if test -n "$ac_tool_prefix"; then
20867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20868set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20870$as_echo_n "checking for $ac_word... " >&6; }
20871if ${ac_cv_path_PKGCONFIG+:} false; then :
20872 $as_echo_n "(cached) " >&6
20873else
20874 case $PKGCONFIG in
20875 [\\/]* | ?:[\\/]*)
20876 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20877 ;;
20878 *)
20879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20880as_dummy="$PATH:/usr/bin:/usr/local/bin"
20881for as_dir in $as_dummy
20882do
20883 IFS=$as_save_IFS
20884 test -z "$as_dir" && as_dir=.
20885 for ac_exec_ext in '' $ac_executable_extensions; do
20886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20887 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20889 break 2
20890 fi
20891done
20892 done
20893IFS=$as_save_IFS
20894
20895 ;;
20896esac
20897fi
20898PKGCONFIG=$ac_cv_path_PKGCONFIG
20899if test -n "$PKGCONFIG"; then
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20901$as_echo "$PKGCONFIG" >&6; }
20902else
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20904$as_echo "no" >&6; }
20905fi
20906
20907
20908fi
20909if test -z "$ac_cv_path_PKGCONFIG"; then
20910 ac_pt_PKGCONFIG=$PKGCONFIG
20911 # Extract the first word of "pkg-config", so it can be a program name with args.
20912set dummy pkg-config; ac_word=$2
20913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20914$as_echo_n "checking for $ac_word... " >&6; }
20915if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20916 $as_echo_n "(cached) " >&6
20917else
20918 case $ac_pt_PKGCONFIG in
20919 [\\/]* | ?:[\\/]*)
20920 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20921 ;;
20922 *)
20923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924as_dummy="$PATH:/usr/bin:/usr/local/bin"
20925for as_dir in $as_dummy
20926do
20927 IFS=$as_save_IFS
20928 test -z "$as_dir" && as_dir=.
20929 for ac_exec_ext in '' $ac_executable_extensions; do
20930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20931 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20933 break 2
20934 fi
20935done
20936 done
20937IFS=$as_save_IFS
20938
20939 ;;
20940esac
20941fi
20942ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20943if test -n "$ac_pt_PKGCONFIG"; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20945$as_echo "$ac_pt_PKGCONFIG" >&6; }
20946else
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948$as_echo "no" >&6; }
20949fi
20950
20951 if test "x$ac_pt_PKGCONFIG" = x; then
20952 PKGCONFIG="no"
20953 else
20954 case $cross_compiling:$ac_tool_warned in
20955yes:)
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20958ac_tool_warned=yes ;;
20959esac
20960 PKGCONFIG=$ac_pt_PKGCONFIG
20961 fi
20962else
20963 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20964fi
20965
20966 fi
20967
20968 if test "x$PKGCONFIG" != "xno"; then
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
20970$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
20971 itexists=`
20972 if test -n ""; then
20973 PKG_CONFIG_LIBDIR=""
20974 export PKG_CONFIG_LIBDIR
20975 fi
20976 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
20977
20978 if test -z "$itexists"; then
20979 PKGCONFIG="no"
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981$as_echo "no" >&6; }
20982 else
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20984$as_echo "found" >&6; }
20985 fi
20986 fi
20987
20988
20989 if test "$PKGCONFIG" != "no" ; then
20990 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
20991 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
20992 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
20993 version=`$PKGCONFIG --modversion libbrotlidec`
20994 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
20995 fi
20996
20997 ;;
20998 off)
20999 ;;
21000 *)
21001 PREFIX_BROTLI=$OPT_BROTLI
21002 ;;
21003 esac
21004
21005 if test -n "$PREFIX_BROTLI"; then
21006 LIB_BROTLI="-lbrotlidec"
21007 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21008 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21009 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21010 fi
21011
21012 LDFLAGS="$LDFLAGS $LD_BROTLI"
21013 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21014 LIBS="$LIB_BROTLI $LIBS"
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21017$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21018if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21019 $as_echo_n "(cached) " >&6
21020else
21021 ac_check_lib_save_LIBS=$LIBS
21022LIBS="-lbrotlidec $LIBS"
21023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024/* end confdefs.h. */
21025
21026
21027#ifdef __cplusplus
21028extern "C"
21029#endif
21030char BrotliDecoderDecompress ();
21031int main (void)
21032{
21033return BrotliDecoderDecompress ();
21034 ;
21035 return 0;
21036}
21037_ACEOF
21038if ac_fn_c_try_link "$LINENO"; then :
21039 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21040else
21041 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21042fi
21043rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045LIBS=$ac_check_lib_save_LIBS
21046fi
21047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21048$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21049if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21050 cat >>confdefs.h <<_ACEOF
21051#define HAVE_LIBBROTLIDEC 1
21052_ACEOF
21053
21054 LIBS="-lbrotlidec $LIBS"
21055
21056fi
21057
21058
21059 for ac_header in brotli/decode.h
21060do :
21061 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21062if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21063 cat >>confdefs.h <<_ACEOF
21064#define HAVE_BROTLI_DECODE_H 1
21065_ACEOF
21066 curl_brotli_msg="enabled (libbrotlidec)"
21067 HAVE_BROTLI=1
21068
21069$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21070
21071 HAVE_BROTLI=1
21072
21073
21074fi
21075
21076done
21077
21078
21079 if test X"$OPT_BROTLI" != Xoff &&
21080 test "$HAVE_BROTLI" != "1"; then
21081 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21082 fi
21083
21084 if test "$HAVE_BROTLI" = "1"; then
21085 if test -n "$DIR_BROTLI"; then
21086
21087 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021088 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21089 export CURL_LIBRARY_PATH
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21091$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021092 fi
21093 fi
21094 else
21095 LDFLAGS=$CLEANLDFLAGS
21096 CPPFLAGS=$CLEANCPPFLAGS
21097 LIBS=$CLEANLIBS
21098 fi
21099fi
21100
21101
Elliott Hughes82be86d2017-09-20 17:00:17 -070021102LDAPLIBNAME=""
21103
21104# Check whether --with-ldap-lib was given.
21105if test "${with_ldap_lib+set}" = set; then :
21106 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21107fi
21108
21109
21110LBERLIBNAME=""
21111
21112# Check whether --with-lber-lib was given.
21113if test "${with_lber_lib+set}" = set; then :
21114 withval=$with_lber_lib; LBERLIBNAME="$withval"
21115fi
21116
21117
21118if test x$CURL_DISABLE_LDAP != x1 ; then
21119
21120
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21122$as_echo_n "checking for lber.h... " >&6; }
21123if ${curl_cv_header_lber_h+:} false; then :
21124 $as_echo_n "(cached) " >&6
21125else
21126
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128/* end confdefs.h. */
21129
21130
21131#undef inline
21132#ifdef HAVE_WINDOWS_H
21133#ifndef WIN32_LEAN_AND_MEAN
21134#define WIN32_LEAN_AND_MEAN
21135#endif
21136#include <windows.h>
21137#else
21138#ifdef HAVE_SYS_TYPES_H
21139#include <sys/types.h>
21140#endif
21141#endif
21142#ifndef NULL
21143#define NULL (void *)0
21144#endif
21145#include <lber.h>
21146
21147int main (void)
21148{
21149
21150 BerValue *bvp = NULL;
21151 BerElement *bep = ber_init(bvp);
21152 ber_free(bep, 1);
21153
21154 ;
21155 return 0;
21156}
21157
21158_ACEOF
21159if ac_fn_c_try_compile "$LINENO"; then :
21160
21161 curl_cv_header_lber_h="yes"
21162
21163else
21164
21165 curl_cv_header_lber_h="no"
21166
21167fi
21168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169
21170fi
21171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21172$as_echo "$curl_cv_header_lber_h" >&6; }
21173 if test "$curl_cv_header_lber_h" = "yes"; then
21174
21175cat >>confdefs.h <<_ACEOF
21176#define HAVE_LBER_H 1
21177_ACEOF
21178
21179 #
21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181/* end confdefs.h. */
21182
21183
21184#undef inline
21185#ifdef HAVE_WINDOWS_H
21186#ifndef WIN32_LEAN_AND_MEAN
21187#define WIN32_LEAN_AND_MEAN
21188#endif
21189#include <windows.h>
21190#else
21191#ifdef HAVE_SYS_TYPES_H
21192#include <sys/types.h>
21193#endif
21194#endif
21195#ifndef NULL
21196#define NULL (void *)0
21197#endif
21198#ifndef LDAP_DEPRECATED
21199#define LDAP_DEPRECATED 1
21200#endif
21201#include <ldap.h>
21202
21203int main (void)
21204{
21205
21206 BerValue *bvp = NULL;
21207 BerElement *bep = ber_init(bvp);
21208 ber_free(bep, 1);
21209
21210 ;
21211 return 0;
21212}
21213
21214_ACEOF
21215if ac_fn_c_try_compile "$LINENO"; then :
21216
21217 curl_cv_need_header_lber_h="no"
21218
21219else
21220
21221 curl_cv_need_header_lber_h="yes"
21222
21223fi
21224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 #
21226 case "$curl_cv_need_header_lber_h" in
21227 yes)
21228
21229cat >>confdefs.h <<_ACEOF
21230#define NEED_LBER_H 1
21231_ACEOF
21232
21233 ;;
21234 esac
21235 fi
21236
21237
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21239$as_echo_n "checking for ldap.h... " >&6; }
21240if ${curl_cv_header_ldap_h+:} false; then :
21241 $as_echo_n "(cached) " >&6
21242else
21243
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245/* end confdefs.h. */
21246
21247
21248#undef inline
21249#ifdef HAVE_WINDOWS_H
21250#ifndef WIN32_LEAN_AND_MEAN
21251#define WIN32_LEAN_AND_MEAN
21252#endif
21253#include <windows.h>
21254#else
21255#ifdef HAVE_SYS_TYPES_H
21256#include <sys/types.h>
21257#endif
21258#endif
21259#ifndef LDAP_DEPRECATED
21260#define LDAP_DEPRECATED 1
21261#endif
21262#ifdef NEED_LBER_H
21263#include <lber.h>
21264#endif
21265#include <ldap.h>
21266
21267int main (void)
21268{
21269
21270 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21271 int res = ldap_unbind(ldp);
21272
21273 ;
21274 return 0;
21275}
21276
21277_ACEOF
21278if ac_fn_c_try_compile "$LINENO"; then :
21279
21280 curl_cv_header_ldap_h="yes"
21281
21282else
21283
21284 curl_cv_header_ldap_h="no"
21285
21286fi
21287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288
21289fi
21290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21291$as_echo "$curl_cv_header_ldap_h" >&6; }
21292 case "$curl_cv_header_ldap_h" in
21293 yes)
21294
21295cat >>confdefs.h <<_ACEOF
21296#define HAVE_LDAP_H 1
21297_ACEOF
21298
21299 ;;
21300 esac
21301
21302
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21304$as_echo_n "checking for ldapssl.h... " >&6; }
21305if ${curl_cv_header_ldapssl_h+:} false; then :
21306 $as_echo_n "(cached) " >&6
21307else
21308
21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310/* end confdefs.h. */
21311
21312
21313#undef inline
21314#ifdef HAVE_WINDOWS_H
21315#ifndef WIN32_LEAN_AND_MEAN
21316#define WIN32_LEAN_AND_MEAN
21317#endif
21318#include <windows.h>
21319#else
21320#ifdef HAVE_SYS_TYPES_H
21321#include <sys/types.h>
21322#endif
21323#endif
21324#ifndef NULL
21325#define NULL (void *)0
21326#endif
21327#ifndef LDAP_DEPRECATED
21328#define LDAP_DEPRECATED 1
21329#endif
21330#ifdef NEED_LBER_H
21331#include <lber.h>
21332#endif
21333#ifdef HAVE_LDAP_H
21334#include <ldap.h>
21335#endif
21336#include <ldapssl.h>
21337
21338int main (void)
21339{
21340
21341 char *cert_label = NULL;
21342 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21343
21344 ;
21345 return 0;
21346}
21347
21348_ACEOF
21349if ac_fn_c_try_compile "$LINENO"; then :
21350
21351 curl_cv_header_ldapssl_h="yes"
21352
21353else
21354
21355 curl_cv_header_ldapssl_h="no"
21356
21357fi
21358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359
21360fi
21361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21362$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21363 case "$curl_cv_header_ldapssl_h" in
21364 yes)
21365
21366cat >>confdefs.h <<_ACEOF
21367#define HAVE_LDAPSSL_H 1
21368_ACEOF
21369
21370 ;;
21371 esac
21372
21373
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21375$as_echo_n "checking for ldap_ssl.h... " >&6; }
21376if ${curl_cv_header_ldap_ssl_h+:} false; then :
21377 $as_echo_n "(cached) " >&6
21378else
21379
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381/* end confdefs.h. */
21382
21383
21384#undef inline
21385#ifdef HAVE_WINDOWS_H
21386#ifndef WIN32_LEAN_AND_MEAN
21387#define WIN32_LEAN_AND_MEAN
21388#endif
21389#include <windows.h>
21390#else
21391#ifdef HAVE_SYS_TYPES_H
21392#include <sys/types.h>
21393#endif
21394#endif
21395#ifndef LDAP_DEPRECATED
21396#define LDAP_DEPRECATED 1
21397#endif
21398#ifdef NEED_LBER_H
21399#include <lber.h>
21400#endif
21401#ifdef HAVE_LDAP_H
21402#include <ldap.h>
21403#endif
21404#include <ldap_ssl.h>
21405
21406int main (void)
21407{
21408
21409 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21410
21411 ;
21412 return 0;
21413}
21414
21415_ACEOF
21416if ac_fn_c_try_compile "$LINENO"; then :
21417
21418 curl_cv_header_ldap_ssl_h="yes"
21419
21420else
21421
21422 curl_cv_header_ldap_ssl_h="no"
21423
21424fi
21425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21429$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21430 case "$curl_cv_header_ldap_ssl_h" in
21431 yes)
21432
21433cat >>confdefs.h <<_ACEOF
21434#define HAVE_LDAP_SSL_H 1
21435_ACEOF
21436
21437 ;;
21438 esac
21439
21440
21441 if test -z "$LDAPLIBNAME" ; then
21442 if test "$curl_cv_native_windows" = "yes"; then
21443 LDAPLIBNAME="wldap32"
21444 LBERLIBNAME="no"
21445 fi
21446 fi
21447
21448 if test "$LDAPLIBNAME" ; then
21449 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21451$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21452if eval \${$as_ac_Lib+:} false; then :
21453 $as_echo_n "(cached) " >&6
21454else
21455 ac_check_lib_save_LIBS=$LIBS
21456LIBS="-l"$LDAPLIBNAME" $LIBS"
21457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458/* end confdefs.h. */
21459
21460
21461#ifdef __cplusplus
21462extern "C"
21463#endif
21464char ldap_init ();
21465int main (void)
21466{
21467return ldap_init ();
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472if ac_fn_c_try_link "$LINENO"; then :
21473 eval "$as_ac_Lib=yes"
21474else
21475 eval "$as_ac_Lib=no"
21476fi
21477rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479LIBS=$ac_check_lib_save_LIBS
21480fi
21481eval ac_res=\$$as_ac_Lib
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21483$as_echo "$ac_res" >&6; }
21484if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21485 cat >>confdefs.h <<_ACEOF
21486#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21487_ACEOF
21488
21489 LIBS="-l"$LDAPLIBNAME" $LIBS"
21490
21491else
21492
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21494$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21495
21496$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21497
21498 CURL_DISABLE_LDAP=1
21499
21500
21501$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21502
21503 CURL_DISABLE_LDAPS=1
21504
21505fi
21506
21507 else
21508
21509 #
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21511$as_echo_n "checking for LDAP libraries... " >&6; }
21512 #
21513 u_libs=""
21514 #
21515
21516 #
21517 curl_cv_save_LIBS="$LIBS"
21518 curl_cv_ldap_LIBS="unknown"
21519 #
21520 for x_nlibs in '' "$u_libs" \
21521 '-lldap' \
21522 '-lldap -llber' \
21523 '-llber -lldap' \
21524 '-lldapssl -lldapx -lldapsdk' \
Haibo Huang65021c72019-03-27 15:37:23 -070021525 '-lldapsdk -lldapx -lldapssl' \
21526 '-lldap -llber -lssl -lcrypto' ; do
21527
Elliott Hughes82be86d2017-09-20 17:00:17 -070021528 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21529 if test -z "$x_nlibs"; then
21530 LIBS="$curl_cv_save_LIBS"
21531 else
21532 LIBS="$x_nlibs $curl_cv_save_LIBS"
21533 fi
21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535/* end confdefs.h. */
21536
21537
21538#undef inline
21539#ifdef HAVE_WINDOWS_H
21540#ifndef WIN32_LEAN_AND_MEAN
21541#define WIN32_LEAN_AND_MEAN
21542#endif
21543#include <windows.h>
21544#else
21545#ifdef HAVE_SYS_TYPES_H
21546#include <sys/types.h>
21547#endif
21548#endif
21549#ifndef NULL
21550#define NULL (void *)0
21551#endif
21552#ifndef LDAP_DEPRECATED
21553#define LDAP_DEPRECATED 1
21554#endif
21555#ifdef NEED_LBER_H
21556#include <lber.h>
21557#endif
21558#ifdef HAVE_LDAP_H
21559#include <ldap.h>
21560#endif
21561
21562int main (void)
21563{
21564
21565 BerValue *bvp = NULL;
21566 BerElement *bep = ber_init(bvp);
21567 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21568 int res = ldap_unbind(ldp);
21569 ber_free(bep, 1);
21570
21571 ;
21572 return 0;
21573}
21574
21575_ACEOF
21576if ac_fn_c_try_link "$LINENO"; then :
21577
21578 curl_cv_ldap_LIBS="$x_nlibs"
21579
21580fi
21581rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 fi
21584 done
21585 #
21586 LIBS="$curl_cv_save_LIBS"
21587 #
21588 case X-"$curl_cv_ldap_LIBS" in
21589 X-unknown)
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21591$as_echo "cannot find LDAP libraries" >&6; }
21592 ;;
21593 X-)
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21595$as_echo "no additional lib required" >&6; }
21596 ;;
21597 *)
21598 if test -z "$curl_cv_save_LIBS"; then
21599 LIBS="$curl_cv_ldap_LIBS"
21600 else
21601 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21602 fi
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21604$as_echo "$curl_cv_ldap_LIBS" >&6; }
21605 ;;
21606 esac
21607 #
21608
21609 case X-"$curl_cv_ldap_LIBS" in
21610 X-unknown)
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21612$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21613
21614$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21615
21616 CURL_DISABLE_LDAP=1
21617
21618
21619$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21620
21621 CURL_DISABLE_LDAPS=1
21622
21623 ;;
21624 esac
21625 fi
21626fi
21627
21628if test x$CURL_DISABLE_LDAP != x1 ; then
21629
21630 if test "$LBERLIBNAME" ; then
21631 if test "$LBERLIBNAME" != "no" ; then
21632 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21634$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21635if eval \${$as_ac_Lib+:} false; then :
21636 $as_echo_n "(cached) " >&6
21637else
21638 ac_check_lib_save_LIBS=$LIBS
21639LIBS="-l"$LBERLIBNAME" $LIBS"
21640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641/* end confdefs.h. */
21642
21643
21644#ifdef __cplusplus
21645extern "C"
21646#endif
21647char ber_free ();
21648int main (void)
21649{
21650return ber_free ();
21651 ;
21652 return 0;
21653}
21654_ACEOF
21655if ac_fn_c_try_link "$LINENO"; then :
21656 eval "$as_ac_Lib=yes"
21657else
21658 eval "$as_ac_Lib=no"
21659fi
21660rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21662LIBS=$ac_check_lib_save_LIBS
21663fi
21664eval ac_res=\$$as_ac_Lib
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21666$as_echo "$ac_res" >&6; }
21667if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21668 cat >>confdefs.h <<_ACEOF
21669#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21670_ACEOF
21671
21672 LIBS="-l"$LBERLIBNAME" $LIBS"
21673
21674else
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21677$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21678
21679$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21680
21681 CURL_DISABLE_LDAP=1
21682
21683
21684$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21685
21686 CURL_DISABLE_LDAPS=1
21687
21688fi
21689
21690 fi
21691 fi
21692fi
21693
21694if test x$CURL_DISABLE_LDAP != x1 ; then
21695 for ac_func in ldap_url_parse ldap_init_fd
21696do :
21697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21699if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21700 cat >>confdefs.h <<_ACEOF
21701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21702_ACEOF
21703
21704fi
21705done
21706
21707
21708 if test "$LDAPLIBNAME" = "wldap32"; then
21709 curl_ldap_msg="enabled (winldap)"
21710
21711$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21712
21713 else
21714 curl_ldap_msg="enabled (OpenLDAP)"
21715 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21716
21717$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21718
21719 USE_OPENLDAP=1
21720
21721 fi
21722 fi
21723fi
21724
21725if test x$CURL_DISABLE_LDAPS != x1 ; then
21726 curl_ldaps_msg="enabled"
21727fi
21728
21729
21730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21731$as_echo_n "checking whether to enable IPv6... " >&6; }
21732# Check whether --enable-ipv6 was given.
21733if test "${enable_ipv6+set}" = set; then :
21734 enableval=$enable_ipv6; case "$enableval" in
21735 no)
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737$as_echo "no" >&6; }
21738 ipv6=no
21739 ;;
21740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21741$as_echo "yes" >&6; }
21742 ipv6=yes
21743 ;;
21744 esac
21745else
21746 if test "$cross_compiling" = yes; then :
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21748$as_echo "yes" >&6; }
21749 ipv6=yes
21750
21751else
21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753/* end confdefs.h. */
21754 /* is AF_INET6 available? */
21755#include <sys/types.h>
21756#ifdef HAVE_WINSOCK2_H
21757#include <winsock2.h>
21758#else
21759#include <sys/socket.h>
21760#endif
21761#include <stdlib.h> /* for exit() */
21762main()
21763{
21764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21765 exit(1);
21766 else
21767 exit(0);
21768}
21769
21770_ACEOF
21771if ac_fn_c_try_run "$LINENO"; then :
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21773$as_echo "yes" >&6; }
21774 ipv6=yes
21775else
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21777$as_echo "no" >&6; }
21778 ipv6=no
21779fi
21780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21781 conftest.$ac_objext conftest.beam conftest.$ac_ext
21782fi
21783
21784fi
21785
21786
21787if test "$ipv6" = "yes"; then
21788 curl_ipv6_msg="enabled"
21789fi
21790
21791# Check if struct sockaddr_in6 have sin6_scope_id member
21792if test "$ipv6" = yes; then
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21794$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796/* end confdefs.h. */
21797
21798#include <sys/types.h>
21799#ifdef HAVE_WINSOCK2_H
21800#include <winsock2.h>
21801#include <ws2tcpip.h>
21802#else
21803#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021804#if defined (__TANDEM)
21805# include <netinet/in6.h>
21806#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021807#endif
21808int main (void)
21809{
21810struct sockaddr_in6 s; s.sin6_scope_id = 0;
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815if ac_fn_c_try_compile "$LINENO"; then :
21816 have_sin6_scope_id=yes
21817fi
21818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 if test "$have_sin6_scope_id" = yes; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21821$as_echo "yes" >&6; }
21822
21823$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21824
21825 else
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21827$as_echo "no" >&6; }
21828 fi
21829fi
21830
21831
21832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21833$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021834
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021835
21836 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021837 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21838 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021839 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021840 curl_cv_writable_argv=cross
21841
21842else
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844/* end confdefs.h. */
21845
Elliott Hughes82be86d2017-09-20 17:00:17 -070021846int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021847 argv00 = ' ';
21848 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021849}
21850
Elliott Hughes82be86d2017-09-20 17:00:17 -070021851_ACEOF
21852if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021853 curl_cv_writable_argv=yes
21854
21855else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021856 curl_cv_writable_argv=no
21857
21858fi
21859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21860 conftest.$ac_objext conftest.beam conftest.$ac_ext
21861fi
21862
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021863 LD_LIBRARY_PATH=$old # restore
21864
Elliott Hughes82be86d2017-09-20 17:00:17 -070021865case $curl_cv_writable_argv in
21866yes)
21867
21868$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21869
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21871$as_echo "yes" >&6; }
21872 ;;
21873no)
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875$as_echo "no" >&6; }
21876 ;;
21877*)
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879$as_echo "no" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21881$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21882 ;;
21883esac
21884
21885
21886
21887GSSAPI_ROOT="/usr"
21888
21889# Check whether --with-gssapi-includes was given.
21890if test "${with_gssapi_includes+set}" = set; then :
21891 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21892 want_gss="yes"
21893
21894fi
21895
21896
21897
21898# Check whether --with-gssapi-libs was given.
21899if test "${with_gssapi_libs+set}" = set; then :
21900 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21901 want_gss="yes"
21902
21903fi
21904
21905
21906
21907# Check whether --with-gssapi was given.
21908if test "${with_gssapi+set}" = set; then :
21909 withval=$with_gssapi;
21910 GSSAPI_ROOT="$withval"
21911 if test x"$GSSAPI_ROOT" != xno; then
21912 want_gss="yes"
21913 if test x"$GSSAPI_ROOT" = xyes; then
21914 GSSAPI_ROOT="/usr"
21915 fi
21916 fi
21917
21918fi
21919
21920
21921: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21922
21923save_CPPFLAGS="$CPPFLAGS"
21924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21925$as_echo_n "checking if GSS-API support is requested... " >&6; }
21926if test x"$want_gss" = xyes; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21928$as_echo "yes" >&6; }
21929
21930 if test -z "$GSSAPI_INCS"; then
21931 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21932 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21933 elif test -f "$KRB5CONFIG"; then
21934 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21935 elif test "$GSSAPI_ROOT" != "yes"; then
21936 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21937 fi
21938 fi
21939
21940 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21941
21942 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21943if test "x$ac_cv_header_gss_h" = xyes; then :
21944
21945
21946$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21947
21948 gnu_gss=yes
21949
21950else
21951
21952 for ac_header in gssapi/gssapi.h
21953do :
21954 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21955if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21956 cat >>confdefs.h <<_ACEOF
21957#define HAVE_GSSAPI_GSSAPI_H 1
21958_ACEOF
21959
21960else
21961 not_mit=1
21962fi
21963
21964done
21965
21966 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21967do :
21968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21970$ac_includes_default
21971#ifdef HAVE_GSSAPI_GSSAPI_H
21972#include <gssapi/gssapi.h>
21973#endif
21974
21975"
21976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21977 cat >>confdefs.h <<_ACEOF
21978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21979_ACEOF
21980
21981else
21982 not_mit=1
21983fi
21984
21985done
21986
21987 if test "x$not_mit" = "x1"; then
21988 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21989if test "x$ac_cv_header_gssapi_h" = xyes; then :
21990
21991
21992$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21993
21994
21995else
21996
21997 want_gss=no
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21999$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22000
22001
22002fi
22003
22004
22005 else
22006
22007$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22010$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012/* end confdefs.h. */
22013
22014
22015#include <gssapi/gssapi.h>
22016#include <gssapi/gssapi_generic.h>
22017#include <gssapi/gssapi_krb5.h>
22018
22019int main (void)
22020{
22021
22022 gss_import_name(
22023 (OM_uint32 *)0,
22024 (gss_buffer_t)0,
22025 GSS_C_NT_HOSTBASED_SERVICE,
22026 (gss_name_t *)0);
22027
22028 ;
22029 return 0;
22030}
22031
22032_ACEOF
22033if ac_fn_c_try_compile "$LINENO"; then :
22034
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22036$as_echo "yes" >&6; }
22037
22038else
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041$as_echo "no" >&6; }
22042
22043$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22044
22045
22046fi
22047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 fi
22049
22050
22051fi
22052
22053
22054else
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22056$as_echo "no" >&6; }
22057fi
22058if test x"$want_gss" = xyes; then
22059
22060$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22061
22062 HAVE_GSSAPI=1
22063 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22064
22065 if test -n "$gnu_gss"; then
22066 curl_gss_msg="enabled (GNU GSS)"
22067 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22068 LIBS="-lgss $LIBS"
22069 elif test -z "$GSSAPI_LIB_DIR"; then
22070 case $host in
22071 *-*-darwin*)
22072 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22073 ;;
22074 *)
22075 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22076 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22077 LIBS="$gss_libs $LIBS"
22078 elif test -f "$KRB5CONFIG"; then
22079 gss_libs=`$KRB5CONFIG --libs gssapi`
22080 LIBS="$gss_libs $LIBS"
22081 else
22082 case $host in
22083 *-hp-hpux*)
22084 gss_libname="gss"
22085 ;;
22086 *)
22087 gss_libname="gssapi"
22088 ;;
22089 esac
22090
22091 if test "$GSSAPI_ROOT" != "yes"; then
22092 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22093 LIBS="-l$gss_libname $LIBS"
22094 else
22095 LIBS="-l$gss_libname $LIBS"
22096 fi
22097 fi
22098 ;;
22099 esac
22100 else
22101 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22102 case $host in
22103 *-hp-hpux*)
22104 LIBS="-lgss $LIBS"
22105 ;;
22106 *)
22107 LIBS="-lgssapi $LIBS"
22108 ;;
22109 esac
22110 fi
22111else
22112 CPPFLAGS="$save_CPPFLAGS"
22113fi
22114
Alex Deymo486467e2017-12-19 19:04:07 +010022115build_libstubgss=no
22116if test x"$want_gss" = "xyes"; then
22117 build_libstubgss=yes
22118fi
22119
22120 if test "x$build_libstubgss" = "xyes"; then
22121 BUILD_STUB_GSS_TRUE=
22122 BUILD_STUB_GSS_FALSE='#'
22123else
22124 BUILD_STUB_GSS_TRUE='#'
22125 BUILD_STUB_GSS_FALSE=
22126fi
22127
22128
22129
22130DEFAULT_SSL_BACKEND=no
22131VALID_DEFAULT_SSL_BACKEND=
22132
22133# Check whether --with-default-ssl-backend was given.
22134if test "${with_default_ssl_backend+set}" = set; then :
22135 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22136fi
22137
22138case "$DEFAULT_SSL_BACKEND" in
22139 no)
22140 ;;
22141 default|yes)
22142 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22143 ;;
22144 *)
22145
22146 VALID_DEFAULT_SSL_BACKEND=no
22147 ;;
22148esac
22149
22150
Elliott Hughes82be86d2017-09-20 17:00:17 -070022151
22152OPT_WINSSL=no
22153
22154# Check whether --with-winssl was given.
22155if test "${with_winssl+set}" = set; then :
22156 withval=$with_winssl; OPT_WINSSL=$withval
22157fi
22158
22159
Haibo Huang51d9d882019-02-06 01:36:06 -080022160
22161# Check whether --with-schannel was given.
22162if test "${with_schannel+set}" = set; then :
22163 withval=$with_schannel; OPT_WINSSL=$withval
22164fi
22165
22166
Elliott Hughes82be86d2017-09-20 17:00:17 -070022167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22168$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022169if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22170 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022171 if test "x$OPT_WINSSL" != "xno" &&
22172 test "x$curl_cv_native_windows" = "xyes"; then
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22174$as_echo "yes" >&6; }
22175
22176$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22177
22178 USE_SCHANNEL=1
22179
Alex Deymo486467e2017-12-19 19:04:07 +010022180 ssl_msg="Windows-native"
22181 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022182 WINSSL_ENABLED=1
22183 # --with-winssl implies --enable-sspi
22184
22185$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22186
22187 USE_WINDOWS_SSPI=1
22188
22189 curl_sspi_msg="enabled"
22190 LIBS="-lcrypt32 $LIBS"
22191 else
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22193$as_echo "no" >&6; }
22194 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022195 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022196else
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198$as_echo "no" >&6; }
22199fi
22200
Haibo Huang65021c72019-03-27 15:37:23 -070022201OPT_SECURETRANSPORT=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070022202
22203# Check whether --with-darwinssl was given.
22204if test "${with_darwinssl+set}" = set; then :
Haibo Huang65021c72019-03-27 15:37:23 -070022205 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
Elliott Hughes82be86d2017-09-20 17:00:17 -070022206fi
22207
22208
Haibo Huang65021c72019-03-27 15:37:23 -070022209
22210# Check whether --with-secure-transport was given.
22211if test "${with_secure_transport+set}" = set; then :
22212 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
22213fi
22214
22215
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
22217$as_echo_n "checking whether to enable Secure Transport... " >&6; }
22218if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
22219 if test "x$OPT_SECURETRANSPORT" != "xno" &&
Elliott Hughes82be86d2017-09-20 17:00:17 -070022220 test -d "/System/Library/Frameworks/Security.framework"; then
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22222$as_echo "yes" >&6; }
22223
Haibo Huang65021c72019-03-27 15:37:23 -070022224$as_echo "#define USE_SECTRANSP 1" >>confdefs.h
Elliott Hughes82be86d2017-09-20 17:00:17 -070022225
Haibo Huang65021c72019-03-27 15:37:23 -070022226 USE_SECTRANSP=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022227
Haibo Huang65021c72019-03-27 15:37:23 -070022228 ssl_msg="Secure Transport"
22229 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22230 SECURETRANSPORT_ENABLED=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022231 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22232 else
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234$as_echo "no" >&6; }
22235 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022236 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022237else
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239$as_echo "no" >&6; }
22240fi
22241
Haibo Huang65021c72019-03-27 15:37:23 -070022242OPT_AMISSL=no
22243
22244# Check whether --with-amissl was given.
22245if test "${with_amissl+set}" = set; then :
22246 withval=$with_amissl; OPT_AMISSL=$withval
22247fi
22248
22249
22250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
22251$as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
Haibo Huang34ab3462019-05-22 00:50:27 -070022252if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
Haibo Huang65021c72019-03-27 15:37:23 -070022253 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
22254 ssl_msg=
22255 if test "x$OPT_AMISSL" != "xno"; then
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22257$as_echo "yes" >&6; }
22258 ssl_msg="AmiSSL"
22259 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22260 AMISSL_ENABLED=1
22261 LIBS="-lamisslauto $LIBS"
22262
22263$as_echo "#define USE_AMISSL 1" >>confdefs.h
22264
22265
22266$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22267
22268 else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270$as_echo "no" >&6; }
22271 fi
22272 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275$as_echo "no" >&6; }
22276 fi
22277else
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22279$as_echo "no" >&6; }
22280fi
22281
Elliott Hughes82be86d2017-09-20 17:00:17 -070022282
22283OPT_SSL=off
22284ca="no"
22285
22286# Check whether --with-ssl was given.
22287if test "${with_ssl+set}" = set; then :
22288 withval=$with_ssl; OPT_SSL=$withval
22289fi
22290
22291
Alex Deymo486467e2017-12-19 19:04:07 +010022292if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22293 test X"$OPT_SSL" != Xno; then
22294 ssl_msg=
22295
Elliott Hughes82be86d2017-09-20 17:00:17 -070022296 CLEANLDFLAGS="$LDFLAGS"
22297 CLEANCPPFLAGS="$CPPFLAGS"
22298 CLEANLIBS="$LIBS"
22299
22300 case $host in
22301 *-*-msys* | *-*-mingw*)
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22303$as_echo_n "checking for gdi32... " >&6; }
22304 my_ac_save_LIBS=$LIBS
22305 LIBS="-lgdi32 $LIBS"
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307/* end confdefs.h. */
22308#include <windef.h>
22309 #include <wingdi.h>
22310int main (void)
22311{
22312GdiFlush();
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317if ac_fn_c_try_link "$LINENO"; then :
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22319$as_echo "yes" >&6; }
22320else
22321 LIBS=$my_ac_save_LIBS
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22323$as_echo "no" >&6; }
22324
22325fi
22326rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22328 ;;
22329 esac
22330
22331 case "$OPT_SSL" in
22332 yes)
22333 if test x$cross_compiling != xyes; then
22334 PKGTEST="yes"
22335 fi
22336 PREFIX_OPENSSL=/usr/local/ssl
22337 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22338 ;;
22339 off)
22340 if test x$cross_compiling != xyes; then
22341 PKGTEST="yes"
22342 fi
22343 PREFIX_OPENSSL=
22344 ;;
22345 *)
22346 PKGTEST="no"
22347 PREFIX_OPENSSL=$OPT_SSL
22348
22349 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022350 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022351 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22352$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022353 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022354 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22355 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022356 fi
22357
22358 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22359 if test "$PREFIX_OPENSSL" != "/usr" ; then
22360 SSL_LDFLAGS="-L$LIB_OPENSSL"
22361 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22362 fi
22363 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22364 ;;
22365 esac
22366
22367 if test "$PKGTEST" = "yes"; then
22368
22369
22370 if test -n "$PKG_CONFIG"; then
22371 PKGCONFIG="$PKG_CONFIG"
22372 else
22373 if test -n "$ac_tool_prefix"; then
22374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22377$as_echo_n "checking for $ac_word... " >&6; }
22378if ${ac_cv_path_PKGCONFIG+:} false; then :
22379 $as_echo_n "(cached) " >&6
22380else
22381 case $PKGCONFIG in
22382 [\\/]* | ?:[\\/]*)
22383 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22384 ;;
22385 *)
22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22387as_dummy="$PATH:/usr/bin:/usr/local/bin"
22388for as_dir in $as_dummy
22389do
22390 IFS=$as_save_IFS
22391 test -z "$as_dir" && as_dir=.
22392 for ac_exec_ext in '' $ac_executable_extensions; do
22393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22394 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396 break 2
22397 fi
22398done
22399 done
22400IFS=$as_save_IFS
22401
22402 ;;
22403esac
22404fi
22405PKGCONFIG=$ac_cv_path_PKGCONFIG
22406if test -n "$PKGCONFIG"; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22408$as_echo "$PKGCONFIG" >&6; }
22409else
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411$as_echo "no" >&6; }
22412fi
22413
22414
22415fi
22416if test -z "$ac_cv_path_PKGCONFIG"; then
22417 ac_pt_PKGCONFIG=$PKGCONFIG
22418 # Extract the first word of "pkg-config", so it can be a program name with args.
22419set dummy pkg-config; ac_word=$2
22420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22421$as_echo_n "checking for $ac_word... " >&6; }
22422if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22423 $as_echo_n "(cached) " >&6
22424else
22425 case $ac_pt_PKGCONFIG in
22426 [\\/]* | ?:[\\/]*)
22427 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22428 ;;
22429 *)
22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431as_dummy="$PATH:/usr/bin:/usr/local/bin"
22432for as_dir in $as_dummy
22433do
22434 IFS=$as_save_IFS
22435 test -z "$as_dir" && as_dir=.
22436 for ac_exec_ext in '' $ac_executable_extensions; do
22437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22438 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22440 break 2
22441 fi
22442done
22443 done
22444IFS=$as_save_IFS
22445
22446 ;;
22447esac
22448fi
22449ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22450if test -n "$ac_pt_PKGCONFIG"; then
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22452$as_echo "$ac_pt_PKGCONFIG" >&6; }
22453else
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455$as_echo "no" >&6; }
22456fi
22457
22458 if test "x$ac_pt_PKGCONFIG" = x; then
22459 PKGCONFIG="no"
22460 else
22461 case $cross_compiling:$ac_tool_warned in
22462yes:)
22463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22465ac_tool_warned=yes ;;
22466esac
22467 PKGCONFIG=$ac_pt_PKGCONFIG
22468 fi
22469else
22470 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22471fi
22472
22473 fi
22474
22475 if test "x$PKGCONFIG" != "xno"; then
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22477$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22478 itexists=`
22479 if test -n "$OPENSSL_PCDIR"; then
22480 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22481 export PKG_CONFIG_LIBDIR
22482 fi
22483 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22484
22485 if test -z "$itexists"; then
22486 PKGCONFIG="no"
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22488$as_echo "no" >&6; }
22489 else
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22491$as_echo "found" >&6; }
22492 fi
22493 fi
22494
22495
22496 if test "$PKGCONFIG" != "no" ; then
22497 SSL_LIBS=`
22498 if test -n "$OPENSSL_PCDIR"; then
22499 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22500 export PKG_CONFIG_LIBDIR
22501 fi
Haibo Huang21926d52019-01-08 14:27:10 -080022502 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
Elliott Hughes82be86d2017-09-20 17:00:17 -070022503
22504 SSL_LDFLAGS=`
22505 if test -n "$OPENSSL_PCDIR"; then
22506 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22507 export PKG_CONFIG_LIBDIR
22508 fi
22509 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22510
22511 SSL_CPPFLAGS=`
22512 if test -n "$OPENSSL_PCDIR"; then
22513 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22514 export PKG_CONFIG_LIBDIR
22515 fi
22516 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22517
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22520$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22522$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22524$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22525
22526 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22527
22528 LIBS="$SSL_LIBS $LIBS"
22529 fi
22530 fi
22531
22532 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22533 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22536$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22537if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22538 $as_echo_n "(cached) " >&6
22539else
22540 ac_check_lib_save_LIBS=$LIBS
22541LIBS="-lcrypto $LIBS"
22542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543/* end confdefs.h. */
22544
22545
22546#ifdef __cplusplus
22547extern "C"
22548#endif
22549char HMAC_Update ();
22550int main (void)
22551{
22552return HMAC_Update ();
22553 ;
22554 return 0;
22555}
22556_ACEOF
22557if ac_fn_c_try_link "$LINENO"; then :
22558 ac_cv_lib_crypto_HMAC_Update=yes
22559else
22560 ac_cv_lib_crypto_HMAC_Update=no
22561fi
22562rm -f core conftest.err conftest.$ac_objext \
22563 conftest$ac_exeext conftest.$ac_ext
22564LIBS=$ac_check_lib_save_LIBS
22565fi
22566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22567$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22568if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22569
22570 HAVECRYPTO="yes"
22571 LIBS="-lcrypto $LIBS"
22572
22573else
22574
22575 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022576 if test "$PKGCONFIG" = "no" ; then
22577 # only set this if pkg-config wasn't used
22578 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22579 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22581$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22582if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22583 $as_echo_n "(cached) " >&6
22584else
22585 ac_check_lib_save_LIBS=$LIBS
22586LIBS="-lcrypto $LIBS"
22587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588/* end confdefs.h. */
22589
22590
22591#ifdef __cplusplus
22592extern "C"
22593#endif
22594char HMAC_Init_ex ();
22595int main (void)
22596{
22597return HMAC_Init_ex ();
22598 ;
22599 return 0;
22600}
22601_ACEOF
22602if ac_fn_c_try_link "$LINENO"; then :
22603 ac_cv_lib_crypto_HMAC_Init_ex=yes
22604else
22605 ac_cv_lib_crypto_HMAC_Init_ex=no
22606fi
22607rm -f core conftest.err conftest.$ac_objext \
22608 conftest$ac_exeext conftest.$ac_ext
22609LIBS=$ac_check_lib_save_LIBS
22610fi
22611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22612$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22613if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22614
22615 HAVECRYPTO="yes"
22616 LIBS="-lcrypto $LIBS"
22617else
22618
22619
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22621$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022622 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624/* end confdefs.h. */
22625
22626 #include <openssl/err.h>
22627
22628int main (void)
22629{
22630
22631 ERR_clear_error();
22632
22633 ;
22634 return 0;
22635}
22636_ACEOF
22637if ac_fn_c_try_link "$LINENO"; then :
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22640$as_echo "yes" >&6; }
22641 HAVECRYPTO="yes"
22642
22643else
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646$as_echo "no" >&6; }
22647
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22649$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022650 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652/* end confdefs.h. */
22653
22654 #include <openssl/err.h>
22655
22656int main (void)
22657{
22658
22659 ERR_clear_error();
22660
22661 ;
22662 return 0;
22663}
22664_ACEOF
22665if ac_fn_c_try_link "$LINENO"; then :
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22668$as_echo "yes" >&6; }
22669 HAVECRYPTO="yes"
22670
22671else
22672
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674$as_echo "no" >&6; }
22675 LDFLAGS="$CLEANLDFLAGS"
22676 CPPFLAGS="$CLEANCPPFLAGS"
22677 LIBS="$CLEANLIBS"
22678
22679
22680fi
22681rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22683
22684
22685fi
22686rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22688
22689
22690fi
22691
22692
22693fi
22694
22695
22696 if test X"$HAVECRYPTO" = X"yes"; then
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22699$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22700if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22701 $as_echo_n "(cached) " >&6
22702else
22703 ac_check_lib_save_LIBS=$LIBS
22704LIBS="-lssl $LIBS"
22705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706/* end confdefs.h. */
22707
22708
22709#ifdef __cplusplus
22710extern "C"
22711#endif
22712char SSL_connect ();
22713int main (void)
22714{
22715return SSL_connect ();
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720if ac_fn_c_try_link "$LINENO"; then :
22721 ac_cv_lib_ssl_SSL_connect=yes
22722else
22723 ac_cv_lib_ssl_SSL_connect=no
22724fi
22725rm -f core conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22727LIBS=$ac_check_lib_save_LIBS
22728fi
22729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22730$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22731if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22732 cat >>confdefs.h <<_ACEOF
22733#define HAVE_LIBSSL 1
22734_ACEOF
22735
22736 LIBS="-lssl $LIBS"
22737
22738fi
22739
22740
22741 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22743$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22744 OLIBS=$LIBS
22745 LIBS="-lRSAglue -lrsaref $LIBS"
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22747$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22748if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22749 $as_echo_n "(cached) " >&6
22750else
22751 ac_check_lib_save_LIBS=$LIBS
22752LIBS="-lssl $LIBS"
22753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754/* end confdefs.h. */
22755
22756
22757#ifdef __cplusplus
22758extern "C"
22759#endif
22760char SSL_connect ();
22761int main (void)
22762{
22763return SSL_connect ();
22764 ;
22765 return 0;
22766}
22767_ACEOF
22768if ac_fn_c_try_link "$LINENO"; then :
22769 ac_cv_lib_ssl_SSL_connect=yes
22770else
22771 ac_cv_lib_ssl_SSL_connect=no
22772fi
22773rm -f core conftest.err conftest.$ac_objext \
22774 conftest$ac_exeext conftest.$ac_ext
22775LIBS=$ac_check_lib_save_LIBS
22776fi
22777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22778$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22779if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22780 cat >>confdefs.h <<_ACEOF
22781#define HAVE_LIBSSL 1
22782_ACEOF
22783
22784 LIBS="-lssl $LIBS"
22785
22786fi
22787
22788 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790$as_echo "no" >&6; }
22791 LIBS=$OLIBS
22792 else
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22794$as_echo "yes" >&6; }
22795 fi
22796
22797 else
22798
22799 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22800 openssl/pem.h openssl/ssl.h openssl/err.h
22801do :
22802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22805 cat >>confdefs.h <<_ACEOF
22806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022808 ssl_msg="OpenSSL"
22809 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022810 OPENSSL_ENABLED=1
22811
22812$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22813
22814fi
22815
22816done
22817
22818
22819 if test $ac_cv_header_openssl_x509_h = no; then
22820 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22821do :
22822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22825 cat >>confdefs.h <<_ACEOF
22826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22827_ACEOF
22828
22829fi
22830
22831done
22832
22833
22834 if test $ac_cv_header_x509_h = yes &&
22835 test $ac_cv_header_crypto_h = yes &&
22836 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022837 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022838 OPENSSL_ENABLED=1
22839 fi
22840 fi
22841 fi
22842
Alex Deymo486467e2017-12-19 19:04:07 +010022843 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022844 LIBS="$CLEANLIBS"
22845 fi
22846
22847 if test X"$OPT_SSL" != Xoff &&
22848 test "$OPENSSL_ENABLED" != "1"; then
22849 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22850 fi
22851 fi
22852
22853 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022854
22855 for ac_func in RAND_egd \
Elliott Hughes82be86d2017-09-20 17:00:17 -070022856 SSL_get_shutdown \
Haibo Huang51d9d882019-02-06 01:36:06 -080022857 SSLv2_client_method \
22858 OpenSSL_version
Elliott Hughes82be86d2017-09-20 17:00:17 -070022859do :
22860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22863 cat >>confdefs.h <<_ACEOF
22864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22865_ACEOF
22866
22867fi
22868done
22869
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22872$as_echo_n "checking for BoringSSL... " >&6; }
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874/* end confdefs.h. */
22875
22876
22877 #include <openssl/base.h>
22878
22879int main (void)
22880{
22881
22882 #ifndef OPENSSL_IS_BORINGSSL
22883 #error not boringssl
22884 #endif
22885
22886 ;
22887 return 0;
22888}
22889
22890_ACEOF
22891if ac_fn_c_try_compile "$LINENO"; then :
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22894$as_echo "yes" >&6; }
22895
22896cat >>confdefs.h <<_ACEOF
22897#define HAVE_BORINGSSL 1
22898_ACEOF
22899
Alex Deymo486467e2017-12-19 19:04:07 +010022900 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022901
22902else
22903
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22905$as_echo "no" >&6; }
22906
22907fi
22908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22911$as_echo_n "checking for libressl... " >&6; }
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913/* end confdefs.h. */
22914
22915
22916#include <openssl/opensslv.h>
22917
22918int main (void)
22919{
22920
22921 int dummy = LIBRESSL_VERSION_NUMBER;
22922
22923 ;
22924 return 0;
22925}
22926
22927_ACEOF
22928if ac_fn_c_try_compile "$LINENO"; then :
22929
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22931$as_echo "yes" >&6; }
22932
22933cat >>confdefs.h <<_ACEOF
22934#define HAVE_LIBRESSL 1
22935_ACEOF
22936
Alex Deymo486467e2017-12-19 19:04:07 +010022937 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022938
22939else
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942$as_echo "no" >&6; }
22943
22944fi
22945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 fi
22947
22948 if test "$OPENSSL_ENABLED" = "1"; then
22949 if test -n "$LIB_OPENSSL"; then
22950 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022951 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22952 export CURL_LIBRARY_PATH
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22954$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022955 fi
22956 fi
22957
22958 #
22959
22960 #
22961 tst_api="unknown"
22962 #
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22964$as_echo_n "checking for OpenSSL headers version... " >&6; }
22965
22966 OLDCPPFLAGS=$CPPFLAGS
22967 # CPPPFLAG comes from CURL_CPP_P
22968 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22969 if test -z "$SED"; then
22970 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22971 fi
22972 if test -z "$GREP"; then
22973 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22974 fi
22975
22976 tmp_exp=""
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978/* end confdefs.h. */
22979
22980
22981# ifdef USE_OPENSSL
22982# include <openssl/crypto.h>
22983# else
22984# include <crypto.h>
22985# endif
22986
22987#ifdef OPENSSL_VERSION_NUMBER
22988CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22989#endif
22990
22991
22992_ACEOF
22993if ac_fn_c_try_cpp "$LINENO"; then :
22994
22995 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22996 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22997 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22998 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22999 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23000 tmp_exp=""
23001 fi
23002
23003fi
23004rm -f conftest.err conftest.i conftest.$ac_ext
23005 if test -z "$tmp_exp"; then
23006 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23007
23008 else
23009 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23010 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23011
23012 fi
23013 CPPFLAGS=$OLDCPPFLAGS
23014
23015 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23016 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23017 case "x$tst_verlen" in
23018 x6)
23019 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23020 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23021 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23022 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23023 ;;
23024 x11|x10)
23025 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23026 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23027 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23028 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23029 ;;
23030 *)
23031 tst_api="unknown"
23032 ;;
23033 esac
23034 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023035 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023036 0x110) tst_show="1.1.0" ;;
23037 0x102) tst_show="1.0.2" ;;
23038 0x101) tst_show="1.0.1" ;;
23039 0x100) tst_show="1.0.0" ;;
23040 0x099) tst_show="0.9.9" ;;
23041 0x098) tst_show="0.9.8" ;;
23042 0x097) tst_show="0.9.7" ;;
23043 0x096) tst_show="0.9.6" ;;
23044 0x095) tst_show="0.9.5" ;;
23045 0x094) tst_show="0.9.4" ;;
23046 0x093) tst_show="0.9.3" ;;
23047 0x092) tst_show="0.9.2" ;;
23048 0x091) tst_show="0.9.1" ;;
23049 *) tst_show="unknown" ;;
23050 esac
23051 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23052 else
23053 tst_show="unknown"
23054 fi
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23056$as_echo "$tst_show" >&6; }
23057 #
23058 curl_openssl_api_headers=$tst_api
23059
23060
23061 #
23062 tst_api="unknown"
23063 #
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23065$as_echo_n "checking for OpenSSL library version... " >&6; }
23066 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068/* end confdefs.h. */
23069
23070
23071#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23072#ifdef __STDC__
23073# include <limits.h>
23074#else
23075# include <assert.h>
23076#endif
23077#undef ERR_clear_last_mark
23078#ifdef __cplusplus
23079extern "C"
23080#endif
23081char ERR_clear_last_mark ();
23082#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23083choke me
23084#endif
23085
23086int main (void)
23087{
23088return ERR_clear_last_mark ();
23089 ;
23090 return 0;
23091}
23092
23093_ACEOF
23094if ac_fn_c_try_link "$LINENO"; then :
23095
23096 tst_api="0x111"
23097
23098fi
23099rm -f core conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
23101 fi
23102 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023103 case $host in
23104 *-*-vms*)
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106/* end confdefs.h. */
23107
23108
23109#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23110#ifdef __STDC__
23111# include <limits.h>
23112#else
23113# include <assert.h>
23114#endif
23115#undef SSL_CTX_set_not_resumbl_sess_cb
23116#ifdef __cplusplus
23117extern "C"
23118#endif
23119char SSL_CTX_set_not_resumbl_sess_cb ();
23120#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23121choke me
23122#endif
23123
23124int main (void)
23125{
23126return SSL_CTX_set_not_resumbl_sess_cb ();
23127 ;
23128 return 0;
23129}
23130
23131_ACEOF
23132if ac_fn_c_try_link "$LINENO"; then :
23133
23134 tst_api="0x110"
23135
23136fi
23137rm -f core conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
23139 ;;
23140 *)
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142/* end confdefs.h. */
23143
23144
23145#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23146#ifdef __STDC__
23147# include <limits.h>
23148#else
23149# include <assert.h>
23150#endif
23151#undef SSL_CTX_set_not_resumable_session_callback
23152#ifdef __cplusplus
23153extern "C"
23154#endif
23155char SSL_CTX_set_not_resumable_session_callback ();
23156#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23157choke me
23158#endif
23159
23160int main (void)
23161{
23162return SSL_CTX_set_not_resumable_session_callback ();
23163 ;
23164 return 0;
23165}
23166
23167_ACEOF
23168if ac_fn_c_try_link "$LINENO"; then :
23169
23170 tst_api="0x110"
23171
23172fi
23173rm -f core conftest.err conftest.$ac_objext \
23174 conftest$ac_exeext conftest.$ac_ext
23175 ;;
23176 esac
23177 fi
23178 if test "$tst_api" = "unknown"; then
23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23180/* end confdefs.h. */
23181
23182
23183#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23184#ifdef __STDC__
23185# include <limits.h>
23186#else
23187# include <assert.h>
23188#endif
23189#undef SSL_CONF_CTX_new
23190#ifdef __cplusplus
23191extern "C"
23192#endif
23193char SSL_CONF_CTX_new ();
23194#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23195choke me
23196#endif
23197
23198int main (void)
23199{
23200return SSL_CONF_CTX_new ();
23201 ;
23202 return 0;
23203}
23204
23205_ACEOF
23206if ac_fn_c_try_link "$LINENO"; then :
23207
23208 tst_api="0x102"
23209
23210fi
23211rm -f core conftest.err conftest.$ac_objext \
23212 conftest$ac_exeext conftest.$ac_ext
23213 fi
23214 if test "$tst_api" = "unknown"; then
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216/* end confdefs.h. */
23217
23218
23219#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23220#ifdef __STDC__
23221# include <limits.h>
23222#else
23223# include <assert.h>
23224#endif
23225#undef SSL_renegotiate_abbreviated
23226#ifdef __cplusplus
23227extern "C"
23228#endif
23229char SSL_renegotiate_abbreviated ();
23230#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23231choke me
23232#endif
23233
23234int main (void)
23235{
23236return SSL_renegotiate_abbreviated ();
23237 ;
23238 return 0;
23239}
23240
23241_ACEOF
23242if ac_fn_c_try_link "$LINENO"; then :
23243
23244 tst_api="0x101"
23245
23246fi
23247rm -f core conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
23249 fi
23250 if test "$tst_api" = "unknown"; then
23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23252/* end confdefs.h. */
23253
23254
23255#define OBJ_add_sigid innocuous_OBJ_add_sigid
23256#ifdef __STDC__
23257# include <limits.h>
23258#else
23259# include <assert.h>
23260#endif
23261#undef OBJ_add_sigid
23262#ifdef __cplusplus
23263extern "C"
23264#endif
23265char OBJ_add_sigid ();
23266#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23267choke me
23268#endif
23269
23270int main (void)
23271{
23272return OBJ_add_sigid ();
23273 ;
23274 return 0;
23275}
23276
23277_ACEOF
23278if ac_fn_c_try_link "$LINENO"; then :
23279
23280 tst_api="0x100"
23281
23282fi
23283rm -f core conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
23285 fi
23286 if test "$tst_api" = "unknown"; then
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288/* end confdefs.h. */
23289
23290
23291#define ERR_set_mark innocuous_ERR_set_mark
23292#ifdef __STDC__
23293# include <limits.h>
23294#else
23295# include <assert.h>
23296#endif
23297#undef ERR_set_mark
23298#ifdef __cplusplus
23299extern "C"
23300#endif
23301char ERR_set_mark ();
23302#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23303choke me
23304#endif
23305
23306int main (void)
23307{
23308return ERR_set_mark ();
23309 ;
23310 return 0;
23311}
23312
23313_ACEOF
23314if ac_fn_c_try_link "$LINENO"; then :
23315
23316 tst_api="0x098"
23317
23318fi
23319rm -f core conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
23321 fi
23322 if test "$tst_api" = "unknown"; then
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324/* end confdefs.h. */
23325
23326
23327#define ERR_peek_last_error innocuous_ERR_peek_last_error
23328#ifdef __STDC__
23329# include <limits.h>
23330#else
23331# include <assert.h>
23332#endif
23333#undef ERR_peek_last_error
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337char ERR_peek_last_error ();
23338#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23339choke me
23340#endif
23341
23342int main (void)
23343{
23344return ERR_peek_last_error ();
23345 ;
23346 return 0;
23347}
23348
23349_ACEOF
23350if ac_fn_c_try_link "$LINENO"; then :
23351
23352 tst_api="0x097"
23353
23354fi
23355rm -f core conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
23357 fi
23358 if test "$tst_api" = "unknown"; then
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360/* end confdefs.h. */
23361
23362
23363#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23364#ifdef __STDC__
23365# include <limits.h>
23366#else
23367# include <assert.h>
23368#endif
23369#undef c2i_ASN1_OBJECT
23370#ifdef __cplusplus
23371extern "C"
23372#endif
23373char c2i_ASN1_OBJECT ();
23374#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23375choke me
23376#endif
23377
23378int main (void)
23379{
23380return c2i_ASN1_OBJECT ();
23381 ;
23382 return 0;
23383}
23384
23385_ACEOF
23386if ac_fn_c_try_link "$LINENO"; then :
23387
23388 tst_api="0x096"
23389
23390fi
23391rm -f core conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
23393 fi
23394 if test "$tst_api" = "unknown"; then
23395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23396/* end confdefs.h. */
23397
23398
23399#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23400#ifdef __STDC__
23401# include <limits.h>
23402#else
23403# include <assert.h>
23404#endif
23405#undef SSL_CTX_set_purpose
23406#ifdef __cplusplus
23407extern "C"
23408#endif
23409char SSL_CTX_set_purpose ();
23410#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23411choke me
23412#endif
23413
23414int main (void)
23415{
23416return SSL_CTX_set_purpose ();
23417 ;
23418 return 0;
23419}
23420
23421_ACEOF
23422if ac_fn_c_try_link "$LINENO"; then :
23423
23424 tst_api="0x095"
23425
23426fi
23427rm -f core conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
23429 fi
23430 if test "$tst_api" = "unknown"; then
23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23432/* end confdefs.h. */
23433
23434
23435#define OBJ_obj2txt innocuous_OBJ_obj2txt
23436#ifdef __STDC__
23437# include <limits.h>
23438#else
23439# include <assert.h>
23440#endif
23441#undef OBJ_obj2txt
23442#ifdef __cplusplus
23443extern "C"
23444#endif
23445char OBJ_obj2txt ();
23446#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23447choke me
23448#endif
23449
23450int main (void)
23451{
23452return OBJ_obj2txt ();
23453 ;
23454 return 0;
23455}
23456
23457_ACEOF
23458if ac_fn_c_try_link "$LINENO"; then :
23459
23460 tst_api="0x094"
23461
23462fi
23463rm -f core conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23465 fi
23466 if test "$tst_api" = "unknown"; then
23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468/* end confdefs.h. */
23469
23470
23471#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23472#ifdef __STDC__
23473# include <limits.h>
23474#else
23475# include <assert.h>
23476#endif
23477#undef SSL_get_verify_depth
23478#ifdef __cplusplus
23479extern "C"
23480#endif
23481char SSL_get_verify_depth ();
23482#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23483choke me
23484#endif
23485
23486int main (void)
23487{
23488return SSL_get_verify_depth ();
23489 ;
23490 return 0;
23491}
23492
23493_ACEOF
23494if ac_fn_c_try_link "$LINENO"; then :
23495
23496 tst_api="0x093"
23497
23498fi
23499rm -f core conftest.err conftest.$ac_objext \
23500 conftest$ac_exeext conftest.$ac_ext
23501 fi
23502 if test "$tst_api" = "unknown"; then
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h. */
23505
23506
23507#define SSL_library_init innocuous_SSL_library_init
23508#ifdef __STDC__
23509# include <limits.h>
23510#else
23511# include <assert.h>
23512#endif
23513#undef SSL_library_init
23514#ifdef __cplusplus
23515extern "C"
23516#endif
23517char SSL_library_init ();
23518#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23519choke me
23520#endif
23521
23522int main (void)
23523{
23524return SSL_library_init ();
23525 ;
23526 return 0;
23527}
23528
23529_ACEOF
23530if ac_fn_c_try_link "$LINENO"; then :
23531
23532 tst_api="0x092"
23533
23534fi
23535rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 fi
23538 if test "$tst_api" = "unknown"; then
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540/* end confdefs.h. */
23541
23542
23543#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23544#ifdef __STDC__
23545# include <limits.h>
23546#else
23547# include <assert.h>
23548#endif
23549#undef SSL_CTX_set_cipher_list
23550#ifdef __cplusplus
23551extern "C"
23552#endif
23553char SSL_CTX_set_cipher_list ();
23554#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23555choke me
23556#endif
23557
23558int main (void)
23559{
23560return SSL_CTX_set_cipher_list ();
23561 ;
23562 return 0;
23563}
23564
23565_ACEOF
23566if ac_fn_c_try_link "$LINENO"; then :
23567
23568 tst_api="0x091"
23569
23570fi
23571rm -f core conftest.err conftest.$ac_objext \
23572 conftest$ac_exeext conftest.$ac_ext
23573 fi
23574 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023575 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023576 0x110) tst_show="1.1.0" ;;
23577 0x102) tst_show="1.0.2" ;;
23578 0x101) tst_show="1.0.1" ;;
23579 0x100) tst_show="1.0.0" ;;
23580 0x099) tst_show="0.9.9" ;;
23581 0x098) tst_show="0.9.8" ;;
23582 0x097) tst_show="0.9.7" ;;
23583 0x096) tst_show="0.9.6" ;;
23584 0x095) tst_show="0.9.5" ;;
23585 0x094) tst_show="0.9.4" ;;
23586 0x093) tst_show="0.9.3" ;;
23587 0x092) tst_show="0.9.2" ;;
23588 0x091) tst_show="0.9.1" ;;
23589 *) tst_show="unknown" ;;
23590 esac
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23592$as_echo "$tst_show" >&6; }
23593 #
23594 curl_openssl_api_library=$tst_api
23595
23596 #
23597 tst_match="yes"
23598 #
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23600$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23601 if test "$curl_openssl_api_headers" = "unknown" ||
23602 test "$curl_openssl_api_library" = "unknown"; then
23603 tst_match="fail"
23604 tst_warns="Can not compare OpenSSL headers and library versions."
23605 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23606 tst_match="no"
23607 tst_warns="OpenSSL headers and library versions do not match."
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23610$as_echo "$tst_match" >&6; }
23611 if test "$tst_match" != "yes"; then
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23613$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23614 fi
23615
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023616 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023617 fi
23618
Alex Deymo486467e2017-12-19 19:04:07 +010023619 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023620fi
23621
Haibo Huang34ab3462019-05-22 00:50:27 -070023622if test X"$OPT_SSL" != Xoff &&
23623 test X"$OPT_SSL" != Xno &&
23624 test "$OPENSSL_ENABLED" != "1"; then
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
23626$as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
23628$as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
23629 as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
23630fi
23631
Elliott Hughes82be86d2017-09-20 17:00:17 -070023632
23633if test X"$OPENSSL_ENABLED" = X"1"; then
23634
23635# Check whether --with-egd-socket was given.
23636if test "${with_egd_socket+set}" = set; then :
23637 withval=$with_egd_socket; EGD_SOCKET="$withval"
23638
23639fi
23640
23641 if test -n "$EGD_SOCKET" ; then
23642
23643cat >>confdefs.h <<_ACEOF
23644#define EGD_SOCKET "$EGD_SOCKET"
23645_ACEOF
23646
23647 fi
23648
23649
23650# Check whether --with-random was given.
23651if test "${with_random+set}" = set; then :
23652 withval=$with_random; RANDOM_FILE="$withval"
23653else
23654
23655 if test x$cross_compiling != xyes; then
23656 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23658$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23659if eval \${$as_ac_File+:} false; then :
23660 $as_echo_n "(cached) " >&6
23661else
23662 test "$cross_compiling" = yes &&
23663 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23664if test -r ""/dev/urandom""; then
23665 eval "$as_ac_File=yes"
23666else
23667 eval "$as_ac_File=no"
23668fi
23669fi
23670eval ac_res=\$$as_ac_File
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23672$as_echo "$ac_res" >&6; }
23673if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23674 RANDOM_FILE="/dev/urandom"
23675fi
23676
23677 else
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23679$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23680 fi
23681
23682
23683fi
23684
23685 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23686
23687
23688cat >>confdefs.h <<_ACEOF
23689#define RANDOM_FILE "$RANDOM_FILE"
23690_ACEOF
23691
23692 fi
23693fi
23694
23695if test "$OPENSSL_ENABLED" = "1"; then
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23697$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23698if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23699 $as_echo_n "(cached) " >&6
23700else
23701 ac_check_lib_save_LIBS=$LIBS
23702LIBS="-lcrypto $LIBS"
23703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23704/* end confdefs.h. */
23705
23706
23707#ifdef __cplusplus
23708extern "C"
23709#endif
23710char SRP_Calc_client_key ();
23711int main (void)
23712{
23713return SRP_Calc_client_key ();
23714 ;
23715 return 0;
23716}
23717_ACEOF
23718if ac_fn_c_try_link "$LINENO"; then :
23719 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23720else
23721 ac_cv_lib_crypto_SRP_Calc_client_key=no
23722fi
23723rm -f core conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23725LIBS=$ac_check_lib_save_LIBS
23726fi
23727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23728$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23729if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23730
23731
23732$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23733
23734 HAVE_OPENSSL_SRP=1
23735
23736
23737fi
23738
23739fi
23740
Elliott Hughesa93fb052018-12-12 14:22:48 -080023741if test X"$OPENSSL_ENABLED" = X"1"; then
23742# Check whether --enable-openssl-auto-load-config was given.
23743if test "${enable_openssl_auto_load_config+set}" = set; then :
23744 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23746$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23747
23748$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23749
23750 fi
23751
23752fi
23753
23754fi
23755
Elliott Hughes82be86d2017-09-20 17:00:17 -070023756
23757OPT_GNUTLS=no
23758
23759
23760# Check whether --with-gnutls was given.
23761if test "${with_gnutls+set}" = set; then :
23762 withval=$with_gnutls; OPT_GNUTLS=$withval
23763fi
23764
23765
Alex Deymo486467e2017-12-19 19:04:07 +010023766if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23767 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023768
23769 if test X"$OPT_GNUTLS" != Xno; then
23770
23771 addld=""
23772 addlib=""
23773 gtlslib=""
23774 version=""
23775 addcflags=""
23776
23777 if test "x$OPT_GNUTLS" = "xyes"; then
23778
23779 if test -n "$PKG_CONFIG"; then
23780 PKGCONFIG="$PKG_CONFIG"
23781 else
23782 if test -n "$ac_tool_prefix"; then
23783 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23784set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23786$as_echo_n "checking for $ac_word... " >&6; }
23787if ${ac_cv_path_PKGCONFIG+:} false; then :
23788 $as_echo_n "(cached) " >&6
23789else
23790 case $PKGCONFIG in
23791 [\\/]* | ?:[\\/]*)
23792 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23793 ;;
23794 *)
23795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796as_dummy="$PATH:/usr/bin:/usr/local/bin"
23797for as_dir in $as_dummy
23798do
23799 IFS=$as_save_IFS
23800 test -z "$as_dir" && as_dir=.
23801 for ac_exec_ext in '' $ac_executable_extensions; do
23802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23803 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23805 break 2
23806 fi
23807done
23808 done
23809IFS=$as_save_IFS
23810
23811 ;;
23812esac
23813fi
23814PKGCONFIG=$ac_cv_path_PKGCONFIG
23815if test -n "$PKGCONFIG"; then
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23817$as_echo "$PKGCONFIG" >&6; }
23818else
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820$as_echo "no" >&6; }
23821fi
23822
23823
23824fi
23825if test -z "$ac_cv_path_PKGCONFIG"; then
23826 ac_pt_PKGCONFIG=$PKGCONFIG
23827 # Extract the first word of "pkg-config", so it can be a program name with args.
23828set dummy pkg-config; ac_word=$2
23829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23830$as_echo_n "checking for $ac_word... " >&6; }
23831if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23832 $as_echo_n "(cached) " >&6
23833else
23834 case $ac_pt_PKGCONFIG in
23835 [\\/]* | ?:[\\/]*)
23836 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23837 ;;
23838 *)
23839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23840as_dummy="$PATH:/usr/bin:/usr/local/bin"
23841for as_dir in $as_dummy
23842do
23843 IFS=$as_save_IFS
23844 test -z "$as_dir" && as_dir=.
23845 for ac_exec_ext in '' $ac_executable_extensions; do
23846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23847 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23849 break 2
23850 fi
23851done
23852 done
23853IFS=$as_save_IFS
23854
23855 ;;
23856esac
23857fi
23858ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23859if test -n "$ac_pt_PKGCONFIG"; then
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23861$as_echo "$ac_pt_PKGCONFIG" >&6; }
23862else
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23864$as_echo "no" >&6; }
23865fi
23866
23867 if test "x$ac_pt_PKGCONFIG" = x; then
23868 PKGCONFIG="no"
23869 else
23870 case $cross_compiling:$ac_tool_warned in
23871yes:)
23872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23874ac_tool_warned=yes ;;
23875esac
23876 PKGCONFIG=$ac_pt_PKGCONFIG
23877 fi
23878else
23879 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23880fi
23881
23882 fi
23883
23884 if test "x$PKGCONFIG" != "xno"; then
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23886$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23887 itexists=`
23888 if test -n ""; then
23889 PKG_CONFIG_LIBDIR=""
23890 export PKG_CONFIG_LIBDIR
23891 fi
23892 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23893
23894 if test -z "$itexists"; then
23895 PKGCONFIG="no"
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897$as_echo "no" >&6; }
23898 else
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23900$as_echo "found" >&6; }
23901 fi
23902 fi
23903
23904
23905 if test "$PKGCONFIG" != "no" ; then
23906 addlib=`$PKGCONFIG --libs-only-l gnutls`
23907 addld=`$PKGCONFIG --libs-only-L gnutls`
23908 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23909 version=`$PKGCONFIG --modversion gnutls`
23910 gtlslib=`echo $addld | $SED -e 's/-L//'`
23911 else
23912 check=`libgnutls-config --version 2>/dev/null`
23913 if test -n "$check"; then
23914 addlib=`libgnutls-config --libs`
23915 addcflags=`libgnutls-config --cflags`
23916 version=`libgnutls-config --version`
23917 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23918 fi
23919 fi
23920 else
23921 cfg=$OPT_GNUTLS/bin/libgnutls-config
23922 check=`$cfg --version 2>/dev/null`
23923 if test -n "$check"; then
23924 addlib=`$cfg --libs`
23925 addcflags=`$cfg --cflags`
23926 version=`$cfg --version`
23927 gtlslib=`$cfg --prefix`/lib$libsuff
23928 else
23929 addlib=-lgnutls
23930 addld=-L$OPT_GNUTLS/lib$libsuff
23931 addcflags=-I$OPT_GNUTLS/include
23932 version="" # we just don't know
23933 gtlslib=$OPT_GNUTLS/lib$libsuff
23934 fi
23935 fi
23936
23937 if test -z "$version"; then
23938 version="unknown"
23939 fi
23940
23941 if test -n "$addlib"; then
23942
23943 CLEANLIBS="$LIBS"
23944 CLEANCPPFLAGS="$CPPFLAGS"
23945 CLEANLDFLAGS="$LDFLAGS"
23946
23947 LIBS="$addlib $LIBS"
23948 LDFLAGS="$LDFLAGS $addld"
23949 if test "$addcflags" != "-I/usr/include"; then
23950 CPPFLAGS="$CPPFLAGS $addcflags"
23951 fi
23952
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23954$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23955if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23956 $as_echo_n "(cached) " >&6
23957else
23958 ac_check_lib_save_LIBS=$LIBS
23959LIBS="-lgnutls $LIBS"
23960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961/* end confdefs.h. */
23962
23963
23964#ifdef __cplusplus
23965extern "C"
23966#endif
23967char gnutls_check_version ();
23968int main (void)
23969{
23970return gnutls_check_version ();
23971 ;
23972 return 0;
23973}
23974_ACEOF
23975if ac_fn_c_try_link "$LINENO"; then :
23976 ac_cv_lib_gnutls_gnutls_check_version=yes
23977else
23978 ac_cv_lib_gnutls_gnutls_check_version=no
23979fi
23980rm -f core conftest.err conftest.$ac_objext \
23981 conftest$ac_exeext conftest.$ac_ext
23982LIBS=$ac_check_lib_save_LIBS
23983fi
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23985$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23986if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23987
23988
23989$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23990
23991 USE_GNUTLS=1
23992
23993 GNUTLS_ENABLED=1
23994 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023995 ssl_msg="GnuTLS"
23996 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023997
23998else
23999
24000 LIBS="$CLEANLIBS"
24001 CPPFLAGS="$CLEANCPPFLAGS"
24002
24003fi
24004
24005
24006 if test "x$USE_GNUTLS" = "xyes"; then
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24008$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024009 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024010 if test -n "$gtlslib"; then
24011 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024012 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24013 export CURL_LIBRARY_PATH
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24015$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024016 fi
24017 fi
24018 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24019do :
24020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24022if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24023 cat >>confdefs.h <<_ACEOF
24024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24025_ACEOF
24026
24027fi
24028done
24029
24030 fi
24031
24032 fi
24033
24034 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024035 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024036fi
24037
24038
24039if test "$GNUTLS_ENABLED" = "1"; then
24040 USE_GNUTLS_NETTLE=
24041 # First check if we can detect either crypto library via transitive linking
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24043$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24044if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24045 $as_echo_n "(cached) " >&6
24046else
24047 ac_check_lib_save_LIBS=$LIBS
24048LIBS="-lgnutls $LIBS"
24049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050/* end confdefs.h. */
24051
24052
24053#ifdef __cplusplus
24054extern "C"
24055#endif
24056char nettle_MD5Init ();
24057int main (void)
24058{
24059return nettle_MD5Init ();
24060 ;
24061 return 0;
24062}
24063_ACEOF
24064if ac_fn_c_try_link "$LINENO"; then :
24065 ac_cv_lib_gnutls_nettle_MD5Init=yes
24066else
24067 ac_cv_lib_gnutls_nettle_MD5Init=no
24068fi
24069rm -f core conftest.err conftest.$ac_objext \
24070 conftest$ac_exeext conftest.$ac_ext
24071LIBS=$ac_check_lib_save_LIBS
24072fi
24073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24074$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24075if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24076 USE_GNUTLS_NETTLE=1
24077fi
24078
24079 if test "$USE_GNUTLS_NETTLE" = ""; then
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24081$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24082if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24083 $as_echo_n "(cached) " >&6
24084else
24085 ac_check_lib_save_LIBS=$LIBS
24086LIBS="-lgnutls $LIBS"
24087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24088/* end confdefs.h. */
24089
24090
24091#ifdef __cplusplus
24092extern "C"
24093#endif
24094char gcry_control ();
24095int main (void)
24096{
24097return gcry_control ();
24098 ;
24099 return 0;
24100}
24101_ACEOF
24102if ac_fn_c_try_link "$LINENO"; then :
24103 ac_cv_lib_gnutls_gcry_control=yes
24104else
24105 ac_cv_lib_gnutls_gcry_control=no
24106fi
24107rm -f core conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
24109LIBS=$ac_check_lib_save_LIBS
24110fi
24111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24112$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24113if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24114 USE_GNUTLS_NETTLE=0
24115fi
24116
24117 fi
24118 # If not, try linking directly to both of them to see if they are available
24119 if test "$USE_GNUTLS_NETTLE" = ""; then
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24121$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24122if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24123 $as_echo_n "(cached) " >&6
24124else
24125 ac_check_lib_save_LIBS=$LIBS
24126LIBS="-lnettle $LIBS"
24127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128/* end confdefs.h. */
24129
24130
24131#ifdef __cplusplus
24132extern "C"
24133#endif
24134char nettle_MD5Init ();
24135int main (void)
24136{
24137return nettle_MD5Init ();
24138 ;
24139 return 0;
24140}
24141_ACEOF
24142if ac_fn_c_try_link "$LINENO"; then :
24143 ac_cv_lib_nettle_nettle_MD5Init=yes
24144else
24145 ac_cv_lib_nettle_nettle_MD5Init=no
24146fi
24147rm -f core conftest.err conftest.$ac_objext \
24148 conftest$ac_exeext conftest.$ac_ext
24149LIBS=$ac_check_lib_save_LIBS
24150fi
24151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24152$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24153if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24154 USE_GNUTLS_NETTLE=1
24155fi
24156
24157 fi
24158 if test "$USE_GNUTLS_NETTLE" = ""; then
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24160$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24161if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24162 $as_echo_n "(cached) " >&6
24163else
24164 ac_check_lib_save_LIBS=$LIBS
24165LIBS="-lgcrypt $LIBS"
24166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167/* end confdefs.h. */
24168
24169
24170#ifdef __cplusplus
24171extern "C"
24172#endif
24173char gcry_control ();
24174int main (void)
24175{
24176return gcry_control ();
24177 ;
24178 return 0;
24179}
24180_ACEOF
24181if ac_fn_c_try_link "$LINENO"; then :
24182 ac_cv_lib_gcrypt_gcry_control=yes
24183else
24184 ac_cv_lib_gcrypt_gcry_control=no
24185fi
24186rm -f core conftest.err conftest.$ac_objext \
24187 conftest$ac_exeext conftest.$ac_ext
24188LIBS=$ac_check_lib_save_LIBS
24189fi
24190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24191$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24192if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24193 USE_GNUTLS_NETTLE=0
24194fi
24195
24196 fi
24197 if test "$USE_GNUTLS_NETTLE" = ""; then
24198 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24199 fi
24200 if test "$USE_GNUTLS_NETTLE" = "1"; then
24201
24202$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24203
24204 USE_GNUTLS_NETTLE=1
24205
24206 LIBS="-lnettle $LIBS"
24207 else
24208 LIBS="-lgcrypt $LIBS"
24209 fi
24210fi
24211
24212if test "$GNUTLS_ENABLED" = "1"; then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24214$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24215if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24216 $as_echo_n "(cached) " >&6
24217else
24218 ac_check_lib_save_LIBS=$LIBS
24219LIBS="-lgnutls $LIBS"
24220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24221/* end confdefs.h. */
24222
24223
24224#ifdef __cplusplus
24225extern "C"
24226#endif
24227char gnutls_srp_verifier ();
24228int main (void)
24229{
24230return gnutls_srp_verifier ();
24231 ;
24232 return 0;
24233}
24234_ACEOF
24235if ac_fn_c_try_link "$LINENO"; then :
24236 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24237else
24238 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24239fi
24240rm -f core conftest.err conftest.$ac_objext \
24241 conftest$ac_exeext conftest.$ac_ext
24242LIBS=$ac_check_lib_save_LIBS
24243fi
24244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24245$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24246if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24247
24248
24249$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24250
24251 HAVE_GNUTLS_SRP=1
24252
24253
24254fi
24255
24256fi
24257
24258
24259OPT_POLARSSL=no
24260
24261_cppflags=$CPPFLAGS
24262_ldflags=$LDFLAGS
24263
24264# Check whether --with-polarssl was given.
24265if test "${with_polarssl+set}" = set; then :
24266 withval=$with_polarssl; OPT_POLARSSL=$withval
24267fi
24268
24269
Alex Deymo486467e2017-12-19 19:04:07 +010024270if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24271 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024272
24273 if test X"$OPT_POLARSSL" != Xno; then
24274
24275 if test "$OPT_POLARSSL" = "yes"; then
24276 OPT_POLARSSL=""
24277 fi
24278
24279 if test -z "$OPT_POLARSSL" ; then
24280
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24282$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24283if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24284 $as_echo_n "(cached) " >&6
24285else
24286 ac_check_lib_save_LIBS=$LIBS
24287LIBS="-lpolarssl $LIBS"
24288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289/* end confdefs.h. */
24290
24291
24292#ifdef __cplusplus
24293extern "C"
24294#endif
24295char havege_init ();
24296int main (void)
24297{
24298return havege_init ();
24299 ;
24300 return 0;
24301}
24302_ACEOF
24303if ac_fn_c_try_link "$LINENO"; then :
24304 ac_cv_lib_polarssl_havege_init=yes
24305else
24306 ac_cv_lib_polarssl_havege_init=no
24307fi
24308rm -f core conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
24310LIBS=$ac_check_lib_save_LIBS
24311fi
24312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24313$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24314if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24315
24316
24317$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24318
24319 USE_POLARSSL=1
24320
24321 POLARSSL_ENABLED=1
24322 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024323 ssl_msg="PolarSSL"
24324 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024325
24326fi
24327
24328 fi
24329
24330 addld=""
24331 addlib=""
24332 addcflags=""
24333 polarssllib=""
24334
24335 if test "x$USE_POLARSSL" != "xyes"; then
24336 addld=-L$OPT_POLARSSL/lib$libsuff
24337 addcflags=-I$OPT_POLARSSL/include
24338 polarssllib=$OPT_POLARSSL/lib$libsuff
24339
24340 LDFLAGS="$LDFLAGS $addld"
24341 if test "$addcflags" != "-I/usr/include"; then
24342 CPPFLAGS="$CPPFLAGS $addcflags"
24343 fi
24344
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24346$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24347if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24348 $as_echo_n "(cached) " >&6
24349else
24350 ac_check_lib_save_LIBS=$LIBS
24351LIBS="-lpolarssl $LIBS"
24352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24353/* end confdefs.h. */
24354
24355
24356#ifdef __cplusplus
24357extern "C"
24358#endif
24359char ssl_init ();
24360int main (void)
24361{
24362return ssl_init ();
24363 ;
24364 return 0;
24365}
24366_ACEOF
24367if ac_fn_c_try_link "$LINENO"; then :
24368 ac_cv_lib_polarssl_ssl_init=yes
24369else
24370 ac_cv_lib_polarssl_ssl_init=no
24371fi
24372rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24374LIBS=$ac_check_lib_save_LIBS
24375fi
24376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24377$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24378if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24379
24380
24381$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24382
24383 USE_POLARSSL=1
24384
24385 POLARSSL_ENABLED=1
24386 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024387 ssl_msg="PolarSSL"
24388 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024389
24390else
24391
24392 CPPFLAGS=$_cppflags
24393 LDFLAGS=$_ldflags
24394
24395fi
24396
24397 fi
24398
24399 if test "x$USE_POLARSSL" = "xyes"; then
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24401$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024402 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024403 LIBS="-lpolarssl $LIBS"
24404
24405 if test -n "$polarssllib"; then
24406 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024407 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24408 export CURL_LIBRARY_PATH
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24410$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024411 fi
24412 fi
24413 fi
24414
24415 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024416 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024417fi
24418
24419
24420OPT_MBEDTLS=no
24421
24422_cppflags=$CPPFLAGS
24423_ldflags=$LDFLAGS
24424
24425# Check whether --with-mbedtls was given.
24426if test "${with_mbedtls+set}" = set; then :
24427 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24428fi
24429
24430
Alex Deymo486467e2017-12-19 19:04:07 +010024431if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24432 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024433
24434 if test X"$OPT_MBEDTLS" != Xno; then
24435
24436 if test "$OPT_MBEDTLS" = "yes"; then
24437 OPT_MBEDTLS=""
24438 fi
24439
24440 if test -z "$OPT_MBEDTLS" ; then
24441
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24443$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24444if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24445 $as_echo_n "(cached) " >&6
24446else
24447 ac_check_lib_save_LIBS=$LIBS
24448LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450/* end confdefs.h. */
24451
24452
24453#ifdef __cplusplus
24454extern "C"
24455#endif
24456char mbedtls_havege_init ();
24457int main (void)
24458{
24459return mbedtls_havege_init ();
24460 ;
24461 return 0;
24462}
24463_ACEOF
24464if ac_fn_c_try_link "$LINENO"; then :
24465 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24466else
24467 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24468fi
24469rm -f core conftest.err conftest.$ac_objext \
24470 conftest$ac_exeext conftest.$ac_ext
24471LIBS=$ac_check_lib_save_LIBS
24472fi
24473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24474$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24475if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24476
24477
24478$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24479
24480 USE_MBEDTLS=1
24481
24482 MBEDTLS_ENABLED=1
24483 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024484 ssl_msg="mbedTLS"
24485 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024486
24487fi
24488
24489 fi
24490
24491 addld=""
24492 addlib=""
24493 addcflags=""
24494 mbedtlslib=""
24495
24496 if test "x$USE_MBEDTLS" != "xyes"; then
24497 addld=-L$OPT_MBEDTLS/lib$libsuff
24498 addcflags=-I$OPT_MBEDTLS/include
24499 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24500
24501 LDFLAGS="$LDFLAGS $addld"
24502 if test "$addcflags" != "-I/usr/include"; then
24503 CPPFLAGS="$CPPFLAGS $addcflags"
24504 fi
24505
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24507$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24508if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24509 $as_echo_n "(cached) " >&6
24510else
24511 ac_check_lib_save_LIBS=$LIBS
24512LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514/* end confdefs.h. */
24515
24516
24517#ifdef __cplusplus
24518extern "C"
24519#endif
24520char mbedtls_ssl_init ();
24521int main (void)
24522{
24523return mbedtls_ssl_init ();
24524 ;
24525 return 0;
24526}
24527_ACEOF
24528if ac_fn_c_try_link "$LINENO"; then :
24529 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24530else
24531 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24532fi
24533rm -f core conftest.err conftest.$ac_objext \
24534 conftest$ac_exeext conftest.$ac_ext
24535LIBS=$ac_check_lib_save_LIBS
24536fi
24537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24538$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24539if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24540
24541
24542$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24543
24544 USE_MBEDTLS=1
24545
24546 MBEDTLS_ENABLED=1
24547 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024548 ssl_msg="mbedTLS"
24549 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024550
24551else
24552
24553 CPPFLAGS=$_cppflags
24554 LDFLAGS=$_ldflags
24555
24556fi
24557
24558 fi
24559
24560 if test "x$USE_MBEDTLS" = "xyes"; then
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24562$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024563 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024564
24565 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24566
24567 if test -n "$mbedtlslib"; then
24568 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024569 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24570 export CURL_LIBRARY_PATH
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24572$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024573 fi
24574 fi
24575 fi
24576
24577 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024578 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024579fi
24580
24581
24582OPT_CYASSL=no
24583
24584_cppflags=$CPPFLAGS
24585_ldflags=$LDFLAGS
24586
24587# Check whether --with-cyassl was given.
24588if test "${with_cyassl+set}" = set; then :
24589 withval=$with_cyassl; OPT_CYASSL=$withval
24590fi
24591
24592
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024593
24594# Check whether --with-wolfssl was given.
24595if test "${with_wolfssl+set}" = set; then :
24596 withval=$with_wolfssl; OPT_CYASSL=$withval
24597fi
24598
24599
Alex Deymo486467e2017-12-19 19:04:07 +010024600if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24601 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024602
24603 if test X"$OPT_CYASSL" != Xno; then
24604
24605 if test "$OPT_CYASSL" = "yes"; then
24606 OPT_CYASSL=""
24607 fi
24608
24609
24610 cyassllibname=cyassl
24611
24612 if test -z "$OPT_CYASSL" ; then
24613
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24615$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24616if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24617 $as_echo_n "(cached) " >&6
24618else
24619 ac_check_lib_save_LIBS=$LIBS
24620LIBS="-lcyassl $LIBS"
24621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24622/* end confdefs.h. */
24623
24624
24625#ifdef __cplusplus
24626extern "C"
24627#endif
24628char CyaSSL_Init ();
24629int main (void)
24630{
24631return CyaSSL_Init ();
24632 ;
24633 return 0;
24634}
24635_ACEOF
24636if ac_fn_c_try_link "$LINENO"; then :
24637 ac_cv_lib_cyassl_CyaSSL_Init=yes
24638else
24639 ac_cv_lib_cyassl_CyaSSL_Init=no
24640fi
24641rm -f core conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
24643LIBS=$ac_check_lib_save_LIBS
24644fi
24645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24646$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24647if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24648
24649
24650$as_echo "#define USE_CYASSL 1" >>confdefs.h
24651
24652 USE_CYASSL=1
24653
24654 CYASSL_ENABLED=1
24655 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024656 ssl_msg="CyaSSL"
24657 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024658
24659fi
24660
24661 fi
24662
24663 addld=""
24664 addlib=""
24665 addcflags=""
24666 cyassllib=""
24667
24668 if test "x$USE_CYASSL" != "xyes"; then
24669 addld=-L$OPT_CYASSL/lib$libsuff
24670 addcflags=-I$OPT_CYASSL/include
24671 cyassllib=$OPT_CYASSL/lib$libsuff
24672
24673 LDFLAGS="$LDFLAGS $addld"
24674 if test "$addcflags" != "-I/usr/include"; then
24675 CPPFLAGS="$CPPFLAGS $addcflags"
24676 fi
24677
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24679$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24680if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24681 $as_echo_n "(cached) " >&6
24682else
24683 ac_check_lib_save_LIBS=$LIBS
24684LIBS="-lcyassl $LIBS"
24685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686/* end confdefs.h. */
24687
24688
24689#ifdef __cplusplus
24690extern "C"
24691#endif
24692char CyaSSL_Init ();
24693int main (void)
24694{
24695return CyaSSL_Init ();
24696 ;
24697 return 0;
24698}
24699_ACEOF
24700if ac_fn_c_try_link "$LINENO"; then :
24701 ac_cv_lib_cyassl_CyaSSL_Init=yes
24702else
24703 ac_cv_lib_cyassl_CyaSSL_Init=no
24704fi
24705rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24707LIBS=$ac_check_lib_save_LIBS
24708fi
24709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24710$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24711if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24712
24713
24714$as_echo "#define USE_CYASSL 1" >>confdefs.h
24715
24716 USE_CYASSL=1
24717
24718 CYASSL_ENABLED=1
24719 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024720 ssl_msg="CyaSSL"
24721 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024722
24723else
24724
24725 CPPFLAGS=$_cppflags
24726 LDFLAGS=$_ldflags
24727 cyassllib=""
24728
24729fi
24730
24731 fi
24732
24733 addld=""
24734 addlib=""
24735 addcflags=""
24736
24737 if test "x$USE_CYASSL" != "xyes"; then
24738 addld=-L$OPT_CYASSL/lib$libsuff
24739 addcflags=-I$OPT_CYASSL/include
24740 cyassllib=$OPT_CYASSL/lib$libsuff
24741
24742 LDFLAGS="$LDFLAGS $addld"
24743 if test "$addcflags" != "-I/usr/include"; then
24744 CPPFLAGS="$CPPFLAGS $addcflags"
24745 fi
24746
24747 cyassllibname=wolfssl
24748 my_ac_save_LIBS="$LIBS"
24749 LIBS="-l$cyassllibname -lm $LIBS"
24750
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24752$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754/* end confdefs.h. */
24755
24756
24757/* These aren't needed for detection and confuse WolfSSL.
24758 They are set up properly later if it is detected. */
24759#undef SIZEOF_LONG
24760#undef SIZEOF_LONG_LONG
24761#include <cyassl/ssl.h>
24762
24763int main (void)
24764{
24765
24766 return CyaSSL_Init();
24767
24768 ;
24769 return 0;
24770}
24771
24772_ACEOF
24773if ac_fn_c_try_link "$LINENO"; then :
24774
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24776$as_echo "yes" >&6; }
24777
24778$as_echo "#define USE_CYASSL 1" >>confdefs.h
24779
24780 USE_CYASSL=1
24781
24782 CYASSL_ENABLED=1
24783 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024784 ssl_msg="WolfSSL"
24785 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024786
24787else
24788
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24790$as_echo "no" >&6; }
24791 CPPFLAGS=$_cppflags
24792 LDFLAGS=$_ldflags
24793 cyassllib=""
24794
24795fi
24796rm -f core conftest.err conftest.$ac_objext \
24797 conftest$ac_exeext conftest.$ac_ext
24798 LIBS="$my_ac_save_LIBS"
24799 fi
24800
24801 if test "x$USE_CYASSL" = "xyes"; then
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24803$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024804 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024805
Elliott Hughes72d948d2018-08-03 14:37:21 -070024806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024807$as_echo_n "checking size of long long... " >&6; }
24808if ${ac_cv_sizeof_long_long+:} false; then :
24809 $as_echo_n "(cached) " >&6
24810else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024811 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024814
Elliott Hughes72d948d2018-08-03 14:37:21 -070024815#include <sys/types.h>
24816
24817
24818int main (void)
24819{
24820switch (0) case 0: case (sizeof (long long) == $ac_size):;
24821 ;
24822 return 0;
24823}
24824_ACEOF
24825if ac_fn_c_try_compile "$LINENO"; then :
24826 ac_cv_sizeof_long_long=$ac_size
24827fi
24828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24830done
24831
Elliott Hughes82be86d2017-09-20 17:00:17 -070024832fi
24833
Elliott Hughes72d948d2018-08-03 14:37:21 -070024834if test x$ac_cv_sizeof_long_long = x ; then
24835 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024836fi
24837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24838$as_echo "$ac_cv_sizeof_long_long" >&6; }
24839
Elliott Hughes82be86d2017-09-20 17:00:17 -070024840cat >>confdefs.h <<_ACEOF
24841#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24842_ACEOF
24843
24844
24845
24846 for ac_header in cyassl/options.h
24847do :
24848 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24849if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24850 cat >>confdefs.h <<_ACEOF
24851#define HAVE_CYASSL_OPTIONS_H 1
24852_ACEOF
24853
24854fi
24855
24856done
24857
24858
24859 for ac_header in cyassl/error-ssl.h
24860do :
24861 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24862if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24863 cat >>confdefs.h <<_ACEOF
24864#define HAVE_CYASSL_ERROR_SSL_H 1
24865_ACEOF
24866
24867fi
24868
24869done
24870
24871
24872 LIBS="-l$cyassllibname -lm $LIBS"
24873
24874 if test "x$cyassllibname" = "xwolfssl"; then
24875 for ac_func in wolfSSLv3_client_method \
Elliott Hughes82be86d2017-09-20 17:00:17 -070024876 wolfSSL_get_peer_certificate \
24877 wolfSSL_UseALPN
24878do :
24879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24880ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24881if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24882 cat >>confdefs.h <<_ACEOF
24883#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24884_ACEOF
24885
24886fi
24887done
24888
24889 else
24890 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24891 CyaSSL_get_peer_certificate
24892do :
24893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24894ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24895if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24896 cat >>confdefs.h <<_ACEOF
24897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24898_ACEOF
24899
24900fi
24901done
24902
24903 fi
24904
24905 if test -n "$cyassllib"; then
24906 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024907 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24908 export CURL_LIBRARY_PATH
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24910$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024911 fi
24912 fi
24913
24914 fi
24915
24916 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024917 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024918fi
24919
24920
Elliott Hughesa93fb052018-12-12 14:22:48 -080024921OPT_MESALINK=no
24922
24923_cppflags=$CPPFLAGS
24924_ldflags=$LDFLAGS
24925
24926# Check whether --with-mesalink was given.
24927if test "${with_mesalink+set}" = set; then :
24928 withval=$with_mesalink; OPT_MESALINK=$withval
24929fi
24930
24931
24932if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24933 ssl_msg=
24934
24935 if test X"$OPT_MESALINK" != Xno; then
24936
24937 if test "$OPT_MESALINK" = "yes"; then
24938 OPT_MESALINK=""
24939 fi
24940
24941 if test -z "$OPT_MESALINK" ; then
24942
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24944$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24945if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24946 $as_echo_n "(cached) " >&6
24947else
24948 ac_check_lib_save_LIBS=$LIBS
24949LIBS="-lmesalink $LIBS"
24950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24951/* end confdefs.h. */
24952
24953
24954#ifdef __cplusplus
24955extern "C"
24956#endif
24957char mesalink_library_init ();
24958int main (void)
24959{
24960return mesalink_library_init ();
24961 ;
24962 return 0;
24963}
24964_ACEOF
24965if ac_fn_c_try_link "$LINENO"; then :
24966 ac_cv_lib_mesalink_mesalink_library_init=yes
24967else
24968 ac_cv_lib_mesalink_mesalink_library_init=no
24969fi
24970rm -f core conftest.err conftest.$ac_objext \
24971 conftest$ac_exeext conftest.$ac_ext
24972LIBS=$ac_check_lib_save_LIBS
24973fi
24974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24975$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24976if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24977
24978
24979$as_echo "#define USE_MESALINK 1" >>confdefs.h
24980
24981 USE_MESALINK=1
24982
24983 MESALINK_ENABLED=1
24984 USE_MESALINK="yes"
24985 ssl_msg="MesaLink"
24986 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24987
24988fi
24989
24990 fi
24991
24992 addld=""
24993 addlib=""
24994 addcflags=""
24995 mesalinklib=""
24996
24997 if test "x$USE_MESALINK" != "xyes"; then
24998 addld=-L$OPT_MESALINK/lib$libsuff
24999 addcflags=-I$OPT_MESALINK/include
25000 mesalinklib=$OPT_MESALINK/lib$libsuff
25001
25002 LDFLAGS="$LDFLAGS $addld"
25003 if test "$addcflags" != "-I/usr/include"; then
25004 CPPFLAGS="$CPPFLAGS $addcflags"
25005 fi
25006
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
25008$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
25009if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25010 $as_echo_n "(cached) " >&6
25011else
25012 ac_check_lib_save_LIBS=$LIBS
25013LIBS="-lmesalink $LIBS"
25014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25015/* end confdefs.h. */
25016
25017
25018#ifdef __cplusplus
25019extern "C"
25020#endif
25021char mesalink_library_init ();
25022int main (void)
25023{
25024return mesalink_library_init ();
25025 ;
25026 return 0;
25027}
25028_ACEOF
25029if ac_fn_c_try_link "$LINENO"; then :
25030 ac_cv_lib_mesalink_mesalink_library_init=yes
25031else
25032 ac_cv_lib_mesalink_mesalink_library_init=no
25033fi
25034rm -f core conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
25036LIBS=$ac_check_lib_save_LIBS
25037fi
25038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25039$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25040if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25041
25042
25043$as_echo "#define USE_MESALINK 1" >>confdefs.h
25044
25045 USE_MESALINK=1
25046
25047 MESALINK_ENABLED=1
25048 USE_MESALINK="yes"
25049 ssl_msg="MesaLink"
25050 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25051
25052else
25053
25054 CPPFLAGS=$_cppflags
25055 LDFLAGS=$_ldflags
25056
25057fi
25058
25059 fi
25060
25061 if test "x$USE_MESALINK" = "xyes"; then
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25063$as_echo "$as_me: detected MesaLink" >&6;}
25064
25065 LIBS="-lmesalink $LIBS"
25066
25067 if test -n "$mesalinklib"; then
25068 if test "x$cross_compiling" != "xyes"; then
25069 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25070 export LD_LIBRARY_PATH
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25072$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25073 fi
25074 fi
25075 fi
25076
25077 fi
25078 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25079fi
25080
25081
Elliott Hughes82be86d2017-09-20 17:00:17 -070025082OPT_NSS=no
25083
25084
25085# Check whether --with-nss was given.
25086if test "${with_nss+set}" = set; then :
25087 withval=$with_nss; OPT_NSS=$withval
25088fi
25089
25090
Alex Deymo486467e2017-12-19 19:04:07 +010025091if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25092 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025093
25094 if test X"$OPT_NSS" != Xno; then
25095
25096 addld=""
25097 addlib=""
25098 addcflags=""
25099 nssprefix=""
25100 version=""
25101
25102 if test "x$OPT_NSS" = "xyes"; then
25103
25104
25105 if test -n "$PKG_CONFIG"; then
25106 PKGCONFIG="$PKG_CONFIG"
25107 else
25108 if test -n "$ac_tool_prefix"; then
25109 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25110set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25112$as_echo_n "checking for $ac_word... " >&6; }
25113if ${ac_cv_path_PKGCONFIG+:} false; then :
25114 $as_echo_n "(cached) " >&6
25115else
25116 case $PKGCONFIG in
25117 [\\/]* | ?:[\\/]*)
25118 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25119 ;;
25120 *)
25121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25122as_dummy="$PATH:/usr/bin:/usr/local/bin"
25123for as_dir in $as_dummy
25124do
25125 IFS=$as_save_IFS
25126 test -z "$as_dir" && as_dir=.
25127 for ac_exec_ext in '' $ac_executable_extensions; do
25128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25129 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25131 break 2
25132 fi
25133done
25134 done
25135IFS=$as_save_IFS
25136
25137 ;;
25138esac
25139fi
25140PKGCONFIG=$ac_cv_path_PKGCONFIG
25141if test -n "$PKGCONFIG"; then
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25143$as_echo "$PKGCONFIG" >&6; }
25144else
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25146$as_echo "no" >&6; }
25147fi
25148
25149
25150fi
25151if test -z "$ac_cv_path_PKGCONFIG"; then
25152 ac_pt_PKGCONFIG=$PKGCONFIG
25153 # Extract the first word of "pkg-config", so it can be a program name with args.
25154set dummy pkg-config; ac_word=$2
25155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25156$as_echo_n "checking for $ac_word... " >&6; }
25157if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25158 $as_echo_n "(cached) " >&6
25159else
25160 case $ac_pt_PKGCONFIG in
25161 [\\/]* | ?:[\\/]*)
25162 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25163 ;;
25164 *)
25165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25166as_dummy="$PATH:/usr/bin:/usr/local/bin"
25167for as_dir in $as_dummy
25168do
25169 IFS=$as_save_IFS
25170 test -z "$as_dir" && as_dir=.
25171 for ac_exec_ext in '' $ac_executable_extensions; do
25172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25173 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25175 break 2
25176 fi
25177done
25178 done
25179IFS=$as_save_IFS
25180
25181 ;;
25182esac
25183fi
25184ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25185if test -n "$ac_pt_PKGCONFIG"; then
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25187$as_echo "$ac_pt_PKGCONFIG" >&6; }
25188else
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25190$as_echo "no" >&6; }
25191fi
25192
25193 if test "x$ac_pt_PKGCONFIG" = x; then
25194 PKGCONFIG="no"
25195 else
25196 case $cross_compiling:$ac_tool_warned in
25197yes:)
25198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25200ac_tool_warned=yes ;;
25201esac
25202 PKGCONFIG=$ac_pt_PKGCONFIG
25203 fi
25204else
25205 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25206fi
25207
25208 fi
25209
25210 if test "x$PKGCONFIG" != "xno"; then
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25212$as_echo_n "checking for nss options with pkg-config... " >&6; }
25213 itexists=`
25214 if test -n ""; then
25215 PKG_CONFIG_LIBDIR=""
25216 export PKG_CONFIG_LIBDIR
25217 fi
25218 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25219
25220 if test -z "$itexists"; then
25221 PKGCONFIG="no"
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25223$as_echo "no" >&6; }
25224 else
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25226$as_echo "found" >&6; }
25227 fi
25228 fi
25229
25230
25231 if test "$PKGCONFIG" != "no" ; then
25232 addlib=`$PKGCONFIG --libs nss`
25233 addcflags=`$PKGCONFIG --cflags nss`
25234 version=`$PKGCONFIG --modversion nss`
25235 nssprefix=`$PKGCONFIG --variable=prefix nss`
25236 else
25237
25238 check=`nss-config --version 2>/dev/null`
25239 if test -n "$check"; then
25240 addlib=`nss-config --libs`
25241 addcflags=`nss-config --cflags`
25242 version=`nss-config --version`
25243 nssprefix=`nss-config --prefix`
25244 else
25245 addlib="-lnss3"
25246 addcflags=""
25247 version="unknown"
25248 fi
25249 fi
25250 else
25251 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25252 if test -f "$NSS_PCDIR/nss.pc"; then
25253
25254 if test -n "$PKG_CONFIG"; then
25255 PKGCONFIG="$PKG_CONFIG"
25256 else
25257 if test -n "$ac_tool_prefix"; then
25258 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25259set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25261$as_echo_n "checking for $ac_word... " >&6; }
25262if ${ac_cv_path_PKGCONFIG+:} false; then :
25263 $as_echo_n "(cached) " >&6
25264else
25265 case $PKGCONFIG in
25266 [\\/]* | ?:[\\/]*)
25267 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25268 ;;
25269 *)
25270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25271as_dummy="$PATH:/usr/bin:/usr/local/bin"
25272for as_dir in $as_dummy
25273do
25274 IFS=$as_save_IFS
25275 test -z "$as_dir" && as_dir=.
25276 for ac_exec_ext in '' $ac_executable_extensions; do
25277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25278 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25280 break 2
25281 fi
25282done
25283 done
25284IFS=$as_save_IFS
25285
25286 ;;
25287esac
25288fi
25289PKGCONFIG=$ac_cv_path_PKGCONFIG
25290if test -n "$PKGCONFIG"; then
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25292$as_echo "$PKGCONFIG" >&6; }
25293else
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25295$as_echo "no" >&6; }
25296fi
25297
25298
25299fi
25300if test -z "$ac_cv_path_PKGCONFIG"; then
25301 ac_pt_PKGCONFIG=$PKGCONFIG
25302 # Extract the first word of "pkg-config", so it can be a program name with args.
25303set dummy pkg-config; ac_word=$2
25304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25305$as_echo_n "checking for $ac_word... " >&6; }
25306if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25307 $as_echo_n "(cached) " >&6
25308else
25309 case $ac_pt_PKGCONFIG in
25310 [\\/]* | ?:[\\/]*)
25311 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25312 ;;
25313 *)
25314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25315as_dummy="$PATH:/usr/bin:/usr/local/bin"
25316for as_dir in $as_dummy
25317do
25318 IFS=$as_save_IFS
25319 test -z "$as_dir" && as_dir=.
25320 for ac_exec_ext in '' $ac_executable_extensions; do
25321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25322 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25324 break 2
25325 fi
25326done
25327 done
25328IFS=$as_save_IFS
25329
25330 ;;
25331esac
25332fi
25333ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25334if test -n "$ac_pt_PKGCONFIG"; then
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25336$as_echo "$ac_pt_PKGCONFIG" >&6; }
25337else
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25339$as_echo "no" >&6; }
25340fi
25341
25342 if test "x$ac_pt_PKGCONFIG" = x; then
25343 PKGCONFIG="no"
25344 else
25345 case $cross_compiling:$ac_tool_warned in
25346yes:)
25347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25349ac_tool_warned=yes ;;
25350esac
25351 PKGCONFIG=$ac_pt_PKGCONFIG
25352 fi
25353else
25354 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25355fi
25356
25357 fi
25358
25359 if test "x$PKGCONFIG" != "xno"; then
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25361$as_echo_n "checking for nss options with pkg-config... " >&6; }
25362 itexists=`
25363 if test -n "$NSS_PCDIR"; then
25364 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25365 export PKG_CONFIG_LIBDIR
25366 fi
25367 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25368
25369 if test -z "$itexists"; then
25370 PKGCONFIG="no"
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25372$as_echo "no" >&6; }
25373 else
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25375$as_echo "found" >&6; }
25376 fi
25377 fi
25378
25379 if test "$PKGCONFIG" != "no" ; then
25380 addld=`
25381 if test -n "$NSS_PCDIR"; then
25382 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25383 export PKG_CONFIG_LIBDIR
25384 fi
25385 $PKGCONFIG --libs-only-L nss`
25386 addlib=`
25387 if test -n "$NSS_PCDIR"; then
25388 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25389 export PKG_CONFIG_LIBDIR
25390 fi
25391 $PKGCONFIG --libs-only-l nss`
25392 addcflags=`
25393 if test -n "$NSS_PCDIR"; then
25394 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25395 export PKG_CONFIG_LIBDIR
25396 fi
25397 $PKGCONFIG --cflags nss`
25398 version=`
25399 if test -n "$NSS_PCDIR"; then
25400 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25401 export PKG_CONFIG_LIBDIR
25402 fi
25403 $PKGCONFIG --modversion nss`
25404 nssprefix=`
25405 if test -n "$NSS_PCDIR"; then
25406 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25407 export PKG_CONFIG_LIBDIR
25408 fi
25409 $PKGCONFIG --variable=prefix nss`
25410 fi
25411 fi
25412 fi
25413
25414 if test -z "$addlib"; then
25415 # Without pkg-config, we'll kludge in some defaults
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25417$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25418 addld="-L$OPT_NSS/lib"
25419 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25420 addcflags="-I$OPT_NSS/include"
25421 version="unknown"
25422 nssprefix=$OPT_NSS
25423 fi
25424
25425 CLEANLDFLAGS="$LDFLAGS"
25426 CLEANLIBS="$LIBS"
25427 CLEANCPPFLAGS="$CPPFLAGS"
25428
25429 LDFLAGS="$addld $LDFLAGS"
25430 LIBS="$addlib $LIBS"
25431 if test "$addcflags" != "-I/usr/include"; then
25432 CPPFLAGS="$CPPFLAGS $addcflags"
25433 fi
25434
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25436$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25437if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25438 $as_echo_n "(cached) " >&6
25439else
25440 ac_check_lib_save_LIBS=$LIBS
25441LIBS="-lnss3 $LIBS"
25442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25443/* end confdefs.h. */
25444
25445
25446#ifdef __cplusplus
25447extern "C"
25448#endif
25449char SSL_VersionRangeSet ();
25450int main (void)
25451{
25452return SSL_VersionRangeSet ();
25453 ;
25454 return 0;
25455}
25456_ACEOF
25457if ac_fn_c_try_link "$LINENO"; then :
25458 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25459else
25460 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25461fi
25462rm -f core conftest.err conftest.$ac_objext \
25463 conftest$ac_exeext conftest.$ac_ext
25464LIBS=$ac_check_lib_save_LIBS
25465fi
25466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25467$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25468if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25469
25470
25471$as_echo "#define USE_NSS 1" >>confdefs.h
25472
25473 USE_NSS=1
25474
25475 USE_NSS="yes"
25476 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025477 ssl_msg="NSS"
25478 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025479
25480else
25481
25482 LDFLAGS="$CLEANLDFLAGS"
25483 LIBS="$CLEANLIBS"
25484 CPPFLAGS="$CLEANCPPFLAGS"
25485
25486fi
25487
25488
25489 if test "x$USE_NSS" = "xyes"; then
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25491$as_echo "$as_me: detected NSS version $version" >&6;}
25492
Elliott Hughescac39802018-04-27 16:19:43 -070025493 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25494if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25495
25496
25497$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25498
25499
25500fi
25501
25502
Elliott Hughes82be86d2017-09-20 17:00:17 -070025503 NSS_LIBS=$addlib
25504
25505
25506 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025507 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25508 export CURL_LIBRARY_PATH
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25510$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025511 fi
25512
25513 fi
25514 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025515 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025516fi
Alex Deymo486467e2017-12-19 19:04:07 +010025517
Haibo Huang65021c72019-03-27 15:37:23 -070025518case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$AMISSL_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025519x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25521$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Haibo Huang65021c72019-03-27 15:37:23 -070025522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&5
25523$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025524 ;;
25525x1)
25526 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025527
25528 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025529 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25530$as_echo "$as_me: built with one SSL backend" >&6;}
25531 ;;
25532*)
25533 # more than one SSL backend is enabled
25534
25535 SSL_ENABLED="1"
25536
25537 CURL_WITH_MULTI_SSL="1"
25538
25539$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25542$as_echo "$as_me: built with multiple SSL backends" >&6;}
25543 ;;
25544esac
25545
25546if test -n "$ssl_backends"; then
25547 curl_ssl_msg="enabled ($ssl_backends)"
25548fi
25549
25550if test no = "$VALID_DEFAULT_SSL_BACKEND"
25551then
25552 if test -n "$SSL_ENABLED"
25553 then
25554 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25555 else
25556 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25557 fi
25558elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25559then
25560
25561cat >>confdefs.h <<_ACEOF
25562#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25563_ACEOF
25564
Elliott Hughes82be86d2017-09-20 17:00:17 -070025565fi
25566
25567
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025568if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025569
25570
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25572$as_echo_n "checking default CA cert bundle/path... " >&6; }
25573
25574
25575# Check whether --with-ca-bundle was given.
25576if test "${with_ca_bundle+set}" = set; then :
25577 withval=$with_ca_bundle;
25578 want_ca="$withval"
25579 if test "x$want_ca" = "xyes"; then
25580 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25581 fi
25582
25583else
25584 want_ca="unset"
25585fi
25586
25587
25588# Check whether --with-ca-path was given.
25589if test "${with_ca_path+set}" = set; then :
25590 withval=$with_ca_path;
25591 want_capath="$withval"
25592 if test "x$want_capath" = "xyes"; then
25593 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25594 fi
25595
25596else
25597 want_capath="unset"
25598fi
25599
25600
25601 ca_warning=" (warning: certs not found)"
25602 capath_warning=" (warning: certs not found)"
25603 check_capath=""
25604
25605 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25606 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25607 ca="$want_ca"
25608 capath="$want_capath"
25609 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25610 ca="$want_ca"
25611 capath="no"
25612 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25613 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25614 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25615 fi
25616 capath="$want_capath"
25617 ca="no"
25618 else
25619 ca="no"
25620 capath="no"
25621 if test "x$cross_compiling" != "xyes"; then
25622 if test "x$want_ca" = "xunset"; then
25623 if test "x$prefix" != xNONE; then
25624 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25625 else
25626 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25627 fi
25628
25629 for a in /etc/ssl/certs/ca-certificates.crt \
25630 /etc/pki/tls/certs/ca-bundle.crt \
25631 /usr/share/ssl/certs/ca-bundle.crt \
25632 /usr/local/share/certs/ca-root-nss.crt \
25633 /etc/ssl/cert.pem \
25634 "$cac"; do
25635 if test -f "$a"; then
25636 ca="$a"
25637 break
25638 fi
25639 done
25640 fi
25641 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25642 "x$OPENSSL_ENABLED" = "x1"; then
25643 check_capath="/etc/ssl/certs/"
25644 fi
25645 else
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25647$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25648 fi
25649 fi
25650
25651 if test "x$ca" = "xno" || test -f "$ca"; then
25652 ca_warning=""
25653 fi
25654
25655 if test "x$capath" != "xno"; then
25656 check_capath="$capath"
25657 fi
25658
25659 if test ! -z "$check_capath"; then
25660 for a in "$check_capath"; do
25661 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
25662 if test "x$capath" = "xno"; then
25663 capath="$a"
25664 fi
25665 capath_warning=""
25666 break
25667 fi
25668 done
25669 fi
25670
25671 if test "x$capath" = "xno"; then
25672 capath_warning=""
25673 fi
25674
25675 if test "x$ca" != "xno"; then
25676 CURL_CA_BUNDLE='"'$ca'"'
25677
25678cat >>confdefs.h <<_ACEOF
25679#define CURL_CA_BUNDLE "$ca"
25680_ACEOF
25681
25682
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25684$as_echo "$ca" >&6; }
25685 fi
25686 if test "x$capath" != "xno"; then
25687 CURL_CA_PATH="\"$capath\""
25688
25689cat >>confdefs.h <<_ACEOF
25690#define CURL_CA_PATH "$capath"
25691_ACEOF
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25694$as_echo "$capath (capath)" >&6; }
25695 fi
25696 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25698$as_echo "no" >&6; }
25699 fi
25700
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25702$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25703
25704# Check whether --with-ca-fallback was given.
25705if test "${with_ca_fallback+set}" = set; then :
25706 withval=$with_ca_fallback;
25707 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25708 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25709 fi
25710
25711else
25712 with_ca_fallback="no"
25713fi
25714
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25716$as_echo "$with_ca_fallback" >&6; }
25717 if test "x$with_ca_fallback" = "xyes"; then
25718 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25719 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25720 fi
25721
25722cat >>confdefs.h <<_ACEOF
25723#define CURL_CA_FALLBACK 1
25724_ACEOF
25725
25726 fi
25727
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025728fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025729
25730
25731
25732# Check whether --with-libpsl was given.
25733if test "${with_libpsl+set}" = set; then :
25734 withval=$with_libpsl; with_libpsl=$withval
25735else
25736 with_libpsl=yes
25737fi
25738
25739if test $with_libpsl != "no"; then
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25741$as_echo_n "checking for library containing psl_builtin... " >&6; }
25742if ${ac_cv_search_psl_builtin+:} false; then :
25743 $as_echo_n "(cached) " >&6
25744else
25745 ac_func_search_save_LIBS=$LIBS
25746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25747/* end confdefs.h. */
25748
25749
25750#ifdef __cplusplus
25751extern "C"
25752#endif
25753char psl_builtin ();
25754int main (void)
25755{
25756return psl_builtin ();
25757 ;
25758 return 0;
25759}
25760_ACEOF
25761for ac_lib in '' psl; do
25762 if test -z "$ac_lib"; then
25763 ac_res="none required"
25764 else
25765 ac_res=-l$ac_lib
25766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25767 fi
25768 if ac_fn_c_try_link "$LINENO"; then :
25769 ac_cv_search_psl_builtin=$ac_res
25770fi
25771rm -f core conftest.err conftest.$ac_objext \
25772 conftest$ac_exeext
25773 if ${ac_cv_search_psl_builtin+:} false; then :
25774 break
25775fi
25776done
25777if ${ac_cv_search_psl_builtin+:} false; then :
25778
25779else
25780 ac_cv_search_psl_builtin=no
25781fi
25782rm conftest.$ac_ext
25783LIBS=$ac_func_search_save_LIBS
25784fi
25785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25786$as_echo "$ac_cv_search_psl_builtin" >&6; }
25787ac_res=$ac_cv_search_psl_builtin
25788if test "$ac_res" != no; then :
25789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Haibo Huang65021c72019-03-27 15:37:23 -070025790 curl_psl_msg="enabled";
Elliott Hughes82be86d2017-09-20 17:00:17 -070025791
25792$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25793
25794
25795else
25796 curl_psl_msg="no (libpsl not found)";
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25798$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25799
25800
25801fi
25802
25803fi
Haibo Huang65021c72019-03-27 15:37:23 -070025804 if test "$curl_psl_msg" = "enabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025805 USE_LIBPSL_TRUE=
25806 USE_LIBPSL_FALSE='#'
25807else
25808 USE_LIBPSL_TRUE='#'
25809 USE_LIBPSL_FALSE=
25810fi
25811
25812
25813
25814OPT_LIBMETALINK=no
25815
25816
25817# Check whether --with-libmetalink was given.
25818if test "${with_libmetalink+set}" = set; then :
25819 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25820fi
25821
25822
25823if test X"$OPT_LIBMETALINK" != Xno; then
25824
25825 addld=""
25826 addlib=""
25827 addcflags=""
25828 version=""
25829 libmetalinklib=""
25830
25831 PKGTEST="no"
25832 if test "x$OPT_LIBMETALINK" = "xyes"; then
25833 PKGTEST="yes"
25834
25835 if test -n "$PKG_CONFIG"; then
25836 PKGCONFIG="$PKG_CONFIG"
25837 else
25838 if test -n "$ac_tool_prefix"; then
25839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25840set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25842$as_echo_n "checking for $ac_word... " >&6; }
25843if ${ac_cv_path_PKGCONFIG+:} false; then :
25844 $as_echo_n "(cached) " >&6
25845else
25846 case $PKGCONFIG in
25847 [\\/]* | ?:[\\/]*)
25848 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25849 ;;
25850 *)
25851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25852as_dummy="$PATH:/usr/bin:/usr/local/bin"
25853for as_dir in $as_dummy
25854do
25855 IFS=$as_save_IFS
25856 test -z "$as_dir" && as_dir=.
25857 for ac_exec_ext in '' $ac_executable_extensions; do
25858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25859 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25861 break 2
25862 fi
25863done
25864 done
25865IFS=$as_save_IFS
25866
25867 ;;
25868esac
25869fi
25870PKGCONFIG=$ac_cv_path_PKGCONFIG
25871if test -n "$PKGCONFIG"; then
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25873$as_echo "$PKGCONFIG" >&6; }
25874else
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25876$as_echo "no" >&6; }
25877fi
25878
25879
25880fi
25881if test -z "$ac_cv_path_PKGCONFIG"; then
25882 ac_pt_PKGCONFIG=$PKGCONFIG
25883 # Extract the first word of "pkg-config", so it can be a program name with args.
25884set dummy pkg-config; ac_word=$2
25885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25886$as_echo_n "checking for $ac_word... " >&6; }
25887if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25888 $as_echo_n "(cached) " >&6
25889else
25890 case $ac_pt_PKGCONFIG in
25891 [\\/]* | ?:[\\/]*)
25892 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25893 ;;
25894 *)
25895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25896as_dummy="$PATH:/usr/bin:/usr/local/bin"
25897for as_dir in $as_dummy
25898do
25899 IFS=$as_save_IFS
25900 test -z "$as_dir" && as_dir=.
25901 for ac_exec_ext in '' $ac_executable_extensions; do
25902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25903 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25905 break 2
25906 fi
25907done
25908 done
25909IFS=$as_save_IFS
25910
25911 ;;
25912esac
25913fi
25914ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25915if test -n "$ac_pt_PKGCONFIG"; then
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25917$as_echo "$ac_pt_PKGCONFIG" >&6; }
25918else
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25920$as_echo "no" >&6; }
25921fi
25922
25923 if test "x$ac_pt_PKGCONFIG" = x; then
25924 PKGCONFIG="no"
25925 else
25926 case $cross_compiling:$ac_tool_warned in
25927yes:)
25928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25930ac_tool_warned=yes ;;
25931esac
25932 PKGCONFIG=$ac_pt_PKGCONFIG
25933 fi
25934else
25935 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25936fi
25937
25938 fi
25939
25940 if test "x$PKGCONFIG" != "xno"; then
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25942$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25943 itexists=`
25944 if test -n ""; then
25945 PKG_CONFIG_LIBDIR=""
25946 export PKG_CONFIG_LIBDIR
25947 fi
25948 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25949
25950 if test -z "$itexists"; then
25951 PKGCONFIG="no"
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25953$as_echo "no" >&6; }
25954 else
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25956$as_echo "found" >&6; }
25957 fi
25958 fi
25959
25960 else
25961 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25963$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25964 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25965 PKGTEST="yes"
25966 fi
25967 if test "$PKGTEST" = "yes"; then
25968
25969 if test -n "$PKG_CONFIG"; then
25970 PKGCONFIG="$PKG_CONFIG"
25971 else
25972 if test -n "$ac_tool_prefix"; then
25973 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25974set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25976$as_echo_n "checking for $ac_word... " >&6; }
25977if ${ac_cv_path_PKGCONFIG+:} false; then :
25978 $as_echo_n "(cached) " >&6
25979else
25980 case $PKGCONFIG in
25981 [\\/]* | ?:[\\/]*)
25982 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25983 ;;
25984 *)
25985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25986as_dummy="$PATH:/usr/bin:/usr/local/bin"
25987for as_dir in $as_dummy
25988do
25989 IFS=$as_save_IFS
25990 test -z "$as_dir" && as_dir=.
25991 for ac_exec_ext in '' $ac_executable_extensions; do
25992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25993 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25995 break 2
25996 fi
25997done
25998 done
25999IFS=$as_save_IFS
26000
26001 ;;
26002esac
26003fi
26004PKGCONFIG=$ac_cv_path_PKGCONFIG
26005if test -n "$PKGCONFIG"; then
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26007$as_echo "$PKGCONFIG" >&6; }
26008else
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26010$as_echo "no" >&6; }
26011fi
26012
26013
26014fi
26015if test -z "$ac_cv_path_PKGCONFIG"; then
26016 ac_pt_PKGCONFIG=$PKGCONFIG
26017 # Extract the first word of "pkg-config", so it can be a program name with args.
26018set dummy pkg-config; ac_word=$2
26019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26020$as_echo_n "checking for $ac_word... " >&6; }
26021if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26022 $as_echo_n "(cached) " >&6
26023else
26024 case $ac_pt_PKGCONFIG in
26025 [\\/]* | ?:[\\/]*)
26026 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26027 ;;
26028 *)
26029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26030as_dummy="$PATH:/usr/bin:/usr/local/bin"
26031for as_dir in $as_dummy
26032do
26033 IFS=$as_save_IFS
26034 test -z "$as_dir" && as_dir=.
26035 for ac_exec_ext in '' $ac_executable_extensions; do
26036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26037 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26039 break 2
26040 fi
26041done
26042 done
26043IFS=$as_save_IFS
26044
26045 ;;
26046esac
26047fi
26048ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26049if test -n "$ac_pt_PKGCONFIG"; then
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26051$as_echo "$ac_pt_PKGCONFIG" >&6; }
26052else
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26054$as_echo "no" >&6; }
26055fi
26056
26057 if test "x$ac_pt_PKGCONFIG" = x; then
26058 PKGCONFIG="no"
26059 else
26060 case $cross_compiling:$ac_tool_warned in
26061yes:)
26062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26064ac_tool_warned=yes ;;
26065esac
26066 PKGCONFIG=$ac_pt_PKGCONFIG
26067 fi
26068else
26069 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26070fi
26071
26072 fi
26073
26074 if test "x$PKGCONFIG" != "xno"; then
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26076$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26077 itexists=`
26078 if test -n "$LIBMETALINK_PCDIR"; then
26079 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26080 export PKG_CONFIG_LIBDIR
26081 fi
26082 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26083
26084 if test -z "$itexists"; then
26085 PKGCONFIG="no"
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26087$as_echo "no" >&6; }
26088 else
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26090$as_echo "found" >&6; }
26091 fi
26092 fi
26093
26094 fi
26095 fi
26096 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26097 addlib=`
26098 if test -n "$LIBMETALINK_PCDIR"; then
26099 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26100 export PKG_CONFIG_LIBDIR
26101 fi
26102 $PKGCONFIG --libs-only-l libmetalink`
26103 addld=`
26104 if test -n "$LIBMETALINK_PCDIR"; then
26105 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26106 export PKG_CONFIG_LIBDIR
26107 fi
26108 $PKGCONFIG --libs-only-L libmetalink`
26109 addcflags=`
26110 if test -n "$LIBMETALINK_PCDIR"; then
26111 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26112 export PKG_CONFIG_LIBDIR
26113 fi
26114 $PKGCONFIG --cflags-only-I libmetalink`
26115 version=`
26116 if test -n "$LIBMETALINK_PCDIR"; then
26117 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26118 export PKG_CONFIG_LIBDIR
26119 fi
26120 $PKGCONFIG --modversion libmetalink`
26121 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26122 fi
26123 if test -n "$addlib"; then
26124
26125 clean_CPPFLAGS="$CPPFLAGS"
26126 clean_LDFLAGS="$LDFLAGS"
26127 clean_LIBS="$LIBS"
26128 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26129 LDFLAGS="$clean_LDFLAGS $addld"
26130 LIBS="$addlib $clean_LIBS"
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26132$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134/* end confdefs.h. */
26135
26136
26137# include <metalink/metalink.h>
26138
26139int main (void)
26140{
26141
26142 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26143 return 1;
26144
26145 ;
26146 return 0;
26147}
26148
26149_ACEOF
26150if ac_fn_c_try_link "$LINENO"; then :
26151
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26153$as_echo "yes ($version)" >&6; }
26154 want_metalink="yes"
26155
26156else
26157
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26159$as_echo "no ($version)" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26161$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26162 want_metalink="no"
26163
26164fi
26165rm -f core conftest.err conftest.$ac_objext \
26166 conftest$ac_exeext conftest.$ac_ext
26167 CPPFLAGS="$clean_CPPFLAGS"
26168 LDFLAGS="$clean_LDFLAGS"
26169 LIBS="$clean_LIBS"
26170 if test "$want_metalink" = "yes"; then
26171
26172$as_echo "#define USE_METALINK 1" >>confdefs.h
26173
26174 LIBMETALINK_LIBS=$addlib
26175 LIBMETALINK_LDFLAGS=$addld
26176 LIBMETALINK_CPPFLAGS=$addcflags
26177
26178
26179
26180 curl_mtlnk_msg="enabled"
26181 fi
26182
26183 fi
26184fi
26185
26186
26187OPT_LIBSSH2=off
26188
26189# Check whether --with-libssh2 was given.
26190if test "${with_libssh2+set}" = set; then :
26191 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026192else
26193 OPT_LIBSSH2=no
26194fi
26195
26196
26197
26198OPT_LIBSSH=off
26199
26200# Check whether --with-libssh was given.
26201if test "${with_libssh+set}" = set; then :
26202 withval=$with_libssh; OPT_LIBSSH=$withval
26203else
26204 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026205fi
26206
26207
26208if test X"$OPT_LIBSSH2" != Xno; then
26209 CLEANLDFLAGS="$LDFLAGS"
26210 CLEANCPPFLAGS="$CPPFLAGS"
26211 CLEANLIBS="$LIBS"
26212
26213 case "$OPT_LIBSSH2" in
26214 yes)
26215
26216 if test -n "$PKG_CONFIG"; then
26217 PKGCONFIG="$PKG_CONFIG"
26218 else
26219 if test -n "$ac_tool_prefix"; then
26220 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26221set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26223$as_echo_n "checking for $ac_word... " >&6; }
26224if ${ac_cv_path_PKGCONFIG+:} false; then :
26225 $as_echo_n "(cached) " >&6
26226else
26227 case $PKGCONFIG in
26228 [\\/]* | ?:[\\/]*)
26229 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26230 ;;
26231 *)
26232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26233as_dummy="$PATH:/usr/bin:/usr/local/bin"
26234for as_dir in $as_dummy
26235do
26236 IFS=$as_save_IFS
26237 test -z "$as_dir" && as_dir=.
26238 for ac_exec_ext in '' $ac_executable_extensions; do
26239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26240 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26242 break 2
26243 fi
26244done
26245 done
26246IFS=$as_save_IFS
26247
26248 ;;
26249esac
26250fi
26251PKGCONFIG=$ac_cv_path_PKGCONFIG
26252if test -n "$PKGCONFIG"; then
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26254$as_echo "$PKGCONFIG" >&6; }
26255else
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26257$as_echo "no" >&6; }
26258fi
26259
26260
26261fi
26262if test -z "$ac_cv_path_PKGCONFIG"; then
26263 ac_pt_PKGCONFIG=$PKGCONFIG
26264 # Extract the first word of "pkg-config", so it can be a program name with args.
26265set dummy pkg-config; ac_word=$2
26266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26267$as_echo_n "checking for $ac_word... " >&6; }
26268if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26269 $as_echo_n "(cached) " >&6
26270else
26271 case $ac_pt_PKGCONFIG in
26272 [\\/]* | ?:[\\/]*)
26273 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26274 ;;
26275 *)
26276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26277as_dummy="$PATH:/usr/bin:/usr/local/bin"
26278for as_dir in $as_dummy
26279do
26280 IFS=$as_save_IFS
26281 test -z "$as_dir" && as_dir=.
26282 for ac_exec_ext in '' $ac_executable_extensions; do
26283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26284 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26286 break 2
26287 fi
26288done
26289 done
26290IFS=$as_save_IFS
26291
26292 ;;
26293esac
26294fi
26295ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26296if test -n "$ac_pt_PKGCONFIG"; then
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26298$as_echo "$ac_pt_PKGCONFIG" >&6; }
26299else
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26301$as_echo "no" >&6; }
26302fi
26303
26304 if test "x$ac_pt_PKGCONFIG" = x; then
26305 PKGCONFIG="no"
26306 else
26307 case $cross_compiling:$ac_tool_warned in
26308yes:)
26309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26311ac_tool_warned=yes ;;
26312esac
26313 PKGCONFIG=$ac_pt_PKGCONFIG
26314 fi
26315else
26316 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26317fi
26318
26319 fi
26320
26321 if test "x$PKGCONFIG" != "xno"; then
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26323$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26324 itexists=`
26325 if test -n ""; then
26326 PKG_CONFIG_LIBDIR=""
26327 export PKG_CONFIG_LIBDIR
26328 fi
26329 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26330
26331 if test -z "$itexists"; then
26332 PKGCONFIG="no"
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26334$as_echo "no" >&6; }
26335 else
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26337$as_echo "found" >&6; }
26338 fi
26339 fi
26340
26341
26342 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026343 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026344 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26345 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26346 version=`$PKGCONFIG --modversion libssh2`
26347 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26348 fi
26349
26350 ;;
26351 off)
26352 ;;
26353 *)
26354 PREFIX_SSH2=$OPT_LIBSSH2
26355 ;;
26356 esac
26357
26358 if test -n "$PREFIX_SSH2"; then
26359 LIB_SSH2="-lssh2"
26360 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26361 CPP_SSH2=-I${PREFIX_SSH2}/include
26362 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26363 fi
26364
26365 LDFLAGS="$LDFLAGS $LD_SSH2"
26366 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26367 LIBS="$LIB_SSH2 $LIBS"
26368
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26370$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26371if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26372 $as_echo_n "(cached) " >&6
26373else
26374 ac_check_lib_save_LIBS=$LIBS
26375LIBS="-lssh2 $LIBS"
26376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26377/* end confdefs.h. */
26378
26379
26380#ifdef __cplusplus
26381extern "C"
26382#endif
26383char libssh2_channel_open_ex ();
26384int main (void)
26385{
26386return libssh2_channel_open_ex ();
26387 ;
26388 return 0;
26389}
26390_ACEOF
26391if ac_fn_c_try_link "$LINENO"; then :
26392 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26393else
26394 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26395fi
26396rm -f core conftest.err conftest.$ac_objext \
26397 conftest$ac_exeext conftest.$ac_ext
26398LIBS=$ac_check_lib_save_LIBS
26399fi
26400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26401$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26402if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26403 cat >>confdefs.h <<_ACEOF
26404#define HAVE_LIBSSH2 1
26405_ACEOF
26406
26407 LIBS="-lssh2 $LIBS"
26408
26409fi
26410
26411
26412 for ac_header in libssh2.h
26413do :
26414 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26415if test "x$ac_cv_header_libssh2_h" = xyes; then :
26416 cat >>confdefs.h <<_ACEOF
26417#define HAVE_LIBSSH2_H 1
26418_ACEOF
26419 curl_ssh_msg="enabled (libSSH2)"
26420 LIBSSH2_ENABLED=1
26421
26422$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26423
26424 USE_LIBSSH2=1
26425
26426
26427fi
26428
26429done
26430
26431
26432 if test X"$OPT_LIBSSH2" != Xoff &&
26433 test "$LIBSSH2_ENABLED" != "1"; then
26434 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26435 fi
26436
26437 if test "$LIBSSH2_ENABLED" = "1"; then
26438 if test -n "$DIR_SSH2"; then
26439
26440 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026441 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26442 export CURL_LIBRARY_PATH
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26444$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026445 fi
26446 fi
26447 else
26448 LDFLAGS=$CLEANLDFLAGS
26449 CPPFLAGS=$CLEANCPPFLAGS
26450 LIBS=$CLEANLIBS
26451 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026452elif test X"$OPT_LIBSSH" != Xno; then
26453 CLEANLDFLAGS="$LDFLAGS"
26454 CLEANCPPFLAGS="$CPPFLAGS"
26455 CLEANLIBS="$LIBS"
26456
26457 case "$OPT_LIBSSH" in
26458 yes)
26459
26460 if test -n "$PKG_CONFIG"; then
26461 PKGCONFIG="$PKG_CONFIG"
26462 else
26463 if test -n "$ac_tool_prefix"; then
26464 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26465set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26467$as_echo_n "checking for $ac_word... " >&6; }
26468if ${ac_cv_path_PKGCONFIG+:} false; then :
26469 $as_echo_n "(cached) " >&6
26470else
26471 case $PKGCONFIG in
26472 [\\/]* | ?:[\\/]*)
26473 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26474 ;;
26475 *)
26476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26477as_dummy="$PATH:/usr/bin:/usr/local/bin"
26478for as_dir in $as_dummy
26479do
26480 IFS=$as_save_IFS
26481 test -z "$as_dir" && as_dir=.
26482 for ac_exec_ext in '' $ac_executable_extensions; do
26483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26484 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26486 break 2
26487 fi
26488done
26489 done
26490IFS=$as_save_IFS
26491
26492 ;;
26493esac
26494fi
26495PKGCONFIG=$ac_cv_path_PKGCONFIG
26496if test -n "$PKGCONFIG"; then
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26498$as_echo "$PKGCONFIG" >&6; }
26499else
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26501$as_echo "no" >&6; }
26502fi
26503
26504
26505fi
26506if test -z "$ac_cv_path_PKGCONFIG"; then
26507 ac_pt_PKGCONFIG=$PKGCONFIG
26508 # Extract the first word of "pkg-config", so it can be a program name with args.
26509set dummy pkg-config; ac_word=$2
26510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26511$as_echo_n "checking for $ac_word... " >&6; }
26512if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26513 $as_echo_n "(cached) " >&6
26514else
26515 case $ac_pt_PKGCONFIG in
26516 [\\/]* | ?:[\\/]*)
26517 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26518 ;;
26519 *)
26520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26521as_dummy="$PATH:/usr/bin:/usr/local/bin"
26522for as_dir in $as_dummy
26523do
26524 IFS=$as_save_IFS
26525 test -z "$as_dir" && as_dir=.
26526 for ac_exec_ext in '' $ac_executable_extensions; do
26527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26528 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26530 break 2
26531 fi
26532done
26533 done
26534IFS=$as_save_IFS
26535
26536 ;;
26537esac
26538fi
26539ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26540if test -n "$ac_pt_PKGCONFIG"; then
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26542$as_echo "$ac_pt_PKGCONFIG" >&6; }
26543else
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26545$as_echo "no" >&6; }
26546fi
26547
26548 if test "x$ac_pt_PKGCONFIG" = x; then
26549 PKGCONFIG="no"
26550 else
26551 case $cross_compiling:$ac_tool_warned in
26552yes:)
26553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26555ac_tool_warned=yes ;;
26556esac
26557 PKGCONFIG=$ac_pt_PKGCONFIG
26558 fi
26559else
26560 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26561fi
26562
26563 fi
26564
26565 if test "x$PKGCONFIG" != "xno"; then
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26567$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26568 itexists=`
26569 if test -n ""; then
26570 PKG_CONFIG_LIBDIR=""
26571 export PKG_CONFIG_LIBDIR
26572 fi
26573 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26574
26575 if test -z "$itexists"; then
26576 PKGCONFIG="no"
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26578$as_echo "no" >&6; }
26579 else
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26581$as_echo "found" >&6; }
26582 fi
26583 fi
26584
26585
26586 if test "$PKGCONFIG" != "no" ; then
26587 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26588 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26589 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26590 version=`$PKGCONFIG --modversion libssh`
26591 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26592 fi
26593
26594 ;;
26595 off)
26596 ;;
26597 *)
26598 PREFIX_SSH=$OPT_LIBSSH
26599 ;;
26600 esac
26601
26602 if test -n "$PREFIX_SSH"; then
26603 LIB_SSH="-lssh"
26604 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26605 CPP_SSH=-I${PREFIX_SSH}/include
26606 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26607 fi
26608
26609 LDFLAGS="$LDFLAGS $LD_SSH"
26610 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26611 LIBS="$LIB_SSH $LIBS"
26612
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26614$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26615if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26616 $as_echo_n "(cached) " >&6
26617else
26618 ac_check_lib_save_LIBS=$LIBS
26619LIBS="-lssh $LIBS"
26620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26621/* end confdefs.h. */
26622
26623
26624#ifdef __cplusplus
26625extern "C"
26626#endif
26627char ssh_new ();
26628int main (void)
26629{
26630return ssh_new ();
26631 ;
26632 return 0;
26633}
26634_ACEOF
26635if ac_fn_c_try_link "$LINENO"; then :
26636 ac_cv_lib_ssh_ssh_new=yes
26637else
26638 ac_cv_lib_ssh_ssh_new=no
26639fi
26640rm -f core conftest.err conftest.$ac_objext \
26641 conftest$ac_exeext conftest.$ac_ext
26642LIBS=$ac_check_lib_save_LIBS
26643fi
26644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26645$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26646if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26647 cat >>confdefs.h <<_ACEOF
26648#define HAVE_LIBSSH 1
26649_ACEOF
26650
26651 LIBS="-lssh $LIBS"
26652
26653fi
26654
26655
26656 for ac_header in libssh/libssh.h
26657do :
26658 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26659if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26660 cat >>confdefs.h <<_ACEOF
26661#define HAVE_LIBSSH_LIBSSH_H 1
26662_ACEOF
26663 curl_ssh_msg="enabled (libSSH)"
26664 LIBSSH_ENABLED=1
26665
26666$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26667
26668 USE_LIBSSH=1
26669
26670
26671fi
26672
26673done
26674
26675
26676 if test X"$OPT_LIBSSH" != Xoff &&
26677 test "$LIBSSH_ENABLED" != "1"; then
26678 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26679 fi
26680
26681 if test "$LIBSSH_ENABLED" = "1"; then
26682 if test -n "$DIR_SSH"; then
26683
26684 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026685 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26686 export CURL_LIBRARY_PATH
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26688$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026689 fi
26690 fi
26691 else
26692 LDFLAGS=$CLEANLDFLAGS
26693 CPPFLAGS=$CLEANCPPFLAGS
26694 LIBS=$CLEANLIBS
26695 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026696fi
26697
26698
26699OPT_LIBRTMP=off
26700
26701# Check whether --with-librtmp was given.
26702if test "${with_librtmp+set}" = set; then :
26703 withval=$with_librtmp; OPT_LIBRTMP=$withval
26704fi
26705
26706
26707if test X"$OPT_LIBRTMP" != Xno; then
26708 CLEANLDFLAGS="$LDFLAGS"
26709 CLEANCPPFLAGS="$CPPFLAGS"
26710 CLEANLIBS="$LIBS"
26711
26712 case "$OPT_LIBRTMP" in
26713 yes)
26714
26715 if test -n "$PKG_CONFIG"; then
26716 PKGCONFIG="$PKG_CONFIG"
26717 else
26718 if test -n "$ac_tool_prefix"; then
26719 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26720set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26722$as_echo_n "checking for $ac_word... " >&6; }
26723if ${ac_cv_path_PKGCONFIG+:} false; then :
26724 $as_echo_n "(cached) " >&6
26725else
26726 case $PKGCONFIG in
26727 [\\/]* | ?:[\\/]*)
26728 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26729 ;;
26730 *)
26731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26732as_dummy="$PATH:/usr/bin:/usr/local/bin"
26733for as_dir in $as_dummy
26734do
26735 IFS=$as_save_IFS
26736 test -z "$as_dir" && as_dir=.
26737 for ac_exec_ext in '' $ac_executable_extensions; do
26738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26739 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26741 break 2
26742 fi
26743done
26744 done
26745IFS=$as_save_IFS
26746
26747 ;;
26748esac
26749fi
26750PKGCONFIG=$ac_cv_path_PKGCONFIG
26751if test -n "$PKGCONFIG"; then
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26753$as_echo "$PKGCONFIG" >&6; }
26754else
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26756$as_echo "no" >&6; }
26757fi
26758
26759
26760fi
26761if test -z "$ac_cv_path_PKGCONFIG"; then
26762 ac_pt_PKGCONFIG=$PKGCONFIG
26763 # Extract the first word of "pkg-config", so it can be a program name with args.
26764set dummy pkg-config; ac_word=$2
26765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26766$as_echo_n "checking for $ac_word... " >&6; }
26767if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26768 $as_echo_n "(cached) " >&6
26769else
26770 case $ac_pt_PKGCONFIG in
26771 [\\/]* | ?:[\\/]*)
26772 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26773 ;;
26774 *)
26775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26776as_dummy="$PATH:/usr/bin:/usr/local/bin"
26777for as_dir in $as_dummy
26778do
26779 IFS=$as_save_IFS
26780 test -z "$as_dir" && as_dir=.
26781 for ac_exec_ext in '' $ac_executable_extensions; do
26782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26783 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26785 break 2
26786 fi
26787done
26788 done
26789IFS=$as_save_IFS
26790
26791 ;;
26792esac
26793fi
26794ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26795if test -n "$ac_pt_PKGCONFIG"; then
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26797$as_echo "$ac_pt_PKGCONFIG" >&6; }
26798else
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26800$as_echo "no" >&6; }
26801fi
26802
26803 if test "x$ac_pt_PKGCONFIG" = x; then
26804 PKGCONFIG="no"
26805 else
26806 case $cross_compiling:$ac_tool_warned in
26807yes:)
26808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26810ac_tool_warned=yes ;;
26811esac
26812 PKGCONFIG=$ac_pt_PKGCONFIG
26813 fi
26814else
26815 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26816fi
26817
26818 fi
26819
26820 if test "x$PKGCONFIG" != "xno"; then
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26822$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26823 itexists=`
26824 if test -n ""; then
26825 PKG_CONFIG_LIBDIR=""
26826 export PKG_CONFIG_LIBDIR
26827 fi
26828 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26829
26830 if test -z "$itexists"; then
26831 PKGCONFIG="no"
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26833$as_echo "no" >&6; }
26834 else
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26836$as_echo "found" >&6; }
26837 fi
26838 fi
26839
26840
26841 if test "$PKGCONFIG" != "no" ; then
26842 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26843 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26844 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26845 version=`$PKGCONFIG --modversion librtmp`
26846 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26847 else
26848 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26849 fi
26850
26851 ;;
26852 off)
26853 LIB_RTMP="-lrtmp"
26854 ;;
26855 *)
26856 LIB_RTMP="-lrtmp"
26857 PREFIX_RTMP=$OPT_LIBRTMP
26858 ;;
26859 esac
26860
26861 if test -n "$PREFIX_RTMP"; then
26862 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26863 CPP_RTMP=-I${PREFIX_RTMP}/include
26864 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26865 fi
26866
26867 LDFLAGS="$LDFLAGS $LD_RTMP"
26868 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26869 LIBS="$LIB_RTMP $LIBS"
26870
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26872$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26873if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26874 $as_echo_n "(cached) " >&6
26875else
26876 ac_check_lib_save_LIBS=$LIBS
26877LIBS="-lrtmp $LIBS"
26878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879/* end confdefs.h. */
26880
26881
26882#ifdef __cplusplus
26883extern "C"
26884#endif
26885char RTMP_Init ();
26886int main (void)
26887{
26888return RTMP_Init ();
26889 ;
26890 return 0;
26891}
26892_ACEOF
26893if ac_fn_c_try_link "$LINENO"; then :
26894 ac_cv_lib_rtmp_RTMP_Init=yes
26895else
26896 ac_cv_lib_rtmp_RTMP_Init=no
26897fi
26898rm -f core conftest.err conftest.$ac_objext \
26899 conftest$ac_exeext conftest.$ac_ext
26900LIBS=$ac_check_lib_save_LIBS
26901fi
26902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26903$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26904if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26905
26906 for ac_header in librtmp/rtmp.h
26907do :
26908 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26909if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26910 cat >>confdefs.h <<_ACEOF
26911#define HAVE_LIBRTMP_RTMP_H 1
26912_ACEOF
26913 curl_rtmp_msg="enabled (librtmp)"
26914 LIBRTMP_ENABLED=1
26915
26916$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26917
26918 USE_LIBRTMP=1
26919
26920
26921fi
26922
26923done
26924
26925
26926else
26927 LDFLAGS=$CLEANLDFLAGS
26928 CPPFLAGS=$CLEANCPPFLAGS
26929 LIBS=$CLEANLIBS
26930
26931fi
26932
26933
26934 if test X"$OPT_LIBRTMP" != Xoff &&
26935 test "$LIBRTMP_ENABLED" != "1"; then
26936 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26937 fi
26938
26939fi
26940
26941
26942versioned_symbols_flavour=
26943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26944$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26945# Check whether --enable-versioned-symbols was given.
26946if test "${enable_versioned_symbols+set}" = set; then :
26947 enableval=$enable_versioned_symbols; case "$enableval" in
26948 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26949$as_echo "yes" >&6; }
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26951$as_echo_n "checking if libraries can be versioned... " >&6; }
26952 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26953 if test -z "$GLD"; then
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26955$as_echo "no" >&6; }
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26957$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26958 else
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26960$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026961 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26962 versioned_symbols_flavour="MULTISSL_"
26963 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026964 versioned_symbols_flavour="OPENSSL_"
26965 elif test "x$GNUTLS_ENABLED" = "x1"; then
26966 versioned_symbols_flavour="GNUTLS_"
26967 elif test "x$NSS_ENABLED" = "x1"; then
26968 versioned_symbols_flavour="NSS_"
26969 elif test "x$POLARSSL_ENABLED" = "x1"; then
26970 versioned_symbols_flavour="POLARSSL_"
26971 elif test "x$CYASSL_ENABLED" = "x1"; then
26972 versioned_symbols_flavour="CYASSL_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026973 elif test "x$WINSSL_ENABLED" = "x1"; then
Haibo Huang65021c72019-03-27 15:37:23 -070026974 versioned_symbols_flavour="SCHANNEL_"
26975 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
26976 versioned_symbols_flavour="SECURE_TRANSPORT_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026977 else
26978 versioned_symbols_flavour=""
26979 fi
26980 versioned_symbols="yes"
26981 fi
26982 ;;
26983
26984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26985$as_echo "no" >&6; }
26986 ;;
26987 esac
26988
26989else
26990
26991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26992$as_echo "no" >&6; }
26993
26994
26995fi
26996
26997
26998CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26999
27000 if test "x$versioned_symbols" = 'xyes'; then
27001 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27002 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27003else
27004 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27005 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27006fi
27007
27008
27009
27010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27011$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27012OPT_WINIDN="default"
27013
27014# Check whether --with-winidn was given.
27015if test "${with_winidn+set}" = set; then :
27016 withval=$with_winidn; OPT_WINIDN=$withval
27017fi
27018
27019case "$OPT_WINIDN" in
27020 no|default)
27021 want_winidn="no"
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023$as_echo "no" >&6; }
27024 ;;
27025 yes)
27026 want_winidn="yes"
27027 want_winidn_path="default"
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27029$as_echo "yes" >&6; }
27030 ;;
27031 *)
27032 want_winidn="yes"
27033 want_winidn_path="$withval"
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27035$as_echo "yes ($withval)" >&6; }
27036 ;;
27037esac
27038
27039if test "$want_winidn" = "yes"; then
27040 clean_CPPFLAGS="$CPPFLAGS"
27041 clean_LDFLAGS="$LDFLAGS"
27042 clean_LIBS="$LIBS"
27043 WINIDN_LIBS="-lnormaliz"
27044 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27045 #
27046 if test "$want_winidn_path" != "default"; then
27047 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27048 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27049 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27050 fi
27051 #
27052 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27053 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27054 LIBS="$WINIDN_LIBS $LIBS"
27055 #
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27057$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27059/* end confdefs.h. */
27060
27061
27062 #include <windows.h>
27063
27064int main (void)
27065{
27066
27067 IdnToUnicode(0, NULL, 0, NULL, 0);
27068
27069 ;
27070 return 0;
27071}
27072
27073_ACEOF
27074if ac_fn_c_try_link "$LINENO"; then :
27075
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27077$as_echo "yes" >&6; }
27078 tst_links_winidn="yes"
27079
27080else
27081
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27083$as_echo "no" >&6; }
27084 tst_links_winidn="no"
27085
27086fi
27087rm -f core conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
27089 #
27090 if test "$tst_links_winidn" = "yes"; then
27091
27092$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27093
27094
27095$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27096
27097 IDN_ENABLED=1
27098
27099 curl_idn_msg="enabled (Windows-native)"
27100 else
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27102$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27103 CPPFLAGS="$clean_CPPFLAGS"
27104 LDFLAGS="$clean_LDFLAGS"
27105 LIBS="$clean_LIBS"
27106 fi
27107fi
27108
27109
27110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27111$as_echo_n "checking whether to build with libidn2... " >&6; }
27112OPT_IDN="default"
27113
27114# Check whether --with-libidn2 was given.
27115if test "${with_libidn2+set}" = set; then :
27116 withval=$with_libidn2; OPT_IDN=$withval
27117fi
27118
27119case "$OPT_IDN" in
27120 no)
27121 want_idn="no"
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123$as_echo "no" >&6; }
27124 ;;
27125 default)
27126 want_idn="yes"
27127 want_idn_path="default"
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27129$as_echo "(assumed) yes" >&6; }
27130 ;;
27131 yes)
27132 want_idn="yes"
27133 want_idn_path="default"
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27135$as_echo "yes" >&6; }
27136 ;;
27137 *)
27138 want_idn="yes"
27139 want_idn_path="$withval"
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27141$as_echo "yes ($withval)" >&6; }
27142 ;;
27143esac
27144
27145if test "$want_idn" = "yes"; then
27146 clean_CPPFLAGS="$CPPFLAGS"
27147 clean_LDFLAGS="$LDFLAGS"
27148 clean_LIBS="$LIBS"
27149 PKGCONFIG="no"
27150 #
27151 if test "$want_idn_path" != "default"; then
27152 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27153
27154 if test -n "$PKG_CONFIG"; then
27155 PKGCONFIG="$PKG_CONFIG"
27156 else
27157 if test -n "$ac_tool_prefix"; then
27158 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27159set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27161$as_echo_n "checking for $ac_word... " >&6; }
27162if ${ac_cv_path_PKGCONFIG+:} false; then :
27163 $as_echo_n "(cached) " >&6
27164else
27165 case $PKGCONFIG in
27166 [\\/]* | ?:[\\/]*)
27167 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27168 ;;
27169 *)
27170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27171as_dummy="$PATH:/usr/bin:/usr/local/bin"
27172for as_dir in $as_dummy
27173do
27174 IFS=$as_save_IFS
27175 test -z "$as_dir" && as_dir=.
27176 for ac_exec_ext in '' $ac_executable_extensions; do
27177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27178 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27180 break 2
27181 fi
27182done
27183 done
27184IFS=$as_save_IFS
27185
27186 ;;
27187esac
27188fi
27189PKGCONFIG=$ac_cv_path_PKGCONFIG
27190if test -n "$PKGCONFIG"; then
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27192$as_echo "$PKGCONFIG" >&6; }
27193else
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27195$as_echo "no" >&6; }
27196fi
27197
27198
27199fi
27200if test -z "$ac_cv_path_PKGCONFIG"; then
27201 ac_pt_PKGCONFIG=$PKGCONFIG
27202 # Extract the first word of "pkg-config", so it can be a program name with args.
27203set dummy pkg-config; ac_word=$2
27204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27205$as_echo_n "checking for $ac_word... " >&6; }
27206if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27207 $as_echo_n "(cached) " >&6
27208else
27209 case $ac_pt_PKGCONFIG in
27210 [\\/]* | ?:[\\/]*)
27211 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27212 ;;
27213 *)
27214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27215as_dummy="$PATH:/usr/bin:/usr/local/bin"
27216for as_dir in $as_dummy
27217do
27218 IFS=$as_save_IFS
27219 test -z "$as_dir" && as_dir=.
27220 for ac_exec_ext in '' $ac_executable_extensions; do
27221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27222 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27224 break 2
27225 fi
27226done
27227 done
27228IFS=$as_save_IFS
27229
27230 ;;
27231esac
27232fi
27233ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27234if test -n "$ac_pt_PKGCONFIG"; then
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27236$as_echo "$ac_pt_PKGCONFIG" >&6; }
27237else
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27239$as_echo "no" >&6; }
27240fi
27241
27242 if test "x$ac_pt_PKGCONFIG" = x; then
27243 PKGCONFIG="no"
27244 else
27245 case $cross_compiling:$ac_tool_warned in
27246yes:)
27247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27249ac_tool_warned=yes ;;
27250esac
27251 PKGCONFIG=$ac_pt_PKGCONFIG
27252 fi
27253else
27254 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27255fi
27256
27257 fi
27258
27259 if test "x$PKGCONFIG" != "xno"; then
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27261$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27262 itexists=`
27263 if test -n "$IDN_PCDIR"; then
27264 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27265 export PKG_CONFIG_LIBDIR
27266 fi
27267 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27268
27269 if test -z "$itexists"; then
27270 PKGCONFIG="no"
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27272$as_echo "no" >&6; }
27273 else
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27275$as_echo "found" >&6; }
27276 fi
27277 fi
27278
27279 if test "$PKGCONFIG" != "no"; then
27280 IDN_LIBS=`
27281 if test -n "$IDN_PCDIR"; then
27282 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27283 export PKG_CONFIG_LIBDIR
27284 fi
27285 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27286 IDN_LDFLAGS=`
27287 if test -n "$IDN_PCDIR"; then
27288 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27289 export PKG_CONFIG_LIBDIR
27290 fi
27291 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27292 IDN_CPPFLAGS=`
27293 if test -n "$IDN_PCDIR"; then
27294 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27295 export PKG_CONFIG_LIBDIR
27296 fi
27297 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27298 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27299 else
27300 IDN_LIBS="-lidn2"
27301 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27302 IDN_CPPFLAGS="-I$want_idn_path/include"
27303 IDN_DIR="$want_idn_path/lib$libsuff"
27304 fi
27305 else
27306
27307 if test -n "$PKG_CONFIG"; then
27308 PKGCONFIG="$PKG_CONFIG"
27309 else
27310 if test -n "$ac_tool_prefix"; then
27311 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27312set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27314$as_echo_n "checking for $ac_word... " >&6; }
27315if ${ac_cv_path_PKGCONFIG+:} false; then :
27316 $as_echo_n "(cached) " >&6
27317else
27318 case $PKGCONFIG in
27319 [\\/]* | ?:[\\/]*)
27320 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27321 ;;
27322 *)
27323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27324as_dummy="$PATH:/usr/bin:/usr/local/bin"
27325for as_dir in $as_dummy
27326do
27327 IFS=$as_save_IFS
27328 test -z "$as_dir" && as_dir=.
27329 for ac_exec_ext in '' $ac_executable_extensions; do
27330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27331 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27333 break 2
27334 fi
27335done
27336 done
27337IFS=$as_save_IFS
27338
27339 ;;
27340esac
27341fi
27342PKGCONFIG=$ac_cv_path_PKGCONFIG
27343if test -n "$PKGCONFIG"; then
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27345$as_echo "$PKGCONFIG" >&6; }
27346else
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27348$as_echo "no" >&6; }
27349fi
27350
27351
27352fi
27353if test -z "$ac_cv_path_PKGCONFIG"; then
27354 ac_pt_PKGCONFIG=$PKGCONFIG
27355 # Extract the first word of "pkg-config", so it can be a program name with args.
27356set dummy pkg-config; ac_word=$2
27357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27358$as_echo_n "checking for $ac_word... " >&6; }
27359if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27360 $as_echo_n "(cached) " >&6
27361else
27362 case $ac_pt_PKGCONFIG in
27363 [\\/]* | ?:[\\/]*)
27364 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27365 ;;
27366 *)
27367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368as_dummy="$PATH:/usr/bin:/usr/local/bin"
27369for as_dir in $as_dummy
27370do
27371 IFS=$as_save_IFS
27372 test -z "$as_dir" && as_dir=.
27373 for ac_exec_ext in '' $ac_executable_extensions; do
27374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27375 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27377 break 2
27378 fi
27379done
27380 done
27381IFS=$as_save_IFS
27382
27383 ;;
27384esac
27385fi
27386ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27387if test -n "$ac_pt_PKGCONFIG"; then
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27389$as_echo "$ac_pt_PKGCONFIG" >&6; }
27390else
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27392$as_echo "no" >&6; }
27393fi
27394
27395 if test "x$ac_pt_PKGCONFIG" = x; then
27396 PKGCONFIG="no"
27397 else
27398 case $cross_compiling:$ac_tool_warned in
27399yes:)
27400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27402ac_tool_warned=yes ;;
27403esac
27404 PKGCONFIG=$ac_pt_PKGCONFIG
27405 fi
27406else
27407 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27408fi
27409
27410 fi
27411
27412 if test "x$PKGCONFIG" != "xno"; then
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27414$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27415 itexists=`
27416 if test -n ""; then
27417 PKG_CONFIG_LIBDIR=""
27418 export PKG_CONFIG_LIBDIR
27419 fi
27420 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27421
27422 if test -z "$itexists"; then
27423 PKGCONFIG="no"
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27425$as_echo "no" >&6; }
27426 else
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27428$as_echo "found" >&6; }
27429 fi
27430 fi
27431
27432 if test "$PKGCONFIG" != "no"; then
27433 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27434 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27435 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27436 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27437 else
27438 IDN_LIBS="-lidn2"
27439 fi
27440 fi
27441 #
27442 if test "$PKGCONFIG" != "no"; then
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27444$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27446$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27448$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27450$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27451 else
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27453$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27455$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27457$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27459$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27460 fi
27461 #
27462 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27463 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27464 LIBS="$IDN_LIBS $LIBS"
27465 #
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27467$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27469/* end confdefs.h. */
27470
27471
27472#define idn2_lookup_ul innocuous_idn2_lookup_ul
27473#ifdef __STDC__
27474# include <limits.h>
27475#else
27476# include <assert.h>
27477#endif
27478#undef idn2_lookup_ul
27479#ifdef __cplusplus
27480extern "C"
27481#endif
27482char idn2_lookup_ul ();
27483#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27484choke me
27485#endif
27486
27487int main (void)
27488{
27489return idn2_lookup_ul ();
27490 ;
27491 return 0;
27492}
27493
27494_ACEOF
27495if ac_fn_c_try_link "$LINENO"; then :
27496
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27498$as_echo "yes" >&6; }
27499 tst_links_libidn="yes"
27500
27501else
27502
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27504$as_echo "no" >&6; }
27505 tst_links_libidn="no"
27506
27507fi
27508rm -f core conftest.err conftest.$ac_objext \
27509 conftest$ac_exeext conftest.$ac_ext
27510 #
27511 for ac_header in idn2.h
27512do :
27513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27516 cat >>confdefs.h <<_ACEOF
27517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27518_ACEOF
27519
27520fi
27521
27522done
27523
27524
27525 if test "$tst_links_libidn" = "yes"; then
27526
27527$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27528
27529
27530 IDN_ENABLED=1
27531
27532 curl_idn_msg="enabled (libidn2)"
27533 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027534 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27535 export CURL_LIBRARY_PATH
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27537$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027538 fi
27539 else
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27541$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27542 CPPFLAGS="$clean_CPPFLAGS"
27543 LDFLAGS="$clean_LDFLAGS"
27544 LIBS="$clean_LIBS"
27545 fi
27546fi
27547
27548
27549
27550
27551
27552OPT_H2="yes"
27553
27554if test "x$disable_http" = "xyes"; then
27555 # without HTTP, nghttp2 is no use
27556 OPT_H2="no"
27557fi
27558
27559
27560# Check whether --with-nghttp2 was given.
27561if test "${with_nghttp2+set}" = set; then :
27562 withval=$with_nghttp2; OPT_H2=$withval
27563fi
27564
27565case "$OPT_H2" in
27566 no)
27567 want_h2="no"
27568 ;;
27569 yes)
27570 want_h2="default"
27571 want_h2_path=""
27572 ;;
27573 *)
27574 want_h2="yes"
27575 want_h2_path="$withval/lib/pkgconfig"
27576 ;;
27577esac
27578
27579curl_h2_msg="disabled (--with-nghttp2)"
27580if test X"$want_h2" != Xno; then
27581 CLEANLDFLAGS="$LDFLAGS"
27582 CLEANCPPFLAGS="$CPPFLAGS"
27583 CLEANLIBS="$LIBS"
27584
27585
27586 if test -n "$PKG_CONFIG"; then
27587 PKGCONFIG="$PKG_CONFIG"
27588 else
27589 if test -n "$ac_tool_prefix"; then
27590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27591set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27593$as_echo_n "checking for $ac_word... " >&6; }
27594if ${ac_cv_path_PKGCONFIG+:} false; then :
27595 $as_echo_n "(cached) " >&6
27596else
27597 case $PKGCONFIG in
27598 [\\/]* | ?:[\\/]*)
27599 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27600 ;;
27601 *)
27602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27603as_dummy="$PATH:/usr/bin:/usr/local/bin"
27604for as_dir in $as_dummy
27605do
27606 IFS=$as_save_IFS
27607 test -z "$as_dir" && as_dir=.
27608 for ac_exec_ext in '' $ac_executable_extensions; do
27609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27610 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27612 break 2
27613 fi
27614done
27615 done
27616IFS=$as_save_IFS
27617
27618 ;;
27619esac
27620fi
27621PKGCONFIG=$ac_cv_path_PKGCONFIG
27622if test -n "$PKGCONFIG"; then
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27624$as_echo "$PKGCONFIG" >&6; }
27625else
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27627$as_echo "no" >&6; }
27628fi
27629
27630
27631fi
27632if test -z "$ac_cv_path_PKGCONFIG"; then
27633 ac_pt_PKGCONFIG=$PKGCONFIG
27634 # Extract the first word of "pkg-config", so it can be a program name with args.
27635set dummy pkg-config; ac_word=$2
27636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27637$as_echo_n "checking for $ac_word... " >&6; }
27638if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27639 $as_echo_n "(cached) " >&6
27640else
27641 case $ac_pt_PKGCONFIG in
27642 [\\/]* | ?:[\\/]*)
27643 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27644 ;;
27645 *)
27646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27647as_dummy="$PATH:/usr/bin:/usr/local/bin"
27648for as_dir in $as_dummy
27649do
27650 IFS=$as_save_IFS
27651 test -z "$as_dir" && as_dir=.
27652 for ac_exec_ext in '' $ac_executable_extensions; do
27653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27654 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27656 break 2
27657 fi
27658done
27659 done
27660IFS=$as_save_IFS
27661
27662 ;;
27663esac
27664fi
27665ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27666if test -n "$ac_pt_PKGCONFIG"; then
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27668$as_echo "$ac_pt_PKGCONFIG" >&6; }
27669else
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27671$as_echo "no" >&6; }
27672fi
27673
27674 if test "x$ac_pt_PKGCONFIG" = x; then
27675 PKGCONFIG="no"
27676 else
27677 case $cross_compiling:$ac_tool_warned in
27678yes:)
27679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27681ac_tool_warned=yes ;;
27682esac
27683 PKGCONFIG=$ac_pt_PKGCONFIG
27684 fi
27685else
27686 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27687fi
27688
27689 fi
27690
27691 if test "x$PKGCONFIG" != "xno"; then
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27693$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27694 itexists=`
27695 if test -n "$want_h2_path"; then
27696 PKG_CONFIG_LIBDIR="$want_h2_path"
27697 export PKG_CONFIG_LIBDIR
27698 fi
27699 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27700
27701 if test -z "$itexists"; then
27702 PKGCONFIG="no"
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27704$as_echo "no" >&6; }
27705 else
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27707$as_echo "found" >&6; }
27708 fi
27709 fi
27710
27711
27712 if test "$PKGCONFIG" != "no" ; then
27713 LIB_H2=`
27714 if test -n "$want_h2_path"; then
27715 PKG_CONFIG_LIBDIR="$want_h2_path"
27716 export PKG_CONFIG_LIBDIR
27717 fi
27718
27719 $PKGCONFIG --libs-only-l libnghttp2`
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27721$as_echo "$as_me: -l is $LIB_H2" >&6;}
27722
27723 CPP_H2=`
27724 if test -n "$want_h2_path"; then
27725 PKG_CONFIG_LIBDIR="$want_h2_path"
27726 export PKG_CONFIG_LIBDIR
27727 fi
27728 $PKGCONFIG --cflags-only-I libnghttp2`
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27730$as_echo "$as_me: -I is $CPP_H2" >&6;}
27731
27732 LD_H2=`
27733 if test -n "$want_h2_path"; then
27734 PKG_CONFIG_LIBDIR="$want_h2_path"
27735 export PKG_CONFIG_LIBDIR
27736 fi
27737
27738 $PKGCONFIG --libs-only-L libnghttp2`
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27740$as_echo "$as_me: -L is $LD_H2" >&6;}
27741
27742 LDFLAGS="$LDFLAGS $LD_H2"
27743 CPPFLAGS="$CPPFLAGS $CPP_H2"
27744 LIBS="$LIB_H2 $LIBS"
27745
27746 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27747 # >= 1.0.0
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27749$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27750if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27751 $as_echo_n "(cached) " >&6
27752else
27753 ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lnghttp2 $LIBS"
27755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756/* end confdefs.h. */
27757
27758
27759#ifdef __cplusplus
27760extern "C"
27761#endif
27762char nghttp2_option_set_no_recv_client_magic ();
27763int main (void)
27764{
27765return nghttp2_option_set_no_recv_client_magic ();
27766 ;
27767 return 0;
27768}
27769_ACEOF
27770if ac_fn_c_try_link "$LINENO"; then :
27771 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27772else
27773 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27774fi
27775rm -f core conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
27777LIBS=$ac_check_lib_save_LIBS
27778fi
27779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27780$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27781if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27782
27783 for ac_header in nghttp2/nghttp2.h
27784do :
27785 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27786if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27787 cat >>confdefs.h <<_ACEOF
27788#define HAVE_NGHTTP2_NGHTTP2_H 1
27789_ACEOF
27790 curl_h2_msg="enabled (nghttp2)"
27791 NGHTTP2_ENABLED=1
27792
27793$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27794
27795 USE_NGHTTP2=1
27796
27797
27798fi
27799
27800done
27801
27802
27803else
27804 LDFLAGS=$CLEANLDFLAGS
27805 CPPFLAGS=$CLEANCPPFLAGS
27806 LIBS=$CLEANLIBS
27807
27808fi
27809
27810
27811 else
27812 if test X"$want_h2" != Xdefault; then
27813 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27814 fi
27815 fi
27816
27817fi
27818
27819
27820OPT_ZSH_FPATH=default
27821
27822# Check whether --with-zsh-functions-dir was given.
27823if test "${with_zsh_functions_dir+set}" = set; then :
27824 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27825fi
27826
27827case "$OPT_ZSH_FPATH" in
27828 no)
27829 ;;
27830 default|yes)
27831 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27832
27833 ;;
27834 *)
27835 ZSH_FUNCTIONS_DIR="$withval"
27836
27837 ;;
27838esac
27839
27840
Haibo Huang65021c72019-03-27 15:37:23 -070027841OPT_FISH_FPATH=default
27842
27843# Check whether --with-fish-functions-dir was given.
27844if test "${with_fish_functions_dir+set}" = set; then :
27845 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
27846fi
27847
27848case "$OPT_FISH_FPATH" in
27849 no)
27850 ;;
27851 default|yes)
Haibo Huang34ab3462019-05-22 00:50:27 -070027852
27853 if test -n "$PKG_CONFIG"; then
27854 PKGCONFIG="$PKG_CONFIG"
27855 else
27856 if test -n "$ac_tool_prefix"; then
27857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27858set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27860$as_echo_n "checking for $ac_word... " >&6; }
27861if ${ac_cv_path_PKGCONFIG+:} false; then :
27862 $as_echo_n "(cached) " >&6
27863else
27864 case $PKGCONFIG in
27865 [\\/]* | ?:[\\/]*)
27866 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27867 ;;
27868 *)
27869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27870as_dummy="$PATH:/usr/bin:/usr/local/bin"
27871for as_dir in $as_dummy
27872do
27873 IFS=$as_save_IFS
27874 test -z "$as_dir" && as_dir=.
27875 for ac_exec_ext in '' $ac_executable_extensions; do
27876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27877 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27879 break 2
27880 fi
27881done
27882 done
27883IFS=$as_save_IFS
27884
27885 ;;
27886esac
27887fi
27888PKGCONFIG=$ac_cv_path_PKGCONFIG
27889if test -n "$PKGCONFIG"; then
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27891$as_echo "$PKGCONFIG" >&6; }
27892else
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27894$as_echo "no" >&6; }
27895fi
27896
27897
27898fi
27899if test -z "$ac_cv_path_PKGCONFIG"; then
27900 ac_pt_PKGCONFIG=$PKGCONFIG
27901 # Extract the first word of "pkg-config", so it can be a program name with args.
27902set dummy pkg-config; ac_word=$2
27903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27904$as_echo_n "checking for $ac_word... " >&6; }
27905if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27906 $as_echo_n "(cached) " >&6
27907else
27908 case $ac_pt_PKGCONFIG in
27909 [\\/]* | ?:[\\/]*)
27910 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27911 ;;
27912 *)
27913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914as_dummy="$PATH:/usr/bin:/usr/local/bin"
27915for as_dir in $as_dummy
27916do
27917 IFS=$as_save_IFS
27918 test -z "$as_dir" && as_dir=.
27919 for ac_exec_ext in '' $ac_executable_extensions; do
27920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27921 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27923 break 2
27924 fi
27925done
27926 done
27927IFS=$as_save_IFS
27928
27929 ;;
27930esac
27931fi
27932ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27933if test -n "$ac_pt_PKGCONFIG"; then
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27935$as_echo "$ac_pt_PKGCONFIG" >&6; }
27936else
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27938$as_echo "no" >&6; }
27939fi
27940
27941 if test "x$ac_pt_PKGCONFIG" = x; then
27942 PKGCONFIG="no"
27943 else
27944 case $cross_compiling:$ac_tool_warned in
27945yes:)
27946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27948ac_tool_warned=yes ;;
27949esac
27950 PKGCONFIG=$ac_pt_PKGCONFIG
27951 fi
27952else
27953 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27954fi
27955
27956 fi
27957
27958 if test "x$PKGCONFIG" != "xno"; then
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
27960$as_echo_n "checking for fish options with pkg-config... " >&6; }
27961 itexists=`
27962 if test -n ""; then
27963 PKG_CONFIG_LIBDIR=""
27964 export PKG_CONFIG_LIBDIR
27965 fi
27966 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
27967
27968 if test -z "$itexists"; then
27969 PKGCONFIG="no"
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27971$as_echo "no" >&6; }
27972 else
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27974$as_echo "found" >&6; }
27975 fi
27976 fi
27977
27978 if test "$PKGCONFIG" != "no" ; then
27979 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
27980 else
27981 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
27982 fi
Haibo Huang65021c72019-03-27 15:37:23 -070027983
27984 ;;
27985 *)
27986 FISH_FUNCTIONS_DIR="$withval"
27987
27988 ;;
27989esac
27990
27991
Elliott Hughes82be86d2017-09-20 17:00:17 -070027992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27993$as_echo_n "checking for ANSI C header files... " >&6; }
27994if ${ac_cv_header_stdc+:} false; then :
27995 $as_echo_n "(cached) " >&6
27996else
27997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27998/* end confdefs.h. */
27999#include <stdlib.h>
28000#include <stdarg.h>
28001#include <string.h>
28002#include <float.h>
28003
28004int main (void)
28005{
28006
28007 ;
28008 return 0;
28009}
28010_ACEOF
28011if ac_fn_c_try_compile "$LINENO"; then :
28012 ac_cv_header_stdc=yes
28013else
28014 ac_cv_header_stdc=no
28015fi
28016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28017
28018if test $ac_cv_header_stdc = yes; then
28019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28021/* end confdefs.h. */
28022#include <string.h>
28023
28024_ACEOF
28025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28026 $EGREP "memchr" >/dev/null 2>&1; then :
28027
28028else
28029 ac_cv_header_stdc=no
28030fi
28031rm -f conftest*
28032
28033fi
28034
28035if test $ac_cv_header_stdc = yes; then
28036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28038/* end confdefs.h. */
28039#include <stdlib.h>
28040
28041_ACEOF
28042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28043 $EGREP "free" >/dev/null 2>&1; then :
28044
28045else
28046 ac_cv_header_stdc=no
28047fi
28048rm -f conftest*
28049
28050fi
28051
28052if test $ac_cv_header_stdc = yes; then
28053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28054 if test "$cross_compiling" = yes; then :
28055 :
28056else
28057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28058/* end confdefs.h. */
28059#include <ctype.h>
28060#include <stdlib.h>
28061#if ((' ' & 0x0FF) == 0x020)
28062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28064#else
28065# define ISLOWER(c) \
28066 (('a' <= (c) && (c) <= 'i') \
28067 || ('j' <= (c) && (c) <= 'r') \
28068 || ('s' <= (c) && (c) <= 'z'))
28069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28070#endif
28071
28072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28073int
28074main ()
28075{
28076 int i;
28077 for (i = 0; i < 256; i++)
28078 if (XOR (islower (i), ISLOWER (i))
28079 || toupper (i) != TOUPPER (i))
28080 return 2;
28081 return 0;
28082}
28083_ACEOF
28084if ac_fn_c_try_run "$LINENO"; then :
28085
28086else
28087 ac_cv_header_stdc=no
28088fi
28089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28090 conftest.$ac_objext conftest.beam conftest.$ac_ext
28091fi
28092
28093fi
28094fi
28095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
28096$as_echo "$ac_cv_header_stdc" >&6; }
28097if test $ac_cv_header_stdc = yes; then
28098
28099$as_echo "#define STDC_HEADERS 1" >>confdefs.h
28100
28101fi
28102
28103
28104
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
28106$as_echo_n "checking for malloc.h... " >&6; }
28107if ${curl_cv_header_malloc_h+:} false; then :
28108 $as_echo_n "(cached) " >&6
28109else
28110
28111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112/* end confdefs.h. */
28113
28114
28115#include <malloc.h>
28116
28117int main (void)
28118{
28119
28120 void *p = malloc(10);
28121 void *q = calloc(10,10);
28122 free(p);
28123 free(q);
28124
28125 ;
28126 return 0;
28127}
28128
28129_ACEOF
28130if ac_fn_c_try_compile "$LINENO"; then :
28131
28132 curl_cv_header_malloc_h="yes"
28133
28134else
28135
28136 curl_cv_header_malloc_h="no"
28137
28138fi
28139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28140
28141fi
28142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28143$as_echo "$curl_cv_header_malloc_h" >&6; }
28144 if test "$curl_cv_header_malloc_h" = "yes"; then
28145
28146cat >>confdefs.h <<_ACEOF
28147#define HAVE_MALLOC_H 1
28148_ACEOF
28149
28150 #
28151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28152/* end confdefs.h. */
28153
28154
28155#include <stdlib.h>
28156
28157int main (void)
28158{
28159
28160 void *p = malloc(10);
28161 void *q = calloc(10,10);
28162 free(p);
28163 free(q);
28164
28165 ;
28166 return 0;
28167}
28168
28169_ACEOF
28170if ac_fn_c_try_compile "$LINENO"; then :
28171
28172 curl_cv_need_header_malloc_h="no"
28173
28174else
28175
28176 curl_cv_need_header_malloc_h="yes"
28177
28178fi
28179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180 #
28181 case "$curl_cv_need_header_malloc_h" in
28182 yes)
28183
28184cat >>confdefs.h <<_ACEOF
28185#define NEED_MALLOC_H 1
28186_ACEOF
28187
28188 ;;
28189 esac
28190 fi
28191
28192
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28194$as_echo_n "checking for memory.h... " >&6; }
28195if ${curl_cv_header_memory_h+:} false; then :
28196 $as_echo_n "(cached) " >&6
28197else
28198
28199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28200/* end confdefs.h. */
28201
28202
28203#include <memory.h>
28204
28205int main (void)
28206{
28207
28208 void *p = malloc(10);
28209 void *q = calloc(10,10);
28210 free(p);
28211 free(q);
28212
28213 ;
28214 return 0;
28215}
28216
28217_ACEOF
28218if ac_fn_c_try_compile "$LINENO"; then :
28219
28220 curl_cv_header_memory_h="yes"
28221
28222else
28223
28224 curl_cv_header_memory_h="no"
28225
28226fi
28227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28228
28229fi
28230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28231$as_echo "$curl_cv_header_memory_h" >&6; }
28232 if test "$curl_cv_header_memory_h" = "yes"; then
28233
28234cat >>confdefs.h <<_ACEOF
28235#define HAVE_MEMORY_H 1
28236_ACEOF
28237
28238 #
28239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28240/* end confdefs.h. */
28241
28242
28243#include <stdlib.h>
28244
28245int main (void)
28246{
28247
28248 void *p = malloc(10);
28249 void *q = calloc(10,10);
28250 free(p);
28251 free(q);
28252
28253 ;
28254 return 0;
28255}
28256
28257_ACEOF
28258if ac_fn_c_try_compile "$LINENO"; then :
28259
28260 curl_cv_need_header_memory_h="no"
28261
28262else
28263
28264 curl_cv_need_header_memory_h="yes"
28265
28266fi
28267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28268 #
28269 case "$curl_cv_need_header_memory_h" in
28270 yes)
28271
28272cat >>confdefs.h <<_ACEOF
28273#define NEED_MEMORY_H 1
28274_ACEOF
28275
28276 ;;
28277 esac
28278 fi
28279
28280
28281for ac_header in sys/types.h \
28282 sys/time.h \
28283 sys/select.h \
28284 sys/socket.h \
28285 sys/ioctl.h \
28286 sys/uio.h \
28287 assert.h \
28288 unistd.h \
28289 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028290 arpa/inet.h \
28291 net/if.h \
28292 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028293 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028294 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028295 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028296 netinet/tcp.h \
28297 netdb.h \
28298 sys/sockio.h \
28299 sys/stat.h \
28300 sys/param.h \
28301 termios.h \
28302 termio.h \
28303 sgtty.h \
28304 fcntl.h \
28305 alloca.h \
28306 time.h \
28307 io.h \
28308 pwd.h \
28309 utime.h \
28310 sys/utime.h \
28311 sys/poll.h \
28312 poll.h \
28313 socket.h \
28314 sys/resource.h \
28315 libgen.h \
28316 locale.h \
28317 errno.h \
28318 stdbool.h \
28319 arpa/tftp.h \
28320 sys/filio.h \
28321 sys/wait.h \
28322 setjmp.h
28323do :
28324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28325ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28326#ifdef HAVE_SYS_TYPES_H
28327#include <sys/types.h>
28328#endif
28329#ifdef HAVE_SYS_TIME_H
28330#include <sys/time.h>
28331#endif
28332#ifdef HAVE_SYS_SELECT_H
28333#include <sys/select.h>
28334#endif
28335#ifdef HAVE_SYS_SOCKET_H
28336#include <sys/socket.h>
28337#endif
28338#ifdef HAVE_NETINET_IN_H
28339#include <netinet/in.h>
28340#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028341#ifdef HAVE_NETINET_IN6_H
28342#include <netinet/in6.h>
28343#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028344#ifdef HAVE_SYS_UN_H
28345#include <sys/un.h>
28346#endif
28347
28348
28349"
28350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28351 cat >>confdefs.h <<_ACEOF
28352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28353_ACEOF
28354
28355fi
28356
28357done
28358
28359
Haibo Huang65021c72019-03-27 15:37:23 -070028360
Elliott Hughes82be86d2017-09-20 17:00:17 -070028361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28362$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28363if ${ac_cv_c_const+:} false; then :
28364 $as_echo_n "(cached) " >&6
28365else
28366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28367/* end confdefs.h. */
28368
28369int main (void)
28370{
28371
28372#ifndef __cplusplus
28373 /* Ultrix mips cc rejects this sort of thing. */
28374 typedef int charset[2];
28375 const charset cs = { 0, 0 };
28376 /* SunOS 4.1.1 cc rejects this. */
28377 char const *const *pcpcc;
28378 char **ppc;
28379 /* NEC SVR4.0.2 mips cc rejects this. */
28380 struct point {int x, y;};
28381 static struct point const zero = {0,0};
28382 /* AIX XL C 1.02.0.0 rejects this.
28383 It does not let you subtract one const X* pointer from another in
28384 an arm of an if-expression whose if-part is not a constant
28385 expression */
28386 const char *g = "string";
28387 pcpcc = &g + (g ? g-g : 0);
28388 /* HPUX 7.0 cc rejects these. */
28389 ++pcpcc;
28390 ppc = (char**) pcpcc;
28391 pcpcc = (char const *const *) ppc;
28392 { /* SCO 3.2v4 cc rejects this sort of thing. */
28393 char tx;
28394 char *t = &tx;
28395 char const *s = 0 ? (char *) 0 : (char const *) 0;
28396
28397 *t++ = 0;
28398 if (s) return 0;
28399 }
28400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28401 int x[] = {25, 17};
28402 const int *foo = &x[0];
28403 ++foo;
28404 }
28405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28406 typedef const int *iptr;
28407 iptr p = 0;
28408 ++p;
28409 }
28410 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28412 struct s { int j; const int *ap[3]; } bx;
28413 struct s *b = &bx; b->j = 5;
28414 }
28415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28416 const int foo = 10;
28417 if (!foo) return 0;
28418 }
28419 return !cs[0] && !zero.x;
28420#endif
28421
28422 ;
28423 return 0;
28424}
28425_ACEOF
28426if ac_fn_c_try_compile "$LINENO"; then :
28427 ac_cv_c_const=yes
28428else
28429 ac_cv_c_const=no
28430fi
28431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432fi
28433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28434$as_echo "$ac_cv_c_const" >&6; }
28435if test $ac_cv_c_const = no; then
28436
28437$as_echo "#define const /**/" >>confdefs.h
28438
28439fi
28440
28441
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28443$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28444if ${curl_cv_variadic_macros_c99+:} false; then :
28445 $as_echo_n "(cached) " >&6
28446else
28447
28448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28449/* end confdefs.h. */
28450
28451
28452#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28453#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28454 int fun3(int arg1, int arg2, int arg3);
28455 int fun2(int arg1, int arg2);
28456 int fun3(int arg1, int arg2, int arg3)
28457 { return arg1 + arg2 + arg3; }
28458 int fun2(int arg1, int arg2)
28459 { return arg1 + arg2; }
28460
28461int main (void)
28462{
28463
28464 int res3 = c99_vmacro3(1, 2, 3);
28465 int res2 = c99_vmacro2(1, 2);
28466
28467 ;
28468 return 0;
28469}
28470
28471_ACEOF
28472if ac_fn_c_try_compile "$LINENO"; then :
28473
28474 curl_cv_variadic_macros_c99="yes"
28475
28476else
28477
28478 curl_cv_variadic_macros_c99="no"
28479
28480fi
28481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28482
28483fi
28484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28485$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28486 case "$curl_cv_variadic_macros_c99" in
28487 yes)
28488
28489cat >>confdefs.h <<_ACEOF
28490#define HAVE_VARIADIC_MACROS_C99 1
28491_ACEOF
28492
28493 ;;
28494 esac
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28496$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28497if ${curl_cv_variadic_macros_gcc+:} false; then :
28498 $as_echo_n "(cached) " >&6
28499else
28500
28501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28502/* end confdefs.h. */
28503
28504
28505#define gcc_vmacro3(first, args...) fun3(first, args)
28506#define gcc_vmacro2(first, args...) fun2(first, args)
28507 int fun3(int arg1, int arg2, int arg3);
28508 int fun2(int arg1, int arg2);
28509 int fun3(int arg1, int arg2, int arg3)
28510 { return arg1 + arg2 + arg3; }
28511 int fun2(int arg1, int arg2)
28512 { return arg1 + arg2; }
28513
28514int main (void)
28515{
28516
28517 int res3 = gcc_vmacro3(1, 2, 3);
28518 int res2 = gcc_vmacro2(1, 2);
28519
28520 ;
28521 return 0;
28522}
28523
28524_ACEOF
28525if ac_fn_c_try_compile "$LINENO"; then :
28526
28527 curl_cv_variadic_macros_gcc="yes"
28528
28529else
28530
28531 curl_cv_variadic_macros_gcc="no"
28532
28533fi
28534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535
28536fi
28537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28538$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28539 case "$curl_cv_variadic_macros_gcc" in
28540 yes)
28541
28542cat >>confdefs.h <<_ACEOF
28543#define HAVE_VARIADIC_MACROS_GCC 1
28544_ACEOF
28545
28546 ;;
28547 esac
28548
28549ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28550if test "x$ac_cv_type_size_t" = xyes; then :
28551
28552else
28553
28554cat >>confdefs.h <<_ACEOF
28555#define size_t unsigned int
28556_ACEOF
28557
28558fi
28559
28560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28561$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28562if ${ac_cv_header_time+:} false; then :
28563 $as_echo_n "(cached) " >&6
28564else
28565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28566/* end confdefs.h. */
28567#include <sys/types.h>
28568#include <sys/time.h>
28569#include <time.h>
28570
28571int main (void)
28572{
28573if ((struct tm *) 0)
28574return 0;
28575 ;
28576 return 0;
28577}
28578_ACEOF
28579if ac_fn_c_try_compile "$LINENO"; then :
28580 ac_cv_header_time=yes
28581else
28582 ac_cv_header_time=no
28583fi
28584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585fi
28586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28587$as_echo "$ac_cv_header_time" >&6; }
28588if test $ac_cv_header_time = yes; then
28589
28590$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28591
28592fi
28593
28594
28595 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28596do :
28597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28598ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28600 cat >>confdefs.h <<_ACEOF
28601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28602_ACEOF
28603
28604fi
28605
28606done
28607
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28609$as_echo_n "checking for struct timeval... " >&6; }
28610if ${curl_cv_struct_timeval+:} false; then :
28611 $as_echo_n "(cached) " >&6
28612else
28613
28614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28615/* end confdefs.h. */
28616
28617
28618#undef inline
28619#ifdef HAVE_WINDOWS_H
28620#ifndef WIN32_LEAN_AND_MEAN
28621#define WIN32_LEAN_AND_MEAN
28622#endif
28623#include <windows.h>
28624#ifdef HAVE_WINSOCK2_H
28625#include <winsock2.h>
28626#else
28627#ifdef HAVE_WINSOCK_H
28628#include <winsock.h>
28629#endif
28630#endif
28631#endif
28632#ifdef HAVE_SYS_TYPES_H
28633#include <sys/types.h>
28634#endif
28635#ifdef HAVE_SYS_TIME_H
28636#include <sys/time.h>
28637#ifdef TIME_WITH_SYS_TIME
28638#include <time.h>
28639#endif
28640#else
28641#ifdef HAVE_TIME_H
28642#include <time.h>
28643#endif
28644#endif
28645#ifdef HAVE_SYS_SOCKET_H
28646#include <sys/socket.h>
28647#endif
28648
28649int main (void)
28650{
28651
28652 struct timeval ts;
28653 ts.tv_sec = 0;
28654 ts.tv_usec = 0;
28655
28656 ;
28657 return 0;
28658}
28659
28660_ACEOF
28661if ac_fn_c_try_compile "$LINENO"; then :
28662
28663 curl_cv_struct_timeval="yes"
28664
28665else
28666
28667 curl_cv_struct_timeval="no"
28668
28669fi
28670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28671
28672fi
28673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28674$as_echo "$curl_cv_struct_timeval" >&6; }
28675 case "$curl_cv_struct_timeval" in
28676 yes)
28677
28678cat >>confdefs.h <<_ACEOF
28679#define HAVE_STRUCT_TIMEVAL 1
28680_ACEOF
28681
28682 ;;
28683 esac
28684
28685
28686
28687 if test "x$cross_compiling" != xyes; then
28688
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28690$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028691
28692
28693 old=$LD_LIBRARY_PATH
28694 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28695 export LD_LIBRARY_PATH
28696 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28699as_fn_error $? "cannot run test program while cross compiling
28700See \`config.log' for more details" "$LINENO" 5; }
28701else
28702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28703/* end confdefs.h. */
28704
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028705int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028706{
28707 return 0;
28708}
28709
28710_ACEOF
28711if ac_fn_c_try_run "$LINENO"; then :
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28713$as_echo "fine" >&6; }
28714else
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28716$as_echo "failed" >&6; }
28717 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28718
28719fi
28720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28721 conftest.$ac_objext conftest.beam conftest.$ac_ext
28722fi
28723
Elliott Hughes72d948d2018-08-03 14:37:21 -070028724 LD_LIBRARY_PATH=$old # restore
28725
Elliott Hughes82be86d2017-09-20 17:00:17 -070028726
28727 fi
28728
28729
Elliott Hughes82be86d2017-09-20 17:00:17 -070028730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28731$as_echo_n "checking size of size_t... " >&6; }
28732if ${ac_cv_sizeof_size_t+:} false; then :
28733 $as_echo_n "(cached) " >&6
28734else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028735 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28737/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028738
Elliott Hughes72d948d2018-08-03 14:37:21 -070028739#include <sys/types.h>
28740
28741
28742int main (void)
28743{
28744switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28745 ;
28746 return 0;
28747}
28748_ACEOF
28749if ac_fn_c_try_compile "$LINENO"; then :
28750 ac_cv_sizeof_size_t=$ac_size
28751fi
28752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28753 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28754done
28755
Elliott Hughes82be86d2017-09-20 17:00:17 -070028756fi
28757
Elliott Hughes72d948d2018-08-03 14:37:21 -070028758if test x$ac_cv_sizeof_size_t = x ; then
28759 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028760fi
28761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28762$as_echo "$ac_cv_sizeof_size_t" >&6; }
28763
Elliott Hughes82be86d2017-09-20 17:00:17 -070028764cat >>confdefs.h <<_ACEOF
28765#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28766_ACEOF
28767
28768
Elliott Hughes82be86d2017-09-20 17:00:17 -070028769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28770$as_echo_n "checking size of long... " >&6; }
28771if ${ac_cv_sizeof_long+:} false; then :
28772 $as_echo_n "(cached) " >&6
28773else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028774 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28776/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028777
Elliott Hughes72d948d2018-08-03 14:37:21 -070028778#include <sys/types.h>
28779
28780
28781int main (void)
28782{
28783switch (0) case 0: case (sizeof (long) == $ac_size):;
28784 ;
28785 return 0;
28786}
28787_ACEOF
28788if ac_fn_c_try_compile "$LINENO"; then :
28789 ac_cv_sizeof_long=$ac_size
28790fi
28791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792 if test x$ac_cv_sizeof_long != x ; then break; fi
28793done
28794
Elliott Hughes82be86d2017-09-20 17:00:17 -070028795fi
28796
Elliott Hughes72d948d2018-08-03 14:37:21 -070028797if test x$ac_cv_sizeof_long = x ; then
28798 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028799fi
28800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28801$as_echo "$ac_cv_sizeof_long" >&6; }
28802
Elliott Hughes82be86d2017-09-20 17:00:17 -070028803cat >>confdefs.h <<_ACEOF
28804#define SIZEOF_LONG $ac_cv_sizeof_long
28805_ACEOF
28806
28807
Elliott Hughes82be86d2017-09-20 17:00:17 -070028808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28809$as_echo_n "checking size of int... " >&6; }
28810if ${ac_cv_sizeof_int+:} false; then :
28811 $as_echo_n "(cached) " >&6
28812else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028813 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28815/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028816
Elliott Hughes72d948d2018-08-03 14:37:21 -070028817#include <sys/types.h>
28818
28819
28820int main (void)
28821{
28822switch (0) case 0: case (sizeof (int) == $ac_size):;
28823 ;
28824 return 0;
28825}
28826_ACEOF
28827if ac_fn_c_try_compile "$LINENO"; then :
28828 ac_cv_sizeof_int=$ac_size
28829fi
28830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28831 if test x$ac_cv_sizeof_int != x ; then break; fi
28832done
28833
Elliott Hughes82be86d2017-09-20 17:00:17 -070028834fi
28835
Elliott Hughes72d948d2018-08-03 14:37:21 -070028836if test x$ac_cv_sizeof_int = x ; then
28837 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028838fi
28839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28840$as_echo "$ac_cv_sizeof_int" >&6; }
28841
Elliott Hughes82be86d2017-09-20 17:00:17 -070028842cat >>confdefs.h <<_ACEOF
28843#define SIZEOF_INT $ac_cv_sizeof_int
28844_ACEOF
28845
28846
Elliott Hughes82be86d2017-09-20 17:00:17 -070028847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28848$as_echo_n "checking size of short... " >&6; }
28849if ${ac_cv_sizeof_short+:} false; then :
28850 $as_echo_n "(cached) " >&6
28851else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028852 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028855
Elliott Hughes72d948d2018-08-03 14:37:21 -070028856#include <sys/types.h>
28857
28858
28859int main (void)
28860{
28861switch (0) case 0: case (sizeof (short) == $ac_size):;
28862 ;
28863 return 0;
28864}
28865_ACEOF
28866if ac_fn_c_try_compile "$LINENO"; then :
28867 ac_cv_sizeof_short=$ac_size
28868fi
28869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28870 if test x$ac_cv_sizeof_short != x ; then break; fi
28871done
28872
Elliott Hughes82be86d2017-09-20 17:00:17 -070028873fi
28874
Elliott Hughes72d948d2018-08-03 14:37:21 -070028875if test x$ac_cv_sizeof_short = x ; then
28876 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028877fi
28878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28879$as_echo "$ac_cv_sizeof_short" >&6; }
28880
Elliott Hughes82be86d2017-09-20 17:00:17 -070028881cat >>confdefs.h <<_ACEOF
28882#define SIZEOF_SHORT $ac_cv_sizeof_short
28883_ACEOF
28884
28885
Elliott Hughes82be86d2017-09-20 17:00:17 -070028886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28887$as_echo_n "checking size of time_t... " >&6; }
28888if ${ac_cv_sizeof_time_t+:} false; then :
28889 $as_echo_n "(cached) " >&6
28890else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028891 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28893/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028894
Elliott Hughes72d948d2018-08-03 14:37:21 -070028895#include <sys/types.h>
28896
28897
28898int main (void)
28899{
28900switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28901 ;
28902 return 0;
28903}
28904_ACEOF
28905if ac_fn_c_try_compile "$LINENO"; then :
28906 ac_cv_sizeof_time_t=$ac_size
28907fi
28908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28909 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28910done
28911
Elliott Hughes82be86d2017-09-20 17:00:17 -070028912fi
28913
Elliott Hughes72d948d2018-08-03 14:37:21 -070028914if test x$ac_cv_sizeof_time_t = x ; then
28915 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028916fi
28917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28918$as_echo "$ac_cv_sizeof_time_t" >&6; }
28919
Elliott Hughes82be86d2017-09-20 17:00:17 -070028920cat >>confdefs.h <<_ACEOF
28921#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28922_ACEOF
28923
28924
Elliott Hughes82be86d2017-09-20 17:00:17 -070028925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28926$as_echo_n "checking size of off_t... " >&6; }
28927if ${ac_cv_sizeof_off_t+:} false; then :
28928 $as_echo_n "(cached) " >&6
28929else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028930 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28932/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028933
Elliott Hughes72d948d2018-08-03 14:37:21 -070028934#include <sys/types.h>
28935
28936
28937int main (void)
28938{
28939switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28940 ;
28941 return 0;
28942}
28943_ACEOF
28944if ac_fn_c_try_compile "$LINENO"; then :
28945 ac_cv_sizeof_off_t=$ac_size
28946fi
28947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28948 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28949done
28950
Elliott Hughes82be86d2017-09-20 17:00:17 -070028951fi
28952
Elliott Hughes72d948d2018-08-03 14:37:21 -070028953if test x$ac_cv_sizeof_off_t = x ; then
28954 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028955fi
28956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28957$as_echo "$ac_cv_sizeof_off_t" >&6; }
28958
Elliott Hughes82be86d2017-09-20 17:00:17 -070028959cat >>confdefs.h <<_ACEOF
28960#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28961_ACEOF
28962
28963
28964
Alex Deymo486467e2017-12-19 19:04:07 +010028965o=$CPPFLAGS
28966CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28968$as_echo_n "checking size of curl_off_t... " >&6; }
28969if ${ac_cv_sizeof_curl_off_t+:} false; then :
28970 $as_echo_n "(cached) " >&6
28971else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028972 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974/* end confdefs.h. */
28975
28976#include <sys/types.h>
28977
Alex Deymo486467e2017-12-19 19:04:07 +010028978#include <curl/system.h>
28979
Alex Deymo486467e2017-12-19 19:04:07 +010028980
Elliott Hughes72d948d2018-08-03 14:37:21 -070028981int main (void)
28982{
28983switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28984 ;
28985 return 0;
28986}
28987_ACEOF
28988if ac_fn_c_try_compile "$LINENO"; then :
28989 ac_cv_sizeof_curl_off_t=$ac_size
28990fi
28991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28992 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28993done
28994
Elliott Hughes82be86d2017-09-20 17:00:17 -070028995fi
28996
Elliott Hughes72d948d2018-08-03 14:37:21 -070028997if test x$ac_cv_sizeof_curl_off_t = x ; then
28998 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028999fi
29000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
29001$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
29002
Alex Deymo486467e2017-12-19 19:04:07 +010029003cat >>confdefs.h <<_ACEOF
29004#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
29005_ACEOF
29006
29007
29008CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070029009
29010ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29011if test "x$ac_cv_type_long_long" = xyes; then :
29012
29013$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
29014
29015 longlong="yes"
29016
29017fi
29018
29019
29020if test "xyes" = "x$longlong"; then
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
29022$as_echo_n "checking if numberLL works... " >&6; }
29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29024/* end confdefs.h. */
29025
29026
29027
29028int main (void)
29029{
29030
29031 long long val = 1000LL;
29032
29033 ;
29034 return 0;
29035}
29036
29037_ACEOF
29038if ac_fn_c_try_compile "$LINENO"; then :
29039
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29041$as_echo "yes" >&6; }
29042
29043$as_echo "#define HAVE_LL 1" >>confdefs.h
29044
29045
29046else
29047
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29049$as_echo "no" >&6; }
29050
29051fi
29052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29053fi
29054
29055
29056# check for ssize_t
29057ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
29058if test "x$ac_cv_type_ssize_t" = xyes; then :
29059
29060else
29061
29062$as_echo "#define ssize_t int" >>confdefs.h
29063
29064fi
29065
29066
29067# check for bool type
29068ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
29069#ifdef HAVE_SYS_TYPES_H
29070#include <sys/types.h>
29071#endif
29072#ifdef HAVE_STDBOOL_H
29073#include <stdbool.h>
29074#endif
29075
29076"
29077if test "x$ac_cv_type_bool" = xyes; then :
29078
29079
29080$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
29081
29082
29083fi
29084
29085
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029086# check for sa_family_t
29087ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
29088#ifdef HAVE_SYS_SOCKET_H
29089#include <sys/socket.h>
29090#endif
29091
29092"
29093if test "x$ac_cv_type_sa_family_t" = xyes; then :
29094
29095$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
29096
29097else
29098
29099 # The windows name?
29100 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
29101#ifdef HAVE_SYS_SOCKET_H
29102#include <sys/socket.h>
29103#endif
29104
29105"
29106if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
29107
29108$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
29109
29110else
29111
29112$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
29113
29114fi
29115
29116
29117fi
29118
29119
Elliott Hughescac39802018-04-27 16:19:43 -070029120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
29121$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070029122
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029123
29124 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070029125 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29126 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029127 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29129$as_echo "no" >&6; }
29130
29131else
29132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29133/* end confdefs.h. */
29134
Elliott Hughescac39802018-04-27 16:19:43 -070029135 #include <time.h>
29136 #include <limits.h>
29137 time_t t = -1;
29138 return (t > 0);
29139
29140_ACEOF
29141if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29143$as_echo "yes" >&6; }
29144
29145$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29146
29147
29148else
Elliott Hughescac39802018-04-27 16:19:43 -070029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29150$as_echo "no" >&6; }
29151
29152fi
29153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29154 conftest.$ac_objext conftest.beam conftest.$ac_ext
29155fi
29156
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029157 LD_LIBRARY_PATH=$old # restore
29158
Elliott Hughescac39802018-04-27 16:19:43 -070029159
Elliott Hughes82be86d2017-09-20 17:00:17 -070029160
Elliott Hughes82be86d2017-09-20 17:00:17 -070029161curl_includes_poll="\
29162/* includes start */
29163#ifdef HAVE_SYS_TYPES_H
29164# include <sys/types.h>
29165#endif
29166#ifdef HAVE_POLL_H
29167# include <poll.h>
29168#endif
29169#ifdef HAVE_SYS_POLL_H
29170# include <sys/poll.h>
29171#endif
29172/* includes end */"
29173 for ac_header in sys/types.h poll.h sys/poll.h
29174do :
29175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29176ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29177"
29178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29179 cat >>confdefs.h <<_ACEOF
29180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29181_ACEOF
29182
29183fi
29184
29185done
29186
29187
29188
29189 #
29190 tst_poll_events_macro_defined="unknown"
29191 #
29192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29193/* end confdefs.h. */
29194
29195
29196 $curl_includes_poll
29197
29198int main (void)
29199{
29200
29201#if defined(events) || defined(revents)
29202 return 0;
29203#else
29204 force compilation error
29205#endif
29206
29207 ;
29208 return 0;
29209}
29210
29211_ACEOF
29212if ac_fn_c_try_compile "$LINENO"; then :
29213
29214 tst_poll_events_macro_defined="yes"
29215
29216else
29217
29218 tst_poll_events_macro_defined="no"
29219
29220fi
29221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29222 #
29223 if test "$tst_poll_events_macro_defined" = "yes"; then
29224 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29225
29226cat >>confdefs.h <<_EOF
29227#define CURL_PULL_SYS_POLL_H 1
29228_EOF
29229
29230 fi
29231 fi
29232 #
29233
29234
29235
29236 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29237#undef inline
29238#ifdef HAVE_WINDOWS_H
29239#ifndef WIN32_LEAN_AND_MEAN
29240#define WIN32_LEAN_AND_MEAN
29241#endif
29242#include <windows.h>
29243#ifdef HAVE_WINSOCK2_H
29244#include <winsock2.h>
29245#else
29246#ifdef HAVE_WINSOCK_H
29247#include <winsock.h>
29248#endif
29249#endif
29250#else
29251#ifdef HAVE_SYS_TYPES_H
29252#include <sys/types.h>
29253#endif
29254#ifdef HAVE_SYS_SOCKET_H
29255#include <sys/socket.h>
29256#endif
29257#ifdef HAVE_NETINET_IN_H
29258#include <netinet/in.h>
29259#endif
29260#ifdef HAVE_ARPA_INET_H
29261#include <arpa/inet.h>
29262#endif
29263#endif
29264
29265"
29266if test "x$ac_cv_type_in_addr_t" = xyes; then :
29267
29268else
29269
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29271$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29272if ${curl_cv_in_addr_t_equiv+:} false; then :
29273 $as_echo_n "(cached) " >&6
29274else
29275
29276 curl_cv_in_addr_t_equiv="unknown"
29277 for t in "unsigned long" int size_t unsigned long; do
29278 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29280/* end confdefs.h. */
29281
29282
29283#undef inline
29284#ifdef HAVE_WINDOWS_H
29285#ifndef WIN32_LEAN_AND_MEAN
29286#define WIN32_LEAN_AND_MEAN
29287#endif
29288#include <windows.h>
29289#ifdef HAVE_WINSOCK2_H
29290#include <winsock2.h>
29291#else
29292#ifdef HAVE_WINSOCK_H
29293#include <winsock.h>
29294#endif
29295#endif
29296#else
29297#ifdef HAVE_SYS_TYPES_H
29298#include <sys/types.h>
29299#endif
29300#ifdef HAVE_SYS_SOCKET_H
29301#include <sys/socket.h>
29302#endif
29303#ifdef HAVE_NETINET_IN_H
29304#include <netinet/in.h>
29305#endif
29306#ifdef HAVE_ARPA_INET_H
29307#include <arpa/inet.h>
29308#endif
29309#endif
29310
29311int main (void)
29312{
29313
29314 $t data = inet_addr ("1.2.3.4");
29315
29316 ;
29317 return 0;
29318}
29319
29320_ACEOF
29321if ac_fn_c_try_link "$LINENO"; then :
29322
29323 curl_cv_in_addr_t_equiv="$t"
29324
29325fi
29326rm -f core conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
29328 fi
29329 done
29330
29331fi
29332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29333$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29334 case "$curl_cv_in_addr_t_equiv" in
29335 unknown)
29336 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29337 ;;
29338 *)
29339
29340cat >>confdefs.h <<_ACEOF
29341#define in_addr_t $curl_cv_in_addr_t_equiv
29342_ACEOF
29343
29344 ;;
29345 esac
29346
29347fi
29348
29349
29350
29351
29352 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29353#undef inline
29354#ifdef HAVE_WINDOWS_H
29355#ifndef WIN32_LEAN_AND_MEAN
29356#define WIN32_LEAN_AND_MEAN
29357#endif
29358#include <windows.h>
29359#ifdef HAVE_WINSOCK2_H
29360#include <winsock2.h>
29361#endif
29362#else
29363#ifdef HAVE_SYS_TYPES_H
29364#include <sys/types.h>
29365#endif
29366#ifdef HAVE_SYS_SOCKET_H
29367#include <sys/socket.h>
29368#endif
29369#ifdef HAVE_NETINET_IN_H
29370#include <netinet/in.h>
29371#endif
29372#ifdef HAVE_ARPA_INET_H
29373#include <arpa/inet.h>
29374#endif
29375#endif
29376
29377"
29378if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29379
29380$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29381
29382fi
29383
29384
29385
29386
29387 for ac_header in signal.h
29388do :
29389 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29390if test "x$ac_cv_header_signal_h" = xyes; then :
29391 cat >>confdefs.h <<_ACEOF
29392#define HAVE_SIGNAL_H 1
29393_ACEOF
29394
29395fi
29396
29397done
29398
29399 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29400#ifdef HAVE_SIGNAL_H
29401#include <signal.h>
29402#endif
29403
29404"
29405if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29406
29407
29408$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29409
29410
29411fi
29412
29413 case "$ac_cv_type_sig_atomic_t" in
29414 yes)
29415 #
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29417$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29419/* end confdefs.h. */
29420
29421
29422#ifdef HAVE_SIGNAL_H
29423#include <signal.h>
29424#endif
29425
29426int main (void)
29427{
29428
29429 static volatile sig_atomic_t dummy = 0;
29430
29431 ;
29432 return 0;
29433}
29434
29435_ACEOF
29436if ac_fn_c_try_link "$LINENO"; then :
29437
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439$as_echo "no" >&6; }
29440 curl_cv_sig_atomic_t_volatile="no"
29441
29442else
29443
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29445$as_echo "yes" >&6; }
29446 curl_cv_sig_atomic_t_volatile="yes"
29447
29448fi
29449rm -f core conftest.err conftest.$ac_objext \
29450 conftest$ac_exeext conftest.$ac_ext
29451 #
29452 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29453
29454$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29455
29456 fi
29457 ;;
29458 esac
29459
29460
29461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29462$as_echo_n "checking return type of signal handlers... " >&6; }
29463if ${ac_cv_type_signal+:} false; then :
29464 $as_echo_n "(cached) " >&6
29465else
29466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29467/* end confdefs.h. */
29468#include <sys/types.h>
29469#include <signal.h>
29470
29471int main (void)
29472{
29473return *(signal (0, 0)) (0) == 1;
29474 ;
29475 return 0;
29476}
29477_ACEOF
29478if ac_fn_c_try_compile "$LINENO"; then :
29479 ac_cv_type_signal=int
29480else
29481 ac_cv_type_signal=void
29482fi
29483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29484fi
29485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29486$as_echo "$ac_cv_type_signal" >&6; }
29487
29488cat >>confdefs.h <<_ACEOF
29489#define RETSIGTYPE $ac_cv_type_signal
29490_ACEOF
29491
29492
29493
29494
29495 for ac_header in sys/select.h sys/socket.h
29496do :
29497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29500 cat >>confdefs.h <<_ACEOF
29501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29502_ACEOF
29503
29504fi
29505
29506done
29507
29508 #
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29510$as_echo_n "checking for select... " >&6; }
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512/* end confdefs.h. */
29513
29514
29515#undef inline
29516#ifdef HAVE_WINDOWS_H
29517#ifndef WIN32_LEAN_AND_MEAN
29518#define WIN32_LEAN_AND_MEAN
29519#endif
29520#include <windows.h>
29521#ifdef HAVE_WINSOCK2_H
29522#include <winsock2.h>
29523#else
29524#ifdef HAVE_WINSOCK_H
29525#include <winsock.h>
29526#endif
29527#endif
29528#endif
29529#ifdef HAVE_SYS_TYPES_H
29530#include <sys/types.h>
29531#endif
29532#ifdef HAVE_SYS_TIME_H
29533#include <sys/time.h>
29534#ifdef TIME_WITH_SYS_TIME
29535#include <time.h>
29536#endif
29537#else
29538#ifdef HAVE_TIME_H
29539#include <time.h>
29540#endif
29541#endif
29542#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029543#ifdef HAVE_PROTO_BSDSOCKET_H
29544#include <proto/bsdsocket.h>
29545struct Library *SocketBase = NULL;
29546#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29547#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029548#ifdef HAVE_SYS_SELECT_H
29549#include <sys/select.h>
29550#endif
29551#ifdef HAVE_SYS_SOCKET_H
29552#include <sys/socket.h>
29553#endif
29554#endif
29555
29556int main (void)
29557{
29558
29559 select(0, 0, 0, 0, 0);
29560
29561 ;
29562 return 0;
29563}
29564
29565_ACEOF
29566if ac_fn_c_try_link "$LINENO"; then :
29567
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29569$as_echo "yes" >&6; }
29570 curl_cv_select="yes"
29571
29572else
29573
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29575$as_echo "no" >&6; }
29576 curl_cv_select="no"
29577
29578fi
29579rm -f core conftest.err conftest.$ac_objext \
29580 conftest$ac_exeext conftest.$ac_ext
29581 #
29582 if test "$curl_cv_select" = "yes"; then
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29584$as_echo_n "checking types of args and return type for select... " >&6; }
29585if ${curl_cv_func_select_args+:} false; then :
29586 $as_echo_n "(cached) " >&6
29587else
29588
29589 curl_cv_func_select_args="unknown"
29590 for sel_retv in 'int' 'ssize_t'; do
29591 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29592 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29593 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29594 if test "$curl_cv_func_select_args" = "unknown"; then
29595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29596/* end confdefs.h. */
29597
29598
29599#undef inline
29600#ifdef HAVE_WINDOWS_H
29601#ifndef WIN32_LEAN_AND_MEAN
29602#define WIN32_LEAN_AND_MEAN
29603#endif
29604#include <windows.h>
29605#ifdef HAVE_WINSOCK2_H
29606#include <winsock2.h>
29607#else
29608#ifdef HAVE_WINSOCK_H
29609#include <winsock.h>
29610#endif
29611#endif
29612#define SELECTCALLCONV PASCAL
29613#endif
29614#ifdef HAVE_SYS_TYPES_H
29615#include <sys/types.h>
29616#endif
29617#ifdef HAVE_SYS_TIME_H
29618#include <sys/time.h>
29619#ifdef TIME_WITH_SYS_TIME
29620#include <time.h>
29621#endif
29622#else
29623#ifdef HAVE_TIME_H
29624#include <time.h>
29625#endif
29626#endif
29627#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029628#ifdef HAVE_PROTO_BSDSOCKET_H
29629#include <proto/bsdsocket.h>
29630struct Library *SocketBase = NULL;
29631#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29632#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029633#ifdef HAVE_SYS_SELECT_H
29634#include <sys/select.h>
29635#endif
29636#ifdef HAVE_SYS_SOCKET_H
29637#include <sys/socket.h>
29638#endif
29639#define SELECTCALLCONV
29640#endif
29641#ifndef HAVE_STRUCT_TIMEVAL
29642 struct timeval {
29643 long tv_sec;
29644 long tv_usec;
29645 };
29646#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029647#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029648 extern $sel_retv SELECTCALLCONV
Haibo Huang51d9d882019-02-06 01:36:06 -080029649 select($sel_arg1,
Elliott Hughes82be86d2017-09-20 17:00:17 -070029650 $sel_arg234,
29651 $sel_arg234,
29652 $sel_arg234,
29653 $sel_arg5);
Haibo Huang65021c72019-03-27 15:37:23 -070029654#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029655
29656int main (void)
29657{
29658
29659 $sel_arg1 nfds=0;
29660 $sel_arg234 rfds=0;
29661 $sel_arg234 wfds=0;
29662 $sel_arg234 efds=0;
29663 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29664
29665 ;
29666 return 0;
29667}
29668
29669_ACEOF
29670if ac_fn_c_try_compile "$LINENO"; then :
29671
29672 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29673
29674fi
29675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676 fi
29677 done
29678 done
29679 done
29680 done
29681
29682fi
29683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29684$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29685 if test "$curl_cv_func_select_args" = "unknown"; then
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29687$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29689$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29690 else
29691 select_prev_IFS=$IFS; IFS=','
29692 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29693 IFS=$select_prev_IFS
29694 shift
29695 #
29696 sel_qual_type_arg5=$3
29697 #
29698
29699cat >>confdefs.h <<_ACEOF
29700#define SELECT_TYPE_ARG1 $1
29701_ACEOF
29702
29703
29704cat >>confdefs.h <<_ACEOF
29705#define SELECT_TYPE_ARG234 $2
29706_ACEOF
29707
29708
29709cat >>confdefs.h <<_ACEOF
29710#define SELECT_TYPE_RETV $4
29711_ACEOF
29712
29713 #
29714 prev_sh_opts=$-
29715 #
29716 case $prev_sh_opts in
29717 *f*)
29718 ;;
29719 *)
29720 set -f
29721 ;;
29722 esac
29723 #
29724 case "$sel_qual_type_arg5" in
29725 const*)
29726 sel_qual_arg5=const
29727 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29728 ;;
29729 *)
29730 sel_qual_arg5=
29731 sel_type_arg5=$sel_qual_type_arg5
29732 ;;
29733 esac
29734 #
29735
29736cat >>confdefs.h <<_ACEOF
29737#define SELECT_QUAL_ARG5 $sel_qual_arg5
29738_ACEOF
29739
29740
29741cat >>confdefs.h <<_ACEOF
29742#define SELECT_TYPE_ARG5 $sel_type_arg5
29743_ACEOF
29744
29745 #
29746 case $prev_sh_opts in
29747 *f*)
29748 ;;
29749 *)
29750 set +f
29751 ;;
29752 esac
29753 #
29754
29755cat >>confdefs.h <<_ACEOF
29756#define HAVE_SELECT 1
29757_ACEOF
29758
29759 curl_cv_func_select="yes"
29760 fi
29761 fi
29762
29763
29764
29765 for ac_header in sys/types.h sys/socket.h
29766do :
29767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29768ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29770 cat >>confdefs.h <<_ACEOF
29771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29772_ACEOF
29773
29774fi
29775
29776done
29777
29778 #
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29780$as_echo_n "checking for recv... " >&6; }
29781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782/* end confdefs.h. */
29783
29784
29785#undef inline
29786#ifdef HAVE_WINDOWS_H
29787#ifndef WIN32_LEAN_AND_MEAN
29788#define WIN32_LEAN_AND_MEAN
29789#endif
29790#include <windows.h>
29791#ifdef HAVE_WINSOCK2_H
29792#include <winsock2.h>
29793#else
29794#ifdef HAVE_WINSOCK_H
29795#include <winsock.h>
29796#endif
29797#endif
29798#else
Haibo Huang65021c72019-03-27 15:37:23 -070029799#ifdef HAVE_PROTO_BSDSOCKET_H
29800#include <proto/bsdsocket.h>
29801struct Library *SocketBase = NULL;
29802#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029803#ifdef HAVE_SYS_TYPES_H
29804#include <sys/types.h>
29805#endif
29806#ifdef HAVE_SYS_SOCKET_H
29807#include <sys/socket.h>
29808#endif
29809#endif
29810
29811int main (void)
29812{
29813
29814 recv(0, 0, 0, 0);
29815
29816 ;
29817 return 0;
29818}
29819
29820_ACEOF
29821if ac_fn_c_try_link "$LINENO"; then :
29822
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29824$as_echo "yes" >&6; }
29825 curl_cv_recv="yes"
29826
29827else
29828
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29830$as_echo "no" >&6; }
29831 curl_cv_recv="no"
29832
29833fi
29834rm -f core conftest.err conftest.$ac_objext \
29835 conftest$ac_exeext conftest.$ac_ext
29836 #
29837 if test "$curl_cv_recv" = "yes"; then
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29839$as_echo_n "checking types of args and return type for recv... " >&6; }
29840if ${curl_cv_func_recv_args+:} false; then :
29841 $as_echo_n "(cached) " >&6
29842else
29843
29844 curl_cv_func_recv_args="unknown"
29845 for recv_retv in 'int' 'ssize_t'; do
29846 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29847 for recv_arg2 in 'char *' 'void *'; do
29848 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29849 for recv_arg4 in 'int' 'unsigned int'; do
29850 if test "$curl_cv_func_recv_args" = "unknown"; then
29851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29852/* end confdefs.h. */
29853
29854
29855#undef inline
29856#ifdef HAVE_WINDOWS_H
29857#ifndef WIN32_LEAN_AND_MEAN
29858#define WIN32_LEAN_AND_MEAN
29859#endif
29860#include <windows.h>
29861#ifdef HAVE_WINSOCK2_H
29862#include <winsock2.h>
29863#else
29864#ifdef HAVE_WINSOCK_H
29865#include <winsock.h>
29866#endif
29867#endif
29868#define RECVCALLCONV PASCAL
29869#else
Haibo Huang65021c72019-03-27 15:37:23 -070029870#ifdef HAVE_PROTO_BSDSOCKET_H
29871#include <proto/bsdsocket.h>
29872struct Library *SocketBase = NULL;
29873#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029874#ifdef HAVE_SYS_TYPES_H
29875#include <sys/types.h>
29876#endif
29877#ifdef HAVE_SYS_SOCKET_H
29878#include <sys/socket.h>
29879#endif
29880#define RECVCALLCONV
29881#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029882#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029883 extern $recv_retv RECVCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029884 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070029885#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029886
29887int main (void)
29888{
29889
29890 $recv_arg1 s=0;
29891 $recv_arg2 buf=0;
29892 $recv_arg3 len=0;
29893 $recv_arg4 flags=0;
29894 $recv_retv res = recv(s, buf, len, flags);
29895
29896 ;
29897 return 0;
29898}
29899
29900_ACEOF
29901if ac_fn_c_try_compile "$LINENO"; then :
29902
29903 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29904
29905fi
29906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29907 fi
29908 done
29909 done
29910 done
29911 done
29912 done
29913
29914fi
29915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29916$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29917 if test "$curl_cv_func_recv_args" = "unknown"; then
29918 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29919 else
29920 recv_prev_IFS=$IFS; IFS=','
29921 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29922 IFS=$recv_prev_IFS
29923 shift
29924 #
29925
29926cat >>confdefs.h <<_ACEOF
29927#define RECV_TYPE_ARG1 $1
29928_ACEOF
29929
29930
29931cat >>confdefs.h <<_ACEOF
29932#define RECV_TYPE_ARG2 $2
29933_ACEOF
29934
29935
29936cat >>confdefs.h <<_ACEOF
29937#define RECV_TYPE_ARG3 $3
29938_ACEOF
29939
29940
29941cat >>confdefs.h <<_ACEOF
29942#define RECV_TYPE_ARG4 $4
29943_ACEOF
29944
29945
29946cat >>confdefs.h <<_ACEOF
29947#define RECV_TYPE_RETV $5
29948_ACEOF
29949
29950 #
29951
29952cat >>confdefs.h <<_ACEOF
29953#define HAVE_RECV 1
29954_ACEOF
29955
29956 curl_cv_func_recv="yes"
29957 fi
29958 else
29959 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29960 fi
29961
29962
29963 for ac_header in sys/types.h sys/socket.h
29964do :
29965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29968 cat >>confdefs.h <<_ACEOF
29969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29970_ACEOF
29971
29972fi
29973
29974done
29975
29976 #
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29978$as_echo_n "checking for send... " >&6; }
29979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29980/* end confdefs.h. */
29981
29982
29983#undef inline
29984#ifdef HAVE_WINDOWS_H
29985#ifndef WIN32_LEAN_AND_MEAN
29986#define WIN32_LEAN_AND_MEAN
29987#endif
29988#include <windows.h>
29989#ifdef HAVE_WINSOCK2_H
29990#include <winsock2.h>
29991#else
29992#ifdef HAVE_WINSOCK_H
29993#include <winsock.h>
29994#endif
29995#endif
29996#else
Haibo Huang65021c72019-03-27 15:37:23 -070029997#ifdef HAVE_PROTO_BSDSOCKET_H
29998#include <proto/bsdsocket.h>
29999struct Library *SocketBase = NULL;
30000#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030001#ifdef HAVE_SYS_TYPES_H
30002#include <sys/types.h>
30003#endif
30004#ifdef HAVE_SYS_SOCKET_H
30005#include <sys/socket.h>
30006#endif
30007#endif
30008
30009int main (void)
30010{
30011
30012 send(0, 0, 0, 0);
30013
30014 ;
30015 return 0;
30016}
30017
30018_ACEOF
30019if ac_fn_c_try_link "$LINENO"; then :
30020
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30022$as_echo "yes" >&6; }
30023 curl_cv_send="yes"
30024
30025else
30026
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30028$as_echo "no" >&6; }
30029 curl_cv_send="no"
30030
30031fi
30032rm -f core conftest.err conftest.$ac_objext \
30033 conftest$ac_exeext conftest.$ac_ext
30034 #
30035 if test "$curl_cv_send" = "yes"; then
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30037$as_echo_n "checking types of args and return type for send... " >&6; }
30038if ${curl_cv_func_send_args+:} false; then :
30039 $as_echo_n "(cached) " >&6
30040else
30041
30042 curl_cv_func_send_args="unknown"
30043 for send_retv in 'int' 'ssize_t'; do
30044 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30045 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30046 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30047 for send_arg4 in 'int' 'unsigned int'; do
30048 if test "$curl_cv_func_send_args" = "unknown"; then
30049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30050/* end confdefs.h. */
30051
30052
30053#undef inline
30054#ifdef HAVE_WINDOWS_H
30055#ifndef WIN32_LEAN_AND_MEAN
30056#define WIN32_LEAN_AND_MEAN
30057#endif
30058#include <windows.h>
30059#ifdef HAVE_WINSOCK2_H
30060#include <winsock2.h>
30061#else
30062#ifdef HAVE_WINSOCK_H
30063#include <winsock.h>
30064#endif
30065#endif
30066#define SENDCALLCONV PASCAL
30067#else
Haibo Huang65021c72019-03-27 15:37:23 -070030068#ifdef HAVE_PROTO_BSDSOCKET_H
30069#include <proto/bsdsocket.h>
30070struct Library *SocketBase = NULL;
30071#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030072#ifdef HAVE_SYS_TYPES_H
30073#include <sys/types.h>
30074#endif
30075#ifdef HAVE_SYS_SOCKET_H
30076#include <sys/socket.h>
30077#endif
30078#define SENDCALLCONV
30079#endif
Haibo Huang65021c72019-03-27 15:37:23 -070030080#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070030081 extern $send_retv SENDCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070030082 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070030083#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030084
30085int main (void)
30086{
30087
30088 $send_arg1 s=0;
30089 $send_arg3 len=0;
30090 $send_arg4 flags=0;
30091 $send_retv res = send(s, 0, len, flags);
30092
30093 ;
30094 return 0;
30095}
30096
30097_ACEOF
30098if ac_fn_c_try_compile "$LINENO"; then :
30099
30100 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30101
30102fi
30103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30104 fi
30105 done
30106 done
30107 done
30108 done
30109 done
30110
30111fi
30112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30113$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30114 if test "$curl_cv_func_send_args" = "unknown"; then
30115 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30116 else
30117 send_prev_IFS=$IFS; IFS=','
30118 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30119 IFS=$send_prev_IFS
30120 shift
30121 #
30122 send_qual_type_arg2=$2
30123 #
30124
30125cat >>confdefs.h <<_ACEOF
30126#define SEND_TYPE_ARG1 $1
30127_ACEOF
30128
30129
30130cat >>confdefs.h <<_ACEOF
30131#define SEND_TYPE_ARG3 $3
30132_ACEOF
30133
30134
30135cat >>confdefs.h <<_ACEOF
30136#define SEND_TYPE_ARG4 $4
30137_ACEOF
30138
30139
30140cat >>confdefs.h <<_ACEOF
30141#define SEND_TYPE_RETV $5
30142_ACEOF
30143
30144 #
30145 prev_sh_opts=$-
30146 #
30147 case $prev_sh_opts in
30148 *f*)
30149 ;;
30150 *)
30151 set -f
30152 ;;
30153 esac
30154 #
30155 case "$send_qual_type_arg2" in
30156 const*)
30157 send_qual_arg2=const
30158 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30159 ;;
30160 *)
30161 send_qual_arg2=
30162 send_type_arg2=$send_qual_type_arg2
30163 ;;
30164 esac
30165 #
30166
30167cat >>confdefs.h <<_ACEOF
30168#define SEND_QUAL_ARG2 $send_qual_arg2
30169_ACEOF
30170
30171
30172cat >>confdefs.h <<_ACEOF
30173#define SEND_TYPE_ARG2 $send_type_arg2
30174_ACEOF
30175
30176 #
30177 case $prev_sh_opts in
30178 *f*)
30179 ;;
30180 *)
30181 set +f
30182 ;;
30183 esac
30184 #
30185
30186cat >>confdefs.h <<_ACEOF
30187#define HAVE_SEND 1
30188_ACEOF
30189
30190 curl_cv_func_send="yes"
30191 fi
30192 else
30193 as_fn_error $? "Unable to link function send" "$LINENO" 5
30194 fi
30195
30196
30197 for ac_header in sys/types.h sys/socket.h
30198do :
30199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30200ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30201if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30202 cat >>confdefs.h <<_ACEOF
30203#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30204_ACEOF
30205
30206fi
30207
30208done
30209
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30211$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30212if ${curl_cv_msg_nosignal+:} false; then :
30213 $as_echo_n "(cached) " >&6
30214else
30215
30216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30217/* end confdefs.h. */
30218
30219
30220#undef inline
30221#ifdef HAVE_WINDOWS_H
30222#ifndef WIN32_LEAN_AND_MEAN
30223#define WIN32_LEAN_AND_MEAN
30224#endif
30225#include <windows.h>
30226#ifdef HAVE_WINSOCK2_H
30227#include <winsock2.h>
30228#else
30229#ifdef HAVE_WINSOCK_H
30230#include <winsock.h>
30231#endif
30232#endif
30233#else
Haibo Huang65021c72019-03-27 15:37:23 -070030234#ifdef HAVE_PROTO_BSDSOCKET_H
30235#include <proto/bsdsocket.h>
30236struct Library *SocketBase = NULL;
30237#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030238#ifdef HAVE_SYS_TYPES_H
30239#include <sys/types.h>
30240#endif
30241#ifdef HAVE_SYS_SOCKET_H
30242#include <sys/socket.h>
30243#endif
30244#endif
30245
30246int main (void)
30247{
30248
30249 int flag=MSG_NOSIGNAL;
30250
30251 ;
30252 return 0;
30253}
30254
30255_ACEOF
30256if ac_fn_c_try_compile "$LINENO"; then :
30257
30258 curl_cv_msg_nosignal="yes"
30259
30260else
30261
30262 curl_cv_msg_nosignal="no"
30263
30264fi
30265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30266
30267fi
30268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30269$as_echo "$curl_cv_msg_nosignal" >&6; }
30270 case "$curl_cv_msg_nosignal" in
30271 yes)
30272
30273cat >>confdefs.h <<_ACEOF
30274#define HAVE_MSG_NOSIGNAL 1
30275_ACEOF
30276
30277 ;;
30278 esac
30279
30280
30281
30282curl_includes_unistd="\
30283/* includes start */
30284#ifdef HAVE_SYS_TYPES_H
30285# include <sys/types.h>
30286#endif
30287#ifdef HAVE_UNISTD_H
30288# include <unistd.h>
30289#endif
30290/* includes end */"
30291 for ac_header in sys/types.h unistd.h
30292do :
30293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30295"
30296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30297 cat >>confdefs.h <<_ACEOF
30298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30299_ACEOF
30300
30301fi
30302
30303done
30304
30305
30306
30307 #
30308 tst_links_alarm="unknown"
30309 tst_proto_alarm="unknown"
30310 tst_compi_alarm="unknown"
30311 tst_allow_alarm="unknown"
30312 #
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30314$as_echo_n "checking if alarm can be linked... " >&6; }
30315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316/* end confdefs.h. */
30317
30318
30319#define alarm innocuous_alarm
30320#ifdef __STDC__
30321# include <limits.h>
30322#else
30323# include <assert.h>
30324#endif
30325#undef alarm
30326#ifdef __cplusplus
30327extern "C"
30328#endif
30329char alarm ();
30330#if defined __stub_alarm || defined __stub___alarm
30331choke me
30332#endif
30333
30334int main (void)
30335{
30336return alarm ();
30337 ;
30338 return 0;
30339}
30340
30341_ACEOF
30342if ac_fn_c_try_link "$LINENO"; then :
30343
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30345$as_echo "yes" >&6; }
30346 tst_links_alarm="yes"
30347
30348else
30349
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30351$as_echo "no" >&6; }
30352 tst_links_alarm="no"
30353
30354fi
30355rm -f core conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
30357 #
30358 if test "$tst_links_alarm" = "yes"; then
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30360$as_echo_n "checking if alarm is prototyped... " >&6; }
30361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30362/* end confdefs.h. */
30363
30364 $curl_includes_unistd
30365
30366_ACEOF
30367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30368 $EGREP "alarm" >/dev/null 2>&1; then :
30369
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30371$as_echo "yes" >&6; }
30372 tst_proto_alarm="yes"
30373
30374else
30375
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30377$as_echo "no" >&6; }
30378 tst_proto_alarm="no"
30379
30380fi
30381rm -f conftest*
30382
30383 fi
30384 #
30385 if test "$tst_proto_alarm" = "yes"; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30387$as_echo_n "checking if alarm is compilable... " >&6; }
30388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30389/* end confdefs.h. */
30390
30391
30392 $curl_includes_unistd
30393
30394int main (void)
30395{
30396
30397 if(0 != alarm(0))
30398 return 1;
30399
30400 ;
30401 return 0;
30402}
30403
30404_ACEOF
30405if ac_fn_c_try_compile "$LINENO"; then :
30406
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30408$as_echo "yes" >&6; }
30409 tst_compi_alarm="yes"
30410
30411else
30412
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414$as_echo "no" >&6; }
30415 tst_compi_alarm="no"
30416
30417fi
30418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30419 fi
30420 #
30421 if test "$tst_compi_alarm" = "yes"; then
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30423$as_echo_n "checking if alarm usage allowed... " >&6; }
30424 if test "x$curl_disallow_alarm" != "xyes"; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30426$as_echo "yes" >&6; }
30427 tst_allow_alarm="yes"
30428 else
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30430$as_echo "no" >&6; }
30431 tst_allow_alarm="no"
30432 fi
30433 fi
30434 #
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30436$as_echo_n "checking if alarm might be used... " >&6; }
30437 if test "$tst_links_alarm" = "yes" &&
30438 test "$tst_proto_alarm" = "yes" &&
30439 test "$tst_compi_alarm" = "yes" &&
30440 test "$tst_allow_alarm" = "yes"; then
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30442$as_echo "yes" >&6; }
30443
30444cat >>confdefs.h <<_ACEOF
30445#define HAVE_ALARM 1
30446_ACEOF
30447
30448 curl_cv_func_alarm="yes"
30449 else
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30451$as_echo "no" >&6; }
30452 curl_cv_func_alarm="no"
30453 fi
30454
30455
30456curl_includes_string="\
30457/* includes start */
30458#ifdef HAVE_SYS_TYPES_H
30459# include <sys/types.h>
30460#endif
30461#ifdef HAVE_STRING_H
30462# include <string.h>
30463#endif
30464#ifdef HAVE_STRINGS_H
30465# include <strings.h>
30466#endif
30467/* includes end */"
30468 for ac_header in sys/types.h string.h strings.h
30469do :
30470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30471ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30472"
30473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30474 cat >>confdefs.h <<_ACEOF
30475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30476_ACEOF
30477
30478fi
30479
30480done
30481
30482
30483
30484curl_includes_libgen="\
30485/* includes start */
30486#ifdef HAVE_SYS_TYPES_H
30487# include <sys/types.h>
30488#endif
30489#ifdef HAVE_LIBGEN_H
30490# include <libgen.h>
30491#endif
30492/* includes end */"
30493 for ac_header in sys/types.h libgen.h
30494do :
30495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30497"
30498if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30499 cat >>confdefs.h <<_ACEOF
30500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30501_ACEOF
30502
30503fi
30504
30505done
30506
30507
30508
30509 #
30510 tst_links_basename="unknown"
30511 tst_proto_basename="unknown"
30512 tst_compi_basename="unknown"
30513 tst_allow_basename="unknown"
30514 #
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30516$as_echo_n "checking if basename can be linked... " >&6; }
30517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30518/* end confdefs.h. */
30519
30520
30521#define basename innocuous_basename
30522#ifdef __STDC__
30523# include <limits.h>
30524#else
30525# include <assert.h>
30526#endif
30527#undef basename
30528#ifdef __cplusplus
30529extern "C"
30530#endif
30531char basename ();
30532#if defined __stub_basename || defined __stub___basename
30533choke me
30534#endif
30535
30536int main (void)
30537{
30538return basename ();
30539 ;
30540 return 0;
30541}
30542
30543_ACEOF
30544if ac_fn_c_try_link "$LINENO"; then :
30545
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30547$as_echo "yes" >&6; }
30548 tst_links_basename="yes"
30549
30550else
30551
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30553$as_echo "no" >&6; }
30554 tst_links_basename="no"
30555
30556fi
30557rm -f core conftest.err conftest.$ac_objext \
30558 conftest$ac_exeext conftest.$ac_ext
30559 #
30560 if test "$tst_links_basename" = "yes"; then
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30562$as_echo_n "checking if basename is prototyped... " >&6; }
30563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30564/* end confdefs.h. */
30565
30566 $curl_includes_string
30567 $curl_includes_libgen
30568 $curl_includes_unistd
30569
30570_ACEOF
30571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30572 $EGREP "basename" >/dev/null 2>&1; then :
30573
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30575$as_echo "yes" >&6; }
30576 tst_proto_basename="yes"
30577
30578else
30579
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581$as_echo "no" >&6; }
30582 tst_proto_basename="no"
30583
30584fi
30585rm -f conftest*
30586
30587 fi
30588 #
30589 if test "$tst_proto_basename" = "yes"; then
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30591$as_echo_n "checking if basename is compilable... " >&6; }
30592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593/* end confdefs.h. */
30594
30595
30596 $curl_includes_string
30597 $curl_includes_libgen
30598 $curl_includes_unistd
30599
30600int main (void)
30601{
30602
30603 if(0 != basename(0))
30604 return 1;
30605
30606 ;
30607 return 0;
30608}
30609
30610_ACEOF
30611if ac_fn_c_try_compile "$LINENO"; then :
30612
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30614$as_echo "yes" >&6; }
30615 tst_compi_basename="yes"
30616
30617else
30618
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30620$as_echo "no" >&6; }
30621 tst_compi_basename="no"
30622
30623fi
30624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30625 fi
30626 #
30627 if test "$tst_compi_basename" = "yes"; then
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30629$as_echo_n "checking if basename usage allowed... " >&6; }
30630 if test "x$curl_disallow_basename" != "xyes"; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632$as_echo "yes" >&6; }
30633 tst_allow_basename="yes"
30634 else
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636$as_echo "no" >&6; }
30637 tst_allow_basename="no"
30638 fi
30639 fi
30640 #
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30642$as_echo_n "checking if basename might be used... " >&6; }
30643 if test "$tst_links_basename" = "yes" &&
30644 test "$tst_proto_basename" = "yes" &&
30645 test "$tst_compi_basename" = "yes" &&
30646 test "$tst_allow_basename" = "yes"; then
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30648$as_echo "yes" >&6; }
30649
30650cat >>confdefs.h <<_ACEOF
30651#define HAVE_BASENAME 1
30652_ACEOF
30653
30654 curl_cv_func_basename="yes"
30655 else
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657$as_echo "no" >&6; }
30658 curl_cv_func_basename="no"
30659 fi
30660
30661
30662curl_includes_socket="\
30663/* includes start */
30664#ifdef HAVE_SYS_TYPES_H
30665# include <sys/types.h>
30666#endif
30667#ifdef HAVE_SOCKET_H
30668# include <socket.h>
30669#endif
30670/* includes end */"
30671 for ac_header in sys/types.h socket.h
30672do :
30673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30674ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30675"
30676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30677 cat >>confdefs.h <<_ACEOF
30678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30679_ACEOF
30680
30681fi
30682
30683done
30684
30685
30686
30687 #
30688 tst_links_closesocket="unknown"
30689 tst_proto_closesocket="unknown"
30690 tst_compi_closesocket="unknown"
30691 tst_allow_closesocket="unknown"
30692 #
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30694$as_echo_n "checking if closesocket can be linked... " >&6; }
30695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696/* end confdefs.h. */
30697
30698
30699 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030700 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030701 $curl_includes_socket
30702
30703int main (void)
30704{
30705
30706 if(0 != closesocket(0))
30707 return 1;
30708
30709 ;
30710 return 0;
30711}
30712
30713_ACEOF
30714if ac_fn_c_try_link "$LINENO"; then :
30715
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717$as_echo "yes" >&6; }
30718 tst_links_closesocket="yes"
30719
30720else
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
30724 tst_links_closesocket="no"
30725
30726fi
30727rm -f core conftest.err conftest.$ac_objext \
30728 conftest$ac_exeext conftest.$ac_ext
30729 #
30730 if test "$tst_links_closesocket" = "yes"; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30732$as_echo_n "checking if closesocket is prototyped... " >&6; }
30733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734/* end confdefs.h. */
30735
30736 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030737 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030738 $curl_includes_socket
30739
30740_ACEOF
30741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30742 $EGREP "closesocket" >/dev/null 2>&1; then :
30743
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
30746 tst_proto_closesocket="yes"
30747
30748else
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30751$as_echo "no" >&6; }
30752 tst_proto_closesocket="no"
30753
30754fi
30755rm -f conftest*
30756
30757 fi
30758 #
30759 if test "$tst_proto_closesocket" = "yes"; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30761$as_echo_n "checking if closesocket is compilable... " >&6; }
30762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763/* end confdefs.h. */
30764
30765
30766 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030767 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030768 $curl_includes_socket
30769
30770int main (void)
30771{
30772
30773 if(0 != closesocket(0))
30774 return 1;
30775
30776 ;
30777 return 0;
30778}
30779
30780_ACEOF
30781if ac_fn_c_try_compile "$LINENO"; then :
30782
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784$as_echo "yes" >&6; }
30785 tst_compi_closesocket="yes"
30786
30787else
30788
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790$as_echo "no" >&6; }
30791 tst_compi_closesocket="no"
30792
30793fi
30794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30795 fi
30796 #
30797 if test "$tst_compi_closesocket" = "yes"; then
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30799$as_echo_n "checking if closesocket usage allowed... " >&6; }
30800 if test "x$curl_disallow_closesocket" != "xyes"; then
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30802$as_echo "yes" >&6; }
30803 tst_allow_closesocket="yes"
30804 else
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30806$as_echo "no" >&6; }
30807 tst_allow_closesocket="no"
30808 fi
30809 fi
30810 #
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30812$as_echo_n "checking if closesocket might be used... " >&6; }
30813 if test "$tst_links_closesocket" = "yes" &&
30814 test "$tst_proto_closesocket" = "yes" &&
30815 test "$tst_compi_closesocket" = "yes" &&
30816 test "$tst_allow_closesocket" = "yes"; then
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30818$as_echo "yes" >&6; }
30819
30820cat >>confdefs.h <<_ACEOF
30821#define HAVE_CLOSESOCKET 1
30822_ACEOF
30823
30824 curl_cv_func_closesocket="yes"
30825 else
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30827$as_echo "no" >&6; }
30828 curl_cv_func_closesocket="no"
30829 fi
30830
30831
Elliott Hughesa93fb052018-12-12 14:22:48 -080030832curl_includes_sys_socket="\
30833/* includes start */
30834#ifdef HAVE_SYS_TYPES_H
30835# include <sys/types.h>
30836#endif
30837#ifdef HAVE_SYS_SOCKET_H
30838# include <sys/socket.h>
30839#endif
30840/* includes end */"
30841 for ac_header in sys/types.h sys/socket.h
30842do :
30843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30844ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30845"
30846if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30847 cat >>confdefs.h <<_ACEOF
30848#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30849_ACEOF
30850
30851fi
30852
30853done
30854
30855
30856
Elliott Hughes82be86d2017-09-20 17:00:17 -070030857 #
30858 tst_links_closesocket_camel="unknown"
30859 tst_proto_closesocket_camel="unknown"
30860 tst_compi_closesocket_camel="unknown"
30861 tst_allow_closesocket_camel="unknown"
30862 #
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30864$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30866/* end confdefs.h. */
30867
30868
30869 $curl_includes_sys_socket
30870
30871int main (void)
30872{
30873
30874 if(0 != CloseSocket(0))
30875 return 1;
30876
30877 ;
30878 return 0;
30879}
30880
30881_ACEOF
30882if ac_fn_c_try_link "$LINENO"; then :
30883
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30885$as_echo "yes" >&6; }
30886 tst_links_closesocket_camel="yes"
30887
30888else
30889
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891$as_echo "no" >&6; }
30892 tst_links_closesocket_camel="no"
30893
30894fi
30895rm -f core conftest.err conftest.$ac_objext \
30896 conftest$ac_exeext conftest.$ac_ext
30897 #
30898 if test "$tst_links_closesocket_camel" = "yes"; then
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30900$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30902/* end confdefs.h. */
30903
30904 $curl_includes_sys_socket
30905
30906_ACEOF
30907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30908 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30909
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30911$as_echo "yes" >&6; }
30912 tst_proto_closesocket_camel="yes"
30913
30914else
30915
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30917$as_echo "no" >&6; }
30918 tst_proto_closesocket_camel="no"
30919
30920fi
30921rm -f conftest*
30922
30923 fi
30924 #
30925 if test "$tst_proto_closesocket_camel" = "yes"; then
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30927$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929/* end confdefs.h. */
30930
30931
30932 $curl_includes_sys_socket
30933
30934int main (void)
30935{
30936
30937 if(0 != CloseSocket(0))
30938 return 1;
30939
30940 ;
30941 return 0;
30942}
30943
30944_ACEOF
30945if ac_fn_c_try_compile "$LINENO"; then :
30946
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30948$as_echo "yes" >&6; }
30949 tst_compi_closesocket_camel="yes"
30950
30951else
30952
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954$as_echo "no" >&6; }
30955 tst_compi_closesocket_camel="no"
30956
30957fi
30958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30959 fi
30960 #
30961 if test "$tst_compi_closesocket_camel" = "yes"; then
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30963$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30964 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30966$as_echo "yes" >&6; }
30967 tst_allow_closesocket_camel="yes"
30968 else
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30970$as_echo "no" >&6; }
30971 tst_allow_closesocket_camel="no"
30972 fi
30973 fi
30974 #
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30976$as_echo_n "checking if CloseSocket might be used... " >&6; }
30977 if test "$tst_links_closesocket_camel" = "yes" &&
30978 test "$tst_proto_closesocket_camel" = "yes" &&
30979 test "$tst_compi_closesocket_camel" = "yes" &&
30980 test "$tst_allow_closesocket_camel" = "yes"; then
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30982$as_echo "yes" >&6; }
30983
30984cat >>confdefs.h <<_ACEOF
30985#define HAVE_CLOSESOCKET_CAMEL 1
30986_ACEOF
30987
30988 curl_cv_func_closesocket_camel="yes"
30989 else
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30991$as_echo "no" >&6; }
30992 curl_cv_func_closesocket_camel="no"
30993 fi
30994
30995
30996 #
30997 tst_links_connect="unknown"
30998 tst_proto_connect="unknown"
30999 tst_compi_connect="unknown"
31000 tst_allow_connect="unknown"
31001 #
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31003$as_echo_n "checking if connect can be linked... " >&6; }
31004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31005/* end confdefs.h. */
31006
31007
31008 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070031009 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070031010 $curl_includes_sys_socket
31011 $curl_includes_socket
31012
31013int main (void)
31014{
31015
31016 if(0 != connect(0, 0, 0))
31017 return 1;
31018
31019 ;
31020 return 0;
31021}
31022
31023_ACEOF
31024if ac_fn_c_try_link "$LINENO"; then :
31025
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31027$as_echo "yes" >&6; }
31028 tst_links_connect="yes"
31029
31030else
31031
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31033$as_echo "no" >&6; }
31034 tst_links_connect="no"
31035
31036fi
31037rm -f core conftest.err conftest.$ac_objext \
31038 conftest$ac_exeext conftest.$ac_ext
31039 #
31040 if test "$tst_links_connect" = "yes"; then
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31042$as_echo_n "checking if connect is prototyped... " >&6; }
31043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044/* end confdefs.h. */
31045
31046 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070031047 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070031048 $curl_includes_sys_socket
31049 $curl_includes_socket
31050
31051_ACEOF
31052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31053 $EGREP "connect" >/dev/null 2>&1; then :
31054
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31056$as_echo "yes" >&6; }
31057 tst_proto_connect="yes"
31058
31059else
31060
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31062$as_echo "no" >&6; }
31063 tst_proto_connect="no"
31064
31065fi
31066rm -f conftest*
31067
31068 fi
31069 #
31070 if test "$tst_proto_connect" = "yes"; then
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31072$as_echo_n "checking if connect is compilable... " >&6; }
31073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31074/* end confdefs.h. */
31075
31076
31077 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070031078 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070031079 $curl_includes_sys_socket
31080 $curl_includes_socket
31081
31082int main (void)
31083{
31084
31085 if(0 != connect(0, 0, 0))
31086 return 1;
31087
31088 ;
31089 return 0;
31090}
31091
31092_ACEOF
31093if ac_fn_c_try_compile "$LINENO"; then :
31094
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096$as_echo "yes" >&6; }
31097 tst_compi_connect="yes"
31098
31099else
31100
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102$as_echo "no" >&6; }
31103 tst_compi_connect="no"
31104
31105fi
31106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107 fi
31108 #
31109 if test "$tst_compi_connect" = "yes"; then
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31111$as_echo_n "checking if connect usage allowed... " >&6; }
31112 if test "x$curl_disallow_connect" != "xyes"; then
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31114$as_echo "yes" >&6; }
31115 tst_allow_connect="yes"
31116 else
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31118$as_echo "no" >&6; }
31119 tst_allow_connect="no"
31120 fi
31121 fi
31122 #
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31124$as_echo_n "checking if connect might be used... " >&6; }
31125 if test "$tst_links_connect" = "yes" &&
31126 test "$tst_proto_connect" = "yes" &&
31127 test "$tst_compi_connect" = "yes" &&
31128 test "$tst_allow_connect" = "yes"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31130$as_echo "yes" >&6; }
31131
31132cat >>confdefs.h <<_ACEOF
31133#define HAVE_CONNECT 1
31134_ACEOF
31135
31136 curl_cv_func_connect="yes"
31137 else
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31139$as_echo "no" >&6; }
31140 curl_cv_func_connect="no"
31141 fi
31142
31143
31144curl_includes_fcntl="\
31145/* includes start */
31146#ifdef HAVE_SYS_TYPES_H
31147# include <sys/types.h>
31148#endif
31149#ifdef HAVE_UNISTD_H
31150# include <unistd.h>
31151#endif
31152#ifdef HAVE_FCNTL_H
31153# include <fcntl.h>
31154#endif
31155/* includes end */"
31156 for ac_header in sys/types.h unistd.h fcntl.h
31157do :
31158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31159ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31160"
31161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31162 cat >>confdefs.h <<_ACEOF
31163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31164_ACEOF
31165
31166fi
31167
31168done
31169
31170
31171
31172 #
31173 tst_links_fcntl="unknown"
31174 tst_proto_fcntl="unknown"
31175 tst_compi_fcntl="unknown"
31176 tst_allow_fcntl="unknown"
31177 #
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31179$as_echo_n "checking if fcntl can be linked... " >&6; }
31180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31181/* end confdefs.h. */
31182
31183
31184#define fcntl innocuous_fcntl
31185#ifdef __STDC__
31186# include <limits.h>
31187#else
31188# include <assert.h>
31189#endif
31190#undef fcntl
31191#ifdef __cplusplus
31192extern "C"
31193#endif
31194char fcntl ();
31195#if defined __stub_fcntl || defined __stub___fcntl
31196choke me
31197#endif
31198
31199int main (void)
31200{
31201return fcntl ();
31202 ;
31203 return 0;
31204}
31205
31206_ACEOF
31207if ac_fn_c_try_link "$LINENO"; then :
31208
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31210$as_echo "yes" >&6; }
31211 tst_links_fcntl="yes"
31212
31213else
31214
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31216$as_echo "no" >&6; }
31217 tst_links_fcntl="no"
31218
31219fi
31220rm -f core conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
31222 #
31223 if test "$tst_links_fcntl" = "yes"; then
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31225$as_echo_n "checking if fcntl is prototyped... " >&6; }
31226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31227/* end confdefs.h. */
31228
31229 $curl_includes_fcntl
31230
31231_ACEOF
31232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31233 $EGREP "fcntl" >/dev/null 2>&1; then :
31234
31235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31236$as_echo "yes" >&6; }
31237 tst_proto_fcntl="yes"
31238
31239else
31240
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31242$as_echo "no" >&6; }
31243 tst_proto_fcntl="no"
31244
31245fi
31246rm -f conftest*
31247
31248 fi
31249 #
31250 if test "$tst_proto_fcntl" = "yes"; then
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31252$as_echo_n "checking if fcntl is compilable... " >&6; }
31253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254/* end confdefs.h. */
31255
31256
31257 $curl_includes_fcntl
31258
31259int main (void)
31260{
31261
31262 if(0 != fcntl(0, 0, 0))
31263 return 1;
31264
31265 ;
31266 return 0;
31267}
31268
31269_ACEOF
31270if ac_fn_c_try_compile "$LINENO"; then :
31271
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31273$as_echo "yes" >&6; }
31274 tst_compi_fcntl="yes"
31275
31276else
31277
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279$as_echo "no" >&6; }
31280 tst_compi_fcntl="no"
31281
31282fi
31283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31284 fi
31285 #
31286 if test "$tst_compi_fcntl" = "yes"; then
31287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31288$as_echo_n "checking if fcntl usage allowed... " >&6; }
31289 if test "x$curl_disallow_fcntl" != "xyes"; then
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31291$as_echo "yes" >&6; }
31292 tst_allow_fcntl="yes"
31293 else
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31295$as_echo "no" >&6; }
31296 tst_allow_fcntl="no"
31297 fi
31298 fi
31299 #
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31301$as_echo_n "checking if fcntl might be used... " >&6; }
31302 if test "$tst_links_fcntl" = "yes" &&
31303 test "$tst_proto_fcntl" = "yes" &&
31304 test "$tst_compi_fcntl" = "yes" &&
31305 test "$tst_allow_fcntl" = "yes"; then
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31307$as_echo "yes" >&6; }
31308
31309cat >>confdefs.h <<_ACEOF
31310#define HAVE_FCNTL 1
31311_ACEOF
31312
31313 curl_cv_func_fcntl="yes"
31314
31315 #
31316 tst_compi_fcntl_o_nonblock="unknown"
31317 tst_allow_fcntl_o_nonblock="unknown"
31318 #
31319 case $host_os in
31320 sunos4* | aix3* | beos*)
31321 curl_disallow_fcntl_o_nonblock="yes"
31322 ;;
31323 esac
31324 #
31325 if test "$curl_cv_func_fcntl" = "yes"; then
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31327$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31329/* end confdefs.h. */
31330
31331
31332 $curl_includes_fcntl
31333
31334int main (void)
31335{
31336
31337 int flags = 0;
31338 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31339 return 1;
31340
31341 ;
31342 return 0;
31343}
31344
31345_ACEOF
31346if ac_fn_c_try_compile "$LINENO"; then :
31347
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31349$as_echo "yes" >&6; }
31350 tst_compi_fcntl_o_nonblock="yes"
31351
31352else
31353
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31355$as_echo "no" >&6; }
31356 tst_compi_fcntl_o_nonblock="no"
31357
31358fi
31359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31360 fi
31361 #
31362 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31364$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31365 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31367$as_echo "yes" >&6; }
31368 tst_allow_fcntl_o_nonblock="yes"
31369 else
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371$as_echo "no" >&6; }
31372 tst_allow_fcntl_o_nonblock="no"
31373 fi
31374 fi
31375 #
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31377$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31378 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31379 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31381$as_echo "yes" >&6; }
31382
31383cat >>confdefs.h <<_ACEOF
31384#define HAVE_FCNTL_O_NONBLOCK 1
31385_ACEOF
31386
31387 curl_cv_func_fcntl_o_nonblock="yes"
31388 else
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31390$as_echo "no" >&6; }
31391 curl_cv_func_fcntl_o_nonblock="no"
31392 fi
31393
31394 else
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31396$as_echo "no" >&6; }
31397 curl_cv_func_fcntl="no"
31398 fi
31399
31400
Elliott Hughesa93fb052018-12-12 14:22:48 -080031401curl_includes_ws2tcpip="\
31402/* includes start */
31403#ifdef HAVE_WINDOWS_H
31404# ifndef WIN32_LEAN_AND_MEAN
31405# define WIN32_LEAN_AND_MEAN
31406# endif
31407# include <windows.h>
31408# ifdef HAVE_WINSOCK2_H
31409# include <winsock2.h>
31410# ifdef HAVE_WS2TCPIP_H
31411# include <ws2tcpip.h>
31412# endif
31413# endif
31414#endif
31415/* includes end */"
31416
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31418$as_echo_n "checking for windows.h... " >&6; }
31419if ${curl_cv_header_windows_h+:} false; then :
31420 $as_echo_n "(cached) " >&6
31421else
31422
31423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31424/* end confdefs.h. */
31425
31426
31427#undef inline
31428#ifndef WIN32_LEAN_AND_MEAN
31429#define WIN32_LEAN_AND_MEAN
31430#endif
31431#include <windows.h>
31432
31433int main (void)
31434{
31435
31436#if defined(__CYGWIN__) || defined(__CEGCC__)
31437 HAVE_WINDOWS_H shall not be defined.
31438#else
31439 int dummy=2*WINVER;
31440#endif
31441
31442 ;
31443 return 0;
31444}
31445
31446_ACEOF
31447if ac_fn_c_try_compile "$LINENO"; then :
31448
31449 curl_cv_header_windows_h="yes"
31450
31451else
31452
31453 curl_cv_header_windows_h="no"
31454
31455fi
31456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457
31458fi
31459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31460$as_echo "$curl_cv_header_windows_h" >&6; }
31461 case "$curl_cv_header_windows_h" in
31462 yes)
31463
31464cat >>confdefs.h <<_ACEOF
31465#define HAVE_WINDOWS_H 1
31466_ACEOF
31467
31468 ;;
31469 esac
31470
31471
31472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31473$as_echo_n "checking for winsock2.h... " >&6; }
31474if ${curl_cv_header_winsock2_h+:} false; then :
31475 $as_echo_n "(cached) " >&6
31476else
31477
31478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31479/* end confdefs.h. */
31480
31481
31482#undef inline
31483#ifndef WIN32_LEAN_AND_MEAN
31484#define WIN32_LEAN_AND_MEAN
31485#endif
31486#include <windows.h>
31487#include <winsock2.h>
31488
31489int main (void)
31490{
31491
31492#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31493 HAVE_WINSOCK2_H shall not be defined.
31494#else
31495 int dummy=2*IPPROTO_ESP;
31496#endif
31497
31498 ;
31499 return 0;
31500}
31501
31502_ACEOF
31503if ac_fn_c_try_compile "$LINENO"; then :
31504
31505 curl_cv_header_winsock2_h="yes"
31506
31507else
31508
31509 curl_cv_header_winsock2_h="no"
31510
31511fi
31512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513
31514fi
31515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31516$as_echo "$curl_cv_header_winsock2_h" >&6; }
31517 case "$curl_cv_header_winsock2_h" in
31518 yes)
31519
31520cat >>confdefs.h <<_ACEOF
31521#define HAVE_WINSOCK2_H 1
31522_ACEOF
31523
31524 ;;
31525 esac
31526
31527
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31529$as_echo_n "checking for ws2tcpip.h... " >&6; }
31530if ${curl_cv_header_ws2tcpip_h+:} false; then :
31531 $as_echo_n "(cached) " >&6
31532else
31533
31534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31535/* end confdefs.h. */
31536
31537
31538#undef inline
31539#ifndef WIN32_LEAN_AND_MEAN
31540#define WIN32_LEAN_AND_MEAN
31541#endif
31542#include <windows.h>
31543#include <winsock2.h>
31544#include <ws2tcpip.h>
31545
31546int main (void)
31547{
31548
31549#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31550 HAVE_WS2TCPIP_H shall not be defined.
31551#else
31552 int dummy=2*IP_PKTINFO;
31553#endif
31554
31555 ;
31556 return 0;
31557}
31558
31559_ACEOF
31560if ac_fn_c_try_compile "$LINENO"; then :
31561
31562 curl_cv_header_ws2tcpip_h="yes"
31563
31564else
31565
31566 curl_cv_header_ws2tcpip_h="no"
31567
31568fi
31569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31570
31571fi
31572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31573$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31574 case "$curl_cv_header_ws2tcpip_h" in
31575 yes)
31576
31577cat >>confdefs.h <<_ACEOF
31578#define HAVE_WS2TCPIP_H 1
31579_ACEOF
31580
31581 ;;
31582 esac
31583
31584
31585
Elliott Hughes82be86d2017-09-20 17:00:17 -070031586curl_includes_netdb="\
31587/* includes start */
31588#ifdef HAVE_SYS_TYPES_H
31589# include <sys/types.h>
31590#endif
31591#ifdef HAVE_NETDB_H
31592# include <netdb.h>
31593#endif
31594/* includes end */"
31595 for ac_header in sys/types.h netdb.h
31596do :
31597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31598ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31599"
31600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31601 cat >>confdefs.h <<_ACEOF
31602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31603_ACEOF
31604
31605fi
31606
31607done
31608
31609
31610
31611 #
31612 tst_links_freeaddrinfo="unknown"
31613 tst_proto_freeaddrinfo="unknown"
31614 tst_compi_freeaddrinfo="unknown"
31615 tst_allow_freeaddrinfo="unknown"
31616 #
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31618$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31620/* end confdefs.h. */
31621
31622
31623 $curl_includes_ws2tcpip
31624 $curl_includes_sys_socket
31625 $curl_includes_netdb
31626
31627int main (void)
31628{
31629
31630 freeaddrinfo(0);
31631
31632 ;
31633 return 0;
31634}
31635
31636_ACEOF
31637if ac_fn_c_try_link "$LINENO"; then :
31638
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31640$as_echo "yes" >&6; }
31641 tst_links_freeaddrinfo="yes"
31642
31643else
31644
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31646$as_echo "no" >&6; }
31647 tst_links_freeaddrinfo="no"
31648
31649fi
31650rm -f core conftest.err conftest.$ac_objext \
31651 conftest$ac_exeext conftest.$ac_ext
31652 #
31653 if test "$tst_links_freeaddrinfo" = "yes"; then
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31655$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31657/* end confdefs.h. */
31658
31659 $curl_includes_ws2tcpip
31660 $curl_includes_sys_socket
31661 $curl_includes_netdb
31662
31663_ACEOF
31664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31665 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31666
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31668$as_echo "yes" >&6; }
31669 tst_proto_freeaddrinfo="yes"
31670
31671else
31672
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31674$as_echo "no" >&6; }
31675 tst_proto_freeaddrinfo="no"
31676
31677fi
31678rm -f conftest*
31679
31680 fi
31681 #
31682 if test "$tst_proto_freeaddrinfo" = "yes"; then
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31684$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31686/* end confdefs.h. */
31687
31688
31689 $curl_includes_ws2tcpip
31690 $curl_includes_sys_socket
31691 $curl_includes_netdb
31692
31693int main (void)
31694{
31695
31696 freeaddrinfo(0);
31697
31698 ;
31699 return 0;
31700}
31701
31702_ACEOF
31703if ac_fn_c_try_compile "$LINENO"; then :
31704
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31706$as_echo "yes" >&6; }
31707 tst_compi_freeaddrinfo="yes"
31708
31709else
31710
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31712$as_echo "no" >&6; }
31713 tst_compi_freeaddrinfo="no"
31714
31715fi
31716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717 fi
31718 #
31719 if test "$tst_compi_freeaddrinfo" = "yes"; then
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31721$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31722 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31724$as_echo "yes" >&6; }
31725 tst_allow_freeaddrinfo="yes"
31726 else
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31728$as_echo "no" >&6; }
31729 tst_allow_freeaddrinfo="no"
31730 fi
31731 fi
31732 #
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31734$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31735 if test "$tst_links_freeaddrinfo" = "yes" &&
31736 test "$tst_proto_freeaddrinfo" = "yes" &&
31737 test "$tst_compi_freeaddrinfo" = "yes" &&
31738 test "$tst_allow_freeaddrinfo" = "yes"; then
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740$as_echo "yes" >&6; }
31741
31742cat >>confdefs.h <<_ACEOF
31743#define HAVE_FREEADDRINFO 1
31744_ACEOF
31745
31746 curl_cv_func_freeaddrinfo="yes"
31747 else
31748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31749$as_echo "no" >&6; }
31750 curl_cv_func_freeaddrinfo="no"
31751 fi
31752
31753
31754curl_includes_ifaddrs="\
31755/* includes start */
31756#ifdef HAVE_SYS_TYPES_H
31757# include <sys/types.h>
31758#endif
31759#ifdef HAVE_SYS_SOCKET_H
31760# include <sys/socket.h>
31761#endif
31762#ifdef HAVE_NETINET_IN_H
31763# include <netinet/in.h>
31764#endif
31765#ifdef HAVE_IFADDRS_H
31766# include <ifaddrs.h>
31767#endif
31768/* includes end */"
31769 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31770do :
31771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31772ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31773"
31774if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31775 cat >>confdefs.h <<_ACEOF
31776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31777_ACEOF
31778
31779fi
31780
31781done
31782
31783
31784
31785 #
31786 tst_links_freeifaddrs="unknown"
31787 tst_proto_freeifaddrs="unknown"
31788 tst_compi_freeifaddrs="unknown"
31789 tst_allow_freeifaddrs="unknown"
31790 #
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31792$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31794/* end confdefs.h. */
31795
31796
31797#define freeifaddrs innocuous_freeifaddrs
31798#ifdef __STDC__
31799# include <limits.h>
31800#else
31801# include <assert.h>
31802#endif
31803#undef freeifaddrs
31804#ifdef __cplusplus
31805extern "C"
31806#endif
31807char freeifaddrs ();
31808#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31809choke me
31810#endif
31811
31812int main (void)
31813{
31814return freeifaddrs ();
31815 ;
31816 return 0;
31817}
31818
31819_ACEOF
31820if ac_fn_c_try_link "$LINENO"; then :
31821
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31823$as_echo "yes" >&6; }
31824 tst_links_freeifaddrs="yes"
31825
31826else
31827
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31829$as_echo "no" >&6; }
31830 tst_links_freeifaddrs="no"
31831
31832fi
31833rm -f core conftest.err conftest.$ac_objext \
31834 conftest$ac_exeext conftest.$ac_ext
31835 #
31836 if test "$tst_links_freeifaddrs" = "yes"; then
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31838$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31840/* end confdefs.h. */
31841
31842 $curl_includes_ifaddrs
31843
31844_ACEOF
31845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31846 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31847
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31849$as_echo "yes" >&6; }
31850 tst_proto_freeifaddrs="yes"
31851
31852else
31853
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31855$as_echo "no" >&6; }
31856 tst_proto_freeifaddrs="no"
31857
31858fi
31859rm -f conftest*
31860
31861 fi
31862 #
31863 if test "$tst_proto_freeifaddrs" = "yes"; then
31864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31865$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867/* end confdefs.h. */
31868
31869
31870 $curl_includes_ifaddrs
31871
31872int main (void)
31873{
31874
31875 freeifaddrs(0);
31876
31877 ;
31878 return 0;
31879}
31880
31881_ACEOF
31882if ac_fn_c_try_compile "$LINENO"; then :
31883
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31885$as_echo "yes" >&6; }
31886 tst_compi_freeifaddrs="yes"
31887
31888else
31889
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31891$as_echo "no" >&6; }
31892 tst_compi_freeifaddrs="no"
31893
31894fi
31895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31896 fi
31897 #
31898 if test "$tst_compi_freeifaddrs" = "yes"; then
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31900$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31901 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31903$as_echo "yes" >&6; }
31904 tst_allow_freeifaddrs="yes"
31905 else
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31907$as_echo "no" >&6; }
31908 tst_allow_freeifaddrs="no"
31909 fi
31910 fi
31911 #
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31913$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31914 if test "$tst_links_freeifaddrs" = "yes" &&
31915 test "$tst_proto_freeifaddrs" = "yes" &&
31916 test "$tst_compi_freeifaddrs" = "yes" &&
31917 test "$tst_allow_freeifaddrs" = "yes"; then
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31919$as_echo "yes" >&6; }
31920
31921cat >>confdefs.h <<_ACEOF
31922#define HAVE_FREEIFADDRS 1
31923_ACEOF
31924
31925 curl_cv_func_freeifaddrs="yes"
31926 else
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31928$as_echo "no" >&6; }
31929 curl_cv_func_freeifaddrs="no"
31930 fi
31931
31932
31933curl_includes_sys_xattr="\
31934/* includes start */
31935#ifdef HAVE_SYS_TYPES_H
31936# include <sys/types.h>
31937#endif
31938#ifdef HAVE_SYS_XATTR_H
31939# include <sys/xattr.h>
31940#endif
31941/* includes end */"
31942 for ac_header in sys/types.h sys/xattr.h
31943do :
31944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31945ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31946"
31947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31948 cat >>confdefs.h <<_ACEOF
31949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31950_ACEOF
31951
31952fi
31953
31954done
31955
31956
31957
31958 #
31959 tst_links_fsetxattr="unknown"
31960 tst_proto_fsetxattr="unknown"
31961 tst_compi_fsetxattr="unknown"
31962 tst_allow_fsetxattr="unknown"
31963 tst_nargs_fsetxattr="unknown"
31964 #
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31966$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31968/* end confdefs.h. */
31969
31970
31971#define fsetxattr innocuous_fsetxattr
31972#ifdef __STDC__
31973# include <limits.h>
31974#else
31975# include <assert.h>
31976#endif
31977#undef fsetxattr
31978#ifdef __cplusplus
31979extern "C"
31980#endif
31981char fsetxattr ();
31982#if defined __stub_fsetxattr || defined __stub___fsetxattr
31983choke me
31984#endif
31985
31986int main (void)
31987{
31988return fsetxattr ();
31989 ;
31990 return 0;
31991}
31992
31993_ACEOF
31994if ac_fn_c_try_link "$LINENO"; then :
31995
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31997$as_echo "yes" >&6; }
31998 tst_links_fsetxattr="yes"
31999
32000else
32001
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32003$as_echo "no" >&6; }
32004 tst_links_fsetxattr="no"
32005
32006fi
32007rm -f core conftest.err conftest.$ac_objext \
32008 conftest$ac_exeext conftest.$ac_ext
32009 #
32010 if test "$tst_links_fsetxattr" = "yes"; then
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32012$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32014/* end confdefs.h. */
32015
32016 $curl_includes_sys_xattr
32017
32018_ACEOF
32019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32020 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32021
32022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32023$as_echo "yes" >&6; }
32024 tst_proto_fsetxattr="yes"
32025
32026else
32027
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32029$as_echo "no" >&6; }
32030 tst_proto_fsetxattr="no"
32031
32032fi
32033rm -f conftest*
32034
32035 fi
32036 #
32037 if test "$tst_proto_fsetxattr" = "yes"; then
32038 if test "$tst_nargs_fsetxattr" = "unknown"; then
32039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32040$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32042/* end confdefs.h. */
32043
32044
32045 $curl_includes_sys_xattr
32046
32047int main (void)
32048{
32049
32050 if(0 != fsetxattr(0, 0, 0, 0, 0))
32051 return 1;
32052
32053 ;
32054 return 0;
32055}
32056
32057_ACEOF
32058if ac_fn_c_try_compile "$LINENO"; then :
32059
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32061$as_echo "yes" >&6; }
32062 tst_compi_fsetxattr="yes"
32063 tst_nargs_fsetxattr="5"
32064
32065else
32066
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32068$as_echo "no" >&6; }
32069 tst_compi_fsetxattr="no"
32070
32071fi
32072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32073 fi
32074 if test "$tst_nargs_fsetxattr" = "unknown"; then
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32076$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078/* end confdefs.h. */
32079
32080
32081 $curl_includes_sys_xattr
32082
32083int main (void)
32084{
32085
32086 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32087 return 1;
32088
32089 ;
32090 return 0;
32091}
32092
32093_ACEOF
32094if ac_fn_c_try_compile "$LINENO"; then :
32095
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32097$as_echo "yes" >&6; }
32098 tst_compi_fsetxattr="yes"
32099 tst_nargs_fsetxattr="6"
32100
32101else
32102
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32104$as_echo "no" >&6; }
32105 tst_compi_fsetxattr="no"
32106
32107fi
32108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32109 fi
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32111$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32112 if test "$tst_compi_fsetxattr" = "yes"; then
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32114$as_echo "yes" >&6; }
32115 else
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117$as_echo "no" >&6; }
32118 fi
32119 fi
32120 #
32121 if test "$tst_compi_fsetxattr" = "yes"; then
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32123$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32124 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126$as_echo "yes" >&6; }
32127 tst_allow_fsetxattr="yes"
32128 else
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32130$as_echo "no" >&6; }
32131 tst_allow_fsetxattr="no"
32132 fi
32133 fi
32134 #
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32136$as_echo_n "checking if fsetxattr might be used... " >&6; }
32137 if test "$tst_links_fsetxattr" = "yes" &&
32138 test "$tst_proto_fsetxattr" = "yes" &&
32139 test "$tst_compi_fsetxattr" = "yes" &&
32140 test "$tst_allow_fsetxattr" = "yes"; then
32141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32142$as_echo "yes" >&6; }
32143
32144cat >>confdefs.h <<_ACEOF
32145#define HAVE_FSETXATTR 1
32146_ACEOF
32147
32148 #
32149 if test "$tst_nargs_fsetxattr" -eq "5"; then
32150
32151$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32152
32153 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32154
32155$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32156
32157 fi
32158 #
32159 curl_cv_func_fsetxattr="yes"
32160 else
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32162$as_echo "no" >&6; }
32163 curl_cv_func_fsetxattr="no"
32164 fi
32165
32166
32167 #
32168 tst_links_ftruncate="unknown"
32169 tst_proto_ftruncate="unknown"
32170 tst_compi_ftruncate="unknown"
32171 tst_allow_ftruncate="unknown"
32172 #
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32174$as_echo_n "checking if ftruncate can be linked... " >&6; }
32175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32176/* end confdefs.h. */
32177
32178
32179#define ftruncate innocuous_ftruncate
32180#ifdef __STDC__
32181# include <limits.h>
32182#else
32183# include <assert.h>
32184#endif
32185#undef ftruncate
32186#ifdef __cplusplus
32187extern "C"
32188#endif
32189char ftruncate ();
32190#if defined __stub_ftruncate || defined __stub___ftruncate
32191choke me
32192#endif
32193
32194int main (void)
32195{
32196return ftruncate ();
32197 ;
32198 return 0;
32199}
32200
32201_ACEOF
32202if ac_fn_c_try_link "$LINENO"; then :
32203
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32205$as_echo "yes" >&6; }
32206 tst_links_ftruncate="yes"
32207
32208else
32209
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211$as_echo "no" >&6; }
32212 tst_links_ftruncate="no"
32213
32214fi
32215rm -f core conftest.err conftest.$ac_objext \
32216 conftest$ac_exeext conftest.$ac_ext
32217 #
32218 if test "$tst_links_ftruncate" = "yes"; then
32219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32220$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32222/* end confdefs.h. */
32223
32224 $curl_includes_unistd
32225
32226_ACEOF
32227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32228 $EGREP "ftruncate" >/dev/null 2>&1; then :
32229
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32231$as_echo "yes" >&6; }
32232 tst_proto_ftruncate="yes"
32233
32234else
32235
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32237$as_echo "no" >&6; }
32238 tst_proto_ftruncate="no"
32239
32240fi
32241rm -f conftest*
32242
32243 fi
32244 #
32245 if test "$tst_proto_ftruncate" = "yes"; then
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32247$as_echo_n "checking if ftruncate is compilable... " >&6; }
32248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32249/* end confdefs.h. */
32250
32251
32252 $curl_includes_unistd
32253
32254int main (void)
32255{
32256
32257 if(0 != ftruncate(0, 0))
32258 return 1;
32259
32260 ;
32261 return 0;
32262}
32263
32264_ACEOF
32265if ac_fn_c_try_compile "$LINENO"; then :
32266
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268$as_echo "yes" >&6; }
32269 tst_compi_ftruncate="yes"
32270
32271else
32272
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32274$as_echo "no" >&6; }
32275 tst_compi_ftruncate="no"
32276
32277fi
32278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32279 fi
32280 #
32281 if test "$tst_compi_ftruncate" = "yes"; then
32282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32283$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32284 if test "x$curl_disallow_ftruncate" != "xyes"; then
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32286$as_echo "yes" >&6; }
32287 tst_allow_ftruncate="yes"
32288 else
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32290$as_echo "no" >&6; }
32291 tst_allow_ftruncate="no"
32292 fi
32293 fi
32294 #
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32296$as_echo_n "checking if ftruncate might be used... " >&6; }
32297 if test "$tst_links_ftruncate" = "yes" &&
32298 test "$tst_proto_ftruncate" = "yes" &&
32299 test "$tst_compi_ftruncate" = "yes" &&
32300 test "$tst_allow_ftruncate" = "yes"; then
32301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32302$as_echo "yes" >&6; }
32303
32304cat >>confdefs.h <<_ACEOF
32305#define HAVE_FTRUNCATE 1
32306_ACEOF
32307
32308 curl_cv_func_ftruncate="yes"
32309 else
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32311$as_echo "no" >&6; }
32312 curl_cv_func_ftruncate="no"
32313 fi
32314
32315
32316curl_includes_stdlib="\
32317/* includes start */
32318#ifdef HAVE_SYS_TYPES_H
32319# include <sys/types.h>
32320#endif
32321#ifdef HAVE_STDLIB_H
32322# include <stdlib.h>
32323#endif
32324/* includes end */"
32325 for ac_header in sys/types.h stdlib.h
32326do :
32327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32329"
32330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32331 cat >>confdefs.h <<_ACEOF
32332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32333_ACEOF
32334
32335fi
32336
32337done
32338
32339
32340
32341 #
32342 tst_links_getaddrinfo="unknown"
32343 tst_proto_getaddrinfo="unknown"
32344 tst_compi_getaddrinfo="unknown"
32345 tst_works_getaddrinfo="unknown"
32346 tst_allow_getaddrinfo="unknown"
32347 tst_tsafe_getaddrinfo="unknown"
32348 #
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32350$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32352/* end confdefs.h. */
32353
32354
32355 $curl_includes_ws2tcpip
32356 $curl_includes_sys_socket
32357 $curl_includes_netdb
32358
32359int main (void)
32360{
32361
32362 if(0 != getaddrinfo(0, 0, 0, 0))
32363 return 1;
32364
32365 ;
32366 return 0;
32367}
32368
32369_ACEOF
32370if ac_fn_c_try_link "$LINENO"; then :
32371
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32373$as_echo "yes" >&6; }
32374 tst_links_getaddrinfo="yes"
32375
32376else
32377
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32379$as_echo "no" >&6; }
32380 tst_links_getaddrinfo="no"
32381
32382fi
32383rm -f core conftest.err conftest.$ac_objext \
32384 conftest$ac_exeext conftest.$ac_ext
32385 #
32386 if test "$tst_links_getaddrinfo" = "yes"; then
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32388$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32390/* end confdefs.h. */
32391
32392 $curl_includes_ws2tcpip
32393 $curl_includes_sys_socket
32394 $curl_includes_netdb
32395
32396_ACEOF
32397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32398 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32399
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32401$as_echo "yes" >&6; }
32402 tst_proto_getaddrinfo="yes"
32403
32404else
32405
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32407$as_echo "no" >&6; }
32408 tst_proto_getaddrinfo="no"
32409
32410fi
32411rm -f conftest*
32412
32413 fi
32414 #
32415 if test "$tst_proto_getaddrinfo" = "yes"; then
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32417$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32419/* end confdefs.h. */
32420
32421
32422 $curl_includes_ws2tcpip
32423 $curl_includes_sys_socket
32424 $curl_includes_netdb
32425
32426int main (void)
32427{
32428
32429 if(0 != getaddrinfo(0, 0, 0, 0))
32430 return 1;
32431
32432 ;
32433 return 0;
32434}
32435
32436_ACEOF
32437if ac_fn_c_try_compile "$LINENO"; then :
32438
32439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32440$as_echo "yes" >&6; }
32441 tst_compi_getaddrinfo="yes"
32442
32443else
32444
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32446$as_echo "no" >&6; }
32447 tst_compi_getaddrinfo="no"
32448
32449fi
32450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32451 fi
32452 #
32453 if test "x$cross_compiling" != "xyes" &&
32454 test "$tst_compi_getaddrinfo" = "yes"; then
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32456$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032457
32458
32459 old=$LD_LIBRARY_PATH
32460 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32461 export LD_LIBRARY_PATH
32462 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32465as_fn_error $? "cannot run test program while cross compiling
32466See \`config.log' for more details" "$LINENO" 5; }
32467else
32468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32469/* end confdefs.h. */
32470
32471
32472 $curl_includes_ws2tcpip
32473 $curl_includes_stdlib
32474 $curl_includes_string
32475 $curl_includes_sys_socket
32476 $curl_includes_netdb
32477
32478int main (void)
32479{
32480
32481 struct addrinfo hints;
32482 struct addrinfo *ai = 0;
32483 int error;
32484
32485 #ifdef HAVE_WINSOCK2_H
32486 WSADATA wsa;
32487 if (WSAStartup(MAKEWORD(2,2), &wsa))
32488 exit(2);
32489 #endif
32490
32491 memset(&hints, 0, sizeof(hints));
32492 hints.ai_flags = AI_NUMERICHOST;
32493 hints.ai_family = AF_UNSPEC;
32494 hints.ai_socktype = SOCK_STREAM;
32495 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32496 if(error || !ai)
32497 exit(1); /* fail */
32498 else
32499 exit(0);
32500
32501 ;
32502 return 0;
32503}
32504
32505_ACEOF
32506if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032508$as_echo "yes" >&6; }
32509 tst_works_getaddrinfo="yes"
32510
32511else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032513$as_echo "no" >&6; }
32514 tst_works_getaddrinfo="no"
32515
32516fi
32517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32518 conftest.$ac_objext conftest.beam conftest.$ac_ext
32519fi
32520
Elliott Hughesa93fb052018-12-12 14:22:48 -080032521 LD_LIBRARY_PATH=$old # restore
32522
Elliott Hughes82be86d2017-09-20 17:00:17 -070032523 fi
32524 #
32525 if test "$tst_compi_getaddrinfo" = "yes" &&
32526 test "$tst_works_getaddrinfo" != "no"; then
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32528$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32529 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32531$as_echo "yes" >&6; }
32532 tst_allow_getaddrinfo="yes"
32533 else
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32535$as_echo "no" >&6; }
32536 tst_allow_getaddrinfo="no"
32537 fi
32538 fi
32539 #
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32541$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32542 if test "$tst_links_getaddrinfo" = "yes" &&
32543 test "$tst_proto_getaddrinfo" = "yes" &&
32544 test "$tst_compi_getaddrinfo" = "yes" &&
32545 test "$tst_allow_getaddrinfo" = "yes" &&
32546 test "$tst_works_getaddrinfo" != "no"; then
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32548$as_echo "yes" >&6; }
32549
32550cat >>confdefs.h <<_ACEOF
32551#define HAVE_GETADDRINFO 1
32552_ACEOF
32553
32554 curl_cv_func_getaddrinfo="yes"
32555 else
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32557$as_echo "no" >&6; }
32558 curl_cv_func_getaddrinfo="no"
32559 curl_cv_func_getaddrinfo_threadsafe="no"
32560 fi
32561 #
32562 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32564$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32565 case $host_os in
32566 aix[1234].* | aix5.[01].*)
32567 tst_tsafe_getaddrinfo="no"
32568 ;;
32569 aix*)
32570 tst_tsafe_getaddrinfo="yes"
32571 ;;
32572 darwin[12345].*)
32573 tst_tsafe_getaddrinfo="no"
32574 ;;
32575 darwin*)
32576 tst_tsafe_getaddrinfo="yes"
32577 ;;
32578 freebsd[1234].* | freebsd5.[1234]*)
32579 tst_tsafe_getaddrinfo="no"
32580 ;;
32581 freebsd*)
32582 tst_tsafe_getaddrinfo="yes"
32583 ;;
32584 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32585 tst_tsafe_getaddrinfo="no"
32586 ;;
32587 hpux*)
32588 tst_tsafe_getaddrinfo="yes"
32589 ;;
32590 netbsd[123].*)
32591 tst_tsafe_getaddrinfo="no"
32592 ;;
32593 netbsd*)
32594 tst_tsafe_getaddrinfo="yes"
32595 ;;
32596 *bsd*)
32597 tst_tsafe_getaddrinfo="no"
32598 ;;
32599 solaris2*)
32600 tst_tsafe_getaddrinfo="yes"
32601 ;;
32602 esac
32603 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32604 test "$curl_cv_native_windows" = "yes"; then
32605 tst_tsafe_getaddrinfo="yes"
32606 fi
32607 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32608
32609
32610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32611/* end confdefs.h. */
32612
32613
32614 $curl_includes_sys_socket
32615 $curl_includes_netdb
32616
32617int main (void)
32618{
32619#ifdef h_errno
32620 return 0;
32621#else
32622 force compilation error
32623#endif
32624}
32625
32626
32627_ACEOF
32628if ac_fn_c_try_compile "$LINENO"; then :
32629
32630 tst_symbol_defined="yes"
32631
32632else
32633
32634 tst_symbol_defined="no"
32635
32636fi
32637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32638 if test "$tst_symbol_defined" = "yes"; then
32639 curl_cv_have_def_h_errno=yes
32640
32641 else
32642 curl_cv_have_def_h_errno=no
32643
32644 fi
32645
32646 if test "$curl_cv_have_def_h_errno" = "yes"; then
32647 tst_h_errno_macro="yes"
32648 else
32649 tst_h_errno_macro="no"
32650 fi
32651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32652/* end confdefs.h. */
32653
32654
32655 $curl_includes_sys_socket
32656 $curl_includes_netdb
32657
32658int main (void)
32659{
32660
32661 h_errno = 2;
32662 if(0 != h_errno)
32663 return 1;
32664
32665 ;
32666 return 0;
32667}
32668
32669_ACEOF
32670if ac_fn_c_try_compile "$LINENO"; then :
32671
32672 tst_h_errno_modifiable_lvalue="yes"
32673
32674else
32675
32676 tst_h_errno_modifiable_lvalue="no"
32677
32678fi
32679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32681/* end confdefs.h. */
32682
32683
32684
32685int main (void)
32686{
32687
32688#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32689 return 0;
32690#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32691 return 0;
32692#else
32693 force compilation error
32694#endif
32695
32696 ;
32697 return 0;
32698}
32699
32700_ACEOF
32701if ac_fn_c_try_compile "$LINENO"; then :
32702
32703 tst_h_errno_sbs_issue_7="yes"
32704
32705else
32706
32707 tst_h_errno_sbs_issue_7="no"
32708
32709fi
32710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32711 if test "$tst_h_errno_macro" = "no" &&
32712 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32713 test "$tst_h_errno_sbs_issue_7" = "no"; then
32714 tst_tsafe_getaddrinfo="no"
32715 else
32716 tst_tsafe_getaddrinfo="yes"
32717 fi
32718 fi
32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32720$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32721 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32722
32723cat >>confdefs.h <<_ACEOF
32724#define HAVE_GETADDRINFO_THREADSAFE 1
32725_ACEOF
32726
32727 curl_cv_func_getaddrinfo_threadsafe="yes"
32728 else
32729 curl_cv_func_getaddrinfo_threadsafe="no"
32730 fi
32731 fi
32732
32733
32734 #
32735 tst_links_gai_strerror="unknown"
32736 tst_proto_gai_strerror="unknown"
32737 tst_compi_gai_strerror="unknown"
32738 tst_allow_gai_strerror="unknown"
32739 #
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32741$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32743/* end confdefs.h. */
32744
32745
32746 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032747 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032748 $curl_includes_netdb
32749
32750int main (void)
32751{
32752
32753 if(0 != gai_strerror(0))
32754 return 1;
32755
32756 ;
32757 return 0;
32758}
32759
32760_ACEOF
32761if ac_fn_c_try_link "$LINENO"; then :
32762
32763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32764$as_echo "yes" >&6; }
32765 tst_links_gai_strerror="yes"
32766
32767else
32768
32769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32770$as_echo "no" >&6; }
32771 tst_links_gai_strerror="no"
32772
32773fi
32774rm -f core conftest.err conftest.$ac_objext \
32775 conftest$ac_exeext conftest.$ac_ext
32776 #
32777 if test "$tst_links_gai_strerror" = "yes"; then
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32779$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32781/* end confdefs.h. */
32782
32783 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032784 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032785 $curl_includes_netdb
32786
32787_ACEOF
32788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32789 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32790
32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32792$as_echo "yes" >&6; }
32793 tst_proto_gai_strerror="yes"
32794
32795else
32796
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32798$as_echo "no" >&6; }
32799 tst_proto_gai_strerror="no"
32800
32801fi
32802rm -f conftest*
32803
32804 fi
32805 #
32806 if test "$tst_proto_gai_strerror" = "yes"; then
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32808$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32810/* end confdefs.h. */
32811
32812
32813 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032814 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032815 $curl_includes_netdb
32816
32817int main (void)
32818{
32819
32820 if(0 != gai_strerror(0))
32821 return 1;
32822
32823 ;
32824 return 0;
32825}
32826
32827_ACEOF
32828if ac_fn_c_try_compile "$LINENO"; then :
32829
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32831$as_echo "yes" >&6; }
32832 tst_compi_gai_strerror="yes"
32833
32834else
32835
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32837$as_echo "no" >&6; }
32838 tst_compi_gai_strerror="no"
32839
32840fi
32841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32842 fi
32843 #
32844 if test "$tst_compi_gai_strerror" = "yes"; then
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32846$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32847 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32849$as_echo "yes" >&6; }
32850 tst_allow_gai_strerror="yes"
32851 else
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32853$as_echo "no" >&6; }
32854 tst_allow_gai_strerror="no"
32855 fi
32856 fi
32857 #
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32859$as_echo_n "checking if gai_strerror might be used... " >&6; }
32860 if test "$tst_links_gai_strerror" = "yes" &&
32861 test "$tst_proto_gai_strerror" = "yes" &&
32862 test "$tst_compi_gai_strerror" = "yes" &&
32863 test "$tst_allow_gai_strerror" = "yes"; then
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32865$as_echo "yes" >&6; }
32866
32867cat >>confdefs.h <<_ACEOF
32868#define HAVE_GAI_STRERROR 1
32869_ACEOF
32870
32871 curl_cv_func_gai_strerror="yes"
32872 else
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32874$as_echo "no" >&6; }
32875 curl_cv_func_gai_strerror="no"
32876 fi
32877
32878
32879 #
32880 tst_links_gethostbyaddr="unknown"
32881 tst_proto_gethostbyaddr="unknown"
32882 tst_compi_gethostbyaddr="unknown"
32883 tst_allow_gethostbyaddr="unknown"
32884 #
32885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32886$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32888/* end confdefs.h. */
32889
32890
32891 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032892 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032893 $curl_includes_netdb
32894
32895int main (void)
32896{
32897
32898 if(0 != gethostbyaddr(0, 0, 0))
32899 return 1;
32900
32901 ;
32902 return 0;
32903}
32904
32905_ACEOF
32906if ac_fn_c_try_link "$LINENO"; then :
32907
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32909$as_echo "yes" >&6; }
32910 tst_links_gethostbyaddr="yes"
32911
32912else
32913
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32915$as_echo "no" >&6; }
32916 tst_links_gethostbyaddr="no"
32917
32918fi
32919rm -f core conftest.err conftest.$ac_objext \
32920 conftest$ac_exeext conftest.$ac_ext
32921 #
32922 if test "$tst_links_gethostbyaddr" = "yes"; then
32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32924$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32926/* end confdefs.h. */
32927
32928 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032929 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032930 $curl_includes_netdb
32931
32932_ACEOF
32933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32934 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32935
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32937$as_echo "yes" >&6; }
32938 tst_proto_gethostbyaddr="yes"
32939
32940else
32941
32942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32943$as_echo "no" >&6; }
32944 tst_proto_gethostbyaddr="no"
32945
32946fi
32947rm -f conftest*
32948
32949 fi
32950 #
32951 if test "$tst_proto_gethostbyaddr" = "yes"; then
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32953$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32955/* end confdefs.h. */
32956
32957
32958 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032959 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032960 $curl_includes_netdb
32961
32962int main (void)
32963{
32964
32965 if(0 != gethostbyaddr(0, 0, 0))
32966 return 1;
32967
32968 ;
32969 return 0;
32970}
32971
32972_ACEOF
32973if ac_fn_c_try_compile "$LINENO"; then :
32974
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32976$as_echo "yes" >&6; }
32977 tst_compi_gethostbyaddr="yes"
32978
32979else
32980
32981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32982$as_echo "no" >&6; }
32983 tst_compi_gethostbyaddr="no"
32984
32985fi
32986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32987 fi
32988 #
32989 if test "$tst_compi_gethostbyaddr" = "yes"; then
32990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32991$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32992 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32994$as_echo "yes" >&6; }
32995 tst_allow_gethostbyaddr="yes"
32996 else
32997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32998$as_echo "no" >&6; }
32999 tst_allow_gethostbyaddr="no"
33000 fi
33001 fi
33002 #
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33004$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33005 if test "$tst_links_gethostbyaddr" = "yes" &&
33006 test "$tst_proto_gethostbyaddr" = "yes" &&
33007 test "$tst_compi_gethostbyaddr" = "yes" &&
33008 test "$tst_allow_gethostbyaddr" = "yes"; then
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33010$as_echo "yes" >&6; }
33011
33012cat >>confdefs.h <<_ACEOF
33013#define HAVE_GETHOSTBYADDR 1
33014_ACEOF
33015
33016 curl_cv_func_gethostbyaddr="yes"
33017 else
33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33019$as_echo "no" >&6; }
33020 curl_cv_func_gethostbyaddr="no"
33021 fi
33022
33023
33024 #
33025 tst_links_gethostbyaddr_r="unknown"
33026 tst_proto_gethostbyaddr_r="unknown"
33027 tst_compi_gethostbyaddr_r="unknown"
33028 tst_allow_gethostbyaddr_r="unknown"
33029 tst_nargs_gethostbyaddr_r="unknown"
33030 #
33031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33032$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33034/* end confdefs.h. */
33035
33036
33037#define gethostbyaddr_r innocuous_gethostbyaddr_r
33038#ifdef __STDC__
33039# include <limits.h>
33040#else
33041# include <assert.h>
33042#endif
33043#undef gethostbyaddr_r
33044#ifdef __cplusplus
33045extern "C"
33046#endif
33047char gethostbyaddr_r ();
33048#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33049choke me
33050#endif
33051
33052int main (void)
33053{
33054return gethostbyaddr_r ();
33055 ;
33056 return 0;
33057}
33058
33059_ACEOF
33060if ac_fn_c_try_link "$LINENO"; then :
33061
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33063$as_echo "yes" >&6; }
33064 tst_links_gethostbyaddr_r="yes"
33065
33066else
33067
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33069$as_echo "no" >&6; }
33070 tst_links_gethostbyaddr_r="no"
33071
33072fi
33073rm -f core conftest.err conftest.$ac_objext \
33074 conftest$ac_exeext conftest.$ac_ext
33075 #
33076 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33078$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33080/* end confdefs.h. */
33081
33082 $curl_includes_netdb
33083
33084_ACEOF
33085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33086 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33087
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33089$as_echo "yes" >&6; }
33090 tst_proto_gethostbyaddr_r="yes"
33091
33092else
33093
33094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33095$as_echo "no" >&6; }
33096 tst_proto_gethostbyaddr_r="no"
33097
33098fi
33099rm -f conftest*
33100
33101 fi
33102 #
33103 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33104 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33106$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33108/* end confdefs.h. */
33109
33110
33111 $curl_includes_netdb
33112
33113int main (void)
33114{
33115
33116 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33117 return 1;
33118
33119 ;
33120 return 0;
33121}
33122
33123_ACEOF
33124if ac_fn_c_try_compile "$LINENO"; then :
33125
33126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33127$as_echo "yes" >&6; }
33128 tst_compi_gethostbyaddr_r="yes"
33129 tst_nargs_gethostbyaddr_r="5"
33130
33131else
33132
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33134$as_echo "no" >&6; }
33135 tst_compi_gethostbyaddr_r="no"
33136
33137fi
33138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33139 fi
33140 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33142$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33144/* end confdefs.h. */
33145
33146
33147 $curl_includes_netdb
33148
33149int main (void)
33150{
33151
33152 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33153 return 1;
33154
33155 ;
33156 return 0;
33157}
33158
33159_ACEOF
33160if ac_fn_c_try_compile "$LINENO"; then :
33161
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33163$as_echo "yes" >&6; }
33164 tst_compi_gethostbyaddr_r="yes"
33165 tst_nargs_gethostbyaddr_r="7"
33166
33167else
33168
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33170$as_echo "no" >&6; }
33171 tst_compi_gethostbyaddr_r="no"
33172
33173fi
33174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33175 fi
33176 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33178$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33180/* end confdefs.h. */
33181
33182
33183 $curl_includes_netdb
33184
33185int main (void)
33186{
33187
33188 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 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_gethostbyaddr_r="yes"
33201 tst_nargs_gethostbyaddr_r="8"
33202
33203else
33204
33205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33206$as_echo "no" >&6; }
33207 tst_compi_gethostbyaddr_r="no"
33208
33209fi
33210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33211 fi
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33213$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33214 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33216$as_echo "yes" >&6; }
33217 else
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33219$as_echo "no" >&6; }
33220 fi
33221 fi
33222 #
33223 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33225$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33226 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33228$as_echo "yes" >&6; }
33229 tst_allow_gethostbyaddr_r="yes"
33230 else
33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33232$as_echo "no" >&6; }
33233 tst_allow_gethostbyaddr_r="no"
33234 fi
33235 fi
33236 #
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33238$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33239 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33240 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33241 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33242 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33244$as_echo "yes" >&6; }
33245
33246cat >>confdefs.h <<_ACEOF
33247#define HAVE_GETHOSTBYADDR_R 1
33248_ACEOF
33249
33250 #
33251 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33252
33253$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33254
33255 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33256
33257$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33258
33259 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33260
33261$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33262
33263 fi
33264 #
33265 curl_cv_func_gethostbyaddr_r="yes"
33266 else
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33268$as_echo "no" >&6; }
33269 curl_cv_func_gethostbyaddr_r="no"
33270 fi
33271
33272
33273 #
33274 tst_links_gethostbyname="unknown"
33275 tst_proto_gethostbyname="unknown"
33276 tst_compi_gethostbyname="unknown"
33277 tst_allow_gethostbyname="unknown"
33278 #
33279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33280$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33282/* end confdefs.h. */
33283
33284
33285 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033286 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033287 $curl_includes_netdb
33288
33289int main (void)
33290{
33291
33292 if(0 != gethostbyname(0))
33293 return 1;
33294
33295 ;
33296 return 0;
33297}
33298
33299_ACEOF
33300if ac_fn_c_try_link "$LINENO"; then :
33301
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33303$as_echo "yes" >&6; }
33304 tst_links_gethostbyname="yes"
33305
33306else
33307
33308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33309$as_echo "no" >&6; }
33310 tst_links_gethostbyname="no"
33311
33312fi
33313rm -f core conftest.err conftest.$ac_objext \
33314 conftest$ac_exeext conftest.$ac_ext
33315 #
33316 if test "$tst_links_gethostbyname" = "yes"; then
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33318$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33320/* end confdefs.h. */
33321
33322 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033323 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033324 $curl_includes_netdb
33325
33326_ACEOF
33327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33328 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33329
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33331$as_echo "yes" >&6; }
33332 tst_proto_gethostbyname="yes"
33333
33334else
33335
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33337$as_echo "no" >&6; }
33338 tst_proto_gethostbyname="no"
33339
33340fi
33341rm -f conftest*
33342
33343 fi
33344 #
33345 if test "$tst_proto_gethostbyname" = "yes"; then
33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33347$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33349/* end confdefs.h. */
33350
33351
33352 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033353 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033354 $curl_includes_netdb
33355
33356int main (void)
33357{
33358
33359 if(0 != gethostbyname(0))
33360 return 1;
33361
33362 ;
33363 return 0;
33364}
33365
33366_ACEOF
33367if ac_fn_c_try_compile "$LINENO"; then :
33368
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33370$as_echo "yes" >&6; }
33371 tst_compi_gethostbyname="yes"
33372
33373else
33374
33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33376$as_echo "no" >&6; }
33377 tst_compi_gethostbyname="no"
33378
33379fi
33380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 fi
33382 #
33383 if test "$tst_compi_gethostbyname" = "yes"; then
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33385$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33386 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33388$as_echo "yes" >&6; }
33389 tst_allow_gethostbyname="yes"
33390 else
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392$as_echo "no" >&6; }
33393 tst_allow_gethostbyname="no"
33394 fi
33395 fi
33396 #
33397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33398$as_echo_n "checking if gethostbyname might be used... " >&6; }
33399 if test "$tst_links_gethostbyname" = "yes" &&
33400 test "$tst_proto_gethostbyname" = "yes" &&
33401 test "$tst_compi_gethostbyname" = "yes" &&
33402 test "$tst_allow_gethostbyname" = "yes"; then
33403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33404$as_echo "yes" >&6; }
33405
33406cat >>confdefs.h <<_ACEOF
33407#define HAVE_GETHOSTBYNAME 1
33408_ACEOF
33409
33410 curl_cv_func_gethostbyname="yes"
33411 else
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33413$as_echo "no" >&6; }
33414 curl_cv_func_gethostbyname="no"
33415 fi
33416
33417
33418 #
33419 tst_links_gethostbyname_r="unknown"
33420 tst_proto_gethostbyname_r="unknown"
33421 tst_compi_gethostbyname_r="unknown"
33422 tst_allow_gethostbyname_r="unknown"
33423 tst_nargs_gethostbyname_r="unknown"
33424 #
33425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33426$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33428/* end confdefs.h. */
33429
33430
33431#define gethostbyname_r innocuous_gethostbyname_r
33432#ifdef __STDC__
33433# include <limits.h>
33434#else
33435# include <assert.h>
33436#endif
33437#undef gethostbyname_r
33438#ifdef __cplusplus
33439extern "C"
33440#endif
33441char gethostbyname_r ();
33442#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33443choke me
33444#endif
33445
33446int main (void)
33447{
33448return gethostbyname_r ();
33449 ;
33450 return 0;
33451}
33452
33453_ACEOF
33454if ac_fn_c_try_link "$LINENO"; then :
33455
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33457$as_echo "yes" >&6; }
33458 tst_links_gethostbyname_r="yes"
33459
33460else
33461
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33463$as_echo "no" >&6; }
33464 tst_links_gethostbyname_r="no"
33465
33466fi
33467rm -f core conftest.err conftest.$ac_objext \
33468 conftest$ac_exeext conftest.$ac_ext
33469 #
33470 if test "$tst_links_gethostbyname_r" = "yes"; then
33471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33472$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33474/* end confdefs.h. */
33475
33476 $curl_includes_netdb
33477
33478_ACEOF
33479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33480 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33481
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483$as_echo "yes" >&6; }
33484 tst_proto_gethostbyname_r="yes"
33485
33486else
33487
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33489$as_echo "no" >&6; }
33490 tst_proto_gethostbyname_r="no"
33491
33492fi
33493rm -f conftest*
33494
33495 fi
33496 #
33497 if test "$tst_proto_gethostbyname_r" = "yes"; then
33498 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33500$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33502/* end confdefs.h. */
33503
33504
33505 $curl_includes_netdb
33506
33507int main (void)
33508{
33509
33510 if(0 != gethostbyname_r(0, 0, 0))
33511 return 1;
33512
33513 ;
33514 return 0;
33515}
33516
33517_ACEOF
33518if ac_fn_c_try_compile "$LINENO"; then :
33519
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33521$as_echo "yes" >&6; }
33522 tst_compi_gethostbyname_r="yes"
33523 tst_nargs_gethostbyname_r="3"
33524
33525else
33526
33527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33528$as_echo "no" >&6; }
33529 tst_compi_gethostbyname_r="no"
33530
33531fi
33532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533 fi
33534 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33536$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33538/* end confdefs.h. */
33539
33540
33541 $curl_includes_netdb
33542
33543int main (void)
33544{
33545
33546 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33547 return 1;
33548
33549 ;
33550 return 0;
33551}
33552
33553_ACEOF
33554if ac_fn_c_try_compile "$LINENO"; then :
33555
33556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33557$as_echo "yes" >&6; }
33558 tst_compi_gethostbyname_r="yes"
33559 tst_nargs_gethostbyname_r="5"
33560
33561else
33562
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564$as_echo "no" >&6; }
33565 tst_compi_gethostbyname_r="no"
33566
33567fi
33568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33569 fi
33570 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33572$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33574/* end confdefs.h. */
33575
33576
33577 $curl_includes_netdb
33578
33579int main (void)
33580{
33581
33582 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33583 return 1;
33584
33585 ;
33586 return 0;
33587}
33588
33589_ACEOF
33590if ac_fn_c_try_compile "$LINENO"; then :
33591
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33593$as_echo "yes" >&6; }
33594 tst_compi_gethostbyname_r="yes"
33595 tst_nargs_gethostbyname_r="6"
33596
33597else
33598
33599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33600$as_echo "no" >&6; }
33601 tst_compi_gethostbyname_r="no"
33602
33603fi
33604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33605 fi
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33607$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33608 if test "$tst_compi_gethostbyname_r" = "yes"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33610$as_echo "yes" >&6; }
33611 else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614 fi
33615 fi
33616 #
33617 if test "$tst_compi_gethostbyname_r" = "yes"; then
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33619$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33620 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622$as_echo "yes" >&6; }
33623 tst_allow_gethostbyname_r="yes"
33624 else
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33626$as_echo "no" >&6; }
33627 tst_allow_gethostbyname_r="no"
33628 fi
33629 fi
33630 #
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33632$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33633 if test "$tst_links_gethostbyname_r" = "yes" &&
33634 test "$tst_proto_gethostbyname_r" = "yes" &&
33635 test "$tst_compi_gethostbyname_r" = "yes" &&
33636 test "$tst_allow_gethostbyname_r" = "yes"; then
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33638$as_echo "yes" >&6; }
33639
33640cat >>confdefs.h <<_ACEOF
33641#define HAVE_GETHOSTBYNAME_R 1
33642_ACEOF
33643
33644 #
33645 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33646
33647$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33648
33649 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33650
33651$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33652
33653 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33654
33655$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33656
33657 fi
33658 #
33659 curl_cv_func_gethostbyname_r="yes"
33660 else
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33662$as_echo "no" >&6; }
33663 curl_cv_func_gethostbyname_r="no"
33664 fi
33665
33666
Elliott Hughesa93fb052018-12-12 14:22:48 -080033667curl_preprocess_callconv="\
33668/* preprocess start */
33669#ifdef HAVE_WINDOWS_H
33670# define FUNCALLCONV __stdcall
33671#else
33672# define FUNCALLCONV
33673#endif
33674/* preprocess end */"
33675
33676
Haibo Huang65021c72019-03-27 15:37:23 -070033677 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070033678 tst_links_gethostname="unknown"
33679 tst_proto_gethostname="unknown"
33680 tst_compi_gethostname="unknown"
33681 tst_allow_gethostname="unknown"
33682 #
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33684$as_echo_n "checking if gethostname can be linked... " >&6; }
33685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33686/* end confdefs.h. */
33687
33688
33689 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033690 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033691 $curl_includes_unistd
33692
33693int main (void)
33694{
33695
33696 if(0 != gethostname(0, 0))
33697 return 1;
33698
33699 ;
33700 return 0;
33701}
33702
33703_ACEOF
33704if ac_fn_c_try_link "$LINENO"; then :
33705
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33707$as_echo "yes" >&6; }
33708 tst_links_gethostname="yes"
33709
33710else
33711
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33713$as_echo "no" >&6; }
33714 tst_links_gethostname="no"
33715
33716fi
33717rm -f core conftest.err conftest.$ac_objext \
33718 conftest$ac_exeext conftest.$ac_ext
33719 #
33720 if test "$tst_links_gethostname" = "yes"; then
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33722$as_echo_n "checking if gethostname is prototyped... " >&6; }
33723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33724/* end confdefs.h. */
33725
33726 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033727 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033728 $curl_includes_unistd
33729
33730_ACEOF
33731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33732 $EGREP "gethostname" >/dev/null 2>&1; then :
33733
33734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33735$as_echo "yes" >&6; }
33736 tst_proto_gethostname="yes"
33737
33738else
33739
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33741$as_echo "no" >&6; }
33742 tst_proto_gethostname="no"
33743
33744fi
33745rm -f conftest*
33746
33747 fi
33748 #
33749 if test "$tst_proto_gethostname" = "yes"; then
33750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33751$as_echo_n "checking if gethostname is compilable... " >&6; }
33752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33753/* end confdefs.h. */
33754
33755
33756 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033757 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033758 $curl_includes_unistd
33759
33760int main (void)
33761{
33762
33763 if(0 != gethostname(0, 0))
33764 return 1;
33765
33766 ;
33767 return 0;
33768}
33769
33770_ACEOF
33771if ac_fn_c_try_compile "$LINENO"; then :
33772
33773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33774$as_echo "yes" >&6; }
33775 tst_compi_gethostname="yes"
33776
33777else
33778
33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33780$as_echo "no" >&6; }
33781 tst_compi_gethostname="no"
33782
33783fi
33784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33785 fi
33786 #
33787 if test "$tst_compi_gethostname" = "yes"; then
33788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33789$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33790 tst_gethostname_type_arg2="unknown"
33791 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33792 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33793 if test "$tst_gethostname_type_arg2" = "unknown"; then
33794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33795/* end confdefs.h. */
33796
33797
33798 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033799 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033800 $curl_includes_unistd
33801 $curl_preprocess_callconv
33802 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33803
33804int main (void)
33805{
33806
33807 if(0 != gethostname(0, 0))
33808 return 1;
33809
33810 ;
33811 return 0;
33812}
33813
33814_ACEOF
33815if ac_fn_c_try_compile "$LINENO"; then :
33816
33817 tst_gethostname_type_arg2="$tst_arg2"
33818
33819fi
33820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33821 fi
33822 done
33823 done
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33825$as_echo "$tst_gethostname_type_arg2" >&6; }
33826 if test "$tst_gethostname_type_arg2" != "unknown"; then
33827
33828cat >>confdefs.h <<_ACEOF
33829#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33830_ACEOF
33831
33832 fi
33833 fi
33834 #
33835 if test "$tst_compi_gethostname" = "yes"; then
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33837$as_echo_n "checking if gethostname usage allowed... " >&6; }
33838 if test "x$curl_disallow_gethostname" != "xyes"; then
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33840$as_echo "yes" >&6; }
33841 tst_allow_gethostname="yes"
33842 else
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33844$as_echo "no" >&6; }
33845 tst_allow_gethostname="no"
33846 fi
33847 fi
33848 #
33849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33850$as_echo_n "checking if gethostname might be used... " >&6; }
33851 if test "$tst_links_gethostname" = "yes" &&
33852 test "$tst_proto_gethostname" = "yes" &&
33853 test "$tst_compi_gethostname" = "yes" &&
33854 test "$tst_allow_gethostname" = "yes"; then
33855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33856$as_echo "yes" >&6; }
33857
33858cat >>confdefs.h <<_ACEOF
33859#define HAVE_GETHOSTNAME 1
33860_ACEOF
33861
33862 curl_cv_func_gethostname="yes"
33863 else
33864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33865$as_echo "no" >&6; }
33866 curl_cv_func_gethostname="no"
33867 fi
33868
33869
Haibo Huang34ab3462019-05-22 00:50:27 -070033870 #
33871 tst_links_getpeername="unknown"
33872 tst_proto_getpeername="unknown"
33873 tst_compi_getpeername="unknown"
33874 tst_allow_getpeername="unknown"
33875 #
33876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
33877$as_echo_n "checking if getpeername can be linked... " >&6; }
33878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33879/* end confdefs.h. */
33880
33881
33882 $curl_includes_winsock2
33883 $curl_includes_bsdsocket
33884 $curl_includes_sys_socket
33885
33886int main (void)
33887{
33888
33889 if(0 != getpeername(0, (void *)0, (void *)0))
33890 return 1;
33891
33892 ;
33893 return 0;
33894}
33895
33896_ACEOF
33897if ac_fn_c_try_link "$LINENO"; then :
33898
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33900$as_echo "yes" >&6; }
33901 tst_links_getpeername="yes"
33902
33903else
33904
33905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33906$as_echo "no" >&6; }
33907 tst_links_getpeername="no"
33908
33909fi
33910rm -f core conftest.err conftest.$ac_objext \
33911 conftest$ac_exeext conftest.$ac_ext
33912 #
33913 if test "$tst_links_getpeername" = "yes"; then
33914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
33915$as_echo_n "checking if getpeername is prototyped... " >&6; }
33916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33917/* end confdefs.h. */
33918
33919 $curl_includes_winsock2
33920 $curl_includes_bsdsocket
33921 $curl_includes_sys_socket
33922
33923_ACEOF
33924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33925 $EGREP "getpeername" >/dev/null 2>&1; then :
33926
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33928$as_echo "yes" >&6; }
33929 tst_proto_getpeername="yes"
33930
33931else
33932
33933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33934$as_echo "no" >&6; }
33935 tst_proto_getpeername="no"
33936
33937fi
33938rm -f conftest*
33939
33940 fi
33941 #
33942 if test "$tst_proto_getpeername" = "yes"; then
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
33944$as_echo_n "checking if getpeername is compilable... " >&6; }
33945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33946/* end confdefs.h. */
33947
33948
33949 $curl_includes_winsock2
33950 $curl_includes_bsdsocket
33951 $curl_includes_sys_socket
33952
33953int main (void)
33954{
33955
33956 if(0 != getpeername(0, (void *)0, (void *)0))
33957 return 1;
33958
33959 ;
33960 return 0;
33961}
33962
33963_ACEOF
33964if ac_fn_c_try_compile "$LINENO"; then :
33965
33966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33967$as_echo "yes" >&6; }
33968 tst_compi_getpeername="yes"
33969
33970else
33971
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33973$as_echo "no" >&6; }
33974 tst_compi_getpeername="no"
33975
33976fi
33977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33978 fi
33979 #
33980 if test "$tst_compi_getpeername" = "yes"; then
33981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
33982$as_echo_n "checking if getpeername usage allowed... " >&6; }
33983 if test "x$curl_disallow_getpeername" != "xyes"; then
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33985$as_echo "yes" >&6; }
33986 tst_allow_getpeername="yes"
33987 else
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33989$as_echo "no" >&6; }
33990 tst_allow_getpeername="no"
33991 fi
33992 fi
33993 #
33994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
33995$as_echo_n "checking if getpeername might be used... " >&6; }
33996 if test "$tst_links_getpeername" = "yes" &&
33997 test "$tst_proto_getpeername" = "yes" &&
33998 test "$tst_compi_getpeername" = "yes" &&
33999 test "$tst_allow_getpeername" = "yes"; then
34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34001$as_echo "yes" >&6; }
34002
34003cat >>confdefs.h <<_ACEOF
34004#define HAVE_GETPEERNAME 1
34005_ACEOF
34006
34007 curl_cv_func_getpeername="yes"
34008 else
34009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34010$as_echo "no" >&6; }
34011 curl_cv_func_getpeername="no"
34012 fi
34013
34014
34015 #
34016 tst_links_getsockname="unknown"
34017 tst_proto_getsockname="unknown"
34018 tst_compi_getsockname="unknown"
34019 tst_allow_getsockname="unknown"
34020 #
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
34022$as_echo_n "checking if getsockname can be linked... " >&6; }
34023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34024/* end confdefs.h. */
34025
34026
34027 $curl_includes_winsock2
34028 $curl_includes_bsdsocket
34029 $curl_includes_sys_socket
34030
34031int main (void)
34032{
34033
34034 if(0 != getsockname(0, (void *)0, (void *)0))
34035 return 1;
34036
34037 ;
34038 return 0;
34039}
34040
34041_ACEOF
34042if ac_fn_c_try_link "$LINENO"; then :
34043
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34045$as_echo "yes" >&6; }
34046 tst_links_getsockname="yes"
34047
34048else
34049
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34051$as_echo "no" >&6; }
34052 tst_links_getsockname="no"
34053
34054fi
34055rm -f core conftest.err conftest.$ac_objext \
34056 conftest$ac_exeext conftest.$ac_ext
34057 #
34058 if test "$tst_links_getsockname" = "yes"; then
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
34060$as_echo_n "checking if getsockname is prototyped... " >&6; }
34061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34062/* end confdefs.h. */
34063
34064 $curl_includes_winsock2
34065 $curl_includes_bsdsocket
34066 $curl_includes_sys_socket
34067
34068_ACEOF
34069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34070 $EGREP "getsockname" >/dev/null 2>&1; then :
34071
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34073$as_echo "yes" >&6; }
34074 tst_proto_getsockname="yes"
34075
34076else
34077
34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34079$as_echo "no" >&6; }
34080 tst_proto_getsockname="no"
34081
34082fi
34083rm -f conftest*
34084
34085 fi
34086 #
34087 if test "$tst_proto_getsockname" = "yes"; then
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
34089$as_echo_n "checking if getsockname is compilable... " >&6; }
34090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34091/* end confdefs.h. */
34092
34093
34094 $curl_includes_winsock2
34095 $curl_includes_bsdsocket
34096 $curl_includes_sys_socket
34097
34098int main (void)
34099{
34100
34101 if(0 != getsockname(0, (void *)0, (void *)0))
34102 return 1;
34103
34104 ;
34105 return 0;
34106}
34107
34108_ACEOF
34109if ac_fn_c_try_compile "$LINENO"; then :
34110
34111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34112$as_echo "yes" >&6; }
34113 tst_compi_getsockname="yes"
34114
34115else
34116
34117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34118$as_echo "no" >&6; }
34119 tst_compi_getsockname="no"
34120
34121fi
34122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123 fi
34124 #
34125 if test "$tst_compi_getsockname" = "yes"; then
34126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
34127$as_echo_n "checking if getsockname usage allowed... " >&6; }
34128 if test "x$curl_disallow_getsockname" != "xyes"; then
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34130$as_echo "yes" >&6; }
34131 tst_allow_getsockname="yes"
34132 else
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34134$as_echo "no" >&6; }
34135 tst_allow_getsockname="no"
34136 fi
34137 fi
34138 #
34139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
34140$as_echo_n "checking if getsockname might be used... " >&6; }
34141 if test "$tst_links_getsockname" = "yes" &&
34142 test "$tst_proto_getsockname" = "yes" &&
34143 test "$tst_compi_getsockname" = "yes" &&
34144 test "$tst_allow_getsockname" = "yes"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34146$as_echo "yes" >&6; }
34147
34148cat >>confdefs.h <<_ACEOF
34149#define HAVE_GETSOCKNAME 1
34150_ACEOF
34151
34152 curl_cv_func_getsockname="yes"
34153 else
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34155$as_echo "no" >&6; }
34156 curl_cv_func_getsockname="no"
34157 fi
34158
34159
Elliott Hughes82be86d2017-09-20 17:00:17 -070034160 #
34161 tst_links_getifaddrs="unknown"
34162 tst_proto_getifaddrs="unknown"
34163 tst_compi_getifaddrs="unknown"
34164 tst_works_getifaddrs="unknown"
34165 tst_allow_getifaddrs="unknown"
34166 #
34167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
34168$as_echo_n "checking if getifaddrs can be linked... " >&6; }
34169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34170/* end confdefs.h. */
34171
34172
34173#define getifaddrs innocuous_getifaddrs
34174#ifdef __STDC__
34175# include <limits.h>
34176#else
34177# include <assert.h>
34178#endif
34179#undef getifaddrs
34180#ifdef __cplusplus
34181extern "C"
34182#endif
34183char getifaddrs ();
34184#if defined __stub_getifaddrs || defined __stub___getifaddrs
34185choke me
34186#endif
34187
34188int main (void)
34189{
34190return getifaddrs ();
34191 ;
34192 return 0;
34193}
34194
34195_ACEOF
34196if ac_fn_c_try_link "$LINENO"; then :
34197
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34199$as_echo "yes" >&6; }
34200 tst_links_getifaddrs="yes"
34201
34202else
34203
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34205$as_echo "no" >&6; }
34206 tst_links_getifaddrs="no"
34207
34208fi
34209rm -f core conftest.err conftest.$ac_objext \
34210 conftest$ac_exeext conftest.$ac_ext
34211 #
34212 if test "$tst_links_getifaddrs" = "yes"; then
34213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34214$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34216/* end confdefs.h. */
34217
34218 $curl_includes_ifaddrs
34219
34220_ACEOF
34221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34222 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34223
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34225$as_echo "yes" >&6; }
34226 tst_proto_getifaddrs="yes"
34227
34228else
34229
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232 tst_proto_getifaddrs="no"
34233
34234fi
34235rm -f conftest*
34236
34237 fi
34238 #
34239 if test "$tst_proto_getifaddrs" = "yes"; then
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34241$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34243/* end confdefs.h. */
34244
34245
34246 $curl_includes_ifaddrs
34247
34248int main (void)
34249{
34250
34251 if(0 != getifaddrs(0))
34252 return 1;
34253
34254 ;
34255 return 0;
34256}
34257
34258_ACEOF
34259if ac_fn_c_try_compile "$LINENO"; then :
34260
34261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34262$as_echo "yes" >&6; }
34263 tst_compi_getifaddrs="yes"
34264
34265else
34266
34267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34268$as_echo "no" >&6; }
34269 tst_compi_getifaddrs="no"
34270
34271fi
34272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34273 fi
34274 #
34275 if test "x$cross_compiling" != "xyes" &&
34276 test "$tst_compi_getifaddrs" = "yes"; then
34277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34278$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034279
34280
34281 old=$LD_LIBRARY_PATH
34282 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34283 export LD_LIBRARY_PATH
34284 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34287as_fn_error $? "cannot run test program while cross compiling
34288See \`config.log' for more details" "$LINENO" 5; }
34289else
34290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34291/* end confdefs.h. */
34292
34293
34294 $curl_includes_stdlib
34295 $curl_includes_ifaddrs
34296
34297int main (void)
34298{
34299
34300 struct ifaddrs *ifa = 0;
34301 int error;
34302
34303 error = getifaddrs(&ifa);
34304 if(error || !ifa)
34305 exit(1); /* fail */
34306 else
34307 exit(0);
34308
34309 ;
34310 return 0;
34311}
34312
34313_ACEOF
34314if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034316$as_echo "yes" >&6; }
34317 tst_works_getifaddrs="yes"
34318
34319else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034321$as_echo "no" >&6; }
34322 tst_works_getifaddrs="no"
34323
34324fi
34325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34326 conftest.$ac_objext conftest.beam conftest.$ac_ext
34327fi
34328
Elliott Hughesa93fb052018-12-12 14:22:48 -080034329 LD_LIBRARY_PATH=$old # restore
34330
Elliott Hughes82be86d2017-09-20 17:00:17 -070034331 fi
34332 #
34333 if test "$tst_compi_getifaddrs" = "yes" &&
34334 test "$tst_works_getifaddrs" != "no"; then
34335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34336$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34337 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34339$as_echo "yes" >&6; }
34340 tst_allow_getifaddrs="yes"
34341 else
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34343$as_echo "no" >&6; }
34344 tst_allow_getifaddrs="no"
34345 fi
34346 fi
34347 #
34348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34349$as_echo_n "checking if getifaddrs might be used... " >&6; }
34350 if test "$tst_links_getifaddrs" = "yes" &&
34351 test "$tst_proto_getifaddrs" = "yes" &&
34352 test "$tst_compi_getifaddrs" = "yes" &&
34353 test "$tst_allow_getifaddrs" = "yes" &&
34354 test "$tst_works_getifaddrs" != "no"; then
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34356$as_echo "yes" >&6; }
34357
34358cat >>confdefs.h <<_ACEOF
34359#define HAVE_GETIFADDRS 1
34360_ACEOF
34361
34362 curl_cv_func_getifaddrs="yes"
34363 else
34364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34365$as_echo "no" >&6; }
34366 curl_cv_func_getifaddrs="no"
34367 fi
34368
34369
34370 #
34371 tst_links_getservbyport_r="unknown"
34372 tst_proto_getservbyport_r="unknown"
34373 tst_compi_getservbyport_r="unknown"
34374 tst_allow_getservbyport_r="unknown"
34375 tst_nargs_getservbyport_r="unknown"
34376 #
34377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34378$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34380/* end confdefs.h. */
34381
34382
34383#define getservbyport_r innocuous_getservbyport_r
34384#ifdef __STDC__
34385# include <limits.h>
34386#else
34387# include <assert.h>
34388#endif
34389#undef getservbyport_r
34390#ifdef __cplusplus
34391extern "C"
34392#endif
34393char getservbyport_r ();
34394#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34395choke me
34396#endif
34397
34398int main (void)
34399{
34400return getservbyport_r ();
34401 ;
34402 return 0;
34403}
34404
34405_ACEOF
34406if ac_fn_c_try_link "$LINENO"; then :
34407
34408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34409$as_echo "yes" >&6; }
34410 tst_links_getservbyport_r="yes"
34411
34412else
34413
34414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34415$as_echo "no" >&6; }
34416 tst_links_getservbyport_r="no"
34417
34418fi
34419rm -f core conftest.err conftest.$ac_objext \
34420 conftest$ac_exeext conftest.$ac_ext
34421 #
34422 if test "$tst_links_getservbyport_r" = "yes"; then
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34424$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34426/* end confdefs.h. */
34427
34428 $curl_includes_netdb
34429
34430_ACEOF
34431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34432 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34433
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34435$as_echo "yes" >&6; }
34436 tst_proto_getservbyport_r="yes"
34437
34438else
34439
34440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34441$as_echo "no" >&6; }
34442 tst_proto_getservbyport_r="no"
34443
34444fi
34445rm -f conftest*
34446
34447 fi
34448 #
34449 if test "$tst_proto_getservbyport_r" = "yes"; then
34450 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34452$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34454/* end confdefs.h. */
34455
34456
34457 $curl_includes_netdb
34458
34459int main (void)
34460{
34461
34462 if(0 != getservbyport_r(0, 0, 0, 0))
34463 return 1;
34464
34465 ;
34466 return 0;
34467}
34468
34469_ACEOF
34470if ac_fn_c_try_compile "$LINENO"; then :
34471
34472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34473$as_echo "yes" >&6; }
34474 tst_compi_getservbyport_r="yes"
34475 tst_nargs_getservbyport_r="4"
34476
34477else
34478
34479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34480$as_echo "no" >&6; }
34481 tst_compi_getservbyport_r="no"
34482
34483fi
34484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34485 fi
34486 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34488$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34490/* end confdefs.h. */
34491
34492
34493 $curl_includes_netdb
34494
34495int main (void)
34496{
34497
34498 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34499 return 1;
34500
34501 ;
34502 return 0;
34503}
34504
34505_ACEOF
34506if ac_fn_c_try_compile "$LINENO"; then :
34507
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34509$as_echo "yes" >&6; }
34510 tst_compi_getservbyport_r="yes"
34511 tst_nargs_getservbyport_r="5"
34512
34513else
34514
34515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34516$as_echo "no" >&6; }
34517 tst_compi_getservbyport_r="no"
34518
34519fi
34520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34521 fi
34522 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34524$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34526/* end confdefs.h. */
34527
34528
34529 $curl_includes_netdb
34530
34531int main (void)
34532{
34533
34534 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34535 return 1;
34536
34537 ;
34538 return 0;
34539}
34540
34541_ACEOF
34542if ac_fn_c_try_compile "$LINENO"; then :
34543
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34545$as_echo "yes" >&6; }
34546 tst_compi_getservbyport_r="yes"
34547 tst_nargs_getservbyport_r="6"
34548
34549else
34550
34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34552$as_echo "no" >&6; }
34553 tst_compi_getservbyport_r="no"
34554
34555fi
34556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34557 fi
34558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34559$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34560 if test "$tst_compi_getservbyport_r" = "yes"; then
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34562$as_echo "yes" >&6; }
34563 else
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34565$as_echo "no" >&6; }
34566 fi
34567 fi
34568 #
34569 if test "$tst_compi_getservbyport_r" = "yes"; then
34570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34571$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34572 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34574$as_echo "yes" >&6; }
34575 tst_allow_getservbyport_r="yes"
34576 else
34577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34578$as_echo "no" >&6; }
34579 tst_allow_getservbyport_r="no"
34580 fi
34581 fi
34582 #
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34584$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34585 if test "$tst_links_getservbyport_r" = "yes" &&
34586 test "$tst_proto_getservbyport_r" = "yes" &&
34587 test "$tst_compi_getservbyport_r" = "yes" &&
34588 test "$tst_allow_getservbyport_r" = "yes"; then
34589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34590$as_echo "yes" >&6; }
34591
34592cat >>confdefs.h <<_ACEOF
34593#define HAVE_GETSERVBYPORT_R 1
34594_ACEOF
34595
34596
34597cat >>confdefs.h <<_ACEOF
34598#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34599_ACEOF
34600
34601 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34602
34603$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34604
34605 else
34606
34607$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34608
34609 fi
34610 curl_cv_func_getservbyport_r="yes"
34611 else
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34613$as_echo "no" >&6; }
34614 curl_cv_func_getservbyport_r="no"
34615 fi
34616
34617
34618curl_includes_time="\
34619/* includes start */
34620#ifdef HAVE_SYS_TYPES_H
34621# include <sys/types.h>
34622#endif
34623#ifdef HAVE_SYS_TIME_H
34624# include <sys/time.h>
34625# ifdef TIME_WITH_SYS_TIME
34626# include <time.h>
34627# endif
34628#else
34629# ifdef HAVE_TIME_H
34630# include <time.h>
34631# endif
34632#endif
34633/* includes end */"
34634 for ac_header in sys/types.h sys/time.h time.h
34635do :
34636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34637ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34638"
34639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34640 cat >>confdefs.h <<_ACEOF
34641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34642_ACEOF
34643
34644fi
34645
34646done
34647
34648
34649
34650 #
34651 tst_links_gmtime_r="unknown"
34652 tst_proto_gmtime_r="unknown"
34653 tst_compi_gmtime_r="unknown"
34654 tst_works_gmtime_r="unknown"
34655 tst_allow_gmtime_r="unknown"
34656 #
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34658$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34660/* end confdefs.h. */
34661
34662
34663#define gmtime_r innocuous_gmtime_r
34664#ifdef __STDC__
34665# include <limits.h>
34666#else
34667# include <assert.h>
34668#endif
34669#undef gmtime_r
34670#ifdef __cplusplus
34671extern "C"
34672#endif
34673char gmtime_r ();
34674#if defined __stub_gmtime_r || defined __stub___gmtime_r
34675choke me
34676#endif
34677
34678int main (void)
34679{
34680return gmtime_r ();
34681 ;
34682 return 0;
34683}
34684
34685_ACEOF
34686if ac_fn_c_try_link "$LINENO"; then :
34687
34688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34689$as_echo "yes" >&6; }
34690 tst_links_gmtime_r="yes"
34691
34692else
34693
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34695$as_echo "no" >&6; }
34696 tst_links_gmtime_r="no"
34697
34698fi
34699rm -f core conftest.err conftest.$ac_objext \
34700 conftest$ac_exeext conftest.$ac_ext
34701 #
34702 if test "$tst_links_gmtime_r" = "yes"; then
34703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34704$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34706/* end confdefs.h. */
34707
34708 $curl_includes_time
34709
34710_ACEOF
34711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34712 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34713
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34715$as_echo "yes" >&6; }
34716 tst_proto_gmtime_r="yes"
34717
34718else
34719
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34721$as_echo "no" >&6; }
34722 tst_proto_gmtime_r="no"
34723
34724fi
34725rm -f conftest*
34726
34727 fi
34728 #
34729 if test "$tst_proto_gmtime_r" = "yes"; then
34730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34731$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733/* end confdefs.h. */
34734
34735
34736 $curl_includes_time
34737
34738int main (void)
34739{
34740
34741 if(0 != gmtime_r(0, 0))
34742 return 1;
34743
34744 ;
34745 return 0;
34746}
34747
34748_ACEOF
34749if ac_fn_c_try_compile "$LINENO"; then :
34750
34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34752$as_echo "yes" >&6; }
34753 tst_compi_gmtime_r="yes"
34754
34755else
34756
34757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34758$as_echo "no" >&6; }
34759 tst_compi_gmtime_r="no"
34760
34761fi
34762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 fi
34764 #
34765 if test "x$cross_compiling" != "xyes" &&
34766 test "$tst_compi_gmtime_r" = "yes"; then
34767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34768$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034769
34770
34771 old=$LD_LIBRARY_PATH
34772 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34773 export LD_LIBRARY_PATH
34774 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34777as_fn_error $? "cannot run test program while cross compiling
34778See \`config.log' for more details" "$LINENO" 5; }
34779else
34780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34781/* end confdefs.h. */
34782
34783
34784 $curl_includes_stdlib
34785 $curl_includes_time
34786
34787int main (void)
34788{
34789
34790 time_t local = 1170352587;
34791 struct tm *gmt = 0;
34792 struct tm result;
34793 gmt = gmtime_r(&local, &result);
34794 if(gmt)
34795 exit(0);
34796 else
34797 exit(1);
34798
34799 ;
34800 return 0;
34801}
34802
34803_ACEOF
34804if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034806$as_echo "yes" >&6; }
34807 tst_works_gmtime_r="yes"
34808
34809else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034811$as_echo "no" >&6; }
34812 tst_works_gmtime_r="no"
34813
34814fi
34815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34816 conftest.$ac_objext conftest.beam conftest.$ac_ext
34817fi
34818
Elliott Hughesa93fb052018-12-12 14:22:48 -080034819 LD_LIBRARY_PATH=$old # restore
34820
Elliott Hughes82be86d2017-09-20 17:00:17 -070034821 fi
34822 #
34823 if test "$tst_compi_gmtime_r" = "yes" &&
34824 test "$tst_works_gmtime_r" != "no"; then
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34826$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34827 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34829$as_echo "yes" >&6; }
34830 tst_allow_gmtime_r="yes"
34831 else
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34833$as_echo "no" >&6; }
34834 tst_allow_gmtime_r="no"
34835 fi
34836 fi
34837 #
34838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34839$as_echo_n "checking if gmtime_r might be used... " >&6; }
34840 if test "$tst_links_gmtime_r" = "yes" &&
34841 test "$tst_proto_gmtime_r" = "yes" &&
34842 test "$tst_compi_gmtime_r" = "yes" &&
34843 test "$tst_allow_gmtime_r" = "yes" &&
34844 test "$tst_works_gmtime_r" != "no"; then
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34846$as_echo "yes" >&6; }
34847
34848cat >>confdefs.h <<_ACEOF
34849#define HAVE_GMTIME_R 1
34850_ACEOF
34851
34852 curl_cv_func_gmtime_r="yes"
34853 else
34854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34855$as_echo "no" >&6; }
34856 curl_cv_func_gmtime_r="no"
34857 fi
34858
34859
34860curl_includes_arpa_inet="\
34861/* includes start */
34862#ifdef HAVE_SYS_TYPES_H
34863# include <sys/types.h>
34864#endif
34865#ifdef HAVE_SYS_SOCKET_H
34866# include <sys/socket.h>
34867#endif
34868#ifdef HAVE_NETINET_IN_H
34869# include <netinet/in.h>
34870#endif
34871#ifdef HAVE_ARPA_INET_H
34872# include <arpa/inet.h>
34873#endif
34874#ifdef HAVE_WINSOCK2_H
34875#include <winsock2.h>
34876#include <ws2tcpip.h>
34877#endif
34878/* includes end */"
34879 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34880do :
34881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34882ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34883"
34884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34885 cat >>confdefs.h <<_ACEOF
34886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34887_ACEOF
34888
34889fi
34890
34891done
34892
34893
34894
34895 #
34896 tst_links_inet_ntoa_r="unknown"
34897 tst_proto_inet_ntoa_r="unknown"
34898 tst_compi_inet_ntoa_r="unknown"
34899 tst_allow_inet_ntoa_r="unknown"
34900 tst_nargs_inet_ntoa_r="unknown"
34901 #
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34903$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34905/* end confdefs.h. */
34906
34907
34908#define inet_ntoa_r innocuous_inet_ntoa_r
34909#ifdef __STDC__
34910# include <limits.h>
34911#else
34912# include <assert.h>
34913#endif
34914#undef inet_ntoa_r
34915#ifdef __cplusplus
34916extern "C"
34917#endif
34918char inet_ntoa_r ();
34919#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34920choke me
34921#endif
34922
34923int main (void)
34924{
34925return inet_ntoa_r ();
34926 ;
34927 return 0;
34928}
34929
34930_ACEOF
34931if ac_fn_c_try_link "$LINENO"; then :
34932
34933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34934$as_echo "yes" >&6; }
34935 tst_links_inet_ntoa_r="yes"
34936
34937else
34938
34939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34940$as_echo "no" >&6; }
34941 tst_links_inet_ntoa_r="no"
34942
34943fi
34944rm -f core conftest.err conftest.$ac_objext \
34945 conftest$ac_exeext conftest.$ac_ext
34946 #
34947 if test "$tst_links_inet_ntoa_r" = "yes"; then
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34949$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34951/* end confdefs.h. */
34952
34953 $curl_includes_arpa_inet
34954
34955_ACEOF
34956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34957 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34958
34959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34960$as_echo "yes" >&6; }
34961 tst_proto_inet_ntoa_r="yes"
34962
34963else
34964
34965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34966$as_echo "no" >&6; }
34967 tst_proto_inet_ntoa_r="no"
34968
34969fi
34970rm -f conftest*
34971
34972 fi
34973 #
34974 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34975 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34977$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34979/* end confdefs.h. */
34980
34981
34982 $curl_includes_arpa_inet
34983
34984int main (void)
34985{
34986
34987 struct in_addr addr;
34988 if(0 != inet_ntoa_r(addr, 0))
34989 return 1;
34990
34991 ;
34992 return 0;
34993}
34994
34995_ACEOF
34996if ac_fn_c_try_compile "$LINENO"; then :
34997
34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34999$as_echo "yes" >&6; }
35000 tst_compi_inet_ntoa_r="yes"
35001 tst_nargs_inet_ntoa_r="2"
35002
35003else
35004
35005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35006$as_echo "no" >&6; }
35007 tst_compi_inet_ntoa_r="no"
35008
35009fi
35010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35011 fi
35012 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
35013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
35014$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
35015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35016/* end confdefs.h. */
35017
35018
35019 $curl_includes_arpa_inet
35020
35021int main (void)
35022{
35023
35024 struct in_addr addr;
35025 if(0 != inet_ntoa_r(addr, 0, 0))
35026 return 1;
35027
35028 ;
35029 return 0;
35030}
35031
35032_ACEOF
35033if ac_fn_c_try_compile "$LINENO"; then :
35034
35035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35036$as_echo "yes" >&6; }
35037 tst_compi_inet_ntoa_r="yes"
35038 tst_nargs_inet_ntoa_r="3"
35039
35040else
35041
35042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35043$as_echo "no" >&6; }
35044 tst_compi_inet_ntoa_r="no"
35045
35046fi
35047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35048 fi
35049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
35050$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
35051 if test "$tst_compi_inet_ntoa_r" = "yes"; then
35052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35053$as_echo "yes" >&6; }
35054 else
35055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35056$as_echo "no" >&6; }
35057 fi
35058 fi
35059 #
35060 if test "$tst_compi_inet_ntoa_r" = "yes"; then
35061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
35062$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
35063 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35065$as_echo "yes" >&6; }
35066 tst_allow_inet_ntoa_r="yes"
35067 else
35068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35069$as_echo "no" >&6; }
35070 tst_allow_inet_ntoa_r="no"
35071 fi
35072 fi
35073 #
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
35075$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
35076 if test "$tst_links_inet_ntoa_r" = "yes" &&
35077 test "$tst_proto_inet_ntoa_r" = "yes" &&
35078 test "$tst_compi_inet_ntoa_r" = "yes" &&
35079 test "$tst_allow_inet_ntoa_r" = "yes"; then
35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35081$as_echo "yes" >&6; }
35082
35083cat >>confdefs.h <<_ACEOF
35084#define HAVE_INET_NTOA_R 1
35085_ACEOF
35086
35087 #
35088 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
35089
35090$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
35091
35092 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
35093
35094$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
35095
35096 fi
35097 #
35098 curl_cv_func_inet_ntoa_r="yes"
35099 else
35100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35101$as_echo "no" >&6; }
35102 curl_cv_func_inet_ntoa_r="no"
35103 fi
35104
35105
35106 #
35107 tst_links_inet_ntop="unknown"
35108 tst_proto_inet_ntop="unknown"
35109 tst_compi_inet_ntop="unknown"
35110 tst_works_inet_ntop="unknown"
35111 tst_allow_inet_ntop="unknown"
35112 #
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
35114$as_echo_n "checking if inet_ntop can be linked... " >&6; }
35115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35116/* end confdefs.h. */
35117
35118
35119#define inet_ntop innocuous_inet_ntop
35120#ifdef __STDC__
35121# include <limits.h>
35122#else
35123# include <assert.h>
35124#endif
35125#undef inet_ntop
35126#ifdef __cplusplus
35127extern "C"
35128#endif
35129char inet_ntop ();
35130#if defined __stub_inet_ntop || defined __stub___inet_ntop
35131choke me
35132#endif
35133
35134int main (void)
35135{
35136return inet_ntop ();
35137 ;
35138 return 0;
35139}
35140
35141_ACEOF
35142if ac_fn_c_try_link "$LINENO"; then :
35143
35144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35145$as_echo "yes" >&6; }
35146 tst_links_inet_ntop="yes"
35147
35148else
35149
35150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35151$as_echo "no" >&6; }
35152 tst_links_inet_ntop="no"
35153
35154fi
35155rm -f core conftest.err conftest.$ac_objext \
35156 conftest$ac_exeext conftest.$ac_ext
35157 #
35158 if test "$tst_links_inet_ntop" = "yes"; then
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
35160$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
35161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35162/* end confdefs.h. */
35163
35164 $curl_includes_arpa_inet
35165
35166_ACEOF
35167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35168 $EGREP "inet_ntop" >/dev/null 2>&1; then :
35169
35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35171$as_echo "yes" >&6; }
35172 tst_proto_inet_ntop="yes"
35173
35174else
35175
35176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35177$as_echo "no" >&6; }
35178 tst_proto_inet_ntop="no"
35179
35180fi
35181rm -f conftest*
35182
35183 fi
35184 #
35185 if test "$tst_proto_inet_ntop" = "yes"; then
35186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
35187$as_echo_n "checking if inet_ntop is compilable... " >&6; }
35188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35189/* end confdefs.h. */
35190
35191
35192 $curl_includes_arpa_inet
35193
35194int main (void)
35195{
35196
35197 if(0 != inet_ntop(0, 0, 0, 0))
35198 return 1;
35199
35200 ;
35201 return 0;
35202}
35203
35204_ACEOF
35205if ac_fn_c_try_compile "$LINENO"; then :
35206
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35208$as_echo "yes" >&6; }
35209 tst_compi_inet_ntop="yes"
35210
35211else
35212
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35214$as_echo "no" >&6; }
35215 tst_compi_inet_ntop="no"
35216
35217fi
35218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35219 fi
35220 #
35221 if test "x$cross_compiling" != "xyes" &&
35222 test "$tst_compi_inet_ntop" = "yes"; then
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35224$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035225
35226
35227 old=$LD_LIBRARY_PATH
35228 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35229 export LD_LIBRARY_PATH
35230 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35233as_fn_error $? "cannot run test program while cross compiling
35234See \`config.log' for more details" "$LINENO" 5; }
35235else
35236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35237/* end confdefs.h. */
35238
35239
35240 $curl_includes_stdlib
35241 $curl_includes_arpa_inet
35242 $curl_includes_string
35243
35244int main (void)
35245{
35246
35247 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35248 char ipv4res[sizeof "255.255.255.255"];
35249 unsigned char ipv6a[26];
35250 unsigned char ipv4a[5];
35251 char *ipv6ptr = 0;
35252 char *ipv4ptr = 0;
35253 /* - */
35254 ipv4res[0] = '\0';
35255 ipv4a[0] = 0xc0;
35256 ipv4a[1] = 0xa8;
35257 ipv4a[2] = 0x64;
35258 ipv4a[3] = 0x01;
35259 ipv4a[4] = 0x01;
35260 /* - */
35261 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35262 if(!ipv4ptr)
35263 exit(1); /* fail */
35264 if(ipv4ptr != ipv4res)
35265 exit(1); /* fail */
35266 if(!ipv4ptr[0])
35267 exit(1); /* fail */
35268 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35269 exit(1); /* fail */
35270 /* - */
35271 ipv6res[0] = '\0';
35272 memset(ipv6a, 0, sizeof(ipv6a));
35273 ipv6a[0] = 0xfe;
35274 ipv6a[1] = 0x80;
35275 ipv6a[8] = 0x02;
35276 ipv6a[9] = 0x14;
35277 ipv6a[10] = 0x4f;
35278 ipv6a[11] = 0xff;
35279 ipv6a[12] = 0xfe;
35280 ipv6a[13] = 0x0b;
35281 ipv6a[14] = 0x76;
35282 ipv6a[15] = 0xc8;
35283 ipv6a[25] = 0x01;
35284 /* - */
35285 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35286 if(!ipv6ptr)
35287 exit(1); /* fail */
35288 if(ipv6ptr != ipv6res)
35289 exit(1); /* fail */
35290 if(!ipv6ptr[0])
35291 exit(1); /* fail */
35292 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35293 exit(1); /* fail */
35294 /* - */
35295 exit(0);
35296
35297 ;
35298 return 0;
35299}
35300
35301_ACEOF
35302if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035304$as_echo "yes" >&6; }
35305 tst_works_inet_ntop="yes"
35306
35307else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035309$as_echo "no" >&6; }
35310 tst_works_inet_ntop="no"
35311
35312fi
35313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35314 conftest.$ac_objext conftest.beam conftest.$ac_ext
35315fi
35316
Elliott Hughesa93fb052018-12-12 14:22:48 -080035317 LD_LIBRARY_PATH=$old # restore
35318
Elliott Hughes82be86d2017-09-20 17:00:17 -070035319 fi
35320 #
35321 if test "$tst_compi_inet_ntop" = "yes" &&
35322 test "$tst_works_inet_ntop" != "no"; then
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35324$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35325 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35327$as_echo "yes" >&6; }
35328 tst_allow_inet_ntop="yes"
35329 else
35330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35331$as_echo "no" >&6; }
35332 tst_allow_inet_ntop="no"
35333 fi
35334 fi
35335 #
35336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35337$as_echo_n "checking if inet_ntop might be used... " >&6; }
35338 if test "$tst_links_inet_ntop" = "yes" &&
35339 test "$tst_proto_inet_ntop" = "yes" &&
35340 test "$tst_compi_inet_ntop" = "yes" &&
35341 test "$tst_allow_inet_ntop" = "yes" &&
35342 test "$tst_works_inet_ntop" != "no"; then
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35344$as_echo "yes" >&6; }
35345
35346cat >>confdefs.h <<_ACEOF
35347#define HAVE_INET_NTOP 1
35348_ACEOF
35349
35350 curl_cv_func_inet_ntop="yes"
35351 else
35352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35353$as_echo "no" >&6; }
35354 curl_cv_func_inet_ntop="no"
35355 fi
35356
35357
35358 #
35359 tst_links_inet_pton="unknown"
35360 tst_proto_inet_pton="unknown"
35361 tst_compi_inet_pton="unknown"
35362 tst_works_inet_pton="unknown"
35363 tst_allow_inet_pton="unknown"
35364 #
35365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35366$as_echo_n "checking if inet_pton can be linked... " >&6; }
35367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35368/* end confdefs.h. */
35369
35370
35371#define inet_pton innocuous_inet_pton
35372#ifdef __STDC__
35373# include <limits.h>
35374#else
35375# include <assert.h>
35376#endif
35377#undef inet_pton
35378#ifdef __cplusplus
35379extern "C"
35380#endif
35381char inet_pton ();
35382#if defined __stub_inet_pton || defined __stub___inet_pton
35383choke me
35384#endif
35385
35386int main (void)
35387{
35388return inet_pton ();
35389 ;
35390 return 0;
35391}
35392
35393_ACEOF
35394if ac_fn_c_try_link "$LINENO"; then :
35395
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35397$as_echo "yes" >&6; }
35398 tst_links_inet_pton="yes"
35399
35400else
35401
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35403$as_echo "no" >&6; }
35404 tst_links_inet_pton="no"
35405
35406fi
35407rm -f core conftest.err conftest.$ac_objext \
35408 conftest$ac_exeext conftest.$ac_ext
35409 #
35410 if test "$tst_links_inet_pton" = "yes"; then
35411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35412$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35414/* end confdefs.h. */
35415
35416 $curl_includes_arpa_inet
35417
35418_ACEOF
35419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35420 $EGREP "inet_pton" >/dev/null 2>&1; then :
35421
35422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35423$as_echo "yes" >&6; }
35424 tst_proto_inet_pton="yes"
35425
35426else
35427
35428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35429$as_echo "no" >&6; }
35430 tst_proto_inet_pton="no"
35431
35432fi
35433rm -f conftest*
35434
35435 fi
35436 #
35437 if test "$tst_proto_inet_pton" = "yes"; then
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35439$as_echo_n "checking if inet_pton is compilable... " >&6; }
35440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35441/* end confdefs.h. */
35442
35443
35444 $curl_includes_arpa_inet
35445
35446int main (void)
35447{
35448
35449 if(0 != inet_pton(0, 0, 0))
35450 return 1;
35451
35452 ;
35453 return 0;
35454}
35455
35456_ACEOF
35457if ac_fn_c_try_compile "$LINENO"; then :
35458
35459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35460$as_echo "yes" >&6; }
35461 tst_compi_inet_pton="yes"
35462
35463else
35464
35465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35466$as_echo "no" >&6; }
35467 tst_compi_inet_pton="no"
35468
35469fi
35470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35471 fi
35472 #
35473 if test "x$cross_compiling" != "xyes" &&
35474 test "$tst_compi_inet_pton" = "yes"; then
35475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35476$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035477
35478
35479 old=$LD_LIBRARY_PATH
35480 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35481 export LD_LIBRARY_PATH
35482 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35485as_fn_error $? "cannot run test program while cross compiling
35486See \`config.log' for more details" "$LINENO" 5; }
35487else
35488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35489/* end confdefs.h. */
35490
35491
35492 $curl_includes_stdlib
35493 $curl_includes_arpa_inet
35494 $curl_includes_string
35495
35496int main (void)
35497{
35498
35499 unsigned char ipv6a[16+1];
35500 unsigned char ipv4a[4+1];
35501 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35502 const char *ipv4src = "192.168.100.1";
35503 /* - */
35504 memset(ipv4a, 1, sizeof(ipv4a));
35505 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35506 exit(1); /* fail */
35507 /* - */
35508 if( (ipv4a[0] != 0xc0) ||
35509 (ipv4a[1] != 0xa8) ||
35510 (ipv4a[2] != 0x64) ||
35511 (ipv4a[3] != 0x01) ||
35512 (ipv4a[4] != 0x01) )
35513 exit(1); /* fail */
35514 /* - */
35515 memset(ipv6a, 1, sizeof(ipv6a));
35516 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35517 exit(1); /* fail */
35518 /* - */
35519 if( (ipv6a[0] != 0xfe) ||
35520 (ipv6a[1] != 0x80) ||
35521 (ipv6a[8] != 0x02) ||
35522 (ipv6a[9] != 0x14) ||
35523 (ipv6a[10] != 0x4f) ||
35524 (ipv6a[11] != 0xff) ||
35525 (ipv6a[12] != 0xfe) ||
35526 (ipv6a[13] != 0x0b) ||
35527 (ipv6a[14] != 0x76) ||
35528 (ipv6a[15] != 0xc8) ||
35529 (ipv6a[16] != 0x01) )
35530 exit(1); /* fail */
35531 /* - */
35532 if( (ipv6a[2] != 0x0) ||
35533 (ipv6a[3] != 0x0) ||
35534 (ipv6a[4] != 0x0) ||
35535 (ipv6a[5] != 0x0) ||
35536 (ipv6a[6] != 0x0) ||
35537 (ipv6a[7] != 0x0) )
35538 exit(1); /* fail */
35539 /* - */
35540 exit(0);
35541
35542 ;
35543 return 0;
35544}
35545
35546_ACEOF
35547if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035549$as_echo "yes" >&6; }
35550 tst_works_inet_pton="yes"
35551
35552else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035554$as_echo "no" >&6; }
35555 tst_works_inet_pton="no"
35556
35557fi
35558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35559 conftest.$ac_objext conftest.beam conftest.$ac_ext
35560fi
35561
Elliott Hughesa93fb052018-12-12 14:22:48 -080035562 LD_LIBRARY_PATH=$old # restore
35563
Elliott Hughes82be86d2017-09-20 17:00:17 -070035564 fi
35565 #
35566 if test "$tst_compi_inet_pton" = "yes" &&
35567 test "$tst_works_inet_pton" != "no"; then
35568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35569$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35570 if test "x$curl_disallow_inet_pton" != "xyes"; then
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35572$as_echo "yes" >&6; }
35573 tst_allow_inet_pton="yes"
35574 else
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576$as_echo "no" >&6; }
35577 tst_allow_inet_pton="no"
35578 fi
35579 fi
35580 #
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35582$as_echo_n "checking if inet_pton might be used... " >&6; }
35583 if test "$tst_links_inet_pton" = "yes" &&
35584 test "$tst_proto_inet_pton" = "yes" &&
35585 test "$tst_compi_inet_pton" = "yes" &&
35586 test "$tst_allow_inet_pton" = "yes" &&
35587 test "$tst_works_inet_pton" != "no"; then
35588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35589$as_echo "yes" >&6; }
35590
35591cat >>confdefs.h <<_ACEOF
35592#define HAVE_INET_PTON 1
35593_ACEOF
35594
35595 curl_cv_func_inet_pton="yes"
35596 else
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35598$as_echo "no" >&6; }
35599 curl_cv_func_inet_pton="no"
35600 fi
35601
35602
35603curl_includes_stropts="\
35604/* includes start */
35605#ifdef HAVE_SYS_TYPES_H
35606# include <sys/types.h>
35607#endif
35608#ifdef HAVE_UNISTD_H
35609# include <unistd.h>
35610#endif
35611#ifdef HAVE_SYS_SOCKET_H
35612# include <sys/socket.h>
35613#endif
35614#ifdef HAVE_SYS_IOCTL_H
35615# include <sys/ioctl.h>
35616#endif
35617#ifdef HAVE_STROPTS_H
35618# include <stropts.h>
35619#endif
35620/* includes end */"
35621 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35622do :
35623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35624ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35625"
35626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35627 cat >>confdefs.h <<_ACEOF
35628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35629_ACEOF
35630
35631fi
35632
35633done
35634
35635
35636
35637 #
35638 tst_links_ioctl="unknown"
35639 tst_proto_ioctl="unknown"
35640 tst_compi_ioctl="unknown"
35641 tst_allow_ioctl="unknown"
35642 #
35643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35644$as_echo_n "checking if ioctl can be linked... " >&6; }
35645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35646/* end confdefs.h. */
35647
35648
35649#define ioctl innocuous_ioctl
35650#ifdef __STDC__
35651# include <limits.h>
35652#else
35653# include <assert.h>
35654#endif
35655#undef ioctl
35656#ifdef __cplusplus
35657extern "C"
35658#endif
35659char ioctl ();
35660#if defined __stub_ioctl || defined __stub___ioctl
35661choke me
35662#endif
35663
35664int main (void)
35665{
35666return ioctl ();
35667 ;
35668 return 0;
35669}
35670
35671_ACEOF
35672if ac_fn_c_try_link "$LINENO"; then :
35673
35674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35675$as_echo "yes" >&6; }
35676 tst_links_ioctl="yes"
35677
35678else
35679
35680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35681$as_echo "no" >&6; }
35682 tst_links_ioctl="no"
35683
35684fi
35685rm -f core conftest.err conftest.$ac_objext \
35686 conftest$ac_exeext conftest.$ac_ext
35687 #
35688 if test "$tst_links_ioctl" = "yes"; then
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35690$as_echo_n "checking if ioctl is prototyped... " >&6; }
35691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35692/* end confdefs.h. */
35693
35694 $curl_includes_stropts
35695
35696_ACEOF
35697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35698 $EGREP "ioctl" >/dev/null 2>&1; then :
35699
35700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35701$as_echo "yes" >&6; }
35702 tst_proto_ioctl="yes"
35703
35704else
35705
35706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35707$as_echo "no" >&6; }
35708 tst_proto_ioctl="no"
35709
35710fi
35711rm -f conftest*
35712
35713 fi
35714 #
35715 if test "$tst_proto_ioctl" = "yes"; then
35716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35717$as_echo_n "checking if ioctl is compilable... " >&6; }
35718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35719/* end confdefs.h. */
35720
35721
35722 $curl_includes_stropts
35723
35724int main (void)
35725{
35726
35727 if(0 != ioctl(0, 0, 0))
35728 return 1;
35729
35730 ;
35731 return 0;
35732}
35733
35734_ACEOF
35735if ac_fn_c_try_compile "$LINENO"; then :
35736
35737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35738$as_echo "yes" >&6; }
35739 tst_compi_ioctl="yes"
35740
35741else
35742
35743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35744$as_echo "no" >&6; }
35745 tst_compi_ioctl="no"
35746
35747fi
35748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35749 fi
35750 #
35751 if test "$tst_compi_ioctl" = "yes"; then
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35753$as_echo_n "checking if ioctl usage allowed... " >&6; }
35754 if test "x$curl_disallow_ioctl" != "xyes"; then
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35756$as_echo "yes" >&6; }
35757 tst_allow_ioctl="yes"
35758 else
35759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35760$as_echo "no" >&6; }
35761 tst_allow_ioctl="no"
35762 fi
35763 fi
35764 #
35765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35766$as_echo_n "checking if ioctl might be used... " >&6; }
35767 if test "$tst_links_ioctl" = "yes" &&
35768 test "$tst_proto_ioctl" = "yes" &&
35769 test "$tst_compi_ioctl" = "yes" &&
35770 test "$tst_allow_ioctl" = "yes"; then
35771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35772$as_echo "yes" >&6; }
35773
35774cat >>confdefs.h <<_ACEOF
35775#define HAVE_IOCTL 1
35776_ACEOF
35777
35778 curl_cv_func_ioctl="yes"
35779
35780 #
35781 tst_compi_ioctl_fionbio="unknown"
35782 tst_allow_ioctl_fionbio="unknown"
35783 #
35784 if test "$curl_cv_func_ioctl" = "yes"; then
35785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35786$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35788/* end confdefs.h. */
35789
35790
35791 $curl_includes_stropts
35792
35793int main (void)
35794{
35795
35796 int flags = 0;
35797 if(0 != ioctl(0, FIONBIO, &flags))
35798 return 1;
35799
35800 ;
35801 return 0;
35802}
35803
35804_ACEOF
35805if ac_fn_c_try_compile "$LINENO"; then :
35806
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35808$as_echo "yes" >&6; }
35809 tst_compi_ioctl_fionbio="yes"
35810
35811else
35812
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35814$as_echo "no" >&6; }
35815 tst_compi_ioctl_fionbio="no"
35816
35817fi
35818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35819 fi
35820 #
35821 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35823$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35824 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35826$as_echo "yes" >&6; }
35827 tst_allow_ioctl_fionbio="yes"
35828 else
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35830$as_echo "no" >&6; }
35831 tst_allow_ioctl_fionbio="no"
35832 fi
35833 fi
35834 #
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35836$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35837 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35838 test "$tst_allow_ioctl_fionbio" = "yes"; then
35839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35840$as_echo "yes" >&6; }
35841
35842cat >>confdefs.h <<_ACEOF
35843#define HAVE_IOCTL_FIONBIO 1
35844_ACEOF
35845
35846 curl_cv_func_ioctl_fionbio="yes"
35847 else
35848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35849$as_echo "no" >&6; }
35850 curl_cv_func_ioctl_fionbio="no"
35851 fi
35852
35853
35854 #
35855 tst_compi_ioctl_siocgifaddr="unknown"
35856 tst_allow_ioctl_siocgifaddr="unknown"
35857 #
35858 if test "$curl_cv_func_ioctl" = "yes"; then
35859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35860$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35862/* end confdefs.h. */
35863
35864
35865 $curl_includes_stropts
35866 #include <net/if.h>
35867
35868int main (void)
35869{
35870
35871 struct ifreq ifr;
35872 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35873 return 1;
35874
35875 ;
35876 return 0;
35877}
35878
35879_ACEOF
35880if ac_fn_c_try_compile "$LINENO"; then :
35881
35882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35883$as_echo "yes" >&6; }
35884 tst_compi_ioctl_siocgifaddr="yes"
35885
35886else
35887
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35889$as_echo "no" >&6; }
35890 tst_compi_ioctl_siocgifaddr="no"
35891
35892fi
35893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35894 fi
35895 #
35896 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35898$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35899 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35901$as_echo "yes" >&6; }
35902 tst_allow_ioctl_siocgifaddr="yes"
35903 else
35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35905$as_echo "no" >&6; }
35906 tst_allow_ioctl_siocgifaddr="no"
35907 fi
35908 fi
35909 #
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35911$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35912 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35913 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35915$as_echo "yes" >&6; }
35916
35917cat >>confdefs.h <<_ACEOF
35918#define HAVE_IOCTL_SIOCGIFADDR 1
35919_ACEOF
35920
35921 curl_cv_func_ioctl_siocgifaddr="yes"
35922 else
35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35924$as_echo "no" >&6; }
35925 curl_cv_func_ioctl_siocgifaddr="no"
35926 fi
35927
35928 else
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35930$as_echo "no" >&6; }
35931 curl_cv_func_ioctl="no"
35932 fi
35933
35934
35935 #
35936 tst_links_ioctlsocket="unknown"
35937 tst_proto_ioctlsocket="unknown"
35938 tst_compi_ioctlsocket="unknown"
35939 tst_allow_ioctlsocket="unknown"
35940 #
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35942$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35944/* end confdefs.h. */
35945
35946
35947 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035948 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035949
35950int main (void)
35951{
35952
35953 if(0 != ioctlsocket(0, 0, 0))
35954 return 1;
35955
35956 ;
35957 return 0;
35958}
35959
35960_ACEOF
35961if ac_fn_c_try_link "$LINENO"; then :
35962
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35964$as_echo "yes" >&6; }
35965 tst_links_ioctlsocket="yes"
35966
35967else
35968
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35970$as_echo "no" >&6; }
35971 tst_links_ioctlsocket="no"
35972
35973fi
35974rm -f core conftest.err conftest.$ac_objext \
35975 conftest$ac_exeext conftest.$ac_ext
35976 #
35977 if test "$tst_links_ioctlsocket" = "yes"; then
35978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35979$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981/* end confdefs.h. */
35982
35983 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035984 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035985
35986_ACEOF
35987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35988 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35989
35990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35991$as_echo "yes" >&6; }
35992 tst_proto_ioctlsocket="yes"
35993
35994else
35995
35996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35997$as_echo "no" >&6; }
35998 tst_proto_ioctlsocket="no"
35999
36000fi
36001rm -f conftest*
36002
36003 fi
36004 #
36005 if test "$tst_proto_ioctlsocket" = "yes"; then
36006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
36007$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
36008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36009/* end confdefs.h. */
36010
36011
36012 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036013 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036014
36015int main (void)
36016{
36017
36018 if(0 != ioctlsocket(0, 0, 0))
36019 return 1;
36020
36021 ;
36022 return 0;
36023}
36024
36025_ACEOF
36026if ac_fn_c_try_compile "$LINENO"; then :
36027
36028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029$as_echo "yes" >&6; }
36030 tst_compi_ioctlsocket="yes"
36031
36032else
36033
36034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36035$as_echo "no" >&6; }
36036 tst_compi_ioctlsocket="no"
36037
36038fi
36039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36040 fi
36041 #
36042 if test "$tst_compi_ioctlsocket" = "yes"; then
36043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
36044$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
36045 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36047$as_echo "yes" >&6; }
36048 tst_allow_ioctlsocket="yes"
36049 else
36050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36051$as_echo "no" >&6; }
36052 tst_allow_ioctlsocket="no"
36053 fi
36054 fi
36055 #
36056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
36057$as_echo_n "checking if ioctlsocket might be used... " >&6; }
36058 if test "$tst_links_ioctlsocket" = "yes" &&
36059 test "$tst_proto_ioctlsocket" = "yes" &&
36060 test "$tst_compi_ioctlsocket" = "yes" &&
36061 test "$tst_allow_ioctlsocket" = "yes"; then
36062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36063$as_echo "yes" >&6; }
36064
36065cat >>confdefs.h <<_ACEOF
36066#define HAVE_IOCTLSOCKET 1
36067_ACEOF
36068
36069 curl_cv_func_ioctlsocket="yes"
36070
36071 #
36072 tst_compi_ioctlsocket_fionbio="unknown"
36073 tst_allow_ioctlsocket_fionbio="unknown"
36074 #
36075 if test "$curl_cv_func_ioctlsocket" = "yes"; then
36076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
36077$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
36078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36079/* end confdefs.h. */
36080
36081
36082 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036083 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036084
36085int main (void)
36086{
36087
36088 int flags = 0;
36089 if(0 != ioctlsocket(0, FIONBIO, &flags))
36090 return 1;
36091
36092 ;
36093 return 0;
36094}
36095
36096_ACEOF
36097if ac_fn_c_try_compile "$LINENO"; then :
36098
36099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36100$as_echo "yes" >&6; }
36101 tst_compi_ioctlsocket_fionbio="yes"
36102
36103else
36104
36105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36106$as_echo "no" >&6; }
36107 tst_compi_ioctlsocket_fionbio="no"
36108
36109fi
36110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36111 fi
36112 #
36113 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
36114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
36115$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
36116 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36118$as_echo "yes" >&6; }
36119 tst_allow_ioctlsocket_fionbio="yes"
36120 else
36121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122$as_echo "no" >&6; }
36123 tst_allow_ioctlsocket_fionbio="no"
36124 fi
36125 fi
36126 #
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
36128$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
36129 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
36130 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
36131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36132$as_echo "yes" >&6; }
36133
36134cat >>confdefs.h <<_ACEOF
36135#define HAVE_IOCTLSOCKET_FIONBIO 1
36136_ACEOF
36137
36138 curl_cv_func_ioctlsocket_fionbio="yes"
36139 else
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36141$as_echo "no" >&6; }
36142 curl_cv_func_ioctlsocket_fionbio="no"
36143 fi
36144
36145 else
36146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36147$as_echo "no" >&6; }
36148 curl_cv_func_ioctlsocket="no"
36149 fi
36150
36151
36152 #
36153 tst_links_ioctlsocket_camel="unknown"
36154 tst_proto_ioctlsocket_camel="unknown"
36155 tst_compi_ioctlsocket_camel="unknown"
36156 tst_allow_ioctlsocket_camel="unknown"
36157 #
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
36159$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
36160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36161/* end confdefs.h. */
36162
36163
36164#define IoctlSocket innocuous_IoctlSocket
36165#ifdef __STDC__
36166# include <limits.h>
36167#else
36168# include <assert.h>
36169#endif
36170#undef IoctlSocket
36171#ifdef __cplusplus
36172extern "C"
36173#endif
36174char IoctlSocket ();
36175#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
36176choke me
36177#endif
36178
36179int main (void)
36180{
36181return IoctlSocket ();
36182 ;
36183 return 0;
36184}
36185
36186_ACEOF
36187if ac_fn_c_try_link "$LINENO"; then :
36188
36189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36190$as_echo "yes" >&6; }
36191 tst_links_ioctlsocket_camel="yes"
36192
36193else
36194
36195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36196$as_echo "no" >&6; }
36197 tst_links_ioctlsocket_camel="no"
36198
36199fi
36200rm -f core conftest.err conftest.$ac_objext \
36201 conftest$ac_exeext conftest.$ac_ext
36202 #
36203 if test "$tst_links_ioctlsocket_camel" = "yes"; then
36204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36205$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36207/* end confdefs.h. */
36208
36209 $curl_includes_stropts
36210
36211_ACEOF
36212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36213 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36214
36215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36216$as_echo "yes" >&6; }
36217 tst_proto_ioctlsocket_camel="yes"
36218
36219else
36220
36221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36222$as_echo "no" >&6; }
36223 tst_proto_ioctlsocket_camel="no"
36224
36225fi
36226rm -f conftest*
36227
36228 fi
36229 #
36230 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36232$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36234/* end confdefs.h. */
36235
36236
36237 $curl_includes_stropts
36238
36239int main (void)
36240{
36241
36242 if(0 != IoctlSocket(0, 0, 0))
36243 return 1;
36244
36245 ;
36246 return 0;
36247}
36248
36249_ACEOF
36250if ac_fn_c_try_compile "$LINENO"; then :
36251
36252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36253$as_echo "yes" >&6; }
36254 tst_compi_ioctlsocket_camel="yes"
36255
36256else
36257
36258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36259$as_echo "no" >&6; }
36260 tst_compi_ioctlsocket_camel="no"
36261
36262fi
36263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36264 fi
36265 #
36266 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36268$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36269 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36271$as_echo "yes" >&6; }
36272 tst_allow_ioctlsocket_camel="yes"
36273 else
36274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36275$as_echo "no" >&6; }
36276 tst_allow_ioctlsocket_camel="no"
36277 fi
36278 fi
36279 #
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36281$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36282 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36283 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36284 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36285 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36287$as_echo "yes" >&6; }
36288
36289cat >>confdefs.h <<_ACEOF
36290#define HAVE_IOCTLSOCKET_CAMEL 1
36291_ACEOF
36292
36293 curl_cv_func_ioctlsocket_camel="yes"
36294
36295 #
36296 tst_compi_ioctlsocket_camel_fionbio="unknown"
36297 tst_allow_ioctlsocket_camel_fionbio="unknown"
36298 #
36299 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36301$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36303/* end confdefs.h. */
36304
36305
36306 $curl_includes_stropts
36307
36308int main (void)
36309{
36310
36311 long flags = 0;
36312 if(0 != ioctlsocket(0, FIONBIO, &flags))
36313 return 1;
36314
36315 ;
36316 return 0;
36317}
36318
36319_ACEOF
36320if ac_fn_c_try_compile "$LINENO"; then :
36321
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36323$as_echo "yes" >&6; }
36324 tst_compi_ioctlsocket_camel_fionbio="yes"
36325
36326else
36327
36328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36329$as_echo "no" >&6; }
36330 tst_compi_ioctlsocket_camel_fionbio="no"
36331
36332fi
36333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36334 fi
36335 #
36336 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36338$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36339 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36341$as_echo "yes" >&6; }
36342 tst_allow_ioctlsocket_camel_fionbio="yes"
36343 else
36344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36345$as_echo "no" >&6; }
36346 tst_allow_ioctlsocket_camel_fionbio="no"
36347 fi
36348 fi
36349 #
36350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36351$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36352 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36353 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36355$as_echo "yes" >&6; }
36356
36357cat >>confdefs.h <<_ACEOF
36358#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36359_ACEOF
36360
36361 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36362 else
36363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36364$as_echo "no" >&6; }
36365 curl_cv_func_ioctlsocket_camel_fionbio="no"
36366 fi
36367
36368 else
36369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36370$as_echo "no" >&6; }
36371 curl_cv_func_ioctlsocket_camel="no"
36372 fi
36373
36374
36375 #
36376 tst_links_localtime_r="unknown"
36377 tst_proto_localtime_r="unknown"
36378 tst_compi_localtime_r="unknown"
36379 tst_works_localtime_r="unknown"
36380 tst_allow_localtime_r="unknown"
36381 #
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36383$as_echo_n "checking if localtime_r can be linked... " >&6; }
36384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36385/* end confdefs.h. */
36386
36387
36388#define localtime_r innocuous_localtime_r
36389#ifdef __STDC__
36390# include <limits.h>
36391#else
36392# include <assert.h>
36393#endif
36394#undef localtime_r
36395#ifdef __cplusplus
36396extern "C"
36397#endif
36398char localtime_r ();
36399#if defined __stub_localtime_r || defined __stub___localtime_r
36400choke me
36401#endif
36402
36403int main (void)
36404{
36405return localtime_r ();
36406 ;
36407 return 0;
36408}
36409
36410_ACEOF
36411if ac_fn_c_try_link "$LINENO"; then :
36412
36413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36414$as_echo "yes" >&6; }
36415 tst_links_localtime_r="yes"
36416
36417else
36418
36419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36420$as_echo "no" >&6; }
36421 tst_links_localtime_r="no"
36422
36423fi
36424rm -f core conftest.err conftest.$ac_objext \
36425 conftest$ac_exeext conftest.$ac_ext
36426 #
36427 if test "$tst_links_localtime_r" = "yes"; then
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36429$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36431/* end confdefs.h. */
36432
36433 $curl_includes_time
36434
36435_ACEOF
36436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36437 $EGREP "localtime_r" >/dev/null 2>&1; then :
36438
36439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36440$as_echo "yes" >&6; }
36441 tst_proto_localtime_r="yes"
36442
36443else
36444
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446$as_echo "no" >&6; }
36447 tst_proto_localtime_r="no"
36448
36449fi
36450rm -f conftest*
36451
36452 fi
36453 #
36454 if test "$tst_proto_localtime_r" = "yes"; then
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36456$as_echo_n "checking if localtime_r is compilable... " >&6; }
36457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36458/* end confdefs.h. */
36459
36460
36461 $curl_includes_time
36462
36463int main (void)
36464{
36465
36466 if(0 != localtime_r(0, 0))
36467 return 1;
36468
36469 ;
36470 return 0;
36471}
36472
36473_ACEOF
36474if ac_fn_c_try_compile "$LINENO"; then :
36475
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36477$as_echo "yes" >&6; }
36478 tst_compi_localtime_r="yes"
36479
36480else
36481
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36483$as_echo "no" >&6; }
36484 tst_compi_localtime_r="no"
36485
36486fi
36487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488 fi
36489 #
36490 if test "x$cross_compiling" != "xyes" &&
36491 test "$tst_compi_localtime_r" = "yes"; then
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36493$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036494
36495
36496 old=$LD_LIBRARY_PATH
36497 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36498 export LD_LIBRARY_PATH
36499 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36502as_fn_error $? "cannot run test program while cross compiling
36503See \`config.log' for more details" "$LINENO" 5; }
36504else
36505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36506/* end confdefs.h. */
36507
36508
36509 $curl_includes_stdlib
36510 $curl_includes_time
36511
36512int main (void)
36513{
36514
36515 time_t clock = 1170352587;
36516 struct tm *tmp = 0;
36517 struct tm result;
36518 tmp = localtime_r(&clock, &result);
36519 if(tmp)
36520 exit(0);
36521 else
36522 exit(1);
36523
36524 ;
36525 return 0;
36526}
36527
36528_ACEOF
36529if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036531$as_echo "yes" >&6; }
36532 tst_works_localtime_r="yes"
36533
36534else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036536$as_echo "no" >&6; }
36537 tst_works_localtime_r="no"
36538
36539fi
36540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36541 conftest.$ac_objext conftest.beam conftest.$ac_ext
36542fi
36543
Elliott Hughesa93fb052018-12-12 14:22:48 -080036544 LD_LIBRARY_PATH=$old # restore
36545
Elliott Hughes82be86d2017-09-20 17:00:17 -070036546 fi
36547 #
36548 if test "$tst_compi_localtime_r" = "yes" &&
36549 test "$tst_works_localtime_r" != "no"; then
36550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36551$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36552 if test "x$curl_disallow_localtime_r" != "xyes"; then
36553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36554$as_echo "yes" >&6; }
36555 tst_allow_localtime_r="yes"
36556 else
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36558$as_echo "no" >&6; }
36559 tst_allow_localtime_r="no"
36560 fi
36561 fi
36562 #
36563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36564$as_echo_n "checking if localtime_r might be used... " >&6; }
36565 if test "$tst_links_localtime_r" = "yes" &&
36566 test "$tst_proto_localtime_r" = "yes" &&
36567 test "$tst_compi_localtime_r" = "yes" &&
36568 test "$tst_allow_localtime_r" = "yes" &&
36569 test "$tst_works_localtime_r" != "no"; then
36570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36571$as_echo "yes" >&6; }
36572
36573cat >>confdefs.h <<_ACEOF
36574#define HAVE_LOCALTIME_R 1
36575_ACEOF
36576
36577 curl_cv_func_localtime_r="yes"
36578 else
36579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36580$as_echo "no" >&6; }
36581 curl_cv_func_localtime_r="no"
36582 fi
36583
36584
36585 #
36586 tst_links_memrchr="unknown"
36587 tst_macro_memrchr="unknown"
36588 tst_proto_memrchr="unknown"
36589 tst_compi_memrchr="unknown"
36590 tst_allow_memrchr="unknown"
36591 #
36592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36593$as_echo_n "checking if memrchr can be linked... " >&6; }
36594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36595/* end confdefs.h. */
36596
36597
36598#define memrchr innocuous_memrchr
36599#ifdef __STDC__
36600# include <limits.h>
36601#else
36602# include <assert.h>
36603#endif
36604#undef memrchr
36605#ifdef __cplusplus
36606extern "C"
36607#endif
36608char memrchr ();
36609#if defined __stub_memrchr || defined __stub___memrchr
36610choke me
36611#endif
36612
36613int main (void)
36614{
36615return memrchr ();
36616 ;
36617 return 0;
36618}
36619
36620_ACEOF
36621if ac_fn_c_try_link "$LINENO"; then :
36622
36623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36624$as_echo "yes" >&6; }
36625 tst_links_memrchr="yes"
36626
36627else
36628
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36630$as_echo "no" >&6; }
36631 tst_links_memrchr="no"
36632
36633fi
36634rm -f core conftest.err conftest.$ac_objext \
36635 conftest$ac_exeext conftest.$ac_ext
36636 #
36637 if test "$tst_links_memrchr" = "no"; then
36638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36639$as_echo_n "checking if memrchr seems a macro... " >&6; }
36640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36641/* end confdefs.h. */
36642
36643
36644 $curl_includes_string
36645
36646int main (void)
36647{
36648
36649 if(0 != memrchr(0, 0, 0))
36650 return 1;
36651
36652 ;
36653 return 0;
36654}
36655
36656_ACEOF
36657if ac_fn_c_try_link "$LINENO"; then :
36658
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36660$as_echo "yes" >&6; }
36661 tst_macro_memrchr="yes"
36662
36663else
36664
36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36666$as_echo "no" >&6; }
36667 tst_macro_memrchr="no"
36668
36669fi
36670rm -f core conftest.err conftest.$ac_objext \
36671 conftest$ac_exeext conftest.$ac_ext
36672 fi
36673 #
36674 if test "$tst_links_memrchr" = "yes"; then
36675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36676$as_echo_n "checking if memrchr is prototyped... " >&6; }
36677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36678/* end confdefs.h. */
36679
36680 $curl_includes_string
36681
36682_ACEOF
36683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36684 $EGREP "memrchr" >/dev/null 2>&1; then :
36685
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36687$as_echo "yes" >&6; }
36688 tst_proto_memrchr="yes"
36689
36690else
36691
36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36693$as_echo "no" >&6; }
36694 tst_proto_memrchr="no"
36695
36696fi
36697rm -f conftest*
36698
36699 fi
36700 #
36701 if test "$tst_proto_memrchr" = "yes" ||
36702 test "$tst_macro_memrchr" = "yes"; then
36703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36704$as_echo_n "checking if memrchr is compilable... " >&6; }
36705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36706/* end confdefs.h. */
36707
36708
36709 $curl_includes_string
36710
36711int main (void)
36712{
36713
36714 if(0 != memrchr(0, 0, 0))
36715 return 1;
36716
36717 ;
36718 return 0;
36719}
36720
36721_ACEOF
36722if ac_fn_c_try_compile "$LINENO"; then :
36723
36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36725$as_echo "yes" >&6; }
36726 tst_compi_memrchr="yes"
36727
36728else
36729
36730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36731$as_echo "no" >&6; }
36732 tst_compi_memrchr="no"
36733
36734fi
36735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36736 fi
36737 #
36738 if test "$tst_compi_memrchr" = "yes"; then
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36740$as_echo_n "checking if memrchr usage allowed... " >&6; }
36741 if test "x$curl_disallow_memrchr" != "xyes"; then
36742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36743$as_echo "yes" >&6; }
36744 tst_allow_memrchr="yes"
36745 else
36746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36747$as_echo "no" >&6; }
36748 tst_allow_memrchr="no"
36749 fi
36750 fi
36751 #
36752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36753$as_echo_n "checking if memrchr might be used... " >&6; }
36754 if (test "$tst_proto_memrchr" = "yes" ||
36755 test "$tst_macro_memrchr" = "yes") &&
36756 test "$tst_compi_memrchr" = "yes" &&
36757 test "$tst_allow_memrchr" = "yes"; then
36758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36759$as_echo "yes" >&6; }
36760
36761cat >>confdefs.h <<_ACEOF
36762#define HAVE_MEMRCHR 1
36763_ACEOF
36764
36765 curl_cv_func_memrchr="yes"
36766 else
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768$as_echo "no" >&6; }
36769 curl_cv_func_memrchr="no"
36770 fi
36771
36772
36773 #
36774 tst_links_poll="unknown"
36775 tst_proto_poll="unknown"
36776 tst_compi_poll="unknown"
36777 tst_works_poll="unknown"
36778 tst_allow_poll="unknown"
36779 #
36780 case $host_os in
36781 darwin*|interix*)
36782 curl_disallow_poll="yes"
36783 tst_compi_poll="no"
36784 ;;
36785 esac
36786 #
36787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36788$as_echo_n "checking if poll can be linked... " >&6; }
36789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36790/* end confdefs.h. */
36791
36792
36793 $curl_includes_poll
36794
36795int main (void)
36796{
36797
36798 if(0 != poll(0, 0, 0))
36799 return 1;
36800
36801 ;
36802 return 0;
36803}
36804
36805_ACEOF
36806if ac_fn_c_try_link "$LINENO"; then :
36807
36808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36809$as_echo "yes" >&6; }
36810 tst_links_poll="yes"
36811
36812else
36813
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36815$as_echo "no" >&6; }
36816 tst_links_poll="no"
36817
36818fi
36819rm -f core conftest.err conftest.$ac_objext \
36820 conftest$ac_exeext conftest.$ac_ext
36821 #
36822 if test "$tst_links_poll" = "yes"; then
36823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36824$as_echo_n "checking if poll is prototyped... " >&6; }
36825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36826/* end confdefs.h. */
36827
36828 $curl_includes_poll
36829
36830_ACEOF
36831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36832 $EGREP "poll" >/dev/null 2>&1; then :
36833
36834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36835$as_echo "yes" >&6; }
36836 tst_proto_poll="yes"
36837
36838else
36839
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36841$as_echo "no" >&6; }
36842 tst_proto_poll="no"
36843
36844fi
36845rm -f conftest*
36846
36847 fi
36848 #
36849 if test "$tst_proto_poll" = "yes"; then
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36851$as_echo_n "checking if poll is compilable... " >&6; }
36852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36853/* end confdefs.h. */
36854
36855
36856 $curl_includes_poll
36857
36858int main (void)
36859{
36860
36861 if(0 != poll(0, 0, 0))
36862 return 1;
36863
36864 ;
36865 return 0;
36866}
36867
36868_ACEOF
36869if ac_fn_c_try_compile "$LINENO"; then :
36870
36871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36872$as_echo "yes" >&6; }
36873 tst_compi_poll="yes"
36874
36875else
36876
36877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36878$as_echo "no" >&6; }
36879 tst_compi_poll="no"
36880
36881fi
36882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36883 fi
36884 #
36885 if test "x$cross_compiling" != "xyes" &&
36886 test "$tst_compi_poll" = "yes"; then
36887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36888$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036889
36890
36891 old=$LD_LIBRARY_PATH
36892 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36893 export LD_LIBRARY_PATH
36894 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36897as_fn_error $? "cannot run test program while cross compiling
36898See \`config.log' for more details" "$LINENO" 5; }
36899else
36900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36901/* end confdefs.h. */
36902
36903
36904 $curl_includes_stdlib
36905 $curl_includes_poll
36906 $curl_includes_time
36907
36908int main (void)
36909{
36910
36911 /* detect the original poll() breakage */
36912 if(0 != poll(0, 0, 10))
36913 exit(1); /* fail */
36914 else {
36915 /* detect the 10.12 poll() breakage */
36916 struct timeval before, after;
36917 int rc;
36918 size_t us;
36919
36920 gettimeofday(&before, NULL);
36921 rc = poll(NULL, 0, 500);
36922 gettimeofday(&after, NULL);
36923
36924 us = (after.tv_sec - before.tv_sec) * 1000000 +
36925 (after.tv_usec - before.tv_usec);
36926
36927 if(us < 400000)
36928 exit(1);
36929 }
36930
36931 ;
36932 return 0;
36933}
36934
36935_ACEOF
36936if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036938$as_echo "yes" >&6; }
36939 tst_works_poll="yes"
36940
36941else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036943$as_echo "no" >&6; }
36944 tst_works_poll="no"
36945
36946fi
36947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36948 conftest.$ac_objext conftest.beam conftest.$ac_ext
36949fi
36950
Elliott Hughesa93fb052018-12-12 14:22:48 -080036951 LD_LIBRARY_PATH=$old # restore
36952
Elliott Hughes82be86d2017-09-20 17:00:17 -070036953 fi
36954 #
36955 if test "$tst_compi_poll" = "yes" &&
36956 test "$tst_works_poll" != "no"; then
36957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36958$as_echo_n "checking if poll usage allowed... " >&6; }
36959 if test "x$curl_disallow_poll" != "xyes"; then
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36961$as_echo "yes" >&6; }
36962 tst_allow_poll="yes"
36963 else
36964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36965$as_echo "no" >&6; }
36966 tst_allow_poll="no"
36967 fi
36968 fi
36969 #
36970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36971$as_echo_n "checking if poll might be used... " >&6; }
36972 if test "$tst_links_poll" = "yes" &&
36973 test "$tst_proto_poll" = "yes" &&
36974 test "$tst_compi_poll" = "yes" &&
36975 test "$tst_allow_poll" = "yes" &&
36976 test "$tst_works_poll" != "no"; then
36977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36978$as_echo "yes" >&6; }
36979
36980cat >>confdefs.h <<_ACEOF
36981#define HAVE_POLL 1
36982_ACEOF
36983
36984
36985cat >>confdefs.h <<_ACEOF
36986#define HAVE_POLL_FINE 1
36987_ACEOF
36988
36989 curl_cv_func_poll="yes"
36990 else
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36992$as_echo "no" >&6; }
36993 curl_cv_func_poll="no"
36994 fi
36995
36996
36997 #
36998 tst_links_setsockopt="unknown"
36999 tst_proto_setsockopt="unknown"
37000 tst_compi_setsockopt="unknown"
37001 tst_allow_setsockopt="unknown"
37002 #
37003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
37004$as_echo_n "checking if setsockopt can be linked... " >&6; }
37005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37006/* end confdefs.h. */
37007
37008
37009 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037010 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037011 $curl_includes_sys_socket
37012
37013int main (void)
37014{
37015
37016 if(0 != setsockopt(0, 0, 0, 0, 0))
37017 return 1;
37018
37019 ;
37020 return 0;
37021}
37022
37023_ACEOF
37024if ac_fn_c_try_link "$LINENO"; then :
37025
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37027$as_echo "yes" >&6; }
37028 tst_links_setsockopt="yes"
37029
37030else
37031
37032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37033$as_echo "no" >&6; }
37034 tst_links_setsockopt="no"
37035
37036fi
37037rm -f core conftest.err conftest.$ac_objext \
37038 conftest$ac_exeext conftest.$ac_ext
37039 #
37040 if test "$tst_links_setsockopt" = "yes"; then
37041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
37042$as_echo_n "checking if setsockopt is prototyped... " >&6; }
37043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37044/* end confdefs.h. */
37045
37046 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037047 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037048 $curl_includes_sys_socket
37049
37050_ACEOF
37051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37052 $EGREP "setsockopt" >/dev/null 2>&1; then :
37053
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37055$as_echo "yes" >&6; }
37056 tst_proto_setsockopt="yes"
37057
37058else
37059
37060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37061$as_echo "no" >&6; }
37062 tst_proto_setsockopt="no"
37063
37064fi
37065rm -f conftest*
37066
37067 fi
37068 #
37069 if test "$tst_proto_setsockopt" = "yes"; then
37070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
37071$as_echo_n "checking if setsockopt is compilable... " >&6; }
37072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37073/* end confdefs.h. */
37074
37075
37076 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037077 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037078 $curl_includes_sys_socket
37079
37080int main (void)
37081{
37082
37083 if(0 != setsockopt(0, 0, 0, 0, 0))
37084 return 1;
37085
37086 ;
37087 return 0;
37088}
37089
37090_ACEOF
37091if ac_fn_c_try_compile "$LINENO"; then :
37092
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37094$as_echo "yes" >&6; }
37095 tst_compi_setsockopt="yes"
37096
37097else
37098
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37100$as_echo "no" >&6; }
37101 tst_compi_setsockopt="no"
37102
37103fi
37104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37105 fi
37106 #
37107 if test "$tst_compi_setsockopt" = "yes"; then
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
37109$as_echo_n "checking if setsockopt usage allowed... " >&6; }
37110 if test "x$curl_disallow_setsockopt" != "xyes"; then
37111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37112$as_echo "yes" >&6; }
37113 tst_allow_setsockopt="yes"
37114 else
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37116$as_echo "no" >&6; }
37117 tst_allow_setsockopt="no"
37118 fi
37119 fi
37120 #
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
37122$as_echo_n "checking if setsockopt might be used... " >&6; }
37123 if test "$tst_links_setsockopt" = "yes" &&
37124 test "$tst_proto_setsockopt" = "yes" &&
37125 test "$tst_compi_setsockopt" = "yes" &&
37126 test "$tst_allow_setsockopt" = "yes"; then
37127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37128$as_echo "yes" >&6; }
37129
37130cat >>confdefs.h <<_ACEOF
37131#define HAVE_SETSOCKOPT 1
37132_ACEOF
37133
37134 curl_cv_func_setsockopt="yes"
37135
37136 #
37137 tst_compi_setsockopt_so_nonblock="unknown"
37138 tst_allow_setsockopt_so_nonblock="unknown"
37139 #
37140 if test "$curl_cv_func_setsockopt" = "yes"; then
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
37142$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
37143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37144/* end confdefs.h. */
37145
37146
37147 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037148 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037149 $curl_includes_sys_socket
37150
37151int main (void)
37152{
37153
37154 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
37155 return 1;
37156
37157 ;
37158 return 0;
37159}
37160
37161_ACEOF
37162if ac_fn_c_try_compile "$LINENO"; then :
37163
37164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37165$as_echo "yes" >&6; }
37166 tst_compi_setsockopt_so_nonblock="yes"
37167
37168else
37169
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37171$as_echo "no" >&6; }
37172 tst_compi_setsockopt_so_nonblock="no"
37173
37174fi
37175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37176 fi
37177 #
37178 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
37179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
37180$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
37181 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37183$as_echo "yes" >&6; }
37184 tst_allow_setsockopt_so_nonblock="yes"
37185 else
37186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37187$as_echo "no" >&6; }
37188 tst_allow_setsockopt_so_nonblock="no"
37189 fi
37190 fi
37191 #
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
37193$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
37194 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
37195 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37197$as_echo "yes" >&6; }
37198
37199cat >>confdefs.h <<_ACEOF
37200#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37201_ACEOF
37202
37203 curl_cv_func_setsockopt_so_nonblock="yes"
37204 else
37205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37206$as_echo "no" >&6; }
37207 curl_cv_func_setsockopt_so_nonblock="no"
37208 fi
37209
37210 else
37211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37212$as_echo "no" >&6; }
37213 curl_cv_func_setsockopt="no"
37214 fi
37215
37216
37217curl_includes_signal="\
37218/* includes start */
37219#ifdef HAVE_SYS_TYPES_H
37220# include <sys/types.h>
37221#endif
37222#ifdef HAVE_SIGNAL_H
37223# include <signal.h>
37224#endif
37225/* includes end */"
37226 for ac_header in sys/types.h signal.h
37227do :
37228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37229ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37230"
37231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37232 cat >>confdefs.h <<_ACEOF
37233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37234_ACEOF
37235
37236fi
37237
37238done
37239
37240
37241
37242 #
37243 tst_links_sigaction="unknown"
37244 tst_proto_sigaction="unknown"
37245 tst_compi_sigaction="unknown"
37246 tst_allow_sigaction="unknown"
37247 #
37248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37249$as_echo_n "checking if sigaction can be linked... " >&6; }
37250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37251/* end confdefs.h. */
37252
37253
37254#define sigaction innocuous_sigaction
37255#ifdef __STDC__
37256# include <limits.h>
37257#else
37258# include <assert.h>
37259#endif
37260#undef sigaction
37261#ifdef __cplusplus
37262extern "C"
37263#endif
37264char sigaction ();
37265#if defined __stub_sigaction || defined __stub___sigaction
37266choke me
37267#endif
37268
37269int main (void)
37270{
37271return sigaction ();
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_sigaction="yes"
37282
37283else
37284
37285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37286$as_echo "no" >&6; }
37287 tst_links_sigaction="no"
37288
37289fi
37290rm -f core conftest.err conftest.$ac_objext \
37291 conftest$ac_exeext conftest.$ac_ext
37292 #
37293 if test "$tst_links_sigaction" = "yes"; then
37294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37295$as_echo_n "checking if sigaction is prototyped... " >&6; }
37296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37297/* end confdefs.h. */
37298
37299 $curl_includes_signal
37300
37301_ACEOF
37302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37303 $EGREP "sigaction" >/dev/null 2>&1; then :
37304
37305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37306$as_echo "yes" >&6; }
37307 tst_proto_sigaction="yes"
37308
37309else
37310
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37312$as_echo "no" >&6; }
37313 tst_proto_sigaction="no"
37314
37315fi
37316rm -f conftest*
37317
37318 fi
37319 #
37320 if test "$tst_proto_sigaction" = "yes"; then
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37322$as_echo_n "checking if sigaction is compilable... " >&6; }
37323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37324/* end confdefs.h. */
37325
37326
37327 $curl_includes_signal
37328
37329int main (void)
37330{
37331
37332 if(0 != sigaction(0, 0, 0))
37333 return 1;
37334
37335 ;
37336 return 0;
37337}
37338
37339_ACEOF
37340if ac_fn_c_try_compile "$LINENO"; then :
37341
37342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37343$as_echo "yes" >&6; }
37344 tst_compi_sigaction="yes"
37345
37346else
37347
37348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37349$as_echo "no" >&6; }
37350 tst_compi_sigaction="no"
37351
37352fi
37353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37354 fi
37355 #
37356 if test "$tst_compi_sigaction" = "yes"; then
37357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37358$as_echo_n "checking if sigaction usage allowed... " >&6; }
37359 if test "x$curl_disallow_sigaction" != "xyes"; then
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37361$as_echo "yes" >&6; }
37362 tst_allow_sigaction="yes"
37363 else
37364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37365$as_echo "no" >&6; }
37366 tst_allow_sigaction="no"
37367 fi
37368 fi
37369 #
37370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37371$as_echo_n "checking if sigaction might be used... " >&6; }
37372 if test "$tst_links_sigaction" = "yes" &&
37373 test "$tst_proto_sigaction" = "yes" &&
37374 test "$tst_compi_sigaction" = "yes" &&
37375 test "$tst_allow_sigaction" = "yes"; then
37376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37377$as_echo "yes" >&6; }
37378
37379cat >>confdefs.h <<_ACEOF
37380#define HAVE_SIGACTION 1
37381_ACEOF
37382
37383 curl_cv_func_sigaction="yes"
37384 else
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37386$as_echo "no" >&6; }
37387 curl_cv_func_sigaction="no"
37388 fi
37389
37390
37391 #
37392 tst_links_siginterrupt="unknown"
37393 tst_proto_siginterrupt="unknown"
37394 tst_compi_siginterrupt="unknown"
37395 tst_allow_siginterrupt="unknown"
37396 #
37397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37398$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37400/* end confdefs.h. */
37401
37402
37403#define siginterrupt innocuous_siginterrupt
37404#ifdef __STDC__
37405# include <limits.h>
37406#else
37407# include <assert.h>
37408#endif
37409#undef siginterrupt
37410#ifdef __cplusplus
37411extern "C"
37412#endif
37413char siginterrupt ();
37414#if defined __stub_siginterrupt || defined __stub___siginterrupt
37415choke me
37416#endif
37417
37418int main (void)
37419{
37420return siginterrupt ();
37421 ;
37422 return 0;
37423}
37424
37425_ACEOF
37426if ac_fn_c_try_link "$LINENO"; then :
37427
37428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37429$as_echo "yes" >&6; }
37430 tst_links_siginterrupt="yes"
37431
37432else
37433
37434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37435$as_echo "no" >&6; }
37436 tst_links_siginterrupt="no"
37437
37438fi
37439rm -f core conftest.err conftest.$ac_objext \
37440 conftest$ac_exeext conftest.$ac_ext
37441 #
37442 if test "$tst_links_siginterrupt" = "yes"; then
37443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37444$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37446/* end confdefs.h. */
37447
37448 $curl_includes_signal
37449
37450_ACEOF
37451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37452 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37453
37454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37455$as_echo "yes" >&6; }
37456 tst_proto_siginterrupt="yes"
37457
37458else
37459
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37461$as_echo "no" >&6; }
37462 tst_proto_siginterrupt="no"
37463
37464fi
37465rm -f conftest*
37466
37467 fi
37468 #
37469 if test "$tst_proto_siginterrupt" = "yes"; then
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37471$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37473/* end confdefs.h. */
37474
37475
37476 $curl_includes_signal
37477
37478int main (void)
37479{
37480
37481 if(0 != siginterrupt(0, 0))
37482 return 1;
37483
37484 ;
37485 return 0;
37486}
37487
37488_ACEOF
37489if ac_fn_c_try_compile "$LINENO"; then :
37490
37491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37492$as_echo "yes" >&6; }
37493 tst_compi_siginterrupt="yes"
37494
37495else
37496
37497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37498$as_echo "no" >&6; }
37499 tst_compi_siginterrupt="no"
37500
37501fi
37502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37503 fi
37504 #
37505 if test "$tst_compi_siginterrupt" = "yes"; then
37506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37507$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37508 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37510$as_echo "yes" >&6; }
37511 tst_allow_siginterrupt="yes"
37512 else
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37514$as_echo "no" >&6; }
37515 tst_allow_siginterrupt="no"
37516 fi
37517 fi
37518 #
37519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37520$as_echo_n "checking if siginterrupt might be used... " >&6; }
37521 if test "$tst_links_siginterrupt" = "yes" &&
37522 test "$tst_proto_siginterrupt" = "yes" &&
37523 test "$tst_compi_siginterrupt" = "yes" &&
37524 test "$tst_allow_siginterrupt" = "yes"; then
37525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37526$as_echo "yes" >&6; }
37527
37528cat >>confdefs.h <<_ACEOF
37529#define HAVE_SIGINTERRUPT 1
37530_ACEOF
37531
37532 curl_cv_func_siginterrupt="yes"
37533 else
37534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37535$as_echo "no" >&6; }
37536 curl_cv_func_siginterrupt="no"
37537 fi
37538
37539
37540 #
37541 tst_links_signal="unknown"
37542 tst_proto_signal="unknown"
37543 tst_compi_signal="unknown"
37544 tst_allow_signal="unknown"
37545 #
37546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37547$as_echo_n "checking if signal can be linked... " >&6; }
37548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37549/* end confdefs.h. */
37550
37551
37552#define signal innocuous_signal
37553#ifdef __STDC__
37554# include <limits.h>
37555#else
37556# include <assert.h>
37557#endif
37558#undef signal
37559#ifdef __cplusplus
37560extern "C"
37561#endif
37562char signal ();
37563#if defined __stub_signal || defined __stub___signal
37564choke me
37565#endif
37566
37567int main (void)
37568{
37569return signal ();
37570 ;
37571 return 0;
37572}
37573
37574_ACEOF
37575if ac_fn_c_try_link "$LINENO"; then :
37576
37577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37578$as_echo "yes" >&6; }
37579 tst_links_signal="yes"
37580
37581else
37582
37583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37584$as_echo "no" >&6; }
37585 tst_links_signal="no"
37586
37587fi
37588rm -f core conftest.err conftest.$ac_objext \
37589 conftest$ac_exeext conftest.$ac_ext
37590 #
37591 if test "$tst_links_signal" = "yes"; then
37592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37593$as_echo_n "checking if signal is prototyped... " >&6; }
37594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37595/* end confdefs.h. */
37596
37597 $curl_includes_signal
37598
37599_ACEOF
37600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37601 $EGREP "signal" >/dev/null 2>&1; then :
37602
37603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37604$as_echo "yes" >&6; }
37605 tst_proto_signal="yes"
37606
37607else
37608
37609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37610$as_echo "no" >&6; }
37611 tst_proto_signal="no"
37612
37613fi
37614rm -f conftest*
37615
37616 fi
37617 #
37618 if test "$tst_proto_signal" = "yes"; then
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37620$as_echo_n "checking if signal is compilable... " >&6; }
37621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37622/* end confdefs.h. */
37623
37624
37625 $curl_includes_signal
37626
37627int main (void)
37628{
37629
37630 if(0 != signal(0, 0))
37631 return 1;
37632
37633 ;
37634 return 0;
37635}
37636
37637_ACEOF
37638if ac_fn_c_try_compile "$LINENO"; then :
37639
37640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37641$as_echo "yes" >&6; }
37642 tst_compi_signal="yes"
37643
37644else
37645
37646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37647$as_echo "no" >&6; }
37648 tst_compi_signal="no"
37649
37650fi
37651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37652 fi
37653 #
37654 if test "$tst_compi_signal" = "yes"; then
37655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37656$as_echo_n "checking if signal usage allowed... " >&6; }
37657 if test "x$curl_disallow_signal" != "xyes"; then
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37659$as_echo "yes" >&6; }
37660 tst_allow_signal="yes"
37661 else
37662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37663$as_echo "no" >&6; }
37664 tst_allow_signal="no"
37665 fi
37666 fi
37667 #
37668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37669$as_echo_n "checking if signal might be used... " >&6; }
37670 if test "$tst_links_signal" = "yes" &&
37671 test "$tst_proto_signal" = "yes" &&
37672 test "$tst_compi_signal" = "yes" &&
37673 test "$tst_allow_signal" = "yes"; then
37674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37675$as_echo "yes" >&6; }
37676
37677cat >>confdefs.h <<_ACEOF
37678#define HAVE_SIGNAL 1
37679_ACEOF
37680
37681 curl_cv_func_signal="yes"
37682 else
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684$as_echo "no" >&6; }
37685 curl_cv_func_signal="no"
37686 fi
37687
37688
37689curl_includes_setjmp="\
37690/* includes start */
37691#ifdef HAVE_SYS_TYPES_H
37692# include <sys/types.h>
37693#endif
37694#ifdef HAVE_SETJMP_H
37695# include <setjmp.h>
37696#endif
37697/* includes end */"
37698 for ac_header in sys/types.h setjmp.h
37699do :
37700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37701ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37702"
37703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37704 cat >>confdefs.h <<_ACEOF
37705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37706_ACEOF
37707
37708fi
37709
37710done
37711
37712
37713
37714 #
37715 tst_links_sigsetjmp="unknown"
37716 tst_macro_sigsetjmp="unknown"
37717 tst_proto_sigsetjmp="unknown"
37718 tst_compi_sigsetjmp="unknown"
37719 tst_allow_sigsetjmp="unknown"
37720 #
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37722$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37724/* end confdefs.h. */
37725
37726
37727#define sigsetjmp innocuous_sigsetjmp
37728#ifdef __STDC__
37729# include <limits.h>
37730#else
37731# include <assert.h>
37732#endif
37733#undef sigsetjmp
37734#ifdef __cplusplus
37735extern "C"
37736#endif
37737char sigsetjmp ();
37738#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37739choke me
37740#endif
37741
37742int main (void)
37743{
37744return sigsetjmp ();
37745 ;
37746 return 0;
37747}
37748
37749_ACEOF
37750if ac_fn_c_try_link "$LINENO"; then :
37751
37752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37753$as_echo "yes" >&6; }
37754 tst_links_sigsetjmp="yes"
37755
37756else
37757
37758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37759$as_echo "no" >&6; }
37760 tst_links_sigsetjmp="no"
37761
37762fi
37763rm -f core conftest.err conftest.$ac_objext \
37764 conftest$ac_exeext conftest.$ac_ext
37765 #
37766 if test "$tst_links_sigsetjmp" = "no"; then
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37768$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37770/* end confdefs.h. */
37771
37772
37773 $curl_includes_setjmp
37774
37775int main (void)
37776{
37777
37778 sigjmp_buf env;
37779 if(0 != sigsetjmp(env, 0))
37780 return 1;
37781
37782 ;
37783 return 0;
37784}
37785
37786_ACEOF
37787if ac_fn_c_try_link "$LINENO"; then :
37788
37789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37790$as_echo "yes" >&6; }
37791 tst_macro_sigsetjmp="yes"
37792
37793else
37794
37795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37796$as_echo "no" >&6; }
37797 tst_macro_sigsetjmp="no"
37798
37799fi
37800rm -f core conftest.err conftest.$ac_objext \
37801 conftest$ac_exeext conftest.$ac_ext
37802 fi
37803 #
37804 if test "$tst_links_sigsetjmp" = "yes"; then
37805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37806$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37808/* end confdefs.h. */
37809
37810 $curl_includes_setjmp
37811
37812_ACEOF
37813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37814 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37815
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817$as_echo "yes" >&6; }
37818 tst_proto_sigsetjmp="yes"
37819
37820else
37821
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37823$as_echo "no" >&6; }
37824 tst_proto_sigsetjmp="no"
37825
37826fi
37827rm -f conftest*
37828
37829 fi
37830 #
37831 if test "$tst_proto_sigsetjmp" = "yes" ||
37832 test "$tst_macro_sigsetjmp" = "yes"; then
37833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37834$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37836/* end confdefs.h. */
37837
37838
37839 $curl_includes_setjmp
37840
37841int main (void)
37842{
37843
37844 sigjmp_buf env;
37845 if(0 != sigsetjmp(env, 0))
37846 return 1;
37847
37848 ;
37849 return 0;
37850}
37851
37852_ACEOF
37853if ac_fn_c_try_compile "$LINENO"; then :
37854
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37856$as_echo "yes" >&6; }
37857 tst_compi_sigsetjmp="yes"
37858
37859else
37860
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37862$as_echo "no" >&6; }
37863 tst_compi_sigsetjmp="no"
37864
37865fi
37866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37867 fi
37868 #
37869 if test "$tst_compi_sigsetjmp" = "yes"; then
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37871$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37872 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874$as_echo "yes" >&6; }
37875 tst_allow_sigsetjmp="yes"
37876 else
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37878$as_echo "no" >&6; }
37879 tst_allow_sigsetjmp="no"
37880 fi
37881 fi
37882 #
37883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37884$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37885 if (test "$tst_proto_sigsetjmp" = "yes" ||
37886 test "$tst_macro_sigsetjmp" = "yes") &&
37887 test "$tst_compi_sigsetjmp" = "yes" &&
37888 test "$tst_allow_sigsetjmp" = "yes"; then
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37890$as_echo "yes" >&6; }
37891
37892cat >>confdefs.h <<_ACEOF
37893#define HAVE_SIGSETJMP 1
37894_ACEOF
37895
37896 curl_cv_func_sigsetjmp="yes"
37897 else
37898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37899$as_echo "no" >&6; }
37900 curl_cv_func_sigsetjmp="no"
37901 fi
37902
37903
37904 #
37905 tst_links_socket="unknown"
37906 tst_proto_socket="unknown"
37907 tst_compi_socket="unknown"
37908 tst_allow_socket="unknown"
37909 #
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37911$as_echo_n "checking if socket can be linked... " >&6; }
37912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37913/* end confdefs.h. */
37914
37915
37916 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037917 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037918 $curl_includes_sys_socket
37919 $curl_includes_socket
37920
37921int main (void)
37922{
37923
37924 if(0 != socket(0, 0, 0))
37925 return 1;
37926
37927 ;
37928 return 0;
37929}
37930
37931_ACEOF
37932if ac_fn_c_try_link "$LINENO"; then :
37933
37934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37935$as_echo "yes" >&6; }
37936 tst_links_socket="yes"
37937
37938else
37939
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37941$as_echo "no" >&6; }
37942 tst_links_socket="no"
37943
37944fi
37945rm -f core conftest.err conftest.$ac_objext \
37946 conftest$ac_exeext conftest.$ac_ext
37947 #
37948 if test "$tst_links_socket" = "yes"; then
37949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37950$as_echo_n "checking if socket is prototyped... " >&6; }
37951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37952/* end confdefs.h. */
37953
37954 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037955 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037956 $curl_includes_sys_socket
37957 $curl_includes_socket
37958
37959_ACEOF
37960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37961 $EGREP "socket" >/dev/null 2>&1; then :
37962
37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37964$as_echo "yes" >&6; }
37965 tst_proto_socket="yes"
37966
37967else
37968
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37970$as_echo "no" >&6; }
37971 tst_proto_socket="no"
37972
37973fi
37974rm -f conftest*
37975
37976 fi
37977 #
37978 if test "$tst_proto_socket" = "yes"; then
37979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37980$as_echo_n "checking if socket is compilable... " >&6; }
37981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37982/* end confdefs.h. */
37983
37984
37985 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037986 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037987 $curl_includes_sys_socket
37988 $curl_includes_socket
37989
37990int main (void)
37991{
37992
37993 if(0 != socket(0, 0, 0))
37994 return 1;
37995
37996 ;
37997 return 0;
37998}
37999
38000_ACEOF
38001if ac_fn_c_try_compile "$LINENO"; then :
38002
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38004$as_echo "yes" >&6; }
38005 tst_compi_socket="yes"
38006
38007else
38008
38009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38010$as_echo "no" >&6; }
38011 tst_compi_socket="no"
38012
38013fi
38014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38015 fi
38016 #
38017 if test "$tst_compi_socket" = "yes"; then
38018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
38019$as_echo_n "checking if socket usage allowed... " >&6; }
38020 if test "x$curl_disallow_socket" != "xyes"; then
38021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38022$as_echo "yes" >&6; }
38023 tst_allow_socket="yes"
38024 else
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38026$as_echo "no" >&6; }
38027 tst_allow_socket="no"
38028 fi
38029 fi
38030 #
38031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
38032$as_echo_n "checking if socket might be used... " >&6; }
38033 if test "$tst_links_socket" = "yes" &&
38034 test "$tst_proto_socket" = "yes" &&
38035 test "$tst_compi_socket" = "yes" &&
38036 test "$tst_allow_socket" = "yes"; then
38037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38038$as_echo "yes" >&6; }
38039
38040cat >>confdefs.h <<_ACEOF
38041#define HAVE_SOCKET 1
38042_ACEOF
38043
38044 curl_cv_func_socket="yes"
38045 else
38046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38047$as_echo "no" >&6; }
38048 curl_cv_func_socket="no"
38049 fi
38050
38051
38052 #
38053 tst_links_socketpair="unknown"
38054 tst_proto_socketpair="unknown"
38055 tst_compi_socketpair="unknown"
38056 tst_allow_socketpair="unknown"
38057 #
38058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
38059$as_echo_n "checking if socketpair can be linked... " >&6; }
38060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38061/* end confdefs.h. */
38062
38063
38064#define socketpair innocuous_socketpair
38065#ifdef __STDC__
38066# include <limits.h>
38067#else
38068# include <assert.h>
38069#endif
38070#undef socketpair
38071#ifdef __cplusplus
38072extern "C"
38073#endif
38074char socketpair ();
38075#if defined __stub_socketpair || defined __stub___socketpair
38076choke me
38077#endif
38078
38079int main (void)
38080{
38081return socketpair ();
38082 ;
38083 return 0;
38084}
38085
38086_ACEOF
38087if ac_fn_c_try_link "$LINENO"; then :
38088
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38090$as_echo "yes" >&6; }
38091 tst_links_socketpair="yes"
38092
38093else
38094
38095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38096$as_echo "no" >&6; }
38097 tst_links_socketpair="no"
38098
38099fi
38100rm -f core conftest.err conftest.$ac_objext \
38101 conftest$ac_exeext conftest.$ac_ext
38102 #
38103 if test "$tst_links_socketpair" = "yes"; then
38104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
38105$as_echo_n "checking if socketpair is prototyped... " >&6; }
38106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38107/* end confdefs.h. */
38108
38109 $curl_includes_sys_socket
38110 $curl_includes_socket
38111
38112_ACEOF
38113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38114 $EGREP "socketpair" >/dev/null 2>&1; then :
38115
38116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38117$as_echo "yes" >&6; }
38118 tst_proto_socketpair="yes"
38119
38120else
38121
38122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38123$as_echo "no" >&6; }
38124 tst_proto_socketpair="no"
38125
38126fi
38127rm -f conftest*
38128
38129 fi
38130 #
38131 if test "$tst_proto_socketpair" = "yes"; then
38132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
38133$as_echo_n "checking if socketpair is compilable... " >&6; }
38134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38135/* end confdefs.h. */
38136
38137
38138 $curl_includes_sys_socket
38139 $curl_includes_socket
38140
38141int main (void)
38142{
38143
38144 int sv[2];
38145 if(0 != socketpair(0, 0, 0, sv))
38146 return 1;
38147
38148 ;
38149 return 0;
38150}
38151
38152_ACEOF
38153if ac_fn_c_try_compile "$LINENO"; then :
38154
38155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38156$as_echo "yes" >&6; }
38157 tst_compi_socketpair="yes"
38158
38159else
38160
38161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38162$as_echo "no" >&6; }
38163 tst_compi_socketpair="no"
38164
38165fi
38166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38167 fi
38168 #
38169 if test "$tst_compi_socketpair" = "yes"; then
38170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
38171$as_echo_n "checking if socketpair usage allowed... " >&6; }
38172 if test "x$curl_disallow_socketpair" != "xyes"; then
38173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38174$as_echo "yes" >&6; }
38175 tst_allow_socketpair="yes"
38176 else
38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38178$as_echo "no" >&6; }
38179 tst_allow_socketpair="no"
38180 fi
38181 fi
38182 #
38183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
38184$as_echo_n "checking if socketpair might be used... " >&6; }
38185 if test "$tst_links_socketpair" = "yes" &&
38186 test "$tst_proto_socketpair" = "yes" &&
38187 test "$tst_compi_socketpair" = "yes" &&
38188 test "$tst_allow_socketpair" = "yes"; then
38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38190$as_echo "yes" >&6; }
38191
38192cat >>confdefs.h <<_ACEOF
38193#define HAVE_SOCKETPAIR 1
38194_ACEOF
38195
38196 curl_cv_func_socketpair="yes"
38197 else
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38199$as_echo "no" >&6; }
38200 curl_cv_func_socketpair="no"
38201 fi
38202
38203
38204 #
38205 tst_links_strcasecmp="unknown"
38206 tst_proto_strcasecmp="unknown"
38207 tst_compi_strcasecmp="unknown"
38208 tst_allow_strcasecmp="unknown"
38209 #
38210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38211$as_echo_n "checking if strcasecmp can be linked... " >&6; }
38212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38213/* end confdefs.h. */
38214
38215
38216#define strcasecmp innocuous_strcasecmp
38217#ifdef __STDC__
38218# include <limits.h>
38219#else
38220# include <assert.h>
38221#endif
38222#undef strcasecmp
38223#ifdef __cplusplus
38224extern "C"
38225#endif
38226char strcasecmp ();
38227#if defined __stub_strcasecmp || defined __stub___strcasecmp
38228choke me
38229#endif
38230
38231int main (void)
38232{
38233return strcasecmp ();
38234 ;
38235 return 0;
38236}
38237
38238_ACEOF
38239if ac_fn_c_try_link "$LINENO"; then :
38240
38241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38242$as_echo "yes" >&6; }
38243 tst_links_strcasecmp="yes"
38244
38245else
38246
38247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38248$as_echo "no" >&6; }
38249 tst_links_strcasecmp="no"
38250
38251fi
38252rm -f core conftest.err conftest.$ac_objext \
38253 conftest$ac_exeext conftest.$ac_ext
38254 #
38255 if test "$tst_links_strcasecmp" = "yes"; then
38256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38257$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38259/* end confdefs.h. */
38260
38261 $curl_includes_string
38262
38263_ACEOF
38264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38265 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38266
38267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38268$as_echo "yes" >&6; }
38269 tst_proto_strcasecmp="yes"
38270
38271else
38272
38273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38274$as_echo "no" >&6; }
38275 tst_proto_strcasecmp="no"
38276
38277fi
38278rm -f conftest*
38279
38280 fi
38281 #
38282 if test "$tst_proto_strcasecmp" = "yes"; then
38283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38284$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38286/* end confdefs.h. */
38287
38288
38289 $curl_includes_string
38290
38291int main (void)
38292{
38293
38294 if(0 != strcasecmp(0, 0))
38295 return 1;
38296
38297 ;
38298 return 0;
38299}
38300
38301_ACEOF
38302if ac_fn_c_try_compile "$LINENO"; then :
38303
38304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38305$as_echo "yes" >&6; }
38306 tst_compi_strcasecmp="yes"
38307
38308else
38309
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38311$as_echo "no" >&6; }
38312 tst_compi_strcasecmp="no"
38313
38314fi
38315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38316 fi
38317 #
38318 if test "$tst_compi_strcasecmp" = "yes"; then
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38320$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38321 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38323$as_echo "yes" >&6; }
38324 tst_allow_strcasecmp="yes"
38325 else
38326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38327$as_echo "no" >&6; }
38328 tst_allow_strcasecmp="no"
38329 fi
38330 fi
38331 #
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38333$as_echo_n "checking if strcasecmp might be used... " >&6; }
38334 if test "$tst_links_strcasecmp" = "yes" &&
38335 test "$tst_proto_strcasecmp" = "yes" &&
38336 test "$tst_compi_strcasecmp" = "yes" &&
38337 test "$tst_allow_strcasecmp" = "yes"; then
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38339$as_echo "yes" >&6; }
38340
38341cat >>confdefs.h <<_ACEOF
38342#define HAVE_STRCASECMP 1
38343_ACEOF
38344
38345 curl_cv_func_strcasecmp="yes"
38346 else
38347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38348$as_echo "no" >&6; }
38349 curl_cv_func_strcasecmp="no"
38350 fi
38351
38352
38353 #
38354 tst_links_strcmpi="unknown"
38355 tst_proto_strcmpi="unknown"
38356 tst_compi_strcmpi="unknown"
38357 tst_allow_strcmpi="unknown"
38358 #
38359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38360$as_echo_n "checking if strcmpi can be linked... " >&6; }
38361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38362/* end confdefs.h. */
38363
38364
38365#define strcmpi innocuous_strcmpi
38366#ifdef __STDC__
38367# include <limits.h>
38368#else
38369# include <assert.h>
38370#endif
38371#undef strcmpi
38372#ifdef __cplusplus
38373extern "C"
38374#endif
38375char strcmpi ();
38376#if defined __stub_strcmpi || defined __stub___strcmpi
38377choke me
38378#endif
38379
38380int main (void)
38381{
38382return strcmpi ();
38383 ;
38384 return 0;
38385}
38386
38387_ACEOF
38388if ac_fn_c_try_link "$LINENO"; then :
38389
38390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38391$as_echo "yes" >&6; }
38392 tst_links_strcmpi="yes"
38393
38394else
38395
38396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38397$as_echo "no" >&6; }
38398 tst_links_strcmpi="no"
38399
38400fi
38401rm -f core conftest.err conftest.$ac_objext \
38402 conftest$ac_exeext conftest.$ac_ext
38403 #
38404 if test "$tst_links_strcmpi" = "yes"; then
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38406$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38408/* end confdefs.h. */
38409
38410 $curl_includes_string
38411
38412_ACEOF
38413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38414 $EGREP "strcmpi" >/dev/null 2>&1; then :
38415
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38417$as_echo "yes" >&6; }
38418 tst_proto_strcmpi="yes"
38419
38420else
38421
38422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38423$as_echo "no" >&6; }
38424 tst_proto_strcmpi="no"
38425
38426fi
38427rm -f conftest*
38428
38429 fi
38430 #
38431 if test "$tst_proto_strcmpi" = "yes"; then
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38433$as_echo_n "checking if strcmpi is compilable... " >&6; }
38434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38435/* end confdefs.h. */
38436
38437
38438 $curl_includes_string
38439
38440int main (void)
38441{
38442
38443 if(0 != strcmpi(0, 0))
38444 return 1;
38445
38446 ;
38447 return 0;
38448}
38449
38450_ACEOF
38451if ac_fn_c_try_compile "$LINENO"; then :
38452
38453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38454$as_echo "yes" >&6; }
38455 tst_compi_strcmpi="yes"
38456
38457else
38458
38459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38460$as_echo "no" >&6; }
38461 tst_compi_strcmpi="no"
38462
38463fi
38464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38465 fi
38466 #
38467 if test "$tst_compi_strcmpi" = "yes"; then
38468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38469$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38470 if test "x$curl_disallow_strcmpi" != "xyes"; then
38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38472$as_echo "yes" >&6; }
38473 tst_allow_strcmpi="yes"
38474 else
38475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38476$as_echo "no" >&6; }
38477 tst_allow_strcmpi="no"
38478 fi
38479 fi
38480 #
38481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38482$as_echo_n "checking if strcmpi might be used... " >&6; }
38483 if test "$tst_links_strcmpi" = "yes" &&
38484 test "$tst_proto_strcmpi" = "yes" &&
38485 test "$tst_compi_strcmpi" = "yes" &&
38486 test "$tst_allow_strcmpi" = "yes"; then
38487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38488$as_echo "yes" >&6; }
38489
38490cat >>confdefs.h <<_ACEOF
38491#define HAVE_STRCMPI 1
38492_ACEOF
38493
38494 curl_cv_func_strcmpi="yes"
38495 else
38496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497$as_echo "no" >&6; }
38498 curl_cv_func_strcmpi="no"
38499 fi
38500
38501
38502 #
38503 tst_links_strdup="unknown"
38504 tst_proto_strdup="unknown"
38505 tst_compi_strdup="unknown"
38506 tst_allow_strdup="unknown"
38507 #
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38509$as_echo_n "checking if strdup can be linked... " >&6; }
38510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38511/* end confdefs.h. */
38512
38513
38514#define strdup innocuous_strdup
38515#ifdef __STDC__
38516# include <limits.h>
38517#else
38518# include <assert.h>
38519#endif
38520#undef strdup
38521#ifdef __cplusplus
38522extern "C"
38523#endif
38524char strdup ();
38525#if defined __stub_strdup || defined __stub___strdup
38526choke me
38527#endif
38528
38529int main (void)
38530{
38531return strdup ();
38532 ;
38533 return 0;
38534}
38535
38536_ACEOF
38537if ac_fn_c_try_link "$LINENO"; then :
38538
38539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38540$as_echo "yes" >&6; }
38541 tst_links_strdup="yes"
38542
38543else
38544
38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38546$as_echo "no" >&6; }
38547 tst_links_strdup="no"
38548
38549fi
38550rm -f core conftest.err conftest.$ac_objext \
38551 conftest$ac_exeext conftest.$ac_ext
38552 #
38553 if test "$tst_links_strdup" = "yes"; then
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38555$as_echo_n "checking if strdup is prototyped... " >&6; }
38556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38557/* end confdefs.h. */
38558
38559 $curl_includes_string
38560
38561_ACEOF
38562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38563 $EGREP "strdup" >/dev/null 2>&1; then :
38564
38565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38566$as_echo "yes" >&6; }
38567 tst_proto_strdup="yes"
38568
38569else
38570
38571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38572$as_echo "no" >&6; }
38573 tst_proto_strdup="no"
38574
38575fi
38576rm -f conftest*
38577
38578 fi
38579 #
38580 if test "$tst_proto_strdup" = "yes"; then
38581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38582$as_echo_n "checking if strdup is compilable... " >&6; }
38583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38584/* end confdefs.h. */
38585
38586
38587 $curl_includes_string
38588
38589int main (void)
38590{
38591
38592 if(0 != strdup(0))
38593 return 1;
38594
38595 ;
38596 return 0;
38597}
38598
38599_ACEOF
38600if ac_fn_c_try_compile "$LINENO"; then :
38601
38602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38603$as_echo "yes" >&6; }
38604 tst_compi_strdup="yes"
38605
38606else
38607
38608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38609$as_echo "no" >&6; }
38610 tst_compi_strdup="no"
38611
38612fi
38613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38614 fi
38615 #
38616 if test "$tst_compi_strdup" = "yes"; then
38617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38618$as_echo_n "checking if strdup usage allowed... " >&6; }
38619 if test "x$curl_disallow_strdup" != "xyes"; then
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621$as_echo "yes" >&6; }
38622 tst_allow_strdup="yes"
38623 else
38624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38625$as_echo "no" >&6; }
38626 tst_allow_strdup="no"
38627 fi
38628 fi
38629 #
38630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38631$as_echo_n "checking if strdup might be used... " >&6; }
38632 if test "$tst_links_strdup" = "yes" &&
38633 test "$tst_proto_strdup" = "yes" &&
38634 test "$tst_compi_strdup" = "yes" &&
38635 test "$tst_allow_strdup" = "yes"; then
38636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38637$as_echo "yes" >&6; }
38638
38639cat >>confdefs.h <<_ACEOF
38640#define HAVE_STRDUP 1
38641_ACEOF
38642
38643 curl_cv_func_strdup="yes"
38644 else
38645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38646$as_echo "no" >&6; }
38647 curl_cv_func_strdup="no"
38648 fi
38649
38650
38651 #
38652 tst_links_strerror_r="unknown"
38653 tst_proto_strerror_r="unknown"
38654 tst_compi_strerror_r="unknown"
38655 tst_glibc_strerror_r="unknown"
38656 tst_posix_strerror_r="unknown"
38657 tst_allow_strerror_r="unknown"
38658 tst_works_glibc_strerror_r="unknown"
38659 tst_works_posix_strerror_r="unknown"
38660 tst_glibc_strerror_r_type_arg3="unknown"
38661 tst_posix_strerror_r_type_arg3="unknown"
38662 #
38663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38664$as_echo_n "checking if strerror_r can be linked... " >&6; }
38665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38666/* end confdefs.h. */
38667
38668
38669#define strerror_r innocuous_strerror_r
38670#ifdef __STDC__
38671# include <limits.h>
38672#else
38673# include <assert.h>
38674#endif
38675#undef strerror_r
38676#ifdef __cplusplus
38677extern "C"
38678#endif
38679char strerror_r ();
38680#if defined __stub_strerror_r || defined __stub___strerror_r
38681choke me
38682#endif
38683
38684int main (void)
38685{
38686return strerror_r ();
38687 ;
38688 return 0;
38689}
38690
38691_ACEOF
38692if ac_fn_c_try_link "$LINENO"; then :
38693
38694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38695$as_echo "yes" >&6; }
38696 tst_links_strerror_r="yes"
38697
38698else
38699
38700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38701$as_echo "no" >&6; }
38702 tst_links_strerror_r="no"
38703
38704fi
38705rm -f core conftest.err conftest.$ac_objext \
38706 conftest$ac_exeext conftest.$ac_ext
38707 #
38708 if test "$tst_links_strerror_r" = "yes"; then
38709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38710$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38712/* end confdefs.h. */
38713
38714 $curl_includes_string
38715
38716_ACEOF
38717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38718 $EGREP "strerror_r" >/dev/null 2>&1; then :
38719
38720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38721$as_echo "yes" >&6; }
38722 tst_proto_strerror_r="yes"
38723
38724else
38725
38726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38727$as_echo "no" >&6; }
38728 tst_proto_strerror_r="no"
38729
38730fi
38731rm -f conftest*
38732
38733 fi
38734 #
38735 if test "$tst_proto_strerror_r" = "yes"; then
38736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38737$as_echo_n "checking if strerror_r is compilable... " >&6; }
38738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38739/* end confdefs.h. */
38740
38741
38742 $curl_includes_string
38743
38744int main (void)
38745{
38746
38747 if(0 != strerror_r(0, 0, 0))
38748 return 1;
38749
38750 ;
38751 return 0;
38752}
38753
38754_ACEOF
38755if ac_fn_c_try_compile "$LINENO"; then :
38756
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38758$as_echo "yes" >&6; }
38759 tst_compi_strerror_r="yes"
38760
38761else
38762
38763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38764$as_echo "no" >&6; }
38765 tst_compi_strerror_r="no"
38766
38767fi
38768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38769 fi
38770 #
38771 if test "$tst_compi_strerror_r" = "yes"; then
38772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38773$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38774 tst_glibc_strerror_r_type_arg3="unknown"
38775 for arg3 in 'size_t' 'int' 'unsigned int'; do
38776 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38778/* end confdefs.h. */
38779
38780
38781 $curl_includes_string
38782 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38783
38784int main (void)
38785{
38786
38787 if(0 != strerror_r(0, 0, 0))
38788 return 1;
38789
38790 ;
38791 return 0;
38792}
38793
38794_ACEOF
38795if ac_fn_c_try_compile "$LINENO"; then :
38796
38797 tst_glibc_strerror_r_type_arg3="$arg3"
38798
38799fi
38800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38801 fi
38802 done
38803 case "$tst_glibc_strerror_r_type_arg3" in
38804 unknown)
38805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38806$as_echo "no" >&6; }
38807 tst_glibc_strerror_r="no"
38808 ;;
38809 *)
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38811$as_echo "yes" >&6; }
38812 tst_glibc_strerror_r="yes"
38813 ;;
38814 esac
38815 fi
38816 #
38817 if test "x$cross_compiling" != "xyes" &&
38818 test "$tst_glibc_strerror_r" = "yes"; then
38819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38820$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038821
38822
38823 old=$LD_LIBRARY_PATH
38824 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38825 export LD_LIBRARY_PATH
38826 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38829as_fn_error $? "cannot run test program while cross compiling
38830See \`config.log' for more details" "$LINENO" 5; }
38831else
38832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38833/* end confdefs.h. */
38834
38835
38836 $curl_includes_stdlib
38837 $curl_includes_string
38838# include <errno.h>
38839
38840int main (void)
38841{
38842
38843 char buffer[1024];
38844 char *string = 0;
38845 buffer[0] = '\0';
38846 string = strerror_r(EACCES, buffer, sizeof(buffer));
38847 if(!string)
38848 exit(1); /* fail */
38849 if(!string[0])
38850 exit(1); /* fail */
38851 else
38852 exit(0);
38853
38854 ;
38855 return 0;
38856}
38857
38858_ACEOF
38859if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038861$as_echo "yes" >&6; }
38862 tst_works_glibc_strerror_r="yes"
38863
38864else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038866$as_echo "no" >&6; }
38867 tst_works_glibc_strerror_r="no"
38868
38869fi
38870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38871 conftest.$ac_objext conftest.beam conftest.$ac_ext
38872fi
38873
Elliott Hughesa93fb052018-12-12 14:22:48 -080038874 LD_LIBRARY_PATH=$old # restore
38875
Elliott Hughes82be86d2017-09-20 17:00:17 -070038876 fi
38877 #
38878 if test "$tst_compi_strerror_r" = "yes" &&
38879 test "$tst_works_glibc_strerror_r" != "yes"; then
38880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38881$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38882 tst_posix_strerror_r_type_arg3="unknown"
38883 for arg3 in 'size_t' 'int' 'unsigned int'; do
38884 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38886/* end confdefs.h. */
38887
38888
38889 $curl_includes_string
38890 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38891
38892int main (void)
38893{
38894
38895 if(0 != strerror_r(0, 0, 0))
38896 return 1;
38897
38898 ;
38899 return 0;
38900}
38901
38902_ACEOF
38903if ac_fn_c_try_compile "$LINENO"; then :
38904
38905 tst_posix_strerror_r_type_arg3="$arg3"
38906
38907fi
38908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38909 fi
38910 done
38911 case "$tst_posix_strerror_r_type_arg3" in
38912 unknown)
38913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38914$as_echo "no" >&6; }
38915 tst_posix_strerror_r="no"
38916 ;;
38917 *)
38918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38919$as_echo "yes" >&6; }
38920 tst_posix_strerror_r="yes"
38921 ;;
38922 esac
38923 fi
38924 #
38925 if test "x$cross_compiling" != "xyes" &&
38926 test "$tst_posix_strerror_r" = "yes"; then
38927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38928$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038929
38930
38931 old=$LD_LIBRARY_PATH
38932 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38933 export LD_LIBRARY_PATH
38934 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38937as_fn_error $? "cannot run test program while cross compiling
38938See \`config.log' for more details" "$LINENO" 5; }
38939else
38940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38941/* end confdefs.h. */
38942
38943
38944 $curl_includes_stdlib
38945 $curl_includes_string
38946# include <errno.h>
38947
38948int main (void)
38949{
38950
38951 char buffer[1024];
38952 int error = 1;
38953 buffer[0] = '\0';
38954 error = strerror_r(EACCES, buffer, sizeof(buffer));
38955 if(error)
38956 exit(1); /* fail */
38957 if(buffer[0] == '\0')
38958 exit(1); /* fail */
38959 else
38960 exit(0);
38961
38962 ;
38963 return 0;
38964}
38965
38966_ACEOF
38967if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038969$as_echo "yes" >&6; }
38970 tst_works_posix_strerror_r="yes"
38971
38972else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038974$as_echo "no" >&6; }
38975 tst_works_posix_strerror_r="no"
38976
38977fi
38978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38979 conftest.$ac_objext conftest.beam conftest.$ac_ext
38980fi
38981
Elliott Hughesa93fb052018-12-12 14:22:48 -080038982 LD_LIBRARY_PATH=$old # restore
38983
Elliott Hughes82be86d2017-09-20 17:00:17 -070038984 fi
38985 #
38986 if test "$tst_works_glibc_strerror_r" = "yes"; then
38987 tst_posix_strerror_r="no"
38988 fi
38989 if test "$tst_works_posix_strerror_r" = "yes"; then
38990 tst_glibc_strerror_r="no"
38991 fi
38992 if test "$tst_glibc_strerror_r" = "yes" &&
38993 test "$tst_works_glibc_strerror_r" != "no" &&
38994 test "$tst_posix_strerror_r" != "yes"; then
38995 tst_allow_strerror_r="check"
38996 fi
38997 if test "$tst_posix_strerror_r" = "yes" &&
38998 test "$tst_works_posix_strerror_r" != "no" &&
38999 test "$tst_glibc_strerror_r" != "yes"; then
39000 tst_allow_strerror_r="check"
39001 fi
39002 if test "$tst_allow_strerror_r" = "check"; then
39003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
39004$as_echo_n "checking if strerror_r usage allowed... " >&6; }
39005 if test "x$curl_disallow_strerror_r" != "xyes"; then
39006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39007$as_echo "yes" >&6; }
39008 tst_allow_strerror_r="yes"
39009 else
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39011$as_echo "no" >&6; }
39012 tst_allow_strerror_r="no"
39013 fi
39014 fi
39015 #
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
39017$as_echo_n "checking if strerror_r might be used... " >&6; }
39018 if test "$tst_links_strerror_r" = "yes" &&
39019 test "$tst_proto_strerror_r" = "yes" &&
39020 test "$tst_compi_strerror_r" = "yes" &&
39021 test "$tst_allow_strerror_r" = "yes"; then
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39023$as_echo "yes" >&6; }
39024 if test "$tst_glibc_strerror_r" = "yes"; then
39025
39026cat >>confdefs.h <<_ACEOF
39027#define HAVE_STRERROR_R 1
39028_ACEOF
39029
39030
39031cat >>confdefs.h <<_ACEOF
39032#define HAVE_GLIBC_STRERROR_R 1
39033_ACEOF
39034
39035
39036cat >>confdefs.h <<_ACEOF
39037#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
39038_ACEOF
39039
39040 fi
39041 if test "$tst_posix_strerror_r" = "yes"; then
39042
39043cat >>confdefs.h <<_ACEOF
39044#define HAVE_STRERROR_R 1
39045_ACEOF
39046
39047
39048cat >>confdefs.h <<_ACEOF
39049#define HAVE_POSIX_STRERROR_R 1
39050_ACEOF
39051
39052
39053cat >>confdefs.h <<_ACEOF
39054#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
39055_ACEOF
39056
39057 fi
39058 curl_cv_func_strerror_r="yes"
39059 else
39060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39061$as_echo "no" >&6; }
39062 curl_cv_func_strerror_r="no"
39063 fi
39064 #
39065 if test "$tst_compi_strerror_r" = "yes" &&
39066 test "$tst_allow_strerror_r" = "unknown"; then
39067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
39068$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
39069 fi
39070 #
39071
39072
39073 #
39074 tst_links_stricmp="unknown"
39075 tst_proto_stricmp="unknown"
39076 tst_compi_stricmp="unknown"
39077 tst_allow_stricmp="unknown"
39078 #
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
39080$as_echo_n "checking if stricmp can be linked... " >&6; }
39081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39082/* end confdefs.h. */
39083
39084
39085#define stricmp innocuous_stricmp
39086#ifdef __STDC__
39087# include <limits.h>
39088#else
39089# include <assert.h>
39090#endif
39091#undef stricmp
39092#ifdef __cplusplus
39093extern "C"
39094#endif
39095char stricmp ();
39096#if defined __stub_stricmp || defined __stub___stricmp
39097choke me
39098#endif
39099
39100int main (void)
39101{
39102return stricmp ();
39103 ;
39104 return 0;
39105}
39106
39107_ACEOF
39108if ac_fn_c_try_link "$LINENO"; then :
39109
39110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39111$as_echo "yes" >&6; }
39112 tst_links_stricmp="yes"
39113
39114else
39115
39116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39117$as_echo "no" >&6; }
39118 tst_links_stricmp="no"
39119
39120fi
39121rm -f core conftest.err conftest.$ac_objext \
39122 conftest$ac_exeext conftest.$ac_ext
39123 #
39124 if test "$tst_links_stricmp" = "yes"; then
39125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
39126$as_echo_n "checking if stricmp is prototyped... " >&6; }
39127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39128/* end confdefs.h. */
39129
39130 $curl_includes_string
39131
39132_ACEOF
39133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39134 $EGREP "stricmp" >/dev/null 2>&1; then :
39135
39136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39137$as_echo "yes" >&6; }
39138 tst_proto_stricmp="yes"
39139
39140else
39141
39142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39143$as_echo "no" >&6; }
39144 tst_proto_stricmp="no"
39145
39146fi
39147rm -f conftest*
39148
39149 fi
39150 #
39151 if test "$tst_proto_stricmp" = "yes"; then
39152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
39153$as_echo_n "checking if stricmp is compilable... " >&6; }
39154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39155/* end confdefs.h. */
39156
39157
39158 $curl_includes_string
39159
39160int main (void)
39161{
39162
39163 if(0 != stricmp(0, 0))
39164 return 1;
39165
39166 ;
39167 return 0;
39168}
39169
39170_ACEOF
39171if ac_fn_c_try_compile "$LINENO"; then :
39172
39173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39174$as_echo "yes" >&6; }
39175 tst_compi_stricmp="yes"
39176
39177else
39178
39179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39180$as_echo "no" >&6; }
39181 tst_compi_stricmp="no"
39182
39183fi
39184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39185 fi
39186 #
39187 if test "$tst_compi_stricmp" = "yes"; then
39188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
39189$as_echo_n "checking if stricmp usage allowed... " >&6; }
39190 if test "x$curl_disallow_stricmp" != "xyes"; then
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39192$as_echo "yes" >&6; }
39193 tst_allow_stricmp="yes"
39194 else
39195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39196$as_echo "no" >&6; }
39197 tst_allow_stricmp="no"
39198 fi
39199 fi
39200 #
39201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
39202$as_echo_n "checking if stricmp might be used... " >&6; }
39203 if test "$tst_links_stricmp" = "yes" &&
39204 test "$tst_proto_stricmp" = "yes" &&
39205 test "$tst_compi_stricmp" = "yes" &&
39206 test "$tst_allow_stricmp" = "yes"; then
39207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39208$as_echo "yes" >&6; }
39209
39210cat >>confdefs.h <<_ACEOF
39211#define HAVE_STRICMP 1
39212_ACEOF
39213
39214 curl_cv_func_stricmp="yes"
39215 else
39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39217$as_echo "no" >&6; }
39218 curl_cv_func_stricmp="no"
39219 fi
39220
39221
39222 #
39223 tst_links_strncasecmp="unknown"
39224 tst_proto_strncasecmp="unknown"
39225 tst_compi_strncasecmp="unknown"
39226 tst_allow_strncasecmp="unknown"
39227 #
39228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39229$as_echo_n "checking if strncasecmp can be linked... " >&6; }
39230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39231/* end confdefs.h. */
39232
39233
39234#define strncasecmp innocuous_strncasecmp
39235#ifdef __STDC__
39236# include <limits.h>
39237#else
39238# include <assert.h>
39239#endif
39240#undef strncasecmp
39241#ifdef __cplusplus
39242extern "C"
39243#endif
39244char strncasecmp ();
39245#if defined __stub_strncasecmp || defined __stub___strncasecmp
39246choke me
39247#endif
39248
39249int main (void)
39250{
39251return strncasecmp ();
39252 ;
39253 return 0;
39254}
39255
39256_ACEOF
39257if ac_fn_c_try_link "$LINENO"; then :
39258
39259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39260$as_echo "yes" >&6; }
39261 tst_links_strncasecmp="yes"
39262
39263else
39264
39265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39266$as_echo "no" >&6; }
39267 tst_links_strncasecmp="no"
39268
39269fi
39270rm -f core conftest.err conftest.$ac_objext \
39271 conftest$ac_exeext conftest.$ac_ext
39272 #
39273 if test "$tst_links_strncasecmp" = "yes"; then
39274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39275$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39277/* end confdefs.h. */
39278
39279 $curl_includes_string
39280
39281_ACEOF
39282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39283 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39284
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39286$as_echo "yes" >&6; }
39287 tst_proto_strncasecmp="yes"
39288
39289else
39290
39291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39292$as_echo "no" >&6; }
39293 tst_proto_strncasecmp="no"
39294
39295fi
39296rm -f conftest*
39297
39298 fi
39299 #
39300 if test "$tst_proto_strncasecmp" = "yes"; then
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39302$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39304/* end confdefs.h. */
39305
39306
39307 $curl_includes_string
39308
39309int main (void)
39310{
39311
39312 if(0 != strncasecmp(0, 0, 0))
39313 return 1;
39314
39315 ;
39316 return 0;
39317}
39318
39319_ACEOF
39320if ac_fn_c_try_compile "$LINENO"; then :
39321
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39323$as_echo "yes" >&6; }
39324 tst_compi_strncasecmp="yes"
39325
39326else
39327
39328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39329$as_echo "no" >&6; }
39330 tst_compi_strncasecmp="no"
39331
39332fi
39333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39334 fi
39335 #
39336 if test "$tst_compi_strncasecmp" = "yes"; then
39337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39338$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39339 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39341$as_echo "yes" >&6; }
39342 tst_allow_strncasecmp="yes"
39343 else
39344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39345$as_echo "no" >&6; }
39346 tst_allow_strncasecmp="no"
39347 fi
39348 fi
39349 #
39350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39351$as_echo_n "checking if strncasecmp might be used... " >&6; }
39352 if test "$tst_links_strncasecmp" = "yes" &&
39353 test "$tst_proto_strncasecmp" = "yes" &&
39354 test "$tst_compi_strncasecmp" = "yes" &&
39355 test "$tst_allow_strncasecmp" = "yes"; then
39356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39357$as_echo "yes" >&6; }
39358
39359cat >>confdefs.h <<_ACEOF
39360#define HAVE_STRNCASECMP 1
39361_ACEOF
39362
39363 curl_cv_func_strncasecmp="yes"
39364 else
39365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39366$as_echo "no" >&6; }
39367 curl_cv_func_strncasecmp="no"
39368 fi
39369
39370
39371 #
39372 tst_links_strncmpi="unknown"
39373 tst_proto_strncmpi="unknown"
39374 tst_compi_strncmpi="unknown"
39375 tst_allow_strncmpi="unknown"
39376 #
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39378$as_echo_n "checking if strncmpi can be linked... " >&6; }
39379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39380/* end confdefs.h. */
39381
39382
39383#define strncmpi innocuous_strncmpi
39384#ifdef __STDC__
39385# include <limits.h>
39386#else
39387# include <assert.h>
39388#endif
39389#undef strncmpi
39390#ifdef __cplusplus
39391extern "C"
39392#endif
39393char strncmpi ();
39394#if defined __stub_strncmpi || defined __stub___strncmpi
39395choke me
39396#endif
39397
39398int main (void)
39399{
39400return strncmpi ();
39401 ;
39402 return 0;
39403}
39404
39405_ACEOF
39406if ac_fn_c_try_link "$LINENO"; then :
39407
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39409$as_echo "yes" >&6; }
39410 tst_links_strncmpi="yes"
39411
39412else
39413
39414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39415$as_echo "no" >&6; }
39416 tst_links_strncmpi="no"
39417
39418fi
39419rm -f core conftest.err conftest.$ac_objext \
39420 conftest$ac_exeext conftest.$ac_ext
39421 #
39422 if test "$tst_links_strncmpi" = "yes"; then
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39424$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39426/* end confdefs.h. */
39427
39428 $curl_includes_string
39429
39430_ACEOF
39431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39432 $EGREP "strncmpi" >/dev/null 2>&1; then :
39433
39434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39435$as_echo "yes" >&6; }
39436 tst_proto_strncmpi="yes"
39437
39438else
39439
39440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39441$as_echo "no" >&6; }
39442 tst_proto_strncmpi="no"
39443
39444fi
39445rm -f conftest*
39446
39447 fi
39448 #
39449 if test "$tst_proto_strncmpi" = "yes"; then
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39451$as_echo_n "checking if strncmpi is compilable... " >&6; }
39452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39453/* end confdefs.h. */
39454
39455
39456 $curl_includes_string
39457
39458int main (void)
39459{
39460
39461 if(0 != strncmpi(0, 0))
39462 return 1;
39463
39464 ;
39465 return 0;
39466}
39467
39468_ACEOF
39469if ac_fn_c_try_compile "$LINENO"; then :
39470
39471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39472$as_echo "yes" >&6; }
39473 tst_compi_strncmpi="yes"
39474
39475else
39476
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39478$as_echo "no" >&6; }
39479 tst_compi_strncmpi="no"
39480
39481fi
39482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39483 fi
39484 #
39485 if test "$tst_compi_strncmpi" = "yes"; then
39486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39487$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39488 if test "x$curl_disallow_strncmpi" != "xyes"; then
39489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39490$as_echo "yes" >&6; }
39491 tst_allow_strncmpi="yes"
39492 else
39493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39494$as_echo "no" >&6; }
39495 tst_allow_strncmpi="no"
39496 fi
39497 fi
39498 #
39499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39500$as_echo_n "checking if strncmpi might be used... " >&6; }
39501 if test "$tst_links_strncmpi" = "yes" &&
39502 test "$tst_proto_strncmpi" = "yes" &&
39503 test "$tst_compi_strncmpi" = "yes" &&
39504 test "$tst_allow_strncmpi" = "yes"; then
39505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39506$as_echo "yes" >&6; }
39507
39508cat >>confdefs.h <<_ACEOF
39509#define HAVE_STRNCMPI 1
39510_ACEOF
39511
39512 curl_cv_func_strncmpi="yes"
39513 else
39514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39515$as_echo "no" >&6; }
39516 curl_cv_func_strncmpi="no"
39517 fi
39518
39519
39520 #
39521 tst_links_strnicmp="unknown"
39522 tst_proto_strnicmp="unknown"
39523 tst_compi_strnicmp="unknown"
39524 tst_allow_strnicmp="unknown"
39525 #
39526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39527$as_echo_n "checking if strnicmp can be linked... " >&6; }
39528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39529/* end confdefs.h. */
39530
39531
39532#define strnicmp innocuous_strnicmp
39533#ifdef __STDC__
39534# include <limits.h>
39535#else
39536# include <assert.h>
39537#endif
39538#undef strnicmp
39539#ifdef __cplusplus
39540extern "C"
39541#endif
39542char strnicmp ();
39543#if defined __stub_strnicmp || defined __stub___strnicmp
39544choke me
39545#endif
39546
39547int main (void)
39548{
39549return strnicmp ();
39550 ;
39551 return 0;
39552}
39553
39554_ACEOF
39555if ac_fn_c_try_link "$LINENO"; then :
39556
39557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39558$as_echo "yes" >&6; }
39559 tst_links_strnicmp="yes"
39560
39561else
39562
39563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39564$as_echo "no" >&6; }
39565 tst_links_strnicmp="no"
39566
39567fi
39568rm -f core conftest.err conftest.$ac_objext \
39569 conftest$ac_exeext conftest.$ac_ext
39570 #
39571 if test "$tst_links_strnicmp" = "yes"; then
39572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39573$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39575/* end confdefs.h. */
39576
39577 $curl_includes_string
39578
39579_ACEOF
39580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39581 $EGREP "strnicmp" >/dev/null 2>&1; then :
39582
39583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39584$as_echo "yes" >&6; }
39585 tst_proto_strnicmp="yes"
39586
39587else
39588
39589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39590$as_echo "no" >&6; }
39591 tst_proto_strnicmp="no"
39592
39593fi
39594rm -f conftest*
39595
39596 fi
39597 #
39598 if test "$tst_proto_strnicmp" = "yes"; then
39599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39600$as_echo_n "checking if strnicmp is compilable... " >&6; }
39601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39602/* end confdefs.h. */
39603
39604
39605 $curl_includes_string
39606
39607int main (void)
39608{
39609
39610 if(0 != strnicmp(0, 0))
39611 return 1;
39612
39613 ;
39614 return 0;
39615}
39616
39617_ACEOF
39618if ac_fn_c_try_compile "$LINENO"; then :
39619
39620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39621$as_echo "yes" >&6; }
39622 tst_compi_strnicmp="yes"
39623
39624else
39625
39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39627$as_echo "no" >&6; }
39628 tst_compi_strnicmp="no"
39629
39630fi
39631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39632 fi
39633 #
39634 if test "$tst_compi_strnicmp" = "yes"; then
39635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39636$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39637 if test "x$curl_disallow_strnicmp" != "xyes"; then
39638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39639$as_echo "yes" >&6; }
39640 tst_allow_strnicmp="yes"
39641 else
39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39643$as_echo "no" >&6; }
39644 tst_allow_strnicmp="no"
39645 fi
39646 fi
39647 #
39648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39649$as_echo_n "checking if strnicmp might be used... " >&6; }
39650 if test "$tst_links_strnicmp" = "yes" &&
39651 test "$tst_proto_strnicmp" = "yes" &&
39652 test "$tst_compi_strnicmp" = "yes" &&
39653 test "$tst_allow_strnicmp" = "yes"; then
39654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39655$as_echo "yes" >&6; }
39656
39657cat >>confdefs.h <<_ACEOF
39658#define HAVE_STRNICMP 1
39659_ACEOF
39660
39661 curl_cv_func_strnicmp="yes"
39662 else
39663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39664$as_echo "no" >&6; }
39665 curl_cv_func_strnicmp="no"
39666 fi
39667
39668
39669 #
39670 tst_links_strstr="unknown"
39671 tst_proto_strstr="unknown"
39672 tst_compi_strstr="unknown"
39673 tst_allow_strstr="unknown"
39674 #
39675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39676$as_echo_n "checking if strstr can be linked... " >&6; }
39677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39678/* end confdefs.h. */
39679
39680
39681#define strstr innocuous_strstr
39682#ifdef __STDC__
39683# include <limits.h>
39684#else
39685# include <assert.h>
39686#endif
39687#undef strstr
39688#ifdef __cplusplus
39689extern "C"
39690#endif
39691char strstr ();
39692#if defined __stub_strstr || defined __stub___strstr
39693choke me
39694#endif
39695
39696int main (void)
39697{
39698return strstr ();
39699 ;
39700 return 0;
39701}
39702
39703_ACEOF
39704if ac_fn_c_try_link "$LINENO"; then :
39705
39706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39707$as_echo "yes" >&6; }
39708 tst_links_strstr="yes"
39709
39710else
39711
39712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39713$as_echo "no" >&6; }
39714 tst_links_strstr="no"
39715
39716fi
39717rm -f core conftest.err conftest.$ac_objext \
39718 conftest$ac_exeext conftest.$ac_ext
39719 #
39720 if test "$tst_links_strstr" = "yes"; then
39721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39722$as_echo_n "checking if strstr is prototyped... " >&6; }
39723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39724/* end confdefs.h. */
39725
39726 $curl_includes_string
39727
39728_ACEOF
39729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39730 $EGREP "strstr" >/dev/null 2>&1; then :
39731
39732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39733$as_echo "yes" >&6; }
39734 tst_proto_strstr="yes"
39735
39736else
39737
39738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39739$as_echo "no" >&6; }
39740 tst_proto_strstr="no"
39741
39742fi
39743rm -f conftest*
39744
39745 fi
39746 #
39747 if test "$tst_proto_strstr" = "yes"; then
39748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39749$as_echo_n "checking if strstr is compilable... " >&6; }
39750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39751/* end confdefs.h. */
39752
39753
39754 $curl_includes_string
39755
39756int main (void)
39757{
39758
39759 if(0 != strstr(0, 0))
39760 return 1;
39761
39762 ;
39763 return 0;
39764}
39765
39766_ACEOF
39767if ac_fn_c_try_compile "$LINENO"; then :
39768
39769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39770$as_echo "yes" >&6; }
39771 tst_compi_strstr="yes"
39772
39773else
39774
39775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39776$as_echo "no" >&6; }
39777 tst_compi_strstr="no"
39778
39779fi
39780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39781 fi
39782 #
39783 if test "$tst_compi_strstr" = "yes"; then
39784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39785$as_echo_n "checking if strstr usage allowed... " >&6; }
39786 if test "x$curl_disallow_strstr" != "xyes"; then
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39788$as_echo "yes" >&6; }
39789 tst_allow_strstr="yes"
39790 else
39791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39792$as_echo "no" >&6; }
39793 tst_allow_strstr="no"
39794 fi
39795 fi
39796 #
39797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39798$as_echo_n "checking if strstr might be used... " >&6; }
39799 if test "$tst_links_strstr" = "yes" &&
39800 test "$tst_proto_strstr" = "yes" &&
39801 test "$tst_compi_strstr" = "yes" &&
39802 test "$tst_allow_strstr" = "yes"; then
39803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39804$as_echo "yes" >&6; }
39805
39806cat >>confdefs.h <<_ACEOF
39807#define HAVE_STRSTR 1
39808_ACEOF
39809
39810 curl_cv_func_strstr="yes"
39811 else
39812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39813$as_echo "no" >&6; }
39814 curl_cv_func_strstr="no"
39815 fi
39816
39817
39818 #
39819 tst_links_strtok_r="unknown"
39820 tst_proto_strtok_r="unknown"
39821 tst_compi_strtok_r="unknown"
39822 tst_allow_strtok_r="unknown"
39823 #
39824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39825$as_echo_n "checking if strtok_r can be linked... " >&6; }
39826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39827/* end confdefs.h. */
39828
39829
39830#define strtok_r innocuous_strtok_r
39831#ifdef __STDC__
39832# include <limits.h>
39833#else
39834# include <assert.h>
39835#endif
39836#undef strtok_r
39837#ifdef __cplusplus
39838extern "C"
39839#endif
39840char strtok_r ();
39841#if defined __stub_strtok_r || defined __stub___strtok_r
39842choke me
39843#endif
39844
39845int main (void)
39846{
39847return strtok_r ();
39848 ;
39849 return 0;
39850}
39851
39852_ACEOF
39853if ac_fn_c_try_link "$LINENO"; then :
39854
39855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39856$as_echo "yes" >&6; }
39857 tst_links_strtok_r="yes"
39858
39859else
39860
39861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39862$as_echo "no" >&6; }
39863 tst_links_strtok_r="no"
39864
39865fi
39866rm -f core conftest.err conftest.$ac_objext \
39867 conftest$ac_exeext conftest.$ac_ext
39868 #
39869 if test "$tst_links_strtok_r" = "yes"; then
39870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39871$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39873/* end confdefs.h. */
39874
39875 $curl_includes_string
39876
39877_ACEOF
39878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39879 $EGREP "strtok_r" >/dev/null 2>&1; then :
39880
39881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39882$as_echo "yes" >&6; }
39883 tst_proto_strtok_r="yes"
39884
39885else
39886
39887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39888$as_echo "no" >&6; }
39889 tst_proto_strtok_r="no"
39890
39891fi
39892rm -f conftest*
39893
39894 fi
39895 #
39896 if test "$tst_proto_strtok_r" = "yes"; then
39897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39898$as_echo_n "checking if strtok_r is compilable... " >&6; }
39899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39900/* end confdefs.h. */
39901
39902
39903 $curl_includes_string
39904
39905int main (void)
39906{
39907
39908 if(0 != strtok_r(0, 0, 0))
39909 return 1;
39910
39911 ;
39912 return 0;
39913}
39914
39915_ACEOF
39916if ac_fn_c_try_compile "$LINENO"; then :
39917
39918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39919$as_echo "yes" >&6; }
39920 tst_compi_strtok_r="yes"
39921
39922else
39923
39924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39925$as_echo "no" >&6; }
39926 tst_compi_strtok_r="no"
39927
39928fi
39929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39930 fi
39931 #
39932 if test "$tst_compi_strtok_r" = "yes"; then
39933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39934$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39935 if test "x$curl_disallow_strtok_r" != "xyes"; then
39936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39937$as_echo "yes" >&6; }
39938 tst_allow_strtok_r="yes"
39939 else
39940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39941$as_echo "no" >&6; }
39942 tst_allow_strtok_r="no"
39943 fi
39944 fi
39945 #
39946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39947$as_echo_n "checking if strtok_r might be used... " >&6; }
39948 if test "$tst_links_strtok_r" = "yes" &&
39949 test "$tst_proto_strtok_r" = "yes" &&
39950 test "$tst_compi_strtok_r" = "yes" &&
39951 test "$tst_allow_strtok_r" = "yes"; then
39952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39953$as_echo "yes" >&6; }
39954
39955cat >>confdefs.h <<_ACEOF
39956#define HAVE_STRTOK_R 1
39957_ACEOF
39958
39959 curl_cv_func_strtok_r="yes"
39960 else
39961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39962$as_echo "no" >&6; }
39963 curl_cv_func_strtok_r="no"
39964 fi
39965
39966
39967 #
39968 tst_links_strtoll="unknown"
39969 tst_proto_strtoll="unknown"
39970 tst_compi_strtoll="unknown"
39971 tst_allow_strtoll="unknown"
39972 #
39973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39974$as_echo_n "checking if strtoll can be linked... " >&6; }
39975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39976/* end confdefs.h. */
39977
39978
39979#define strtoll innocuous_strtoll
39980#ifdef __STDC__
39981# include <limits.h>
39982#else
39983# include <assert.h>
39984#endif
39985#undef strtoll
39986#ifdef __cplusplus
39987extern "C"
39988#endif
39989char strtoll ();
39990#if defined __stub_strtoll || defined __stub___strtoll
39991choke me
39992#endif
39993
39994int main (void)
39995{
39996return strtoll ();
39997 ;
39998 return 0;
39999}
40000
40001_ACEOF
40002if ac_fn_c_try_link "$LINENO"; then :
40003
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40005$as_echo "yes" >&6; }
40006 tst_links_strtoll="yes"
40007
40008else
40009
40010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40011$as_echo "no" >&6; }
40012 tst_links_strtoll="no"
40013
40014fi
40015rm -f core conftest.err conftest.$ac_objext \
40016 conftest$ac_exeext conftest.$ac_ext
40017 #
40018 if test "$tst_links_strtoll" = "yes"; then
40019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
40020$as_echo_n "checking if strtoll is prototyped... " >&6; }
40021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40022/* end confdefs.h. */
40023
40024 $curl_includes_stdlib
40025
40026_ACEOF
40027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40028 $EGREP "strtoll" >/dev/null 2>&1; then :
40029
40030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40031$as_echo "yes" >&6; }
40032 tst_proto_strtoll="yes"
40033
40034else
40035
40036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037$as_echo "no" >&6; }
40038 tst_proto_strtoll="no"
40039
40040fi
40041rm -f conftest*
40042
40043 fi
40044 #
40045 if test "$tst_proto_strtoll" = "yes"; then
40046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
40047$as_echo_n "checking if strtoll is compilable... " >&6; }
40048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40049/* end confdefs.h. */
40050
40051
40052 $curl_includes_stdlib
40053
40054int main (void)
40055{
40056
40057 if(0 != strtoll(0, 0, 0))
40058 return 1;
40059
40060 ;
40061 return 0;
40062}
40063
40064_ACEOF
40065if ac_fn_c_try_compile "$LINENO"; then :
40066
40067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40068$as_echo "yes" >&6; }
40069 tst_compi_strtoll="yes"
40070
40071else
40072
40073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40074$as_echo "no" >&6; }
40075 tst_compi_strtoll="no"
40076
40077fi
40078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40079 fi
40080 #
40081 if test "$tst_compi_strtoll" = "yes"; then
40082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
40083$as_echo_n "checking if strtoll usage allowed... " >&6; }
40084 if test "x$curl_disallow_strtoll" != "xyes"; then
40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40086$as_echo "yes" >&6; }
40087 tst_allow_strtoll="yes"
40088 else
40089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40090$as_echo "no" >&6; }
40091 tst_allow_strtoll="no"
40092 fi
40093 fi
40094 #
40095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
40096$as_echo_n "checking if strtoll might be used... " >&6; }
40097 if test "$tst_links_strtoll" = "yes" &&
40098 test "$tst_proto_strtoll" = "yes" &&
40099 test "$tst_compi_strtoll" = "yes" &&
40100 test "$tst_allow_strtoll" = "yes"; then
40101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40102$as_echo "yes" >&6; }
40103
40104cat >>confdefs.h <<_ACEOF
40105#define HAVE_STRTOLL 1
40106_ACEOF
40107
40108 curl_cv_func_strtoll="yes"
40109 else
40110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40111$as_echo "no" >&6; }
40112 curl_cv_func_strtoll="no"
40113 fi
40114
40115
40116curl_includes_sys_uio="\
40117/* includes start */
40118#ifdef HAVE_SYS_TYPES_H
40119# include <sys/types.h>
40120#endif
40121#ifdef HAVE_SYS_UIO_H
40122# include <sys/uio.h>
40123#endif
40124/* includes end */"
40125 for ac_header in sys/types.h sys/uio.h
40126do :
40127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
40129"
40130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40131 cat >>confdefs.h <<_ACEOF
40132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40133_ACEOF
40134
40135fi
40136
40137done
40138
40139
40140
40141 #
40142 tst_links_writev="unknown"
40143 tst_proto_writev="unknown"
40144 tst_compi_writev="unknown"
40145 tst_allow_writev="unknown"
40146 #
40147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
40148$as_echo_n "checking if writev can be linked... " >&6; }
40149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40150/* end confdefs.h. */
40151
40152
40153#define writev innocuous_writev
40154#ifdef __STDC__
40155# include <limits.h>
40156#else
40157# include <assert.h>
40158#endif
40159#undef writev
40160#ifdef __cplusplus
40161extern "C"
40162#endif
40163char writev ();
40164#if defined __stub_writev || defined __stub___writev
40165choke me
40166#endif
40167
40168int main (void)
40169{
40170return writev ();
40171 ;
40172 return 0;
40173}
40174
40175_ACEOF
40176if ac_fn_c_try_link "$LINENO"; then :
40177
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40179$as_echo "yes" >&6; }
40180 tst_links_writev="yes"
40181
40182else
40183
40184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40185$as_echo "no" >&6; }
40186 tst_links_writev="no"
40187
40188fi
40189rm -f core conftest.err conftest.$ac_objext \
40190 conftest$ac_exeext conftest.$ac_ext
40191 #
40192 if test "$tst_links_writev" = "yes"; then
40193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
40194$as_echo_n "checking if writev is prototyped... " >&6; }
40195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40196/* end confdefs.h. */
40197
40198 $curl_includes_sys_uio
40199
40200_ACEOF
40201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40202 $EGREP "writev" >/dev/null 2>&1; then :
40203
40204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40205$as_echo "yes" >&6; }
40206 tst_proto_writev="yes"
40207
40208else
40209
40210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40211$as_echo "no" >&6; }
40212 tst_proto_writev="no"
40213
40214fi
40215rm -f conftest*
40216
40217 fi
40218 #
40219 if test "$tst_proto_writev" = "yes"; then
40220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40221$as_echo_n "checking if writev is compilable... " >&6; }
40222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40223/* end confdefs.h. */
40224
40225
40226 $curl_includes_sys_uio
40227
40228int main (void)
40229{
40230
40231 if(0 != writev(0, 0, 0))
40232 return 1;
40233
40234 ;
40235 return 0;
40236}
40237
40238_ACEOF
40239if ac_fn_c_try_compile "$LINENO"; then :
40240
40241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40242$as_echo "yes" >&6; }
40243 tst_compi_writev="yes"
40244
40245else
40246
40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40248$as_echo "no" >&6; }
40249 tst_compi_writev="no"
40250
40251fi
40252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40253 fi
40254 #
40255 if test "$tst_compi_writev" = "yes"; then
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40257$as_echo_n "checking if writev usage allowed... " >&6; }
40258 if test "x$curl_disallow_writev" != "xyes"; then
40259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40260$as_echo "yes" >&6; }
40261 tst_allow_writev="yes"
40262 else
40263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40264$as_echo "no" >&6; }
40265 tst_allow_writev="no"
40266 fi
40267 fi
40268 #
40269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40270$as_echo_n "checking if writev might be used... " >&6; }
40271 if test "$tst_links_writev" = "yes" &&
40272 test "$tst_proto_writev" = "yes" &&
40273 test "$tst_compi_writev" = "yes" &&
40274 test "$tst_allow_writev" = "yes"; then
40275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40276$as_echo "yes" >&6; }
40277
40278cat >>confdefs.h <<_ACEOF
40279#define HAVE_WRITEV 1
40280_ACEOF
40281
40282 curl_cv_func_writev="yes"
40283 else
40284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40285$as_echo "no" >&6; }
40286 curl_cv_func_writev="no"
40287 fi
40288
40289
40290case $host in
40291 *msdosdjgpp)
40292 ac_cv_func_pipe=no
40293 skipcheck_pipe=yes
40294 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40295$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40296 ;;
40297esac
40298
Elliott Hughes72d948d2018-08-03 14:37:21 -070040299ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40300 #include <sys/types.h>
40301"
40302if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40303 ac_have_decl=1
40304else
40305 ac_have_decl=0
40306fi
40307
40308cat >>confdefs.h <<_ACEOF
40309#define HAVE_DECL_GETPWUID_R $ac_have_decl
40310_ACEOF
40311if test $ac_have_decl = 1; then :
40312
40313else
40314
40315$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40316
40317fi
40318
40319
40320
40321for ac_func in fnmatch \
40322 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040323 getpass_r \
40324 getppid \
40325 getpwuid \
40326 getpwuid_r \
40327 getrlimit \
40328 gettimeofday \
40329 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040330 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040331 pipe \
40332 setlocale \
40333 setmode \
40334 setrlimit \
40335 utime \
40336 utimes
40337
40338do :
40339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40340ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40341if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40342 cat >>confdefs.h <<_ACEOF
40343#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40344_ACEOF
40345
40346
40347else
40348
40349 func="$ac_func"
40350 eval skipcheck=\$skipcheck_$func
40351 if test "x$skipcheck" != "xyes"; then
40352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40353$as_echo_n "checking deeper for $func... " >&6; }
40354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40355/* end confdefs.h. */
40356
40357
40358
40359int main (void)
40360{
40361
40362 $func ();
40363
40364 ;
40365 return 0;
40366}
40367
40368_ACEOF
40369if ac_fn_c_try_link "$LINENO"; then :
40370
40371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40372$as_echo "yes" >&6; }
40373 eval "ac_cv_func_$func=yes"
40374
40375cat >>confdefs.h <<_ACEOF
40376#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40377_ACEOF
40378
40379
40380else
40381
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40383$as_echo "but still no" >&6; }
40384
40385fi
40386rm -f core conftest.err conftest.$ac_objext \
40387 conftest$ac_exeext conftest.$ac_ext
40388 fi
40389
40390fi
40391done
40392
40393
Elliott Hughes82be86d2017-09-20 17:00:17 -070040394if test "$ipv6" = "yes"; then
40395 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40396
40397$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40398
40399 IPV6_ENABLED=1
40400
40401 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040402fi
40403
40404
40405 #
40406 tst_method="unknown"
40407
40408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40409$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40410 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40411 tst_method="fcntl O_NONBLOCK"
40412 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40413 tst_method="ioctl FIONBIO"
40414 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40415 tst_method="ioctlsocket FIONBIO"
40416 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40417 tst_method="IoctlSocket FIONBIO"
40418 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40419 tst_method="setsockopt SO_NONBLOCK"
40420 fi
40421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40422$as_echo "$tst_method" >&6; }
40423 if test "$tst_method" = "unknown"; then
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40425$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40426 fi
40427
40428
40429
40430# Extract the first word of "perl", so it can be a program name with args.
40431set dummy perl; ac_word=$2
40432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40433$as_echo_n "checking for $ac_word... " >&6; }
40434if ${ac_cv_path_PERL+:} false; then :
40435 $as_echo_n "(cached) " >&6
40436else
40437 case $PERL in
40438 [\\/]* | ?:[\\/]*)
40439 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40440 ;;
40441 *)
40442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40443as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40444for as_dir in $as_dummy
40445do
40446 IFS=$as_save_IFS
40447 test -z "$as_dir" && as_dir=.
40448 for ac_exec_ext in '' $ac_executable_extensions; do
40449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40450 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40452 break 2
40453 fi
40454done
40455 done
40456IFS=$as_save_IFS
40457
40458 ;;
40459esac
40460fi
40461PERL=$ac_cv_path_PERL
40462if test -n "$PERL"; then
40463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40464$as_echo "$PERL" >&6; }
40465else
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40467$as_echo "no" >&6; }
40468fi
40469
40470
40471
40472
40473for ac_prog in gnroff nroff
40474do
40475 # Extract the first word of "$ac_prog", so it can be a program name with args.
40476set dummy $ac_prog; ac_word=$2
40477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40478$as_echo_n "checking for $ac_word... " >&6; }
40479if ${ac_cv_path_NROFF+:} false; then :
40480 $as_echo_n "(cached) " >&6
40481else
40482 case $NROFF in
40483 [\\/]* | ?:[\\/]*)
40484 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40485 ;;
40486 *)
40487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40488as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40489for as_dir in $as_dummy
40490do
40491 IFS=$as_save_IFS
40492 test -z "$as_dir" && as_dir=.
40493 for ac_exec_ext in '' $ac_executable_extensions; do
40494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40495 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40497 break 2
40498 fi
40499done
40500 done
40501IFS=$as_save_IFS
40502
40503 ;;
40504esac
40505fi
40506NROFF=$ac_cv_path_NROFF
40507if test -n "$NROFF"; then
40508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40509$as_echo "$NROFF" >&6; }
40510else
40511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40512$as_echo "no" >&6; }
40513fi
40514
40515
40516 test -n "$NROFF" && break
40517done
40518
40519
40520
40521if test -n "$NROFF"; then
40522
40523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40524$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40525 MANOPT="-man"
40526 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40527 if test -z "$mancheck"; then
40528 MANOPT="-mandoc"
40529 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40530 if test -z "$mancheck"; then
40531 MANOPT=""
40532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40533$as_echo "failed" >&6; }
40534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40535$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40536 else
40537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40538$as_echo "$MANOPT" >&6; }
40539 fi
40540 else
40541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40542$as_echo "$MANOPT" >&6; }
40543 fi
40544
40545fi
40546
40547if test -z "$MANOPT"
40548then
40549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40550$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40551 USE_MANUAL="no";
40552fi
40553
40554
40555if test "$USE_MANUAL" = "1"; then
40556
40557$as_echo "#define USE_MANUAL 1" >>confdefs.h
40558
40559 curl_manual_msg="enabled"
40560fi
40561
40562 if test x"$USE_MANUAL" = x1; then
40563 USE_MANUAL_TRUE=
40564 USE_MANUAL_FALSE='#'
40565else
40566 USE_MANUAL_TRUE='#'
40567 USE_MANUAL_FALSE=
40568fi
40569
40570
40571
40572
40573
40574 #
40575 if test "$want_ares" = "yes"; then
40576 clean_CPPFLAGS="$CPPFLAGS"
40577 clean_LDFLAGS="$LDFLAGS"
40578 clean_LIBS="$LIBS"
40579 embedded_ares="unknown"
40580 configure_runpath=`pwd`
40581 embedded_ares_builddir="$configure_runpath/ares"
40582 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040583 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40584
40585 if test -n "$PKG_CONFIG"; then
40586 PKGCONFIG="$PKG_CONFIG"
40587 else
40588 if test -n "$ac_tool_prefix"; then
40589 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40590set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40592$as_echo_n "checking for $ac_word... " >&6; }
40593if ${ac_cv_path_PKGCONFIG+:} false; then :
40594 $as_echo_n "(cached) " >&6
40595else
40596 case $PKGCONFIG in
40597 [\\/]* | ?:[\\/]*)
40598 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40599 ;;
40600 *)
40601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40602as_dummy="$PATH:/usr/bin:/usr/local/bin"
40603for as_dir in $as_dummy
40604do
40605 IFS=$as_save_IFS
40606 test -z "$as_dir" && as_dir=.
40607 for ac_exec_ext in '' $ac_executable_extensions; do
40608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40609 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40611 break 2
40612 fi
40613done
40614 done
40615IFS=$as_save_IFS
40616
40617 ;;
40618esac
40619fi
40620PKGCONFIG=$ac_cv_path_PKGCONFIG
40621if test -n "$PKGCONFIG"; then
40622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40623$as_echo "$PKGCONFIG" >&6; }
40624else
40625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40626$as_echo "no" >&6; }
40627fi
40628
40629
40630fi
40631if test -z "$ac_cv_path_PKGCONFIG"; then
40632 ac_pt_PKGCONFIG=$PKGCONFIG
40633 # Extract the first word of "pkg-config", so it can be a program name with args.
40634set dummy pkg-config; ac_word=$2
40635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40636$as_echo_n "checking for $ac_word... " >&6; }
40637if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40638 $as_echo_n "(cached) " >&6
40639else
40640 case $ac_pt_PKGCONFIG in
40641 [\\/]* | ?:[\\/]*)
40642 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40643 ;;
40644 *)
40645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40646as_dummy="$PATH:/usr/bin:/usr/local/bin"
40647for as_dir in $as_dummy
40648do
40649 IFS=$as_save_IFS
40650 test -z "$as_dir" && as_dir=.
40651 for ac_exec_ext in '' $ac_executable_extensions; do
40652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40653 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40655 break 2
40656 fi
40657done
40658 done
40659IFS=$as_save_IFS
40660
40661 ;;
40662esac
40663fi
40664ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40665if test -n "$ac_pt_PKGCONFIG"; then
40666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40667$as_echo "$ac_pt_PKGCONFIG" >&6; }
40668else
40669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40670$as_echo "no" >&6; }
40671fi
40672
40673 if test "x$ac_pt_PKGCONFIG" = x; then
40674 PKGCONFIG="no"
40675 else
40676 case $cross_compiling:$ac_tool_warned in
40677yes:)
40678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40680ac_tool_warned=yes ;;
40681esac
40682 PKGCONFIG=$ac_pt_PKGCONFIG
40683 fi
40684else
40685 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40686fi
40687
40688 fi
40689
40690 if test "x$PKGCONFIG" != "xno"; then
40691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40692$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40693 itexists=`
40694 if test -n "$ARES_PCDIR"; then
40695 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40696 export PKG_CONFIG_LIBDIR
40697 fi
40698 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40699
40700 if test -z "$itexists"; then
40701 PKGCONFIG="no"
40702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40703$as_echo "no" >&6; }
40704 else
40705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40706$as_echo "found" >&6; }
40707 fi
40708 fi
40709
40710 if test "$PKGCONFIG" != "no" ; then
40711 ares_LIBS=`
40712 if test -n "$ARES_PCDIR"; then
40713 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40714 export PKG_CONFIG_LIBDIR
40715 fi
40716
40717 $PKGCONFIG --libs-only-l libcares`
40718 ares_LDFLAGS=`
40719 if test -n "$ARES_PCDIR"; then
40720 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40721 export PKG_CONFIG_LIBDIR
40722 fi
40723
40724 $PKGCONFIG --libs-only-L libcares`
40725 ares_CPPFLAGS=`
40726 if test -n "$ARES_PCDIR"; then
40727 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40728 export PKG_CONFIG_LIBDIR
40729 fi
40730
40731 $PKGCONFIG --cflags-only-I libcares`
40732 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40733$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40734 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40735$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40736 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40737$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40738 else
40739 ares_CPPFLAGS="-I$want_ares_path/include"
40740 ares_LDFLAGS="-L$want_ares_path/lib"
40741 ares_LIBS="-lcares"
40742 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040743 else
40744 if test -d "$srcdir/ares"; then
40745 embedded_ares="yes"
40746 subdirs="$subdirs ares"
40747
40748 ares_CPPFLAGS=""
40749 ares_LDFLAGS="-L$embedded_ares_builddir"
40750 ares_LIBS="-lcares"
40751 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040752
40753 if test -n "$PKG_CONFIG"; then
40754 PKGCONFIG="$PKG_CONFIG"
40755 else
40756 if test -n "$ac_tool_prefix"; then
40757 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40758set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40760$as_echo_n "checking for $ac_word... " >&6; }
40761if ${ac_cv_path_PKGCONFIG+:} false; then :
40762 $as_echo_n "(cached) " >&6
40763else
40764 case $PKGCONFIG in
40765 [\\/]* | ?:[\\/]*)
40766 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40767 ;;
40768 *)
40769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40770as_dummy="$PATH:/usr/bin:/usr/local/bin"
40771for as_dir in $as_dummy
40772do
40773 IFS=$as_save_IFS
40774 test -z "$as_dir" && as_dir=.
40775 for ac_exec_ext in '' $ac_executable_extensions; do
40776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40777 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40779 break 2
40780 fi
40781done
40782 done
40783IFS=$as_save_IFS
40784
40785 ;;
40786esac
40787fi
40788PKGCONFIG=$ac_cv_path_PKGCONFIG
40789if test -n "$PKGCONFIG"; then
40790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40791$as_echo "$PKGCONFIG" >&6; }
40792else
40793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40794$as_echo "no" >&6; }
40795fi
40796
40797
40798fi
40799if test -z "$ac_cv_path_PKGCONFIG"; then
40800 ac_pt_PKGCONFIG=$PKGCONFIG
40801 # Extract the first word of "pkg-config", so it can be a program name with args.
40802set dummy pkg-config; ac_word=$2
40803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40804$as_echo_n "checking for $ac_word... " >&6; }
40805if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40806 $as_echo_n "(cached) " >&6
40807else
40808 case $ac_pt_PKGCONFIG in
40809 [\\/]* | ?:[\\/]*)
40810 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40811 ;;
40812 *)
40813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40814as_dummy="$PATH:/usr/bin:/usr/local/bin"
40815for as_dir in $as_dummy
40816do
40817 IFS=$as_save_IFS
40818 test -z "$as_dir" && as_dir=.
40819 for ac_exec_ext in '' $ac_executable_extensions; do
40820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40821 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40823 break 2
40824 fi
40825done
40826 done
40827IFS=$as_save_IFS
40828
40829 ;;
40830esac
40831fi
40832ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40833if test -n "$ac_pt_PKGCONFIG"; then
40834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40835$as_echo "$ac_pt_PKGCONFIG" >&6; }
40836else
40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40838$as_echo "no" >&6; }
40839fi
40840
40841 if test "x$ac_pt_PKGCONFIG" = x; then
40842 PKGCONFIG="no"
40843 else
40844 case $cross_compiling:$ac_tool_warned in
40845yes:)
40846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40848ac_tool_warned=yes ;;
40849esac
40850 PKGCONFIG=$ac_pt_PKGCONFIG
40851 fi
40852else
40853 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40854fi
40855
40856 fi
40857
40858 if test "x$PKGCONFIG" != "xno"; then
40859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40860$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40861 itexists=`
40862 if test -n ""; then
40863 PKG_CONFIG_LIBDIR=""
40864 export PKG_CONFIG_LIBDIR
40865 fi
40866 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40867
40868 if test -z "$itexists"; then
40869 PKGCONFIG="no"
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40871$as_echo "no" >&6; }
40872 else
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40874$as_echo "found" >&6; }
40875 fi
40876 fi
40877
40878 if test "$PKGCONFIG" != "no" ; then
40879 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40880 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40881 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40883$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40884 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40885$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40886 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40887$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40888 else
40889 ares_CPPFLAGS=""
40890 ares_LDFLAGS=""
40891 ares_LIBS="-lcares"
40892 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040893 fi
40894 fi
40895 #
40896 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40897 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40898 LIBS="$ares_LIBS $clean_LIBS"
40899 #
40900 if test "$embedded_ares" != "yes"; then
40901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40902$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40904/* end confdefs.h. */
40905
40906
40907#include <ares.h>
40908 /* set of dummy functions in case c-ares was built with debug */
40909 void curl_dofree() { }
40910 void curl_sclose() { }
40911 void curl_domalloc() { }
40912 void curl_docalloc() { }
40913 void curl_socket() { }
40914
40915int main (void)
40916{
40917
40918 ares_channel channel;
40919 ares_cancel(channel); /* added in 1.2.0 */
40920 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40921 ares_dup(&channel, channel); /* added in 1.6.0 */
40922
40923 ;
40924 return 0;
40925}
40926
40927_ACEOF
40928if ac_fn_c_try_link "$LINENO"; then :
40929
40930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40931$as_echo "yes" >&6; }
40932
40933else
40934
40935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40936$as_echo "no" >&6; }
40937 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40938 CPPFLAGS="$clean_CPPFLAGS"
40939 LDFLAGS="$clean_LDFLAGS"
40940 LIBS="$clean_LIBS"
40941 # prevent usage
40942 want_ares="no"
40943
40944fi
40945rm -f core conftest.err conftest.$ac_objext \
40946 conftest$ac_exeext conftest.$ac_ext
40947 fi
40948 if test "$want_ares" = "yes"; then
40949
40950$as_echo "#define USE_ARES 1" >>confdefs.h
40951
40952 USE_ARES=1
40953
40954 curl_res_msg="c-ares"
40955 fi
40956 fi
40957
40958 if test x$embedded_ares = xyes; then
40959 USE_EMBEDDED_ARES_TRUE=
40960 USE_EMBEDDED_ARES_FALSE='#'
40961else
40962 USE_EMBEDDED_ARES_TRUE='#'
40963 USE_EMBEDDED_ARES_FALSE=
40964fi
40965
40966
40967if test "x$curl_cv_native_windows" != "xyes" &&
40968 test "x$enable_shared" = "xyes"; then
40969 build_libhostname=yes
40970else
40971 build_libhostname=no
40972fi
40973 if test x$build_libhostname = xyes; then
40974 BUILD_LIBHOSTNAME_TRUE=
40975 BUILD_LIBHOSTNAME_FALSE='#'
40976else
40977 BUILD_LIBHOSTNAME_TRUE='#'
40978 BUILD_LIBHOSTNAME_FALSE=
40979fi
40980
40981
40982if test "x$want_ares" != xyes; then
40983
40984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40985$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40986 OPT_THRES="default"
40987 # Check whether --enable-threaded_resolver was given.
40988if test "${enable_threaded_resolver+set}" = set; then :
40989 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40990fi
40991
40992 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040993 no)
40994 want_thres="no"
40995 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040996 *)
40997 want_thres="yes"
40998 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040999 esac
41000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
41001$as_echo "$want_thres" >&6; }
41002
41003fi
41004
41005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
41006$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
41007# Check whether --enable-pthreads was given.
41008if test "${enable_pthreads+set}" = set; then :
41009 enableval=$enable_pthreads; case "$enableval" in
41010 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41011$as_echo "no" >&6; }
41012 want_pthreads=no
41013 ;;
41014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41015$as_echo "yes" >&6; }
41016 want_pthreads=yes
41017 ;;
41018 esac
41019else
41020
41021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41022$as_echo "auto" >&6; }
41023 want_pthreads=auto
41024
41025
41026fi
41027
41028
41029if test "$want_pthreads" != "no"; then
41030 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
41031 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
41032 fi
41033 if test "$dontwant_rt" != "no"; then
41034 if test "$want_pthreads" = "yes"; then
41035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
41036$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
41037 fi
41038 want_pthreads=no
41039 fi
41040fi
41041
41042if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
41043 want_pthreads=no
41044fi
41045
41046if test "$want_pthreads" != "no"; then
41047 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
41048if test "x$ac_cv_header_pthread_h" = xyes; then :
41049
41050$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
41051
41052 save_CFLAGS="$CFLAGS"
41053
41054 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
41055if test "x$ac_cv_func_pthread_create" = xyes; then :
41056 USE_THREADS_POSIX=1
41057fi
41058
41059
Elliott Hughesa93fb052018-12-12 14:22:48 -080041060 case $host in
41061 *-hp-hpux*)
41062 USE_THREADS_POSIX=""
41063 ;;
41064 *)
41065 ;;
41066 esac
41067
Elliott Hughes82be86d2017-09-20 17:00:17 -070041068 if test "$USE_THREADS_POSIX" != "1"
41069 then
41070 CFLAGS="$CFLAGS -pthread"
41071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
41072$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
41073if ${ac_cv_lib_pthread_pthread_create+:} false; then :
41074 $as_echo_n "(cached) " >&6
41075else
41076 ac_check_lib_save_LIBS=$LIBS
41077LIBS="-lpthread $LIBS"
41078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41079/* end confdefs.h. */
41080
41081
41082#ifdef __cplusplus
41083extern "C"
41084#endif
41085char pthread_create ();
41086int main (void)
41087{
41088return pthread_create ();
41089 ;
41090 return 0;
41091}
41092_ACEOF
41093if ac_fn_c_try_link "$LINENO"; then :
41094 ac_cv_lib_pthread_pthread_create=yes
41095else
41096 ac_cv_lib_pthread_pthread_create=no
41097fi
41098rm -f core conftest.err conftest.$ac_objext \
41099 conftest$ac_exeext conftest.$ac_ext
41100LIBS=$ac_check_lib_save_LIBS
41101fi
41102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
41103$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
41104if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
41105 USE_THREADS_POSIX=1
41106else
41107 CFLAGS="$save_CFLAGS"
41108fi
41109
41110 fi
41111
41112 if test "x$USE_THREADS_POSIX" = "x1"
41113 then
41114
41115$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
41116
41117 curl_res_msg="POSIX threaded"
41118 fi
41119
41120fi
41121
41122
41123fi
41124
41125if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
41126 if test "$want_pthreads" = "yes"; then
41127 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
41128 fi
41129 if test "$curl_cv_native_windows" = "yes"; then
41130 USE_THREADS_WIN32=1
41131
41132$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41133
41134 curl_res_msg="Win32 threaded"
41135 else
41136 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41137 fi
41138fi
41139
41140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41141$as_echo_n "checking whether to enable verbose strings... " >&6; }
41142# Check whether --enable-verbose was given.
41143if test "${enable_verbose+set}" = set; then :
41144 enableval=$enable_verbose; case "$enableval" in
41145 no)
41146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41147$as_echo "no" >&6; }
41148
41149$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41150
41151 curl_verbose_msg="no"
41152 ;;
41153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41154$as_echo "yes" >&6; }
41155 ;;
41156 esac
41157else
41158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41159$as_echo "yes" >&6; }
41160
41161fi
41162
41163
41164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41165$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41166# Check whether --enable-sspi was given.
41167if test "${enable_sspi+set}" = set; then :
41168 enableval=$enable_sspi; case "$enableval" in
41169 yes)
41170 if test "$curl_cv_native_windows" = "yes"; then
41171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41172$as_echo "yes" >&6; }
41173
41174$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41175
41176 USE_WINDOWS_SSPI=1
41177
41178 curl_sspi_msg="enabled"
41179 else
41180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41181$as_echo "no" >&6; }
41182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41183$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41184 fi
41185 ;;
41186 *)
41187 if test "x$WINSSL_ENABLED" = "x1"; then
41188 # --with-winssl implies --enable-sspi
41189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41190$as_echo "yes" >&6; }
41191 else
41192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41193$as_echo "no" >&6; }
41194 fi
41195 ;;
41196 esac
41197else
41198 if test "x$WINSSL_ENABLED" = "x1"; then
41199 # --with-winssl implies --enable-sspi
41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41201$as_echo "yes" >&6; }
41202 else
41203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41204$as_echo "no" >&6; }
41205 fi
41206
41207fi
41208
41209
41210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41211$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41212# Check whether --enable-crypto-auth was given.
41213if test "${enable_crypto_auth+set}" = set; then :
41214 enableval=$enable_crypto_auth; case "$enableval" in
41215 no)
41216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41217$as_echo "no" >&6; }
41218
41219$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41220
41221 CURL_DISABLE_CRYPTO_AUTH=1
41222 ;;
41223 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41224$as_echo "yes" >&6; }
41225 ;;
41226 esac
41227else
41228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41229$as_echo "yes" >&6; }
41230
41231fi
41232
41233
41234
41235 OPT_NTLM_WB="default"
41236 # Check whether --enable-ntlm-wb was given.
41237if test "${enable_ntlm_wb+set}" = set; then :
41238 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41239fi
41240
41241 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41242 case "$OPT_NTLM_WB" in
41243 no)
41244 want_ntlm_wb="no"
41245 ;;
41246 default)
41247 want_ntlm_wb="yes"
41248 ;;
41249 *)
41250 want_ntlm_wb="yes"
41251 if test -n "$enableval" && test "$enableval" != "yes"; then
41252 want_ntlm_wb_file="$enableval"
41253 fi
41254 ;;
41255 esac
41256
41257
41258
41259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41260$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41261 if test "$curl_cv_native_windows" = "yes" ||
41262 test "x$SSL_ENABLED" = "x"; then
41263 want_ntlm_wb_file=""
41264 want_ntlm_wb="no"
41265 fi
41266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41267$as_echo "$want_ntlm_wb" >&6; }
41268 if test "$want_ntlm_wb" = "yes"; then
41269
41270$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41271
41272
41273cat >>confdefs.h <<_ACEOF
41274#define NTLM_WB_FILE "$want_ntlm_wb_file"
41275_ACEOF
41276
41277 NTLM_WB_ENABLED=1
41278 fi
41279
41280
41281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41282$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41283# Check whether --enable-tls-srp was given.
41284if test "${enable_tls_srp+set}" = set; then :
41285 enableval=$enable_tls_srp; case "$enableval" in
41286 no)
41287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41288$as_echo "no" >&6; }
41289
41290$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41291
41292 want_tls_srp=no
41293 ;;
41294 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41295$as_echo "yes" >&6; }
41296 want_tls_srp=yes
41297 ;;
41298 esac
41299else
41300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41301$as_echo "yes" >&6; }
41302 want_tls_srp=yes
41303
41304fi
41305
41306
41307if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41308
41309$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41310
41311 USE_TLS_SRP=1
41312 curl_tls_srp_msg="enabled"
41313fi
41314
41315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41316$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41317# Check whether --enable-unix-sockets was given.
41318if test "${enable_unix_sockets+set}" = set; then :
41319 enableval=$enable_unix_sockets; case "$enableval" in
41320 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41321$as_echo "no" >&6; }
41322 want_unix_sockets=no
41323 ;;
41324 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41325$as_echo "yes" >&6; }
41326 want_unix_sockets=yes
41327 ;;
41328 esac
41329else
41330
41331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41332$as_echo "auto" >&6; }
41333 want_unix_sockets=auto
41334
41335
41336fi
41337
41338if test "x$want_unix_sockets" != "xno"; then
41339 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41340 #include <sys/un.h>
41341
41342"
41343if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41344
41345
41346$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41347
41348 USE_UNIX_SOCKETS=1
41349
41350 curl_unix_sockets_msg="enabled"
41351
41352else
41353
41354 if test "x$want_unix_sockets" = "xyes"; then
41355 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41356 fi
41357
41358fi
41359
41360fi
41361
41362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41363$as_echo_n "checking whether to enable support for cookies... " >&6; }
41364# Check whether --enable-cookies was given.
41365if test "${enable_cookies+set}" = set; then :
41366 enableval=$enable_cookies; case "$enableval" in
41367 no)
41368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41369$as_echo "no" >&6; }
41370
41371$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41372
41373 ;;
41374 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41375$as_echo "yes" >&6; }
41376 ;;
41377 esac
41378else
41379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41380$as_echo "yes" >&6; }
41381
41382fi
41383
41384
Haibo Huang65021c72019-03-27 15:37:23 -070041385curl_altsvc_msg="no (--enable-alt-svc)";
41386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
41387$as_echo_n "checking whether to support alt-svc... " >&6; }
41388# Check whether --enable-alt-svc was given.
41389if test "${enable_alt_svc+set}" = set; then :
41390 enableval=$enable_alt_svc; case "$enableval" in
41391 no)
41392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41393$as_echo "no" >&6; }
41394 ;;
41395 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41396$as_echo "yes" >&6; }
41397 curl_altsvc_msg="enabled";
41398 enable_altsvc="yes"
41399 experimental="alt-svc"
41400 ;;
41401 esac
41402else
41403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41404$as_echo "no" >&6; }
41405
41406fi
41407
41408
41409if test "$enable_altsvc" = "yes"; then
41410
41411$as_echo "#define USE_ALTSVC 1" >>confdefs.h
41412
41413 experimental="alt-svc"
41414fi
41415
Elliott Hughes82be86d2017-09-20 17:00:17 -070041416
41417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41418$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41419 CFLAG_CURL_SYMBOL_HIDING=""
41420 doing_symbol_hiding="no"
41421 if test x"$curl_cv_native_windows" != "xyes" &&
41422 test "$want_symbol_hiding" = "yes" &&
41423 test "$supports_symbol_hiding" = "yes"; then
41424 doing_symbol_hiding="yes"
41425 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41426
41427cat >>confdefs.h <<_ACEOF
41428#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41429_ACEOF
41430
41431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41432$as_echo "yes" >&6; }
41433 else
41434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41435$as_echo "no" >&6; }
41436 fi
41437 if test x$doing_symbol_hiding = xyes; then
41438 DOING_CURL_SYMBOL_HIDING_TRUE=
41439 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41440else
41441 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41442 DOING_CURL_SYMBOL_HIDING_FALSE=
41443fi
41444
41445
41446
41447
Elliott Hughes82be86d2017-09-20 17:00:17 -070041448LIBCURL_LIBS=$LIBS
41449
41450
41451
41452
41453
41454BLANK_AT_MAKETIME=
41455
41456
41457 if test x$cross_compiling = xyes; then
41458 CROSSCOMPILING_TRUE=
41459 CROSSCOMPILING_FALSE='#'
41460else
41461 CROSSCOMPILING_TRUE='#'
41462 CROSSCOMPILING_FALSE=
41463fi
41464
41465
41466ENABLE_SHARED="$enable_shared"
41467
41468
41469ENABLE_STATIC="$enable_static"
41470
41471
41472
41473
41474if test "x$OPENSSL_ENABLED" = "x1"; then
41475 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41476elif test -n "$SSL_ENABLED"; then
41477 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41478fi
41479if test "x$IPV6_ENABLED" = "x1"; then
41480 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41481fi
41482if test "x$USE_UNIX_SOCKETS" = "x1"; then
41483 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41484fi
41485if test "x$HAVE_LIBZ" = "x1"; then
41486 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41487fi
Alex Deymo486467e2017-12-19 19:04:07 +010041488if test "x$HAVE_BROTLI" = "x1"; then
41489 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41490fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041491if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41492 -o "x$USE_THREADS_WIN32" = "x1"; then
41493 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41494fi
41495if test "x$IDN_ENABLED" = "x1"; then
41496 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41497fi
41498if test "x$USE_WINDOWS_SSPI" = "x1"; then
41499 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41500fi
41501
41502if test "x$HAVE_GSSAPI" = "x1"; then
41503 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41504fi
41505
Haibo Huang65021c72019-03-27 15:37:23 -070041506if test "x$curl_psl_msg" = "xenabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041507 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41508fi
41509
Haibo Huang65021c72019-03-27 15:37:23 -070041510if test "x$enable_altsvc" = "xyes"; then
41511 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
41512fi
41513
Elliott Hughes82be86d2017-09-20 17:00:17 -070041514if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41515 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41516 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41517fi
41518
41519if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41520 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41521 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41522fi
41523
41524if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41525 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41526 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041527 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041528 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41529
41530 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41531 "x$NTLM_WB_ENABLED" = "x1"; then
41532 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41533 fi
41534 fi
41535fi
41536
41537if test "x$USE_TLS_SRP" = "x1"; then
41538 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41539fi
41540
41541if test "x$USE_NGHTTP2" = "x1"; then
41542 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41543fi
41544
Alex Deymo486467e2017-12-19 19:04:07 +010041545if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41546 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41547fi
41548
Elliott Hughes82be86d2017-09-20 17:00:17 -070041549if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41550 -o "x$NSS_ENABLED" = "x1"; then
41551 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41552fi
41553
41554
41555
41556if test "x$CURL_DISABLE_HTTP" != "x1"; then
41557 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41558 if test "x$SSL_ENABLED" = "x1"; then
41559 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41560 fi
41561fi
41562if test "x$CURL_DISABLE_FTP" != "x1"; then
41563 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41564 if test "x$SSL_ENABLED" = "x1"; then
41565 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41566 fi
41567fi
41568if test "x$CURL_DISABLE_FILE" != "x1"; then
41569 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41570fi
41571if test "x$CURL_DISABLE_TELNET" != "x1"; then
41572 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41573fi
41574if test "x$CURL_DISABLE_LDAP" != "x1"; then
41575 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41576 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41577 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41578 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41579 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41580 fi
41581 fi
41582fi
41583if test "x$CURL_DISABLE_DICT" != "x1"; then
41584 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41585fi
41586if test "x$CURL_DISABLE_TFTP" != "x1"; then
41587 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41588fi
41589if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41590 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41591fi
41592if test "x$CURL_DISABLE_POP3" != "x1"; then
41593 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41594 if test "x$SSL_ENABLED" = "x1"; then
41595 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41596 fi
41597fi
41598if test "x$CURL_DISABLE_IMAP" != "x1"; then
41599 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41600 if test "x$SSL_ENABLED" = "x1"; then
41601 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41602 fi
41603fi
41604if test "x$CURL_DISABLE_SMB" != "x1" \
41605 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41606 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41607 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041608 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041609 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41610 if test "x$SSL_ENABLED" = "x1"; then
41611 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41612 fi
41613fi
41614if test "x$CURL_DISABLE_SMTP" != "x1"; then
41615 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41616 if test "x$SSL_ENABLED" = "x1"; then
41617 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41618 fi
41619fi
41620if test "x$USE_LIBSSH2" = "x1"; then
41621 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41622 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41623fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041624if test "x$USE_LIBSSH" = "x1"; then
41625 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41626 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41627fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041628if test "x$CURL_DISABLE_RTSP" != "x1"; then
41629 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41630fi
41631if test "x$USE_LIBRTMP" = "x1"; then
41632 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41633fi
41634
41635SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41636
41637
41638
41639
41640squeeze CFLAGS
41641squeeze CPPFLAGS
41642squeeze DEFS
41643squeeze LDFLAGS
41644squeeze LIBS
41645
41646squeeze LIBCURL_LIBS
41647squeeze CURL_NETWORK_LIBS
41648squeeze CURL_NETWORK_AND_TIME_LIBS
41649
41650squeeze SUPPORT_FEATURES
41651squeeze SUPPORT_PROTOCOLS
41652
41653
41654
41655 xc_bad_var_libs=no
41656 for xc_word in $LIBS; do
41657 case "$xc_word" in
41658 -l* | --library=*)
41659 :
41660 ;;
41661 *)
41662 xc_bad_var_libs=yes
41663 ;;
41664 esac
41665 done
41666 if test $xc_bad_var_libs = yes; then
41667 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41668$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41669 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41670$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41671 fi
41672
41673
41674 xc_bad_var_ldflags=no
41675 for xc_word in $LDFLAGS; do
41676 case "$xc_word" in
41677 -D*)
41678 xc_bad_var_ldflags=yes
41679 ;;
41680 -U*)
41681 xc_bad_var_ldflags=yes
41682 ;;
41683 -I*)
41684 xc_bad_var_ldflags=yes
41685 ;;
41686 -l* | --library=*)
41687 xc_bad_var_ldflags=yes
41688 ;;
41689 esac
41690 done
41691 if test $xc_bad_var_ldflags = yes; then
41692 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41693$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41694 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41695 for xc_word in $LDFLAGS; do
41696 case "$xc_word" in
41697 -D*)
41698 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41699$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41700 ;;
41701 -U*)
41702 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41703$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41704 ;;
41705 -I*)
41706 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41707$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41708 ;;
41709 -l* | --library=*)
41710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41711$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41712 ;;
41713 esac
41714 done
41715 fi
41716
41717
41718 xc_bad_var_cppflags=no
41719 for xc_word in $CPPFLAGS; do
41720 case "$xc_word" in
41721 -rpath*)
41722 xc_bad_var_cppflags=yes
41723 ;;
41724 -L* | --library-path=*)
41725 xc_bad_var_cppflags=yes
41726 ;;
41727 -l* | --library=*)
41728 xc_bad_var_cppflags=yes
41729 ;;
41730 esac
41731 done
41732 if test $xc_bad_var_cppflags = yes; then
41733 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41734$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41735 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41736 for xc_word in $CPPFLAGS; do
41737 case "$xc_word" in
41738 -rpath*)
41739 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41740$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41741 ;;
41742 -L* | --library-path=*)
41743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41744$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41745 ;;
41746 -l* | --library=*)
41747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41748$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41749 ;;
41750 esac
41751 done
41752 fi
41753
41754
41755 xc_bad_var_cflags=no
41756 for xc_word in $CFLAGS; do
41757 case "$xc_word" in
41758 -D*)
41759 xc_bad_var_cflags=yes
41760 ;;
41761 -U*)
41762 xc_bad_var_cflags=yes
41763 ;;
41764 -I*)
41765 xc_bad_var_cflags=yes
41766 ;;
41767 -rpath*)
41768 xc_bad_var_cflags=yes
41769 ;;
41770 -L* | --library-path=*)
41771 xc_bad_var_cflags=yes
41772 ;;
41773 -l* | --library=*)
41774 xc_bad_var_cflags=yes
41775 ;;
41776 esac
41777 done
41778 if test $xc_bad_var_cflags = yes; then
41779 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41780$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41781 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41782 for xc_word in $CFLAGS; do
41783 case "$xc_word" in
41784 -D*)
41785 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41786$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41787 ;;
41788 -U*)
41789 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41790$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41791 ;;
41792 -I*)
41793 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41794$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41795 ;;
41796 -rpath*)
41797 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41798$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41799 ;;
41800 -L* | --library-path=*)
41801 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41802$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41803 ;;
41804 -l* | --library=*)
41805 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41806$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41807 ;;
41808 esac
41809 done
41810 fi
41811
41812 if test $xc_bad_var_libs = yes ||
41813 test $xc_bad_var_cflags = yes ||
41814 test $xc_bad_var_ldflags = yes ||
41815 test $xc_bad_var_cppflags = yes; then
41816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41817$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41818 fi
41819
41820
Elliott Hughes0128fe42018-02-27 14:57:55 -080041821SSL_BACKENDS=${ssl_backends}
41822
41823
Elliott Hughes82be86d2017-09-20 17:00:17 -070041824if test "x$want_curldebug_assumed" = "xyes" &&
41825 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41826 ac_configure_args="$ac_configure_args --enable-curldebug"
41827fi
41828
Haibo Huang21926d52019-01-08 14:27:10 -080041829ac_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 -070041830
41831cat >confcache <<\_ACEOF
41832# This file is a shell script that caches the results of configure
41833# tests run on this system so they can be shared between configure
41834# scripts and configure runs, see configure's option --config-cache.
41835# It is not useful on other systems. If it contains results you don't
41836# want to keep, you may remove or edit it.
41837#
41838# config.status only pays attention to the cache file if you give it
41839# the --recheck option to rerun configure.
41840#
41841# `ac_cv_env_foo' variables (set or unset) will be overridden when
41842# loading this file, other *unset* `ac_cv_foo' will be assigned the
41843# following values.
41844
41845_ACEOF
41846
41847# The following way of writing the cache mishandles newlines in values,
41848# but we know of no workaround that is simple, portable, and efficient.
41849# So, we kill variables containing newlines.
41850# Ultrix sh set writes to stderr and can't be redirected directly,
41851# and sets the high bit in the cache file unless we assign to the vars.
41852(
41853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41854 eval ac_val=\$$ac_var
41855 case $ac_val in #(
41856 *${as_nl}*)
41857 case $ac_var in #(
41858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41860 esac
41861 case $ac_var in #(
41862 _ | IFS | as_nl) ;; #(
41863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41864 *) { eval $ac_var=; unset $ac_var;} ;;
41865 esac ;;
41866 esac
41867 done
41868
41869 (set) 2>&1 |
41870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41871 *${as_nl}ac_space=\ *)
41872 # `set' does not quote correctly, so add quotes: double-quote
41873 # substitution turns \\\\ into \\, and sed turns \\ into \.
41874 sed -n \
41875 "s/'/'\\\\''/g;
41876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41877 ;; #(
41878 *)
41879 # `set' quotes correctly as required by POSIX, so do not add quotes.
41880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41881 ;;
41882 esac |
41883 sort
41884) |
41885 sed '
41886 /^ac_cv_env_/b end
41887 t clear
41888 :clear
41889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41890 t end
41891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41892 :end' >>confcache
41893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41894 if test -w "$cache_file"; then
41895 if test "x$cache_file" != "x/dev/null"; then
41896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41897$as_echo "$as_me: updating cache $cache_file" >&6;}
41898 if test ! -f "$cache_file" || test -h "$cache_file"; then
41899 cat confcache >"$cache_file"
41900 else
41901 case $cache_file in #(
41902 */* | ?:*)
41903 mv -f confcache "$cache_file"$$ &&
41904 mv -f "$cache_file"$$ "$cache_file" ;; #(
41905 *)
41906 mv -f confcache "$cache_file" ;;
41907 esac
41908 fi
41909 fi
41910 else
41911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41913 fi
41914fi
41915rm -f confcache
41916
41917test "x$prefix" = xNONE && prefix=$ac_default_prefix
41918# Let make expand exec_prefix.
41919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41920
41921DEFS=-DHAVE_CONFIG_H
41922
41923ac_libobjs=
41924ac_ltlibobjs=
41925U=
41926for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41927 # 1. Remove the extension, and $U if already installed.
41928 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41929 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41931 # will be set to the directory where LIBOBJS objects are built.
41932 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41933 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41934done
41935LIBOBJS=$ac_libobjs
41936
41937LTLIBOBJS=$ac_ltlibobjs
41938
41939
41940if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41941 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41942Usually this means the macro was only invoked conditionally." "$LINENO" 5
41943fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41945$as_echo_n "checking that generated files are newer than configure... " >&6; }
41946 if test -n "$am_sleep_pid"; then
41947 # Hide warnings about reused PIDs.
41948 wait $am_sleep_pid 2>/dev/null
41949 fi
41950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41951$as_echo "done" >&6; }
41952if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41953 as_fn_error $? "conditional \"AMDEP\" was never defined.
41954Usually this means the macro was only invoked conditionally." "$LINENO" 5
41955fi
41956if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41957 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41958Usually this means the macro was only invoked conditionally." "$LINENO" 5
41959fi
41960 if test -n "$EXEEXT"; then
41961 am__EXEEXT_TRUE=
41962 am__EXEEXT_FALSE='#'
41963else
41964 am__EXEEXT_TRUE='#'
41965 am__EXEEXT_FALSE=
41966fi
41967
41968if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41969 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41970Usually this means the macro was only invoked conditionally." "$LINENO" 5
41971fi
41972if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41973 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41974Usually this means the macro was only invoked conditionally." "$LINENO" 5
41975fi
41976if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41977 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41978Usually this means the macro was only invoked conditionally." "$LINENO" 5
41979fi
41980if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41981 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41982Usually this means the macro was only invoked conditionally." "$LINENO" 5
41983fi
41984if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41985 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41986Usually this means the macro was only invoked conditionally." "$LINENO" 5
41987fi
41988if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41989 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41990Usually this means the macro was only invoked conditionally." "$LINENO" 5
41991fi
41992if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41993 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41994Usually this means the macro was only invoked conditionally." "$LINENO" 5
41995fi
41996if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41997 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41998Usually this means the macro was only invoked conditionally." "$LINENO" 5
41999fi
42000if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
42001 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
42002Usually this means the macro was only invoked conditionally." "$LINENO" 5
42003fi
Alex Deymo486467e2017-12-19 19:04:07 +010042004if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
42005 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
42006Usually this means the macro was only invoked conditionally." "$LINENO" 5
42007fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070042008if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
42009 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
42010Usually this means the macro was only invoked conditionally." "$LINENO" 5
42011fi
42012if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
42013 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
42014Usually this means the macro was only invoked conditionally." "$LINENO" 5
42015fi
42016if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
42017 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
42018Usually this means the macro was only invoked conditionally." "$LINENO" 5
42019fi
42020if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
42021 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
42022Usually this means the macro was only invoked conditionally." "$LINENO" 5
42023fi
42024if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
42025 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
42026Usually this means the macro was only invoked conditionally." "$LINENO" 5
42027fi
42028if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
42029 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
42030Usually this means the macro was only invoked conditionally." "$LINENO" 5
42031fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070042032if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
42033 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
42034Usually this means the macro was only invoked conditionally." "$LINENO" 5
42035fi
42036
42037: "${CONFIG_STATUS=./config.status}"
42038ac_write_fail=0
42039ac_clean_files_save=$ac_clean_files
42040ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42041{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
42042$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
42043as_write_fail=0
42044cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42045#! $SHELL
42046# Generated by $as_me.
42047# Run this file to recreate the current configuration.
42048# Compiler output produced by configure, useful for debugging
42049# configure, is in config.log if it exists.
42050
42051debug=false
42052ac_cs_recheck=false
42053ac_cs_silent=false
42054
42055SHELL=\${CONFIG_SHELL-$SHELL}
42056export SHELL
42057_ASEOF
42058cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
42059## -------------------- ##
42060## M4sh Initialization. ##
42061## -------------------- ##
42062
42063# Be more Bourne compatible
42064DUALCASE=1; export DUALCASE # for MKS sh
42065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42066 emulate sh
42067 NULLCMD=:
42068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42069 # is contrary to our usage. Disable this feature.
42070 alias -g '${1+"$@"}'='"$@"'
42071 setopt NO_GLOB_SUBST
42072else
42073 case `(set -o) 2>/dev/null` in #(
42074 *posix*) :
42075 set -o posix ;; #(
42076 *) :
42077 ;;
42078esac
42079fi
42080
42081
42082as_nl='
42083'
42084export as_nl
42085# Printing a long string crashes Solaris 7 /usr/bin/printf.
42086as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42088as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42089# Prefer a ksh shell builtin over an external printf program on Solaris,
42090# but without wasting forks for bash or zsh.
42091if test -z "$BASH_VERSION$ZSH_VERSION" \
42092 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
42093 as_echo='print -r --'
42094 as_echo_n='print -rn --'
42095elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
42096 as_echo='printf %s\n'
42097 as_echo_n='printf %s'
42098else
42099 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
42100 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
42101 as_echo_n='/usr/ucb/echo -n'
42102 else
42103 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
42104 as_echo_n_body='eval
42105 arg=$1;
42106 case $arg in #(
42107 *"$as_nl"*)
42108 expr "X$arg" : "X\\(.*\\)$as_nl";
42109 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
42110 esac;
42111 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
42112 '
42113 export as_echo_n_body
42114 as_echo_n='sh -c $as_echo_n_body as_echo'
42115 fi
42116 export as_echo_body
42117 as_echo='sh -c $as_echo_body as_echo'
42118fi
42119
42120
42121
42122# IFS
42123# We need space, tab and new line, in precisely that order. Quoting is
42124# there to prevent editors from complaining about space-tab.
42125# (If _AS_PATH_WALK were called with IFS unset, it would disable word
42126# splitting by setting IFS to empty value.)
42127IFS=" "" $as_nl"
42128
42129# Find who we are. Look in the path if we contain no directory separator.
42130as_myself=
42131case $0 in #((
42132 *[\\/]* ) as_myself=$0 ;;
42133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42134for as_dir in $PATH
42135do
42136 IFS=$as_save_IFS
42137 test -z "$as_dir" && as_dir=.
42138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42139 done
42140IFS=$as_save_IFS
42141
42142 ;;
42143esac
42144# We did not find ourselves, most probably we were run as `sh COMMAND'
42145# in which case we are not to be found in the path.
42146if test "x$as_myself" = x; then
42147 as_myself=$0
42148fi
42149if test ! -f "$as_myself"; then
42150 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42151 exit 1
42152fi
42153
42154# Unset variables that we do not need and which cause bugs (e.g. in
42155# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
42156# suppresses any "Segmentation fault" message there. '((' could
42157# trigger a bug in pdksh 5.2.14.
42158for as_var in BASH_ENV ENV MAIL MAILPATH
42159do eval test x\${$as_var+set} = xset \
42160 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
42161done
42162PS1='$ '
42163PS2='> '
42164PS4='+ '
42165
42166# NLS nuisances.
42167LC_ALL=C
42168export LC_ALL
42169LANGUAGE=C
42170export LANGUAGE
42171
42172# CDPATH.
42173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42174
42175
42176# as_fn_error STATUS ERROR [LINENO LOG_FD]
42177# ----------------------------------------
42178# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42179# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42180# script with STATUS, using 1 if that was 0.
42181as_fn_error ()
42182{
42183 as_status=$1; test $as_status -eq 0 && as_status=1
42184 if test "$4"; then
42185 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42186 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42187 fi
42188 $as_echo "$as_me: error: $2" >&2
42189 as_fn_exit $as_status
42190} # as_fn_error
42191
42192
42193# as_fn_set_status STATUS
42194# -----------------------
42195# Set $? to STATUS, without forking.
42196as_fn_set_status ()
42197{
42198 return $1
42199} # as_fn_set_status
42200
42201# as_fn_exit STATUS
42202# -----------------
42203# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42204as_fn_exit ()
42205{
42206 set +e
42207 as_fn_set_status $1
42208 exit $1
42209} # as_fn_exit
42210
42211# as_fn_unset VAR
42212# ---------------
42213# Portably unset VAR.
42214as_fn_unset ()
42215{
42216 { eval $1=; unset $1;}
42217}
42218as_unset=as_fn_unset
42219# as_fn_append VAR VALUE
42220# ----------------------
42221# Append the text in VALUE to the end of the definition contained in VAR. Take
42222# advantage of any shell optimizations that allow amortized linear growth over
42223# repeated appends, instead of the typical quadratic growth present in naive
42224# implementations.
42225if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42226 eval 'as_fn_append ()
42227 {
42228 eval $1+=\$2
42229 }'
42230else
42231 as_fn_append ()
42232 {
42233 eval $1=\$$1\$2
42234 }
42235fi # as_fn_append
42236
42237# as_fn_arith ARG...
42238# ------------------
42239# Perform arithmetic evaluation on the ARGs, and store the result in the
42240# global $as_val. Take advantage of shells that can avoid forks. The arguments
42241# must be portable across $(()) and expr.
42242if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42243 eval 'as_fn_arith ()
42244 {
42245 as_val=$(( $* ))
42246 }'
42247else
42248 as_fn_arith ()
42249 {
42250 as_val=`expr "$@" || test $? -eq 1`
42251 }
42252fi # as_fn_arith
42253
42254
42255if expr a : '\(a\)' >/dev/null 2>&1 &&
42256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42257 as_expr=expr
42258else
42259 as_expr=false
42260fi
42261
42262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42263 as_basename=basename
42264else
42265 as_basename=false
42266fi
42267
42268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42269 as_dirname=dirname
42270else
42271 as_dirname=false
42272fi
42273
42274as_me=`$as_basename -- "$0" ||
42275$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42276 X"$0" : 'X\(//\)$' \| \
42277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42278$as_echo X/"$0" |
42279 sed '/^.*\/\([^/][^/]*\)\/*$/{
42280 s//\1/
42281 q
42282 }
42283 /^X\/\(\/\/\)$/{
42284 s//\1/
42285 q
42286 }
42287 /^X\/\(\/\).*/{
42288 s//\1/
42289 q
42290 }
42291 s/.*/./; q'`
42292
42293# Avoid depending upon Character Ranges.
42294as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42296as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42297as_cr_digits='0123456789'
42298as_cr_alnum=$as_cr_Letters$as_cr_digits
42299
42300ECHO_C= ECHO_N= ECHO_T=
42301case `echo -n x` in #(((((
42302-n*)
42303 case `echo 'xy\c'` in
42304 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42305 xy) ECHO_C='\c';;
42306 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42307 ECHO_T=' ';;
42308 esac;;
42309*)
42310 ECHO_N='-n';;
42311esac
42312
42313rm -f conf$$ conf$$.exe conf$$.file
42314if test -d conf$$.dir; then
42315 rm -f conf$$.dir/conf$$.file
42316else
42317 rm -f conf$$.dir
42318 mkdir conf$$.dir 2>/dev/null
42319fi
42320if (echo >conf$$.file) 2>/dev/null; then
42321 if ln -s conf$$.file conf$$ 2>/dev/null; then
42322 as_ln_s='ln -s'
42323 # ... but there are two gotchas:
42324 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42325 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42326 # In both cases, we have to default to `cp -pR'.
42327 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42328 as_ln_s='cp -pR'
42329 elif ln conf$$.file conf$$ 2>/dev/null; then
42330 as_ln_s=ln
42331 else
42332 as_ln_s='cp -pR'
42333 fi
42334else
42335 as_ln_s='cp -pR'
42336fi
42337rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42338rmdir conf$$.dir 2>/dev/null
42339
42340
42341# as_fn_mkdir_p
42342# -------------
42343# Create "$as_dir" as a directory, including parents if necessary.
42344as_fn_mkdir_p ()
42345{
42346
42347 case $as_dir in #(
42348 -*) as_dir=./$as_dir;;
42349 esac
42350 test -d "$as_dir" || eval $as_mkdir_p || {
42351 as_dirs=
42352 while :; do
42353 case $as_dir in #(
42354 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42355 *) as_qdir=$as_dir;;
42356 esac
42357 as_dirs="'$as_qdir' $as_dirs"
42358 as_dir=`$as_dirname -- "$as_dir" ||
42359$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42360 X"$as_dir" : 'X\(//\)[^/]' \| \
42361 X"$as_dir" : 'X\(//\)$' \| \
42362 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42363$as_echo X"$as_dir" |
42364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42365 s//\1/
42366 q
42367 }
42368 /^X\(\/\/\)[^/].*/{
42369 s//\1/
42370 q
42371 }
42372 /^X\(\/\/\)$/{
42373 s//\1/
42374 q
42375 }
42376 /^X\(\/\).*/{
42377 s//\1/
42378 q
42379 }
42380 s/.*/./; q'`
42381 test -d "$as_dir" && break
42382 done
42383 test -z "$as_dirs" || eval "mkdir $as_dirs"
42384 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42385
42386
42387} # as_fn_mkdir_p
42388if mkdir -p . 2>/dev/null; then
42389 as_mkdir_p='mkdir -p "$as_dir"'
42390else
42391 test -d ./-p && rmdir ./-p
42392 as_mkdir_p=false
42393fi
42394
42395
42396# as_fn_executable_p FILE
42397# -----------------------
42398# Test if FILE is an executable regular file.
42399as_fn_executable_p ()
42400{
42401 test -f "$1" && test -x "$1"
42402} # as_fn_executable_p
42403as_test_x='test -x'
42404as_executable_p=as_fn_executable_p
42405
42406# Sed expression to map a string onto a valid CPP name.
42407as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42408
42409# Sed expression to map a string onto a valid variable name.
42410as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42411
42412
42413exec 6>&1
42414## ----------------------------------- ##
42415## Main body of $CONFIG_STATUS script. ##
42416## ----------------------------------- ##
42417_ASEOF
42418test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42419
42420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42421# Save the log message, to keep $0 and so on meaningful, and to
42422# report actual input values of CONFIG_FILES etc. instead of their
42423# values after options handling.
42424ac_log="
42425This file was extended by curl $as_me -, which was
42426generated by GNU Autoconf 2.69. Invocation command line was
42427
42428 CONFIG_FILES = $CONFIG_FILES
42429 CONFIG_HEADERS = $CONFIG_HEADERS
42430 CONFIG_LINKS = $CONFIG_LINKS
42431 CONFIG_COMMANDS = $CONFIG_COMMANDS
42432 $ $0 $@
42433
42434on `(hostname || uname -n) 2>/dev/null | sed 1q`
42435"
42436
42437_ACEOF
42438
42439case $ac_config_files in *"
42440"*) set x $ac_config_files; shift; ac_config_files=$*;;
42441esac
42442
42443case $ac_config_headers in *"
42444"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42445esac
42446
42447
42448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42449# Files that config.status was made for.
42450config_files="$ac_config_files"
42451config_headers="$ac_config_headers"
42452config_commands="$ac_config_commands"
42453
42454_ACEOF
42455
42456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42457ac_cs_usage="\
42458\`$as_me' instantiates files and other configuration actions
42459from templates according to the current configuration. Unless the files
42460and actions are specified as TAGs, all are instantiated by default.
42461
42462Usage: $0 [OPTION]... [TAG]...
42463
42464 -h, --help print this help, then exit
42465 -V, --version print version number and configuration settings, then exit
42466 --config print configuration, then exit
42467 -q, --quiet, --silent
42468 do not print progress messages
42469 -d, --debug don't remove temporary files
42470 --recheck update $as_me by reconfiguring in the same conditions
42471 --file=FILE[:TEMPLATE]
42472 instantiate the configuration file FILE
42473 --header=FILE[:TEMPLATE]
42474 instantiate the configuration header FILE
42475
42476Configuration files:
42477$config_files
42478
42479Configuration headers:
42480$config_headers
42481
42482Configuration commands:
42483$config_commands
42484
42485Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42486
42487_ACEOF
42488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42490ac_cs_version="\\
42491curl config.status -
42492configured by $0, generated by GNU Autoconf 2.69,
42493 with options \\"\$ac_cs_config\\"
42494
42495Copyright (C) 2012 Free Software Foundation, Inc.
42496This config.status script is free software; the Free Software Foundation
42497gives unlimited permission to copy, distribute and modify it."
42498
42499ac_pwd='$ac_pwd'
42500srcdir='$srcdir'
42501INSTALL='$INSTALL'
42502MKDIR_P='$MKDIR_P'
42503AWK='$AWK'
42504test -n "\$AWK" || AWK=awk
42505_ACEOF
42506
42507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42508# The default lists apply if the user does not specify any file.
42509ac_need_defaults=:
42510while test $# != 0
42511do
42512 case $1 in
42513 --*=?*)
42514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42516 ac_shift=:
42517 ;;
42518 --*=)
42519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42520 ac_optarg=
42521 ac_shift=:
42522 ;;
42523 *)
42524 ac_option=$1
42525 ac_optarg=$2
42526 ac_shift=shift
42527 ;;
42528 esac
42529
42530 case $ac_option in
42531 # Handling of the options.
42532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42533 ac_cs_recheck=: ;;
42534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42535 $as_echo "$ac_cs_version"; exit ;;
42536 --config | --confi | --conf | --con | --co | --c )
42537 $as_echo "$ac_cs_config"; exit ;;
42538 --debug | --debu | --deb | --de | --d | -d )
42539 debug=: ;;
42540 --file | --fil | --fi | --f )
42541 $ac_shift
42542 case $ac_optarg in
42543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42544 '') as_fn_error $? "missing file argument" ;;
42545 esac
42546 as_fn_append CONFIG_FILES " '$ac_optarg'"
42547 ac_need_defaults=false;;
42548 --header | --heade | --head | --hea )
42549 $ac_shift
42550 case $ac_optarg in
42551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42552 esac
42553 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42554 ac_need_defaults=false;;
42555 --he | --h)
42556 # Conflict between --help and --header
42557 as_fn_error $? "ambiguous option: \`$1'
42558Try \`$0 --help' for more information.";;
42559 --help | --hel | -h )
42560 $as_echo "$ac_cs_usage"; exit ;;
42561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42563 ac_cs_silent=: ;;
42564
42565 # This is an error.
42566 -*) as_fn_error $? "unrecognized option: \`$1'
42567Try \`$0 --help' for more information." ;;
42568
42569 *) as_fn_append ac_config_targets " $1"
42570 ac_need_defaults=false ;;
42571
42572 esac
42573 shift
42574done
42575
42576ac_configure_extra_args=
42577
42578if $ac_cs_silent; then
42579 exec 6>/dev/null
42580 ac_configure_extra_args="$ac_configure_extra_args --silent"
42581fi
42582
42583_ACEOF
42584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42585if \$ac_cs_recheck; then
42586 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42587 shift
42588 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42589 CONFIG_SHELL='$SHELL'
42590 export CONFIG_SHELL
42591 exec "\$@"
42592fi
42593
42594_ACEOF
42595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42596exec 5>>config.log
42597{
42598 echo
42599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42600## Running $as_me. ##
42601_ASBOX
42602 $as_echo "$ac_log"
42603} >&5
42604
42605_ACEOF
42606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42607#
42608# INIT-COMMANDS
42609#
42610AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42611
42612
42613# The HP-UX ksh and POSIX shell print the target directory to stdout
42614# if CDPATH is set.
42615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42616
42617sed_quote_subst='$sed_quote_subst'
42618double_quote_subst='$double_quote_subst'
42619delay_variable_subst='$delay_variable_subst'
42620macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42621macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42622AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42623DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42624OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42625enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42629shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42630SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42631ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42632PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42633host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42634host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42635host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42636build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42637build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42638build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42639SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42640Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42641GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42642EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42643FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42644LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42645NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42646LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42647max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42648ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42649exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42650lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42651lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42652lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42653lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42654lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42655reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42656reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42657deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42658file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42659file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42660want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42661sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42662AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42663AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42664archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42665STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42666RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42667old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42668old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42669old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42670lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42671CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42672CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42673compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42674GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42675lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42676lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42677lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42678lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42679lt_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"`'
42680lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42681nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42682lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42683lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42684objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42685MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42686lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42687lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42688lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42689lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42690lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42691need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42692MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42693DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42694NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42695LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42696OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42697OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42698libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42699shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42700extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42701archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42702enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42703export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42704whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42705compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42706old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42707old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42708archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42709archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42710module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42711module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42712with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42713allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42714no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42715hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42716hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42717hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42718hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42719hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42720hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42721hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42722inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42723link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42724always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42725export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42726exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42727include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42728prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42729postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42730file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42731variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42732need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42733need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42734version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42735runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42736shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42737shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42738libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42739library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42740soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42741install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42742postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42743postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42744finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42745finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42746hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42747sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42748configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42749configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42750hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42751enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42752enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42753enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42754old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42755striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42756
42757LTCC='$LTCC'
42758LTCFLAGS='$LTCFLAGS'
42759compiler='$compiler_DEFAULT'
42760
42761# A function that is used when there is no print builtin or printf.
42762func_fallback_echo ()
42763{
42764 eval 'cat <<_LTECHO_EOF
42765\$1
42766_LTECHO_EOF'
42767}
42768
42769# Quote evaled strings.
42770for var in AS \
42771DLLTOOL \
42772OBJDUMP \
42773SHELL \
42774ECHO \
42775PATH_SEPARATOR \
42776SED \
42777GREP \
42778EGREP \
42779FGREP \
42780LD \
42781NM \
42782LN_S \
42783lt_SP2NL \
42784lt_NL2SP \
42785reload_flag \
42786deplibs_check_method \
42787file_magic_cmd \
42788file_magic_glob \
42789want_nocaseglob \
42790sharedlib_from_linklib_cmd \
42791AR \
42792AR_FLAGS \
42793archiver_list_spec \
42794STRIP \
42795RANLIB \
42796CC \
42797CFLAGS \
42798compiler \
42799lt_cv_sys_global_symbol_pipe \
42800lt_cv_sys_global_symbol_to_cdecl \
42801lt_cv_sys_global_symbol_to_import \
42802lt_cv_sys_global_symbol_to_c_name_address \
42803lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42804lt_cv_nm_interface \
42805nm_file_list_spec \
42806lt_cv_truncate_bin \
42807lt_prog_compiler_no_builtin_flag \
42808lt_prog_compiler_pic \
42809lt_prog_compiler_wl \
42810lt_prog_compiler_static \
42811lt_cv_prog_compiler_c_o \
42812need_locks \
42813MANIFEST_TOOL \
42814DSYMUTIL \
42815NMEDIT \
42816LIPO \
42817OTOOL \
42818OTOOL64 \
42819shrext_cmds \
42820export_dynamic_flag_spec \
42821whole_archive_flag_spec \
42822compiler_needs_object \
42823with_gnu_ld \
42824allow_undefined_flag \
42825no_undefined_flag \
42826hardcode_libdir_flag_spec \
42827hardcode_libdir_separator \
42828exclude_expsyms \
42829include_expsyms \
42830file_list_spec \
42831variables_saved_for_relink \
42832libname_spec \
42833library_names_spec \
42834soname_spec \
42835install_override_mode \
42836finish_eval \
42837old_striplib \
42838striplib; do
42839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42840 *[\\\\\\\`\\"\\\$]*)
42841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42842 ;;
42843 *)
42844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42845 ;;
42846 esac
42847done
42848
42849# Double-quote double-evaled strings.
42850for var in reload_cmds \
42851old_postinstall_cmds \
42852old_postuninstall_cmds \
42853old_archive_cmds \
42854extract_expsyms_cmds \
42855old_archive_from_new_cmds \
42856old_archive_from_expsyms_cmds \
42857archive_cmds \
42858archive_expsym_cmds \
42859module_cmds \
42860module_expsym_cmds \
42861export_symbols_cmds \
42862prelink_cmds \
42863postlink_cmds \
42864postinstall_cmds \
42865postuninstall_cmds \
42866finish_cmds \
42867sys_lib_search_path_spec \
42868configure_time_dlsearch_path \
42869configure_time_lt_sys_library_path; do
42870 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42871 *[\\\\\\\`\\"\\\$]*)
42872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42873 ;;
42874 *)
42875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42876 ;;
42877 esac
42878done
42879
42880ac_aux_dir='$ac_aux_dir'
42881
42882# See if we are running on zsh, and set the options that allow our
42883# commands through without removal of \ escapes INIT.
42884if test -n "\${ZSH_VERSION+set}"; then
42885 setopt NO_GLOB_SUBST
42886fi
42887
42888
42889 PACKAGE='$PACKAGE'
42890 VERSION='$VERSION'
42891 RM='$RM'
42892 ofile='$ofile'
42893
42894
42895
42896
42897_ACEOF
42898
42899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42900
42901# Handling of arguments.
42902for ac_config_target in $ac_config_targets
42903do
42904 case $ac_config_target in
42905 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42906 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42907 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42909 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42910 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42911 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42912 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42913 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42914 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42915 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42916 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42917 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42918 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42919 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42920 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42921 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42922 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42923 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42924 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42925 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42926 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042927 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042928 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042929 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42930 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42931
42932 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42933 esac
42934done
42935
42936
42937# If the user did not use the arguments to specify the items to instantiate,
42938# then the envvar interface is used. Set only those that are not.
42939# We use the long form for the default assignment because of an extremely
42940# bizarre bug on SunOS 4.1.3.
42941if $ac_need_defaults; then
42942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42945fi
42946
42947# Have a temporary directory for convenience. Make it in the build tree
42948# simply because there is no reason against having it here, and in addition,
42949# creating and moving files from /tmp can sometimes cause problems.
42950# Hook for its removal unless debugging.
42951# Note that there is a small window in which the directory will not be cleaned:
42952# after its creation but before its name has been assigned to `$tmp'.
42953$debug ||
42954{
42955 tmp= ac_tmp=
42956 trap 'exit_status=$?
42957 : "${ac_tmp:=$tmp}"
42958 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42959' 0
42960 trap 'as_fn_exit 1' 1 2 13 15
42961}
42962# Create a (secure) tmp directory for tmp files.
42963
42964{
42965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42966 test -d "$tmp"
42967} ||
42968{
42969 tmp=./conf$$-$RANDOM
42970 (umask 077 && mkdir "$tmp")
42971} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42972ac_tmp=$tmp
42973
42974# Set up the scripts for CONFIG_FILES section.
42975# No need to generate them if there are no CONFIG_FILES.
42976# This happens for instance with `./config.status config.h'.
42977if test -n "$CONFIG_FILES"; then
42978
42979
42980ac_cr=`echo X | tr X '\015'`
42981# On cygwin, bash can eat \r inside `` if the user requested igncr.
42982# But we know of no other shell where ac_cr would be empty at this
42983# point, so we can use a bashism as a fallback.
42984if test "x$ac_cr" = x; then
42985 eval ac_cr=\$\'\\r\'
42986fi
42987ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42988if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42989 ac_cs_awk_cr='\\r'
42990else
42991 ac_cs_awk_cr=$ac_cr
42992fi
42993
42994echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42995_ACEOF
42996
42997
42998{
42999 echo "cat >conf$$subs.awk <<_ACEOF" &&
43000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
43001 echo "_ACEOF"
43002} >conf$$subs.sh ||
43003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43004ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
43005ac_delim='%!_!# '
43006for ac_last_try in false false false false false :; do
43007 . ./conf$$subs.sh ||
43008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43009
43010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
43011 if test $ac_delim_n = $ac_delim_num; then
43012 break
43013 elif $ac_last_try; then
43014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43015 else
43016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43017 fi
43018done
43019rm -f conf$$subs.sh
43020
43021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43022cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
43023_ACEOF
43024sed -n '
43025h
43026s/^/S["/; s/!.*/"]=/
43027p
43028g
43029s/^[^!]*!//
43030:repl
43031t repl
43032s/'"$ac_delim"'$//
43033t delim
43034:nl
43035h
43036s/\(.\{148\}\)..*/\1/
43037t more1
43038s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
43039p
43040n
43041b repl
43042:more1
43043s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43044p
43045g
43046s/.\{148\}//
43047t nl
43048:delim
43049h
43050s/\(.\{148\}\)..*/\1/
43051t more2
43052s/["\\]/\\&/g; s/^/"/; s/$/"/
43053p
43054b
43055:more2
43056s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43057p
43058g
43059s/.\{148\}//
43060t delim
43061' <conf$$subs.awk | sed '
43062/^[^""]/{
43063 N
43064 s/\n//
43065}
43066' >>$CONFIG_STATUS || ac_write_fail=1
43067rm -f conf$$subs.awk
43068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43069_ACAWK
43070cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
43071 for (key in S) S_is_set[key] = 1
43072 FS = ""
43073
43074}
43075{
43076 line = $ 0
43077 nfields = split(line, field, "@")
43078 substed = 0
43079 len = length(field[1])
43080 for (i = 2; i < nfields; i++) {
43081 key = field[i]
43082 keylen = length(key)
43083 if (S_is_set[key]) {
43084 value = S[key]
43085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
43086 len += length(value) + length(field[++i])
43087 substed = 1
43088 } else
43089 len += 1 + keylen
43090 }
43091
43092 print line
43093}
43094
43095_ACAWK
43096_ACEOF
43097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43098if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
43099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
43100else
43101 cat
43102fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
43103 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
43104_ACEOF
43105
43106# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
43107# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
43108# trailing colons and then remove the whole line if VPATH becomes empty
43109# (actually we leave an empty line to preserve line numbers).
43110if test "x$srcdir" = x.; then
43111 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
43112h
43113s///
43114s/^/:/
43115s/[ ]*$/:/
43116s/:\$(srcdir):/:/g
43117s/:\${srcdir}:/:/g
43118s/:@srcdir@:/:/g
43119s/^:*//
43120s/:*$//
43121x
43122s/\(=[ ]*\).*/\1/
43123G
43124s/\n//
43125s/^[^=]*=[ ]*$//
43126}'
43127fi
43128
43129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43130fi # test -n "$CONFIG_FILES"
43131
43132# Set up the scripts for CONFIG_HEADERS section.
43133# No need to generate them if there are no CONFIG_HEADERS.
43134# This happens for instance with `./config.status Makefile'.
43135if test -n "$CONFIG_HEADERS"; then
43136cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
43137BEGIN {
43138_ACEOF
43139
43140# Transform confdefs.h into an awk script `defines.awk', embedded as
43141# here-document in config.status, that substitutes the proper values into
43142# config.h.in to produce config.h.
43143
43144# Create a delimiter string that does not exist in confdefs.h, to ease
43145# handling of long lines.
43146ac_delim='%!_!# '
43147for ac_last_try in false false :; do
43148 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
43149 if test -z "$ac_tt"; then
43150 break
43151 elif $ac_last_try; then
43152 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43153 else
43154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43155 fi
43156done
43157
43158# For the awk script, D is an array of macro values keyed by name,
43159# likewise P contains macro parameters if any. Preserve backslash
43160# newline sequences.
43161
43162ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43163sed -n '
43164s/.\{148\}/&'"$ac_delim"'/g
43165t rset
43166:rset
43167s/^[ ]*#[ ]*define[ ][ ]*/ /
43168t def
43169d
43170:def
43171s/\\$//
43172t bsnl
43173s/["\\]/\\&/g
43174s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43175D["\1"]=" \3"/p
43176s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43177d
43178:bsnl
43179s/["\\]/\\&/g
43180s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43181D["\1"]=" \3\\\\\\n"\\/p
43182t cont
43183s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43184t cont
43185d
43186:cont
43187n
43188s/.\{148\}/&'"$ac_delim"'/g
43189t clear
43190:clear
43191s/\\$//
43192t bsnlc
43193s/["\\]/\\&/g; s/^/"/; s/$/"/p
43194d
43195:bsnlc
43196s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43197b cont
43198' <confdefs.h | sed '
43199s/'"$ac_delim"'/"\\\
43200"/g' >>$CONFIG_STATUS || ac_write_fail=1
43201
43202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43203 for (key in D) D_is_set[key] = 1
43204 FS = ""
43205}
43206/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43207 line = \$ 0
43208 split(line, arg, " ")
43209 if (arg[1] == "#") {
43210 defundef = arg[2]
43211 mac1 = arg[3]
43212 } else {
43213 defundef = substr(arg[1], 2)
43214 mac1 = arg[2]
43215 }
43216 split(mac1, mac2, "(") #)
43217 macro = mac2[1]
43218 prefix = substr(line, 1, index(line, defundef) - 1)
43219 if (D_is_set[macro]) {
43220 # Preserve the white space surrounding the "#".
43221 print prefix "define", macro P[macro] D[macro]
43222 next
43223 } else {
43224 # Replace #undef with comments. This is necessary, for example,
43225 # in the case of _POSIX_SOURCE, which is predefined and required
43226 # on some systems where configure will not decide to define it.
43227 if (defundef == "undef") {
43228 print "/*", prefix defundef, macro, "*/"
43229 next
43230 }
43231 }
43232}
43233{ print }
43234_ACAWK
43235_ACEOF
43236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43237 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43238fi # test -n "$CONFIG_HEADERS"
43239
43240
43241eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43242shift
43243for ac_tag
43244do
43245 case $ac_tag in
43246 :[FHLC]) ac_mode=$ac_tag; continue;;
43247 esac
43248 case $ac_mode$ac_tag in
43249 :[FHL]*:*);;
43250 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43251 :[FH]-) ac_tag=-:-;;
43252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43253 esac
43254 ac_save_IFS=$IFS
43255 IFS=:
43256 set x $ac_tag
43257 IFS=$ac_save_IFS
43258 shift
43259 ac_file=$1
43260 shift
43261
43262 case $ac_mode in
43263 :L) ac_source=$1;;
43264 :[FH])
43265 ac_file_inputs=
43266 for ac_f
43267 do
43268 case $ac_f in
43269 -) ac_f="$ac_tmp/stdin";;
43270 *) # Look for the file first in the build tree, then in the source tree
43271 # (if the path is not absolute). The absolute path cannot be DOS-style,
43272 # because $ac_f cannot contain `:'.
43273 test -f "$ac_f" ||
43274 case $ac_f in
43275 [\\/$]*) false;;
43276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43277 esac ||
43278 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43279 esac
43280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43281 as_fn_append ac_file_inputs " '$ac_f'"
43282 done
43283
43284 # Let's still pretend it is `configure' which instantiates (i.e., don't
43285 # use $as_me), people would be surprised to read:
43286 # /* config.h. Generated by config.status. */
43287 configure_input='Generated from '`
43288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43289 `' by configure.'
43290 if test x"$ac_file" != x-; then
43291 configure_input="$ac_file. $configure_input"
43292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43293$as_echo "$as_me: creating $ac_file" >&6;}
43294 fi
43295 # Neutralize special characters interpreted by sed in replacement strings.
43296 case $configure_input in #(
43297 *\&* | *\|* | *\\* )
43298 ac_sed_conf_input=`$as_echo "$configure_input" |
43299 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43300 *) ac_sed_conf_input=$configure_input;;
43301 esac
43302
43303 case $ac_tag in
43304 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43306 esac
43307 ;;
43308 esac
43309
43310 ac_dir=`$as_dirname -- "$ac_file" ||
43311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43312 X"$ac_file" : 'X\(//\)[^/]' \| \
43313 X"$ac_file" : 'X\(//\)$' \| \
43314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43315$as_echo X"$ac_file" |
43316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43317 s//\1/
43318 q
43319 }
43320 /^X\(\/\/\)[^/].*/{
43321 s//\1/
43322 q
43323 }
43324 /^X\(\/\/\)$/{
43325 s//\1/
43326 q
43327 }
43328 /^X\(\/\).*/{
43329 s//\1/
43330 q
43331 }
43332 s/.*/./; q'`
43333 as_dir="$ac_dir"; as_fn_mkdir_p
43334 ac_builddir=.
43335
43336case "$ac_dir" in
43337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43338*)
43339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43340 # A ".." for each directory in $ac_dir_suffix.
43341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43342 case $ac_top_builddir_sub in
43343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43345 esac ;;
43346esac
43347ac_abs_top_builddir=$ac_pwd
43348ac_abs_builddir=$ac_pwd$ac_dir_suffix
43349# for backward compatibility:
43350ac_top_builddir=$ac_top_build_prefix
43351
43352case $srcdir in
43353 .) # We are building in place.
43354 ac_srcdir=.
43355 ac_top_srcdir=$ac_top_builddir_sub
43356 ac_abs_top_srcdir=$ac_pwd ;;
43357 [\\/]* | ?:[\\/]* ) # Absolute name.
43358 ac_srcdir=$srcdir$ac_dir_suffix;
43359 ac_top_srcdir=$srcdir
43360 ac_abs_top_srcdir=$srcdir ;;
43361 *) # Relative name.
43362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43363 ac_top_srcdir=$ac_top_build_prefix$srcdir
43364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43365esac
43366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43367
43368
43369 case $ac_mode in
43370 :F)
43371 #
43372 # CONFIG_FILE
43373 #
43374
43375 case $INSTALL in
43376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43378 esac
43379 ac_MKDIR_P=$MKDIR_P
43380 case $MKDIR_P in
43381 [\\/$]* | ?:[\\/]* ) ;;
43382 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43383 esac
43384_ACEOF
43385
43386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43387# If the template does not know about datarootdir, expand it.
43388# FIXME: This hack should be removed a few years after 2.60.
43389ac_datarootdir_hack=; ac_datarootdir_seen=
43390ac_sed_dataroot='
43391/datarootdir/ {
43392 p
43393 q
43394}
43395/@datadir@/p
43396/@docdir@/p
43397/@infodir@/p
43398/@localedir@/p
43399/@mandir@/p'
43400case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43401*datarootdir*) ac_datarootdir_seen=yes;;
43402*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43404$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43405_ACEOF
43406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43407 ac_datarootdir_hack='
43408 s&@datadir@&$datadir&g
43409 s&@docdir@&$docdir&g
43410 s&@infodir@&$infodir&g
43411 s&@localedir@&$localedir&g
43412 s&@mandir@&$mandir&g
43413 s&\\\${datarootdir}&$datarootdir&g' ;;
43414esac
43415_ACEOF
43416
43417# Neutralize VPATH when `$srcdir' = `.'.
43418# Shell code in configure.ac might set extrasub.
43419# FIXME: do we really want to maintain this feature?
43420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43421ac_sed_extra="$ac_vpsub
43422$extrasub
43423_ACEOF
43424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43425:t
43426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43427s|@configure_input@|$ac_sed_conf_input|;t t
43428s&@top_builddir@&$ac_top_builddir_sub&;t t
43429s&@top_build_prefix@&$ac_top_build_prefix&;t t
43430s&@srcdir@&$ac_srcdir&;t t
43431s&@abs_srcdir@&$ac_abs_srcdir&;t t
43432s&@top_srcdir@&$ac_top_srcdir&;t t
43433s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43434s&@builddir@&$ac_builddir&;t t
43435s&@abs_builddir@&$ac_abs_builddir&;t t
43436s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43437s&@INSTALL@&$ac_INSTALL&;t t
43438s&@MKDIR_P@&$ac_MKDIR_P&;t t
43439$ac_datarootdir_hack
43440"
43441eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43442 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43443
43444test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43445 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43447 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43449which seems to be undefined. Please make sure it is defined" >&5
43450$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43451which seems to be undefined. Please make sure it is defined" >&2;}
43452
43453 rm -f "$ac_tmp/stdin"
43454 case $ac_file in
43455 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43456 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43457 esac \
43458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43459 ;;
43460 :H)
43461 #
43462 # CONFIG_HEADER
43463 #
43464 if test x"$ac_file" != x-; then
43465 {
43466 $as_echo "/* $configure_input */" \
43467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43468 } >"$ac_tmp/config.h" \
43469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43470 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43471 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43472$as_echo "$as_me: $ac_file is unchanged" >&6;}
43473 else
43474 rm -f "$ac_file"
43475 mv "$ac_tmp/config.h" "$ac_file" \
43476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43477 fi
43478 else
43479 $as_echo "/* $configure_input */" \
43480 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43481 || as_fn_error $? "could not create -" "$LINENO" 5
43482 fi
43483# Compute "$ac_file"'s index in $config_headers.
43484_am_arg="$ac_file"
43485_am_stamp_count=1
43486for _am_header in $config_headers :; do
43487 case $_am_header in
43488 $_am_arg | $_am_arg:* )
43489 break ;;
43490 * )
43491 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43492 esac
43493done
43494echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43495$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43496 X"$_am_arg" : 'X\(//\)[^/]' \| \
43497 X"$_am_arg" : 'X\(//\)$' \| \
43498 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43499$as_echo X"$_am_arg" |
43500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43501 s//\1/
43502 q
43503 }
43504 /^X\(\/\/\)[^/].*/{
43505 s//\1/
43506 q
43507 }
43508 /^X\(\/\/\)$/{
43509 s//\1/
43510 q
43511 }
43512 /^X\(\/\).*/{
43513 s//\1/
43514 q
43515 }
43516 s/.*/./; q'`/stamp-h$_am_stamp_count
43517 ;;
43518
43519 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43520$as_echo "$as_me: executing $ac_file commands" >&6;}
43521 ;;
43522 esac
43523
43524
43525 case $ac_file$ac_mode in
43526 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43527 # Older Autoconf quotes --file arguments for eval, but not when files
43528 # are listed without --file. Let's play safe and only enable the eval
43529 # if we detect the quoting.
43530 case $CONFIG_FILES in
43531 *\'*) eval set x "$CONFIG_FILES" ;;
43532 *) set x $CONFIG_FILES ;;
43533 esac
43534 shift
43535 for mf
43536 do
43537 # Strip MF so we end up with the name of the file.
43538 mf=`echo "$mf" | sed -e 's/:.*$//'`
43539 # Check whether this is an Automake generated Makefile or not.
43540 # We used to match only the files named 'Makefile.in', but
43541 # some people rename them; so instead we look at the file content.
43542 # Grep'ing the first line is not enough: some people post-process
43543 # each Makefile.in and add a new line on top of each file to say so.
43544 # Grep'ing the whole file is not good either: AIX grep has a line
43545 # limit of 2048, but all sed's we know have understand at least 4000.
43546 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43547 dirpart=`$as_dirname -- "$mf" ||
43548$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43549 X"$mf" : 'X\(//\)[^/]' \| \
43550 X"$mf" : 'X\(//\)$' \| \
43551 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43552$as_echo X"$mf" |
43553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43554 s//\1/
43555 q
43556 }
43557 /^X\(\/\/\)[^/].*/{
43558 s//\1/
43559 q
43560 }
43561 /^X\(\/\/\)$/{
43562 s//\1/
43563 q
43564 }
43565 /^X\(\/\).*/{
43566 s//\1/
43567 q
43568 }
43569 s/.*/./; q'`
43570 else
43571 continue
43572 fi
43573 # Extract the definition of DEPDIR, am__include, and am__quote
43574 # from the Makefile without running 'make'.
43575 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43576 test -z "$DEPDIR" && continue
43577 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43578 test -z "$am__include" && continue
43579 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43580 # Find all dependency output files, they are included files with
43581 # $(DEPDIR) in their names. We invoke sed twice because it is the
43582 # simplest approach to changing $(DEPDIR) to its actual value in the
43583 # expansion.
43584 for file in `sed -n "
43585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43587 # Make sure the directory exists.
43588 test -f "$dirpart/$file" && continue
43589 fdir=`$as_dirname -- "$file" ||
43590$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43591 X"$file" : 'X\(//\)[^/]' \| \
43592 X"$file" : 'X\(//\)$' \| \
43593 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43594$as_echo X"$file" |
43595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43596 s//\1/
43597 q
43598 }
43599 /^X\(\/\/\)[^/].*/{
43600 s//\1/
43601 q
43602 }
43603 /^X\(\/\/\)$/{
43604 s//\1/
43605 q
43606 }
43607 /^X\(\/\).*/{
43608 s//\1/
43609 q
43610 }
43611 s/.*/./; q'`
43612 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43613 # echo "creating $dirpart/$file"
43614 echo '# dummy' > "$dirpart/$file"
43615 done
43616 done
43617}
43618 ;;
43619 "libtool":C)
43620
43621 # See if we are running on zsh, and set the options that allow our
43622 # commands through without removal of \ escapes.
43623 if test -n "${ZSH_VERSION+set}"; then
43624 setopt NO_GLOB_SUBST
43625 fi
43626
43627 cfgfile=${ofile}T
43628 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43629 $RM "$cfgfile"
43630
43631 cat <<_LT_EOF >> "$cfgfile"
43632#! $SHELL
43633# Generated automatically by $as_me ($PACKAGE) $VERSION
43634# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43635
43636# Provide generalized library-building support services.
43637# Written by Gordon Matzigkeit, 1996
43638
43639# Copyright (C) 2014 Free Software Foundation, Inc.
43640# This is free software; see the source for copying conditions. There is NO
43641# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43642
43643# GNU Libtool is free software; you can redistribute it and/or modify
43644# it under the terms of the GNU General Public License as published by
43645# the Free Software Foundation; either version 2 of of the License, or
43646# (at your option) any later version.
43647#
43648# As a special exception to the GNU General Public License, if you
43649# distribute this file as part of a program or library that is built
43650# using GNU Libtool, you may include this file under the same
43651# distribution terms that you use for the rest of that program.
43652#
43653# GNU Libtool is distributed in the hope that it will be useful, but
43654# WITHOUT ANY WARRANTY; without even the implied warranty of
43655# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43656# GNU General Public License for more details.
43657#
43658# You should have received a copy of the GNU General Public License
43659# along with this program. If not, see <http://www.gnu.org/licenses/>.
43660
43661
43662# The names of the tagged configurations supported by this script.
43663available_tags=''
43664
43665# Configured defaults for sys_lib_dlsearch_path munging.
43666: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43667
43668# ### BEGIN LIBTOOL CONFIG
43669
43670# Which release of libtool.m4 was used?
43671macro_version=$macro_version
43672macro_revision=$macro_revision
43673
43674# Assembler program.
43675AS=$lt_AS
43676
43677# DLL creation program.
43678DLLTOOL=$lt_DLLTOOL
43679
43680# Object dumper program.
43681OBJDUMP=$lt_OBJDUMP
43682
43683# Whether or not to build shared libraries.
43684build_libtool_libs=$enable_shared
43685
43686# Whether or not to build static libraries.
43687build_old_libs=$enable_static
43688
43689# What type of objects to build.
43690pic_mode=$pic_mode
43691
43692# Whether or not to optimize for fast installation.
43693fast_install=$enable_fast_install
43694
43695# Shared archive member basename,for filename based shared library versioning on AIX.
43696shared_archive_member_spec=$shared_archive_member_spec
43697
43698# Shell to use when invoking shell scripts.
43699SHELL=$lt_SHELL
43700
43701# An echo program that protects backslashes.
43702ECHO=$lt_ECHO
43703
43704# The PATH separator for the build system.
43705PATH_SEPARATOR=$lt_PATH_SEPARATOR
43706
43707# The host system.
43708host_alias=$host_alias
43709host=$host
43710host_os=$host_os
43711
43712# The build system.
43713build_alias=$build_alias
43714build=$build
43715build_os=$build_os
43716
43717# A sed program that does not truncate output.
43718SED=$lt_SED
43719
43720# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43721Xsed="\$SED -e 1s/^X//"
43722
43723# A grep program that handles long lines.
43724GREP=$lt_GREP
43725
43726# An ERE matcher.
43727EGREP=$lt_EGREP
43728
43729# A literal string matcher.
43730FGREP=$lt_FGREP
43731
43732# A BSD- or MS-compatible name lister.
43733NM=$lt_NM
43734
43735# Whether we need soft or hard links.
43736LN_S=$lt_LN_S
43737
43738# What is the maximum length of a command?
43739max_cmd_len=$max_cmd_len
43740
43741# Object file suffix (normally "o").
43742objext=$ac_objext
43743
43744# Executable file suffix (normally "").
43745exeext=$exeext
43746
43747# whether the shell understands "unset".
43748lt_unset=$lt_unset
43749
43750# turn spaces into newlines.
43751SP2NL=$lt_lt_SP2NL
43752
43753# turn newlines into spaces.
43754NL2SP=$lt_lt_NL2SP
43755
43756# convert \$build file names to \$host format.
43757to_host_file_cmd=$lt_cv_to_host_file_cmd
43758
43759# convert \$build files to toolchain format.
43760to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43761
43762# Method to check whether dependent libraries are shared objects.
43763deplibs_check_method=$lt_deplibs_check_method
43764
43765# Command to use when deplibs_check_method = "file_magic".
43766file_magic_cmd=$lt_file_magic_cmd
43767
43768# How to find potential files when deplibs_check_method = "file_magic".
43769file_magic_glob=$lt_file_magic_glob
43770
43771# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43772want_nocaseglob=$lt_want_nocaseglob
43773
43774# Command to associate shared and link libraries.
43775sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43776
43777# The archiver.
43778AR=$lt_AR
43779
43780# Flags to create an archive.
43781AR_FLAGS=$lt_AR_FLAGS
43782
43783# How to feed a file listing to the archiver.
43784archiver_list_spec=$lt_archiver_list_spec
43785
43786# A symbol stripping program.
43787STRIP=$lt_STRIP
43788
43789# Commands used to install an old-style archive.
43790RANLIB=$lt_RANLIB
43791old_postinstall_cmds=$lt_old_postinstall_cmds
43792old_postuninstall_cmds=$lt_old_postuninstall_cmds
43793
43794# Whether to use a lock for old archive extraction.
43795lock_old_archive_extraction=$lock_old_archive_extraction
43796
43797# A C compiler.
43798LTCC=$lt_CC
43799
43800# LTCC compiler flags.
43801LTCFLAGS=$lt_CFLAGS
43802
43803# Take the output of nm and produce a listing of raw symbols and C names.
43804global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43805
43806# Transform the output of nm in a proper C declaration.
43807global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43808
43809# Transform the output of nm into a list of symbols to manually relocate.
43810global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43811
43812# Transform the output of nm in a C name address pair.
43813global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43814
43815# Transform the output of nm in a C name address pair when lib prefix is needed.
43816global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43817
43818# The name lister interface.
43819nm_interface=$lt_lt_cv_nm_interface
43820
43821# Specify filename containing input files for \$NM.
43822nm_file_list_spec=$lt_nm_file_list_spec
43823
43824# The root where to search for dependent libraries,and where our libraries should be installed.
43825lt_sysroot=$lt_sysroot
43826
43827# Command to truncate a binary pipe.
43828lt_truncate_bin=$lt_lt_cv_truncate_bin
43829
43830# The name of the directory that contains temporary libtool files.
43831objdir=$objdir
43832
43833# Used to examine libraries when file_magic_cmd begins with "file".
43834MAGIC_CMD=$MAGIC_CMD
43835
43836# Must we lock files when doing compilation?
43837need_locks=$lt_need_locks
43838
43839# Manifest tool.
43840MANIFEST_TOOL=$lt_MANIFEST_TOOL
43841
43842# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43843DSYMUTIL=$lt_DSYMUTIL
43844
43845# Tool to change global to local symbols on Mac OS X.
43846NMEDIT=$lt_NMEDIT
43847
43848# Tool to manipulate fat objects and archives on Mac OS X.
43849LIPO=$lt_LIPO
43850
43851# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43852OTOOL=$lt_OTOOL
43853
43854# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43855OTOOL64=$lt_OTOOL64
43856
43857# Old archive suffix (normally "a").
43858libext=$libext
43859
43860# Shared library suffix (normally ".so").
43861shrext_cmds=$lt_shrext_cmds
43862
43863# The commands to extract the exported symbol list from a shared archive.
43864extract_expsyms_cmds=$lt_extract_expsyms_cmds
43865
43866# Variables whose values should be saved in libtool wrapper scripts and
43867# restored at link time.
43868variables_saved_for_relink=$lt_variables_saved_for_relink
43869
43870# Do we need the "lib" prefix for modules?
43871need_lib_prefix=$need_lib_prefix
43872
43873# Do we need a version for libraries?
43874need_version=$need_version
43875
43876# Library versioning type.
43877version_type=$version_type
43878
43879# Shared library runtime path variable.
43880runpath_var=$runpath_var
43881
43882# Shared library path variable.
43883shlibpath_var=$shlibpath_var
43884
43885# Is shlibpath searched before the hard-coded library search path?
43886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43887
43888# Format of library name prefix.
43889libname_spec=$lt_libname_spec
43890
43891# List of archive names. First name is the real one, the rest are links.
43892# The last name is the one that the linker finds with -lNAME
43893library_names_spec=$lt_library_names_spec
43894
43895# The coded name of the library, if different from the real name.
43896soname_spec=$lt_soname_spec
43897
43898# Permission mode override for installation of shared libraries.
43899install_override_mode=$lt_install_override_mode
43900
43901# Command to use after installation of a shared archive.
43902postinstall_cmds=$lt_postinstall_cmds
43903
43904# Command to use after uninstallation of a shared archive.
43905postuninstall_cmds=$lt_postuninstall_cmds
43906
43907# Commands used to finish a libtool library installation in a directory.
43908finish_cmds=$lt_finish_cmds
43909
43910# As "finish_cmds", except a single script fragment to be evaled but
43911# not shown.
43912finish_eval=$lt_finish_eval
43913
43914# Whether we should hardcode library paths into libraries.
43915hardcode_into_libs=$hardcode_into_libs
43916
43917# Compile-time system search path for libraries.
43918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43919
43920# Detected run-time system search path for libraries.
43921sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43922
43923# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43924configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43925
43926# Whether dlopen is supported.
43927dlopen_support=$enable_dlopen
43928
43929# Whether dlopen of programs is supported.
43930dlopen_self=$enable_dlopen_self
43931
43932# Whether dlopen of statically linked programs is supported.
43933dlopen_self_static=$enable_dlopen_self_static
43934
43935# Commands to strip libraries.
43936old_striplib=$lt_old_striplib
43937striplib=$lt_striplib
43938
43939
43940# The linker used to build libraries.
43941LD=$lt_LD
43942
43943# How to create reloadable object files.
43944reload_flag=$lt_reload_flag
43945reload_cmds=$lt_reload_cmds
43946
43947# Commands used to build an old-style archive.
43948old_archive_cmds=$lt_old_archive_cmds
43949
43950# A language specific compiler.
43951CC=$lt_compiler
43952
43953# Is the compiler the GNU compiler?
43954with_gcc=$GCC
43955
43956# Compiler flag to turn off builtin functions.
43957no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43958
43959# Additional compiler flags for building library objects.
43960pic_flag=$lt_lt_prog_compiler_pic
43961
43962# How to pass a linker flag through the compiler.
43963wl=$lt_lt_prog_compiler_wl
43964
43965# Compiler flag to prevent dynamic linking.
43966link_static_flag=$lt_lt_prog_compiler_static
43967
43968# Does compiler simultaneously support -c and -o options?
43969compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43970
43971# Whether or not to add -lc for building shared libraries.
43972build_libtool_need_lc=$archive_cmds_need_lc
43973
43974# Whether or not to disallow shared libs when runtime libs are static.
43975allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43976
43977# Compiler flag to allow reflexive dlopens.
43978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43979
43980# Compiler flag to generate shared objects directly from archives.
43981whole_archive_flag_spec=$lt_whole_archive_flag_spec
43982
43983# Whether the compiler copes with passing no objects directly.
43984compiler_needs_object=$lt_compiler_needs_object
43985
43986# Create an old-style archive from a shared archive.
43987old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43988
43989# Create a temporary old-style archive to link instead of a shared archive.
43990old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43991
43992# Commands used to build a shared archive.
43993archive_cmds=$lt_archive_cmds
43994archive_expsym_cmds=$lt_archive_expsym_cmds
43995
43996# Commands used to build a loadable module if different from building
43997# a shared archive.
43998module_cmds=$lt_module_cmds
43999module_expsym_cmds=$lt_module_expsym_cmds
44000
44001# Whether we are building with GNU ld or not.
44002with_gnu_ld=$lt_with_gnu_ld
44003
44004# Flag that allows shared libraries with undefined symbols to be built.
44005allow_undefined_flag=$lt_allow_undefined_flag
44006
44007# Flag that enforces no undefined symbols.
44008no_undefined_flag=$lt_no_undefined_flag
44009
44010# Flag to hardcode \$libdir into a binary during linking.
44011# This must work even if \$libdir does not exist
44012hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44013
44014# Whether we need a single "-rpath" flag with a separated argument.
44015hardcode_libdir_separator=$lt_hardcode_libdir_separator
44016
44017# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
44018# DIR into the resulting binary.
44019hardcode_direct=$hardcode_direct
44020
44021# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
44022# DIR into the resulting binary and the resulting library dependency is
44023# "absolute",i.e impossible to change by setting \$shlibpath_var if the
44024# library is relocated.
44025hardcode_direct_absolute=$hardcode_direct_absolute
44026
44027# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44028# into the resulting binary.
44029hardcode_minus_L=$hardcode_minus_L
44030
44031# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44032# into the resulting binary.
44033hardcode_shlibpath_var=$hardcode_shlibpath_var
44034
44035# Set to "yes" if building a shared library automatically hardcodes DIR
44036# into the library and all subsequent libraries and executables linked
44037# against it.
44038hardcode_automatic=$hardcode_automatic
44039
44040# Set to yes if linker adds runtime paths of dependent libraries
44041# to runtime path list.
44042inherit_rpath=$inherit_rpath
44043
44044# Whether libtool must link a program against all its dependency libraries.
44045link_all_deplibs=$link_all_deplibs
44046
44047# Set to "yes" if exported symbols are required.
44048always_export_symbols=$always_export_symbols
44049
44050# The commands to list exported symbols.
44051export_symbols_cmds=$lt_export_symbols_cmds
44052
44053# Symbols that should not be listed in the preloaded symbols.
44054exclude_expsyms=$lt_exclude_expsyms
44055
44056# Symbols that must always be exported.
44057include_expsyms=$lt_include_expsyms
44058
44059# Commands necessary for linking programs (against libraries) with templates.
44060prelink_cmds=$lt_prelink_cmds
44061
44062# Commands necessary for finishing linking programs.
44063postlink_cmds=$lt_postlink_cmds
44064
44065# Specify filename containing input files.
44066file_list_spec=$lt_file_list_spec
44067
44068# How to hardcode a shared library path into an executable.
44069hardcode_action=$hardcode_action
44070
44071# ### END LIBTOOL CONFIG
44072
44073_LT_EOF
44074
44075 cat <<'_LT_EOF' >> "$cfgfile"
44076
44077# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
44078
44079# func_munge_path_list VARIABLE PATH
44080# -----------------------------------
44081# VARIABLE is name of variable containing _space_ separated list of
44082# directories to be munged by the contents of PATH, which is string
44083# having a format:
44084# "DIR[:DIR]:"
44085# string "DIR[ DIR]" will be prepended to VARIABLE
44086# ":DIR[:DIR]"
44087# string "DIR[ DIR]" will be appended to VARIABLE
44088# "DIRP[:DIRP]::[DIRA:]DIRA"
44089# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
44090# "DIRA[ DIRA]" will be appended to VARIABLE
44091# "DIR[:DIR]"
44092# VARIABLE will be replaced by "DIR[ DIR]"
44093func_munge_path_list ()
44094{
44095 case x$2 in
44096 x)
44097 ;;
44098 *:)
44099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
44100 ;;
44101 x:*)
44102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
44103 ;;
44104 *::*)
44105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
44106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
44107 ;;
44108 *)
44109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
44110 ;;
44111 esac
44112}
44113
44114
44115# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
44116func_cc_basename ()
44117{
44118 for cc_temp in $*""; do
44119 case $cc_temp in
44120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44122 \-*) ;;
44123 *) break;;
44124 esac
44125 done
44126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
44127}
44128
44129
44130# ### END FUNCTIONS SHARED WITH CONFIGURE
44131
44132_LT_EOF
44133
44134 case $host_os in
44135 aix3*)
44136 cat <<\_LT_EOF >> "$cfgfile"
44137# AIX sometimes has problems with the GCC collect2 program. For some
44138# reason, if we set the COLLECT_NAMES environment variable, the problems
44139# vanish in a puff of smoke.
44140if test set != "${COLLECT_NAMES+set}"; then
44141 COLLECT_NAMES=
44142 export COLLECT_NAMES
44143fi
44144_LT_EOF
44145 ;;
44146 esac
44147
44148
44149ltmain=$ac_aux_dir/ltmain.sh
44150
44151
44152 # We use sed instead of cat because bash on DJGPP gets confused if
44153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44154 # text mode, it properly converts lines to CR/LF. This bash problem
44155 # is reportedly fixed, but why not run on old versions too?
44156 sed '$q' "$ltmain" >> "$cfgfile" \
44157 || (rm -f "$cfgfile"; exit 1)
44158
44159 mv -f "$cfgfile" "$ofile" ||
44160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44161 chmod +x "$ofile"
44162
44163 ;;
44164
44165 esac
44166done # for ac_tag
44167
44168
44169as_fn_exit 0
44170_ACEOF
44171ac_clean_files=$ac_clean_files_save
44172
44173test $ac_write_fail = 0 ||
44174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44175
44176
44177# configure is writing to config.log, and then calls config.status.
44178# config.status does its own redirection, appending to config.log.
44179# Unfortunately, on DOS this fails, as config.log is still kept open
44180# by configure, so config.status won't be able to write to it; its
44181# output is simply discarded. So we exec the FD to /dev/null,
44182# effectively closing config.log, so it can be properly (re)opened and
44183# appended to by config.status. When coming back to configure, we
44184# need to make the FD available again.
44185if test "$no_create" != yes; then
44186 ac_cs_success=:
44187 ac_config_status_args=
44188 test "$silent" = yes &&
44189 ac_config_status_args="$ac_config_status_args --quiet"
44190 exec 5>/dev/null
44191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44192 exec 5>>config.log
44193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44194 # would make configure fail if this is the last instruction.
44195 $ac_cs_success || as_fn_exit 1
44196fi
44197
44198#
44199# CONFIG_SUBDIRS section.
44200#
44201if test "$no_recursion" != yes; then
44202
44203 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44204 # so they do not pile up.
44205 ac_sub_configure_args=
44206 ac_prev=
44207 eval "set x $ac_configure_args"
44208 shift
44209 for ac_arg
44210 do
44211 if test -n "$ac_prev"; then
44212 ac_prev=
44213 continue
44214 fi
44215 case $ac_arg in
44216 -cache-file | --cache-file | --cache-fil | --cache-fi \
44217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44218 ac_prev=cache_file ;;
44219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44221 | --c=*)
44222 ;;
44223 --config-cache | -C)
44224 ;;
44225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44226 ac_prev=srcdir ;;
44227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44228 ;;
44229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44230 ac_prev=prefix ;;
44231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44232 ;;
44233 --disable-option-checking)
44234 ;;
44235 *)
44236 case $ac_arg in
44237 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44238 esac
44239 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44240 esac
44241 done
44242
44243 # Always prepend --prefix to ensure using the same prefix
44244 # in subdir configurations.
44245 ac_arg="--prefix=$prefix"
44246 case $ac_arg in
44247 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44248 esac
44249 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44250
44251 # Pass --silent
44252 if test "$silent" = yes; then
44253 ac_sub_configure_args="--silent $ac_sub_configure_args"
44254 fi
44255
44256 # Always prepend --disable-option-checking to silence warnings, since
44257 # different subdirs can have different --enable and --with options.
44258 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44259
44260 ac_popdir=`pwd`
44261 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44262
44263 # Do not complain, so a configure script can configure whichever
44264 # parts of a large source tree are present.
44265 test -d "$srcdir/$ac_dir" || continue
44266
44267 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44268 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44269 $as_echo "$ac_msg" >&6
44270 as_dir="$ac_dir"; as_fn_mkdir_p
44271 ac_builddir=.
44272
44273case "$ac_dir" in
44274.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44275*)
44276 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44277 # A ".." for each directory in $ac_dir_suffix.
44278 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44279 case $ac_top_builddir_sub in
44280 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44281 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44282 esac ;;
44283esac
44284ac_abs_top_builddir=$ac_pwd
44285ac_abs_builddir=$ac_pwd$ac_dir_suffix
44286# for backward compatibility:
44287ac_top_builddir=$ac_top_build_prefix
44288
44289case $srcdir in
44290 .) # We are building in place.
44291 ac_srcdir=.
44292 ac_top_srcdir=$ac_top_builddir_sub
44293 ac_abs_top_srcdir=$ac_pwd ;;
44294 [\\/]* | ?:[\\/]* ) # Absolute name.
44295 ac_srcdir=$srcdir$ac_dir_suffix;
44296 ac_top_srcdir=$srcdir
44297 ac_abs_top_srcdir=$srcdir ;;
44298 *) # Relative name.
44299 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44300 ac_top_srcdir=$ac_top_build_prefix$srcdir
44301 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44302esac
44303ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44304
44305
44306 cd "$ac_dir"
44307
44308 # Check for guested configure; otherwise get Cygnus style configure.
44309 if test -f "$ac_srcdir/configure.gnu"; then
44310 ac_sub_configure=$ac_srcdir/configure.gnu
44311 elif test -f "$ac_srcdir/configure"; then
44312 ac_sub_configure=$ac_srcdir/configure
44313 elif test -f "$ac_srcdir/configure.in"; then
44314 # This should be Cygnus configure.
44315 ac_sub_configure=$ac_aux_dir/configure
44316 else
44317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44318$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44319 ac_sub_configure=
44320 fi
44321
44322 # The recursion is here.
44323 if test -n "$ac_sub_configure"; then
44324 # Make the cache file name correct relative to the subdirectory.
44325 case $cache_file in
44326 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44327 *) # Relative name.
44328 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44329 esac
44330
44331 { $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
44332$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44333 # The eval makes quoting arguments work.
44334 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44335 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44336 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44337 fi
44338
44339 cd "$ac_popdir"
44340 done
44341fi
44342if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44344$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44345fi
44346
44347
44348
44349 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44350 if test -z "$tmp_cpp"; then
44351 tmp_cpp='cpp'
44352 fi
44353 cat >./tests/configurehelp.pm <<_EOF
44354# This is a generated file. Do not edit.
44355
44356package configurehelp;
44357
44358use strict;
44359use warnings;
44360use Exporter;
44361
44362use vars qw(
44363 @ISA
44364 @EXPORT_OK
44365 \$Cpreprocessor
44366 );
44367
44368@ISA = qw(Exporter);
44369
44370@EXPORT_OK = qw(
44371 \$Cpreprocessor
44372 );
44373
44374\$Cpreprocessor = '$tmp_cpp';
44375
443761;
44377_EOF
44378
44379
44380
44381## ---------------------------------- ##
44382## Start of distclean amending code ##
44383## ---------------------------------- ##
44384
44385for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44386do
44387
44388if test ! -f "$xc_subdir/Makefile"; then
44389 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44390 exit 1
44391fi
44392
44393# Fetch dependency tracking file list from Makefile include lines.
44394
44395xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44396xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44397
44398# --disable-dependency-tracking might have been used, consequently
44399# there is nothing to amend without a dependency tracking file list.
44400
44401if test $xc_cnt_words -gt 0; then
44402
44403{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44404$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44405
44406# Build Makefile specific patch hunk.
44407
44408xc_p="$xc_subdir/xc_patch.tmp"
44409
44410xc_rm_depfiles=`echo "$xc_inc_lines" \
44411 | $SED 's%include% -rm -f%' 2>/dev/null`
44412
44413xc_dep_subdirs=`echo "$xc_inc_lines" \
44414 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44415 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44416 | sort | uniq`
44417
44418echo "$xc_rm_depfiles" >$xc_p
44419
44420for xc_dep_dir in $xc_dep_subdirs; do
44421 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44422 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44423 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44424 echo "${xc_tab}fi" >>$xc_p
44425done
44426
44427# Build Makefile patching sed scripts.
44428
44429xc_s1="$xc_subdir/xc_script_1.tmp"
44430xc_s2="$xc_subdir/xc_script_2.tmp"
44431xc_s3="$xc_subdir/xc_script_3.tmp"
44432
44433cat >$xc_s1 <<\_EOT
44434/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44435 s/^.*(DEPDIR)/___xc_depdir_line___/
44436}
44437/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44438 s/^.*(DEPDIR)/___xc_depdir_line___/
44439}
44440_EOT
44441
44442cat >$xc_s2 <<\_EOT
44443/___xc_depdir_line___$/{
44444 N
44445 /___xc_depdir_line___$/D
44446}
44447_EOT
44448
44449cat >$xc_s3 <<_EOT
44450/^___xc_depdir_line___/{
44451 r $xc_p
44452 d
44453}
44454_EOT
44455
44456# Apply patch to Makefile and cleanup.
44457
44458$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44459$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44460$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44461
44462if test -f "$xc_subdir/Makefile.tmp3"; then
44463 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44464fi
44465
44466test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44467test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44468test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44469
44470test -f "$xc_p" && rm -f "$xc_p"
44471test -f "$xc_s1" && rm -f "$xc_s1"
44472test -f "$xc_s2" && rm -f "$xc_s2"
44473test -f "$xc_s3" && rm -f "$xc_s3"
44474
44475fi
44476
44477done
44478
44479## -------------------------------- ##
44480## End of distclean amending code ##
44481## -------------------------------- ##
44482
44483
44484
44485{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44486
Elliott Hughes82be86d2017-09-20 17:00:17 -070044487 Host setup: ${host}
44488 Install prefix: ${prefix}
44489 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044490 CFLAGS: ${CFLAGS}
44491 CPPFLAGS: ${CPPFLAGS}
44492 LDFLAGS: ${LDFLAGS}
44493 LIBS: ${LIBS}
44494
44495 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044496 SSL: ${curl_ssl_msg}
44497 SSH: ${curl_ssh_msg}
44498 zlib: ${curl_zlib_msg}
44499 brotli: ${curl_brotli_msg}
44500 GSS-API: ${curl_gss_msg}
44501 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044502 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044503 IPv6: ${curl_ipv6_msg}
44504 Unix sockets: ${curl_unix_sockets_msg}
44505 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044506 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44507 Built-in manual: ${curl_manual_msg}
44508 --libcurl option: ${curl_libcurl_msg}
44509 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044510 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044511 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044512 ca cert bundle: ${ca}${ca_warning}
44513 ca cert path: ${capath}${capath_warning}
44514 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044515 LDAP: ${curl_ldap_msg}
44516 LDAPS: ${curl_ldaps_msg}
44517 RTSP: ${curl_rtsp_msg}
44518 RTMP: ${curl_rtmp_msg}
44519 Metalink: ${curl_mtlnk_msg}
44520 PSL: ${curl_psl_msg}
44521 Alt-svc: ${curl_altsvc_msg}
44522 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044523 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044524 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044525" >&5
44526$as_echo "$as_me: Configured to build curl/libcurl:
44527
Elliott Hughes82be86d2017-09-20 17:00:17 -070044528 Host setup: ${host}
44529 Install prefix: ${prefix}
44530 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044531 CFLAGS: ${CFLAGS}
44532 CPPFLAGS: ${CPPFLAGS}
44533 LDFLAGS: ${LDFLAGS}
44534 LIBS: ${LIBS}
44535
44536 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044537 SSL: ${curl_ssl_msg}
44538 SSH: ${curl_ssh_msg}
44539 zlib: ${curl_zlib_msg}
44540 brotli: ${curl_brotli_msg}
44541 GSS-API: ${curl_gss_msg}
44542 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044543 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044544 IPv6: ${curl_ipv6_msg}
44545 Unix sockets: ${curl_unix_sockets_msg}
44546 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044547 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44548 Built-in manual: ${curl_manual_msg}
44549 --libcurl option: ${curl_libcurl_msg}
44550 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044551 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044552 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044553 ca cert bundle: ${ca}${ca_warning}
44554 ca cert path: ${capath}${capath_warning}
44555 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044556 LDAP: ${curl_ldap_msg}
44557 LDAPS: ${curl_ldaps_msg}
44558 RTSP: ${curl_rtsp_msg}
44559 RTMP: ${curl_rtmp_msg}
44560 Metalink: ${curl_mtlnk_msg}
44561 PSL: ${curl_psl_msg}
44562 Alt-svc: ${curl_altsvc_msg}
44563 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044564 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044565 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044566" >&6;}
Haibo Huang65021c72019-03-27 15:37:23 -070044567if test -n "$experimental"; then
44568 cat >&2 << _EOF
44569 WARNING: $experimental is enabled but marked EXPERIMENTAL. Use with caution!
44570_EOF
44571fi