blob: f1b9812e33282718b866ebb66795b65bfb2ff344 [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#
14# Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15# This configure script may be copied, distributed and modified under the
16# terms of the curl license; see COPYING for more details
17
18## -------------------------------- ##
19## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20## -------------------------------- ##
21
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab=' '
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "x$xc_tst_str" in # ((
61 xsuccess)
62 :
63 ;;
64 *)
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67 exit 1
68 ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "x$xc_tst_str" in # ((
78 xsuccess)
79 :
80 ;;
81 *)
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83 exit 1
84 ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "x$xc_tst_str" in # ((
94 xsuccess)
95 :
96 ;;
97 *)
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99 exit 1
100 ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "x$xc_tst_str" in # ((
110 x7)
111 :
112 ;;
113 *)
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115 exit 1
116 ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126case "x$xc_tst_str" in # ((
127 xsuccess)
128 :
129 ;;
130 *)
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132 exit 1
133 ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "x$xc_tst_str" in # ((
144 xsuccess)
145 :
146 ;;
147 *)
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149 exit 1
150 ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "x$xc_tst_str" in # ((
161 xsuccess)
162 :
163 ;;
164 *)
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166 exit 1
167 ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "x$xc_tst_str" in # ((
178 x4)
179 :
180 ;;
181 *)
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183 exit 1
184 ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "x$xc_tst_str" in # ((
199 x3)
200 :
201 ;;
202 *)
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204 exit 1
205 ;;
206esac
207
208#
209# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210#
211
212# Directory count in 'PATH' when using a colon separator.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
Elliott Hughescac39802018-04-27 16:19:43 -0700236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239 PATH_SEPARATOR=':'
Elliott Hughes82be86d2017-09-20 17:00:17 -0700240 fi
241else
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
245 else
246 xc_tst_auto_separator=':'
247 fi
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253 fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267 emulate sh
268 NULLCMD=:
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in #(
275 *posix*) :
276 set -o posix ;; #(
277 *) :
278 ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
299else
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
303 else
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305 as_echo_n_body='eval
306 arg=$1;
307 case $arg in #(
308 *"$as_nl"*)
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 esac;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 '
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
316 fi
317 export as_echo_body
318 as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order. Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" "" $as_nl"
329
330# Find who we are. Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337 IFS=$as_save_IFS
338 test -z "$as_dir" && as_dir=.
339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there. '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388 *v*x* | *x*v* ) as_opts=-vx ;;
389 *v* ) as_opts=-v ;;
390 *x* ) as_opts=-x ;;
391 * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398 fi
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403 emulate sh
404 NULLCMD=:
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
408 setopt NO_GLOB_SUBST
409else
410 case \`(set -o) 2>/dev/null\` in #(
411 *posix*) :
412 set -o posix ;; #(
413 *) :
414 ;;
415esac
416fi
417"
418 as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432 exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
450 as_have_required=yes
451else
452 as_have_required=no
453fi
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461 IFS=$as_save_IFS
462 test -z "$as_dir" && as_dir=.
463 as_found=:
464 case $as_dir in #(
465 /*)
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473 break 2
474fi
475fi
476 done;;
477 esac
478 as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487 if test "x$CONFIG_SHELL" != x; then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 else
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521 fi
522 exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540 { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549 return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557 set +e
558 as_fn_set_status $1
559 exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568 case $as_dir in #(
569 -*) as_dir=./$as_dir;;
570 esac
571 test -d "$as_dir" || eval $as_mkdir_p || {
572 as_dirs=
573 while :; do
574 case $as_dir in #(
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576 *) as_qdir=$as_dir;;
577 esac
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586 s//\1/
587 q
588 }
589 /^X\(\/\/\)[^/].*/{
590 s//\1/
591 q
592 }
593 /^X\(\/\/\)$/{
594 s//\1/
595 q
596 }
597 /^X\(\/\).*/{
598 s//\1/
599 q
600 }
601 s/.*/./; q'`
602 test -d "$as_dir" && break
603 done
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615 test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
625 {
626 eval $1+=\$2
627 }'
628else
629 as_fn_append ()
630 {
631 eval $1=\$$1\$2
632 }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641 eval 'as_fn_arith ()
642 {
643 as_val=$(( $* ))
644 }'
645else
646 as_fn_arith ()
647 {
648 as_val=`expr "$@" || test $? -eq 1`
649 }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660 as_status=$1; test $as_status -eq 0 && as_status=1
661 if test "$4"; then
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 fi
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 as_expr=expr
672else
673 as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 as_basename=basename
678else
679 as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_dirname=dirname
684else
685 as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
694 s//\1/
695 q
696 }
697 /^X\/\(\/\/\)$/{
698 s//\1/
699 q
700 }
701 /^X\/\(\/\).*/{
702 s//\1/
703 q
704 }
705 s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
720 sed -n '
721 p
722 /[$]LINENO/=
723 ' <$as_myself |
724 sed '
725 s/[$]LINENO.*/&-/
726 t lineno
727 b
728 :lineno
729 N
730 :loop
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732 t loop
733 s/-\n.*//
734 ' >$as_me.lineno &&
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
745 . "./$as_me.lineno"
746 # Exit status is that of the last command.
747 exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 xy) ECHO_C='\c';;
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757 ECHO_T=' ';;
758 esac;;
759*)
760 ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
766else
767 rm -f conf$$.dir
768 mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 as_ln_s='ln -s'
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 as_ln_s='cp -pR'
779 elif ln conf$$.file conf$$ 2>/dev/null; then
780 as_ln_s=ln
781 else
782 as_ln_s='cp -pR'
783 fi
784else
785 as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
792else
793 test -d ./-p && rmdir ./-p
794 as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852# include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857# include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
Elliott Hughes0128fe42018-02-27 14:57:55 -0800879SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882ENABLE_STATIC
883ENABLE_SHARED
884CROSSCOMPILING_FALSE
885CROSSCOMPILING_TRUE
886BLANK_AT_MAKETIME
887CURL_NETWORK_AND_TIME_LIBS
888CURL_NETWORK_LIBS
889LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800913USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700914USE_LIBSSH2
915LIBMETALINK_CPPFLAGS
916LIBMETALINK_LDFLAGS
917LIBMETALINK_LIBS
918USE_LIBPSL_FALSE
919USE_LIBPSL_TRUE
920CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100921CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700922SSL_ENABLED
923USE_AXTLS
924NSS_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
936USE_DARWINSSL
937USE_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
949CURL_DISABLE_GOPHER
950CURL_DISABLE_SMTP
951CURL_DISABLE_SMB
952CURL_DISABLE_IMAP
953CURL_DISABLE_POP3
954CURL_DISABLE_TFTP
955CURL_DISABLE_TELNET
956CURL_DISABLE_DICT
957CURL_DISABLE_PROXY
958HAVE_LDAP_SSL
959CURL_DISABLE_LDAPS
960CURL_DISABLE_LDAP
961CURL_DISABLE_FILE
962CURL_DISABLE_FTP
963CURL_DISABLE_RTSP
964CURL_DISABLE_HTTP
965DOING_NATIVE_WINDOWS_FALSE
966DOING_NATIVE_WINDOWS_TRUE
967BUILD_UNITTESTS_FALSE
968BUILD_UNITTESTS_TRUE
969CURLDEBUG_FALSE
970CURLDEBUG_TRUE
971USE_EXPLICIT_LIB_DEPS_FALSE
972USE_EXPLICIT_LIB_DEPS_TRUE
973REQUIRE_LIB_DEPS
974CPPFLAG_CURL_STATICLIB
975USE_CPPFLAG_CURL_STATICLIB_FALSE
976USE_CPPFLAG_CURL_STATICLIB_TRUE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
978CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
980CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
981CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
982CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
983LT_SYS_LIBRARY_PATH
984OTOOL64
985OTOOL
986LIPO
987NMEDIT
988DSYMUTIL
989MANIFEST_TOOL
990RANLIB
991ac_ct_AR
992LN_S
993NM
994ac_ct_DUMPBIN
995DUMPBIN
996LD
997FGREP
998LIBTOOL
999OBJDUMP
1000DLLTOOL
1001AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001002AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001003host_os
1004host_vendor
1005host_cpu
1006host
1007build_os
1008build_vendor
1009build_cpu
1010build
1011PKGADD_VENDOR
1012PKGADD_NAME
1013PKGADD_PKG
1014VERSIONNUM
1015CURLVERSION
1016am__fastdepCC_FALSE
1017am__fastdepCC_TRUE
1018CCDEPMODE
1019am__nodep
1020AMDEPBACKSLASH
1021AMDEP_FALSE
1022AMDEP_TRUE
1023am__quote
1024am__include
1025DEPDIR
1026am__untar
1027am__tar
1028AMTAR
1029am__leading_dot
1030SET_MAKE
1031AWK
1032mkdir_p
1033MKDIR_P
1034INSTALL_STRIP_PROGRAM
1035STRIP
1036install_sh
1037MAKEINFO
1038AUTOHEADER
1039AUTOMAKE
1040AUTOCONF
1041ACLOCAL
1042VERSION
1043PACKAGE
1044CYGPATH_W
1045am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001046CODE_COVERAGE_RULES
1047CODE_COVERAGE_LDFLAGS
1048CODE_COVERAGE_LIBS
1049CODE_COVERAGE_CXXFLAGS
1050CODE_COVERAGE_CFLAGS
1051CODE_COVERAGE_CPPFLAGS
1052GENHTML
1053LCOV
1054GCOV
1055CODE_COVERAGE_ENABLED
1056CODE_COVERAGE_ENABLED_FALSE
1057CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001058CPP
1059OBJEXT
1060EXEEXT
1061ac_ct_CC
1062CPPFLAGS
1063LDFLAGS
1064CFLAGS
1065CC
1066INSTALL_DATA
1067INSTALL_SCRIPT
1068INSTALL_PROGRAM
1069libext
1070AR
1071EGREP
1072GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001073SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001074CURL_CFLAG_EXTRAS
1075CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001076AM_BACKSLASH
1077AM_DEFAULT_VERBOSITY
1078AM_DEFAULT_V
1079AM_V
1080MAINT
1081MAINTAINER_MODE_FALSE
1082MAINTAINER_MODE_TRUE
1083target_alias
1084host_alias
1085build_alias
1086LIBS
1087ECHO_T
1088ECHO_N
1089ECHO_C
1090DEFS
1091mandir
1092localedir
1093libdir
1094psdir
1095pdfdir
1096dvidir
1097htmldir
1098infodir
1099docdir
1100oldincludedir
1101includedir
1102runstatedir
1103localstatedir
1104sharedstatedir
1105sysconfdir
1106datadir
1107datarootdir
1108libexecdir
1109sbindir
1110bindir
1111program_transform_name
1112prefix
1113exec_prefix
1114PACKAGE_URL
1115PACKAGE_BUGREPORT
1116PACKAGE_STRING
1117PACKAGE_VERSION
1118PACKAGE_TARNAME
1119PACKAGE_NAME
1120SHELL
1121PATH_SEPARATOR'
1122ac_subst_files=''
1123ac_user_opts='
1124enable_option_checking
1125enable_maintainer_mode
1126enable_silent_rules
1127enable_debug
1128enable_optimize
1129enable_warnings
1130enable_werror
1131enable_curldebug
1132enable_symbol_hiding
1133enable_hidden_symbols
1134enable_ares
1135enable_rt
1136with_gcov
1137enable_code_coverage
1138enable_dependency_tracking
1139enable_largefile
1140enable_shared
1141enable_static
1142with_pic
1143enable_fast_install
1144with_aix_soname
1145with_gnu_ld
1146with_sysroot
1147enable_libtool_lock
1148enable_http
1149enable_ftp
1150enable_file
1151enable_ldap
1152enable_ldaps
1153enable_rtsp
1154enable_proxy
1155enable_dict
1156enable_telnet
1157enable_tftp
1158enable_pop3
1159enable_imap
1160enable_smb
1161enable_smtp
1162enable_gopher
1163enable_manual
1164enable_libcurl_option
1165enable_libgcc
1166with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001167with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001168with_ldap_lib
1169with_lber_lib
1170enable_ipv6
1171with_gssapi_includes
1172with_gssapi_libs
1173with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001174with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001175with_winssl
1176with_darwinssl
1177with_ssl
1178with_egd_socket
1179with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001180enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001181with_gnutls
1182with_polarssl
1183with_mbedtls
1184with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001185with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001186with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001187with_nss
1188with_axtls
1189with_ca_bundle
1190with_ca_path
1191with_ca_fallback
1192with_libpsl
1193with_libmetalink
1194with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001195with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001196with_librtmp
1197enable_versioned_symbols
1198with_winidn
1199with_libidn2
1200with_nghttp2
1201with_zsh_functions_dir
1202enable_threaded_resolver
1203enable_pthreads
1204enable_verbose
1205enable_sspi
1206enable_crypto_auth
1207enable_ntlm_wb
1208enable_tls_srp
1209enable_unix_sockets
1210enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001211'
1212 ac_precious_vars='build_alias
1213host_alias
1214target_alias
1215CC
1216CFLAGS
1217LDFLAGS
1218LIBS
1219CPPFLAGS
1220CPP
1221LT_SYS_LIBRARY_PATH'
1222ac_subdirs_all='ares'
1223
1224# Initialize some variables set by options.
1225ac_init_help=
1226ac_init_version=false
1227ac_unrecognized_opts=
1228ac_unrecognized_sep=
1229# The variables have the same names as the options, with
1230# dashes changed to underlines.
1231cache_file=/dev/null
1232exec_prefix=NONE
1233no_create=
1234no_recursion=
1235prefix=NONE
1236program_prefix=NONE
1237program_suffix=NONE
1238program_transform_name=s,x,x,
1239silent=
1240site=
1241srcdir=
1242verbose=
1243x_includes=NONE
1244x_libraries=NONE
1245
1246# Installation directory options.
1247# These are left unexpanded so users can "make install exec_prefix=/foo"
1248# and all the variables that are supposed to be based on exec_prefix
1249# by default will actually change.
1250# Use braces instead of parens because sh, perl, etc. also accept them.
1251# (The list follows the same order as the GNU Coding Standards.)
1252bindir='${exec_prefix}/bin'
1253sbindir='${exec_prefix}/sbin'
1254libexecdir='${exec_prefix}/libexec'
1255datarootdir='${prefix}/share'
1256datadir='${datarootdir}'
1257sysconfdir='${prefix}/etc'
1258sharedstatedir='${prefix}/com'
1259localstatedir='${prefix}/var'
1260runstatedir='${localstatedir}/run'
1261includedir='${prefix}/include'
1262oldincludedir='/usr/include'
1263docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264infodir='${datarootdir}/info'
1265htmldir='${docdir}'
1266dvidir='${docdir}'
1267pdfdir='${docdir}'
1268psdir='${docdir}'
1269libdir='${exec_prefix}/lib'
1270localedir='${datarootdir}/locale'
1271mandir='${datarootdir}/man'
1272
1273ac_prev=
1274ac_dashdash=
1275for ac_option
1276do
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1280 ac_prev=
1281 continue
1282 fi
1283
1284 case $ac_option in
1285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286 *=) ac_optarg= ;;
1287 *) ac_optarg=yes ;;
1288 esac
1289
1290 # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292 case $ac_dashdash$ac_option in
1293 --)
1294 ac_dashdash=yes ;;
1295
1296 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297 ac_prev=bindir ;;
1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299 bindir=$ac_optarg ;;
1300
1301 -build | --build | --buil | --bui | --bu)
1302 ac_prev=build_alias ;;
1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304 build_alias=$ac_optarg ;;
1305
1306 -cache-file | --cache-file | --cache-fil | --cache-fi \
1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308 ac_prev=cache_file ;;
1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311 cache_file=$ac_optarg ;;
1312
1313 --config-cache | -C)
1314 cache_file=config.cache ;;
1315
1316 -datadir | --datadir | --datadi | --datad)
1317 ac_prev=datadir ;;
1318 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319 datadir=$ac_optarg ;;
1320
1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322 | --dataroo | --dataro | --datar)
1323 ac_prev=datarootdir ;;
1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326 datarootdir=$ac_optarg ;;
1327
1328 -disable-* | --disable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error $? "invalid feature name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"enable_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval enable_$ac_useropt=no ;;
1343
1344 -docdir | --docdir | --docdi | --doc | --do)
1345 ac_prev=docdir ;;
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1348
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350 ac_prev=dvidir ;;
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1353
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid feature name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1362 *"
1363"enable_$ac_useropt"
1364"*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372 | --exec | --exe | --ex)
1373 ac_prev=exec_prefix ;;
1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376 | --exec=* | --exe=* | --ex=*)
1377 exec_prefix=$ac_optarg ;;
1378
1379 -gas | --gas | --ga | --g)
1380 # Obsolete; use --with-gas.
1381 with_gas=yes ;;
1382
1383 -help | --help | --hel | --he | -h)
1384 ac_init_help=long ;;
1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386 ac_init_help=recursive ;;
1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388 ac_init_help=short ;;
1389
1390 -host | --host | --hos | --ho)
1391 ac_prev=host_alias ;;
1392 -host=* | --host=* | --hos=* | --ho=*)
1393 host_alias=$ac_optarg ;;
1394
1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396 ac_prev=htmldir ;;
1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398 | --ht=*)
1399 htmldir=$ac_optarg ;;
1400
1401 -includedir | --includedir | --includedi | --included | --include \
1402 | --includ | --inclu | --incl | --inc)
1403 ac_prev=includedir ;;
1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405 | --includ=* | --inclu=* | --incl=* | --inc=*)
1406 includedir=$ac_optarg ;;
1407
1408 -infodir | --infodir | --infodi | --infod | --info | --inf)
1409 ac_prev=infodir ;;
1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411 infodir=$ac_optarg ;;
1412
1413 -libdir | --libdir | --libdi | --libd)
1414 ac_prev=libdir ;;
1415 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416 libdir=$ac_optarg ;;
1417
1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419 | --libexe | --libex | --libe)
1420 ac_prev=libexecdir ;;
1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422 | --libexe=* | --libex=* | --libe=*)
1423 libexecdir=$ac_optarg ;;
1424
1425 -localedir | --localedir | --localedi | --localed | --locale)
1426 ac_prev=localedir ;;
1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428 localedir=$ac_optarg ;;
1429
1430 -localstatedir | --localstatedir | --localstatedi | --localstated \
1431 | --localstate | --localstat | --localsta | --localst | --locals)
1432 ac_prev=localstatedir ;;
1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435 localstatedir=$ac_optarg ;;
1436
1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438 ac_prev=mandir ;;
1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440 mandir=$ac_optarg ;;
1441
1442 -nfp | --nfp | --nf)
1443 # Obsolete; use --without-fp.
1444 with_fp=no ;;
1445
1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447 | --no-cr | --no-c | -n)
1448 no_create=yes ;;
1449
1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452 no_recursion=yes ;;
1453
1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456 | --oldin | --oldi | --old | --ol | --o)
1457 ac_prev=oldincludedir ;;
1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461 oldincludedir=$ac_optarg ;;
1462
1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464 ac_prev=prefix ;;
1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466 prefix=$ac_optarg ;;
1467
1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469 | --program-pre | --program-pr | --program-p)
1470 ac_prev=program_prefix ;;
1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473 program_prefix=$ac_optarg ;;
1474
1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476 | --program-suf | --program-su | --program-s)
1477 ac_prev=program_suffix ;;
1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480 program_suffix=$ac_optarg ;;
1481
1482 -program-transform-name | --program-transform-name \
1483 | --program-transform-nam | --program-transform-na \
1484 | --program-transform-n | --program-transform- \
1485 | --program-transform | --program-transfor \
1486 | --program-transfo | --program-transf \
1487 | --program-trans | --program-tran \
1488 | --progr-tra | --program-tr | --program-t)
1489 ac_prev=program_transform_name ;;
1490 -program-transform-name=* | --program-transform-name=* \
1491 | --program-transform-nam=* | --program-transform-na=* \
1492 | --program-transform-n=* | --program-transform-=* \
1493 | --program-transform=* | --program-transfor=* \
1494 | --program-transfo=* | --program-transf=* \
1495 | --program-trans=* | --program-tran=* \
1496 | --progr-tra=* | --program-tr=* | --program-t=*)
1497 program_transform_name=$ac_optarg ;;
1498
1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500 ac_prev=pdfdir ;;
1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502 pdfdir=$ac_optarg ;;
1503
1504 -psdir | --psdir | --psdi | --psd | --ps)
1505 ac_prev=psdir ;;
1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507 psdir=$ac_optarg ;;
1508
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 silent=yes ;;
1512
1513 -runstatedir | --runstatedir | --runstatedi | --runstated \
1514 | --runstate | --runstat | --runsta | --runst | --runs \
1515 | --run | --ru | --r)
1516 ac_prev=runstatedir ;;
1517 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1518 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1519 | --run=* | --ru=* | --r=*)
1520 runstatedir=$ac_optarg ;;
1521
1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1523 ac_prev=sbindir ;;
1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1525 | --sbi=* | --sb=*)
1526 sbindir=$ac_optarg ;;
1527
1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530 | --sharedst | --shareds | --shared | --share | --shar \
1531 | --sha | --sh)
1532 ac_prev=sharedstatedir ;;
1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1536 | --sha=* | --sh=*)
1537 sharedstatedir=$ac_optarg ;;
1538
1539 -site | --site | --sit)
1540 ac_prev=site ;;
1541 -site=* | --site=* | --sit=*)
1542 site=$ac_optarg ;;
1543
1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1545 ac_prev=srcdir ;;
1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547 srcdir=$ac_optarg ;;
1548
1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550 | --syscon | --sysco | --sysc | --sys | --sy)
1551 ac_prev=sysconfdir ;;
1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554 sysconfdir=$ac_optarg ;;
1555
1556 -target | --target | --targe | --targ | --tar | --ta | --t)
1557 ac_prev=target_alias ;;
1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559 target_alias=$ac_optarg ;;
1560
1561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1562 verbose=yes ;;
1563
1564 -version | --version | --versio | --versi | --vers | -V)
1565 ac_init_version=: ;;
1566
1567 -with-* | --with-*)
1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1571 as_fn_error $? "invalid package name: $ac_useropt"
1572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1575 *"
1576"with_$ac_useropt"
1577"*) ;;
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1580 esac
1581 eval with_$ac_useropt=\$ac_optarg ;;
1582
1583 -without-* | --without-*)
1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1587 as_fn_error $? "invalid package name: $ac_useropt"
1588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1591 *"
1592"with_$ac_useropt"
1593"*) ;;
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1596 esac
1597 eval with_$ac_useropt=no ;;
1598
1599 --x)
1600 # Obsolete; use --with-x.
1601 with_x=yes ;;
1602
1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604 | --x-incl | --x-inc | --x-in | --x-i)
1605 ac_prev=x_includes ;;
1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608 x_includes=$ac_optarg ;;
1609
1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612 ac_prev=x_libraries ;;
1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615 x_libraries=$ac_optarg ;;
1616
1617 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618Try \`$0 --help' for more information"
1619 ;;
1620
1621 *=*)
1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623 # Reject names that are not valid shell variable names.
1624 case $ac_envvar in #(
1625 '' | [0-9]* | *[!_$as_cr_alnum]* )
1626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1627 esac
1628 eval $ac_envvar=\$ac_optarg
1629 export $ac_envvar ;;
1630
1631 *)
1632 # FIXME: should be removed in autoconf 3.0.
1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1637 ;;
1638
1639 esac
1640done
1641
1642if test -n "$ac_prev"; then
1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1644 as_fn_error $? "missing argument to $ac_option"
1645fi
1646
1647if test -n "$ac_unrecognized_opts"; then
1648 case $enable_option_checking in
1649 no) ;;
1650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1652 esac
1653fi
1654
1655# Check all directory arguments for consistency.
1656for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657 datadir sysconfdir sharedstatedir localstatedir includedir \
1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659 libdir localedir mandir runstatedir
1660do
1661 eval ac_val=\$$ac_var
1662 # Remove trailing slashes.
1663 case $ac_val in
1664 */ )
1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666 eval $ac_var=\$ac_val;;
1667 esac
1668 # Be sure to have absolute directory names.
1669 case $ac_val in
1670 [\\/$]* | ?:[\\/]* ) continue;;
1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1672 esac
1673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1674done
1675
1676# There might be people who depend on the old broken behavior: `$host'
1677# used to hold the argument of --host etc.
1678# FIXME: To remove some day.
1679build=$build_alias
1680host=$host_alias
1681target=$target_alias
1682
1683# FIXME: To remove some day.
1684if test "x$host_alias" != x; then
1685 if test "x$build_alias" = x; then
1686 cross_compiling=maybe
1687 elif test "x$build_alias" != "x$host_alias"; then
1688 cross_compiling=yes
1689 fi
1690fi
1691
1692ac_tool_prefix=
1693test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694
1695test "$silent" = yes && exec 6>/dev/null
1696
1697
1698ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699ac_ls_di=`ls -di .` &&
1700ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1701 as_fn_error $? "working directory cannot be determined"
1702test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1703 as_fn_error $? "pwd does not report name of working directory"
1704
1705
1706# Find the source files, if location was not specified.
1707if test -z "$srcdir"; then
1708 ac_srcdir_defaulted=yes
1709 # Try the directory containing this script, then the parent directory.
1710 ac_confdir=`$as_dirname -- "$as_myself" ||
1711$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712 X"$as_myself" : 'X\(//\)[^/]' \| \
1713 X"$as_myself" : 'X\(//\)$' \| \
1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715$as_echo X"$as_myself" |
1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\/\)[^/].*/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)$/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\).*/{
1729 s//\1/
1730 q
1731 }
1732 s/.*/./; q'`
1733 srcdir=$ac_confdir
1734 if test ! -r "$srcdir/$ac_unique_file"; then
1735 srcdir=..
1736 fi
1737else
1738 ac_srcdir_defaulted=no
1739fi
1740if test ! -r "$srcdir/$ac_unique_file"; then
1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1743fi
1744ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1745ac_abs_confdir=`(
1746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1747 pwd)`
1748# When building in place, set srcdir=.
1749if test "$ac_abs_confdir" = "$ac_pwd"; then
1750 srcdir=.
1751fi
1752# Remove unnecessary trailing slashes from srcdir.
1753# Double slashes in file names in object file debugging info
1754# mess up M-x gdb in Emacs.
1755case $srcdir in
1756*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1757esac
1758for ac_var in $ac_precious_vars; do
1759 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_env_${ac_var}_value=\$${ac_var}
1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1763done
1764
1765#
1766# Report the --help message.
1767#
1768if test "$ac_init_help" = "long"; then
1769 # Omit some internal or obsolete options to make the list less imposing.
1770 # This message is too long to be a string in the A/UX 3.1 sh.
1771 cat <<_ACEOF
1772\`configure' configures curl - to adapt to many kinds of systems.
1773
1774Usage: $0 [OPTION]... [VAR=VALUE]...
1775
1776To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777VAR=VALUE. See below for descriptions of some of the useful variables.
1778
1779Defaults for the options are specified in brackets.
1780
1781Configuration:
1782 -h, --help display this help and exit
1783 --help=short display options specific to this package
1784 --help=recursive display the short help of all the included packages
1785 -V, --version display version information and exit
1786 -q, --quiet, --silent do not print \`checking ...' messages
1787 --cache-file=FILE cache test results in FILE [disabled]
1788 -C, --config-cache alias for \`--cache-file=config.cache'
1789 -n, --no-create do not create output files
1790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1791
1792Installation directories:
1793 --prefix=PREFIX install architecture-independent files in PREFIX
1794 [$ac_default_prefix]
1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1796 [PREFIX]
1797
1798By default, \`make install' will install all the files in
1799\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1800an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801for instance \`--prefix=\$HOME'.
1802
1803For better control, use the options below.
1804
1805Fine tuning of the installation directories:
1806 --bindir=DIR user executables [EPREFIX/bin]
1807 --sbindir=DIR system admin executables [EPREFIX/sbin]
1808 --libexecdir=DIR program executables [EPREFIX/libexec]
1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1812 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1813 --libdir=DIR object code libraries [EPREFIX/lib]
1814 --includedir=DIR C header files [PREFIX/include]
1815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1816 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1817 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1818 --infodir=DIR info documentation [DATAROOTDIR/info]
1819 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1820 --mandir=DIR man documentation [DATAROOTDIR/man]
1821 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1822 --htmldir=DIR html documentation [DOCDIR]
1823 --dvidir=DIR dvi documentation [DOCDIR]
1824 --pdfdir=DIR pdf documentation [DOCDIR]
1825 --psdir=DIR ps documentation [DOCDIR]
1826_ACEOF
1827
1828 cat <<\_ACEOF
1829
1830Program names:
1831 --program-prefix=PREFIX prepend PREFIX to installed program names
1832 --program-suffix=SUFFIX append SUFFIX to installed program names
1833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1834
1835System types:
1836 --build=BUILD configure for building on BUILD [guessed]
1837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1838_ACEOF
1839fi
1840
1841if test -n "$ac_init_help"; then
1842 case $ac_init_help in
1843 short | recursive ) echo "Configuration of curl -:";;
1844 esac
1845 cat <<\_ACEOF
1846
1847Optional Features:
1848 --disable-option-checking ignore unrecognized --enable/--with options
1849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1851 --enable-maintainer-mode
1852 enable make rules and dependencies not useful (and
1853 sometimes confusing) to the casual installer
1854 --enable-silent-rules less verbose build output (undo: "make V=1")
1855 --disable-silent-rules verbose build output (undo: "make V=0")
1856 --enable-debug Enable debug build options
1857 --disable-debug Disable debug build options
1858 --enable-optimize Enable compiler optimizations
1859 --disable-optimize Disable compiler optimizations
1860 --enable-warnings Enable strict compiler warnings
1861 --disable-warnings Disable strict compiler warnings
1862 --enable-werror Enable compiler warnings as errors
1863 --disable-werror Disable compiler warnings as errors
1864 --enable-curldebug Enable curl debug memory tracking
1865 --disable-curldebug Disable curl debug memory tracking
1866 --enable-symbol-hiding Enable hiding of library internal symbols
1867 --disable-symbol-hiding Disable hiding of library internal symbols
1868 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1869 --disable-hidden-symbols
1870 To be deprecated, use --disable-symbol-hiding
1871 --enable-ares[=PATH] Enable c-ares for DNS lookups
1872 --disable-ares Disable c-ares for DNS lookups
1873 --disable-rt disable dependency on -lrt
1874 --enable-code-coverage Whether to enable code coverage support
1875 --enable-dependency-tracking
1876 do not reject slow dependency extractors
1877 --disable-dependency-tracking
1878 speeds up one-time build
1879 --disable-largefile omit support for large files
1880 --enable-shared[=PKGS] build shared libraries [default=yes]
1881 --enable-static[=PKGS] build static libraries [default=yes]
1882 --enable-fast-install[=PKGS]
1883 optimize for fast installation [default=yes]
1884 --disable-libtool-lock avoid locking (might break parallel builds)
1885 --enable-http Enable HTTP support
1886 --disable-http Disable HTTP support
1887 --enable-ftp Enable FTP support
1888 --disable-ftp Disable FTP support
1889 --enable-file Enable FILE support
1890 --disable-file Disable FILE support
1891 --enable-ldap Enable LDAP support
1892 --disable-ldap Disable LDAP support
1893 --enable-ldaps Enable LDAPS support
1894 --disable-ldaps Disable LDAPS support
1895 --enable-rtsp Enable RTSP support
1896 --disable-rtsp Disable RTSP support
1897 --enable-proxy Enable proxy support
1898 --disable-proxy Disable proxy support
1899 --enable-dict Enable DICT support
1900 --disable-dict Disable DICT support
1901 --enable-telnet Enable TELNET support
1902 --disable-telnet Disable TELNET support
1903 --enable-tftp Enable TFTP support
1904 --disable-tftp Disable TFTP support
1905 --enable-pop3 Enable POP3 support
1906 --disable-pop3 Disable POP3 support
1907 --enable-imap Enable IMAP support
1908 --disable-imap Disable IMAP support
1909 --enable-smb Enable SMB/CIFS support
1910 --disable-smb Disable SMB/CIFS support
1911 --enable-smtp Enable SMTP support
1912 --disable-smtp Disable SMTP support
1913 --enable-gopher Enable Gopher support
1914 --disable-gopher Disable Gopher support
1915 --enable-manual Enable built-in manual
1916 --disable-manual Disable built-in manual
1917 --enable-libcurl-option Enable --libcurl C code generation support
1918 --disable-libcurl-option
1919 Disable --libcurl C code generation support
1920 --enable-libgcc use libgcc when linking
1921 --enable-ipv6 Enable IPv6 (with IPv4) support
1922 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001923 --enable-openssl-auto-load-config
1924 Enable automatic loading of OpenSSL configuration
1925 --disable-openssl-auto-load-config
1926 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001927 --enable-versioned-symbols
1928 Enable versioned symbols in shared library
1929 --disable-versioned-symbols
1930 Disable versioned symbols in shared library
1931 --enable-threaded-resolver
1932 Enable threaded resolver
1933 --disable-threaded-resolver
1934 Disable threaded resolver
1935 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1936 --disable-pthreads Disable POSIX threads
1937 --enable-verbose Enable verbose strings
1938 --disable-verbose Disable verbose strings
1939 --enable-sspi Enable SSPI
1940 --disable-sspi Disable SSPI
1941 --enable-crypto-auth Enable cryptographic authentication
1942 --disable-crypto-auth Disable cryptographic authentication
1943 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1944 helper, where FILE is ntlm_auth's absolute filename
1945 (default: /usr/bin/ntlm_auth)
1946 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1947 helper
1948 --enable-tls-srp Enable TLS-SRP authentication
1949 --disable-tls-srp Disable TLS-SRP authentication
1950 --enable-unix-sockets Enable Unix domain sockets
1951 --disable-unix-sockets Disable Unix domain sockets
1952 --enable-cookies Enable cookies support
1953 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001954
1955Optional Packages:
1956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1958 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1959 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1960 both]
1961 --with-aix-soname=aix|svr4|both
1962 shared library versioning (aka "SONAME") variant to
1963 provide on AIX, [default=aix].
1964 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1965 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1966 compiler's sysroot if not specified).
1967 --with-zlib=PATH search for zlib in PATH
1968 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001969 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1970 installation; when possible, set the PKG_CONFIG_PATH
1971 environment variable instead of using this option
1972 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001973 --with-ldap-lib=libname Specify name of ldap lib file
1974 --with-lber-lib=libname Specify name of lber lib file
1975 --with-gssapi-includes=DIR
1976 Specify location of GSS-API headers
1977 --with-gssapi-libs=DIR Specify location of GSS-API libs
1978 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001979 --with-default-ssl-backend=NAME
1980 Use NAME as default SSL backend
1981 --without-default-ssl-backend
1982 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001983 --with-winssl enable Windows native SSL/TLS
1984 --without-winssl disable Windows native SSL/TLS
1985 --with-darwinssl enable Apple OS native SSL/TLS
1986 --without-darwinssl disable Apple OS native SSL/TLS
1987 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1988 installation (default: /usr/local/ssl); when
1989 possible, set the PKG_CONFIG_PATH environment
1990 variable instead of using this option
1991 --without-ssl disable OpenSSL
1992 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1993 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1994 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1995 installation root
1996 --without-gnutls disable GnuTLS detection
1997 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1998 installation root
1999 --without-polarssl disable PolarSSL detection
2000 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2001 installation root
2002 --without-mbedtls disable mbedTLS detection
2003 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2004 installation root (default: system lib default)
2005 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07002006 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2007 installation root (default: system lib default)
2008 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08002009 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2010 installation root
2011 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002012 --with-nss=PATH where to look for NSS, PATH points to the
2013 installation root
2014 --without-nss disable NSS detection
2015 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2016 installation prefix (default: /usr/local). Ignored
2017 if another SSL engine is selected.
2018 --without-axtls disable axTLS
2019 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2020 /etc/ca-bundle.crt)
2021 --without-ca-bundle Don't use a default CA bundle
2022 --with-ca-path=DIRECTORY
2023 Path to a directory containing CA certificates
2024 stored individually, with their filenames in a hash
2025 format. This option can be used with OpenSSL, GnuTLS
2026 and PolarSSL backends. Refer to OpenSSL c_rehash for
2027 details. (example: /etc/certificates)
2028 --without-ca-path Don't use a default CA path
2029 --with-ca-fallback Use the built in CA store of the SSL library
2030 --without-ca-fallback Don't use the built in CA store of the SSL library
2031 --without-libpsl disable support for libpsl cookie checking
2032 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2033 installation root
2034 --without-libmetalink disable libmetalink detection
2035 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2036 LIBSSH2 installation; when possible, set the
2037 PKG_CONFIG_PATH environment variable instead of
2038 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002039 --with-libssh2 enable LIBSSH2
2040 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2041 installation; when possible, set the PKG_CONFIG_PATH
2042 environment variable instead of using this option
2043 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002044 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2045 LIBRTMP installation; when possible, set the
2046 PKG_CONFIG_PATH environment variable instead of
2047 using this option
2048 --without-librtmp disable LIBRTMP
2049 --with-winidn=PATH enable Windows native IDN
2050 --without-winidn disable Windows native IDN
2051 --with-libidn2=PATH Enable libidn2 usage
2052 --without-libidn2 Disable libidn2 usage
2053 --with-nghttp2=PATH Enable nghttp2 usage
2054 --without-nghttp2 Disable nghttp2 usage
2055 --with-zsh-functions-dir=PATH
2056 Install zsh completions to PATH
2057 --without-zsh-functions-dir
2058 Do not install zsh completions
2059
2060Some influential environment variables:
2061 CC C compiler command
2062 CFLAGS C compiler flags
2063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2064 nonstandard directory <lib dir>
2065 LIBS libraries to pass to the linker, e.g. -l<library>
2066 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2067 you have headers in a nonstandard directory <include dir>
2068 CPP C preprocessor
2069 LT_SYS_LIBRARY_PATH
2070 User-defined run-time library search path.
2071
2072Use these variables to override the choices made by `configure' or to help
2073it to find libraries and programs with nonstandard names/locations.
2074
2075Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2076_ACEOF
2077ac_status=$?
2078fi
2079
2080if test "$ac_init_help" = "recursive"; then
2081 # If there are subdirs, report their specific --help.
2082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2083 test -d "$ac_dir" ||
2084 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2085 continue
2086 ac_builddir=.
2087
2088case "$ac_dir" in
2089.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090*)
2091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2092 # A ".." for each directory in $ac_dir_suffix.
2093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2094 case $ac_top_builddir_sub in
2095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2097 esac ;;
2098esac
2099ac_abs_top_builddir=$ac_pwd
2100ac_abs_builddir=$ac_pwd$ac_dir_suffix
2101# for backward compatibility:
2102ac_top_builddir=$ac_top_build_prefix
2103
2104case $srcdir in
2105 .) # We are building in place.
2106 ac_srcdir=.
2107 ac_top_srcdir=$ac_top_builddir_sub
2108 ac_abs_top_srcdir=$ac_pwd ;;
2109 [\\/]* | ?:[\\/]* ) # Absolute name.
2110 ac_srcdir=$srcdir$ac_dir_suffix;
2111 ac_top_srcdir=$srcdir
2112 ac_abs_top_srcdir=$srcdir ;;
2113 *) # Relative name.
2114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2115 ac_top_srcdir=$ac_top_build_prefix$srcdir
2116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2117esac
2118ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2119
2120 cd "$ac_dir" || { ac_status=$?; continue; }
2121 # Check for guested configure.
2122 if test -f "$ac_srcdir/configure.gnu"; then
2123 echo &&
2124 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2125 elif test -f "$ac_srcdir/configure"; then
2126 echo &&
2127 $SHELL "$ac_srcdir/configure" --help=recursive
2128 else
2129 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2130 fi || ac_status=$?
2131 cd "$ac_pwd" || { ac_status=$?; break; }
2132 done
2133fi
2134
2135test -n "$ac_init_help" && exit $ac_status
2136if $ac_init_version; then
2137 cat <<\_ACEOF
2138curl configure -
2139generated by GNU Autoconf 2.69
2140
2141Copyright (C) 2012 Free Software Foundation, Inc.
2142This configure script is free software; the Free Software Foundation
2143gives unlimited permission to copy, distribute and modify it.
2144
2145Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2146This configure script may be copied, distributed and modified under the
2147terms of the curl license; see COPYING for more details
2148_ACEOF
2149 exit
2150fi
2151
2152## ------------------------ ##
2153## Autoconf initialization. ##
2154## ------------------------ ##
2155
2156# ac_fn_c_try_compile LINENO
2157# --------------------------
2158# Try to compile conftest.$ac_ext, and return whether this succeeded.
2159ac_fn_c_try_compile ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 rm -f conftest.$ac_objext
2163 if { { ac_try="$ac_compile"
2164case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167esac
2168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169$as_echo "$ac_try_echo"; } >&5
2170 (eval "$ac_compile") 2>conftest.err
2171 ac_status=$?
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2176 fi
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } && {
2179 test -z "$ac_c_werror_flag" ||
2180 test ! -s conftest.err
2181 } && test -s conftest.$ac_objext; then :
2182 ac_retval=0
2183else
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=1
2188fi
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 as_fn_set_status $ac_retval
2191
2192} # ac_fn_c_try_compile
2193
2194# ac_fn_c_try_cpp LINENO
2195# ----------------------
2196# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2197ac_fn_c_try_cpp ()
2198{
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if { { ac_try="$ac_cpp conftest.$ac_ext"
2201case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2213 fi
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } > conftest.i && {
2216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 }; then :
2219 ac_retval=0
2220else
2221 $as_echo "$as_me: failed program was:" >&5
2222sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 ac_retval=1
2225fi
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2228
2229} # ac_fn_c_try_cpp
2230
Alex Deymo486467e2017-12-19 19:04:07 +01002231# ac_fn_c_try_link LINENO
2232# -----------------------
2233# Try to link conftest.$ac_ext, and return whether this succeeded.
2234ac_fn_c_try_link ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext conftest$ac_exeext
2238 if { { ac_try="$ac_link"
2239case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242esac
2243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244$as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2251 fi
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest$ac_exeext && {
2257 test "$cross_compiling" = yes ||
2258 test -x conftest$ac_exeext
2259 }; then :
2260 ac_retval=0
2261else
2262 $as_echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 ac_retval=1
2266fi
2267 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2268 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2269 # interfere with the next link command; also delete a directory that is
2270 # left behind by Apple's compiler. We do this before executing the actions.
2271 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2274
2275} # ac_fn_c_try_link
2276
Elliott Hughes82be86d2017-09-20 17:00:17 -07002277# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2278# -------------------------------------------------------
2279# Tests whether HEADER exists and can be compiled using the include files in
2280# INCLUDES, setting the cache variable VAR accordingly.
2281ac_fn_c_check_header_compile ()
2282{
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285$as_echo_n "checking for $2... " >&6; }
2286if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288else
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290/* end confdefs.h. */
2291$4
2292#include <$2>
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295 eval "$3=yes"
2296else
2297 eval "$3=no"
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303$as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306} # ac_fn_c_check_header_compile
2307
2308# ac_fn_c_try_run LINENO
2309# ----------------------
2310# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2311# that executables *can* be run.
2312ac_fn_c_try_run ()
2313{
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 if { { ac_try="$ac_link"
2316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
2320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321$as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>&5
2323 ac_status=$?
2324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2326 { { case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_try") 2>&5
2333 ac_status=$?
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; }; }; then :
2336 ac_retval=0
2337else
2338 $as_echo "$as_me: program exited with status $ac_status" >&5
2339 $as_echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_retval=$ac_status
2343fi
2344 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 as_fn_set_status $ac_retval
2347
2348} # ac_fn_c_try_run
2349
Alex Deymo486467e2017-12-19 19:04:07 +01002350# ac_fn_c_check_func LINENO FUNC VAR
2351# ----------------------------------
2352# Tests whether FUNC exists, setting the cache variable VAR accordingly
2353ac_fn_c_check_func ()
2354{
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357$as_echo_n "checking for $2... " >&6; }
2358if eval \${$3+:} false; then :
2359 $as_echo_n "(cached) " >&6
2360else
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362/* end confdefs.h. */
2363
2364#define $2 innocuous_$2
2365#ifdef __STDC__
2366# include <limits.h>
2367#else
2368# include <assert.h>
2369#endif
2370#undef $2
2371#ifdef __cplusplus
2372extern "C"
2373#endif
2374char $2 ();
2375#if defined __stub_$2 || defined __stub___$2
2376choke me
2377#endif
2378
2379int main (void)
2380{
2381return $2 ();
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_link "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2393fi
2394eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398
2399} # ac_fn_c_check_func
2400
2401# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402# -------------------------------------------------------
2403# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404# the include files in INCLUDES and setting the cache variable VAR
2405# accordingly.
2406ac_fn_c_check_header_mongrel ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if eval \${$3+:} false; then :
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411$as_echo_n "checking for $2... " >&6; }
2412if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414fi
2415eval ac_res=\$$3
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417$as_echo "$ac_res" >&6; }
2418else
2419 # Is the header compilable?
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421$as_echo_n "checking $2 usability... " >&6; }
2422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h. */
2424$4
2425#include <$2>
2426_ACEOF
2427if ac_fn_c_try_compile "$LINENO"; then :
2428 ac_header_compiler=yes
2429else
2430 ac_header_compiler=no
2431fi
2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434$as_echo "$ac_header_compiler" >&6; }
2435
2436# Is the header present?
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438$as_echo_n "checking $2 presence... " >&6; }
2439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440/* end confdefs.h. */
2441#include <$2>
2442_ACEOF
2443if ac_fn_c_try_cpp "$LINENO"; then :
2444 ac_header_preproc=yes
2445else
2446 ac_header_preproc=no
2447fi
2448rm -f conftest.err conftest.i conftest.$ac_ext
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450$as_echo "$ac_header_preproc" >&6; }
2451
2452# So? What about this header?
2453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454 yes:no: )
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459 ;;
2460 no:yes:* )
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2464$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2468$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471( $as_echo "## ----------------------------------------------------------------------- ##
2472## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2473## ----------------------------------------------------------------------- ##"
2474 ) | sed "s/^/$as_me: WARNING: /" >&2
2475 ;;
2476esac
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478$as_echo_n "checking for $2... " >&6; }
2479if eval \${$3+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481else
2482 eval "$3=\$ac_header_compiler"
2483fi
2484eval ac_res=\$$3
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486$as_echo "$ac_res" >&6; }
2487fi
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489
2490} # ac_fn_c_check_header_mongrel
2491
Elliott Hughes82be86d2017-09-20 17:00:17 -07002492# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2493# -------------------------------------------
2494# Tests whether TYPE exists after having included INCLUDES, setting cache
2495# variable VAR accordingly.
2496ac_fn_c_check_type ()
2497{
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2500$as_echo_n "checking for $2... " >&6; }
2501if eval \${$3+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 eval "$3=no"
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506/* end confdefs.h. */
2507$4
2508int main (void)
2509{
2510if (sizeof ($2))
2511 return 0;
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h. */
2519$4
2520int main (void)
2521{
2522if (sizeof (($2)))
2523 return 0;
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528if ac_fn_c_try_compile "$LINENO"; then :
2529
2530else
2531 eval "$3=yes"
2532fi
2533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534fi
2535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536fi
2537eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539$as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541
2542} # ac_fn_c_check_type
2543
Elliott Hughes72d948d2018-08-03 14:37:21 -07002544# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2545# ---------------------------------------------
2546# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2547# accordingly.
2548ac_fn_c_check_decl ()
2549{
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 as_decl_name=`echo $2|sed 's/ *(.*//'`
2552 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2554$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2555if eval \${$3+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559/* end confdefs.h. */
2560$4
2561int main (void)
2562{
2563#ifndef $as_decl_name
2564#ifdef __cplusplus
2565 (void) $as_decl_use;
2566#else
2567 (void) $as_decl_name;
2568#endif
2569#endif
2570
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576 eval "$3=yes"
2577else
2578 eval "$3=no"
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582eval ac_res=\$$3
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584$as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586
2587} # ac_fn_c_check_decl
2588
Elliott Hughes82be86d2017-09-20 17:00:17 -07002589# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2590# ----------------------------------------------------
2591# Tries to find if the field MEMBER exists in type AGGR, after including
2592# INCLUDES, setting cache variable VAR accordingly.
2593ac_fn_c_check_member ()
2594{
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2597$as_echo_n "checking for $2.$3... " >&6; }
2598if eval \${$4+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602/* end confdefs.h. */
2603$5
2604int main (void)
2605{
2606static $2 ac_aggr;
2607if (ac_aggr.$3)
2608return 0;
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613if ac_fn_c_try_compile "$LINENO"; then :
2614 eval "$4=yes"
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618$5
2619int main (void)
2620{
2621static $2 ac_aggr;
2622if (sizeof ac_aggr.$3)
2623return 0;
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_compile "$LINENO"; then :
2629 eval "$4=yes"
2630else
2631 eval "$4=no"
2632fi
2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi
2637eval ac_res=\$$4
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639$as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641
2642} # ac_fn_c_check_member
2643cat >config.log <<_ACEOF
2644This file contains any messages produced by compilers while
2645running configure, to aid debugging if configure makes a mistake.
2646
2647It was created by curl $as_me -, which was
2648generated by GNU Autoconf 2.69. Invocation command line was
2649
2650 $ $0 $@
2651
2652_ACEOF
2653exec 5>>config.log
2654{
2655cat <<_ASUNAME
2656## --------- ##
2657## Platform. ##
2658## --------- ##
2659
2660hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2661uname -m = `(uname -m) 2>/dev/null || echo unknown`
2662uname -r = `(uname -r) 2>/dev/null || echo unknown`
2663uname -s = `(uname -s) 2>/dev/null || echo unknown`
2664uname -v = `(uname -v) 2>/dev/null || echo unknown`
2665
2666/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2667/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2668
2669/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2670/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2671/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2672/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2673/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2674/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2675/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2676
2677_ASUNAME
2678
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 $as_echo "PATH: $as_dir"
2685 done
2686IFS=$as_save_IFS
2687
2688} >&5
2689
2690cat >&5 <<_ACEOF
2691
2692
2693## ----------- ##
2694## Core tests. ##
2695## ----------- ##
2696
2697_ACEOF
2698
2699
2700# Keep a trace of the command line.
2701# Strip out --no-create and --no-recursion so they do not pile up.
2702# Strip out --silent because we don't want to record it for future runs.
2703# Also quote any args containing shell meta-characters.
2704# Make two passes to allow for proper duplicate-argument suppression.
2705ac_configure_args=
2706ac_configure_args0=
2707ac_configure_args1=
2708ac_must_keep_next=false
2709for ac_pass in 1 2
2710do
2711 for ac_arg
2712 do
2713 case $ac_arg in
2714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2716 | -silent | --silent | --silen | --sile | --sil)
2717 continue ;;
2718 *\'*)
2719 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 esac
2721 case $ac_pass in
2722 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2723 2)
2724 as_fn_append ac_configure_args1 " '$ac_arg'"
2725 if test $ac_must_keep_next = true; then
2726 ac_must_keep_next=false # Got value, back to normal.
2727 else
2728 case $ac_arg in
2729 *=* | --config-cache | -C | -disable-* | --disable-* \
2730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2732 | -with-* | --with-* | -without-* | --without-* | --x)
2733 case "$ac_configure_args0 " in
2734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2735 esac
2736 ;;
2737 -* ) ac_must_keep_next=true ;;
2738 esac
2739 fi
2740 as_fn_append ac_configure_args " '$ac_arg'"
2741 ;;
2742 esac
2743 done
2744done
2745{ ac_configure_args0=; unset ac_configure_args0;}
2746{ ac_configure_args1=; unset ac_configure_args1;}
2747
2748# When interrupted or exit'd, cleanup temporary files, and complete
2749# config.log. We remove comments because anyway the quotes in there
2750# would cause problems or look ugly.
2751# WARNING: Use '\'' to represent an apostrophe within the trap.
2752# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2753trap 'exit_status=$?
2754 # Save into config.log some information that might help in debugging.
2755 {
2756 echo
2757
2758 $as_echo "## ---------------- ##
2759## Cache variables. ##
2760## ---------------- ##"
2761 echo
2762 # The following way of writing the cache mishandles newlines in values,
2763(
2764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2765 eval ac_val=\$$ac_var
2766 case $ac_val in #(
2767 *${as_nl}*)
2768 case $ac_var in #(
2769 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2770$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2771 esac
2772 case $ac_var in #(
2773 _ | IFS | as_nl) ;; #(
2774 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2775 *) { eval $ac_var=; unset $ac_var;} ;;
2776 esac ;;
2777 esac
2778 done
2779 (set) 2>&1 |
2780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2781 *${as_nl}ac_space=\ *)
2782 sed -n \
2783 "s/'\''/'\''\\\\'\'''\''/g;
2784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2785 ;; #(
2786 *)
2787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2788 ;;
2789 esac |
2790 sort
2791)
2792 echo
2793
2794 $as_echo "## ----------------- ##
2795## Output variables. ##
2796## ----------------- ##"
2797 echo
2798 for ac_var in $ac_subst_vars
2799 do
2800 eval ac_val=\$$ac_var
2801 case $ac_val in
2802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2803 esac
2804 $as_echo "$ac_var='\''$ac_val'\''"
2805 done | sort
2806 echo
2807
2808 if test -n "$ac_subst_files"; then
2809 $as_echo "## ------------------- ##
2810## File substitutions. ##
2811## ------------------- ##"
2812 echo
2813 for ac_var in $ac_subst_files
2814 do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 esac
2819 $as_echo "$ac_var='\''$ac_val'\''"
2820 done | sort
2821 echo
2822 fi
2823
2824 if test -s confdefs.h; then
2825 $as_echo "## ----------- ##
2826## confdefs.h. ##
2827## ----------- ##"
2828 echo
2829 cat confdefs.h
2830 echo
2831 fi
2832 test "$ac_signal" != 0 &&
2833 $as_echo "$as_me: caught signal $ac_signal"
2834 $as_echo "$as_me: exit $exit_status"
2835 } >&5
2836 rm -f core *.core core.conftest.* &&
2837 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2838 exit $exit_status
2839' 0
2840for ac_signal in 1 2 13 15; do
2841 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2842done
2843ac_signal=0
2844
2845# confdefs.h avoids OS command line length limits that DEFS can exceed.
2846rm -f -r conftest* confdefs.h
2847
2848$as_echo "/* confdefs.h */" > confdefs.h
2849
2850# Predefined preprocessor variables.
2851
2852cat >>confdefs.h <<_ACEOF
2853#define PACKAGE_NAME "$PACKAGE_NAME"
2854_ACEOF
2855
2856cat >>confdefs.h <<_ACEOF
2857#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2858_ACEOF
2859
2860cat >>confdefs.h <<_ACEOF
2861#define PACKAGE_VERSION "$PACKAGE_VERSION"
2862_ACEOF
2863
2864cat >>confdefs.h <<_ACEOF
2865#define PACKAGE_STRING "$PACKAGE_STRING"
2866_ACEOF
2867
2868cat >>confdefs.h <<_ACEOF
2869#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2870_ACEOF
2871
2872cat >>confdefs.h <<_ACEOF
2873#define PACKAGE_URL "$PACKAGE_URL"
2874_ACEOF
2875
2876
2877# Let the site file select an alternate cache file if it wants to.
2878# Prefer an explicitly selected file to automatically selected ones.
2879ac_site_file1=NONE
2880ac_site_file2=NONE
2881if test -n "$CONFIG_SITE"; then
2882 # We do not want a PATH search for config.site.
2883 case $CONFIG_SITE in #((
2884 -*) ac_site_file1=./$CONFIG_SITE;;
2885 */*) ac_site_file1=$CONFIG_SITE;;
2886 *) ac_site_file1=./$CONFIG_SITE;;
2887 esac
2888elif test "x$prefix" != xNONE; then
2889 ac_site_file1=$prefix/share/config.site
2890 ac_site_file2=$prefix/etc/config.site
2891else
2892 ac_site_file1=$ac_default_prefix/share/config.site
2893 ac_site_file2=$ac_default_prefix/etc/config.site
2894fi
2895for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2896do
2897 test "x$ac_site_file" = xNONE && continue
2898 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2900$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2901 sed 's/^/| /' "$ac_site_file" >&5
2902 . "$ac_site_file" \
2903 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905as_fn_error $? "failed to load site script $ac_site_file
2906See \`config.log' for more details" "$LINENO" 5; }
2907 fi
2908done
2909
2910if test -r "$cache_file"; then
2911 # Some versions of bash will fail to source /dev/null (special files
2912 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2913 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2915$as_echo "$as_me: loading cache $cache_file" >&6;}
2916 case $cache_file in
2917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2918 *) . "./$cache_file";;
2919 esac
2920 fi
2921else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2923$as_echo "$as_me: creating cache $cache_file" >&6;}
2924 >$cache_file
2925fi
2926
2927# Check that the precious variables saved in the cache have kept the same
2928# value.
2929ac_cache_corrupted=false
2930for ac_var in $ac_precious_vars; do
2931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2932 eval ac_new_set=\$ac_env_${ac_var}_set
2933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2934 eval ac_new_val=\$ac_env_${ac_var}_value
2935 case $ac_old_set,$ac_new_set in
2936 set,)
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2938$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2939 ac_cache_corrupted=: ;;
2940 ,set)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2942$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2944 ,);;
2945 *)
2946 if test "x$ac_old_val" != "x$ac_new_val"; then
2947 # differences in whitespace do not lead to failure.
2948 ac_old_val_w=`echo x $ac_old_val`
2949 ac_new_val_w=`echo x $ac_new_val`
2950 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2952$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2953 ac_cache_corrupted=:
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2956$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2957 eval $ac_var=\$ac_old_val
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2960$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2962$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2963 fi;;
2964 esac
2965 # Pass precious variables to config.status.
2966 if test "$ac_new_set" = set; then
2967 case $ac_new_val in
2968 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2969 *) ac_arg=$ac_var=$ac_new_val ;;
2970 esac
2971 case " $ac_configure_args " in
2972 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2973 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2974 esac
2975 fi
2976done
2977if $ac_cache_corrupted; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2981$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2982 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2983fi
2984## -------------------- ##
2985## Main body of script. ##
2986## -------------------- ##
2987
2988ac_ext=c
2989ac_cpp='$CPP $CPPFLAGS'
2990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993
2994
2995
2996
2997
2998
2999
3000# using curl-override.m4
3001
3002
3003
3004
3005
3006ac_config_headers="$ac_config_headers lib/curl_config.h"
3007
3008
3009
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3011$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3012 # Check whether --enable-maintainer-mode was given.
3013if test "${enable_maintainer_mode+set}" = set; then :
3014 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3015else
3016 USE_MAINTAINER_MODE=no
3017fi
3018
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3020$as_echo "$USE_MAINTAINER_MODE" >&6; }
3021 if test $USE_MAINTAINER_MODE = yes; then
3022 MAINTAINER_MODE_TRUE=
3023 MAINTAINER_MODE_FALSE='#'
3024else
3025 MAINTAINER_MODE_TRUE='#'
3026 MAINTAINER_MODE_FALSE=
3027fi
3028
3029 MAINT=$MAINTAINER_MODE_TRUE
3030
3031
3032# Check whether --enable-silent-rules was given.
3033if test "${enable_silent_rules+set}" = set; then :
3034 enableval=$enable_silent_rules;
3035fi
3036
3037case $enable_silent_rules in # (((
3038 yes) AM_DEFAULT_VERBOSITY=0;;
3039 no) AM_DEFAULT_VERBOSITY=1;;
3040 *) AM_DEFAULT_VERBOSITY=0;;
3041esac
3042am_make=${MAKE-make}
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3045if ${am_cv_make_support_nested_variables+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047else
3048 if $as_echo 'TRUE=$(BAR$(V))
3049BAR0=false
3050BAR1=true
3051V=1
3052am__doit:
3053 @$(TRUE)
3054.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3055 am_cv_make_support_nested_variables=yes
3056else
3057 am_cv_make_support_nested_variables=no
3058fi
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3061$as_echo "$am_cv_make_support_nested_variables" >&6; }
3062if test $am_cv_make_support_nested_variables = yes; then
3063 AM_V='$(V)'
3064 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3065else
3066 AM_V=$AM_DEFAULT_VERBOSITY
3067 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3068fi
3069AM_BACKSLASH='\'
3070
3071
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3074$as_echo_n "checking whether to enable debug build options... " >&6; }
3075 OPT_DEBUG_BUILD="default"
3076 # Check whether --enable-debug was given.
3077if test "${enable_debug+set}" = set; then :
3078 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3079fi
3080
3081 case "$OPT_DEBUG_BUILD" in
3082 no)
3083 want_debug="no"
3084 ;;
3085 default)
3086 want_debug="no"
3087 ;;
3088 *)
3089 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003090
3091$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3092
Elliott Hughes82be86d2017-09-20 17:00:17 -07003093 ;;
3094 esac
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3096$as_echo "$want_debug" >&6; }
3097
3098
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3100$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3101 OPT_COMPILER_OPTIMIZE="default"
3102 # Check whether --enable-optimize was given.
3103if test "${enable_optimize+set}" = set; then :
3104 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3105fi
3106
3107 case "$OPT_COMPILER_OPTIMIZE" in
3108 no)
3109 want_optimize="no"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112 ;;
3113 default)
3114 if test "$want_debug" = "yes"; then
3115 want_optimize="assume_no"
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3117$as_echo "(assumed) no" >&6; }
3118 else
3119 want_optimize="assume_yes"
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3121$as_echo "(assumed) yes" >&6; }
3122 fi
3123 ;;
3124 *)
3125 want_optimize="yes"
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127$as_echo "yes" >&6; }
3128 ;;
3129 esac
3130
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3133$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3134 OPT_COMPILER_WARNINGS="default"
3135 # Check whether --enable-warnings was given.
3136if test "${enable_warnings+set}" = set; then :
3137 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3138fi
3139
3140 case "$OPT_COMPILER_WARNINGS" in
3141 no)
3142 want_warnings="no"
3143 ;;
3144 default)
3145 want_warnings="$want_debug"
3146 ;;
3147 *)
3148 want_warnings="yes"
3149 ;;
3150 esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3152$as_echo "$want_warnings" >&6; }
3153
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3156$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3157 OPT_COMPILER_WERROR="default"
3158 # Check whether --enable-werror was given.
3159if test "${enable_werror+set}" = set; then :
3160 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3161fi
3162
3163 case "$OPT_COMPILER_WERROR" in
3164 no)
3165 want_werror="no"
3166 ;;
3167 default)
3168 want_werror="no"
3169 ;;
3170 *)
3171 want_werror="yes"
3172 ;;
3173 esac
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3175$as_echo "$want_werror" >&6; }
3176
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3179$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3180 OPT_CURLDEBUG_BUILD="default"
3181 # Check whether --enable-curldebug was given.
3182if test "${enable_curldebug+set}" = set; then :
3183 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3184fi
3185
3186 case "$OPT_CURLDEBUG_BUILD" in
3187 no)
3188 want_curldebug="no"
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191 ;;
3192 default)
3193 if test "$want_debug" = "yes"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3195$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003196
3197$as_echo "#define CURLDEBUG 1" >>confdefs.h
3198
Elliott Hughes82be86d2017-09-20 17:00:17 -07003199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202 fi
3203 want_curldebug_assumed="yes"
3204 want_curldebug="$want_debug"
3205 ;;
3206 *)
3207 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003208
3209$as_echo "#define CURLDEBUG 1" >>confdefs.h
3210
Elliott Hughes82be86d2017-09-20 17:00:17 -07003211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212$as_echo "yes" >&6; }
3213 ;;
3214 esac
3215
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3218$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3219 OPT_SYMBOL_HIDING="default"
3220 # Check whether --enable-symbol-hiding was given.
3221if test "${enable_symbol_hiding+set}" = set; then :
3222 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3223fi
3224
3225 # Check whether --enable-hidden-symbols was given.
3226if test "${enable_hidden_symbols+set}" = set; then :
3227 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3228fi
3229
3230 case "$OPT_SYMBOL_HIDING" in
3231 no)
3232 want_symbol_hiding="no"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235 ;;
3236 default)
3237 want_symbol_hiding="yes"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239$as_echo "yes" >&6; }
3240 ;;
3241 *)
3242 want_symbol_hiding="yes"
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244$as_echo "yes" >&6; }
3245 ;;
3246 esac
3247
3248
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3250$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3251 OPT_ARES="default"
3252 # Check whether --enable-ares was given.
3253if test "${enable_ares+set}" = set; then :
3254 enableval=$enable_ares; OPT_ARES=$enableval
3255fi
3256
3257 case "$OPT_ARES" in
3258 no)
3259 want_ares="no"
3260 ;;
3261 default)
3262 want_ares="no"
3263 ;;
3264 *)
3265 want_ares="yes"
3266 if test -n "$enableval" && test "$enableval" != "yes"; then
3267 want_ares_path="$enableval"
3268 fi
3269 ;;
3270 esac
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3272$as_echo "$want_ares" >&6; }
3273
3274
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3276$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3277 OPT_RT="default"
3278 # Check whether --enable-rt was given.
3279if test "${enable_rt+set}" = set; then :
3280 enableval=$enable_rt; OPT_RT=$enableval
3281fi
3282
3283 case "$OPT_RT" in
3284 no)
3285 dontwant_rt="yes"
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288 ;;
3289 default)
3290 dontwant_rt="no"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3292$as_echo "(assumed no)" >&6; }
3293 ;;
3294 *)
3295 dontwant_rt="no"
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298 ;;
3299 esac
3300
3301
3302#
3303# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3304#
3305
3306if test -z "$xc_configure_preamble_result"; then
3307 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3308fi
3309
3310#
3311# Check that 'PATH_SEPARATOR' has already been set.
3312#
3313
3314if test -z "$xc_PATH_SEPARATOR"; then
3315 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3316fi
3317if test -z "$PATH_SEPARATOR"; then
3318 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3319fi
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3321$as_echo_n "checking for path separator... " >&6; }
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3323$as_echo "$PATH_SEPARATOR" >&6; }
3324if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3326$as_echo_n "checking for initial path separator... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3328$as_echo "$xc_PATH_SEPARATOR" >&6; }
3329 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3330fi
3331
Elliott Hughes82be86d2017-09-20 17:00:17 -07003332
3333#
3334# save the configure arguments
3335#
3336CONFIGURE_OPTIONS="\"$ac_configure_args\""
3337
3338
3339CURL_CFLAG_EXTRAS=""
3340if test X"$want_werror" = Xyes; then
3341 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003342 if test "$compiler_id" = "GNU_C"; then
3343 if test "$compiler_num" -ge "500"; then
3344 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3345 fi
3346 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003347fi
3348
3349
3350if test -z "$SED"; then
3351 # Extract the first word of "sed", so it can be a program name with args.
3352set dummy sed; ac_word=$2
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354$as_echo_n "checking for $ac_word... " >&6; }
3355if ${ac_cv_path_SED+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357else
3358 case $SED in
3359 [\\/]* | ?:[\\/]*)
3360 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3361 ;;
3362 *)
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364as_dummy="$PATH:/usr/bin:/usr/local/bin"
3365for as_dir in $as_dummy
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375done
3376 done
3377IFS=$as_save_IFS
3378
3379 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3380 ;;
3381esac
3382fi
3383SED=$ac_cv_path_SED
3384if test -n "$SED"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3386$as_echo "$SED" >&6; }
3387else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390fi
3391
3392
3393 if test -z "$SED" || test "$SED" = "not_found"; then
3394 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3395 fi
3396fi
3397
3398
3399if test -z "$GREP"; then
3400 # Extract the first word of "grep", so it can be a program name with args.
3401set dummy grep; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }
3404if ${ac_cv_path_GREP+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406else
3407 case $GREP in
3408 [\\/]* | ?:[\\/]*)
3409 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3410 ;;
3411 *)
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413as_dummy="$PATH:/usr/bin:/usr/local/bin"
3414for as_dir in $as_dummy
3415do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424done
3425 done
3426IFS=$as_save_IFS
3427
3428 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3429 ;;
3430esac
3431fi
3432GREP=$ac_cv_path_GREP
3433if test -n "$GREP"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3435$as_echo "$GREP" >&6; }
3436else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442 if test -z "$GREP" || test "$GREP" = "not_found"; then
3443 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3444 fi
3445fi
3446
3447
3448if test -z "$EGREP"; then
3449 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3451$as_echo_n "checking for egrep... " >&6; }
3452 EGREP="$GREP -E"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3454$as_echo "$EGREP" >&6; }
3455 else
3456 # Extract the first word of "egrep", so it can be a program name with args.
3457set dummy egrep; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_path_EGREP+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462else
3463 case $EGREP in
3464 [\\/]* | ?:[\\/]*)
3465 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3466 ;;
3467 *)
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469as_dummy="$PATH:/usr/bin:/usr/local/bin"
3470for as_dir in $as_dummy
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481 done
3482IFS=$as_save_IFS
3483
3484 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3485 ;;
3486esac
3487fi
3488EGREP=$ac_cv_path_EGREP
3489if test -n "$EGREP"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3491$as_echo "$EGREP" >&6; }
3492else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497
3498 fi
3499fi
3500if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3501 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3502fi
3503
3504
3505if test -z "$AR"; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3508set dummy ${ac_tool_prefix}ar; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
3511if ${ac_cv_path_AR+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513else
3514 case $AR in
3515 [\\/]* | ?:[\\/]*)
3516 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3517 ;;
3518 *)
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520as_dummy="$PATH:/usr/bin:/usr/local/bin"
3521for as_dir in $as_dummy
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531done
3532 done
3533IFS=$as_save_IFS
3534
3535 ;;
3536esac
3537fi
3538AR=$ac_cv_path_AR
3539if test -n "$AR"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3541$as_echo "$AR" >&6; }
3542else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548fi
3549if test -z "$ac_cv_path_AR"; then
3550 ac_pt_AR=$AR
3551 # Extract the first word of "ar", so it can be a program name with args.
3552set dummy ar; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
3555if ${ac_cv_path_ac_pt_AR+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557else
3558 case $ac_pt_AR in
3559 [\\/]* | ?:[\\/]*)
3560 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3561 ;;
3562 *)
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564as_dummy="$PATH:/usr/bin:/usr/local/bin"
3565for as_dir in $as_dummy
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576 done
3577IFS=$as_save_IFS
3578
3579 ;;
3580esac
3581fi
3582ac_pt_AR=$ac_cv_path_ac_pt_AR
3583if test -n "$ac_pt_AR"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3585$as_echo "$ac_pt_AR" >&6; }
3586else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589fi
3590
3591 if test "x$ac_pt_AR" = x; then
3592 AR="not_found"
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595yes:)
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598ac_tool_warned=yes ;;
3599esac
3600 AR=$ac_pt_AR
3601 fi
3602else
3603 AR="$ac_cv_path_AR"
3604fi
3605
3606 if test -z "$AR" || test "$AR" = "not_found"; then
3607 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3608 fi
3609fi
3610
3611
3612
3613
3614CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3615
3616 xc_prog_cc_prev_IFS=$IFS
3617 xc_prog_cc_prev_LIBS=$LIBS
3618 xc_prog_cc_prev_CFLAGS=$CFLAGS
3619 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3620 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3621
3622
3623
3624 xc_bad_var_libs=no
3625 for xc_word in $LIBS; do
3626 case "$xc_word" in
3627 -l* | --library=*)
3628 :
3629 ;;
3630 *)
3631 xc_bad_var_libs=yes
3632 ;;
3633 esac
3634 done
3635 if test $xc_bad_var_libs = yes; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3637$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3639$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3640 fi
3641
3642
3643 xc_bad_var_ldflags=no
3644 for xc_word in $LDFLAGS; do
3645 case "$xc_word" in
3646 -D*)
3647 xc_bad_var_ldflags=yes
3648 ;;
3649 -U*)
3650 xc_bad_var_ldflags=yes
3651 ;;
3652 -I*)
3653 xc_bad_var_ldflags=yes
3654 ;;
3655 -l* | --library=*)
3656 xc_bad_var_ldflags=yes
3657 ;;
3658 esac
3659 done
3660 if test $xc_bad_var_ldflags = yes; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3662$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3663 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3664 for xc_word in $LDFLAGS; do
3665 case "$xc_word" in
3666 -D*)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3668$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3669 ;;
3670 -U*)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3672$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3673 ;;
3674 -I*)
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3676$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3677 ;;
3678 -l* | --library=*)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3680$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3681 ;;
3682 esac
3683 done
3684 fi
3685
3686
3687 xc_bad_var_cppflags=no
3688 for xc_word in $CPPFLAGS; do
3689 case "$xc_word" in
3690 -rpath*)
3691 xc_bad_var_cppflags=yes
3692 ;;
3693 -L* | --library-path=*)
3694 xc_bad_var_cppflags=yes
3695 ;;
3696 -l* | --library=*)
3697 xc_bad_var_cppflags=yes
3698 ;;
3699 esac
3700 done
3701 if test $xc_bad_var_cppflags = yes; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3703$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3704 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3705 for xc_word in $CPPFLAGS; do
3706 case "$xc_word" in
3707 -rpath*)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3709$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3710 ;;
3711 -L* | --library-path=*)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3713$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3714 ;;
3715 -l* | --library=*)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3717$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3718 ;;
3719 esac
3720 done
3721 fi
3722
3723
3724 xc_bad_var_cflags=no
3725 for xc_word in $CFLAGS; do
3726 case "$xc_word" in
3727 -D*)
3728 xc_bad_var_cflags=yes
3729 ;;
3730 -U*)
3731 xc_bad_var_cflags=yes
3732 ;;
3733 -I*)
3734 xc_bad_var_cflags=yes
3735 ;;
3736 -rpath*)
3737 xc_bad_var_cflags=yes
3738 ;;
3739 -L* | --library-path=*)
3740 xc_bad_var_cflags=yes
3741 ;;
3742 -l* | --library=*)
3743 xc_bad_var_cflags=yes
3744 ;;
3745 esac
3746 done
3747 if test $xc_bad_var_cflags = yes; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3749$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3750 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3751 for xc_word in $CFLAGS; do
3752 case "$xc_word" in
3753 -D*)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3755$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3756 ;;
3757 -U*)
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3759$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3760 ;;
3761 -I*)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3763$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3764 ;;
3765 -rpath*)
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3767$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3768 ;;
3769 -L* | --library-path=*)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3771$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3772 ;;
3773 -l* | --library=*)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3775$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3776 ;;
3777 esac
3778 done
3779 fi
3780
3781 if test $xc_bad_var_libs = yes ||
3782 test $xc_bad_var_cflags = yes ||
3783 test $xc_bad_var_ldflags = yes ||
3784 test $xc_bad_var_cppflags = yes; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3786$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3787 fi
3788
3789ac_aux_dir=
3790for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3791 if test -f "$ac_dir/install-sh"; then
3792 ac_aux_dir=$ac_dir
3793 ac_install_sh="$ac_aux_dir/install-sh -c"
3794 break
3795 elif test -f "$ac_dir/install.sh"; then
3796 ac_aux_dir=$ac_dir
3797 ac_install_sh="$ac_aux_dir/install.sh -c"
3798 break
3799 elif test -f "$ac_dir/shtool"; then
3800 ac_aux_dir=$ac_dir
3801 ac_install_sh="$ac_aux_dir/shtool install -c"
3802 break
3803 fi
3804done
3805if test -z "$ac_aux_dir"; then
3806 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3807fi
3808
3809# These three variables are undocumented and unsupported,
3810# and are intended to be withdrawn in a future Autoconf release.
3811# They can cause serious problems if a builder's source tree is in a directory
3812# whose full name contains unusual characters.
3813ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3814ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3815ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3816
3817
3818# Find a good install program. We prefer a C program (faster),
3819# so one script is as good as another. But avoid the broken or
3820# incompatible versions:
3821# SysV /etc/install, /usr/sbin/install
3822# SunOS /usr/etc/install
3823# IRIX /sbin/install
3824# AIX /bin/install
3825# AmigaOS /C/install, which installs bootblocks on floppy discs
3826# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3827# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3828# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3829# OS/2's system install, which has a completely different semantic
3830# ./install, which can be erroneously created by make from ./install.sh.
3831# Reject install programs that cannot install multiple files.
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3833$as_echo_n "checking for a BSD-compatible install... " >&6; }
3834if test -z "$INSTALL"; then
3835if ${ac_cv_path_install+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 # Account for people who put trailing slashes in PATH elements.
3844case $as_dir/ in #((
3845 ./ | .// | /[cC]/* | \
3846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3847 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3848 /usr/ucb/* ) ;;
3849 *)
3850 # OSF1 and SCO ODT 3.0 have their own names for install.
3851 # Don't use installbsd from OSF since it installs stuff as root
3852 # by default.
3853 for ac_prog in ginstall scoinst install; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3856 if test $ac_prog = install &&
3857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3858 # AIX install. It has an incompatible calling convention.
3859 :
3860 elif test $ac_prog = install &&
3861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3862 # program-specific install script used by HP pwplus--don't use.
3863 :
3864 else
3865 rm -rf conftest.one conftest.two conftest.dir
3866 echo one > conftest.one
3867 echo two > conftest.two
3868 mkdir conftest.dir
3869 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3870 test -s conftest.one && test -s conftest.two &&
3871 test -s conftest.dir/conftest.one &&
3872 test -s conftest.dir/conftest.two
3873 then
3874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3875 break 3
3876 fi
3877 fi
3878 fi
3879 done
3880 done
3881 ;;
3882esac
3883
3884 done
3885IFS=$as_save_IFS
3886
3887rm -rf conftest.one conftest.two conftest.dir
3888
3889fi
3890 if test "${ac_cv_path_install+set}" = set; then
3891 INSTALL=$ac_cv_path_install
3892 else
3893 # As a last resort, use the slow shell script. Don't cache a
3894 # value for INSTALL within a source directory, because that will
3895 # break other packages using the cache if that directory is
3896 # removed, or if the value is a relative name.
3897 INSTALL=$ac_install_sh
3898 fi
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3901$as_echo "$INSTALL" >&6; }
3902
3903# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3904# It thinks the first close brace ends the variable substitution.
3905test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3906
3907test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3908
3909test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3910
3911# Expand $ac_aux_dir to an absolute path.
3912am_aux_dir=`cd "$ac_aux_dir" && pwd`
3913
3914ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921set dummy ${ac_tool_prefix}gcc; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
3924if ${ac_cv_prog_CC+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926else
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942 done
3943IFS=$as_save_IFS
3944
3945fi
3946fi
3947CC=$ac_cv_prog_CC
3948if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950$as_echo "$CC" >&6; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956
3957fi
3958if test -z "$ac_cv_prog_CC"; then
3959 ac_ct_CC=$CC
3960 # Extract the first word of "gcc", so it can be a program name with args.
3961set dummy gcc; ac_word=$2
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if ${ac_cv_prog_ac_ct_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966else
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982 done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988if test -n "$ac_ct_CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990$as_echo "$ac_ct_CC" >&6; }
3991else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994fi
3995
3996 if test "x$ac_ct_CC" = x; then
3997 CC=""
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 CC=$ac_ct_CC
4006 fi
4007else
4008 CC="$ac_cv_prog_CC"
4009fi
4010
4011if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4014set dummy ${ac_tool_prefix}cc; ac_word=$2
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if ${ac_cv_prog_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019else
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022else
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_CC="${ac_tool_prefix}cc"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4033 fi
4034done
4035 done
4036IFS=$as_save_IFS
4037
4038fi
4039fi
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043$as_echo "$CC" >&6; }
4044else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047fi
4048
4049
4050 fi
4051fi
4052if test -z "$CC"; then
4053 # Extract the first word of "cc", so it can be a program name with args.
4054set dummy cc; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if ${ac_cv_prog_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059else
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062else
4063 ac_prog_rejected=no
4064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4072 ac_prog_rejected=yes
4073 continue
4074 fi
4075 ac_cv_prog_CC="cc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079done
4080 done
4081IFS=$as_save_IFS
4082
4083if test $ac_prog_rejected = yes; then
4084 # We found a bogon in the path, so make sure we never use it.
4085 set dummy $ac_cv_prog_CC
4086 shift
4087 if test $# != 0; then
4088 # We chose a different compiler from the bogus one.
4089 # However, it has the same basename, so the bogon will be chosen
4090 # first if we set CC to just the basename; use the full file name.
4091 shift
4092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4093 fi
4094fi
4095fi
4096fi
4097CC=$ac_cv_prog_CC
4098if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100$as_echo "$CC" >&6; }
4101else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
4105
4106
4107fi
4108if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 for ac_prog in cl.exe
4111 do
4112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if ${ac_cv_prog_CC+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 if test -n "$CC"; then
4120 ac_cv_prog_CC="$CC" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4132 fi
4133done
4134 done
4135IFS=$as_save_IFS
4136
4137fi
4138fi
4139CC=$ac_cv_prog_CC
4140if test -n "$CC"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4142$as_echo "$CC" >&6; }
4143else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
4146fi
4147
4148
4149 test -n "$CC" && break
4150 done
4151fi
4152if test -z "$CC"; then
4153 ac_ct_CC=$CC
4154 for ac_prog in cl.exe
4155do
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157set dummy $ac_prog; ac_word=$2
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if ${ac_cv_prog_ac_ct_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162else
4163 if test -n "$ac_ct_CC"; then
4164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CC="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177done
4178 done
4179IFS=$as_save_IFS
4180
4181fi
4182fi
4183ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184if test -n "$ac_ct_CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4186$as_echo "$ac_ct_CC" >&6; }
4187else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
4190fi
4191
4192
4193 test -n "$ac_ct_CC" && break
4194done
4195
4196 if test "x$ac_ct_CC" = x; then
4197 CC=""
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200yes:)
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203ac_tool_warned=yes ;;
4204esac
4205 CC=$ac_ct_CC
4206 fi
4207fi
4208
4209fi
4210
4211
4212test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214as_fn_error $? "no acceptable C compiler found in \$PATH
4215See \`config.log' for more details" "$LINENO" 5; }
4216
4217# Provide some information about the compiler.
4218$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4219set X $ac_compile
4220ac_compiler=$2
4221for ac_option in --version -v -V -qversion; do
4222 { { ac_try="$ac_compiler $ac_option >&5"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228$as_echo "$ac_try_echo"; } >&5
4229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4230 ac_status=$?
4231 if test -s conftest.err; then
4232 sed '10a\
4233... rest of stderr output deleted ...
4234 10q' conftest.err >conftest.er1
4235 cat conftest.er1 >&5
4236 fi
4237 rm -f conftest.er1 conftest.err
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }
4240done
4241
4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h. */
4244
4245int main (void)
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252ac_clean_files_save=$ac_clean_files
4253ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4254# Try to create an executable without -o first, disregard a.out.
4255# It will help us diagnose broken compilers, and finding out an intuition
4256# of exeext.
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4258$as_echo_n "checking whether the C compiler works... " >&6; }
4259ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4260
4261# The possible output files:
4262ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4263
4264ac_rmfiles=
4265for ac_file in $ac_files
4266do
4267 case $ac_file in
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4270 esac
4271done
4272rm -f $ac_rmfiles
4273
4274if { { ac_try="$ac_link_default"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280$as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_link_default") 2>&5
4282 ac_status=$?
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }; then :
4285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4286# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4287# in a Makefile. We should not override ac_cv_exeext if it was cached,
4288# so that the user can short-circuit this test for compilers unknown to
4289# Autoconf.
4290for ac_file in $ac_files ''
4291do
4292 test -f "$ac_file" || continue
4293 case $ac_file in
4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4295 ;;
4296 [ab].out )
4297 # We found the default executable, but exeext='' is most
4298 # certainly right.
4299 break;;
4300 *.* )
4301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4302 then :; else
4303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4304 fi
4305 # We set ac_cv_exeext here because the later test for it is not
4306 # safe: cross compilers may not add the suffix if given an `-o'
4307 # argument, so we may need to know it at that point already.
4308 # Even if this section looks crufty: it has the advantage of
4309 # actually working.
4310 break;;
4311 * )
4312 break;;
4313 esac
4314done
4315test "$ac_cv_exeext" = no && ac_cv_exeext=
4316
4317else
4318 ac_file=''
4319fi
4320if test -z "$ac_file"; then :
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323$as_echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
4325
4326{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328as_fn_error 77 "C compiler cannot create executables
4329See \`config.log' for more details" "$LINENO" 5; }
4330else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332$as_echo "yes" >&6; }
4333fi
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335$as_echo_n "checking for C compiler default output file name... " >&6; }
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4337$as_echo "$ac_file" >&6; }
4338ac_exeext=$ac_cv_exeext
4339
4340rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4341ac_clean_files=$ac_clean_files_save
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4343$as_echo_n "checking for suffix of executables... " >&6; }
4344if { { ac_try="$ac_link"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350$as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_link") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; then :
4355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4357# work properly (i.e., refer to `conftest.exe'), while it won't with
4358# `rm'.
4359for ac_file in conftest.exe conftest conftest.*; do
4360 test -f "$ac_file" || continue
4361 case $ac_file in
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4364 break;;
4365 * ) break;;
4366 esac
4367done
4368else
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4372See \`config.log' for more details" "$LINENO" 5; }
4373fi
4374rm -f conftest conftest$ac_cv_exeext
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4376$as_echo "$ac_cv_exeext" >&6; }
4377
4378rm -f conftest.$ac_ext
4379EXEEXT=$ac_cv_exeext
4380ac_exeext=$EXEEXT
4381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h. */
4383#include <stdio.h>
4384int main (void)
4385{
4386FILE *f = fopen ("conftest.out", "w");
4387 return ferror (f) || fclose (f) != 0;
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393ac_clean_files="$ac_clean_files conftest.out"
4394# Check that the compiler produces executables we can run. If not, either
4395# the compiler is broken, or we cross compile.
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4397$as_echo_n "checking whether we are cross compiling... " >&6; }
4398if test "$cross_compiling" != yes; then
4399 { { ac_try="$ac_link"
4400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_link") 2>&5
4407 ac_status=$?
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }
4410 if { ac_try='./conftest$ac_cv_exeext'
4411 { { case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416$as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }; }; then
4421 cross_compiling=no
4422 else
4423 if test "$cross_compiling" = maybe; then
4424 cross_compiling=yes
4425 else
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428as_fn_error $? "cannot run C compiled programs.
4429If you meant to cross compile, use \`--host'.
4430See \`config.log' for more details" "$LINENO" 5; }
4431 fi
4432 fi
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4435$as_echo "$cross_compiling" >&6; }
4436
4437rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4438ac_clean_files=$ac_clean_files_save
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4440$as_echo_n "checking for suffix of object files... " >&6; }
4441if ${ac_cv_objext+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h. */
4446
4447int main (void)
4448{
4449
4450 ;
4451 return 0;
4452}
4453_ACEOF
4454rm -f conftest.o conftest.obj
4455if { { ac_try="$ac_compile"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461$as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 for ac_file in conftest.o conftest.obj conftest.*; do
4467 test -f "$ac_file" || continue;
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4471 break;;
4472 esac
4473done
4474else
4475 $as_echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
4478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480as_fn_error $? "cannot compute suffix of object files: cannot compile
4481See \`config.log' for more details" "$LINENO" 5; }
4482fi
4483rm -f conftest.$ac_cv_objext conftest.$ac_ext
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486$as_echo "$ac_cv_objext" >&6; }
4487OBJEXT=$ac_cv_objext
4488ac_objext=$OBJEXT
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491if ${ac_cv_c_compiler_gnu+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496
4497int main (void)
4498{
4499#ifndef __GNUC__
4500 choke me
4501#endif
4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
4507if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_compiler_gnu=yes
4509else
4510 ac_compiler_gnu=no
4511fi
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513ac_cv_c_compiler_gnu=$ac_compiler_gnu
4514
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4518if test $ac_compiler_gnu = yes; then
4519 GCC=yes
4520else
4521 GCC=
4522fi
4523ac_test_CFLAGS=${CFLAGS+set}
4524ac_save_CFLAGS=$CFLAGS
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4526$as_echo_n "checking whether $CC accepts -g... " >&6; }
4527if ${ac_cv_prog_cc_g+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529else
4530 ac_save_c_werror_flag=$ac_c_werror_flag
4531 ac_c_werror_flag=yes
4532 ac_cv_prog_cc_g=no
4533 CFLAGS="-g"
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h. */
4536
4537int main (void)
4538{
4539
4540 ;
4541 return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_compile "$LINENO"; then :
4545 ac_cv_prog_cc_g=yes
4546else
4547 CFLAGS=""
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h. */
4550
4551int main (void)
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_compile "$LINENO"; then :
4559
4560else
4561 ac_c_werror_flag=$ac_save_c_werror_flag
4562 CFLAGS="-g"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h. */
4565
4566int main (void)
4567{
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_g=yes
4575fi
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584$as_echo "$ac_cv_prog_cc_g" >&6; }
4585if test "$ac_test_CFLAGS" = set; then
4586 CFLAGS=$ac_save_CFLAGS
4587elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4589 CFLAGS="-g -O2"
4590 else
4591 CFLAGS="-g"
4592 fi
4593else
4594 if test "$GCC" = yes; then
4595 CFLAGS="-O2"
4596 else
4597 CFLAGS=
4598 fi
4599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602if ${ac_cv_prog_cc_c89+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604else
4605 ac_cv_prog_cc_c89=no
4606ac_save_CC=$CC
4607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdarg.h>
4610#include <stdio.h>
4611struct stat;
4612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613struct buf { int x; };
4614FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615static char *e (p, i)
4616 char **p;
4617 int i;
4618{
4619 return p[i];
4620}
4621static char *f (char * (*g) (char **, int), char **p, ...)
4622{
4623 char *s;
4624 va_list v;
4625 va_start (v,p);
4626 s = g (p, va_arg (v,int));
4627 va_end (v);
4628 return s;
4629}
4630
4631/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632 function prototypes and stuff, but not '\xHH' hex character constants.
4633 These don't provoke an error unfortunately, instead are silently treated
4634 as 'x'. The following induces an error, until -std is added to get
4635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636 array size at least. It's necessary to write '\x00'==0 to get something
4637 that's true only with -std. */
4638int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4639
4640/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641 inside strings and character constants. */
4642#define FOO(x) 'x'
4643int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4644
4645int test (int i, double x);
4646struct s1 {int (*f) (int a);};
4647struct s2 {int (*f) (double a);};
4648int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649int argc;
4650char **argv;
4651int main (void)
4652{
4653return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4660do
4661 CC="$ac_save_CC $ac_arg"
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_c89=$ac_arg
4664fi
4665rm -f core conftest.err conftest.$ac_objext
4666 test "x$ac_cv_prog_cc_c89" != "xno" && break
4667done
4668rm -f conftest.$ac_ext
4669CC=$ac_save_CC
4670
4671fi
4672# AC_CACHE_VAL
4673case "x$ac_cv_prog_cc_c89" in
4674 x)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676$as_echo "none needed" >&6; } ;;
4677 xno)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679$as_echo "unsupported" >&6; } ;;
4680 *)
4681 CC="$CC $ac_cv_prog_cc_c89"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4684esac
4685if test "x$ac_cv_prog_cc_c89" != xno; then :
4686
4687fi
4688
4689ac_ext=c
4690ac_cpp='$CPP $CPPFLAGS'
4691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4701$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4702if ${am_cv_prog_cc_c_o+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706/* end confdefs.h. */
4707
4708int main (void)
4709{
4710
4711 ;
4712 return 0;
4713}
4714_ACEOF
4715 # Make sure it works both with $CC and with simple cc.
4716 # Following AC_PROG_CC_C_O, we do the test twice because some
4717 # compilers refuse to overwrite an existing .o file with -o,
4718 # though they will create one.
4719 am_cv_prog_cc_c_o=yes
4720 for am_i in 1 2; do
4721 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4722 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } \
4726 && test -f conftest2.$ac_objext; then
4727 : OK
4728 else
4729 am_cv_prog_cc_c_o=no
4730 break
4731 fi
4732 done
4733 rm -f core conftest*
4734 unset am_i
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4737$as_echo "$am_cv_prog_cc_c_o" >&6; }
4738if test "$am_cv_prog_cc_c_o" != yes; then
4739 # Losing compiler, so override with the script.
4740 # FIXME: It is wrong to rewrite CC.
4741 # But if we don't then we get into trouble of one sort or another.
4742 # A longer-term fix would be to have automake use am__CC in this case,
4743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4744 CC="$am_aux_dir/compile $CC"
4745fi
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753
4754ac_ext=c
4755ac_cpp='$CPP $CPPFLAGS'
4756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4760$as_echo_n "checking how to run the C preprocessor... " >&6; }
4761# On Suns, sometimes $CPP names a directory.
4762if test -n "$CPP" && test -d "$CPP"; then
4763 CPP=
4764fi
4765if test -z "$CPP"; then
4766 if ${ac_cv_prog_CPP+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768else
4769 # Double quotes because CPP needs to be expanded
4770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4771 do
4772 ac_preproc_ok=false
4773for ac_c_preproc_warn_flag in '' yes
4774do
4775 # Use a header file that comes with gcc, so configuring glibc
4776 # with a fresh cross-compiler works.
4777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 # <limits.h> exists even on freestanding compilers.
4779 # On the NeXT, cc -E runs the code through the compiler's parser,
4780 # not just through cpp. "Syntax error" is here to catch this case.
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783#ifdef __STDC__
4784# include <limits.h>
4785#else
4786# include <assert.h>
4787#endif
4788 Syntax error
4789_ACEOF
4790if ac_fn_c_try_cpp "$LINENO"; then :
4791
4792else
4793 # Broken: fails on valid input.
4794continue
4795fi
4796rm -f conftest.err conftest.i conftest.$ac_ext
4797
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802#include <ac_nonexistent.h>
4803_ACEOF
4804if ac_fn_c_try_cpp "$LINENO"; then :
4805 # Broken: success on invalid input.
4806continue
4807else
4808 # Passes both tests.
4809ac_preproc_ok=:
4810break
4811fi
4812rm -f conftest.err conftest.i conftest.$ac_ext
4813
4814done
4815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4816rm -f conftest.i conftest.err conftest.$ac_ext
4817if $ac_preproc_ok; then :
4818 break
4819fi
4820
4821 done
4822 ac_cv_prog_CPP=$CPP
4823
4824fi
4825 CPP=$ac_cv_prog_CPP
4826else
4827 ac_cv_prog_CPP=$CPP
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4830$as_echo "$CPP" >&6; }
4831ac_preproc_ok=false
4832for ac_c_preproc_warn_flag in '' yes
4833do
4834 # Use a header file that comes with gcc, so configuring glibc
4835 # with a fresh cross-compiler works.
4836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4837 # <limits.h> exists even on freestanding compilers.
4838 # On the NeXT, cc -E runs the code through the compiler's parser,
4839 # not just through cpp. "Syntax error" is here to catch this case.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841/* end confdefs.h. */
4842#ifdef __STDC__
4843# include <limits.h>
4844#else
4845# include <assert.h>
4846#endif
4847 Syntax error
4848_ACEOF
4849if ac_fn_c_try_cpp "$LINENO"; then :
4850
4851else
4852 # Broken: fails on valid input.
4853continue
4854fi
4855rm -f conftest.err conftest.i conftest.$ac_ext
4856
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h. */
4861#include <ac_nonexistent.h>
4862_ACEOF
4863if ac_fn_c_try_cpp "$LINENO"; then :
4864 # Broken: success on invalid input.
4865continue
4866else
4867 # Passes both tests.
4868ac_preproc_ok=:
4869break
4870fi
4871rm -f conftest.err conftest.i conftest.$ac_ext
4872
4873done
4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875rm -f conftest.i conftest.err conftest.$ac_ext
4876if $ac_preproc_ok; then :
4877
4878else
4879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4881as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4882See \`config.log' for more details" "$LINENO" 5; }
4883fi
4884
4885ac_ext=c
4886ac_cpp='$CPP $CPPFLAGS'
4887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892 IFS=$xc_prog_cc_prev_IFS
4893 LIBS=$xc_prog_cc_prev_LIBS
4894 CFLAGS=$xc_prog_cc_prev_CFLAGS
4895 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4896 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4897
4898
4899
4900
4901
Elliott Hughes0128fe42018-02-27 14:57:55 -08004902
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4904$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4905if ${ac_cv_path_SED+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907else
4908 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4909 for ac_i in 1 2 3 4 5 6 7; do
4910 ac_script="$ac_script$as_nl$ac_script"
4911 done
4912 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4913 { ac_script=; unset ac_script;}
4914 if test -z "$SED"; then
4915 ac_path_SED_found=false
4916 # Loop through the user's path and test for each of PROGNAME-LIST
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_prog in sed gsed; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_SED" || continue
4926# Check for GNU ac_path_SED and select it if it is found.
4927 # Check for GNU $ac_path_SED
4928case `"$ac_path_SED" --version 2>&1` in
4929*GNU*)
4930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4931*)
4932 ac_count=0
4933 $as_echo_n 0123456789 >"conftest.in"
4934 while :
4935 do
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo '' >> "conftest.nl"
4940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_SED_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_SED="$ac_path_SED"
4946 ac_path_SED_max=$ac_count
4947 fi
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4950 done
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952esac
4953
4954 $ac_path_SED_found && break 3
4955 done
4956 done
4957 done
4958IFS=$as_save_IFS
4959 if test -z "$ac_cv_path_SED"; then
4960 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4961 fi
4962else
4963 ac_cv_path_SED=$SED
4964fi
4965
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968$as_echo "$ac_cv_path_SED" >&6; }
4969 SED="$ac_cv_path_SED"
4970 rm -f conftest.sed
4971
4972if test "$GCC" = "yes" ; then :
4973
4974
4975
4976 # allow to override gcov location
4977
4978# Check whether --with-gcov was given.
4979if test "${with_gcov+set}" = set; then :
4980 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4981else
4982 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4983fi
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4987$as_echo_n "checking whether to build with code coverage support... " >&6; }
4988 # Check whether --enable-code-coverage was given.
4989if test "${enable_code_coverage+set}" = set; then :
4990 enableval=$enable_code_coverage;
4991else
4992 enable_code_coverage=no
4993fi
4994
4995
4996 if test x$enable_code_coverage = xyes; then
4997 CODE_COVERAGE_ENABLED_TRUE=
4998 CODE_COVERAGE_ENABLED_FALSE='#'
4999else
5000 CODE_COVERAGE_ENABLED_TRUE='#'
5001 CODE_COVERAGE_ENABLED_FALSE=
5002fi
5003
5004 CODE_COVERAGE_ENABLED=$enable_code_coverage
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5007$as_echo "$enable_code_coverage" >&6; }
5008
5009 if test "$enable_code_coverage" = "yes" ; then :
5010
5011 # check for gcov
5012 if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5014set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_GCOV+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -n "$GCOV"; then
5021 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035 done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040GCOV=$ac_cv_prog_GCOV
5041if test -n "$GCOV"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5043$as_echo "$GCOV" >&6; }
5044else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050fi
5051if test -z "$ac_cv_prog_GCOV"; then
5052 ac_ct_GCOV=$GCOV
5053 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5054set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059else
5060 if test -n "$ac_ct_GCOV"; then
5061 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074done
5075 done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5081if test -n "$ac_ct_GCOV"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5083$as_echo "$ac_ct_GCOV" >&6; }
5084else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089 if test "x$ac_ct_GCOV" = x; then
5090 GCOV=":"
5091 else
5092 case $cross_compiling:$ac_tool_warned in
5093yes:)
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096ac_tool_warned=yes ;;
5097esac
5098 GCOV=$ac_ct_GCOV
5099 fi
5100else
5101 GCOV="$ac_cv_prog_GCOV"
5102fi
5103
5104 if test "X$GCOV" = "X:"; then :
5105 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5106fi
5107
5108
5109 if test "$GCC" = "no" ; then :
5110
5111 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5112
5113fi
5114
5115 # Extract the first word of "lcov", so it can be a program name with args.
5116set dummy lcov; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_prog_LCOV+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$LCOV"; then
5123 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_LCOV="lcov"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137 done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142LCOV=$ac_cv_prog_LCOV
5143if test -n "$LCOV"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5145$as_echo "$LCOV" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152 # Extract the first word of "genhtml", so it can be a program name with args.
5153set dummy genhtml; ac_word=$2
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if ${ac_cv_prog_GENHTML+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 if test -n "$GENHTML"; then
5160 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_GENHTML="genhtml"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173done
5174 done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179GENHTML=$ac_cv_prog_GENHTML
5180if test -n "$GENHTML"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5182$as_echo "$GENHTML" >&6; }
5183else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188
5189
5190 if test -z "$LCOV" ; then :
5191
5192 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5193
5194fi
5195
5196 if test -z "$GENHTML" ; then :
5197
5198 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5199
5200fi
5201
5202 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5203 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5204 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5205 CODE_COVERAGE_LIBS="-lgcov"
5206 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5207
5208
5209
5210
5211
5212
5213
5214 CODE_COVERAGE_RULES_CHECK='
5215 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5216 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5217'
5218 CODE_COVERAGE_RULES_CAPTURE='
5219 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5220 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5221 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5222 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5223 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5224'
5225 CODE_COVERAGE_RULES_CLEAN='
5226clean: code-coverage-clean
5227distclean: code-coverage-clean
5228code-coverage-clean:
5229 -$(LCOV) --directory $(top_builddir) -z
5230 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5231 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5232'
5233
5234else
5235
5236 CODE_COVERAGE_RULES_CHECK='
5237 @echo "Need to reconfigure with --enable-code-coverage"
5238'
5239 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5240 CODE_COVERAGE_RULES_CLEAN=''
5241
5242fi
5243
5244CODE_COVERAGE_RULES='
5245# Code coverage
5246#
5247# Optional:
5248# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5249# Multiple directories may be specified, separated by whitespace.
5250# (Default: $(top_builddir))
5251# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5252# by lcov for code coverage. (Default:
5253# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5254# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5255# reports to be created. (Default:
5256# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5257# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5258# set to 0 to disable it and leave empty to stay with the default.
5259# (Default: empty)
5260# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5261# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5262# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5263# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5264# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5265# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5266# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5267# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5268# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5269# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5270# lcov instance. (Default: empty)
5271# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5272# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5273# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5274# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5275# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5276# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5277# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5278#
5279# The generated report will be titled using the $(PACKAGE_NAME) and
5280# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5281# use the git-version-gen script, available online.
5282
5283# Optional variables
5284CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5285CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5286CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5287CODE_COVERAGE_BRANCH_COVERAGE ?=
5288CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5289--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5290CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5291CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5292CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5293CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5294CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5295CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5296CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5297$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5298--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5299CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5300CODE_COVERAGE_IGNORE_PATTERN ?=
5301
5302GITIGNOREFILES ?=
5303GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5304
5305code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5306code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5307code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5308 $(CODE_COVERAGE_OUTPUT_FILE);
5309code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5310code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5311code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5312 $(CODE_COVERAGE_IGNORE_PATTERN);
5313code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5314code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5315code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5316code_coverage_quiet = $(code_coverage_quiet_$(V))
5317code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5318code_coverage_quiet_0 = --quiet
5319
5320# sanitizes the test-name: replaces with underscores: dashes and dots
5321code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5322
5323# Use recursive makes in order to ignore errors during check
5324check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5325
5326# Capture code coverage data
5327code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5328
5329# Hook rule executed before code-coverage-capture, overridable by the user
5330code-coverage-capture-hook:
5331
5332'"$CODE_COVERAGE_RULES_CLEAN"'
5333
5334A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5335A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5336
5337.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5338'
5339
5340
5341
5342
5343else
5344 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5345 CODE_COVERAGE_ENABLED_TRUE='#'
5346
5347fi
5348
Elliott Hughes82be86d2017-09-20 17:00:17 -07005349am__api_version='1.15'
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5352$as_echo_n "checking whether build environment is sane... " >&6; }
5353# Reject unsafe characters in $srcdir or the absolute working directory
5354# name. Accept space and tab only in the latter.
5355am_lf='
5356'
5357case `pwd` in
5358 *[\\\"\#\$\&\'\`$am_lf]*)
5359 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5360esac
5361case $srcdir in
5362 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5363 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5364esac
5365
5366# Do 'set' in a subshell so we don't clobber the current shell's
5367# arguments. Must try -L first in case configure is actually a
5368# symlink; some systems play weird games with the mod time of symlinks
5369# (eg FreeBSD returns the mod time of the symlink's containing
5370# directory).
5371if (
5372 am_has_slept=no
5373 for am_try in 1 2; do
5374 echo "timestamp, slept: $am_has_slept" > conftest.file
5375 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5376 if test "$*" = "X"; then
5377 # -L didn't work.
5378 set X `ls -t "$srcdir/configure" conftest.file`
5379 fi
5380 if test "$*" != "X $srcdir/configure conftest.file" \
5381 && test "$*" != "X conftest.file $srcdir/configure"; then
5382
5383 # If neither matched, then we have a broken ls. This can happen
5384 # if, for instance, CONFIG_SHELL is bash and it inherits a
5385 # broken ls alias from the environment. This has actually
5386 # happened. Such a system could not be considered "sane".
5387 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5388 alias in your environment" "$LINENO" 5
5389 fi
5390 if test "$2" = conftest.file || test $am_try -eq 2; then
5391 break
5392 fi
5393 # Just in case.
5394 sleep 1
5395 am_has_slept=yes
5396 done
5397 test "$2" = conftest.file
5398 )
5399then
5400 # Ok.
5401 :
5402else
5403 as_fn_error $? "newly created file is older than distributed files!
5404Check your system clock" "$LINENO" 5
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407$as_echo "yes" >&6; }
5408# If we didn't sleep, we still need to ensure time stamps of config.status and
5409# generated files are strictly newer.
5410am_sleep_pid=
5411if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5412 ( sleep 1 ) &
5413 am_sleep_pid=$!
5414fi
5415
5416rm -f conftest.file
5417
5418test "$program_prefix" != NONE &&
5419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5420# Use a double $ so make ignores it.
5421test "$program_suffix" != NONE &&
5422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5423# Double any \ or $.
5424# By default was `s,x,x', remove it if useless.
5425ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5426program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5427
5428if test x"${MISSING+set}" != xset; then
5429 case $am_aux_dir in
5430 *\ * | *\ *)
5431 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5432 *)
5433 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5434 esac
5435fi
5436# Use eval to expand $SHELL
5437if eval "$MISSING --is-lightweight"; then
5438 am_missing_run="$MISSING "
5439else
5440 am_missing_run=
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5442$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5443fi
5444
5445if test x"${install_sh+set}" != xset; then
5446 case $am_aux_dir in
5447 *\ * | *\ *)
5448 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5449 *)
5450 install_sh="\${SHELL} $am_aux_dir/install-sh"
5451 esac
5452fi
5453
5454# Installed binaries are usually stripped using 'strip' when the user
5455# run "make install-strip". However 'strip' might not be the right
5456# tool to use in cross-compilation environments, therefore Automake
5457# will honor the 'STRIP' environment variable to overrule this program.
5458if test "$cross_compiling" != no; then
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461set dummy ${ac_tool_prefix}strip; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if ${ac_cv_prog_STRIP+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466else
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482 done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487STRIP=$ac_cv_prog_STRIP
5488if test -n "$STRIP"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490$as_echo "$STRIP" >&6; }
5491else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496
5497fi
5498if test -z "$ac_cv_prog_STRIP"; then
5499 ac_ct_STRIP=$STRIP
5500 # Extract the first word of "strip", so it can be a program name with args.
5501set dummy strip; ac_word=$2
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522 done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5530$as_echo "$ac_ct_STRIP" >&6; }
5531else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536 if test "x$ac_ct_STRIP" = x; then
5537 STRIP=":"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540yes:)
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543ac_tool_warned=yes ;;
5544esac
5545 STRIP=$ac_ct_STRIP
5546 fi
5547else
5548 STRIP="$ac_cv_prog_STRIP"
5549fi
5550
5551fi
5552INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5555$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556if test -z "$MKDIR_P"; then
5557 if ${ac_cv_path_mkdir+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in mkdir gmkdir; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5568 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5569 'mkdir (GNU coreutils) '* | \
5570 'mkdir (coreutils) '* | \
5571 'mkdir (fileutils) '4.1*)
5572 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5573 break 3;;
5574 esac
5575 done
5576 done
5577 done
5578IFS=$as_save_IFS
5579
5580fi
5581
5582 test -d ./--version && rmdir ./--version
5583 if test "${ac_cv_path_mkdir+set}" = set; then
5584 MKDIR_P="$ac_cv_path_mkdir -p"
5585 else
5586 # As a last resort, use the slow shell script. Don't cache a
5587 # value for MKDIR_P within a source directory, because that will
5588 # break other packages using the cache if that directory is
5589 # removed, or if the value is a relative name.
5590 MKDIR_P="$ac_install_sh -d"
5591 fi
5592fi
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5594$as_echo "$MKDIR_P" >&6; }
5595
5596for ac_prog in gawk mawk nawk awk
5597do
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599set dummy $ac_prog; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if ${ac_cv_prog_AWK+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$AWK"; then
5606 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_AWK="$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620 done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625AWK=$ac_cv_prog_AWK
5626if test -n "$AWK"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5628$as_echo "$AWK" >&6; }
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635 test -n "$AWK" && break
5636done
5637
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5639$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5640set x ${MAKE-make}
5641ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5642if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644else
5645 cat >conftest.make <<\_ACEOF
5646SHELL = /bin/sh
5647all:
5648 @echo '@@@%%%=$(MAKE)=@@@%%%'
5649_ACEOF
5650# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5651case `${MAKE-make} -f conftest.make 2>/dev/null` in
5652 *@@@%%%=?*=@@@%%%*)
5653 eval ac_cv_prog_make_${ac_make}_set=yes;;
5654 *)
5655 eval ac_cv_prog_make_${ac_make}_set=no;;
5656esac
5657rm -f conftest.make
5658fi
5659if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661$as_echo "yes" >&6; }
5662 SET_MAKE=
5663else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666 SET_MAKE="MAKE=${MAKE-make}"
5667fi
5668
5669rm -rf .tst 2>/dev/null
5670mkdir .tst 2>/dev/null
5671if test -d .tst; then
5672 am__leading_dot=.
5673else
5674 am__leading_dot=_
5675fi
5676rmdir .tst 2>/dev/null
5677
5678DEPDIR="${am__leading_dot}deps"
5679
5680ac_config_commands="$ac_config_commands depfiles"
5681
5682
5683am_make=${MAKE-make}
5684cat > confinc << 'END'
5685am__doit:
5686 @echo this is the am__doit target
5687.PHONY: am__doit
5688END
5689# If we don't find an include directive, just comment out the code.
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5691$as_echo_n "checking for style of include used by $am_make... " >&6; }
5692am__include="#"
5693am__quote=
5694_am_result=none
5695# First try GNU make style include.
5696echo "include confinc" > confmf
5697# Ignore all kinds of additional output from 'make'.
5698case `$am_make -s -f confmf 2> /dev/null` in #(
5699*the\ am__doit\ target*)
5700 am__include=include
5701 am__quote=
5702 _am_result=GNU
5703 ;;
5704esac
5705# Now try BSD make style include.
5706if test "$am__include" = "#"; then
5707 echo '.include "confinc"' > confmf
5708 case `$am_make -s -f confmf 2> /dev/null` in #(
5709 *the\ am__doit\ target*)
5710 am__include=.include
5711 am__quote="\""
5712 _am_result=BSD
5713 ;;
5714 esac
5715fi
5716
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5719$as_echo "$_am_result" >&6; }
5720rm -f confinc confmf
5721
5722# Check whether --enable-dependency-tracking was given.
5723if test "${enable_dependency_tracking+set}" = set; then :
5724 enableval=$enable_dependency_tracking;
5725fi
5726
5727if test "x$enable_dependency_tracking" != xno; then
5728 am_depcomp="$ac_aux_dir/depcomp"
5729 AMDEPBACKSLASH='\'
5730 am__nodep='_no'
5731fi
5732 if test "x$enable_dependency_tracking" != xno; then
5733 AMDEP_TRUE=
5734 AMDEP_FALSE='#'
5735else
5736 AMDEP_TRUE='#'
5737 AMDEP_FALSE=
5738fi
5739
5740
5741## --------------------------------------- ##
5742## Start of automake initialization code ##
5743## --------------------------------------- ##
5744
5745if test "`cd $srcdir && pwd`" != "`pwd`"; then
5746 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5747 # is not polluted with repeated "-I."
5748 am__isrc=' -I$(srcdir)'
5749 # test to see if srcdir already configured
5750 if test -f $srcdir/config.status; then
5751 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5752 fi
5753fi
5754
5755# test whether we have cygpath
5756if test -z "$CYGPATH_W"; then
5757 if (cygpath --version) >/dev/null 2>/dev/null; then
5758 CYGPATH_W='cygpath -w'
5759 else
5760 CYGPATH_W=echo
5761 fi
5762fi
5763
5764
5765# Define the identity of the package.
5766 PACKAGE='curl'
5767 VERSION='-'
5768
5769
5770cat >>confdefs.h <<_ACEOF
5771#define PACKAGE "$PACKAGE"
5772_ACEOF
5773
5774
5775cat >>confdefs.h <<_ACEOF
5776#define VERSION "$VERSION"
5777_ACEOF
5778
5779# Some tools Automake needs.
5780
5781ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5782
5783
5784AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5785
5786
5787AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5788
5789
5790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5791
5792
5793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5794
5795# For better backward compatibility. To be removed once Automake 1.9.x
5796# dies out for good. For more background, see:
5797# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5798# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5799mkdir_p='$(MKDIR_P)'
5800
5801# We need awk for the "check" target (and possibly the TAP driver). The
5802# system "awk" is bad on some platforms.
5803# Always define AMTAR for backward compatibility. Yes, it's still used
5804# in the wild :-( We should find a proper way to deprecate it ...
5805AMTAR='$${TAR-tar}'
5806
5807
5808# We'll loop over all known methods to create a tar archive until one works.
5809_am_tools='gnutar pax cpio none'
5810
5811am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5812
5813
5814
5815
5816
5817depcc="$CC" am_compiler_list=
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5820$as_echo_n "checking dependency style of $depcc... " >&6; }
5821if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5825 # We make a subdir and do the tests there. Otherwise we can end up
5826 # making bogus files that we don't know about and never remove. For
5827 # instance it was reported that on HP-UX the gcc test will end up
5828 # making a dummy file named 'D' -- because '-MD' means "put the output
5829 # in D".
5830 rm -rf conftest.dir
5831 mkdir conftest.dir
5832 # Copy depcomp to subdir because otherwise we won't find it if we're
5833 # using a relative directory.
5834 cp "$am_depcomp" conftest.dir
5835 cd conftest.dir
5836 # We will build objects and dependencies in a subdirectory because
5837 # it helps to detect inapplicable dependency modes. For instance
5838 # both Tru64's cc and ICC support -MD to output dependencies as a
5839 # side effect of compilation, but ICC will put the dependencies in
5840 # the current directory while Tru64 will put them in the object
5841 # directory.
5842 mkdir sub
5843
5844 am_cv_CC_dependencies_compiler_type=none
5845 if test "$am_compiler_list" = ""; then
5846 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5847 fi
5848 am__universal=false
5849 case " $depcc " in #(
5850 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5851 esac
5852
5853 for depmode in $am_compiler_list; do
5854 # Setup a source with many dependencies, because some compilers
5855 # like to wrap large dependency lists on column 80 (with \), and
5856 # we should not choose a depcomp mode which is confused by this.
5857 #
5858 # We need to recreate these files for each test, as the compiler may
5859 # overwrite some of them when testing with obscure command lines.
5860 # This happens at least with the AIX C compiler.
5861 : > sub/conftest.c
5862 for i in 1 2 3 4 5 6; do
5863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5864 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5865 # Solaris 10 /bin/sh.
5866 echo '/* dummy */' > sub/conftst$i.h
5867 done
5868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5869
5870 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5871 # mode. It turns out that the SunPro C++ compiler does not properly
5872 # handle '-M -o', and we need to detect this. Also, some Intel
5873 # versions had trouble with output in subdirs.
5874 am__obj=sub/conftest.${OBJEXT-o}
5875 am__minus_obj="-o $am__obj"
5876 case $depmode in
5877 gcc)
5878 # This depmode causes a compiler race in universal mode.
5879 test "$am__universal" = false || continue
5880 ;;
5881 nosideeffect)
5882 # After this tag, mechanisms are not by side-effect, so they'll
5883 # only be used when explicitly requested.
5884 if test "x$enable_dependency_tracking" = xyes; then
5885 continue
5886 else
5887 break
5888 fi
5889 ;;
5890 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5891 # This compiler won't grok '-c -o', but also, the minuso test has
5892 # not run yet. These depmodes are late enough in the game, and
5893 # so weak that their functioning should not be impacted.
5894 am__obj=conftest.${OBJEXT-o}
5895 am__minus_obj=
5896 ;;
5897 none) break ;;
5898 esac
5899 if depmode=$depmode \
5900 source=sub/conftest.c object=$am__obj \
5901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5902 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5903 >/dev/null 2>conftest.err &&
5904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5906 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5908 # icc doesn't choke on unknown options, it will just issue warnings
5909 # or remarks (even with -Werror). So we grep stderr for any message
5910 # that says an option was ignored or not supported.
5911 # When given -MP, icc 7.0 and 7.1 complain thusly:
5912 # icc: Command line warning: ignoring option '-M'; no argument required
5913 # The diagnosis changed in icc 8.0:
5914 # icc: Command line remark: option '-MP' not supported
5915 if (grep 'ignoring option' conftest.err ||
5916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5917 am_cv_CC_dependencies_compiler_type=$depmode
5918 break
5919 fi
5920 fi
5921 done
5922
5923 cd ..
5924 rm -rf conftest.dir
5925else
5926 am_cv_CC_dependencies_compiler_type=none
5927fi
5928
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5931$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5932CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5933
5934 if
5935 test "x$enable_dependency_tracking" != xno \
5936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5937 am__fastdepCC_TRUE=
5938 am__fastdepCC_FALSE='#'
5939else
5940 am__fastdepCC_TRUE='#'
5941 am__fastdepCC_FALSE=
5942fi
5943
5944
5945
5946# POSIX will say in a future version that running "rm -f" with no argument
5947# is OK; and we want to be able to make that assumption in our Makefile
5948# recipes. So use an aggressive probe to check that the usage we want is
5949# actually supported "in the wild" to an acceptable degree.
5950# See automake bug#10828.
5951# To make any issue more visible, cause the running configure to be aborted
5952# by default if the 'rm' program in use doesn't match our expectations; the
5953# user can still override this though.
5954if rm -f && rm -fr && rm -rf; then : OK; else
5955 cat >&2 <<'END'
5956Oops!
5957
5958Your 'rm' program seems unable to run without file operands specified
5959on the command line, even when the '-f' option is present. This is contrary
5960to the behaviour of most rm programs out there, and not conforming with
5961the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5962
5963Please tell bug-automake@gnu.org about your system, including the value
5964of your $PATH and any error possibly output before this message. This
5965can help us improve future automake versions.
5966
5967END
5968 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5969 echo 'Configuration will proceed anyway, since you have set the' >&2
5970 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5971 echo >&2
5972 else
5973 cat >&2 <<'END'
5974Aborting the configuration process, to ensure you take notice of the issue.
5975
5976You can download and install GNU coreutils to get an 'rm' implementation
5977that behaves properly: <http://www.gnu.org/software/coreutils/>.
5978
5979If you want to complete the configuration process using your problematic
5980'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5981to "yes", and re-run configure.
5982
5983END
5984 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5985 fi
5986fi
5987
5988## ------------------------------------- ##
5989## End of automake initialization code ##
5990## ------------------------------------- ##
5991
5992
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5994$as_echo_n "checking curl version... " >&6; }
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5996$as_echo "$CURLVERSION" >&6; }
5997
5998
5999
6000VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6001
6002
6003PKGADD_PKG="HAXXcurl"
6004PKGADD_NAME="curl - a client that groks URLs"
6005PKGADD_VENDOR="curl.haxx.se"
6006
6007
6008
6009
Elliott Hughesa93fb052018-12-12 14:22:48 -08006010 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl,mesalink} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006011 curl_ssh_msg="no (--with-libssh2)"
6012 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006013 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006014 curl_gss_msg="no (--with-gssapi)"
6015curl_tls_srp_msg="no (--enable-tls-srp)"
6016 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6017 curl_ipv6_msg="no (--enable-ipv6)"
6018curl_unix_sockets_msg="no (--enable-unix-sockets)"
6019 curl_idn_msg="no (--with-{libidn2,winidn})"
6020 curl_manual_msg="no (--enable-manual)"
6021curl_libcurl_msg="enabled (--disable-libcurl-option)"
6022curl_verbose_msg="enabled (--disable-verbose)"
6023 curl_sspi_msg="no (--enable-sspi)"
6024 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6025 curl_ldaps_msg="no (--enable-ldaps)"
6026 curl_rtsp_msg="no (--enable-rtsp)"
6027 curl_rtmp_msg="no (--with-librtmp)"
6028 curl_mtlnk_msg="no (--with-libmetalink)"
6029 curl_psl_msg="no (--with-libpsl)"
6030
Alex Deymo486467e2017-12-19 19:04:07 +01006031 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006032
6033INITIAL_LDFLAGS=$LDFLAGS
6034INITIAL_LIBS=$LIBS
6035
6036
6037# Make sure we can run config.sub.
6038$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6039 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6040
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6042$as_echo_n "checking build system type... " >&6; }
6043if ${ac_cv_build+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045else
6046 ac_build_alias=$build_alias
6047test "x$ac_build_alias" = x &&
6048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6049test "x$ac_build_alias" = x &&
6050 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6051ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6052 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6053
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6056$as_echo "$ac_cv_build" >&6; }
6057case $ac_cv_build in
6058*-*-*) ;;
6059*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6060esac
6061build=$ac_cv_build
6062ac_save_IFS=$IFS; IFS='-'
6063set x $ac_cv_build
6064shift
6065build_cpu=$1
6066build_vendor=$2
6067shift; shift
6068# Remember, the first character of IFS is used to create $*,
6069# except with old shells:
6070build_os=$*
6071IFS=$ac_save_IFS
6072case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6073
6074
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6076$as_echo_n "checking host system type... " >&6; }
6077if ${ac_cv_host+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079else
6080 if test "x$host_alias" = x; then
6081 ac_cv_host=$ac_cv_build
6082else
6083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6084 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6085fi
6086
6087fi
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6089$as_echo "$ac_cv_host" >&6; }
6090case $ac_cv_host in
6091*-*-*) ;;
6092*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6093esac
6094host=$ac_cv_host
6095ac_save_IFS=$IFS; IFS='-'
6096set x $ac_cv_host
6097shift
6098host_cpu=$1
6099host_vendor=$2
6100shift; shift
6101# Remember, the first character of IFS is used to create $*,
6102# except with old shells:
6103host_os=$*
6104IFS=$ac_save_IFS
6105case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6106
6107
6108
6109cat >>confdefs.h <<_ACEOF
6110#define OS "${host}"
6111_ACEOF
6112
6113
Elliott Hughes72d948d2018-08-03 14:37:21 -07006114# Silence warning: ar: 'u' modifier ignored since 'D' is the default
6115AR_FLAGS=cr
6116
Elliott Hughes82be86d2017-09-20 17:00:17 -07006117
6118
6119
Elliott Hughes82be86d2017-09-20 17:00:17 -07006120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6121$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6122if ${ac_cv_path_GREP+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124else
6125 if test -z "$GREP"; then
6126 ac_path_GREP_found=false
6127 # Loop through the user's path and test for each of PROGNAME-LIST
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_prog in grep ggrep; do
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6136 as_fn_executable_p "$ac_path_GREP" || continue
6137# Check for GNU ac_path_GREP and select it if it is found.
6138 # Check for GNU $ac_path_GREP
6139case `"$ac_path_GREP" --version 2>&1` in
6140*GNU*)
6141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6142*)
6143 ac_count=0
6144 $as_echo_n 0123456789 >"conftest.in"
6145 while :
6146 do
6147 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl"
6150 $as_echo 'GREP' >> "conftest.nl"
6151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 as_fn_arith $ac_count + 1 && ac_count=$as_val
6154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6155 # Best one so far, save it but keep looking for a better one
6156 ac_cv_path_GREP="$ac_path_GREP"
6157 ac_path_GREP_max=$ac_count
6158 fi
6159 # 10*(2^10) chars as input seems more than enough
6160 test $ac_count -gt 10 && break
6161 done
6162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6163esac
6164
6165 $ac_path_GREP_found && break 3
6166 done
6167 done
6168 done
6169IFS=$as_save_IFS
6170 if test -z "$ac_cv_path_GREP"; then
6171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6172 fi
6173else
6174 ac_cv_path_GREP=$GREP
6175fi
6176
6177fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6179$as_echo "$ac_cv_path_GREP" >&6; }
6180 GREP="$ac_cv_path_GREP"
6181
6182
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6184$as_echo_n "checking for egrep... " >&6; }
6185if ${ac_cv_path_EGREP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187else
6188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6189 then ac_cv_path_EGREP="$GREP -E"
6190 else
6191 if test -z "$EGREP"; then
6192 ac_path_EGREP_found=false
6193 # Loop through the user's path and test for each of PROGNAME-LIST
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_prog in egrep; do
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6202 as_fn_executable_p "$ac_path_EGREP" || continue
6203# Check for GNU ac_path_EGREP and select it if it is found.
6204 # Check for GNU $ac_path_EGREP
6205case `"$ac_path_EGREP" --version 2>&1` in
6206*GNU*)
6207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6208*)
6209 ac_count=0
6210 $as_echo_n 0123456789 >"conftest.in"
6211 while :
6212 do
6213 cat "conftest.in" "conftest.in" >"conftest.tmp"
6214 mv "conftest.tmp" "conftest.in"
6215 cp "conftest.in" "conftest.nl"
6216 $as_echo 'EGREP' >> "conftest.nl"
6217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219 as_fn_arith $ac_count + 1 && ac_count=$as_val
6220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6221 # Best one so far, save it but keep looking for a better one
6222 ac_cv_path_EGREP="$ac_path_EGREP"
6223 ac_path_EGREP_max=$ac_count
6224 fi
6225 # 10*(2^10) chars as input seems more than enough
6226 test $ac_count -gt 10 && break
6227 done
6228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6229esac
6230
6231 $ac_path_EGREP_found && break 3
6232 done
6233 done
6234 done
6235IFS=$as_save_IFS
6236 if test -z "$ac_cv_path_EGREP"; then
6237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6238 fi
6239else
6240 ac_cv_path_EGREP=$EGREP
6241fi
6242
6243 fi
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6246$as_echo "$ac_cv_path_EGREP" >&6; }
6247 EGREP="$ac_cv_path_EGREP"
6248
6249
Elliott Hughes82be86d2017-09-20 17:00:17 -07006250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6253$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h. */
6256
6257#ifdef _AIX
6258 yes_this_is_aix
6259#endif
6260
6261_ACEOF
6262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266$as_echo "yes" >&6; }
6267 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6268
6269
6270else
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
6274
6275fi
6276rm -f conftest*
6277
6278
6279
6280
6281 #
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6283$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h. */
6286
6287
6288
6289int main (void)
6290{
6291
6292#ifdef _THREAD_SAFE
6293 int dummy=1;
6294#else
6295 force compilation error
6296#endif
6297
6298 ;
6299 return 0;
6300}
6301
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"; then :
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6306$as_echo "yes" >&6; }
6307 tmp_thread_safe_initially_defined="yes"
6308
6309else
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313 tmp_thread_safe_initially_defined="no"
6314
6315fi
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 #
6318 if test "$tmp_thread_safe_initially_defined" = "no"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6320$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6321
6322 case $host_os in
6323 aix[123].* | aix4.[012].*)
6324 tmp_need_thread_safe="no"
6325 ;;
6326 aix*)
6327 tmp_need_thread_safe="yes"
6328 ;;
6329 *)
6330 tmp_need_thread_safe="no"
6331 ;;
6332 esac
6333
6334 if test "$tmp_need_thread_safe" = "yes"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336$as_echo "yes" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340 fi
6341 fi
6342 #
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6344$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6345 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6346 test "$tmp_need_thread_safe" = "yes"; then
6347
6348
6349$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6350
6351cat >>confdefs.h <<_EOF
6352#ifndef _THREAD_SAFE
6353# define _THREAD_SAFE
6354#endif
6355_EOF
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358$as_echo "yes" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362 fi
6363 #
6364
6365
6366 #
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6368$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h. */
6371
6372
6373
6374int main (void)
6375{
6376
6377#ifdef _REENTRANT
6378 int dummy=1;
6379#else
6380 force compilation error
6381#endif
6382
6383 ;
6384 return 0;
6385}
6386
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6391$as_echo "yes" >&6; }
6392 tmp_reentrant_initially_defined="yes"
6393
6394else
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398 tmp_reentrant_initially_defined="no"
6399
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 #
6403 if test "$tmp_reentrant_initially_defined" = "no"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6405$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6406
6407 case $host_os in
6408 solaris*)
6409 tmp_need_reentrant="yes"
6410 ;;
6411 *)
6412 tmp_need_reentrant="no"
6413 ;;
6414 esac
6415
6416 if test "$tmp_need_reentrant" = "no"; then
6417
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h. */
6420
6421
6422#include <errno.h>
6423
6424int main (void)
6425{
6426
6427 if(0 != errno)
6428 return 1;
6429
6430 ;
6431 return 0;
6432}
6433
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"; then :
6436
6437 tmp_errno="yes"
6438
6439else
6440
6441 tmp_errno="no"
6442
6443fi
6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 if test "$tmp_errno" = "yes"; then
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448
6449
6450#include <errno.h>
6451
6452int main (void)
6453{
6454
6455#ifdef errno
6456 int dummy=1;
6457#else
6458 force compilation error
6459#endif
6460
6461 ;
6462 return 0;
6463}
6464
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"; then :
6467
6468 tmp_errno="errno_macro_defined"
6469
6470else
6471
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h. */
6474
6475
6476#define _REENTRANT
6477#include <errno.h>
6478
6479int main (void)
6480{
6481
6482#ifdef errno
6483 int dummy=1;
6484#else
6485 force compilation error
6486#endif
6487
6488 ;
6489 return 0;
6490}
6491
6492_ACEOF
6493if ac_fn_c_try_compile "$LINENO"; then :
6494
6495 tmp_errno="errno_macro_needs_reentrant"
6496 tmp_need_reentrant="yes"
6497
6498fi
6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500
6501fi
6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504
6505 fi
6506 if test "$tmp_need_reentrant" = "no"; then
6507
6508 if test "$tmp_need_reentrant" = "no"; then
6509
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512
6513
6514#define gmtime_r innocuous_gmtime_r
6515#ifdef __STDC__
6516# include <limits.h>
6517#else
6518# include <assert.h>
6519#endif
6520#undef gmtime_r
6521#ifdef __cplusplus
6522extern "C"
6523#endif
6524char gmtime_r ();
6525#if defined __stub_gmtime_r || defined __stub___gmtime_r
6526choke me
6527#endif
6528
6529int main (void)
6530{
6531return gmtime_r ();
6532 ;
6533 return 0;
6534}
6535
6536_ACEOF
6537if ac_fn_c_try_link "$LINENO"; then :
6538
6539 tmp_gmtime_r="yes"
6540
6541else
6542
6543 tmp_gmtime_r="no"
6544
6545fi
6546rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 if test "$tmp_gmtime_r" = "yes"; then
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550/* end confdefs.h. */
6551
6552#include <sys/types.h>
6553#include <time.h>
6554
6555_ACEOF
6556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6558
6559 tmp_gmtime_r="proto_declared"
6560
6561else
6562
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
6565
6566#define _REENTRANT
6567#include <sys/types.h>
6568#include <time.h>
6569
6570_ACEOF
6571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6573
6574 tmp_gmtime_r="proto_needs_reentrant"
6575 tmp_need_reentrant="yes"
6576
6577fi
6578rm -f conftest*
6579
6580
6581fi
6582rm -f conftest*
6583
6584 fi
6585
6586 fi
6587 if test "$tmp_need_reentrant" = "no"; then
6588
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h. */
6591
6592
6593#define localtime_r innocuous_localtime_r
6594#ifdef __STDC__
6595# include <limits.h>
6596#else
6597# include <assert.h>
6598#endif
6599#undef localtime_r
6600#ifdef __cplusplus
6601extern "C"
6602#endif
6603char localtime_r ();
6604#if defined __stub_localtime_r || defined __stub___localtime_r
6605choke me
6606#endif
6607
6608int main (void)
6609{
6610return localtime_r ();
6611 ;
6612 return 0;
6613}
6614
6615_ACEOF
6616if ac_fn_c_try_link "$LINENO"; then :
6617
6618 tmp_localtime_r="yes"
6619
6620else
6621
6622 tmp_localtime_r="no"
6623
6624fi
6625rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 if test "$tmp_localtime_r" = "yes"; then
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h. */
6630
6631#include <sys/types.h>
6632#include <time.h>
6633
6634_ACEOF
6635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636 $EGREP "localtime_r" >/dev/null 2>&1; then :
6637
6638 tmp_localtime_r="proto_declared"
6639
6640else
6641
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h. */
6644
6645#define _REENTRANT
6646#include <sys/types.h>
6647#include <time.h>
6648
6649_ACEOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "localtime_r" >/dev/null 2>&1; then :
6652
6653 tmp_localtime_r="proto_needs_reentrant"
6654 tmp_need_reentrant="yes"
6655
6656fi
6657rm -f conftest*
6658
6659
6660fi
6661rm -f conftest*
6662
6663 fi
6664
6665 fi
6666 if test "$tmp_need_reentrant" = "no"; then
6667
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h. */
6670
6671
6672#define strerror_r innocuous_strerror_r
6673#ifdef __STDC__
6674# include <limits.h>
6675#else
6676# include <assert.h>
6677#endif
6678#undef strerror_r
6679#ifdef __cplusplus
6680extern "C"
6681#endif
6682char strerror_r ();
6683#if defined __stub_strerror_r || defined __stub___strerror_r
6684choke me
6685#endif
6686
6687int main (void)
6688{
6689return strerror_r ();
6690 ;
6691 return 0;
6692}
6693
6694_ACEOF
6695if ac_fn_c_try_link "$LINENO"; then :
6696
6697 tmp_strerror_r="yes"
6698
6699else
6700
6701 tmp_strerror_r="no"
6702
6703fi
6704rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 if test "$tmp_strerror_r" = "yes"; then
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h. */
6709
6710#include <sys/types.h>
6711#include <string.h>
6712
6713_ACEOF
6714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "strerror_r" >/dev/null 2>&1; then :
6716
6717 tmp_strerror_r="proto_declared"
6718
6719else
6720
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723
6724#define _REENTRANT
6725#include <sys/types.h>
6726#include <string.h>
6727
6728_ACEOF
6729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "strerror_r" >/dev/null 2>&1; then :
6731
6732 tmp_strerror_r="proto_needs_reentrant"
6733 tmp_need_reentrant="yes"
6734
6735fi
6736rm -f conftest*
6737
6738
6739fi
6740rm -f conftest*
6741
6742 fi
6743
6744 fi
6745 if test "$tmp_need_reentrant" = "no"; then
6746
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749
6750
6751#define strtok_r innocuous_strtok_r
6752#ifdef __STDC__
6753# include <limits.h>
6754#else
6755# include <assert.h>
6756#endif
6757#undef strtok_r
6758#ifdef __cplusplus
6759extern "C"
6760#endif
6761char strtok_r ();
6762#if defined __stub_strtok_r || defined __stub___strtok_r
6763choke me
6764#endif
6765
6766int main (void)
6767{
6768return strtok_r ();
6769 ;
6770 return 0;
6771}
6772
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"; then :
6775
6776 tmp_strtok_r="yes"
6777
6778else
6779
6780 tmp_strtok_r="no"
6781
6782fi
6783rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 if test "$tmp_strtok_r" = "yes"; then
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h. */
6788
6789#include <sys/types.h>
6790#include <string.h>
6791
6792_ACEOF
6793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6794 $EGREP "strtok_r" >/dev/null 2>&1; then :
6795
6796 tmp_strtok_r="proto_declared"
6797
6798else
6799
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h. */
6802
6803#define _REENTRANT
6804#include <sys/types.h>
6805#include <string.h>
6806
6807_ACEOF
6808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "strtok_r" >/dev/null 2>&1; then :
6810
6811 tmp_strtok_r="proto_needs_reentrant"
6812 tmp_need_reentrant="yes"
6813
6814fi
6815rm -f conftest*
6816
6817
6818fi
6819rm -f conftest*
6820
6821 fi
6822
6823 fi
6824 if test "$tmp_need_reentrant" = "no"; then
6825
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h. */
6828
6829
6830#define inet_ntoa_r innocuous_inet_ntoa_r
6831#ifdef __STDC__
6832# include <limits.h>
6833#else
6834# include <assert.h>
6835#endif
6836#undef inet_ntoa_r
6837#ifdef __cplusplus
6838extern "C"
6839#endif
6840char inet_ntoa_r ();
6841#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6842choke me
6843#endif
6844
6845int main (void)
6846{
6847return inet_ntoa_r ();
6848 ;
6849 return 0;
6850}
6851
6852_ACEOF
6853if ac_fn_c_try_link "$LINENO"; then :
6854
6855 tmp_inet_ntoa_r="yes"
6856
6857else
6858
6859 tmp_inet_ntoa_r="no"
6860
6861fi
6862rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 if test "$tmp_inet_ntoa_r" = "yes"; then
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h. */
6867
6868#include <sys/types.h>
6869#include <sys/socket.h>
6870#include <netinet/in.h>
6871#include <arpa/inet.h>
6872
6873_ACEOF
6874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6876
6877 tmp_inet_ntoa_r="proto_declared"
6878
6879else
6880
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h. */
6883
6884#define _REENTRANT
6885#include <sys/types.h>
6886#include <sys/socket.h>
6887#include <netinet/in.h>
6888#include <arpa/inet.h>
6889
6890_ACEOF
6891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6893
6894 tmp_inet_ntoa_r="proto_needs_reentrant"
6895 tmp_need_reentrant="yes"
6896
6897fi
6898rm -f conftest*
6899
6900
6901fi
6902rm -f conftest*
6903
6904 fi
6905
6906 fi
6907 if test "$tmp_need_reentrant" = "no"; then
6908
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h. */
6911
6912
6913#define gethostbyaddr_r innocuous_gethostbyaddr_r
6914#ifdef __STDC__
6915# include <limits.h>
6916#else
6917# include <assert.h>
6918#endif
6919#undef gethostbyaddr_r
6920#ifdef __cplusplus
6921extern "C"
6922#endif
6923char gethostbyaddr_r ();
6924#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6925choke me
6926#endif
6927
6928int main (void)
6929{
6930return gethostbyaddr_r ();
6931 ;
6932 return 0;
6933}
6934
6935_ACEOF
6936if ac_fn_c_try_link "$LINENO"; then :
6937
6938 tmp_gethostbyaddr_r="yes"
6939
6940else
6941
6942 tmp_gethostbyaddr_r="no"
6943
6944fi
6945rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 if test "$tmp_gethostbyaddr_r" = "yes"; then
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949/* end confdefs.h. */
6950
6951#include <sys/types.h>
6952#include <netdb.h>
6953
6954_ACEOF
6955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6957
6958 tmp_gethostbyaddr_r="proto_declared"
6959
6960else
6961
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h. */
6964
6965#define _REENTRANT
6966#include <sys/types.h>
6967#include <netdb.h>
6968
6969_ACEOF
6970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6972
6973 tmp_gethostbyaddr_r="proto_needs_reentrant"
6974 tmp_need_reentrant="yes"
6975
6976fi
6977rm -f conftest*
6978
6979
6980fi
6981rm -f conftest*
6982
6983 fi
6984
6985 fi
6986 if test "$tmp_need_reentrant" = "no"; then
6987
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h. */
6990
6991
6992#define gethostbyname_r innocuous_gethostbyname_r
6993#ifdef __STDC__
6994# include <limits.h>
6995#else
6996# include <assert.h>
6997#endif
6998#undef gethostbyname_r
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002char gethostbyname_r ();
7003#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7004choke me
7005#endif
7006
7007int main (void)
7008{
7009return gethostbyname_r ();
7010 ;
7011 return 0;
7012}
7013
7014_ACEOF
7015if ac_fn_c_try_link "$LINENO"; then :
7016
7017 tmp_gethostbyname_r="yes"
7018
7019else
7020
7021 tmp_gethostbyname_r="no"
7022
7023fi
7024rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 if test "$tmp_gethostbyname_r" = "yes"; then
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h. */
7029
7030#include <sys/types.h>
7031#include <netdb.h>
7032
7033_ACEOF
7034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7036
7037 tmp_gethostbyname_r="proto_declared"
7038
7039else
7040
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h. */
7043
7044#define _REENTRANT
7045#include <sys/types.h>
7046#include <netdb.h>
7047
7048_ACEOF
7049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7051
7052 tmp_gethostbyname_r="proto_needs_reentrant"
7053 tmp_need_reentrant="yes"
7054
7055fi
7056rm -f conftest*
7057
7058
7059fi
7060rm -f conftest*
7061
7062 fi
7063
7064 fi
7065 if test "$tmp_need_reentrant" = "no"; then
7066
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069
7070
7071#define getprotobyname_r innocuous_getprotobyname_r
7072#ifdef __STDC__
7073# include <limits.h>
7074#else
7075# include <assert.h>
7076#endif
7077#undef getprotobyname_r
7078#ifdef __cplusplus
7079extern "C"
7080#endif
7081char getprotobyname_r ();
7082#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7083choke me
7084#endif
7085
7086int main (void)
7087{
7088return getprotobyname_r ();
7089 ;
7090 return 0;
7091}
7092
7093_ACEOF
7094if ac_fn_c_try_link "$LINENO"; then :
7095
7096 tmp_getprotobyname_r="yes"
7097
7098else
7099
7100 tmp_getprotobyname_r="no"
7101
7102fi
7103rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 if test "$tmp_getprotobyname_r" = "yes"; then
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h. */
7108
7109#include <sys/types.h>
7110#include <netdb.h>
7111
7112_ACEOF
7113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7115
7116 tmp_getprotobyname_r="proto_declared"
7117
7118else
7119
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h. */
7122
7123#define _REENTRANT
7124#include <sys/types.h>
7125#include <netdb.h>
7126
7127_ACEOF
7128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7130
7131 tmp_getprotobyname_r="proto_needs_reentrant"
7132 tmp_need_reentrant="yes"
7133
7134fi
7135rm -f conftest*
7136
7137
7138fi
7139rm -f conftest*
7140
7141 fi
7142
7143 fi
7144 if test "$tmp_need_reentrant" = "no"; then
7145
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h. */
7148
7149
7150#define getservbyport_r innocuous_getservbyport_r
7151#ifdef __STDC__
7152# include <limits.h>
7153#else
7154# include <assert.h>
7155#endif
7156#undef getservbyport_r
7157#ifdef __cplusplus
7158extern "C"
7159#endif
7160char getservbyport_r ();
7161#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7162choke me
7163#endif
7164
7165int main (void)
7166{
7167return getservbyport_r ();
7168 ;
7169 return 0;
7170}
7171
7172_ACEOF
7173if ac_fn_c_try_link "$LINENO"; then :
7174
7175 tmp_getservbyport_r="yes"
7176
7177else
7178
7179 tmp_getservbyport_r="no"
7180
7181fi
7182rm -f core conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184 if test "$tmp_getservbyport_r" = "yes"; then
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186/* end confdefs.h. */
7187
7188#include <sys/types.h>
7189#include <netdb.h>
7190
7191_ACEOF
7192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7194
7195 tmp_getservbyport_r="proto_declared"
7196
7197else
7198
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h. */
7201
7202#define _REENTRANT
7203#include <sys/types.h>
7204#include <netdb.h>
7205
7206_ACEOF
7207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7209
7210 tmp_getservbyport_r="proto_needs_reentrant"
7211 tmp_need_reentrant="yes"
7212
7213fi
7214rm -f conftest*
7215
7216
7217fi
7218rm -f conftest*
7219
7220 fi
7221
7222 fi
7223
7224 fi
7225 if test "$tmp_need_reentrant" = "yes"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227$as_echo "yes" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231 fi
7232 fi
7233 #
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7235$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7236 if test "$tmp_reentrant_initially_defined" = "yes" ||
7237 test "$tmp_need_reentrant" = "yes"; then
7238
7239
7240$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7241
7242cat >>confdefs.h <<_EOF
7243#ifndef _REENTRANT
7244# define _REENTRANT
7245#endif
7246_EOF
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249$as_echo "yes" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253 fi
7254 #
7255
7256
7257# Check whether --enable-largefile was given.
7258if test "${enable_largefile+set}" = set; then :
7259 enableval=$enable_largefile;
7260fi
7261
7262if test "$enable_largefile" != no; then
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7265$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7266if ${ac_cv_sys_largefile_CC+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 ac_cv_sys_largefile_CC=no
7270 if test "$GCC" != yes; then
7271 ac_save_CC=$CC
7272 while :; do
7273 # IRIX 6.2 and later do not support large files by default,
7274 # so use the C compiler's -n32 option if that helps.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h. */
7277#include <sys/types.h>
7278 /* Check that off_t can represent 2**63 - 1 correctly.
7279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7280 since some C++ compilers masquerading as C compilers
7281 incorrectly reject 9223372036854775807. */
7282#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7284 && LARGE_OFF_T % 2147483647 == 1)
7285 ? 1 : -1];
7286int main (void)
7287{
7288
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 break
7295fi
7296rm -f core conftest.err conftest.$ac_objext
7297 CC="$CC -n32"
7298 if ac_fn_c_try_compile "$LINENO"; then :
7299 ac_cv_sys_largefile_CC=' -n32'; break
7300fi
7301rm -f core conftest.err conftest.$ac_objext
7302 break
7303 done
7304 CC=$ac_save_CC
7305 rm -f conftest.$ac_ext
7306 fi
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7309$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7310 if test "$ac_cv_sys_largefile_CC" != no; then
7311 CC=$CC$ac_cv_sys_largefile_CC
7312 fi
7313
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7315$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7316if ${ac_cv_sys_file_offset_bits+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318else
7319 while :; do
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h. */
7322#include <sys/types.h>
7323 /* Check that off_t can represent 2**63 - 1 correctly.
7324 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7325 since some C++ compilers masquerading as C compilers
7326 incorrectly reject 9223372036854775807. */
7327#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7328 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7329 && LARGE_OFF_T % 2147483647 == 1)
7330 ? 1 : -1];
7331int main (void)
7332{
7333
7334 ;
7335 return 0;
7336}
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339 ac_cv_sys_file_offset_bits=no; break
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h. */
7344#define _FILE_OFFSET_BITS 64
7345#include <sys/types.h>
7346 /* Check that off_t can represent 2**63 - 1 correctly.
7347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7348 since some C++ compilers masquerading as C compilers
7349 incorrectly reject 9223372036854775807. */
7350#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7352 && LARGE_OFF_T % 2147483647 == 1)
7353 ? 1 : -1];
7354int main (void)
7355{
7356
7357 ;
7358 return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_compile "$LINENO"; then :
7362 ac_cv_sys_file_offset_bits=64; break
7363fi
7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 ac_cv_sys_file_offset_bits=unknown
7366 break
7367done
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7370$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7371case $ac_cv_sys_file_offset_bits in #(
7372 no | unknown) ;;
7373 *)
7374cat >>confdefs.h <<_ACEOF
7375#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7376_ACEOF
7377;;
7378esac
7379rm -rf conftest*
7380 if test $ac_cv_sys_file_offset_bits = unknown; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7382$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7383if ${ac_cv_sys_large_files+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385else
7386 while :; do
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h. */
7389#include <sys/types.h>
7390 /* Check that off_t can represent 2**63 - 1 correctly.
7391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7392 since some C++ compilers masquerading as C compilers
7393 incorrectly reject 9223372036854775807. */
7394#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7396 && LARGE_OFF_T % 2147483647 == 1)
7397 ? 1 : -1];
7398int main (void)
7399{
7400
7401 ;
7402 return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_sys_large_files=no; break
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h. */
7411#define _LARGE_FILES 1
7412#include <sys/types.h>
7413 /* Check that off_t can represent 2**63 - 1 correctly.
7414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7415 since some C++ compilers masquerading as C compilers
7416 incorrectly reject 9223372036854775807. */
7417#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7419 && LARGE_OFF_T % 2147483647 == 1)
7420 ? 1 : -1];
7421int main (void)
7422{
7423
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428if ac_fn_c_try_compile "$LINENO"; then :
7429 ac_cv_sys_large_files=1; break
7430fi
7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 ac_cv_sys_large_files=unknown
7433 break
7434done
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7437$as_echo "$ac_cv_sys_large_files" >&6; }
7438case $ac_cv_sys_large_files in #(
7439 no | unknown) ;;
7440 *)
7441cat >>confdefs.h <<_ACEOF
7442#define _LARGE_FILES $ac_cv_sys_large_files
7443_ACEOF
7444;;
7445esac
7446rm -rf conftest*
7447 fi
7448
7449
7450fi
7451
7452
7453case `pwd` in
7454 *\ * | *\ *)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7456$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7457esac
7458
7459
7460
7461macro_version='2.4.6'
7462macro_revision='2.4.6'
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476ltmain=$ac_aux_dir/ltmain.sh
7477
7478# Backslashify metacharacters that are still active within
7479# double-quoted strings.
7480sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7481
7482# Same as above, but do not quote variable references.
7483double_quote_subst='s/\(["`\\]\)/\\\1/g'
7484
7485# Sed substitution to delay expansion of an escaped shell variable in a
7486# double_quote_subst'ed string.
7487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7488
7489# Sed substitution to delay expansion of an escaped single quote.
7490delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7491
7492# Sed substitution to avoid accidental globbing in evaled expressions
7493no_glob_subst='s/\*/\\\*/g'
7494
7495ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7496ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7498
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7500$as_echo_n "checking how to print strings... " >&6; }
7501# Test print first, because it will be a builtin if present.
7502if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7503 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7504 ECHO='print -r --'
7505elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7506 ECHO='printf %s\n'
7507else
7508 # Use this function as a fallback that always works.
7509 func_fallback_echo ()
7510 {
7511 eval 'cat <<_LTECHO_EOF
7512$1
7513_LTECHO_EOF'
7514 }
7515 ECHO='func_fallback_echo'
7516fi
7517
7518# func_echo_all arg...
7519# Invoke $ECHO with all args, space-separated.
7520func_echo_all ()
7521{
7522 $ECHO ""
7523}
7524
7525case $ECHO in
7526 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7527$as_echo "printf" >&6; } ;;
7528 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7529$as_echo "print -r" >&6; } ;;
7530 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7531$as_echo "cat" >&6; } ;;
7532esac
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7548$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7549if ${ac_cv_path_SED+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7553 for ac_i in 1 2 3 4 5 6 7; do
7554 ac_script="$ac_script$as_nl$ac_script"
7555 done
7556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7557 { ac_script=; unset ac_script;}
7558 if test -z "$SED"; then
7559 ac_path_SED_found=false
7560 # Loop through the user's path and test for each of PROGNAME-LIST
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_prog in sed gsed; do
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7569 as_fn_executable_p "$ac_path_SED" || continue
7570# Check for GNU ac_path_SED and select it if it is found.
7571 # Check for GNU $ac_path_SED
7572case `"$ac_path_SED" --version 2>&1` in
7573*GNU*)
7574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7575*)
7576 ac_count=0
7577 $as_echo_n 0123456789 >"conftest.in"
7578 while :
7579 do
7580 cat "conftest.in" "conftest.in" >"conftest.tmp"
7581 mv "conftest.tmp" "conftest.in"
7582 cp "conftest.in" "conftest.nl"
7583 $as_echo '' >> "conftest.nl"
7584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7586 as_fn_arith $ac_count + 1 && ac_count=$as_val
7587 if test $ac_count -gt ${ac_path_SED_max-0}; then
7588 # Best one so far, save it but keep looking for a better one
7589 ac_cv_path_SED="$ac_path_SED"
7590 ac_path_SED_max=$ac_count
7591 fi
7592 # 10*(2^10) chars as input seems more than enough
7593 test $ac_count -gt 10 && break
7594 done
7595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7596esac
7597
7598 $ac_path_SED_found && break 3
7599 done
7600 done
7601 done
7602IFS=$as_save_IFS
7603 if test -z "$ac_cv_path_SED"; then
7604 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7605 fi
7606else
7607 ac_cv_path_SED=$SED
7608fi
7609
7610fi
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7612$as_echo "$ac_cv_path_SED" >&6; }
7613 SED="$ac_cv_path_SED"
7614 rm -f conftest.sed
7615
7616test -z "$SED" && SED=sed
7617Xsed="$SED -e 1s/^X//"
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7630$as_echo_n "checking for fgrep... " >&6; }
7631if ${ac_cv_path_FGREP+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633else
7634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7635 then ac_cv_path_FGREP="$GREP -F"
7636 else
7637 if test -z "$FGREP"; then
7638 ac_path_FGREP_found=false
7639 # Loop through the user's path and test for each of PROGNAME-LIST
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_prog in fgrep; do
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7648 as_fn_executable_p "$ac_path_FGREP" || continue
7649# Check for GNU ac_path_FGREP and select it if it is found.
7650 # Check for GNU $ac_path_FGREP
7651case `"$ac_path_FGREP" --version 2>&1` in
7652*GNU*)
7653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7654*)
7655 ac_count=0
7656 $as_echo_n 0123456789 >"conftest.in"
7657 while :
7658 do
7659 cat "conftest.in" "conftest.in" >"conftest.tmp"
7660 mv "conftest.tmp" "conftest.in"
7661 cp "conftest.in" "conftest.nl"
7662 $as_echo 'FGREP' >> "conftest.nl"
7663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7665 as_fn_arith $ac_count + 1 && ac_count=$as_val
7666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7667 # Best one so far, save it but keep looking for a better one
7668 ac_cv_path_FGREP="$ac_path_FGREP"
7669 ac_path_FGREP_max=$ac_count
7670 fi
7671 # 10*(2^10) chars as input seems more than enough
7672 test $ac_count -gt 10 && break
7673 done
7674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7675esac
7676
7677 $ac_path_FGREP_found && break 3
7678 done
7679 done
7680 done
7681IFS=$as_save_IFS
7682 if test -z "$ac_cv_path_FGREP"; then
7683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7684 fi
7685else
7686 ac_cv_path_FGREP=$FGREP
7687fi
7688
7689 fi
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7692$as_echo "$ac_cv_path_FGREP" >&6; }
7693 FGREP="$ac_cv_path_FGREP"
7694
7695
7696test -z "$GREP" && GREP=grep
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716# Check whether --with-gnu-ld was given.
7717if test "${with_gnu_ld+set}" = set; then :
7718 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7719else
7720 with_gnu_ld=no
7721fi
7722
7723ac_prog=ld
7724if test yes = "$GCC"; then
7725 # Check if gcc -print-prog-name=ld gives a path.
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7727$as_echo_n "checking for ld used by $CC... " >&6; }
7728 case $host in
7729 *-*-mingw*)
7730 # gcc leaves a trailing carriage return, which upsets mingw
7731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7732 *)
7733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7734 esac
7735 case $ac_prog in
7736 # Accept absolute paths.
7737 [\\/]* | ?:[\\/]*)
7738 re_direlt='/[^/][^/]*/\.\./'
7739 # Canonicalize the pathname of ld
7740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7743 done
7744 test -z "$LD" && LD=$ac_prog
7745 ;;
7746 "")
7747 # If it fails, then pretend we aren't using GCC.
7748 ac_prog=ld
7749 ;;
7750 *)
7751 # If it is relative, then search for the first ld in PATH.
7752 with_gnu_ld=unknown
7753 ;;
7754 esac
7755elif test yes = "$with_gnu_ld"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7757$as_echo_n "checking for GNU ld... " >&6; }
7758else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7760$as_echo_n "checking for non-GNU ld... " >&6; }
7761fi
7762if ${lt_cv_path_LD+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764else
7765 if test -z "$LD"; then
7766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7767 for ac_dir in $PATH; do
7768 IFS=$lt_save_ifs
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7771 lt_cv_path_LD=$ac_dir/$ac_prog
7772 # Check to see if the program is GNU ld. I'd rather use --version,
7773 # but apparently some variants of GNU ld only accept -v.
7774 # Break only if it was the GNU/non-GNU ld that we prefer.
7775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7776 *GNU* | *'with BFD'*)
7777 test no != "$with_gnu_ld" && break
7778 ;;
7779 *)
7780 test yes != "$with_gnu_ld" && break
7781 ;;
7782 esac
7783 fi
7784 done
7785 IFS=$lt_save_ifs
7786else
7787 lt_cv_path_LD=$LD # Let the user override the test with a path.
7788fi
7789fi
7790
7791LD=$lt_cv_path_LD
7792if test -n "$LD"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7794$as_echo "$LD" >&6; }
7795else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
7798fi
7799test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7801$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7802if ${lt_cv_prog_gnu_ld+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804else
7805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7806case `$LD -v 2>&1 </dev/null` in
7807*GNU* | *'with BFD'*)
7808 lt_cv_prog_gnu_ld=yes
7809 ;;
7810*)
7811 lt_cv_prog_gnu_ld=no
7812 ;;
7813esac
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7816$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7817with_gnu_ld=$lt_cv_prog_gnu_ld
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7828$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7829if ${lt_cv_path_NM+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831else
7832 if test -n "$NM"; then
7833 # Let the user override the test.
7834 lt_cv_path_NM=$NM
7835else
7836 lt_nm_to_check=${ac_tool_prefix}nm
7837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7838 lt_nm_to_check="$lt_nm_to_check nm"
7839 fi
7840 for lt_tmp_nm in $lt_nm_to_check; do
7841 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7843 IFS=$lt_save_ifs
7844 test -z "$ac_dir" && ac_dir=.
7845 tmp_nm=$ac_dir/$lt_tmp_nm
7846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7847 # Check to see if the nm accepts a BSD-compat flag.
7848 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7849 # nm: unknown option "B" ignored
7850 # Tru64's nm complains that /dev/null is an invalid object file
7851 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7852 case $build_os in
7853 mingw*) lt_bad_file=conftest.nm/nofile ;;
7854 *) lt_bad_file=/dev/null ;;
7855 esac
7856 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7857 *$lt_bad_file* | *'Invalid file or object type'*)
7858 lt_cv_path_NM="$tmp_nm -B"
7859 break 2
7860 ;;
7861 *)
7862 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7863 */dev/null*)
7864 lt_cv_path_NM="$tmp_nm -p"
7865 break 2
7866 ;;
7867 *)
7868 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7869 continue # so that we can try to find one that supports BSD flags
7870 ;;
7871 esac
7872 ;;
7873 esac
7874 fi
7875 done
7876 IFS=$lt_save_ifs
7877 done
7878 : ${lt_cv_path_NM=no}
7879fi
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7882$as_echo "$lt_cv_path_NM" >&6; }
7883if test no != "$lt_cv_path_NM"; then
7884 NM=$lt_cv_path_NM
7885else
7886 # Didn't find any BSD compatible name lister, look for dumpbin.
7887 if test -n "$DUMPBIN"; then :
7888 # Let the user override the test.
7889 else
7890 if test -n "$ac_tool_prefix"; then
7891 for ac_prog in dumpbin "link -dump"
7892 do
7893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7894set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
7897if ${ac_cv_prog_DUMPBIN+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 if test -n "$DUMPBIN"; then
7901 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914done
7915 done
7916IFS=$as_save_IFS
7917
7918fi
7919fi
7920DUMPBIN=$ac_cv_prog_DUMPBIN
7921if test -n "$DUMPBIN"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7923$as_echo "$DUMPBIN" >&6; }
7924else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
7927fi
7928
7929
7930 test -n "$DUMPBIN" && break
7931 done
7932fi
7933if test -z "$DUMPBIN"; then
7934 ac_ct_DUMPBIN=$DUMPBIN
7935 for ac_prog in dumpbin "link -dump"
7936do
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938set dummy $ac_prog; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943else
7944 if test -n "$ac_ct_DUMPBIN"; then
7945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
7959 done
7960IFS=$as_save_IFS
7961
7962fi
7963fi
7964ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7965if test -n "$ac_ct_DUMPBIN"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7967$as_echo "$ac_ct_DUMPBIN" >&6; }
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
7972
7973
7974 test -n "$ac_ct_DUMPBIN" && break
7975done
7976
7977 if test "x$ac_ct_DUMPBIN" = x; then
7978 DUMPBIN=":"
7979 else
7980 case $cross_compiling:$ac_tool_warned in
7981yes:)
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984ac_tool_warned=yes ;;
7985esac
7986 DUMPBIN=$ac_ct_DUMPBIN
7987 fi
7988fi
7989
7990 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7991 *COFF*)
7992 DUMPBIN="$DUMPBIN -symbols -headers"
7993 ;;
7994 *)
7995 DUMPBIN=:
7996 ;;
7997 esac
7998 fi
7999
8000 if test : != "$DUMPBIN"; then
8001 NM=$DUMPBIN
8002 fi
8003fi
8004test -z "$NM" && NM=nm
8005
8006
8007
8008
8009
8010
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8012$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8013if ${lt_cv_nm_interface+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015else
8016 lt_cv_nm_interface="BSD nm"
8017 echo "int some_variable = 0;" > conftest.$ac_ext
8018 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8019 (eval "$ac_compile" 2>conftest.err)
8020 cat conftest.err >&5
8021 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8022 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8023 cat conftest.err >&5
8024 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8025 cat conftest.out >&5
8026 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8027 lt_cv_nm_interface="MS dumpbin"
8028 fi
8029 rm -f conftest*
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8032$as_echo "$lt_cv_nm_interface" >&6; }
8033
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8035$as_echo_n "checking whether ln -s works... " >&6; }
8036LN_S=$as_ln_s
8037if test "$LN_S" = "ln -s"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8039$as_echo "yes" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8042$as_echo "no, using $LN_S" >&6; }
8043fi
8044
8045# find the maximum length of command line arguments
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8047$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8048if ${lt_cv_sys_max_cmd_len+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 i=0
8052 teststring=ABCD
8053
8054 case $build_os in
8055 msdosdjgpp*)
8056 # On DJGPP, this test can blow up pretty badly due to problems in libc
8057 # (any single argument exceeding 2000 bytes causes a buffer overrun
8058 # during glob expansion). Even if it were fixed, the result of this
8059 # check would be larger than it should be.
8060 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8061 ;;
8062
8063 gnu*)
8064 # Under GNU Hurd, this test is not required because there is
8065 # no limit to the length of command line arguments.
8066 # Libtool will interpret -1 as no limit whatsoever
8067 lt_cv_sys_max_cmd_len=-1;
8068 ;;
8069
8070 cygwin* | mingw* | cegcc*)
8071 # On Win9x/ME, this test blows up -- it succeeds, but takes
8072 # about 5 minutes as the teststring grows exponentially.
8073 # Worse, since 9x/ME are not pre-emptively multitasking,
8074 # you end up with a "frozen" computer, even though with patience
8075 # the test eventually succeeds (with a max line length of 256k).
8076 # Instead, let's just punt: use the minimum linelength reported by
8077 # all of the supported platforms: 8192 (on NT/2K/XP).
8078 lt_cv_sys_max_cmd_len=8192;
8079 ;;
8080
8081 mint*)
8082 # On MiNT this can take a long time and run out of memory.
8083 lt_cv_sys_max_cmd_len=8192;
8084 ;;
8085
8086 amigaos*)
8087 # On AmigaOS with pdksh, this test takes hours, literally.
8088 # So we just punt and use a minimum line length of 8192.
8089 lt_cv_sys_max_cmd_len=8192;
8090 ;;
8091
8092 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8093 # This has been around since 386BSD, at least. Likely further.
8094 if test -x /sbin/sysctl; then
8095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8096 elif test -x /usr/sbin/sysctl; then
8097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8098 else
8099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8100 fi
8101 # And add a safety zone
8102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8104 ;;
8105
8106 interix*)
8107 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8108 lt_cv_sys_max_cmd_len=196608
8109 ;;
8110
8111 os2*)
8112 # The test takes a long time on OS/2.
8113 lt_cv_sys_max_cmd_len=8192
8114 ;;
8115
8116 osf*)
8117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8119 # nice to cause kernel panics so lets avoid the loop below.
8120 # First set a reasonable default.
8121 lt_cv_sys_max_cmd_len=16384
8122 #
8123 if test -x /sbin/sysconfig; then
8124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8125 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8126 esac
8127 fi
8128 ;;
8129 sco3.2v5*)
8130 lt_cv_sys_max_cmd_len=102400
8131 ;;
8132 sysv5* | sco5v6* | sysv4.2uw2*)
8133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8134 if test -n "$kargmax"; then
8135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8136 else
8137 lt_cv_sys_max_cmd_len=32768
8138 fi
8139 ;;
8140 *)
8141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8142 if test -n "$lt_cv_sys_max_cmd_len" && \
8143 test undefined != "$lt_cv_sys_max_cmd_len"; then
8144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8146 else
8147 # Make teststring a little bigger before we do anything with it.
8148 # a 1K string should be a reasonable start.
8149 for i in 1 2 3 4 5 6 7 8; do
8150 teststring=$teststring$teststring
8151 done
8152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8153 # If test is not a shell built-in, we'll probably end up computing a
8154 # maximum length that is only half of the actual maximum length, but
8155 # we can't tell.
8156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8158 test 17 != "$i" # 1/2 MB should be enough
8159 do
8160 i=`expr $i + 1`
8161 teststring=$teststring$teststring
8162 done
8163 # Only check the string length outside the loop.
8164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8165 teststring=
8166 # Add a significant safety factor because C++ compilers can tack on
8167 # massive amounts of additional arguments before passing them to the
8168 # linker. It appears as though 1/2 is a usable value.
8169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8170 fi
8171 ;;
8172 esac
8173
8174fi
8175
8176if test -n "$lt_cv_sys_max_cmd_len"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8178$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8179else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8181$as_echo "none" >&6; }
8182fi
8183max_cmd_len=$lt_cv_sys_max_cmd_len
8184
8185
8186
8187
8188
8189
8190: ${CP="cp -f"}
8191: ${MV="mv -f"}
8192: ${RM="rm -f"}
8193
8194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8195 lt_unset=unset
8196else
8197 lt_unset=false
8198fi
8199
8200
8201
8202
8203
8204# test EBCDIC or ASCII
8205case `echo X|tr X '\101'` in
8206 A) # ASCII based system
8207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8208 lt_SP2NL='tr \040 \012'
8209 lt_NL2SP='tr \015\012 \040\040'
8210 ;;
8211 *) # EBCDIC based system
8212 lt_SP2NL='tr \100 \n'
8213 lt_NL2SP='tr \r\n \100\100'
8214 ;;
8215esac
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8226$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8227if ${lt_cv_to_host_file_cmd+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229else
8230 case $host in
8231 *-*-mingw* )
8232 case $build in
8233 *-*-mingw* ) # actually msys
8234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8235 ;;
8236 *-*-cygwin* )
8237 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8238 ;;
8239 * ) # otherwise, assume *nix
8240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8241 ;;
8242 esac
8243 ;;
8244 *-*-cygwin* )
8245 case $build in
8246 *-*-mingw* ) # actually msys
8247 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8248 ;;
8249 *-*-cygwin* )
8250 lt_cv_to_host_file_cmd=func_convert_file_noop
8251 ;;
8252 * ) # otherwise, assume *nix
8253 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8254 ;;
8255 esac
8256 ;;
8257 * ) # unhandled hosts (and "normal" native builds)
8258 lt_cv_to_host_file_cmd=func_convert_file_noop
8259 ;;
8260esac
8261
8262fi
8263
8264to_host_file_cmd=$lt_cv_to_host_file_cmd
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8266$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8267
8268
8269
8270
8271
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8273$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8274if ${lt_cv_to_tool_file_cmd+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276else
8277 #assume ordinary cross tools, or native build.
8278lt_cv_to_tool_file_cmd=func_convert_file_noop
8279case $host in
8280 *-*-mingw* )
8281 case $build in
8282 *-*-mingw* ) # actually msys
8283 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8284 ;;
8285 esac
8286 ;;
8287esac
8288
8289fi
8290
8291to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8293$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8294
8295
8296
8297
8298
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8300$as_echo_n "checking for $LD option to reload object files... " >&6; }
8301if ${lt_cv_ld_reload_flag+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303else
8304 lt_cv_ld_reload_flag='-r'
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8307$as_echo "$lt_cv_ld_reload_flag" >&6; }
8308reload_flag=$lt_cv_ld_reload_flag
8309case $reload_flag in
8310"" | " "*) ;;
8311*) reload_flag=" $reload_flag" ;;
8312esac
8313reload_cmds='$LD$reload_flag -o $output$reload_objs'
8314case $host_os in
8315 cygwin* | mingw* | pw32* | cegcc*)
8316 if test yes != "$GCC"; then
8317 reload_cmds=false
8318 fi
8319 ;;
8320 darwin*)
8321 if test yes = "$GCC"; then
8322 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8323 else
8324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8325 fi
8326 ;;
8327esac
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337if test -n "$ac_tool_prefix"; then
8338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8339set dummy ${ac_tool_prefix}objdump; ac_word=$2
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341$as_echo_n "checking for $ac_word... " >&6; }
8342if ${ac_cv_prog_OBJDUMP+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344else
8345 if test -n "$OBJDUMP"; then
8346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8347else
8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359done
8360 done
8361IFS=$as_save_IFS
8362
8363fi
8364fi
8365OBJDUMP=$ac_cv_prog_OBJDUMP
8366if test -n "$OBJDUMP"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8368$as_echo "$OBJDUMP" >&6; }
8369else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371$as_echo "no" >&6; }
8372fi
8373
8374
8375fi
8376if test -z "$ac_cv_prog_OBJDUMP"; then
8377 ac_ct_OBJDUMP=$OBJDUMP
8378 # Extract the first word of "objdump", so it can be a program name with args.
8379set dummy objdump; ac_word=$2
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381$as_echo_n "checking for $ac_word... " >&6; }
8382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384else
8385 if test -n "$ac_ct_OBJDUMP"; then
8386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8387else
8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8398 fi
8399done
8400 done
8401IFS=$as_save_IFS
8402
8403fi
8404fi
8405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8406if test -n "$ac_ct_OBJDUMP"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8408$as_echo "$ac_ct_OBJDUMP" >&6; }
8409else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411$as_echo "no" >&6; }
8412fi
8413
8414 if test "x$ac_ct_OBJDUMP" = x; then
8415 OBJDUMP="false"
8416 else
8417 case $cross_compiling:$ac_tool_warned in
8418yes:)
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421ac_tool_warned=yes ;;
8422esac
8423 OBJDUMP=$ac_ct_OBJDUMP
8424 fi
8425else
8426 OBJDUMP="$ac_cv_prog_OBJDUMP"
8427fi
8428
8429test -z "$OBJDUMP" && OBJDUMP=objdump
8430
8431
8432
8433
8434
8435
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8437$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8438if ${lt_cv_deplibs_check_method+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440else
8441 lt_cv_file_magic_cmd='$MAGIC_CMD'
8442lt_cv_file_magic_test_file=
8443lt_cv_deplibs_check_method='unknown'
8444# Need to set the preceding variable on all platforms that support
8445# interlibrary dependencies.
8446# 'none' -- dependencies not supported.
8447# 'unknown' -- same as none, but documents that we really don't know.
8448# 'pass_all' -- all dependencies passed with no checks.
8449# 'test_compile' -- check by making test program.
8450# 'file_magic [[regex]]' -- check by looking for files in library path
8451# that responds to the $file_magic_cmd with a given extended regex.
8452# If you have 'file' or equivalent on your system and you're not sure
8453# whether 'pass_all' will *always* work, you probably want this one.
8454
8455case $host_os in
8456aix[4-9]*)
8457 lt_cv_deplibs_check_method=pass_all
8458 ;;
8459
8460beos*)
8461 lt_cv_deplibs_check_method=pass_all
8462 ;;
8463
8464bsdi[45]*)
8465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8466 lt_cv_file_magic_cmd='/usr/bin/file -L'
8467 lt_cv_file_magic_test_file=/shlib/libc.so
8468 ;;
8469
8470cygwin*)
8471 # func_win32_libid is a shell function defined in ltmain.sh
8472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8473 lt_cv_file_magic_cmd='func_win32_libid'
8474 ;;
8475
8476mingw* | pw32*)
8477 # Base MSYS/MinGW do not provide the 'file' command needed by
8478 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8479 # unless we find 'file', for example because we are cross-compiling.
8480 if ( file / ) >/dev/null 2>&1; then
8481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8482 lt_cv_file_magic_cmd='func_win32_libid'
8483 else
8484 # Keep this pattern in sync with the one in func_win32_libid.
8485 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8486 lt_cv_file_magic_cmd='$OBJDUMP -f'
8487 fi
8488 ;;
8489
8490cegcc*)
8491 # use the weaker test based on 'objdump'. See mingw*.
8492 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8493 lt_cv_file_magic_cmd='$OBJDUMP -f'
8494 ;;
8495
8496darwin* | rhapsody*)
8497 lt_cv_deplibs_check_method=pass_all
8498 ;;
8499
8500freebsd* | dragonfly*)
8501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8502 case $host_cpu in
8503 i*86 )
8504 # Not sure whether the presence of OpenBSD here was a mistake.
8505 # Let's accept both of them until this is cleared up.
8506 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8507 lt_cv_file_magic_cmd=/usr/bin/file
8508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8509 ;;
8510 esac
8511 else
8512 lt_cv_deplibs_check_method=pass_all
8513 fi
8514 ;;
8515
8516haiku*)
8517 lt_cv_deplibs_check_method=pass_all
8518 ;;
8519
8520hpux10.20* | hpux11*)
8521 lt_cv_file_magic_cmd=/usr/bin/file
8522 case $host_cpu in
8523 ia64*)
8524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8526 ;;
8527 hppa*64*)
8528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8530 ;;
8531 *)
8532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8534 ;;
8535 esac
8536 ;;
8537
8538interix[3-9]*)
8539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8541 ;;
8542
8543irix5* | irix6* | nonstopux*)
8544 case $LD in
8545 *-32|*"-32 ") libmagic=32-bit;;
8546 *-n32|*"-n32 ") libmagic=N32;;
8547 *-64|*"-64 ") libmagic=64-bit;;
8548 *) libmagic=never-match;;
8549 esac
8550 lt_cv_deplibs_check_method=pass_all
8551 ;;
8552
8553# This must be glibc/ELF.
8554linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8555 lt_cv_deplibs_check_method=pass_all
8556 ;;
8557
8558netbsd* | netbsdelf*-gnu)
8559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8561 else
8562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8563 fi
8564 ;;
8565
8566newos6*)
8567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8568 lt_cv_file_magic_cmd=/usr/bin/file
8569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8570 ;;
8571
8572*nto* | *qnx*)
8573 lt_cv_deplibs_check_method=pass_all
8574 ;;
8575
8576openbsd* | bitrig*)
8577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8579 else
8580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8581 fi
8582 ;;
8583
8584osf3* | osf4* | osf5*)
8585 lt_cv_deplibs_check_method=pass_all
8586 ;;
8587
8588rdos*)
8589 lt_cv_deplibs_check_method=pass_all
8590 ;;
8591
8592solaris*)
8593 lt_cv_deplibs_check_method=pass_all
8594 ;;
8595
8596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8597 lt_cv_deplibs_check_method=pass_all
8598 ;;
8599
8600sysv4 | sysv4.3*)
8601 case $host_vendor in
8602 motorola)
8603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8605 ;;
8606 ncr)
8607 lt_cv_deplibs_check_method=pass_all
8608 ;;
8609 sequent)
8610 lt_cv_file_magic_cmd='/bin/file'
8611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8612 ;;
8613 sni)
8614 lt_cv_file_magic_cmd='/bin/file'
8615 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8616 lt_cv_file_magic_test_file=/lib/libc.so
8617 ;;
8618 siemens)
8619 lt_cv_deplibs_check_method=pass_all
8620 ;;
8621 pc)
8622 lt_cv_deplibs_check_method=pass_all
8623 ;;
8624 esac
8625 ;;
8626
8627tpf*)
8628 lt_cv_deplibs_check_method=pass_all
8629 ;;
8630os2*)
8631 lt_cv_deplibs_check_method=pass_all
8632 ;;
8633esac
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8637$as_echo "$lt_cv_deplibs_check_method" >&6; }
8638
8639file_magic_glob=
8640want_nocaseglob=no
8641if test "$build" = "$host"; then
8642 case $host_os in
8643 mingw* | pw32*)
8644 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8645 want_nocaseglob=yes
8646 else
8647 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8648 fi
8649 ;;
8650 esac
8651fi
8652
8653file_magic_cmd=$lt_cv_file_magic_cmd
8654deplibs_check_method=$lt_cv_deplibs_check_method
8655test -z "$deplibs_check_method" && deplibs_check_method=unknown
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8680set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682$as_echo_n "checking for $ac_word... " >&6; }
8683if ${ac_cv_prog_DLLTOOL+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685else
8686 if test -n "$DLLTOOL"; then
8687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8688else
8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690for as_dir in $PATH
8691do
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8699 fi
8700done
8701 done
8702IFS=$as_save_IFS
8703
8704fi
8705fi
8706DLLTOOL=$ac_cv_prog_DLLTOOL
8707if test -n "$DLLTOOL"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8709$as_echo "$DLLTOOL" >&6; }
8710else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
8713fi
8714
8715
8716fi
8717if test -z "$ac_cv_prog_DLLTOOL"; then
8718 ac_ct_DLLTOOL=$DLLTOOL
8719 # Extract the first word of "dlltool", so it can be a program name with args.
8720set dummy dlltool; ac_word=$2
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722$as_echo_n "checking for $ac_word... " >&6; }
8723if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725else
8726 if test -n "$ac_ct_DLLTOOL"; then
8727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8728else
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8739 fi
8740done
8741 done
8742IFS=$as_save_IFS
8743
8744fi
8745fi
8746ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8747if test -n "$ac_ct_DLLTOOL"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8749$as_echo "$ac_ct_DLLTOOL" >&6; }
8750else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
8753fi
8754
8755 if test "x$ac_ct_DLLTOOL" = x; then
8756 DLLTOOL="false"
8757 else
8758 case $cross_compiling:$ac_tool_warned in
8759yes:)
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762ac_tool_warned=yes ;;
8763esac
8764 DLLTOOL=$ac_ct_DLLTOOL
8765 fi
8766else
8767 DLLTOOL="$ac_cv_prog_DLLTOOL"
8768fi
8769
8770test -z "$DLLTOOL" && DLLTOOL=dlltool
8771
8772
8773
8774
8775
8776
8777
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8779$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8780if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782else
8783 lt_cv_sharedlib_from_linklib_cmd='unknown'
8784
8785case $host_os in
8786cygwin* | mingw* | pw32* | cegcc*)
8787 # two different shell functions defined in ltmain.sh;
8788 # decide which one to use based on capabilities of $DLLTOOL
8789 case `$DLLTOOL --help 2>&1` in
8790 *--identify-strict*)
8791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8792 ;;
8793 *)
8794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8795 ;;
8796 esac
8797 ;;
8798*)
8799 # fallback: assume linklib IS sharedlib
8800 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8801 ;;
8802esac
8803
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8806$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8807sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8808test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8809
8810
8811
8812
8813
8814
8815
8816if test -n "$ac_tool_prefix"; then
8817 for ac_prog in ar
8818 do
8819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_AR+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 if test -n "$AR"; then
8827 ac_cv_prog_AR="$AR" # 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_AR="$ac_tool_prefix$ac_prog"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840done
8841 done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846AR=$ac_cv_prog_AR
8847if test -n "$AR"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8849$as_echo "$AR" >&6; }
8850else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855
8856 test -n "$AR" && break
8857 done
8858fi
8859if test -z "$AR"; then
8860 ac_ct_AR=$AR
8861 for ac_prog in ar
8862do
8863 # Extract the first word of "$ac_prog", so it can be a program name with args.
8864set dummy $ac_prog; ac_word=$2
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if ${ac_cv_prog_ac_ct_AR+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869else
8870 if test -n "$ac_ct_AR"; then
8871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8872else
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_ac_ct_AR="$ac_prog"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8883 fi
8884done
8885 done
8886IFS=$as_save_IFS
8887
8888fi
8889fi
8890ac_ct_AR=$ac_cv_prog_ac_ct_AR
8891if test -n "$ac_ct_AR"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8893$as_echo "$ac_ct_AR" >&6; }
8894else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900 test -n "$ac_ct_AR" && break
8901done
8902
8903 if test "x$ac_ct_AR" = x; then
8904 AR="false"
8905 else
8906 case $cross_compiling:$ac_tool_warned in
8907yes:)
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8910ac_tool_warned=yes ;;
8911esac
8912 AR=$ac_ct_AR
8913 fi
8914fi
8915
8916: ${AR=ar}
8917: ${AR_FLAGS=cru}
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8930$as_echo_n "checking for archiver @FILE support... " >&6; }
8931if ${lt_cv_ar_at_file+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933else
8934 lt_cv_ar_at_file=no
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h. */
8937
8938int main (void)
8939{
8940
8941 ;
8942 return 0;
8943}
8944_ACEOF
8945if ac_fn_c_try_compile "$LINENO"; then :
8946 echo conftest.$ac_objext > conftest.lst
8947 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8949 (eval $lt_ar_try) 2>&5
8950 ac_status=$?
8951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8952 test $ac_status = 0; }
8953 if test 0 -eq "$ac_status"; then
8954 # Ensure the archiver fails upon bogus file names.
8955 rm -f conftest.$ac_objext libconftest.a
8956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8957 (eval $lt_ar_try) 2>&5
8958 ac_status=$?
8959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960 test $ac_status = 0; }
8961 if test 0 -ne "$ac_status"; then
8962 lt_cv_ar_at_file=@
8963 fi
8964 fi
8965 rm -f conftest.* libconftest.a
8966
8967fi
8968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969
8970fi
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8972$as_echo "$lt_cv_ar_at_file" >&6; }
8973
8974if test no = "$lt_cv_ar_at_file"; then
8975 archiver_list_spec=
8976else
8977 archiver_list_spec=$lt_cv_ar_at_file
8978fi
8979
8980
8981
8982
8983
8984
8985
8986if test -n "$ac_tool_prefix"; then
8987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8988set dummy ${ac_tool_prefix}strip; ac_word=$2
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990$as_echo_n "checking for $ac_word... " >&6; }
8991if ${ac_cv_prog_STRIP+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993else
8994 if test -n "$STRIP"; then
8995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8996else
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009 done
9010IFS=$as_save_IFS
9011
9012fi
9013fi
9014STRIP=$ac_cv_prog_STRIP
9015if test -n "$STRIP"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9017$as_echo "$STRIP" >&6; }
9018else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020$as_echo "no" >&6; }
9021fi
9022
9023
9024fi
9025if test -z "$ac_cv_prog_STRIP"; then
9026 ac_ct_STRIP=$STRIP
9027 # Extract the first word of "strip", so it can be a program name with args.
9028set dummy strip; ac_word=$2
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030$as_echo_n "checking for $ac_word... " >&6; }
9031if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033else
9034 if test -n "$ac_ct_STRIP"; then
9035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9036else
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044 ac_cv_prog_ac_ct_STRIP="strip"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9047 fi
9048done
9049 done
9050IFS=$as_save_IFS
9051
9052fi
9053fi
9054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9055if test -n "$ac_ct_STRIP"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9057$as_echo "$ac_ct_STRIP" >&6; }
9058else
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061fi
9062
9063 if test "x$ac_ct_STRIP" = x; then
9064 STRIP=":"
9065 else
9066 case $cross_compiling:$ac_tool_warned in
9067yes:)
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070ac_tool_warned=yes ;;
9071esac
9072 STRIP=$ac_ct_STRIP
9073 fi
9074else
9075 STRIP="$ac_cv_prog_STRIP"
9076fi
9077
9078test -z "$STRIP" && STRIP=:
9079
9080
9081
9082
9083
9084
9085if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9087set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089$as_echo_n "checking for $ac_word... " >&6; }
9090if ${ac_cv_prog_RANLIB+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092else
9093 if test -n "$RANLIB"; then
9094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107done
9108 done
9109IFS=$as_save_IFS
9110
9111fi
9112fi
9113RANLIB=$ac_cv_prog_RANLIB
9114if test -n "$RANLIB"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9116$as_echo "$RANLIB" >&6; }
9117else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120fi
9121
9122
9123fi
9124if test -z "$ac_cv_prog_RANLIB"; then
9125 ac_ct_RANLIB=$RANLIB
9126 # Extract the first word of "ranlib", so it can be a program name with args.
9127set dummy ranlib; ac_word=$2
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132else
9133 if test -n "$ac_ct_RANLIB"; then
9134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_prog_ac_ct_RANLIB="ranlib"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148 done
9149IFS=$as_save_IFS
9150
9151fi
9152fi
9153ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9154if test -n "$ac_ct_RANLIB"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9156$as_echo "$ac_ct_RANLIB" >&6; }
9157else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160fi
9161
9162 if test "x$ac_ct_RANLIB" = x; then
9163 RANLIB=":"
9164 else
9165 case $cross_compiling:$ac_tool_warned in
9166yes:)
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169ac_tool_warned=yes ;;
9170esac
9171 RANLIB=$ac_ct_RANLIB
9172 fi
9173else
9174 RANLIB="$ac_cv_prog_RANLIB"
9175fi
9176
9177test -z "$RANLIB" && RANLIB=:
9178
9179
9180
9181
9182
9183
9184# Determine commands to create old-style static archives.
9185old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9186old_postinstall_cmds='chmod 644 $oldlib'
9187old_postuninstall_cmds=
9188
9189if test -n "$RANLIB"; then
9190 case $host_os in
9191 bitrig* | openbsd*)
9192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9193 ;;
9194 *)
9195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9196 ;;
9197 esac
9198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9199fi
9200
9201case $host_os in
9202 darwin*)
9203 lock_old_archive_extraction=yes ;;
9204 *)
9205 lock_old_archive_extraction=no ;;
9206esac
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246# If no C compiler was specified, use CC.
9247LTCC=${LTCC-"$CC"}
9248
9249# If no C compiler flags were specified, use CFLAGS.
9250LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9251
9252# Allow CC to be a program name with arguments.
9253compiler=$CC
9254
9255
9256# Check for command to grab the raw symbol name followed by C symbol from nm.
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9258$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9259if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261else
9262
9263# These are sane defaults that work on at least a few old systems.
9264# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9265
9266# Character class describing NM global symbol codes.
9267symcode='[BCDEGRST]'
9268
9269# Regexp to match symbols that can be accessed directly from C.
9270sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9271
9272# Define system-specific variables.
9273case $host_os in
9274aix*)
9275 symcode='[BCDT]'
9276 ;;
9277cygwin* | mingw* | pw32* | cegcc*)
9278 symcode='[ABCDGISTW]'
9279 ;;
9280hpux*)
9281 if test ia64 = "$host_cpu"; then
9282 symcode='[ABCDEGRST]'
9283 fi
9284 ;;
9285irix* | nonstopux*)
9286 symcode='[BCDEGRST]'
9287 ;;
9288osf*)
9289 symcode='[BCDEGQRST]'
9290 ;;
9291solaris*)
9292 symcode='[BDRT]'
9293 ;;
9294sco3.2v5*)
9295 symcode='[DT]'
9296 ;;
9297sysv4.2uw2*)
9298 symcode='[DT]'
9299 ;;
9300sysv5* | sco5v6* | unixware* | OpenUNIX*)
9301 symcode='[ABDT]'
9302 ;;
9303sysv4)
9304 symcode='[DFNSTU]'
9305 ;;
9306esac
9307
9308# If we're using GNU nm, then use its standard symbol codes.
9309case `$NM -V 2>&1` in
9310*GNU* | *'with BFD'*)
9311 symcode='[ABCDGIRSTW]' ;;
9312esac
9313
9314if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9315 # Gets list of data symbols to import.
9316 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9317 # Adjust the below global symbol transforms to fixup imported variables.
9318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9320 lt_c_name_lib_hook="\
9321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9323else
9324 # Disable hooks by default.
9325 lt_cv_sys_global_symbol_to_import=
9326 lt_cdecl_hook=
9327 lt_c_name_hook=
9328 lt_c_name_lib_hook=
9329fi
9330
9331# Transform an extracted symbol line into a proper C declaration.
9332# Some systems (esp. on ia64) link data and code symbols differently,
9333# so use this general approach.
9334lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9335$lt_cdecl_hook\
9336" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9337" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9338
9339# Transform an extracted symbol line into symbol name and symbol address
9340lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9341$lt_c_name_hook\
9342" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9343" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9344
9345# Transform an extracted symbol line into symbol name with lib prefix and
9346# symbol address.
9347lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9348$lt_c_name_lib_hook\
9349" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9350" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9351" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9352
9353# Handle CRLF in mingw tool chain
9354opt_cr=
9355case $build_os in
9356mingw*)
9357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9358 ;;
9359esac
9360
9361# Try without a prefix underscore, then with it.
9362for ac_symprfx in "" "_"; do
9363
9364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365 symxfrm="\\1 $ac_symprfx\\2 \\2"
9366
9367 # Write the raw and C identifiers.
9368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9369 # Fake it for dumpbin and say T for any non-static function,
9370 # D for any global variable and I for any imported variable.
9371 # Also find C++ and __fastcall symbols from MSVC++,
9372 # which start with @ or ?.
9373 lt_cv_sys_global_symbol_pipe="$AWK '"\
9374" {last_section=section; section=\$ 3};"\
9375" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9376" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9377" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9378" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9379" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9380" \$ 0!~/External *\|/{next};"\
9381" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9382" {if(hide[section]) next};"\
9383" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9384" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9385" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9386" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9387" ' prfx=^$ac_symprfx"
9388 else
9389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9390 fi
9391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9392
9393 # Check to see that the pipe works correctly.
9394 pipe_works=no
9395
9396 rm -f conftest*
9397 cat > conftest.$ac_ext <<_LT_EOF
9398#ifdef __cplusplus
9399extern "C" {
9400#endif
9401char nm_test_var;
9402void nm_test_func(void);
9403void nm_test_func(void){}
9404#ifdef __cplusplus
9405}
9406#endif
9407int main(){nm_test_var='a';nm_test_func();return(0);}
9408_LT_EOF
9409
9410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9411 (eval $ac_compile) 2>&5
9412 ac_status=$?
9413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414 test $ac_status = 0; }; then
9415 # Now try to grab the symbols.
9416 nlist=conftest.nm
9417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9419 ac_status=$?
9420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9421 test $ac_status = 0; } && test -s "$nlist"; then
9422 # Try sorting and uniquifying the output.
9423 if sort "$nlist" | uniq > "$nlist"T; then
9424 mv -f "$nlist"T "$nlist"
9425 else
9426 rm -f "$nlist"T
9427 fi
9428
9429 # Make sure that we snagged all the symbols we need.
9430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9432 cat <<_LT_EOF > conftest.$ac_ext
9433/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9434#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9435/* DATA imports from DLLs on WIN32 can't be const, because runtime
9436 relocations are performed -- see ld's documentation on pseudo-relocs. */
9437# define LT_DLSYM_CONST
9438#elif defined __osf__
9439/* This system does not cope well with relocations in const data. */
9440# define LT_DLSYM_CONST
9441#else
9442# define LT_DLSYM_CONST const
9443#endif
9444
9445#ifdef __cplusplus
9446extern "C" {
9447#endif
9448
9449_LT_EOF
9450 # Now generate the symbol file.
9451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9452
9453 cat <<_LT_EOF >> conftest.$ac_ext
9454
9455/* The mapping between symbol names and symbols. */
9456LT_DLSYM_CONST struct {
9457 const char *name;
9458 void *address;
9459}
9460lt__PROGRAM__LTX_preloaded_symbols[] =
9461{
9462 { "@PROGRAM@", (void *) 0 },
9463_LT_EOF
9464 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9465 cat <<\_LT_EOF >> conftest.$ac_ext
9466 {0, (void *) 0}
9467};
9468
9469/* This works around a problem in FreeBSD linker */
9470#ifdef FREEBSD_WORKAROUND
9471static const void *lt_preloaded_setup() {
9472 return lt__PROGRAM__LTX_preloaded_symbols;
9473}
9474#endif
9475
9476#ifdef __cplusplus
9477}
9478#endif
9479_LT_EOF
9480 # Now try linking the two files.
9481 mv -f conftest.$ac_objext conftstm.$ac_objext
9482 lt_globsym_save_LIBS=$LIBS
9483 lt_globsym_save_CFLAGS=$CFLAGS
9484 LIBS=conftstm.$ac_objext
9485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9487 (eval $ac_link) 2>&5
9488 ac_status=$?
9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9491 pipe_works=yes
9492 fi
9493 LIBS=$lt_globsym_save_LIBS
9494 CFLAGS=$lt_globsym_save_CFLAGS
9495 else
9496 echo "cannot find nm_test_func in $nlist" >&5
9497 fi
9498 else
9499 echo "cannot find nm_test_var in $nlist" >&5
9500 fi
9501 else
9502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9503 fi
9504 else
9505 echo "$progname: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 fi
9508 rm -rf conftest* conftst*
9509
9510 # Do not use the global_symbol_pipe unless it works.
9511 if test yes = "$pipe_works"; then
9512 break
9513 else
9514 lt_cv_sys_global_symbol_pipe=
9515 fi
9516done
9517
9518fi
9519
9520if test -z "$lt_cv_sys_global_symbol_pipe"; then
9521 lt_cv_sys_global_symbol_to_cdecl=
9522fi
9523if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9525$as_echo "failed" >&6; }
9526else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9528$as_echo "ok" >&6; }
9529fi
9530
9531# Response file support.
9532if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9533 nm_file_list_spec='@'
9534elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9535 nm_file_list_spec='@'
9536fi
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9575$as_echo_n "checking for sysroot... " >&6; }
9576
9577# Check whether --with-sysroot was given.
9578if test "${with_sysroot+set}" = set; then :
9579 withval=$with_sysroot;
9580else
9581 with_sysroot=no
9582fi
9583
9584
9585lt_sysroot=
9586case $with_sysroot in #(
9587 yes)
9588 if test yes = "$GCC"; then
9589 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9590 fi
9591 ;; #(
9592 /*)
9593 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9594 ;; #(
9595 no|'')
9596 ;; #(
9597 *)
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9599$as_echo "$with_sysroot" >&6; }
9600 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9601 ;;
9602esac
9603
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9605$as_echo "${lt_sysroot:-no}" >&6; }
9606
9607
9608
9609
9610
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9612$as_echo_n "checking for a working dd... " >&6; }
9613if ${ac_cv_path_lt_DD+:} false; then :
9614 $as_echo_n "(cached) " >&6
9615else
9616 printf 0123456789abcdef0123456789abcdef >conftest.i
9617cat conftest.i conftest.i >conftest2.i
9618: ${lt_DD:=$DD}
9619if test -z "$lt_DD"; then
9620 ac_path_lt_DD_found=false
9621 # Loop through the user's path and test for each of PROGNAME-LIST
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
9627 for ac_prog in dd; do
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9630 as_fn_executable_p "$ac_path_lt_DD" || continue
9631if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9632 cmp -s conftest.i conftest.out \
9633 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9634fi
9635 $ac_path_lt_DD_found && break 3
9636 done
9637 done
9638 done
9639IFS=$as_save_IFS
9640 if test -z "$ac_cv_path_lt_DD"; then
9641 :
9642 fi
9643else
9644 ac_cv_path_lt_DD=$lt_DD
9645fi
9646
9647rm -f conftest.i conftest2.i conftest.out
9648fi
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9650$as_echo "$ac_cv_path_lt_DD" >&6; }
9651
9652
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9654$as_echo_n "checking how to truncate binary pipes... " >&6; }
9655if ${lt_cv_truncate_bin+:} false; then :
9656 $as_echo_n "(cached) " >&6
9657else
9658 printf 0123456789abcdef0123456789abcdef >conftest.i
9659cat conftest.i conftest.i >conftest2.i
9660lt_cv_truncate_bin=
9661if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9662 cmp -s conftest.i conftest.out \
9663 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9664fi
9665rm -f conftest.i conftest2.i conftest.out
9666test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9669$as_echo "$lt_cv_truncate_bin" >&6; }
9670
9671
9672
9673
9674
9675
9676
9677# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9678func_cc_basename ()
9679{
9680 for cc_temp in $*""; do
9681 case $cc_temp in
9682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9684 \-*) ;;
9685 *) break;;
9686 esac
9687 done
9688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9689}
9690
9691# Check whether --enable-libtool-lock was given.
9692if test "${enable_libtool_lock+set}" = set; then :
9693 enableval=$enable_libtool_lock;
9694fi
9695
9696test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9697
9698# Some flags need to be propagated to the compiler or linker for good
9699# libtool support.
9700case $host in
9701ia64-*-hpux*)
9702 # Find out what ABI is being produced by ac_compile, and set mode
9703 # options accordingly.
9704 echo 'int i;' > conftest.$ac_ext
9705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9706 (eval $ac_compile) 2>&5
9707 ac_status=$?
9708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9709 test $ac_status = 0; }; then
9710 case `/usr/bin/file conftest.$ac_objext` in
9711 *ELF-32*)
9712 HPUX_IA64_MODE=32
9713 ;;
9714 *ELF-64*)
9715 HPUX_IA64_MODE=64
9716 ;;
9717 esac
9718 fi
9719 rm -rf conftest*
9720 ;;
9721*-*-irix6*)
9722 # Find out what ABI is being produced by ac_compile, and set linker
9723 # options accordingly.
9724 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9726 (eval $ac_compile) 2>&5
9727 ac_status=$?
9728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9729 test $ac_status = 0; }; then
9730 if test yes = "$lt_cv_prog_gnu_ld"; then
9731 case `/usr/bin/file conftest.$ac_objext` in
9732 *32-bit*)
9733 LD="${LD-ld} -melf32bsmip"
9734 ;;
9735 *N32*)
9736 LD="${LD-ld} -melf32bmipn32"
9737 ;;
9738 *64-bit*)
9739 LD="${LD-ld} -melf64bmip"
9740 ;;
9741 esac
9742 else
9743 case `/usr/bin/file conftest.$ac_objext` in
9744 *32-bit*)
9745 LD="${LD-ld} -32"
9746 ;;
9747 *N32*)
9748 LD="${LD-ld} -n32"
9749 ;;
9750 *64-bit*)
9751 LD="${LD-ld} -64"
9752 ;;
9753 esac
9754 fi
9755 fi
9756 rm -rf conftest*
9757 ;;
9758
9759mips64*-*linux*)
9760 # Find out what ABI is being produced by ac_compile, and set linker
9761 # options accordingly.
9762 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9764 (eval $ac_compile) 2>&5
9765 ac_status=$?
9766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9767 test $ac_status = 0; }; then
9768 emul=elf
9769 case `/usr/bin/file conftest.$ac_objext` in
9770 *32-bit*)
9771 emul="${emul}32"
9772 ;;
9773 *64-bit*)
9774 emul="${emul}64"
9775 ;;
9776 esac
9777 case `/usr/bin/file conftest.$ac_objext` in
9778 *MSB*)
9779 emul="${emul}btsmip"
9780 ;;
9781 *LSB*)
9782 emul="${emul}ltsmip"
9783 ;;
9784 esac
9785 case `/usr/bin/file conftest.$ac_objext` in
9786 *N32*)
9787 emul="${emul}n32"
9788 ;;
9789 esac
9790 LD="${LD-ld} -m $emul"
9791 fi
9792 rm -rf conftest*
9793 ;;
9794
9795x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9796s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9797 # Find out what ABI is being produced by ac_compile, and set linker
9798 # options accordingly. Note that the listed cases only cover the
9799 # situations where additional linker options are needed (such as when
9800 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9801 # vice versa); the common cases where no linker options are needed do
9802 # not appear in the list.
9803 echo 'int i;' > conftest.$ac_ext
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9806 ac_status=$?
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }; then
9809 case `/usr/bin/file conftest.o` in
9810 *32-bit*)
9811 case $host in
9812 x86_64-*kfreebsd*-gnu)
9813 LD="${LD-ld} -m elf_i386_fbsd"
9814 ;;
9815 x86_64-*linux*)
9816 case `/usr/bin/file conftest.o` in
9817 *x86-64*)
9818 LD="${LD-ld} -m elf32_x86_64"
9819 ;;
9820 *)
9821 LD="${LD-ld} -m elf_i386"
9822 ;;
9823 esac
9824 ;;
9825 powerpc64le-*linux*)
9826 LD="${LD-ld} -m elf32lppclinux"
9827 ;;
9828 powerpc64-*linux*)
9829 LD="${LD-ld} -m elf32ppclinux"
9830 ;;
9831 s390x-*linux*)
9832 LD="${LD-ld} -m elf_s390"
9833 ;;
9834 sparc64-*linux*)
9835 LD="${LD-ld} -m elf32_sparc"
9836 ;;
9837 esac
9838 ;;
9839 *64-bit*)
9840 case $host in
9841 x86_64-*kfreebsd*-gnu)
9842 LD="${LD-ld} -m elf_x86_64_fbsd"
9843 ;;
9844 x86_64-*linux*)
9845 LD="${LD-ld} -m elf_x86_64"
9846 ;;
9847 powerpcle-*linux*)
9848 LD="${LD-ld} -m elf64lppc"
9849 ;;
9850 powerpc-*linux*)
9851 LD="${LD-ld} -m elf64ppc"
9852 ;;
9853 s390*-*linux*|s390*-*tpf*)
9854 LD="${LD-ld} -m elf64_s390"
9855 ;;
9856 sparc*-*linux*)
9857 LD="${LD-ld} -m elf64_sparc"
9858 ;;
9859 esac
9860 ;;
9861 esac
9862 fi
9863 rm -rf conftest*
9864 ;;
9865
9866*-*-sco3.2v5*)
9867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9868 SAVE_CFLAGS=$CFLAGS
9869 CFLAGS="$CFLAGS -belf"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9871$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9872if ${lt_cv_cc_needs_belf+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874else
9875 ac_ext=c
9876ac_cpp='$CPP $CPPFLAGS'
9877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9879ac_compiler_gnu=$ac_cv_c_compiler_gnu
9880
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h. */
9883
9884int main (void)
9885{
9886
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891if ac_fn_c_try_link "$LINENO"; then :
9892 lt_cv_cc_needs_belf=yes
9893else
9894 lt_cv_cc_needs_belf=no
9895fi
9896rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 ac_ext=c
9899ac_cpp='$CPP $CPPFLAGS'
9900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902ac_compiler_gnu=$ac_cv_c_compiler_gnu
9903
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9906$as_echo "$lt_cv_cc_needs_belf" >&6; }
9907 if test yes != "$lt_cv_cc_needs_belf"; then
9908 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9909 CFLAGS=$SAVE_CFLAGS
9910 fi
9911 ;;
9912*-*solaris*)
9913 # Find out what ABI is being produced by ac_compile, and set linker
9914 # options accordingly.
9915 echo 'int i;' > conftest.$ac_ext
9916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9917 (eval $ac_compile) 2>&5
9918 ac_status=$?
9919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9920 test $ac_status = 0; }; then
9921 case `/usr/bin/file conftest.o` in
9922 *64-bit*)
9923 case $lt_cv_prog_gnu_ld in
9924 yes*)
9925 case $host in
9926 i?86-*-solaris*|x86_64-*-solaris*)
9927 LD="${LD-ld} -m elf_x86_64"
9928 ;;
9929 sparc*-*-solaris*)
9930 LD="${LD-ld} -m elf64_sparc"
9931 ;;
9932 esac
9933 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9934 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9935 LD=${LD-ld}_sol2
9936 fi
9937 ;;
9938 *)
9939 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9940 LD="${LD-ld} -64"
9941 fi
9942 ;;
9943 esac
9944 ;;
9945 esac
9946 fi
9947 rm -rf conftest*
9948 ;;
9949esac
9950
9951need_locks=$enable_libtool_lock
9952
9953if test -n "$ac_tool_prefix"; then
9954 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9955set dummy ${ac_tool_prefix}mt; ac_word=$2
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957$as_echo_n "checking for $ac_word... " >&6; }
9958if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960else
9961 if test -n "$MANIFEST_TOOL"; then
9962 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976 done
9977IFS=$as_save_IFS
9978
9979fi
9980fi
9981MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9982if test -n "$MANIFEST_TOOL"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9984$as_echo "$MANIFEST_TOOL" >&6; }
9985else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987$as_echo "no" >&6; }
9988fi
9989
9990
9991fi
9992if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9993 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9994 # Extract the first word of "mt", so it can be a program name with args.
9995set dummy mt; ac_word=$2
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997$as_echo_n "checking for $ac_word... " >&6; }
9998if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000else
10001 if test -n "$ac_ct_MANIFEST_TOOL"; then
10002 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10014 fi
10015done
10016 done
10017IFS=$as_save_IFS
10018
10019fi
10020fi
10021ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10022if test -n "$ac_ct_MANIFEST_TOOL"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10024$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10025else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
10028fi
10029
10030 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10031 MANIFEST_TOOL=":"
10032 else
10033 case $cross_compiling:$ac_tool_warned in
10034yes:)
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037ac_tool_warned=yes ;;
10038esac
10039 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10040 fi
10041else
10042 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10043fi
10044
10045test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10047$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10048if ${lt_cv_path_mainfest_tool+:} false; then :
10049 $as_echo_n "(cached) " >&6
10050else
10051 lt_cv_path_mainfest_tool=no
10052 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10053 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10054 cat conftest.err >&5
10055 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10056 lt_cv_path_mainfest_tool=yes
10057 fi
10058 rm -f conftest*
10059fi
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10061$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10062if test yes != "$lt_cv_path_mainfest_tool"; then
10063 MANIFEST_TOOL=:
10064fi
10065
10066
10067
10068
10069
10070
10071 case $host_os in
10072 rhapsody* | darwin*)
10073 if test -n "$ac_tool_prefix"; then
10074 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10075set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077$as_echo_n "checking for $ac_word... " >&6; }
10078if ${ac_cv_prog_DSYMUTIL+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080else
10081 if test -n "$DSYMUTIL"; then
10082 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10083else
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095done
10096 done
10097IFS=$as_save_IFS
10098
10099fi
10100fi
10101DSYMUTIL=$ac_cv_prog_DSYMUTIL
10102if test -n "$DSYMUTIL"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10104$as_echo "$DSYMUTIL" >&6; }
10105else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107$as_echo "no" >&6; }
10108fi
10109
10110
10111fi
10112if test -z "$ac_cv_prog_DSYMUTIL"; then
10113 ac_ct_DSYMUTIL=$DSYMUTIL
10114 # Extract the first word of "dsymutil", so it can be a program name with args.
10115set dummy dsymutil; ac_word=$2
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117$as_echo_n "checking for $ac_word... " >&6; }
10118if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120else
10121 if test -n "$ac_ct_DSYMUTIL"; then
10122 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10123else
10124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125for as_dir in $PATH
10126do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10131 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10134 fi
10135done
10136 done
10137IFS=$as_save_IFS
10138
10139fi
10140fi
10141ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10142if test -n "$ac_ct_DSYMUTIL"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10144$as_echo "$ac_ct_DSYMUTIL" >&6; }
10145else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147$as_echo "no" >&6; }
10148fi
10149
10150 if test "x$ac_ct_DSYMUTIL" = x; then
10151 DSYMUTIL=":"
10152 else
10153 case $cross_compiling:$ac_tool_warned in
10154yes:)
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10157ac_tool_warned=yes ;;
10158esac
10159 DSYMUTIL=$ac_ct_DSYMUTIL
10160 fi
10161else
10162 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10163fi
10164
10165 if test -n "$ac_tool_prefix"; then
10166 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10167set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
10170if ${ac_cv_prog_NMEDIT+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172else
10173 if test -n "$NMEDIT"; then
10174 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10175else
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10186 fi
10187done
10188 done
10189IFS=$as_save_IFS
10190
10191fi
10192fi
10193NMEDIT=$ac_cv_prog_NMEDIT
10194if test -n "$NMEDIT"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10196$as_echo "$NMEDIT" >&6; }
10197else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199$as_echo "no" >&6; }
10200fi
10201
10202
10203fi
10204if test -z "$ac_cv_prog_NMEDIT"; then
10205 ac_ct_NMEDIT=$NMEDIT
10206 # Extract the first word of "nmedit", so it can be a program name with args.
10207set dummy nmedit; ac_word=$2
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209$as_echo_n "checking for $ac_word... " >&6; }
10210if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212else
10213 if test -n "$ac_ct_NMEDIT"; then
10214 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10215else
10216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217for as_dir in $PATH
10218do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227done
10228 done
10229IFS=$as_save_IFS
10230
10231fi
10232fi
10233ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10234if test -n "$ac_ct_NMEDIT"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10236$as_echo "$ac_ct_NMEDIT" >&6; }
10237else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239$as_echo "no" >&6; }
10240fi
10241
10242 if test "x$ac_ct_NMEDIT" = x; then
10243 NMEDIT=":"
10244 else
10245 case $cross_compiling:$ac_tool_warned in
10246yes:)
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249ac_tool_warned=yes ;;
10250esac
10251 NMEDIT=$ac_ct_NMEDIT
10252 fi
10253else
10254 NMEDIT="$ac_cv_prog_NMEDIT"
10255fi
10256
10257 if test -n "$ac_tool_prefix"; then
10258 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10259set dummy ${ac_tool_prefix}lipo; ac_word=$2
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261$as_echo_n "checking for $ac_word... " >&6; }
10262if ${ac_cv_prog_LIPO+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264else
10265 if test -n "$LIPO"; then
10266 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280 done
10281IFS=$as_save_IFS
10282
10283fi
10284fi
10285LIPO=$ac_cv_prog_LIPO
10286if test -n "$LIPO"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10288$as_echo "$LIPO" >&6; }
10289else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
10292fi
10293
10294
10295fi
10296if test -z "$ac_cv_prog_LIPO"; then
10297 ac_ct_LIPO=$LIPO
10298 # Extract the first word of "lipo", so it can be a program name with args.
10299set dummy lipo; ac_word=$2
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301$as_echo_n "checking for $ac_word... " >&6; }
10302if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304else
10305 if test -n "$ac_ct_LIPO"; then
10306 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10307else
10308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309for as_dir in $PATH
10310do
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_ac_ct_LIPO="lipo"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10318 fi
10319done
10320 done
10321IFS=$as_save_IFS
10322
10323fi
10324fi
10325ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10326if test -n "$ac_ct_LIPO"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10328$as_echo "$ac_ct_LIPO" >&6; }
10329else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331$as_echo "no" >&6; }
10332fi
10333
10334 if test "x$ac_ct_LIPO" = x; then
10335 LIPO=":"
10336 else
10337 case $cross_compiling:$ac_tool_warned in
10338yes:)
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10341ac_tool_warned=yes ;;
10342esac
10343 LIPO=$ac_ct_LIPO
10344 fi
10345else
10346 LIPO="$ac_cv_prog_LIPO"
10347fi
10348
10349 if test -n "$ac_tool_prefix"; then
10350 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10351set dummy ${ac_tool_prefix}otool; ac_word=$2
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if ${ac_cv_prog_OTOOL+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356else
10357 if test -n "$OTOOL"; then
10358 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10359else
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371done
10372 done
10373IFS=$as_save_IFS
10374
10375fi
10376fi
10377OTOOL=$ac_cv_prog_OTOOL
10378if test -n "$OTOOL"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10380$as_echo "$OTOOL" >&6; }
10381else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
10384fi
10385
10386
10387fi
10388if test -z "$ac_cv_prog_OTOOL"; then
10389 ac_ct_OTOOL=$OTOOL
10390 # Extract the first word of "otool", so it can be a program name with args.
10391set dummy otool; ac_word=$2
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393$as_echo_n "checking for $ac_word... " >&6; }
10394if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396else
10397 if test -n "$ac_ct_OTOOL"; then
10398 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10399else
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10407 ac_cv_prog_ac_ct_OTOOL="otool"
10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412 done
10413IFS=$as_save_IFS
10414
10415fi
10416fi
10417ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10418if test -n "$ac_ct_OTOOL"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10420$as_echo "$ac_ct_OTOOL" >&6; }
10421else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
10424fi
10425
10426 if test "x$ac_ct_OTOOL" = x; then
10427 OTOOL=":"
10428 else
10429 case $cross_compiling:$ac_tool_warned in
10430yes:)
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433ac_tool_warned=yes ;;
10434esac
10435 OTOOL=$ac_ct_OTOOL
10436 fi
10437else
10438 OTOOL="$ac_cv_prog_OTOOL"
10439fi
10440
10441 if test -n "$ac_tool_prefix"; then
10442 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10443set dummy ${ac_tool_prefix}otool64; ac_word=$2
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445$as_echo_n "checking for $ac_word... " >&6; }
10446if ${ac_cv_prog_OTOOL64+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448else
10449 if test -n "$OTOOL64"; then
10450 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10451else
10452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453for as_dir in $PATH
10454do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10462 fi
10463done
10464 done
10465IFS=$as_save_IFS
10466
10467fi
10468fi
10469OTOOL64=$ac_cv_prog_OTOOL64
10470if test -n "$OTOOL64"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10472$as_echo "$OTOOL64" >&6; }
10473else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475$as_echo "no" >&6; }
10476fi
10477
10478
10479fi
10480if test -z "$ac_cv_prog_OTOOL64"; then
10481 ac_ct_OTOOL64=$OTOOL64
10482 # Extract the first word of "otool64", so it can be a program name with args.
10483set dummy otool64; ac_word=$2
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10485$as_echo_n "checking for $ac_word... " >&6; }
10486if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488else
10489 if test -n "$ac_ct_OTOOL64"; then
10490 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10491else
10492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $PATH
10494do
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499 ac_cv_prog_ac_ct_OTOOL64="otool64"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10502 fi
10503done
10504 done
10505IFS=$as_save_IFS
10506
10507fi
10508fi
10509ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10510if test -n "$ac_ct_OTOOL64"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10512$as_echo "$ac_ct_OTOOL64" >&6; }
10513else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515$as_echo "no" >&6; }
10516fi
10517
10518 if test "x$ac_ct_OTOOL64" = x; then
10519 OTOOL64=":"
10520 else
10521 case $cross_compiling:$ac_tool_warned in
10522yes:)
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10525ac_tool_warned=yes ;;
10526esac
10527 OTOOL64=$ac_ct_OTOOL64
10528 fi
10529else
10530 OTOOL64="$ac_cv_prog_OTOOL64"
10531fi
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10560$as_echo_n "checking for -single_module linker flag... " >&6; }
10561if ${lt_cv_apple_cc_single_mod+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563else
10564 lt_cv_apple_cc_single_mod=no
10565 if test -z "$LT_MULTI_MODULE"; then
10566 # By default we will add the -single_module flag. You can override
10567 # by either setting the environment variable LT_MULTI_MODULE
10568 # non-empty at configure time, or by adding -multi_module to the
10569 # link flags.
10570 rm -rf libconftest.dylib*
10571 echo "int foo(void){return 1;}" > conftest.c
10572 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10573-dynamiclib -Wl,-single_module conftest.c" >&5
10574 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10575 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10576 _lt_result=$?
10577 # If there is a non-empty error log, and "single_module"
10578 # appears in it, assume the flag caused a linker warning
10579 if test -s conftest.err && $GREP single_module conftest.err; then
10580 cat conftest.err >&5
10581 # Otherwise, if the output was created with a 0 exit code from
10582 # the compiler, it worked.
10583 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10584 lt_cv_apple_cc_single_mod=yes
10585 else
10586 cat conftest.err >&5
10587 fi
10588 rm -rf libconftest.dylib*
10589 rm -f conftest.*
10590 fi
10591fi
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10593$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10594
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10596$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10597if ${lt_cv_ld_exported_symbols_list+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599else
10600 lt_cv_ld_exported_symbols_list=no
10601 save_LDFLAGS=$LDFLAGS
10602 echo "_main" > conftest.sym
10603 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h. */
10606
10607int main (void)
10608{
10609
10610 ;
10611 return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"; then :
10615 lt_cv_ld_exported_symbols_list=yes
10616else
10617 lt_cv_ld_exported_symbols_list=no
10618fi
10619rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LDFLAGS=$save_LDFLAGS
10622
10623fi
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10625$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10626
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10628$as_echo_n "checking for -force_load linker flag... " >&6; }
10629if ${lt_cv_ld_force_load+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631else
10632 lt_cv_ld_force_load=no
10633 cat > conftest.c << _LT_EOF
10634int forced_loaded() { return 2;}
10635_LT_EOF
10636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10638 echo "$AR cru libconftest.a conftest.o" >&5
10639 $AR cru libconftest.a conftest.o 2>&5
10640 echo "$RANLIB libconftest.a" >&5
10641 $RANLIB libconftest.a 2>&5
10642 cat > conftest.c << _LT_EOF
10643int main() { return 0;}
10644_LT_EOF
10645 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10646 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10647 _lt_result=$?
10648 if test -s conftest.err && $GREP force_load conftest.err; then
10649 cat conftest.err >&5
10650 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10651 lt_cv_ld_force_load=yes
10652 else
10653 cat conftest.err >&5
10654 fi
10655 rm -f conftest.err libconftest.a conftest conftest.c
10656 rm -rf conftest.dSYM
10657
10658fi
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10660$as_echo "$lt_cv_ld_force_load" >&6; }
10661 case $host_os in
10662 rhapsody* | darwin1.[012])
10663 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10664 darwin1.*)
10665 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10666 darwin*) # darwin 5.x on
10667 # if running on 10.5 or later, the deployment target defaults
10668 # to the OS version, if on x86, and 10.4, the deployment
10669 # target defaults to 10.4. Don't you love it?
10670 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10671 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10672 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10673 10.[012][,.]*)
10674 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10675 10.*)
10676 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10677 esac
10678 ;;
10679 esac
10680 if test yes = "$lt_cv_apple_cc_single_mod"; then
10681 _lt_dar_single_mod='$single_module'
10682 fi
10683 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10684 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10685 else
10686 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10687 fi
10688 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10689 _lt_dsymutil='~$DSYMUTIL $lib || :'
10690 else
10691 _lt_dsymutil=
10692 fi
10693 ;;
10694 esac
10695
10696# func_munge_path_list VARIABLE PATH
10697# -----------------------------------
10698# VARIABLE is name of variable containing _space_ separated list of
10699# directories to be munged by the contents of PATH, which is string
10700# having a format:
10701# "DIR[:DIR]:"
10702# string "DIR[ DIR]" will be prepended to VARIABLE
10703# ":DIR[:DIR]"
10704# string "DIR[ DIR]" will be appended to VARIABLE
10705# "DIRP[:DIRP]::[DIRA:]DIRA"
10706# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10707# "DIRA[ DIRA]" will be appended to VARIABLE
10708# "DIR[:DIR]"
10709# VARIABLE will be replaced by "DIR[ DIR]"
10710func_munge_path_list ()
10711{
10712 case x$2 in
10713 x)
10714 ;;
10715 *:)
10716 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10717 ;;
10718 x:*)
10719 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10720 ;;
10721 *::*)
10722 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10723 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10724 ;;
10725 *)
10726 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10727 ;;
10728 esac
10729}
10730
Alex Deymo486467e2017-12-19 19:04:07 +010010731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10732$as_echo_n "checking for ANSI C header files... " >&6; }
10733if ${ac_cv_header_stdc+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h. */
10738#include <stdlib.h>
10739#include <stdarg.h>
10740#include <string.h>
10741#include <float.h>
10742
10743int main (void)
10744{
10745
10746 ;
10747 return 0;
10748}
10749_ACEOF
10750if ac_fn_c_try_compile "$LINENO"; then :
10751 ac_cv_header_stdc=yes
10752else
10753 ac_cv_header_stdc=no
10754fi
10755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756
10757if test $ac_cv_header_stdc = yes; then
10758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760/* end confdefs.h. */
10761#include <string.h>
10762
10763_ACEOF
10764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10765 $EGREP "memchr" >/dev/null 2>&1; then :
10766
10767else
10768 ac_cv_header_stdc=no
10769fi
10770rm -f conftest*
10771
10772fi
10773
10774if test $ac_cv_header_stdc = yes; then
10775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h. */
10778#include <stdlib.h>
10779
10780_ACEOF
10781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10782 $EGREP "free" >/dev/null 2>&1; then :
10783
10784else
10785 ac_cv_header_stdc=no
10786fi
10787rm -f conftest*
10788
10789fi
10790
10791if test $ac_cv_header_stdc = yes; then
10792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10793 if test "$cross_compiling" = yes; then :
10794 :
10795else
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h. */
10798#include <ctype.h>
10799#include <stdlib.h>
10800#if ((' ' & 0x0FF) == 0x020)
10801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10803#else
10804# define ISLOWER(c) \
10805 (('a' <= (c) && (c) <= 'i') \
10806 || ('j' <= (c) && (c) <= 'r') \
10807 || ('s' <= (c) && (c) <= 'z'))
10808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10809#endif
10810
10811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10812int
10813main ()
10814{
10815 int i;
10816 for (i = 0; i < 256; i++)
10817 if (XOR (islower (i), ISLOWER (i))
10818 || toupper (i) != TOUPPER (i))
10819 return 2;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_run "$LINENO"; then :
10824
10825else
10826 ac_cv_header_stdc=no
10827fi
10828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10829 conftest.$ac_objext conftest.beam conftest.$ac_ext
10830fi
10831
10832fi
10833fi
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10835$as_echo "$ac_cv_header_stdc" >&6; }
10836if test $ac_cv_header_stdc = yes; then
10837
10838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10839
10840fi
10841
10842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10844 inttypes.h stdint.h unistd.h
10845do :
10846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10848"
10849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10850 cat >>confdefs.h <<_ACEOF
10851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10852_ACEOF
10853
10854fi
10855
10856done
10857
10858
Elliott Hughes82be86d2017-09-20 17:00:17 -070010859for ac_header in dlfcn.h
10860do :
10861 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10862"
10863if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10864 cat >>confdefs.h <<_ACEOF
10865#define HAVE_DLFCN_H 1
10866_ACEOF
10867
10868fi
10869
10870done
10871
10872# ------------------------------------ #
10873# Determine libtool default behavior #
10874# ------------------------------------ #
10875
10876#
10877# Default behavior is to enable shared and static libraries on systems
10878# where libtool knows how to build both library versions, and does not
10879# require separate configuration and build runs for each flavor.
10880#
10881
10882xc_lt_want_enable_shared='yes'
10883xc_lt_want_enable_static='yes'
10884
10885#
10886# User may have disabled shared or static libraries.
10887#
10888case "x$enable_shared" in # (
10889 xno)
10890 xc_lt_want_enable_shared='no'
10891 ;;
10892esac
10893case "x$enable_static" in # (
10894 xno)
10895 xc_lt_want_enable_static='no'
10896 ;;
10897esac
10898if test "x$xc_lt_want_enable_shared" = 'xno' &&
10899 test "x$xc_lt_want_enable_static" = 'xno'; then
10900 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10901fi
10902
10903#
10904# Default behavior on systems that require independent configuration
10905# and build runs for shared and static is to enable shared libraries
10906# and disable static ones. On these systems option '--disable-shared'
10907# must be used in order to build a proper static library.
10908#
10909
10910if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10911 test "x$xc_lt_want_enable_static" = 'xyes'; then
10912 case $host_os in # (
10913 pw32* | cegcc* | os2* | aix*)
10914 xc_lt_want_enable_static='no'
10915 ;;
10916 esac
10917fi
10918
10919#
10920# Make libtool aware of current shared and static library preferences
10921# taking in account that, depending on host characteristics, libtool
10922# may modify these option preferences later in this configure script.
10923#
10924
10925enable_shared=$xc_lt_want_enable_shared
10926enable_static=$xc_lt_want_enable_static
10927
10928#
10929# Default behavior is to build PIC objects for shared libraries and
10930# non-PIC objects for static libraries.
10931#
10932
10933xc_lt_want_with_pic='default'
10934
10935#
10936# User may have specified PIC preference.
10937#
10938
10939case "x$with_pic" in # ((
10940 xno)
10941 xc_lt_want_with_pic='no'
10942 ;;
10943 xyes)
10944 xc_lt_want_with_pic='yes'
10945 ;;
10946esac
10947
10948#
10949# Default behavior on some systems where building a shared library out
10950# of non-PIC compiled objects will fail with following linker error
10951# "relocation R_X86_64_32 can not be used when making a shared object"
10952# is to build PIC objects even for static libraries. This behavior may
10953# be overridden using 'configure --disable-shared --without-pic'.
10954#
10955
10956if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10957 case $host_cpu in # (
10958 x86_64 | amd64 | ia64)
10959 case $host_os in # (
10960 linux* | freebsd*)
10961 xc_lt_want_with_pic='yes'
10962 ;;
10963 esac
10964 ;;
10965 esac
10966fi
10967
10968#
10969# Make libtool aware of current PIC preference taking in account that,
10970# depending on host characteristics, libtool may modify PIC default
10971# behavior to fit host system idiosyncrasies later in this script.
10972#
10973
10974with_pic=$xc_lt_want_with_pic
10975
10976## ----------------------- ##
10977## Start of libtool code ##
10978## ----------------------- ##
10979
10980
10981
10982
10983# Set options
10984enable_win32_dll=yes
10985
10986case $host in
10987*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10988 if test -n "$ac_tool_prefix"; then
10989 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10990set dummy ${ac_tool_prefix}as; ac_word=$2
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992$as_echo_n "checking for $ac_word... " >&6; }
10993if ${ac_cv_prog_AS+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995else
10996 if test -n "$AS"; then
10997 ac_cv_prog_AS="$AS" # Let the user override the test.
10998else
10999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000for as_dir in $PATH
11001do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_AS="${ac_tool_prefix}as"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010done
11011 done
11012IFS=$as_save_IFS
11013
11014fi
11015fi
11016AS=$ac_cv_prog_AS
11017if test -n "$AS"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11019$as_echo "$AS" >&6; }
11020else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023fi
11024
11025
11026fi
11027if test -z "$ac_cv_prog_AS"; then
11028 ac_ct_AS=$AS
11029 # Extract the first word of "as", so it can be a program name with args.
11030set dummy as; ac_word=$2
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032$as_echo_n "checking for $ac_word... " >&6; }
11033if ${ac_cv_prog_ac_ct_AS+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035else
11036 if test -n "$ac_ct_AS"; then
11037 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_ac_ct_AS="as"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051 done
11052IFS=$as_save_IFS
11053
11054fi
11055fi
11056ac_ct_AS=$ac_cv_prog_ac_ct_AS
11057if test -n "$ac_ct_AS"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11059$as_echo "$ac_ct_AS" >&6; }
11060else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063fi
11064
11065 if test "x$ac_ct_AS" = x; then
11066 AS="false"
11067 else
11068 case $cross_compiling:$ac_tool_warned in
11069yes:)
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11072ac_tool_warned=yes ;;
11073esac
11074 AS=$ac_ct_AS
11075 fi
11076else
11077 AS="$ac_cv_prog_AS"
11078fi
11079
11080 if test -n "$ac_tool_prefix"; then
11081 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11082set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084$as_echo_n "checking for $ac_word... " >&6; }
11085if ${ac_cv_prog_DLLTOOL+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087else
11088 if test -n "$DLLTOOL"; then
11089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11090else
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102done
11103 done
11104IFS=$as_save_IFS
11105
11106fi
11107fi
11108DLLTOOL=$ac_cv_prog_DLLTOOL
11109if test -n "$DLLTOOL"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11111$as_echo "$DLLTOOL" >&6; }
11112else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
11115fi
11116
11117
11118fi
11119if test -z "$ac_cv_prog_DLLTOOL"; then
11120 ac_ct_DLLTOOL=$DLLTOOL
11121 # Extract the first word of "dlltool", so it can be a program name with args.
11122set dummy dlltool; ac_word=$2
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124$as_echo_n "checking for $ac_word... " >&6; }
11125if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127else
11128 if test -n "$ac_ct_DLLTOOL"; then
11129 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11130else
11131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132for as_dir in $PATH
11133do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142done
11143 done
11144IFS=$as_save_IFS
11145
11146fi
11147fi
11148ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11149if test -n "$ac_ct_DLLTOOL"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11151$as_echo "$ac_ct_DLLTOOL" >&6; }
11152else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
11155fi
11156
11157 if test "x$ac_ct_DLLTOOL" = x; then
11158 DLLTOOL="false"
11159 else
11160 case $cross_compiling:$ac_tool_warned in
11161yes:)
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11164ac_tool_warned=yes ;;
11165esac
11166 DLLTOOL=$ac_ct_DLLTOOL
11167 fi
11168else
11169 DLLTOOL="$ac_cv_prog_DLLTOOL"
11170fi
11171
11172 if test -n "$ac_tool_prefix"; then
11173 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11174set dummy ${ac_tool_prefix}objdump; ac_word=$2
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176$as_echo_n "checking for $ac_word... " >&6; }
11177if ${ac_cv_prog_OBJDUMP+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179else
11180 if test -n "$OBJDUMP"; then
11181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11182else
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198fi
11199fi
11200OBJDUMP=$ac_cv_prog_OBJDUMP
11201if test -n "$OBJDUMP"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11203$as_echo "$OBJDUMP" >&6; }
11204else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
11207fi
11208
11209
11210fi
11211if test -z "$ac_cv_prog_OBJDUMP"; then
11212 ac_ct_OBJDUMP=$OBJDUMP
11213 # Extract the first word of "objdump", so it can be a program name with args.
11214set dummy objdump; ac_word=$2
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216$as_echo_n "checking for $ac_word... " >&6; }
11217if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219else
11220 if test -n "$ac_ct_OBJDUMP"; then
11221 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11230 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234done
11235 done
11236IFS=$as_save_IFS
11237
11238fi
11239fi
11240ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11241if test -n "$ac_ct_OBJDUMP"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11243$as_echo "$ac_ct_OBJDUMP" >&6; }
11244else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
11247fi
11248
11249 if test "x$ac_ct_OBJDUMP" = x; then
11250 OBJDUMP="false"
11251 else
11252 case $cross_compiling:$ac_tool_warned in
11253yes:)
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11256ac_tool_warned=yes ;;
11257esac
11258 OBJDUMP=$ac_ct_OBJDUMP
11259 fi
11260else
11261 OBJDUMP="$ac_cv_prog_OBJDUMP"
11262fi
11263
11264 ;;
11265esac
11266
11267test -z "$AS" && AS=as
11268
11269
11270
11271
11272
11273test -z "$DLLTOOL" && DLLTOOL=dlltool
11274
11275
11276
11277
11278
11279test -z "$OBJDUMP" && OBJDUMP=objdump
11280
11281
11282
11283
11284
11285
11286
11287 enable_dlopen=no
11288
11289
11290
11291 # Check whether --enable-shared was given.
11292if test "${enable_shared+set}" = set; then :
11293 enableval=$enable_shared; p=${PACKAGE-default}
11294 case $enableval in
11295 yes) enable_shared=yes ;;
11296 no) enable_shared=no ;;
11297 *)
11298 enable_shared=no
11299 # Look at the argument we got. We use all the common list separators.
11300 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11301 for pkg in $enableval; do
11302 IFS=$lt_save_ifs
11303 if test "X$pkg" = "X$p"; then
11304 enable_shared=yes
11305 fi
11306 done
11307 IFS=$lt_save_ifs
11308 ;;
11309 esac
11310else
11311 enable_shared=yes
11312fi
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 # Check whether --enable-static was given.
11323if test "${enable_static+set}" = set; then :
11324 enableval=$enable_static; p=${PACKAGE-default}
11325 case $enableval in
11326 yes) enable_static=yes ;;
11327 no) enable_static=no ;;
11328 *)
11329 enable_static=no
11330 # Look at the argument we got. We use all the common list separators.
11331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11332 for pkg in $enableval; do
11333 IFS=$lt_save_ifs
11334 if test "X$pkg" = "X$p"; then
11335 enable_static=yes
11336 fi
11337 done
11338 IFS=$lt_save_ifs
11339 ;;
11340 esac
11341else
11342 enable_static=yes
11343fi
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354# Check whether --with-pic was given.
11355if test "${with_pic+set}" = set; then :
11356 withval=$with_pic; lt_p=${PACKAGE-default}
11357 case $withval in
11358 yes|no) pic_mode=$withval ;;
11359 *)
11360 pic_mode=default
11361 # Look at the argument we got. We use all the common list separators.
11362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11363 for lt_pkg in $withval; do
11364 IFS=$lt_save_ifs
11365 if test "X$lt_pkg" = "X$lt_p"; then
11366 pic_mode=yes
11367 fi
11368 done
11369 IFS=$lt_save_ifs
11370 ;;
11371 esac
11372else
11373 pic_mode=default
11374fi
11375
11376
11377
11378
11379
11380
11381
11382
11383 # Check whether --enable-fast-install was given.
11384if test "${enable_fast_install+set}" = set; then :
11385 enableval=$enable_fast_install; p=${PACKAGE-default}
11386 case $enableval in
11387 yes) enable_fast_install=yes ;;
11388 no) enable_fast_install=no ;;
11389 *)
11390 enable_fast_install=no
11391 # Look at the argument we got. We use all the common list separators.
11392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11393 for pkg in $enableval; do
11394 IFS=$lt_save_ifs
11395 if test "X$pkg" = "X$p"; then
11396 enable_fast_install=yes
11397 fi
11398 done
11399 IFS=$lt_save_ifs
11400 ;;
11401 esac
11402else
11403 enable_fast_install=yes
11404fi
11405
11406
11407
11408
11409
11410
11411
11412
11413 shared_archive_member_spec=
11414case $host,$enable_shared in
11415power*-*-aix[5-9]*,yes)
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11417$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11418
11419# Check whether --with-aix-soname was given.
11420if test "${with_aix_soname+set}" = set; then :
11421 withval=$with_aix_soname; case $withval in
11422 aix|svr4|both)
11423 ;;
11424 *)
11425 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11426 ;;
11427 esac
11428 lt_cv_with_aix_soname=$with_aix_soname
11429else
11430 if ${lt_cv_with_aix_soname+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432else
11433 lt_cv_with_aix_soname=aix
11434fi
11435
11436 with_aix_soname=$lt_cv_with_aix_soname
11437fi
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11440$as_echo "$with_aix_soname" >&6; }
11441 if test aix != "$with_aix_soname"; then
11442 # For the AIX way of multilib, we name the shared archive member
11443 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11444 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11445 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11446 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11447 if test 64 = "${OBJECT_MODE-32}"; then
11448 shared_archive_member_spec=shr_64
11449 else
11450 shared_archive_member_spec=shr
11451 fi
11452 fi
11453 ;;
11454*)
11455 with_aix_soname=aix
11456 ;;
11457esac
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468# This can be used to rebuild libtool when needed
11469LIBTOOL_DEPS=$ltmain
11470
11471# Always use our own libtool.
11472LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503test -z "$LN_S" && LN_S="ln -s"
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518if test -n "${ZSH_VERSION+set}"; then
11519 setopt NO_GLOB_SUBST
11520fi
11521
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11523$as_echo_n "checking for objdir... " >&6; }
11524if ${lt_cv_objdir+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526else
11527 rm -f .libs 2>/dev/null
11528mkdir .libs 2>/dev/null
11529if test -d .libs; then
11530 lt_cv_objdir=.libs
11531else
11532 # MS-DOS does not allow filenames that begin with a dot.
11533 lt_cv_objdir=_libs
11534fi
11535rmdir .libs 2>/dev/null
11536fi
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11538$as_echo "$lt_cv_objdir" >&6; }
11539objdir=$lt_cv_objdir
11540
11541
11542
11543
11544
11545cat >>confdefs.h <<_ACEOF
11546#define LT_OBJDIR "$lt_cv_objdir/"
11547_ACEOF
11548
11549
11550
11551
11552case $host_os in
11553aix3*)
11554 # AIX sometimes has problems with the GCC collect2 program. For some
11555 # reason, if we set the COLLECT_NAMES environment variable, the problems
11556 # vanish in a puff of smoke.
11557 if test set != "${COLLECT_NAMES+set}"; then
11558 COLLECT_NAMES=
11559 export COLLECT_NAMES
11560 fi
11561 ;;
11562esac
11563
11564# Global variables:
11565ofile=libtool
11566can_build_shared=yes
11567
11568# All known linkers require a '.a' archive for static linking (except MSVC,
11569# which needs '.lib').
11570libext=a
11571
11572with_gnu_ld=$lt_cv_prog_gnu_ld
11573
11574old_CC=$CC
11575old_CFLAGS=$CFLAGS
11576
11577# Set sane defaults for various variables
11578test -z "$CC" && CC=cc
11579test -z "$LTCC" && LTCC=$CC
11580test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11581test -z "$LD" && LD=ld
11582test -z "$ac_objext" && ac_objext=o
11583
11584func_cc_basename $compiler
11585cc_basename=$func_cc_basename_result
11586
11587
11588# Only perform the check for file, if the check method requires it
11589test -z "$MAGIC_CMD" && MAGIC_CMD=file
11590case $deplibs_check_method in
11591file_magic*)
11592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11594$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11595if ${lt_cv_path_MAGIC_CMD+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 case $MAGIC_CMD in
11599[\\/*] | ?:[\\/]*)
11600 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11601 ;;
11602*)
11603 lt_save_MAGIC_CMD=$MAGIC_CMD
11604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11606 for ac_dir in $ac_dummy; do
11607 IFS=$lt_save_ifs
11608 test -z "$ac_dir" && ac_dir=.
11609 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11610 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11611 if test -n "$file_magic_test_file"; then
11612 case $deplibs_check_method in
11613 "file_magic "*)
11614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11615 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11617 $EGREP "$file_magic_regex" > /dev/null; then
11618 :
11619 else
11620 cat <<_LT_EOF 1>&2
11621
11622*** Warning: the command libtool uses to detect shared libraries,
11623*** $file_magic_cmd, produces output that libtool cannot recognize.
11624*** The result is that libtool may fail to recognize shared libraries
11625*** as such. This will affect the creation of libtool libraries that
11626*** depend on shared libraries, but programs linked with such libtool
11627*** libraries will work regardless of this problem. Nevertheless, you
11628*** may want to report the problem to your system manager and/or to
11629*** bug-libtool@gnu.org
11630
11631_LT_EOF
11632 fi ;;
11633 esac
11634 fi
11635 break
11636 fi
11637 done
11638 IFS=$lt_save_ifs
11639 MAGIC_CMD=$lt_save_MAGIC_CMD
11640 ;;
11641esac
11642fi
11643
11644MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11645if test -n "$MAGIC_CMD"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11647$as_echo "$MAGIC_CMD" >&6; }
11648else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
11651fi
11652
11653
11654
11655
11656
11657if test -z "$lt_cv_path_MAGIC_CMD"; then
11658 if test -n "$ac_tool_prefix"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11660$as_echo_n "checking for file... " >&6; }
11661if ${lt_cv_path_MAGIC_CMD+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663else
11664 case $MAGIC_CMD in
11665[\\/*] | ?:[\\/]*)
11666 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11667 ;;
11668*)
11669 lt_save_MAGIC_CMD=$MAGIC_CMD
11670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11672 for ac_dir in $ac_dummy; do
11673 IFS=$lt_save_ifs
11674 test -z "$ac_dir" && ac_dir=.
11675 if test -f "$ac_dir/file"; then
11676 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11677 if test -n "$file_magic_test_file"; then
11678 case $deplibs_check_method in
11679 "file_magic "*)
11680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11681 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11683 $EGREP "$file_magic_regex" > /dev/null; then
11684 :
11685 else
11686 cat <<_LT_EOF 1>&2
11687
11688*** Warning: the command libtool uses to detect shared libraries,
11689*** $file_magic_cmd, produces output that libtool cannot recognize.
11690*** The result is that libtool may fail to recognize shared libraries
11691*** as such. This will affect the creation of libtool libraries that
11692*** depend on shared libraries, but programs linked with such libtool
11693*** libraries will work regardless of this problem. Nevertheless, you
11694*** may want to report the problem to your system manager and/or to
11695*** bug-libtool@gnu.org
11696
11697_LT_EOF
11698 fi ;;
11699 esac
11700 fi
11701 break
11702 fi
11703 done
11704 IFS=$lt_save_ifs
11705 MAGIC_CMD=$lt_save_MAGIC_CMD
11706 ;;
11707esac
11708fi
11709
11710MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11711if test -n "$MAGIC_CMD"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11713$as_echo "$MAGIC_CMD" >&6; }
11714else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
11717fi
11718
11719
11720 else
11721 MAGIC_CMD=:
11722 fi
11723fi
11724
11725 fi
11726 ;;
11727esac
11728
11729# Use C for the default configuration in the libtool script
11730
11731lt_save_CC=$CC
11732ac_ext=c
11733ac_cpp='$CPP $CPPFLAGS'
11734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736ac_compiler_gnu=$ac_cv_c_compiler_gnu
11737
11738
11739# Source file extension for C test sources.
11740ac_ext=c
11741
11742# Object file extension for compiled C test sources.
11743objext=o
11744objext=$objext
11745
11746# Code to be used in simple compile tests
11747lt_simple_compile_test_code="int some_variable = 0;"
11748
11749# Code to be used in simple link tests
11750lt_simple_link_test_code='int main(){return(0);}'
11751
11752
11753
11754
11755
11756
11757
11758# If no C compiler was specified, use CC.
11759LTCC=${LTCC-"$CC"}
11760
11761# If no C compiler flags were specified, use CFLAGS.
11762LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11763
11764# Allow CC to be a program name with arguments.
11765compiler=$CC
11766
11767# Save the default compiler, since it gets overwritten when the other
11768# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11769compiler_DEFAULT=$CC
11770
11771# save warnings/boilerplate of simple test code
11772ac_outfile=conftest.$ac_objext
11773echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11775_lt_compiler_boilerplate=`cat conftest.err`
11776$RM conftest*
11777
11778ac_outfile=conftest.$ac_objext
11779echo "$lt_simple_link_test_code" >conftest.$ac_ext
11780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11781_lt_linker_boilerplate=`cat conftest.err`
11782$RM -r conftest*
11783
11784
11785## CAVEAT EMPTOR:
11786## There is no encapsulation within the following macros, do not change
11787## the running order or otherwise move them around unless you know exactly
11788## what you are doing...
11789if test -n "$compiler"; then
11790
11791lt_prog_compiler_no_builtin_flag=
11792
11793if test yes = "$GCC"; then
11794 case $cc_basename in
11795 nvcc*)
11796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11797 *)
11798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11799 esac
11800
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11802$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11803if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11804 $as_echo_n "(cached) " >&6
11805else
11806 lt_cv_prog_compiler_rtti_exceptions=no
11807 ac_outfile=conftest.$ac_objext
11808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11809 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11810 # Insert the option either (1) after the last *FLAGS variable, or
11811 # (2) before a word containing "conftest.", or (3) at the end.
11812 # Note that $ac_compile itself does not contain backslashes and begins
11813 # with a dollar sign (not a hyphen), so the echo should work correctly.
11814 # The option is referenced via a variable to avoid confusing sed.
11815 lt_compile=`echo "$ac_compile" | $SED \
11816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11818 -e 's:$: $lt_compiler_flag:'`
11819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11820 (eval "$lt_compile" 2>conftest.err)
11821 ac_status=$?
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 if (exit $ac_status) && test -s "$ac_outfile"; then
11825 # The compiler can only warn and ignore the option if not recognized
11826 # So say no if there are warnings other than the usual output.
11827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11830 lt_cv_prog_compiler_rtti_exceptions=yes
11831 fi
11832 fi
11833 $RM conftest*
11834
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11837$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11838
11839if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11841else
11842 :
11843fi
11844
11845fi
11846
11847
11848
11849
11850
11851
11852 lt_prog_compiler_wl=
11853lt_prog_compiler_pic=
11854lt_prog_compiler_static=
11855
11856
11857 if test yes = "$GCC"; then
11858 lt_prog_compiler_wl='-Wl,'
11859 lt_prog_compiler_static='-static'
11860
11861 case $host_os in
11862 aix*)
11863 # All AIX code is PIC.
11864 if test ia64 = "$host_cpu"; then
11865 # AIX 5 now supports IA64 processor
11866 lt_prog_compiler_static='-Bstatic'
11867 fi
11868 lt_prog_compiler_pic='-fPIC'
11869 ;;
11870
11871 amigaos*)
11872 case $host_cpu in
11873 powerpc)
11874 # see comment about AmigaOS4 .so support
11875 lt_prog_compiler_pic='-fPIC'
11876 ;;
11877 m68k)
11878 # FIXME: we need at least 68020 code to build shared libraries, but
11879 # adding the '-m68020' flag to GCC prevents building anything better,
11880 # like '-m68040'.
11881 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11882 ;;
11883 esac
11884 ;;
11885
11886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11887 # PIC is the default for these OSes.
11888 ;;
11889
11890 mingw* | cygwin* | pw32* | os2* | cegcc*)
11891 # This hack is so that the source file can tell whether it is being
11892 # built for inclusion in a dll (and should export symbols for example).
11893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11894 # (--disable-auto-import) libraries
11895 lt_prog_compiler_pic='-DDLL_EXPORT'
11896 case $host_os in
11897 os2*)
11898 lt_prog_compiler_static='$wl-static'
11899 ;;
11900 esac
11901 ;;
11902
11903 darwin* | rhapsody*)
11904 # PIC is the default on this platform
11905 # Common symbols not allowed in MH_DYLIB files
11906 lt_prog_compiler_pic='-fno-common'
11907 ;;
11908
11909 haiku*)
11910 # PIC is the default for Haiku.
11911 # The "-static" flag exists, but is broken.
11912 lt_prog_compiler_static=
11913 ;;
11914
11915 hpux*)
11916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11918 # sets the default TLS model and affects inlining.
11919 case $host_cpu in
11920 hppa*64*)
11921 # +Z the default
11922 ;;
11923 *)
11924 lt_prog_compiler_pic='-fPIC'
11925 ;;
11926 esac
11927 ;;
11928
11929 interix[3-9]*)
11930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11931 # Instead, we relocate shared libraries at runtime.
11932 ;;
11933
11934 msdosdjgpp*)
11935 # Just because we use GCC doesn't mean we suddenly get shared libraries
11936 # on systems that don't support them.
11937 lt_prog_compiler_can_build_shared=no
11938 enable_shared=no
11939 ;;
11940
11941 *nto* | *qnx*)
11942 # QNX uses GNU C++, but need to define -shared option too, otherwise
11943 # it will coredump.
11944 lt_prog_compiler_pic='-fPIC -shared'
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 lt_prog_compiler_pic=-Kconform_pic
11950 fi
11951 ;;
11952
11953 *)
11954 lt_prog_compiler_pic='-fPIC'
11955 ;;
11956 esac
11957
11958 case $cc_basename in
11959 nvcc*) # Cuda Compiler Driver 2.2
11960 lt_prog_compiler_wl='-Xlinker '
11961 if test -n "$lt_prog_compiler_pic"; then
11962 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11963 fi
11964 ;;
11965 esac
11966 else
11967 # PORTME Check for flag to pass linker flags through the system compiler.
11968 case $host_os in
11969 aix*)
11970 lt_prog_compiler_wl='-Wl,'
11971 if test ia64 = "$host_cpu"; then
11972 # AIX 5 now supports IA64 processor
11973 lt_prog_compiler_static='-Bstatic'
11974 else
11975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11976 fi
11977 ;;
11978
11979 darwin* | rhapsody*)
11980 # PIC is the default on this platform
11981 # Common symbols not allowed in MH_DYLIB files
11982 lt_prog_compiler_pic='-fno-common'
11983 case $cc_basename in
11984 nagfor*)
11985 # NAG Fortran compiler
11986 lt_prog_compiler_wl='-Wl,-Wl,,'
11987 lt_prog_compiler_pic='-PIC'
11988 lt_prog_compiler_static='-Bstatic'
11989 ;;
11990 esac
11991 ;;
11992
11993 mingw* | cygwin* | pw32* | os2* | cegcc*)
11994 # This hack is so that the source file can tell whether it is being
11995 # built for inclusion in a dll (and should export symbols for example).
11996 lt_prog_compiler_pic='-DDLL_EXPORT'
11997 case $host_os in
11998 os2*)
11999 lt_prog_compiler_static='$wl-static'
12000 ;;
12001 esac
12002 ;;
12003
12004 hpux9* | hpux10* | hpux11*)
12005 lt_prog_compiler_wl='-Wl,'
12006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12007 # not for PA HP-UX.
12008 case $host_cpu in
12009 hppa*64*|ia64*)
12010 # +Z the default
12011 ;;
12012 *)
12013 lt_prog_compiler_pic='+Z'
12014 ;;
12015 esac
12016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12017 lt_prog_compiler_static='$wl-a ${wl}archive'
12018 ;;
12019
12020 irix5* | irix6* | nonstopux*)
12021 lt_prog_compiler_wl='-Wl,'
12022 # PIC (with -KPIC) is the default.
12023 lt_prog_compiler_static='-non_shared'
12024 ;;
12025
12026 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12027 case $cc_basename in
12028 # old Intel for x86_64, which still supported -KPIC.
12029 ecc*)
12030 lt_prog_compiler_wl='-Wl,'
12031 lt_prog_compiler_pic='-KPIC'
12032 lt_prog_compiler_static='-static'
12033 ;;
12034 # icc used to be incompatible with GCC.
12035 # ICC 10 doesn't accept -KPIC any more.
12036 icc* | ifort*)
12037 lt_prog_compiler_wl='-Wl,'
12038 lt_prog_compiler_pic='-fPIC'
12039 lt_prog_compiler_static='-static'
12040 ;;
12041 # Lahey Fortran 8.1.
12042 lf95*)
12043 lt_prog_compiler_wl='-Wl,'
12044 lt_prog_compiler_pic='--shared'
12045 lt_prog_compiler_static='--static'
12046 ;;
12047 nagfor*)
12048 # NAG Fortran compiler
12049 lt_prog_compiler_wl='-Wl,-Wl,,'
12050 lt_prog_compiler_pic='-PIC'
12051 lt_prog_compiler_static='-Bstatic'
12052 ;;
12053 tcc*)
12054 # Fabrice Bellard et al's Tiny C Compiler
12055 lt_prog_compiler_wl='-Wl,'
12056 lt_prog_compiler_pic='-fPIC'
12057 lt_prog_compiler_static='-static'
12058 ;;
12059 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12060 # Portland Group compilers (*not* the Pentium gcc compiler,
12061 # which looks to be a dead project)
12062 lt_prog_compiler_wl='-Wl,'
12063 lt_prog_compiler_pic='-fpic'
12064 lt_prog_compiler_static='-Bstatic'
12065 ;;
12066 ccc*)
12067 lt_prog_compiler_wl='-Wl,'
12068 # All Alpha code is PIC.
12069 lt_prog_compiler_static='-non_shared'
12070 ;;
12071 xl* | bgxl* | bgf* | mpixl*)
12072 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12073 lt_prog_compiler_wl='-Wl,'
12074 lt_prog_compiler_pic='-qpic'
12075 lt_prog_compiler_static='-qstaticlink'
12076 ;;
12077 *)
12078 case `$CC -V 2>&1 | sed 5q` in
12079 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12080 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12081 lt_prog_compiler_pic='-KPIC'
12082 lt_prog_compiler_static='-Bstatic'
12083 lt_prog_compiler_wl=''
12084 ;;
12085 *Sun\ F* | *Sun*Fortran*)
12086 lt_prog_compiler_pic='-KPIC'
12087 lt_prog_compiler_static='-Bstatic'
12088 lt_prog_compiler_wl='-Qoption ld '
12089 ;;
12090 *Sun\ C*)
12091 # Sun C 5.9
12092 lt_prog_compiler_pic='-KPIC'
12093 lt_prog_compiler_static='-Bstatic'
12094 lt_prog_compiler_wl='-Wl,'
12095 ;;
12096 *Intel*\ [CF]*Compiler*)
12097 lt_prog_compiler_wl='-Wl,'
12098 lt_prog_compiler_pic='-fPIC'
12099 lt_prog_compiler_static='-static'
12100 ;;
12101 *Portland\ Group*)
12102 lt_prog_compiler_wl='-Wl,'
12103 lt_prog_compiler_pic='-fpic'
12104 lt_prog_compiler_static='-Bstatic'
12105 ;;
12106 esac
12107 ;;
12108 esac
12109 ;;
12110
12111 newsos6)
12112 lt_prog_compiler_pic='-KPIC'
12113 lt_prog_compiler_static='-Bstatic'
12114 ;;
12115
12116 *nto* | *qnx*)
12117 # QNX uses GNU C++, but need to define -shared option too, otherwise
12118 # it will coredump.
12119 lt_prog_compiler_pic='-fPIC -shared'
12120 ;;
12121
12122 osf3* | osf4* | osf5*)
12123 lt_prog_compiler_wl='-Wl,'
12124 # All OSF/1 code is PIC.
12125 lt_prog_compiler_static='-non_shared'
12126 ;;
12127
12128 rdos*)
12129 lt_prog_compiler_static='-non_shared'
12130 ;;
12131
12132 solaris*)
12133 lt_prog_compiler_pic='-KPIC'
12134 lt_prog_compiler_static='-Bstatic'
12135 case $cc_basename in
12136 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12137 lt_prog_compiler_wl='-Qoption ld ';;
12138 *)
12139 lt_prog_compiler_wl='-Wl,';;
12140 esac
12141 ;;
12142
12143 sunos4*)
12144 lt_prog_compiler_wl='-Qoption ld '
12145 lt_prog_compiler_pic='-PIC'
12146 lt_prog_compiler_static='-Bstatic'
12147 ;;
12148
12149 sysv4 | sysv4.2uw2* | sysv4.3*)
12150 lt_prog_compiler_wl='-Wl,'
12151 lt_prog_compiler_pic='-KPIC'
12152 lt_prog_compiler_static='-Bstatic'
12153 ;;
12154
12155 sysv4*MP*)
12156 if test -d /usr/nec; then
12157 lt_prog_compiler_pic='-Kconform_pic'
12158 lt_prog_compiler_static='-Bstatic'
12159 fi
12160 ;;
12161
12162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12163 lt_prog_compiler_wl='-Wl,'
12164 lt_prog_compiler_pic='-KPIC'
12165 lt_prog_compiler_static='-Bstatic'
12166 ;;
12167
12168 unicos*)
12169 lt_prog_compiler_wl='-Wl,'
12170 lt_prog_compiler_can_build_shared=no
12171 ;;
12172
12173 uts4*)
12174 lt_prog_compiler_pic='-pic'
12175 lt_prog_compiler_static='-Bstatic'
12176 ;;
12177
12178 *)
12179 lt_prog_compiler_can_build_shared=no
12180 ;;
12181 esac
12182 fi
12183
12184case $host_os in
12185 # For platforms that do not support PIC, -DPIC is meaningless:
12186 *djgpp*)
12187 lt_prog_compiler_pic=
12188 ;;
12189 *)
12190 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12191 ;;
12192esac
12193
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12195$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12196if ${lt_cv_prog_compiler_pic+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198else
12199 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12200fi
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12202$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12203lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12204
12205#
12206# Check to make sure the PIC flag actually works.
12207#
12208if test -n "$lt_prog_compiler_pic"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12210$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12211if ${lt_cv_prog_compiler_pic_works+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213else
12214 lt_cv_prog_compiler_pic_works=no
12215 ac_outfile=conftest.$ac_objext
12216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12217 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12218 # Insert the option either (1) after the last *FLAGS variable, or
12219 # (2) before a word containing "conftest.", or (3) at the end.
12220 # Note that $ac_compile itself does not contain backslashes and begins
12221 # with a dollar sign (not a hyphen), so the echo should work correctly.
12222 # The option is referenced via a variable to avoid confusing sed.
12223 lt_compile=`echo "$ac_compile" | $SED \
12224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12226 -e 's:$: $lt_compiler_flag:'`
12227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12228 (eval "$lt_compile" 2>conftest.err)
12229 ac_status=$?
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 if (exit $ac_status) && test -s "$ac_outfile"; then
12233 # The compiler can only warn and ignore the option if not recognized
12234 # So say no if there are warnings other than the usual output.
12235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12238 lt_cv_prog_compiler_pic_works=yes
12239 fi
12240 fi
12241 $RM conftest*
12242
12243fi
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12245$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12246
12247if test yes = "$lt_cv_prog_compiler_pic_works"; then
12248 case $lt_prog_compiler_pic in
12249 "" | " "*) ;;
12250 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12251 esac
12252else
12253 lt_prog_compiler_pic=
12254 lt_prog_compiler_can_build_shared=no
12255fi
12256
12257fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269#
12270# Check to make sure the static flag actually works.
12271#
12272wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12274$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12275if ${lt_cv_prog_compiler_static_works+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277else
12278 lt_cv_prog_compiler_static_works=no
12279 save_LDFLAGS=$LDFLAGS
12280 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12283 # The linker can only warn and ignore the option if not recognized
12284 # So say no if there are warnings
12285 if test -s conftest.err; then
12286 # Append any errors to the config.log.
12287 cat conftest.err 1>&5
12288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12290 if diff conftest.exp conftest.er2 >/dev/null; then
12291 lt_cv_prog_compiler_static_works=yes
12292 fi
12293 else
12294 lt_cv_prog_compiler_static_works=yes
12295 fi
12296 fi
12297 $RM -r conftest*
12298 LDFLAGS=$save_LDFLAGS
12299
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12302$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12303
12304if test yes = "$lt_cv_prog_compiler_static_works"; then
12305 :
12306else
12307 lt_prog_compiler_static=
12308fi
12309
12310
12311
12312
12313
12314
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12317$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12318if ${lt_cv_prog_compiler_c_o+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320else
12321 lt_cv_prog_compiler_c_o=no
12322 $RM -r conftest 2>/dev/null
12323 mkdir conftest
12324 cd conftest
12325 mkdir out
12326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12327
12328 lt_compiler_flag="-o out/conftest2.$ac_objext"
12329 # Insert the option either (1) after the last *FLAGS variable, or
12330 # (2) before a word containing "conftest.", or (3) at the end.
12331 # Note that $ac_compile itself does not contain backslashes and begins
12332 # with a dollar sign (not a hyphen), so the echo should work correctly.
12333 lt_compile=`echo "$ac_compile" | $SED \
12334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12336 -e 's:$: $lt_compiler_flag:'`
12337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12338 (eval "$lt_compile" 2>out/conftest.err)
12339 ac_status=$?
12340 cat out/conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12343 then
12344 # The compiler can only warn and ignore the option if not recognized
12345 # So say no if there are warnings
12346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12349 lt_cv_prog_compiler_c_o=yes
12350 fi
12351 fi
12352 chmod u+w . 2>&5
12353 $RM conftest*
12354 # SGI C++ compiler will create directory out/ii_files/ for
12355 # template instantiation
12356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12357 $RM out/* && rmdir out
12358 cd ..
12359 $RM -r conftest
12360 $RM conftest*
12361
12362fi
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12364$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12365
12366
12367
12368
12369
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12372$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12373if ${lt_cv_prog_compiler_c_o+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375else
12376 lt_cv_prog_compiler_c_o=no
12377 $RM -r conftest 2>/dev/null
12378 mkdir conftest
12379 cd conftest
12380 mkdir out
12381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12382
12383 lt_compiler_flag="-o out/conftest2.$ac_objext"
12384 # Insert the option either (1) after the last *FLAGS variable, or
12385 # (2) before a word containing "conftest.", or (3) at the end.
12386 # Note that $ac_compile itself does not contain backslashes and begins
12387 # with a dollar sign (not a hyphen), so the echo should work correctly.
12388 lt_compile=`echo "$ac_compile" | $SED \
12389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12391 -e 's:$: $lt_compiler_flag:'`
12392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12393 (eval "$lt_compile" 2>out/conftest.err)
12394 ac_status=$?
12395 cat out/conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12398 then
12399 # The compiler can only warn and ignore the option if not recognized
12400 # So say no if there are warnings
12401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12404 lt_cv_prog_compiler_c_o=yes
12405 fi
12406 fi
12407 chmod u+w . 2>&5
12408 $RM conftest*
12409 # SGI C++ compiler will create directory out/ii_files/ for
12410 # template instantiation
12411 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12412 $RM out/* && rmdir out
12413 cd ..
12414 $RM -r conftest
12415 $RM conftest*
12416
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12419$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12420
12421
12422
12423
12424hard_links=nottested
12425if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12426 # do not overwrite the value of need_locks provided by the user
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12428$as_echo_n "checking if we can lock with hard links... " >&6; }
12429 hard_links=yes
12430 $RM conftest*
12431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12432 touch conftest.a
12433 ln conftest.a conftest.b 2>&5 || hard_links=no
12434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12436$as_echo "$hard_links" >&6; }
12437 if test no = "$hard_links"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12439$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12440 need_locks=warn
12441 fi
12442else
12443 need_locks=no
12444fi
12445
12446
12447
12448
12449
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12452$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12453
12454 runpath_var=
12455 allow_undefined_flag=
12456 always_export_symbols=no
12457 archive_cmds=
12458 archive_expsym_cmds=
12459 compiler_needs_object=no
12460 enable_shared_with_static_runtimes=no
12461 export_dynamic_flag_spec=
12462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12463 hardcode_automatic=no
12464 hardcode_direct=no
12465 hardcode_direct_absolute=no
12466 hardcode_libdir_flag_spec=
12467 hardcode_libdir_separator=
12468 hardcode_minus_L=no
12469 hardcode_shlibpath_var=unsupported
12470 inherit_rpath=no
12471 link_all_deplibs=unknown
12472 module_cmds=
12473 module_expsym_cmds=
12474 old_archive_from_new_cmds=
12475 old_archive_from_expsyms_cmds=
12476 thread_safe_flag_spec=
12477 whole_archive_flag_spec=
12478 # include_expsyms should be a list of space-separated symbols to be *always*
12479 # included in the symbol list
12480 include_expsyms=
12481 # exclude_expsyms can be an extended regexp of symbols to exclude
12482 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12483 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12484 # as well as any symbol that contains 'd'.
12485 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12486 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12487 # platforms (ab)use it in PIC code, but their linkers get confused if
12488 # the symbol is explicitly referenced. Since portable code cannot
12489 # rely on this symbol name, it's probably fine to never include it in
12490 # preloaded symbol tables.
12491 # Exclude shared library initialization/finalization symbols.
12492 extract_expsyms_cmds=
12493
12494 case $host_os in
12495 cygwin* | mingw* | pw32* | cegcc*)
12496 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12497 # When not using gcc, we currently assume that we are using
12498 # Microsoft Visual C++.
12499 if test yes != "$GCC"; then
12500 with_gnu_ld=no
12501 fi
12502 ;;
12503 interix*)
12504 # we just hope/assume this is gcc and not c89 (= MSVC++)
12505 with_gnu_ld=yes
12506 ;;
12507 openbsd* | bitrig*)
12508 with_gnu_ld=no
12509 ;;
12510 linux* | k*bsd*-gnu | gnu*)
12511 link_all_deplibs=no
12512 ;;
12513 esac
12514
12515 ld_shlibs=yes
12516
12517 # On some targets, GNU ld is compatible enough with the native linker
12518 # that we're better off using the native interface for both.
12519 lt_use_gnu_ld_interface=no
12520 if test yes = "$with_gnu_ld"; then
12521 case $host_os in
12522 aix*)
12523 # The AIX port of GNU ld has always aspired to compatibility
12524 # with the native linker. However, as the warning in the GNU ld
12525 # block says, versions before 2.19.5* couldn't really create working
12526 # shared libraries, regardless of the interface used.
12527 case `$LD -v 2>&1` in
12528 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12529 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12530 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12531 *)
12532 lt_use_gnu_ld_interface=yes
12533 ;;
12534 esac
12535 ;;
12536 *)
12537 lt_use_gnu_ld_interface=yes
12538 ;;
12539 esac
12540 fi
12541
12542 if test yes = "$lt_use_gnu_ld_interface"; then
12543 # If archive_cmds runs LD, not CC, wlarc should be empty
12544 wlarc='$wl'
12545
12546 # Set some defaults for GNU ld with shared library support. These
12547 # are reset later if shared libraries are not supported. Putting them
12548 # here allows them to be overridden if necessary.
12549 runpath_var=LD_RUN_PATH
12550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12551 export_dynamic_flag_spec='$wl--export-dynamic'
12552 # ancient GNU ld didn't support --whole-archive et. al.
12553 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12554 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12555 else
12556 whole_archive_flag_spec=
12557 fi
12558 supports_anon_versioning=no
12559 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12560 *GNU\ gold*) supports_anon_versioning=yes ;;
12561 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12562 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12563 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12564 *\ 2.11.*) ;; # other 2.11 versions
12565 *) supports_anon_versioning=yes ;;
12566 esac
12567
12568 # See if GNU ld supports shared libraries.
12569 case $host_os in
12570 aix[3-9]*)
12571 # On AIX/PPC, the GNU linker is very broken
12572 if test ia64 != "$host_cpu"; then
12573 ld_shlibs=no
12574 cat <<_LT_EOF 1>&2
12575
12576*** Warning: the GNU linker, at least up to release 2.19, is reported
12577*** to be unable to reliably create shared libraries on AIX.
12578*** Therefore, libtool is disabling shared libraries support. If you
12579*** really care for shared libraries, you may want to install binutils
12580*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12581*** You will then need to restart the configuration process.
12582
12583_LT_EOF
12584 fi
12585 ;;
12586
12587 amigaos*)
12588 case $host_cpu in
12589 powerpc)
12590 # see comment about AmigaOS4 .so support
12591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12592 archive_expsym_cmds=''
12593 ;;
12594 m68k)
12595 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)'
12596 hardcode_libdir_flag_spec='-L$libdir'
12597 hardcode_minus_L=yes
12598 ;;
12599 esac
12600 ;;
12601
12602 beos*)
12603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12604 allow_undefined_flag=unsupported
12605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12606 # support --undefined. This deserves some investigation. FIXME
12607 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12608 else
12609 ld_shlibs=no
12610 fi
12611 ;;
12612
12613 cygwin* | mingw* | pw32* | cegcc*)
12614 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12615 # as there is no search path for DLLs.
12616 hardcode_libdir_flag_spec='-L$libdir'
12617 export_dynamic_flag_spec='$wl--export-all-symbols'
12618 allow_undefined_flag=unsupported
12619 always_export_symbols=no
12620 enable_shared_with_static_runtimes=yes
12621 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'
12622 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12623
12624 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12626 # If the export-symbols file already is a .def file, use it as
12627 # is; otherwise, prepend EXPORTS...
12628 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12629 cp $export_symbols $output_objdir/$soname.def;
12630 else
12631 echo EXPORTS > $output_objdir/$soname.def;
12632 cat $export_symbols >> $output_objdir/$soname.def;
12633 fi~
12634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12635 else
12636 ld_shlibs=no
12637 fi
12638 ;;
12639
12640 haiku*)
12641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12642 link_all_deplibs=yes
12643 ;;
12644
12645 os2*)
12646 hardcode_libdir_flag_spec='-L$libdir'
12647 hardcode_minus_L=yes
12648 allow_undefined_flag=unsupported
12649 shrext_cmds=.dll
12650 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12651 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12652 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12653 $ECHO EXPORTS >> $output_objdir/$libname.def~
12654 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12656 emximp -o $lib $output_objdir/$libname.def'
12657 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12658 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12659 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12660 $ECHO EXPORTS >> $output_objdir/$libname.def~
12661 prefix_cmds="$SED"~
12662 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12663 prefix_cmds="$prefix_cmds -e 1d";
12664 fi~
12665 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12666 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12667 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12668 emximp -o $lib $output_objdir/$libname.def'
12669 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12670 enable_shared_with_static_runtimes=yes
12671 ;;
12672
12673 interix[3-9]*)
12674 hardcode_direct=no
12675 hardcode_shlibpath_var=no
12676 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12677 export_dynamic_flag_spec='$wl-E'
12678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12679 # Instead, shared libraries are loaded at an image base (0x10000000 by
12680 # default) and relocated if they conflict, which is a slow very memory
12681 # consuming and fragmenting process. To avoid this, we pick a random,
12682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12685 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'
12686 ;;
12687
12688 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12689 tmp_diet=no
12690 if test linux-dietlibc = "$host_os"; then
12691 case $cc_basename in
12692 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12693 esac
12694 fi
12695 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12696 && test no = "$tmp_diet"
12697 then
12698 tmp_addflag=' $pic_flag'
12699 tmp_sharedflag='-shared'
12700 case $cc_basename,$host_cpu in
12701 pgcc*) # Portland Group C compiler
12702 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'
12703 tmp_addflag=' $pic_flag'
12704 ;;
12705 pgf77* | pgf90* | pgf95* | pgfortran*)
12706 # Portland Group f77 and f90 compilers
12707 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'
12708 tmp_addflag=' $pic_flag -Mnomain' ;;
12709 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12710 tmp_addflag=' -i_dynamic' ;;
12711 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12712 tmp_addflag=' -i_dynamic -nofor_main' ;;
12713 ifc* | ifort*) # Intel Fortran compiler
12714 tmp_addflag=' -nofor_main' ;;
12715 lf95*) # Lahey Fortran 8.1
12716 whole_archive_flag_spec=
12717 tmp_sharedflag='--shared' ;;
12718 nagfor*) # NAGFOR 5.3
12719 tmp_sharedflag='-Wl,-shared' ;;
12720 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12721 tmp_sharedflag='-qmkshrobj'
12722 tmp_addflag= ;;
12723 nvcc*) # Cuda Compiler Driver 2.2
12724 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'
12725 compiler_needs_object=yes
12726 ;;
12727 esac
12728 case `$CC -V 2>&1 | sed 5q` in
12729 *Sun\ C*) # Sun C 5.9
12730 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'
12731 compiler_needs_object=yes
12732 tmp_sharedflag='-G' ;;
12733 *Sun\ F*) # Sun Fortran 8.3
12734 tmp_sharedflag='-G' ;;
12735 esac
12736 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12737
12738 if test yes = "$supports_anon_versioning"; then
12739 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12741 echo "local: *; };" >> $output_objdir/$libname.ver~
12742 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12743 fi
12744
12745 case $cc_basename in
12746 tcc*)
12747 export_dynamic_flag_spec='-rdynamic'
12748 ;;
12749 xlf* | bgf* | bgxlf* | mpixlf*)
12750 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12751 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12753 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12754 if test yes = "$supports_anon_versioning"; then
12755 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12757 echo "local: *; };" >> $output_objdir/$libname.ver~
12758 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12759 fi
12760 ;;
12761 esac
12762 else
12763 ld_shlibs=no
12764 fi
12765 ;;
12766
12767 netbsd* | netbsdelf*-gnu)
12768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12770 wlarc=
12771 else
12772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12773 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12774 fi
12775 ;;
12776
12777 solaris*)
12778 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12779 ld_shlibs=no
12780 cat <<_LT_EOF 1>&2
12781
12782*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12783*** create shared libraries on Solaris systems. Therefore, libtool
12784*** is disabling shared libraries support. We urge you to upgrade GNU
12785*** binutils to release 2.9.1 or newer. Another option is to modify
12786*** your PATH or compiler configuration so that the native linker is
12787*** used, and then restart.
12788
12789_LT_EOF
12790 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12792 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12793 else
12794 ld_shlibs=no
12795 fi
12796 ;;
12797
12798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12799 case `$LD -v 2>&1` in
12800 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12801 ld_shlibs=no
12802 cat <<_LT_EOF 1>&2
12803
12804*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12805*** reliably create shared libraries on SCO systems. Therefore, libtool
12806*** is disabling shared libraries support. We urge you to upgrade GNU
12807*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12808*** your PATH or compiler configuration so that the native linker is
12809*** used, and then restart.
12810
12811_LT_EOF
12812 ;;
12813 *)
12814 # For security reasons, it is highly recommended that you always
12815 # use absolute paths for naming shared libraries, and exclude the
12816 # DT_RUNPATH tag from executables and libraries. But doing so
12817 # requires that you compile everything twice, which is a pain.
12818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12822 else
12823 ld_shlibs=no
12824 fi
12825 ;;
12826 esac
12827 ;;
12828
12829 sunos4*)
12830 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12831 wlarc=
12832 hardcode_direct=yes
12833 hardcode_shlibpath_var=no
12834 ;;
12835
12836 *)
12837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12839 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12840 else
12841 ld_shlibs=no
12842 fi
12843 ;;
12844 esac
12845
12846 if test no = "$ld_shlibs"; then
12847 runpath_var=
12848 hardcode_libdir_flag_spec=
12849 export_dynamic_flag_spec=
12850 whole_archive_flag_spec=
12851 fi
12852 else
12853 # PORTME fill in a description of your system's linker (not GNU ld)
12854 case $host_os in
12855 aix3*)
12856 allow_undefined_flag=unsupported
12857 always_export_symbols=yes
12858 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'
12859 # Note: this linker hardcodes the directories in LIBPATH if there
12860 # are no directories specified by -L.
12861 hardcode_minus_L=yes
12862 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12863 # Neither direct hardcoding nor static linking is supported with a
12864 # broken collect2.
12865 hardcode_direct=unsupported
12866 fi
12867 ;;
12868
12869 aix[4-9]*)
12870 if test ia64 = "$host_cpu"; then
12871 # On IA64, the linker does run time linking by default, so we don't
12872 # have to do anything special.
12873 aix_use_runtimelinking=no
12874 exp_sym_flag='-Bexport'
12875 no_entry_flag=
12876 else
12877 # If we're using GNU nm, then we don't want the "-C" option.
12878 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12879 # Without the "-l" option, or with the "-B" option, AIX nm treats
12880 # weak defined symbols like other global defined symbols, whereas
12881 # GNU nm marks them as "W".
12882 # While the 'weak' keyword is ignored in the Export File, we need
12883 # it in the Import File for the 'aix-soname' feature, so we have
12884 # to replace the "-B" option with "-P" for AIX nm.
12885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12886 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'
12887 else
12888 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'
12889 fi
12890 aix_use_runtimelinking=no
12891
12892 # Test if we are trying to use run time linking or normal
12893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12894 # have runtime linking enabled, and use it for executables.
12895 # For shared libraries, we enable/disable runtime linking
12896 # depending on the kind of the shared library created -
12897 # when "with_aix_soname,aix_use_runtimelinking" is:
12898 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12899 # "aix,yes" lib.so shared, rtl:yes, for executables
12900 # lib.a static archive
12901 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12902 # lib.a(lib.so.V) shared, rtl:no, for executables
12903 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12904 # lib.a(lib.so.V) shared, rtl:no
12905 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12906 # lib.a static archive
12907 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12908 for ld_flag in $LDFLAGS; do
12909 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12910 aix_use_runtimelinking=yes
12911 break
12912 fi
12913 done
12914 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12915 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12916 # so we don't have lib.a shared libs to link our executables.
12917 # We have to force runtime linking in this case.
12918 aix_use_runtimelinking=yes
12919 LDFLAGS="$LDFLAGS -Wl,-brtl"
12920 fi
12921 ;;
12922 esac
12923
12924 exp_sym_flag='-bexport'
12925 no_entry_flag='-bnoentry'
12926 fi
12927
12928 # When large executables or shared objects are built, AIX ld can
12929 # have problems creating the table of contents. If linking a library
12930 # or program results in "error TOC overflow" add -mminimal-toc to
12931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12933
12934 archive_cmds=''
12935 hardcode_direct=yes
12936 hardcode_direct_absolute=yes
12937 hardcode_libdir_separator=':'
12938 link_all_deplibs=yes
12939 file_list_spec='$wl-f,'
12940 case $with_aix_soname,$aix_use_runtimelinking in
12941 aix,*) ;; # traditional, no import file
12942 svr4,* | *,yes) # use import file
12943 # The Import File defines what to hardcode.
12944 hardcode_direct=no
12945 hardcode_direct_absolute=no
12946 ;;
12947 esac
12948
12949 if test yes = "$GCC"; then
12950 case $host_os in aix4.[012]|aix4.[012].*)
12951 # We only want to do this on AIX 4.2 and lower, the check
12952 # below for broken collect2 doesn't work under 4.3+
12953 collect2name=`$CC -print-prog-name=collect2`
12954 if test -f "$collect2name" &&
12955 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12956 then
12957 # We have reworked collect2
12958 :
12959 else
12960 # We have old collect2
12961 hardcode_direct=unsupported
12962 # It fails to find uninstalled libraries when the uninstalled
12963 # path is not listed in the libpath. Setting hardcode_minus_L
12964 # to unsupported forces relinking
12965 hardcode_minus_L=yes
12966 hardcode_libdir_flag_spec='-L$libdir'
12967 hardcode_libdir_separator=
12968 fi
12969 ;;
12970 esac
12971 shared_flag='-shared'
12972 if test yes = "$aix_use_runtimelinking"; then
12973 shared_flag="$shared_flag "'$wl-G'
12974 fi
12975 # Need to ensure runtime linking is disabled for the traditional
12976 # shared library, or the linker may eventually find shared libraries
12977 # /with/ Import File - we do not want to mix them.
12978 shared_flag_aix='-shared'
12979 shared_flag_svr4='-shared $wl-G'
12980 else
12981 # not using gcc
12982 if test ia64 = "$host_cpu"; then
12983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12984 # chokes on -Wl,-G. The following line is correct:
12985 shared_flag='-G'
12986 else
12987 if test yes = "$aix_use_runtimelinking"; then
12988 shared_flag='$wl-G'
12989 else
12990 shared_flag='$wl-bM:SRE'
12991 fi
12992 shared_flag_aix='$wl-bM:SRE'
12993 shared_flag_svr4='$wl-G'
12994 fi
12995 fi
12996
12997 export_dynamic_flag_spec='$wl-bexpall'
12998 # It seems that -bexpall does not export symbols beginning with
12999 # underscore (_), so it is better to generate a list of symbols to export.
13000 always_export_symbols=yes
13001 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13002 # Warning - without using the other runtime loading flags (-brtl),
13003 # -berok will link without error, but may produce a broken library.
13004 allow_undefined_flag='-berok'
13005 # Determine the default libpath from the value encoded in an
13006 # empty executable.
13007 if test set = "${lt_cv_aix_libpath+set}"; then
13008 aix_libpath=$lt_cv_aix_libpath
13009else
13010 if ${lt_cv_aix_libpath_+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012else
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h. */
13015
13016int main (void)
13017{
13018
13019 ;
13020 return 0;
13021}
13022_ACEOF
13023if ac_fn_c_try_link "$LINENO"; then :
13024
13025 lt_aix_libpath_sed='
13026 /Import File Strings/,/^$/ {
13027 /^0/ {
13028 s/^0 *\([^ ]*\) *$/\1/
13029 p
13030 }
13031 }'
13032 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13033 # Check for a 64-bit object if we didn't find anything.
13034 if test -z "$lt_cv_aix_libpath_"; then
13035 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13036 fi
13037fi
13038rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 if test -z "$lt_cv_aix_libpath_"; then
13041 lt_cv_aix_libpath_=/usr/lib:/lib
13042 fi
13043
13044fi
13045
13046 aix_libpath=$lt_cv_aix_libpath_
13047fi
13048
13049 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13050 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
13051 else
13052 if test ia64 = "$host_cpu"; then
13053 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13054 allow_undefined_flag="-z nodefs"
13055 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"
13056 else
13057 # Determine the default libpath from the value encoded in an
13058 # empty executable.
13059 if test set = "${lt_cv_aix_libpath+set}"; then
13060 aix_libpath=$lt_cv_aix_libpath
13061else
13062 if ${lt_cv_aix_libpath_+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h. */
13067
13068int main (void)
13069{
13070
13071 ;
13072 return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076
13077 lt_aix_libpath_sed='
13078 /Import File Strings/,/^$/ {
13079 /^0/ {
13080 s/^0 *\([^ ]*\) *$/\1/
13081 p
13082 }
13083 }'
13084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 # Check for a 64-bit object if we didn't find anything.
13086 if test -z "$lt_cv_aix_libpath_"; then
13087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13088 fi
13089fi
13090rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092 if test -z "$lt_cv_aix_libpath_"; then
13093 lt_cv_aix_libpath_=/usr/lib:/lib
13094 fi
13095
13096fi
13097
13098 aix_libpath=$lt_cv_aix_libpath_
13099fi
13100
13101 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13102 # Warning - without using the other run time loading flags,
13103 # -berok will link without error, but may produce a broken library.
13104 no_undefined_flag=' $wl-bernotok'
13105 allow_undefined_flag=' $wl-berok'
13106 if test yes = "$with_gnu_ld"; then
13107 # We only use this code for GNU lds that support --whole-archive.
13108 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13109 else
13110 # Exported symbols can be pulled into shared objects from archives
13111 whole_archive_flag_spec='$convenience'
13112 fi
13113 archive_cmds_need_lc=yes
13114 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13115 # -brtl affects multiple linker settings, -berok does not and is overridden later
13116 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13117 if test svr4 != "$with_aix_soname"; then
13118 # This is similar to how AIX traditionally builds its shared libraries.
13119 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'
13120 fi
13121 if test aix != "$with_aix_soname"; then
13122 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'
13123 else
13124 # used by -dlpreopen to get the symbols
13125 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13126 fi
13127 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13128 fi
13129 fi
13130 ;;
13131
13132 amigaos*)
13133 case $host_cpu in
13134 powerpc)
13135 # see comment about AmigaOS4 .so support
13136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13137 archive_expsym_cmds=''
13138 ;;
13139 m68k)
13140 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)'
13141 hardcode_libdir_flag_spec='-L$libdir'
13142 hardcode_minus_L=yes
13143 ;;
13144 esac
13145 ;;
13146
13147 bsdi[45]*)
13148 export_dynamic_flag_spec=-rdynamic
13149 ;;
13150
13151 cygwin* | mingw* | pw32* | cegcc*)
13152 # When not using gcc, we currently assume that we are using
13153 # Microsoft Visual C++.
13154 # hardcode_libdir_flag_spec is actually meaningless, as there is
13155 # no search path for DLLs.
13156 case $cc_basename in
13157 cl*)
13158 # Native MSVC
13159 hardcode_libdir_flag_spec=' '
13160 allow_undefined_flag=unsupported
13161 always_export_symbols=yes
13162 file_list_spec='@'
13163 # Tell ltmain to make .lib files, not .a files.
13164 libext=lib
13165 # Tell ltmain to make .dll files, not .so files.
13166 shrext_cmds=.dll
13167 # FIXME: Setting linknames here is a bad hack.
13168 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13169 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13170 cp "$export_symbols" "$output_objdir/$soname.def";
13171 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13172 else
13173 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13174 fi~
13175 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13176 linknames='
13177 # The linker will not automatically build a static lib if we build a DLL.
13178 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13179 enable_shared_with_static_runtimes=yes
13180 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13182 # Don't use ranlib
13183 old_postinstall_cmds='chmod 644 $oldlib'
13184 postlink_cmds='lt_outputfile="@OUTPUT@"~
13185 lt_tool_outputfile="@TOOL_OUTPUT@"~
13186 case $lt_outputfile in
13187 *.exe|*.EXE) ;;
13188 *)
13189 lt_outputfile=$lt_outputfile.exe
13190 lt_tool_outputfile=$lt_tool_outputfile.exe
13191 ;;
13192 esac~
13193 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13195 $RM "$lt_outputfile.manifest";
13196 fi'
13197 ;;
13198 *)
13199 # Assume MSVC wrapper
13200 hardcode_libdir_flag_spec=' '
13201 allow_undefined_flag=unsupported
13202 # Tell ltmain to make .lib files, not .a files.
13203 libext=lib
13204 # Tell ltmain to make .dll files, not .so files.
13205 shrext_cmds=.dll
13206 # FIXME: Setting linknames here is a bad hack.
13207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13208 # The linker will automatically build a .lib file if we build a DLL.
13209 old_archive_from_new_cmds='true'
13210 # FIXME: Should let the user specify the lib program.
13211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13212 enable_shared_with_static_runtimes=yes
13213 ;;
13214 esac
13215 ;;
13216
13217 darwin* | rhapsody*)
13218
13219
13220 archive_cmds_need_lc=no
13221 hardcode_direct=no
13222 hardcode_automatic=yes
13223 hardcode_shlibpath_var=unsupported
13224 if test yes = "$lt_cv_ld_force_load"; then
13225 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\"`'
13226
13227 else
13228 whole_archive_flag_spec=''
13229 fi
13230 link_all_deplibs=yes
13231 allow_undefined_flag=$_lt_dar_allow_undefined
13232 case $cc_basename in
13233 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13234 *) _lt_dar_can_shared=$GCC ;;
13235 esac
13236 if test yes = "$_lt_dar_can_shared"; then
13237 output_verbose_link_cmd=func_echo_all
13238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13240 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"
13241 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"
13242
13243 else
13244 ld_shlibs=no
13245 fi
13246
13247 ;;
13248
13249 dgux*)
13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 hardcode_libdir_flag_spec='-L$libdir'
13252 hardcode_shlibpath_var=no
13253 ;;
13254
13255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13256 # support. Future versions do this automatically, but an explicit c++rt0.o
13257 # does not break anything, and helps significantly (at the cost of a little
13258 # extra space).
13259 freebsd2.2*)
13260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13261 hardcode_libdir_flag_spec='-R$libdir'
13262 hardcode_direct=yes
13263 hardcode_shlibpath_var=no
13264 ;;
13265
13266 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13267 freebsd2.*)
13268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13269 hardcode_direct=yes
13270 hardcode_minus_L=yes
13271 hardcode_shlibpath_var=no
13272 ;;
13273
13274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13275 freebsd* | dragonfly*)
13276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13277 hardcode_libdir_flag_spec='-R$libdir'
13278 hardcode_direct=yes
13279 hardcode_shlibpath_var=no
13280 ;;
13281
13282 hpux9*)
13283 if test yes = "$GCC"; then
13284 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'
13285 else
13286 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'
13287 fi
13288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13289 hardcode_libdir_separator=:
13290 hardcode_direct=yes
13291
13292 # hardcode_minus_L: Not really in the search PATH,
13293 # but as the default location of the library.
13294 hardcode_minus_L=yes
13295 export_dynamic_flag_spec='$wl-E'
13296 ;;
13297
13298 hpux10*)
13299 if test yes,no = "$GCC,$with_gnu_ld"; then
13300 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13301 else
13302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13303 fi
13304 if test no = "$with_gnu_ld"; then
13305 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13306 hardcode_libdir_separator=:
13307 hardcode_direct=yes
13308 hardcode_direct_absolute=yes
13309 export_dynamic_flag_spec='$wl-E'
13310 # hardcode_minus_L: Not really in the search PATH,
13311 # but as the default location of the library.
13312 hardcode_minus_L=yes
13313 fi
13314 ;;
13315
13316 hpux11*)
13317 if test yes,no = "$GCC,$with_gnu_ld"; then
13318 case $host_cpu in
13319 hppa*64*)
13320 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 ;;
13322 ia64*)
13323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13324 ;;
13325 *)
13326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13327 ;;
13328 esac
13329 else
13330 case $host_cpu in
13331 hppa*64*)
13332 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 ;;
13334 ia64*)
13335 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13336 ;;
13337 *)
13338
13339 # Older versions of the 11.00 compiler do not understand -b yet
13340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13342$as_echo_n "checking if $CC understands -b... " >&6; }
13343if ${lt_cv_prog_compiler__b+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345else
13346 lt_cv_prog_compiler__b=no
13347 save_LDFLAGS=$LDFLAGS
13348 LDFLAGS="$LDFLAGS -b"
13349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13351 # The linker can only warn and ignore the option if not recognized
13352 # So say no if there are warnings
13353 if test -s conftest.err; then
13354 # Append any errors to the config.log.
13355 cat conftest.err 1>&5
13356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358 if diff conftest.exp conftest.er2 >/dev/null; then
13359 lt_cv_prog_compiler__b=yes
13360 fi
13361 else
13362 lt_cv_prog_compiler__b=yes
13363 fi
13364 fi
13365 $RM -r conftest*
13366 LDFLAGS=$save_LDFLAGS
13367
13368fi
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13370$as_echo "$lt_cv_prog_compiler__b" >&6; }
13371
13372if test yes = "$lt_cv_prog_compiler__b"; then
13373 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13374else
13375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13376fi
13377
13378 ;;
13379 esac
13380 fi
13381 if test no = "$with_gnu_ld"; then
13382 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13383 hardcode_libdir_separator=:
13384
13385 case $host_cpu in
13386 hppa*64*|ia64*)
13387 hardcode_direct=no
13388 hardcode_shlibpath_var=no
13389 ;;
13390 *)
13391 hardcode_direct=yes
13392 hardcode_direct_absolute=yes
13393 export_dynamic_flag_spec='$wl-E'
13394
13395 # hardcode_minus_L: Not really in the search PATH,
13396 # but as the default location of the library.
13397 hardcode_minus_L=yes
13398 ;;
13399 esac
13400 fi
13401 ;;
13402
13403 irix5* | irix6* | nonstopux*)
13404 if test yes = "$GCC"; then
13405 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'
13406 # Try to use the -exported_symbol ld option, if it does not
13407 # work, assume that -exports_file does not work either and
13408 # implicitly export all symbols.
13409 # This should be the same for all languages, so no per-tag cache variable.
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13411$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13412if ${lt_cv_irix_exported_symbol+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414else
13415 save_LDFLAGS=$LDFLAGS
13416 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h. */
13419int foo (void) { return 0; }
13420_ACEOF
13421if ac_fn_c_try_link "$LINENO"; then :
13422 lt_cv_irix_exported_symbol=yes
13423else
13424 lt_cv_irix_exported_symbol=no
13425fi
13426rm -f core conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13428 LDFLAGS=$save_LDFLAGS
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13431$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13432 if test yes = "$lt_cv_irix_exported_symbol"; then
13433 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'
13434 fi
13435 link_all_deplibs=no
13436 else
13437 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'
13438 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'
13439 fi
13440 archive_cmds_need_lc='no'
13441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13442 hardcode_libdir_separator=:
13443 inherit_rpath=yes
13444 link_all_deplibs=yes
13445 ;;
13446
13447 linux*)
13448 case $cc_basename in
13449 tcc*)
13450 # Fabrice Bellard et al's Tiny C Compiler
13451 ld_shlibs=yes
13452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13453 ;;
13454 esac
13455 ;;
13456
13457 netbsd* | netbsdelf*-gnu)
13458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13460 else
13461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13462 fi
13463 hardcode_libdir_flag_spec='-R$libdir'
13464 hardcode_direct=yes
13465 hardcode_shlibpath_var=no
13466 ;;
13467
13468 newsos6)
13469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_direct=yes
13471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13472 hardcode_libdir_separator=:
13473 hardcode_shlibpath_var=no
13474 ;;
13475
13476 *nto* | *qnx*)
13477 ;;
13478
13479 openbsd* | bitrig*)
13480 if test -f /usr/libexec/ld.so; then
13481 hardcode_direct=yes
13482 hardcode_shlibpath_var=no
13483 hardcode_direct_absolute=yes
13484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13487 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13488 export_dynamic_flag_spec='$wl-E'
13489 else
13490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13491 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13492 fi
13493 else
13494 ld_shlibs=no
13495 fi
13496 ;;
13497
13498 os2*)
13499 hardcode_libdir_flag_spec='-L$libdir'
13500 hardcode_minus_L=yes
13501 allow_undefined_flag=unsupported
13502 shrext_cmds=.dll
13503 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13506 $ECHO EXPORTS >> $output_objdir/$libname.def~
13507 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13509 emximp -o $lib $output_objdir/$libname.def'
13510 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13511 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13512 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13513 $ECHO EXPORTS >> $output_objdir/$libname.def~
13514 prefix_cmds="$SED"~
13515 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13516 prefix_cmds="$prefix_cmds -e 1d";
13517 fi~
13518 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13519 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13520 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13521 emximp -o $lib $output_objdir/$libname.def'
13522 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13523 enable_shared_with_static_runtimes=yes
13524 ;;
13525
13526 osf3*)
13527 if test yes = "$GCC"; then
13528 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13529 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'
13530 else
13531 allow_undefined_flag=' -expect_unresolved \*'
13532 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'
13533 fi
13534 archive_cmds_need_lc='no'
13535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13536 hardcode_libdir_separator=:
13537 ;;
13538
13539 osf4* | osf5*) # as osf3* with the addition of -msym flag
13540 if test yes = "$GCC"; then
13541 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13542 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'
13543 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13544 else
13545 allow_undefined_flag=' -expect_unresolved \*'
13546 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'
13547 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~
13548 $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'
13549
13550 # Both c and cxx compiler support -rpath directly
13551 hardcode_libdir_flag_spec='-rpath $libdir'
13552 fi
13553 archive_cmds_need_lc='no'
13554 hardcode_libdir_separator=:
13555 ;;
13556
13557 solaris*)
13558 no_undefined_flag=' -z defs'
13559 if test yes = "$GCC"; then
13560 wlarc='$wl'
13561 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13563 $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'
13564 else
13565 case `$CC -V 2>&1` in
13566 *"Compilers 5.0"*)
13567 wlarc=''
13568 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13570 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13571 ;;
13572 *)
13573 wlarc='$wl'
13574 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13576 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13577 ;;
13578 esac
13579 fi
13580 hardcode_libdir_flag_spec='-R$libdir'
13581 hardcode_shlibpath_var=no
13582 case $host_os in
13583 solaris2.[0-5] | solaris2.[0-5].*) ;;
13584 *)
13585 # The compiler driver will combine and reorder linker options,
13586 # but understands '-z linker_flag'. GCC discards it without '$wl',
13587 # but is careful enough not to reorder.
13588 # Supported since Solaris 2.6 (maybe 2.5.1?)
13589 if test yes = "$GCC"; then
13590 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13591 else
13592 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13593 fi
13594 ;;
13595 esac
13596 link_all_deplibs=yes
13597 ;;
13598
13599 sunos4*)
13600 if test sequent = "$host_vendor"; then
13601 # Use $CC to link under sequent, because it throws in some extra .o
13602 # files that make .init and .fini sections work.
13603 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13604 else
13605 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13606 fi
13607 hardcode_libdir_flag_spec='-L$libdir'
13608 hardcode_direct=yes
13609 hardcode_minus_L=yes
13610 hardcode_shlibpath_var=no
13611 ;;
13612
13613 sysv4)
13614 case $host_vendor in
13615 sni)
13616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617 hardcode_direct=yes # is this really true???
13618 ;;
13619 siemens)
13620 ## LD is ld it makes a PLAMLIB
13621 ## CC just makes a GrossModule.
13622 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13623 reload_cmds='$CC -r -o $output$reload_objs'
13624 hardcode_direct=no
13625 ;;
13626 motorola)
13627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13628 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13629 ;;
13630 esac
13631 runpath_var='LD_RUN_PATH'
13632 hardcode_shlibpath_var=no
13633 ;;
13634
13635 sysv4.3*)
13636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13637 hardcode_shlibpath_var=no
13638 export_dynamic_flag_spec='-Bexport'
13639 ;;
13640
13641 sysv4*MP*)
13642 if test -d /usr/nec; then
13643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13644 hardcode_shlibpath_var=no
13645 runpath_var=LD_RUN_PATH
13646 hardcode_runpath_var=yes
13647 ld_shlibs=yes
13648 fi
13649 ;;
13650
13651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13652 no_undefined_flag='$wl-z,text'
13653 archive_cmds_need_lc=no
13654 hardcode_shlibpath_var=no
13655 runpath_var='LD_RUN_PATH'
13656
13657 if test yes = "$GCC"; then
13658 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 else
13661 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 fi
13664 ;;
13665
13666 sysv5* | sco3.2v5* | sco5v6*)
13667 # Note: We CANNOT use -z defs as we might desire, because we do not
13668 # link with -lc, and that would cause any symbols used from libc to
13669 # always be unresolved, which means just about no library would
13670 # ever link correctly. If we're not using GNU ld we use -z text
13671 # though, which does catch some bad symbols but isn't as heavy-handed
13672 # as -z defs.
13673 no_undefined_flag='$wl-z,text'
13674 allow_undefined_flag='$wl-z,nodefs'
13675 archive_cmds_need_lc=no
13676 hardcode_shlibpath_var=no
13677 hardcode_libdir_flag_spec='$wl-R,$libdir'
13678 hardcode_libdir_separator=':'
13679 link_all_deplibs=yes
13680 export_dynamic_flag_spec='$wl-Bexport'
13681 runpath_var='LD_RUN_PATH'
13682
13683 if test yes = "$GCC"; then
13684 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13685 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686 else
13687 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13689 fi
13690 ;;
13691
13692 uts4*)
13693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694 hardcode_libdir_flag_spec='-L$libdir'
13695 hardcode_shlibpath_var=no
13696 ;;
13697
13698 *)
13699 ld_shlibs=no
13700 ;;
13701 esac
13702
13703 if test sni = "$host_vendor"; then
13704 case $host in
13705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13706 export_dynamic_flag_spec='$wl-Blargedynsym'
13707 ;;
13708 esac
13709 fi
13710 fi
13711
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13713$as_echo "$ld_shlibs" >&6; }
13714test no = "$ld_shlibs" && can_build_shared=no
13715
13716with_gnu_ld=$with_gnu_ld
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732#
13733# Do we need to explicitly link libc?
13734#
13735case "x$archive_cmds_need_lc" in
13736x|xyes)
13737 # Assume -lc should be added
13738 archive_cmds_need_lc=yes
13739
13740 if test yes,yes = "$GCC,$enable_shared"; then
13741 case $archive_cmds in
13742 *'~'*)
13743 # FIXME: we may have to deal with multi-command sequences.
13744 ;;
13745 '$CC '*)
13746 # Test whether the compiler implicitly links with -lc since on some
13747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13748 # to ld, don't add -lc before -lgcc.
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13750$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13751if ${lt_cv_archive_cmds_need_lc+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753else
13754 $RM conftest*
13755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13756
13757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13758 (eval $ac_compile) 2>&5
13759 ac_status=$?
13760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761 test $ac_status = 0; } 2>conftest.err; then
13762 soname=conftest
13763 lib=conftest
13764 libobjs=conftest.$ac_objext
13765 deplibs=
13766 wl=$lt_prog_compiler_wl
13767 pic_flag=$lt_prog_compiler_pic
13768 compiler_flags=-v
13769 linker_flags=-v
13770 verstring=
13771 output_objdir=.
13772 libname=conftest
13773 lt_save_allow_undefined_flag=$allow_undefined_flag
13774 allow_undefined_flag=
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13776 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; }
13780 then
13781 lt_cv_archive_cmds_need_lc=no
13782 else
13783 lt_cv_archive_cmds_need_lc=yes
13784 fi
13785 allow_undefined_flag=$lt_save_allow_undefined_flag
13786 else
13787 cat conftest.err 1>&5
13788 fi
13789 $RM conftest*
13790
13791fi
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13793$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13794 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13795 ;;
13796 esac
13797 fi
13798 ;;
13799esac
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13953$as_echo_n "checking dynamic linker characteristics... " >&6; }
13954
13955if test yes = "$GCC"; then
13956 case $host_os in
13957 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13958 *) lt_awk_arg='/^libraries:/' ;;
13959 esac
13960 case $host_os in
13961 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13962 *) lt_sed_strip_eq='s|=/|/|g' ;;
13963 esac
13964 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13965 case $lt_search_path_spec in
13966 *\;*)
13967 # if the path contains ";" then we assume it to be the separator
13968 # otherwise default to the standard path separator (i.e. ":") - it is
13969 # assumed that no part of a normal pathname contains ";" but that should
13970 # okay in the real world where ";" in dirpaths is itself problematic.
13971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13972 ;;
13973 *)
13974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13975 ;;
13976 esac
13977 # Ok, now we have the path, separated by spaces, we can step through it
13978 # and add multilib dir if necessary...
13979 lt_tmp_lt_search_path_spec=
13980 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13981 # ...but if some path component already ends with the multilib dir we assume
13982 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13983 case "$lt_multi_os_dir; $lt_search_path_spec " in
13984 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13985 lt_multi_os_dir=
13986 ;;
13987 esac
13988 for lt_sys_path in $lt_search_path_spec; do
13989 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13991 elif test -n "$lt_multi_os_dir"; then
13992 test -d "$lt_sys_path" && \
13993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13994 fi
13995 done
13996 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13997BEGIN {RS = " "; FS = "/|\n";} {
13998 lt_foo = "";
13999 lt_count = 0;
14000 for (lt_i = NF; lt_i > 0; lt_i--) {
14001 if ($lt_i != "" && $lt_i != ".") {
14002 if ($lt_i == "..") {
14003 lt_count++;
14004 } else {
14005 if (lt_count == 0) {
14006 lt_foo = "/" $lt_i lt_foo;
14007 } else {
14008 lt_count--;
14009 }
14010 }
14011 }
14012 }
14013 if (lt_foo != "") { lt_freq[lt_foo]++; }
14014 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14015}'`
14016 # AWK program above erroneously prepends '/' to C:/dos/paths
14017 # for these hosts.
14018 case $host_os in
14019 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14020 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14021 esac
14022 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14023else
14024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14025fi
14026library_names_spec=
14027libname_spec='lib$name'
14028soname_spec=
14029shrext_cmds=.so
14030postinstall_cmds=
14031postuninstall_cmds=
14032finish_cmds=
14033finish_eval=
14034shlibpath_var=
14035shlibpath_overrides_runpath=unknown
14036version_type=none
14037dynamic_linker="$host_os ld.so"
14038sys_lib_dlsearch_path_spec="/lib /usr/lib"
14039need_lib_prefix=unknown
14040hardcode_into_libs=no
14041
14042# when you set need_version to no, make sure it does not cause -set_version
14043# flags to be left without arguments
14044need_version=unknown
14045
14046
14047
14048case $host_os in
14049aix3*)
14050 version_type=linux # correct to gnu/linux during the next big refactor
14051 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14052 shlibpath_var=LIBPATH
14053
14054 # AIX 3 has no versioning support, so we append a major version to the name.
14055 soname_spec='$libname$release$shared_ext$major'
14056 ;;
14057
14058aix[4-9]*)
14059 version_type=linux # correct to gnu/linux during the next big refactor
14060 need_lib_prefix=no
14061 need_version=no
14062 hardcode_into_libs=yes
14063 if test ia64 = "$host_cpu"; then
14064 # AIX 5 supports IA64
14065 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14066 shlibpath_var=LD_LIBRARY_PATH
14067 else
14068 # With GCC up to 2.95.x, collect2 would create an import file
14069 # for dependence libraries. The import file would start with
14070 # the line '#! .'. This would cause the generated library to
14071 # depend on '.', always an invalid library. This was fixed in
14072 # development snapshots of GCC prior to 3.0.
14073 case $host_os in
14074 aix4 | aix4.[01] | aix4.[01].*)
14075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14076 echo ' yes '
14077 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14078 :
14079 else
14080 can_build_shared=no
14081 fi
14082 ;;
14083 esac
14084 # Using Import Files as archive members, it is possible to support
14085 # filename-based versioning of shared library archives on AIX. While
14086 # this would work for both with and without runtime linking, it will
14087 # prevent static linking of such archives. So we do filename-based
14088 # shared library versioning with .so extension only, which is used
14089 # when both runtime linking and shared linking is enabled.
14090 # Unfortunately, runtime linking may impact performance, so we do
14091 # not want this to be the default eventually. Also, we use the
14092 # versioned .so libs for executables only if there is the -brtl
14093 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14094 # To allow for filename-based versioning support, we need to create
14095 # libNAME.so.V as an archive file, containing:
14096 # *) an Import File, referring to the versioned filename of the
14097 # archive as well as the shared archive member, telling the
14098 # bitwidth (32 or 64) of that shared object, and providing the
14099 # list of exported symbols of that shared object, eventually
14100 # decorated with the 'weak' keyword
14101 # *) the shared object with the F_LOADONLY flag set, to really avoid
14102 # it being seen by the linker.
14103 # At run time we better use the real file rather than another symlink,
14104 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14105
14106 case $with_aix_soname,$aix_use_runtimelinking in
14107 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14108 # soname into executable. Probably we can add versioning support to
14109 # collect2, so additional links can be useful in future.
14110 aix,yes) # traditional libtool
14111 dynamic_linker='AIX unversionable lib.so'
14112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14113 # instead of lib<name>.a to let people know that these are not
14114 # typical AIX shared libraries.
14115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14116 ;;
14117 aix,no) # traditional AIX only
14118 dynamic_linker='AIX lib.a(lib.so.V)'
14119 # We preserve .a as extension for shared libraries through AIX4.2
14120 # and later when we are not doing run time linking.
14121 library_names_spec='$libname$release.a $libname.a'
14122 soname_spec='$libname$release$shared_ext$major'
14123 ;;
14124 svr4,*) # full svr4 only
14125 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14126 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14127 # We do not specify a path in Import Files, so LIBPATH fires.
14128 shlibpath_overrides_runpath=yes
14129 ;;
14130 *,yes) # both, prefer svr4
14131 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14132 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14133 # unpreferred sharedlib libNAME.a needs extra handling
14134 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"'
14135 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"'
14136 # We do not specify a path in Import Files, so LIBPATH fires.
14137 shlibpath_overrides_runpath=yes
14138 ;;
14139 *,no) # both, prefer aix
14140 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14141 library_names_spec='$libname$release.a $libname.a'
14142 soname_spec='$libname$release$shared_ext$major'
14143 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14144 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)'
14145 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"'
14146 ;;
14147 esac
14148 shlibpath_var=LIBPATH
14149 fi
14150 ;;
14151
14152amigaos*)
14153 case $host_cpu in
14154 powerpc)
14155 # Since July 2007 AmigaOS4 officially supports .so libraries.
14156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14158 ;;
14159 m68k)
14160 library_names_spec='$libname.ixlibrary $libname.a'
14161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14162 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'
14163 ;;
14164 esac
14165 ;;
14166
14167beos*)
14168 library_names_spec='$libname$shared_ext'
14169 dynamic_linker="$host_os ld.so"
14170 shlibpath_var=LIBRARY_PATH
14171 ;;
14172
14173bsdi[45]*)
14174 version_type=linux # correct to gnu/linux during the next big refactor
14175 need_version=no
14176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14177 soname_spec='$libname$release$shared_ext$major'
14178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14182 # the default ld.so.conf also contains /usr/contrib/lib and
14183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14184 # libtool to hard-code these into programs
14185 ;;
14186
14187cygwin* | mingw* | pw32* | cegcc*)
14188 version_type=windows
14189 shrext_cmds=.dll
14190 need_version=no
14191 need_lib_prefix=no
14192
14193 case $GCC,$cc_basename in
14194 yes,*)
14195 # gcc
14196 library_names_spec='$libname.dll.a'
14197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14198 postinstall_cmds='base_file=`basename \$file`~
14199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14200 dldir=$destdir/`dirname \$dlpath`~
14201 test -d \$dldir || mkdir -p \$dldir~
14202 $install_prog $dir/$dlname \$dldir/$dlname~
14203 chmod a+x \$dldir/$dlname~
14204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14206 fi'
14207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14208 dlpath=$dir/\$dldll~
14209 $RM \$dlpath'
14210 shlibpath_overrides_runpath=yes
14211
14212 case $host_os in
14213 cygwin*)
14214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14215 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14216
14217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14218 ;;
14219 mingw* | cegcc*)
14220 # MinGW DLLs use traditional 'lib' prefix
14221 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14222 ;;
14223 pw32*)
14224 # pw32 DLLs use 'pw' prefix rather than 'lib'
14225 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14226 ;;
14227 esac
14228 dynamic_linker='Win32 ld.exe'
14229 ;;
14230
14231 *,cl*)
14232 # Native MSVC
14233 libname_spec='$name'
14234 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14235 library_names_spec='$libname.dll.lib'
14236
14237 case $build_os in
14238 mingw*)
14239 sys_lib_search_path_spec=
14240 lt_save_ifs=$IFS
14241 IFS=';'
14242 for lt_path in $LIB
14243 do
14244 IFS=$lt_save_ifs
14245 # Let DOS variable expansion print the short 8.3 style file name.
14246 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14247 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14248 done
14249 IFS=$lt_save_ifs
14250 # Convert to MSYS style.
14251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14252 ;;
14253 cygwin*)
14254 # Convert to unix form, then to dos form, then back to unix form
14255 # but this time dos style (no spaces!) so that the unix form looks
14256 # like /cygdrive/c/PROGRA~1:/cygdr...
14257 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14258 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14259 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14260 ;;
14261 *)
14262 sys_lib_search_path_spec=$LIB
14263 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14264 # It is most probably a Windows format PATH.
14265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14266 else
14267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14268 fi
14269 # FIXME: find the short name or the path components, as spaces are
14270 # common. (e.g. "Program Files" -> "PROGRA~1")
14271 ;;
14272 esac
14273
14274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14275 postinstall_cmds='base_file=`basename \$file`~
14276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14277 dldir=$destdir/`dirname \$dlpath`~
14278 test -d \$dldir || mkdir -p \$dldir~
14279 $install_prog $dir/$dlname \$dldir/$dlname'
14280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14281 dlpath=$dir/\$dldll~
14282 $RM \$dlpath'
14283 shlibpath_overrides_runpath=yes
14284 dynamic_linker='Win32 link.exe'
14285 ;;
14286
14287 *)
14288 # Assume MSVC wrapper
14289 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14290 dynamic_linker='Win32 ld.exe'
14291 ;;
14292 esac
14293 # FIXME: first we should search . and the directory the executable is in
14294 shlibpath_var=PATH
14295 ;;
14296
14297darwin* | rhapsody*)
14298 dynamic_linker="$host_os dyld"
14299 version_type=darwin
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14303 soname_spec='$libname$release$major$shared_ext'
14304 shlibpath_overrides_runpath=yes
14305 shlibpath_var=DYLD_LIBRARY_PATH
14306 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14307
14308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14310 ;;
14311
14312dgux*)
14313 version_type=linux # correct to gnu/linux during the next big refactor
14314 need_lib_prefix=no
14315 need_version=no
14316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14317 soname_spec='$libname$release$shared_ext$major'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 ;;
14320
14321freebsd* | dragonfly*)
14322 # DragonFly does not have aout. When/if they implement a new
14323 # versioning mechanism, adjust this.
14324 if test -x /usr/bin/objformat; then
14325 objformat=`/usr/bin/objformat`
14326 else
14327 case $host_os in
14328 freebsd[23].*) objformat=aout ;;
14329 *) objformat=elf ;;
14330 esac
14331 fi
14332 version_type=freebsd-$objformat
14333 case $version_type in
14334 freebsd-elf*)
14335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14336 soname_spec='$libname$release$shared_ext$major'
14337 need_version=no
14338 need_lib_prefix=no
14339 ;;
14340 freebsd-*)
14341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14342 need_version=yes
14343 ;;
14344 esac
14345 shlibpath_var=LD_LIBRARY_PATH
14346 case $host_os in
14347 freebsd2.*)
14348 shlibpath_overrides_runpath=yes
14349 ;;
14350 freebsd3.[01]* | freebsdelf3.[01]*)
14351 shlibpath_overrides_runpath=yes
14352 hardcode_into_libs=yes
14353 ;;
14354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14356 shlibpath_overrides_runpath=no
14357 hardcode_into_libs=yes
14358 ;;
14359 *) # from 4.6 on, and DragonFly
14360 shlibpath_overrides_runpath=yes
14361 hardcode_into_libs=yes
14362 ;;
14363 esac
14364 ;;
14365
14366haiku*)
14367 version_type=linux # correct to gnu/linux during the next big refactor
14368 need_lib_prefix=no
14369 need_version=no
14370 dynamic_linker="$host_os runtime_loader"
14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372 soname_spec='$libname$release$shared_ext$major'
14373 shlibpath_var=LIBRARY_PATH
14374 shlibpath_overrides_runpath=no
14375 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14376 hardcode_into_libs=yes
14377 ;;
14378
14379hpux9* | hpux10* | hpux11*)
14380 # Give a soname corresponding to the major version so that dld.sl refuses to
14381 # link against other versions.
14382 version_type=sunos
14383 need_lib_prefix=no
14384 need_version=no
14385 case $host_cpu in
14386 ia64*)
14387 shrext_cmds='.so'
14388 hardcode_into_libs=yes
14389 dynamic_linker="$host_os dld.so"
14390 shlibpath_var=LD_LIBRARY_PATH
14391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14393 soname_spec='$libname$release$shared_ext$major'
14394 if test 32 = "$HPUX_IA64_MODE"; then
14395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14396 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14397 else
14398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14399 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14400 fi
14401 ;;
14402 hppa*64*)
14403 shrext_cmds='.sl'
14404 hardcode_into_libs=yes
14405 dynamic_linker="$host_os dld.sl"
14406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14409 soname_spec='$libname$release$shared_ext$major'
14410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14412 ;;
14413 *)
14414 shrext_cmds='.sl'
14415 dynamic_linker="$host_os dld.sl"
14416 shlibpath_var=SHLIB_PATH
14417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14419 soname_spec='$libname$release$shared_ext$major'
14420 ;;
14421 esac
14422 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14423 postinstall_cmds='chmod 555 $lib'
14424 # or fails outright, so override atomically:
14425 install_override_mode=555
14426 ;;
14427
14428interix[3-9]*)
14429 version_type=linux # correct to gnu/linux during the next big refactor
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14433 soname_spec='$libname$release$shared_ext$major'
14434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 hardcode_into_libs=yes
14438 ;;
14439
14440irix5* | irix6* | nonstopux*)
14441 case $host_os in
14442 nonstopux*) version_type=nonstopux ;;
14443 *)
14444 if test yes = "$lt_cv_prog_gnu_ld"; then
14445 version_type=linux # correct to gnu/linux during the next big refactor
14446 else
14447 version_type=irix
14448 fi ;;
14449 esac
14450 need_lib_prefix=no
14451 need_version=no
14452 soname_spec='$libname$release$shared_ext$major'
14453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14454 case $host_os in
14455 irix5* | nonstopux*)
14456 libsuff= shlibsuff=
14457 ;;
14458 *)
14459 case $LD in # libtool.m4 will add one of these switches to LD
14460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14461 libsuff= shlibsuff= libmagic=32-bit;;
14462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14463 libsuff=32 shlibsuff=N32 libmagic=N32;;
14464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14466 *) libsuff= shlibsuff= libmagic=never-match;;
14467 esac
14468 ;;
14469 esac
14470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14471 shlibpath_overrides_runpath=no
14472 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14473 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14474 hardcode_into_libs=yes
14475 ;;
14476
14477# No shared lib support for Linux oldld, aout, or coff.
14478linux*oldld* | linux*aout* | linux*coff*)
14479 dynamic_linker=no
14480 ;;
14481
14482linux*android*)
14483 version_type=none # Android doesn't support versioned libraries.
14484 need_lib_prefix=no
14485 need_version=no
14486 library_names_spec='$libname$release$shared_ext'
14487 soname_spec='$libname$release$shared_ext'
14488 finish_cmds=
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491
14492 # This implies no fast_install, which is unacceptable.
14493 # Some rework will be needed to allow for fast_install
14494 # before this can be enabled.
14495 hardcode_into_libs=yes
14496
14497 dynamic_linker='Android linker'
14498 # Don't embed -rpath directories since the linker doesn't support them.
14499 hardcode_libdir_flag_spec='-L$libdir'
14500 ;;
14501
14502# This must be glibc/ELF.
14503linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14504 version_type=linux # correct to gnu/linux during the next big refactor
14505 need_lib_prefix=no
14506 need_version=no
14507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14508 soname_spec='$libname$release$shared_ext$major'
14509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=no
14512
14513 # Some binutils ld are patched to set DT_RUNPATH
14514 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516else
14517 lt_cv_shlibpath_overrides_runpath=no
14518 save_LDFLAGS=$LDFLAGS
14519 save_libdir=$libdir
14520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h. */
14524
14525int main (void)
14526{
14527
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532if ac_fn_c_try_link "$LINENO"; then :
14533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14534 lt_cv_shlibpath_overrides_runpath=yes
14535fi
14536fi
14537rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 LDFLAGS=$save_LDFLAGS
14540 libdir=$save_libdir
14541
14542fi
14543
14544 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14545
14546 # This implies no fast_install, which is unacceptable.
14547 # Some rework will be needed to allow for fast_install
14548 # before this can be enabled.
14549 hardcode_into_libs=yes
14550
14551 # Ideally, we could use ldconfig to report *all* directores which are
14552 # searched for libraries, however this is still not possible. Aside from not
14553 # being certain /sbin/ldconfig is available, command
14554 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14555 # even though it is searched at run-time. Try to do the best guess by
14556 # appending ld.so.conf contents (and includes) to the search path.
14557 if test -f /etc/ld.so.conf; then
14558 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' ' '`
14559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14560 fi
14561
14562 # We used to test for /lib/ld.so.1 and disable shared libraries on
14563 # powerpc, because MkLinux only supported shared libraries with the
14564 # GNU dynamic linker. Since this was broken with cross compilers,
14565 # most powerpc-linux boxes support dynamic linking these days and
14566 # people can always --disable-shared, the test was removed, and we
14567 # assume the GNU/Linux dynamic linker is in use.
14568 dynamic_linker='GNU/Linux ld.so'
14569 ;;
14570
14571netbsdelf*-gnu)
14572 version_type=linux
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=no
14579 hardcode_into_libs=yes
14580 dynamic_linker='NetBSD ld.elf_so'
14581 ;;
14582
14583netbsd*)
14584 version_type=sunos
14585 need_lib_prefix=no
14586 need_version=no
14587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14588 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14590 dynamic_linker='NetBSD (a.out) ld.so'
14591 else
14592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14593 soname_spec='$libname$release$shared_ext$major'
14594 dynamic_linker='NetBSD ld.elf_so'
14595 fi
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=yes
14598 hardcode_into_libs=yes
14599 ;;
14600
14601newsos6)
14602 version_type=linux # correct to gnu/linux during the next big refactor
14603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath=yes
14606 ;;
14607
14608*nto* | *qnx*)
14609 version_type=qnx
14610 need_lib_prefix=no
14611 need_version=no
14612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14613 soname_spec='$libname$release$shared_ext$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 shlibpath_overrides_runpath=no
14616 hardcode_into_libs=yes
14617 dynamic_linker='ldqnx.so'
14618 ;;
14619
14620openbsd* | bitrig*)
14621 version_type=sunos
14622 sys_lib_dlsearch_path_spec=/usr/lib
14623 need_lib_prefix=no
14624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14625 need_version=no
14626 else
14627 need_version=yes
14628 fi
14629 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=yes
14633 ;;
14634
14635os2*)
14636 libname_spec='$name'
14637 version_type=windows
14638 shrext_cmds=.dll
14639 need_version=no
14640 need_lib_prefix=no
14641 # OS/2 can only load a DLL with a base name of 8 characters or less.
14642 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14643 v=$($ECHO $release$versuffix | tr -d .-);
14644 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14645 $ECHO $n$v`$shared_ext'
14646 library_names_spec='${libname}_dll.$libext'
14647 dynamic_linker='OS/2 ld.exe'
14648 shlibpath_var=BEGINLIBPATH
14649 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14651 postinstall_cmds='base_file=`basename \$file`~
14652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14653 dldir=$destdir/`dirname \$dlpath`~
14654 test -d \$dldir || mkdir -p \$dldir~
14655 $install_prog $dir/$dlname \$dldir/$dlname~
14656 chmod a+x \$dldir/$dlname~
14657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14659 fi'
14660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14661 dlpath=$dir/\$dldll~
14662 $RM \$dlpath'
14663 ;;
14664
14665osf3* | osf4* | osf5*)
14666 version_type=osf
14667 need_lib_prefix=no
14668 need_version=no
14669 soname_spec='$libname$release$shared_ext$major'
14670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14674 ;;
14675
14676rdos*)
14677 dynamic_linker=no
14678 ;;
14679
14680solaris*)
14681 version_type=linux # correct to gnu/linux during the next big refactor
14682 need_lib_prefix=no
14683 need_version=no
14684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14685 soname_spec='$libname$release$shared_ext$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14688 hardcode_into_libs=yes
14689 # ldd complains unless libraries are executable
14690 postinstall_cmds='chmod +x $lib'
14691 ;;
14692
14693sunos4*)
14694 version_type=sunos
14695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=yes
14699 if test yes = "$with_gnu_ld"; then
14700 need_lib_prefix=no
14701 fi
14702 need_version=yes
14703 ;;
14704
14705sysv4 | sysv4.3*)
14706 version_type=linux # correct to gnu/linux during the next big refactor
14707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14708 soname_spec='$libname$release$shared_ext$major'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 case $host_vendor in
14711 sni)
14712 shlibpath_overrides_runpath=no
14713 need_lib_prefix=no
14714 runpath_var=LD_RUN_PATH
14715 ;;
14716 siemens)
14717 need_lib_prefix=no
14718 ;;
14719 motorola)
14720 need_lib_prefix=no
14721 need_version=no
14722 shlibpath_overrides_runpath=no
14723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14724 ;;
14725 esac
14726 ;;
14727
14728sysv4*MP*)
14729 if test -d /usr/nec; then
14730 version_type=linux # correct to gnu/linux during the next big refactor
14731 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14732 soname_spec='$libname$shared_ext.$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 fi
14735 ;;
14736
14737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14738 version_type=sco
14739 need_lib_prefix=no
14740 need_version=no
14741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14742 soname_spec='$libname$release$shared_ext$major'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes
14745 hardcode_into_libs=yes
14746 if test yes = "$with_gnu_ld"; then
14747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14748 else
14749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14750 case $host_os in
14751 sco3.2v5*)
14752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14753 ;;
14754 esac
14755 fi
14756 sys_lib_dlsearch_path_spec='/usr/lib'
14757 ;;
14758
14759tpf*)
14760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14761 version_type=linux # correct to gnu/linux during the next big refactor
14762 need_lib_prefix=no
14763 need_version=no
14764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=no
14767 hardcode_into_libs=yes
14768 ;;
14769
14770uts4*)
14771 version_type=linux # correct to gnu/linux during the next big refactor
14772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14773 soname_spec='$libname$release$shared_ext$major'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 ;;
14776
14777*)
14778 dynamic_linker=no
14779 ;;
14780esac
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14782$as_echo "$dynamic_linker" >&6; }
14783test no = "$dynamic_linker" && can_build_shared=no
14784
14785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14786if test yes = "$GCC"; then
14787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14788fi
14789
14790if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14791 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14792fi
14793
14794if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14795 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14796fi
14797
14798# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14799configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14800
14801# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14802func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14803
14804# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14805configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14904$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14905hardcode_action=
14906if test -n "$hardcode_libdir_flag_spec" ||
14907 test -n "$runpath_var" ||
14908 test yes = "$hardcode_automatic"; then
14909
14910 # We can hardcode non-existent directories.
14911 if test no != "$hardcode_direct" &&
14912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14913 # have to relink, otherwise we might link with an installed library
14914 # when we should be linking with a yet-to-be-installed one
14915 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14916 test no != "$hardcode_minus_L"; then
14917 # Linking always hardcodes the temporary library directory.
14918 hardcode_action=relink
14919 else
14920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14921 hardcode_action=immediate
14922 fi
14923else
14924 # We cannot hardcode anything, or else we can only hardcode existing
14925 # directories.
14926 hardcode_action=unsupported
14927fi
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14929$as_echo "$hardcode_action" >&6; }
14930
14931if test relink = "$hardcode_action" ||
14932 test yes = "$inherit_rpath"; then
14933 # Fast installation is not supported
14934 enable_fast_install=no
14935elif test yes = "$shlibpath_overrides_runpath" ||
14936 test no = "$enable_shared"; then
14937 # Fast installation is not necessary
14938 enable_fast_install=needless
14939fi
14940
14941
14942
14943
14944
14945
14946 if test yes != "$enable_dlopen"; then
14947 enable_dlopen=unknown
14948 enable_dlopen_self=unknown
14949 enable_dlopen_self_static=unknown
14950else
14951 lt_cv_dlopen=no
14952 lt_cv_dlopen_libs=
14953
14954 case $host_os in
14955 beos*)
14956 lt_cv_dlopen=load_add_on
14957 lt_cv_dlopen_libs=
14958 lt_cv_dlopen_self=yes
14959 ;;
14960
14961 mingw* | pw32* | cegcc*)
14962 lt_cv_dlopen=LoadLibrary
14963 lt_cv_dlopen_libs=
14964 ;;
14965
14966 cygwin*)
14967 lt_cv_dlopen=dlopen
14968 lt_cv_dlopen_libs=
14969 ;;
14970
14971 darwin*)
14972 # if libdl is installed we need to link against it
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14974$as_echo_n "checking for dlopen in -ldl... " >&6; }
14975if ${ac_cv_lib_dl_dlopen+:} false; then :
14976 $as_echo_n "(cached) " >&6
14977else
14978 ac_check_lib_save_LIBS=$LIBS
14979LIBS="-ldl $LIBS"
14980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981/* end confdefs.h. */
14982
14983
14984#ifdef __cplusplus
14985extern "C"
14986#endif
14987char dlopen ();
14988int main (void)
14989{
14990return dlopen ();
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995if ac_fn_c_try_link "$LINENO"; then :
14996 ac_cv_lib_dl_dlopen=yes
14997else
14998 ac_cv_lib_dl_dlopen=no
14999fi
15000rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002LIBS=$ac_check_lib_save_LIBS
15003fi
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15005$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15006if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15007 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15008else
15009
15010 lt_cv_dlopen=dyld
15011 lt_cv_dlopen_libs=
15012 lt_cv_dlopen_self=yes
15013
15014fi
15015
15016 ;;
15017
15018 tpf*)
15019 # Don't try to run any link tests for TPF. We know it's impossible
15020 # because TPF is a cross-compiler, and we know how we open DSOs.
15021 lt_cv_dlopen=dlopen
15022 lt_cv_dlopen_libs=
15023 lt_cv_dlopen_self=no
15024 ;;
15025
15026 *)
15027 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15028if test "x$ac_cv_func_shl_load" = xyes; then :
15029 lt_cv_dlopen=shl_load
15030else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15032$as_echo_n "checking for shl_load in -ldld... " >&6; }
15033if ${ac_cv_lib_dld_shl_load+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035else
15036 ac_check_lib_save_LIBS=$LIBS
15037LIBS="-ldld $LIBS"
15038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039/* end confdefs.h. */
15040
15041
15042#ifdef __cplusplus
15043extern "C"
15044#endif
15045char shl_load ();
15046int main (void)
15047{
15048return shl_load ();
15049 ;
15050 return 0;
15051}
15052_ACEOF
15053if ac_fn_c_try_link "$LINENO"; then :
15054 ac_cv_lib_dld_shl_load=yes
15055else
15056 ac_cv_lib_dld_shl_load=no
15057fi
15058rm -f core conftest.err conftest.$ac_objext \
15059 conftest$ac_exeext conftest.$ac_ext
15060LIBS=$ac_check_lib_save_LIBS
15061fi
15062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15063$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15064if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15065 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15066else
15067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15068if test "x$ac_cv_func_dlopen" = xyes; then :
15069 lt_cv_dlopen=dlopen
15070else
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15072$as_echo_n "checking for dlopen in -ldl... " >&6; }
15073if ${ac_cv_lib_dl_dlopen+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075else
15076 ac_check_lib_save_LIBS=$LIBS
15077LIBS="-ldl $LIBS"
15078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h. */
15080
15081
15082#ifdef __cplusplus
15083extern "C"
15084#endif
15085char dlopen ();
15086int main (void)
15087{
15088return dlopen ();
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093if ac_fn_c_try_link "$LINENO"; then :
15094 ac_cv_lib_dl_dlopen=yes
15095else
15096 ac_cv_lib_dl_dlopen=no
15097fi
15098rm -f core conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15100LIBS=$ac_check_lib_save_LIBS
15101fi
15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15104if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15105 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15106else
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15108$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15109if ${ac_cv_lib_svld_dlopen+:} false; then :
15110 $as_echo_n "(cached) " >&6
15111else
15112 ac_check_lib_save_LIBS=$LIBS
15113LIBS="-lsvld $LIBS"
15114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h. */
15116
15117
15118#ifdef __cplusplus
15119extern "C"
15120#endif
15121char dlopen ();
15122int main (void)
15123{
15124return dlopen ();
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129if ac_fn_c_try_link "$LINENO"; then :
15130 ac_cv_lib_svld_dlopen=yes
15131else
15132 ac_cv_lib_svld_dlopen=no
15133fi
15134rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136LIBS=$ac_check_lib_save_LIBS
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15139$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15140if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15142else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15144$as_echo_n "checking for dld_link in -ldld... " >&6; }
15145if ${ac_cv_lib_dld_dld_link+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147else
15148 ac_check_lib_save_LIBS=$LIBS
15149LIBS="-ldld $LIBS"
15150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h. */
15152
15153
15154#ifdef __cplusplus
15155extern "C"
15156#endif
15157char dld_link ();
15158int main (void)
15159{
15160return dld_link ();
15161 ;
15162 return 0;
15163}
15164_ACEOF
15165if ac_fn_c_try_link "$LINENO"; then :
15166 ac_cv_lib_dld_dld_link=yes
15167else
15168 ac_cv_lib_dld_dld_link=no
15169fi
15170rm -f core conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15172LIBS=$ac_check_lib_save_LIBS
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15175$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15176if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15177 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15178fi
15179
15180
15181fi
15182
15183
15184fi
15185
15186
15187fi
15188
15189
15190fi
15191
15192
15193fi
15194
15195 ;;
15196 esac
15197
15198 if test no = "$lt_cv_dlopen"; then
15199 enable_dlopen=no
15200 else
15201 enable_dlopen=yes
15202 fi
15203
15204 case $lt_cv_dlopen in
15205 dlopen)
15206 save_CPPFLAGS=$CPPFLAGS
15207 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15208
15209 save_LDFLAGS=$LDFLAGS
15210 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15211
15212 save_LIBS=$LIBS
15213 LIBS="$lt_cv_dlopen_libs $LIBS"
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15216$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15217if ${lt_cv_dlopen_self+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219else
15220 if test yes = "$cross_compiling"; then :
15221 lt_cv_dlopen_self=cross
15222else
15223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15224 lt_status=$lt_dlunknown
15225 cat > conftest.$ac_ext <<_LT_EOF
15226#line $LINENO "configure"
15227#include "confdefs.h"
15228
15229#if HAVE_DLFCN_H
15230#include <dlfcn.h>
15231#endif
15232
15233#include <stdio.h>
15234
15235#ifdef RTLD_GLOBAL
15236# define LT_DLGLOBAL RTLD_GLOBAL
15237#else
15238# ifdef DL_GLOBAL
15239# define LT_DLGLOBAL DL_GLOBAL
15240# else
15241# define LT_DLGLOBAL 0
15242# endif
15243#endif
15244
15245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15246 find out it does not work in some platform. */
15247#ifndef LT_DLLAZY_OR_NOW
15248# ifdef RTLD_LAZY
15249# define LT_DLLAZY_OR_NOW RTLD_LAZY
15250# else
15251# ifdef DL_LAZY
15252# define LT_DLLAZY_OR_NOW DL_LAZY
15253# else
15254# ifdef RTLD_NOW
15255# define LT_DLLAZY_OR_NOW RTLD_NOW
15256# else
15257# ifdef DL_NOW
15258# define LT_DLLAZY_OR_NOW DL_NOW
15259# else
15260# define LT_DLLAZY_OR_NOW 0
15261# endif
15262# endif
15263# endif
15264# endif
15265#endif
15266
15267/* When -fvisibility=hidden is used, assume the code has been annotated
15268 correspondingly for the symbols needed. */
15269#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15270int fnord () __attribute__((visibility("default")));
15271#endif
15272
15273int fnord () { return 42; }
15274int main ()
15275{
15276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15277 int status = $lt_dlunknown;
15278
15279 if (self)
15280 {
15281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15282 else
15283 {
15284 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15285 else puts (dlerror ());
15286 }
15287 /* dlclose (self); */
15288 }
15289 else
15290 puts (dlerror ());
15291
15292 return status;
15293}
15294_LT_EOF
15295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15296 (eval $ac_link) 2>&5
15297 ac_status=$?
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15300 (./conftest; exit; ) >&5 2>/dev/null
15301 lt_status=$?
15302 case x$lt_status in
15303 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15304 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15305 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15306 esac
15307 else :
15308 # compilation failed
15309 lt_cv_dlopen_self=no
15310 fi
15311fi
15312rm -fr conftest*
15313
15314
15315fi
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15317$as_echo "$lt_cv_dlopen_self" >&6; }
15318
15319 if test yes = "$lt_cv_dlopen_self"; then
15320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15322$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15323if ${lt_cv_dlopen_self_static+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325else
15326 if test yes = "$cross_compiling"; then :
15327 lt_cv_dlopen_self_static=cross
15328else
15329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15330 lt_status=$lt_dlunknown
15331 cat > conftest.$ac_ext <<_LT_EOF
15332#line $LINENO "configure"
15333#include "confdefs.h"
15334
15335#if HAVE_DLFCN_H
15336#include <dlfcn.h>
15337#endif
15338
15339#include <stdio.h>
15340
15341#ifdef RTLD_GLOBAL
15342# define LT_DLGLOBAL RTLD_GLOBAL
15343#else
15344# ifdef DL_GLOBAL
15345# define LT_DLGLOBAL DL_GLOBAL
15346# else
15347# define LT_DLGLOBAL 0
15348# endif
15349#endif
15350
15351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15352 find out it does not work in some platform. */
15353#ifndef LT_DLLAZY_OR_NOW
15354# ifdef RTLD_LAZY
15355# define LT_DLLAZY_OR_NOW RTLD_LAZY
15356# else
15357# ifdef DL_LAZY
15358# define LT_DLLAZY_OR_NOW DL_LAZY
15359# else
15360# ifdef RTLD_NOW
15361# define LT_DLLAZY_OR_NOW RTLD_NOW
15362# else
15363# ifdef DL_NOW
15364# define LT_DLLAZY_OR_NOW DL_NOW
15365# else
15366# define LT_DLLAZY_OR_NOW 0
15367# endif
15368# endif
15369# endif
15370# endif
15371#endif
15372
15373/* When -fvisibility=hidden is used, assume the code has been annotated
15374 correspondingly for the symbols needed. */
15375#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15376int fnord () __attribute__((visibility("default")));
15377#endif
15378
15379int fnord () { return 42; }
15380int main ()
15381{
15382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15383 int status = $lt_dlunknown;
15384
15385 if (self)
15386 {
15387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15388 else
15389 {
15390 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15391 else puts (dlerror ());
15392 }
15393 /* dlclose (self); */
15394 }
15395 else
15396 puts (dlerror ());
15397
15398 return status;
15399}
15400_LT_EOF
15401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15402 (eval $ac_link) 2>&5
15403 ac_status=$?
15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15406 (./conftest; exit; ) >&5 2>/dev/null
15407 lt_status=$?
15408 case x$lt_status in
15409 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15410 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15411 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15412 esac
15413 else :
15414 # compilation failed
15415 lt_cv_dlopen_self_static=no
15416 fi
15417fi
15418rm -fr conftest*
15419
15420
15421fi
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15423$as_echo "$lt_cv_dlopen_self_static" >&6; }
15424 fi
15425
15426 CPPFLAGS=$save_CPPFLAGS
15427 LDFLAGS=$save_LDFLAGS
15428 LIBS=$save_LIBS
15429 ;;
15430 esac
15431
15432 case $lt_cv_dlopen_self in
15433 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15434 *) enable_dlopen_self=unknown ;;
15435 esac
15436
15437 case $lt_cv_dlopen_self_static in
15438 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15439 *) enable_dlopen_self_static=unknown ;;
15440 esac
15441fi
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459striplib=
15460old_striplib=
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15462$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15463if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15464 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15465 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15467$as_echo "yes" >&6; }
15468else
15469# FIXME - insert some real tests, host_os isn't really good enough
15470 case $host_os in
15471 darwin*)
15472 if test -n "$STRIP"; then
15473 striplib="$STRIP -x"
15474 old_striplib="$STRIP -S"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15476$as_echo "yes" >&6; }
15477 else
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15479$as_echo "no" >&6; }
15480 fi
15481 ;;
15482 *)
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484$as_echo "no" >&6; }
15485 ;;
15486 esac
15487fi
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500 # Report what library types will actually be built
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15502$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15504$as_echo "$can_build_shared" >&6; }
15505
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15507$as_echo_n "checking whether to build shared libraries... " >&6; }
15508 test no = "$can_build_shared" && enable_shared=no
15509
15510 # On AIX, shared libraries and static libraries use the same namespace, and
15511 # are all built from PIC.
15512 case $host_os in
15513 aix3*)
15514 test yes = "$enable_shared" && enable_static=no
15515 if test -n "$RANLIB"; then
15516 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15517 postinstall_cmds='$RANLIB $lib'
15518 fi
15519 ;;
15520
15521 aix[4-9]*)
15522 if test ia64 != "$host_cpu"; then
15523 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15524 yes,aix,yes) ;; # shared object as lib.so file only
15525 yes,svr4,*) ;; # shared object as lib.so archive member only
15526 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15527 esac
15528 fi
15529 ;;
15530 esac
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15532$as_echo "$enable_shared" >&6; }
15533
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15535$as_echo_n "checking whether to build static libraries... " >&6; }
15536 # Make sure either enable_shared or enable_static is yes.
15537 test yes = "$enable_shared" || enable_static=yes
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15539$as_echo "$enable_static" >&6; }
15540
15541
15542
15543
15544fi
15545ac_ext=c
15546ac_cpp='$CPP $CPPFLAGS'
15547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15549ac_compiler_gnu=$ac_cv_c_compiler_gnu
15550
15551CC=$lt_save_CC
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567 ac_config_commands="$ac_config_commands libtool"
15568
15569
15570
15571
15572# Only expand once:
15573
15574
15575## --------------------- ##
15576## End of libtool code ##
15577## --------------------- ##
15578
15579#
15580# Verify if finally libtool shared libraries will be built
15581#
15582
15583case "x$enable_shared" in # ((
15584 xyes | xno)
15585 xc_lt_build_shared=$enable_shared
15586 ;;
15587 *)
15588 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15589 ;;
15590esac
15591
15592#
15593# Verify if finally libtool static libraries will be built
15594#
15595
15596case "x$enable_static" in # ((
15597 xyes | xno)
15598 xc_lt_build_static=$enable_static
15599 ;;
15600 *)
15601 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15602 ;;
15603esac
15604
15605#
15606# Verify if libtool shared libraries should be linked using flag -version-info
15607#
15608
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15610$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15611xc_lt_shlib_use_version_info='yes'
15612if test "x$version_type" = 'xnone'; then
15613 xc_lt_shlib_use_version_info='no'
15614fi
15615case $host_os in # (
15616 amigaos*)
15617 xc_lt_shlib_use_version_info='yes'
15618 ;;
15619esac
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15621$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15622
15623#
15624# Verify if libtool shared libraries should be linked using flag -no-undefined
15625#
15626
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15628$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15629xc_lt_shlib_use_no_undefined='no'
15630if test "x$allow_undefined" = 'xno'; then
15631 xc_lt_shlib_use_no_undefined='yes'
15632elif test "x$allow_undefined_flag" = 'xunsupported'; then
15633 xc_lt_shlib_use_no_undefined='yes'
15634fi
15635case $host_os in # (
15636 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15637 xc_lt_shlib_use_no_undefined='yes'
15638 ;;
15639esac
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15641$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15642
15643#
15644# Verify if libtool shared libraries should be linked using flag -mimpure-text
15645#
15646
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15648$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15649xc_lt_shlib_use_mimpure_text='no'
15650case $host_os in # (
15651 solaris2*)
15652 if test "x$GCC" = 'xyes'; then
15653 xc_lt_shlib_use_mimpure_text='yes'
15654 fi
15655 ;;
15656esac
15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15658$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15659
15660#
15661# Find out whether libtool libraries would be built wit PIC
15662#
15663
15664case "x$pic_mode" in # ((((
15665 xdefault)
15666 xc_lt_build_shared_with_pic='yes'
15667 xc_lt_build_static_with_pic='no'
15668 ;;
15669 xyes)
15670 xc_lt_build_shared_with_pic='yes'
15671 xc_lt_build_static_with_pic='yes'
15672 ;;
15673 xno)
15674 xc_lt_build_shared_with_pic='no'
15675 xc_lt_build_static_with_pic='no'
15676 ;;
15677 *)
15678 xc_lt_build_shared_with_pic='unknown'
15679 xc_lt_build_static_with_pic='unknown'
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15681$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15682 ;;
15683esac
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15685$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15687$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15689$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15691$as_echo "$xc_lt_build_static_with_pic" >&6; }
15692
15693#
15694# Verify if libtool shared libraries will be built while static not built
15695#
15696
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15698$as_echo_n "checking whether to build shared libraries only... " >&6; }
15699if test "$xc_lt_build_shared" = 'yes' &&
15700 test "$xc_lt_build_static" = 'no'; then
15701 xc_lt_build_shared_only='yes'
15702else
15703 xc_lt_build_shared_only='no'
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15706$as_echo "$xc_lt_build_shared_only" >&6; }
15707
15708#
15709# Verify if libtool static libraries will be built while shared not built
15710#
15711
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15713$as_echo_n "checking whether to build static libraries only... " >&6; }
15714if test "$xc_lt_build_static" = 'yes' &&
15715 test "$xc_lt_build_shared" = 'no'; then
15716 xc_lt_build_static_only='yes'
15717else
15718 xc_lt_build_static_only='no'
15719fi
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15721$as_echo "$xc_lt_build_static_only" >&6; }
15722
15723
15724
15725
15726#
15727# Automake conditionals based on libtool related checks
15728#
15729
15730 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15731 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15732 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15733else
15734 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15735 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15736fi
15737
15738 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15739 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15740 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15741else
15742 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15743 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15744fi
15745
15746 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15747 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15748 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15749else
15750 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15751 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15752fi
15753
15754
15755#
15756# Due to libtool and automake machinery limitations of not allowing
15757# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15758# inclusion of these in shared or static libraries, we are forced to
15759# build using separate configure runs for shared and static libraries
15760# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15761# to compile objects for each kind of library. Notice that relying on
15762# the '-DPIC' CFLAG that libtool provides is not valid given that the
15763# user might for example choose to build static libraries with PIC.
15764#
15765
15766#
15767# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15768# targeting a static library and not building its shared counterpart.
15769#
15770
15771 if test "x$xc_lt_build_static_only" = 'xyes'; then
15772 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15773 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15774else
15775 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15776 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15777fi
15778
15779
15780#
15781# Make staticlib CPPFLAG variable and its definition visible in output
15782# files unconditionally, providing an empty definition unless strictly
15783# targeting a static library and not building its shared counterpart.
15784#
15785
15786CPPFLAG_CURL_STATICLIB=
15787if test "x$xc_lt_build_static_only" = 'xyes'; then
15788 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15789fi
15790
15791
15792
15793# Determine whether all dependent libraries must be specified when linking
15794if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15795then
15796 REQUIRE_LIB_DEPS=no
15797else
15798 REQUIRE_LIB_DEPS=yes
15799fi
15800
15801 if test x$REQUIRE_LIB_DEPS = xyes; then
15802 USE_EXPLICIT_LIB_DEPS_TRUE=
15803 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15804else
15805 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15806 USE_EXPLICIT_LIB_DEPS_FALSE=
15807fi
15808
15809
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15811$as_echo_n "checking for inline... " >&6; }
15812if ${ac_cv_c_inline+:} false; then :
15813 $as_echo_n "(cached) " >&6
15814else
15815 ac_cv_c_inline=no
15816for ac_kw in inline __inline__ __inline; do
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818/* end confdefs.h. */
15819#ifndef __cplusplus
15820typedef int foo_t;
15821static $ac_kw foo_t static_foo () {return 0; }
15822$ac_kw foo_t foo () {return 0; }
15823#endif
15824
15825_ACEOF
15826if ac_fn_c_try_compile "$LINENO"; then :
15827 ac_cv_c_inline=$ac_kw
15828fi
15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830 test "$ac_cv_c_inline" != no && break
15831done
15832
15833fi
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15835$as_echo "$ac_cv_c_inline" >&6; }
15836
15837case $ac_cv_c_inline in
15838 inline | yes) ;;
15839 *)
15840 case $ac_cv_c_inline in
15841 no) ac_val=;;
15842 *) ac_val=$ac_cv_c_inline;;
15843 esac
15844 cat >>confdefs.h <<_ACEOF
15845#ifndef __cplusplus
15846#define inline $ac_val
15847#endif
15848_ACEOF
15849 ;;
15850esac
15851
15852
15853
15854
Alex Deymo486467e2017-12-19 19:04:07 +010015855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15856$as_echo_n "checking if cpp -P is needed... " >&6; }
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858/* end confdefs.h. */
15859
15860 #include <errno.h>
15861TEST EINVAL TEST
15862
15863_ACEOF
15864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15865 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15866 cpp=no
15867else
15868 cpp=yes
15869fi
15870rm -f conftest*
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15873$as_echo "$cpp" >&6; }
15874
15875 if test "x$cpp" = "xyes"; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15877$as_echo_n "checking if cpp -P works... " >&6; }
15878 OLDCPPFLAGS=$CPPFLAGS
15879 CPPFLAGS="$CPPFLAGS -P"
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h. */
15882
15883 #include <errno.h>
15884TEST EINVAL TEST
15885
15886_ACEOF
15887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15888 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15889 cpp_p=yes
15890else
15891 cpp_p=no
15892fi
15893rm -f conftest*
15894
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15896$as_echo "$cpp_p" >&6; }
15897
15898 if test "x$cpp_p" = "xno"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15900$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15901 # without -P
15902 CPPPFLAG=""
15903 else
15904 # with -P
15905 CPPPFLAG="-P"
15906 fi
15907 CPPFLAGS=$OLDCPPFLAGS
15908 else
15909 # without -P
15910 CPPPFLAG=""
15911 fi
15912
15913
Elliott Hughes82be86d2017-09-20 17:00:17 -070015914 #
15915 compiler_id="unknown"
15916 compiler_num="0"
15917 #
15918 flags_dbg_all="unknown"
15919 flags_dbg_yes="unknown"
15920 flags_dbg_off="unknown"
15921 flags_opt_all="unknown"
15922 flags_opt_yes="unknown"
15923 flags_opt_off="unknown"
15924 #
15925 flags_prefer_cppflags="no"
15926 #
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15929$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15930
15931 OLDCPPFLAGS=$CPPFLAGS
15932 # CPPPFLAG comes from CURL_CPP_P
15933 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15934 if test -z "$SED"; then
15935 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15936 fi
15937 if test -z "$GREP"; then
15938 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15939 fi
15940
15941 tmp_exp=""
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943/* end confdefs.h. */
15944
15945
15946#ifdef __DECC
15947CURL_DEF_TOKEN __DECC
15948#endif
15949
15950
15951_ACEOF
15952if ac_fn_c_try_cpp "$LINENO"; then :
15953
15954 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15955 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15956 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15957 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15958 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15959 tmp_exp=""
15960 fi
15961
15962fi
15963rm -f conftest.err conftest.i conftest.$ac_ext
15964 if test -z "$tmp_exp"; then
15965 curl_cv_have_def___DECC=no
15966
15967 else
15968 curl_cv_have_def___DECC=yes
15969 curl_cv_def___DECC=$tmp_exp
15970
15971 fi
15972 CPPFLAGS=$OLDCPPFLAGS
15973
15974
15975 OLDCPPFLAGS=$CPPFLAGS
15976 # CPPPFLAG comes from CURL_CPP_P
15977 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15978 if test -z "$SED"; then
15979 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15980 fi
15981 if test -z "$GREP"; then
15982 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15983 fi
15984
15985 tmp_exp=""
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987/* end confdefs.h. */
15988
15989
15990#ifdef __DECC_VER
15991CURL_DEF_TOKEN __DECC_VER
15992#endif
15993
15994
15995_ACEOF
15996if ac_fn_c_try_cpp "$LINENO"; then :
15997
15998 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15999 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16000 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16001 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16002 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16003 tmp_exp=""
16004 fi
16005
16006fi
16007rm -f conftest.err conftest.i conftest.$ac_ext
16008 if test -z "$tmp_exp"; then
16009 curl_cv_have_def___DECC_VER=no
16010
16011 else
16012 curl_cv_have_def___DECC_VER=yes
16013 curl_cv_def___DECC_VER=$tmp_exp
16014
16015 fi
16016 CPPFLAGS=$OLDCPPFLAGS
16017
16018 if test "$curl_cv_have_def___DECC" = "yes" &&
16019 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16021$as_echo "yes" >&6; }
16022 compiler_id="DEC_C"
16023 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16024 flags_dbg_yes="-g2"
16025 flags_dbg_off=""
16026 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16027 flags_opt_yes="-O1"
16028 flags_opt_off="-O0"
16029 else
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16031$as_echo "no" >&6; }
16032 fi
16033
16034
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16036$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16037
16038 OLDCPPFLAGS=$CPPFLAGS
16039 # CPPPFLAG comes from CURL_CPP_P
16040 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16041 if test -z "$SED"; then
16042 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16043 fi
16044 if test -z "$GREP"; then
16045 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16046 fi
16047
16048 tmp_exp=""
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050/* end confdefs.h. */
16051
16052
16053#ifdef __HP_cc
16054CURL_DEF_TOKEN __HP_cc
16055#endif
16056
16057
16058_ACEOF
16059if ac_fn_c_try_cpp "$LINENO"; then :
16060
16061 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16062 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16063 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16064 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16065 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16066 tmp_exp=""
16067 fi
16068
16069fi
16070rm -f conftest.err conftest.i conftest.$ac_ext
16071 if test -z "$tmp_exp"; then
16072 curl_cv_have_def___HP_cc=no
16073
16074 else
16075 curl_cv_have_def___HP_cc=yes
16076 curl_cv_def___HP_cc=$tmp_exp
16077
16078 fi
16079 CPPFLAGS=$OLDCPPFLAGS
16080
16081 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083$as_echo "yes" >&6; }
16084 compiler_id="HP_UX_C"
16085 flags_dbg_all="-g -s"
16086 flags_dbg_yes="-g"
16087 flags_dbg_off="-s"
16088 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16089 flags_opt_yes="+O2"
16090 flags_opt_off="+O0"
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093$as_echo "no" >&6; }
16094 fi
16095
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16098$as_echo_n "checking if compiler is IBM C... " >&6; }
16099
16100 OLDCPPFLAGS=$CPPFLAGS
16101 # CPPPFLAG comes from CURL_CPP_P
16102 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16103 if test -z "$SED"; then
16104 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16105 fi
16106 if test -z "$GREP"; then
16107 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16108 fi
16109
16110 tmp_exp=""
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112/* end confdefs.h. */
16113
16114
16115#ifdef __IBMC__
16116CURL_DEF_TOKEN __IBMC__
16117#endif
16118
16119
16120_ACEOF
16121if ac_fn_c_try_cpp "$LINENO"; then :
16122
16123 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16124 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16125 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16126 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16127 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16128 tmp_exp=""
16129 fi
16130
16131fi
16132rm -f conftest.err conftest.i conftest.$ac_ext
16133 if test -z "$tmp_exp"; then
16134 curl_cv_have_def___IBMC__=no
16135
16136 else
16137 curl_cv_have_def___IBMC__=yes
16138 curl_cv_def___IBMC__=$tmp_exp
16139
16140 fi
16141 CPPFLAGS=$OLDCPPFLAGS
16142
16143 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16145$as_echo "yes" >&6; }
16146 compiler_id="IBM_C"
16147 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16148 flags_dbg_yes="-g"
16149 flags_dbg_off=""
16150 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16151 flags_opt_all="$flags_opt_all -qnooptimize"
16152 flags_opt_all="$flags_opt_all -qoptimize=0"
16153 flags_opt_all="$flags_opt_all -qoptimize=1"
16154 flags_opt_all="$flags_opt_all -qoptimize=2"
16155 flags_opt_all="$flags_opt_all -qoptimize=3"
16156 flags_opt_all="$flags_opt_all -qoptimize=4"
16157 flags_opt_all="$flags_opt_all -qoptimize=5"
16158 flags_opt_yes="-O2"
16159 flags_opt_off="-qnooptimize"
16160 flags_prefer_cppflags="yes"
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163$as_echo "no" >&6; }
16164 fi
16165
16166
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16168$as_echo_n "checking if compiler is Intel C... " >&6; }
16169
16170 OLDCPPFLAGS=$CPPFLAGS
16171 # CPPPFLAG comes from CURL_CPP_P
16172 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16173 if test -z "$SED"; then
16174 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16175 fi
16176 if test -z "$GREP"; then
16177 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16178 fi
16179
16180 tmp_exp=""
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182/* end confdefs.h. */
16183
16184
16185#ifdef __INTEL_COMPILER
16186CURL_DEF_TOKEN __INTEL_COMPILER
16187#endif
16188
16189
16190_ACEOF
16191if ac_fn_c_try_cpp "$LINENO"; then :
16192
16193 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16194 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16195 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16196 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16197 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16198 tmp_exp=""
16199 fi
16200
16201fi
16202rm -f conftest.err conftest.i conftest.$ac_ext
16203 if test -z "$tmp_exp"; then
16204 curl_cv_have_def___INTEL_COMPILER=no
16205
16206 else
16207 curl_cv_have_def___INTEL_COMPILER=yes
16208 curl_cv_def___INTEL_COMPILER=$tmp_exp
16209
16210 fi
16211 CPPFLAGS=$OLDCPPFLAGS
16212
16213 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215$as_echo "yes" >&6; }
16216 compiler_num="$curl_cv_def___INTEL_COMPILER"
16217
16218 OLDCPPFLAGS=$CPPFLAGS
16219 # CPPPFLAG comes from CURL_CPP_P
16220 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16221 if test -z "$SED"; then
16222 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16223 fi
16224 if test -z "$GREP"; then
16225 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16226 fi
16227
16228 tmp_exp=""
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h. */
16231
16232
16233#ifdef __unix__
16234CURL_DEF_TOKEN __unix__
16235#endif
16236
16237
16238_ACEOF
16239if ac_fn_c_try_cpp "$LINENO"; then :
16240
16241 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16242 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16243 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16244 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16245 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16246 tmp_exp=""
16247 fi
16248
16249fi
16250rm -f conftest.err conftest.i conftest.$ac_ext
16251 if test -z "$tmp_exp"; then
16252 curl_cv_have_def___unix__=no
16253
16254 else
16255 curl_cv_have_def___unix__=yes
16256 curl_cv_def___unix__=$tmp_exp
16257
16258 fi
16259 CPPFLAGS=$OLDCPPFLAGS
16260
16261 if test "$curl_cv_have_def___unix__" = "yes"; then
16262 compiler_id="INTEL_UNIX_C"
16263 flags_dbg_all="-g -g0"
16264 flags_dbg_yes="-g"
16265 flags_dbg_off=""
16266 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16267 flags_opt_yes="-O2"
16268 flags_opt_off="-O0"
16269 else
16270 compiler_id="INTEL_WINDOWS_C"
16271 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16272 flags_dbg_all="$flags_dbg_all /debug"
16273 flags_dbg_all="$flags_dbg_all /debug:none"
16274 flags_dbg_all="$flags_dbg_all /debug:minimal"
16275 flags_dbg_all="$flags_dbg_all /debug:partial"
16276 flags_dbg_all="$flags_dbg_all /debug:full"
16277 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16278 flags_dbg_all="$flags_dbg_all /debug:extended"
16279 flags_dbg_yes="/Zi /Oy-"
16280 flags_dbg_off="/debug:none /Oy-"
16281 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16282 flags_opt_yes="/O2"
16283 flags_opt_off="/Od"
16284 fi
16285 else
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287$as_echo "no" >&6; }
16288 fi
16289
16290
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16292$as_echo_n "checking if compiler is clang... " >&6; }
16293
16294 OLDCPPFLAGS=$CPPFLAGS
16295 # CPPPFLAG comes from CURL_CPP_P
16296 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16297 if test -z "$SED"; then
16298 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16299 fi
16300 if test -z "$GREP"; then
16301 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16302 fi
16303
16304 tmp_exp=""
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h. */
16307
16308
16309#ifdef __clang__
16310CURL_DEF_TOKEN __clang__
16311#endif
16312
16313
16314_ACEOF
16315if ac_fn_c_try_cpp "$LINENO"; then :
16316
16317 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16318 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16319 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16320 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16321 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16322 tmp_exp=""
16323 fi
16324
16325fi
16326rm -f conftest.err conftest.i conftest.$ac_ext
16327 if test -z "$tmp_exp"; then
16328 curl_cv_have_def___clang__=no
16329
16330 else
16331 curl_cv_have_def___clang__=yes
16332 curl_cv_def___clang__=$tmp_exp
16333
16334 fi
16335 CPPFLAGS=$OLDCPPFLAGS
16336
16337 if test "$curl_cv_have_def___clang__" = "yes"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339$as_echo "yes" >&6; }
16340 compiler_id="CLANG"
16341 fullclangver=`$CC -v 2>&1 | grep version`
16342 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16343 if test -z "$clangver"; then
16344 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016345 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016346 else
16347 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16348 fi
16349 fi
16350 clangvhi=`echo $clangver | cut -d . -f1`
16351 clangvlo=`echo $clangver | cut -d . -f2`
16352 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16353 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16354 flags_dbg_all="$flags_dbg_all -ggdb"
16355 flags_dbg_all="$flags_dbg_all -gstabs"
16356 flags_dbg_all="$flags_dbg_all -gstabs+"
16357 flags_dbg_all="$flags_dbg_all -gcoff"
16358 flags_dbg_all="$flags_dbg_all -gxcoff"
16359 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16360 flags_dbg_all="$flags_dbg_all -gvms"
16361 flags_dbg_yes="-g"
16362 flags_dbg_off=""
16363 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16364 flags_opt_yes="-Os"
16365 flags_opt_off="-O0"
16366 else
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16368$as_echo "no" >&6; }
16369 fi
16370
16371
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16373$as_echo_n "checking if compiler is GNU C... " >&6; }
16374
16375 OLDCPPFLAGS=$CPPFLAGS
16376 # CPPPFLAG comes from CURL_CPP_P
16377 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16378 if test -z "$SED"; then
16379 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16380 fi
16381 if test -z "$GREP"; then
16382 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16383 fi
16384
16385 tmp_exp=""
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h. */
16388
16389
16390#ifdef __GNUC__
16391CURL_DEF_TOKEN __GNUC__
16392#endif
16393
16394
16395_ACEOF
16396if ac_fn_c_try_cpp "$LINENO"; then :
16397
16398 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16399 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16400 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16401 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16402 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16403 tmp_exp=""
16404 fi
16405
16406fi
16407rm -f conftest.err conftest.i conftest.$ac_ext
16408 if test -z "$tmp_exp"; then
16409 curl_cv_have_def___GNUC__=no
16410
16411 else
16412 curl_cv_have_def___GNUC__=yes
16413 curl_cv_def___GNUC__=$tmp_exp
16414
16415 fi
16416 CPPFLAGS=$OLDCPPFLAGS
16417
16418 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16419 test "$compiler_id" = "unknown"; then
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16421$as_echo "yes" >&6; }
16422 compiler_id="GNU_C"
16423 gccver=`$CC -dumpversion`
16424 gccvhi=`echo $gccver | cut -d . -f1`
16425 gccvlo=`echo $gccver | cut -d . -f2`
16426 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16427 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16428 flags_dbg_all="$flags_dbg_all -ggdb"
16429 flags_dbg_all="$flags_dbg_all -gstabs"
16430 flags_dbg_all="$flags_dbg_all -gstabs+"
16431 flags_dbg_all="$flags_dbg_all -gcoff"
16432 flags_dbg_all="$flags_dbg_all -gxcoff"
16433 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16434 flags_dbg_all="$flags_dbg_all -gvms"
16435 flags_dbg_yes="-g"
16436 flags_dbg_off=""
16437 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16438 flags_opt_yes="-O2"
16439 flags_opt_off="-O0"
16440
16441 OLDCPPFLAGS=$CPPFLAGS
16442 # CPPPFLAG comes from CURL_CPP_P
16443 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16444 if test -z "$SED"; then
16445 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16446 fi
16447 if test -z "$GREP"; then
16448 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16449 fi
16450
16451 tmp_exp=""
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453/* end confdefs.h. */
16454
16455
16456#ifdef _WIN32
16457CURL_DEF_TOKEN _WIN32
16458#endif
16459
16460
16461_ACEOF
16462if ac_fn_c_try_cpp "$LINENO"; then :
16463
16464 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16465 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16466 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16467 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16468 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16469 tmp_exp=""
16470 fi
16471
16472fi
16473rm -f conftest.err conftest.i conftest.$ac_ext
16474 if test -z "$tmp_exp"; then
16475 curl_cv_have_def__WIN32=no
16476
16477 else
16478 curl_cv_have_def__WIN32=yes
16479 curl_cv_def__WIN32=$tmp_exp
16480
16481 fi
16482 CPPFLAGS=$OLDCPPFLAGS
16483
16484 else
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486$as_echo "no" >&6; }
16487 fi
16488
16489
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16491$as_echo_n "checking if compiler is LCC... " >&6; }
16492
16493 OLDCPPFLAGS=$CPPFLAGS
16494 # CPPPFLAG comes from CURL_CPP_P
16495 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16496 if test -z "$SED"; then
16497 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16498 fi
16499 if test -z "$GREP"; then
16500 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16501 fi
16502
16503 tmp_exp=""
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505/* end confdefs.h. */
16506
16507
16508#ifdef __LCC__
16509CURL_DEF_TOKEN __LCC__
16510#endif
16511
16512
16513_ACEOF
16514if ac_fn_c_try_cpp "$LINENO"; then :
16515
16516 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16517 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16518 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16519 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16520 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16521 tmp_exp=""
16522 fi
16523
16524fi
16525rm -f conftest.err conftest.i conftest.$ac_ext
16526 if test -z "$tmp_exp"; then
16527 curl_cv_have_def___LCC__=no
16528
16529 else
16530 curl_cv_have_def___LCC__=yes
16531 curl_cv_def___LCC__=$tmp_exp
16532
16533 fi
16534 CPPFLAGS=$OLDCPPFLAGS
16535
16536 if test "$curl_cv_have_def___LCC__" = "yes"; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538$as_echo "yes" >&6; }
16539 compiler_id="LCC"
16540 flags_dbg_all="-g"
16541 flags_dbg_yes="-g"
16542 flags_dbg_off=""
16543 flags_opt_all=""
16544 flags_opt_yes=""
16545 flags_opt_off=""
16546 else
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548$as_echo "no" >&6; }
16549 fi
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16553$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16554
16555 OLDCPPFLAGS=$CPPFLAGS
16556 # CPPPFLAG comes from CURL_CPP_P
16557 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16558 if test -z "$SED"; then
16559 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16560 fi
16561 if test -z "$GREP"; then
16562 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16563 fi
16564
16565 tmp_exp=""
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567/* end confdefs.h. */
16568
16569
16570#ifdef __GNUC__
16571CURL_DEF_TOKEN __GNUC__
16572#endif
16573
16574
16575_ACEOF
16576if ac_fn_c_try_cpp "$LINENO"; then :
16577
16578 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16579 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16580 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16581 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16582 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16583 tmp_exp=""
16584 fi
16585
16586fi
16587rm -f conftest.err conftest.i conftest.$ac_ext
16588 if test -z "$tmp_exp"; then
16589 curl_cv_have_def___GNUC__=no
16590
16591 else
16592 curl_cv_have_def___GNUC__=yes
16593 curl_cv_def___GNUC__=$tmp_exp
16594
16595 fi
16596 CPPFLAGS=$OLDCPPFLAGS
16597
16598
16599 OLDCPPFLAGS=$CPPFLAGS
16600 # CPPPFLAG comes from CURL_CPP_P
16601 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16602 if test -z "$SED"; then
16603 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16604 fi
16605 if test -z "$GREP"; then
16606 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16607 fi
16608
16609 tmp_exp=""
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h. */
16612
16613
16614#ifdef _COMPILER_VERSION
16615CURL_DEF_TOKEN _COMPILER_VERSION
16616#endif
16617
16618
16619_ACEOF
16620if ac_fn_c_try_cpp "$LINENO"; then :
16621
16622 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16623 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16624 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16625 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16626 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16627 tmp_exp=""
16628 fi
16629
16630fi
16631rm -f conftest.err conftest.i conftest.$ac_ext
16632 if test -z "$tmp_exp"; then
16633 curl_cv_have_def__COMPILER_VERSION=no
16634
16635 else
16636 curl_cv_have_def__COMPILER_VERSION=yes
16637 curl_cv_def__COMPILER_VERSION=$tmp_exp
16638
16639 fi
16640 CPPFLAGS=$OLDCPPFLAGS
16641
16642
16643 OLDCPPFLAGS=$CPPFLAGS
16644 # CPPPFLAG comes from CURL_CPP_P
16645 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16646 if test -z "$SED"; then
16647 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16648 fi
16649 if test -z "$GREP"; then
16650 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16651 fi
16652
16653 tmp_exp=""
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h. */
16656
16657
16658#ifdef _SGI_COMPILER_VERSION
16659CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16660#endif
16661
16662
16663_ACEOF
16664if ac_fn_c_try_cpp "$LINENO"; then :
16665
16666 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16667 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16668 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16669 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16670 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16671 tmp_exp=""
16672 fi
16673
16674fi
16675rm -f conftest.err conftest.i conftest.$ac_ext
16676 if test -z "$tmp_exp"; then
16677 curl_cv_have_def__SGI_COMPILER_VERSION=no
16678
16679 else
16680 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16681 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16682
16683 fi
16684 CPPFLAGS=$OLDCPPFLAGS
16685
16686 if test "$curl_cv_have_def___GNUC__" = "no" &&
16687 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16688 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16690$as_echo "yes" >&6; }
16691 compiler_id="SGI_MIPSPRO_C"
16692 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16693 flags_dbg_yes="-g"
16694 flags_dbg_off=""
16695 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16696 flags_opt_yes="-O2"
16697 flags_opt_off="-O0"
16698 else
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
16701 fi
16702
16703
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16705$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16706
16707 OLDCPPFLAGS=$CPPFLAGS
16708 # CPPPFLAG comes from CURL_CPP_P
16709 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16710 if test -z "$SED"; then
16711 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16712 fi
16713 if test -z "$GREP"; then
16714 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16715 fi
16716
16717 tmp_exp=""
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719/* end confdefs.h. */
16720
16721
16722#ifdef __GNUC__
16723CURL_DEF_TOKEN __GNUC__
16724#endif
16725
16726
16727_ACEOF
16728if ac_fn_c_try_cpp "$LINENO"; then :
16729
16730 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16731 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16732 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16733 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16734 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16735 tmp_exp=""
16736 fi
16737
16738fi
16739rm -f conftest.err conftest.i conftest.$ac_ext
16740 if test -z "$tmp_exp"; then
16741 curl_cv_have_def___GNUC__=no
16742
16743 else
16744 curl_cv_have_def___GNUC__=yes
16745 curl_cv_def___GNUC__=$tmp_exp
16746
16747 fi
16748 CPPFLAGS=$OLDCPPFLAGS
16749
16750
16751 OLDCPPFLAGS=$CPPFLAGS
16752 # CPPPFLAG comes from CURL_CPP_P
16753 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16754 if test -z "$SED"; then
16755 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16756 fi
16757 if test -z "$GREP"; then
16758 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16759 fi
16760
16761 tmp_exp=""
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h. */
16764
16765
16766#ifdef __sgi
16767CURL_DEF_TOKEN __sgi
16768#endif
16769
16770
16771_ACEOF
16772if ac_fn_c_try_cpp "$LINENO"; then :
16773
16774 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16775 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16776 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16777 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16778 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16779 tmp_exp=""
16780 fi
16781
16782fi
16783rm -f conftest.err conftest.i conftest.$ac_ext
16784 if test -z "$tmp_exp"; then
16785 curl_cv_have_def___sgi=no
16786
16787 else
16788 curl_cv_have_def___sgi=yes
16789 curl_cv_def___sgi=$tmp_exp
16790
16791 fi
16792 CPPFLAGS=$OLDCPPFLAGS
16793
16794 if test "$curl_cv_have_def___GNUC__" = "no" &&
16795 test "$curl_cv_have_def___sgi" = "yes" &&
16796 test "$compiler_id" = "unknown"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16798$as_echo "yes" >&6; }
16799 compiler_id="SGI_MIPS_C"
16800 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16801 flags_dbg_yes="-g"
16802 flags_dbg_off=""
16803 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16804 flags_opt_yes="-O2"
16805 flags_opt_off="-O0"
16806 else
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808$as_echo "no" >&6; }
16809 fi
16810
16811
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16813$as_echo_n "checking if compiler is SunPro C... " >&6; }
16814
16815 OLDCPPFLAGS=$CPPFLAGS
16816 # CPPPFLAG comes from CURL_CPP_P
16817 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16818 if test -z "$SED"; then
16819 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16820 fi
16821 if test -z "$GREP"; then
16822 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16823 fi
16824
16825 tmp_exp=""
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h. */
16828
16829
16830#ifdef __SUNPRO_C
16831CURL_DEF_TOKEN __SUNPRO_C
16832#endif
16833
16834
16835_ACEOF
16836if ac_fn_c_try_cpp "$LINENO"; then :
16837
16838 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16839 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16840 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16841 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16842 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16843 tmp_exp=""
16844 fi
16845
16846fi
16847rm -f conftest.err conftest.i conftest.$ac_ext
16848 if test -z "$tmp_exp"; then
16849 curl_cv_have_def___SUNPRO_C=no
16850
16851 else
16852 curl_cv_have_def___SUNPRO_C=yes
16853 curl_cv_def___SUNPRO_C=$tmp_exp
16854
16855 fi
16856 CPPFLAGS=$OLDCPPFLAGS
16857
16858 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16860$as_echo "yes" >&6; }
16861 compiler_id="SUNPRO_C"
16862 flags_dbg_all="-g -s"
16863 flags_dbg_yes="-g"
16864 flags_dbg_off="-s"
16865 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16866 flags_opt_yes="-xO2"
16867 flags_opt_off=""
16868 else
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16870$as_echo "no" >&6; }
16871 fi
16872
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16875$as_echo_n "checking if compiler is Tiny C... " >&6; }
16876
16877 OLDCPPFLAGS=$CPPFLAGS
16878 # CPPPFLAG comes from CURL_CPP_P
16879 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16880 if test -z "$SED"; then
16881 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16882 fi
16883 if test -z "$GREP"; then
16884 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16885 fi
16886
16887 tmp_exp=""
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889/* end confdefs.h. */
16890
16891
16892#ifdef __TINYC__
16893CURL_DEF_TOKEN __TINYC__
16894#endif
16895
16896
16897_ACEOF
16898if ac_fn_c_try_cpp "$LINENO"; then :
16899
16900 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16901 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16902 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16903 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16904 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16905 tmp_exp=""
16906 fi
16907
16908fi
16909rm -f conftest.err conftest.i conftest.$ac_ext
16910 if test -z "$tmp_exp"; then
16911 curl_cv_have_def___TINYC__=no
16912
16913 else
16914 curl_cv_have_def___TINYC__=yes
16915 curl_cv_def___TINYC__=$tmp_exp
16916
16917 fi
16918 CPPFLAGS=$OLDCPPFLAGS
16919
16920 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16922$as_echo "yes" >&6; }
16923 compiler_id="TINY_C"
16924 flags_dbg_all="-g -b"
16925 flags_dbg_yes="-g"
16926 flags_dbg_off=""
16927 flags_opt_all=""
16928 flags_opt_yes=""
16929 flags_opt_off=""
16930 else
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16932$as_echo "no" >&6; }
16933 fi
16934
16935
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16937$as_echo_n "checking if compiler is Watcom C... " >&6; }
16938
16939 OLDCPPFLAGS=$CPPFLAGS
16940 # CPPPFLAG comes from CURL_CPP_P
16941 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16942 if test -z "$SED"; then
16943 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16944 fi
16945 if test -z "$GREP"; then
16946 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16947 fi
16948
16949 tmp_exp=""
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h. */
16952
16953
16954#ifdef __WATCOMC__
16955CURL_DEF_TOKEN __WATCOMC__
16956#endif
16957
16958
16959_ACEOF
16960if ac_fn_c_try_cpp "$LINENO"; then :
16961
16962 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16963 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16964 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16965 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16966 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16967 tmp_exp=""
16968 fi
16969
16970fi
16971rm -f conftest.err conftest.i conftest.$ac_ext
16972 if test -z "$tmp_exp"; then
16973 curl_cv_have_def___WATCOMC__=no
16974
16975 else
16976 curl_cv_have_def___WATCOMC__=yes
16977 curl_cv_def___WATCOMC__=$tmp_exp
16978
16979 fi
16980 CPPFLAGS=$OLDCPPFLAGS
16981
16982 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984$as_echo "yes" >&6; }
16985
16986 OLDCPPFLAGS=$CPPFLAGS
16987 # CPPPFLAG comes from CURL_CPP_P
16988 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16989 if test -z "$SED"; then
16990 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16991 fi
16992 if test -z "$GREP"; then
16993 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16994 fi
16995
16996 tmp_exp=""
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998/* end confdefs.h. */
16999
17000
17001#ifdef __UNIX__
17002CURL_DEF_TOKEN __UNIX__
17003#endif
17004
17005
17006_ACEOF
17007if ac_fn_c_try_cpp "$LINENO"; then :
17008
17009 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17010 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17011 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17012 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17013 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17014 tmp_exp=""
17015 fi
17016
17017fi
17018rm -f conftest.err conftest.i conftest.$ac_ext
17019 if test -z "$tmp_exp"; then
17020 curl_cv_have_def___UNIX__=no
17021
17022 else
17023 curl_cv_have_def___UNIX__=yes
17024 curl_cv_def___UNIX__=$tmp_exp
17025
17026 fi
17027 CPPFLAGS=$OLDCPPFLAGS
17028
17029 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17030 compiler_id="WATCOM_UNIX_C"
17031 flags_dbg_all="-g1 -g1+ -g2 -g3"
17032 flags_dbg_yes="-g2"
17033 flags_dbg_off=""
17034 flags_opt_all="-O0 -O1 -O2 -O3"
17035 flags_opt_yes="-O2"
17036 flags_opt_off="-O0"
17037 else
17038 compiler_id="WATCOM_WINDOWS_C"
17039 flags_dbg_all=""
17040 flags_dbg_yes=""
17041 flags_dbg_off=""
17042 flags_opt_all=""
17043 flags_opt_yes=""
17044 flags_opt_off=""
17045 fi
17046 else
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048$as_echo "no" >&6; }
17049 fi
17050
17051 #
17052 if test "$compiler_id" = "unknown"; then
17053 cat <<_EOF 1>&2
17054***
17055*** Warning: This configure script does not have information about the
17056*** compiler you are using, relative to the flags required to enable or
17057*** disable generation of debug info, optimization options or warnings.
17058***
17059*** Whatever settings are present in CFLAGS will be used for this run.
17060***
17061*** If you wish to help the curl project to better support your compiler
17062*** you can report this and the required info on the libcurl development
17063*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17064***
17065_EOF
17066 fi
17067
17068
17069squeeze() {
17070 _sqz_result=""
17071 eval _sqz_input=\$$1
17072 for _sqz_token in $_sqz_input; do
17073 if test -z "$_sqz_result"; then
17074 _sqz_result="$_sqz_token"
17075 else
17076 _sqz_result="$_sqz_result $_sqz_token"
17077 fi
17078 done
17079 eval $1=\$_sqz_result
17080 return 0
17081}
17082
17083
17084 #
17085 if test "$compiler_id" != "unknown"; then
17086 #
17087 if test "$compiler_id" = "GNU_C" ||
17088 test "$compiler_id" = "CLANG"; then
17089
17090 if test "$compiler_id" = "GNU_C" ||
17091 test "$compiler_id" = "CLANG"; then
17092 tmp_has_include="no"
17093 tmp_chg_FLAGS="$CFLAGS"
17094 for word1 in $tmp_chg_FLAGS; do
17095 case "$word1" in
17096 -I*)
17097 tmp_has_include="yes"
17098 ;;
17099 esac
17100 done
17101 if test "$tmp_has_include" = "yes"; then
17102 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17103 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17104 CFLAGS="$tmp_chg_FLAGS"
17105 squeeze CFLAGS
17106 fi
17107 tmp_has_include="no"
17108 tmp_chg_FLAGS="$CPPFLAGS"
17109 for word1 in $tmp_chg_FLAGS; do
17110 case "$word1" in
17111 -I*)
17112 tmp_has_include="yes"
17113 ;;
17114 esac
17115 done
17116 if test "$tmp_has_include" = "yes"; then
17117 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17118 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17119 CPPFLAGS="$tmp_chg_FLAGS"
17120 squeeze CPPFLAGS
17121 fi
17122 fi
17123
17124 fi
17125 #
17126 tmp_save_CPPFLAGS="$CPPFLAGS"
17127 tmp_save_CFLAGS="$CFLAGS"
17128 tmp_CPPFLAGS=""
17129 tmp_CFLAGS=""
17130 #
17131 case "$compiler_id" in
17132 #
17133 CLANG)
17134 #
17135 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17136 ;;
17137 #
17138 DEC_C)
17139 #
17140 tmp_CFLAGS="$tmp_CFLAGS -std1"
17141 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17142 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17143 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17144 ;;
17145 #
17146 GNU_C)
17147 #
17148 if test "$compiler_num" -ge "295"; then
17149 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17150 fi
17151 ;;
17152 #
17153 HP_UX_C)
17154 #
17155 tmp_CFLAGS="$tmp_CFLAGS -z"
17156 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17157 ;;
17158 #
17159 IBM_C)
17160 #
17161 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17162 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17163 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17164 ;;
17165 #
17166 INTEL_UNIX_C)
17167 #
17168 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17169 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17170 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17171 ;;
17172 #
17173 INTEL_WINDOWS_C)
17174 #
17175 tmp_CFLAGS="$tmp_CFLAGS"
17176 ;;
17177 #
17178 LCC)
17179 #
17180 tmp_CFLAGS="$tmp_CFLAGS -n"
17181 ;;
17182 #
17183 SGI_MIPS_C)
17184 #
17185 tmp_CFLAGS="$tmp_CFLAGS"
17186 ;;
17187 #
17188 SGI_MIPSPRO_C)
17189 #
17190 tmp_CFLAGS="$tmp_CFLAGS"
17191 ;;
17192 #
17193 SUNPRO_C)
17194 #
17195 tmp_CFLAGS="$tmp_CFLAGS"
17196 ;;
17197 #
17198 TINY_C)
17199 #
17200 tmp_CFLAGS="$tmp_CFLAGS"
17201 ;;
17202 #
17203 WATCOM_UNIX_C)
17204 #
17205 tmp_CFLAGS="$tmp_CFLAGS"
17206 ;;
17207 #
17208 WATCOM_WINDOWS_C)
17209 #
17210 tmp_CFLAGS="$tmp_CFLAGS"
17211 ;;
17212 #
17213 esac
17214 #
17215 squeeze tmp_CPPFLAGS
17216 squeeze tmp_CFLAGS
17217 #
17218 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17220$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17221 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17222 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17223 squeeze CPPFLAGS
17224 squeeze CFLAGS
17225
17226 tmp_compiler_works="unknown"
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h. */
17229
17230
17231
17232int main (void)
17233{
17234
17235 int i = 1;
17236 return i;
17237
17238 ;
17239 return 0;
17240}
17241
17242_ACEOF
17243if ac_fn_c_try_compile "$LINENO"; then :
17244
17245 tmp_compiler_works="yes"
17246
17247else
17248
17249 tmp_compiler_works="no"
17250 echo " " >&6
17251 sed 's/^/cc-fail: /' conftest.err >&6
17252 echo " " >&6
17253
17254fi
17255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 if test "$tmp_compiler_works" = "yes"; then
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h. */
17259
17260
17261
17262int main (void)
17263{
17264
17265 int i = 1;
17266 return i;
17267
17268 ;
17269 return 0;
17270}
17271
17272_ACEOF
17273if ac_fn_c_try_link "$LINENO"; then :
17274
17275 tmp_compiler_works="yes"
17276
17277else
17278
17279 tmp_compiler_works="no"
17280 echo " " >&6
17281 sed 's/^/link-fail: /' conftest.err >&6
17282 echo " " >&6
17283
17284fi
17285rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17287 fi
17288 if test "x$cross_compiling" != "xyes" &&
17289 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017290
17291
17292 old=$LD_LIBRARY_PATH
17293 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17294 export LD_LIBRARY_PATH
17295 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17298as_fn_error $? "cannot run test program while cross compiling
17299See \`config.log' for more details" "$LINENO" 5; }
17300else
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h. */
17303
17304
17305# ifdef __STDC__
17306# include <stdlib.h>
17307# endif
17308
17309int main (void)
17310{
17311
17312 int i = 0;
17313 exit(i);
17314
17315 ;
17316 return 0;
17317}
17318
17319_ACEOF
17320if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017321 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017322
17323else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017324 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017325 echo " " >&6
17326 echo "run-fail: test program exited with status $ac_status" >&6
17327 echo " " >&6
17328
17329fi
17330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17331 conftest.$ac_objext conftest.beam conftest.$ac_ext
17332fi
17333
Elliott Hughesa93fb052018-12-12 14:22:48 -080017334 LD_LIBRARY_PATH=$old # restore
17335
Elliott Hughes82be86d2017-09-20 17:00:17 -070017336 fi
17337 if test "$tmp_compiler_works" = "yes"; then
17338
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17340$as_echo "yes" >&6; }
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17342$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17343
17344 else
17345
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347$as_echo "no" >&6; }
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17349$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17350 CPPFLAGS="$tmp_save_CPPFLAGS"
17351 CFLAGS="$tmp_save_CFLAGS"
17352
17353 fi
17354
17355 fi
17356 #
17357 fi
17358
17359
17360 #
17361 if test "$compiler_id" != "unknown"; then
17362 #
17363 tmp_save_CFLAGS="$CFLAGS"
17364 tmp_save_CPPFLAGS="$CPPFLAGS"
17365 #
17366 tmp_options=""
17367 tmp_CFLAGS="$CFLAGS"
17368 tmp_CPPFLAGS="$CPPFLAGS"
17369
17370 ac_var_stripped=""
17371 for word1 in $tmp_CFLAGS; do
17372 ac_var_strip_word="no"
17373 for word2 in $flags_dbg_all; do
17374 if test "$word1" = "$word2"; then
17375 ac_var_strip_word="yes"
17376 fi
17377 done
17378 if test "$ac_var_strip_word" = "no"; then
17379 ac_var_stripped="$ac_var_stripped $word1"
17380 fi
17381 done
17382 tmp_CFLAGS="$ac_var_stripped"
17383 squeeze tmp_CFLAGS
17384
17385
17386 ac_var_stripped=""
17387 for word1 in $tmp_CPPFLAGS; do
17388 ac_var_strip_word="no"
17389 for word2 in $flags_dbg_all; do
17390 if test "$word1" = "$word2"; then
17391 ac_var_strip_word="yes"
17392 fi
17393 done
17394 if test "$ac_var_strip_word" = "no"; then
17395 ac_var_stripped="$ac_var_stripped $word1"
17396 fi
17397 done
17398 tmp_CPPFLAGS="$ac_var_stripped"
17399 squeeze tmp_CPPFLAGS
17400
17401 #
17402 if test "$want_debug" = "yes"; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17404$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17405 tmp_options="$flags_dbg_yes"
17406 fi
17407 if test "$want_debug" = "no"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17409$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17410 tmp_options="$flags_dbg_off"
17411 fi
17412 #
17413 if test "$flags_prefer_cppflags" = "yes"; then
17414 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17415 CFLAGS="$tmp_CFLAGS"
17416 else
17417 CPPFLAGS="$tmp_CPPFLAGS"
17418 CFLAGS="$tmp_CFLAGS $tmp_options"
17419 fi
17420 squeeze CPPFLAGS
17421 squeeze CFLAGS
17422
17423 tmp_compiler_works="unknown"
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h. */
17426
17427
17428
17429int main (void)
17430{
17431
17432 int i = 1;
17433 return i;
17434
17435 ;
17436 return 0;
17437}
17438
17439_ACEOF
17440if ac_fn_c_try_compile "$LINENO"; then :
17441
17442 tmp_compiler_works="yes"
17443
17444else
17445
17446 tmp_compiler_works="no"
17447 echo " " >&6
17448 sed 's/^/cc-fail: /' conftest.err >&6
17449 echo " " >&6
17450
17451fi
17452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 if test "$tmp_compiler_works" = "yes"; then
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h. */
17456
17457
17458
17459int main (void)
17460{
17461
17462 int i = 1;
17463 return i;
17464
17465 ;
17466 return 0;
17467}
17468
17469_ACEOF
17470if ac_fn_c_try_link "$LINENO"; then :
17471
17472 tmp_compiler_works="yes"
17473
17474else
17475
17476 tmp_compiler_works="no"
17477 echo " " >&6
17478 sed 's/^/link-fail: /' conftest.err >&6
17479 echo " " >&6
17480
17481fi
17482rm -f core conftest.err conftest.$ac_objext \
17483 conftest$ac_exeext conftest.$ac_ext
17484 fi
17485 if test "x$cross_compiling" != "xyes" &&
17486 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017487
17488
17489 old=$LD_LIBRARY_PATH
17490 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17491 export LD_LIBRARY_PATH
17492 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17495as_fn_error $? "cannot run test program while cross compiling
17496See \`config.log' for more details" "$LINENO" 5; }
17497else
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499/* end confdefs.h. */
17500
17501
17502# ifdef __STDC__
17503# include <stdlib.h>
17504# endif
17505
17506int main (void)
17507{
17508
17509 int i = 0;
17510 exit(i);
17511
17512 ;
17513 return 0;
17514}
17515
17516_ACEOF
17517if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017518 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017519
17520else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017521 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017522 echo " " >&6
17523 echo "run-fail: test program exited with status $ac_status" >&6
17524 echo " " >&6
17525
17526fi
17527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17528 conftest.$ac_objext conftest.beam conftest.$ac_ext
17529fi
17530
Elliott Hughesa93fb052018-12-12 14:22:48 -080017531 LD_LIBRARY_PATH=$old # restore
17532
Elliott Hughes82be86d2017-09-20 17:00:17 -070017533 fi
17534 if test "$tmp_compiler_works" = "yes"; then
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17537$as_echo "yes" >&6; }
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17539$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17540
17541 else
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544$as_echo "no" >&6; }
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17546$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17547 CPPFLAGS="$tmp_save_CPPFLAGS"
17548 CFLAGS="$tmp_save_CFLAGS"
17549
17550 fi
17551
17552 #
17553 fi
17554
17555
17556 #
17557 if test "$compiler_id" != "unknown"; then
17558 #
17559 tmp_save_CFLAGS="$CFLAGS"
17560 tmp_save_CPPFLAGS="$CPPFLAGS"
17561 #
17562 tmp_options=""
17563 tmp_CFLAGS="$CFLAGS"
17564 tmp_CPPFLAGS="$CPPFLAGS"
17565 honor_optimize_option="yes"
17566 #
17567 #
17568 if test "$want_optimize" = "assume_no" ||
17569 test "$want_optimize" = "assume_yes"; then
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17571$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17572
17573
17574 ac_var_match_word="no"
17575 for word1 in $tmp_CFLAGS; do
17576 for word2 in $flags_opt_all; do
17577 if test "$word1" = "$word2"; then
17578 ac_var_match_word="yes"
17579 fi
17580 done
17581 done
17582
17583 if test "$ac_var_match_word" = "yes"; then
17584
17585 honor_optimize_option="no"
17586
17587
17588 fi
17589
17590
17591
17592 ac_var_match_word="no"
17593 for word1 in $tmp_CPPFLAGS; do
17594 for word2 in $flags_opt_all; do
17595 if test "$word1" = "$word2"; then
17596 ac_var_match_word="yes"
17597 fi
17598 done
17599 done
17600
17601 if test "$ac_var_match_word" = "yes"; then
17602
17603 honor_optimize_option="no"
17604
17605
17606 fi
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17609$as_echo "$honor_optimize_option" >&6; }
17610 if test "$honor_optimize_option" = "yes"; then
17611 if test "$want_optimize" = "assume_yes"; then
17612 want_optimize="yes"
17613 fi
17614 if test "$want_optimize" = "assume_no"; then
17615 want_optimize="no"
17616 fi
17617 fi
17618 fi
17619 #
17620 if test "$honor_optimize_option" = "yes"; then
17621
17622 ac_var_stripped=""
17623 for word1 in $tmp_CFLAGS; do
17624 ac_var_strip_word="no"
17625 for word2 in $flags_opt_all; do
17626 if test "$word1" = "$word2"; then
17627 ac_var_strip_word="yes"
17628 fi
17629 done
17630 if test "$ac_var_strip_word" = "no"; then
17631 ac_var_stripped="$ac_var_stripped $word1"
17632 fi
17633 done
17634 tmp_CFLAGS="$ac_var_stripped"
17635 squeeze tmp_CFLAGS
17636
17637
17638 ac_var_stripped=""
17639 for word1 in $tmp_CPPFLAGS; do
17640 ac_var_strip_word="no"
17641 for word2 in $flags_opt_all; do
17642 if test "$word1" = "$word2"; then
17643 ac_var_strip_word="yes"
17644 fi
17645 done
17646 if test "$ac_var_strip_word" = "no"; then
17647 ac_var_stripped="$ac_var_stripped $word1"
17648 fi
17649 done
17650 tmp_CPPFLAGS="$ac_var_stripped"
17651 squeeze tmp_CPPFLAGS
17652
17653 if test "$want_optimize" = "yes"; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17655$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17656 tmp_options="$flags_opt_yes"
17657 fi
17658 if test "$want_optimize" = "no"; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17660$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17661 tmp_options="$flags_opt_off"
17662 fi
17663 if test "$flags_prefer_cppflags" = "yes"; then
17664 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17665 CFLAGS="$tmp_CFLAGS"
17666 else
17667 CPPFLAGS="$tmp_CPPFLAGS"
17668 CFLAGS="$tmp_CFLAGS $tmp_options"
17669 fi
17670 squeeze CPPFLAGS
17671 squeeze CFLAGS
17672
17673 tmp_compiler_works="unknown"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675/* end confdefs.h. */
17676
17677
17678
17679int main (void)
17680{
17681
17682 int i = 1;
17683 return i;
17684
17685 ;
17686 return 0;
17687}
17688
17689_ACEOF
17690if ac_fn_c_try_compile "$LINENO"; then :
17691
17692 tmp_compiler_works="yes"
17693
17694else
17695
17696 tmp_compiler_works="no"
17697 echo " " >&6
17698 sed 's/^/cc-fail: /' conftest.err >&6
17699 echo " " >&6
17700
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 if test "$tmp_compiler_works" = "yes"; then
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705/* end confdefs.h. */
17706
17707
17708
17709int main (void)
17710{
17711
17712 int i = 1;
17713 return i;
17714
17715 ;
17716 return 0;
17717}
17718
17719_ACEOF
17720if ac_fn_c_try_link "$LINENO"; then :
17721
17722 tmp_compiler_works="yes"
17723
17724else
17725
17726 tmp_compiler_works="no"
17727 echo " " >&6
17728 sed 's/^/link-fail: /' conftest.err >&6
17729 echo " " >&6
17730
17731fi
17732rm -f core conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 fi
17735 if test "x$cross_compiling" != "xyes" &&
17736 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017737
17738
17739 old=$LD_LIBRARY_PATH
17740 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17741 export LD_LIBRARY_PATH
17742 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17745as_fn_error $? "cannot run test program while cross compiling
17746See \`config.log' for more details" "$LINENO" 5; }
17747else
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749/* end confdefs.h. */
17750
17751
17752# ifdef __STDC__
17753# include <stdlib.h>
17754# endif
17755
17756int main (void)
17757{
17758
17759 int i = 0;
17760 exit(i);
17761
17762 ;
17763 return 0;
17764}
17765
17766_ACEOF
17767if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017768 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017769
17770else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017771 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017772 echo " " >&6
17773 echo "run-fail: test program exited with status $ac_status" >&6
17774 echo " " >&6
17775
17776fi
17777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17778 conftest.$ac_objext conftest.beam conftest.$ac_ext
17779fi
17780
Elliott Hughesa93fb052018-12-12 14:22:48 -080017781 LD_LIBRARY_PATH=$old # restore
17782
Elliott Hughes82be86d2017-09-20 17:00:17 -070017783 fi
17784 if test "$tmp_compiler_works" = "yes"; then
17785
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17787$as_echo "yes" >&6; }
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17789$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17790
17791 else
17792
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794$as_echo "no" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17796$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17797 CPPFLAGS="$tmp_save_CPPFLAGS"
17798 CFLAGS="$tmp_save_CFLAGS"
17799
17800 fi
17801
17802 fi
17803 #
17804 fi
17805
17806
17807 #
17808 if test "$compiler_id" != "unknown"; then
17809 #
17810 tmp_save_CPPFLAGS="$CPPFLAGS"
17811 tmp_save_CFLAGS="$CFLAGS"
17812 tmp_CPPFLAGS=""
17813 tmp_CFLAGS=""
17814 #
17815 case "$compiler_id" in
17816 #
17817 CLANG)
17818 #
17819 if test "$want_warnings" = "yes"; then
17820 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17821 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17822 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17823 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17824 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17825 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17826 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17827 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17828 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17831 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17832 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17833 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17834 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17835 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17836 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17837 #
17838 if test "$compiler_num" -ge "101"; then
17839 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17840 fi
17841 #
17842 if test "$compiler_num" -ge "208"; then
17843 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17844 fi
17845 #
17846 if test "$compiler_num" -ge "209"; then
17847 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17848 fi
17849 #
17850 if test "$compiler_num" -ge "302"; then
17851 case $host_os in
17852 cygwin* | mingw*)
17853 ;;
17854 *)
17855 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17856 ;;
17857 esac
17858 fi
17859 #
17860 if test "$compiler_num" -ge "306"; then
17861 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17862 fi
17863 #
17864 if test "$compiler_num" -ge "309"; then
17865 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017866 # avoid the varargs warning, fixed in 4.0
17867 # https://bugs.llvm.org/show_bug.cgi?id=29140
17868 if test "$compiler_num" -lt "400"; then
17869 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17870 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017871 fi
17872 fi
17873 ;;
17874 #
17875 DEC_C)
17876 #
17877 if test "$want_warnings" = "yes"; then
17878 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17879 fi
17880 ;;
17881 #
17882 GNU_C)
17883 #
17884 if test "$want_warnings" = "yes"; then
17885 #
17886 if test "x$cross_compiling" != "xyes" ||
17887 test "$compiler_num" -ge "300"; then
17888 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17889 fi
17890 #
17891 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17892 #
17893 if test "$compiler_num" -ge "104"; then
17894 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17895 if test "x$cross_compiling" != "xyes" ||
17896 test "$compiler_num" -ge "300"; then
17897 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17898 fi
17899 fi
17900 #
17901 if test "$compiler_num" -ge "207"; then
17902 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17903 if test "x$cross_compiling" != "xyes" ||
17904 test "$compiler_num" -ge "300"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17906 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17907 fi
17908 fi
17909 #
17910 if test "$compiler_num" -ge "295"; then
17911 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017912 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017913 fi
17914 #
17915 if test "$compiler_num" -ge "296"; then
17916 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17917 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17918 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17919 fi
17920 #
17921 if test "$compiler_num" -ge "297"; then
17922 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17923 fi
17924 #
17925 if test "$compiler_num" -ge "300"; then
17926 tmp_CFLAGS="$tmp_CFLAGS"
17927 fi
17928 #
17929 if test "$compiler_num" -ge "303"; then
17930 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17931 fi
17932 #
17933 if test "$compiler_num" -ge "304"; then
17934 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017935 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017936 fi
17937 #
17938 if test "$compiler_num" -ge "400"; then
17939 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17940 fi
17941 #
17942 if test "$compiler_num" -ge "402"; then
17943 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17944 fi
17945 #
17946 if test "$compiler_num" -ge "403"; then
17947 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17948 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17949 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17950 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017951 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017952 fi
17953 #
17954 if test "$compiler_num" -ge "405"; then
17955 if test "$curl_cv_have_def__WIN32" = "yes"; then
17956 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17957 fi
17958 fi
17959 #
17960 if test "$compiler_num" -ge "406"; then
17961 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17962 fi
17963 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017964 if test "$compiler_num" -ge "408"; then
17965 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17966 fi
17967 #
17968 if test "$compiler_num" -ge "500"; then
17969 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17970 fi
17971 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017972 if test "$compiler_num" -ge "600"; then
17973 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17974 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017975 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017976 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017977 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017978 fi
17979 #
17980 if test "$compiler_num" -ge "700"; then
17981 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17982 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17983 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17984 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17985 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017986 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017987 fi
17988 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017989 fi
17990 #
17991 if test "$compiler_num" -ge "300"; then
17992 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17993 else
17994 if test "x$cross_compiling" = "xyes"; then
17995 if test "$compiler_num" -ge "104"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17997 fi
17998 if test "$compiler_num" -ge "207"; then
17999 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18000 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18001 fi
18002 fi
18003 fi
18004 ;;
18005 #
18006 HP_UX_C)
18007 #
18008 if test "$want_warnings" = "yes"; then
18009 tmp_CFLAGS="$tmp_CFLAGS +w1"
18010 fi
18011 ;;
18012 #
18013 IBM_C)
18014 #
18015 tmp_CFLAGS="$tmp_CFLAGS"
18016 ;;
18017 #
18018 INTEL_UNIX_C)
18019 #
18020 if test "$want_warnings" = "yes"; then
18021 if test "$compiler_num" -gt "600"; then
18022 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18023 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18024 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18025 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18026 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18027 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18028 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18029 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18030 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18031 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18032 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18033 fi
18034 fi
18035 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18036 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18037 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18038 if test "$compiler_num" -ge "1000"; then
18039 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18040 fi
18041 ;;
18042 #
18043 INTEL_WINDOWS_C)
18044 #
18045 tmp_CFLAGS="$tmp_CFLAGS"
18046 ;;
18047 #
18048 LCC)
18049 #
18050 if test "$want_warnings" = "yes"; then
18051 tmp_CFLAGS="$tmp_CFLAGS"
18052 fi
18053 ;;
18054 #
18055 SGI_MIPS_C)
18056 #
18057 if test "$want_warnings" = "yes"; then
18058 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18059 fi
18060 ;;
18061 #
18062 SGI_MIPSPRO_C)
18063 #
18064 if test "$want_warnings" = "yes"; then
18065 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18066 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18067 fi
18068 ;;
18069 #
18070 SUNPRO_C)
18071 #
18072 if test "$want_warnings" = "yes"; then
18073 tmp_CFLAGS="$tmp_CFLAGS -v"
18074 fi
18075 ;;
18076 #
18077 TINY_C)
18078 #
18079 if test "$want_warnings" = "yes"; then
18080 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18081 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18082 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18083 fi
18084 ;;
18085 #
18086 WATCOM_UNIX_C)
18087 #
18088 if test "$want_warnings" = "yes"; then
18089 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18090 fi
18091 ;;
18092 #
18093 WATCOM_WINDOWS_C)
18094 #
18095 tmp_CFLAGS="$tmp_CFLAGS"
18096 ;;
18097 #
18098 esac
18099 #
18100 squeeze tmp_CPPFLAGS
18101 squeeze tmp_CFLAGS
18102 #
18103 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18105$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18106 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18107 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18108 squeeze CPPFLAGS
18109 squeeze CFLAGS
18110
18111 tmp_compiler_works="unknown"
18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18113/* end confdefs.h. */
18114
18115
18116
18117int main (void)
18118{
18119
18120 int i = 1;
18121 return i;
18122
18123 ;
18124 return 0;
18125}
18126
18127_ACEOF
18128if ac_fn_c_try_compile "$LINENO"; then :
18129
18130 tmp_compiler_works="yes"
18131
18132else
18133
18134 tmp_compiler_works="no"
18135 echo " " >&6
18136 sed 's/^/cc-fail: /' conftest.err >&6
18137 echo " " >&6
18138
18139fi
18140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 if test "$tmp_compiler_works" = "yes"; then
18142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143/* end confdefs.h. */
18144
18145
18146
18147int main (void)
18148{
18149
18150 int i = 1;
18151 return i;
18152
18153 ;
18154 return 0;
18155}
18156
18157_ACEOF
18158if ac_fn_c_try_link "$LINENO"; then :
18159
18160 tmp_compiler_works="yes"
18161
18162else
18163
18164 tmp_compiler_works="no"
18165 echo " " >&6
18166 sed 's/^/link-fail: /' conftest.err >&6
18167 echo " " >&6
18168
18169fi
18170rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 fi
18173 if test "x$cross_compiling" != "xyes" &&
18174 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018175
18176
18177 old=$LD_LIBRARY_PATH
18178 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18179 export LD_LIBRARY_PATH
18180 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18183as_fn_error $? "cannot run test program while cross compiling
18184See \`config.log' for more details" "$LINENO" 5; }
18185else
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h. */
18188
18189
18190# ifdef __STDC__
18191# include <stdlib.h>
18192# endif
18193
18194int main (void)
18195{
18196
18197 int i = 0;
18198 exit(i);
18199
18200 ;
18201 return 0;
18202}
18203
18204_ACEOF
18205if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018206 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018207
18208else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018209 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018210 echo " " >&6
18211 echo "run-fail: test program exited with status $ac_status" >&6
18212 echo " " >&6
18213
18214fi
18215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18216 conftest.$ac_objext conftest.beam conftest.$ac_ext
18217fi
18218
Elliott Hughesa93fb052018-12-12 14:22:48 -080018219 LD_LIBRARY_PATH=$old # restore
18220
Elliott Hughes82be86d2017-09-20 17:00:17 -070018221 fi
18222 if test "$tmp_compiler_works" = "yes"; then
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18225$as_echo "yes" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18227$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18228
18229 else
18230
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18232$as_echo "no" >&6; }
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18234$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18235 CPPFLAGS="$tmp_save_CPPFLAGS"
18236 CFLAGS="$tmp_save_CFLAGS"
18237
18238 fi
18239
18240 fi
18241 #
18242 fi
18243
18244
18245if test "$compiler_id" = "INTEL_UNIX_C"; then
18246 #
18247 if test "$compiler_num" -ge "1000"; then
18248 CFLAGS="$CFLAGS -shared-intel"
18249 elif test "$compiler_num" -ge "900"; then
18250 CFLAGS="$CFLAGS -i-dynamic"
18251 fi
18252 #
18253fi
18254
18255
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18257$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259/* end confdefs.h. */
18260
18261
18262
18263int main (void)
18264{
18265
18266 force compilation error
18267
18268 ;
18269 return 0;
18270}
18271
18272_ACEOF
18273if ac_fn_c_try_compile "$LINENO"; then :
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276$as_echo "no" >&6; }
18277 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18278
18279else
18280
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18282$as_echo "yes" >&6; }
18283
18284fi
18285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18286
18287
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18289$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291/* end confdefs.h. */
18292
18293
18294 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18295
18296int main (void)
18297{
18298
18299 bad_t dummy;
18300
18301 ;
18302 return 0;
18303}
18304
18305_ACEOF
18306if ac_fn_c_try_compile "$LINENO"; then :
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309$as_echo "no" >&6; }
18310 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18311
18312else
18313
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315$as_echo "yes" >&6; }
18316
18317fi
18318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319
18320
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18322$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324/* end confdefs.h. */
18325
18326
18327# include <stdlib.h>
18328 int rand(int n);
18329 int rand(int n)
18330 {
18331 if(n)
18332 return ++n;
18333 else
18334 return n;
18335 }
18336
18337int main (void)
18338{
18339
18340 int i[2]={0,0};
18341 int j = rand(i[0]);
18342 if(j)
18343 return j;
18344
18345 ;
18346 return 0;
18347}
18348
18349_ACEOF
18350if ac_fn_c_try_compile "$LINENO"; then :
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353$as_echo "no" >&6; }
18354 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18355
18356else
18357
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359$as_echo "yes" >&6; }
18360
18361fi
18362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18363
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18366$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18367 supports_symbol_hiding="no"
18368 symbol_hiding_CFLAGS=""
18369 symbol_hiding_EXTERN=""
18370 tmp_CFLAGS=""
18371 tmp_EXTERN=""
18372 case "$compiler_id" in
18373 CLANG)
18374 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18375 tmp_CFLAGS="-fvisibility=hidden"
18376 supports_symbol_hiding="yes"
18377 ;;
18378 GNU_C)
18379 if test "$compiler_num" -ge "304"; then
18380 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18381 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18382 tmp_CFLAGS="-fvisibility=hidden"
18383 supports_symbol_hiding="yes"
18384 fi
18385 fi
18386 ;;
18387 INTEL_UNIX_C)
18388 if test "$compiler_num" -ge "900"; then
18389 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18390 tmp_save_CFLAGS="$CFLAGS"
18391 CFLAGS="$CFLAGS -fvisibility=hidden"
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393/* end confdefs.h. */
18394
18395
18396# include <stdio.h>
18397
18398int main (void)
18399{
18400
18401 printf("icc fvisibility bug test");
18402
18403 ;
18404 return 0;
18405}
18406
18407_ACEOF
18408if ac_fn_c_try_link "$LINENO"; then :
18409
18410 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18411 tmp_CFLAGS="-fvisibility=hidden"
18412 supports_symbol_hiding="yes"
18413
18414fi
18415rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 CFLAGS="$tmp_save_CFLAGS"
18418 fi
18419 fi
18420 ;;
18421 SUNPRO_C)
18422 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18423 tmp_EXTERN="__global"
18424 tmp_CFLAGS="-xldscope=hidden"
18425 supports_symbol_hiding="yes"
18426 fi
18427 ;;
18428 esac
18429 if test "$supports_symbol_hiding" = "yes"; then
18430 tmp_save_CFLAGS="$CFLAGS"
18431 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18432 squeeze CFLAGS
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434/* end confdefs.h. */
18435
18436
18437 $tmp_EXTERN char *dummy(char *buff);
18438 char *dummy(char *buff)
18439 {
18440 if(buff)
18441 return ++buff;
18442 else
18443 return buff;
18444 }
18445
18446int main (void)
18447{
18448
18449 char b[16];
18450 char *r = dummy(&b[0]);
18451 if(r)
18452 return (int)*r;
18453
18454 ;
18455 return 0;
18456}
18457
18458_ACEOF
18459if ac_fn_c_try_compile "$LINENO"; then :
18460
18461 supports_symbol_hiding="yes"
18462 if test -f conftest.err; then
18463 grep 'visibility' conftest.err >/dev/null
18464 if test "$?" -eq "0"; then
18465 supports_symbol_hiding="no"
18466 fi
18467 fi
18468
18469else
18470
18471 supports_symbol_hiding="no"
18472 echo " " >&6
18473 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18474 sed 's/^/cc-err: /' conftest.err >&6
18475 echo " " >&6
18476
18477fi
18478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 CFLAGS="$tmp_save_CFLAGS"
18480 fi
18481 if test "$supports_symbol_hiding" = "yes"; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18483$as_echo "yes" >&6; }
18484 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18485 symbol_hiding_EXTERN="$tmp_EXTERN"
18486 else
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18488$as_echo "no" >&6; }
18489 fi
18490
18491
18492
18493 supports_curldebug="unknown"
18494 if test "$want_curldebug" = "yes"; then
18495 if test "x$enable_shared" != "xno" &&
18496 test "x$enable_shared" != "xyes"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18498$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18499 supports_curldebug="no"
18500 fi
18501 if test "x$enable_static" != "xno" &&
18502 test "x$enable_static" != "xyes"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18504$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18505 supports_curldebug="no"
18506 fi
18507 if test "$supports_curldebug" != "no"; then
18508 if test "$enable_shared" = "yes" &&
18509 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18510 supports_curldebug="no"
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18512$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18513 fi
18514 fi
18515 fi
18516 #
18517 if test "$want_curldebug" = "yes"; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18519$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18520 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18522$as_echo "$supports_curldebug" >&6; }
18523 if test "$supports_curldebug" = "no"; then
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18525$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18526 want_curldebug="no"
18527 fi
18528 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018529
18530 if test x$want_curldebug = xyes; then
18531 CURLDEBUG_TRUE=
18532 CURLDEBUG_FALSE='#'
18533else
18534 CURLDEBUG_TRUE='#'
18535 CURLDEBUG_FALSE=
18536fi
18537
18538
18539supports_unittests=yes
18540# cross-compilation of unit tests static library/programs fails when
18541# libcurl shared library is built. This might be due to a libtool or
18542# automake issue. In this case we disable unit tests.
18543if test "x$cross_compiling" != "xno" &&
18544 test "x$enable_shared" != "xno"; then
18545 supports_unittests=no
18546fi
18547
18548# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18549# a problem related with OpenSSL headers and library versions not matching.
18550# Disable unit tests while time to further investigate this is found.
18551case $host in
18552 mips-sgi-irix6.5)
18553 if test "$compiler_id" = "GNU_C"; then
18554 supports_unittests=no
18555 fi
18556 ;;
18557esac
18558
18559# All AIX autobuilds fails unit tests linking against unittests library
18560# due to unittests library being built with no symbols or members. Libtool ?
18561# Disable unit tests while time to further investigate this is found.
18562case $host_os in
18563 aix*)
18564 supports_unittests=no
18565 ;;
18566esac
18567
18568if test "x$want_debug" = "xyes" &&
18569 test "x$supports_unittests" = "xyes"; then
18570 want_unittests=yes
18571else
18572 want_unittests=no
18573fi
18574 if test x$want_unittests = xyes; then
18575 BUILD_UNITTESTS_TRUE=
18576 BUILD_UNITTESTS_FALSE='#'
18577else
18578 BUILD_UNITTESTS_TRUE='#'
18579 BUILD_UNITTESTS_FALSE=
18580fi
18581
18582
18583
18584
18585
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18587$as_echo_n "checking for windows.h... " >&6; }
18588if ${curl_cv_header_windows_h+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590else
18591
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593/* end confdefs.h. */
18594
18595
18596#undef inline
18597#ifndef WIN32_LEAN_AND_MEAN
18598#define WIN32_LEAN_AND_MEAN
18599#endif
18600#include <windows.h>
18601
18602int main (void)
18603{
18604
18605#if defined(__CYGWIN__) || defined(__CEGCC__)
18606 HAVE_WINDOWS_H shall not be defined.
18607#else
18608 int dummy=2*WINVER;
18609#endif
18610
18611 ;
18612 return 0;
18613}
18614
18615_ACEOF
18616if ac_fn_c_try_compile "$LINENO"; then :
18617
18618 curl_cv_header_windows_h="yes"
18619
18620else
18621
18622 curl_cv_header_windows_h="no"
18623
18624fi
18625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626
18627fi
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18629$as_echo "$curl_cv_header_windows_h" >&6; }
18630 case "$curl_cv_header_windows_h" in
18631 yes)
18632
18633cat >>confdefs.h <<_ACEOF
18634#define HAVE_WINDOWS_H 1
18635_ACEOF
18636
18637 ;;
18638 esac
18639
18640
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18642$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18643if ${curl_cv_native_windows+:} false; then :
18644 $as_echo_n "(cached) " >&6
18645else
18646
18647 if test "$curl_cv_header_windows_h" = "no"; then
18648 curl_cv_native_windows="no"
18649 else
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651/* end confdefs.h. */
18652
18653
18654
18655int main (void)
18656{
18657
18658#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18659 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18660 int dummy=1;
18661#else
18662 Not a native Windows build target.
18663#endif
18664
18665 ;
18666 return 0;
18667}
18668
18669_ACEOF
18670if ac_fn_c_try_compile "$LINENO"; then :
18671
18672 curl_cv_native_windows="yes"
18673
18674else
18675
18676 curl_cv_native_windows="no"
18677
18678fi
18679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 fi
18681
18682fi
18683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18684$as_echo "$curl_cv_native_windows" >&6; }
18685 if test "x$curl_cv_native_windows" = xyes; then
18686 DOING_NATIVE_WINDOWS_TRUE=
18687 DOING_NATIVE_WINDOWS_FALSE='#'
18688else
18689 DOING_NATIVE_WINDOWS_TRUE='#'
18690 DOING_NATIVE_WINDOWS_FALSE=
18691fi
18692
18693
18694case X-"$curl_cv_native_windows" in
18695 X-yes)
18696
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18698$as_echo_n "checking for winsock.h... " >&6; }
18699if ${curl_cv_header_winsock_h+:} false; then :
18700 $as_echo_n "(cached) " >&6
18701else
18702
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704/* end confdefs.h. */
18705
18706
18707#undef inline
18708#ifndef WIN32_LEAN_AND_MEAN
18709#define WIN32_LEAN_AND_MEAN
18710#endif
18711#include <windows.h>
18712#include <winsock.h>
18713
18714int main (void)
18715{
18716
18717#if defined(__CYGWIN__) || defined(__CEGCC__)
18718 HAVE_WINSOCK_H shall not be defined.
18719#else
18720 int dummy=WSACleanup();
18721#endif
18722
18723 ;
18724 return 0;
18725}
18726
18727_ACEOF
18728if ac_fn_c_try_compile "$LINENO"; then :
18729
18730 curl_cv_header_winsock_h="yes"
18731
18732else
18733
18734 curl_cv_header_winsock_h="no"
18735
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738
18739fi
18740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18741$as_echo "$curl_cv_header_winsock_h" >&6; }
18742 case "$curl_cv_header_winsock_h" in
18743 yes)
18744
18745cat >>confdefs.h <<_ACEOF
18746#define HAVE_WINSOCK_H 1
18747_ACEOF
18748
18749 ;;
18750 esac
18751
18752
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18754$as_echo_n "checking for winsock2.h... " >&6; }
18755if ${curl_cv_header_winsock2_h+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757else
18758
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760/* end confdefs.h. */
18761
18762
18763#undef inline
18764#ifndef WIN32_LEAN_AND_MEAN
18765#define WIN32_LEAN_AND_MEAN
18766#endif
18767#include <windows.h>
18768#include <winsock2.h>
18769
18770int main (void)
18771{
18772
18773#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18774 HAVE_WINSOCK2_H shall not be defined.
18775#else
18776 int dummy=2*IPPROTO_ESP;
18777#endif
18778
18779 ;
18780 return 0;
18781}
18782
18783_ACEOF
18784if ac_fn_c_try_compile "$LINENO"; then :
18785
18786 curl_cv_header_winsock2_h="yes"
18787
18788else
18789
18790 curl_cv_header_winsock2_h="no"
18791
18792fi
18793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794
18795fi
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18797$as_echo "$curl_cv_header_winsock2_h" >&6; }
18798 case "$curl_cv_header_winsock2_h" in
18799 yes)
18800
18801cat >>confdefs.h <<_ACEOF
18802#define HAVE_WINSOCK2_H 1
18803_ACEOF
18804
18805 ;;
18806 esac
18807
18808
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18810$as_echo_n "checking for ws2tcpip.h... " >&6; }
18811if ${curl_cv_header_ws2tcpip_h+:} false; then :
18812 $as_echo_n "(cached) " >&6
18813else
18814
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816/* end confdefs.h. */
18817
18818
18819#undef inline
18820#ifndef WIN32_LEAN_AND_MEAN
18821#define WIN32_LEAN_AND_MEAN
18822#endif
18823#include <windows.h>
18824#include <winsock2.h>
18825#include <ws2tcpip.h>
18826
18827int main (void)
18828{
18829
18830#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18831 HAVE_WS2TCPIP_H shall not be defined.
18832#else
18833 int dummy=2*IP_PKTINFO;
18834#endif
18835
18836 ;
18837 return 0;
18838}
18839
18840_ACEOF
18841if ac_fn_c_try_compile "$LINENO"; then :
18842
18843 curl_cv_header_ws2tcpip_h="yes"
18844
18845else
18846
18847 curl_cv_header_ws2tcpip_h="no"
18848
18849fi
18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851
18852fi
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18854$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18855 case "$curl_cv_header_ws2tcpip_h" in
18856 yes)
18857
18858cat >>confdefs.h <<_ACEOF
18859#define HAVE_WS2TCPIP_H 1
18860_ACEOF
18861
18862 ;;
18863 esac
18864
18865
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18867$as_echo_n "checking for winldap.h... " >&6; }
18868if ${curl_cv_header_winldap_h+:} false; then :
18869 $as_echo_n "(cached) " >&6
18870else
18871
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873/* end confdefs.h. */
18874
18875
18876#undef inline
18877#ifdef HAVE_WINDOWS_H
18878#ifndef WIN32_LEAN_AND_MEAN
18879#define WIN32_LEAN_AND_MEAN
18880#endif
18881#include <windows.h>
18882#endif
18883#include <winldap.h>
18884
18885int main (void)
18886{
18887
18888#if defined(__CYGWIN__) || defined(__CEGCC__)
18889 HAVE_WINLDAP_H shall not be defined.
18890#else
18891 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18892 ULONG res = ldap_unbind(ldp);
18893#endif
18894
18895 ;
18896 return 0;
18897}
18898
18899_ACEOF
18900if ac_fn_c_try_compile "$LINENO"; then :
18901
18902 curl_cv_header_winldap_h="yes"
18903
18904else
18905
18906 curl_cv_header_winldap_h="no"
18907
18908fi
18909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910
18911fi
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18913$as_echo "$curl_cv_header_winldap_h" >&6; }
18914 case "$curl_cv_header_winldap_h" in
18915 yes)
18916
18917cat >>confdefs.h <<_ACEOF
18918#define HAVE_WINLDAP_H 1
18919_ACEOF
18920
18921 ;;
18922 esac
18923
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18926$as_echo_n "checking for winber.h... " >&6; }
18927if ${curl_cv_header_winber_h+:} false; then :
18928 $as_echo_n "(cached) " >&6
18929else
18930
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932/* end confdefs.h. */
18933
18934
18935#undef inline
18936#ifdef HAVE_WINDOWS_H
18937#ifndef WIN32_LEAN_AND_MEAN
18938#define WIN32_LEAN_AND_MEAN
18939#endif
18940#include <windows.h>
18941#endif
18942#include <winldap.h>
18943#include <winber.h>
18944
18945int main (void)
18946{
18947
18948#if defined(__CYGWIN__) || defined(__CEGCC__)
18949 HAVE_WINBER_H shall not be defined.
18950#else
18951 BERVAL *bvp = NULL;
18952 BerElement *bep = ber_init(bvp);
18953 ber_free(bep, 1);
18954#endif
18955
18956 ;
18957 return 0;
18958}
18959
18960_ACEOF
18961if ac_fn_c_try_compile "$LINENO"; then :
18962
18963 curl_cv_header_winber_h="yes"
18964
18965else
18966
18967 curl_cv_header_winber_h="no"
18968
18969fi
18970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972fi
18973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18974$as_echo "$curl_cv_header_winber_h" >&6; }
18975 case "$curl_cv_header_winber_h" in
18976 yes)
18977
18978cat >>confdefs.h <<_ACEOF
18979#define HAVE_WINBER_H 1
18980_ACEOF
18981
18982 ;;
18983 esac
18984
18985 ;;
18986 *)
18987 curl_cv_header_winsock_h="no"
18988 curl_cv_header_winsock2_h="no"
18989 curl_cv_header_ws2tcpip_h="no"
18990 curl_cv_header_winldap_h="no"
18991 curl_cv_header_winber_h="no"
18992 ;;
18993esac
18994
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18996$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18997 curl_win32_file_api="no"
18998 if test "$curl_cv_header_windows_h" = "yes"; then
18999 if test x"$enable_largefile" != "xno"; then
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h. */
19002
19003
19004
19005int main (void)
19006{
19007
19008#if !defined(_WIN32_WCE) && \
19009 (defined(__MINGW32__) || \
19010 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19011 int dummy=1;
19012#else
19013 WIN32 large file API not supported.
19014#endif
19015
19016 ;
19017 return 0;
19018}
19019
19020_ACEOF
19021if ac_fn_c_try_compile "$LINENO"; then :
19022
19023 curl_win32_file_api="win32_large_files"
19024
19025fi
19026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19027 fi
19028 if test "$curl_win32_file_api" = "no"; then
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030/* end confdefs.h. */
19031
19032
19033
19034int main (void)
19035{
19036
19037#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19038 int dummy=1;
19039#else
19040 WIN32 small file API not supported.
19041#endif
19042
19043 ;
19044 return 0;
19045}
19046
19047_ACEOF
19048if ac_fn_c_try_compile "$LINENO"; then :
19049
19050 curl_win32_file_api="win32_small_files"
19051
19052fi
19053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054 fi
19055 fi
19056 case "$curl_win32_file_api" in
19057 win32_large_files)
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19059$as_echo "yes (large file enabled)" >&6; }
19060
19061cat >>confdefs.h <<_ACEOF
19062#define USE_WIN32_LARGE_FILES 1
19063_ACEOF
19064
19065 ;;
19066 win32_small_files)
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19068$as_echo "yes (large file disabled)" >&6; }
19069
19070cat >>confdefs.h <<_ACEOF
19071#define USE_WIN32_SMALL_FILES 1
19072_ACEOF
19073
19074 ;;
19075 *)
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077$as_echo "no" >&6; }
19078 ;;
19079 esac
19080
19081
19082
19083
19084 tst_cflags="no"
19085 case $host_os in
19086 darwin*)
19087 tst_cflags="yes"
19088 ;;
19089 esac
19090
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19092$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19094$as_echo "$tst_cflags" >&6; };
19095
19096 if test "$tst_cflags" = "yes"; then
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19098$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19099 min=""
19100 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19101 min="-mmacosx-version-min=10.8"
19102 CFLAGS="$CFLAGS $min"
19103 fi
19104 if test -z "$min"; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19106$as_echo "set by user" >&6; }
19107 else
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19109$as_echo "$min set" >&6; }
19110 fi
19111
19112 old_CFLAGS=$CFLAGS
19113 CFLAGS="$CFLAGS -Werror=partial-availability"
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19115$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117/* end confdefs.h. */
19118
19119int main (void)
19120{
19121
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126if ac_fn_c_try_compile "$LINENO"; then :
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19128$as_echo "yes" >&6; }
19129else
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131$as_echo "no" >&6; }
19132 CFLAGS=$old_CFLAGS
19133fi
19134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 fi
19136
19137
19138
Alex Deymo486467e2017-12-19 19:04:07 +010019139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19140$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h. */
19143
19144
19145#include <stdlib.h>
19146
19147int main (void)
19148{
19149
19150 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19151
19152 ;
19153 return 0;
19154}
19155
19156_ACEOF
19157if ac_fn_c_try_compile "$LINENO"; then :
19158
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160$as_echo "yes" >&6; }
19161
19162cat >>confdefs.h <<_ACEOF
19163#define HAVE_BUILTIN_AVAILABLE 1
19164_ACEOF
19165
19166
19167else
19168
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19170$as_echo "no" >&6; }
19171
19172fi
19173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174
19175
Elliott Hughes82be86d2017-09-20 17:00:17 -070019176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19177$as_echo_n "checking whether to support http... " >&6; }
19178# Check whether --enable-http was given.
19179if test "${enable_http+set}" = set; then :
19180 enableval=$enable_http; case "$enableval" in
19181 no)
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19183$as_echo "no" >&6; }
19184
19185$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19186
19187 disable_http="yes"
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19189$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19190 CURL_DISABLE_HTTP=1
19191
19192
19193$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19194
19195 CURL_DISABLE_RTSP=1
19196
19197 ;;
19198 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19199$as_echo "yes" >&6; }
19200 ;;
19201 esac
19202else
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19204$as_echo "yes" >&6; }
19205
19206fi
19207
19208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19209$as_echo_n "checking whether to support ftp... " >&6; }
19210# Check whether --enable-ftp was given.
19211if test "${enable_ftp+set}" = set; then :
19212 enableval=$enable_ftp; case "$enableval" in
19213 no)
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215$as_echo "no" >&6; }
19216
19217$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19218
19219 CURL_DISABLE_FTP=1
19220
19221 ;;
19222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223$as_echo "yes" >&6; }
19224 ;;
19225 esac
19226else
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19228$as_echo "yes" >&6; }
19229
19230fi
19231
19232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19233$as_echo_n "checking whether to support file... " >&6; }
19234# Check whether --enable-file was given.
19235if test "${enable_file+set}" = set; then :
19236 enableval=$enable_file; case "$enableval" in
19237 no)
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19239$as_echo "no" >&6; }
19240
19241$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19242
19243 CURL_DISABLE_FILE=1
19244
19245 ;;
19246 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247$as_echo "yes" >&6; }
19248 ;;
19249 esac
19250else
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19252$as_echo "yes" >&6; }
19253
19254fi
19255
19256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19257$as_echo_n "checking whether to support ldap... " >&6; }
19258# Check whether --enable-ldap was given.
19259if test "${enable_ldap+set}" = set; then :
19260 enableval=$enable_ldap; case "$enableval" in
19261 no)
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263$as_echo "no" >&6; }
19264
19265$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19266
19267 CURL_DISABLE_LDAP=1
19268
19269 ;;
19270 *)
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19272$as_echo "yes" >&6; }
19273 ;;
19274 esac
19275else
19276
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19278$as_echo "yes" >&6; }
19279
19280fi
19281
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19283$as_echo_n "checking whether to support ldaps... " >&6; }
19284# Check whether --enable-ldaps was given.
19285if test "${enable_ldaps+set}" = set; then :
19286 enableval=$enable_ldaps; case "$enableval" in
19287 no)
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289$as_echo "no" >&6; }
19290
19291$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19292
19293 CURL_DISABLE_LDAPS=1
19294
19295 ;;
19296 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19298$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19299
19300$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19301
19302 CURL_DISABLE_LDAPS=1
19303
19304 else
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19306$as_echo "yes" >&6; }
19307
19308$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19309
19310 HAVE_LDAP_SSL=1
19311
19312 fi
19313 ;;
19314 esac
19315else
19316
19317 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319$as_echo "no" >&6; }
19320
19321$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19322
19323 CURL_DISABLE_LDAPS=1
19324
19325 else
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327$as_echo "yes" >&6; }
19328
19329$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19330
19331 HAVE_LDAP_SSL=1
19332
19333 fi
19334
19335fi
19336
19337
19338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19339$as_echo_n "checking whether to support rtsp... " >&6; }
19340# Check whether --enable-rtsp was given.
19341if test "${enable_rtsp+set}" = set; then :
19342 enableval=$enable_rtsp; case "$enableval" in
19343 no)
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19345$as_echo "no" >&6; }
19346
19347$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19348
19349 CURL_DISABLE_RTSP=1
19350
19351 ;;
19352 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19353 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19354 else
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19356$as_echo "yes" >&6; }
19357 curl_rtsp_msg="enabled"
19358 fi
19359 ;;
19360 esac
19361else
19362 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19364$as_echo "yes" >&6; }
19365 curl_rtsp_msg="enabled"
19366 else
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19368$as_echo "no" >&6; }
19369 fi
19370
19371fi
19372
19373
19374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19375$as_echo_n "checking whether to support proxies... " >&6; }
19376# Check whether --enable-proxy was given.
19377if test "${enable_proxy+set}" = set; then :
19378 enableval=$enable_proxy; case "$enableval" in
19379 no)
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19381$as_echo "no" >&6; }
19382
19383$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19384
19385 CURL_DISABLE_PROXY=1
19386
19387 ;;
19388 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19389$as_echo "yes" >&6; }
19390 ;;
19391 esac
19392else
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394$as_echo "yes" >&6; }
19395
19396fi
19397
19398
19399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19400$as_echo_n "checking whether to support dict... " >&6; }
19401# Check whether --enable-dict was given.
19402if test "${enable_dict+set}" = set; then :
19403 enableval=$enable_dict; case "$enableval" in
19404 no)
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406$as_echo "no" >&6; }
19407
19408$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19409
19410 CURL_DISABLE_DICT=1
19411
19412 ;;
19413 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19414$as_echo "yes" >&6; }
19415 ;;
19416 esac
19417else
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19419$as_echo "yes" >&6; }
19420
19421fi
19422
19423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19424$as_echo_n "checking whether to support telnet... " >&6; }
19425# Check whether --enable-telnet was given.
19426if test "${enable_telnet+set}" = set; then :
19427 enableval=$enable_telnet; case "$enableval" in
19428 no)
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19430$as_echo "no" >&6; }
19431
19432$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19433
19434 CURL_DISABLE_TELNET=1
19435
19436 ;;
19437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19438$as_echo "yes" >&6; }
19439 ;;
19440 esac
19441else
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19443$as_echo "yes" >&6; }
19444
19445fi
19446
19447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19448$as_echo_n "checking whether to support tftp... " >&6; }
19449# Check whether --enable-tftp was given.
19450if test "${enable_tftp+set}" = set; then :
19451 enableval=$enable_tftp; case "$enableval" in
19452 no)
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19454$as_echo "no" >&6; }
19455
19456$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19457
19458 CURL_DISABLE_TFTP=1
19459
19460 ;;
19461 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19462$as_echo "yes" >&6; }
19463 ;;
19464 esac
19465else
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19467$as_echo "yes" >&6; }
19468
19469fi
19470
19471
19472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19473$as_echo_n "checking whether to support pop3... " >&6; }
19474# Check whether --enable-pop3 was given.
19475if test "${enable_pop3+set}" = set; then :
19476 enableval=$enable_pop3; case "$enableval" in
19477 no)
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19479$as_echo "no" >&6; }
19480
19481$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19482
19483 CURL_DISABLE_POP3=1
19484
19485 ;;
19486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19487$as_echo "yes" >&6; }
19488 ;;
19489 esac
19490else
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19492$as_echo "yes" >&6; }
19493
19494fi
19495
19496
19497
19498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19499$as_echo_n "checking whether to support imap... " >&6; }
19500# Check whether --enable-imap was given.
19501if test "${enable_imap+set}" = set; then :
19502 enableval=$enable_imap; case "$enableval" in
19503 no)
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19505$as_echo "no" >&6; }
19506
19507$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19508
19509 CURL_DISABLE_IMAP=1
19510
19511 ;;
19512 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19513$as_echo "yes" >&6; }
19514 ;;
19515 esac
19516else
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19518$as_echo "yes" >&6; }
19519
19520fi
19521
19522
19523
19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19525$as_echo_n "checking whether to support smb... " >&6; }
19526# Check whether --enable-smb was given.
19527if test "${enable_smb+set}" = set; then :
19528 enableval=$enable_smb; case "$enableval" in
19529 no)
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19531$as_echo "no" >&6; }
19532
19533$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19534
19535 CURL_DISABLE_SMB=1
19536
19537 ;;
19538 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19539$as_echo "yes" >&6; }
19540 ;;
19541 esac
19542else
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19544$as_echo "yes" >&6; }
19545
19546fi
19547
19548
19549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19550$as_echo_n "checking whether to support smtp... " >&6; }
19551# Check whether --enable-smtp was given.
19552if test "${enable_smtp+set}" = set; then :
19553 enableval=$enable_smtp; case "$enableval" in
19554 no)
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19556$as_echo "no" >&6; }
19557
19558$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19559
19560 CURL_DISABLE_SMTP=1
19561
19562 ;;
19563 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19564$as_echo "yes" >&6; }
19565 ;;
19566 esac
19567else
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569$as_echo "yes" >&6; }
19570
19571fi
19572
19573
19574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19575$as_echo_n "checking whether to support gopher... " >&6; }
19576# Check whether --enable-gopher was given.
19577if test "${enable_gopher+set}" = set; then :
19578 enableval=$enable_gopher; case "$enableval" in
19579 no)
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19581$as_echo "no" >&6; }
19582
19583$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19584
19585 CURL_DISABLE_GOPHER=1
19586
19587 ;;
19588 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19589$as_echo "yes" >&6; }
19590 ;;
19591 esac
19592else
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19594$as_echo "yes" >&6; }
19595
19596fi
19597
19598
19599
19600
19601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19602$as_echo_n "checking whether to provide built-in manual... " >&6; }
19603# Check whether --enable-manual was given.
19604if test "${enable_manual+set}" = set; then :
19605 enableval=$enable_manual; case "$enableval" in
19606 no)
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608$as_echo "no" >&6; }
19609 ;;
19610 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19611$as_echo "yes" >&6; }
19612 USE_MANUAL="1"
19613 ;;
19614 esac
19615else
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19617$as_echo "yes" >&6; }
19618 USE_MANUAL="1"
19619
19620fi
19621
19622
19623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19624$as_echo_n "checking whether to enable generation of C code... " >&6; }
19625# Check whether --enable-libcurl_option was given.
19626if test "${enable_libcurl_option+set}" = set; then :
19627 enableval=$enable_libcurl_option; case "$enableval" in
19628 no)
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19630$as_echo "no" >&6; }
19631
19632$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19633
19634 curl_libcurl_msg="no"
19635 ;;
19636 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19637$as_echo "yes" >&6; }
19638 ;;
19639 esac
19640else
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19642$as_echo "yes" >&6; }
19643
19644fi
19645
19646
19647
19648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19649$as_echo_n "checking whether to use libgcc... " >&6; }
19650# Check whether --enable-libgcc was given.
19651if test "${enable_libgcc+set}" = set; then :
19652 enableval=$enable_libgcc; case "$enableval" in
19653 yes)
19654 LIBS="-lgcc $LIBS"
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656$as_echo "yes" >&6; }
19657 ;;
19658 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659$as_echo "no" >&6; }
19660 ;;
19661 esac
19662else
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664$as_echo "no" >&6; }
19665
19666fi
19667
19668
19669
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19671$as_echo_n "checking if X/Open network library is required... " >&6; }
19672 tst_lib_xnet_required="no"
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674/* end confdefs.h. */
19675
19676
19677int main (void)
19678{
19679#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19680 return 0;
19681#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19682 return 0;
19683#else
19684 force compilation error
19685#endif
19686}
19687
19688
19689_ACEOF
19690if ac_fn_c_try_compile "$LINENO"; then :
19691
19692 tst_lib_xnet_required="yes"
19693 LIBS="-lxnet $LIBS"
19694
19695fi
19696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19698$as_echo "$tst_lib_xnet_required" >&6; }
19699
19700
19701ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19702if test "x$ac_cv_func_gethostbyname" = xyes; then :
19703 HAVE_GETHOSTBYNAME="1"
19704
19705else
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19707$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19708if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19709 $as_echo_n "(cached) " >&6
19710else
19711 ac_check_lib_save_LIBS=$LIBS
19712LIBS="-lnsl $LIBS"
19713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19714/* end confdefs.h. */
19715
19716
19717#ifdef __cplusplus
19718extern "C"
19719#endif
19720char gethostbyname ();
19721int main (void)
19722{
19723return gethostbyname ();
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728if ac_fn_c_try_link "$LINENO"; then :
19729 ac_cv_lib_nsl_gethostbyname=yes
19730else
19731 ac_cv_lib_nsl_gethostbyname=no
19732fi
19733rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19735LIBS=$ac_check_lib_save_LIBS
19736fi
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19738$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19739if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19740 HAVE_GETHOSTBYNAME="1"
19741 LIBS="-lnsl $LIBS"
19742
19743fi
19744
19745
19746fi
19747
19748
19749if test "$HAVE_GETHOSTBYNAME" != "1"
19750then
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19752$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19753if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19754 $as_echo_n "(cached) " >&6
19755else
19756 ac_check_lib_save_LIBS=$LIBS
19757LIBS="-lsocket $LIBS"
19758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759/* end confdefs.h. */
19760
19761
19762#ifdef __cplusplus
19763extern "C"
19764#endif
19765char gethostbyname ();
19766int main (void)
19767{
19768return gethostbyname ();
19769 ;
19770 return 0;
19771}
19772_ACEOF
19773if ac_fn_c_try_link "$LINENO"; then :
19774 ac_cv_lib_socket_gethostbyname=yes
19775else
19776 ac_cv_lib_socket_gethostbyname=no
19777fi
19778rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780LIBS=$ac_check_lib_save_LIBS
19781fi
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19783$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19784if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19785 HAVE_GETHOSTBYNAME="1"
19786 LIBS="-lsocket $LIBS"
19787
19788fi
19789
19790fi
19791
19792if test "$HAVE_GETHOSTBYNAME" != "1"
19793then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19795$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19796if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19797 $as_echo_n "(cached) " >&6
19798else
19799 ac_check_lib_save_LIBS=$LIBS
19800LIBS="-lwatt $LIBS"
19801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802/* end confdefs.h. */
19803
19804
19805#ifdef __cplusplus
19806extern "C"
19807#endif
19808char gethostbyname ();
19809int main (void)
19810{
19811return gethostbyname ();
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816if ac_fn_c_try_link "$LINENO"; then :
19817 ac_cv_lib_watt_gethostbyname=yes
19818else
19819 ac_cv_lib_watt_gethostbyname=no
19820fi
19821rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823LIBS=$ac_check_lib_save_LIBS
19824fi
19825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19826$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19827if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19828 HAVE_GETHOSTBYNAME="1"
19829 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19830 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19831 LIBS="-lwatt $LIBS"
19832
19833fi
19834
19835fi
19836
19837if test "$HAVE_GETHOSTBYNAME" != "1"
19838then
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19840$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19841 my_ac_save_LIBS=$LIBS
19842 LIBS="-lnsl -lsocket $LIBS"
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844/* end confdefs.h. */
19845
19846
19847
19848int main (void)
19849{
19850
19851 gethostbyname();
19852
19853 ;
19854 return 0;
19855}
19856
19857_ACEOF
19858if ac_fn_c_try_link "$LINENO"; then :
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861$as_echo "yes" >&6; }
19862 HAVE_GETHOSTBYNAME="1"
19863
19864else
19865
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19867$as_echo "no" >&6; }
19868 LIBS=$my_ac_save_LIBS
19869
19870fi
19871rm -f core conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19873fi
19874
19875if test "$HAVE_GETHOSTBYNAME" != "1"
19876then
19877 if test "$curl_cv_header_windows_h" = "yes"; then
19878 if test "$curl_cv_header_winsock_h" = "yes"; then
19879 case $host in
19880 *-*-mingw32ce*)
19881 winsock_LIB="-lwinsock"
19882 ;;
19883 *)
19884 winsock_LIB="-lwsock32"
19885 ;;
19886 esac
19887 fi
19888 if test "$curl_cv_header_winsock2_h" = "yes"; then
19889 winsock_LIB="-lws2_32"
19890 fi
19891 if test ! -z "$winsock_LIB"; then
19892 my_ac_save_LIBS=$LIBS
19893 LIBS="$winsock_LIB $LIBS"
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19895$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897/* end confdefs.h. */
19898
19899
19900#ifdef HAVE_WINDOWS_H
19901#ifndef WIN32_LEAN_AND_MEAN
19902#define WIN32_LEAN_AND_MEAN
19903#endif
19904#include <windows.h>
19905#ifdef HAVE_WINSOCK2_H
19906#include <winsock2.h>
19907#else
19908#ifdef HAVE_WINSOCK_H
19909#include <winsock.h>
19910#endif
19911#endif
19912#endif
19913
19914int main (void)
19915{
19916
19917 gethostbyname("www.dummysite.com");
19918
19919 ;
19920 return 0;
19921}
19922
19923_ACEOF
19924if ac_fn_c_try_link "$LINENO"; then :
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19927$as_echo "yes" >&6; }
19928 HAVE_GETHOSTBYNAME="1"
19929
19930else
19931
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19933$as_echo "no" >&6; }
19934 winsock_LIB=""
19935 LIBS=$my_ac_save_LIBS
19936
19937fi
19938rm -f core conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 fi
19941 fi
19942fi
19943
19944if test "$HAVE_GETHOSTBYNAME" != "1"
19945then
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19947$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h. */
19950
19951
19952/* Older Minix versions may need <net/gen/netdb.h> here instead */
19953#include <netdb.h>
19954
19955int main (void)
19956{
19957
19958 gethostbyname("www.dummysite.com");
19959
19960 ;
19961 return 0;
19962}
19963
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"; then :
19966
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19968$as_echo "yes" >&6; }
19969 HAVE_GETHOSTBYNAME="1"
19970
19971else
19972
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974$as_echo "no" >&6; }
19975
19976fi
19977rm -f core conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
19979fi
19980
19981if test "$HAVE_GETHOSTBYNAME" != "1"
19982then
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19984$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986/* end confdefs.h. */
19987
19988
19989#include <stdio.h>
19990#include <netdb.h>
19991
19992int main (void)
19993{
19994
19995 gethostbyname("www.dummysite.com");
19996
19997 ;
19998 return 0;
19999}
20000
20001_ACEOF
20002if ac_fn_c_try_link "$LINENO"; then :
20003
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20005$as_echo "yes" >&6; }
20006 HAVE_GETHOSTBYNAME="1"
20007
20008else
20009
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20011$as_echo "no" >&6; }
20012
20013fi
20014rm -f core conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
20016fi
20017
20018if test "$HAVE_GETHOSTBYNAME" != "1"
20019then
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20021$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20022if ${ac_cv_lib_network_gethostbyname+:} false; then :
20023 $as_echo_n "(cached) " >&6
20024else
20025 ac_check_lib_save_LIBS=$LIBS
20026LIBS="-lnetwork $LIBS"
20027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028/* end confdefs.h. */
20029
20030
20031#ifdef __cplusplus
20032extern "C"
20033#endif
20034char gethostbyname ();
20035int main (void)
20036{
20037return gethostbyname ();
20038 ;
20039 return 0;
20040}
20041_ACEOF
20042if ac_fn_c_try_link "$LINENO"; then :
20043 ac_cv_lib_network_gethostbyname=yes
20044else
20045 ac_cv_lib_network_gethostbyname=no
20046fi
20047rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20049LIBS=$ac_check_lib_save_LIBS
20050fi
20051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20052$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20053if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20054 HAVE_GETHOSTBYNAME="1"
20055 LIBS="-lnetwork $LIBS"
20056
20057fi
20058
20059fi
20060
20061if test "$HAVE_GETHOSTBYNAME" != "1"
20062then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20064$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20065if ${ac_cv_lib_net_gethostbyname+:} false; then :
20066 $as_echo_n "(cached) " >&6
20067else
20068 ac_check_lib_save_LIBS=$LIBS
20069LIBS="-lnet $LIBS"
20070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20071/* end confdefs.h. */
20072
20073
20074#ifdef __cplusplus
20075extern "C"
20076#endif
20077char gethostbyname ();
20078int main (void)
20079{
20080return gethostbyname ();
20081 ;
20082 return 0;
20083}
20084_ACEOF
20085if ac_fn_c_try_link "$LINENO"; then :
20086 ac_cv_lib_net_gethostbyname=yes
20087else
20088 ac_cv_lib_net_gethostbyname=no
20089fi
20090rm -f core conftest.err conftest.$ac_objext \
20091 conftest$ac_exeext conftest.$ac_ext
20092LIBS=$ac_check_lib_save_LIBS
20093fi
20094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20095$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20096if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20097 HAVE_GETHOSTBYNAME="1"
20098 LIBS="-lnet $LIBS"
20099
20100fi
20101
20102fi
20103
20104
20105if test "$HAVE_GETHOSTBYNAME" != "1"; then
20106 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20107fi
20108
20109
20110curl_includes_winsock2="\
20111/* includes start */
20112#ifdef HAVE_WINDOWS_H
20113# ifndef WIN32_LEAN_AND_MEAN
20114# define WIN32_LEAN_AND_MEAN
20115# endif
20116# include <windows.h>
20117# ifdef HAVE_WINSOCK2_H
20118# include <winsock2.h>
20119# else
20120# ifdef HAVE_WINSOCK_H
20121# include <winsock.h>
20122# endif
20123# endif
20124#endif
20125/* includes end */"
20126
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20128$as_echo_n "checking for windows.h... " >&6; }
20129if ${curl_cv_header_windows_h+:} false; then :
20130 $as_echo_n "(cached) " >&6
20131else
20132
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h. */
20135
20136
20137#undef inline
20138#ifndef WIN32_LEAN_AND_MEAN
20139#define WIN32_LEAN_AND_MEAN
20140#endif
20141#include <windows.h>
20142
20143int main (void)
20144{
20145
20146#if defined(__CYGWIN__) || defined(__CEGCC__)
20147 HAVE_WINDOWS_H shall not be defined.
20148#else
20149 int dummy=2*WINVER;
20150#endif
20151
20152 ;
20153 return 0;
20154}
20155
20156_ACEOF
20157if ac_fn_c_try_compile "$LINENO"; then :
20158
20159 curl_cv_header_windows_h="yes"
20160
20161else
20162
20163 curl_cv_header_windows_h="no"
20164
20165fi
20166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167
20168fi
20169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20170$as_echo "$curl_cv_header_windows_h" >&6; }
20171 case "$curl_cv_header_windows_h" in
20172 yes)
20173
20174cat >>confdefs.h <<_ACEOF
20175#define HAVE_WINDOWS_H 1
20176_ACEOF
20177
20178 ;;
20179 esac
20180
20181
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20183$as_echo_n "checking for winsock.h... " >&6; }
20184if ${curl_cv_header_winsock_h+:} false; then :
20185 $as_echo_n "(cached) " >&6
20186else
20187
20188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h. */
20190
20191
20192#undef inline
20193#ifndef WIN32_LEAN_AND_MEAN
20194#define WIN32_LEAN_AND_MEAN
20195#endif
20196#include <windows.h>
20197#include <winsock.h>
20198
20199int main (void)
20200{
20201
20202#if defined(__CYGWIN__) || defined(__CEGCC__)
20203 HAVE_WINSOCK_H shall not be defined.
20204#else
20205 int dummy=WSACleanup();
20206#endif
20207
20208 ;
20209 return 0;
20210}
20211
20212_ACEOF
20213if ac_fn_c_try_compile "$LINENO"; then :
20214
20215 curl_cv_header_winsock_h="yes"
20216
20217else
20218
20219 curl_cv_header_winsock_h="no"
20220
20221fi
20222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223
20224fi
20225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20226$as_echo "$curl_cv_header_winsock_h" >&6; }
20227 case "$curl_cv_header_winsock_h" in
20228 yes)
20229
20230cat >>confdefs.h <<_ACEOF
20231#define HAVE_WINSOCK_H 1
20232_ACEOF
20233
20234 ;;
20235 esac
20236
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20239$as_echo_n "checking for winsock2.h... " >&6; }
20240if ${curl_cv_header_winsock2_h+:} false; then :
20241 $as_echo_n "(cached) " >&6
20242else
20243
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245/* end confdefs.h. */
20246
20247
20248#undef inline
20249#ifndef WIN32_LEAN_AND_MEAN
20250#define WIN32_LEAN_AND_MEAN
20251#endif
20252#include <windows.h>
20253#include <winsock2.h>
20254
20255int main (void)
20256{
20257
20258#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20259 HAVE_WINSOCK2_H shall not be defined.
20260#else
20261 int dummy=2*IPPROTO_ESP;
20262#endif
20263
20264 ;
20265 return 0;
20266}
20267
20268_ACEOF
20269if ac_fn_c_try_compile "$LINENO"; then :
20270
20271 curl_cv_header_winsock2_h="yes"
20272
20273else
20274
20275 curl_cv_header_winsock2_h="no"
20276
20277fi
20278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279
20280fi
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20282$as_echo "$curl_cv_header_winsock2_h" >&6; }
20283 case "$curl_cv_header_winsock2_h" in
20284 yes)
20285
20286cat >>confdefs.h <<_ACEOF
20287#define HAVE_WINSOCK2_H 1
20288_ACEOF
20289
20290 ;;
20291 esac
20292
20293
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20296$as_echo_n "checking for connect in libraries... " >&6; }
20297 tst_connect_save_LIBS="$LIBS"
20298 tst_connect_need_LIBS="unknown"
20299 for tst_lib in '' '-lsocket' ; do
20300 if test "$tst_connect_need_LIBS" = "unknown"; then
20301 LIBS="$tst_lib $tst_connect_save_LIBS"
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303/* end confdefs.h. */
20304
20305
20306 $curl_includes_winsock2
20307 #ifndef HAVE_WINDOWS_H
20308 int connect(int, void*, int);
20309 #endif
20310
20311int main (void)
20312{
20313
20314 if(0 != connect(0, 0, 0))
20315 return 1;
20316
20317 ;
20318 return 0;
20319}
20320
20321_ACEOF
20322if ac_fn_c_try_link "$LINENO"; then :
20323
20324 tst_connect_need_LIBS="$tst_lib"
20325
20326fi
20327rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext conftest.$ac_ext
20329 fi
20330 done
20331 LIBS="$tst_connect_save_LIBS"
20332 #
20333 case X-"$tst_connect_need_LIBS" in
20334 X-unknown)
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20336$as_echo "cannot find connect" >&6; }
20337 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20338 ;;
20339 X-)
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20341$as_echo "yes" >&6; }
20342 ;;
20343 *)
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20345$as_echo "$tst_connect_need_LIBS" >&6; }
20346 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20347 ;;
20348 esac
20349
20350
20351CURL_NETWORK_LIBS=$LIBS
20352
20353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20354$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20355if ${ac_cv_header_time+:} false; then :
20356 $as_echo_n "(cached) " >&6
20357else
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359/* end confdefs.h. */
20360#include <sys/types.h>
20361#include <sys/time.h>
20362#include <time.h>
20363
20364int main (void)
20365{
20366if ((struct tm *) 0)
20367return 0;
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372if ac_fn_c_try_compile "$LINENO"; then :
20373 ac_cv_header_time=yes
20374else
20375 ac_cv_header_time=no
20376fi
20377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378fi
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20380$as_echo "$ac_cv_header_time" >&6; }
20381if test $ac_cv_header_time = yes; then
20382
20383$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20384
20385fi
20386
20387
20388 for ac_header in sys/types.h sys/time.h time.h
20389do :
20390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20393 cat >>confdefs.h <<_ACEOF
20394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20395_ACEOF
20396
20397fi
20398
20399done
20400
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20402$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20403 #
20404 if test "x$dontwant_rt" = "xno" ; then
20405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20406/* end confdefs.h. */
20407
20408
20409#ifdef HAVE_SYS_TYPES_H
20410#include <sys/types.h>
20411#endif
20412#ifdef HAVE_SYS_TIME_H
20413#include <sys/time.h>
20414#ifdef TIME_WITH_SYS_TIME
20415#include <time.h>
20416#endif
20417#else
20418#ifdef HAVE_TIME_H
20419#include <time.h>
20420#endif
20421#endif
20422
20423int main (void)
20424{
20425
20426 struct timespec ts;
20427 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20428
20429 ;
20430 return 0;
20431}
20432
20433_ACEOF
20434if ac_fn_c_try_compile "$LINENO"; then :
20435
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20437$as_echo "yes" >&6; }
20438 curl_func_clock_gettime="yes"
20439
20440else
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20443$as_echo "no" >&6; }
20444 curl_func_clock_gettime="no"
20445
20446fi
20447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448 fi
20449
20450
20451 #
20452 if test "$curl_func_clock_gettime" = "yes"; then
20453 #
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20455$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20456 #
20457 curl_cv_save_LIBS="$LIBS"
20458 curl_cv_gclk_LIBS="unknown"
20459 #
20460 for x_xlibs in '' '-lrt' '-lposix4' ; do
20461 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20462 if test -z "$x_xlibs"; then
20463 LIBS="$curl_cv_save_LIBS"
20464 else
20465 LIBS="$x_xlibs $curl_cv_save_LIBS"
20466 fi
20467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468/* end confdefs.h. */
20469
20470
20471#ifdef HAVE_SYS_TYPES_H
20472#include <sys/types.h>
20473#endif
20474#ifdef HAVE_SYS_TIME_H
20475#include <sys/time.h>
20476#ifdef TIME_WITH_SYS_TIME
20477#include <time.h>
20478#endif
20479#else
20480#ifdef HAVE_TIME_H
20481#include <time.h>
20482#endif
20483#endif
20484
20485int main (void)
20486{
20487
20488 struct timespec ts;
20489 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20490
20491 ;
20492 return 0;
20493}
20494
20495_ACEOF
20496if ac_fn_c_try_link "$LINENO"; then :
20497
20498 curl_cv_gclk_LIBS="$x_xlibs"
20499
20500fi
20501rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503 fi
20504 done
20505 #
20506 LIBS="$curl_cv_save_LIBS"
20507 #
20508 case X-"$curl_cv_gclk_LIBS" in
20509 X-unknown)
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20511$as_echo "cannot find clock_gettime" >&6; }
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20513$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20514 curl_func_clock_gettime="no"
20515 ;;
20516 X-)
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20518$as_echo "no additional lib required" >&6; }
20519 curl_func_clock_gettime="yes"
20520 ;;
20521 *)
20522 if test -z "$curl_cv_save_LIBS"; then
20523 LIBS="$curl_cv_gclk_LIBS"
20524 else
20525 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20526 fi
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20528$as_echo "$curl_cv_gclk_LIBS" >&6; }
20529 curl_func_clock_gettime="yes"
20530 ;;
20531 esac
20532 #
20533 if test "x$cross_compiling" != "xyes" &&
20534 test "$curl_func_clock_gettime" = "yes"; then
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20536$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020537
20538
20539 old=$LD_LIBRARY_PATH
20540 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20541 export LD_LIBRARY_PATH
20542 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20545as_fn_error $? "cannot run test program while cross compiling
20546See \`config.log' for more details" "$LINENO" 5; }
20547else
20548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549/* end confdefs.h. */
20550
20551
20552#ifdef HAVE_STDLIB_H
20553#include <stdlib.h>
20554#endif
20555#ifdef HAVE_SYS_TYPES_H
20556#include <sys/types.h>
20557#endif
20558#ifdef HAVE_SYS_TIME_H
20559#include <sys/time.h>
20560#ifdef TIME_WITH_SYS_TIME
20561#include <time.h>
20562#endif
20563#else
20564#ifdef HAVE_TIME_H
20565#include <time.h>
20566#endif
20567#endif
20568
20569int main (void)
20570{
20571
20572 struct timespec ts;
20573 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20574 exit(0);
20575 else
20576 exit(1);
20577
20578 ;
20579 return 0;
20580}
20581
20582_ACEOF
20583if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020585$as_echo "yes" >&6; }
20586
20587else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020589$as_echo "no" >&6; }
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20591$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20592 curl_func_clock_gettime="no"
20593 LIBS="$curl_cv_save_LIBS"
20594
20595fi
20596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20597 conftest.$ac_objext conftest.beam conftest.$ac_ext
20598fi
20599
Elliott Hughesa93fb052018-12-12 14:22:48 -080020600 LD_LIBRARY_PATH=$old # restore
20601
Elliott Hughes82be86d2017-09-20 17:00:17 -070020602 fi
20603 #
20604 case "$curl_func_clock_gettime" in
20605 yes)
20606
20607cat >>confdefs.h <<_ACEOF
20608#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20609_ACEOF
20610
20611 ;;
20612 esac
20613 #
20614 fi
20615 #
20616
20617
20618CURL_NETWORK_AND_TIME_LIBS=$LIBS
20619
20620
20621
20622clean_CPPFLAGS=$CPPFLAGS
20623clean_LDFLAGS=$LDFLAGS
20624clean_LIBS=$LIBS
20625ZLIB_LIBS=""
20626
20627# Check whether --with-zlib was given.
20628if test "${with_zlib+set}" = set; then :
20629 withval=$with_zlib; OPT_ZLIB="$withval"
20630fi
20631
20632
20633if test "$OPT_ZLIB" = "no" ; then
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20635$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20636else
20637 if test "$OPT_ZLIB" = "yes" ; then
20638 OPT_ZLIB=""
20639 fi
20640
20641 if test -z "$OPT_ZLIB" ; then
20642
20643 if test -n "$PKG_CONFIG"; then
20644 PKGCONFIG="$PKG_CONFIG"
20645 else
20646 if test -n "$ac_tool_prefix"; then
20647 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20648set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20650$as_echo_n "checking for $ac_word... " >&6; }
20651if ${ac_cv_path_PKGCONFIG+:} false; then :
20652 $as_echo_n "(cached) " >&6
20653else
20654 case $PKGCONFIG in
20655 [\\/]* | ?:[\\/]*)
20656 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20657 ;;
20658 *)
20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20660as_dummy="$PATH:/usr/bin:/usr/local/bin"
20661for as_dir in $as_dummy
20662do
20663 IFS=$as_save_IFS
20664 test -z "$as_dir" && as_dir=.
20665 for ac_exec_ext in '' $ac_executable_extensions; do
20666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20667 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20669 break 2
20670 fi
20671done
20672 done
20673IFS=$as_save_IFS
20674
20675 ;;
20676esac
20677fi
20678PKGCONFIG=$ac_cv_path_PKGCONFIG
20679if test -n "$PKGCONFIG"; then
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20681$as_echo "$PKGCONFIG" >&6; }
20682else
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20684$as_echo "no" >&6; }
20685fi
20686
20687
20688fi
20689if test -z "$ac_cv_path_PKGCONFIG"; then
20690 ac_pt_PKGCONFIG=$PKGCONFIG
20691 # Extract the first word of "pkg-config", so it can be a program name with args.
20692set dummy pkg-config; ac_word=$2
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20694$as_echo_n "checking for $ac_word... " >&6; }
20695if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20696 $as_echo_n "(cached) " >&6
20697else
20698 case $ac_pt_PKGCONFIG in
20699 [\\/]* | ?:[\\/]*)
20700 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20701 ;;
20702 *)
20703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20704as_dummy="$PATH:/usr/bin:/usr/local/bin"
20705for as_dir in $as_dummy
20706do
20707 IFS=$as_save_IFS
20708 test -z "$as_dir" && as_dir=.
20709 for ac_exec_ext in '' $ac_executable_extensions; do
20710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20711 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20713 break 2
20714 fi
20715done
20716 done
20717IFS=$as_save_IFS
20718
20719 ;;
20720esac
20721fi
20722ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20723if test -n "$ac_pt_PKGCONFIG"; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20725$as_echo "$ac_pt_PKGCONFIG" >&6; }
20726else
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728$as_echo "no" >&6; }
20729fi
20730
20731 if test "x$ac_pt_PKGCONFIG" = x; then
20732 PKGCONFIG="no"
20733 else
20734 case $cross_compiling:$ac_tool_warned in
20735yes:)
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20738ac_tool_warned=yes ;;
20739esac
20740 PKGCONFIG=$ac_pt_PKGCONFIG
20741 fi
20742else
20743 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20744fi
20745
20746 fi
20747
20748 if test "x$PKGCONFIG" != "xno"; then
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20750$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20751 itexists=`
20752 if test -n ""; then
20753 PKG_CONFIG_LIBDIR=""
20754 export PKG_CONFIG_LIBDIR
20755 fi
20756 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20757
20758 if test -z "$itexists"; then
20759 PKGCONFIG="no"
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20761$as_echo "no" >&6; }
20762 else
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20764$as_echo "found" >&6; }
20765 fi
20766 fi
20767
20768
20769 if test "$PKGCONFIG" != "no" ; then
20770 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20771 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20772 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20773 OPT_ZLIB=""
20774 HAVE_LIBZ="1"
20775 fi
20776
20777 if test -z "$HAVE_LIBZ"; then
20778
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20781$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20782if ${ac_cv_lib_z_inflateEnd+:} false; then :
20783 $as_echo_n "(cached) " >&6
20784else
20785 ac_check_lib_save_LIBS=$LIBS
20786LIBS="-lz $LIBS"
20787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788/* end confdefs.h. */
20789
20790
20791#ifdef __cplusplus
20792extern "C"
20793#endif
20794char inflateEnd ();
20795int main (void)
20796{
20797return inflateEnd ();
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802if ac_fn_c_try_link "$LINENO"; then :
20803 ac_cv_lib_z_inflateEnd=yes
20804else
20805 ac_cv_lib_z_inflateEnd=no
20806fi
20807rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20809LIBS=$ac_check_lib_save_LIBS
20810fi
20811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20812$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20813if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20814 HAVE_LIBZ="1"
20815 LIBS="-lz $LIBS"
20816else
20817 OPT_ZLIB="/usr/local"
20818fi
20819
20820 fi
20821 fi
20822
20823 if test -n "$OPT_ZLIB"; then
20824 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20825 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20826 fi
20827
20828 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20829if test "x$ac_cv_header_zlib_h" = xyes; then :
20830
20831 HAVE_ZLIB_H="1"
20832 if test "$HAVE_LIBZ" != "1"; then
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20834$as_echo_n "checking for gzread in -lz... " >&6; }
20835if ${ac_cv_lib_z_gzread+:} false; then :
20836 $as_echo_n "(cached) " >&6
20837else
20838 ac_check_lib_save_LIBS=$LIBS
20839LIBS="-lz $LIBS"
20840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841/* end confdefs.h. */
20842
20843
20844#ifdef __cplusplus
20845extern "C"
20846#endif
20847char gzread ();
20848int main (void)
20849{
20850return gzread ();
20851 ;
20852 return 0;
20853}
20854_ACEOF
20855if ac_fn_c_try_link "$LINENO"; then :
20856 ac_cv_lib_z_gzread=yes
20857else
20858 ac_cv_lib_z_gzread=no
20859fi
20860rm -f core conftest.err conftest.$ac_objext \
20861 conftest$ac_exeext conftest.$ac_ext
20862LIBS=$ac_check_lib_save_LIBS
20863fi
20864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20865$as_echo "$ac_cv_lib_z_gzread" >&6; }
20866if test "x$ac_cv_lib_z_gzread" = xyes; then :
20867
20868 HAVE_LIBZ="1"
20869 LIBS="-lz $LIBS"
20870
20871else
20872 CPPFLAGS=$clean_CPPFLAGS
20873 LDFLAGS=$clean_LDFLAGS
20874fi
20875
20876 fi
20877
20878else
20879
20880 CPPFLAGS=$clean_CPPFLAGS
20881 LDFLAGS=$clean_LDFLAGS
20882
20883fi
20884
20885
20886
20887 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20888 then
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20890$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20891 HAVE_LIBZ=""
20892 CPPFLAGS=$clean_CPPFLAGS
20893 LDFLAGS=$clean_LDFLAGS
20894 LIBS=$clean_LIBS
20895 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20896 then
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20898$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20899 CPPFLAGS=$clean_CPPFLAGS
20900 LDFLAGS=$clean_LDFLAGS
20901 LIBS=$clean_LIBS
20902 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20903 then
20904
20905
20906$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20907
20908
20909$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20910
20911
20912 ZLIB_LIBS="-lz"
20913 LIBS="-lz $clean_LIBS"
20914
20915 AMFIXLIB="1"
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20917$as_echo "$as_me: found both libz and libz.h header" >&6;}
20918 curl_zlib_msg="enabled"
20919 fi
20920fi
20921
20922 if test x"$AMFIXLIB" = x1; then
20923 HAVE_LIBZ_TRUE=
20924 HAVE_LIBZ_FALSE='#'
20925else
20926 HAVE_LIBZ_TRUE='#'
20927 HAVE_LIBZ_FALSE=
20928fi
20929
20930
20931
20932
Alex Deymo486467e2017-12-19 19:04:07 +010020933
20934OPT_BROTLI=off
20935
20936# Check whether --with-brotli was given.
20937if test "${with_brotli+set}" = set; then :
20938 withval=$with_brotli; OPT_BROTLI=$withval
20939fi
20940
20941
20942if test X"$OPT_BROTLI" != Xno; then
20943 CLEANLDFLAGS="$LDFLAGS"
20944 CLEANCPPFLAGS="$CPPFLAGS"
20945 CLEANLIBS="$LIBS"
20946
20947 case "$OPT_BROTLI" in
20948 yes)
20949
20950 if test -n "$PKG_CONFIG"; then
20951 PKGCONFIG="$PKG_CONFIG"
20952 else
20953 if test -n "$ac_tool_prefix"; then
20954 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20955set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20957$as_echo_n "checking for $ac_word... " >&6; }
20958if ${ac_cv_path_PKGCONFIG+:} false; then :
20959 $as_echo_n "(cached) " >&6
20960else
20961 case $PKGCONFIG in
20962 [\\/]* | ?:[\\/]*)
20963 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20964 ;;
20965 *)
20966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20967as_dummy="$PATH:/usr/bin:/usr/local/bin"
20968for as_dir in $as_dummy
20969do
20970 IFS=$as_save_IFS
20971 test -z "$as_dir" && as_dir=.
20972 for ac_exec_ext in '' $ac_executable_extensions; do
20973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20974 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20976 break 2
20977 fi
20978done
20979 done
20980IFS=$as_save_IFS
20981
20982 ;;
20983esac
20984fi
20985PKGCONFIG=$ac_cv_path_PKGCONFIG
20986if test -n "$PKGCONFIG"; then
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20988$as_echo "$PKGCONFIG" >&6; }
20989else
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20991$as_echo "no" >&6; }
20992fi
20993
20994
20995fi
20996if test -z "$ac_cv_path_PKGCONFIG"; then
20997 ac_pt_PKGCONFIG=$PKGCONFIG
20998 # Extract the first word of "pkg-config", so it can be a program name with args.
20999set dummy pkg-config; ac_word=$2
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21001$as_echo_n "checking for $ac_word... " >&6; }
21002if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21003 $as_echo_n "(cached) " >&6
21004else
21005 case $ac_pt_PKGCONFIG in
21006 [\\/]* | ?:[\\/]*)
21007 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21008 ;;
21009 *)
21010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21011as_dummy="$PATH:/usr/bin:/usr/local/bin"
21012for as_dir in $as_dummy
21013do
21014 IFS=$as_save_IFS
21015 test -z "$as_dir" && as_dir=.
21016 for ac_exec_ext in '' $ac_executable_extensions; do
21017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21018 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21020 break 2
21021 fi
21022done
21023 done
21024IFS=$as_save_IFS
21025
21026 ;;
21027esac
21028fi
21029ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21030if test -n "$ac_pt_PKGCONFIG"; then
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21032$as_echo "$ac_pt_PKGCONFIG" >&6; }
21033else
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21035$as_echo "no" >&6; }
21036fi
21037
21038 if test "x$ac_pt_PKGCONFIG" = x; then
21039 PKGCONFIG="no"
21040 else
21041 case $cross_compiling:$ac_tool_warned in
21042yes:)
21043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21045ac_tool_warned=yes ;;
21046esac
21047 PKGCONFIG=$ac_pt_PKGCONFIG
21048 fi
21049else
21050 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21051fi
21052
21053 fi
21054
21055 if test "x$PKGCONFIG" != "xno"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21057$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21058 itexists=`
21059 if test -n ""; then
21060 PKG_CONFIG_LIBDIR=""
21061 export PKG_CONFIG_LIBDIR
21062 fi
21063 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21064
21065 if test -z "$itexists"; then
21066 PKGCONFIG="no"
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21068$as_echo "no" >&6; }
21069 else
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21071$as_echo "found" >&6; }
21072 fi
21073 fi
21074
21075
21076 if test "$PKGCONFIG" != "no" ; then
21077 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21078 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21079 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21080 version=`$PKGCONFIG --modversion libbrotlidec`
21081 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21082 fi
21083
21084 ;;
21085 off)
21086 ;;
21087 *)
21088 PREFIX_BROTLI=$OPT_BROTLI
21089 ;;
21090 esac
21091
21092 if test -n "$PREFIX_BROTLI"; then
21093 LIB_BROTLI="-lbrotlidec"
21094 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21095 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21096 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21097 fi
21098
21099 LDFLAGS="$LDFLAGS $LD_BROTLI"
21100 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21101 LIBS="$LIB_BROTLI $LIBS"
21102
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21104$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21105if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21106 $as_echo_n "(cached) " >&6
21107else
21108 ac_check_lib_save_LIBS=$LIBS
21109LIBS="-lbrotlidec $LIBS"
21110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111/* end confdefs.h. */
21112
21113
21114#ifdef __cplusplus
21115extern "C"
21116#endif
21117char BrotliDecoderDecompress ();
21118int main (void)
21119{
21120return BrotliDecoderDecompress ();
21121 ;
21122 return 0;
21123}
21124_ACEOF
21125if ac_fn_c_try_link "$LINENO"; then :
21126 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21127else
21128 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21129fi
21130rm -f core conftest.err conftest.$ac_objext \
21131 conftest$ac_exeext conftest.$ac_ext
21132LIBS=$ac_check_lib_save_LIBS
21133fi
21134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21135$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21136if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21137 cat >>confdefs.h <<_ACEOF
21138#define HAVE_LIBBROTLIDEC 1
21139_ACEOF
21140
21141 LIBS="-lbrotlidec $LIBS"
21142
21143fi
21144
21145
21146 for ac_header in brotli/decode.h
21147do :
21148 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21149if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21150 cat >>confdefs.h <<_ACEOF
21151#define HAVE_BROTLI_DECODE_H 1
21152_ACEOF
21153 curl_brotli_msg="enabled (libbrotlidec)"
21154 HAVE_BROTLI=1
21155
21156$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21157
21158 HAVE_BROTLI=1
21159
21160
21161fi
21162
21163done
21164
21165
21166 if test X"$OPT_BROTLI" != Xoff &&
21167 test "$HAVE_BROTLI" != "1"; then
21168 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21169 fi
21170
21171 if test "$HAVE_BROTLI" = "1"; then
21172 if test -n "$DIR_BROTLI"; then
21173
21174 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021175 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21176 export CURL_LIBRARY_PATH
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21178$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021179 fi
21180 fi
21181 else
21182 LDFLAGS=$CLEANLDFLAGS
21183 CPPFLAGS=$CLEANCPPFLAGS
21184 LIBS=$CLEANLIBS
21185 fi
21186fi
21187
21188
Elliott Hughes82be86d2017-09-20 17:00:17 -070021189LDAPLIBNAME=""
21190
21191# Check whether --with-ldap-lib was given.
21192if test "${with_ldap_lib+set}" = set; then :
21193 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21194fi
21195
21196
21197LBERLIBNAME=""
21198
21199# Check whether --with-lber-lib was given.
21200if test "${with_lber_lib+set}" = set; then :
21201 withval=$with_lber_lib; LBERLIBNAME="$withval"
21202fi
21203
21204
21205if test x$CURL_DISABLE_LDAP != x1 ; then
21206
21207
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21209$as_echo_n "checking for lber.h... " >&6; }
21210if ${curl_cv_header_lber_h+:} false; then :
21211 $as_echo_n "(cached) " >&6
21212else
21213
21214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21215/* end confdefs.h. */
21216
21217
21218#undef inline
21219#ifdef HAVE_WINDOWS_H
21220#ifndef WIN32_LEAN_AND_MEAN
21221#define WIN32_LEAN_AND_MEAN
21222#endif
21223#include <windows.h>
21224#else
21225#ifdef HAVE_SYS_TYPES_H
21226#include <sys/types.h>
21227#endif
21228#endif
21229#ifndef NULL
21230#define NULL (void *)0
21231#endif
21232#include <lber.h>
21233
21234int main (void)
21235{
21236
21237 BerValue *bvp = NULL;
21238 BerElement *bep = ber_init(bvp);
21239 ber_free(bep, 1);
21240
21241 ;
21242 return 0;
21243}
21244
21245_ACEOF
21246if ac_fn_c_try_compile "$LINENO"; then :
21247
21248 curl_cv_header_lber_h="yes"
21249
21250else
21251
21252 curl_cv_header_lber_h="no"
21253
21254fi
21255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256
21257fi
21258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21259$as_echo "$curl_cv_header_lber_h" >&6; }
21260 if test "$curl_cv_header_lber_h" = "yes"; then
21261
21262cat >>confdefs.h <<_ACEOF
21263#define HAVE_LBER_H 1
21264_ACEOF
21265
21266 #
21267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268/* end confdefs.h. */
21269
21270
21271#undef inline
21272#ifdef HAVE_WINDOWS_H
21273#ifndef WIN32_LEAN_AND_MEAN
21274#define WIN32_LEAN_AND_MEAN
21275#endif
21276#include <windows.h>
21277#else
21278#ifdef HAVE_SYS_TYPES_H
21279#include <sys/types.h>
21280#endif
21281#endif
21282#ifndef NULL
21283#define NULL (void *)0
21284#endif
21285#ifndef LDAP_DEPRECATED
21286#define LDAP_DEPRECATED 1
21287#endif
21288#include <ldap.h>
21289
21290int main (void)
21291{
21292
21293 BerValue *bvp = NULL;
21294 BerElement *bep = ber_init(bvp);
21295 ber_free(bep, 1);
21296
21297 ;
21298 return 0;
21299}
21300
21301_ACEOF
21302if ac_fn_c_try_compile "$LINENO"; then :
21303
21304 curl_cv_need_header_lber_h="no"
21305
21306else
21307
21308 curl_cv_need_header_lber_h="yes"
21309
21310fi
21311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 #
21313 case "$curl_cv_need_header_lber_h" in
21314 yes)
21315
21316cat >>confdefs.h <<_ACEOF
21317#define NEED_LBER_H 1
21318_ACEOF
21319
21320 ;;
21321 esac
21322 fi
21323
21324
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21326$as_echo_n "checking for ldap.h... " >&6; }
21327if ${curl_cv_header_ldap_h+:} false; then :
21328 $as_echo_n "(cached) " >&6
21329else
21330
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332/* end confdefs.h. */
21333
21334
21335#undef inline
21336#ifdef HAVE_WINDOWS_H
21337#ifndef WIN32_LEAN_AND_MEAN
21338#define WIN32_LEAN_AND_MEAN
21339#endif
21340#include <windows.h>
21341#else
21342#ifdef HAVE_SYS_TYPES_H
21343#include <sys/types.h>
21344#endif
21345#endif
21346#ifndef LDAP_DEPRECATED
21347#define LDAP_DEPRECATED 1
21348#endif
21349#ifdef NEED_LBER_H
21350#include <lber.h>
21351#endif
21352#include <ldap.h>
21353
21354int main (void)
21355{
21356
21357 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21358 int res = ldap_unbind(ldp);
21359
21360 ;
21361 return 0;
21362}
21363
21364_ACEOF
21365if ac_fn_c_try_compile "$LINENO"; then :
21366
21367 curl_cv_header_ldap_h="yes"
21368
21369else
21370
21371 curl_cv_header_ldap_h="no"
21372
21373fi
21374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375
21376fi
21377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21378$as_echo "$curl_cv_header_ldap_h" >&6; }
21379 case "$curl_cv_header_ldap_h" in
21380 yes)
21381
21382cat >>confdefs.h <<_ACEOF
21383#define HAVE_LDAP_H 1
21384_ACEOF
21385
21386 ;;
21387 esac
21388
21389
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21391$as_echo_n "checking for ldapssl.h... " >&6; }
21392if ${curl_cv_header_ldapssl_h+:} false; then :
21393 $as_echo_n "(cached) " >&6
21394else
21395
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397/* end confdefs.h. */
21398
21399
21400#undef inline
21401#ifdef HAVE_WINDOWS_H
21402#ifndef WIN32_LEAN_AND_MEAN
21403#define WIN32_LEAN_AND_MEAN
21404#endif
21405#include <windows.h>
21406#else
21407#ifdef HAVE_SYS_TYPES_H
21408#include <sys/types.h>
21409#endif
21410#endif
21411#ifndef NULL
21412#define NULL (void *)0
21413#endif
21414#ifndef LDAP_DEPRECATED
21415#define LDAP_DEPRECATED 1
21416#endif
21417#ifdef NEED_LBER_H
21418#include <lber.h>
21419#endif
21420#ifdef HAVE_LDAP_H
21421#include <ldap.h>
21422#endif
21423#include <ldapssl.h>
21424
21425int main (void)
21426{
21427
21428 char *cert_label = NULL;
21429 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21430
21431 ;
21432 return 0;
21433}
21434
21435_ACEOF
21436if ac_fn_c_try_compile "$LINENO"; then :
21437
21438 curl_cv_header_ldapssl_h="yes"
21439
21440else
21441
21442 curl_cv_header_ldapssl_h="no"
21443
21444fi
21445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446
21447fi
21448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21449$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21450 case "$curl_cv_header_ldapssl_h" in
21451 yes)
21452
21453cat >>confdefs.h <<_ACEOF
21454#define HAVE_LDAPSSL_H 1
21455_ACEOF
21456
21457 ;;
21458 esac
21459
21460
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21462$as_echo_n "checking for ldap_ssl.h... " >&6; }
21463if ${curl_cv_header_ldap_ssl_h+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465else
21466
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468/* end confdefs.h. */
21469
21470
21471#undef inline
21472#ifdef HAVE_WINDOWS_H
21473#ifndef WIN32_LEAN_AND_MEAN
21474#define WIN32_LEAN_AND_MEAN
21475#endif
21476#include <windows.h>
21477#else
21478#ifdef HAVE_SYS_TYPES_H
21479#include <sys/types.h>
21480#endif
21481#endif
21482#ifndef LDAP_DEPRECATED
21483#define LDAP_DEPRECATED 1
21484#endif
21485#ifdef NEED_LBER_H
21486#include <lber.h>
21487#endif
21488#ifdef HAVE_LDAP_H
21489#include <ldap.h>
21490#endif
21491#include <ldap_ssl.h>
21492
21493int main (void)
21494{
21495
21496 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21497
21498 ;
21499 return 0;
21500}
21501
21502_ACEOF
21503if ac_fn_c_try_compile "$LINENO"; then :
21504
21505 curl_cv_header_ldap_ssl_h="yes"
21506
21507else
21508
21509 curl_cv_header_ldap_ssl_h="no"
21510
21511fi
21512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513
21514fi
21515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21516$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21517 case "$curl_cv_header_ldap_ssl_h" in
21518 yes)
21519
21520cat >>confdefs.h <<_ACEOF
21521#define HAVE_LDAP_SSL_H 1
21522_ACEOF
21523
21524 ;;
21525 esac
21526
21527
21528 if test -z "$LDAPLIBNAME" ; then
21529 if test "$curl_cv_native_windows" = "yes"; then
21530 LDAPLIBNAME="wldap32"
21531 LBERLIBNAME="no"
21532 fi
21533 fi
21534
21535 if test "$LDAPLIBNAME" ; then
21536 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21538$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21539if eval \${$as_ac_Lib+:} false; then :
21540 $as_echo_n "(cached) " >&6
21541else
21542 ac_check_lib_save_LIBS=$LIBS
21543LIBS="-l"$LDAPLIBNAME" $LIBS"
21544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545/* end confdefs.h. */
21546
21547
21548#ifdef __cplusplus
21549extern "C"
21550#endif
21551char ldap_init ();
21552int main (void)
21553{
21554return ldap_init ();
21555 ;
21556 return 0;
21557}
21558_ACEOF
21559if ac_fn_c_try_link "$LINENO"; then :
21560 eval "$as_ac_Lib=yes"
21561else
21562 eval "$as_ac_Lib=no"
21563fi
21564rm -f core conftest.err conftest.$ac_objext \
21565 conftest$ac_exeext conftest.$ac_ext
21566LIBS=$ac_check_lib_save_LIBS
21567fi
21568eval ac_res=\$$as_ac_Lib
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21570$as_echo "$ac_res" >&6; }
21571if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21572 cat >>confdefs.h <<_ACEOF
21573#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21574_ACEOF
21575
21576 LIBS="-l"$LDAPLIBNAME" $LIBS"
21577
21578else
21579
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21581$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21582
21583$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21584
21585 CURL_DISABLE_LDAP=1
21586
21587
21588$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21589
21590 CURL_DISABLE_LDAPS=1
21591
21592fi
21593
21594 else
21595
21596 #
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21598$as_echo_n "checking for LDAP libraries... " >&6; }
21599 #
21600 u_libs=""
21601 #
21602
21603 #
21604 curl_cv_save_LIBS="$LIBS"
21605 curl_cv_ldap_LIBS="unknown"
21606 #
21607 for x_nlibs in '' "$u_libs" \
21608 '-lldap' \
21609 '-lldap -llber' \
21610 '-llber -lldap' \
21611 '-lldapssl -lldapx -lldapsdk' \
21612 '-lldapsdk -lldapx -lldapssl' ; do
21613 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21614 if test -z "$x_nlibs"; then
21615 LIBS="$curl_cv_save_LIBS"
21616 else
21617 LIBS="$x_nlibs $curl_cv_save_LIBS"
21618 fi
21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620/* end confdefs.h. */
21621
21622
21623#undef inline
21624#ifdef HAVE_WINDOWS_H
21625#ifndef WIN32_LEAN_AND_MEAN
21626#define WIN32_LEAN_AND_MEAN
21627#endif
21628#include <windows.h>
21629#else
21630#ifdef HAVE_SYS_TYPES_H
21631#include <sys/types.h>
21632#endif
21633#endif
21634#ifndef NULL
21635#define NULL (void *)0
21636#endif
21637#ifndef LDAP_DEPRECATED
21638#define LDAP_DEPRECATED 1
21639#endif
21640#ifdef NEED_LBER_H
21641#include <lber.h>
21642#endif
21643#ifdef HAVE_LDAP_H
21644#include <ldap.h>
21645#endif
21646
21647int main (void)
21648{
21649
21650 BerValue *bvp = NULL;
21651 BerElement *bep = ber_init(bvp);
21652 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21653 int res = ldap_unbind(ldp);
21654 ber_free(bep, 1);
21655
21656 ;
21657 return 0;
21658}
21659
21660_ACEOF
21661if ac_fn_c_try_link "$LINENO"; then :
21662
21663 curl_cv_ldap_LIBS="$x_nlibs"
21664
21665fi
21666rm -f core conftest.err conftest.$ac_objext \
21667 conftest$ac_exeext conftest.$ac_ext
21668 fi
21669 done
21670 #
21671 LIBS="$curl_cv_save_LIBS"
21672 #
21673 case X-"$curl_cv_ldap_LIBS" in
21674 X-unknown)
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21676$as_echo "cannot find LDAP libraries" >&6; }
21677 ;;
21678 X-)
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21680$as_echo "no additional lib required" >&6; }
21681 ;;
21682 *)
21683 if test -z "$curl_cv_save_LIBS"; then
21684 LIBS="$curl_cv_ldap_LIBS"
21685 else
21686 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21687 fi
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21689$as_echo "$curl_cv_ldap_LIBS" >&6; }
21690 ;;
21691 esac
21692 #
21693
21694 case X-"$curl_cv_ldap_LIBS" in
21695 X-unknown)
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21697$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21698
21699$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21700
21701 CURL_DISABLE_LDAP=1
21702
21703
21704$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21705
21706 CURL_DISABLE_LDAPS=1
21707
21708 ;;
21709 esac
21710 fi
21711fi
21712
21713if test x$CURL_DISABLE_LDAP != x1 ; then
21714
21715 if test "$LBERLIBNAME" ; then
21716 if test "$LBERLIBNAME" != "no" ; then
21717 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21719$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21720if eval \${$as_ac_Lib+:} false; then :
21721 $as_echo_n "(cached) " >&6
21722else
21723 ac_check_lib_save_LIBS=$LIBS
21724LIBS="-l"$LBERLIBNAME" $LIBS"
21725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726/* end confdefs.h. */
21727
21728
21729#ifdef __cplusplus
21730extern "C"
21731#endif
21732char ber_free ();
21733int main (void)
21734{
21735return ber_free ();
21736 ;
21737 return 0;
21738}
21739_ACEOF
21740if ac_fn_c_try_link "$LINENO"; then :
21741 eval "$as_ac_Lib=yes"
21742else
21743 eval "$as_ac_Lib=no"
21744fi
21745rm -f core conftest.err conftest.$ac_objext \
21746 conftest$ac_exeext conftest.$ac_ext
21747LIBS=$ac_check_lib_save_LIBS
21748fi
21749eval ac_res=\$$as_ac_Lib
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21751$as_echo "$ac_res" >&6; }
21752if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21753 cat >>confdefs.h <<_ACEOF
21754#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21755_ACEOF
21756
21757 LIBS="-l"$LBERLIBNAME" $LIBS"
21758
21759else
21760
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21762$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21763
21764$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21765
21766 CURL_DISABLE_LDAP=1
21767
21768
21769$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21770
21771 CURL_DISABLE_LDAPS=1
21772
21773fi
21774
21775 fi
21776 fi
21777fi
21778
21779if test x$CURL_DISABLE_LDAP != x1 ; then
21780 for ac_func in ldap_url_parse ldap_init_fd
21781do :
21782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21783ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21784if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21785 cat >>confdefs.h <<_ACEOF
21786#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21787_ACEOF
21788
21789fi
21790done
21791
21792
21793 if test "$LDAPLIBNAME" = "wldap32"; then
21794 curl_ldap_msg="enabled (winldap)"
21795
21796$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21797
21798 else
21799 curl_ldap_msg="enabled (OpenLDAP)"
21800 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21801
21802$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21803
21804 USE_OPENLDAP=1
21805
21806 fi
21807 fi
21808fi
21809
21810if test x$CURL_DISABLE_LDAPS != x1 ; then
21811 curl_ldaps_msg="enabled"
21812fi
21813
21814
21815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21816$as_echo_n "checking whether to enable IPv6... " >&6; }
21817# Check whether --enable-ipv6 was given.
21818if test "${enable_ipv6+set}" = set; then :
21819 enableval=$enable_ipv6; case "$enableval" in
21820 no)
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822$as_echo "no" >&6; }
21823 ipv6=no
21824 ;;
21825 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21826$as_echo "yes" >&6; }
21827 ipv6=yes
21828 ;;
21829 esac
21830else
21831 if test "$cross_compiling" = yes; then :
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21833$as_echo "yes" >&6; }
21834 ipv6=yes
21835
21836else
21837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838/* end confdefs.h. */
21839 /* is AF_INET6 available? */
21840#include <sys/types.h>
21841#ifdef HAVE_WINSOCK2_H
21842#include <winsock2.h>
21843#else
21844#include <sys/socket.h>
21845#endif
21846#include <stdlib.h> /* for exit() */
21847main()
21848{
21849 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21850 exit(1);
21851 else
21852 exit(0);
21853}
21854
21855_ACEOF
21856if ac_fn_c_try_run "$LINENO"; then :
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21858$as_echo "yes" >&6; }
21859 ipv6=yes
21860else
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21862$as_echo "no" >&6; }
21863 ipv6=no
21864fi
21865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21866 conftest.$ac_objext conftest.beam conftest.$ac_ext
21867fi
21868
21869fi
21870
21871
21872if test "$ipv6" = "yes"; then
21873 curl_ipv6_msg="enabled"
21874fi
21875
21876# Check if struct sockaddr_in6 have sin6_scope_id member
21877if test "$ipv6" = yes; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21879$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21881/* end confdefs.h. */
21882
21883#include <sys/types.h>
21884#ifdef HAVE_WINSOCK2_H
21885#include <winsock2.h>
21886#include <ws2tcpip.h>
21887#else
21888#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021889#if defined (__TANDEM)
21890# include <netinet/in6.h>
21891#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021892#endif
21893int main (void)
21894{
21895struct sockaddr_in6 s; s.sin6_scope_id = 0;
21896 ;
21897 return 0;
21898}
21899_ACEOF
21900if ac_fn_c_try_compile "$LINENO"; then :
21901 have_sin6_scope_id=yes
21902fi
21903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 if test "$have_sin6_scope_id" = yes; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21906$as_echo "yes" >&6; }
21907
21908$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21909
21910 else
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21912$as_echo "no" >&6; }
21913 fi
21914fi
21915
21916
21917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21918$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021919
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021920
21921 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021922 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21923 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021924 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021925 curl_cv_writable_argv=cross
21926
21927else
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929/* end confdefs.h. */
21930
Elliott Hughes82be86d2017-09-20 17:00:17 -070021931int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021932 argv00 = ' ';
21933 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021934}
21935
Elliott Hughes82be86d2017-09-20 17:00:17 -070021936_ACEOF
21937if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021938 curl_cv_writable_argv=yes
21939
21940else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021941 curl_cv_writable_argv=no
21942
21943fi
21944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21945 conftest.$ac_objext conftest.beam conftest.$ac_ext
21946fi
21947
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021948 LD_LIBRARY_PATH=$old # restore
21949
Elliott Hughes82be86d2017-09-20 17:00:17 -070021950case $curl_cv_writable_argv in
21951yes)
21952
21953$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21954
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21956$as_echo "yes" >&6; }
21957 ;;
21958no)
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21960$as_echo "no" >&6; }
21961 ;;
21962*)
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964$as_echo "no" >&6; }
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21966$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21967 ;;
21968esac
21969
21970
21971
21972GSSAPI_ROOT="/usr"
21973
21974# Check whether --with-gssapi-includes was given.
21975if test "${with_gssapi_includes+set}" = set; then :
21976 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21977 want_gss="yes"
21978
21979fi
21980
21981
21982
21983# Check whether --with-gssapi-libs was given.
21984if test "${with_gssapi_libs+set}" = set; then :
21985 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21986 want_gss="yes"
21987
21988fi
21989
21990
21991
21992# Check whether --with-gssapi was given.
21993if test "${with_gssapi+set}" = set; then :
21994 withval=$with_gssapi;
21995 GSSAPI_ROOT="$withval"
21996 if test x"$GSSAPI_ROOT" != xno; then
21997 want_gss="yes"
21998 if test x"$GSSAPI_ROOT" = xyes; then
21999 GSSAPI_ROOT="/usr"
22000 fi
22001 fi
22002
22003fi
22004
22005
22006: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22007
22008save_CPPFLAGS="$CPPFLAGS"
22009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22010$as_echo_n "checking if GSS-API support is requested... " >&6; }
22011if test x"$want_gss" = xyes; then
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22013$as_echo "yes" >&6; }
22014
22015 if test -z "$GSSAPI_INCS"; then
22016 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22017 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22018 elif test -f "$KRB5CONFIG"; then
22019 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22020 elif test "$GSSAPI_ROOT" != "yes"; then
22021 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22022 fi
22023 fi
22024
22025 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22026
22027 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22028if test "x$ac_cv_header_gss_h" = xyes; then :
22029
22030
22031$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22032
22033 gnu_gss=yes
22034
22035else
22036
22037 for ac_header in gssapi/gssapi.h
22038do :
22039 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22040if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22041 cat >>confdefs.h <<_ACEOF
22042#define HAVE_GSSAPI_GSSAPI_H 1
22043_ACEOF
22044
22045else
22046 not_mit=1
22047fi
22048
22049done
22050
22051 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22052do :
22053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22054ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22055$ac_includes_default
22056#ifdef HAVE_GSSAPI_GSSAPI_H
22057#include <gssapi/gssapi.h>
22058#endif
22059
22060"
22061if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22062 cat >>confdefs.h <<_ACEOF
22063#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22064_ACEOF
22065
22066else
22067 not_mit=1
22068fi
22069
22070done
22071
22072 if test "x$not_mit" = "x1"; then
22073 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22074if test "x$ac_cv_header_gssapi_h" = xyes; then :
22075
22076
22077$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22078
22079
22080else
22081
22082 want_gss=no
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22084$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22085
22086
22087fi
22088
22089
22090 else
22091
22092$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22093
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22095$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097/* end confdefs.h. */
22098
22099
22100#include <gssapi/gssapi.h>
22101#include <gssapi/gssapi_generic.h>
22102#include <gssapi/gssapi_krb5.h>
22103
22104int main (void)
22105{
22106
22107 gss_import_name(
22108 (OM_uint32 *)0,
22109 (gss_buffer_t)0,
22110 GSS_C_NT_HOSTBASED_SERVICE,
22111 (gss_name_t *)0);
22112
22113 ;
22114 return 0;
22115}
22116
22117_ACEOF
22118if ac_fn_c_try_compile "$LINENO"; then :
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22121$as_echo "yes" >&6; }
22122
22123else
22124
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22126$as_echo "no" >&6; }
22127
22128$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22129
22130
22131fi
22132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133 fi
22134
22135
22136fi
22137
22138
22139else
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22141$as_echo "no" >&6; }
22142fi
22143if test x"$want_gss" = xyes; then
22144
22145$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22146
22147 HAVE_GSSAPI=1
22148 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22149
22150 if test -n "$gnu_gss"; then
22151 curl_gss_msg="enabled (GNU GSS)"
22152 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22153 LIBS="-lgss $LIBS"
22154 elif test -z "$GSSAPI_LIB_DIR"; then
22155 case $host in
22156 *-*-darwin*)
22157 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22158 ;;
22159 *)
22160 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22161 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22162 LIBS="$gss_libs $LIBS"
22163 elif test -f "$KRB5CONFIG"; then
22164 gss_libs=`$KRB5CONFIG --libs gssapi`
22165 LIBS="$gss_libs $LIBS"
22166 else
22167 case $host in
22168 *-hp-hpux*)
22169 gss_libname="gss"
22170 ;;
22171 *)
22172 gss_libname="gssapi"
22173 ;;
22174 esac
22175
22176 if test "$GSSAPI_ROOT" != "yes"; then
22177 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22178 LIBS="-l$gss_libname $LIBS"
22179 else
22180 LIBS="-l$gss_libname $LIBS"
22181 fi
22182 fi
22183 ;;
22184 esac
22185 else
22186 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22187 case $host in
22188 *-hp-hpux*)
22189 LIBS="-lgss $LIBS"
22190 ;;
22191 *)
22192 LIBS="-lgssapi $LIBS"
22193 ;;
22194 esac
22195 fi
22196else
22197 CPPFLAGS="$save_CPPFLAGS"
22198fi
22199
Alex Deymo486467e2017-12-19 19:04:07 +010022200build_libstubgss=no
22201if test x"$want_gss" = "xyes"; then
22202 build_libstubgss=yes
22203fi
22204
22205 if test "x$build_libstubgss" = "xyes"; then
22206 BUILD_STUB_GSS_TRUE=
22207 BUILD_STUB_GSS_FALSE='#'
22208else
22209 BUILD_STUB_GSS_TRUE='#'
22210 BUILD_STUB_GSS_FALSE=
22211fi
22212
22213
22214
22215DEFAULT_SSL_BACKEND=no
22216VALID_DEFAULT_SSL_BACKEND=
22217
22218# Check whether --with-default-ssl-backend was given.
22219if test "${with_default_ssl_backend+set}" = set; then :
22220 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22221fi
22222
22223case "$DEFAULT_SSL_BACKEND" in
22224 no)
22225 ;;
22226 default|yes)
22227 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22228 ;;
22229 *)
22230
22231 VALID_DEFAULT_SSL_BACKEND=no
22232 ;;
22233esac
22234
22235
Elliott Hughes82be86d2017-09-20 17:00:17 -070022236
22237OPT_WINSSL=no
22238
22239# Check whether --with-winssl was given.
22240if test "${with_winssl+set}" = set; then :
22241 withval=$with_winssl; OPT_WINSSL=$withval
22242fi
22243
22244
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22246$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022247if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22248 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022249 if test "x$OPT_WINSSL" != "xno" &&
22250 test "x$curl_cv_native_windows" = "xyes"; then
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22252$as_echo "yes" >&6; }
22253
22254$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22255
22256 USE_SCHANNEL=1
22257
Alex Deymo486467e2017-12-19 19:04:07 +010022258 ssl_msg="Windows-native"
22259 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022260 WINSSL_ENABLED=1
22261 # --with-winssl implies --enable-sspi
22262
22263$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22264
22265 USE_WINDOWS_SSPI=1
22266
22267 curl_sspi_msg="enabled"
22268 LIBS="-lcrypt32 $LIBS"
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271$as_echo "no" >&6; }
22272 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022273 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022274else
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276$as_echo "no" >&6; }
22277fi
22278
22279OPT_DARWINSSL=no
22280
22281# Check whether --with-darwinssl was given.
22282if test "${with_darwinssl+set}" = set; then :
22283 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22284fi
22285
22286
22287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22288$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022289if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022290 if test "x$OPT_DARWINSSL" != "xno" &&
22291 test -d "/System/Library/Frameworks/Security.framework"; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22293$as_echo "yes" >&6; }
22294
22295$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22296
22297 USE_DARWINSSL=1
22298
Alex Deymo486467e2017-12-19 19:04:07 +010022299 ssl_msg="Apple OS-native"
22300 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022301 DARWINSSL_ENABLED=1
22302 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22303 else
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305$as_echo "no" >&6; }
22306 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022307 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022308else
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22310$as_echo "no" >&6; }
22311fi
22312
22313
22314OPT_SSL=off
22315ca="no"
22316
22317# Check whether --with-ssl was given.
22318if test "${with_ssl+set}" = set; then :
22319 withval=$with_ssl; OPT_SSL=$withval
22320fi
22321
22322
Alex Deymo486467e2017-12-19 19:04:07 +010022323if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22324 test X"$OPT_SSL" != Xno; then
22325 ssl_msg=
22326
Elliott Hughes82be86d2017-09-20 17:00:17 -070022327 CLEANLDFLAGS="$LDFLAGS"
22328 CLEANCPPFLAGS="$CPPFLAGS"
22329 CLEANLIBS="$LIBS"
22330
22331 case $host in
22332 *-*-msys* | *-*-mingw*)
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22334$as_echo_n "checking for gdi32... " >&6; }
22335 my_ac_save_LIBS=$LIBS
22336 LIBS="-lgdi32 $LIBS"
22337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22338/* end confdefs.h. */
22339#include <windef.h>
22340 #include <wingdi.h>
22341int main (void)
22342{
22343GdiFlush();
22344 ;
22345 return 0;
22346}
22347_ACEOF
22348if ac_fn_c_try_link "$LINENO"; then :
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22350$as_echo "yes" >&6; }
22351else
22352 LIBS=$my_ac_save_LIBS
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22354$as_echo "no" >&6; }
22355
22356fi
22357rm -f core conftest.err conftest.$ac_objext \
22358 conftest$ac_exeext conftest.$ac_ext
22359 ;;
22360 esac
22361
22362 case "$OPT_SSL" in
22363 yes)
22364 if test x$cross_compiling != xyes; then
22365 PKGTEST="yes"
22366 fi
22367 PREFIX_OPENSSL=/usr/local/ssl
22368 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22369 ;;
22370 off)
22371 if test x$cross_compiling != xyes; then
22372 PKGTEST="yes"
22373 fi
22374 PREFIX_OPENSSL=
22375 ;;
22376 *)
22377 PKGTEST="no"
22378 PREFIX_OPENSSL=$OPT_SSL
22379
22380 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022381 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022382 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22383$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022384 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022385 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22386 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022387 fi
22388
22389 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22390 if test "$PREFIX_OPENSSL" != "/usr" ; then
22391 SSL_LDFLAGS="-L$LIB_OPENSSL"
22392 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22393 fi
22394 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22395 ;;
22396 esac
22397
22398 if test "$PKGTEST" = "yes"; then
22399
22400
22401 if test -n "$PKG_CONFIG"; then
22402 PKGCONFIG="$PKG_CONFIG"
22403 else
22404 if test -n "$ac_tool_prefix"; then
22405 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22406set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22408$as_echo_n "checking for $ac_word... " >&6; }
22409if ${ac_cv_path_PKGCONFIG+:} false; then :
22410 $as_echo_n "(cached) " >&6
22411else
22412 case $PKGCONFIG in
22413 [\\/]* | ?:[\\/]*)
22414 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22415 ;;
22416 *)
22417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22418as_dummy="$PATH:/usr/bin:/usr/local/bin"
22419for as_dir in $as_dummy
22420do
22421 IFS=$as_save_IFS
22422 test -z "$as_dir" && as_dir=.
22423 for ac_exec_ext in '' $ac_executable_extensions; do
22424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22425 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22427 break 2
22428 fi
22429done
22430 done
22431IFS=$as_save_IFS
22432
22433 ;;
22434esac
22435fi
22436PKGCONFIG=$ac_cv_path_PKGCONFIG
22437if test -n "$PKGCONFIG"; then
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22439$as_echo "$PKGCONFIG" >&6; }
22440else
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22442$as_echo "no" >&6; }
22443fi
22444
22445
22446fi
22447if test -z "$ac_cv_path_PKGCONFIG"; then
22448 ac_pt_PKGCONFIG=$PKGCONFIG
22449 # Extract the first word of "pkg-config", so it can be a program name with args.
22450set dummy pkg-config; ac_word=$2
22451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22452$as_echo_n "checking for $ac_word... " >&6; }
22453if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22454 $as_echo_n "(cached) " >&6
22455else
22456 case $ac_pt_PKGCONFIG in
22457 [\\/]* | ?:[\\/]*)
22458 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22459 ;;
22460 *)
22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462as_dummy="$PATH:/usr/bin:/usr/local/bin"
22463for as_dir in $as_dummy
22464do
22465 IFS=$as_save_IFS
22466 test -z "$as_dir" && as_dir=.
22467 for ac_exec_ext in '' $ac_executable_extensions; do
22468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22469 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22471 break 2
22472 fi
22473done
22474 done
22475IFS=$as_save_IFS
22476
22477 ;;
22478esac
22479fi
22480ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22481if test -n "$ac_pt_PKGCONFIG"; then
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22483$as_echo "$ac_pt_PKGCONFIG" >&6; }
22484else
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486$as_echo "no" >&6; }
22487fi
22488
22489 if test "x$ac_pt_PKGCONFIG" = x; then
22490 PKGCONFIG="no"
22491 else
22492 case $cross_compiling:$ac_tool_warned in
22493yes:)
22494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22496ac_tool_warned=yes ;;
22497esac
22498 PKGCONFIG=$ac_pt_PKGCONFIG
22499 fi
22500else
22501 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22502fi
22503
22504 fi
22505
22506 if test "x$PKGCONFIG" != "xno"; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22508$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22509 itexists=`
22510 if test -n "$OPENSSL_PCDIR"; then
22511 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22512 export PKG_CONFIG_LIBDIR
22513 fi
22514 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22515
22516 if test -z "$itexists"; then
22517 PKGCONFIG="no"
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519$as_echo "no" >&6; }
22520 else
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22522$as_echo "found" >&6; }
22523 fi
22524 fi
22525
22526
22527 if test "$PKGCONFIG" != "no" ; then
22528 SSL_LIBS=`
22529 if test -n "$OPENSSL_PCDIR"; then
22530 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22531 export PKG_CONFIG_LIBDIR
22532 fi
22533 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22534
22535 SSL_LDFLAGS=`
22536 if test -n "$OPENSSL_PCDIR"; then
22537 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22538 export PKG_CONFIG_LIBDIR
22539 fi
22540 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22541
22542 SSL_CPPFLAGS=`
22543 if test -n "$OPENSSL_PCDIR"; then
22544 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22545 export PKG_CONFIG_LIBDIR
22546 fi
22547 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22548
22549
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22551$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22553$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22555$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22556
22557 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22558
22559 LIBS="$SSL_LIBS $LIBS"
22560 fi
22561 fi
22562
22563 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22564 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22565
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22567$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22568if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22569 $as_echo_n "(cached) " >&6
22570else
22571 ac_check_lib_save_LIBS=$LIBS
22572LIBS="-lcrypto $LIBS"
22573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574/* end confdefs.h. */
22575
22576
22577#ifdef __cplusplus
22578extern "C"
22579#endif
22580char HMAC_Update ();
22581int main (void)
22582{
22583return HMAC_Update ();
22584 ;
22585 return 0;
22586}
22587_ACEOF
22588if ac_fn_c_try_link "$LINENO"; then :
22589 ac_cv_lib_crypto_HMAC_Update=yes
22590else
22591 ac_cv_lib_crypto_HMAC_Update=no
22592fi
22593rm -f core conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22595LIBS=$ac_check_lib_save_LIBS
22596fi
22597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22598$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22599if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22600
22601 HAVECRYPTO="yes"
22602 LIBS="-lcrypto $LIBS"
22603
22604else
22605
22606 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022607 if test "$PKGCONFIG" = "no" ; then
22608 # only set this if pkg-config wasn't used
22609 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22610 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22612$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22613if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22614 $as_echo_n "(cached) " >&6
22615else
22616 ac_check_lib_save_LIBS=$LIBS
22617LIBS="-lcrypto $LIBS"
22618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619/* end confdefs.h. */
22620
22621
22622#ifdef __cplusplus
22623extern "C"
22624#endif
22625char HMAC_Init_ex ();
22626int main (void)
22627{
22628return HMAC_Init_ex ();
22629 ;
22630 return 0;
22631}
22632_ACEOF
22633if ac_fn_c_try_link "$LINENO"; then :
22634 ac_cv_lib_crypto_HMAC_Init_ex=yes
22635else
22636 ac_cv_lib_crypto_HMAC_Init_ex=no
22637fi
22638rm -f core conftest.err conftest.$ac_objext \
22639 conftest$ac_exeext conftest.$ac_ext
22640LIBS=$ac_check_lib_save_LIBS
22641fi
22642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22643$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22644if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22645
22646 HAVECRYPTO="yes"
22647 LIBS="-lcrypto $LIBS"
22648else
22649
22650
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22652$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022653 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655/* end confdefs.h. */
22656
22657 #include <openssl/err.h>
22658
22659int main (void)
22660{
22661
22662 ERR_clear_error();
22663
22664 ;
22665 return 0;
22666}
22667_ACEOF
22668if ac_fn_c_try_link "$LINENO"; then :
22669
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22671$as_echo "yes" >&6; }
22672 HAVECRYPTO="yes"
22673
22674else
22675
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22677$as_echo "no" >&6; }
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22680$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022681 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683/* end confdefs.h. */
22684
22685 #include <openssl/err.h>
22686
22687int main (void)
22688{
22689
22690 ERR_clear_error();
22691
22692 ;
22693 return 0;
22694}
22695_ACEOF
22696if ac_fn_c_try_link "$LINENO"; then :
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22699$as_echo "yes" >&6; }
22700 HAVECRYPTO="yes"
22701
22702else
22703
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22705$as_echo "no" >&6; }
22706 LDFLAGS="$CLEANLDFLAGS"
22707 CPPFLAGS="$CLEANCPPFLAGS"
22708 LIBS="$CLEANLIBS"
22709
22710
22711fi
22712rm -f core conftest.err conftest.$ac_objext \
22713 conftest$ac_exeext conftest.$ac_ext
22714
22715
22716fi
22717rm -f core conftest.err conftest.$ac_objext \
22718 conftest$ac_exeext conftest.$ac_ext
22719
22720
22721fi
22722
22723
22724fi
22725
22726
22727 if test X"$HAVECRYPTO" = X"yes"; then
22728
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22730$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22731if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22732 $as_echo_n "(cached) " >&6
22733else
22734 ac_check_lib_save_LIBS=$LIBS
22735LIBS="-lssl $LIBS"
22736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737/* end confdefs.h. */
22738
22739
22740#ifdef __cplusplus
22741extern "C"
22742#endif
22743char SSL_connect ();
22744int main (void)
22745{
22746return SSL_connect ();
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751if ac_fn_c_try_link "$LINENO"; then :
22752 ac_cv_lib_ssl_SSL_connect=yes
22753else
22754 ac_cv_lib_ssl_SSL_connect=no
22755fi
22756rm -f core conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22758LIBS=$ac_check_lib_save_LIBS
22759fi
22760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22761$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22762if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22763 cat >>confdefs.h <<_ACEOF
22764#define HAVE_LIBSSL 1
22765_ACEOF
22766
22767 LIBS="-lssl $LIBS"
22768
22769fi
22770
22771
22772 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22774$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22775 OLIBS=$LIBS
22776 LIBS="-lRSAglue -lrsaref $LIBS"
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22778$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22779if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781else
22782 ac_check_lib_save_LIBS=$LIBS
22783LIBS="-lssl $LIBS"
22784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h. */
22786
22787
22788#ifdef __cplusplus
22789extern "C"
22790#endif
22791char SSL_connect ();
22792int main (void)
22793{
22794return SSL_connect ();
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799if ac_fn_c_try_link "$LINENO"; then :
22800 ac_cv_lib_ssl_SSL_connect=yes
22801else
22802 ac_cv_lib_ssl_SSL_connect=no
22803fi
22804rm -f core conftest.err conftest.$ac_objext \
22805 conftest$ac_exeext conftest.$ac_ext
22806LIBS=$ac_check_lib_save_LIBS
22807fi
22808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22809$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22810if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22811 cat >>confdefs.h <<_ACEOF
22812#define HAVE_LIBSSL 1
22813_ACEOF
22814
22815 LIBS="-lssl $LIBS"
22816
22817fi
22818
22819 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22821$as_echo "no" >&6; }
22822 LIBS=$OLIBS
22823 else
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22825$as_echo "yes" >&6; }
22826 fi
22827
22828 else
22829
22830 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22831 openssl/pem.h openssl/ssl.h openssl/err.h
22832do :
22833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22834ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22836 cat >>confdefs.h <<_ACEOF
22837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22838_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022839 ssl_msg="OpenSSL"
22840 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022841 OPENSSL_ENABLED=1
22842
22843$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22844
22845fi
22846
22847done
22848
22849
22850 if test $ac_cv_header_openssl_x509_h = no; then
22851 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22852do :
22853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22854ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22855if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22856 cat >>confdefs.h <<_ACEOF
22857#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22858_ACEOF
22859
22860fi
22861
22862done
22863
22864
22865 if test $ac_cv_header_x509_h = yes &&
22866 test $ac_cv_header_crypto_h = yes &&
22867 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022868 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022869 OPENSSL_ENABLED=1
22870 fi
22871 fi
22872 fi
22873
Alex Deymo486467e2017-12-19 19:04:07 +010022874 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022875 LIBS="$CLEANLIBS"
22876 fi
22877
22878 if test X"$OPT_SSL" != Xoff &&
22879 test "$OPENSSL_ENABLED" != "1"; then
22880 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22881 fi
22882 fi
22883
22884 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022885
22886 for ac_func in RAND_egd \
22887 ENGINE_cleanup \
22888 SSL_get_shutdown \
22889 SSLv2_client_method
22890do :
22891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22892ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22893if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22894 cat >>confdefs.h <<_ACEOF
22895#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22896_ACEOF
22897
22898fi
22899done
22900
22901
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22903$as_echo_n "checking for BoringSSL... " >&6; }
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905/* end confdefs.h. */
22906
22907
22908 #include <openssl/base.h>
22909
22910int main (void)
22911{
22912
22913 #ifndef OPENSSL_IS_BORINGSSL
22914 #error not boringssl
22915 #endif
22916
22917 ;
22918 return 0;
22919}
22920
22921_ACEOF
22922if ac_fn_c_try_compile "$LINENO"; then :
22923
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22925$as_echo "yes" >&6; }
22926
22927cat >>confdefs.h <<_ACEOF
22928#define HAVE_BORINGSSL 1
22929_ACEOF
22930
Alex Deymo486467e2017-12-19 19:04:07 +010022931 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022932
22933else
22934
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936$as_echo "no" >&6; }
22937
22938fi
22939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22942$as_echo_n "checking for libressl... " >&6; }
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944/* end confdefs.h. */
22945
22946
22947#include <openssl/opensslv.h>
22948
22949int main (void)
22950{
22951
22952 int dummy = LIBRESSL_VERSION_NUMBER;
22953
22954 ;
22955 return 0;
22956}
22957
22958_ACEOF
22959if ac_fn_c_try_compile "$LINENO"; then :
22960
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22962$as_echo "yes" >&6; }
22963
22964cat >>confdefs.h <<_ACEOF
22965#define HAVE_LIBRESSL 1
22966_ACEOF
22967
Alex Deymo486467e2017-12-19 19:04:07 +010022968 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022969
22970else
22971
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973$as_echo "no" >&6; }
22974
22975fi
22976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 fi
22978
22979 if test "$OPENSSL_ENABLED" = "1"; then
22980 if test -n "$LIB_OPENSSL"; then
22981 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022982 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22983 export CURL_LIBRARY_PATH
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22985$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022986 fi
22987 fi
22988
22989 #
22990
22991 #
22992 tst_api="unknown"
22993 #
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22995$as_echo_n "checking for OpenSSL headers version... " >&6; }
22996
22997 OLDCPPFLAGS=$CPPFLAGS
22998 # CPPPFLAG comes from CURL_CPP_P
22999 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23000 if test -z "$SED"; then
23001 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23002 fi
23003 if test -z "$GREP"; then
23004 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23005 fi
23006
23007 tmp_exp=""
23008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23009/* end confdefs.h. */
23010
23011
23012# ifdef USE_OPENSSL
23013# include <openssl/crypto.h>
23014# else
23015# include <crypto.h>
23016# endif
23017
23018#ifdef OPENSSL_VERSION_NUMBER
23019CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23020#endif
23021
23022
23023_ACEOF
23024if ac_fn_c_try_cpp "$LINENO"; then :
23025
23026 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23027 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23028 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23029 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23030 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23031 tmp_exp=""
23032 fi
23033
23034fi
23035rm -f conftest.err conftest.i conftest.$ac_ext
23036 if test -z "$tmp_exp"; then
23037 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23038
23039 else
23040 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23041 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23042
23043 fi
23044 CPPFLAGS=$OLDCPPFLAGS
23045
23046 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23047 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23048 case "x$tst_verlen" in
23049 x6)
23050 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23051 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23052 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23053 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23054 ;;
23055 x11|x10)
23056 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23057 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23058 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23059 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23060 ;;
23061 *)
23062 tst_api="unknown"
23063 ;;
23064 esac
23065 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023066 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023067 0x110) tst_show="1.1.0" ;;
23068 0x102) tst_show="1.0.2" ;;
23069 0x101) tst_show="1.0.1" ;;
23070 0x100) tst_show="1.0.0" ;;
23071 0x099) tst_show="0.9.9" ;;
23072 0x098) tst_show="0.9.8" ;;
23073 0x097) tst_show="0.9.7" ;;
23074 0x096) tst_show="0.9.6" ;;
23075 0x095) tst_show="0.9.5" ;;
23076 0x094) tst_show="0.9.4" ;;
23077 0x093) tst_show="0.9.3" ;;
23078 0x092) tst_show="0.9.2" ;;
23079 0x091) tst_show="0.9.1" ;;
23080 *) tst_show="unknown" ;;
23081 esac
23082 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23083 else
23084 tst_show="unknown"
23085 fi
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23087$as_echo "$tst_show" >&6; }
23088 #
23089 curl_openssl_api_headers=$tst_api
23090
23091
23092 #
23093 tst_api="unknown"
23094 #
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23096$as_echo_n "checking for OpenSSL library version... " >&6; }
23097 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099/* end confdefs.h. */
23100
23101
23102#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23103#ifdef __STDC__
23104# include <limits.h>
23105#else
23106# include <assert.h>
23107#endif
23108#undef ERR_clear_last_mark
23109#ifdef __cplusplus
23110extern "C"
23111#endif
23112char ERR_clear_last_mark ();
23113#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23114choke me
23115#endif
23116
23117int main (void)
23118{
23119return ERR_clear_last_mark ();
23120 ;
23121 return 0;
23122}
23123
23124_ACEOF
23125if ac_fn_c_try_link "$LINENO"; then :
23126
23127 tst_api="0x111"
23128
23129fi
23130rm -f core conftest.err conftest.$ac_objext \
23131 conftest$ac_exeext conftest.$ac_ext
23132 fi
23133 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023134 case $host in
23135 *-*-vms*)
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137/* end confdefs.h. */
23138
23139
23140#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23141#ifdef __STDC__
23142# include <limits.h>
23143#else
23144# include <assert.h>
23145#endif
23146#undef SSL_CTX_set_not_resumbl_sess_cb
23147#ifdef __cplusplus
23148extern "C"
23149#endif
23150char SSL_CTX_set_not_resumbl_sess_cb ();
23151#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23152choke me
23153#endif
23154
23155int main (void)
23156{
23157return SSL_CTX_set_not_resumbl_sess_cb ();
23158 ;
23159 return 0;
23160}
23161
23162_ACEOF
23163if ac_fn_c_try_link "$LINENO"; then :
23164
23165 tst_api="0x110"
23166
23167fi
23168rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 ;;
23171 *)
23172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23173/* end confdefs.h. */
23174
23175
23176#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23177#ifdef __STDC__
23178# include <limits.h>
23179#else
23180# include <assert.h>
23181#endif
23182#undef SSL_CTX_set_not_resumable_session_callback
23183#ifdef __cplusplus
23184extern "C"
23185#endif
23186char SSL_CTX_set_not_resumable_session_callback ();
23187#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23188choke me
23189#endif
23190
23191int main (void)
23192{
23193return SSL_CTX_set_not_resumable_session_callback ();
23194 ;
23195 return 0;
23196}
23197
23198_ACEOF
23199if ac_fn_c_try_link "$LINENO"; then :
23200
23201 tst_api="0x110"
23202
23203fi
23204rm -f core conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23206 ;;
23207 esac
23208 fi
23209 if test "$tst_api" = "unknown"; then
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211/* end confdefs.h. */
23212
23213
23214#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23215#ifdef __STDC__
23216# include <limits.h>
23217#else
23218# include <assert.h>
23219#endif
23220#undef SSL_CONF_CTX_new
23221#ifdef __cplusplus
23222extern "C"
23223#endif
23224char SSL_CONF_CTX_new ();
23225#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23226choke me
23227#endif
23228
23229int main (void)
23230{
23231return SSL_CONF_CTX_new ();
23232 ;
23233 return 0;
23234}
23235
23236_ACEOF
23237if ac_fn_c_try_link "$LINENO"; then :
23238
23239 tst_api="0x102"
23240
23241fi
23242rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 fi
23245 if test "$tst_api" = "unknown"; then
23246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23247/* end confdefs.h. */
23248
23249
23250#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23251#ifdef __STDC__
23252# include <limits.h>
23253#else
23254# include <assert.h>
23255#endif
23256#undef SSL_renegotiate_abbreviated
23257#ifdef __cplusplus
23258extern "C"
23259#endif
23260char SSL_renegotiate_abbreviated ();
23261#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23262choke me
23263#endif
23264
23265int main (void)
23266{
23267return SSL_renegotiate_abbreviated ();
23268 ;
23269 return 0;
23270}
23271
23272_ACEOF
23273if ac_fn_c_try_link "$LINENO"; then :
23274
23275 tst_api="0x101"
23276
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23280 fi
23281 if test "$tst_api" = "unknown"; then
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283/* end confdefs.h. */
23284
23285
23286#define OBJ_add_sigid innocuous_OBJ_add_sigid
23287#ifdef __STDC__
23288# include <limits.h>
23289#else
23290# include <assert.h>
23291#endif
23292#undef OBJ_add_sigid
23293#ifdef __cplusplus
23294extern "C"
23295#endif
23296char OBJ_add_sigid ();
23297#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23298choke me
23299#endif
23300
23301int main (void)
23302{
23303return OBJ_add_sigid ();
23304 ;
23305 return 0;
23306}
23307
23308_ACEOF
23309if ac_fn_c_try_link "$LINENO"; then :
23310
23311 tst_api="0x100"
23312
23313fi
23314rm -f core conftest.err conftest.$ac_objext \
23315 conftest$ac_exeext conftest.$ac_ext
23316 fi
23317 if test "$tst_api" = "unknown"; then
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319/* end confdefs.h. */
23320
23321
23322#define ERR_set_mark innocuous_ERR_set_mark
23323#ifdef __STDC__
23324# include <limits.h>
23325#else
23326# include <assert.h>
23327#endif
23328#undef ERR_set_mark
23329#ifdef __cplusplus
23330extern "C"
23331#endif
23332char ERR_set_mark ();
23333#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23334choke me
23335#endif
23336
23337int main (void)
23338{
23339return ERR_set_mark ();
23340 ;
23341 return 0;
23342}
23343
23344_ACEOF
23345if ac_fn_c_try_link "$LINENO"; then :
23346
23347 tst_api="0x098"
23348
23349fi
23350rm -f core conftest.err conftest.$ac_objext \
23351 conftest$ac_exeext conftest.$ac_ext
23352 fi
23353 if test "$tst_api" = "unknown"; then
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356
23357
23358#define ERR_peek_last_error innocuous_ERR_peek_last_error
23359#ifdef __STDC__
23360# include <limits.h>
23361#else
23362# include <assert.h>
23363#endif
23364#undef ERR_peek_last_error
23365#ifdef __cplusplus
23366extern "C"
23367#endif
23368char ERR_peek_last_error ();
23369#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23370choke me
23371#endif
23372
23373int main (void)
23374{
23375return ERR_peek_last_error ();
23376 ;
23377 return 0;
23378}
23379
23380_ACEOF
23381if ac_fn_c_try_link "$LINENO"; then :
23382
23383 tst_api="0x097"
23384
23385fi
23386rm -f core conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23388 fi
23389 if test "$tst_api" = "unknown"; then
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391/* end confdefs.h. */
23392
23393
23394#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23395#ifdef __STDC__
23396# include <limits.h>
23397#else
23398# include <assert.h>
23399#endif
23400#undef c2i_ASN1_OBJECT
23401#ifdef __cplusplus
23402extern "C"
23403#endif
23404char c2i_ASN1_OBJECT ();
23405#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23406choke me
23407#endif
23408
23409int main (void)
23410{
23411return c2i_ASN1_OBJECT ();
23412 ;
23413 return 0;
23414}
23415
23416_ACEOF
23417if ac_fn_c_try_link "$LINENO"; then :
23418
23419 tst_api="0x096"
23420
23421fi
23422rm -f core conftest.err conftest.$ac_objext \
23423 conftest$ac_exeext conftest.$ac_ext
23424 fi
23425 if test "$tst_api" = "unknown"; then
23426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427/* end confdefs.h. */
23428
23429
23430#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23431#ifdef __STDC__
23432# include <limits.h>
23433#else
23434# include <assert.h>
23435#endif
23436#undef SSL_CTX_set_purpose
23437#ifdef __cplusplus
23438extern "C"
23439#endif
23440char SSL_CTX_set_purpose ();
23441#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23442choke me
23443#endif
23444
23445int main (void)
23446{
23447return SSL_CTX_set_purpose ();
23448 ;
23449 return 0;
23450}
23451
23452_ACEOF
23453if ac_fn_c_try_link "$LINENO"; then :
23454
23455 tst_api="0x095"
23456
23457fi
23458rm -f core conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
23460 fi
23461 if test "$tst_api" = "unknown"; then
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463/* end confdefs.h. */
23464
23465
23466#define OBJ_obj2txt innocuous_OBJ_obj2txt
23467#ifdef __STDC__
23468# include <limits.h>
23469#else
23470# include <assert.h>
23471#endif
23472#undef OBJ_obj2txt
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476char OBJ_obj2txt ();
23477#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23478choke me
23479#endif
23480
23481int main (void)
23482{
23483return OBJ_obj2txt ();
23484 ;
23485 return 0;
23486}
23487
23488_ACEOF
23489if ac_fn_c_try_link "$LINENO"; then :
23490
23491 tst_api="0x094"
23492
23493fi
23494rm -f core conftest.err conftest.$ac_objext \
23495 conftest$ac_exeext conftest.$ac_ext
23496 fi
23497 if test "$tst_api" = "unknown"; then
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499/* end confdefs.h. */
23500
23501
23502#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23503#ifdef __STDC__
23504# include <limits.h>
23505#else
23506# include <assert.h>
23507#endif
23508#undef SSL_get_verify_depth
23509#ifdef __cplusplus
23510extern "C"
23511#endif
23512char SSL_get_verify_depth ();
23513#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23514choke me
23515#endif
23516
23517int main (void)
23518{
23519return SSL_get_verify_depth ();
23520 ;
23521 return 0;
23522}
23523
23524_ACEOF
23525if ac_fn_c_try_link "$LINENO"; then :
23526
23527 tst_api="0x093"
23528
23529fi
23530rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext conftest.$ac_ext
23532 fi
23533 if test "$tst_api" = "unknown"; then
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535/* end confdefs.h. */
23536
23537
23538#define SSL_library_init innocuous_SSL_library_init
23539#ifdef __STDC__
23540# include <limits.h>
23541#else
23542# include <assert.h>
23543#endif
23544#undef SSL_library_init
23545#ifdef __cplusplus
23546extern "C"
23547#endif
23548char SSL_library_init ();
23549#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23550choke me
23551#endif
23552
23553int main (void)
23554{
23555return SSL_library_init ();
23556 ;
23557 return 0;
23558}
23559
23560_ACEOF
23561if ac_fn_c_try_link "$LINENO"; then :
23562
23563 tst_api="0x092"
23564
23565fi
23566rm -f core conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext conftest.$ac_ext
23568 fi
23569 if test "$tst_api" = "unknown"; then
23570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23571/* end confdefs.h. */
23572
23573
23574#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23575#ifdef __STDC__
23576# include <limits.h>
23577#else
23578# include <assert.h>
23579#endif
23580#undef SSL_CTX_set_cipher_list
23581#ifdef __cplusplus
23582extern "C"
23583#endif
23584char SSL_CTX_set_cipher_list ();
23585#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23586choke me
23587#endif
23588
23589int main (void)
23590{
23591return SSL_CTX_set_cipher_list ();
23592 ;
23593 return 0;
23594}
23595
23596_ACEOF
23597if ac_fn_c_try_link "$LINENO"; then :
23598
23599 tst_api="0x091"
23600
23601fi
23602rm -f core conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
23604 fi
23605 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023606 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023607 0x110) tst_show="1.1.0" ;;
23608 0x102) tst_show="1.0.2" ;;
23609 0x101) tst_show="1.0.1" ;;
23610 0x100) tst_show="1.0.0" ;;
23611 0x099) tst_show="0.9.9" ;;
23612 0x098) tst_show="0.9.8" ;;
23613 0x097) tst_show="0.9.7" ;;
23614 0x096) tst_show="0.9.6" ;;
23615 0x095) tst_show="0.9.5" ;;
23616 0x094) tst_show="0.9.4" ;;
23617 0x093) tst_show="0.9.3" ;;
23618 0x092) tst_show="0.9.2" ;;
23619 0x091) tst_show="0.9.1" ;;
23620 *) tst_show="unknown" ;;
23621 esac
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23623$as_echo "$tst_show" >&6; }
23624 #
23625 curl_openssl_api_library=$tst_api
23626
23627 #
23628 tst_match="yes"
23629 #
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23631$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23632 if test "$curl_openssl_api_headers" = "unknown" ||
23633 test "$curl_openssl_api_library" = "unknown"; then
23634 tst_match="fail"
23635 tst_warns="Can not compare OpenSSL headers and library versions."
23636 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23637 tst_match="no"
23638 tst_warns="OpenSSL headers and library versions do not match."
23639 fi
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23641$as_echo "$tst_match" >&6; }
23642 if test "$tst_match" != "yes"; then
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23644$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23645 fi
23646
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023647 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023648 fi
23649
Alex Deymo486467e2017-12-19 19:04:07 +010023650 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023651fi
23652
23653
23654if test X"$OPENSSL_ENABLED" = X"1"; then
23655
23656# Check whether --with-egd-socket was given.
23657if test "${with_egd_socket+set}" = set; then :
23658 withval=$with_egd_socket; EGD_SOCKET="$withval"
23659
23660fi
23661
23662 if test -n "$EGD_SOCKET" ; then
23663
23664cat >>confdefs.h <<_ACEOF
23665#define EGD_SOCKET "$EGD_SOCKET"
23666_ACEOF
23667
23668 fi
23669
23670
23671# Check whether --with-random was given.
23672if test "${with_random+set}" = set; then :
23673 withval=$with_random; RANDOM_FILE="$withval"
23674else
23675
23676 if test x$cross_compiling != xyes; then
23677 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23679$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23680if eval \${$as_ac_File+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682else
23683 test "$cross_compiling" = yes &&
23684 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23685if test -r ""/dev/urandom""; then
23686 eval "$as_ac_File=yes"
23687else
23688 eval "$as_ac_File=no"
23689fi
23690fi
23691eval ac_res=\$$as_ac_File
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23693$as_echo "$ac_res" >&6; }
23694if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23695 RANDOM_FILE="/dev/urandom"
23696fi
23697
23698 else
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23700$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23701 fi
23702
23703
23704fi
23705
23706 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23707
23708
23709cat >>confdefs.h <<_ACEOF
23710#define RANDOM_FILE "$RANDOM_FILE"
23711_ACEOF
23712
23713 fi
23714fi
23715
23716if test "$OPENSSL_ENABLED" = "1"; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23718$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23719if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23720 $as_echo_n "(cached) " >&6
23721else
23722 ac_check_lib_save_LIBS=$LIBS
23723LIBS="-lcrypto $LIBS"
23724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23725/* end confdefs.h. */
23726
23727
23728#ifdef __cplusplus
23729extern "C"
23730#endif
23731char SRP_Calc_client_key ();
23732int main (void)
23733{
23734return SRP_Calc_client_key ();
23735 ;
23736 return 0;
23737}
23738_ACEOF
23739if ac_fn_c_try_link "$LINENO"; then :
23740 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23741else
23742 ac_cv_lib_crypto_SRP_Calc_client_key=no
23743fi
23744rm -f core conftest.err conftest.$ac_objext \
23745 conftest$ac_exeext conftest.$ac_ext
23746LIBS=$ac_check_lib_save_LIBS
23747fi
23748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23749$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23750if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23751
23752
23753$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23754
23755 HAVE_OPENSSL_SRP=1
23756
23757
23758fi
23759
23760fi
23761
Elliott Hughesa93fb052018-12-12 14:22:48 -080023762if test X"$OPENSSL_ENABLED" = X"1"; then
23763# Check whether --enable-openssl-auto-load-config was given.
23764if test "${enable_openssl_auto_load_config+set}" = set; then :
23765 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23767$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23768
23769$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23770
23771 fi
23772
23773fi
23774
23775fi
23776
Elliott Hughes82be86d2017-09-20 17:00:17 -070023777
23778OPT_GNUTLS=no
23779
23780
23781# Check whether --with-gnutls was given.
23782if test "${with_gnutls+set}" = set; then :
23783 withval=$with_gnutls; OPT_GNUTLS=$withval
23784fi
23785
23786
Alex Deymo486467e2017-12-19 19:04:07 +010023787if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23788 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023789
23790 if test X"$OPT_GNUTLS" != Xno; then
23791
23792 addld=""
23793 addlib=""
23794 gtlslib=""
23795 version=""
23796 addcflags=""
23797
23798 if test "x$OPT_GNUTLS" = "xyes"; then
23799
23800 if test -n "$PKG_CONFIG"; then
23801 PKGCONFIG="$PKG_CONFIG"
23802 else
23803 if test -n "$ac_tool_prefix"; then
23804 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23805set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23807$as_echo_n "checking for $ac_word... " >&6; }
23808if ${ac_cv_path_PKGCONFIG+:} false; then :
23809 $as_echo_n "(cached) " >&6
23810else
23811 case $PKGCONFIG in
23812 [\\/]* | ?:[\\/]*)
23813 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23814 ;;
23815 *)
23816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23817as_dummy="$PATH:/usr/bin:/usr/local/bin"
23818for as_dir in $as_dummy
23819do
23820 IFS=$as_save_IFS
23821 test -z "$as_dir" && as_dir=.
23822 for ac_exec_ext in '' $ac_executable_extensions; do
23823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23824 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23826 break 2
23827 fi
23828done
23829 done
23830IFS=$as_save_IFS
23831
23832 ;;
23833esac
23834fi
23835PKGCONFIG=$ac_cv_path_PKGCONFIG
23836if test -n "$PKGCONFIG"; then
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23838$as_echo "$PKGCONFIG" >&6; }
23839else
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23841$as_echo "no" >&6; }
23842fi
23843
23844
23845fi
23846if test -z "$ac_cv_path_PKGCONFIG"; then
23847 ac_pt_PKGCONFIG=$PKGCONFIG
23848 # Extract the first word of "pkg-config", so it can be a program name with args.
23849set dummy pkg-config; ac_word=$2
23850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23851$as_echo_n "checking for $ac_word... " >&6; }
23852if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23853 $as_echo_n "(cached) " >&6
23854else
23855 case $ac_pt_PKGCONFIG in
23856 [\\/]* | ?:[\\/]*)
23857 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23858 ;;
23859 *)
23860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23861as_dummy="$PATH:/usr/bin:/usr/local/bin"
23862for as_dir in $as_dummy
23863do
23864 IFS=$as_save_IFS
23865 test -z "$as_dir" && as_dir=.
23866 for ac_exec_ext in '' $ac_executable_extensions; do
23867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23868 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23870 break 2
23871 fi
23872done
23873 done
23874IFS=$as_save_IFS
23875
23876 ;;
23877esac
23878fi
23879ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23880if test -n "$ac_pt_PKGCONFIG"; then
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23882$as_echo "$ac_pt_PKGCONFIG" >&6; }
23883else
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23885$as_echo "no" >&6; }
23886fi
23887
23888 if test "x$ac_pt_PKGCONFIG" = x; then
23889 PKGCONFIG="no"
23890 else
23891 case $cross_compiling:$ac_tool_warned in
23892yes:)
23893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23895ac_tool_warned=yes ;;
23896esac
23897 PKGCONFIG=$ac_pt_PKGCONFIG
23898 fi
23899else
23900 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23901fi
23902
23903 fi
23904
23905 if test "x$PKGCONFIG" != "xno"; then
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23907$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23908 itexists=`
23909 if test -n ""; then
23910 PKG_CONFIG_LIBDIR=""
23911 export PKG_CONFIG_LIBDIR
23912 fi
23913 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23914
23915 if test -z "$itexists"; then
23916 PKGCONFIG="no"
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23918$as_echo "no" >&6; }
23919 else
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23921$as_echo "found" >&6; }
23922 fi
23923 fi
23924
23925
23926 if test "$PKGCONFIG" != "no" ; then
23927 addlib=`$PKGCONFIG --libs-only-l gnutls`
23928 addld=`$PKGCONFIG --libs-only-L gnutls`
23929 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23930 version=`$PKGCONFIG --modversion gnutls`
23931 gtlslib=`echo $addld | $SED -e 's/-L//'`
23932 else
23933 check=`libgnutls-config --version 2>/dev/null`
23934 if test -n "$check"; then
23935 addlib=`libgnutls-config --libs`
23936 addcflags=`libgnutls-config --cflags`
23937 version=`libgnutls-config --version`
23938 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23939 fi
23940 fi
23941 else
23942 cfg=$OPT_GNUTLS/bin/libgnutls-config
23943 check=`$cfg --version 2>/dev/null`
23944 if test -n "$check"; then
23945 addlib=`$cfg --libs`
23946 addcflags=`$cfg --cflags`
23947 version=`$cfg --version`
23948 gtlslib=`$cfg --prefix`/lib$libsuff
23949 else
23950 addlib=-lgnutls
23951 addld=-L$OPT_GNUTLS/lib$libsuff
23952 addcflags=-I$OPT_GNUTLS/include
23953 version="" # we just don't know
23954 gtlslib=$OPT_GNUTLS/lib$libsuff
23955 fi
23956 fi
23957
23958 if test -z "$version"; then
23959 version="unknown"
23960 fi
23961
23962 if test -n "$addlib"; then
23963
23964 CLEANLIBS="$LIBS"
23965 CLEANCPPFLAGS="$CPPFLAGS"
23966 CLEANLDFLAGS="$LDFLAGS"
23967
23968 LIBS="$addlib $LIBS"
23969 LDFLAGS="$LDFLAGS $addld"
23970 if test "$addcflags" != "-I/usr/include"; then
23971 CPPFLAGS="$CPPFLAGS $addcflags"
23972 fi
23973
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23975$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23976if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23977 $as_echo_n "(cached) " >&6
23978else
23979 ac_check_lib_save_LIBS=$LIBS
23980LIBS="-lgnutls $LIBS"
23981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23982/* end confdefs.h. */
23983
23984
23985#ifdef __cplusplus
23986extern "C"
23987#endif
23988char gnutls_check_version ();
23989int main (void)
23990{
23991return gnutls_check_version ();
23992 ;
23993 return 0;
23994}
23995_ACEOF
23996if ac_fn_c_try_link "$LINENO"; then :
23997 ac_cv_lib_gnutls_gnutls_check_version=yes
23998else
23999 ac_cv_lib_gnutls_gnutls_check_version=no
24000fi
24001rm -f core conftest.err conftest.$ac_objext \
24002 conftest$ac_exeext conftest.$ac_ext
24003LIBS=$ac_check_lib_save_LIBS
24004fi
24005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24006$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24007if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24008
24009
24010$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24011
24012 USE_GNUTLS=1
24013
24014 GNUTLS_ENABLED=1
24015 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024016 ssl_msg="GnuTLS"
24017 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024018
24019else
24020
24021 LIBS="$CLEANLIBS"
24022 CPPFLAGS="$CLEANCPPFLAGS"
24023
24024fi
24025
24026
24027 if test "x$USE_GNUTLS" = "xyes"; then
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24029$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024030 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024031 if test -n "$gtlslib"; then
24032 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024033 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24034 export CURL_LIBRARY_PATH
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24036$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024037 fi
24038 fi
24039 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24040do :
24041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24042ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24043if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24044 cat >>confdefs.h <<_ACEOF
24045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24046_ACEOF
24047
24048fi
24049done
24050
24051 fi
24052
24053 fi
24054
24055 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024056 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024057fi
24058
24059
24060if test "$GNUTLS_ENABLED" = "1"; then
24061 USE_GNUTLS_NETTLE=
24062 # First check if we can detect either crypto library via transitive linking
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24064$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24065if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24066 $as_echo_n "(cached) " >&6
24067else
24068 ac_check_lib_save_LIBS=$LIBS
24069LIBS="-lgnutls $LIBS"
24070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24071/* end confdefs.h. */
24072
24073
24074#ifdef __cplusplus
24075extern "C"
24076#endif
24077char nettle_MD5Init ();
24078int main (void)
24079{
24080return nettle_MD5Init ();
24081 ;
24082 return 0;
24083}
24084_ACEOF
24085if ac_fn_c_try_link "$LINENO"; then :
24086 ac_cv_lib_gnutls_nettle_MD5Init=yes
24087else
24088 ac_cv_lib_gnutls_nettle_MD5Init=no
24089fi
24090rm -f core conftest.err conftest.$ac_objext \
24091 conftest$ac_exeext conftest.$ac_ext
24092LIBS=$ac_check_lib_save_LIBS
24093fi
24094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24095$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24096if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24097 USE_GNUTLS_NETTLE=1
24098fi
24099
24100 if test "$USE_GNUTLS_NETTLE" = ""; then
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24102$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24103if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24104 $as_echo_n "(cached) " >&6
24105else
24106 ac_check_lib_save_LIBS=$LIBS
24107LIBS="-lgnutls $LIBS"
24108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109/* end confdefs.h. */
24110
24111
24112#ifdef __cplusplus
24113extern "C"
24114#endif
24115char gcry_control ();
24116int main (void)
24117{
24118return gcry_control ();
24119 ;
24120 return 0;
24121}
24122_ACEOF
24123if ac_fn_c_try_link "$LINENO"; then :
24124 ac_cv_lib_gnutls_gcry_control=yes
24125else
24126 ac_cv_lib_gnutls_gcry_control=no
24127fi
24128rm -f core conftest.err conftest.$ac_objext \
24129 conftest$ac_exeext conftest.$ac_ext
24130LIBS=$ac_check_lib_save_LIBS
24131fi
24132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24133$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24134if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24135 USE_GNUTLS_NETTLE=0
24136fi
24137
24138 fi
24139 # If not, try linking directly to both of them to see if they are available
24140 if test "$USE_GNUTLS_NETTLE" = ""; then
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24142$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24143if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24144 $as_echo_n "(cached) " >&6
24145else
24146 ac_check_lib_save_LIBS=$LIBS
24147LIBS="-lnettle $LIBS"
24148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24149/* end confdefs.h. */
24150
24151
24152#ifdef __cplusplus
24153extern "C"
24154#endif
24155char nettle_MD5Init ();
24156int main (void)
24157{
24158return nettle_MD5Init ();
24159 ;
24160 return 0;
24161}
24162_ACEOF
24163if ac_fn_c_try_link "$LINENO"; then :
24164 ac_cv_lib_nettle_nettle_MD5Init=yes
24165else
24166 ac_cv_lib_nettle_nettle_MD5Init=no
24167fi
24168rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
24170LIBS=$ac_check_lib_save_LIBS
24171fi
24172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24173$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24174if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24175 USE_GNUTLS_NETTLE=1
24176fi
24177
24178 fi
24179 if test "$USE_GNUTLS_NETTLE" = ""; then
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24181$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24182if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24183 $as_echo_n "(cached) " >&6
24184else
24185 ac_check_lib_save_LIBS=$LIBS
24186LIBS="-lgcrypt $LIBS"
24187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188/* end confdefs.h. */
24189
24190
24191#ifdef __cplusplus
24192extern "C"
24193#endif
24194char gcry_control ();
24195int main (void)
24196{
24197return gcry_control ();
24198 ;
24199 return 0;
24200}
24201_ACEOF
24202if ac_fn_c_try_link "$LINENO"; then :
24203 ac_cv_lib_gcrypt_gcry_control=yes
24204else
24205 ac_cv_lib_gcrypt_gcry_control=no
24206fi
24207rm -f core conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
24209LIBS=$ac_check_lib_save_LIBS
24210fi
24211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24212$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24213if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24214 USE_GNUTLS_NETTLE=0
24215fi
24216
24217 fi
24218 if test "$USE_GNUTLS_NETTLE" = ""; then
24219 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24220 fi
24221 if test "$USE_GNUTLS_NETTLE" = "1"; then
24222
24223$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24224
24225 USE_GNUTLS_NETTLE=1
24226
24227 LIBS="-lnettle $LIBS"
24228 else
24229 LIBS="-lgcrypt $LIBS"
24230 fi
24231fi
24232
24233if test "$GNUTLS_ENABLED" = "1"; then
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24235$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24236if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24237 $as_echo_n "(cached) " >&6
24238else
24239 ac_check_lib_save_LIBS=$LIBS
24240LIBS="-lgnutls $LIBS"
24241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242/* end confdefs.h. */
24243
24244
24245#ifdef __cplusplus
24246extern "C"
24247#endif
24248char gnutls_srp_verifier ();
24249int main (void)
24250{
24251return gnutls_srp_verifier ();
24252 ;
24253 return 0;
24254}
24255_ACEOF
24256if ac_fn_c_try_link "$LINENO"; then :
24257 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24258else
24259 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24260fi
24261rm -f core conftest.err conftest.$ac_objext \
24262 conftest$ac_exeext conftest.$ac_ext
24263LIBS=$ac_check_lib_save_LIBS
24264fi
24265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24266$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24267if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24268
24269
24270$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24271
24272 HAVE_GNUTLS_SRP=1
24273
24274
24275fi
24276
24277fi
24278
24279
24280OPT_POLARSSL=no
24281
24282_cppflags=$CPPFLAGS
24283_ldflags=$LDFLAGS
24284
24285# Check whether --with-polarssl was given.
24286if test "${with_polarssl+set}" = set; then :
24287 withval=$with_polarssl; OPT_POLARSSL=$withval
24288fi
24289
24290
Alex Deymo486467e2017-12-19 19:04:07 +010024291if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24292 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024293
24294 if test X"$OPT_POLARSSL" != Xno; then
24295
24296 if test "$OPT_POLARSSL" = "yes"; then
24297 OPT_POLARSSL=""
24298 fi
24299
24300 if test -z "$OPT_POLARSSL" ; then
24301
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24303$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24304if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24305 $as_echo_n "(cached) " >&6
24306else
24307 ac_check_lib_save_LIBS=$LIBS
24308LIBS="-lpolarssl $LIBS"
24309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24310/* end confdefs.h. */
24311
24312
24313#ifdef __cplusplus
24314extern "C"
24315#endif
24316char havege_init ();
24317int main (void)
24318{
24319return havege_init ();
24320 ;
24321 return 0;
24322}
24323_ACEOF
24324if ac_fn_c_try_link "$LINENO"; then :
24325 ac_cv_lib_polarssl_havege_init=yes
24326else
24327 ac_cv_lib_polarssl_havege_init=no
24328fi
24329rm -f core conftest.err conftest.$ac_objext \
24330 conftest$ac_exeext conftest.$ac_ext
24331LIBS=$ac_check_lib_save_LIBS
24332fi
24333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24334$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24335if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24336
24337
24338$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24339
24340 USE_POLARSSL=1
24341
24342 POLARSSL_ENABLED=1
24343 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024344 ssl_msg="PolarSSL"
24345 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024346
24347fi
24348
24349 fi
24350
24351 addld=""
24352 addlib=""
24353 addcflags=""
24354 polarssllib=""
24355
24356 if test "x$USE_POLARSSL" != "xyes"; then
24357 addld=-L$OPT_POLARSSL/lib$libsuff
24358 addcflags=-I$OPT_POLARSSL/include
24359 polarssllib=$OPT_POLARSSL/lib$libsuff
24360
24361 LDFLAGS="$LDFLAGS $addld"
24362 if test "$addcflags" != "-I/usr/include"; then
24363 CPPFLAGS="$CPPFLAGS $addcflags"
24364 fi
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24367$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24368if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24369 $as_echo_n "(cached) " >&6
24370else
24371 ac_check_lib_save_LIBS=$LIBS
24372LIBS="-lpolarssl $LIBS"
24373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374/* end confdefs.h. */
24375
24376
24377#ifdef __cplusplus
24378extern "C"
24379#endif
24380char ssl_init ();
24381int main (void)
24382{
24383return ssl_init ();
24384 ;
24385 return 0;
24386}
24387_ACEOF
24388if ac_fn_c_try_link "$LINENO"; then :
24389 ac_cv_lib_polarssl_ssl_init=yes
24390else
24391 ac_cv_lib_polarssl_ssl_init=no
24392fi
24393rm -f core conftest.err conftest.$ac_objext \
24394 conftest$ac_exeext conftest.$ac_ext
24395LIBS=$ac_check_lib_save_LIBS
24396fi
24397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24398$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24399if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24400
24401
24402$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24403
24404 USE_POLARSSL=1
24405
24406 POLARSSL_ENABLED=1
24407 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024408 ssl_msg="PolarSSL"
24409 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024410
24411else
24412
24413 CPPFLAGS=$_cppflags
24414 LDFLAGS=$_ldflags
24415
24416fi
24417
24418 fi
24419
24420 if test "x$USE_POLARSSL" = "xyes"; then
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24422$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024423 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024424 LIBS="-lpolarssl $LIBS"
24425
24426 if test -n "$polarssllib"; then
24427 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024428 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24429 export CURL_LIBRARY_PATH
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24431$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024432 fi
24433 fi
24434 fi
24435
24436 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024437 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024438fi
24439
24440
24441OPT_MBEDTLS=no
24442
24443_cppflags=$CPPFLAGS
24444_ldflags=$LDFLAGS
24445
24446# Check whether --with-mbedtls was given.
24447if test "${with_mbedtls+set}" = set; then :
24448 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24449fi
24450
24451
Alex Deymo486467e2017-12-19 19:04:07 +010024452if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24453 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024454
24455 if test X"$OPT_MBEDTLS" != Xno; then
24456
24457 if test "$OPT_MBEDTLS" = "yes"; then
24458 OPT_MBEDTLS=""
24459 fi
24460
24461 if test -z "$OPT_MBEDTLS" ; then
24462
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24464$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24465if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24466 $as_echo_n "(cached) " >&6
24467else
24468 ac_check_lib_save_LIBS=$LIBS
24469LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471/* end confdefs.h. */
24472
24473
24474#ifdef __cplusplus
24475extern "C"
24476#endif
24477char mbedtls_havege_init ();
24478int main (void)
24479{
24480return mbedtls_havege_init ();
24481 ;
24482 return 0;
24483}
24484_ACEOF
24485if ac_fn_c_try_link "$LINENO"; then :
24486 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24487else
24488 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24489fi
24490rm -f core conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24492LIBS=$ac_check_lib_save_LIBS
24493fi
24494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24495$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24496if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24497
24498
24499$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24500
24501 USE_MBEDTLS=1
24502
24503 MBEDTLS_ENABLED=1
24504 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024505 ssl_msg="mbedTLS"
24506 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024507
24508fi
24509
24510 fi
24511
24512 addld=""
24513 addlib=""
24514 addcflags=""
24515 mbedtlslib=""
24516
24517 if test "x$USE_MBEDTLS" != "xyes"; then
24518 addld=-L$OPT_MBEDTLS/lib$libsuff
24519 addcflags=-I$OPT_MBEDTLS/include
24520 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24521
24522 LDFLAGS="$LDFLAGS $addld"
24523 if test "$addcflags" != "-I/usr/include"; then
24524 CPPFLAGS="$CPPFLAGS $addcflags"
24525 fi
24526
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24528$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24529if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24530 $as_echo_n "(cached) " >&6
24531else
24532 ac_check_lib_save_LIBS=$LIBS
24533LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535/* end confdefs.h. */
24536
24537
24538#ifdef __cplusplus
24539extern "C"
24540#endif
24541char mbedtls_ssl_init ();
24542int main (void)
24543{
24544return mbedtls_ssl_init ();
24545 ;
24546 return 0;
24547}
24548_ACEOF
24549if ac_fn_c_try_link "$LINENO"; then :
24550 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24551else
24552 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24553fi
24554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24556LIBS=$ac_check_lib_save_LIBS
24557fi
24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24559$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24560if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24561
24562
24563$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24564
24565 USE_MBEDTLS=1
24566
24567 MBEDTLS_ENABLED=1
24568 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024569 ssl_msg="mbedTLS"
24570 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024571
24572else
24573
24574 CPPFLAGS=$_cppflags
24575 LDFLAGS=$_ldflags
24576
24577fi
24578
24579 fi
24580
24581 if test "x$USE_MBEDTLS" = "xyes"; then
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24583$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024584 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024585
24586 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24587
24588 if test -n "$mbedtlslib"; then
24589 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024590 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24591 export CURL_LIBRARY_PATH
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24593$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024594 fi
24595 fi
24596 fi
24597
24598 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024599 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024600fi
24601
24602
24603OPT_CYASSL=no
24604
24605_cppflags=$CPPFLAGS
24606_ldflags=$LDFLAGS
24607
24608# Check whether --with-cyassl was given.
24609if test "${with_cyassl+set}" = set; then :
24610 withval=$with_cyassl; OPT_CYASSL=$withval
24611fi
24612
24613
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024614
24615# Check whether --with-wolfssl was given.
24616if test "${with_wolfssl+set}" = set; then :
24617 withval=$with_wolfssl; OPT_CYASSL=$withval
24618fi
24619
24620
Alex Deymo486467e2017-12-19 19:04:07 +010024621if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24622 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024623
24624 if test X"$OPT_CYASSL" != Xno; then
24625
24626 if test "$OPT_CYASSL" = "yes"; then
24627 OPT_CYASSL=""
24628 fi
24629
24630
24631 cyassllibname=cyassl
24632
24633 if test -z "$OPT_CYASSL" ; then
24634
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24636$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24637if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24638 $as_echo_n "(cached) " >&6
24639else
24640 ac_check_lib_save_LIBS=$LIBS
24641LIBS="-lcyassl $LIBS"
24642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643/* end confdefs.h. */
24644
24645
24646#ifdef __cplusplus
24647extern "C"
24648#endif
24649char CyaSSL_Init ();
24650int main (void)
24651{
24652return CyaSSL_Init ();
24653 ;
24654 return 0;
24655}
24656_ACEOF
24657if ac_fn_c_try_link "$LINENO"; then :
24658 ac_cv_lib_cyassl_CyaSSL_Init=yes
24659else
24660 ac_cv_lib_cyassl_CyaSSL_Init=no
24661fi
24662rm -f core conftest.err conftest.$ac_objext \
24663 conftest$ac_exeext conftest.$ac_ext
24664LIBS=$ac_check_lib_save_LIBS
24665fi
24666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24667$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24668if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24669
24670
24671$as_echo "#define USE_CYASSL 1" >>confdefs.h
24672
24673 USE_CYASSL=1
24674
24675 CYASSL_ENABLED=1
24676 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024677 ssl_msg="CyaSSL"
24678 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024679
24680fi
24681
24682 fi
24683
24684 addld=""
24685 addlib=""
24686 addcflags=""
24687 cyassllib=""
24688
24689 if test "x$USE_CYASSL" != "xyes"; then
24690 addld=-L$OPT_CYASSL/lib$libsuff
24691 addcflags=-I$OPT_CYASSL/include
24692 cyassllib=$OPT_CYASSL/lib$libsuff
24693
24694 LDFLAGS="$LDFLAGS $addld"
24695 if test "$addcflags" != "-I/usr/include"; then
24696 CPPFLAGS="$CPPFLAGS $addcflags"
24697 fi
24698
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24700$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24701if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24702 $as_echo_n "(cached) " >&6
24703else
24704 ac_check_lib_save_LIBS=$LIBS
24705LIBS="-lcyassl $LIBS"
24706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707/* end confdefs.h. */
24708
24709
24710#ifdef __cplusplus
24711extern "C"
24712#endif
24713char CyaSSL_Init ();
24714int main (void)
24715{
24716return CyaSSL_Init ();
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721if ac_fn_c_try_link "$LINENO"; then :
24722 ac_cv_lib_cyassl_CyaSSL_Init=yes
24723else
24724 ac_cv_lib_cyassl_CyaSSL_Init=no
24725fi
24726rm -f core conftest.err conftest.$ac_objext \
24727 conftest$ac_exeext conftest.$ac_ext
24728LIBS=$ac_check_lib_save_LIBS
24729fi
24730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24731$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24732if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24733
24734
24735$as_echo "#define USE_CYASSL 1" >>confdefs.h
24736
24737 USE_CYASSL=1
24738
24739 CYASSL_ENABLED=1
24740 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024741 ssl_msg="CyaSSL"
24742 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024743
24744else
24745
24746 CPPFLAGS=$_cppflags
24747 LDFLAGS=$_ldflags
24748 cyassllib=""
24749
24750fi
24751
24752 fi
24753
24754 addld=""
24755 addlib=""
24756 addcflags=""
24757
24758 if test "x$USE_CYASSL" != "xyes"; then
24759 addld=-L$OPT_CYASSL/lib$libsuff
24760 addcflags=-I$OPT_CYASSL/include
24761 cyassllib=$OPT_CYASSL/lib$libsuff
24762
24763 LDFLAGS="$LDFLAGS $addld"
24764 if test "$addcflags" != "-I/usr/include"; then
24765 CPPFLAGS="$CPPFLAGS $addcflags"
24766 fi
24767
24768 cyassllibname=wolfssl
24769 my_ac_save_LIBS="$LIBS"
24770 LIBS="-l$cyassllibname -lm $LIBS"
24771
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24773$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24775/* end confdefs.h. */
24776
24777
24778/* These aren't needed for detection and confuse WolfSSL.
24779 They are set up properly later if it is detected. */
24780#undef SIZEOF_LONG
24781#undef SIZEOF_LONG_LONG
24782#include <cyassl/ssl.h>
24783
24784int main (void)
24785{
24786
24787 return CyaSSL_Init();
24788
24789 ;
24790 return 0;
24791}
24792
24793_ACEOF
24794if ac_fn_c_try_link "$LINENO"; then :
24795
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24797$as_echo "yes" >&6; }
24798
24799$as_echo "#define USE_CYASSL 1" >>confdefs.h
24800
24801 USE_CYASSL=1
24802
24803 CYASSL_ENABLED=1
24804 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024805 ssl_msg="WolfSSL"
24806 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024807
24808else
24809
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24811$as_echo "no" >&6; }
24812 CPPFLAGS=$_cppflags
24813 LDFLAGS=$_ldflags
24814 cyassllib=""
24815
24816fi
24817rm -f core conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS="$my_ac_save_LIBS"
24820 fi
24821
24822 if test "x$USE_CYASSL" = "xyes"; then
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24824$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024825 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024826
Elliott Hughes72d948d2018-08-03 14:37:21 -070024827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024828$as_echo_n "checking size of long long... " >&6; }
24829if ${ac_cv_sizeof_long_long+:} false; then :
24830 $as_echo_n "(cached) " >&6
24831else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24834/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024835
Elliott Hughes72d948d2018-08-03 14:37:21 -070024836#include <sys/types.h>
24837
24838
24839int main (void)
24840{
24841switch (0) case 0: case (sizeof (long long) == $ac_size):;
24842 ;
24843 return 0;
24844}
24845_ACEOF
24846if ac_fn_c_try_compile "$LINENO"; then :
24847 ac_cv_sizeof_long_long=$ac_size
24848fi
24849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24851done
24852
Elliott Hughes82be86d2017-09-20 17:00:17 -070024853fi
24854
Elliott Hughes72d948d2018-08-03 14:37:21 -070024855if test x$ac_cv_sizeof_long_long = x ; then
24856 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024857fi
24858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24859$as_echo "$ac_cv_sizeof_long_long" >&6; }
24860
Elliott Hughes82be86d2017-09-20 17:00:17 -070024861cat >>confdefs.h <<_ACEOF
24862#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24863_ACEOF
24864
24865
24866
24867 for ac_header in cyassl/options.h
24868do :
24869 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24870if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24871 cat >>confdefs.h <<_ACEOF
24872#define HAVE_CYASSL_OPTIONS_H 1
24873_ACEOF
24874
24875fi
24876
24877done
24878
24879
24880 for ac_header in cyassl/error-ssl.h
24881do :
24882 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24883if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24884 cat >>confdefs.h <<_ACEOF
24885#define HAVE_CYASSL_ERROR_SSL_H 1
24886_ACEOF
24887
24888fi
24889
24890done
24891
24892
24893 LIBS="-l$cyassllibname -lm $LIBS"
24894
24895 if test "x$cyassllibname" = "xwolfssl"; then
24896 for ac_func in wolfSSLv3_client_method \
24897 wolfSSL_CTX_UseSupportedCurve \
24898 wolfSSL_get_peer_certificate \
24899 wolfSSL_UseALPN
24900do :
24901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24902ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24903if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24904 cat >>confdefs.h <<_ACEOF
24905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24906_ACEOF
24907
24908fi
24909done
24910
24911 else
24912 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24913 CyaSSL_get_peer_certificate
24914do :
24915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24917if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24918 cat >>confdefs.h <<_ACEOF
24919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24920_ACEOF
24921
24922fi
24923done
24924
24925 fi
24926
24927 if test -n "$cyassllib"; then
24928 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024929 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24930 export CURL_LIBRARY_PATH
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24932$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024933 fi
24934 fi
24935
24936 fi
24937
24938 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024939 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024940fi
24941
24942
Elliott Hughesa93fb052018-12-12 14:22:48 -080024943OPT_MESALINK=no
24944
24945_cppflags=$CPPFLAGS
24946_ldflags=$LDFLAGS
24947
24948# Check whether --with-mesalink was given.
24949if test "${with_mesalink+set}" = set; then :
24950 withval=$with_mesalink; OPT_MESALINK=$withval
24951fi
24952
24953
24954if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24955 ssl_msg=
24956
24957 if test X"$OPT_MESALINK" != Xno; then
24958
24959 if test "$OPT_MESALINK" = "yes"; then
24960 OPT_MESALINK=""
24961 fi
24962
24963 if test -z "$OPT_MESALINK" ; then
24964
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24966$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24967if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24968 $as_echo_n "(cached) " >&6
24969else
24970 ac_check_lib_save_LIBS=$LIBS
24971LIBS="-lmesalink $LIBS"
24972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24973/* end confdefs.h. */
24974
24975
24976#ifdef __cplusplus
24977extern "C"
24978#endif
24979char mesalink_library_init ();
24980int main (void)
24981{
24982return mesalink_library_init ();
24983 ;
24984 return 0;
24985}
24986_ACEOF
24987if ac_fn_c_try_link "$LINENO"; then :
24988 ac_cv_lib_mesalink_mesalink_library_init=yes
24989else
24990 ac_cv_lib_mesalink_mesalink_library_init=no
24991fi
24992rm -f core conftest.err conftest.$ac_objext \
24993 conftest$ac_exeext conftest.$ac_ext
24994LIBS=$ac_check_lib_save_LIBS
24995fi
24996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24997$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24998if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24999
25000
25001$as_echo "#define USE_MESALINK 1" >>confdefs.h
25002
25003 USE_MESALINK=1
25004
25005 MESALINK_ENABLED=1
25006 USE_MESALINK="yes"
25007 ssl_msg="MesaLink"
25008 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25009
25010fi
25011
25012 fi
25013
25014 addld=""
25015 addlib=""
25016 addcflags=""
25017 mesalinklib=""
25018
25019 if test "x$USE_MESALINK" != "xyes"; then
25020 addld=-L$OPT_MESALINK/lib$libsuff
25021 addcflags=-I$OPT_MESALINK/include
25022 mesalinklib=$OPT_MESALINK/lib$libsuff
25023
25024 LDFLAGS="$LDFLAGS $addld"
25025 if test "$addcflags" != "-I/usr/include"; then
25026 CPPFLAGS="$CPPFLAGS $addcflags"
25027 fi
25028
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
25030$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
25031if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25032 $as_echo_n "(cached) " >&6
25033else
25034 ac_check_lib_save_LIBS=$LIBS
25035LIBS="-lmesalink $LIBS"
25036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037/* end confdefs.h. */
25038
25039
25040#ifdef __cplusplus
25041extern "C"
25042#endif
25043char mesalink_library_init ();
25044int main (void)
25045{
25046return mesalink_library_init ();
25047 ;
25048 return 0;
25049}
25050_ACEOF
25051if ac_fn_c_try_link "$LINENO"; then :
25052 ac_cv_lib_mesalink_mesalink_library_init=yes
25053else
25054 ac_cv_lib_mesalink_mesalink_library_init=no
25055fi
25056rm -f core conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
25058LIBS=$ac_check_lib_save_LIBS
25059fi
25060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25061$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25062if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25063
25064
25065$as_echo "#define USE_MESALINK 1" >>confdefs.h
25066
25067 USE_MESALINK=1
25068
25069 MESALINK_ENABLED=1
25070 USE_MESALINK="yes"
25071 ssl_msg="MesaLink"
25072 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25073
25074else
25075
25076 CPPFLAGS=$_cppflags
25077 LDFLAGS=$_ldflags
25078
25079fi
25080
25081 fi
25082
25083 if test "x$USE_MESALINK" = "xyes"; then
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25085$as_echo "$as_me: detected MesaLink" >&6;}
25086
25087 LIBS="-lmesalink $LIBS"
25088
25089 if test -n "$mesalinklib"; then
25090 if test "x$cross_compiling" != "xyes"; then
25091 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25092 export LD_LIBRARY_PATH
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25094$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25095 fi
25096 fi
25097 fi
25098
25099 fi
25100 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25101fi
25102
25103
Elliott Hughes82be86d2017-09-20 17:00:17 -070025104OPT_NSS=no
25105
25106
25107# Check whether --with-nss was given.
25108if test "${with_nss+set}" = set; then :
25109 withval=$with_nss; OPT_NSS=$withval
25110fi
25111
25112
Alex Deymo486467e2017-12-19 19:04:07 +010025113if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25114 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025115
25116 if test X"$OPT_NSS" != Xno; then
25117
25118 addld=""
25119 addlib=""
25120 addcflags=""
25121 nssprefix=""
25122 version=""
25123
25124 if test "x$OPT_NSS" = "xyes"; then
25125
25126
25127 if test -n "$PKG_CONFIG"; then
25128 PKGCONFIG="$PKG_CONFIG"
25129 else
25130 if test -n "$ac_tool_prefix"; then
25131 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25132set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25134$as_echo_n "checking for $ac_word... " >&6; }
25135if ${ac_cv_path_PKGCONFIG+:} false; then :
25136 $as_echo_n "(cached) " >&6
25137else
25138 case $PKGCONFIG in
25139 [\\/]* | ?:[\\/]*)
25140 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25141 ;;
25142 *)
25143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25144as_dummy="$PATH:/usr/bin:/usr/local/bin"
25145for as_dir in $as_dummy
25146do
25147 IFS=$as_save_IFS
25148 test -z "$as_dir" && as_dir=.
25149 for ac_exec_ext in '' $ac_executable_extensions; do
25150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25151 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25153 break 2
25154 fi
25155done
25156 done
25157IFS=$as_save_IFS
25158
25159 ;;
25160esac
25161fi
25162PKGCONFIG=$ac_cv_path_PKGCONFIG
25163if test -n "$PKGCONFIG"; then
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25165$as_echo "$PKGCONFIG" >&6; }
25166else
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25168$as_echo "no" >&6; }
25169fi
25170
25171
25172fi
25173if test -z "$ac_cv_path_PKGCONFIG"; then
25174 ac_pt_PKGCONFIG=$PKGCONFIG
25175 # Extract the first word of "pkg-config", so it can be a program name with args.
25176set dummy pkg-config; ac_word=$2
25177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25178$as_echo_n "checking for $ac_word... " >&6; }
25179if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25180 $as_echo_n "(cached) " >&6
25181else
25182 case $ac_pt_PKGCONFIG in
25183 [\\/]* | ?:[\\/]*)
25184 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25185 ;;
25186 *)
25187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25188as_dummy="$PATH:/usr/bin:/usr/local/bin"
25189for as_dir in $as_dummy
25190do
25191 IFS=$as_save_IFS
25192 test -z "$as_dir" && as_dir=.
25193 for ac_exec_ext in '' $ac_executable_extensions; do
25194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25195 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25197 break 2
25198 fi
25199done
25200 done
25201IFS=$as_save_IFS
25202
25203 ;;
25204esac
25205fi
25206ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25207if test -n "$ac_pt_PKGCONFIG"; then
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25209$as_echo "$ac_pt_PKGCONFIG" >&6; }
25210else
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25212$as_echo "no" >&6; }
25213fi
25214
25215 if test "x$ac_pt_PKGCONFIG" = x; then
25216 PKGCONFIG="no"
25217 else
25218 case $cross_compiling:$ac_tool_warned in
25219yes:)
25220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25222ac_tool_warned=yes ;;
25223esac
25224 PKGCONFIG=$ac_pt_PKGCONFIG
25225 fi
25226else
25227 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25228fi
25229
25230 fi
25231
25232 if test "x$PKGCONFIG" != "xno"; then
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25234$as_echo_n "checking for nss options with pkg-config... " >&6; }
25235 itexists=`
25236 if test -n ""; then
25237 PKG_CONFIG_LIBDIR=""
25238 export PKG_CONFIG_LIBDIR
25239 fi
25240 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25241
25242 if test -z "$itexists"; then
25243 PKGCONFIG="no"
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25245$as_echo "no" >&6; }
25246 else
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25248$as_echo "found" >&6; }
25249 fi
25250 fi
25251
25252
25253 if test "$PKGCONFIG" != "no" ; then
25254 addlib=`$PKGCONFIG --libs nss`
25255 addcflags=`$PKGCONFIG --cflags nss`
25256 version=`$PKGCONFIG --modversion nss`
25257 nssprefix=`$PKGCONFIG --variable=prefix nss`
25258 else
25259
25260 check=`nss-config --version 2>/dev/null`
25261 if test -n "$check"; then
25262 addlib=`nss-config --libs`
25263 addcflags=`nss-config --cflags`
25264 version=`nss-config --version`
25265 nssprefix=`nss-config --prefix`
25266 else
25267 addlib="-lnss3"
25268 addcflags=""
25269 version="unknown"
25270 fi
25271 fi
25272 else
25273 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25274 if test -f "$NSS_PCDIR/nss.pc"; then
25275
25276 if test -n "$PKG_CONFIG"; then
25277 PKGCONFIG="$PKG_CONFIG"
25278 else
25279 if test -n "$ac_tool_prefix"; then
25280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25281set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25283$as_echo_n "checking for $ac_word... " >&6; }
25284if ${ac_cv_path_PKGCONFIG+:} false; then :
25285 $as_echo_n "(cached) " >&6
25286else
25287 case $PKGCONFIG in
25288 [\\/]* | ?:[\\/]*)
25289 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25290 ;;
25291 *)
25292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25293as_dummy="$PATH:/usr/bin:/usr/local/bin"
25294for as_dir in $as_dummy
25295do
25296 IFS=$as_save_IFS
25297 test -z "$as_dir" && as_dir=.
25298 for ac_exec_ext in '' $ac_executable_extensions; do
25299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25300 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25302 break 2
25303 fi
25304done
25305 done
25306IFS=$as_save_IFS
25307
25308 ;;
25309esac
25310fi
25311PKGCONFIG=$ac_cv_path_PKGCONFIG
25312if test -n "$PKGCONFIG"; then
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25314$as_echo "$PKGCONFIG" >&6; }
25315else
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25317$as_echo "no" >&6; }
25318fi
25319
25320
25321fi
25322if test -z "$ac_cv_path_PKGCONFIG"; then
25323 ac_pt_PKGCONFIG=$PKGCONFIG
25324 # Extract the first word of "pkg-config", so it can be a program name with args.
25325set dummy pkg-config; ac_word=$2
25326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25327$as_echo_n "checking for $ac_word... " >&6; }
25328if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25329 $as_echo_n "(cached) " >&6
25330else
25331 case $ac_pt_PKGCONFIG in
25332 [\\/]* | ?:[\\/]*)
25333 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25334 ;;
25335 *)
25336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25337as_dummy="$PATH:/usr/bin:/usr/local/bin"
25338for as_dir in $as_dummy
25339do
25340 IFS=$as_save_IFS
25341 test -z "$as_dir" && as_dir=.
25342 for ac_exec_ext in '' $ac_executable_extensions; do
25343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25344 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25346 break 2
25347 fi
25348done
25349 done
25350IFS=$as_save_IFS
25351
25352 ;;
25353esac
25354fi
25355ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25356if test -n "$ac_pt_PKGCONFIG"; then
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25358$as_echo "$ac_pt_PKGCONFIG" >&6; }
25359else
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25361$as_echo "no" >&6; }
25362fi
25363
25364 if test "x$ac_pt_PKGCONFIG" = x; then
25365 PKGCONFIG="no"
25366 else
25367 case $cross_compiling:$ac_tool_warned in
25368yes:)
25369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25371ac_tool_warned=yes ;;
25372esac
25373 PKGCONFIG=$ac_pt_PKGCONFIG
25374 fi
25375else
25376 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25377fi
25378
25379 fi
25380
25381 if test "x$PKGCONFIG" != "xno"; then
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25383$as_echo_n "checking for nss options with pkg-config... " >&6; }
25384 itexists=`
25385 if test -n "$NSS_PCDIR"; then
25386 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25387 export PKG_CONFIG_LIBDIR
25388 fi
25389 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25390
25391 if test -z "$itexists"; then
25392 PKGCONFIG="no"
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25394$as_echo "no" >&6; }
25395 else
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25397$as_echo "found" >&6; }
25398 fi
25399 fi
25400
25401 if test "$PKGCONFIG" != "no" ; then
25402 addld=`
25403 if test -n "$NSS_PCDIR"; then
25404 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25405 export PKG_CONFIG_LIBDIR
25406 fi
25407 $PKGCONFIG --libs-only-L nss`
25408 addlib=`
25409 if test -n "$NSS_PCDIR"; then
25410 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25411 export PKG_CONFIG_LIBDIR
25412 fi
25413 $PKGCONFIG --libs-only-l nss`
25414 addcflags=`
25415 if test -n "$NSS_PCDIR"; then
25416 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25417 export PKG_CONFIG_LIBDIR
25418 fi
25419 $PKGCONFIG --cflags nss`
25420 version=`
25421 if test -n "$NSS_PCDIR"; then
25422 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25423 export PKG_CONFIG_LIBDIR
25424 fi
25425 $PKGCONFIG --modversion nss`
25426 nssprefix=`
25427 if test -n "$NSS_PCDIR"; then
25428 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25429 export PKG_CONFIG_LIBDIR
25430 fi
25431 $PKGCONFIG --variable=prefix nss`
25432 fi
25433 fi
25434 fi
25435
25436 if test -z "$addlib"; then
25437 # Without pkg-config, we'll kludge in some defaults
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25439$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25440 addld="-L$OPT_NSS/lib"
25441 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25442 addcflags="-I$OPT_NSS/include"
25443 version="unknown"
25444 nssprefix=$OPT_NSS
25445 fi
25446
25447 CLEANLDFLAGS="$LDFLAGS"
25448 CLEANLIBS="$LIBS"
25449 CLEANCPPFLAGS="$CPPFLAGS"
25450
25451 LDFLAGS="$addld $LDFLAGS"
25452 LIBS="$addlib $LIBS"
25453 if test "$addcflags" != "-I/usr/include"; then
25454 CPPFLAGS="$CPPFLAGS $addcflags"
25455 fi
25456
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25458$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25459if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25460 $as_echo_n "(cached) " >&6
25461else
25462 ac_check_lib_save_LIBS=$LIBS
25463LIBS="-lnss3 $LIBS"
25464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25465/* end confdefs.h. */
25466
25467
25468#ifdef __cplusplus
25469extern "C"
25470#endif
25471char SSL_VersionRangeSet ();
25472int main (void)
25473{
25474return SSL_VersionRangeSet ();
25475 ;
25476 return 0;
25477}
25478_ACEOF
25479if ac_fn_c_try_link "$LINENO"; then :
25480 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25481else
25482 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25483fi
25484rm -f core conftest.err conftest.$ac_objext \
25485 conftest$ac_exeext conftest.$ac_ext
25486LIBS=$ac_check_lib_save_LIBS
25487fi
25488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25489$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25490if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25491
25492
25493$as_echo "#define USE_NSS 1" >>confdefs.h
25494
25495 USE_NSS=1
25496
25497 USE_NSS="yes"
25498 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025499 ssl_msg="NSS"
25500 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025501
25502else
25503
25504 LDFLAGS="$CLEANLDFLAGS"
25505 LIBS="$CLEANLIBS"
25506 CPPFLAGS="$CLEANCPPFLAGS"
25507
25508fi
25509
25510
25511 if test "x$USE_NSS" = "xyes"; then
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25513$as_echo "$as_me: detected NSS version $version" >&6;}
25514
Elliott Hughescac39802018-04-27 16:19:43 -070025515 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25516if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25517
25518
25519$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25520
25521
25522fi
25523
25524
Elliott Hughes82be86d2017-09-20 17:00:17 -070025525 NSS_LIBS=$addlib
25526
25527
25528 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025529 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25530 export CURL_LIBRARY_PATH
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25532$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025533 fi
25534
25535 fi
25536 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025537 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025538fi
Alex Deymo486467e2017-12-19 19:04:07 +010025539
Elliott Hughes82be86d2017-09-20 17:00:17 -070025540OPT_AXTLS=off
25541
25542
25543# Check whether --with-axtls was given.
25544if test "${with_axtls+set}" = set; then :
25545 withval=$with_axtls; OPT_AXTLS=$withval
25546fi
25547
25548
Alex Deymo486467e2017-12-19 19:04:07 +010025549if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25550 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025551 if test X"$OPT_AXTLS" != Xno; then
25552 CLEANLDFLAGS="$LDFLAGS"
25553 CLEANCPPFLAGS="$CPPFLAGS"
25554 CLEANLIBS="$LIBS"
25555
25556 case "$OPT_AXTLS" in
25557 yes)
25558 PREFIX_AXTLS=/usr/local
25559 LIB_AXTLS="$PREFIX_AXTLS/lib"
25560 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25561 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25562 ;;
25563 off)
25564 PREFIX_AXTLS=
25565 ;;
25566 *)
25567 PREFIX_AXTLS=$OPT_AXTLS
25568 LIB_AXTLS="$PREFIX_AXTLS/lib"
25569 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25570 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25571 ;;
25572 esac
25573
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25575$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25576if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25577 $as_echo_n "(cached) " >&6
25578else
25579 ac_check_lib_save_LIBS=$LIBS
25580LIBS="-laxtls $LIBS"
25581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582/* end confdefs.h. */
25583
25584
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588char ssl_version ();
25589int main (void)
25590{
25591return ssl_version ();
25592 ;
25593 return 0;
25594}
25595_ACEOF
25596if ac_fn_c_try_link "$LINENO"; then :
25597 ac_cv_lib_axtls_ssl_version=yes
25598else
25599 ac_cv_lib_axtls_ssl_version=no
25600fi
25601rm -f core conftest.err conftest.$ac_objext \
25602 conftest$ac_exeext conftest.$ac_ext
25603LIBS=$ac_check_lib_save_LIBS
25604fi
25605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25606$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25607if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25608
25609 LIBS="-laxtls $LIBS"
25610
25611$as_echo "#define USE_AXTLS 1" >>confdefs.h
25612
25613 USE_AXTLS=1
25614
25615 AXTLS_ENABLED=1
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025616 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070025617 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025618 ssl_msg="axTLS"
25619 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025620
25621 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025622 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25623 export CURL_LIBRARY_PATH
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25625$as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025626 fi
25627
25628else
25629
25630 LDFLAGS="$CLEANLDFLAGS"
25631 CPPFLAGS="$CLEANCPPFLAGS"
25632 LIBS="$CLEANLIBS"
25633
25634fi
25635
25636 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025637 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025638fi
25639
Elliott Hughesa93fb052018-12-12 14:22:48 -080025640case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED$MESALINK_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025641x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25643$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Elliott Hughesa93fb052018-12-12 14:22:48 -080025644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&5
25645$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025646 ;;
25647x1)
25648 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025649
25650 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025651 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25652$as_echo "$as_me: built with one SSL backend" >&6;}
25653 ;;
25654*)
25655 # more than one SSL backend is enabled
25656
25657 SSL_ENABLED="1"
25658
25659 CURL_WITH_MULTI_SSL="1"
25660
25661$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25662
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25664$as_echo "$as_me: built with multiple SSL backends" >&6;}
25665 ;;
25666esac
25667
25668if test -n "$ssl_backends"; then
25669 curl_ssl_msg="enabled ($ssl_backends)"
25670fi
25671
25672if test no = "$VALID_DEFAULT_SSL_BACKEND"
25673then
25674 if test -n "$SSL_ENABLED"
25675 then
25676 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25677 else
25678 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25679 fi
25680elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25681then
25682
25683cat >>confdefs.h <<_ACEOF
25684#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25685_ACEOF
25686
Elliott Hughes82be86d2017-09-20 17:00:17 -070025687fi
25688
25689
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025690if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025691
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25694$as_echo_n "checking default CA cert bundle/path... " >&6; }
25695
25696
25697# Check whether --with-ca-bundle was given.
25698if test "${with_ca_bundle+set}" = set; then :
25699 withval=$with_ca_bundle;
25700 want_ca="$withval"
25701 if test "x$want_ca" = "xyes"; then
25702 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25703 fi
25704
25705else
25706 want_ca="unset"
25707fi
25708
25709
25710# Check whether --with-ca-path was given.
25711if test "${with_ca_path+set}" = set; then :
25712 withval=$with_ca_path;
25713 want_capath="$withval"
25714 if test "x$want_capath" = "xyes"; then
25715 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25716 fi
25717
25718else
25719 want_capath="unset"
25720fi
25721
25722
25723 ca_warning=" (warning: certs not found)"
25724 capath_warning=" (warning: certs not found)"
25725 check_capath=""
25726
25727 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25728 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25729 ca="$want_ca"
25730 capath="$want_capath"
25731 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25732 ca="$want_ca"
25733 capath="no"
25734 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25735 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25736 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25737 fi
25738 capath="$want_capath"
25739 ca="no"
25740 else
25741 ca="no"
25742 capath="no"
25743 if test "x$cross_compiling" != "xyes"; then
25744 if test "x$want_ca" = "xunset"; then
25745 if test "x$prefix" != xNONE; then
25746 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25747 else
25748 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25749 fi
25750
25751 for a in /etc/ssl/certs/ca-certificates.crt \
25752 /etc/pki/tls/certs/ca-bundle.crt \
25753 /usr/share/ssl/certs/ca-bundle.crt \
25754 /usr/local/share/certs/ca-root-nss.crt \
25755 /etc/ssl/cert.pem \
25756 "$cac"; do
25757 if test -f "$a"; then
25758 ca="$a"
25759 break
25760 fi
25761 done
25762 fi
25763 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25764 "x$OPENSSL_ENABLED" = "x1"; then
25765 check_capath="/etc/ssl/certs/"
25766 fi
25767 else
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25769$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25770 fi
25771 fi
25772
25773 if test "x$ca" = "xno" || test -f "$ca"; then
25774 ca_warning=""
25775 fi
25776
25777 if test "x$capath" != "xno"; then
25778 check_capath="$capath"
25779 fi
25780
25781 if test ! -z "$check_capath"; then
25782 for a in "$check_capath"; do
25783 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
25784 if test "x$capath" = "xno"; then
25785 capath="$a"
25786 fi
25787 capath_warning=""
25788 break
25789 fi
25790 done
25791 fi
25792
25793 if test "x$capath" = "xno"; then
25794 capath_warning=""
25795 fi
25796
25797 if test "x$ca" != "xno"; then
25798 CURL_CA_BUNDLE='"'$ca'"'
25799
25800cat >>confdefs.h <<_ACEOF
25801#define CURL_CA_BUNDLE "$ca"
25802_ACEOF
25803
25804
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25806$as_echo "$ca" >&6; }
25807 fi
25808 if test "x$capath" != "xno"; then
25809 CURL_CA_PATH="\"$capath\""
25810
25811cat >>confdefs.h <<_ACEOF
25812#define CURL_CA_PATH "$capath"
25813_ACEOF
25814
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25816$as_echo "$capath (capath)" >&6; }
25817 fi
25818 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25820$as_echo "no" >&6; }
25821 fi
25822
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25824$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25825
25826# Check whether --with-ca-fallback was given.
25827if test "${with_ca_fallback+set}" = set; then :
25828 withval=$with_ca_fallback;
25829 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25830 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25831 fi
25832
25833else
25834 with_ca_fallback="no"
25835fi
25836
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25838$as_echo "$with_ca_fallback" >&6; }
25839 if test "x$with_ca_fallback" = "xyes"; then
25840 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25841 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25842 fi
25843
25844cat >>confdefs.h <<_ACEOF
25845#define CURL_CA_FALLBACK 1
25846_ACEOF
25847
25848 fi
25849
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025850fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025851
25852
25853
25854# Check whether --with-libpsl was given.
25855if test "${with_libpsl+set}" = set; then :
25856 withval=$with_libpsl; with_libpsl=$withval
25857else
25858 with_libpsl=yes
25859fi
25860
25861if test $with_libpsl != "no"; then
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25863$as_echo_n "checking for library containing psl_builtin... " >&6; }
25864if ${ac_cv_search_psl_builtin+:} false; then :
25865 $as_echo_n "(cached) " >&6
25866else
25867 ac_func_search_save_LIBS=$LIBS
25868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25869/* end confdefs.h. */
25870
25871
25872#ifdef __cplusplus
25873extern "C"
25874#endif
25875char psl_builtin ();
25876int main (void)
25877{
25878return psl_builtin ();
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883for ac_lib in '' psl; do
25884 if test -z "$ac_lib"; then
25885 ac_res="none required"
25886 else
25887 ac_res=-l$ac_lib
25888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25889 fi
25890 if ac_fn_c_try_link "$LINENO"; then :
25891 ac_cv_search_psl_builtin=$ac_res
25892fi
25893rm -f core conftest.err conftest.$ac_objext \
25894 conftest$ac_exeext
25895 if ${ac_cv_search_psl_builtin+:} false; then :
25896 break
25897fi
25898done
25899if ${ac_cv_search_psl_builtin+:} false; then :
25900
25901else
25902 ac_cv_search_psl_builtin=no
25903fi
25904rm conftest.$ac_ext
25905LIBS=$ac_func_search_save_LIBS
25906fi
25907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25908$as_echo "$ac_cv_search_psl_builtin" >&6; }
25909ac_res=$ac_cv_search_psl_builtin
25910if test "$ac_res" != no; then :
25911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25912 curl_psl_msg="yes";
25913
25914$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25915
25916
25917else
25918 curl_psl_msg="no (libpsl not found)";
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25920$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25921
25922
25923fi
25924
25925fi
25926 if test "$curl_psl_msg" = "yes"; then
25927 USE_LIBPSL_TRUE=
25928 USE_LIBPSL_FALSE='#'
25929else
25930 USE_LIBPSL_TRUE='#'
25931 USE_LIBPSL_FALSE=
25932fi
25933
25934
25935
25936OPT_LIBMETALINK=no
25937
25938
25939# Check whether --with-libmetalink was given.
25940if test "${with_libmetalink+set}" = set; then :
25941 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25942fi
25943
25944
25945if test X"$OPT_LIBMETALINK" != Xno; then
25946
25947 addld=""
25948 addlib=""
25949 addcflags=""
25950 version=""
25951 libmetalinklib=""
25952
25953 PKGTEST="no"
25954 if test "x$OPT_LIBMETALINK" = "xyes"; then
25955 PKGTEST="yes"
25956
25957 if test -n "$PKG_CONFIG"; then
25958 PKGCONFIG="$PKG_CONFIG"
25959 else
25960 if test -n "$ac_tool_prefix"; then
25961 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25962set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25964$as_echo_n "checking for $ac_word... " >&6; }
25965if ${ac_cv_path_PKGCONFIG+:} false; then :
25966 $as_echo_n "(cached) " >&6
25967else
25968 case $PKGCONFIG in
25969 [\\/]* | ?:[\\/]*)
25970 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25971 ;;
25972 *)
25973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25974as_dummy="$PATH:/usr/bin:/usr/local/bin"
25975for as_dir in $as_dummy
25976do
25977 IFS=$as_save_IFS
25978 test -z "$as_dir" && as_dir=.
25979 for ac_exec_ext in '' $ac_executable_extensions; do
25980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25981 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25983 break 2
25984 fi
25985done
25986 done
25987IFS=$as_save_IFS
25988
25989 ;;
25990esac
25991fi
25992PKGCONFIG=$ac_cv_path_PKGCONFIG
25993if test -n "$PKGCONFIG"; then
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25995$as_echo "$PKGCONFIG" >&6; }
25996else
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998$as_echo "no" >&6; }
25999fi
26000
26001
26002fi
26003if test -z "$ac_cv_path_PKGCONFIG"; then
26004 ac_pt_PKGCONFIG=$PKGCONFIG
26005 # Extract the first word of "pkg-config", so it can be a program name with args.
26006set dummy pkg-config; ac_word=$2
26007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26008$as_echo_n "checking for $ac_word... " >&6; }
26009if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26010 $as_echo_n "(cached) " >&6
26011else
26012 case $ac_pt_PKGCONFIG in
26013 [\\/]* | ?:[\\/]*)
26014 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26015 ;;
26016 *)
26017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26018as_dummy="$PATH:/usr/bin:/usr/local/bin"
26019for as_dir in $as_dummy
26020do
26021 IFS=$as_save_IFS
26022 test -z "$as_dir" && as_dir=.
26023 for ac_exec_ext in '' $ac_executable_extensions; do
26024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26025 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26027 break 2
26028 fi
26029done
26030 done
26031IFS=$as_save_IFS
26032
26033 ;;
26034esac
26035fi
26036ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26037if test -n "$ac_pt_PKGCONFIG"; then
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26039$as_echo "$ac_pt_PKGCONFIG" >&6; }
26040else
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26042$as_echo "no" >&6; }
26043fi
26044
26045 if test "x$ac_pt_PKGCONFIG" = x; then
26046 PKGCONFIG="no"
26047 else
26048 case $cross_compiling:$ac_tool_warned in
26049yes:)
26050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26052ac_tool_warned=yes ;;
26053esac
26054 PKGCONFIG=$ac_pt_PKGCONFIG
26055 fi
26056else
26057 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26058fi
26059
26060 fi
26061
26062 if test "x$PKGCONFIG" != "xno"; then
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26064$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26065 itexists=`
26066 if test -n ""; then
26067 PKG_CONFIG_LIBDIR=""
26068 export PKG_CONFIG_LIBDIR
26069 fi
26070 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26071
26072 if test -z "$itexists"; then
26073 PKGCONFIG="no"
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26075$as_echo "no" >&6; }
26076 else
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26078$as_echo "found" >&6; }
26079 fi
26080 fi
26081
26082 else
26083 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
26085$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
26086 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
26087 PKGTEST="yes"
26088 fi
26089 if test "$PKGTEST" = "yes"; then
26090
26091 if test -n "$PKG_CONFIG"; then
26092 PKGCONFIG="$PKG_CONFIG"
26093 else
26094 if test -n "$ac_tool_prefix"; then
26095 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26096set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26098$as_echo_n "checking for $ac_word... " >&6; }
26099if ${ac_cv_path_PKGCONFIG+:} false; then :
26100 $as_echo_n "(cached) " >&6
26101else
26102 case $PKGCONFIG in
26103 [\\/]* | ?:[\\/]*)
26104 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26105 ;;
26106 *)
26107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26108as_dummy="$PATH:/usr/bin:/usr/local/bin"
26109for as_dir in $as_dummy
26110do
26111 IFS=$as_save_IFS
26112 test -z "$as_dir" && as_dir=.
26113 for ac_exec_ext in '' $ac_executable_extensions; do
26114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26115 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26117 break 2
26118 fi
26119done
26120 done
26121IFS=$as_save_IFS
26122
26123 ;;
26124esac
26125fi
26126PKGCONFIG=$ac_cv_path_PKGCONFIG
26127if test -n "$PKGCONFIG"; then
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26129$as_echo "$PKGCONFIG" >&6; }
26130else
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26132$as_echo "no" >&6; }
26133fi
26134
26135
26136fi
26137if test -z "$ac_cv_path_PKGCONFIG"; then
26138 ac_pt_PKGCONFIG=$PKGCONFIG
26139 # Extract the first word of "pkg-config", so it can be a program name with args.
26140set dummy pkg-config; ac_word=$2
26141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26142$as_echo_n "checking for $ac_word... " >&6; }
26143if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26144 $as_echo_n "(cached) " >&6
26145else
26146 case $ac_pt_PKGCONFIG in
26147 [\\/]* | ?:[\\/]*)
26148 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26149 ;;
26150 *)
26151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26152as_dummy="$PATH:/usr/bin:/usr/local/bin"
26153for as_dir in $as_dummy
26154do
26155 IFS=$as_save_IFS
26156 test -z "$as_dir" && as_dir=.
26157 for ac_exec_ext in '' $ac_executable_extensions; do
26158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26159 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26161 break 2
26162 fi
26163done
26164 done
26165IFS=$as_save_IFS
26166
26167 ;;
26168esac
26169fi
26170ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26171if test -n "$ac_pt_PKGCONFIG"; then
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26173$as_echo "$ac_pt_PKGCONFIG" >&6; }
26174else
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176$as_echo "no" >&6; }
26177fi
26178
26179 if test "x$ac_pt_PKGCONFIG" = x; then
26180 PKGCONFIG="no"
26181 else
26182 case $cross_compiling:$ac_tool_warned in
26183yes:)
26184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26186ac_tool_warned=yes ;;
26187esac
26188 PKGCONFIG=$ac_pt_PKGCONFIG
26189 fi
26190else
26191 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26192fi
26193
26194 fi
26195
26196 if test "x$PKGCONFIG" != "xno"; then
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26198$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26199 itexists=`
26200 if test -n "$LIBMETALINK_PCDIR"; then
26201 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26202 export PKG_CONFIG_LIBDIR
26203 fi
26204 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26205
26206 if test -z "$itexists"; then
26207 PKGCONFIG="no"
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26209$as_echo "no" >&6; }
26210 else
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26212$as_echo "found" >&6; }
26213 fi
26214 fi
26215
26216 fi
26217 fi
26218 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26219 addlib=`
26220 if test -n "$LIBMETALINK_PCDIR"; then
26221 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26222 export PKG_CONFIG_LIBDIR
26223 fi
26224 $PKGCONFIG --libs-only-l libmetalink`
26225 addld=`
26226 if test -n "$LIBMETALINK_PCDIR"; then
26227 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26228 export PKG_CONFIG_LIBDIR
26229 fi
26230 $PKGCONFIG --libs-only-L libmetalink`
26231 addcflags=`
26232 if test -n "$LIBMETALINK_PCDIR"; then
26233 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26234 export PKG_CONFIG_LIBDIR
26235 fi
26236 $PKGCONFIG --cflags-only-I libmetalink`
26237 version=`
26238 if test -n "$LIBMETALINK_PCDIR"; then
26239 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26240 export PKG_CONFIG_LIBDIR
26241 fi
26242 $PKGCONFIG --modversion libmetalink`
26243 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26244 fi
26245 if test -n "$addlib"; then
26246
26247 clean_CPPFLAGS="$CPPFLAGS"
26248 clean_LDFLAGS="$LDFLAGS"
26249 clean_LIBS="$LIBS"
26250 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26251 LDFLAGS="$clean_LDFLAGS $addld"
26252 LIBS="$addlib $clean_LIBS"
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26254$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256/* end confdefs.h. */
26257
26258
26259# include <metalink/metalink.h>
26260
26261int main (void)
26262{
26263
26264 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26265 return 1;
26266
26267 ;
26268 return 0;
26269}
26270
26271_ACEOF
26272if ac_fn_c_try_link "$LINENO"; then :
26273
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26275$as_echo "yes ($version)" >&6; }
26276 want_metalink="yes"
26277
26278else
26279
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26281$as_echo "no ($version)" >&6; }
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26283$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26284 want_metalink="no"
26285
26286fi
26287rm -f core conftest.err conftest.$ac_objext \
26288 conftest$ac_exeext conftest.$ac_ext
26289 CPPFLAGS="$clean_CPPFLAGS"
26290 LDFLAGS="$clean_LDFLAGS"
26291 LIBS="$clean_LIBS"
26292 if test "$want_metalink" = "yes"; then
26293
26294$as_echo "#define USE_METALINK 1" >>confdefs.h
26295
26296 LIBMETALINK_LIBS=$addlib
26297 LIBMETALINK_LDFLAGS=$addld
26298 LIBMETALINK_CPPFLAGS=$addcflags
26299
26300
26301
26302 curl_mtlnk_msg="enabled"
26303 fi
26304
26305 fi
26306fi
26307
26308
26309OPT_LIBSSH2=off
26310
26311# Check whether --with-libssh2 was given.
26312if test "${with_libssh2+set}" = set; then :
26313 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026314else
26315 OPT_LIBSSH2=no
26316fi
26317
26318
26319
26320OPT_LIBSSH=off
26321
26322# Check whether --with-libssh was given.
26323if test "${with_libssh+set}" = set; then :
26324 withval=$with_libssh; OPT_LIBSSH=$withval
26325else
26326 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026327fi
26328
26329
26330if test X"$OPT_LIBSSH2" != Xno; then
26331 CLEANLDFLAGS="$LDFLAGS"
26332 CLEANCPPFLAGS="$CPPFLAGS"
26333 CLEANLIBS="$LIBS"
26334
26335 case "$OPT_LIBSSH2" in
26336 yes)
26337
26338 if test -n "$PKG_CONFIG"; then
26339 PKGCONFIG="$PKG_CONFIG"
26340 else
26341 if test -n "$ac_tool_prefix"; then
26342 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26343set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26345$as_echo_n "checking for $ac_word... " >&6; }
26346if ${ac_cv_path_PKGCONFIG+:} false; then :
26347 $as_echo_n "(cached) " >&6
26348else
26349 case $PKGCONFIG in
26350 [\\/]* | ?:[\\/]*)
26351 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26352 ;;
26353 *)
26354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26355as_dummy="$PATH:/usr/bin:/usr/local/bin"
26356for as_dir in $as_dummy
26357do
26358 IFS=$as_save_IFS
26359 test -z "$as_dir" && as_dir=.
26360 for ac_exec_ext in '' $ac_executable_extensions; do
26361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26362 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26364 break 2
26365 fi
26366done
26367 done
26368IFS=$as_save_IFS
26369
26370 ;;
26371esac
26372fi
26373PKGCONFIG=$ac_cv_path_PKGCONFIG
26374if test -n "$PKGCONFIG"; then
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26376$as_echo "$PKGCONFIG" >&6; }
26377else
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379$as_echo "no" >&6; }
26380fi
26381
26382
26383fi
26384if test -z "$ac_cv_path_PKGCONFIG"; then
26385 ac_pt_PKGCONFIG=$PKGCONFIG
26386 # Extract the first word of "pkg-config", so it can be a program name with args.
26387set dummy pkg-config; ac_word=$2
26388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26389$as_echo_n "checking for $ac_word... " >&6; }
26390if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26391 $as_echo_n "(cached) " >&6
26392else
26393 case $ac_pt_PKGCONFIG in
26394 [\\/]* | ?:[\\/]*)
26395 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26396 ;;
26397 *)
26398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26399as_dummy="$PATH:/usr/bin:/usr/local/bin"
26400for as_dir in $as_dummy
26401do
26402 IFS=$as_save_IFS
26403 test -z "$as_dir" && as_dir=.
26404 for ac_exec_ext in '' $ac_executable_extensions; do
26405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26406 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26408 break 2
26409 fi
26410done
26411 done
26412IFS=$as_save_IFS
26413
26414 ;;
26415esac
26416fi
26417ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26418if test -n "$ac_pt_PKGCONFIG"; then
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26420$as_echo "$ac_pt_PKGCONFIG" >&6; }
26421else
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26423$as_echo "no" >&6; }
26424fi
26425
26426 if test "x$ac_pt_PKGCONFIG" = x; then
26427 PKGCONFIG="no"
26428 else
26429 case $cross_compiling:$ac_tool_warned in
26430yes:)
26431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26433ac_tool_warned=yes ;;
26434esac
26435 PKGCONFIG=$ac_pt_PKGCONFIG
26436 fi
26437else
26438 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26439fi
26440
26441 fi
26442
26443 if test "x$PKGCONFIG" != "xno"; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26445$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26446 itexists=`
26447 if test -n ""; then
26448 PKG_CONFIG_LIBDIR=""
26449 export PKG_CONFIG_LIBDIR
26450 fi
26451 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26452
26453 if test -z "$itexists"; then
26454 PKGCONFIG="no"
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26456$as_echo "no" >&6; }
26457 else
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26459$as_echo "found" >&6; }
26460 fi
26461 fi
26462
26463
26464 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026465 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026466 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26467 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26468 version=`$PKGCONFIG --modversion libssh2`
26469 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26470 fi
26471
26472 ;;
26473 off)
26474 ;;
26475 *)
26476 PREFIX_SSH2=$OPT_LIBSSH2
26477 ;;
26478 esac
26479
26480 if test -n "$PREFIX_SSH2"; then
26481 LIB_SSH2="-lssh2"
26482 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26483 CPP_SSH2=-I${PREFIX_SSH2}/include
26484 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26485 fi
26486
26487 LDFLAGS="$LDFLAGS $LD_SSH2"
26488 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26489 LIBS="$LIB_SSH2 $LIBS"
26490
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26492$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26493if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26494 $as_echo_n "(cached) " >&6
26495else
26496 ac_check_lib_save_LIBS=$LIBS
26497LIBS="-lssh2 $LIBS"
26498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26499/* end confdefs.h. */
26500
26501
26502#ifdef __cplusplus
26503extern "C"
26504#endif
26505char libssh2_channel_open_ex ();
26506int main (void)
26507{
26508return libssh2_channel_open_ex ();
26509 ;
26510 return 0;
26511}
26512_ACEOF
26513if ac_fn_c_try_link "$LINENO"; then :
26514 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26515else
26516 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26517fi
26518rm -f core conftest.err conftest.$ac_objext \
26519 conftest$ac_exeext conftest.$ac_ext
26520LIBS=$ac_check_lib_save_LIBS
26521fi
26522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26523$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26524if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26525 cat >>confdefs.h <<_ACEOF
26526#define HAVE_LIBSSH2 1
26527_ACEOF
26528
26529 LIBS="-lssh2 $LIBS"
26530
26531fi
26532
26533
26534 for ac_header in libssh2.h
26535do :
26536 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26537if test "x$ac_cv_header_libssh2_h" = xyes; then :
26538 cat >>confdefs.h <<_ACEOF
26539#define HAVE_LIBSSH2_H 1
26540_ACEOF
26541 curl_ssh_msg="enabled (libSSH2)"
26542 LIBSSH2_ENABLED=1
26543
26544$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26545
26546 USE_LIBSSH2=1
26547
26548
26549fi
26550
26551done
26552
26553
26554 if test X"$OPT_LIBSSH2" != Xoff &&
26555 test "$LIBSSH2_ENABLED" != "1"; then
26556 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26557 fi
26558
26559 if test "$LIBSSH2_ENABLED" = "1"; then
26560 if test -n "$DIR_SSH2"; then
26561
26562 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026563 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26564 export CURL_LIBRARY_PATH
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26566$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026567 fi
26568 fi
26569 else
26570 LDFLAGS=$CLEANLDFLAGS
26571 CPPFLAGS=$CLEANCPPFLAGS
26572 LIBS=$CLEANLIBS
26573 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026574elif test X"$OPT_LIBSSH" != Xno; then
26575 CLEANLDFLAGS="$LDFLAGS"
26576 CLEANCPPFLAGS="$CPPFLAGS"
26577 CLEANLIBS="$LIBS"
26578
26579 case "$OPT_LIBSSH" in
26580 yes)
26581
26582 if test -n "$PKG_CONFIG"; then
26583 PKGCONFIG="$PKG_CONFIG"
26584 else
26585 if test -n "$ac_tool_prefix"; then
26586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26587set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26589$as_echo_n "checking for $ac_word... " >&6; }
26590if ${ac_cv_path_PKGCONFIG+:} false; then :
26591 $as_echo_n "(cached) " >&6
26592else
26593 case $PKGCONFIG in
26594 [\\/]* | ?:[\\/]*)
26595 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26596 ;;
26597 *)
26598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26599as_dummy="$PATH:/usr/bin:/usr/local/bin"
26600for as_dir in $as_dummy
26601do
26602 IFS=$as_save_IFS
26603 test -z "$as_dir" && as_dir=.
26604 for ac_exec_ext in '' $ac_executable_extensions; do
26605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26606 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26608 break 2
26609 fi
26610done
26611 done
26612IFS=$as_save_IFS
26613
26614 ;;
26615esac
26616fi
26617PKGCONFIG=$ac_cv_path_PKGCONFIG
26618if test -n "$PKGCONFIG"; then
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26620$as_echo "$PKGCONFIG" >&6; }
26621else
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26623$as_echo "no" >&6; }
26624fi
26625
26626
26627fi
26628if test -z "$ac_cv_path_PKGCONFIG"; then
26629 ac_pt_PKGCONFIG=$PKGCONFIG
26630 # Extract the first word of "pkg-config", so it can be a program name with args.
26631set dummy pkg-config; ac_word=$2
26632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26633$as_echo_n "checking for $ac_word... " >&6; }
26634if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26635 $as_echo_n "(cached) " >&6
26636else
26637 case $ac_pt_PKGCONFIG in
26638 [\\/]* | ?:[\\/]*)
26639 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26640 ;;
26641 *)
26642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26643as_dummy="$PATH:/usr/bin:/usr/local/bin"
26644for as_dir in $as_dummy
26645do
26646 IFS=$as_save_IFS
26647 test -z "$as_dir" && as_dir=.
26648 for ac_exec_ext in '' $ac_executable_extensions; do
26649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26650 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26652 break 2
26653 fi
26654done
26655 done
26656IFS=$as_save_IFS
26657
26658 ;;
26659esac
26660fi
26661ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26662if test -n "$ac_pt_PKGCONFIG"; then
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26664$as_echo "$ac_pt_PKGCONFIG" >&6; }
26665else
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26667$as_echo "no" >&6; }
26668fi
26669
26670 if test "x$ac_pt_PKGCONFIG" = x; then
26671 PKGCONFIG="no"
26672 else
26673 case $cross_compiling:$ac_tool_warned in
26674yes:)
26675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26677ac_tool_warned=yes ;;
26678esac
26679 PKGCONFIG=$ac_pt_PKGCONFIG
26680 fi
26681else
26682 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26683fi
26684
26685 fi
26686
26687 if test "x$PKGCONFIG" != "xno"; then
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26689$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26690 itexists=`
26691 if test -n ""; then
26692 PKG_CONFIG_LIBDIR=""
26693 export PKG_CONFIG_LIBDIR
26694 fi
26695 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26696
26697 if test -z "$itexists"; then
26698 PKGCONFIG="no"
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26700$as_echo "no" >&6; }
26701 else
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26703$as_echo "found" >&6; }
26704 fi
26705 fi
26706
26707
26708 if test "$PKGCONFIG" != "no" ; then
26709 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26710 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26711 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26712 version=`$PKGCONFIG --modversion libssh`
26713 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26714 fi
26715
26716 ;;
26717 off)
26718 ;;
26719 *)
26720 PREFIX_SSH=$OPT_LIBSSH
26721 ;;
26722 esac
26723
26724 if test -n "$PREFIX_SSH"; then
26725 LIB_SSH="-lssh"
26726 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26727 CPP_SSH=-I${PREFIX_SSH}/include
26728 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26729 fi
26730
26731 LDFLAGS="$LDFLAGS $LD_SSH"
26732 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26733 LIBS="$LIB_SSH $LIBS"
26734
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26736$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26737if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26738 $as_echo_n "(cached) " >&6
26739else
26740 ac_check_lib_save_LIBS=$LIBS
26741LIBS="-lssh $LIBS"
26742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26743/* end confdefs.h. */
26744
26745
26746#ifdef __cplusplus
26747extern "C"
26748#endif
26749char ssh_new ();
26750int main (void)
26751{
26752return ssh_new ();
26753 ;
26754 return 0;
26755}
26756_ACEOF
26757if ac_fn_c_try_link "$LINENO"; then :
26758 ac_cv_lib_ssh_ssh_new=yes
26759else
26760 ac_cv_lib_ssh_ssh_new=no
26761fi
26762rm -f core conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
26764LIBS=$ac_check_lib_save_LIBS
26765fi
26766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26767$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26768if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26769 cat >>confdefs.h <<_ACEOF
26770#define HAVE_LIBSSH 1
26771_ACEOF
26772
26773 LIBS="-lssh $LIBS"
26774
26775fi
26776
26777
26778 for ac_header in libssh/libssh.h
26779do :
26780 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26781if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26782 cat >>confdefs.h <<_ACEOF
26783#define HAVE_LIBSSH_LIBSSH_H 1
26784_ACEOF
26785 curl_ssh_msg="enabled (libSSH)"
26786 LIBSSH_ENABLED=1
26787
26788$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26789
26790 USE_LIBSSH=1
26791
26792
26793fi
26794
26795done
26796
26797
26798 if test X"$OPT_LIBSSH" != Xoff &&
26799 test "$LIBSSH_ENABLED" != "1"; then
26800 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26801 fi
26802
26803 if test "$LIBSSH_ENABLED" = "1"; then
26804 if test -n "$DIR_SSH"; then
26805
26806 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026807 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26808 export CURL_LIBRARY_PATH
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26810$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026811 fi
26812 fi
26813 else
26814 LDFLAGS=$CLEANLDFLAGS
26815 CPPFLAGS=$CLEANCPPFLAGS
26816 LIBS=$CLEANLIBS
26817 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026818fi
26819
26820
26821OPT_LIBRTMP=off
26822
26823# Check whether --with-librtmp was given.
26824if test "${with_librtmp+set}" = set; then :
26825 withval=$with_librtmp; OPT_LIBRTMP=$withval
26826fi
26827
26828
26829if test X"$OPT_LIBRTMP" != Xno; then
26830 CLEANLDFLAGS="$LDFLAGS"
26831 CLEANCPPFLAGS="$CPPFLAGS"
26832 CLEANLIBS="$LIBS"
26833
26834 case "$OPT_LIBRTMP" in
26835 yes)
26836
26837 if test -n "$PKG_CONFIG"; then
26838 PKGCONFIG="$PKG_CONFIG"
26839 else
26840 if test -n "$ac_tool_prefix"; then
26841 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26842set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26844$as_echo_n "checking for $ac_word... " >&6; }
26845if ${ac_cv_path_PKGCONFIG+:} false; then :
26846 $as_echo_n "(cached) " >&6
26847else
26848 case $PKGCONFIG in
26849 [\\/]* | ?:[\\/]*)
26850 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26851 ;;
26852 *)
26853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26854as_dummy="$PATH:/usr/bin:/usr/local/bin"
26855for as_dir in $as_dummy
26856do
26857 IFS=$as_save_IFS
26858 test -z "$as_dir" && as_dir=.
26859 for ac_exec_ext in '' $ac_executable_extensions; do
26860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26861 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26863 break 2
26864 fi
26865done
26866 done
26867IFS=$as_save_IFS
26868
26869 ;;
26870esac
26871fi
26872PKGCONFIG=$ac_cv_path_PKGCONFIG
26873if test -n "$PKGCONFIG"; then
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26875$as_echo "$PKGCONFIG" >&6; }
26876else
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878$as_echo "no" >&6; }
26879fi
26880
26881
26882fi
26883if test -z "$ac_cv_path_PKGCONFIG"; then
26884 ac_pt_PKGCONFIG=$PKGCONFIG
26885 # Extract the first word of "pkg-config", so it can be a program name with args.
26886set dummy pkg-config; ac_word=$2
26887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26888$as_echo_n "checking for $ac_word... " >&6; }
26889if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26890 $as_echo_n "(cached) " >&6
26891else
26892 case $ac_pt_PKGCONFIG in
26893 [\\/]* | ?:[\\/]*)
26894 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26895 ;;
26896 *)
26897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26898as_dummy="$PATH:/usr/bin:/usr/local/bin"
26899for as_dir in $as_dummy
26900do
26901 IFS=$as_save_IFS
26902 test -z "$as_dir" && as_dir=.
26903 for ac_exec_ext in '' $ac_executable_extensions; do
26904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26905 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26907 break 2
26908 fi
26909done
26910 done
26911IFS=$as_save_IFS
26912
26913 ;;
26914esac
26915fi
26916ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26917if test -n "$ac_pt_PKGCONFIG"; then
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26919$as_echo "$ac_pt_PKGCONFIG" >&6; }
26920else
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26922$as_echo "no" >&6; }
26923fi
26924
26925 if test "x$ac_pt_PKGCONFIG" = x; then
26926 PKGCONFIG="no"
26927 else
26928 case $cross_compiling:$ac_tool_warned in
26929yes:)
26930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26932ac_tool_warned=yes ;;
26933esac
26934 PKGCONFIG=$ac_pt_PKGCONFIG
26935 fi
26936else
26937 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26938fi
26939
26940 fi
26941
26942 if test "x$PKGCONFIG" != "xno"; then
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26944$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26945 itexists=`
26946 if test -n ""; then
26947 PKG_CONFIG_LIBDIR=""
26948 export PKG_CONFIG_LIBDIR
26949 fi
26950 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26951
26952 if test -z "$itexists"; then
26953 PKGCONFIG="no"
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26955$as_echo "no" >&6; }
26956 else
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26958$as_echo "found" >&6; }
26959 fi
26960 fi
26961
26962
26963 if test "$PKGCONFIG" != "no" ; then
26964 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26965 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26966 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26967 version=`$PKGCONFIG --modversion librtmp`
26968 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26969 else
26970 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26971 fi
26972
26973 ;;
26974 off)
26975 LIB_RTMP="-lrtmp"
26976 ;;
26977 *)
26978 LIB_RTMP="-lrtmp"
26979 PREFIX_RTMP=$OPT_LIBRTMP
26980 ;;
26981 esac
26982
26983 if test -n "$PREFIX_RTMP"; then
26984 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26985 CPP_RTMP=-I${PREFIX_RTMP}/include
26986 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26987 fi
26988
26989 LDFLAGS="$LDFLAGS $LD_RTMP"
26990 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26991 LIBS="$LIB_RTMP $LIBS"
26992
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26994$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26995if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26996 $as_echo_n "(cached) " >&6
26997else
26998 ac_check_lib_save_LIBS=$LIBS
26999LIBS="-lrtmp $LIBS"
27000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001/* end confdefs.h. */
27002
27003
27004#ifdef __cplusplus
27005extern "C"
27006#endif
27007char RTMP_Init ();
27008int main (void)
27009{
27010return RTMP_Init ();
27011 ;
27012 return 0;
27013}
27014_ACEOF
27015if ac_fn_c_try_link "$LINENO"; then :
27016 ac_cv_lib_rtmp_RTMP_Init=yes
27017else
27018 ac_cv_lib_rtmp_RTMP_Init=no
27019fi
27020rm -f core conftest.err conftest.$ac_objext \
27021 conftest$ac_exeext conftest.$ac_ext
27022LIBS=$ac_check_lib_save_LIBS
27023fi
27024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
27025$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
27026if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
27027
27028 for ac_header in librtmp/rtmp.h
27029do :
27030 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
27031if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
27032 cat >>confdefs.h <<_ACEOF
27033#define HAVE_LIBRTMP_RTMP_H 1
27034_ACEOF
27035 curl_rtmp_msg="enabled (librtmp)"
27036 LIBRTMP_ENABLED=1
27037
27038$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
27039
27040 USE_LIBRTMP=1
27041
27042
27043fi
27044
27045done
27046
27047
27048else
27049 LDFLAGS=$CLEANLDFLAGS
27050 CPPFLAGS=$CLEANCPPFLAGS
27051 LIBS=$CLEANLIBS
27052
27053fi
27054
27055
27056 if test X"$OPT_LIBRTMP" != Xoff &&
27057 test "$LIBRTMP_ENABLED" != "1"; then
27058 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
27059 fi
27060
27061fi
27062
27063
27064versioned_symbols_flavour=
27065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
27066$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
27067# Check whether --enable-versioned-symbols was given.
27068if test "${enable_versioned_symbols+set}" = set; then :
27069 enableval=$enable_versioned_symbols; case "$enableval" in
27070 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27071$as_echo "yes" >&6; }
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
27073$as_echo_n "checking if libraries can be versioned... " >&6; }
27074 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
27075 if test -z "$GLD"; then
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27077$as_echo "no" >&6; }
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
27079$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
27080 else
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27082$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010027083 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
27084 versioned_symbols_flavour="MULTISSL_"
27085 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070027086 versioned_symbols_flavour="OPENSSL_"
27087 elif test "x$GNUTLS_ENABLED" = "x1"; then
27088 versioned_symbols_flavour="GNUTLS_"
27089 elif test "x$NSS_ENABLED" = "x1"; then
27090 versioned_symbols_flavour="NSS_"
27091 elif test "x$POLARSSL_ENABLED" = "x1"; then
27092 versioned_symbols_flavour="POLARSSL_"
27093 elif test "x$CYASSL_ENABLED" = "x1"; then
27094 versioned_symbols_flavour="CYASSL_"
27095 elif test "x$AXTLS_ENABLED" = "x1"; then
27096 versioned_symbols_flavour="AXTLS_"
27097 elif test "x$WINSSL_ENABLED" = "x1"; then
27098 versioned_symbols_flavour="WINSSL_"
27099 elif test "x$DARWINSSL_ENABLED" = "x1"; then
27100 versioned_symbols_flavour="DARWINSSL_"
27101 else
27102 versioned_symbols_flavour=""
27103 fi
27104 versioned_symbols="yes"
27105 fi
27106 ;;
27107
27108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27109$as_echo "no" >&6; }
27110 ;;
27111 esac
27112
27113else
27114
27115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27116$as_echo "no" >&6; }
27117
27118
27119fi
27120
27121
27122CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27123
27124 if test "x$versioned_symbols" = 'xyes'; then
27125 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27126 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27127else
27128 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27129 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27130fi
27131
27132
27133
27134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27135$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27136OPT_WINIDN="default"
27137
27138# Check whether --with-winidn was given.
27139if test "${with_winidn+set}" = set; then :
27140 withval=$with_winidn; OPT_WINIDN=$withval
27141fi
27142
27143case "$OPT_WINIDN" in
27144 no|default)
27145 want_winidn="no"
27146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27147$as_echo "no" >&6; }
27148 ;;
27149 yes)
27150 want_winidn="yes"
27151 want_winidn_path="default"
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27153$as_echo "yes" >&6; }
27154 ;;
27155 *)
27156 want_winidn="yes"
27157 want_winidn_path="$withval"
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27159$as_echo "yes ($withval)" >&6; }
27160 ;;
27161esac
27162
27163if test "$want_winidn" = "yes"; then
27164 clean_CPPFLAGS="$CPPFLAGS"
27165 clean_LDFLAGS="$LDFLAGS"
27166 clean_LIBS="$LIBS"
27167 WINIDN_LIBS="-lnormaliz"
27168 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27169 #
27170 if test "$want_winidn_path" != "default"; then
27171 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27172 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27173 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27174 fi
27175 #
27176 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27177 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27178 LIBS="$WINIDN_LIBS $LIBS"
27179 #
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27181$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27183/* end confdefs.h. */
27184
27185
27186 #include <windows.h>
27187
27188int main (void)
27189{
27190
27191 IdnToUnicode(0, NULL, 0, NULL, 0);
27192
27193 ;
27194 return 0;
27195}
27196
27197_ACEOF
27198if ac_fn_c_try_link "$LINENO"; then :
27199
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27201$as_echo "yes" >&6; }
27202 tst_links_winidn="yes"
27203
27204else
27205
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27207$as_echo "no" >&6; }
27208 tst_links_winidn="no"
27209
27210fi
27211rm -f core conftest.err conftest.$ac_objext \
27212 conftest$ac_exeext conftest.$ac_ext
27213 #
27214 if test "$tst_links_winidn" = "yes"; then
27215
27216$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27217
27218
27219$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27220
27221 IDN_ENABLED=1
27222
27223 curl_idn_msg="enabled (Windows-native)"
27224 else
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27226$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27227 CPPFLAGS="$clean_CPPFLAGS"
27228 LDFLAGS="$clean_LDFLAGS"
27229 LIBS="$clean_LIBS"
27230 fi
27231fi
27232
27233
27234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27235$as_echo_n "checking whether to build with libidn2... " >&6; }
27236OPT_IDN="default"
27237
27238# Check whether --with-libidn2 was given.
27239if test "${with_libidn2+set}" = set; then :
27240 withval=$with_libidn2; OPT_IDN=$withval
27241fi
27242
27243case "$OPT_IDN" in
27244 no)
27245 want_idn="no"
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27247$as_echo "no" >&6; }
27248 ;;
27249 default)
27250 want_idn="yes"
27251 want_idn_path="default"
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27253$as_echo "(assumed) yes" >&6; }
27254 ;;
27255 yes)
27256 want_idn="yes"
27257 want_idn_path="default"
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27259$as_echo "yes" >&6; }
27260 ;;
27261 *)
27262 want_idn="yes"
27263 want_idn_path="$withval"
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27265$as_echo "yes ($withval)" >&6; }
27266 ;;
27267esac
27268
27269if test "$want_idn" = "yes"; then
27270 clean_CPPFLAGS="$CPPFLAGS"
27271 clean_LDFLAGS="$LDFLAGS"
27272 clean_LIBS="$LIBS"
27273 PKGCONFIG="no"
27274 #
27275 if test "$want_idn_path" != "default"; then
27276 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27277
27278 if test -n "$PKG_CONFIG"; then
27279 PKGCONFIG="$PKG_CONFIG"
27280 else
27281 if test -n "$ac_tool_prefix"; then
27282 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27283set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27285$as_echo_n "checking for $ac_word... " >&6; }
27286if ${ac_cv_path_PKGCONFIG+:} false; then :
27287 $as_echo_n "(cached) " >&6
27288else
27289 case $PKGCONFIG in
27290 [\\/]* | ?:[\\/]*)
27291 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27292 ;;
27293 *)
27294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27295as_dummy="$PATH:/usr/bin:/usr/local/bin"
27296for as_dir in $as_dummy
27297do
27298 IFS=$as_save_IFS
27299 test -z "$as_dir" && as_dir=.
27300 for ac_exec_ext in '' $ac_executable_extensions; do
27301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27302 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27304 break 2
27305 fi
27306done
27307 done
27308IFS=$as_save_IFS
27309
27310 ;;
27311esac
27312fi
27313PKGCONFIG=$ac_cv_path_PKGCONFIG
27314if test -n "$PKGCONFIG"; then
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27316$as_echo "$PKGCONFIG" >&6; }
27317else
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27319$as_echo "no" >&6; }
27320fi
27321
27322
27323fi
27324if test -z "$ac_cv_path_PKGCONFIG"; then
27325 ac_pt_PKGCONFIG=$PKGCONFIG
27326 # Extract the first word of "pkg-config", so it can be a program name with args.
27327set dummy pkg-config; ac_word=$2
27328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27329$as_echo_n "checking for $ac_word... " >&6; }
27330if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27331 $as_echo_n "(cached) " >&6
27332else
27333 case $ac_pt_PKGCONFIG in
27334 [\\/]* | ?:[\\/]*)
27335 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27336 ;;
27337 *)
27338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27339as_dummy="$PATH:/usr/bin:/usr/local/bin"
27340for as_dir in $as_dummy
27341do
27342 IFS=$as_save_IFS
27343 test -z "$as_dir" && as_dir=.
27344 for ac_exec_ext in '' $ac_executable_extensions; do
27345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27346 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27348 break 2
27349 fi
27350done
27351 done
27352IFS=$as_save_IFS
27353
27354 ;;
27355esac
27356fi
27357ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27358if test -n "$ac_pt_PKGCONFIG"; then
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27360$as_echo "$ac_pt_PKGCONFIG" >&6; }
27361else
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27363$as_echo "no" >&6; }
27364fi
27365
27366 if test "x$ac_pt_PKGCONFIG" = x; then
27367 PKGCONFIG="no"
27368 else
27369 case $cross_compiling:$ac_tool_warned in
27370yes:)
27371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27373ac_tool_warned=yes ;;
27374esac
27375 PKGCONFIG=$ac_pt_PKGCONFIG
27376 fi
27377else
27378 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27379fi
27380
27381 fi
27382
27383 if test "x$PKGCONFIG" != "xno"; then
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27385$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27386 itexists=`
27387 if test -n "$IDN_PCDIR"; then
27388 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27389 export PKG_CONFIG_LIBDIR
27390 fi
27391 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27392
27393 if test -z "$itexists"; then
27394 PKGCONFIG="no"
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27396$as_echo "no" >&6; }
27397 else
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27399$as_echo "found" >&6; }
27400 fi
27401 fi
27402
27403 if test "$PKGCONFIG" != "no"; then
27404 IDN_LIBS=`
27405 if test -n "$IDN_PCDIR"; then
27406 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27407 export PKG_CONFIG_LIBDIR
27408 fi
27409 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27410 IDN_LDFLAGS=`
27411 if test -n "$IDN_PCDIR"; then
27412 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27413 export PKG_CONFIG_LIBDIR
27414 fi
27415 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27416 IDN_CPPFLAGS=`
27417 if test -n "$IDN_PCDIR"; then
27418 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27419 export PKG_CONFIG_LIBDIR
27420 fi
27421 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27422 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27423 else
27424 IDN_LIBS="-lidn2"
27425 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27426 IDN_CPPFLAGS="-I$want_idn_path/include"
27427 IDN_DIR="$want_idn_path/lib$libsuff"
27428 fi
27429 else
27430
27431 if test -n "$PKG_CONFIG"; then
27432 PKGCONFIG="$PKG_CONFIG"
27433 else
27434 if test -n "$ac_tool_prefix"; then
27435 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27436set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27438$as_echo_n "checking for $ac_word... " >&6; }
27439if ${ac_cv_path_PKGCONFIG+:} false; then :
27440 $as_echo_n "(cached) " >&6
27441else
27442 case $PKGCONFIG in
27443 [\\/]* | ?:[\\/]*)
27444 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27445 ;;
27446 *)
27447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27448as_dummy="$PATH:/usr/bin:/usr/local/bin"
27449for as_dir in $as_dummy
27450do
27451 IFS=$as_save_IFS
27452 test -z "$as_dir" && as_dir=.
27453 for ac_exec_ext in '' $ac_executable_extensions; do
27454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27455 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27457 break 2
27458 fi
27459done
27460 done
27461IFS=$as_save_IFS
27462
27463 ;;
27464esac
27465fi
27466PKGCONFIG=$ac_cv_path_PKGCONFIG
27467if test -n "$PKGCONFIG"; then
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27469$as_echo "$PKGCONFIG" >&6; }
27470else
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27472$as_echo "no" >&6; }
27473fi
27474
27475
27476fi
27477if test -z "$ac_cv_path_PKGCONFIG"; then
27478 ac_pt_PKGCONFIG=$PKGCONFIG
27479 # Extract the first word of "pkg-config", so it can be a program name with args.
27480set dummy pkg-config; ac_word=$2
27481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27482$as_echo_n "checking for $ac_word... " >&6; }
27483if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27484 $as_echo_n "(cached) " >&6
27485else
27486 case $ac_pt_PKGCONFIG in
27487 [\\/]* | ?:[\\/]*)
27488 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27489 ;;
27490 *)
27491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27492as_dummy="$PATH:/usr/bin:/usr/local/bin"
27493for as_dir in $as_dummy
27494do
27495 IFS=$as_save_IFS
27496 test -z "$as_dir" && as_dir=.
27497 for ac_exec_ext in '' $ac_executable_extensions; do
27498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27499 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27501 break 2
27502 fi
27503done
27504 done
27505IFS=$as_save_IFS
27506
27507 ;;
27508esac
27509fi
27510ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27511if test -n "$ac_pt_PKGCONFIG"; then
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27513$as_echo "$ac_pt_PKGCONFIG" >&6; }
27514else
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27516$as_echo "no" >&6; }
27517fi
27518
27519 if test "x$ac_pt_PKGCONFIG" = x; then
27520 PKGCONFIG="no"
27521 else
27522 case $cross_compiling:$ac_tool_warned in
27523yes:)
27524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27526ac_tool_warned=yes ;;
27527esac
27528 PKGCONFIG=$ac_pt_PKGCONFIG
27529 fi
27530else
27531 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27532fi
27533
27534 fi
27535
27536 if test "x$PKGCONFIG" != "xno"; then
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27538$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27539 itexists=`
27540 if test -n ""; then
27541 PKG_CONFIG_LIBDIR=""
27542 export PKG_CONFIG_LIBDIR
27543 fi
27544 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27545
27546 if test -z "$itexists"; then
27547 PKGCONFIG="no"
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27549$as_echo "no" >&6; }
27550 else
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27552$as_echo "found" >&6; }
27553 fi
27554 fi
27555
27556 if test "$PKGCONFIG" != "no"; then
27557 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27558 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27559 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27560 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27561 else
27562 IDN_LIBS="-lidn2"
27563 fi
27564 fi
27565 #
27566 if test "$PKGCONFIG" != "no"; then
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27568$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27570$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27572$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27574$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27575 else
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27577$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27579$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27581$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27583$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27584 fi
27585 #
27586 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27587 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27588 LIBS="$IDN_LIBS $LIBS"
27589 #
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27591$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27593/* end confdefs.h. */
27594
27595
27596#define idn2_lookup_ul innocuous_idn2_lookup_ul
27597#ifdef __STDC__
27598# include <limits.h>
27599#else
27600# include <assert.h>
27601#endif
27602#undef idn2_lookup_ul
27603#ifdef __cplusplus
27604extern "C"
27605#endif
27606char idn2_lookup_ul ();
27607#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27608choke me
27609#endif
27610
27611int main (void)
27612{
27613return idn2_lookup_ul ();
27614 ;
27615 return 0;
27616}
27617
27618_ACEOF
27619if ac_fn_c_try_link "$LINENO"; then :
27620
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27622$as_echo "yes" >&6; }
27623 tst_links_libidn="yes"
27624
27625else
27626
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27628$as_echo "no" >&6; }
27629 tst_links_libidn="no"
27630
27631fi
27632rm -f core conftest.err conftest.$ac_objext \
27633 conftest$ac_exeext conftest.$ac_ext
27634 #
27635 for ac_header in idn2.h
27636do :
27637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27638ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27640 cat >>confdefs.h <<_ACEOF
27641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27642_ACEOF
27643
27644fi
27645
27646done
27647
27648
27649 if test "$tst_links_libidn" = "yes"; then
27650
27651$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27652
27653
27654 IDN_ENABLED=1
27655
27656 curl_idn_msg="enabled (libidn2)"
27657 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027658 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27659 export CURL_LIBRARY_PATH
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27661$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027662 fi
27663 else
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27665$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27666 CPPFLAGS="$clean_CPPFLAGS"
27667 LDFLAGS="$clean_LDFLAGS"
27668 LIBS="$clean_LIBS"
27669 fi
27670fi
27671
27672
27673
27674
27675
27676OPT_H2="yes"
27677
27678if test "x$disable_http" = "xyes"; then
27679 # without HTTP, nghttp2 is no use
27680 OPT_H2="no"
27681fi
27682
27683
27684# Check whether --with-nghttp2 was given.
27685if test "${with_nghttp2+set}" = set; then :
27686 withval=$with_nghttp2; OPT_H2=$withval
27687fi
27688
27689case "$OPT_H2" in
27690 no)
27691 want_h2="no"
27692 ;;
27693 yes)
27694 want_h2="default"
27695 want_h2_path=""
27696 ;;
27697 *)
27698 want_h2="yes"
27699 want_h2_path="$withval/lib/pkgconfig"
27700 ;;
27701esac
27702
27703curl_h2_msg="disabled (--with-nghttp2)"
27704if test X"$want_h2" != Xno; then
27705 CLEANLDFLAGS="$LDFLAGS"
27706 CLEANCPPFLAGS="$CPPFLAGS"
27707 CLEANLIBS="$LIBS"
27708
27709
27710 if test -n "$PKG_CONFIG"; then
27711 PKGCONFIG="$PKG_CONFIG"
27712 else
27713 if test -n "$ac_tool_prefix"; then
27714 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27715set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27717$as_echo_n "checking for $ac_word... " >&6; }
27718if ${ac_cv_path_PKGCONFIG+:} false; then :
27719 $as_echo_n "(cached) " >&6
27720else
27721 case $PKGCONFIG in
27722 [\\/]* | ?:[\\/]*)
27723 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27724 ;;
27725 *)
27726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27727as_dummy="$PATH:/usr/bin:/usr/local/bin"
27728for as_dir in $as_dummy
27729do
27730 IFS=$as_save_IFS
27731 test -z "$as_dir" && as_dir=.
27732 for ac_exec_ext in '' $ac_executable_extensions; do
27733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27734 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27736 break 2
27737 fi
27738done
27739 done
27740IFS=$as_save_IFS
27741
27742 ;;
27743esac
27744fi
27745PKGCONFIG=$ac_cv_path_PKGCONFIG
27746if test -n "$PKGCONFIG"; then
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27748$as_echo "$PKGCONFIG" >&6; }
27749else
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27751$as_echo "no" >&6; }
27752fi
27753
27754
27755fi
27756if test -z "$ac_cv_path_PKGCONFIG"; then
27757 ac_pt_PKGCONFIG=$PKGCONFIG
27758 # Extract the first word of "pkg-config", so it can be a program name with args.
27759set dummy pkg-config; ac_word=$2
27760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27761$as_echo_n "checking for $ac_word... " >&6; }
27762if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27763 $as_echo_n "(cached) " >&6
27764else
27765 case $ac_pt_PKGCONFIG in
27766 [\\/]* | ?:[\\/]*)
27767 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27768 ;;
27769 *)
27770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27771as_dummy="$PATH:/usr/bin:/usr/local/bin"
27772for as_dir in $as_dummy
27773do
27774 IFS=$as_save_IFS
27775 test -z "$as_dir" && as_dir=.
27776 for ac_exec_ext in '' $ac_executable_extensions; do
27777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27778 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27780 break 2
27781 fi
27782done
27783 done
27784IFS=$as_save_IFS
27785
27786 ;;
27787esac
27788fi
27789ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27790if test -n "$ac_pt_PKGCONFIG"; then
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27792$as_echo "$ac_pt_PKGCONFIG" >&6; }
27793else
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27795$as_echo "no" >&6; }
27796fi
27797
27798 if test "x$ac_pt_PKGCONFIG" = x; then
27799 PKGCONFIG="no"
27800 else
27801 case $cross_compiling:$ac_tool_warned in
27802yes:)
27803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27805ac_tool_warned=yes ;;
27806esac
27807 PKGCONFIG=$ac_pt_PKGCONFIG
27808 fi
27809else
27810 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27811fi
27812
27813 fi
27814
27815 if test "x$PKGCONFIG" != "xno"; then
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27817$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27818 itexists=`
27819 if test -n "$want_h2_path"; then
27820 PKG_CONFIG_LIBDIR="$want_h2_path"
27821 export PKG_CONFIG_LIBDIR
27822 fi
27823 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27824
27825 if test -z "$itexists"; then
27826 PKGCONFIG="no"
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27828$as_echo "no" >&6; }
27829 else
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27831$as_echo "found" >&6; }
27832 fi
27833 fi
27834
27835
27836 if test "$PKGCONFIG" != "no" ; then
27837 LIB_H2=`
27838 if test -n "$want_h2_path"; then
27839 PKG_CONFIG_LIBDIR="$want_h2_path"
27840 export PKG_CONFIG_LIBDIR
27841 fi
27842
27843 $PKGCONFIG --libs-only-l libnghttp2`
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27845$as_echo "$as_me: -l is $LIB_H2" >&6;}
27846
27847 CPP_H2=`
27848 if test -n "$want_h2_path"; then
27849 PKG_CONFIG_LIBDIR="$want_h2_path"
27850 export PKG_CONFIG_LIBDIR
27851 fi
27852 $PKGCONFIG --cflags-only-I libnghttp2`
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27854$as_echo "$as_me: -I is $CPP_H2" >&6;}
27855
27856 LD_H2=`
27857 if test -n "$want_h2_path"; then
27858 PKG_CONFIG_LIBDIR="$want_h2_path"
27859 export PKG_CONFIG_LIBDIR
27860 fi
27861
27862 $PKGCONFIG --libs-only-L libnghttp2`
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27864$as_echo "$as_me: -L is $LD_H2" >&6;}
27865
27866 LDFLAGS="$LDFLAGS $LD_H2"
27867 CPPFLAGS="$CPPFLAGS $CPP_H2"
27868 LIBS="$LIB_H2 $LIBS"
27869
27870 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27871 # >= 1.0.0
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27873$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27874if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27875 $as_echo_n "(cached) " >&6
27876else
27877 ac_check_lib_save_LIBS=$LIBS
27878LIBS="-lnghttp2 $LIBS"
27879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27880/* end confdefs.h. */
27881
27882
27883#ifdef __cplusplus
27884extern "C"
27885#endif
27886char nghttp2_option_set_no_recv_client_magic ();
27887int main (void)
27888{
27889return nghttp2_option_set_no_recv_client_magic ();
27890 ;
27891 return 0;
27892}
27893_ACEOF
27894if ac_fn_c_try_link "$LINENO"; then :
27895 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27896else
27897 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27898fi
27899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
27901LIBS=$ac_check_lib_save_LIBS
27902fi
27903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27904$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27905if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27906
27907 for ac_header in nghttp2/nghttp2.h
27908do :
27909 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27910if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27911 cat >>confdefs.h <<_ACEOF
27912#define HAVE_NGHTTP2_NGHTTP2_H 1
27913_ACEOF
27914 curl_h2_msg="enabled (nghttp2)"
27915 NGHTTP2_ENABLED=1
27916
27917$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27918
27919 USE_NGHTTP2=1
27920
27921
27922fi
27923
27924done
27925
27926
27927else
27928 LDFLAGS=$CLEANLDFLAGS
27929 CPPFLAGS=$CLEANCPPFLAGS
27930 LIBS=$CLEANLIBS
27931
27932fi
27933
27934
27935 else
27936 if test X"$want_h2" != Xdefault; then
27937 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27938 fi
27939 fi
27940
27941fi
27942
27943
27944OPT_ZSH_FPATH=default
27945
27946# Check whether --with-zsh-functions-dir was given.
27947if test "${with_zsh_functions_dir+set}" = set; then :
27948 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27949fi
27950
27951case "$OPT_ZSH_FPATH" in
27952 no)
27953 ;;
27954 default|yes)
27955 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27956
27957 ;;
27958 *)
27959 ZSH_FUNCTIONS_DIR="$withval"
27960
27961 ;;
27962esac
27963
27964
27965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27966$as_echo_n "checking for ANSI C header files... " >&6; }
27967if ${ac_cv_header_stdc+:} false; then :
27968 $as_echo_n "(cached) " >&6
27969else
27970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27971/* end confdefs.h. */
27972#include <stdlib.h>
27973#include <stdarg.h>
27974#include <string.h>
27975#include <float.h>
27976
27977int main (void)
27978{
27979
27980 ;
27981 return 0;
27982}
27983_ACEOF
27984if ac_fn_c_try_compile "$LINENO"; then :
27985 ac_cv_header_stdc=yes
27986else
27987 ac_cv_header_stdc=no
27988fi
27989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990
27991if test $ac_cv_header_stdc = yes; then
27992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994/* end confdefs.h. */
27995#include <string.h>
27996
27997_ACEOF
27998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999 $EGREP "memchr" >/dev/null 2>&1; then :
28000
28001else
28002 ac_cv_header_stdc=no
28003fi
28004rm -f conftest*
28005
28006fi
28007
28008if test $ac_cv_header_stdc = yes; then
28009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28011/* end confdefs.h. */
28012#include <stdlib.h>
28013
28014_ACEOF
28015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28016 $EGREP "free" >/dev/null 2>&1; then :
28017
28018else
28019 ac_cv_header_stdc=no
28020fi
28021rm -f conftest*
28022
28023fi
28024
28025if test $ac_cv_header_stdc = yes; then
28026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28027 if test "$cross_compiling" = yes; then :
28028 :
28029else
28030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28031/* end confdefs.h. */
28032#include <ctype.h>
28033#include <stdlib.h>
28034#if ((' ' & 0x0FF) == 0x020)
28035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28037#else
28038# define ISLOWER(c) \
28039 (('a' <= (c) && (c) <= 'i') \
28040 || ('j' <= (c) && (c) <= 'r') \
28041 || ('s' <= (c) && (c) <= 'z'))
28042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28043#endif
28044
28045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28046int
28047main ()
28048{
28049 int i;
28050 for (i = 0; i < 256; i++)
28051 if (XOR (islower (i), ISLOWER (i))
28052 || toupper (i) != TOUPPER (i))
28053 return 2;
28054 return 0;
28055}
28056_ACEOF
28057if ac_fn_c_try_run "$LINENO"; then :
28058
28059else
28060 ac_cv_header_stdc=no
28061fi
28062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28063 conftest.$ac_objext conftest.beam conftest.$ac_ext
28064fi
28065
28066fi
28067fi
28068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
28069$as_echo "$ac_cv_header_stdc" >&6; }
28070if test $ac_cv_header_stdc = yes; then
28071
28072$as_echo "#define STDC_HEADERS 1" >>confdefs.h
28073
28074fi
28075
28076
28077
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
28079$as_echo_n "checking for malloc.h... " >&6; }
28080if ${curl_cv_header_malloc_h+:} false; then :
28081 $as_echo_n "(cached) " >&6
28082else
28083
28084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28085/* end confdefs.h. */
28086
28087
28088#include <malloc.h>
28089
28090int main (void)
28091{
28092
28093 void *p = malloc(10);
28094 void *q = calloc(10,10);
28095 free(p);
28096 free(q);
28097
28098 ;
28099 return 0;
28100}
28101
28102_ACEOF
28103if ac_fn_c_try_compile "$LINENO"; then :
28104
28105 curl_cv_header_malloc_h="yes"
28106
28107else
28108
28109 curl_cv_header_malloc_h="no"
28110
28111fi
28112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113
28114fi
28115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28116$as_echo "$curl_cv_header_malloc_h" >&6; }
28117 if test "$curl_cv_header_malloc_h" = "yes"; then
28118
28119cat >>confdefs.h <<_ACEOF
28120#define HAVE_MALLOC_H 1
28121_ACEOF
28122
28123 #
28124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125/* end confdefs.h. */
28126
28127
28128#include <stdlib.h>
28129
28130int main (void)
28131{
28132
28133 void *p = malloc(10);
28134 void *q = calloc(10,10);
28135 free(p);
28136 free(q);
28137
28138 ;
28139 return 0;
28140}
28141
28142_ACEOF
28143if ac_fn_c_try_compile "$LINENO"; then :
28144
28145 curl_cv_need_header_malloc_h="no"
28146
28147else
28148
28149 curl_cv_need_header_malloc_h="yes"
28150
28151fi
28152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28153 #
28154 case "$curl_cv_need_header_malloc_h" in
28155 yes)
28156
28157cat >>confdefs.h <<_ACEOF
28158#define NEED_MALLOC_H 1
28159_ACEOF
28160
28161 ;;
28162 esac
28163 fi
28164
28165
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28167$as_echo_n "checking for memory.h... " >&6; }
28168if ${curl_cv_header_memory_h+:} false; then :
28169 $as_echo_n "(cached) " >&6
28170else
28171
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173/* end confdefs.h. */
28174
28175
28176#include <memory.h>
28177
28178int main (void)
28179{
28180
28181 void *p = malloc(10);
28182 void *q = calloc(10,10);
28183 free(p);
28184 free(q);
28185
28186 ;
28187 return 0;
28188}
28189
28190_ACEOF
28191if ac_fn_c_try_compile "$LINENO"; then :
28192
28193 curl_cv_header_memory_h="yes"
28194
28195else
28196
28197 curl_cv_header_memory_h="no"
28198
28199fi
28200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201
28202fi
28203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28204$as_echo "$curl_cv_header_memory_h" >&6; }
28205 if test "$curl_cv_header_memory_h" = "yes"; then
28206
28207cat >>confdefs.h <<_ACEOF
28208#define HAVE_MEMORY_H 1
28209_ACEOF
28210
28211 #
28212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28213/* end confdefs.h. */
28214
28215
28216#include <stdlib.h>
28217
28218int main (void)
28219{
28220
28221 void *p = malloc(10);
28222 void *q = calloc(10,10);
28223 free(p);
28224 free(q);
28225
28226 ;
28227 return 0;
28228}
28229
28230_ACEOF
28231if ac_fn_c_try_compile "$LINENO"; then :
28232
28233 curl_cv_need_header_memory_h="no"
28234
28235else
28236
28237 curl_cv_need_header_memory_h="yes"
28238
28239fi
28240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241 #
28242 case "$curl_cv_need_header_memory_h" in
28243 yes)
28244
28245cat >>confdefs.h <<_ACEOF
28246#define NEED_MEMORY_H 1
28247_ACEOF
28248
28249 ;;
28250 esac
28251 fi
28252
28253
28254for ac_header in sys/types.h \
28255 sys/time.h \
28256 sys/select.h \
28257 sys/socket.h \
28258 sys/ioctl.h \
28259 sys/uio.h \
28260 assert.h \
28261 unistd.h \
28262 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028263 arpa/inet.h \
28264 net/if.h \
28265 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028266 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028267 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028268 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028269 netinet/tcp.h \
28270 netdb.h \
28271 sys/sockio.h \
28272 sys/stat.h \
28273 sys/param.h \
28274 termios.h \
28275 termio.h \
28276 sgtty.h \
28277 fcntl.h \
28278 alloca.h \
28279 time.h \
28280 io.h \
28281 pwd.h \
28282 utime.h \
28283 sys/utime.h \
28284 sys/poll.h \
28285 poll.h \
28286 socket.h \
28287 sys/resource.h \
28288 libgen.h \
28289 locale.h \
28290 errno.h \
28291 stdbool.h \
28292 arpa/tftp.h \
28293 sys/filio.h \
28294 sys/wait.h \
28295 setjmp.h
28296do :
28297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28298ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28299#ifdef HAVE_SYS_TYPES_H
28300#include <sys/types.h>
28301#endif
28302#ifdef HAVE_SYS_TIME_H
28303#include <sys/time.h>
28304#endif
28305#ifdef HAVE_SYS_SELECT_H
28306#include <sys/select.h>
28307#endif
28308#ifdef HAVE_SYS_SOCKET_H
28309#include <sys/socket.h>
28310#endif
28311#ifdef HAVE_NETINET_IN_H
28312#include <netinet/in.h>
28313#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028314#ifdef HAVE_NETINET_IN6_H
28315#include <netinet/in6.h>
28316#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028317#ifdef HAVE_SYS_UN_H
28318#include <sys/un.h>
28319#endif
28320
28321
28322"
28323if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28324 cat >>confdefs.h <<_ACEOF
28325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28326_ACEOF
28327
28328fi
28329
28330done
28331
28332
28333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28334$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28335if ${ac_cv_c_const+:} false; then :
28336 $as_echo_n "(cached) " >&6
28337else
28338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28339/* end confdefs.h. */
28340
28341int main (void)
28342{
28343
28344#ifndef __cplusplus
28345 /* Ultrix mips cc rejects this sort of thing. */
28346 typedef int charset[2];
28347 const charset cs = { 0, 0 };
28348 /* SunOS 4.1.1 cc rejects this. */
28349 char const *const *pcpcc;
28350 char **ppc;
28351 /* NEC SVR4.0.2 mips cc rejects this. */
28352 struct point {int x, y;};
28353 static struct point const zero = {0,0};
28354 /* AIX XL C 1.02.0.0 rejects this.
28355 It does not let you subtract one const X* pointer from another in
28356 an arm of an if-expression whose if-part is not a constant
28357 expression */
28358 const char *g = "string";
28359 pcpcc = &g + (g ? g-g : 0);
28360 /* HPUX 7.0 cc rejects these. */
28361 ++pcpcc;
28362 ppc = (char**) pcpcc;
28363 pcpcc = (char const *const *) ppc;
28364 { /* SCO 3.2v4 cc rejects this sort of thing. */
28365 char tx;
28366 char *t = &tx;
28367 char const *s = 0 ? (char *) 0 : (char const *) 0;
28368
28369 *t++ = 0;
28370 if (s) return 0;
28371 }
28372 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28373 int x[] = {25, 17};
28374 const int *foo = &x[0];
28375 ++foo;
28376 }
28377 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28378 typedef const int *iptr;
28379 iptr p = 0;
28380 ++p;
28381 }
28382 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28383 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28384 struct s { int j; const int *ap[3]; } bx;
28385 struct s *b = &bx; b->j = 5;
28386 }
28387 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28388 const int foo = 10;
28389 if (!foo) return 0;
28390 }
28391 return !cs[0] && !zero.x;
28392#endif
28393
28394 ;
28395 return 0;
28396}
28397_ACEOF
28398if ac_fn_c_try_compile "$LINENO"; then :
28399 ac_cv_c_const=yes
28400else
28401 ac_cv_c_const=no
28402fi
28403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28404fi
28405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28406$as_echo "$ac_cv_c_const" >&6; }
28407if test $ac_cv_c_const = no; then
28408
28409$as_echo "#define const /**/" >>confdefs.h
28410
28411fi
28412
28413
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28415$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28416if ${curl_cv_variadic_macros_c99+:} false; then :
28417 $as_echo_n "(cached) " >&6
28418else
28419
28420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28421/* end confdefs.h. */
28422
28423
28424#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28425#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28426 int fun3(int arg1, int arg2, int arg3);
28427 int fun2(int arg1, int arg2);
28428 int fun3(int arg1, int arg2, int arg3)
28429 { return arg1 + arg2 + arg3; }
28430 int fun2(int arg1, int arg2)
28431 { return arg1 + arg2; }
28432
28433int main (void)
28434{
28435
28436 int res3 = c99_vmacro3(1, 2, 3);
28437 int res2 = c99_vmacro2(1, 2);
28438
28439 ;
28440 return 0;
28441}
28442
28443_ACEOF
28444if ac_fn_c_try_compile "$LINENO"; then :
28445
28446 curl_cv_variadic_macros_c99="yes"
28447
28448else
28449
28450 curl_cv_variadic_macros_c99="no"
28451
28452fi
28453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28454
28455fi
28456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28457$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28458 case "$curl_cv_variadic_macros_c99" in
28459 yes)
28460
28461cat >>confdefs.h <<_ACEOF
28462#define HAVE_VARIADIC_MACROS_C99 1
28463_ACEOF
28464
28465 ;;
28466 esac
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28468$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28469if ${curl_cv_variadic_macros_gcc+:} false; then :
28470 $as_echo_n "(cached) " >&6
28471else
28472
28473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28474/* end confdefs.h. */
28475
28476
28477#define gcc_vmacro3(first, args...) fun3(first, args)
28478#define gcc_vmacro2(first, args...) fun2(first, args)
28479 int fun3(int arg1, int arg2, int arg3);
28480 int fun2(int arg1, int arg2);
28481 int fun3(int arg1, int arg2, int arg3)
28482 { return arg1 + arg2 + arg3; }
28483 int fun2(int arg1, int arg2)
28484 { return arg1 + arg2; }
28485
28486int main (void)
28487{
28488
28489 int res3 = gcc_vmacro3(1, 2, 3);
28490 int res2 = gcc_vmacro2(1, 2);
28491
28492 ;
28493 return 0;
28494}
28495
28496_ACEOF
28497if ac_fn_c_try_compile "$LINENO"; then :
28498
28499 curl_cv_variadic_macros_gcc="yes"
28500
28501else
28502
28503 curl_cv_variadic_macros_gcc="no"
28504
28505fi
28506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507
28508fi
28509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28510$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28511 case "$curl_cv_variadic_macros_gcc" in
28512 yes)
28513
28514cat >>confdefs.h <<_ACEOF
28515#define HAVE_VARIADIC_MACROS_GCC 1
28516_ACEOF
28517
28518 ;;
28519 esac
28520
28521ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28522if test "x$ac_cv_type_size_t" = xyes; then :
28523
28524else
28525
28526cat >>confdefs.h <<_ACEOF
28527#define size_t unsigned int
28528_ACEOF
28529
28530fi
28531
28532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28533$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28534if ${ac_cv_header_time+:} false; then :
28535 $as_echo_n "(cached) " >&6
28536else
28537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28538/* end confdefs.h. */
28539#include <sys/types.h>
28540#include <sys/time.h>
28541#include <time.h>
28542
28543int main (void)
28544{
28545if ((struct tm *) 0)
28546return 0;
28547 ;
28548 return 0;
28549}
28550_ACEOF
28551if ac_fn_c_try_compile "$LINENO"; then :
28552 ac_cv_header_time=yes
28553else
28554 ac_cv_header_time=no
28555fi
28556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28557fi
28558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28559$as_echo "$ac_cv_header_time" >&6; }
28560if test $ac_cv_header_time = yes; then
28561
28562$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28563
28564fi
28565
28566
28567 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28568do :
28569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28570ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28572 cat >>confdefs.h <<_ACEOF
28573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28574_ACEOF
28575
28576fi
28577
28578done
28579
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28581$as_echo_n "checking for struct timeval... " >&6; }
28582if ${curl_cv_struct_timeval+:} false; then :
28583 $as_echo_n "(cached) " >&6
28584else
28585
28586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28587/* end confdefs.h. */
28588
28589
28590#undef inline
28591#ifdef HAVE_WINDOWS_H
28592#ifndef WIN32_LEAN_AND_MEAN
28593#define WIN32_LEAN_AND_MEAN
28594#endif
28595#include <windows.h>
28596#ifdef HAVE_WINSOCK2_H
28597#include <winsock2.h>
28598#else
28599#ifdef HAVE_WINSOCK_H
28600#include <winsock.h>
28601#endif
28602#endif
28603#endif
28604#ifdef HAVE_SYS_TYPES_H
28605#include <sys/types.h>
28606#endif
28607#ifdef HAVE_SYS_TIME_H
28608#include <sys/time.h>
28609#ifdef TIME_WITH_SYS_TIME
28610#include <time.h>
28611#endif
28612#else
28613#ifdef HAVE_TIME_H
28614#include <time.h>
28615#endif
28616#endif
28617#ifdef HAVE_SYS_SOCKET_H
28618#include <sys/socket.h>
28619#endif
28620
28621int main (void)
28622{
28623
28624 struct timeval ts;
28625 ts.tv_sec = 0;
28626 ts.tv_usec = 0;
28627
28628 ;
28629 return 0;
28630}
28631
28632_ACEOF
28633if ac_fn_c_try_compile "$LINENO"; then :
28634
28635 curl_cv_struct_timeval="yes"
28636
28637else
28638
28639 curl_cv_struct_timeval="no"
28640
28641fi
28642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28643
28644fi
28645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28646$as_echo "$curl_cv_struct_timeval" >&6; }
28647 case "$curl_cv_struct_timeval" in
28648 yes)
28649
28650cat >>confdefs.h <<_ACEOF
28651#define HAVE_STRUCT_TIMEVAL 1
28652_ACEOF
28653
28654 ;;
28655 esac
28656
28657
28658
28659 if test "x$cross_compiling" != xyes; then
28660
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28662$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028663
28664
28665 old=$LD_LIBRARY_PATH
28666 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28667 export LD_LIBRARY_PATH
28668 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28671as_fn_error $? "cannot run test program while cross compiling
28672See \`config.log' for more details" "$LINENO" 5; }
28673else
28674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28675/* end confdefs.h. */
28676
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028677int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028678{
28679 return 0;
28680}
28681
28682_ACEOF
28683if ac_fn_c_try_run "$LINENO"; then :
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28685$as_echo "fine" >&6; }
28686else
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28688$as_echo "failed" >&6; }
28689 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28690
28691fi
28692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28693 conftest.$ac_objext conftest.beam conftest.$ac_ext
28694fi
28695
Elliott Hughes72d948d2018-08-03 14:37:21 -070028696 LD_LIBRARY_PATH=$old # restore
28697
Elliott Hughes82be86d2017-09-20 17:00:17 -070028698
28699 fi
28700
28701
Elliott Hughes82be86d2017-09-20 17:00:17 -070028702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28703$as_echo_n "checking size of size_t... " >&6; }
28704if ${ac_cv_sizeof_size_t+:} false; then :
28705 $as_echo_n "(cached) " >&6
28706else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028707 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028710
Elliott Hughes72d948d2018-08-03 14:37:21 -070028711#include <sys/types.h>
28712
28713
28714int main (void)
28715{
28716switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28717 ;
28718 return 0;
28719}
28720_ACEOF
28721if ac_fn_c_try_compile "$LINENO"; then :
28722 ac_cv_sizeof_size_t=$ac_size
28723fi
28724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28726done
28727
Elliott Hughes82be86d2017-09-20 17:00:17 -070028728fi
28729
Elliott Hughes72d948d2018-08-03 14:37:21 -070028730if test x$ac_cv_sizeof_size_t = x ; then
28731 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028732fi
28733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28734$as_echo "$ac_cv_sizeof_size_t" >&6; }
28735
Elliott Hughes82be86d2017-09-20 17:00:17 -070028736cat >>confdefs.h <<_ACEOF
28737#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28738_ACEOF
28739
28740
Elliott Hughes82be86d2017-09-20 17:00:17 -070028741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28742$as_echo_n "checking size of long... " >&6; }
28743if ${ac_cv_sizeof_long+:} false; then :
28744 $as_echo_n "(cached) " >&6
28745else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028746 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28748/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028749
Elliott Hughes72d948d2018-08-03 14:37:21 -070028750#include <sys/types.h>
28751
28752
28753int main (void)
28754{
28755switch (0) case 0: case (sizeof (long) == $ac_size):;
28756 ;
28757 return 0;
28758}
28759_ACEOF
28760if ac_fn_c_try_compile "$LINENO"; then :
28761 ac_cv_sizeof_long=$ac_size
28762fi
28763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 if test x$ac_cv_sizeof_long != x ; then break; fi
28765done
28766
Elliott Hughes82be86d2017-09-20 17:00:17 -070028767fi
28768
Elliott Hughes72d948d2018-08-03 14:37:21 -070028769if test x$ac_cv_sizeof_long = x ; then
28770 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028771fi
28772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28773$as_echo "$ac_cv_sizeof_long" >&6; }
28774
Elliott Hughes82be86d2017-09-20 17:00:17 -070028775cat >>confdefs.h <<_ACEOF
28776#define SIZEOF_LONG $ac_cv_sizeof_long
28777_ACEOF
28778
28779
Elliott Hughes82be86d2017-09-20 17:00:17 -070028780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28781$as_echo_n "checking size of int... " >&6; }
28782if ${ac_cv_sizeof_int+:} false; then :
28783 $as_echo_n "(cached) " >&6
28784else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028785 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28787/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028788
Elliott Hughes72d948d2018-08-03 14:37:21 -070028789#include <sys/types.h>
28790
28791
28792int main (void)
28793{
28794switch (0) case 0: case (sizeof (int) == $ac_size):;
28795 ;
28796 return 0;
28797}
28798_ACEOF
28799if ac_fn_c_try_compile "$LINENO"; then :
28800 ac_cv_sizeof_int=$ac_size
28801fi
28802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28803 if test x$ac_cv_sizeof_int != x ; then break; fi
28804done
28805
Elliott Hughes82be86d2017-09-20 17:00:17 -070028806fi
28807
Elliott Hughes72d948d2018-08-03 14:37:21 -070028808if test x$ac_cv_sizeof_int = x ; then
28809 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028810fi
28811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28812$as_echo "$ac_cv_sizeof_int" >&6; }
28813
Elliott Hughes82be86d2017-09-20 17:00:17 -070028814cat >>confdefs.h <<_ACEOF
28815#define SIZEOF_INT $ac_cv_sizeof_int
28816_ACEOF
28817
28818
Elliott Hughes82be86d2017-09-20 17:00:17 -070028819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28820$as_echo_n "checking size of short... " >&6; }
28821if ${ac_cv_sizeof_short+:} false; then :
28822 $as_echo_n "(cached) " >&6
28823else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028824 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28826/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028827
Elliott Hughes72d948d2018-08-03 14:37:21 -070028828#include <sys/types.h>
28829
28830
28831int main (void)
28832{
28833switch (0) case 0: case (sizeof (short) == $ac_size):;
28834 ;
28835 return 0;
28836}
28837_ACEOF
28838if ac_fn_c_try_compile "$LINENO"; then :
28839 ac_cv_sizeof_short=$ac_size
28840fi
28841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28842 if test x$ac_cv_sizeof_short != x ; then break; fi
28843done
28844
Elliott Hughes82be86d2017-09-20 17:00:17 -070028845fi
28846
Elliott Hughes72d948d2018-08-03 14:37:21 -070028847if test x$ac_cv_sizeof_short = x ; then
28848 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028849fi
28850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28851$as_echo "$ac_cv_sizeof_short" >&6; }
28852
Elliott Hughes82be86d2017-09-20 17:00:17 -070028853cat >>confdefs.h <<_ACEOF
28854#define SIZEOF_SHORT $ac_cv_sizeof_short
28855_ACEOF
28856
28857
Elliott Hughes82be86d2017-09-20 17:00:17 -070028858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28859$as_echo_n "checking size of time_t... " >&6; }
28860if ${ac_cv_sizeof_time_t+:} false; then :
28861 $as_echo_n "(cached) " >&6
28862else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028863 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28865/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028866
Elliott Hughes72d948d2018-08-03 14:37:21 -070028867#include <sys/types.h>
28868
28869
28870int main (void)
28871{
28872switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28873 ;
28874 return 0;
28875}
28876_ACEOF
28877if ac_fn_c_try_compile "$LINENO"; then :
28878 ac_cv_sizeof_time_t=$ac_size
28879fi
28880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28882done
28883
Elliott Hughes82be86d2017-09-20 17:00:17 -070028884fi
28885
Elliott Hughes72d948d2018-08-03 14:37:21 -070028886if test x$ac_cv_sizeof_time_t = x ; then
28887 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028888fi
28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28890$as_echo "$ac_cv_sizeof_time_t" >&6; }
28891
Elliott Hughes82be86d2017-09-20 17:00:17 -070028892cat >>confdefs.h <<_ACEOF
28893#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28894_ACEOF
28895
28896
Elliott Hughes82be86d2017-09-20 17:00:17 -070028897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28898$as_echo_n "checking size of off_t... " >&6; }
28899if ${ac_cv_sizeof_off_t+:} false; then :
28900 $as_echo_n "(cached) " >&6
28901else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028902 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028905
Elliott Hughes72d948d2018-08-03 14:37:21 -070028906#include <sys/types.h>
28907
28908
28909int main (void)
28910{
28911switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28912 ;
28913 return 0;
28914}
28915_ACEOF
28916if ac_fn_c_try_compile "$LINENO"; then :
28917 ac_cv_sizeof_off_t=$ac_size
28918fi
28919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28920 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28921done
28922
Elliott Hughes82be86d2017-09-20 17:00:17 -070028923fi
28924
Elliott Hughes72d948d2018-08-03 14:37:21 -070028925if test x$ac_cv_sizeof_off_t = x ; then
28926 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028927fi
28928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28929$as_echo "$ac_cv_sizeof_off_t" >&6; }
28930
Elliott Hughes82be86d2017-09-20 17:00:17 -070028931cat >>confdefs.h <<_ACEOF
28932#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28933_ACEOF
28934
28935
28936
Alex Deymo486467e2017-12-19 19:04:07 +010028937o=$CPPFLAGS
28938CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28940$as_echo_n "checking size of curl_off_t... " >&6; }
28941if ${ac_cv_sizeof_curl_off_t+:} false; then :
28942 $as_echo_n "(cached) " >&6
28943else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028944 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28946/* end confdefs.h. */
28947
28948#include <sys/types.h>
28949
Alex Deymo486467e2017-12-19 19:04:07 +010028950#include <curl/system.h>
28951
Alex Deymo486467e2017-12-19 19:04:07 +010028952
Elliott Hughes72d948d2018-08-03 14:37:21 -070028953int main (void)
28954{
28955switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28956 ;
28957 return 0;
28958}
28959_ACEOF
28960if ac_fn_c_try_compile "$LINENO"; then :
28961 ac_cv_sizeof_curl_off_t=$ac_size
28962fi
28963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28965done
28966
Elliott Hughes82be86d2017-09-20 17:00:17 -070028967fi
28968
Elliott Hughes72d948d2018-08-03 14:37:21 -070028969if test x$ac_cv_sizeof_curl_off_t = x ; then
28970 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028971fi
28972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28973$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28974
Alex Deymo486467e2017-12-19 19:04:07 +010028975cat >>confdefs.h <<_ACEOF
28976#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28977_ACEOF
28978
28979
28980CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028981
28982ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28983if test "x$ac_cv_type_long_long" = xyes; then :
28984
28985$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28986
28987 longlong="yes"
28988
28989fi
28990
28991
28992if test "xyes" = "x$longlong"; then
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28994$as_echo_n "checking if numberLL works... " >&6; }
28995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28996/* end confdefs.h. */
28997
28998
28999
29000int main (void)
29001{
29002
29003 long long val = 1000LL;
29004
29005 ;
29006 return 0;
29007}
29008
29009_ACEOF
29010if ac_fn_c_try_compile "$LINENO"; then :
29011
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29013$as_echo "yes" >&6; }
29014
29015$as_echo "#define HAVE_LL 1" >>confdefs.h
29016
29017
29018else
29019
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29021$as_echo "no" >&6; }
29022
29023fi
29024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025fi
29026
29027
29028# check for ssize_t
29029ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
29030if test "x$ac_cv_type_ssize_t" = xyes; then :
29031
29032else
29033
29034$as_echo "#define ssize_t int" >>confdefs.h
29035
29036fi
29037
29038
29039# check for bool type
29040ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
29041#ifdef HAVE_SYS_TYPES_H
29042#include <sys/types.h>
29043#endif
29044#ifdef HAVE_STDBOOL_H
29045#include <stdbool.h>
29046#endif
29047
29048"
29049if test "x$ac_cv_type_bool" = xyes; then :
29050
29051
29052$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
29053
29054
29055fi
29056
29057
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029058# check for sa_family_t
29059ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
29060#ifdef HAVE_SYS_SOCKET_H
29061#include <sys/socket.h>
29062#endif
29063
29064"
29065if test "x$ac_cv_type_sa_family_t" = xyes; then :
29066
29067$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
29068
29069else
29070
29071 # The windows name?
29072 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
29073#ifdef HAVE_SYS_SOCKET_H
29074#include <sys/socket.h>
29075#endif
29076
29077"
29078if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
29079
29080$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
29081
29082else
29083
29084$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
29085
29086fi
29087
29088
29089fi
29090
29091
Elliott Hughescac39802018-04-27 16:19:43 -070029092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
29093$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070029094
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029095
29096 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070029097 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29098 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029099 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29101$as_echo "no" >&6; }
29102
29103else
29104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29105/* end confdefs.h. */
29106
Elliott Hughescac39802018-04-27 16:19:43 -070029107 #include <time.h>
29108 #include <limits.h>
29109 time_t t = -1;
29110 return (t > 0);
29111
29112_ACEOF
29113if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29115$as_echo "yes" >&6; }
29116
29117$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29118
29119
29120else
Elliott Hughescac39802018-04-27 16:19:43 -070029121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29122$as_echo "no" >&6; }
29123
29124fi
29125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29126 conftest.$ac_objext conftest.beam conftest.$ac_ext
29127fi
29128
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029129 LD_LIBRARY_PATH=$old # restore
29130
Elliott Hughescac39802018-04-27 16:19:43 -070029131
Elliott Hughes82be86d2017-09-20 17:00:17 -070029132
Elliott Hughes82be86d2017-09-20 17:00:17 -070029133curl_includes_poll="\
29134/* includes start */
29135#ifdef HAVE_SYS_TYPES_H
29136# include <sys/types.h>
29137#endif
29138#ifdef HAVE_POLL_H
29139# include <poll.h>
29140#endif
29141#ifdef HAVE_SYS_POLL_H
29142# include <sys/poll.h>
29143#endif
29144/* includes end */"
29145 for ac_header in sys/types.h poll.h sys/poll.h
29146do :
29147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29149"
29150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29151 cat >>confdefs.h <<_ACEOF
29152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29153_ACEOF
29154
29155fi
29156
29157done
29158
29159
29160
29161 #
29162 tst_poll_events_macro_defined="unknown"
29163 #
29164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165/* end confdefs.h. */
29166
29167
29168 $curl_includes_poll
29169
29170int main (void)
29171{
29172
29173#if defined(events) || defined(revents)
29174 return 0;
29175#else
29176 force compilation error
29177#endif
29178
29179 ;
29180 return 0;
29181}
29182
29183_ACEOF
29184if ac_fn_c_try_compile "$LINENO"; then :
29185
29186 tst_poll_events_macro_defined="yes"
29187
29188else
29189
29190 tst_poll_events_macro_defined="no"
29191
29192fi
29193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194 #
29195 if test "$tst_poll_events_macro_defined" = "yes"; then
29196 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29197
29198cat >>confdefs.h <<_EOF
29199#define CURL_PULL_SYS_POLL_H 1
29200_EOF
29201
29202 fi
29203 fi
29204 #
29205
29206
29207
29208 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29209#undef inline
29210#ifdef HAVE_WINDOWS_H
29211#ifndef WIN32_LEAN_AND_MEAN
29212#define WIN32_LEAN_AND_MEAN
29213#endif
29214#include <windows.h>
29215#ifdef HAVE_WINSOCK2_H
29216#include <winsock2.h>
29217#else
29218#ifdef HAVE_WINSOCK_H
29219#include <winsock.h>
29220#endif
29221#endif
29222#else
29223#ifdef HAVE_SYS_TYPES_H
29224#include <sys/types.h>
29225#endif
29226#ifdef HAVE_SYS_SOCKET_H
29227#include <sys/socket.h>
29228#endif
29229#ifdef HAVE_NETINET_IN_H
29230#include <netinet/in.h>
29231#endif
29232#ifdef HAVE_ARPA_INET_H
29233#include <arpa/inet.h>
29234#endif
29235#endif
29236
29237"
29238if test "x$ac_cv_type_in_addr_t" = xyes; then :
29239
29240else
29241
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29243$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29244if ${curl_cv_in_addr_t_equiv+:} false; then :
29245 $as_echo_n "(cached) " >&6
29246else
29247
29248 curl_cv_in_addr_t_equiv="unknown"
29249 for t in "unsigned long" int size_t unsigned long; do
29250 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29252/* end confdefs.h. */
29253
29254
29255#undef inline
29256#ifdef HAVE_WINDOWS_H
29257#ifndef WIN32_LEAN_AND_MEAN
29258#define WIN32_LEAN_AND_MEAN
29259#endif
29260#include <windows.h>
29261#ifdef HAVE_WINSOCK2_H
29262#include <winsock2.h>
29263#else
29264#ifdef HAVE_WINSOCK_H
29265#include <winsock.h>
29266#endif
29267#endif
29268#else
29269#ifdef HAVE_SYS_TYPES_H
29270#include <sys/types.h>
29271#endif
29272#ifdef HAVE_SYS_SOCKET_H
29273#include <sys/socket.h>
29274#endif
29275#ifdef HAVE_NETINET_IN_H
29276#include <netinet/in.h>
29277#endif
29278#ifdef HAVE_ARPA_INET_H
29279#include <arpa/inet.h>
29280#endif
29281#endif
29282
29283int main (void)
29284{
29285
29286 $t data = inet_addr ("1.2.3.4");
29287
29288 ;
29289 return 0;
29290}
29291
29292_ACEOF
29293if ac_fn_c_try_link "$LINENO"; then :
29294
29295 curl_cv_in_addr_t_equiv="$t"
29296
29297fi
29298rm -f core conftest.err conftest.$ac_objext \
29299 conftest$ac_exeext conftest.$ac_ext
29300 fi
29301 done
29302
29303fi
29304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29305$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29306 case "$curl_cv_in_addr_t_equiv" in
29307 unknown)
29308 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29309 ;;
29310 *)
29311
29312cat >>confdefs.h <<_ACEOF
29313#define in_addr_t $curl_cv_in_addr_t_equiv
29314_ACEOF
29315
29316 ;;
29317 esac
29318
29319fi
29320
29321
29322
29323
29324 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29325#undef inline
29326#ifdef HAVE_WINDOWS_H
29327#ifndef WIN32_LEAN_AND_MEAN
29328#define WIN32_LEAN_AND_MEAN
29329#endif
29330#include <windows.h>
29331#ifdef HAVE_WINSOCK2_H
29332#include <winsock2.h>
29333#endif
29334#else
29335#ifdef HAVE_SYS_TYPES_H
29336#include <sys/types.h>
29337#endif
29338#ifdef HAVE_SYS_SOCKET_H
29339#include <sys/socket.h>
29340#endif
29341#ifdef HAVE_NETINET_IN_H
29342#include <netinet/in.h>
29343#endif
29344#ifdef HAVE_ARPA_INET_H
29345#include <arpa/inet.h>
29346#endif
29347#endif
29348
29349"
29350if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29351
29352$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29353
29354fi
29355
29356
29357
29358
29359 for ac_header in signal.h
29360do :
29361 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29362if test "x$ac_cv_header_signal_h" = xyes; then :
29363 cat >>confdefs.h <<_ACEOF
29364#define HAVE_SIGNAL_H 1
29365_ACEOF
29366
29367fi
29368
29369done
29370
29371 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29372#ifdef HAVE_SIGNAL_H
29373#include <signal.h>
29374#endif
29375
29376"
29377if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29378
29379
29380$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29381
29382
29383fi
29384
29385 case "$ac_cv_type_sig_atomic_t" in
29386 yes)
29387 #
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29389$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29391/* end confdefs.h. */
29392
29393
29394#ifdef HAVE_SIGNAL_H
29395#include <signal.h>
29396#endif
29397
29398int main (void)
29399{
29400
29401 static volatile sig_atomic_t dummy = 0;
29402
29403 ;
29404 return 0;
29405}
29406
29407_ACEOF
29408if ac_fn_c_try_link "$LINENO"; then :
29409
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29411$as_echo "no" >&6; }
29412 curl_cv_sig_atomic_t_volatile="no"
29413
29414else
29415
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29417$as_echo "yes" >&6; }
29418 curl_cv_sig_atomic_t_volatile="yes"
29419
29420fi
29421rm -f core conftest.err conftest.$ac_objext \
29422 conftest$ac_exeext conftest.$ac_ext
29423 #
29424 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29425
29426$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29427
29428 fi
29429 ;;
29430 esac
29431
29432
29433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29434$as_echo_n "checking return type of signal handlers... " >&6; }
29435if ${ac_cv_type_signal+:} false; then :
29436 $as_echo_n "(cached) " >&6
29437else
29438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439/* end confdefs.h. */
29440#include <sys/types.h>
29441#include <signal.h>
29442
29443int main (void)
29444{
29445return *(signal (0, 0)) (0) == 1;
29446 ;
29447 return 0;
29448}
29449_ACEOF
29450if ac_fn_c_try_compile "$LINENO"; then :
29451 ac_cv_type_signal=int
29452else
29453 ac_cv_type_signal=void
29454fi
29455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29456fi
29457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29458$as_echo "$ac_cv_type_signal" >&6; }
29459
29460cat >>confdefs.h <<_ACEOF
29461#define RETSIGTYPE $ac_cv_type_signal
29462_ACEOF
29463
29464
29465
29466
29467 for ac_header in sys/select.h sys/socket.h
29468do :
29469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29470ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29471if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29472 cat >>confdefs.h <<_ACEOF
29473#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29474_ACEOF
29475
29476fi
29477
29478done
29479
29480 #
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29482$as_echo_n "checking for select... " >&6; }
29483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29484/* end confdefs.h. */
29485
29486
29487#undef inline
29488#ifdef HAVE_WINDOWS_H
29489#ifndef WIN32_LEAN_AND_MEAN
29490#define WIN32_LEAN_AND_MEAN
29491#endif
29492#include <windows.h>
29493#ifdef HAVE_WINSOCK2_H
29494#include <winsock2.h>
29495#else
29496#ifdef HAVE_WINSOCK_H
29497#include <winsock.h>
29498#endif
29499#endif
29500#endif
29501#ifdef HAVE_SYS_TYPES_H
29502#include <sys/types.h>
29503#endif
29504#ifdef HAVE_SYS_TIME_H
29505#include <sys/time.h>
29506#ifdef TIME_WITH_SYS_TIME
29507#include <time.h>
29508#endif
29509#else
29510#ifdef HAVE_TIME_H
29511#include <time.h>
29512#endif
29513#endif
29514#ifndef HAVE_WINDOWS_H
29515#ifdef HAVE_SYS_SELECT_H
29516#include <sys/select.h>
29517#endif
29518#ifdef HAVE_SYS_SOCKET_H
29519#include <sys/socket.h>
29520#endif
29521#endif
29522
29523int main (void)
29524{
29525
29526 select(0, 0, 0, 0, 0);
29527
29528 ;
29529 return 0;
29530}
29531
29532_ACEOF
29533if ac_fn_c_try_link "$LINENO"; then :
29534
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29536$as_echo "yes" >&6; }
29537 curl_cv_select="yes"
29538
29539else
29540
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29542$as_echo "no" >&6; }
29543 curl_cv_select="no"
29544
29545fi
29546rm -f core conftest.err conftest.$ac_objext \
29547 conftest$ac_exeext conftest.$ac_ext
29548 #
29549 if test "$curl_cv_select" = "yes"; then
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29551$as_echo_n "checking types of args and return type for select... " >&6; }
29552if ${curl_cv_func_select_args+:} false; then :
29553 $as_echo_n "(cached) " >&6
29554else
29555
29556 curl_cv_func_select_args="unknown"
29557 for sel_retv in 'int' 'ssize_t'; do
29558 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29559 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29560 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29561 if test "$curl_cv_func_select_args" = "unknown"; then
29562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29563/* end confdefs.h. */
29564
29565
29566#undef inline
29567#ifdef HAVE_WINDOWS_H
29568#ifndef WIN32_LEAN_AND_MEAN
29569#define WIN32_LEAN_AND_MEAN
29570#endif
29571#include <windows.h>
29572#ifdef HAVE_WINSOCK2_H
29573#include <winsock2.h>
29574#else
29575#ifdef HAVE_WINSOCK_H
29576#include <winsock.h>
29577#endif
29578#endif
29579#define SELECTCALLCONV PASCAL
29580#endif
29581#ifdef HAVE_SYS_TYPES_H
29582#include <sys/types.h>
29583#endif
29584#ifdef HAVE_SYS_TIME_H
29585#include <sys/time.h>
29586#ifdef TIME_WITH_SYS_TIME
29587#include <time.h>
29588#endif
29589#else
29590#ifdef HAVE_TIME_H
29591#include <time.h>
29592#endif
29593#endif
29594#ifndef HAVE_WINDOWS_H
29595#ifdef HAVE_SYS_SELECT_H
29596#include <sys/select.h>
29597#endif
29598#ifdef HAVE_SYS_SOCKET_H
29599#include <sys/socket.h>
29600#endif
29601#define SELECTCALLCONV
29602#endif
29603#ifndef HAVE_STRUCT_TIMEVAL
29604 struct timeval {
29605 long tv_sec;
29606 long tv_usec;
29607 };
29608#endif
29609 extern $sel_retv SELECTCALLCONV
29610#ifdef __ANDROID__
29611__attribute__((overloadable))
29612#endif
29613 select($sel_arg1,
29614 $sel_arg234,
29615 $sel_arg234,
29616 $sel_arg234,
29617 $sel_arg5);
29618
29619int main (void)
29620{
29621
29622 $sel_arg1 nfds=0;
29623 $sel_arg234 rfds=0;
29624 $sel_arg234 wfds=0;
29625 $sel_arg234 efds=0;
29626 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29627
29628 ;
29629 return 0;
29630}
29631
29632_ACEOF
29633if ac_fn_c_try_compile "$LINENO"; then :
29634
29635 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29636
29637fi
29638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29639 fi
29640 done
29641 done
29642 done
29643 done
29644
29645fi
29646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29647$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29648 if test "$curl_cv_func_select_args" = "unknown"; then
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29650$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29652$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29653 else
29654 select_prev_IFS=$IFS; IFS=','
29655 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29656 IFS=$select_prev_IFS
29657 shift
29658 #
29659 sel_qual_type_arg5=$3
29660 #
29661
29662cat >>confdefs.h <<_ACEOF
29663#define SELECT_TYPE_ARG1 $1
29664_ACEOF
29665
29666
29667cat >>confdefs.h <<_ACEOF
29668#define SELECT_TYPE_ARG234 $2
29669_ACEOF
29670
29671
29672cat >>confdefs.h <<_ACEOF
29673#define SELECT_TYPE_RETV $4
29674_ACEOF
29675
29676 #
29677 prev_sh_opts=$-
29678 #
29679 case $prev_sh_opts in
29680 *f*)
29681 ;;
29682 *)
29683 set -f
29684 ;;
29685 esac
29686 #
29687 case "$sel_qual_type_arg5" in
29688 const*)
29689 sel_qual_arg5=const
29690 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29691 ;;
29692 *)
29693 sel_qual_arg5=
29694 sel_type_arg5=$sel_qual_type_arg5
29695 ;;
29696 esac
29697 #
29698
29699cat >>confdefs.h <<_ACEOF
29700#define SELECT_QUAL_ARG5 $sel_qual_arg5
29701_ACEOF
29702
29703
29704cat >>confdefs.h <<_ACEOF
29705#define SELECT_TYPE_ARG5 $sel_type_arg5
29706_ACEOF
29707
29708 #
29709 case $prev_sh_opts in
29710 *f*)
29711 ;;
29712 *)
29713 set +f
29714 ;;
29715 esac
29716 #
29717
29718cat >>confdefs.h <<_ACEOF
29719#define HAVE_SELECT 1
29720_ACEOF
29721
29722 curl_cv_func_select="yes"
29723 fi
29724 fi
29725
29726
29727
29728 for ac_header in sys/types.h sys/socket.h
29729do :
29730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29733 cat >>confdefs.h <<_ACEOF
29734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29735_ACEOF
29736
29737fi
29738
29739done
29740
29741 #
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29743$as_echo_n "checking for recv... " >&6; }
29744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29745/* end confdefs.h. */
29746
29747
29748#undef inline
29749#ifdef HAVE_WINDOWS_H
29750#ifndef WIN32_LEAN_AND_MEAN
29751#define WIN32_LEAN_AND_MEAN
29752#endif
29753#include <windows.h>
29754#ifdef HAVE_WINSOCK2_H
29755#include <winsock2.h>
29756#else
29757#ifdef HAVE_WINSOCK_H
29758#include <winsock.h>
29759#endif
29760#endif
29761#else
29762#ifdef HAVE_SYS_TYPES_H
29763#include <sys/types.h>
29764#endif
29765#ifdef HAVE_SYS_SOCKET_H
29766#include <sys/socket.h>
29767#endif
29768#endif
29769
29770int main (void)
29771{
29772
29773 recv(0, 0, 0, 0);
29774
29775 ;
29776 return 0;
29777}
29778
29779_ACEOF
29780if ac_fn_c_try_link "$LINENO"; then :
29781
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29783$as_echo "yes" >&6; }
29784 curl_cv_recv="yes"
29785
29786else
29787
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29789$as_echo "no" >&6; }
29790 curl_cv_recv="no"
29791
29792fi
29793rm -f core conftest.err conftest.$ac_objext \
29794 conftest$ac_exeext conftest.$ac_ext
29795 #
29796 if test "$curl_cv_recv" = "yes"; then
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29798$as_echo_n "checking types of args and return type for recv... " >&6; }
29799if ${curl_cv_func_recv_args+:} false; then :
29800 $as_echo_n "(cached) " >&6
29801else
29802
29803 curl_cv_func_recv_args="unknown"
29804 for recv_retv in 'int' 'ssize_t'; do
29805 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29806 for recv_arg2 in 'char *' 'void *'; do
29807 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29808 for recv_arg4 in 'int' 'unsigned int'; do
29809 if test "$curl_cv_func_recv_args" = "unknown"; then
29810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29811/* end confdefs.h. */
29812
29813
29814#undef inline
29815#ifdef HAVE_WINDOWS_H
29816#ifndef WIN32_LEAN_AND_MEAN
29817#define WIN32_LEAN_AND_MEAN
29818#endif
29819#include <windows.h>
29820#ifdef HAVE_WINSOCK2_H
29821#include <winsock2.h>
29822#else
29823#ifdef HAVE_WINSOCK_H
29824#include <winsock.h>
29825#endif
29826#endif
29827#define RECVCALLCONV PASCAL
29828#else
29829#ifdef HAVE_SYS_TYPES_H
29830#include <sys/types.h>
29831#endif
29832#ifdef HAVE_SYS_SOCKET_H
29833#include <sys/socket.h>
29834#endif
29835#define RECVCALLCONV
29836#endif
29837 extern $recv_retv RECVCALLCONV
29838#ifdef __ANDROID__
29839__attribute__((overloadable))
29840#endif
29841 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29842
29843int main (void)
29844{
29845
29846 $recv_arg1 s=0;
29847 $recv_arg2 buf=0;
29848 $recv_arg3 len=0;
29849 $recv_arg4 flags=0;
29850 $recv_retv res = recv(s, buf, len, flags);
29851
29852 ;
29853 return 0;
29854}
29855
29856_ACEOF
29857if ac_fn_c_try_compile "$LINENO"; then :
29858
29859 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29860
29861fi
29862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29863 fi
29864 done
29865 done
29866 done
29867 done
29868 done
29869
29870fi
29871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29872$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29873 if test "$curl_cv_func_recv_args" = "unknown"; then
29874 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29875 else
29876 recv_prev_IFS=$IFS; IFS=','
29877 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29878 IFS=$recv_prev_IFS
29879 shift
29880 #
29881
29882cat >>confdefs.h <<_ACEOF
29883#define RECV_TYPE_ARG1 $1
29884_ACEOF
29885
29886
29887cat >>confdefs.h <<_ACEOF
29888#define RECV_TYPE_ARG2 $2
29889_ACEOF
29890
29891
29892cat >>confdefs.h <<_ACEOF
29893#define RECV_TYPE_ARG3 $3
29894_ACEOF
29895
29896
29897cat >>confdefs.h <<_ACEOF
29898#define RECV_TYPE_ARG4 $4
29899_ACEOF
29900
29901
29902cat >>confdefs.h <<_ACEOF
29903#define RECV_TYPE_RETV $5
29904_ACEOF
29905
29906 #
29907
29908cat >>confdefs.h <<_ACEOF
29909#define HAVE_RECV 1
29910_ACEOF
29911
29912 curl_cv_func_recv="yes"
29913 fi
29914 else
29915 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29916 fi
29917
29918
29919 for ac_header in sys/types.h sys/socket.h
29920do :
29921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29924 cat >>confdefs.h <<_ACEOF
29925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29926_ACEOF
29927
29928fi
29929
29930done
29931
29932 #
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29934$as_echo_n "checking for send... " >&6; }
29935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29936/* end confdefs.h. */
29937
29938
29939#undef inline
29940#ifdef HAVE_WINDOWS_H
29941#ifndef WIN32_LEAN_AND_MEAN
29942#define WIN32_LEAN_AND_MEAN
29943#endif
29944#include <windows.h>
29945#ifdef HAVE_WINSOCK2_H
29946#include <winsock2.h>
29947#else
29948#ifdef HAVE_WINSOCK_H
29949#include <winsock.h>
29950#endif
29951#endif
29952#else
29953#ifdef HAVE_SYS_TYPES_H
29954#include <sys/types.h>
29955#endif
29956#ifdef HAVE_SYS_SOCKET_H
29957#include <sys/socket.h>
29958#endif
29959#endif
29960
29961int main (void)
29962{
29963
29964 send(0, 0, 0, 0);
29965
29966 ;
29967 return 0;
29968}
29969
29970_ACEOF
29971if ac_fn_c_try_link "$LINENO"; then :
29972
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29974$as_echo "yes" >&6; }
29975 curl_cv_send="yes"
29976
29977else
29978
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29980$as_echo "no" >&6; }
29981 curl_cv_send="no"
29982
29983fi
29984rm -f core conftest.err conftest.$ac_objext \
29985 conftest$ac_exeext conftest.$ac_ext
29986 #
29987 if test "$curl_cv_send" = "yes"; then
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29989$as_echo_n "checking types of args and return type for send... " >&6; }
29990if ${curl_cv_func_send_args+:} false; then :
29991 $as_echo_n "(cached) " >&6
29992else
29993
29994 curl_cv_func_send_args="unknown"
29995 for send_retv in 'int' 'ssize_t'; do
29996 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29997 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29998 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29999 for send_arg4 in 'int' 'unsigned int'; do
30000 if test "$curl_cv_func_send_args" = "unknown"; then
30001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30002/* end confdefs.h. */
30003
30004
30005#undef inline
30006#ifdef HAVE_WINDOWS_H
30007#ifndef WIN32_LEAN_AND_MEAN
30008#define WIN32_LEAN_AND_MEAN
30009#endif
30010#include <windows.h>
30011#ifdef HAVE_WINSOCK2_H
30012#include <winsock2.h>
30013#else
30014#ifdef HAVE_WINSOCK_H
30015#include <winsock.h>
30016#endif
30017#endif
30018#define SENDCALLCONV PASCAL
30019#else
30020#ifdef HAVE_SYS_TYPES_H
30021#include <sys/types.h>
30022#endif
30023#ifdef HAVE_SYS_SOCKET_H
30024#include <sys/socket.h>
30025#endif
30026#define SENDCALLCONV
30027#endif
30028 extern $send_retv SENDCALLCONV
30029#ifdef __ANDROID__
30030__attribute__((overloadable))
30031#endif
30032 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30033
30034int main (void)
30035{
30036
30037 $send_arg1 s=0;
30038 $send_arg3 len=0;
30039 $send_arg4 flags=0;
30040 $send_retv res = send(s, 0, len, flags);
30041
30042 ;
30043 return 0;
30044}
30045
30046_ACEOF
30047if ac_fn_c_try_compile "$LINENO"; then :
30048
30049 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30050
30051fi
30052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30053 fi
30054 done
30055 done
30056 done
30057 done
30058 done
30059
30060fi
30061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30062$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30063 if test "$curl_cv_func_send_args" = "unknown"; then
30064 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30065 else
30066 send_prev_IFS=$IFS; IFS=','
30067 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30068 IFS=$send_prev_IFS
30069 shift
30070 #
30071 send_qual_type_arg2=$2
30072 #
30073
30074cat >>confdefs.h <<_ACEOF
30075#define SEND_TYPE_ARG1 $1
30076_ACEOF
30077
30078
30079cat >>confdefs.h <<_ACEOF
30080#define SEND_TYPE_ARG3 $3
30081_ACEOF
30082
30083
30084cat >>confdefs.h <<_ACEOF
30085#define SEND_TYPE_ARG4 $4
30086_ACEOF
30087
30088
30089cat >>confdefs.h <<_ACEOF
30090#define SEND_TYPE_RETV $5
30091_ACEOF
30092
30093 #
30094 prev_sh_opts=$-
30095 #
30096 case $prev_sh_opts in
30097 *f*)
30098 ;;
30099 *)
30100 set -f
30101 ;;
30102 esac
30103 #
30104 case "$send_qual_type_arg2" in
30105 const*)
30106 send_qual_arg2=const
30107 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30108 ;;
30109 *)
30110 send_qual_arg2=
30111 send_type_arg2=$send_qual_type_arg2
30112 ;;
30113 esac
30114 #
30115
30116cat >>confdefs.h <<_ACEOF
30117#define SEND_QUAL_ARG2 $send_qual_arg2
30118_ACEOF
30119
30120
30121cat >>confdefs.h <<_ACEOF
30122#define SEND_TYPE_ARG2 $send_type_arg2
30123_ACEOF
30124
30125 #
30126 case $prev_sh_opts in
30127 *f*)
30128 ;;
30129 *)
30130 set +f
30131 ;;
30132 esac
30133 #
30134
30135cat >>confdefs.h <<_ACEOF
30136#define HAVE_SEND 1
30137_ACEOF
30138
30139 curl_cv_func_send="yes"
30140 fi
30141 else
30142 as_fn_error $? "Unable to link function send" "$LINENO" 5
30143 fi
30144
30145
30146 for ac_header in sys/types.h sys/socket.h
30147do :
30148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30151 cat >>confdefs.h <<_ACEOF
30152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30153_ACEOF
30154
30155fi
30156
30157done
30158
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30160$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30161if ${curl_cv_msg_nosignal+:} false; then :
30162 $as_echo_n "(cached) " >&6
30163else
30164
30165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30166/* end confdefs.h. */
30167
30168
30169#undef inline
30170#ifdef HAVE_WINDOWS_H
30171#ifndef WIN32_LEAN_AND_MEAN
30172#define WIN32_LEAN_AND_MEAN
30173#endif
30174#include <windows.h>
30175#ifdef HAVE_WINSOCK2_H
30176#include <winsock2.h>
30177#else
30178#ifdef HAVE_WINSOCK_H
30179#include <winsock.h>
30180#endif
30181#endif
30182#else
30183#ifdef HAVE_SYS_TYPES_H
30184#include <sys/types.h>
30185#endif
30186#ifdef HAVE_SYS_SOCKET_H
30187#include <sys/socket.h>
30188#endif
30189#endif
30190
30191int main (void)
30192{
30193
30194 int flag=MSG_NOSIGNAL;
30195
30196 ;
30197 return 0;
30198}
30199
30200_ACEOF
30201if ac_fn_c_try_compile "$LINENO"; then :
30202
30203 curl_cv_msg_nosignal="yes"
30204
30205else
30206
30207 curl_cv_msg_nosignal="no"
30208
30209fi
30210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30211
30212fi
30213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30214$as_echo "$curl_cv_msg_nosignal" >&6; }
30215 case "$curl_cv_msg_nosignal" in
30216 yes)
30217
30218cat >>confdefs.h <<_ACEOF
30219#define HAVE_MSG_NOSIGNAL 1
30220_ACEOF
30221
30222 ;;
30223 esac
30224
30225
30226
30227curl_includes_unistd="\
30228/* includes start */
30229#ifdef HAVE_SYS_TYPES_H
30230# include <sys/types.h>
30231#endif
30232#ifdef HAVE_UNISTD_H
30233# include <unistd.h>
30234#endif
30235/* includes end */"
30236 for ac_header in sys/types.h unistd.h
30237do :
30238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30239ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30240"
30241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30242 cat >>confdefs.h <<_ACEOF
30243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30244_ACEOF
30245
30246fi
30247
30248done
30249
30250
30251
30252 #
30253 tst_links_alarm="unknown"
30254 tst_proto_alarm="unknown"
30255 tst_compi_alarm="unknown"
30256 tst_allow_alarm="unknown"
30257 #
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30259$as_echo_n "checking if alarm can be linked... " >&6; }
30260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30261/* end confdefs.h. */
30262
30263
30264#define alarm innocuous_alarm
30265#ifdef __STDC__
30266# include <limits.h>
30267#else
30268# include <assert.h>
30269#endif
30270#undef alarm
30271#ifdef __cplusplus
30272extern "C"
30273#endif
30274char alarm ();
30275#if defined __stub_alarm || defined __stub___alarm
30276choke me
30277#endif
30278
30279int main (void)
30280{
30281return alarm ();
30282 ;
30283 return 0;
30284}
30285
30286_ACEOF
30287if ac_fn_c_try_link "$LINENO"; then :
30288
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30290$as_echo "yes" >&6; }
30291 tst_links_alarm="yes"
30292
30293else
30294
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30296$as_echo "no" >&6; }
30297 tst_links_alarm="no"
30298
30299fi
30300rm -f core conftest.err conftest.$ac_objext \
30301 conftest$ac_exeext conftest.$ac_ext
30302 #
30303 if test "$tst_links_alarm" = "yes"; then
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30305$as_echo_n "checking if alarm is prototyped... " >&6; }
30306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30307/* end confdefs.h. */
30308
30309 $curl_includes_unistd
30310
30311_ACEOF
30312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30313 $EGREP "alarm" >/dev/null 2>&1; then :
30314
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30316$as_echo "yes" >&6; }
30317 tst_proto_alarm="yes"
30318
30319else
30320
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30322$as_echo "no" >&6; }
30323 tst_proto_alarm="no"
30324
30325fi
30326rm -f conftest*
30327
30328 fi
30329 #
30330 if test "$tst_proto_alarm" = "yes"; then
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30332$as_echo_n "checking if alarm is compilable... " >&6; }
30333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334/* end confdefs.h. */
30335
30336
30337 $curl_includes_unistd
30338
30339int main (void)
30340{
30341
30342 if(0 != alarm(0))
30343 return 1;
30344
30345 ;
30346 return 0;
30347}
30348
30349_ACEOF
30350if ac_fn_c_try_compile "$LINENO"; then :
30351
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30353$as_echo "yes" >&6; }
30354 tst_compi_alarm="yes"
30355
30356else
30357
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30359$as_echo "no" >&6; }
30360 tst_compi_alarm="no"
30361
30362fi
30363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30364 fi
30365 #
30366 if test "$tst_compi_alarm" = "yes"; then
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30368$as_echo_n "checking if alarm usage allowed... " >&6; }
30369 if test "x$curl_disallow_alarm" != "xyes"; then
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30371$as_echo "yes" >&6; }
30372 tst_allow_alarm="yes"
30373 else
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30375$as_echo "no" >&6; }
30376 tst_allow_alarm="no"
30377 fi
30378 fi
30379 #
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30381$as_echo_n "checking if alarm might be used... " >&6; }
30382 if test "$tst_links_alarm" = "yes" &&
30383 test "$tst_proto_alarm" = "yes" &&
30384 test "$tst_compi_alarm" = "yes" &&
30385 test "$tst_allow_alarm" = "yes"; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387$as_echo "yes" >&6; }
30388
30389cat >>confdefs.h <<_ACEOF
30390#define HAVE_ALARM 1
30391_ACEOF
30392
30393 curl_cv_func_alarm="yes"
30394 else
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30396$as_echo "no" >&6; }
30397 curl_cv_func_alarm="no"
30398 fi
30399
30400
30401curl_includes_string="\
30402/* includes start */
30403#ifdef HAVE_SYS_TYPES_H
30404# include <sys/types.h>
30405#endif
30406#ifdef HAVE_STRING_H
30407# include <string.h>
30408#endif
30409#ifdef HAVE_STRINGS_H
30410# include <strings.h>
30411#endif
30412/* includes end */"
30413 for ac_header in sys/types.h string.h strings.h
30414do :
30415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30416ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30417"
30418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30419 cat >>confdefs.h <<_ACEOF
30420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30421_ACEOF
30422
30423fi
30424
30425done
30426
30427
30428
30429curl_includes_libgen="\
30430/* includes start */
30431#ifdef HAVE_SYS_TYPES_H
30432# include <sys/types.h>
30433#endif
30434#ifdef HAVE_LIBGEN_H
30435# include <libgen.h>
30436#endif
30437/* includes end */"
30438 for ac_header in sys/types.h libgen.h
30439do :
30440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30442"
30443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30444 cat >>confdefs.h <<_ACEOF
30445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30446_ACEOF
30447
30448fi
30449
30450done
30451
30452
30453
30454 #
30455 tst_links_basename="unknown"
30456 tst_proto_basename="unknown"
30457 tst_compi_basename="unknown"
30458 tst_allow_basename="unknown"
30459 #
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30461$as_echo_n "checking if basename can be linked... " >&6; }
30462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30463/* end confdefs.h. */
30464
30465
30466#define basename innocuous_basename
30467#ifdef __STDC__
30468# include <limits.h>
30469#else
30470# include <assert.h>
30471#endif
30472#undef basename
30473#ifdef __cplusplus
30474extern "C"
30475#endif
30476char basename ();
30477#if defined __stub_basename || defined __stub___basename
30478choke me
30479#endif
30480
30481int main (void)
30482{
30483return basename ();
30484 ;
30485 return 0;
30486}
30487
30488_ACEOF
30489if ac_fn_c_try_link "$LINENO"; then :
30490
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492$as_echo "yes" >&6; }
30493 tst_links_basename="yes"
30494
30495else
30496
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498$as_echo "no" >&6; }
30499 tst_links_basename="no"
30500
30501fi
30502rm -f core conftest.err conftest.$ac_objext \
30503 conftest$ac_exeext conftest.$ac_ext
30504 #
30505 if test "$tst_links_basename" = "yes"; then
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30507$as_echo_n "checking if basename is prototyped... " >&6; }
30508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30509/* end confdefs.h. */
30510
30511 $curl_includes_string
30512 $curl_includes_libgen
30513 $curl_includes_unistd
30514
30515_ACEOF
30516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30517 $EGREP "basename" >/dev/null 2>&1; then :
30518
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30520$as_echo "yes" >&6; }
30521 tst_proto_basename="yes"
30522
30523else
30524
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30526$as_echo "no" >&6; }
30527 tst_proto_basename="no"
30528
30529fi
30530rm -f conftest*
30531
30532 fi
30533 #
30534 if test "$tst_proto_basename" = "yes"; then
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30536$as_echo_n "checking if basename is compilable... " >&6; }
30537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30538/* end confdefs.h. */
30539
30540
30541 $curl_includes_string
30542 $curl_includes_libgen
30543 $curl_includes_unistd
30544
30545int main (void)
30546{
30547
30548 if(0 != basename(0))
30549 return 1;
30550
30551 ;
30552 return 0;
30553}
30554
30555_ACEOF
30556if ac_fn_c_try_compile "$LINENO"; then :
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30559$as_echo "yes" >&6; }
30560 tst_compi_basename="yes"
30561
30562else
30563
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30565$as_echo "no" >&6; }
30566 tst_compi_basename="no"
30567
30568fi
30569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30570 fi
30571 #
30572 if test "$tst_compi_basename" = "yes"; then
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30574$as_echo_n "checking if basename usage allowed... " >&6; }
30575 if test "x$curl_disallow_basename" != "xyes"; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30577$as_echo "yes" >&6; }
30578 tst_allow_basename="yes"
30579 else
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581$as_echo "no" >&6; }
30582 tst_allow_basename="no"
30583 fi
30584 fi
30585 #
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30587$as_echo_n "checking if basename might be used... " >&6; }
30588 if test "$tst_links_basename" = "yes" &&
30589 test "$tst_proto_basename" = "yes" &&
30590 test "$tst_compi_basename" = "yes" &&
30591 test "$tst_allow_basename" = "yes"; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30593$as_echo "yes" >&6; }
30594
30595cat >>confdefs.h <<_ACEOF
30596#define HAVE_BASENAME 1
30597_ACEOF
30598
30599 curl_cv_func_basename="yes"
30600 else
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30602$as_echo "no" >&6; }
30603 curl_cv_func_basename="no"
30604 fi
30605
30606
30607curl_includes_socket="\
30608/* includes start */
30609#ifdef HAVE_SYS_TYPES_H
30610# include <sys/types.h>
30611#endif
30612#ifdef HAVE_SOCKET_H
30613# include <socket.h>
30614#endif
30615/* includes end */"
30616 for ac_header in sys/types.h socket.h
30617do :
30618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30619ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30620"
30621if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30622 cat >>confdefs.h <<_ACEOF
30623#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30624_ACEOF
30625
30626fi
30627
30628done
30629
30630
30631
30632 #
30633 tst_links_closesocket="unknown"
30634 tst_proto_closesocket="unknown"
30635 tst_compi_closesocket="unknown"
30636 tst_allow_closesocket="unknown"
30637 #
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30639$as_echo_n "checking if closesocket can be linked... " >&6; }
30640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30641/* end confdefs.h. */
30642
30643
30644 $curl_includes_winsock2
30645 $curl_includes_socket
30646
30647int main (void)
30648{
30649
30650 if(0 != closesocket(0))
30651 return 1;
30652
30653 ;
30654 return 0;
30655}
30656
30657_ACEOF
30658if ac_fn_c_try_link "$LINENO"; then :
30659
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30661$as_echo "yes" >&6; }
30662 tst_links_closesocket="yes"
30663
30664else
30665
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30667$as_echo "no" >&6; }
30668 tst_links_closesocket="no"
30669
30670fi
30671rm -f core conftest.err conftest.$ac_objext \
30672 conftest$ac_exeext conftest.$ac_ext
30673 #
30674 if test "$tst_links_closesocket" = "yes"; then
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30676$as_echo_n "checking if closesocket is prototyped... " >&6; }
30677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30678/* end confdefs.h. */
30679
30680 $curl_includes_winsock2
30681 $curl_includes_socket
30682
30683_ACEOF
30684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30685 $EGREP "closesocket" >/dev/null 2>&1; then :
30686
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30688$as_echo "yes" >&6; }
30689 tst_proto_closesocket="yes"
30690
30691else
30692
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30694$as_echo "no" >&6; }
30695 tst_proto_closesocket="no"
30696
30697fi
30698rm -f conftest*
30699
30700 fi
30701 #
30702 if test "$tst_proto_closesocket" = "yes"; then
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30704$as_echo_n "checking if closesocket is compilable... " >&6; }
30705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h. */
30707
30708
30709 $curl_includes_winsock2
30710 $curl_includes_socket
30711
30712int main (void)
30713{
30714
30715 if(0 != closesocket(0))
30716 return 1;
30717
30718 ;
30719 return 0;
30720}
30721
30722_ACEOF
30723if ac_fn_c_try_compile "$LINENO"; then :
30724
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726$as_echo "yes" >&6; }
30727 tst_compi_closesocket="yes"
30728
30729else
30730
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30732$as_echo "no" >&6; }
30733 tst_compi_closesocket="no"
30734
30735fi
30736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30737 fi
30738 #
30739 if test "$tst_compi_closesocket" = "yes"; then
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30741$as_echo_n "checking if closesocket usage allowed... " >&6; }
30742 if test "x$curl_disallow_closesocket" != "xyes"; then
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30744$as_echo "yes" >&6; }
30745 tst_allow_closesocket="yes"
30746 else
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30748$as_echo "no" >&6; }
30749 tst_allow_closesocket="no"
30750 fi
30751 fi
30752 #
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30754$as_echo_n "checking if closesocket might be used... " >&6; }
30755 if test "$tst_links_closesocket" = "yes" &&
30756 test "$tst_proto_closesocket" = "yes" &&
30757 test "$tst_compi_closesocket" = "yes" &&
30758 test "$tst_allow_closesocket" = "yes"; then
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30760$as_echo "yes" >&6; }
30761
30762cat >>confdefs.h <<_ACEOF
30763#define HAVE_CLOSESOCKET 1
30764_ACEOF
30765
30766 curl_cv_func_closesocket="yes"
30767 else
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769$as_echo "no" >&6; }
30770 curl_cv_func_closesocket="no"
30771 fi
30772
30773
Elliott Hughesa93fb052018-12-12 14:22:48 -080030774curl_includes_sys_socket="\
30775/* includes start */
30776#ifdef HAVE_SYS_TYPES_H
30777# include <sys/types.h>
30778#endif
30779#ifdef HAVE_SYS_SOCKET_H
30780# include <sys/socket.h>
30781#endif
30782/* includes end */"
30783 for ac_header in sys/types.h sys/socket.h
30784do :
30785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30787"
30788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30789 cat >>confdefs.h <<_ACEOF
30790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30791_ACEOF
30792
30793fi
30794
30795done
30796
30797
30798
Elliott Hughes82be86d2017-09-20 17:00:17 -070030799 #
30800 tst_links_closesocket_camel="unknown"
30801 tst_proto_closesocket_camel="unknown"
30802 tst_compi_closesocket_camel="unknown"
30803 tst_allow_closesocket_camel="unknown"
30804 #
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30806$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30808/* end confdefs.h. */
30809
30810
30811 $curl_includes_sys_socket
30812
30813int main (void)
30814{
30815
30816 if(0 != CloseSocket(0))
30817 return 1;
30818
30819 ;
30820 return 0;
30821}
30822
30823_ACEOF
30824if ac_fn_c_try_link "$LINENO"; then :
30825
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30827$as_echo "yes" >&6; }
30828 tst_links_closesocket_camel="yes"
30829
30830else
30831
30832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30833$as_echo "no" >&6; }
30834 tst_links_closesocket_camel="no"
30835
30836fi
30837rm -f core conftest.err conftest.$ac_objext \
30838 conftest$ac_exeext conftest.$ac_ext
30839 #
30840 if test "$tst_links_closesocket_camel" = "yes"; then
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30842$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30844/* end confdefs.h. */
30845
30846 $curl_includes_sys_socket
30847
30848_ACEOF
30849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30850 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30851
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30853$as_echo "yes" >&6; }
30854 tst_proto_closesocket_camel="yes"
30855
30856else
30857
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859$as_echo "no" >&6; }
30860 tst_proto_closesocket_camel="no"
30861
30862fi
30863rm -f conftest*
30864
30865 fi
30866 #
30867 if test "$tst_proto_closesocket_camel" = "yes"; then
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30869$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30871/* end confdefs.h. */
30872
30873
30874 $curl_includes_sys_socket
30875
30876int main (void)
30877{
30878
30879 if(0 != CloseSocket(0))
30880 return 1;
30881
30882 ;
30883 return 0;
30884}
30885
30886_ACEOF
30887if ac_fn_c_try_compile "$LINENO"; then :
30888
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30890$as_echo "yes" >&6; }
30891 tst_compi_closesocket_camel="yes"
30892
30893else
30894
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30896$as_echo "no" >&6; }
30897 tst_compi_closesocket_camel="no"
30898
30899fi
30900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30901 fi
30902 #
30903 if test "$tst_compi_closesocket_camel" = "yes"; then
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30905$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30906 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30908$as_echo "yes" >&6; }
30909 tst_allow_closesocket_camel="yes"
30910 else
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30912$as_echo "no" >&6; }
30913 tst_allow_closesocket_camel="no"
30914 fi
30915 fi
30916 #
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30918$as_echo_n "checking if CloseSocket might be used... " >&6; }
30919 if test "$tst_links_closesocket_camel" = "yes" &&
30920 test "$tst_proto_closesocket_camel" = "yes" &&
30921 test "$tst_compi_closesocket_camel" = "yes" &&
30922 test "$tst_allow_closesocket_camel" = "yes"; then
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30924$as_echo "yes" >&6; }
30925
30926cat >>confdefs.h <<_ACEOF
30927#define HAVE_CLOSESOCKET_CAMEL 1
30928_ACEOF
30929
30930 curl_cv_func_closesocket_camel="yes"
30931 else
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933$as_echo "no" >&6; }
30934 curl_cv_func_closesocket_camel="no"
30935 fi
30936
30937
30938 #
30939 tst_links_connect="unknown"
30940 tst_proto_connect="unknown"
30941 tst_compi_connect="unknown"
30942 tst_allow_connect="unknown"
30943 #
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30945$as_echo_n "checking if connect can be linked... " >&6; }
30946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947/* end confdefs.h. */
30948
30949
30950 $curl_includes_winsock2
30951 $curl_includes_sys_socket
30952 $curl_includes_socket
30953
30954int main (void)
30955{
30956
30957 if(0 != connect(0, 0, 0))
30958 return 1;
30959
30960 ;
30961 return 0;
30962}
30963
30964_ACEOF
30965if ac_fn_c_try_link "$LINENO"; then :
30966
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30968$as_echo "yes" >&6; }
30969 tst_links_connect="yes"
30970
30971else
30972
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30974$as_echo "no" >&6; }
30975 tst_links_connect="no"
30976
30977fi
30978rm -f core conftest.err conftest.$ac_objext \
30979 conftest$ac_exeext conftest.$ac_ext
30980 #
30981 if test "$tst_links_connect" = "yes"; then
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30983$as_echo_n "checking if connect is prototyped... " >&6; }
30984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30985/* end confdefs.h. */
30986
30987 $curl_includes_winsock2
30988 $curl_includes_sys_socket
30989 $curl_includes_socket
30990
30991_ACEOF
30992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30993 $EGREP "connect" >/dev/null 2>&1; then :
30994
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30996$as_echo "yes" >&6; }
30997 tst_proto_connect="yes"
30998
30999else
31000
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31002$as_echo "no" >&6; }
31003 tst_proto_connect="no"
31004
31005fi
31006rm -f conftest*
31007
31008 fi
31009 #
31010 if test "$tst_proto_connect" = "yes"; then
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31012$as_echo_n "checking if connect is compilable... " >&6; }
31013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31014/* end confdefs.h. */
31015
31016
31017 $curl_includes_winsock2
31018 $curl_includes_sys_socket
31019 $curl_includes_socket
31020
31021int main (void)
31022{
31023
31024 if(0 != connect(0, 0, 0))
31025 return 1;
31026
31027 ;
31028 return 0;
31029}
31030
31031_ACEOF
31032if ac_fn_c_try_compile "$LINENO"; then :
31033
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31035$as_echo "yes" >&6; }
31036 tst_compi_connect="yes"
31037
31038else
31039
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31041$as_echo "no" >&6; }
31042 tst_compi_connect="no"
31043
31044fi
31045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31046 fi
31047 #
31048 if test "$tst_compi_connect" = "yes"; then
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31050$as_echo_n "checking if connect usage allowed... " >&6; }
31051 if test "x$curl_disallow_connect" != "xyes"; then
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31053$as_echo "yes" >&6; }
31054 tst_allow_connect="yes"
31055 else
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057$as_echo "no" >&6; }
31058 tst_allow_connect="no"
31059 fi
31060 fi
31061 #
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31063$as_echo_n "checking if connect might be used... " >&6; }
31064 if test "$tst_links_connect" = "yes" &&
31065 test "$tst_proto_connect" = "yes" &&
31066 test "$tst_compi_connect" = "yes" &&
31067 test "$tst_allow_connect" = "yes"; then
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31069$as_echo "yes" >&6; }
31070
31071cat >>confdefs.h <<_ACEOF
31072#define HAVE_CONNECT 1
31073_ACEOF
31074
31075 curl_cv_func_connect="yes"
31076 else
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31078$as_echo "no" >&6; }
31079 curl_cv_func_connect="no"
31080 fi
31081
31082
31083curl_includes_fcntl="\
31084/* includes start */
31085#ifdef HAVE_SYS_TYPES_H
31086# include <sys/types.h>
31087#endif
31088#ifdef HAVE_UNISTD_H
31089# include <unistd.h>
31090#endif
31091#ifdef HAVE_FCNTL_H
31092# include <fcntl.h>
31093#endif
31094/* includes end */"
31095 for ac_header in sys/types.h unistd.h fcntl.h
31096do :
31097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31098ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31099"
31100if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31101 cat >>confdefs.h <<_ACEOF
31102#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31103_ACEOF
31104
31105fi
31106
31107done
31108
31109
31110
31111 #
31112 tst_links_fcntl="unknown"
31113 tst_proto_fcntl="unknown"
31114 tst_compi_fcntl="unknown"
31115 tst_allow_fcntl="unknown"
31116 #
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31118$as_echo_n "checking if fcntl can be linked... " >&6; }
31119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31120/* end confdefs.h. */
31121
31122
31123#define fcntl innocuous_fcntl
31124#ifdef __STDC__
31125# include <limits.h>
31126#else
31127# include <assert.h>
31128#endif
31129#undef fcntl
31130#ifdef __cplusplus
31131extern "C"
31132#endif
31133char fcntl ();
31134#if defined __stub_fcntl || defined __stub___fcntl
31135choke me
31136#endif
31137
31138int main (void)
31139{
31140return fcntl ();
31141 ;
31142 return 0;
31143}
31144
31145_ACEOF
31146if ac_fn_c_try_link "$LINENO"; then :
31147
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31149$as_echo "yes" >&6; }
31150 tst_links_fcntl="yes"
31151
31152else
31153
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31155$as_echo "no" >&6; }
31156 tst_links_fcntl="no"
31157
31158fi
31159rm -f core conftest.err conftest.$ac_objext \
31160 conftest$ac_exeext conftest.$ac_ext
31161 #
31162 if test "$tst_links_fcntl" = "yes"; then
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31164$as_echo_n "checking if fcntl is prototyped... " >&6; }
31165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31166/* end confdefs.h. */
31167
31168 $curl_includes_fcntl
31169
31170_ACEOF
31171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31172 $EGREP "fcntl" >/dev/null 2>&1; then :
31173
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31175$as_echo "yes" >&6; }
31176 tst_proto_fcntl="yes"
31177
31178else
31179
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181$as_echo "no" >&6; }
31182 tst_proto_fcntl="no"
31183
31184fi
31185rm -f conftest*
31186
31187 fi
31188 #
31189 if test "$tst_proto_fcntl" = "yes"; then
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31191$as_echo_n "checking if fcntl is compilable... " >&6; }
31192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31193/* end confdefs.h. */
31194
31195
31196 $curl_includes_fcntl
31197
31198int main (void)
31199{
31200
31201 if(0 != fcntl(0, 0, 0))
31202 return 1;
31203
31204 ;
31205 return 0;
31206}
31207
31208_ACEOF
31209if ac_fn_c_try_compile "$LINENO"; then :
31210
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31212$as_echo "yes" >&6; }
31213 tst_compi_fcntl="yes"
31214
31215else
31216
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31218$as_echo "no" >&6; }
31219 tst_compi_fcntl="no"
31220
31221fi
31222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31223 fi
31224 #
31225 if test "$tst_compi_fcntl" = "yes"; then
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31227$as_echo_n "checking if fcntl usage allowed... " >&6; }
31228 if test "x$curl_disallow_fcntl" != "xyes"; then
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31230$as_echo "yes" >&6; }
31231 tst_allow_fcntl="yes"
31232 else
31233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31234$as_echo "no" >&6; }
31235 tst_allow_fcntl="no"
31236 fi
31237 fi
31238 #
31239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31240$as_echo_n "checking if fcntl might be used... " >&6; }
31241 if test "$tst_links_fcntl" = "yes" &&
31242 test "$tst_proto_fcntl" = "yes" &&
31243 test "$tst_compi_fcntl" = "yes" &&
31244 test "$tst_allow_fcntl" = "yes"; then
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31246$as_echo "yes" >&6; }
31247
31248cat >>confdefs.h <<_ACEOF
31249#define HAVE_FCNTL 1
31250_ACEOF
31251
31252 curl_cv_func_fcntl="yes"
31253
31254 #
31255 tst_compi_fcntl_o_nonblock="unknown"
31256 tst_allow_fcntl_o_nonblock="unknown"
31257 #
31258 case $host_os in
31259 sunos4* | aix3* | beos*)
31260 curl_disallow_fcntl_o_nonblock="yes"
31261 ;;
31262 esac
31263 #
31264 if test "$curl_cv_func_fcntl" = "yes"; then
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31266$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31268/* end confdefs.h. */
31269
31270
31271 $curl_includes_fcntl
31272
31273int main (void)
31274{
31275
31276 int flags = 0;
31277 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31278 return 1;
31279
31280 ;
31281 return 0;
31282}
31283
31284_ACEOF
31285if ac_fn_c_try_compile "$LINENO"; then :
31286
31287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31288$as_echo "yes" >&6; }
31289 tst_compi_fcntl_o_nonblock="yes"
31290
31291else
31292
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31294$as_echo "no" >&6; }
31295 tst_compi_fcntl_o_nonblock="no"
31296
31297fi
31298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31299 fi
31300 #
31301 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31303$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31304 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31306$as_echo "yes" >&6; }
31307 tst_allow_fcntl_o_nonblock="yes"
31308 else
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31310$as_echo "no" >&6; }
31311 tst_allow_fcntl_o_nonblock="no"
31312 fi
31313 fi
31314 #
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31316$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31317 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31318 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31320$as_echo "yes" >&6; }
31321
31322cat >>confdefs.h <<_ACEOF
31323#define HAVE_FCNTL_O_NONBLOCK 1
31324_ACEOF
31325
31326 curl_cv_func_fcntl_o_nonblock="yes"
31327 else
31328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31329$as_echo "no" >&6; }
31330 curl_cv_func_fcntl_o_nonblock="no"
31331 fi
31332
31333 else
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31335$as_echo "no" >&6; }
31336 curl_cv_func_fcntl="no"
31337 fi
31338
31339
31340curl_includes_stdio="\
31341/* includes start */
31342#ifdef HAVE_SYS_TYPES_H
31343# include <sys/types.h>
31344#endif
31345#ifdef HAVE_STDIO_H
31346# include <stdio.h>
31347#endif
31348/* includes end */"
31349 for ac_header in sys/types.h stdio.h
31350do :
31351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31352ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31353"
31354if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31355 cat >>confdefs.h <<_ACEOF
31356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31357_ACEOF
31358
31359fi
31360
31361done
31362
31363
31364
31365 #
31366 tst_links_fdopen="unknown"
31367 tst_proto_fdopen="unknown"
31368 tst_compi_fdopen="unknown"
31369 tst_allow_fdopen="unknown"
31370 #
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31372$as_echo_n "checking if fdopen can be linked... " >&6; }
31373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31374/* end confdefs.h. */
31375
31376
31377#define fdopen innocuous_fdopen
31378#ifdef __STDC__
31379# include <limits.h>
31380#else
31381# include <assert.h>
31382#endif
31383#undef fdopen
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char fdopen ();
31388#if defined __stub_fdopen || defined __stub___fdopen
31389choke me
31390#endif
31391
31392int main (void)
31393{
31394return fdopen ();
31395 ;
31396 return 0;
31397}
31398
31399_ACEOF
31400if ac_fn_c_try_link "$LINENO"; then :
31401
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31403$as_echo "yes" >&6; }
31404 tst_links_fdopen="yes"
31405
31406else
31407
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31409$as_echo "no" >&6; }
31410 tst_links_fdopen="no"
31411
31412fi
31413rm -f core conftest.err conftest.$ac_objext \
31414 conftest$ac_exeext conftest.$ac_ext
31415 #
31416 if test "$tst_links_fdopen" = "yes"; then
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31418$as_echo_n "checking if fdopen is prototyped... " >&6; }
31419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31420/* end confdefs.h. */
31421
31422 $curl_includes_stdio
31423
31424_ACEOF
31425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31426 $EGREP "fdopen" >/dev/null 2>&1; then :
31427
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31429$as_echo "yes" >&6; }
31430 tst_proto_fdopen="yes"
31431
31432else
31433
31434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31435$as_echo "no" >&6; }
31436 tst_proto_fdopen="no"
31437
31438fi
31439rm -f conftest*
31440
31441 fi
31442 #
31443 if test "$tst_proto_fdopen" = "yes"; then
31444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31445$as_echo_n "checking if fdopen is compilable... " >&6; }
31446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31447/* end confdefs.h. */
31448
31449
31450 $curl_includes_stdio
31451
31452int main (void)
31453{
31454
31455 if(0 != fdopen(0, 0))
31456 return 1;
31457
31458 ;
31459 return 0;
31460}
31461
31462_ACEOF
31463if ac_fn_c_try_compile "$LINENO"; then :
31464
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31466$as_echo "yes" >&6; }
31467 tst_compi_fdopen="yes"
31468
31469else
31470
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472$as_echo "no" >&6; }
31473 tst_compi_fdopen="no"
31474
31475fi
31476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 fi
31478 #
31479 if test "$tst_compi_fdopen" = "yes"; then
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31481$as_echo_n "checking if fdopen usage allowed... " >&6; }
31482 if test "x$curl_disallow_fdopen" != "xyes"; then
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31484$as_echo "yes" >&6; }
31485 tst_allow_fdopen="yes"
31486 else
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31488$as_echo "no" >&6; }
31489 tst_allow_fdopen="no"
31490 fi
31491 fi
31492 #
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31494$as_echo_n "checking if fdopen might be used... " >&6; }
31495 if test "$tst_links_fdopen" = "yes" &&
31496 test "$tst_proto_fdopen" = "yes" &&
31497 test "$tst_compi_fdopen" = "yes" &&
31498 test "$tst_allow_fdopen" = "yes"; then
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31500$as_echo "yes" >&6; }
31501
31502cat >>confdefs.h <<_ACEOF
31503#define HAVE_FDOPEN 1
31504_ACEOF
31505
31506 curl_cv_func_fdopen="yes"
31507 else
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31509$as_echo "no" >&6; }
31510 curl_cv_func_fdopen="no"
31511 fi
31512
31513
Elliott Hughesa93fb052018-12-12 14:22:48 -080031514curl_includes_ws2tcpip="\
31515/* includes start */
31516#ifdef HAVE_WINDOWS_H
31517# ifndef WIN32_LEAN_AND_MEAN
31518# define WIN32_LEAN_AND_MEAN
31519# endif
31520# include <windows.h>
31521# ifdef HAVE_WINSOCK2_H
31522# include <winsock2.h>
31523# ifdef HAVE_WS2TCPIP_H
31524# include <ws2tcpip.h>
31525# endif
31526# endif
31527#endif
31528/* includes end */"
31529
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31531$as_echo_n "checking for windows.h... " >&6; }
31532if ${curl_cv_header_windows_h+:} false; then :
31533 $as_echo_n "(cached) " >&6
31534else
31535
31536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31537/* end confdefs.h. */
31538
31539
31540#undef inline
31541#ifndef WIN32_LEAN_AND_MEAN
31542#define WIN32_LEAN_AND_MEAN
31543#endif
31544#include <windows.h>
31545
31546int main (void)
31547{
31548
31549#if defined(__CYGWIN__) || defined(__CEGCC__)
31550 HAVE_WINDOWS_H shall not be defined.
31551#else
31552 int dummy=2*WINVER;
31553#endif
31554
31555 ;
31556 return 0;
31557}
31558
31559_ACEOF
31560if ac_fn_c_try_compile "$LINENO"; then :
31561
31562 curl_cv_header_windows_h="yes"
31563
31564else
31565
31566 curl_cv_header_windows_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_windows_h" >&5
31573$as_echo "$curl_cv_header_windows_h" >&6; }
31574 case "$curl_cv_header_windows_h" in
31575 yes)
31576
31577cat >>confdefs.h <<_ACEOF
31578#define HAVE_WINDOWS_H 1
31579_ACEOF
31580
31581 ;;
31582 esac
31583
31584
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31586$as_echo_n "checking for winsock2.h... " >&6; }
31587if ${curl_cv_header_winsock2_h+:} false; then :
31588 $as_echo_n "(cached) " >&6
31589else
31590
31591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592/* end confdefs.h. */
31593
31594
31595#undef inline
31596#ifndef WIN32_LEAN_AND_MEAN
31597#define WIN32_LEAN_AND_MEAN
31598#endif
31599#include <windows.h>
31600#include <winsock2.h>
31601
31602int main (void)
31603{
31604
31605#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31606 HAVE_WINSOCK2_H shall not be defined.
31607#else
31608 int dummy=2*IPPROTO_ESP;
31609#endif
31610
31611 ;
31612 return 0;
31613}
31614
31615_ACEOF
31616if ac_fn_c_try_compile "$LINENO"; then :
31617
31618 curl_cv_header_winsock2_h="yes"
31619
31620else
31621
31622 curl_cv_header_winsock2_h="no"
31623
31624fi
31625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31626
31627fi
31628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31629$as_echo "$curl_cv_header_winsock2_h" >&6; }
31630 case "$curl_cv_header_winsock2_h" in
31631 yes)
31632
31633cat >>confdefs.h <<_ACEOF
31634#define HAVE_WINSOCK2_H 1
31635_ACEOF
31636
31637 ;;
31638 esac
31639
31640
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31642$as_echo_n "checking for ws2tcpip.h... " >&6; }
31643if ${curl_cv_header_ws2tcpip_h+:} false; then :
31644 $as_echo_n "(cached) " >&6
31645else
31646
31647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648/* end confdefs.h. */
31649
31650
31651#undef inline
31652#ifndef WIN32_LEAN_AND_MEAN
31653#define WIN32_LEAN_AND_MEAN
31654#endif
31655#include <windows.h>
31656#include <winsock2.h>
31657#include <ws2tcpip.h>
31658
31659int main (void)
31660{
31661
31662#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31663 HAVE_WS2TCPIP_H shall not be defined.
31664#else
31665 int dummy=2*IP_PKTINFO;
31666#endif
31667
31668 ;
31669 return 0;
31670}
31671
31672_ACEOF
31673if ac_fn_c_try_compile "$LINENO"; then :
31674
31675 curl_cv_header_ws2tcpip_h="yes"
31676
31677else
31678
31679 curl_cv_header_ws2tcpip_h="no"
31680
31681fi
31682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31683
31684fi
31685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31686$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31687 case "$curl_cv_header_ws2tcpip_h" in
31688 yes)
31689
31690cat >>confdefs.h <<_ACEOF
31691#define HAVE_WS2TCPIP_H 1
31692_ACEOF
31693
31694 ;;
31695 esac
31696
31697
31698
Elliott Hughes82be86d2017-09-20 17:00:17 -070031699curl_includes_netdb="\
31700/* includes start */
31701#ifdef HAVE_SYS_TYPES_H
31702# include <sys/types.h>
31703#endif
31704#ifdef HAVE_NETDB_H
31705# include <netdb.h>
31706#endif
31707/* includes end */"
31708 for ac_header in sys/types.h netdb.h
31709do :
31710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31711ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31712"
31713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31714 cat >>confdefs.h <<_ACEOF
31715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31716_ACEOF
31717
31718fi
31719
31720done
31721
31722
31723
31724 #
31725 tst_links_freeaddrinfo="unknown"
31726 tst_proto_freeaddrinfo="unknown"
31727 tst_compi_freeaddrinfo="unknown"
31728 tst_allow_freeaddrinfo="unknown"
31729 #
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31731$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31733/* end confdefs.h. */
31734
31735
31736 $curl_includes_ws2tcpip
31737 $curl_includes_sys_socket
31738 $curl_includes_netdb
31739
31740int main (void)
31741{
31742
31743 freeaddrinfo(0);
31744
31745 ;
31746 return 0;
31747}
31748
31749_ACEOF
31750if ac_fn_c_try_link "$LINENO"; then :
31751
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31753$as_echo "yes" >&6; }
31754 tst_links_freeaddrinfo="yes"
31755
31756else
31757
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31759$as_echo "no" >&6; }
31760 tst_links_freeaddrinfo="no"
31761
31762fi
31763rm -f core conftest.err conftest.$ac_objext \
31764 conftest$ac_exeext conftest.$ac_ext
31765 #
31766 if test "$tst_links_freeaddrinfo" = "yes"; then
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31768$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770/* end confdefs.h. */
31771
31772 $curl_includes_ws2tcpip
31773 $curl_includes_sys_socket
31774 $curl_includes_netdb
31775
31776_ACEOF
31777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31778 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31779
31780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31781$as_echo "yes" >&6; }
31782 tst_proto_freeaddrinfo="yes"
31783
31784else
31785
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31787$as_echo "no" >&6; }
31788 tst_proto_freeaddrinfo="no"
31789
31790fi
31791rm -f conftest*
31792
31793 fi
31794 #
31795 if test "$tst_proto_freeaddrinfo" = "yes"; then
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31797$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31799/* end confdefs.h. */
31800
31801
31802 $curl_includes_ws2tcpip
31803 $curl_includes_sys_socket
31804 $curl_includes_netdb
31805
31806int main (void)
31807{
31808
31809 freeaddrinfo(0);
31810
31811 ;
31812 return 0;
31813}
31814
31815_ACEOF
31816if ac_fn_c_try_compile "$LINENO"; then :
31817
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31819$as_echo "yes" >&6; }
31820 tst_compi_freeaddrinfo="yes"
31821
31822else
31823
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31825$as_echo "no" >&6; }
31826 tst_compi_freeaddrinfo="no"
31827
31828fi
31829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31830 fi
31831 #
31832 if test "$tst_compi_freeaddrinfo" = "yes"; then
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31834$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31835 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31837$as_echo "yes" >&6; }
31838 tst_allow_freeaddrinfo="yes"
31839 else
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841$as_echo "no" >&6; }
31842 tst_allow_freeaddrinfo="no"
31843 fi
31844 fi
31845 #
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31847$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31848 if test "$tst_links_freeaddrinfo" = "yes" &&
31849 test "$tst_proto_freeaddrinfo" = "yes" &&
31850 test "$tst_compi_freeaddrinfo" = "yes" &&
31851 test "$tst_allow_freeaddrinfo" = "yes"; then
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31853$as_echo "yes" >&6; }
31854
31855cat >>confdefs.h <<_ACEOF
31856#define HAVE_FREEADDRINFO 1
31857_ACEOF
31858
31859 curl_cv_func_freeaddrinfo="yes"
31860 else
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862$as_echo "no" >&6; }
31863 curl_cv_func_freeaddrinfo="no"
31864 fi
31865
31866
31867curl_includes_ifaddrs="\
31868/* includes start */
31869#ifdef HAVE_SYS_TYPES_H
31870# include <sys/types.h>
31871#endif
31872#ifdef HAVE_SYS_SOCKET_H
31873# include <sys/socket.h>
31874#endif
31875#ifdef HAVE_NETINET_IN_H
31876# include <netinet/in.h>
31877#endif
31878#ifdef HAVE_IFADDRS_H
31879# include <ifaddrs.h>
31880#endif
31881/* includes end */"
31882 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31883do :
31884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31885ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31886"
31887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31888 cat >>confdefs.h <<_ACEOF
31889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31890_ACEOF
31891
31892fi
31893
31894done
31895
31896
31897
31898 #
31899 tst_links_freeifaddrs="unknown"
31900 tst_proto_freeifaddrs="unknown"
31901 tst_compi_freeifaddrs="unknown"
31902 tst_allow_freeifaddrs="unknown"
31903 #
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31905$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31907/* end confdefs.h. */
31908
31909
31910#define freeifaddrs innocuous_freeifaddrs
31911#ifdef __STDC__
31912# include <limits.h>
31913#else
31914# include <assert.h>
31915#endif
31916#undef freeifaddrs
31917#ifdef __cplusplus
31918extern "C"
31919#endif
31920char freeifaddrs ();
31921#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31922choke me
31923#endif
31924
31925int main (void)
31926{
31927return freeifaddrs ();
31928 ;
31929 return 0;
31930}
31931
31932_ACEOF
31933if ac_fn_c_try_link "$LINENO"; then :
31934
31935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31936$as_echo "yes" >&6; }
31937 tst_links_freeifaddrs="yes"
31938
31939else
31940
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943 tst_links_freeifaddrs="no"
31944
31945fi
31946rm -f core conftest.err conftest.$ac_objext \
31947 conftest$ac_exeext conftest.$ac_ext
31948 #
31949 if test "$tst_links_freeifaddrs" = "yes"; then
31950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31951$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31953/* end confdefs.h. */
31954
31955 $curl_includes_ifaddrs
31956
31957_ACEOF
31958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31959 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31960
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31962$as_echo "yes" >&6; }
31963 tst_proto_freeifaddrs="yes"
31964
31965else
31966
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31968$as_echo "no" >&6; }
31969 tst_proto_freeifaddrs="no"
31970
31971fi
31972rm -f conftest*
31973
31974 fi
31975 #
31976 if test "$tst_proto_freeifaddrs" = "yes"; then
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31978$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31980/* end confdefs.h. */
31981
31982
31983 $curl_includes_ifaddrs
31984
31985int main (void)
31986{
31987
31988 freeifaddrs(0);
31989
31990 ;
31991 return 0;
31992}
31993
31994_ACEOF
31995if ac_fn_c_try_compile "$LINENO"; then :
31996
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998$as_echo "yes" >&6; }
31999 tst_compi_freeifaddrs="yes"
32000
32001else
32002
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32004$as_echo "no" >&6; }
32005 tst_compi_freeifaddrs="no"
32006
32007fi
32008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32009 fi
32010 #
32011 if test "$tst_compi_freeifaddrs" = "yes"; then
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32013$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32014 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32016$as_echo "yes" >&6; }
32017 tst_allow_freeifaddrs="yes"
32018 else
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32020$as_echo "no" >&6; }
32021 tst_allow_freeifaddrs="no"
32022 fi
32023 fi
32024 #
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32026$as_echo_n "checking if freeifaddrs might be used... " >&6; }
32027 if test "$tst_links_freeifaddrs" = "yes" &&
32028 test "$tst_proto_freeifaddrs" = "yes" &&
32029 test "$tst_compi_freeifaddrs" = "yes" &&
32030 test "$tst_allow_freeifaddrs" = "yes"; then
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32032$as_echo "yes" >&6; }
32033
32034cat >>confdefs.h <<_ACEOF
32035#define HAVE_FREEIFADDRS 1
32036_ACEOF
32037
32038 curl_cv_func_freeifaddrs="yes"
32039 else
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041$as_echo "no" >&6; }
32042 curl_cv_func_freeifaddrs="no"
32043 fi
32044
32045
32046curl_includes_sys_xattr="\
32047/* includes start */
32048#ifdef HAVE_SYS_TYPES_H
32049# include <sys/types.h>
32050#endif
32051#ifdef HAVE_SYS_XATTR_H
32052# include <sys/xattr.h>
32053#endif
32054/* includes end */"
32055 for ac_header in sys/types.h sys/xattr.h
32056do :
32057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32058ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32059"
32060if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32061 cat >>confdefs.h <<_ACEOF
32062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32063_ACEOF
32064
32065fi
32066
32067done
32068
32069
32070
32071 #
32072 tst_links_fsetxattr="unknown"
32073 tst_proto_fsetxattr="unknown"
32074 tst_compi_fsetxattr="unknown"
32075 tst_allow_fsetxattr="unknown"
32076 tst_nargs_fsetxattr="unknown"
32077 #
32078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32079$as_echo_n "checking if fsetxattr can be linked... " >&6; }
32080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32081/* end confdefs.h. */
32082
32083
32084#define fsetxattr innocuous_fsetxattr
32085#ifdef __STDC__
32086# include <limits.h>
32087#else
32088# include <assert.h>
32089#endif
32090#undef fsetxattr
32091#ifdef __cplusplus
32092extern "C"
32093#endif
32094char fsetxattr ();
32095#if defined __stub_fsetxattr || defined __stub___fsetxattr
32096choke me
32097#endif
32098
32099int main (void)
32100{
32101return fsetxattr ();
32102 ;
32103 return 0;
32104}
32105
32106_ACEOF
32107if ac_fn_c_try_link "$LINENO"; then :
32108
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32110$as_echo "yes" >&6; }
32111 tst_links_fsetxattr="yes"
32112
32113else
32114
32115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32116$as_echo "no" >&6; }
32117 tst_links_fsetxattr="no"
32118
32119fi
32120rm -f core conftest.err conftest.$ac_objext \
32121 conftest$ac_exeext conftest.$ac_ext
32122 #
32123 if test "$tst_links_fsetxattr" = "yes"; then
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32125$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32127/* end confdefs.h. */
32128
32129 $curl_includes_sys_xattr
32130
32131_ACEOF
32132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32133 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32134
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32136$as_echo "yes" >&6; }
32137 tst_proto_fsetxattr="yes"
32138
32139else
32140
32141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32142$as_echo "no" >&6; }
32143 tst_proto_fsetxattr="no"
32144
32145fi
32146rm -f conftest*
32147
32148 fi
32149 #
32150 if test "$tst_proto_fsetxattr" = "yes"; then
32151 if test "$tst_nargs_fsetxattr" = "unknown"; then
32152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32153$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32155/* end confdefs.h. */
32156
32157
32158 $curl_includes_sys_xattr
32159
32160int main (void)
32161{
32162
32163 if(0 != fsetxattr(0, 0, 0, 0, 0))
32164 return 1;
32165
32166 ;
32167 return 0;
32168}
32169
32170_ACEOF
32171if ac_fn_c_try_compile "$LINENO"; then :
32172
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32174$as_echo "yes" >&6; }
32175 tst_compi_fsetxattr="yes"
32176 tst_nargs_fsetxattr="5"
32177
32178else
32179
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32181$as_echo "no" >&6; }
32182 tst_compi_fsetxattr="no"
32183
32184fi
32185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32186 fi
32187 if test "$tst_nargs_fsetxattr" = "unknown"; then
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32189$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32191/* end confdefs.h. */
32192
32193
32194 $curl_includes_sys_xattr
32195
32196int main (void)
32197{
32198
32199 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32200 return 1;
32201
32202 ;
32203 return 0;
32204}
32205
32206_ACEOF
32207if ac_fn_c_try_compile "$LINENO"; then :
32208
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32210$as_echo "yes" >&6; }
32211 tst_compi_fsetxattr="yes"
32212 tst_nargs_fsetxattr="6"
32213
32214else
32215
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217$as_echo "no" >&6; }
32218 tst_compi_fsetxattr="no"
32219
32220fi
32221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32222 fi
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32224$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32225 if test "$tst_compi_fsetxattr" = "yes"; then
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32227$as_echo "yes" >&6; }
32228 else
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32230$as_echo "no" >&6; }
32231 fi
32232 fi
32233 #
32234 if test "$tst_compi_fsetxattr" = "yes"; then
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32236$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32237 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32239$as_echo "yes" >&6; }
32240 tst_allow_fsetxattr="yes"
32241 else
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32243$as_echo "no" >&6; }
32244 tst_allow_fsetxattr="no"
32245 fi
32246 fi
32247 #
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32249$as_echo_n "checking if fsetxattr might be used... " >&6; }
32250 if test "$tst_links_fsetxattr" = "yes" &&
32251 test "$tst_proto_fsetxattr" = "yes" &&
32252 test "$tst_compi_fsetxattr" = "yes" &&
32253 test "$tst_allow_fsetxattr" = "yes"; then
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32255$as_echo "yes" >&6; }
32256
32257cat >>confdefs.h <<_ACEOF
32258#define HAVE_FSETXATTR 1
32259_ACEOF
32260
32261 #
32262 if test "$tst_nargs_fsetxattr" -eq "5"; then
32263
32264$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32265
32266 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32267
32268$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32269
32270 fi
32271 #
32272 curl_cv_func_fsetxattr="yes"
32273 else
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32275$as_echo "no" >&6; }
32276 curl_cv_func_fsetxattr="no"
32277 fi
32278
32279
32280 #
32281 tst_links_ftruncate="unknown"
32282 tst_proto_ftruncate="unknown"
32283 tst_compi_ftruncate="unknown"
32284 tst_allow_ftruncate="unknown"
32285 #
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32287$as_echo_n "checking if ftruncate can be linked... " >&6; }
32288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32289/* end confdefs.h. */
32290
32291
32292#define ftruncate innocuous_ftruncate
32293#ifdef __STDC__
32294# include <limits.h>
32295#else
32296# include <assert.h>
32297#endif
32298#undef ftruncate
32299#ifdef __cplusplus
32300extern "C"
32301#endif
32302char ftruncate ();
32303#if defined __stub_ftruncate || defined __stub___ftruncate
32304choke me
32305#endif
32306
32307int main (void)
32308{
32309return ftruncate ();
32310 ;
32311 return 0;
32312}
32313
32314_ACEOF
32315if ac_fn_c_try_link "$LINENO"; then :
32316
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32318$as_echo "yes" >&6; }
32319 tst_links_ftruncate="yes"
32320
32321else
32322
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32324$as_echo "no" >&6; }
32325 tst_links_ftruncate="no"
32326
32327fi
32328rm -f core conftest.err conftest.$ac_objext \
32329 conftest$ac_exeext conftest.$ac_ext
32330 #
32331 if test "$tst_links_ftruncate" = "yes"; then
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32333$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32335/* end confdefs.h. */
32336
32337 $curl_includes_unistd
32338
32339_ACEOF
32340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32341 $EGREP "ftruncate" >/dev/null 2>&1; then :
32342
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32344$as_echo "yes" >&6; }
32345 tst_proto_ftruncate="yes"
32346
32347else
32348
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32350$as_echo "no" >&6; }
32351 tst_proto_ftruncate="no"
32352
32353fi
32354rm -f conftest*
32355
32356 fi
32357 #
32358 if test "$tst_proto_ftruncate" = "yes"; then
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32360$as_echo_n "checking if ftruncate is compilable... " >&6; }
32361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32362/* end confdefs.h. */
32363
32364
32365 $curl_includes_unistd
32366
32367int main (void)
32368{
32369
32370 if(0 != ftruncate(0, 0))
32371 return 1;
32372
32373 ;
32374 return 0;
32375}
32376
32377_ACEOF
32378if ac_fn_c_try_compile "$LINENO"; then :
32379
32380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32381$as_echo "yes" >&6; }
32382 tst_compi_ftruncate="yes"
32383
32384else
32385
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32387$as_echo "no" >&6; }
32388 tst_compi_ftruncate="no"
32389
32390fi
32391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32392 fi
32393 #
32394 if test "$tst_compi_ftruncate" = "yes"; then
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32396$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32397 if test "x$curl_disallow_ftruncate" != "xyes"; then
32398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32399$as_echo "yes" >&6; }
32400 tst_allow_ftruncate="yes"
32401 else
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32403$as_echo "no" >&6; }
32404 tst_allow_ftruncate="no"
32405 fi
32406 fi
32407 #
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32409$as_echo_n "checking if ftruncate might be used... " >&6; }
32410 if test "$tst_links_ftruncate" = "yes" &&
32411 test "$tst_proto_ftruncate" = "yes" &&
32412 test "$tst_compi_ftruncate" = "yes" &&
32413 test "$tst_allow_ftruncate" = "yes"; then
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32415$as_echo "yes" >&6; }
32416
32417cat >>confdefs.h <<_ACEOF
32418#define HAVE_FTRUNCATE 1
32419_ACEOF
32420
32421 curl_cv_func_ftruncate="yes"
32422 else
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32424$as_echo "no" >&6; }
32425 curl_cv_func_ftruncate="no"
32426 fi
32427
32428
32429curl_includes_stdlib="\
32430/* includes start */
32431#ifdef HAVE_SYS_TYPES_H
32432# include <sys/types.h>
32433#endif
32434#ifdef HAVE_STDLIB_H
32435# include <stdlib.h>
32436#endif
32437/* includes end */"
32438 for ac_header in sys/types.h stdlib.h
32439do :
32440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32442"
32443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32444 cat >>confdefs.h <<_ACEOF
32445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32446_ACEOF
32447
32448fi
32449
32450done
32451
32452
32453
32454 #
32455 tst_links_getaddrinfo="unknown"
32456 tst_proto_getaddrinfo="unknown"
32457 tst_compi_getaddrinfo="unknown"
32458 tst_works_getaddrinfo="unknown"
32459 tst_allow_getaddrinfo="unknown"
32460 tst_tsafe_getaddrinfo="unknown"
32461 #
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32463$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32465/* end confdefs.h. */
32466
32467
32468 $curl_includes_ws2tcpip
32469 $curl_includes_sys_socket
32470 $curl_includes_netdb
32471
32472int main (void)
32473{
32474
32475 if(0 != getaddrinfo(0, 0, 0, 0))
32476 return 1;
32477
32478 ;
32479 return 0;
32480}
32481
32482_ACEOF
32483if ac_fn_c_try_link "$LINENO"; then :
32484
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32486$as_echo "yes" >&6; }
32487 tst_links_getaddrinfo="yes"
32488
32489else
32490
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32492$as_echo "no" >&6; }
32493 tst_links_getaddrinfo="no"
32494
32495fi
32496rm -f core conftest.err conftest.$ac_objext \
32497 conftest$ac_exeext conftest.$ac_ext
32498 #
32499 if test "$tst_links_getaddrinfo" = "yes"; then
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32501$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32503/* end confdefs.h. */
32504
32505 $curl_includes_ws2tcpip
32506 $curl_includes_sys_socket
32507 $curl_includes_netdb
32508
32509_ACEOF
32510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32511 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32512
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32514$as_echo "yes" >&6; }
32515 tst_proto_getaddrinfo="yes"
32516
32517else
32518
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32520$as_echo "no" >&6; }
32521 tst_proto_getaddrinfo="no"
32522
32523fi
32524rm -f conftest*
32525
32526 fi
32527 #
32528 if test "$tst_proto_getaddrinfo" = "yes"; then
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32530$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32532/* end confdefs.h. */
32533
32534
32535 $curl_includes_ws2tcpip
32536 $curl_includes_sys_socket
32537 $curl_includes_netdb
32538
32539int main (void)
32540{
32541
32542 if(0 != getaddrinfo(0, 0, 0, 0))
32543 return 1;
32544
32545 ;
32546 return 0;
32547}
32548
32549_ACEOF
32550if ac_fn_c_try_compile "$LINENO"; then :
32551
32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32553$as_echo "yes" >&6; }
32554 tst_compi_getaddrinfo="yes"
32555
32556else
32557
32558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32559$as_echo "no" >&6; }
32560 tst_compi_getaddrinfo="no"
32561
32562fi
32563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32564 fi
32565 #
32566 if test "x$cross_compiling" != "xyes" &&
32567 test "$tst_compi_getaddrinfo" = "yes"; then
32568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32569$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032570
32571
32572 old=$LD_LIBRARY_PATH
32573 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32574 export LD_LIBRARY_PATH
32575 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32578as_fn_error $? "cannot run test program while cross compiling
32579See \`config.log' for more details" "$LINENO" 5; }
32580else
32581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32582/* end confdefs.h. */
32583
32584
32585 $curl_includes_ws2tcpip
32586 $curl_includes_stdlib
32587 $curl_includes_string
32588 $curl_includes_sys_socket
32589 $curl_includes_netdb
32590
32591int main (void)
32592{
32593
32594 struct addrinfo hints;
32595 struct addrinfo *ai = 0;
32596 int error;
32597
32598 #ifdef HAVE_WINSOCK2_H
32599 WSADATA wsa;
32600 if (WSAStartup(MAKEWORD(2,2), &wsa))
32601 exit(2);
32602 #endif
32603
32604 memset(&hints, 0, sizeof(hints));
32605 hints.ai_flags = AI_NUMERICHOST;
32606 hints.ai_family = AF_UNSPEC;
32607 hints.ai_socktype = SOCK_STREAM;
32608 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32609 if(error || !ai)
32610 exit(1); /* fail */
32611 else
32612 exit(0);
32613
32614 ;
32615 return 0;
32616}
32617
32618_ACEOF
32619if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032621$as_echo "yes" >&6; }
32622 tst_works_getaddrinfo="yes"
32623
32624else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032626$as_echo "no" >&6; }
32627 tst_works_getaddrinfo="no"
32628
32629fi
32630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32631 conftest.$ac_objext conftest.beam conftest.$ac_ext
32632fi
32633
Elliott Hughesa93fb052018-12-12 14:22:48 -080032634 LD_LIBRARY_PATH=$old # restore
32635
Elliott Hughes82be86d2017-09-20 17:00:17 -070032636 fi
32637 #
32638 if test "$tst_compi_getaddrinfo" = "yes" &&
32639 test "$tst_works_getaddrinfo" != "no"; then
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32641$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32642 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32644$as_echo "yes" >&6; }
32645 tst_allow_getaddrinfo="yes"
32646 else
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32648$as_echo "no" >&6; }
32649 tst_allow_getaddrinfo="no"
32650 fi
32651 fi
32652 #
32653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32654$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32655 if test "$tst_links_getaddrinfo" = "yes" &&
32656 test "$tst_proto_getaddrinfo" = "yes" &&
32657 test "$tst_compi_getaddrinfo" = "yes" &&
32658 test "$tst_allow_getaddrinfo" = "yes" &&
32659 test "$tst_works_getaddrinfo" != "no"; then
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32661$as_echo "yes" >&6; }
32662
32663cat >>confdefs.h <<_ACEOF
32664#define HAVE_GETADDRINFO 1
32665_ACEOF
32666
32667 curl_cv_func_getaddrinfo="yes"
32668 else
32669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32670$as_echo "no" >&6; }
32671 curl_cv_func_getaddrinfo="no"
32672 curl_cv_func_getaddrinfo_threadsafe="no"
32673 fi
32674 #
32675 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32677$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32678 case $host_os in
32679 aix[1234].* | aix5.[01].*)
32680 tst_tsafe_getaddrinfo="no"
32681 ;;
32682 aix*)
32683 tst_tsafe_getaddrinfo="yes"
32684 ;;
32685 darwin[12345].*)
32686 tst_tsafe_getaddrinfo="no"
32687 ;;
32688 darwin*)
32689 tst_tsafe_getaddrinfo="yes"
32690 ;;
32691 freebsd[1234].* | freebsd5.[1234]*)
32692 tst_tsafe_getaddrinfo="no"
32693 ;;
32694 freebsd*)
32695 tst_tsafe_getaddrinfo="yes"
32696 ;;
32697 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32698 tst_tsafe_getaddrinfo="no"
32699 ;;
32700 hpux*)
32701 tst_tsafe_getaddrinfo="yes"
32702 ;;
32703 netbsd[123].*)
32704 tst_tsafe_getaddrinfo="no"
32705 ;;
32706 netbsd*)
32707 tst_tsafe_getaddrinfo="yes"
32708 ;;
32709 *bsd*)
32710 tst_tsafe_getaddrinfo="no"
32711 ;;
32712 solaris2*)
32713 tst_tsafe_getaddrinfo="yes"
32714 ;;
32715 esac
32716 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32717 test "$curl_cv_native_windows" = "yes"; then
32718 tst_tsafe_getaddrinfo="yes"
32719 fi
32720 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32721
32722
32723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32724/* end confdefs.h. */
32725
32726
32727 $curl_includes_sys_socket
32728 $curl_includes_netdb
32729
32730int main (void)
32731{
32732#ifdef h_errno
32733 return 0;
32734#else
32735 force compilation error
32736#endif
32737}
32738
32739
32740_ACEOF
32741if ac_fn_c_try_compile "$LINENO"; then :
32742
32743 tst_symbol_defined="yes"
32744
32745else
32746
32747 tst_symbol_defined="no"
32748
32749fi
32750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32751 if test "$tst_symbol_defined" = "yes"; then
32752 curl_cv_have_def_h_errno=yes
32753
32754 else
32755 curl_cv_have_def_h_errno=no
32756
32757 fi
32758
32759 if test "$curl_cv_have_def_h_errno" = "yes"; then
32760 tst_h_errno_macro="yes"
32761 else
32762 tst_h_errno_macro="no"
32763 fi
32764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32765/* end confdefs.h. */
32766
32767
32768 $curl_includes_sys_socket
32769 $curl_includes_netdb
32770
32771int main (void)
32772{
32773
32774 h_errno = 2;
32775 if(0 != h_errno)
32776 return 1;
32777
32778 ;
32779 return 0;
32780}
32781
32782_ACEOF
32783if ac_fn_c_try_compile "$LINENO"; then :
32784
32785 tst_h_errno_modifiable_lvalue="yes"
32786
32787else
32788
32789 tst_h_errno_modifiable_lvalue="no"
32790
32791fi
32792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32794/* end confdefs.h. */
32795
32796
32797
32798int main (void)
32799{
32800
32801#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32802 return 0;
32803#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32804 return 0;
32805#else
32806 force compilation error
32807#endif
32808
32809 ;
32810 return 0;
32811}
32812
32813_ACEOF
32814if ac_fn_c_try_compile "$LINENO"; then :
32815
32816 tst_h_errno_sbs_issue_7="yes"
32817
32818else
32819
32820 tst_h_errno_sbs_issue_7="no"
32821
32822fi
32823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32824 if test "$tst_h_errno_macro" = "no" &&
32825 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32826 test "$tst_h_errno_sbs_issue_7" = "no"; then
32827 tst_tsafe_getaddrinfo="no"
32828 else
32829 tst_tsafe_getaddrinfo="yes"
32830 fi
32831 fi
32832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32833$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32834 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32835
32836cat >>confdefs.h <<_ACEOF
32837#define HAVE_GETADDRINFO_THREADSAFE 1
32838_ACEOF
32839
32840 curl_cv_func_getaddrinfo_threadsafe="yes"
32841 else
32842 curl_cv_func_getaddrinfo_threadsafe="no"
32843 fi
32844 fi
32845
32846
32847 #
32848 tst_links_gai_strerror="unknown"
32849 tst_proto_gai_strerror="unknown"
32850 tst_compi_gai_strerror="unknown"
32851 tst_allow_gai_strerror="unknown"
32852 #
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32854$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856/* end confdefs.h. */
32857
32858
32859 $curl_includes_winsock2
32860 $curl_includes_netdb
32861
32862int main (void)
32863{
32864
32865 if(0 != gai_strerror(0))
32866 return 1;
32867
32868 ;
32869 return 0;
32870}
32871
32872_ACEOF
32873if ac_fn_c_try_link "$LINENO"; then :
32874
32875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32876$as_echo "yes" >&6; }
32877 tst_links_gai_strerror="yes"
32878
32879else
32880
32881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32882$as_echo "no" >&6; }
32883 tst_links_gai_strerror="no"
32884
32885fi
32886rm -f core conftest.err conftest.$ac_objext \
32887 conftest$ac_exeext conftest.$ac_ext
32888 #
32889 if test "$tst_links_gai_strerror" = "yes"; then
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32891$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32893/* end confdefs.h. */
32894
32895 $curl_includes_winsock2
32896 $curl_includes_netdb
32897
32898_ACEOF
32899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32900 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32901
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32903$as_echo "yes" >&6; }
32904 tst_proto_gai_strerror="yes"
32905
32906else
32907
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32909$as_echo "no" >&6; }
32910 tst_proto_gai_strerror="no"
32911
32912fi
32913rm -f conftest*
32914
32915 fi
32916 #
32917 if test "$tst_proto_gai_strerror" = "yes"; then
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32919$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32921/* end confdefs.h. */
32922
32923
32924 $curl_includes_winsock2
32925 $curl_includes_netdb
32926
32927int main (void)
32928{
32929
32930 if(0 != gai_strerror(0))
32931 return 1;
32932
32933 ;
32934 return 0;
32935}
32936
32937_ACEOF
32938if ac_fn_c_try_compile "$LINENO"; then :
32939
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941$as_echo "yes" >&6; }
32942 tst_compi_gai_strerror="yes"
32943
32944else
32945
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947$as_echo "no" >&6; }
32948 tst_compi_gai_strerror="no"
32949
32950fi
32951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32952 fi
32953 #
32954 if test "$tst_compi_gai_strerror" = "yes"; then
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32956$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32957 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32959$as_echo "yes" >&6; }
32960 tst_allow_gai_strerror="yes"
32961 else
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32963$as_echo "no" >&6; }
32964 tst_allow_gai_strerror="no"
32965 fi
32966 fi
32967 #
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32969$as_echo_n "checking if gai_strerror might be used... " >&6; }
32970 if test "$tst_links_gai_strerror" = "yes" &&
32971 test "$tst_proto_gai_strerror" = "yes" &&
32972 test "$tst_compi_gai_strerror" = "yes" &&
32973 test "$tst_allow_gai_strerror" = "yes"; then
32974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32975$as_echo "yes" >&6; }
32976
32977cat >>confdefs.h <<_ACEOF
32978#define HAVE_GAI_STRERROR 1
32979_ACEOF
32980
32981 curl_cv_func_gai_strerror="yes"
32982 else
32983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32984$as_echo "no" >&6; }
32985 curl_cv_func_gai_strerror="no"
32986 fi
32987
32988
32989 #
32990 tst_links_gethostbyaddr="unknown"
32991 tst_proto_gethostbyaddr="unknown"
32992 tst_compi_gethostbyaddr="unknown"
32993 tst_allow_gethostbyaddr="unknown"
32994 #
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32996$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32998/* end confdefs.h. */
32999
33000
33001 $curl_includes_winsock2
33002 $curl_includes_netdb
33003
33004int main (void)
33005{
33006
33007 if(0 != gethostbyaddr(0, 0, 0))
33008 return 1;
33009
33010 ;
33011 return 0;
33012}
33013
33014_ACEOF
33015if ac_fn_c_try_link "$LINENO"; then :
33016
33017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33018$as_echo "yes" >&6; }
33019 tst_links_gethostbyaddr="yes"
33020
33021else
33022
33023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33024$as_echo "no" >&6; }
33025 tst_links_gethostbyaddr="no"
33026
33027fi
33028rm -f core conftest.err conftest.$ac_objext \
33029 conftest$ac_exeext conftest.$ac_ext
33030 #
33031 if test "$tst_links_gethostbyaddr" = "yes"; then
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33033$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33035/* end confdefs.h. */
33036
33037 $curl_includes_winsock2
33038 $curl_includes_netdb
33039
33040_ACEOF
33041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33042 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33043
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33045$as_echo "yes" >&6; }
33046 tst_proto_gethostbyaddr="yes"
33047
33048else
33049
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33051$as_echo "no" >&6; }
33052 tst_proto_gethostbyaddr="no"
33053
33054fi
33055rm -f conftest*
33056
33057 fi
33058 #
33059 if test "$tst_proto_gethostbyaddr" = "yes"; then
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33061$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33063/* end confdefs.h. */
33064
33065
33066 $curl_includes_winsock2
33067 $curl_includes_netdb
33068
33069int main (void)
33070{
33071
33072 if(0 != gethostbyaddr(0, 0, 0))
33073 return 1;
33074
33075 ;
33076 return 0;
33077}
33078
33079_ACEOF
33080if ac_fn_c_try_compile "$LINENO"; then :
33081
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33083$as_echo "yes" >&6; }
33084 tst_compi_gethostbyaddr="yes"
33085
33086else
33087
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33089$as_echo "no" >&6; }
33090 tst_compi_gethostbyaddr="no"
33091
33092fi
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094 fi
33095 #
33096 if test "$tst_compi_gethostbyaddr" = "yes"; then
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33098$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33099 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33101$as_echo "yes" >&6; }
33102 tst_allow_gethostbyaddr="yes"
33103 else
33104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33105$as_echo "no" >&6; }
33106 tst_allow_gethostbyaddr="no"
33107 fi
33108 fi
33109 #
33110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33111$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33112 if test "$tst_links_gethostbyaddr" = "yes" &&
33113 test "$tst_proto_gethostbyaddr" = "yes" &&
33114 test "$tst_compi_gethostbyaddr" = "yes" &&
33115 test "$tst_allow_gethostbyaddr" = "yes"; then
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33117$as_echo "yes" >&6; }
33118
33119cat >>confdefs.h <<_ACEOF
33120#define HAVE_GETHOSTBYADDR 1
33121_ACEOF
33122
33123 curl_cv_func_gethostbyaddr="yes"
33124 else
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33126$as_echo "no" >&6; }
33127 curl_cv_func_gethostbyaddr="no"
33128 fi
33129
33130
33131 #
33132 tst_links_gethostbyaddr_r="unknown"
33133 tst_proto_gethostbyaddr_r="unknown"
33134 tst_compi_gethostbyaddr_r="unknown"
33135 tst_allow_gethostbyaddr_r="unknown"
33136 tst_nargs_gethostbyaddr_r="unknown"
33137 #
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33139$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33141/* end confdefs.h. */
33142
33143
33144#define gethostbyaddr_r innocuous_gethostbyaddr_r
33145#ifdef __STDC__
33146# include <limits.h>
33147#else
33148# include <assert.h>
33149#endif
33150#undef gethostbyaddr_r
33151#ifdef __cplusplus
33152extern "C"
33153#endif
33154char gethostbyaddr_r ();
33155#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33156choke me
33157#endif
33158
33159int main (void)
33160{
33161return gethostbyaddr_r ();
33162 ;
33163 return 0;
33164}
33165
33166_ACEOF
33167if ac_fn_c_try_link "$LINENO"; then :
33168
33169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33170$as_echo "yes" >&6; }
33171 tst_links_gethostbyaddr_r="yes"
33172
33173else
33174
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33176$as_echo "no" >&6; }
33177 tst_links_gethostbyaddr_r="no"
33178
33179fi
33180rm -f core conftest.err conftest.$ac_objext \
33181 conftest$ac_exeext conftest.$ac_ext
33182 #
33183 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33185$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33187/* end confdefs.h. */
33188
33189 $curl_includes_netdb
33190
33191_ACEOF
33192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33193 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33194
33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196$as_echo "yes" >&6; }
33197 tst_proto_gethostbyaddr_r="yes"
33198
33199else
33200
33201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33202$as_echo "no" >&6; }
33203 tst_proto_gethostbyaddr_r="no"
33204
33205fi
33206rm -f conftest*
33207
33208 fi
33209 #
33210 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33211 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33213$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33215/* end confdefs.h. */
33216
33217
33218 $curl_includes_netdb
33219
33220int main (void)
33221{
33222
33223 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33224 return 1;
33225
33226 ;
33227 return 0;
33228}
33229
33230_ACEOF
33231if ac_fn_c_try_compile "$LINENO"; then :
33232
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33234$as_echo "yes" >&6; }
33235 tst_compi_gethostbyaddr_r="yes"
33236 tst_nargs_gethostbyaddr_r="5"
33237
33238else
33239
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33241$as_echo "no" >&6; }
33242 tst_compi_gethostbyaddr_r="no"
33243
33244fi
33245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33246 fi
33247 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33249$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33251/* end confdefs.h. */
33252
33253
33254 $curl_includes_netdb
33255
33256int main (void)
33257{
33258
33259 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33260 return 1;
33261
33262 ;
33263 return 0;
33264}
33265
33266_ACEOF
33267if ac_fn_c_try_compile "$LINENO"; then :
33268
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33270$as_echo "yes" >&6; }
33271 tst_compi_gethostbyaddr_r="yes"
33272 tst_nargs_gethostbyaddr_r="7"
33273
33274else
33275
33276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33277$as_echo "no" >&6; }
33278 tst_compi_gethostbyaddr_r="no"
33279
33280fi
33281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33282 fi
33283 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33285$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33287/* end confdefs.h. */
33288
33289
33290 $curl_includes_netdb
33291
33292int main (void)
33293{
33294
33295 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33296 return 1;
33297
33298 ;
33299 return 0;
33300}
33301
33302_ACEOF
33303if ac_fn_c_try_compile "$LINENO"; then :
33304
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33306$as_echo "yes" >&6; }
33307 tst_compi_gethostbyaddr_r="yes"
33308 tst_nargs_gethostbyaddr_r="8"
33309
33310else
33311
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33313$as_echo "no" >&6; }
33314 tst_compi_gethostbyaddr_r="no"
33315
33316fi
33317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33318 fi
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33320$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33321 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33323$as_echo "yes" >&6; }
33324 else
33325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33326$as_echo "no" >&6; }
33327 fi
33328 fi
33329 #
33330 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33332$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33333 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33335$as_echo "yes" >&6; }
33336 tst_allow_gethostbyaddr_r="yes"
33337 else
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33339$as_echo "no" >&6; }
33340 tst_allow_gethostbyaddr_r="no"
33341 fi
33342 fi
33343 #
33344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33345$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33346 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33347 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33348 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33349 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33351$as_echo "yes" >&6; }
33352
33353cat >>confdefs.h <<_ACEOF
33354#define HAVE_GETHOSTBYADDR_R 1
33355_ACEOF
33356
33357 #
33358 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33359
33360$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33361
33362 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33363
33364$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33365
33366 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33367
33368$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33369
33370 fi
33371 #
33372 curl_cv_func_gethostbyaddr_r="yes"
33373 else
33374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33375$as_echo "no" >&6; }
33376 curl_cv_func_gethostbyaddr_r="no"
33377 fi
33378
33379
33380 #
33381 tst_links_gethostbyname="unknown"
33382 tst_proto_gethostbyname="unknown"
33383 tst_compi_gethostbyname="unknown"
33384 tst_allow_gethostbyname="unknown"
33385 #
33386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33387$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33389/* end confdefs.h. */
33390
33391
33392 $curl_includes_winsock2
33393 $curl_includes_netdb
33394
33395int main (void)
33396{
33397
33398 if(0 != gethostbyname(0))
33399 return 1;
33400
33401 ;
33402 return 0;
33403}
33404
33405_ACEOF
33406if ac_fn_c_try_link "$LINENO"; then :
33407
33408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33409$as_echo "yes" >&6; }
33410 tst_links_gethostbyname="yes"
33411
33412else
33413
33414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33415$as_echo "no" >&6; }
33416 tst_links_gethostbyname="no"
33417
33418fi
33419rm -f core conftest.err conftest.$ac_objext \
33420 conftest$ac_exeext conftest.$ac_ext
33421 #
33422 if test "$tst_links_gethostbyname" = "yes"; then
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33424$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33426/* end confdefs.h. */
33427
33428 $curl_includes_winsock2
33429 $curl_includes_netdb
33430
33431_ACEOF
33432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33433 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33434
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33436$as_echo "yes" >&6; }
33437 tst_proto_gethostbyname="yes"
33438
33439else
33440
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33442$as_echo "no" >&6; }
33443 tst_proto_gethostbyname="no"
33444
33445fi
33446rm -f conftest*
33447
33448 fi
33449 #
33450 if test "$tst_proto_gethostbyname" = "yes"; then
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33452$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33454/* end confdefs.h. */
33455
33456
33457 $curl_includes_winsock2
33458 $curl_includes_netdb
33459
33460int main (void)
33461{
33462
33463 if(0 != gethostbyname(0))
33464 return 1;
33465
33466 ;
33467 return 0;
33468}
33469
33470_ACEOF
33471if ac_fn_c_try_compile "$LINENO"; then :
33472
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33474$as_echo "yes" >&6; }
33475 tst_compi_gethostbyname="yes"
33476
33477else
33478
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33480$as_echo "no" >&6; }
33481 tst_compi_gethostbyname="no"
33482
33483fi
33484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33485 fi
33486 #
33487 if test "$tst_compi_gethostbyname" = "yes"; then
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33489$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33490 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33492$as_echo "yes" >&6; }
33493 tst_allow_gethostbyname="yes"
33494 else
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33496$as_echo "no" >&6; }
33497 tst_allow_gethostbyname="no"
33498 fi
33499 fi
33500 #
33501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33502$as_echo_n "checking if gethostbyname might be used... " >&6; }
33503 if test "$tst_links_gethostbyname" = "yes" &&
33504 test "$tst_proto_gethostbyname" = "yes" &&
33505 test "$tst_compi_gethostbyname" = "yes" &&
33506 test "$tst_allow_gethostbyname" = "yes"; then
33507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33508$as_echo "yes" >&6; }
33509
33510cat >>confdefs.h <<_ACEOF
33511#define HAVE_GETHOSTBYNAME 1
33512_ACEOF
33513
33514 curl_cv_func_gethostbyname="yes"
33515 else
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33517$as_echo "no" >&6; }
33518 curl_cv_func_gethostbyname="no"
33519 fi
33520
33521
33522 #
33523 tst_links_gethostbyname_r="unknown"
33524 tst_proto_gethostbyname_r="unknown"
33525 tst_compi_gethostbyname_r="unknown"
33526 tst_allow_gethostbyname_r="unknown"
33527 tst_nargs_gethostbyname_r="unknown"
33528 #
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33530$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33532/* end confdefs.h. */
33533
33534
33535#define gethostbyname_r innocuous_gethostbyname_r
33536#ifdef __STDC__
33537# include <limits.h>
33538#else
33539# include <assert.h>
33540#endif
33541#undef gethostbyname_r
33542#ifdef __cplusplus
33543extern "C"
33544#endif
33545char gethostbyname_r ();
33546#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33547choke me
33548#endif
33549
33550int main (void)
33551{
33552return gethostbyname_r ();
33553 ;
33554 return 0;
33555}
33556
33557_ACEOF
33558if ac_fn_c_try_link "$LINENO"; then :
33559
33560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33561$as_echo "yes" >&6; }
33562 tst_links_gethostbyname_r="yes"
33563
33564else
33565
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33567$as_echo "no" >&6; }
33568 tst_links_gethostbyname_r="no"
33569
33570fi
33571rm -f core conftest.err conftest.$ac_objext \
33572 conftest$ac_exeext conftest.$ac_ext
33573 #
33574 if test "$tst_links_gethostbyname_r" = "yes"; then
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33576$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33578/* end confdefs.h. */
33579
33580 $curl_includes_netdb
33581
33582_ACEOF
33583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33584 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33585
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33587$as_echo "yes" >&6; }
33588 tst_proto_gethostbyname_r="yes"
33589
33590else
33591
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33593$as_echo "no" >&6; }
33594 tst_proto_gethostbyname_r="no"
33595
33596fi
33597rm -f conftest*
33598
33599 fi
33600 #
33601 if test "$tst_proto_gethostbyname_r" = "yes"; then
33602 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33604$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33606/* end confdefs.h. */
33607
33608
33609 $curl_includes_netdb
33610
33611int main (void)
33612{
33613
33614 if(0 != gethostbyname_r(0, 0, 0))
33615 return 1;
33616
33617 ;
33618 return 0;
33619}
33620
33621_ACEOF
33622if ac_fn_c_try_compile "$LINENO"; then :
33623
33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33625$as_echo "yes" >&6; }
33626 tst_compi_gethostbyname_r="yes"
33627 tst_nargs_gethostbyname_r="3"
33628
33629else
33630
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33632$as_echo "no" >&6; }
33633 tst_compi_gethostbyname_r="no"
33634
33635fi
33636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33637 fi
33638 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33640$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33642/* end confdefs.h. */
33643
33644
33645 $curl_includes_netdb
33646
33647int main (void)
33648{
33649
33650 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33651 return 1;
33652
33653 ;
33654 return 0;
33655}
33656
33657_ACEOF
33658if ac_fn_c_try_compile "$LINENO"; then :
33659
33660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33661$as_echo "yes" >&6; }
33662 tst_compi_gethostbyname_r="yes"
33663 tst_nargs_gethostbyname_r="5"
33664
33665else
33666
33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33668$as_echo "no" >&6; }
33669 tst_compi_gethostbyname_r="no"
33670
33671fi
33672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33673 fi
33674 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33676$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33678/* end confdefs.h. */
33679
33680
33681 $curl_includes_netdb
33682
33683int main (void)
33684{
33685
33686 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33687 return 1;
33688
33689 ;
33690 return 0;
33691}
33692
33693_ACEOF
33694if ac_fn_c_try_compile "$LINENO"; then :
33695
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33697$as_echo "yes" >&6; }
33698 tst_compi_gethostbyname_r="yes"
33699 tst_nargs_gethostbyname_r="6"
33700
33701else
33702
33703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33704$as_echo "no" >&6; }
33705 tst_compi_gethostbyname_r="no"
33706
33707fi
33708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33709 fi
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33711$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33712 if test "$tst_compi_gethostbyname_r" = "yes"; then
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33714$as_echo "yes" >&6; }
33715 else
33716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33717$as_echo "no" >&6; }
33718 fi
33719 fi
33720 #
33721 if test "$tst_compi_gethostbyname_r" = "yes"; then
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33723$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33724 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33726$as_echo "yes" >&6; }
33727 tst_allow_gethostbyname_r="yes"
33728 else
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33730$as_echo "no" >&6; }
33731 tst_allow_gethostbyname_r="no"
33732 fi
33733 fi
33734 #
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33736$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33737 if test "$tst_links_gethostbyname_r" = "yes" &&
33738 test "$tst_proto_gethostbyname_r" = "yes" &&
33739 test "$tst_compi_gethostbyname_r" = "yes" &&
33740 test "$tst_allow_gethostbyname_r" = "yes"; then
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33742$as_echo "yes" >&6; }
33743
33744cat >>confdefs.h <<_ACEOF
33745#define HAVE_GETHOSTBYNAME_R 1
33746_ACEOF
33747
33748 #
33749 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33750
33751$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33752
33753 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33754
33755$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33756
33757 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33758
33759$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33760
33761 fi
33762 #
33763 curl_cv_func_gethostbyname_r="yes"
33764 else
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766$as_echo "no" >&6; }
33767 curl_cv_func_gethostbyname_r="no"
33768 fi
33769
33770
Elliott Hughesa93fb052018-12-12 14:22:48 -080033771curl_preprocess_callconv="\
33772/* preprocess start */
33773#ifdef HAVE_WINDOWS_H
33774# define FUNCALLCONV __stdcall
33775#else
33776# define FUNCALLCONV
33777#endif
33778/* preprocess end */"
33779
33780
Elliott Hughes82be86d2017-09-20 17:00:17 -070033781 #
33782 tst_links_gethostname="unknown"
33783 tst_proto_gethostname="unknown"
33784 tst_compi_gethostname="unknown"
33785 tst_allow_gethostname="unknown"
33786 #
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33788$as_echo_n "checking if gethostname can be linked... " >&6; }
33789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33790/* end confdefs.h. */
33791
33792
33793 $curl_includes_winsock2
33794 $curl_includes_unistd
33795
33796int main (void)
33797{
33798
33799 if(0 != gethostname(0, 0))
33800 return 1;
33801
33802 ;
33803 return 0;
33804}
33805
33806_ACEOF
33807if ac_fn_c_try_link "$LINENO"; then :
33808
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33810$as_echo "yes" >&6; }
33811 tst_links_gethostname="yes"
33812
33813else
33814
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816$as_echo "no" >&6; }
33817 tst_links_gethostname="no"
33818
33819fi
33820rm -f core conftest.err conftest.$ac_objext \
33821 conftest$ac_exeext conftest.$ac_ext
33822 #
33823 if test "$tst_links_gethostname" = "yes"; then
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33825$as_echo_n "checking if gethostname is prototyped... " >&6; }
33826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33827/* end confdefs.h. */
33828
33829 $curl_includes_winsock2
33830 $curl_includes_unistd
33831
33832_ACEOF
33833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33834 $EGREP "gethostname" >/dev/null 2>&1; then :
33835
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33837$as_echo "yes" >&6; }
33838 tst_proto_gethostname="yes"
33839
33840else
33841
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33843$as_echo "no" >&6; }
33844 tst_proto_gethostname="no"
33845
33846fi
33847rm -f conftest*
33848
33849 fi
33850 #
33851 if test "$tst_proto_gethostname" = "yes"; then
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33853$as_echo_n "checking if gethostname is compilable... " >&6; }
33854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33855/* end confdefs.h. */
33856
33857
33858 $curl_includes_winsock2
33859 $curl_includes_unistd
33860
33861int main (void)
33862{
33863
33864 if(0 != gethostname(0, 0))
33865 return 1;
33866
33867 ;
33868 return 0;
33869}
33870
33871_ACEOF
33872if ac_fn_c_try_compile "$LINENO"; then :
33873
33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33875$as_echo "yes" >&6; }
33876 tst_compi_gethostname="yes"
33877
33878else
33879
33880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33881$as_echo "no" >&6; }
33882 tst_compi_gethostname="no"
33883
33884fi
33885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33886 fi
33887 #
33888 if test "$tst_compi_gethostname" = "yes"; then
33889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33890$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33891 tst_gethostname_type_arg2="unknown"
33892 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33893 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33894 if test "$tst_gethostname_type_arg2" = "unknown"; then
33895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33896/* end confdefs.h. */
33897
33898
33899 $curl_includes_winsock2
33900 $curl_includes_unistd
33901 $curl_preprocess_callconv
33902 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33903
33904int main (void)
33905{
33906
33907 if(0 != gethostname(0, 0))
33908 return 1;
33909
33910 ;
33911 return 0;
33912}
33913
33914_ACEOF
33915if ac_fn_c_try_compile "$LINENO"; then :
33916
33917 tst_gethostname_type_arg2="$tst_arg2"
33918
33919fi
33920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33921 fi
33922 done
33923 done
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33925$as_echo "$tst_gethostname_type_arg2" >&6; }
33926 if test "$tst_gethostname_type_arg2" != "unknown"; then
33927
33928cat >>confdefs.h <<_ACEOF
33929#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33930_ACEOF
33931
33932 fi
33933 fi
33934 #
33935 if test "$tst_compi_gethostname" = "yes"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33937$as_echo_n "checking if gethostname usage allowed... " >&6; }
33938 if test "x$curl_disallow_gethostname" != "xyes"; then
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33940$as_echo "yes" >&6; }
33941 tst_allow_gethostname="yes"
33942 else
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33944$as_echo "no" >&6; }
33945 tst_allow_gethostname="no"
33946 fi
33947 fi
33948 #
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33950$as_echo_n "checking if gethostname might be used... " >&6; }
33951 if test "$tst_links_gethostname" = "yes" &&
33952 test "$tst_proto_gethostname" = "yes" &&
33953 test "$tst_compi_gethostname" = "yes" &&
33954 test "$tst_allow_gethostname" = "yes"; then
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33956$as_echo "yes" >&6; }
33957
33958cat >>confdefs.h <<_ACEOF
33959#define HAVE_GETHOSTNAME 1
33960_ACEOF
33961
33962 curl_cv_func_gethostname="yes"
33963 else
33964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33965$as_echo "no" >&6; }
33966 curl_cv_func_gethostname="no"
33967 fi
33968
33969
33970 #
33971 tst_links_getifaddrs="unknown"
33972 tst_proto_getifaddrs="unknown"
33973 tst_compi_getifaddrs="unknown"
33974 tst_works_getifaddrs="unknown"
33975 tst_allow_getifaddrs="unknown"
33976 #
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33978$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33980/* end confdefs.h. */
33981
33982
33983#define getifaddrs innocuous_getifaddrs
33984#ifdef __STDC__
33985# include <limits.h>
33986#else
33987# include <assert.h>
33988#endif
33989#undef getifaddrs
33990#ifdef __cplusplus
33991extern "C"
33992#endif
33993char getifaddrs ();
33994#if defined __stub_getifaddrs || defined __stub___getifaddrs
33995choke me
33996#endif
33997
33998int main (void)
33999{
34000return getifaddrs ();
34001 ;
34002 return 0;
34003}
34004
34005_ACEOF
34006if ac_fn_c_try_link "$LINENO"; then :
34007
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34009$as_echo "yes" >&6; }
34010 tst_links_getifaddrs="yes"
34011
34012else
34013
34014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34015$as_echo "no" >&6; }
34016 tst_links_getifaddrs="no"
34017
34018fi
34019rm -f core conftest.err conftest.$ac_objext \
34020 conftest$ac_exeext conftest.$ac_ext
34021 #
34022 if test "$tst_links_getifaddrs" = "yes"; then
34023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34024$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34026/* end confdefs.h. */
34027
34028 $curl_includes_ifaddrs
34029
34030_ACEOF
34031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34032 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34033
34034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34035$as_echo "yes" >&6; }
34036 tst_proto_getifaddrs="yes"
34037
34038else
34039
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34041$as_echo "no" >&6; }
34042 tst_proto_getifaddrs="no"
34043
34044fi
34045rm -f conftest*
34046
34047 fi
34048 #
34049 if test "$tst_proto_getifaddrs" = "yes"; then
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34051$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34053/* end confdefs.h. */
34054
34055
34056 $curl_includes_ifaddrs
34057
34058int main (void)
34059{
34060
34061 if(0 != getifaddrs(0))
34062 return 1;
34063
34064 ;
34065 return 0;
34066}
34067
34068_ACEOF
34069if ac_fn_c_try_compile "$LINENO"; then :
34070
34071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34072$as_echo "yes" >&6; }
34073 tst_compi_getifaddrs="yes"
34074
34075else
34076
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34078$as_echo "no" >&6; }
34079 tst_compi_getifaddrs="no"
34080
34081fi
34082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34083 fi
34084 #
34085 if test "x$cross_compiling" != "xyes" &&
34086 test "$tst_compi_getifaddrs" = "yes"; then
34087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34088$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034089
34090
34091 old=$LD_LIBRARY_PATH
34092 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34093 export LD_LIBRARY_PATH
34094 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34097as_fn_error $? "cannot run test program while cross compiling
34098See \`config.log' for more details" "$LINENO" 5; }
34099else
34100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34101/* end confdefs.h. */
34102
34103
34104 $curl_includes_stdlib
34105 $curl_includes_ifaddrs
34106
34107int main (void)
34108{
34109
34110 struct ifaddrs *ifa = 0;
34111 int error;
34112
34113 error = getifaddrs(&ifa);
34114 if(error || !ifa)
34115 exit(1); /* fail */
34116 else
34117 exit(0);
34118
34119 ;
34120 return 0;
34121}
34122
34123_ACEOF
34124if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034126$as_echo "yes" >&6; }
34127 tst_works_getifaddrs="yes"
34128
34129else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034131$as_echo "no" >&6; }
34132 tst_works_getifaddrs="no"
34133
34134fi
34135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34136 conftest.$ac_objext conftest.beam conftest.$ac_ext
34137fi
34138
Elliott Hughesa93fb052018-12-12 14:22:48 -080034139 LD_LIBRARY_PATH=$old # restore
34140
Elliott Hughes82be86d2017-09-20 17:00:17 -070034141 fi
34142 #
34143 if test "$tst_compi_getifaddrs" = "yes" &&
34144 test "$tst_works_getifaddrs" != "no"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34146$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34147 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34149$as_echo "yes" >&6; }
34150 tst_allow_getifaddrs="yes"
34151 else
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34153$as_echo "no" >&6; }
34154 tst_allow_getifaddrs="no"
34155 fi
34156 fi
34157 #
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34159$as_echo_n "checking if getifaddrs might be used... " >&6; }
34160 if test "$tst_links_getifaddrs" = "yes" &&
34161 test "$tst_proto_getifaddrs" = "yes" &&
34162 test "$tst_compi_getifaddrs" = "yes" &&
34163 test "$tst_allow_getifaddrs" = "yes" &&
34164 test "$tst_works_getifaddrs" != "no"; then
34165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34166$as_echo "yes" >&6; }
34167
34168cat >>confdefs.h <<_ACEOF
34169#define HAVE_GETIFADDRS 1
34170_ACEOF
34171
34172 curl_cv_func_getifaddrs="yes"
34173 else
34174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34175$as_echo "no" >&6; }
34176 curl_cv_func_getifaddrs="no"
34177 fi
34178
34179
34180 #
34181 tst_links_getservbyport_r="unknown"
34182 tst_proto_getservbyport_r="unknown"
34183 tst_compi_getservbyport_r="unknown"
34184 tst_allow_getservbyport_r="unknown"
34185 tst_nargs_getservbyport_r="unknown"
34186 #
34187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34188$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34190/* end confdefs.h. */
34191
34192
34193#define getservbyport_r innocuous_getservbyport_r
34194#ifdef __STDC__
34195# include <limits.h>
34196#else
34197# include <assert.h>
34198#endif
34199#undef getservbyport_r
34200#ifdef __cplusplus
34201extern "C"
34202#endif
34203char getservbyport_r ();
34204#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34205choke me
34206#endif
34207
34208int main (void)
34209{
34210return getservbyport_r ();
34211 ;
34212 return 0;
34213}
34214
34215_ACEOF
34216if ac_fn_c_try_link "$LINENO"; then :
34217
34218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34219$as_echo "yes" >&6; }
34220 tst_links_getservbyport_r="yes"
34221
34222else
34223
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34225$as_echo "no" >&6; }
34226 tst_links_getservbyport_r="no"
34227
34228fi
34229rm -f core conftest.err conftest.$ac_objext \
34230 conftest$ac_exeext conftest.$ac_ext
34231 #
34232 if test "$tst_links_getservbyport_r" = "yes"; then
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34234$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34236/* end confdefs.h. */
34237
34238 $curl_includes_netdb
34239
34240_ACEOF
34241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34242 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34243
34244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34245$as_echo "yes" >&6; }
34246 tst_proto_getservbyport_r="yes"
34247
34248else
34249
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34251$as_echo "no" >&6; }
34252 tst_proto_getservbyport_r="no"
34253
34254fi
34255rm -f conftest*
34256
34257 fi
34258 #
34259 if test "$tst_proto_getservbyport_r" = "yes"; then
34260 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34262$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34264/* end confdefs.h. */
34265
34266
34267 $curl_includes_netdb
34268
34269int main (void)
34270{
34271
34272 if(0 != getservbyport_r(0, 0, 0, 0))
34273 return 1;
34274
34275 ;
34276 return 0;
34277}
34278
34279_ACEOF
34280if ac_fn_c_try_compile "$LINENO"; then :
34281
34282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34283$as_echo "yes" >&6; }
34284 tst_compi_getservbyport_r="yes"
34285 tst_nargs_getservbyport_r="4"
34286
34287else
34288
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34290$as_echo "no" >&6; }
34291 tst_compi_getservbyport_r="no"
34292
34293fi
34294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34295 fi
34296 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34298$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34300/* end confdefs.h. */
34301
34302
34303 $curl_includes_netdb
34304
34305int main (void)
34306{
34307
34308 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34309 return 1;
34310
34311 ;
34312 return 0;
34313}
34314
34315_ACEOF
34316if ac_fn_c_try_compile "$LINENO"; then :
34317
34318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34319$as_echo "yes" >&6; }
34320 tst_compi_getservbyport_r="yes"
34321 tst_nargs_getservbyport_r="5"
34322
34323else
34324
34325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34326$as_echo "no" >&6; }
34327 tst_compi_getservbyport_r="no"
34328
34329fi
34330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34331 fi
34332 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34334$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34336/* end confdefs.h. */
34337
34338
34339 $curl_includes_netdb
34340
34341int main (void)
34342{
34343
34344 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34345 return 1;
34346
34347 ;
34348 return 0;
34349}
34350
34351_ACEOF
34352if ac_fn_c_try_compile "$LINENO"; then :
34353
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34355$as_echo "yes" >&6; }
34356 tst_compi_getservbyport_r="yes"
34357 tst_nargs_getservbyport_r="6"
34358
34359else
34360
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34362$as_echo "no" >&6; }
34363 tst_compi_getservbyport_r="no"
34364
34365fi
34366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34367 fi
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34369$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34370 if test "$tst_compi_getservbyport_r" = "yes"; then
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34372$as_echo "yes" >&6; }
34373 else
34374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34375$as_echo "no" >&6; }
34376 fi
34377 fi
34378 #
34379 if test "$tst_compi_getservbyport_r" = "yes"; then
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34381$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34382 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34384$as_echo "yes" >&6; }
34385 tst_allow_getservbyport_r="yes"
34386 else
34387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34388$as_echo "no" >&6; }
34389 tst_allow_getservbyport_r="no"
34390 fi
34391 fi
34392 #
34393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34394$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34395 if test "$tst_links_getservbyport_r" = "yes" &&
34396 test "$tst_proto_getservbyport_r" = "yes" &&
34397 test "$tst_compi_getservbyport_r" = "yes" &&
34398 test "$tst_allow_getservbyport_r" = "yes"; then
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34400$as_echo "yes" >&6; }
34401
34402cat >>confdefs.h <<_ACEOF
34403#define HAVE_GETSERVBYPORT_R 1
34404_ACEOF
34405
34406
34407cat >>confdefs.h <<_ACEOF
34408#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34409_ACEOF
34410
34411 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34412
34413$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34414
34415 else
34416
34417$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34418
34419 fi
34420 curl_cv_func_getservbyport_r="yes"
34421 else
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34423$as_echo "no" >&6; }
34424 curl_cv_func_getservbyport_r="no"
34425 fi
34426
34427
34428curl_includes_time="\
34429/* includes start */
34430#ifdef HAVE_SYS_TYPES_H
34431# include <sys/types.h>
34432#endif
34433#ifdef HAVE_SYS_TIME_H
34434# include <sys/time.h>
34435# ifdef TIME_WITH_SYS_TIME
34436# include <time.h>
34437# endif
34438#else
34439# ifdef HAVE_TIME_H
34440# include <time.h>
34441# endif
34442#endif
34443/* includes end */"
34444 for ac_header in sys/types.h sys/time.h time.h
34445do :
34446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34447ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34448"
34449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34450 cat >>confdefs.h <<_ACEOF
34451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34452_ACEOF
34453
34454fi
34455
34456done
34457
34458
34459
34460 #
34461 tst_links_gmtime_r="unknown"
34462 tst_proto_gmtime_r="unknown"
34463 tst_compi_gmtime_r="unknown"
34464 tst_works_gmtime_r="unknown"
34465 tst_allow_gmtime_r="unknown"
34466 #
34467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34468$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34470/* end confdefs.h. */
34471
34472
34473#define gmtime_r innocuous_gmtime_r
34474#ifdef __STDC__
34475# include <limits.h>
34476#else
34477# include <assert.h>
34478#endif
34479#undef gmtime_r
34480#ifdef __cplusplus
34481extern "C"
34482#endif
34483char gmtime_r ();
34484#if defined __stub_gmtime_r || defined __stub___gmtime_r
34485choke me
34486#endif
34487
34488int main (void)
34489{
34490return gmtime_r ();
34491 ;
34492 return 0;
34493}
34494
34495_ACEOF
34496if ac_fn_c_try_link "$LINENO"; then :
34497
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34499$as_echo "yes" >&6; }
34500 tst_links_gmtime_r="yes"
34501
34502else
34503
34504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34505$as_echo "no" >&6; }
34506 tst_links_gmtime_r="no"
34507
34508fi
34509rm -f core conftest.err conftest.$ac_objext \
34510 conftest$ac_exeext conftest.$ac_ext
34511 #
34512 if test "$tst_links_gmtime_r" = "yes"; then
34513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34514$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34516/* end confdefs.h. */
34517
34518 $curl_includes_time
34519
34520_ACEOF
34521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34522 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34523
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34525$as_echo "yes" >&6; }
34526 tst_proto_gmtime_r="yes"
34527
34528else
34529
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34531$as_echo "no" >&6; }
34532 tst_proto_gmtime_r="no"
34533
34534fi
34535rm -f conftest*
34536
34537 fi
34538 #
34539 if test "$tst_proto_gmtime_r" = "yes"; then
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34541$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34543/* end confdefs.h. */
34544
34545
34546 $curl_includes_time
34547
34548int main (void)
34549{
34550
34551 if(0 != gmtime_r(0, 0))
34552 return 1;
34553
34554 ;
34555 return 0;
34556}
34557
34558_ACEOF
34559if ac_fn_c_try_compile "$LINENO"; then :
34560
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34562$as_echo "yes" >&6; }
34563 tst_compi_gmtime_r="yes"
34564
34565else
34566
34567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34568$as_echo "no" >&6; }
34569 tst_compi_gmtime_r="no"
34570
34571fi
34572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34573 fi
34574 #
34575 if test "x$cross_compiling" != "xyes" &&
34576 test "$tst_compi_gmtime_r" = "yes"; then
34577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34578$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034579
34580
34581 old=$LD_LIBRARY_PATH
34582 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34583 export LD_LIBRARY_PATH
34584 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34587as_fn_error $? "cannot run test program while cross compiling
34588See \`config.log' for more details" "$LINENO" 5; }
34589else
34590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34591/* end confdefs.h. */
34592
34593
34594 $curl_includes_stdlib
34595 $curl_includes_time
34596
34597int main (void)
34598{
34599
34600 time_t local = 1170352587;
34601 struct tm *gmt = 0;
34602 struct tm result;
34603 gmt = gmtime_r(&local, &result);
34604 if(gmt)
34605 exit(0);
34606 else
34607 exit(1);
34608
34609 ;
34610 return 0;
34611}
34612
34613_ACEOF
34614if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034616$as_echo "yes" >&6; }
34617 tst_works_gmtime_r="yes"
34618
34619else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034621$as_echo "no" >&6; }
34622 tst_works_gmtime_r="no"
34623
34624fi
34625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34626 conftest.$ac_objext conftest.beam conftest.$ac_ext
34627fi
34628
Elliott Hughesa93fb052018-12-12 14:22:48 -080034629 LD_LIBRARY_PATH=$old # restore
34630
Elliott Hughes82be86d2017-09-20 17:00:17 -070034631 fi
34632 #
34633 if test "$tst_compi_gmtime_r" = "yes" &&
34634 test "$tst_works_gmtime_r" != "no"; then
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34636$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34637 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34639$as_echo "yes" >&6; }
34640 tst_allow_gmtime_r="yes"
34641 else
34642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34643$as_echo "no" >&6; }
34644 tst_allow_gmtime_r="no"
34645 fi
34646 fi
34647 #
34648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34649$as_echo_n "checking if gmtime_r might be used... " >&6; }
34650 if test "$tst_links_gmtime_r" = "yes" &&
34651 test "$tst_proto_gmtime_r" = "yes" &&
34652 test "$tst_compi_gmtime_r" = "yes" &&
34653 test "$tst_allow_gmtime_r" = "yes" &&
34654 test "$tst_works_gmtime_r" != "no"; then
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34656$as_echo "yes" >&6; }
34657
34658cat >>confdefs.h <<_ACEOF
34659#define HAVE_GMTIME_R 1
34660_ACEOF
34661
34662 curl_cv_func_gmtime_r="yes"
34663 else
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34665$as_echo "no" >&6; }
34666 curl_cv_func_gmtime_r="no"
34667 fi
34668
34669
34670curl_includes_arpa_inet="\
34671/* includes start */
34672#ifdef HAVE_SYS_TYPES_H
34673# include <sys/types.h>
34674#endif
34675#ifdef HAVE_SYS_SOCKET_H
34676# include <sys/socket.h>
34677#endif
34678#ifdef HAVE_NETINET_IN_H
34679# include <netinet/in.h>
34680#endif
34681#ifdef HAVE_ARPA_INET_H
34682# include <arpa/inet.h>
34683#endif
34684#ifdef HAVE_WINSOCK2_H
34685#include <winsock2.h>
34686#include <ws2tcpip.h>
34687#endif
34688/* includes end */"
34689 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34690do :
34691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34692ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34693"
34694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34695 cat >>confdefs.h <<_ACEOF
34696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34697_ACEOF
34698
34699fi
34700
34701done
34702
34703
34704
34705 #
34706 tst_links_inet_ntoa_r="unknown"
34707 tst_proto_inet_ntoa_r="unknown"
34708 tst_compi_inet_ntoa_r="unknown"
34709 tst_allow_inet_ntoa_r="unknown"
34710 tst_nargs_inet_ntoa_r="unknown"
34711 #
34712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34713$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34715/* end confdefs.h. */
34716
34717
34718#define inet_ntoa_r innocuous_inet_ntoa_r
34719#ifdef __STDC__
34720# include <limits.h>
34721#else
34722# include <assert.h>
34723#endif
34724#undef inet_ntoa_r
34725#ifdef __cplusplus
34726extern "C"
34727#endif
34728char inet_ntoa_r ();
34729#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34730choke me
34731#endif
34732
34733int main (void)
34734{
34735return inet_ntoa_r ();
34736 ;
34737 return 0;
34738}
34739
34740_ACEOF
34741if ac_fn_c_try_link "$LINENO"; then :
34742
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34744$as_echo "yes" >&6; }
34745 tst_links_inet_ntoa_r="yes"
34746
34747else
34748
34749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34750$as_echo "no" >&6; }
34751 tst_links_inet_ntoa_r="no"
34752
34753fi
34754rm -f core conftest.err conftest.$ac_objext \
34755 conftest$ac_exeext conftest.$ac_ext
34756 #
34757 if test "$tst_links_inet_ntoa_r" = "yes"; then
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34759$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34761/* end confdefs.h. */
34762
34763 $curl_includes_arpa_inet
34764
34765_ACEOF
34766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34767 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34768
34769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34770$as_echo "yes" >&6; }
34771 tst_proto_inet_ntoa_r="yes"
34772
34773else
34774
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34776$as_echo "no" >&6; }
34777 tst_proto_inet_ntoa_r="no"
34778
34779fi
34780rm -f conftest*
34781
34782 fi
34783 #
34784 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34785 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34787$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34789/* end confdefs.h. */
34790
34791
34792 $curl_includes_arpa_inet
34793
34794int main (void)
34795{
34796
34797 struct in_addr addr;
34798 if(0 != inet_ntoa_r(addr, 0))
34799 return 1;
34800
34801 ;
34802 return 0;
34803}
34804
34805_ACEOF
34806if ac_fn_c_try_compile "$LINENO"; then :
34807
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34809$as_echo "yes" >&6; }
34810 tst_compi_inet_ntoa_r="yes"
34811 tst_nargs_inet_ntoa_r="2"
34812
34813else
34814
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34816$as_echo "no" >&6; }
34817 tst_compi_inet_ntoa_r="no"
34818
34819fi
34820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34821 fi
34822 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34824$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34826/* end confdefs.h. */
34827
34828
34829 $curl_includes_arpa_inet
34830
34831int main (void)
34832{
34833
34834 struct in_addr addr;
34835 if(0 != inet_ntoa_r(addr, 0, 0))
34836 return 1;
34837
34838 ;
34839 return 0;
34840}
34841
34842_ACEOF
34843if ac_fn_c_try_compile "$LINENO"; then :
34844
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34846$as_echo "yes" >&6; }
34847 tst_compi_inet_ntoa_r="yes"
34848 tst_nargs_inet_ntoa_r="3"
34849
34850else
34851
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34853$as_echo "no" >&6; }
34854 tst_compi_inet_ntoa_r="no"
34855
34856fi
34857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34858 fi
34859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34860$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34861 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34863$as_echo "yes" >&6; }
34864 else
34865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34866$as_echo "no" >&6; }
34867 fi
34868 fi
34869 #
34870 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34872$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34873 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34875$as_echo "yes" >&6; }
34876 tst_allow_inet_ntoa_r="yes"
34877 else
34878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34879$as_echo "no" >&6; }
34880 tst_allow_inet_ntoa_r="no"
34881 fi
34882 fi
34883 #
34884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34885$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34886 if test "$tst_links_inet_ntoa_r" = "yes" &&
34887 test "$tst_proto_inet_ntoa_r" = "yes" &&
34888 test "$tst_compi_inet_ntoa_r" = "yes" &&
34889 test "$tst_allow_inet_ntoa_r" = "yes"; then
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34891$as_echo "yes" >&6; }
34892
34893cat >>confdefs.h <<_ACEOF
34894#define HAVE_INET_NTOA_R 1
34895_ACEOF
34896
34897 #
34898 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34899
34900$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34901
34902 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34903
34904$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34905
34906 fi
34907 #
34908 curl_cv_func_inet_ntoa_r="yes"
34909 else
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34911$as_echo "no" >&6; }
34912 curl_cv_func_inet_ntoa_r="no"
34913 fi
34914
34915
34916 #
34917 tst_links_inet_ntop="unknown"
34918 tst_proto_inet_ntop="unknown"
34919 tst_compi_inet_ntop="unknown"
34920 tst_works_inet_ntop="unknown"
34921 tst_allow_inet_ntop="unknown"
34922 #
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34924$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34926/* end confdefs.h. */
34927
34928
34929#define inet_ntop innocuous_inet_ntop
34930#ifdef __STDC__
34931# include <limits.h>
34932#else
34933# include <assert.h>
34934#endif
34935#undef inet_ntop
34936#ifdef __cplusplus
34937extern "C"
34938#endif
34939char inet_ntop ();
34940#if defined __stub_inet_ntop || defined __stub___inet_ntop
34941choke me
34942#endif
34943
34944int main (void)
34945{
34946return inet_ntop ();
34947 ;
34948 return 0;
34949}
34950
34951_ACEOF
34952if ac_fn_c_try_link "$LINENO"; then :
34953
34954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34955$as_echo "yes" >&6; }
34956 tst_links_inet_ntop="yes"
34957
34958else
34959
34960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34961$as_echo "no" >&6; }
34962 tst_links_inet_ntop="no"
34963
34964fi
34965rm -f core conftest.err conftest.$ac_objext \
34966 conftest$ac_exeext conftest.$ac_ext
34967 #
34968 if test "$tst_links_inet_ntop" = "yes"; then
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34970$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34972/* end confdefs.h. */
34973
34974 $curl_includes_arpa_inet
34975
34976_ACEOF
34977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34978 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34979
34980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34981$as_echo "yes" >&6; }
34982 tst_proto_inet_ntop="yes"
34983
34984else
34985
34986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34987$as_echo "no" >&6; }
34988 tst_proto_inet_ntop="no"
34989
34990fi
34991rm -f conftest*
34992
34993 fi
34994 #
34995 if test "$tst_proto_inet_ntop" = "yes"; then
34996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34997$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34999/* end confdefs.h. */
35000
35001
35002 $curl_includes_arpa_inet
35003
35004int main (void)
35005{
35006
35007 if(0 != inet_ntop(0, 0, 0, 0))
35008 return 1;
35009
35010 ;
35011 return 0;
35012}
35013
35014_ACEOF
35015if ac_fn_c_try_compile "$LINENO"; then :
35016
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35018$as_echo "yes" >&6; }
35019 tst_compi_inet_ntop="yes"
35020
35021else
35022
35023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35024$as_echo "no" >&6; }
35025 tst_compi_inet_ntop="no"
35026
35027fi
35028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35029 fi
35030 #
35031 if test "x$cross_compiling" != "xyes" &&
35032 test "$tst_compi_inet_ntop" = "yes"; then
35033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35034$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035035
35036
35037 old=$LD_LIBRARY_PATH
35038 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35039 export LD_LIBRARY_PATH
35040 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35043as_fn_error $? "cannot run test program while cross compiling
35044See \`config.log' for more details" "$LINENO" 5; }
35045else
35046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35047/* end confdefs.h. */
35048
35049
35050 $curl_includes_stdlib
35051 $curl_includes_arpa_inet
35052 $curl_includes_string
35053
35054int main (void)
35055{
35056
35057 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35058 char ipv4res[sizeof "255.255.255.255"];
35059 unsigned char ipv6a[26];
35060 unsigned char ipv4a[5];
35061 char *ipv6ptr = 0;
35062 char *ipv4ptr = 0;
35063 /* - */
35064 ipv4res[0] = '\0';
35065 ipv4a[0] = 0xc0;
35066 ipv4a[1] = 0xa8;
35067 ipv4a[2] = 0x64;
35068 ipv4a[3] = 0x01;
35069 ipv4a[4] = 0x01;
35070 /* - */
35071 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35072 if(!ipv4ptr)
35073 exit(1); /* fail */
35074 if(ipv4ptr != ipv4res)
35075 exit(1); /* fail */
35076 if(!ipv4ptr[0])
35077 exit(1); /* fail */
35078 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35079 exit(1); /* fail */
35080 /* - */
35081 ipv6res[0] = '\0';
35082 memset(ipv6a, 0, sizeof(ipv6a));
35083 ipv6a[0] = 0xfe;
35084 ipv6a[1] = 0x80;
35085 ipv6a[8] = 0x02;
35086 ipv6a[9] = 0x14;
35087 ipv6a[10] = 0x4f;
35088 ipv6a[11] = 0xff;
35089 ipv6a[12] = 0xfe;
35090 ipv6a[13] = 0x0b;
35091 ipv6a[14] = 0x76;
35092 ipv6a[15] = 0xc8;
35093 ipv6a[25] = 0x01;
35094 /* - */
35095 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35096 if(!ipv6ptr)
35097 exit(1); /* fail */
35098 if(ipv6ptr != ipv6res)
35099 exit(1); /* fail */
35100 if(!ipv6ptr[0])
35101 exit(1); /* fail */
35102 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35103 exit(1); /* fail */
35104 /* - */
35105 exit(0);
35106
35107 ;
35108 return 0;
35109}
35110
35111_ACEOF
35112if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035114$as_echo "yes" >&6; }
35115 tst_works_inet_ntop="yes"
35116
35117else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035119$as_echo "no" >&6; }
35120 tst_works_inet_ntop="no"
35121
35122fi
35123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35124 conftest.$ac_objext conftest.beam conftest.$ac_ext
35125fi
35126
Elliott Hughesa93fb052018-12-12 14:22:48 -080035127 LD_LIBRARY_PATH=$old # restore
35128
Elliott Hughes82be86d2017-09-20 17:00:17 -070035129 fi
35130 #
35131 if test "$tst_compi_inet_ntop" = "yes" &&
35132 test "$tst_works_inet_ntop" != "no"; then
35133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35134$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35135 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35137$as_echo "yes" >&6; }
35138 tst_allow_inet_ntop="yes"
35139 else
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35141$as_echo "no" >&6; }
35142 tst_allow_inet_ntop="no"
35143 fi
35144 fi
35145 #
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35147$as_echo_n "checking if inet_ntop might be used... " >&6; }
35148 if test "$tst_links_inet_ntop" = "yes" &&
35149 test "$tst_proto_inet_ntop" = "yes" &&
35150 test "$tst_compi_inet_ntop" = "yes" &&
35151 test "$tst_allow_inet_ntop" = "yes" &&
35152 test "$tst_works_inet_ntop" != "no"; then
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35154$as_echo "yes" >&6; }
35155
35156cat >>confdefs.h <<_ACEOF
35157#define HAVE_INET_NTOP 1
35158_ACEOF
35159
35160 curl_cv_func_inet_ntop="yes"
35161 else
35162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35163$as_echo "no" >&6; }
35164 curl_cv_func_inet_ntop="no"
35165 fi
35166
35167
35168 #
35169 tst_links_inet_pton="unknown"
35170 tst_proto_inet_pton="unknown"
35171 tst_compi_inet_pton="unknown"
35172 tst_works_inet_pton="unknown"
35173 tst_allow_inet_pton="unknown"
35174 #
35175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35176$as_echo_n "checking if inet_pton can be linked... " >&6; }
35177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35178/* end confdefs.h. */
35179
35180
35181#define inet_pton innocuous_inet_pton
35182#ifdef __STDC__
35183# include <limits.h>
35184#else
35185# include <assert.h>
35186#endif
35187#undef inet_pton
35188#ifdef __cplusplus
35189extern "C"
35190#endif
35191char inet_pton ();
35192#if defined __stub_inet_pton || defined __stub___inet_pton
35193choke me
35194#endif
35195
35196int main (void)
35197{
35198return inet_pton ();
35199 ;
35200 return 0;
35201}
35202
35203_ACEOF
35204if ac_fn_c_try_link "$LINENO"; then :
35205
35206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35207$as_echo "yes" >&6; }
35208 tst_links_inet_pton="yes"
35209
35210else
35211
35212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35213$as_echo "no" >&6; }
35214 tst_links_inet_pton="no"
35215
35216fi
35217rm -f core conftest.err conftest.$ac_objext \
35218 conftest$ac_exeext conftest.$ac_ext
35219 #
35220 if test "$tst_links_inet_pton" = "yes"; then
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35222$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35224/* end confdefs.h. */
35225
35226 $curl_includes_arpa_inet
35227
35228_ACEOF
35229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35230 $EGREP "inet_pton" >/dev/null 2>&1; then :
35231
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35233$as_echo "yes" >&6; }
35234 tst_proto_inet_pton="yes"
35235
35236else
35237
35238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35239$as_echo "no" >&6; }
35240 tst_proto_inet_pton="no"
35241
35242fi
35243rm -f conftest*
35244
35245 fi
35246 #
35247 if test "$tst_proto_inet_pton" = "yes"; then
35248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35249$as_echo_n "checking if inet_pton is compilable... " >&6; }
35250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35251/* end confdefs.h. */
35252
35253
35254 $curl_includes_arpa_inet
35255
35256int main (void)
35257{
35258
35259 if(0 != inet_pton(0, 0, 0))
35260 return 1;
35261
35262 ;
35263 return 0;
35264}
35265
35266_ACEOF
35267if ac_fn_c_try_compile "$LINENO"; then :
35268
35269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35270$as_echo "yes" >&6; }
35271 tst_compi_inet_pton="yes"
35272
35273else
35274
35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35276$as_echo "no" >&6; }
35277 tst_compi_inet_pton="no"
35278
35279fi
35280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35281 fi
35282 #
35283 if test "x$cross_compiling" != "xyes" &&
35284 test "$tst_compi_inet_pton" = "yes"; then
35285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35286$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035287
35288
35289 old=$LD_LIBRARY_PATH
35290 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35291 export LD_LIBRARY_PATH
35292 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35295as_fn_error $? "cannot run test program while cross compiling
35296See \`config.log' for more details" "$LINENO" 5; }
35297else
35298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35299/* end confdefs.h. */
35300
35301
35302 $curl_includes_stdlib
35303 $curl_includes_arpa_inet
35304 $curl_includes_string
35305
35306int main (void)
35307{
35308
35309 unsigned char ipv6a[16+1];
35310 unsigned char ipv4a[4+1];
35311 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35312 const char *ipv4src = "192.168.100.1";
35313 /* - */
35314 memset(ipv4a, 1, sizeof(ipv4a));
35315 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35316 exit(1); /* fail */
35317 /* - */
35318 if( (ipv4a[0] != 0xc0) ||
35319 (ipv4a[1] != 0xa8) ||
35320 (ipv4a[2] != 0x64) ||
35321 (ipv4a[3] != 0x01) ||
35322 (ipv4a[4] != 0x01) )
35323 exit(1); /* fail */
35324 /* - */
35325 memset(ipv6a, 1, sizeof(ipv6a));
35326 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35327 exit(1); /* fail */
35328 /* - */
35329 if( (ipv6a[0] != 0xfe) ||
35330 (ipv6a[1] != 0x80) ||
35331 (ipv6a[8] != 0x02) ||
35332 (ipv6a[9] != 0x14) ||
35333 (ipv6a[10] != 0x4f) ||
35334 (ipv6a[11] != 0xff) ||
35335 (ipv6a[12] != 0xfe) ||
35336 (ipv6a[13] != 0x0b) ||
35337 (ipv6a[14] != 0x76) ||
35338 (ipv6a[15] != 0xc8) ||
35339 (ipv6a[16] != 0x01) )
35340 exit(1); /* fail */
35341 /* - */
35342 if( (ipv6a[2] != 0x0) ||
35343 (ipv6a[3] != 0x0) ||
35344 (ipv6a[4] != 0x0) ||
35345 (ipv6a[5] != 0x0) ||
35346 (ipv6a[6] != 0x0) ||
35347 (ipv6a[7] != 0x0) )
35348 exit(1); /* fail */
35349 /* - */
35350 exit(0);
35351
35352 ;
35353 return 0;
35354}
35355
35356_ACEOF
35357if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035359$as_echo "yes" >&6; }
35360 tst_works_inet_pton="yes"
35361
35362else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035364$as_echo "no" >&6; }
35365 tst_works_inet_pton="no"
35366
35367fi
35368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35369 conftest.$ac_objext conftest.beam conftest.$ac_ext
35370fi
35371
Elliott Hughesa93fb052018-12-12 14:22:48 -080035372 LD_LIBRARY_PATH=$old # restore
35373
Elliott Hughes82be86d2017-09-20 17:00:17 -070035374 fi
35375 #
35376 if test "$tst_compi_inet_pton" = "yes" &&
35377 test "$tst_works_inet_pton" != "no"; then
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35379$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35380 if test "x$curl_disallow_inet_pton" != "xyes"; then
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35382$as_echo "yes" >&6; }
35383 tst_allow_inet_pton="yes"
35384 else
35385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35386$as_echo "no" >&6; }
35387 tst_allow_inet_pton="no"
35388 fi
35389 fi
35390 #
35391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35392$as_echo_n "checking if inet_pton might be used... " >&6; }
35393 if test "$tst_links_inet_pton" = "yes" &&
35394 test "$tst_proto_inet_pton" = "yes" &&
35395 test "$tst_compi_inet_pton" = "yes" &&
35396 test "$tst_allow_inet_pton" = "yes" &&
35397 test "$tst_works_inet_pton" != "no"; then
35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35399$as_echo "yes" >&6; }
35400
35401cat >>confdefs.h <<_ACEOF
35402#define HAVE_INET_PTON 1
35403_ACEOF
35404
35405 curl_cv_func_inet_pton="yes"
35406 else
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35408$as_echo "no" >&6; }
35409 curl_cv_func_inet_pton="no"
35410 fi
35411
35412
35413curl_includes_stropts="\
35414/* includes start */
35415#ifdef HAVE_SYS_TYPES_H
35416# include <sys/types.h>
35417#endif
35418#ifdef HAVE_UNISTD_H
35419# include <unistd.h>
35420#endif
35421#ifdef HAVE_SYS_SOCKET_H
35422# include <sys/socket.h>
35423#endif
35424#ifdef HAVE_SYS_IOCTL_H
35425# include <sys/ioctl.h>
35426#endif
35427#ifdef HAVE_STROPTS_H
35428# include <stropts.h>
35429#endif
35430/* includes end */"
35431 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35432do :
35433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35434ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35435"
35436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35437 cat >>confdefs.h <<_ACEOF
35438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35439_ACEOF
35440
35441fi
35442
35443done
35444
35445
35446
35447 #
35448 tst_links_ioctl="unknown"
35449 tst_proto_ioctl="unknown"
35450 tst_compi_ioctl="unknown"
35451 tst_allow_ioctl="unknown"
35452 #
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35454$as_echo_n "checking if ioctl can be linked... " >&6; }
35455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35456/* end confdefs.h. */
35457
35458
35459#define ioctl innocuous_ioctl
35460#ifdef __STDC__
35461# include <limits.h>
35462#else
35463# include <assert.h>
35464#endif
35465#undef ioctl
35466#ifdef __cplusplus
35467extern "C"
35468#endif
35469char ioctl ();
35470#if defined __stub_ioctl || defined __stub___ioctl
35471choke me
35472#endif
35473
35474int main (void)
35475{
35476return ioctl ();
35477 ;
35478 return 0;
35479}
35480
35481_ACEOF
35482if ac_fn_c_try_link "$LINENO"; then :
35483
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35485$as_echo "yes" >&6; }
35486 tst_links_ioctl="yes"
35487
35488else
35489
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35491$as_echo "no" >&6; }
35492 tst_links_ioctl="no"
35493
35494fi
35495rm -f core conftest.err conftest.$ac_objext \
35496 conftest$ac_exeext conftest.$ac_ext
35497 #
35498 if test "$tst_links_ioctl" = "yes"; then
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35500$as_echo_n "checking if ioctl is prototyped... " >&6; }
35501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35502/* end confdefs.h. */
35503
35504 $curl_includes_stropts
35505
35506_ACEOF
35507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35508 $EGREP "ioctl" >/dev/null 2>&1; then :
35509
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35511$as_echo "yes" >&6; }
35512 tst_proto_ioctl="yes"
35513
35514else
35515
35516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35517$as_echo "no" >&6; }
35518 tst_proto_ioctl="no"
35519
35520fi
35521rm -f conftest*
35522
35523 fi
35524 #
35525 if test "$tst_proto_ioctl" = "yes"; then
35526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35527$as_echo_n "checking if ioctl is compilable... " >&6; }
35528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35529/* end confdefs.h. */
35530
35531
35532 $curl_includes_stropts
35533
35534int main (void)
35535{
35536
35537 if(0 != ioctl(0, 0, 0))
35538 return 1;
35539
35540 ;
35541 return 0;
35542}
35543
35544_ACEOF
35545if ac_fn_c_try_compile "$LINENO"; then :
35546
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35548$as_echo "yes" >&6; }
35549 tst_compi_ioctl="yes"
35550
35551else
35552
35553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35554$as_echo "no" >&6; }
35555 tst_compi_ioctl="no"
35556
35557fi
35558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559 fi
35560 #
35561 if test "$tst_compi_ioctl" = "yes"; then
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35563$as_echo_n "checking if ioctl usage allowed... " >&6; }
35564 if test "x$curl_disallow_ioctl" != "xyes"; then
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35566$as_echo "yes" >&6; }
35567 tst_allow_ioctl="yes"
35568 else
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35570$as_echo "no" >&6; }
35571 tst_allow_ioctl="no"
35572 fi
35573 fi
35574 #
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35576$as_echo_n "checking if ioctl might be used... " >&6; }
35577 if test "$tst_links_ioctl" = "yes" &&
35578 test "$tst_proto_ioctl" = "yes" &&
35579 test "$tst_compi_ioctl" = "yes" &&
35580 test "$tst_allow_ioctl" = "yes"; then
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35582$as_echo "yes" >&6; }
35583
35584cat >>confdefs.h <<_ACEOF
35585#define HAVE_IOCTL 1
35586_ACEOF
35587
35588 curl_cv_func_ioctl="yes"
35589
35590 #
35591 tst_compi_ioctl_fionbio="unknown"
35592 tst_allow_ioctl_fionbio="unknown"
35593 #
35594 if test "$curl_cv_func_ioctl" = "yes"; then
35595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35596$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35598/* end confdefs.h. */
35599
35600
35601 $curl_includes_stropts
35602
35603int main (void)
35604{
35605
35606 int flags = 0;
35607 if(0 != ioctl(0, FIONBIO, &flags))
35608 return 1;
35609
35610 ;
35611 return 0;
35612}
35613
35614_ACEOF
35615if ac_fn_c_try_compile "$LINENO"; then :
35616
35617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35618$as_echo "yes" >&6; }
35619 tst_compi_ioctl_fionbio="yes"
35620
35621else
35622
35623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35624$as_echo "no" >&6; }
35625 tst_compi_ioctl_fionbio="no"
35626
35627fi
35628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35629 fi
35630 #
35631 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35633$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35634 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35636$as_echo "yes" >&6; }
35637 tst_allow_ioctl_fionbio="yes"
35638 else
35639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35640$as_echo "no" >&6; }
35641 tst_allow_ioctl_fionbio="no"
35642 fi
35643 fi
35644 #
35645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35646$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35647 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35648 test "$tst_allow_ioctl_fionbio" = "yes"; then
35649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35650$as_echo "yes" >&6; }
35651
35652cat >>confdefs.h <<_ACEOF
35653#define HAVE_IOCTL_FIONBIO 1
35654_ACEOF
35655
35656 curl_cv_func_ioctl_fionbio="yes"
35657 else
35658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35659$as_echo "no" >&6; }
35660 curl_cv_func_ioctl_fionbio="no"
35661 fi
35662
35663
35664 #
35665 tst_compi_ioctl_siocgifaddr="unknown"
35666 tst_allow_ioctl_siocgifaddr="unknown"
35667 #
35668 if test "$curl_cv_func_ioctl" = "yes"; then
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35670$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35672/* end confdefs.h. */
35673
35674
35675 $curl_includes_stropts
35676 #include <net/if.h>
35677
35678int main (void)
35679{
35680
35681 struct ifreq ifr;
35682 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35683 return 1;
35684
35685 ;
35686 return 0;
35687}
35688
35689_ACEOF
35690if ac_fn_c_try_compile "$LINENO"; then :
35691
35692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35693$as_echo "yes" >&6; }
35694 tst_compi_ioctl_siocgifaddr="yes"
35695
35696else
35697
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699$as_echo "no" >&6; }
35700 tst_compi_ioctl_siocgifaddr="no"
35701
35702fi
35703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35704 fi
35705 #
35706 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35708$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35709 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35711$as_echo "yes" >&6; }
35712 tst_allow_ioctl_siocgifaddr="yes"
35713 else
35714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35715$as_echo "no" >&6; }
35716 tst_allow_ioctl_siocgifaddr="no"
35717 fi
35718 fi
35719 #
35720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35721$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35722 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35723 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35725$as_echo "yes" >&6; }
35726
35727cat >>confdefs.h <<_ACEOF
35728#define HAVE_IOCTL_SIOCGIFADDR 1
35729_ACEOF
35730
35731 curl_cv_func_ioctl_siocgifaddr="yes"
35732 else
35733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35734$as_echo "no" >&6; }
35735 curl_cv_func_ioctl_siocgifaddr="no"
35736 fi
35737
35738 else
35739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35740$as_echo "no" >&6; }
35741 curl_cv_func_ioctl="no"
35742 fi
35743
35744
35745 #
35746 tst_links_ioctlsocket="unknown"
35747 tst_proto_ioctlsocket="unknown"
35748 tst_compi_ioctlsocket="unknown"
35749 tst_allow_ioctlsocket="unknown"
35750 #
35751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35752$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35754/* end confdefs.h. */
35755
35756
35757 $curl_includes_winsock2
35758
35759int main (void)
35760{
35761
35762 if(0 != ioctlsocket(0, 0, 0))
35763 return 1;
35764
35765 ;
35766 return 0;
35767}
35768
35769_ACEOF
35770if ac_fn_c_try_link "$LINENO"; then :
35771
35772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35773$as_echo "yes" >&6; }
35774 tst_links_ioctlsocket="yes"
35775
35776else
35777
35778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35779$as_echo "no" >&6; }
35780 tst_links_ioctlsocket="no"
35781
35782fi
35783rm -f core conftest.err conftest.$ac_objext \
35784 conftest$ac_exeext conftest.$ac_ext
35785 #
35786 if test "$tst_links_ioctlsocket" = "yes"; then
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35788$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35790/* end confdefs.h. */
35791
35792 $curl_includes_winsock2
35793
35794_ACEOF
35795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35796 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35797
35798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35799$as_echo "yes" >&6; }
35800 tst_proto_ioctlsocket="yes"
35801
35802else
35803
35804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35805$as_echo "no" >&6; }
35806 tst_proto_ioctlsocket="no"
35807
35808fi
35809rm -f conftest*
35810
35811 fi
35812 #
35813 if test "$tst_proto_ioctlsocket" = "yes"; then
35814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35815$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35817/* end confdefs.h. */
35818
35819
35820 $curl_includes_winsock2
35821
35822int main (void)
35823{
35824
35825 if(0 != ioctlsocket(0, 0, 0))
35826 return 1;
35827
35828 ;
35829 return 0;
35830}
35831
35832_ACEOF
35833if ac_fn_c_try_compile "$LINENO"; then :
35834
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35836$as_echo "yes" >&6; }
35837 tst_compi_ioctlsocket="yes"
35838
35839else
35840
35841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35842$as_echo "no" >&6; }
35843 tst_compi_ioctlsocket="no"
35844
35845fi
35846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35847 fi
35848 #
35849 if test "$tst_compi_ioctlsocket" = "yes"; then
35850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35851$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35852 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35854$as_echo "yes" >&6; }
35855 tst_allow_ioctlsocket="yes"
35856 else
35857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35858$as_echo "no" >&6; }
35859 tst_allow_ioctlsocket="no"
35860 fi
35861 fi
35862 #
35863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35864$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35865 if test "$tst_links_ioctlsocket" = "yes" &&
35866 test "$tst_proto_ioctlsocket" = "yes" &&
35867 test "$tst_compi_ioctlsocket" = "yes" &&
35868 test "$tst_allow_ioctlsocket" = "yes"; then
35869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35870$as_echo "yes" >&6; }
35871
35872cat >>confdefs.h <<_ACEOF
35873#define HAVE_IOCTLSOCKET 1
35874_ACEOF
35875
35876 curl_cv_func_ioctlsocket="yes"
35877
35878 #
35879 tst_compi_ioctlsocket_fionbio="unknown"
35880 tst_allow_ioctlsocket_fionbio="unknown"
35881 #
35882 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35884$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35886/* end confdefs.h. */
35887
35888
35889 $curl_includes_winsock2
35890
35891int main (void)
35892{
35893
35894 int flags = 0;
35895 if(0 != ioctlsocket(0, FIONBIO, &flags))
35896 return 1;
35897
35898 ;
35899 return 0;
35900}
35901
35902_ACEOF
35903if ac_fn_c_try_compile "$LINENO"; then :
35904
35905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35906$as_echo "yes" >&6; }
35907 tst_compi_ioctlsocket_fionbio="yes"
35908
35909else
35910
35911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35912$as_echo "no" >&6; }
35913 tst_compi_ioctlsocket_fionbio="no"
35914
35915fi
35916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35917 fi
35918 #
35919 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35921$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35922 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35924$as_echo "yes" >&6; }
35925 tst_allow_ioctlsocket_fionbio="yes"
35926 else
35927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35928$as_echo "no" >&6; }
35929 tst_allow_ioctlsocket_fionbio="no"
35930 fi
35931 fi
35932 #
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35934$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35935 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35936 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35938$as_echo "yes" >&6; }
35939
35940cat >>confdefs.h <<_ACEOF
35941#define HAVE_IOCTLSOCKET_FIONBIO 1
35942_ACEOF
35943
35944 curl_cv_func_ioctlsocket_fionbio="yes"
35945 else
35946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35947$as_echo "no" >&6; }
35948 curl_cv_func_ioctlsocket_fionbio="no"
35949 fi
35950
35951 else
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35953$as_echo "no" >&6; }
35954 curl_cv_func_ioctlsocket="no"
35955 fi
35956
35957
35958 #
35959 tst_links_ioctlsocket_camel="unknown"
35960 tst_proto_ioctlsocket_camel="unknown"
35961 tst_compi_ioctlsocket_camel="unknown"
35962 tst_allow_ioctlsocket_camel="unknown"
35963 #
35964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35965$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35967/* end confdefs.h. */
35968
35969
35970#define IoctlSocket innocuous_IoctlSocket
35971#ifdef __STDC__
35972# include <limits.h>
35973#else
35974# include <assert.h>
35975#endif
35976#undef IoctlSocket
35977#ifdef __cplusplus
35978extern "C"
35979#endif
35980char IoctlSocket ();
35981#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35982choke me
35983#endif
35984
35985int main (void)
35986{
35987return IoctlSocket ();
35988 ;
35989 return 0;
35990}
35991
35992_ACEOF
35993if ac_fn_c_try_link "$LINENO"; then :
35994
35995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35996$as_echo "yes" >&6; }
35997 tst_links_ioctlsocket_camel="yes"
35998
35999else
36000
36001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36002$as_echo "no" >&6; }
36003 tst_links_ioctlsocket_camel="no"
36004
36005fi
36006rm -f core conftest.err conftest.$ac_objext \
36007 conftest$ac_exeext conftest.$ac_ext
36008 #
36009 if test "$tst_links_ioctlsocket_camel" = "yes"; then
36010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36011$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36013/* end confdefs.h. */
36014
36015 $curl_includes_stropts
36016
36017_ACEOF
36018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36019 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36020
36021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36022$as_echo "yes" >&6; }
36023 tst_proto_ioctlsocket_camel="yes"
36024
36025else
36026
36027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36028$as_echo "no" >&6; }
36029 tst_proto_ioctlsocket_camel="no"
36030
36031fi
36032rm -f conftest*
36033
36034 fi
36035 #
36036 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36038$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36040/* end confdefs.h. */
36041
36042
36043 $curl_includes_stropts
36044
36045int main (void)
36046{
36047
36048 if(0 != IoctlSocket(0, 0, 0))
36049 return 1;
36050
36051 ;
36052 return 0;
36053}
36054
36055_ACEOF
36056if ac_fn_c_try_compile "$LINENO"; then :
36057
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059$as_echo "yes" >&6; }
36060 tst_compi_ioctlsocket_camel="yes"
36061
36062else
36063
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36065$as_echo "no" >&6; }
36066 tst_compi_ioctlsocket_camel="no"
36067
36068fi
36069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36070 fi
36071 #
36072 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36074$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36075 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36077$as_echo "yes" >&6; }
36078 tst_allow_ioctlsocket_camel="yes"
36079 else
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36081$as_echo "no" >&6; }
36082 tst_allow_ioctlsocket_camel="no"
36083 fi
36084 fi
36085 #
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36087$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36088 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36089 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36090 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36091 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36093$as_echo "yes" >&6; }
36094
36095cat >>confdefs.h <<_ACEOF
36096#define HAVE_IOCTLSOCKET_CAMEL 1
36097_ACEOF
36098
36099 curl_cv_func_ioctlsocket_camel="yes"
36100
36101 #
36102 tst_compi_ioctlsocket_camel_fionbio="unknown"
36103 tst_allow_ioctlsocket_camel_fionbio="unknown"
36104 #
36105 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36107$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36109/* end confdefs.h. */
36110
36111
36112 $curl_includes_stropts
36113
36114int main (void)
36115{
36116
36117 long flags = 0;
36118 if(0 != ioctlsocket(0, FIONBIO, &flags))
36119 return 1;
36120
36121 ;
36122 return 0;
36123}
36124
36125_ACEOF
36126if ac_fn_c_try_compile "$LINENO"; then :
36127
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36129$as_echo "yes" >&6; }
36130 tst_compi_ioctlsocket_camel_fionbio="yes"
36131
36132else
36133
36134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36135$as_echo "no" >&6; }
36136 tst_compi_ioctlsocket_camel_fionbio="no"
36137
36138fi
36139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36140 fi
36141 #
36142 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36144$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36145 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36147$as_echo "yes" >&6; }
36148 tst_allow_ioctlsocket_camel_fionbio="yes"
36149 else
36150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36151$as_echo "no" >&6; }
36152 tst_allow_ioctlsocket_camel_fionbio="no"
36153 fi
36154 fi
36155 #
36156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36157$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36158 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36159 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36161$as_echo "yes" >&6; }
36162
36163cat >>confdefs.h <<_ACEOF
36164#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36165_ACEOF
36166
36167 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36168 else
36169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36170$as_echo "no" >&6; }
36171 curl_cv_func_ioctlsocket_camel_fionbio="no"
36172 fi
36173
36174 else
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36176$as_echo "no" >&6; }
36177 curl_cv_func_ioctlsocket_camel="no"
36178 fi
36179
36180
36181 #
36182 tst_links_localtime_r="unknown"
36183 tst_proto_localtime_r="unknown"
36184 tst_compi_localtime_r="unknown"
36185 tst_works_localtime_r="unknown"
36186 tst_allow_localtime_r="unknown"
36187 #
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36189$as_echo_n "checking if localtime_r can be linked... " >&6; }
36190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36191/* end confdefs.h. */
36192
36193
36194#define localtime_r innocuous_localtime_r
36195#ifdef __STDC__
36196# include <limits.h>
36197#else
36198# include <assert.h>
36199#endif
36200#undef localtime_r
36201#ifdef __cplusplus
36202extern "C"
36203#endif
36204char localtime_r ();
36205#if defined __stub_localtime_r || defined __stub___localtime_r
36206choke me
36207#endif
36208
36209int main (void)
36210{
36211return localtime_r ();
36212 ;
36213 return 0;
36214}
36215
36216_ACEOF
36217if ac_fn_c_try_link "$LINENO"; then :
36218
36219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36220$as_echo "yes" >&6; }
36221 tst_links_localtime_r="yes"
36222
36223else
36224
36225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36226$as_echo "no" >&6; }
36227 tst_links_localtime_r="no"
36228
36229fi
36230rm -f core conftest.err conftest.$ac_objext \
36231 conftest$ac_exeext conftest.$ac_ext
36232 #
36233 if test "$tst_links_localtime_r" = "yes"; then
36234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36235$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36237/* end confdefs.h. */
36238
36239 $curl_includes_time
36240
36241_ACEOF
36242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36243 $EGREP "localtime_r" >/dev/null 2>&1; then :
36244
36245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36246$as_echo "yes" >&6; }
36247 tst_proto_localtime_r="yes"
36248
36249else
36250
36251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36252$as_echo "no" >&6; }
36253 tst_proto_localtime_r="no"
36254
36255fi
36256rm -f conftest*
36257
36258 fi
36259 #
36260 if test "$tst_proto_localtime_r" = "yes"; then
36261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36262$as_echo_n "checking if localtime_r is compilable... " >&6; }
36263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36264/* end confdefs.h. */
36265
36266
36267 $curl_includes_time
36268
36269int main (void)
36270{
36271
36272 if(0 != localtime_r(0, 0))
36273 return 1;
36274
36275 ;
36276 return 0;
36277}
36278
36279_ACEOF
36280if ac_fn_c_try_compile "$LINENO"; then :
36281
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36283$as_echo "yes" >&6; }
36284 tst_compi_localtime_r="yes"
36285
36286else
36287
36288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36289$as_echo "no" >&6; }
36290 tst_compi_localtime_r="no"
36291
36292fi
36293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36294 fi
36295 #
36296 if test "x$cross_compiling" != "xyes" &&
36297 test "$tst_compi_localtime_r" = "yes"; then
36298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36299$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036300
36301
36302 old=$LD_LIBRARY_PATH
36303 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36304 export LD_LIBRARY_PATH
36305 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36308as_fn_error $? "cannot run test program while cross compiling
36309See \`config.log' for more details" "$LINENO" 5; }
36310else
36311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36312/* end confdefs.h. */
36313
36314
36315 $curl_includes_stdlib
36316 $curl_includes_time
36317
36318int main (void)
36319{
36320
36321 time_t clock = 1170352587;
36322 struct tm *tmp = 0;
36323 struct tm result;
36324 tmp = localtime_r(&clock, &result);
36325 if(tmp)
36326 exit(0);
36327 else
36328 exit(1);
36329
36330 ;
36331 return 0;
36332}
36333
36334_ACEOF
36335if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036337$as_echo "yes" >&6; }
36338 tst_works_localtime_r="yes"
36339
36340else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036342$as_echo "no" >&6; }
36343 tst_works_localtime_r="no"
36344
36345fi
36346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36347 conftest.$ac_objext conftest.beam conftest.$ac_ext
36348fi
36349
Elliott Hughesa93fb052018-12-12 14:22:48 -080036350 LD_LIBRARY_PATH=$old # restore
36351
Elliott Hughes82be86d2017-09-20 17:00:17 -070036352 fi
36353 #
36354 if test "$tst_compi_localtime_r" = "yes" &&
36355 test "$tst_works_localtime_r" != "no"; then
36356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36357$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36358 if test "x$curl_disallow_localtime_r" != "xyes"; then
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36360$as_echo "yes" >&6; }
36361 tst_allow_localtime_r="yes"
36362 else
36363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36364$as_echo "no" >&6; }
36365 tst_allow_localtime_r="no"
36366 fi
36367 fi
36368 #
36369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36370$as_echo_n "checking if localtime_r might be used... " >&6; }
36371 if test "$tst_links_localtime_r" = "yes" &&
36372 test "$tst_proto_localtime_r" = "yes" &&
36373 test "$tst_compi_localtime_r" = "yes" &&
36374 test "$tst_allow_localtime_r" = "yes" &&
36375 test "$tst_works_localtime_r" != "no"; then
36376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377$as_echo "yes" >&6; }
36378
36379cat >>confdefs.h <<_ACEOF
36380#define HAVE_LOCALTIME_R 1
36381_ACEOF
36382
36383 curl_cv_func_localtime_r="yes"
36384 else
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386$as_echo "no" >&6; }
36387 curl_cv_func_localtime_r="no"
36388 fi
36389
36390
36391 #
36392 tst_links_memrchr="unknown"
36393 tst_macro_memrchr="unknown"
36394 tst_proto_memrchr="unknown"
36395 tst_compi_memrchr="unknown"
36396 tst_allow_memrchr="unknown"
36397 #
36398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36399$as_echo_n "checking if memrchr can be linked... " >&6; }
36400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36401/* end confdefs.h. */
36402
36403
36404#define memrchr innocuous_memrchr
36405#ifdef __STDC__
36406# include <limits.h>
36407#else
36408# include <assert.h>
36409#endif
36410#undef memrchr
36411#ifdef __cplusplus
36412extern "C"
36413#endif
36414char memrchr ();
36415#if defined __stub_memrchr || defined __stub___memrchr
36416choke me
36417#endif
36418
36419int main (void)
36420{
36421return memrchr ();
36422 ;
36423 return 0;
36424}
36425
36426_ACEOF
36427if ac_fn_c_try_link "$LINENO"; then :
36428
36429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36430$as_echo "yes" >&6; }
36431 tst_links_memrchr="yes"
36432
36433else
36434
36435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36436$as_echo "no" >&6; }
36437 tst_links_memrchr="no"
36438
36439fi
36440rm -f core conftest.err conftest.$ac_objext \
36441 conftest$ac_exeext conftest.$ac_ext
36442 #
36443 if test "$tst_links_memrchr" = "no"; then
36444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36445$as_echo_n "checking if memrchr seems a macro... " >&6; }
36446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36447/* end confdefs.h. */
36448
36449
36450 $curl_includes_string
36451
36452int main (void)
36453{
36454
36455 if(0 != memrchr(0, 0, 0))
36456 return 1;
36457
36458 ;
36459 return 0;
36460}
36461
36462_ACEOF
36463if ac_fn_c_try_link "$LINENO"; then :
36464
36465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36466$as_echo "yes" >&6; }
36467 tst_macro_memrchr="yes"
36468
36469else
36470
36471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36472$as_echo "no" >&6; }
36473 tst_macro_memrchr="no"
36474
36475fi
36476rm -f core conftest.err conftest.$ac_objext \
36477 conftest$ac_exeext conftest.$ac_ext
36478 fi
36479 #
36480 if test "$tst_links_memrchr" = "yes"; then
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36482$as_echo_n "checking if memrchr is prototyped... " >&6; }
36483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36484/* end confdefs.h. */
36485
36486 $curl_includes_string
36487
36488_ACEOF
36489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36490 $EGREP "memrchr" >/dev/null 2>&1; then :
36491
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36493$as_echo "yes" >&6; }
36494 tst_proto_memrchr="yes"
36495
36496else
36497
36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36499$as_echo "no" >&6; }
36500 tst_proto_memrchr="no"
36501
36502fi
36503rm -f conftest*
36504
36505 fi
36506 #
36507 if test "$tst_proto_memrchr" = "yes" ||
36508 test "$tst_macro_memrchr" = "yes"; then
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36510$as_echo_n "checking if memrchr is compilable... " >&6; }
36511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36512/* end confdefs.h. */
36513
36514
36515 $curl_includes_string
36516
36517int main (void)
36518{
36519
36520 if(0 != memrchr(0, 0, 0))
36521 return 1;
36522
36523 ;
36524 return 0;
36525}
36526
36527_ACEOF
36528if ac_fn_c_try_compile "$LINENO"; then :
36529
36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36531$as_echo "yes" >&6; }
36532 tst_compi_memrchr="yes"
36533
36534else
36535
36536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36537$as_echo "no" >&6; }
36538 tst_compi_memrchr="no"
36539
36540fi
36541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36542 fi
36543 #
36544 if test "$tst_compi_memrchr" = "yes"; then
36545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36546$as_echo_n "checking if memrchr usage allowed... " >&6; }
36547 if test "x$curl_disallow_memrchr" != "xyes"; then
36548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36549$as_echo "yes" >&6; }
36550 tst_allow_memrchr="yes"
36551 else
36552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36553$as_echo "no" >&6; }
36554 tst_allow_memrchr="no"
36555 fi
36556 fi
36557 #
36558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36559$as_echo_n "checking if memrchr might be used... " >&6; }
36560 if (test "$tst_proto_memrchr" = "yes" ||
36561 test "$tst_macro_memrchr" = "yes") &&
36562 test "$tst_compi_memrchr" = "yes" &&
36563 test "$tst_allow_memrchr" = "yes"; then
36564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36565$as_echo "yes" >&6; }
36566
36567cat >>confdefs.h <<_ACEOF
36568#define HAVE_MEMRCHR 1
36569_ACEOF
36570
36571 curl_cv_func_memrchr="yes"
36572 else
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36574$as_echo "no" >&6; }
36575 curl_cv_func_memrchr="no"
36576 fi
36577
36578
36579 #
36580 tst_links_poll="unknown"
36581 tst_proto_poll="unknown"
36582 tst_compi_poll="unknown"
36583 tst_works_poll="unknown"
36584 tst_allow_poll="unknown"
36585 #
36586 case $host_os in
36587 darwin*|interix*)
36588 curl_disallow_poll="yes"
36589 tst_compi_poll="no"
36590 ;;
36591 esac
36592 #
36593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36594$as_echo_n "checking if poll can be linked... " >&6; }
36595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36596/* end confdefs.h. */
36597
36598
36599 $curl_includes_poll
36600
36601int main (void)
36602{
36603
36604 if(0 != poll(0, 0, 0))
36605 return 1;
36606
36607 ;
36608 return 0;
36609}
36610
36611_ACEOF
36612if ac_fn_c_try_link "$LINENO"; then :
36613
36614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36615$as_echo "yes" >&6; }
36616 tst_links_poll="yes"
36617
36618else
36619
36620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36621$as_echo "no" >&6; }
36622 tst_links_poll="no"
36623
36624fi
36625rm -f core conftest.err conftest.$ac_objext \
36626 conftest$ac_exeext conftest.$ac_ext
36627 #
36628 if test "$tst_links_poll" = "yes"; then
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36630$as_echo_n "checking if poll is prototyped... " >&6; }
36631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36632/* end confdefs.h. */
36633
36634 $curl_includes_poll
36635
36636_ACEOF
36637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36638 $EGREP "poll" >/dev/null 2>&1; then :
36639
36640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36641$as_echo "yes" >&6; }
36642 tst_proto_poll="yes"
36643
36644else
36645
36646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36647$as_echo "no" >&6; }
36648 tst_proto_poll="no"
36649
36650fi
36651rm -f conftest*
36652
36653 fi
36654 #
36655 if test "$tst_proto_poll" = "yes"; then
36656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36657$as_echo_n "checking if poll is compilable... " >&6; }
36658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36659/* end confdefs.h. */
36660
36661
36662 $curl_includes_poll
36663
36664int main (void)
36665{
36666
36667 if(0 != poll(0, 0, 0))
36668 return 1;
36669
36670 ;
36671 return 0;
36672}
36673
36674_ACEOF
36675if ac_fn_c_try_compile "$LINENO"; then :
36676
36677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36678$as_echo "yes" >&6; }
36679 tst_compi_poll="yes"
36680
36681else
36682
36683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36684$as_echo "no" >&6; }
36685 tst_compi_poll="no"
36686
36687fi
36688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36689 fi
36690 #
36691 if test "x$cross_compiling" != "xyes" &&
36692 test "$tst_compi_poll" = "yes"; then
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36694$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036695
36696
36697 old=$LD_LIBRARY_PATH
36698 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36699 export LD_LIBRARY_PATH
36700 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36703as_fn_error $? "cannot run test program while cross compiling
36704See \`config.log' for more details" "$LINENO" 5; }
36705else
36706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36707/* end confdefs.h. */
36708
36709
36710 $curl_includes_stdlib
36711 $curl_includes_poll
36712 $curl_includes_time
36713
36714int main (void)
36715{
36716
36717 /* detect the original poll() breakage */
36718 if(0 != poll(0, 0, 10))
36719 exit(1); /* fail */
36720 else {
36721 /* detect the 10.12 poll() breakage */
36722 struct timeval before, after;
36723 int rc;
36724 size_t us;
36725
36726 gettimeofday(&before, NULL);
36727 rc = poll(NULL, 0, 500);
36728 gettimeofday(&after, NULL);
36729
36730 us = (after.tv_sec - before.tv_sec) * 1000000 +
36731 (after.tv_usec - before.tv_usec);
36732
36733 if(us < 400000)
36734 exit(1);
36735 }
36736
36737 ;
36738 return 0;
36739}
36740
36741_ACEOF
36742if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036744$as_echo "yes" >&6; }
36745 tst_works_poll="yes"
36746
36747else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036749$as_echo "no" >&6; }
36750 tst_works_poll="no"
36751
36752fi
36753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36754 conftest.$ac_objext conftest.beam conftest.$ac_ext
36755fi
36756
Elliott Hughesa93fb052018-12-12 14:22:48 -080036757 LD_LIBRARY_PATH=$old # restore
36758
Elliott Hughes82be86d2017-09-20 17:00:17 -070036759 fi
36760 #
36761 if test "$tst_compi_poll" = "yes" &&
36762 test "$tst_works_poll" != "no"; then
36763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36764$as_echo_n "checking if poll usage allowed... " >&6; }
36765 if test "x$curl_disallow_poll" != "xyes"; then
36766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36767$as_echo "yes" >&6; }
36768 tst_allow_poll="yes"
36769 else
36770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36771$as_echo "no" >&6; }
36772 tst_allow_poll="no"
36773 fi
36774 fi
36775 #
36776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36777$as_echo_n "checking if poll might be used... " >&6; }
36778 if test "$tst_links_poll" = "yes" &&
36779 test "$tst_proto_poll" = "yes" &&
36780 test "$tst_compi_poll" = "yes" &&
36781 test "$tst_allow_poll" = "yes" &&
36782 test "$tst_works_poll" != "no"; then
36783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36784$as_echo "yes" >&6; }
36785
36786cat >>confdefs.h <<_ACEOF
36787#define HAVE_POLL 1
36788_ACEOF
36789
36790
36791cat >>confdefs.h <<_ACEOF
36792#define HAVE_POLL_FINE 1
36793_ACEOF
36794
36795 curl_cv_func_poll="yes"
36796 else
36797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36798$as_echo "no" >&6; }
36799 curl_cv_func_poll="no"
36800 fi
36801
36802
36803 #
36804 tst_links_setsockopt="unknown"
36805 tst_proto_setsockopt="unknown"
36806 tst_compi_setsockopt="unknown"
36807 tst_allow_setsockopt="unknown"
36808 #
36809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36810$as_echo_n "checking if setsockopt can be linked... " >&6; }
36811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36812/* end confdefs.h. */
36813
36814
36815 $curl_includes_winsock2
36816 $curl_includes_sys_socket
36817
36818int main (void)
36819{
36820
36821 if(0 != setsockopt(0, 0, 0, 0, 0))
36822 return 1;
36823
36824 ;
36825 return 0;
36826}
36827
36828_ACEOF
36829if ac_fn_c_try_link "$LINENO"; then :
36830
36831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36832$as_echo "yes" >&6; }
36833 tst_links_setsockopt="yes"
36834
36835else
36836
36837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838$as_echo "no" >&6; }
36839 tst_links_setsockopt="no"
36840
36841fi
36842rm -f core conftest.err conftest.$ac_objext \
36843 conftest$ac_exeext conftest.$ac_ext
36844 #
36845 if test "$tst_links_setsockopt" = "yes"; then
36846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36847$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36849/* end confdefs.h. */
36850
36851 $curl_includes_winsock2
36852 $curl_includes_sys_socket
36853
36854_ACEOF
36855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36856 $EGREP "setsockopt" >/dev/null 2>&1; then :
36857
36858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36859$as_echo "yes" >&6; }
36860 tst_proto_setsockopt="yes"
36861
36862else
36863
36864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36865$as_echo "no" >&6; }
36866 tst_proto_setsockopt="no"
36867
36868fi
36869rm -f conftest*
36870
36871 fi
36872 #
36873 if test "$tst_proto_setsockopt" = "yes"; then
36874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36875$as_echo_n "checking if setsockopt is compilable... " >&6; }
36876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36877/* end confdefs.h. */
36878
36879
36880 $curl_includes_winsock2
36881 $curl_includes_sys_socket
36882
36883int main (void)
36884{
36885
36886 if(0 != setsockopt(0, 0, 0, 0, 0))
36887 return 1;
36888
36889 ;
36890 return 0;
36891}
36892
36893_ACEOF
36894if ac_fn_c_try_compile "$LINENO"; then :
36895
36896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36897$as_echo "yes" >&6; }
36898 tst_compi_setsockopt="yes"
36899
36900else
36901
36902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36903$as_echo "no" >&6; }
36904 tst_compi_setsockopt="no"
36905
36906fi
36907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36908 fi
36909 #
36910 if test "$tst_compi_setsockopt" = "yes"; then
36911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36912$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36913 if test "x$curl_disallow_setsockopt" != "xyes"; then
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36915$as_echo "yes" >&6; }
36916 tst_allow_setsockopt="yes"
36917 else
36918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36919$as_echo "no" >&6; }
36920 tst_allow_setsockopt="no"
36921 fi
36922 fi
36923 #
36924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36925$as_echo_n "checking if setsockopt might be used... " >&6; }
36926 if test "$tst_links_setsockopt" = "yes" &&
36927 test "$tst_proto_setsockopt" = "yes" &&
36928 test "$tst_compi_setsockopt" = "yes" &&
36929 test "$tst_allow_setsockopt" = "yes"; then
36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36931$as_echo "yes" >&6; }
36932
36933cat >>confdefs.h <<_ACEOF
36934#define HAVE_SETSOCKOPT 1
36935_ACEOF
36936
36937 curl_cv_func_setsockopt="yes"
36938
36939 #
36940 tst_compi_setsockopt_so_nonblock="unknown"
36941 tst_allow_setsockopt_so_nonblock="unknown"
36942 #
36943 if test "$curl_cv_func_setsockopt" = "yes"; then
36944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36945$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36947/* end confdefs.h. */
36948
36949
36950 $curl_includes_winsock2
36951 $curl_includes_sys_socket
36952
36953int main (void)
36954{
36955
36956 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36957 return 1;
36958
36959 ;
36960 return 0;
36961}
36962
36963_ACEOF
36964if ac_fn_c_try_compile "$LINENO"; then :
36965
36966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36967$as_echo "yes" >&6; }
36968 tst_compi_setsockopt_so_nonblock="yes"
36969
36970else
36971
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36973$as_echo "no" >&6; }
36974 tst_compi_setsockopt_so_nonblock="no"
36975
36976fi
36977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36978 fi
36979 #
36980 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36982$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36983 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36985$as_echo "yes" >&6; }
36986 tst_allow_setsockopt_so_nonblock="yes"
36987 else
36988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36989$as_echo "no" >&6; }
36990 tst_allow_setsockopt_so_nonblock="no"
36991 fi
36992 fi
36993 #
36994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36995$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36996 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36997 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36999$as_echo "yes" >&6; }
37000
37001cat >>confdefs.h <<_ACEOF
37002#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37003_ACEOF
37004
37005 curl_cv_func_setsockopt_so_nonblock="yes"
37006 else
37007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37008$as_echo "no" >&6; }
37009 curl_cv_func_setsockopt_so_nonblock="no"
37010 fi
37011
37012 else
37013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37014$as_echo "no" >&6; }
37015 curl_cv_func_setsockopt="no"
37016 fi
37017
37018
37019curl_includes_signal="\
37020/* includes start */
37021#ifdef HAVE_SYS_TYPES_H
37022# include <sys/types.h>
37023#endif
37024#ifdef HAVE_SIGNAL_H
37025# include <signal.h>
37026#endif
37027/* includes end */"
37028 for ac_header in sys/types.h signal.h
37029do :
37030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37032"
37033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37034 cat >>confdefs.h <<_ACEOF
37035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37036_ACEOF
37037
37038fi
37039
37040done
37041
37042
37043
37044 #
37045 tst_links_sigaction="unknown"
37046 tst_proto_sigaction="unknown"
37047 tst_compi_sigaction="unknown"
37048 tst_allow_sigaction="unknown"
37049 #
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37051$as_echo_n "checking if sigaction can be linked... " >&6; }
37052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37053/* end confdefs.h. */
37054
37055
37056#define sigaction innocuous_sigaction
37057#ifdef __STDC__
37058# include <limits.h>
37059#else
37060# include <assert.h>
37061#endif
37062#undef sigaction
37063#ifdef __cplusplus
37064extern "C"
37065#endif
37066char sigaction ();
37067#if defined __stub_sigaction || defined __stub___sigaction
37068choke me
37069#endif
37070
37071int main (void)
37072{
37073return sigaction ();
37074 ;
37075 return 0;
37076}
37077
37078_ACEOF
37079if ac_fn_c_try_link "$LINENO"; then :
37080
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37082$as_echo "yes" >&6; }
37083 tst_links_sigaction="yes"
37084
37085else
37086
37087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088$as_echo "no" >&6; }
37089 tst_links_sigaction="no"
37090
37091fi
37092rm -f core conftest.err conftest.$ac_objext \
37093 conftest$ac_exeext conftest.$ac_ext
37094 #
37095 if test "$tst_links_sigaction" = "yes"; then
37096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37097$as_echo_n "checking if sigaction is prototyped... " >&6; }
37098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37099/* end confdefs.h. */
37100
37101 $curl_includes_signal
37102
37103_ACEOF
37104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37105 $EGREP "sigaction" >/dev/null 2>&1; then :
37106
37107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37108$as_echo "yes" >&6; }
37109 tst_proto_sigaction="yes"
37110
37111else
37112
37113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37114$as_echo "no" >&6; }
37115 tst_proto_sigaction="no"
37116
37117fi
37118rm -f conftest*
37119
37120 fi
37121 #
37122 if test "$tst_proto_sigaction" = "yes"; then
37123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37124$as_echo_n "checking if sigaction is compilable... " >&6; }
37125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37126/* end confdefs.h. */
37127
37128
37129 $curl_includes_signal
37130
37131int main (void)
37132{
37133
37134 if(0 != sigaction(0, 0, 0))
37135 return 1;
37136
37137 ;
37138 return 0;
37139}
37140
37141_ACEOF
37142if ac_fn_c_try_compile "$LINENO"; then :
37143
37144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37145$as_echo "yes" >&6; }
37146 tst_compi_sigaction="yes"
37147
37148else
37149
37150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37151$as_echo "no" >&6; }
37152 tst_compi_sigaction="no"
37153
37154fi
37155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37156 fi
37157 #
37158 if test "$tst_compi_sigaction" = "yes"; then
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37160$as_echo_n "checking if sigaction usage allowed... " >&6; }
37161 if test "x$curl_disallow_sigaction" != "xyes"; then
37162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37163$as_echo "yes" >&6; }
37164 tst_allow_sigaction="yes"
37165 else
37166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37167$as_echo "no" >&6; }
37168 tst_allow_sigaction="no"
37169 fi
37170 fi
37171 #
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37173$as_echo_n "checking if sigaction might be used... " >&6; }
37174 if test "$tst_links_sigaction" = "yes" &&
37175 test "$tst_proto_sigaction" = "yes" &&
37176 test "$tst_compi_sigaction" = "yes" &&
37177 test "$tst_allow_sigaction" = "yes"; then
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37179$as_echo "yes" >&6; }
37180
37181cat >>confdefs.h <<_ACEOF
37182#define HAVE_SIGACTION 1
37183_ACEOF
37184
37185 curl_cv_func_sigaction="yes"
37186 else
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37188$as_echo "no" >&6; }
37189 curl_cv_func_sigaction="no"
37190 fi
37191
37192
37193 #
37194 tst_links_siginterrupt="unknown"
37195 tst_proto_siginterrupt="unknown"
37196 tst_compi_siginterrupt="unknown"
37197 tst_allow_siginterrupt="unknown"
37198 #
37199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37200$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37202/* end confdefs.h. */
37203
37204
37205#define siginterrupt innocuous_siginterrupt
37206#ifdef __STDC__
37207# include <limits.h>
37208#else
37209# include <assert.h>
37210#endif
37211#undef siginterrupt
37212#ifdef __cplusplus
37213extern "C"
37214#endif
37215char siginterrupt ();
37216#if defined __stub_siginterrupt || defined __stub___siginterrupt
37217choke me
37218#endif
37219
37220int main (void)
37221{
37222return siginterrupt ();
37223 ;
37224 return 0;
37225}
37226
37227_ACEOF
37228if ac_fn_c_try_link "$LINENO"; then :
37229
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37231$as_echo "yes" >&6; }
37232 tst_links_siginterrupt="yes"
37233
37234else
37235
37236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237$as_echo "no" >&6; }
37238 tst_links_siginterrupt="no"
37239
37240fi
37241rm -f core conftest.err conftest.$ac_objext \
37242 conftest$ac_exeext conftest.$ac_ext
37243 #
37244 if test "$tst_links_siginterrupt" = "yes"; then
37245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37246$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37248/* end confdefs.h. */
37249
37250 $curl_includes_signal
37251
37252_ACEOF
37253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37254 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37255
37256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37257$as_echo "yes" >&6; }
37258 tst_proto_siginterrupt="yes"
37259
37260else
37261
37262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37263$as_echo "no" >&6; }
37264 tst_proto_siginterrupt="no"
37265
37266fi
37267rm -f conftest*
37268
37269 fi
37270 #
37271 if test "$tst_proto_siginterrupt" = "yes"; then
37272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37273$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37275/* end confdefs.h. */
37276
37277
37278 $curl_includes_signal
37279
37280int main (void)
37281{
37282
37283 if(0 != siginterrupt(0, 0))
37284 return 1;
37285
37286 ;
37287 return 0;
37288}
37289
37290_ACEOF
37291if ac_fn_c_try_compile "$LINENO"; then :
37292
37293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37294$as_echo "yes" >&6; }
37295 tst_compi_siginterrupt="yes"
37296
37297else
37298
37299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37300$as_echo "no" >&6; }
37301 tst_compi_siginterrupt="no"
37302
37303fi
37304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37305 fi
37306 #
37307 if test "$tst_compi_siginterrupt" = "yes"; then
37308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37309$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37310 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37312$as_echo "yes" >&6; }
37313 tst_allow_siginterrupt="yes"
37314 else
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37316$as_echo "no" >&6; }
37317 tst_allow_siginterrupt="no"
37318 fi
37319 fi
37320 #
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37322$as_echo_n "checking if siginterrupt might be used... " >&6; }
37323 if test "$tst_links_siginterrupt" = "yes" &&
37324 test "$tst_proto_siginterrupt" = "yes" &&
37325 test "$tst_compi_siginterrupt" = "yes" &&
37326 test "$tst_allow_siginterrupt" = "yes"; then
37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37328$as_echo "yes" >&6; }
37329
37330cat >>confdefs.h <<_ACEOF
37331#define HAVE_SIGINTERRUPT 1
37332_ACEOF
37333
37334 curl_cv_func_siginterrupt="yes"
37335 else
37336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37337$as_echo "no" >&6; }
37338 curl_cv_func_siginterrupt="no"
37339 fi
37340
37341
37342 #
37343 tst_links_signal="unknown"
37344 tst_proto_signal="unknown"
37345 tst_compi_signal="unknown"
37346 tst_allow_signal="unknown"
37347 #
37348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37349$as_echo_n "checking if signal can be linked... " >&6; }
37350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37351/* end confdefs.h. */
37352
37353
37354#define signal innocuous_signal
37355#ifdef __STDC__
37356# include <limits.h>
37357#else
37358# include <assert.h>
37359#endif
37360#undef signal
37361#ifdef __cplusplus
37362extern "C"
37363#endif
37364char signal ();
37365#if defined __stub_signal || defined __stub___signal
37366choke me
37367#endif
37368
37369int main (void)
37370{
37371return signal ();
37372 ;
37373 return 0;
37374}
37375
37376_ACEOF
37377if ac_fn_c_try_link "$LINENO"; then :
37378
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37380$as_echo "yes" >&6; }
37381 tst_links_signal="yes"
37382
37383else
37384
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37386$as_echo "no" >&6; }
37387 tst_links_signal="no"
37388
37389fi
37390rm -f core conftest.err conftest.$ac_objext \
37391 conftest$ac_exeext conftest.$ac_ext
37392 #
37393 if test "$tst_links_signal" = "yes"; then
37394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37395$as_echo_n "checking if signal is prototyped... " >&6; }
37396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37397/* end confdefs.h. */
37398
37399 $curl_includes_signal
37400
37401_ACEOF
37402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37403 $EGREP "signal" >/dev/null 2>&1; then :
37404
37405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37406$as_echo "yes" >&6; }
37407 tst_proto_signal="yes"
37408
37409else
37410
37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37412$as_echo "no" >&6; }
37413 tst_proto_signal="no"
37414
37415fi
37416rm -f conftest*
37417
37418 fi
37419 #
37420 if test "$tst_proto_signal" = "yes"; then
37421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37422$as_echo_n "checking if signal is compilable... " >&6; }
37423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37424/* end confdefs.h. */
37425
37426
37427 $curl_includes_signal
37428
37429int main (void)
37430{
37431
37432 if(0 != signal(0, 0))
37433 return 1;
37434
37435 ;
37436 return 0;
37437}
37438
37439_ACEOF
37440if ac_fn_c_try_compile "$LINENO"; then :
37441
37442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37443$as_echo "yes" >&6; }
37444 tst_compi_signal="yes"
37445
37446else
37447
37448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37449$as_echo "no" >&6; }
37450 tst_compi_signal="no"
37451
37452fi
37453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37454 fi
37455 #
37456 if test "$tst_compi_signal" = "yes"; then
37457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37458$as_echo_n "checking if signal usage allowed... " >&6; }
37459 if test "x$curl_disallow_signal" != "xyes"; then
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37461$as_echo "yes" >&6; }
37462 tst_allow_signal="yes"
37463 else
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37465$as_echo "no" >&6; }
37466 tst_allow_signal="no"
37467 fi
37468 fi
37469 #
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37471$as_echo_n "checking if signal might be used... " >&6; }
37472 if test "$tst_links_signal" = "yes" &&
37473 test "$tst_proto_signal" = "yes" &&
37474 test "$tst_compi_signal" = "yes" &&
37475 test "$tst_allow_signal" = "yes"; then
37476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37477$as_echo "yes" >&6; }
37478
37479cat >>confdefs.h <<_ACEOF
37480#define HAVE_SIGNAL 1
37481_ACEOF
37482
37483 curl_cv_func_signal="yes"
37484 else
37485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37486$as_echo "no" >&6; }
37487 curl_cv_func_signal="no"
37488 fi
37489
37490
37491curl_includes_setjmp="\
37492/* includes start */
37493#ifdef HAVE_SYS_TYPES_H
37494# include <sys/types.h>
37495#endif
37496#ifdef HAVE_SETJMP_H
37497# include <setjmp.h>
37498#endif
37499/* includes end */"
37500 for ac_header in sys/types.h setjmp.h
37501do :
37502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37503ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37504"
37505if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37506 cat >>confdefs.h <<_ACEOF
37507#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37508_ACEOF
37509
37510fi
37511
37512done
37513
37514
37515
37516 #
37517 tst_links_sigsetjmp="unknown"
37518 tst_macro_sigsetjmp="unknown"
37519 tst_proto_sigsetjmp="unknown"
37520 tst_compi_sigsetjmp="unknown"
37521 tst_allow_sigsetjmp="unknown"
37522 #
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37524$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37526/* end confdefs.h. */
37527
37528
37529#define sigsetjmp innocuous_sigsetjmp
37530#ifdef __STDC__
37531# include <limits.h>
37532#else
37533# include <assert.h>
37534#endif
37535#undef sigsetjmp
37536#ifdef __cplusplus
37537extern "C"
37538#endif
37539char sigsetjmp ();
37540#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37541choke me
37542#endif
37543
37544int main (void)
37545{
37546return sigsetjmp ();
37547 ;
37548 return 0;
37549}
37550
37551_ACEOF
37552if ac_fn_c_try_link "$LINENO"; then :
37553
37554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37555$as_echo "yes" >&6; }
37556 tst_links_sigsetjmp="yes"
37557
37558else
37559
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37561$as_echo "no" >&6; }
37562 tst_links_sigsetjmp="no"
37563
37564fi
37565rm -f core conftest.err conftest.$ac_objext \
37566 conftest$ac_exeext conftest.$ac_ext
37567 #
37568 if test "$tst_links_sigsetjmp" = "no"; then
37569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37570$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37572/* end confdefs.h. */
37573
37574
37575 $curl_includes_setjmp
37576
37577int main (void)
37578{
37579
37580 sigjmp_buf env;
37581 if(0 != sigsetjmp(env, 0))
37582 return 1;
37583
37584 ;
37585 return 0;
37586}
37587
37588_ACEOF
37589if ac_fn_c_try_link "$LINENO"; then :
37590
37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37592$as_echo "yes" >&6; }
37593 tst_macro_sigsetjmp="yes"
37594
37595else
37596
37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37598$as_echo "no" >&6; }
37599 tst_macro_sigsetjmp="no"
37600
37601fi
37602rm -f core conftest.err conftest.$ac_objext \
37603 conftest$ac_exeext conftest.$ac_ext
37604 fi
37605 #
37606 if test "$tst_links_sigsetjmp" = "yes"; then
37607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37608$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37610/* end confdefs.h. */
37611
37612 $curl_includes_setjmp
37613
37614_ACEOF
37615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37616 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37617
37618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37619$as_echo "yes" >&6; }
37620 tst_proto_sigsetjmp="yes"
37621
37622else
37623
37624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37625$as_echo "no" >&6; }
37626 tst_proto_sigsetjmp="no"
37627
37628fi
37629rm -f conftest*
37630
37631 fi
37632 #
37633 if test "$tst_proto_sigsetjmp" = "yes" ||
37634 test "$tst_macro_sigsetjmp" = "yes"; then
37635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37636$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37638/* end confdefs.h. */
37639
37640
37641 $curl_includes_setjmp
37642
37643int main (void)
37644{
37645
37646 sigjmp_buf env;
37647 if(0 != sigsetjmp(env, 0))
37648 return 1;
37649
37650 ;
37651 return 0;
37652}
37653
37654_ACEOF
37655if ac_fn_c_try_compile "$LINENO"; then :
37656
37657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37658$as_echo "yes" >&6; }
37659 tst_compi_sigsetjmp="yes"
37660
37661else
37662
37663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37664$as_echo "no" >&6; }
37665 tst_compi_sigsetjmp="no"
37666
37667fi
37668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37669 fi
37670 #
37671 if test "$tst_compi_sigsetjmp" = "yes"; then
37672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37673$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37674 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37676$as_echo "yes" >&6; }
37677 tst_allow_sigsetjmp="yes"
37678 else
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37680$as_echo "no" >&6; }
37681 tst_allow_sigsetjmp="no"
37682 fi
37683 fi
37684 #
37685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37686$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37687 if (test "$tst_proto_sigsetjmp" = "yes" ||
37688 test "$tst_macro_sigsetjmp" = "yes") &&
37689 test "$tst_compi_sigsetjmp" = "yes" &&
37690 test "$tst_allow_sigsetjmp" = "yes"; then
37691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37692$as_echo "yes" >&6; }
37693
37694cat >>confdefs.h <<_ACEOF
37695#define HAVE_SIGSETJMP 1
37696_ACEOF
37697
37698 curl_cv_func_sigsetjmp="yes"
37699 else
37700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37701$as_echo "no" >&6; }
37702 curl_cv_func_sigsetjmp="no"
37703 fi
37704
37705
37706 #
37707 tst_links_socket="unknown"
37708 tst_proto_socket="unknown"
37709 tst_compi_socket="unknown"
37710 tst_allow_socket="unknown"
37711 #
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37713$as_echo_n "checking if socket can be linked... " >&6; }
37714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37715/* end confdefs.h. */
37716
37717
37718 $curl_includes_winsock2
37719 $curl_includes_sys_socket
37720 $curl_includes_socket
37721
37722int main (void)
37723{
37724
37725 if(0 != socket(0, 0, 0))
37726 return 1;
37727
37728 ;
37729 return 0;
37730}
37731
37732_ACEOF
37733if ac_fn_c_try_link "$LINENO"; then :
37734
37735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37736$as_echo "yes" >&6; }
37737 tst_links_socket="yes"
37738
37739else
37740
37741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37742$as_echo "no" >&6; }
37743 tst_links_socket="no"
37744
37745fi
37746rm -f core conftest.err conftest.$ac_objext \
37747 conftest$ac_exeext conftest.$ac_ext
37748 #
37749 if test "$tst_links_socket" = "yes"; then
37750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37751$as_echo_n "checking if socket is prototyped... " >&6; }
37752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37753/* end confdefs.h. */
37754
37755 $curl_includes_winsock2
37756 $curl_includes_sys_socket
37757 $curl_includes_socket
37758
37759_ACEOF
37760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37761 $EGREP "socket" >/dev/null 2>&1; then :
37762
37763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37764$as_echo "yes" >&6; }
37765 tst_proto_socket="yes"
37766
37767else
37768
37769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37770$as_echo "no" >&6; }
37771 tst_proto_socket="no"
37772
37773fi
37774rm -f conftest*
37775
37776 fi
37777 #
37778 if test "$tst_proto_socket" = "yes"; then
37779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37780$as_echo_n "checking if socket is compilable... " >&6; }
37781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37782/* end confdefs.h. */
37783
37784
37785 $curl_includes_winsock2
37786 $curl_includes_sys_socket
37787 $curl_includes_socket
37788
37789int main (void)
37790{
37791
37792 if(0 != socket(0, 0, 0))
37793 return 1;
37794
37795 ;
37796 return 0;
37797}
37798
37799_ACEOF
37800if ac_fn_c_try_compile "$LINENO"; then :
37801
37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37803$as_echo "yes" >&6; }
37804 tst_compi_socket="yes"
37805
37806else
37807
37808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37809$as_echo "no" >&6; }
37810 tst_compi_socket="no"
37811
37812fi
37813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37814 fi
37815 #
37816 if test "$tst_compi_socket" = "yes"; then
37817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37818$as_echo_n "checking if socket usage allowed... " >&6; }
37819 if test "x$curl_disallow_socket" != "xyes"; then
37820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37821$as_echo "yes" >&6; }
37822 tst_allow_socket="yes"
37823 else
37824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37825$as_echo "no" >&6; }
37826 tst_allow_socket="no"
37827 fi
37828 fi
37829 #
37830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37831$as_echo_n "checking if socket might be used... " >&6; }
37832 if test "$tst_links_socket" = "yes" &&
37833 test "$tst_proto_socket" = "yes" &&
37834 test "$tst_compi_socket" = "yes" &&
37835 test "$tst_allow_socket" = "yes"; then
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37837$as_echo "yes" >&6; }
37838
37839cat >>confdefs.h <<_ACEOF
37840#define HAVE_SOCKET 1
37841_ACEOF
37842
37843 curl_cv_func_socket="yes"
37844 else
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37846$as_echo "no" >&6; }
37847 curl_cv_func_socket="no"
37848 fi
37849
37850
37851 #
37852 tst_links_socketpair="unknown"
37853 tst_proto_socketpair="unknown"
37854 tst_compi_socketpair="unknown"
37855 tst_allow_socketpair="unknown"
37856 #
37857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37858$as_echo_n "checking if socketpair can be linked... " >&6; }
37859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37860/* end confdefs.h. */
37861
37862
37863#define socketpair innocuous_socketpair
37864#ifdef __STDC__
37865# include <limits.h>
37866#else
37867# include <assert.h>
37868#endif
37869#undef socketpair
37870#ifdef __cplusplus
37871extern "C"
37872#endif
37873char socketpair ();
37874#if defined __stub_socketpair || defined __stub___socketpair
37875choke me
37876#endif
37877
37878int main (void)
37879{
37880return socketpair ();
37881 ;
37882 return 0;
37883}
37884
37885_ACEOF
37886if ac_fn_c_try_link "$LINENO"; then :
37887
37888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37889$as_echo "yes" >&6; }
37890 tst_links_socketpair="yes"
37891
37892else
37893
37894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37895$as_echo "no" >&6; }
37896 tst_links_socketpair="no"
37897
37898fi
37899rm -f core conftest.err conftest.$ac_objext \
37900 conftest$ac_exeext conftest.$ac_ext
37901 #
37902 if test "$tst_links_socketpair" = "yes"; then
37903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37904$as_echo_n "checking if socketpair is prototyped... " >&6; }
37905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37906/* end confdefs.h. */
37907
37908 $curl_includes_sys_socket
37909 $curl_includes_socket
37910
37911_ACEOF
37912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37913 $EGREP "socketpair" >/dev/null 2>&1; then :
37914
37915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37916$as_echo "yes" >&6; }
37917 tst_proto_socketpair="yes"
37918
37919else
37920
37921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37922$as_echo "no" >&6; }
37923 tst_proto_socketpair="no"
37924
37925fi
37926rm -f conftest*
37927
37928 fi
37929 #
37930 if test "$tst_proto_socketpair" = "yes"; then
37931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37932$as_echo_n "checking if socketpair is compilable... " >&6; }
37933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37934/* end confdefs.h. */
37935
37936
37937 $curl_includes_sys_socket
37938 $curl_includes_socket
37939
37940int main (void)
37941{
37942
37943 int sv[2];
37944 if(0 != socketpair(0, 0, 0, sv))
37945 return 1;
37946
37947 ;
37948 return 0;
37949}
37950
37951_ACEOF
37952if ac_fn_c_try_compile "$LINENO"; then :
37953
37954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37955$as_echo "yes" >&6; }
37956 tst_compi_socketpair="yes"
37957
37958else
37959
37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37961$as_echo "no" >&6; }
37962 tst_compi_socketpair="no"
37963
37964fi
37965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966 fi
37967 #
37968 if test "$tst_compi_socketpair" = "yes"; then
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37970$as_echo_n "checking if socketpair usage allowed... " >&6; }
37971 if test "x$curl_disallow_socketpair" != "xyes"; then
37972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37973$as_echo "yes" >&6; }
37974 tst_allow_socketpair="yes"
37975 else
37976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37977$as_echo "no" >&6; }
37978 tst_allow_socketpair="no"
37979 fi
37980 fi
37981 #
37982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37983$as_echo_n "checking if socketpair might be used... " >&6; }
37984 if test "$tst_links_socketpair" = "yes" &&
37985 test "$tst_proto_socketpair" = "yes" &&
37986 test "$tst_compi_socketpair" = "yes" &&
37987 test "$tst_allow_socketpair" = "yes"; then
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37989$as_echo "yes" >&6; }
37990
37991cat >>confdefs.h <<_ACEOF
37992#define HAVE_SOCKETPAIR 1
37993_ACEOF
37994
37995 curl_cv_func_socketpair="yes"
37996 else
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37998$as_echo "no" >&6; }
37999 curl_cv_func_socketpair="no"
38000 fi
38001
38002
38003 #
38004 tst_links_strcasecmp="unknown"
38005 tst_proto_strcasecmp="unknown"
38006 tst_compi_strcasecmp="unknown"
38007 tst_allow_strcasecmp="unknown"
38008 #
38009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38010$as_echo_n "checking if strcasecmp can be linked... " >&6; }
38011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38012/* end confdefs.h. */
38013
38014
38015#define strcasecmp innocuous_strcasecmp
38016#ifdef __STDC__
38017# include <limits.h>
38018#else
38019# include <assert.h>
38020#endif
38021#undef strcasecmp
38022#ifdef __cplusplus
38023extern "C"
38024#endif
38025char strcasecmp ();
38026#if defined __stub_strcasecmp || defined __stub___strcasecmp
38027choke me
38028#endif
38029
38030int main (void)
38031{
38032return strcasecmp ();
38033 ;
38034 return 0;
38035}
38036
38037_ACEOF
38038if ac_fn_c_try_link "$LINENO"; then :
38039
38040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38041$as_echo "yes" >&6; }
38042 tst_links_strcasecmp="yes"
38043
38044else
38045
38046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38047$as_echo "no" >&6; }
38048 tst_links_strcasecmp="no"
38049
38050fi
38051rm -f core conftest.err conftest.$ac_objext \
38052 conftest$ac_exeext conftest.$ac_ext
38053 #
38054 if test "$tst_links_strcasecmp" = "yes"; then
38055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38056$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38058/* end confdefs.h. */
38059
38060 $curl_includes_string
38061
38062_ACEOF
38063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38064 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38065
38066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38067$as_echo "yes" >&6; }
38068 tst_proto_strcasecmp="yes"
38069
38070else
38071
38072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38073$as_echo "no" >&6; }
38074 tst_proto_strcasecmp="no"
38075
38076fi
38077rm -f conftest*
38078
38079 fi
38080 #
38081 if test "$tst_proto_strcasecmp" = "yes"; then
38082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38083$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38085/* end confdefs.h. */
38086
38087
38088 $curl_includes_string
38089
38090int main (void)
38091{
38092
38093 if(0 != strcasecmp(0, 0))
38094 return 1;
38095
38096 ;
38097 return 0;
38098}
38099
38100_ACEOF
38101if ac_fn_c_try_compile "$LINENO"; then :
38102
38103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38104$as_echo "yes" >&6; }
38105 tst_compi_strcasecmp="yes"
38106
38107else
38108
38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38110$as_echo "no" >&6; }
38111 tst_compi_strcasecmp="no"
38112
38113fi
38114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38115 fi
38116 #
38117 if test "$tst_compi_strcasecmp" = "yes"; then
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38119$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38120 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38122$as_echo "yes" >&6; }
38123 tst_allow_strcasecmp="yes"
38124 else
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38126$as_echo "no" >&6; }
38127 tst_allow_strcasecmp="no"
38128 fi
38129 fi
38130 #
38131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38132$as_echo_n "checking if strcasecmp might be used... " >&6; }
38133 if test "$tst_links_strcasecmp" = "yes" &&
38134 test "$tst_proto_strcasecmp" = "yes" &&
38135 test "$tst_compi_strcasecmp" = "yes" &&
38136 test "$tst_allow_strcasecmp" = "yes"; then
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38138$as_echo "yes" >&6; }
38139
38140cat >>confdefs.h <<_ACEOF
38141#define HAVE_STRCASECMP 1
38142_ACEOF
38143
38144 curl_cv_func_strcasecmp="yes"
38145 else
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38147$as_echo "no" >&6; }
38148 curl_cv_func_strcasecmp="no"
38149 fi
38150
38151
38152 #
38153 tst_links_strcmpi="unknown"
38154 tst_proto_strcmpi="unknown"
38155 tst_compi_strcmpi="unknown"
38156 tst_allow_strcmpi="unknown"
38157 #
38158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38159$as_echo_n "checking if strcmpi can be linked... " >&6; }
38160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38161/* end confdefs.h. */
38162
38163
38164#define strcmpi innocuous_strcmpi
38165#ifdef __STDC__
38166# include <limits.h>
38167#else
38168# include <assert.h>
38169#endif
38170#undef strcmpi
38171#ifdef __cplusplus
38172extern "C"
38173#endif
38174char strcmpi ();
38175#if defined __stub_strcmpi || defined __stub___strcmpi
38176choke me
38177#endif
38178
38179int main (void)
38180{
38181return strcmpi ();
38182 ;
38183 return 0;
38184}
38185
38186_ACEOF
38187if ac_fn_c_try_link "$LINENO"; then :
38188
38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38190$as_echo "yes" >&6; }
38191 tst_links_strcmpi="yes"
38192
38193else
38194
38195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38196$as_echo "no" >&6; }
38197 tst_links_strcmpi="no"
38198
38199fi
38200rm -f core conftest.err conftest.$ac_objext \
38201 conftest$ac_exeext conftest.$ac_ext
38202 #
38203 if test "$tst_links_strcmpi" = "yes"; then
38204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38205$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38207/* end confdefs.h. */
38208
38209 $curl_includes_string
38210
38211_ACEOF
38212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38213 $EGREP "strcmpi" >/dev/null 2>&1; then :
38214
38215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38216$as_echo "yes" >&6; }
38217 tst_proto_strcmpi="yes"
38218
38219else
38220
38221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38222$as_echo "no" >&6; }
38223 tst_proto_strcmpi="no"
38224
38225fi
38226rm -f conftest*
38227
38228 fi
38229 #
38230 if test "$tst_proto_strcmpi" = "yes"; then
38231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38232$as_echo_n "checking if strcmpi is compilable... " >&6; }
38233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38234/* end confdefs.h. */
38235
38236
38237 $curl_includes_string
38238
38239int main (void)
38240{
38241
38242 if(0 != strcmpi(0, 0))
38243 return 1;
38244
38245 ;
38246 return 0;
38247}
38248
38249_ACEOF
38250if ac_fn_c_try_compile "$LINENO"; then :
38251
38252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38253$as_echo "yes" >&6; }
38254 tst_compi_strcmpi="yes"
38255
38256else
38257
38258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38259$as_echo "no" >&6; }
38260 tst_compi_strcmpi="no"
38261
38262fi
38263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38264 fi
38265 #
38266 if test "$tst_compi_strcmpi" = "yes"; then
38267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38268$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38269 if test "x$curl_disallow_strcmpi" != "xyes"; then
38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38271$as_echo "yes" >&6; }
38272 tst_allow_strcmpi="yes"
38273 else
38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38275$as_echo "no" >&6; }
38276 tst_allow_strcmpi="no"
38277 fi
38278 fi
38279 #
38280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38281$as_echo_n "checking if strcmpi might be used... " >&6; }
38282 if test "$tst_links_strcmpi" = "yes" &&
38283 test "$tst_proto_strcmpi" = "yes" &&
38284 test "$tst_compi_strcmpi" = "yes" &&
38285 test "$tst_allow_strcmpi" = "yes"; then
38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38287$as_echo "yes" >&6; }
38288
38289cat >>confdefs.h <<_ACEOF
38290#define HAVE_STRCMPI 1
38291_ACEOF
38292
38293 curl_cv_func_strcmpi="yes"
38294 else
38295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38296$as_echo "no" >&6; }
38297 curl_cv_func_strcmpi="no"
38298 fi
38299
38300
38301 #
38302 tst_links_strdup="unknown"
38303 tst_proto_strdup="unknown"
38304 tst_compi_strdup="unknown"
38305 tst_allow_strdup="unknown"
38306 #
38307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38308$as_echo_n "checking if strdup can be linked... " >&6; }
38309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38310/* end confdefs.h. */
38311
38312
38313#define strdup innocuous_strdup
38314#ifdef __STDC__
38315# include <limits.h>
38316#else
38317# include <assert.h>
38318#endif
38319#undef strdup
38320#ifdef __cplusplus
38321extern "C"
38322#endif
38323char strdup ();
38324#if defined __stub_strdup || defined __stub___strdup
38325choke me
38326#endif
38327
38328int main (void)
38329{
38330return strdup ();
38331 ;
38332 return 0;
38333}
38334
38335_ACEOF
38336if ac_fn_c_try_link "$LINENO"; then :
38337
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38339$as_echo "yes" >&6; }
38340 tst_links_strdup="yes"
38341
38342else
38343
38344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38345$as_echo "no" >&6; }
38346 tst_links_strdup="no"
38347
38348fi
38349rm -f core conftest.err conftest.$ac_objext \
38350 conftest$ac_exeext conftest.$ac_ext
38351 #
38352 if test "$tst_links_strdup" = "yes"; then
38353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38354$as_echo_n "checking if strdup is prototyped... " >&6; }
38355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38356/* end confdefs.h. */
38357
38358 $curl_includes_string
38359
38360_ACEOF
38361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38362 $EGREP "strdup" >/dev/null 2>&1; then :
38363
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38365$as_echo "yes" >&6; }
38366 tst_proto_strdup="yes"
38367
38368else
38369
38370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38371$as_echo "no" >&6; }
38372 tst_proto_strdup="no"
38373
38374fi
38375rm -f conftest*
38376
38377 fi
38378 #
38379 if test "$tst_proto_strdup" = "yes"; then
38380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38381$as_echo_n "checking if strdup is compilable... " >&6; }
38382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38383/* end confdefs.h. */
38384
38385
38386 $curl_includes_string
38387
38388int main (void)
38389{
38390
38391 if(0 != strdup(0))
38392 return 1;
38393
38394 ;
38395 return 0;
38396}
38397
38398_ACEOF
38399if ac_fn_c_try_compile "$LINENO"; then :
38400
38401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38402$as_echo "yes" >&6; }
38403 tst_compi_strdup="yes"
38404
38405else
38406
38407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38408$as_echo "no" >&6; }
38409 tst_compi_strdup="no"
38410
38411fi
38412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38413 fi
38414 #
38415 if test "$tst_compi_strdup" = "yes"; then
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38417$as_echo_n "checking if strdup usage allowed... " >&6; }
38418 if test "x$curl_disallow_strdup" != "xyes"; then
38419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38420$as_echo "yes" >&6; }
38421 tst_allow_strdup="yes"
38422 else
38423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38424$as_echo "no" >&6; }
38425 tst_allow_strdup="no"
38426 fi
38427 fi
38428 #
38429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38430$as_echo_n "checking if strdup might be used... " >&6; }
38431 if test "$tst_links_strdup" = "yes" &&
38432 test "$tst_proto_strdup" = "yes" &&
38433 test "$tst_compi_strdup" = "yes" &&
38434 test "$tst_allow_strdup" = "yes"; then
38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38436$as_echo "yes" >&6; }
38437
38438cat >>confdefs.h <<_ACEOF
38439#define HAVE_STRDUP 1
38440_ACEOF
38441
38442 curl_cv_func_strdup="yes"
38443 else
38444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38445$as_echo "no" >&6; }
38446 curl_cv_func_strdup="no"
38447 fi
38448
38449
38450 #
38451 tst_links_strerror_r="unknown"
38452 tst_proto_strerror_r="unknown"
38453 tst_compi_strerror_r="unknown"
38454 tst_glibc_strerror_r="unknown"
38455 tst_posix_strerror_r="unknown"
38456 tst_allow_strerror_r="unknown"
38457 tst_works_glibc_strerror_r="unknown"
38458 tst_works_posix_strerror_r="unknown"
38459 tst_glibc_strerror_r_type_arg3="unknown"
38460 tst_posix_strerror_r_type_arg3="unknown"
38461 #
38462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38463$as_echo_n "checking if strerror_r can be linked... " >&6; }
38464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38465/* end confdefs.h. */
38466
38467
38468#define strerror_r innocuous_strerror_r
38469#ifdef __STDC__
38470# include <limits.h>
38471#else
38472# include <assert.h>
38473#endif
38474#undef strerror_r
38475#ifdef __cplusplus
38476extern "C"
38477#endif
38478char strerror_r ();
38479#if defined __stub_strerror_r || defined __stub___strerror_r
38480choke me
38481#endif
38482
38483int main (void)
38484{
38485return strerror_r ();
38486 ;
38487 return 0;
38488}
38489
38490_ACEOF
38491if ac_fn_c_try_link "$LINENO"; then :
38492
38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38494$as_echo "yes" >&6; }
38495 tst_links_strerror_r="yes"
38496
38497else
38498
38499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38500$as_echo "no" >&6; }
38501 tst_links_strerror_r="no"
38502
38503fi
38504rm -f core conftest.err conftest.$ac_objext \
38505 conftest$ac_exeext conftest.$ac_ext
38506 #
38507 if test "$tst_links_strerror_r" = "yes"; then
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38509$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38511/* end confdefs.h. */
38512
38513 $curl_includes_string
38514
38515_ACEOF
38516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38517 $EGREP "strerror_r" >/dev/null 2>&1; then :
38518
38519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38520$as_echo "yes" >&6; }
38521 tst_proto_strerror_r="yes"
38522
38523else
38524
38525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38526$as_echo "no" >&6; }
38527 tst_proto_strerror_r="no"
38528
38529fi
38530rm -f conftest*
38531
38532 fi
38533 #
38534 if test "$tst_proto_strerror_r" = "yes"; then
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38536$as_echo_n "checking if strerror_r is compilable... " >&6; }
38537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38538/* end confdefs.h. */
38539
38540
38541 $curl_includes_string
38542
38543int main (void)
38544{
38545
38546 if(0 != strerror_r(0, 0, 0))
38547 return 1;
38548
38549 ;
38550 return 0;
38551}
38552
38553_ACEOF
38554if ac_fn_c_try_compile "$LINENO"; then :
38555
38556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38557$as_echo "yes" >&6; }
38558 tst_compi_strerror_r="yes"
38559
38560else
38561
38562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38563$as_echo "no" >&6; }
38564 tst_compi_strerror_r="no"
38565
38566fi
38567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38568 fi
38569 #
38570 if test "$tst_compi_strerror_r" = "yes"; then
38571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38572$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38573 tst_glibc_strerror_r_type_arg3="unknown"
38574 for arg3 in 'size_t' 'int' 'unsigned int'; do
38575 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38577/* end confdefs.h. */
38578
38579
38580 $curl_includes_string
38581 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38582
38583int main (void)
38584{
38585
38586 if(0 != strerror_r(0, 0, 0))
38587 return 1;
38588
38589 ;
38590 return 0;
38591}
38592
38593_ACEOF
38594if ac_fn_c_try_compile "$LINENO"; then :
38595
38596 tst_glibc_strerror_r_type_arg3="$arg3"
38597
38598fi
38599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38600 fi
38601 done
38602 case "$tst_glibc_strerror_r_type_arg3" in
38603 unknown)
38604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38605$as_echo "no" >&6; }
38606 tst_glibc_strerror_r="no"
38607 ;;
38608 *)
38609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38610$as_echo "yes" >&6; }
38611 tst_glibc_strerror_r="yes"
38612 ;;
38613 esac
38614 fi
38615 #
38616 if test "x$cross_compiling" != "xyes" &&
38617 test "$tst_glibc_strerror_r" = "yes"; then
38618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38619$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038620
38621
38622 old=$LD_LIBRARY_PATH
38623 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38624 export LD_LIBRARY_PATH
38625 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38628as_fn_error $? "cannot run test program while cross compiling
38629See \`config.log' for more details" "$LINENO" 5; }
38630else
38631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38632/* end confdefs.h. */
38633
38634
38635 $curl_includes_stdlib
38636 $curl_includes_string
38637# include <errno.h>
38638
38639int main (void)
38640{
38641
38642 char buffer[1024];
38643 char *string = 0;
38644 buffer[0] = '\0';
38645 string = strerror_r(EACCES, buffer, sizeof(buffer));
38646 if(!string)
38647 exit(1); /* fail */
38648 if(!string[0])
38649 exit(1); /* fail */
38650 else
38651 exit(0);
38652
38653 ;
38654 return 0;
38655}
38656
38657_ACEOF
38658if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038660$as_echo "yes" >&6; }
38661 tst_works_glibc_strerror_r="yes"
38662
38663else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038665$as_echo "no" >&6; }
38666 tst_works_glibc_strerror_r="no"
38667
38668fi
38669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38670 conftest.$ac_objext conftest.beam conftest.$ac_ext
38671fi
38672
Elliott Hughesa93fb052018-12-12 14:22:48 -080038673 LD_LIBRARY_PATH=$old # restore
38674
Elliott Hughes82be86d2017-09-20 17:00:17 -070038675 fi
38676 #
38677 if test "$tst_compi_strerror_r" = "yes" &&
38678 test "$tst_works_glibc_strerror_r" != "yes"; then
38679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38680$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38681 tst_posix_strerror_r_type_arg3="unknown"
38682 for arg3 in 'size_t' 'int' 'unsigned int'; do
38683 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38685/* end confdefs.h. */
38686
38687
38688 $curl_includes_string
38689 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38690
38691int main (void)
38692{
38693
38694 if(0 != strerror_r(0, 0, 0))
38695 return 1;
38696
38697 ;
38698 return 0;
38699}
38700
38701_ACEOF
38702if ac_fn_c_try_compile "$LINENO"; then :
38703
38704 tst_posix_strerror_r_type_arg3="$arg3"
38705
38706fi
38707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38708 fi
38709 done
38710 case "$tst_posix_strerror_r_type_arg3" in
38711 unknown)
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38713$as_echo "no" >&6; }
38714 tst_posix_strerror_r="no"
38715 ;;
38716 *)
38717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38718$as_echo "yes" >&6; }
38719 tst_posix_strerror_r="yes"
38720 ;;
38721 esac
38722 fi
38723 #
38724 if test "x$cross_compiling" != "xyes" &&
38725 test "$tst_posix_strerror_r" = "yes"; then
38726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38727$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038728
38729
38730 old=$LD_LIBRARY_PATH
38731 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38732 export LD_LIBRARY_PATH
38733 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38736as_fn_error $? "cannot run test program while cross compiling
38737See \`config.log' for more details" "$LINENO" 5; }
38738else
38739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38740/* end confdefs.h. */
38741
38742
38743 $curl_includes_stdlib
38744 $curl_includes_string
38745# include <errno.h>
38746
38747int main (void)
38748{
38749
38750 char buffer[1024];
38751 int error = 1;
38752 buffer[0] = '\0';
38753 error = strerror_r(EACCES, buffer, sizeof(buffer));
38754 if(error)
38755 exit(1); /* fail */
38756 if(buffer[0] == '\0')
38757 exit(1); /* fail */
38758 else
38759 exit(0);
38760
38761 ;
38762 return 0;
38763}
38764
38765_ACEOF
38766if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038768$as_echo "yes" >&6; }
38769 tst_works_posix_strerror_r="yes"
38770
38771else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038773$as_echo "no" >&6; }
38774 tst_works_posix_strerror_r="no"
38775
38776fi
38777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38778 conftest.$ac_objext conftest.beam conftest.$ac_ext
38779fi
38780
Elliott Hughesa93fb052018-12-12 14:22:48 -080038781 LD_LIBRARY_PATH=$old # restore
38782
Elliott Hughes82be86d2017-09-20 17:00:17 -070038783 fi
38784 #
38785 if test "$tst_works_glibc_strerror_r" = "yes"; then
38786 tst_posix_strerror_r="no"
38787 fi
38788 if test "$tst_works_posix_strerror_r" = "yes"; then
38789 tst_glibc_strerror_r="no"
38790 fi
38791 if test "$tst_glibc_strerror_r" = "yes" &&
38792 test "$tst_works_glibc_strerror_r" != "no" &&
38793 test "$tst_posix_strerror_r" != "yes"; then
38794 tst_allow_strerror_r="check"
38795 fi
38796 if test "$tst_posix_strerror_r" = "yes" &&
38797 test "$tst_works_posix_strerror_r" != "no" &&
38798 test "$tst_glibc_strerror_r" != "yes"; then
38799 tst_allow_strerror_r="check"
38800 fi
38801 if test "$tst_allow_strerror_r" = "check"; then
38802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38803$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38804 if test "x$curl_disallow_strerror_r" != "xyes"; then
38805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38806$as_echo "yes" >&6; }
38807 tst_allow_strerror_r="yes"
38808 else
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38810$as_echo "no" >&6; }
38811 tst_allow_strerror_r="no"
38812 fi
38813 fi
38814 #
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38816$as_echo_n "checking if strerror_r might be used... " >&6; }
38817 if test "$tst_links_strerror_r" = "yes" &&
38818 test "$tst_proto_strerror_r" = "yes" &&
38819 test "$tst_compi_strerror_r" = "yes" &&
38820 test "$tst_allow_strerror_r" = "yes"; then
38821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38822$as_echo "yes" >&6; }
38823 if test "$tst_glibc_strerror_r" = "yes"; then
38824
38825cat >>confdefs.h <<_ACEOF
38826#define HAVE_STRERROR_R 1
38827_ACEOF
38828
38829
38830cat >>confdefs.h <<_ACEOF
38831#define HAVE_GLIBC_STRERROR_R 1
38832_ACEOF
38833
38834
38835cat >>confdefs.h <<_ACEOF
38836#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38837_ACEOF
38838
38839 fi
38840 if test "$tst_posix_strerror_r" = "yes"; then
38841
38842cat >>confdefs.h <<_ACEOF
38843#define HAVE_STRERROR_R 1
38844_ACEOF
38845
38846
38847cat >>confdefs.h <<_ACEOF
38848#define HAVE_POSIX_STRERROR_R 1
38849_ACEOF
38850
38851
38852cat >>confdefs.h <<_ACEOF
38853#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38854_ACEOF
38855
38856 fi
38857 curl_cv_func_strerror_r="yes"
38858 else
38859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38860$as_echo "no" >&6; }
38861 curl_cv_func_strerror_r="no"
38862 fi
38863 #
38864 if test "$tst_compi_strerror_r" = "yes" &&
38865 test "$tst_allow_strerror_r" = "unknown"; then
38866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38867$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38868 fi
38869 #
38870
38871
38872 #
38873 tst_links_stricmp="unknown"
38874 tst_proto_stricmp="unknown"
38875 tst_compi_stricmp="unknown"
38876 tst_allow_stricmp="unknown"
38877 #
38878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38879$as_echo_n "checking if stricmp can be linked... " >&6; }
38880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38881/* end confdefs.h. */
38882
38883
38884#define stricmp innocuous_stricmp
38885#ifdef __STDC__
38886# include <limits.h>
38887#else
38888# include <assert.h>
38889#endif
38890#undef stricmp
38891#ifdef __cplusplus
38892extern "C"
38893#endif
38894char stricmp ();
38895#if defined __stub_stricmp || defined __stub___stricmp
38896choke me
38897#endif
38898
38899int main (void)
38900{
38901return stricmp ();
38902 ;
38903 return 0;
38904}
38905
38906_ACEOF
38907if ac_fn_c_try_link "$LINENO"; then :
38908
38909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38910$as_echo "yes" >&6; }
38911 tst_links_stricmp="yes"
38912
38913else
38914
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38916$as_echo "no" >&6; }
38917 tst_links_stricmp="no"
38918
38919fi
38920rm -f core conftest.err conftest.$ac_objext \
38921 conftest$ac_exeext conftest.$ac_ext
38922 #
38923 if test "$tst_links_stricmp" = "yes"; then
38924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38925$as_echo_n "checking if stricmp is prototyped... " >&6; }
38926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38927/* end confdefs.h. */
38928
38929 $curl_includes_string
38930
38931_ACEOF
38932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38933 $EGREP "stricmp" >/dev/null 2>&1; then :
38934
38935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38936$as_echo "yes" >&6; }
38937 tst_proto_stricmp="yes"
38938
38939else
38940
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38942$as_echo "no" >&6; }
38943 tst_proto_stricmp="no"
38944
38945fi
38946rm -f conftest*
38947
38948 fi
38949 #
38950 if test "$tst_proto_stricmp" = "yes"; then
38951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38952$as_echo_n "checking if stricmp is compilable... " >&6; }
38953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38954/* end confdefs.h. */
38955
38956
38957 $curl_includes_string
38958
38959int main (void)
38960{
38961
38962 if(0 != stricmp(0, 0))
38963 return 1;
38964
38965 ;
38966 return 0;
38967}
38968
38969_ACEOF
38970if ac_fn_c_try_compile "$LINENO"; then :
38971
38972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38973$as_echo "yes" >&6; }
38974 tst_compi_stricmp="yes"
38975
38976else
38977
38978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38979$as_echo "no" >&6; }
38980 tst_compi_stricmp="no"
38981
38982fi
38983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38984 fi
38985 #
38986 if test "$tst_compi_stricmp" = "yes"; then
38987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38988$as_echo_n "checking if stricmp usage allowed... " >&6; }
38989 if test "x$curl_disallow_stricmp" != "xyes"; then
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991$as_echo "yes" >&6; }
38992 tst_allow_stricmp="yes"
38993 else
38994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38995$as_echo "no" >&6; }
38996 tst_allow_stricmp="no"
38997 fi
38998 fi
38999 #
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
39001$as_echo_n "checking if stricmp might be used... " >&6; }
39002 if test "$tst_links_stricmp" = "yes" &&
39003 test "$tst_proto_stricmp" = "yes" &&
39004 test "$tst_compi_stricmp" = "yes" &&
39005 test "$tst_allow_stricmp" = "yes"; then
39006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39007$as_echo "yes" >&6; }
39008
39009cat >>confdefs.h <<_ACEOF
39010#define HAVE_STRICMP 1
39011_ACEOF
39012
39013 curl_cv_func_stricmp="yes"
39014 else
39015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39016$as_echo "no" >&6; }
39017 curl_cv_func_stricmp="no"
39018 fi
39019
39020
39021 #
39022 tst_links_strncasecmp="unknown"
39023 tst_proto_strncasecmp="unknown"
39024 tst_compi_strncasecmp="unknown"
39025 tst_allow_strncasecmp="unknown"
39026 #
39027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39028$as_echo_n "checking if strncasecmp can be linked... " >&6; }
39029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39030/* end confdefs.h. */
39031
39032
39033#define strncasecmp innocuous_strncasecmp
39034#ifdef __STDC__
39035# include <limits.h>
39036#else
39037# include <assert.h>
39038#endif
39039#undef strncasecmp
39040#ifdef __cplusplus
39041extern "C"
39042#endif
39043char strncasecmp ();
39044#if defined __stub_strncasecmp || defined __stub___strncasecmp
39045choke me
39046#endif
39047
39048int main (void)
39049{
39050return strncasecmp ();
39051 ;
39052 return 0;
39053}
39054
39055_ACEOF
39056if ac_fn_c_try_link "$LINENO"; then :
39057
39058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39059$as_echo "yes" >&6; }
39060 tst_links_strncasecmp="yes"
39061
39062else
39063
39064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39065$as_echo "no" >&6; }
39066 tst_links_strncasecmp="no"
39067
39068fi
39069rm -f core conftest.err conftest.$ac_objext \
39070 conftest$ac_exeext conftest.$ac_ext
39071 #
39072 if test "$tst_links_strncasecmp" = "yes"; then
39073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39074$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39076/* end confdefs.h. */
39077
39078 $curl_includes_string
39079
39080_ACEOF
39081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39082 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39083
39084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39085$as_echo "yes" >&6; }
39086 tst_proto_strncasecmp="yes"
39087
39088else
39089
39090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39091$as_echo "no" >&6; }
39092 tst_proto_strncasecmp="no"
39093
39094fi
39095rm -f conftest*
39096
39097 fi
39098 #
39099 if test "$tst_proto_strncasecmp" = "yes"; then
39100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39101$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39103/* end confdefs.h. */
39104
39105
39106 $curl_includes_string
39107
39108int main (void)
39109{
39110
39111 if(0 != strncasecmp(0, 0, 0))
39112 return 1;
39113
39114 ;
39115 return 0;
39116}
39117
39118_ACEOF
39119if ac_fn_c_try_compile "$LINENO"; then :
39120
39121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39122$as_echo "yes" >&6; }
39123 tst_compi_strncasecmp="yes"
39124
39125else
39126
39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39128$as_echo "no" >&6; }
39129 tst_compi_strncasecmp="no"
39130
39131fi
39132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39133 fi
39134 #
39135 if test "$tst_compi_strncasecmp" = "yes"; then
39136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39137$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39138 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140$as_echo "yes" >&6; }
39141 tst_allow_strncasecmp="yes"
39142 else
39143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39144$as_echo "no" >&6; }
39145 tst_allow_strncasecmp="no"
39146 fi
39147 fi
39148 #
39149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39150$as_echo_n "checking if strncasecmp might be used... " >&6; }
39151 if test "$tst_links_strncasecmp" = "yes" &&
39152 test "$tst_proto_strncasecmp" = "yes" &&
39153 test "$tst_compi_strncasecmp" = "yes" &&
39154 test "$tst_allow_strncasecmp" = "yes"; then
39155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39156$as_echo "yes" >&6; }
39157
39158cat >>confdefs.h <<_ACEOF
39159#define HAVE_STRNCASECMP 1
39160_ACEOF
39161
39162 curl_cv_func_strncasecmp="yes"
39163 else
39164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39165$as_echo "no" >&6; }
39166 curl_cv_func_strncasecmp="no"
39167 fi
39168
39169
39170 #
39171 tst_links_strncmpi="unknown"
39172 tst_proto_strncmpi="unknown"
39173 tst_compi_strncmpi="unknown"
39174 tst_allow_strncmpi="unknown"
39175 #
39176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39177$as_echo_n "checking if strncmpi can be linked... " >&6; }
39178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39179/* end confdefs.h. */
39180
39181
39182#define strncmpi innocuous_strncmpi
39183#ifdef __STDC__
39184# include <limits.h>
39185#else
39186# include <assert.h>
39187#endif
39188#undef strncmpi
39189#ifdef __cplusplus
39190extern "C"
39191#endif
39192char strncmpi ();
39193#if defined __stub_strncmpi || defined __stub___strncmpi
39194choke me
39195#endif
39196
39197int main (void)
39198{
39199return strncmpi ();
39200 ;
39201 return 0;
39202}
39203
39204_ACEOF
39205if ac_fn_c_try_link "$LINENO"; then :
39206
39207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39208$as_echo "yes" >&6; }
39209 tst_links_strncmpi="yes"
39210
39211else
39212
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214$as_echo "no" >&6; }
39215 tst_links_strncmpi="no"
39216
39217fi
39218rm -f core conftest.err conftest.$ac_objext \
39219 conftest$ac_exeext conftest.$ac_ext
39220 #
39221 if test "$tst_links_strncmpi" = "yes"; then
39222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39223$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39225/* end confdefs.h. */
39226
39227 $curl_includes_string
39228
39229_ACEOF
39230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39231 $EGREP "strncmpi" >/dev/null 2>&1; then :
39232
39233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39234$as_echo "yes" >&6; }
39235 tst_proto_strncmpi="yes"
39236
39237else
39238
39239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39240$as_echo "no" >&6; }
39241 tst_proto_strncmpi="no"
39242
39243fi
39244rm -f conftest*
39245
39246 fi
39247 #
39248 if test "$tst_proto_strncmpi" = "yes"; then
39249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39250$as_echo_n "checking if strncmpi is compilable... " >&6; }
39251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39252/* end confdefs.h. */
39253
39254
39255 $curl_includes_string
39256
39257int main (void)
39258{
39259
39260 if(0 != strncmpi(0, 0))
39261 return 1;
39262
39263 ;
39264 return 0;
39265}
39266
39267_ACEOF
39268if ac_fn_c_try_compile "$LINENO"; then :
39269
39270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39271$as_echo "yes" >&6; }
39272 tst_compi_strncmpi="yes"
39273
39274else
39275
39276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39277$as_echo "no" >&6; }
39278 tst_compi_strncmpi="no"
39279
39280fi
39281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39282 fi
39283 #
39284 if test "$tst_compi_strncmpi" = "yes"; then
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39286$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39287 if test "x$curl_disallow_strncmpi" != "xyes"; then
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289$as_echo "yes" >&6; }
39290 tst_allow_strncmpi="yes"
39291 else
39292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39293$as_echo "no" >&6; }
39294 tst_allow_strncmpi="no"
39295 fi
39296 fi
39297 #
39298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39299$as_echo_n "checking if strncmpi might be used... " >&6; }
39300 if test "$tst_links_strncmpi" = "yes" &&
39301 test "$tst_proto_strncmpi" = "yes" &&
39302 test "$tst_compi_strncmpi" = "yes" &&
39303 test "$tst_allow_strncmpi" = "yes"; then
39304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39305$as_echo "yes" >&6; }
39306
39307cat >>confdefs.h <<_ACEOF
39308#define HAVE_STRNCMPI 1
39309_ACEOF
39310
39311 curl_cv_func_strncmpi="yes"
39312 else
39313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39314$as_echo "no" >&6; }
39315 curl_cv_func_strncmpi="no"
39316 fi
39317
39318
39319 #
39320 tst_links_strnicmp="unknown"
39321 tst_proto_strnicmp="unknown"
39322 tst_compi_strnicmp="unknown"
39323 tst_allow_strnicmp="unknown"
39324 #
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39326$as_echo_n "checking if strnicmp can be linked... " >&6; }
39327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39328/* end confdefs.h. */
39329
39330
39331#define strnicmp innocuous_strnicmp
39332#ifdef __STDC__
39333# include <limits.h>
39334#else
39335# include <assert.h>
39336#endif
39337#undef strnicmp
39338#ifdef __cplusplus
39339extern "C"
39340#endif
39341char strnicmp ();
39342#if defined __stub_strnicmp || defined __stub___strnicmp
39343choke me
39344#endif
39345
39346int main (void)
39347{
39348return strnicmp ();
39349 ;
39350 return 0;
39351}
39352
39353_ACEOF
39354if ac_fn_c_try_link "$LINENO"; then :
39355
39356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39357$as_echo "yes" >&6; }
39358 tst_links_strnicmp="yes"
39359
39360else
39361
39362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39363$as_echo "no" >&6; }
39364 tst_links_strnicmp="no"
39365
39366fi
39367rm -f core conftest.err conftest.$ac_objext \
39368 conftest$ac_exeext conftest.$ac_ext
39369 #
39370 if test "$tst_links_strnicmp" = "yes"; then
39371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39372$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39374/* end confdefs.h. */
39375
39376 $curl_includes_string
39377
39378_ACEOF
39379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39380 $EGREP "strnicmp" >/dev/null 2>&1; then :
39381
39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39383$as_echo "yes" >&6; }
39384 tst_proto_strnicmp="yes"
39385
39386else
39387
39388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39389$as_echo "no" >&6; }
39390 tst_proto_strnicmp="no"
39391
39392fi
39393rm -f conftest*
39394
39395 fi
39396 #
39397 if test "$tst_proto_strnicmp" = "yes"; then
39398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39399$as_echo_n "checking if strnicmp is compilable... " >&6; }
39400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39401/* end confdefs.h. */
39402
39403
39404 $curl_includes_string
39405
39406int main (void)
39407{
39408
39409 if(0 != strnicmp(0, 0))
39410 return 1;
39411
39412 ;
39413 return 0;
39414}
39415
39416_ACEOF
39417if ac_fn_c_try_compile "$LINENO"; then :
39418
39419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39420$as_echo "yes" >&6; }
39421 tst_compi_strnicmp="yes"
39422
39423else
39424
39425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39426$as_echo "no" >&6; }
39427 tst_compi_strnicmp="no"
39428
39429fi
39430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39431 fi
39432 #
39433 if test "$tst_compi_strnicmp" = "yes"; then
39434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39435$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39436 if test "x$curl_disallow_strnicmp" != "xyes"; then
39437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438$as_echo "yes" >&6; }
39439 tst_allow_strnicmp="yes"
39440 else
39441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39442$as_echo "no" >&6; }
39443 tst_allow_strnicmp="no"
39444 fi
39445 fi
39446 #
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39448$as_echo_n "checking if strnicmp might be used... " >&6; }
39449 if test "$tst_links_strnicmp" = "yes" &&
39450 test "$tst_proto_strnicmp" = "yes" &&
39451 test "$tst_compi_strnicmp" = "yes" &&
39452 test "$tst_allow_strnicmp" = "yes"; then
39453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39454$as_echo "yes" >&6; }
39455
39456cat >>confdefs.h <<_ACEOF
39457#define HAVE_STRNICMP 1
39458_ACEOF
39459
39460 curl_cv_func_strnicmp="yes"
39461 else
39462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39463$as_echo "no" >&6; }
39464 curl_cv_func_strnicmp="no"
39465 fi
39466
39467
39468 #
39469 tst_links_strstr="unknown"
39470 tst_proto_strstr="unknown"
39471 tst_compi_strstr="unknown"
39472 tst_allow_strstr="unknown"
39473 #
39474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39475$as_echo_n "checking if strstr can be linked... " >&6; }
39476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39477/* end confdefs.h. */
39478
39479
39480#define strstr innocuous_strstr
39481#ifdef __STDC__
39482# include <limits.h>
39483#else
39484# include <assert.h>
39485#endif
39486#undef strstr
39487#ifdef __cplusplus
39488extern "C"
39489#endif
39490char strstr ();
39491#if defined __stub_strstr || defined __stub___strstr
39492choke me
39493#endif
39494
39495int main (void)
39496{
39497return strstr ();
39498 ;
39499 return 0;
39500}
39501
39502_ACEOF
39503if ac_fn_c_try_link "$LINENO"; then :
39504
39505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39506$as_echo "yes" >&6; }
39507 tst_links_strstr="yes"
39508
39509else
39510
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512$as_echo "no" >&6; }
39513 tst_links_strstr="no"
39514
39515fi
39516rm -f core conftest.err conftest.$ac_objext \
39517 conftest$ac_exeext conftest.$ac_ext
39518 #
39519 if test "$tst_links_strstr" = "yes"; then
39520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39521$as_echo_n "checking if strstr is prototyped... " >&6; }
39522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39523/* end confdefs.h. */
39524
39525 $curl_includes_string
39526
39527_ACEOF
39528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39529 $EGREP "strstr" >/dev/null 2>&1; then :
39530
39531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532$as_echo "yes" >&6; }
39533 tst_proto_strstr="yes"
39534
39535else
39536
39537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39538$as_echo "no" >&6; }
39539 tst_proto_strstr="no"
39540
39541fi
39542rm -f conftest*
39543
39544 fi
39545 #
39546 if test "$tst_proto_strstr" = "yes"; then
39547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39548$as_echo_n "checking if strstr is compilable... " >&6; }
39549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39550/* end confdefs.h. */
39551
39552
39553 $curl_includes_string
39554
39555int main (void)
39556{
39557
39558 if(0 != strstr(0, 0))
39559 return 1;
39560
39561 ;
39562 return 0;
39563}
39564
39565_ACEOF
39566if ac_fn_c_try_compile "$LINENO"; then :
39567
39568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39569$as_echo "yes" >&6; }
39570 tst_compi_strstr="yes"
39571
39572else
39573
39574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39575$as_echo "no" >&6; }
39576 tst_compi_strstr="no"
39577
39578fi
39579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39580 fi
39581 #
39582 if test "$tst_compi_strstr" = "yes"; then
39583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39584$as_echo_n "checking if strstr usage allowed... " >&6; }
39585 if test "x$curl_disallow_strstr" != "xyes"; then
39586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39587$as_echo "yes" >&6; }
39588 tst_allow_strstr="yes"
39589 else
39590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39591$as_echo "no" >&6; }
39592 tst_allow_strstr="no"
39593 fi
39594 fi
39595 #
39596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39597$as_echo_n "checking if strstr might be used... " >&6; }
39598 if test "$tst_links_strstr" = "yes" &&
39599 test "$tst_proto_strstr" = "yes" &&
39600 test "$tst_compi_strstr" = "yes" &&
39601 test "$tst_allow_strstr" = "yes"; then
39602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39603$as_echo "yes" >&6; }
39604
39605cat >>confdefs.h <<_ACEOF
39606#define HAVE_STRSTR 1
39607_ACEOF
39608
39609 curl_cv_func_strstr="yes"
39610 else
39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39612$as_echo "no" >&6; }
39613 curl_cv_func_strstr="no"
39614 fi
39615
39616
39617 #
39618 tst_links_strtok_r="unknown"
39619 tst_proto_strtok_r="unknown"
39620 tst_compi_strtok_r="unknown"
39621 tst_allow_strtok_r="unknown"
39622 #
39623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39624$as_echo_n "checking if strtok_r can be linked... " >&6; }
39625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39626/* end confdefs.h. */
39627
39628
39629#define strtok_r innocuous_strtok_r
39630#ifdef __STDC__
39631# include <limits.h>
39632#else
39633# include <assert.h>
39634#endif
39635#undef strtok_r
39636#ifdef __cplusplus
39637extern "C"
39638#endif
39639char strtok_r ();
39640#if defined __stub_strtok_r || defined __stub___strtok_r
39641choke me
39642#endif
39643
39644int main (void)
39645{
39646return strtok_r ();
39647 ;
39648 return 0;
39649}
39650
39651_ACEOF
39652if ac_fn_c_try_link "$LINENO"; then :
39653
39654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39655$as_echo "yes" >&6; }
39656 tst_links_strtok_r="yes"
39657
39658else
39659
39660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39661$as_echo "no" >&6; }
39662 tst_links_strtok_r="no"
39663
39664fi
39665rm -f core conftest.err conftest.$ac_objext \
39666 conftest$ac_exeext conftest.$ac_ext
39667 #
39668 if test "$tst_links_strtok_r" = "yes"; then
39669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39670$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39672/* end confdefs.h. */
39673
39674 $curl_includes_string
39675
39676_ACEOF
39677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39678 $EGREP "strtok_r" >/dev/null 2>&1; then :
39679
39680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39681$as_echo "yes" >&6; }
39682 tst_proto_strtok_r="yes"
39683
39684else
39685
39686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39687$as_echo "no" >&6; }
39688 tst_proto_strtok_r="no"
39689
39690fi
39691rm -f conftest*
39692
39693 fi
39694 #
39695 if test "$tst_proto_strtok_r" = "yes"; then
39696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39697$as_echo_n "checking if strtok_r is compilable... " >&6; }
39698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39699/* end confdefs.h. */
39700
39701
39702 $curl_includes_string
39703
39704int main (void)
39705{
39706
39707 if(0 != strtok_r(0, 0, 0))
39708 return 1;
39709
39710 ;
39711 return 0;
39712}
39713
39714_ACEOF
39715if ac_fn_c_try_compile "$LINENO"; then :
39716
39717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39718$as_echo "yes" >&6; }
39719 tst_compi_strtok_r="yes"
39720
39721else
39722
39723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39724$as_echo "no" >&6; }
39725 tst_compi_strtok_r="no"
39726
39727fi
39728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39729 fi
39730 #
39731 if test "$tst_compi_strtok_r" = "yes"; then
39732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39733$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39734 if test "x$curl_disallow_strtok_r" != "xyes"; then
39735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39736$as_echo "yes" >&6; }
39737 tst_allow_strtok_r="yes"
39738 else
39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39740$as_echo "no" >&6; }
39741 tst_allow_strtok_r="no"
39742 fi
39743 fi
39744 #
39745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39746$as_echo_n "checking if strtok_r might be used... " >&6; }
39747 if test "$tst_links_strtok_r" = "yes" &&
39748 test "$tst_proto_strtok_r" = "yes" &&
39749 test "$tst_compi_strtok_r" = "yes" &&
39750 test "$tst_allow_strtok_r" = "yes"; then
39751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39752$as_echo "yes" >&6; }
39753
39754cat >>confdefs.h <<_ACEOF
39755#define HAVE_STRTOK_R 1
39756_ACEOF
39757
39758 curl_cv_func_strtok_r="yes"
39759 else
39760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39761$as_echo "no" >&6; }
39762 curl_cv_func_strtok_r="no"
39763 fi
39764
39765
39766 #
39767 tst_links_strtoll="unknown"
39768 tst_proto_strtoll="unknown"
39769 tst_compi_strtoll="unknown"
39770 tst_allow_strtoll="unknown"
39771 #
39772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39773$as_echo_n "checking if strtoll can be linked... " >&6; }
39774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39775/* end confdefs.h. */
39776
39777
39778#define strtoll innocuous_strtoll
39779#ifdef __STDC__
39780# include <limits.h>
39781#else
39782# include <assert.h>
39783#endif
39784#undef strtoll
39785#ifdef __cplusplus
39786extern "C"
39787#endif
39788char strtoll ();
39789#if defined __stub_strtoll || defined __stub___strtoll
39790choke me
39791#endif
39792
39793int main (void)
39794{
39795return strtoll ();
39796 ;
39797 return 0;
39798}
39799
39800_ACEOF
39801if ac_fn_c_try_link "$LINENO"; then :
39802
39803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39804$as_echo "yes" >&6; }
39805 tst_links_strtoll="yes"
39806
39807else
39808
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39810$as_echo "no" >&6; }
39811 tst_links_strtoll="no"
39812
39813fi
39814rm -f core conftest.err conftest.$ac_objext \
39815 conftest$ac_exeext conftest.$ac_ext
39816 #
39817 if test "$tst_links_strtoll" = "yes"; then
39818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39819$as_echo_n "checking if strtoll is prototyped... " >&6; }
39820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39821/* end confdefs.h. */
39822
39823 $curl_includes_stdlib
39824
39825_ACEOF
39826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39827 $EGREP "strtoll" >/dev/null 2>&1; then :
39828
39829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39830$as_echo "yes" >&6; }
39831 tst_proto_strtoll="yes"
39832
39833else
39834
39835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39836$as_echo "no" >&6; }
39837 tst_proto_strtoll="no"
39838
39839fi
39840rm -f conftest*
39841
39842 fi
39843 #
39844 if test "$tst_proto_strtoll" = "yes"; then
39845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39846$as_echo_n "checking if strtoll is compilable... " >&6; }
39847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39848/* end confdefs.h. */
39849
39850
39851 $curl_includes_stdlib
39852
39853int main (void)
39854{
39855
39856 if(0 != strtoll(0, 0, 0))
39857 return 1;
39858
39859 ;
39860 return 0;
39861}
39862
39863_ACEOF
39864if ac_fn_c_try_compile "$LINENO"; then :
39865
39866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39867$as_echo "yes" >&6; }
39868 tst_compi_strtoll="yes"
39869
39870else
39871
39872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39873$as_echo "no" >&6; }
39874 tst_compi_strtoll="no"
39875
39876fi
39877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39878 fi
39879 #
39880 if test "$tst_compi_strtoll" = "yes"; then
39881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39882$as_echo_n "checking if strtoll usage allowed... " >&6; }
39883 if test "x$curl_disallow_strtoll" != "xyes"; then
39884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39885$as_echo "yes" >&6; }
39886 tst_allow_strtoll="yes"
39887 else
39888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39889$as_echo "no" >&6; }
39890 tst_allow_strtoll="no"
39891 fi
39892 fi
39893 #
39894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39895$as_echo_n "checking if strtoll might be used... " >&6; }
39896 if test "$tst_links_strtoll" = "yes" &&
39897 test "$tst_proto_strtoll" = "yes" &&
39898 test "$tst_compi_strtoll" = "yes" &&
39899 test "$tst_allow_strtoll" = "yes"; then
39900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39901$as_echo "yes" >&6; }
39902
39903cat >>confdefs.h <<_ACEOF
39904#define HAVE_STRTOLL 1
39905_ACEOF
39906
39907 curl_cv_func_strtoll="yes"
39908 else
39909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39910$as_echo "no" >&6; }
39911 curl_cv_func_strtoll="no"
39912 fi
39913
39914
39915curl_includes_sys_uio="\
39916/* includes start */
39917#ifdef HAVE_SYS_TYPES_H
39918# include <sys/types.h>
39919#endif
39920#ifdef HAVE_SYS_UIO_H
39921# include <sys/uio.h>
39922#endif
39923/* includes end */"
39924 for ac_header in sys/types.h sys/uio.h
39925do :
39926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39928"
39929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39930 cat >>confdefs.h <<_ACEOF
39931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39932_ACEOF
39933
39934fi
39935
39936done
39937
39938
39939
39940 #
39941 tst_links_writev="unknown"
39942 tst_proto_writev="unknown"
39943 tst_compi_writev="unknown"
39944 tst_allow_writev="unknown"
39945 #
39946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39947$as_echo_n "checking if writev can be linked... " >&6; }
39948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39949/* end confdefs.h. */
39950
39951
39952#define writev innocuous_writev
39953#ifdef __STDC__
39954# include <limits.h>
39955#else
39956# include <assert.h>
39957#endif
39958#undef writev
39959#ifdef __cplusplus
39960extern "C"
39961#endif
39962char writev ();
39963#if defined __stub_writev || defined __stub___writev
39964choke me
39965#endif
39966
39967int main (void)
39968{
39969return writev ();
39970 ;
39971 return 0;
39972}
39973
39974_ACEOF
39975if ac_fn_c_try_link "$LINENO"; then :
39976
39977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39978$as_echo "yes" >&6; }
39979 tst_links_writev="yes"
39980
39981else
39982
39983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39984$as_echo "no" >&6; }
39985 tst_links_writev="no"
39986
39987fi
39988rm -f core conftest.err conftest.$ac_objext \
39989 conftest$ac_exeext conftest.$ac_ext
39990 #
39991 if test "$tst_links_writev" = "yes"; then
39992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39993$as_echo_n "checking if writev is prototyped... " >&6; }
39994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39995/* end confdefs.h. */
39996
39997 $curl_includes_sys_uio
39998
39999_ACEOF
40000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40001 $EGREP "writev" >/dev/null 2>&1; then :
40002
40003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40004$as_echo "yes" >&6; }
40005 tst_proto_writev="yes"
40006
40007else
40008
40009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40010$as_echo "no" >&6; }
40011 tst_proto_writev="no"
40012
40013fi
40014rm -f conftest*
40015
40016 fi
40017 #
40018 if test "$tst_proto_writev" = "yes"; then
40019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40020$as_echo_n "checking if writev is compilable... " >&6; }
40021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40022/* end confdefs.h. */
40023
40024
40025 $curl_includes_sys_uio
40026
40027int main (void)
40028{
40029
40030 if(0 != writev(0, 0, 0))
40031 return 1;
40032
40033 ;
40034 return 0;
40035}
40036
40037_ACEOF
40038if ac_fn_c_try_compile "$LINENO"; then :
40039
40040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40041$as_echo "yes" >&6; }
40042 tst_compi_writev="yes"
40043
40044else
40045
40046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40047$as_echo "no" >&6; }
40048 tst_compi_writev="no"
40049
40050fi
40051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40052 fi
40053 #
40054 if test "$tst_compi_writev" = "yes"; then
40055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40056$as_echo_n "checking if writev usage allowed... " >&6; }
40057 if test "x$curl_disallow_writev" != "xyes"; then
40058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40059$as_echo "yes" >&6; }
40060 tst_allow_writev="yes"
40061 else
40062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40063$as_echo "no" >&6; }
40064 tst_allow_writev="no"
40065 fi
40066 fi
40067 #
40068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40069$as_echo_n "checking if writev might be used... " >&6; }
40070 if test "$tst_links_writev" = "yes" &&
40071 test "$tst_proto_writev" = "yes" &&
40072 test "$tst_compi_writev" = "yes" &&
40073 test "$tst_allow_writev" = "yes"; then
40074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40075$as_echo "yes" >&6; }
40076
40077cat >>confdefs.h <<_ACEOF
40078#define HAVE_WRITEV 1
40079_ACEOF
40080
40081 curl_cv_func_writev="yes"
40082 else
40083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40084$as_echo "no" >&6; }
40085 curl_cv_func_writev="no"
40086 fi
40087
40088
40089case $host in
40090 *msdosdjgpp)
40091 ac_cv_func_pipe=no
40092 skipcheck_pipe=yes
40093 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40094$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40095 ;;
40096esac
40097
Elliott Hughes72d948d2018-08-03 14:37:21 -070040098ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40099 #include <sys/types.h>
40100"
40101if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40102 ac_have_decl=1
40103else
40104 ac_have_decl=0
40105fi
40106
40107cat >>confdefs.h <<_ACEOF
40108#define HAVE_DECL_GETPWUID_R $ac_have_decl
40109_ACEOF
40110if test $ac_have_decl = 1; then :
40111
40112else
40113
40114$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40115
40116fi
40117
40118
40119
40120for ac_func in fnmatch \
40121 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040122 getpass_r \
40123 getppid \
40124 getpwuid \
40125 getpwuid_r \
40126 getrlimit \
40127 gettimeofday \
40128 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040129 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040130 pipe \
40131 setlocale \
40132 setmode \
40133 setrlimit \
40134 utime \
40135 utimes
40136
40137do :
40138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40139ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40140if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40141 cat >>confdefs.h <<_ACEOF
40142#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40143_ACEOF
40144
40145
40146else
40147
40148 func="$ac_func"
40149 eval skipcheck=\$skipcheck_$func
40150 if test "x$skipcheck" != "xyes"; then
40151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40152$as_echo_n "checking deeper for $func... " >&6; }
40153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40154/* end confdefs.h. */
40155
40156
40157
40158int main (void)
40159{
40160
40161 $func ();
40162
40163 ;
40164 return 0;
40165}
40166
40167_ACEOF
40168if ac_fn_c_try_link "$LINENO"; then :
40169
40170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40171$as_echo "yes" >&6; }
40172 eval "ac_cv_func_$func=yes"
40173
40174cat >>confdefs.h <<_ACEOF
40175#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40176_ACEOF
40177
40178
40179else
40180
40181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40182$as_echo "but still no" >&6; }
40183
40184fi
40185rm -f core conftest.err conftest.$ac_objext \
40186 conftest$ac_exeext conftest.$ac_ext
40187 fi
40188
40189fi
40190done
40191
40192
Elliott Hughes82be86d2017-09-20 17:00:17 -070040193if test "$ipv6" = "yes"; then
40194 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40195
40196$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40197
40198 IPV6_ENABLED=1
40199
40200 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040201fi
40202
40203
40204 #
40205 tst_method="unknown"
40206
40207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40208$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40209 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40210 tst_method="fcntl O_NONBLOCK"
40211 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40212 tst_method="ioctl FIONBIO"
40213 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40214 tst_method="ioctlsocket FIONBIO"
40215 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40216 tst_method="IoctlSocket FIONBIO"
40217 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40218 tst_method="setsockopt SO_NONBLOCK"
40219 fi
40220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40221$as_echo "$tst_method" >&6; }
40222 if test "$tst_method" = "unknown"; then
40223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40224$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40225 fi
40226
40227
40228
40229# Extract the first word of "perl", so it can be a program name with args.
40230set dummy perl; ac_word=$2
40231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40232$as_echo_n "checking for $ac_word... " >&6; }
40233if ${ac_cv_path_PERL+:} false; then :
40234 $as_echo_n "(cached) " >&6
40235else
40236 case $PERL in
40237 [\\/]* | ?:[\\/]*)
40238 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40239 ;;
40240 *)
40241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40242as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40243for as_dir in $as_dummy
40244do
40245 IFS=$as_save_IFS
40246 test -z "$as_dir" && as_dir=.
40247 for ac_exec_ext in '' $ac_executable_extensions; do
40248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40251 break 2
40252 fi
40253done
40254 done
40255IFS=$as_save_IFS
40256
40257 ;;
40258esac
40259fi
40260PERL=$ac_cv_path_PERL
40261if test -n "$PERL"; then
40262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40263$as_echo "$PERL" >&6; }
40264else
40265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40266$as_echo "no" >&6; }
40267fi
40268
40269
40270
40271
40272for ac_prog in gnroff nroff
40273do
40274 # Extract the first word of "$ac_prog", so it can be a program name with args.
40275set dummy $ac_prog; ac_word=$2
40276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40277$as_echo_n "checking for $ac_word... " >&6; }
40278if ${ac_cv_path_NROFF+:} false; then :
40279 $as_echo_n "(cached) " >&6
40280else
40281 case $NROFF in
40282 [\\/]* | ?:[\\/]*)
40283 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40284 ;;
40285 *)
40286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40287as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40288for as_dir in $as_dummy
40289do
40290 IFS=$as_save_IFS
40291 test -z "$as_dir" && as_dir=.
40292 for ac_exec_ext in '' $ac_executable_extensions; do
40293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40294 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40296 break 2
40297 fi
40298done
40299 done
40300IFS=$as_save_IFS
40301
40302 ;;
40303esac
40304fi
40305NROFF=$ac_cv_path_NROFF
40306if test -n "$NROFF"; then
40307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40308$as_echo "$NROFF" >&6; }
40309else
40310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40311$as_echo "no" >&6; }
40312fi
40313
40314
40315 test -n "$NROFF" && break
40316done
40317
40318
40319
40320if test -n "$NROFF"; then
40321
40322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40323$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40324 MANOPT="-man"
40325 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40326 if test -z "$mancheck"; then
40327 MANOPT="-mandoc"
40328 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40329 if test -z "$mancheck"; then
40330 MANOPT=""
40331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40332$as_echo "failed" >&6; }
40333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40334$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40335 else
40336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40337$as_echo "$MANOPT" >&6; }
40338 fi
40339 else
40340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40341$as_echo "$MANOPT" >&6; }
40342 fi
40343
40344fi
40345
40346if test -z "$MANOPT"
40347then
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40349$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40350 USE_MANUAL="no";
40351fi
40352
40353
40354if test "$USE_MANUAL" = "1"; then
40355
40356$as_echo "#define USE_MANUAL 1" >>confdefs.h
40357
40358 curl_manual_msg="enabled"
40359fi
40360
40361 if test x"$USE_MANUAL" = x1; then
40362 USE_MANUAL_TRUE=
40363 USE_MANUAL_FALSE='#'
40364else
40365 USE_MANUAL_TRUE='#'
40366 USE_MANUAL_FALSE=
40367fi
40368
40369
40370
40371
40372
40373 #
40374 if test "$want_ares" = "yes"; then
40375 clean_CPPFLAGS="$CPPFLAGS"
40376 clean_LDFLAGS="$LDFLAGS"
40377 clean_LIBS="$LIBS"
40378 embedded_ares="unknown"
40379 configure_runpath=`pwd`
40380 embedded_ares_builddir="$configure_runpath/ares"
40381 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040382 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40383
40384 if test -n "$PKG_CONFIG"; then
40385 PKGCONFIG="$PKG_CONFIG"
40386 else
40387 if test -n "$ac_tool_prefix"; then
40388 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40389set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40391$as_echo_n "checking for $ac_word... " >&6; }
40392if ${ac_cv_path_PKGCONFIG+:} false; then :
40393 $as_echo_n "(cached) " >&6
40394else
40395 case $PKGCONFIG in
40396 [\\/]* | ?:[\\/]*)
40397 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40398 ;;
40399 *)
40400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40401as_dummy="$PATH:/usr/bin:/usr/local/bin"
40402for as_dir in $as_dummy
40403do
40404 IFS=$as_save_IFS
40405 test -z "$as_dir" && as_dir=.
40406 for ac_exec_ext in '' $ac_executable_extensions; do
40407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40408 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40410 break 2
40411 fi
40412done
40413 done
40414IFS=$as_save_IFS
40415
40416 ;;
40417esac
40418fi
40419PKGCONFIG=$ac_cv_path_PKGCONFIG
40420if test -n "$PKGCONFIG"; then
40421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40422$as_echo "$PKGCONFIG" >&6; }
40423else
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40425$as_echo "no" >&6; }
40426fi
40427
40428
40429fi
40430if test -z "$ac_cv_path_PKGCONFIG"; then
40431 ac_pt_PKGCONFIG=$PKGCONFIG
40432 # Extract the first word of "pkg-config", so it can be a program name with args.
40433set dummy pkg-config; ac_word=$2
40434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40435$as_echo_n "checking for $ac_word... " >&6; }
40436if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40437 $as_echo_n "(cached) " >&6
40438else
40439 case $ac_pt_PKGCONFIG in
40440 [\\/]* | ?:[\\/]*)
40441 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40442 ;;
40443 *)
40444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40445as_dummy="$PATH:/usr/bin:/usr/local/bin"
40446for as_dir in $as_dummy
40447do
40448 IFS=$as_save_IFS
40449 test -z "$as_dir" && as_dir=.
40450 for ac_exec_ext in '' $ac_executable_extensions; do
40451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40452 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40454 break 2
40455 fi
40456done
40457 done
40458IFS=$as_save_IFS
40459
40460 ;;
40461esac
40462fi
40463ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40464if test -n "$ac_pt_PKGCONFIG"; then
40465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40466$as_echo "$ac_pt_PKGCONFIG" >&6; }
40467else
40468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40469$as_echo "no" >&6; }
40470fi
40471
40472 if test "x$ac_pt_PKGCONFIG" = x; then
40473 PKGCONFIG="no"
40474 else
40475 case $cross_compiling:$ac_tool_warned in
40476yes:)
40477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40479ac_tool_warned=yes ;;
40480esac
40481 PKGCONFIG=$ac_pt_PKGCONFIG
40482 fi
40483else
40484 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40485fi
40486
40487 fi
40488
40489 if test "x$PKGCONFIG" != "xno"; then
40490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40491$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40492 itexists=`
40493 if test -n "$ARES_PCDIR"; then
40494 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40495 export PKG_CONFIG_LIBDIR
40496 fi
40497 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40498
40499 if test -z "$itexists"; then
40500 PKGCONFIG="no"
40501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40502$as_echo "no" >&6; }
40503 else
40504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40505$as_echo "found" >&6; }
40506 fi
40507 fi
40508
40509 if test "$PKGCONFIG" != "no" ; then
40510 ares_LIBS=`
40511 if test -n "$ARES_PCDIR"; then
40512 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40513 export PKG_CONFIG_LIBDIR
40514 fi
40515
40516 $PKGCONFIG --libs-only-l libcares`
40517 ares_LDFLAGS=`
40518 if test -n "$ARES_PCDIR"; then
40519 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40520 export PKG_CONFIG_LIBDIR
40521 fi
40522
40523 $PKGCONFIG --libs-only-L libcares`
40524 ares_CPPFLAGS=`
40525 if test -n "$ARES_PCDIR"; then
40526 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40527 export PKG_CONFIG_LIBDIR
40528 fi
40529
40530 $PKGCONFIG --cflags-only-I libcares`
40531 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40532$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40533 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40534$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40535 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40536$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40537 else
40538 ares_CPPFLAGS="-I$want_ares_path/include"
40539 ares_LDFLAGS="-L$want_ares_path/lib"
40540 ares_LIBS="-lcares"
40541 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040542 else
40543 if test -d "$srcdir/ares"; then
40544 embedded_ares="yes"
40545 subdirs="$subdirs ares"
40546
40547 ares_CPPFLAGS=""
40548 ares_LDFLAGS="-L$embedded_ares_builddir"
40549 ares_LIBS="-lcares"
40550 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040551
40552 if test -n "$PKG_CONFIG"; then
40553 PKGCONFIG="$PKG_CONFIG"
40554 else
40555 if test -n "$ac_tool_prefix"; then
40556 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40557set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40559$as_echo_n "checking for $ac_word... " >&6; }
40560if ${ac_cv_path_PKGCONFIG+:} false; then :
40561 $as_echo_n "(cached) " >&6
40562else
40563 case $PKGCONFIG in
40564 [\\/]* | ?:[\\/]*)
40565 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40566 ;;
40567 *)
40568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40569as_dummy="$PATH:/usr/bin:/usr/local/bin"
40570for as_dir in $as_dummy
40571do
40572 IFS=$as_save_IFS
40573 test -z "$as_dir" && as_dir=.
40574 for ac_exec_ext in '' $ac_executable_extensions; do
40575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40576 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40578 break 2
40579 fi
40580done
40581 done
40582IFS=$as_save_IFS
40583
40584 ;;
40585esac
40586fi
40587PKGCONFIG=$ac_cv_path_PKGCONFIG
40588if test -n "$PKGCONFIG"; then
40589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40590$as_echo "$PKGCONFIG" >&6; }
40591else
40592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40593$as_echo "no" >&6; }
40594fi
40595
40596
40597fi
40598if test -z "$ac_cv_path_PKGCONFIG"; then
40599 ac_pt_PKGCONFIG=$PKGCONFIG
40600 # Extract the first word of "pkg-config", so it can be a program name with args.
40601set dummy pkg-config; ac_word=$2
40602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40603$as_echo_n "checking for $ac_word... " >&6; }
40604if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40605 $as_echo_n "(cached) " >&6
40606else
40607 case $ac_pt_PKGCONFIG in
40608 [\\/]* | ?:[\\/]*)
40609 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40610 ;;
40611 *)
40612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40613as_dummy="$PATH:/usr/bin:/usr/local/bin"
40614for as_dir in $as_dummy
40615do
40616 IFS=$as_save_IFS
40617 test -z "$as_dir" && as_dir=.
40618 for ac_exec_ext in '' $ac_executable_extensions; do
40619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40620 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40622 break 2
40623 fi
40624done
40625 done
40626IFS=$as_save_IFS
40627
40628 ;;
40629esac
40630fi
40631ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40632if test -n "$ac_pt_PKGCONFIG"; then
40633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40634$as_echo "$ac_pt_PKGCONFIG" >&6; }
40635else
40636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40637$as_echo "no" >&6; }
40638fi
40639
40640 if test "x$ac_pt_PKGCONFIG" = x; then
40641 PKGCONFIG="no"
40642 else
40643 case $cross_compiling:$ac_tool_warned in
40644yes:)
40645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40647ac_tool_warned=yes ;;
40648esac
40649 PKGCONFIG=$ac_pt_PKGCONFIG
40650 fi
40651else
40652 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40653fi
40654
40655 fi
40656
40657 if test "x$PKGCONFIG" != "xno"; then
40658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40659$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40660 itexists=`
40661 if test -n ""; then
40662 PKG_CONFIG_LIBDIR=""
40663 export PKG_CONFIG_LIBDIR
40664 fi
40665 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40666
40667 if test -z "$itexists"; then
40668 PKGCONFIG="no"
40669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40670$as_echo "no" >&6; }
40671 else
40672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40673$as_echo "found" >&6; }
40674 fi
40675 fi
40676
40677 if test "$PKGCONFIG" != "no" ; then
40678 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40679 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40680 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40681 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40682$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40683 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40684$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40685 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40686$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40687 else
40688 ares_CPPFLAGS=""
40689 ares_LDFLAGS=""
40690 ares_LIBS="-lcares"
40691 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040692 fi
40693 fi
40694 #
40695 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40696 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40697 LIBS="$ares_LIBS $clean_LIBS"
40698 #
40699 if test "$embedded_ares" != "yes"; then
40700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40701$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40703/* end confdefs.h. */
40704
40705
40706#include <ares.h>
40707 /* set of dummy functions in case c-ares was built with debug */
40708 void curl_dofree() { }
40709 void curl_sclose() { }
40710 void curl_domalloc() { }
40711 void curl_docalloc() { }
40712 void curl_socket() { }
40713
40714int main (void)
40715{
40716
40717 ares_channel channel;
40718 ares_cancel(channel); /* added in 1.2.0 */
40719 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40720 ares_dup(&channel, channel); /* added in 1.6.0 */
40721
40722 ;
40723 return 0;
40724}
40725
40726_ACEOF
40727if ac_fn_c_try_link "$LINENO"; then :
40728
40729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40730$as_echo "yes" >&6; }
40731
40732else
40733
40734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40735$as_echo "no" >&6; }
40736 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40737 CPPFLAGS="$clean_CPPFLAGS"
40738 LDFLAGS="$clean_LDFLAGS"
40739 LIBS="$clean_LIBS"
40740 # prevent usage
40741 want_ares="no"
40742
40743fi
40744rm -f core conftest.err conftest.$ac_objext \
40745 conftest$ac_exeext conftest.$ac_ext
40746 fi
40747 if test "$want_ares" = "yes"; then
40748
40749$as_echo "#define USE_ARES 1" >>confdefs.h
40750
40751 USE_ARES=1
40752
40753 curl_res_msg="c-ares"
40754 fi
40755 fi
40756
40757 if test x$embedded_ares = xyes; then
40758 USE_EMBEDDED_ARES_TRUE=
40759 USE_EMBEDDED_ARES_FALSE='#'
40760else
40761 USE_EMBEDDED_ARES_TRUE='#'
40762 USE_EMBEDDED_ARES_FALSE=
40763fi
40764
40765
40766if test "x$curl_cv_native_windows" != "xyes" &&
40767 test "x$enable_shared" = "xyes"; then
40768 build_libhostname=yes
40769else
40770 build_libhostname=no
40771fi
40772 if test x$build_libhostname = xyes; then
40773 BUILD_LIBHOSTNAME_TRUE=
40774 BUILD_LIBHOSTNAME_FALSE='#'
40775else
40776 BUILD_LIBHOSTNAME_TRUE='#'
40777 BUILD_LIBHOSTNAME_FALSE=
40778fi
40779
40780
40781if test "x$want_ares" != xyes; then
40782
40783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40784$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40785 OPT_THRES="default"
40786 # Check whether --enable-threaded_resolver was given.
40787if test "${enable_threaded_resolver+set}" = set; then :
40788 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40789fi
40790
40791 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040792 no)
40793 want_thres="no"
40794 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040795 *)
40796 want_thres="yes"
40797 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040798 esac
40799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40800$as_echo "$want_thres" >&6; }
40801
40802fi
40803
40804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40805$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40806# Check whether --enable-pthreads was given.
40807if test "${enable_pthreads+set}" = set; then :
40808 enableval=$enable_pthreads; case "$enableval" in
40809 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40810$as_echo "no" >&6; }
40811 want_pthreads=no
40812 ;;
40813 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40814$as_echo "yes" >&6; }
40815 want_pthreads=yes
40816 ;;
40817 esac
40818else
40819
40820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40821$as_echo "auto" >&6; }
40822 want_pthreads=auto
40823
40824
40825fi
40826
40827
40828if test "$want_pthreads" != "no"; then
40829 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40830 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40831 fi
40832 if test "$dontwant_rt" != "no"; then
40833 if test "$want_pthreads" = "yes"; then
40834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40835$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40836 fi
40837 want_pthreads=no
40838 fi
40839fi
40840
40841if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40842 want_pthreads=no
40843fi
40844
40845if test "$want_pthreads" != "no"; then
40846 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40847if test "x$ac_cv_header_pthread_h" = xyes; then :
40848
40849$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40850
40851 save_CFLAGS="$CFLAGS"
40852
40853 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40854if test "x$ac_cv_func_pthread_create" = xyes; then :
40855 USE_THREADS_POSIX=1
40856fi
40857
40858
Elliott Hughesa93fb052018-12-12 14:22:48 -080040859 case $host in
40860 *-hp-hpux*)
40861 USE_THREADS_POSIX=""
40862 ;;
40863 *)
40864 ;;
40865 esac
40866
Elliott Hughes82be86d2017-09-20 17:00:17 -070040867 if test "$USE_THREADS_POSIX" != "1"
40868 then
40869 CFLAGS="$CFLAGS -pthread"
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40871$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40872if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40873 $as_echo_n "(cached) " >&6
40874else
40875 ac_check_lib_save_LIBS=$LIBS
40876LIBS="-lpthread $LIBS"
40877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40878/* end confdefs.h. */
40879
40880
40881#ifdef __cplusplus
40882extern "C"
40883#endif
40884char pthread_create ();
40885int main (void)
40886{
40887return pthread_create ();
40888 ;
40889 return 0;
40890}
40891_ACEOF
40892if ac_fn_c_try_link "$LINENO"; then :
40893 ac_cv_lib_pthread_pthread_create=yes
40894else
40895 ac_cv_lib_pthread_pthread_create=no
40896fi
40897rm -f core conftest.err conftest.$ac_objext \
40898 conftest$ac_exeext conftest.$ac_ext
40899LIBS=$ac_check_lib_save_LIBS
40900fi
40901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40902$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40903if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40904 USE_THREADS_POSIX=1
40905else
40906 CFLAGS="$save_CFLAGS"
40907fi
40908
40909 fi
40910
40911 if test "x$USE_THREADS_POSIX" = "x1"
40912 then
40913
40914$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40915
40916 curl_res_msg="POSIX threaded"
40917 fi
40918
40919fi
40920
40921
40922fi
40923
40924if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40925 if test "$want_pthreads" = "yes"; then
40926 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40927 fi
40928 if test "$curl_cv_native_windows" = "yes"; then
40929 USE_THREADS_WIN32=1
40930
40931$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40932
40933 curl_res_msg="Win32 threaded"
40934 else
40935 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40936 fi
40937fi
40938
40939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40940$as_echo_n "checking whether to enable verbose strings... " >&6; }
40941# Check whether --enable-verbose was given.
40942if test "${enable_verbose+set}" = set; then :
40943 enableval=$enable_verbose; case "$enableval" in
40944 no)
40945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40946$as_echo "no" >&6; }
40947
40948$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40949
40950 curl_verbose_msg="no"
40951 ;;
40952 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40953$as_echo "yes" >&6; }
40954 ;;
40955 esac
40956else
40957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40958$as_echo "yes" >&6; }
40959
40960fi
40961
40962
40963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40964$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40965# Check whether --enable-sspi was given.
40966if test "${enable_sspi+set}" = set; then :
40967 enableval=$enable_sspi; case "$enableval" in
40968 yes)
40969 if test "$curl_cv_native_windows" = "yes"; then
40970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40971$as_echo "yes" >&6; }
40972
40973$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40974
40975 USE_WINDOWS_SSPI=1
40976
40977 curl_sspi_msg="enabled"
40978 else
40979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40980$as_echo "no" >&6; }
40981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40982$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40983 fi
40984 ;;
40985 *)
40986 if test "x$WINSSL_ENABLED" = "x1"; then
40987 # --with-winssl implies --enable-sspi
40988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40989$as_echo "yes" >&6; }
40990 else
40991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40992$as_echo "no" >&6; }
40993 fi
40994 ;;
40995 esac
40996else
40997 if test "x$WINSSL_ENABLED" = "x1"; then
40998 # --with-winssl implies --enable-sspi
40999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41000$as_echo "yes" >&6; }
41001 else
41002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41003$as_echo "no" >&6; }
41004 fi
41005
41006fi
41007
41008
41009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41010$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41011# Check whether --enable-crypto-auth was given.
41012if test "${enable_crypto_auth+set}" = set; then :
41013 enableval=$enable_crypto_auth; case "$enableval" in
41014 no)
41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41016$as_echo "no" >&6; }
41017
41018$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41019
41020 CURL_DISABLE_CRYPTO_AUTH=1
41021 ;;
41022 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41023$as_echo "yes" >&6; }
41024 ;;
41025 esac
41026else
41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41028$as_echo "yes" >&6; }
41029
41030fi
41031
41032
41033
41034 OPT_NTLM_WB="default"
41035 # Check whether --enable-ntlm-wb was given.
41036if test "${enable_ntlm_wb+set}" = set; then :
41037 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41038fi
41039
41040 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41041 case "$OPT_NTLM_WB" in
41042 no)
41043 want_ntlm_wb="no"
41044 ;;
41045 default)
41046 want_ntlm_wb="yes"
41047 ;;
41048 *)
41049 want_ntlm_wb="yes"
41050 if test -n "$enableval" && test "$enableval" != "yes"; then
41051 want_ntlm_wb_file="$enableval"
41052 fi
41053 ;;
41054 esac
41055
41056
41057
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41059$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41060 if test "$curl_cv_native_windows" = "yes" ||
41061 test "x$SSL_ENABLED" = "x"; then
41062 want_ntlm_wb_file=""
41063 want_ntlm_wb="no"
41064 fi
41065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41066$as_echo "$want_ntlm_wb" >&6; }
41067 if test "$want_ntlm_wb" = "yes"; then
41068
41069$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41070
41071
41072cat >>confdefs.h <<_ACEOF
41073#define NTLM_WB_FILE "$want_ntlm_wb_file"
41074_ACEOF
41075
41076 NTLM_WB_ENABLED=1
41077 fi
41078
41079
41080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41081$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41082# Check whether --enable-tls-srp was given.
41083if test "${enable_tls_srp+set}" = set; then :
41084 enableval=$enable_tls_srp; case "$enableval" in
41085 no)
41086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41087$as_echo "no" >&6; }
41088
41089$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41090
41091 want_tls_srp=no
41092 ;;
41093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41094$as_echo "yes" >&6; }
41095 want_tls_srp=yes
41096 ;;
41097 esac
41098else
41099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41100$as_echo "yes" >&6; }
41101 want_tls_srp=yes
41102
41103fi
41104
41105
41106if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41107
41108$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41109
41110 USE_TLS_SRP=1
41111 curl_tls_srp_msg="enabled"
41112fi
41113
41114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41115$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41116# Check whether --enable-unix-sockets was given.
41117if test "${enable_unix_sockets+set}" = set; then :
41118 enableval=$enable_unix_sockets; case "$enableval" in
41119 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41120$as_echo "no" >&6; }
41121 want_unix_sockets=no
41122 ;;
41123 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41124$as_echo "yes" >&6; }
41125 want_unix_sockets=yes
41126 ;;
41127 esac
41128else
41129
41130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41131$as_echo "auto" >&6; }
41132 want_unix_sockets=auto
41133
41134
41135fi
41136
41137if test "x$want_unix_sockets" != "xno"; then
41138 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41139 #include <sys/un.h>
41140
41141"
41142if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41143
41144
41145$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41146
41147 USE_UNIX_SOCKETS=1
41148
41149 curl_unix_sockets_msg="enabled"
41150
41151else
41152
41153 if test "x$want_unix_sockets" = "xyes"; then
41154 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41155 fi
41156
41157fi
41158
41159fi
41160
41161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41162$as_echo_n "checking whether to enable support for cookies... " >&6; }
41163# Check whether --enable-cookies was given.
41164if test "${enable_cookies+set}" = set; then :
41165 enableval=$enable_cookies; case "$enableval" in
41166 no)
41167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41168$as_echo "no" >&6; }
41169
41170$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41171
41172 ;;
41173 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41174$as_echo "yes" >&6; }
41175 ;;
41176 esac
41177else
41178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41179$as_echo "yes" >&6; }
41180
41181fi
41182
41183
41184
41185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41186$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41187 CFLAG_CURL_SYMBOL_HIDING=""
41188 doing_symbol_hiding="no"
41189 if test x"$curl_cv_native_windows" != "xyes" &&
41190 test "$want_symbol_hiding" = "yes" &&
41191 test "$supports_symbol_hiding" = "yes"; then
41192 doing_symbol_hiding="yes"
41193 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41194
41195cat >>confdefs.h <<_ACEOF
41196#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41197_ACEOF
41198
41199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41200$as_echo "yes" >&6; }
41201 else
41202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41203$as_echo "no" >&6; }
41204 fi
41205 if test x$doing_symbol_hiding = xyes; then
41206 DOING_CURL_SYMBOL_HIDING_TRUE=
41207 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41208else
41209 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41210 DOING_CURL_SYMBOL_HIDING_FALSE=
41211fi
41212
41213
41214
41215
Elliott Hughes82be86d2017-09-20 17:00:17 -070041216LIBCURL_LIBS=$LIBS
41217
41218
41219
41220
41221
41222BLANK_AT_MAKETIME=
41223
41224
41225 if test x$cross_compiling = xyes; then
41226 CROSSCOMPILING_TRUE=
41227 CROSSCOMPILING_FALSE='#'
41228else
41229 CROSSCOMPILING_TRUE='#'
41230 CROSSCOMPILING_FALSE=
41231fi
41232
41233
41234ENABLE_SHARED="$enable_shared"
41235
41236
41237ENABLE_STATIC="$enable_static"
41238
41239
41240
41241
41242if test "x$OPENSSL_ENABLED" = "x1"; then
41243 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41244elif test -n "$SSL_ENABLED"; then
41245 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41246fi
41247if test "x$IPV6_ENABLED" = "x1"; then
41248 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41249fi
41250if test "x$USE_UNIX_SOCKETS" = "x1"; then
41251 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41252fi
41253if test "x$HAVE_LIBZ" = "x1"; then
41254 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41255fi
Alex Deymo486467e2017-12-19 19:04:07 +010041256if test "x$HAVE_BROTLI" = "x1"; then
41257 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41258fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041259if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41260 -o "x$USE_THREADS_WIN32" = "x1"; then
41261 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41262fi
41263if test "x$IDN_ENABLED" = "x1"; then
41264 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41265fi
41266if test "x$USE_WINDOWS_SSPI" = "x1"; then
41267 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41268fi
41269
41270if test "x$HAVE_GSSAPI" = "x1"; then
41271 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41272fi
41273
41274if test "x$curl_psl_msg" = "xyes"; then
41275 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41276fi
41277
41278if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41279 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41280 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41281fi
41282
41283if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41284 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41285 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41286fi
41287
41288if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41289 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41290 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41291 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41292 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41293
41294 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41295 "x$NTLM_WB_ENABLED" = "x1"; then
41296 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41297 fi
41298 fi
41299fi
41300
41301if test "x$USE_TLS_SRP" = "x1"; then
41302 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41303fi
41304
41305if test "x$USE_NGHTTP2" = "x1"; then
41306 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41307fi
41308
Alex Deymo486467e2017-12-19 19:04:07 +010041309if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41310 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41311fi
41312
Elliott Hughes82be86d2017-09-20 17:00:17 -070041313if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41314 -o "x$NSS_ENABLED" = "x1"; then
41315 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41316fi
41317
41318
41319
41320if test "x$CURL_DISABLE_HTTP" != "x1"; then
41321 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41322 if test "x$SSL_ENABLED" = "x1"; then
41323 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41324 fi
41325fi
41326if test "x$CURL_DISABLE_FTP" != "x1"; then
41327 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41328 if test "x$SSL_ENABLED" = "x1"; then
41329 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41330 fi
41331fi
41332if test "x$CURL_DISABLE_FILE" != "x1"; then
41333 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41334fi
41335if test "x$CURL_DISABLE_TELNET" != "x1"; then
41336 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41337fi
41338if test "x$CURL_DISABLE_LDAP" != "x1"; then
41339 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41340 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41341 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41342 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41343 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41344 fi
41345 fi
41346fi
41347if test "x$CURL_DISABLE_DICT" != "x1"; then
41348 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41349fi
41350if test "x$CURL_DISABLE_TFTP" != "x1"; then
41351 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41352fi
41353if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41354 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41355fi
41356if test "x$CURL_DISABLE_POP3" != "x1"; then
41357 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41358 if test "x$SSL_ENABLED" = "x1"; then
41359 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41360 fi
41361fi
41362if test "x$CURL_DISABLE_IMAP" != "x1"; then
41363 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41364 if test "x$SSL_ENABLED" = "x1"; then
41365 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41366 fi
41367fi
41368if test "x$CURL_DISABLE_SMB" != "x1" \
41369 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41370 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41371 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41372 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41373 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41374 if test "x$SSL_ENABLED" = "x1"; then
41375 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41376 fi
41377fi
41378if test "x$CURL_DISABLE_SMTP" != "x1"; then
41379 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41380 if test "x$SSL_ENABLED" = "x1"; then
41381 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41382 fi
41383fi
41384if test "x$USE_LIBSSH2" = "x1"; then
41385 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41386 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41387fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041388if test "x$USE_LIBSSH" = "x1"; then
41389 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41390 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41391fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041392if test "x$CURL_DISABLE_RTSP" != "x1"; then
41393 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41394fi
41395if test "x$USE_LIBRTMP" = "x1"; then
41396 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41397fi
41398
41399SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41400
41401
41402
41403
41404squeeze CFLAGS
41405squeeze CPPFLAGS
41406squeeze DEFS
41407squeeze LDFLAGS
41408squeeze LIBS
41409
41410squeeze LIBCURL_LIBS
41411squeeze CURL_NETWORK_LIBS
41412squeeze CURL_NETWORK_AND_TIME_LIBS
41413
41414squeeze SUPPORT_FEATURES
41415squeeze SUPPORT_PROTOCOLS
41416
41417
41418
41419 xc_bad_var_libs=no
41420 for xc_word in $LIBS; do
41421 case "$xc_word" in
41422 -l* | --library=*)
41423 :
41424 ;;
41425 *)
41426 xc_bad_var_libs=yes
41427 ;;
41428 esac
41429 done
41430 if test $xc_bad_var_libs = yes; then
41431 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41432$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41433 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41434$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41435 fi
41436
41437
41438 xc_bad_var_ldflags=no
41439 for xc_word in $LDFLAGS; do
41440 case "$xc_word" in
41441 -D*)
41442 xc_bad_var_ldflags=yes
41443 ;;
41444 -U*)
41445 xc_bad_var_ldflags=yes
41446 ;;
41447 -I*)
41448 xc_bad_var_ldflags=yes
41449 ;;
41450 -l* | --library=*)
41451 xc_bad_var_ldflags=yes
41452 ;;
41453 esac
41454 done
41455 if test $xc_bad_var_ldflags = yes; then
41456 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41457$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41458 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41459 for xc_word in $LDFLAGS; do
41460 case "$xc_word" in
41461 -D*)
41462 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41463$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41464 ;;
41465 -U*)
41466 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41467$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41468 ;;
41469 -I*)
41470 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41471$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41472 ;;
41473 -l* | --library=*)
41474 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41475$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41476 ;;
41477 esac
41478 done
41479 fi
41480
41481
41482 xc_bad_var_cppflags=no
41483 for xc_word in $CPPFLAGS; do
41484 case "$xc_word" in
41485 -rpath*)
41486 xc_bad_var_cppflags=yes
41487 ;;
41488 -L* | --library-path=*)
41489 xc_bad_var_cppflags=yes
41490 ;;
41491 -l* | --library=*)
41492 xc_bad_var_cppflags=yes
41493 ;;
41494 esac
41495 done
41496 if test $xc_bad_var_cppflags = yes; then
41497 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41498$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41499 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41500 for xc_word in $CPPFLAGS; do
41501 case "$xc_word" in
41502 -rpath*)
41503 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41504$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41505 ;;
41506 -L* | --library-path=*)
41507 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41508$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41509 ;;
41510 -l* | --library=*)
41511 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41512$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41513 ;;
41514 esac
41515 done
41516 fi
41517
41518
41519 xc_bad_var_cflags=no
41520 for xc_word in $CFLAGS; do
41521 case "$xc_word" in
41522 -D*)
41523 xc_bad_var_cflags=yes
41524 ;;
41525 -U*)
41526 xc_bad_var_cflags=yes
41527 ;;
41528 -I*)
41529 xc_bad_var_cflags=yes
41530 ;;
41531 -rpath*)
41532 xc_bad_var_cflags=yes
41533 ;;
41534 -L* | --library-path=*)
41535 xc_bad_var_cflags=yes
41536 ;;
41537 -l* | --library=*)
41538 xc_bad_var_cflags=yes
41539 ;;
41540 esac
41541 done
41542 if test $xc_bad_var_cflags = yes; then
41543 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41544$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41545 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41546 for xc_word in $CFLAGS; do
41547 case "$xc_word" in
41548 -D*)
41549 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41550$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41551 ;;
41552 -U*)
41553 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41554$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41555 ;;
41556 -I*)
41557 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41558$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41559 ;;
41560 -rpath*)
41561 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41562$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41563 ;;
41564 -L* | --library-path=*)
41565 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41566$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41567 ;;
41568 -l* | --library=*)
41569 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41570$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41571 ;;
41572 esac
41573 done
41574 fi
41575
41576 if test $xc_bad_var_libs = yes ||
41577 test $xc_bad_var_cflags = yes ||
41578 test $xc_bad_var_ldflags = yes ||
41579 test $xc_bad_var_cppflags = yes; then
41580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41581$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41582 fi
41583
41584
Elliott Hughes0128fe42018-02-27 14:57:55 -080041585SSL_BACKENDS=${ssl_backends}
41586
41587
Elliott Hughes82be86d2017-09-20 17:00:17 -070041588if test "x$want_curldebug_assumed" = "xyes" &&
41589 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41590 ac_configure_args="$ac_configure_args --enable-curldebug"
41591fi
41592
Elliott Hughesa93fb052018-12-12 14:22:48 -080041593ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041594
41595cat >confcache <<\_ACEOF
41596# This file is a shell script that caches the results of configure
41597# tests run on this system so they can be shared between configure
41598# scripts and configure runs, see configure's option --config-cache.
41599# It is not useful on other systems. If it contains results you don't
41600# want to keep, you may remove or edit it.
41601#
41602# config.status only pays attention to the cache file if you give it
41603# the --recheck option to rerun configure.
41604#
41605# `ac_cv_env_foo' variables (set or unset) will be overridden when
41606# loading this file, other *unset* `ac_cv_foo' will be assigned the
41607# following values.
41608
41609_ACEOF
41610
41611# The following way of writing the cache mishandles newlines in values,
41612# but we know of no workaround that is simple, portable, and efficient.
41613# So, we kill variables containing newlines.
41614# Ultrix sh set writes to stderr and can't be redirected directly,
41615# and sets the high bit in the cache file unless we assign to the vars.
41616(
41617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41618 eval ac_val=\$$ac_var
41619 case $ac_val in #(
41620 *${as_nl}*)
41621 case $ac_var in #(
41622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41624 esac
41625 case $ac_var in #(
41626 _ | IFS | as_nl) ;; #(
41627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41628 *) { eval $ac_var=; unset $ac_var;} ;;
41629 esac ;;
41630 esac
41631 done
41632
41633 (set) 2>&1 |
41634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41635 *${as_nl}ac_space=\ *)
41636 # `set' does not quote correctly, so add quotes: double-quote
41637 # substitution turns \\\\ into \\, and sed turns \\ into \.
41638 sed -n \
41639 "s/'/'\\\\''/g;
41640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41641 ;; #(
41642 *)
41643 # `set' quotes correctly as required by POSIX, so do not add quotes.
41644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41645 ;;
41646 esac |
41647 sort
41648) |
41649 sed '
41650 /^ac_cv_env_/b end
41651 t clear
41652 :clear
41653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41654 t end
41655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41656 :end' >>confcache
41657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41658 if test -w "$cache_file"; then
41659 if test "x$cache_file" != "x/dev/null"; then
41660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41661$as_echo "$as_me: updating cache $cache_file" >&6;}
41662 if test ! -f "$cache_file" || test -h "$cache_file"; then
41663 cat confcache >"$cache_file"
41664 else
41665 case $cache_file in #(
41666 */* | ?:*)
41667 mv -f confcache "$cache_file"$$ &&
41668 mv -f "$cache_file"$$ "$cache_file" ;; #(
41669 *)
41670 mv -f confcache "$cache_file" ;;
41671 esac
41672 fi
41673 fi
41674 else
41675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41676$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41677 fi
41678fi
41679rm -f confcache
41680
41681test "x$prefix" = xNONE && prefix=$ac_default_prefix
41682# Let make expand exec_prefix.
41683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41684
41685DEFS=-DHAVE_CONFIG_H
41686
41687ac_libobjs=
41688ac_ltlibobjs=
41689U=
41690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41691 # 1. Remove the extension, and $U if already installed.
41692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41695 # will be set to the directory where LIBOBJS objects are built.
41696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41698done
41699LIBOBJS=$ac_libobjs
41700
41701LTLIBOBJS=$ac_ltlibobjs
41702
41703
41704if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41705 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41706Usually this means the macro was only invoked conditionally." "$LINENO" 5
41707fi
41708if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41709 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41710Usually this means the macro was only invoked conditionally." "$LINENO" 5
41711fi
41712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41713$as_echo_n "checking that generated files are newer than configure... " >&6; }
41714 if test -n "$am_sleep_pid"; then
41715 # Hide warnings about reused PIDs.
41716 wait $am_sleep_pid 2>/dev/null
41717 fi
41718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41719$as_echo "done" >&6; }
41720if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41721 as_fn_error $? "conditional \"AMDEP\" was never defined.
41722Usually this means the macro was only invoked conditionally." "$LINENO" 5
41723fi
41724if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41725 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41726Usually this means the macro was only invoked conditionally." "$LINENO" 5
41727fi
41728 if test -n "$EXEEXT"; then
41729 am__EXEEXT_TRUE=
41730 am__EXEEXT_FALSE='#'
41731else
41732 am__EXEEXT_TRUE='#'
41733 am__EXEEXT_FALSE=
41734fi
41735
41736if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41737 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41738Usually this means the macro was only invoked conditionally." "$LINENO" 5
41739fi
41740if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41741 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41742Usually this means the macro was only invoked conditionally." "$LINENO" 5
41743fi
41744if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41745 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41746Usually this means the macro was only invoked conditionally." "$LINENO" 5
41747fi
41748if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41749 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41750Usually this means the macro was only invoked conditionally." "$LINENO" 5
41751fi
41752if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41753 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41754Usually this means the macro was only invoked conditionally." "$LINENO" 5
41755fi
41756if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41757 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41758Usually this means the macro was only invoked conditionally." "$LINENO" 5
41759fi
41760if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41761 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41762Usually this means the macro was only invoked conditionally." "$LINENO" 5
41763fi
41764if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41765 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41766Usually this means the macro was only invoked conditionally." "$LINENO" 5
41767fi
41768if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41769 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41770Usually this means the macro was only invoked conditionally." "$LINENO" 5
41771fi
Alex Deymo486467e2017-12-19 19:04:07 +010041772if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41773 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41774Usually this means the macro was only invoked conditionally." "$LINENO" 5
41775fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041776if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41777 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41778Usually this means the macro was only invoked conditionally." "$LINENO" 5
41779fi
41780if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41781 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41782Usually this means the macro was only invoked conditionally." "$LINENO" 5
41783fi
41784if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41785 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41786Usually this means the macro was only invoked conditionally." "$LINENO" 5
41787fi
41788if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41789 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41790Usually this means the macro was only invoked conditionally." "$LINENO" 5
41791fi
41792if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41793 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41794Usually this means the macro was only invoked conditionally." "$LINENO" 5
41795fi
41796if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41797 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41798Usually this means the macro was only invoked conditionally." "$LINENO" 5
41799fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041800if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41801 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41802Usually this means the macro was only invoked conditionally." "$LINENO" 5
41803fi
41804
41805: "${CONFIG_STATUS=./config.status}"
41806ac_write_fail=0
41807ac_clean_files_save=$ac_clean_files
41808ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41809{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41810$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41811as_write_fail=0
41812cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41813#! $SHELL
41814# Generated by $as_me.
41815# Run this file to recreate the current configuration.
41816# Compiler output produced by configure, useful for debugging
41817# configure, is in config.log if it exists.
41818
41819debug=false
41820ac_cs_recheck=false
41821ac_cs_silent=false
41822
41823SHELL=\${CONFIG_SHELL-$SHELL}
41824export SHELL
41825_ASEOF
41826cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41827## -------------------- ##
41828## M4sh Initialization. ##
41829## -------------------- ##
41830
41831# Be more Bourne compatible
41832DUALCASE=1; export DUALCASE # for MKS sh
41833if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41834 emulate sh
41835 NULLCMD=:
41836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41837 # is contrary to our usage. Disable this feature.
41838 alias -g '${1+"$@"}'='"$@"'
41839 setopt NO_GLOB_SUBST
41840else
41841 case `(set -o) 2>/dev/null` in #(
41842 *posix*) :
41843 set -o posix ;; #(
41844 *) :
41845 ;;
41846esac
41847fi
41848
41849
41850as_nl='
41851'
41852export as_nl
41853# Printing a long string crashes Solaris 7 /usr/bin/printf.
41854as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41855as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41856as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41857# Prefer a ksh shell builtin over an external printf program on Solaris,
41858# but without wasting forks for bash or zsh.
41859if test -z "$BASH_VERSION$ZSH_VERSION" \
41860 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41861 as_echo='print -r --'
41862 as_echo_n='print -rn --'
41863elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41864 as_echo='printf %s\n'
41865 as_echo_n='printf %s'
41866else
41867 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41868 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41869 as_echo_n='/usr/ucb/echo -n'
41870 else
41871 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41872 as_echo_n_body='eval
41873 arg=$1;
41874 case $arg in #(
41875 *"$as_nl"*)
41876 expr "X$arg" : "X\\(.*\\)$as_nl";
41877 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41878 esac;
41879 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41880 '
41881 export as_echo_n_body
41882 as_echo_n='sh -c $as_echo_n_body as_echo'
41883 fi
41884 export as_echo_body
41885 as_echo='sh -c $as_echo_body as_echo'
41886fi
41887
41888
41889
41890# IFS
41891# We need space, tab and new line, in precisely that order. Quoting is
41892# there to prevent editors from complaining about space-tab.
41893# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41894# splitting by setting IFS to empty value.)
41895IFS=" "" $as_nl"
41896
41897# Find who we are. Look in the path if we contain no directory separator.
41898as_myself=
41899case $0 in #((
41900 *[\\/]* ) as_myself=$0 ;;
41901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41902for as_dir in $PATH
41903do
41904 IFS=$as_save_IFS
41905 test -z "$as_dir" && as_dir=.
41906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41907 done
41908IFS=$as_save_IFS
41909
41910 ;;
41911esac
41912# We did not find ourselves, most probably we were run as `sh COMMAND'
41913# in which case we are not to be found in the path.
41914if test "x$as_myself" = x; then
41915 as_myself=$0
41916fi
41917if test ! -f "$as_myself"; then
41918 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41919 exit 1
41920fi
41921
41922# Unset variables that we do not need and which cause bugs (e.g. in
41923# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41924# suppresses any "Segmentation fault" message there. '((' could
41925# trigger a bug in pdksh 5.2.14.
41926for as_var in BASH_ENV ENV MAIL MAILPATH
41927do eval test x\${$as_var+set} = xset \
41928 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41929done
41930PS1='$ '
41931PS2='> '
41932PS4='+ '
41933
41934# NLS nuisances.
41935LC_ALL=C
41936export LC_ALL
41937LANGUAGE=C
41938export LANGUAGE
41939
41940# CDPATH.
41941(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41942
41943
41944# as_fn_error STATUS ERROR [LINENO LOG_FD]
41945# ----------------------------------------
41946# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41947# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41948# script with STATUS, using 1 if that was 0.
41949as_fn_error ()
41950{
41951 as_status=$1; test $as_status -eq 0 && as_status=1
41952 if test "$4"; then
41953 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41954 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41955 fi
41956 $as_echo "$as_me: error: $2" >&2
41957 as_fn_exit $as_status
41958} # as_fn_error
41959
41960
41961# as_fn_set_status STATUS
41962# -----------------------
41963# Set $? to STATUS, without forking.
41964as_fn_set_status ()
41965{
41966 return $1
41967} # as_fn_set_status
41968
41969# as_fn_exit STATUS
41970# -----------------
41971# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41972as_fn_exit ()
41973{
41974 set +e
41975 as_fn_set_status $1
41976 exit $1
41977} # as_fn_exit
41978
41979# as_fn_unset VAR
41980# ---------------
41981# Portably unset VAR.
41982as_fn_unset ()
41983{
41984 { eval $1=; unset $1;}
41985}
41986as_unset=as_fn_unset
41987# as_fn_append VAR VALUE
41988# ----------------------
41989# Append the text in VALUE to the end of the definition contained in VAR. Take
41990# advantage of any shell optimizations that allow amortized linear growth over
41991# repeated appends, instead of the typical quadratic growth present in naive
41992# implementations.
41993if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41994 eval 'as_fn_append ()
41995 {
41996 eval $1+=\$2
41997 }'
41998else
41999 as_fn_append ()
42000 {
42001 eval $1=\$$1\$2
42002 }
42003fi # as_fn_append
42004
42005# as_fn_arith ARG...
42006# ------------------
42007# Perform arithmetic evaluation on the ARGs, and store the result in the
42008# global $as_val. Take advantage of shells that can avoid forks. The arguments
42009# must be portable across $(()) and expr.
42010if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42011 eval 'as_fn_arith ()
42012 {
42013 as_val=$(( $* ))
42014 }'
42015else
42016 as_fn_arith ()
42017 {
42018 as_val=`expr "$@" || test $? -eq 1`
42019 }
42020fi # as_fn_arith
42021
42022
42023if expr a : '\(a\)' >/dev/null 2>&1 &&
42024 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42025 as_expr=expr
42026else
42027 as_expr=false
42028fi
42029
42030if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42031 as_basename=basename
42032else
42033 as_basename=false
42034fi
42035
42036if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42037 as_dirname=dirname
42038else
42039 as_dirname=false
42040fi
42041
42042as_me=`$as_basename -- "$0" ||
42043$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42044 X"$0" : 'X\(//\)$' \| \
42045 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42046$as_echo X/"$0" |
42047 sed '/^.*\/\([^/][^/]*\)\/*$/{
42048 s//\1/
42049 q
42050 }
42051 /^X\/\(\/\/\)$/{
42052 s//\1/
42053 q
42054 }
42055 /^X\/\(\/\).*/{
42056 s//\1/
42057 q
42058 }
42059 s/.*/./; q'`
42060
42061# Avoid depending upon Character Ranges.
42062as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42063as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42064as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42065as_cr_digits='0123456789'
42066as_cr_alnum=$as_cr_Letters$as_cr_digits
42067
42068ECHO_C= ECHO_N= ECHO_T=
42069case `echo -n x` in #(((((
42070-n*)
42071 case `echo 'xy\c'` in
42072 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42073 xy) ECHO_C='\c';;
42074 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42075 ECHO_T=' ';;
42076 esac;;
42077*)
42078 ECHO_N='-n';;
42079esac
42080
42081rm -f conf$$ conf$$.exe conf$$.file
42082if test -d conf$$.dir; then
42083 rm -f conf$$.dir/conf$$.file
42084else
42085 rm -f conf$$.dir
42086 mkdir conf$$.dir 2>/dev/null
42087fi
42088if (echo >conf$$.file) 2>/dev/null; then
42089 if ln -s conf$$.file conf$$ 2>/dev/null; then
42090 as_ln_s='ln -s'
42091 # ... but there are two gotchas:
42092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42094 # In both cases, we have to default to `cp -pR'.
42095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42096 as_ln_s='cp -pR'
42097 elif ln conf$$.file conf$$ 2>/dev/null; then
42098 as_ln_s=ln
42099 else
42100 as_ln_s='cp -pR'
42101 fi
42102else
42103 as_ln_s='cp -pR'
42104fi
42105rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42106rmdir conf$$.dir 2>/dev/null
42107
42108
42109# as_fn_mkdir_p
42110# -------------
42111# Create "$as_dir" as a directory, including parents if necessary.
42112as_fn_mkdir_p ()
42113{
42114
42115 case $as_dir in #(
42116 -*) as_dir=./$as_dir;;
42117 esac
42118 test -d "$as_dir" || eval $as_mkdir_p || {
42119 as_dirs=
42120 while :; do
42121 case $as_dir in #(
42122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42123 *) as_qdir=$as_dir;;
42124 esac
42125 as_dirs="'$as_qdir' $as_dirs"
42126 as_dir=`$as_dirname -- "$as_dir" ||
42127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42128 X"$as_dir" : 'X\(//\)[^/]' \| \
42129 X"$as_dir" : 'X\(//\)$' \| \
42130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42131$as_echo X"$as_dir" |
42132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42133 s//\1/
42134 q
42135 }
42136 /^X\(\/\/\)[^/].*/{
42137 s//\1/
42138 q
42139 }
42140 /^X\(\/\/\)$/{
42141 s//\1/
42142 q
42143 }
42144 /^X\(\/\).*/{
42145 s//\1/
42146 q
42147 }
42148 s/.*/./; q'`
42149 test -d "$as_dir" && break
42150 done
42151 test -z "$as_dirs" || eval "mkdir $as_dirs"
42152 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42153
42154
42155} # as_fn_mkdir_p
42156if mkdir -p . 2>/dev/null; then
42157 as_mkdir_p='mkdir -p "$as_dir"'
42158else
42159 test -d ./-p && rmdir ./-p
42160 as_mkdir_p=false
42161fi
42162
42163
42164# as_fn_executable_p FILE
42165# -----------------------
42166# Test if FILE is an executable regular file.
42167as_fn_executable_p ()
42168{
42169 test -f "$1" && test -x "$1"
42170} # as_fn_executable_p
42171as_test_x='test -x'
42172as_executable_p=as_fn_executable_p
42173
42174# Sed expression to map a string onto a valid CPP name.
42175as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42176
42177# Sed expression to map a string onto a valid variable name.
42178as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42179
42180
42181exec 6>&1
42182## ----------------------------------- ##
42183## Main body of $CONFIG_STATUS script. ##
42184## ----------------------------------- ##
42185_ASEOF
42186test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42187
42188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42189# Save the log message, to keep $0 and so on meaningful, and to
42190# report actual input values of CONFIG_FILES etc. instead of their
42191# values after options handling.
42192ac_log="
42193This file was extended by curl $as_me -, which was
42194generated by GNU Autoconf 2.69. Invocation command line was
42195
42196 CONFIG_FILES = $CONFIG_FILES
42197 CONFIG_HEADERS = $CONFIG_HEADERS
42198 CONFIG_LINKS = $CONFIG_LINKS
42199 CONFIG_COMMANDS = $CONFIG_COMMANDS
42200 $ $0 $@
42201
42202on `(hostname || uname -n) 2>/dev/null | sed 1q`
42203"
42204
42205_ACEOF
42206
42207case $ac_config_files in *"
42208"*) set x $ac_config_files; shift; ac_config_files=$*;;
42209esac
42210
42211case $ac_config_headers in *"
42212"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42213esac
42214
42215
42216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42217# Files that config.status was made for.
42218config_files="$ac_config_files"
42219config_headers="$ac_config_headers"
42220config_commands="$ac_config_commands"
42221
42222_ACEOF
42223
42224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42225ac_cs_usage="\
42226\`$as_me' instantiates files and other configuration actions
42227from templates according to the current configuration. Unless the files
42228and actions are specified as TAGs, all are instantiated by default.
42229
42230Usage: $0 [OPTION]... [TAG]...
42231
42232 -h, --help print this help, then exit
42233 -V, --version print version number and configuration settings, then exit
42234 --config print configuration, then exit
42235 -q, --quiet, --silent
42236 do not print progress messages
42237 -d, --debug don't remove temporary files
42238 --recheck update $as_me by reconfiguring in the same conditions
42239 --file=FILE[:TEMPLATE]
42240 instantiate the configuration file FILE
42241 --header=FILE[:TEMPLATE]
42242 instantiate the configuration header FILE
42243
42244Configuration files:
42245$config_files
42246
42247Configuration headers:
42248$config_headers
42249
42250Configuration commands:
42251$config_commands
42252
42253Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42254
42255_ACEOF
42256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42257ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42258ac_cs_version="\\
42259curl config.status -
42260configured by $0, generated by GNU Autoconf 2.69,
42261 with options \\"\$ac_cs_config\\"
42262
42263Copyright (C) 2012 Free Software Foundation, Inc.
42264This config.status script is free software; the Free Software Foundation
42265gives unlimited permission to copy, distribute and modify it."
42266
42267ac_pwd='$ac_pwd'
42268srcdir='$srcdir'
42269INSTALL='$INSTALL'
42270MKDIR_P='$MKDIR_P'
42271AWK='$AWK'
42272test -n "\$AWK" || AWK=awk
42273_ACEOF
42274
42275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42276# The default lists apply if the user does not specify any file.
42277ac_need_defaults=:
42278while test $# != 0
42279do
42280 case $1 in
42281 --*=?*)
42282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42284 ac_shift=:
42285 ;;
42286 --*=)
42287 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42288 ac_optarg=
42289 ac_shift=:
42290 ;;
42291 *)
42292 ac_option=$1
42293 ac_optarg=$2
42294 ac_shift=shift
42295 ;;
42296 esac
42297
42298 case $ac_option in
42299 # Handling of the options.
42300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42301 ac_cs_recheck=: ;;
42302 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42303 $as_echo "$ac_cs_version"; exit ;;
42304 --config | --confi | --conf | --con | --co | --c )
42305 $as_echo "$ac_cs_config"; exit ;;
42306 --debug | --debu | --deb | --de | --d | -d )
42307 debug=: ;;
42308 --file | --fil | --fi | --f )
42309 $ac_shift
42310 case $ac_optarg in
42311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42312 '') as_fn_error $? "missing file argument" ;;
42313 esac
42314 as_fn_append CONFIG_FILES " '$ac_optarg'"
42315 ac_need_defaults=false;;
42316 --header | --heade | --head | --hea )
42317 $ac_shift
42318 case $ac_optarg in
42319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42320 esac
42321 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42322 ac_need_defaults=false;;
42323 --he | --h)
42324 # Conflict between --help and --header
42325 as_fn_error $? "ambiguous option: \`$1'
42326Try \`$0 --help' for more information.";;
42327 --help | --hel | -h )
42328 $as_echo "$ac_cs_usage"; exit ;;
42329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42331 ac_cs_silent=: ;;
42332
42333 # This is an error.
42334 -*) as_fn_error $? "unrecognized option: \`$1'
42335Try \`$0 --help' for more information." ;;
42336
42337 *) as_fn_append ac_config_targets " $1"
42338 ac_need_defaults=false ;;
42339
42340 esac
42341 shift
42342done
42343
42344ac_configure_extra_args=
42345
42346if $ac_cs_silent; then
42347 exec 6>/dev/null
42348 ac_configure_extra_args="$ac_configure_extra_args --silent"
42349fi
42350
42351_ACEOF
42352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42353if \$ac_cs_recheck; then
42354 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42355 shift
42356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42357 CONFIG_SHELL='$SHELL'
42358 export CONFIG_SHELL
42359 exec "\$@"
42360fi
42361
42362_ACEOF
42363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42364exec 5>>config.log
42365{
42366 echo
42367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42368## Running $as_me. ##
42369_ASBOX
42370 $as_echo "$ac_log"
42371} >&5
42372
42373_ACEOF
42374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42375#
42376# INIT-COMMANDS
42377#
42378AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42379
42380
42381# The HP-UX ksh and POSIX shell print the target directory to stdout
42382# if CDPATH is set.
42383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42384
42385sed_quote_subst='$sed_quote_subst'
42386double_quote_subst='$double_quote_subst'
42387delay_variable_subst='$delay_variable_subst'
42388macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42389macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42390AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42391DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42392OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42393enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42394enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42395pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42396enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42397shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42398SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42399ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42400PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42401host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42402host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42403host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42404build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42405build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42406build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42407SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42408Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42409GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42410EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42411FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42412LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42413NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42414LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42415max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42416ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42417exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42418lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42419lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42420lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42421lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42422lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42423reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42424reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42425deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42426file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42427file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42428want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42429sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42430AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42431AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42432archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42433STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42434RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42435old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42436old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42437old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42438lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42439CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42440CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42441compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42442GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42443lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42444lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42445lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42446lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42447lt_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"`'
42448lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42449nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42450lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42451lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42452objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42453MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42454lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42455lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42456lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42457lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42458lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42459need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42460MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42461DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42462NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42463LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42464OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42465OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42466libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42467shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42468extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42469archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42470enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42471export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42472whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42473compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42474old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42475old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42476archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42477archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42478module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42479module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42480with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42481allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42482no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42483hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42484hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42485hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42486hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42487hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42488hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42489hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42490inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42491link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42492always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42493export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42494exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42495include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42496prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42497postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42498file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42499variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42500need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42501need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42502version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42503runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42504shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42505shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42506libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42507library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42508soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42509install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42510postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42511postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42512finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42513finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42514hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42515sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42516configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42517configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42518hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42519enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42520enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42521enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42522old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42523striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42524
42525LTCC='$LTCC'
42526LTCFLAGS='$LTCFLAGS'
42527compiler='$compiler_DEFAULT'
42528
42529# A function that is used when there is no print builtin or printf.
42530func_fallback_echo ()
42531{
42532 eval 'cat <<_LTECHO_EOF
42533\$1
42534_LTECHO_EOF'
42535}
42536
42537# Quote evaled strings.
42538for var in AS \
42539DLLTOOL \
42540OBJDUMP \
42541SHELL \
42542ECHO \
42543PATH_SEPARATOR \
42544SED \
42545GREP \
42546EGREP \
42547FGREP \
42548LD \
42549NM \
42550LN_S \
42551lt_SP2NL \
42552lt_NL2SP \
42553reload_flag \
42554deplibs_check_method \
42555file_magic_cmd \
42556file_magic_glob \
42557want_nocaseglob \
42558sharedlib_from_linklib_cmd \
42559AR \
42560AR_FLAGS \
42561archiver_list_spec \
42562STRIP \
42563RANLIB \
42564CC \
42565CFLAGS \
42566compiler \
42567lt_cv_sys_global_symbol_pipe \
42568lt_cv_sys_global_symbol_to_cdecl \
42569lt_cv_sys_global_symbol_to_import \
42570lt_cv_sys_global_symbol_to_c_name_address \
42571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42572lt_cv_nm_interface \
42573nm_file_list_spec \
42574lt_cv_truncate_bin \
42575lt_prog_compiler_no_builtin_flag \
42576lt_prog_compiler_pic \
42577lt_prog_compiler_wl \
42578lt_prog_compiler_static \
42579lt_cv_prog_compiler_c_o \
42580need_locks \
42581MANIFEST_TOOL \
42582DSYMUTIL \
42583NMEDIT \
42584LIPO \
42585OTOOL \
42586OTOOL64 \
42587shrext_cmds \
42588export_dynamic_flag_spec \
42589whole_archive_flag_spec \
42590compiler_needs_object \
42591with_gnu_ld \
42592allow_undefined_flag \
42593no_undefined_flag \
42594hardcode_libdir_flag_spec \
42595hardcode_libdir_separator \
42596exclude_expsyms \
42597include_expsyms \
42598file_list_spec \
42599variables_saved_for_relink \
42600libname_spec \
42601library_names_spec \
42602soname_spec \
42603install_override_mode \
42604finish_eval \
42605old_striplib \
42606striplib; do
42607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42608 *[\\\\\\\`\\"\\\$]*)
42609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42610 ;;
42611 *)
42612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42613 ;;
42614 esac
42615done
42616
42617# Double-quote double-evaled strings.
42618for var in reload_cmds \
42619old_postinstall_cmds \
42620old_postuninstall_cmds \
42621old_archive_cmds \
42622extract_expsyms_cmds \
42623old_archive_from_new_cmds \
42624old_archive_from_expsyms_cmds \
42625archive_cmds \
42626archive_expsym_cmds \
42627module_cmds \
42628module_expsym_cmds \
42629export_symbols_cmds \
42630prelink_cmds \
42631postlink_cmds \
42632postinstall_cmds \
42633postuninstall_cmds \
42634finish_cmds \
42635sys_lib_search_path_spec \
42636configure_time_dlsearch_path \
42637configure_time_lt_sys_library_path; do
42638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42639 *[\\\\\\\`\\"\\\$]*)
42640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42641 ;;
42642 *)
42643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42644 ;;
42645 esac
42646done
42647
42648ac_aux_dir='$ac_aux_dir'
42649
42650# See if we are running on zsh, and set the options that allow our
42651# commands through without removal of \ escapes INIT.
42652if test -n "\${ZSH_VERSION+set}"; then
42653 setopt NO_GLOB_SUBST
42654fi
42655
42656
42657 PACKAGE='$PACKAGE'
42658 VERSION='$VERSION'
42659 RM='$RM'
42660 ofile='$ofile'
42661
42662
42663
42664
42665_ACEOF
42666
42667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42668
42669# Handling of arguments.
42670for ac_config_target in $ac_config_targets
42671do
42672 case $ac_config_target in
42673 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42675 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42676 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42677 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42678 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42679 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42680 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42681 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42682 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42683 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42684 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42685 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42686 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42687 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42688 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42689 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42690 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42691 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42692 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42693 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42694 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042695 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42696 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42697 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42698 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42699 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42700 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42701 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42702 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042703 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42704 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42705 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42706 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42707 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42708 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42709
42710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42711 esac
42712done
42713
42714
42715# If the user did not use the arguments to specify the items to instantiate,
42716# then the envvar interface is used. Set only those that are not.
42717# We use the long form for the default assignment because of an extremely
42718# bizarre bug on SunOS 4.1.3.
42719if $ac_need_defaults; then
42720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42722 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42723fi
42724
42725# Have a temporary directory for convenience. Make it in the build tree
42726# simply because there is no reason against having it here, and in addition,
42727# creating and moving files from /tmp can sometimes cause problems.
42728# Hook for its removal unless debugging.
42729# Note that there is a small window in which the directory will not be cleaned:
42730# after its creation but before its name has been assigned to `$tmp'.
42731$debug ||
42732{
42733 tmp= ac_tmp=
42734 trap 'exit_status=$?
42735 : "${ac_tmp:=$tmp}"
42736 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42737' 0
42738 trap 'as_fn_exit 1' 1 2 13 15
42739}
42740# Create a (secure) tmp directory for tmp files.
42741
42742{
42743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42744 test -d "$tmp"
42745} ||
42746{
42747 tmp=./conf$$-$RANDOM
42748 (umask 077 && mkdir "$tmp")
42749} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42750ac_tmp=$tmp
42751
42752# Set up the scripts for CONFIG_FILES section.
42753# No need to generate them if there are no CONFIG_FILES.
42754# This happens for instance with `./config.status config.h'.
42755if test -n "$CONFIG_FILES"; then
42756
42757
42758ac_cr=`echo X | tr X '\015'`
42759# On cygwin, bash can eat \r inside `` if the user requested igncr.
42760# But we know of no other shell where ac_cr would be empty at this
42761# point, so we can use a bashism as a fallback.
42762if test "x$ac_cr" = x; then
42763 eval ac_cr=\$\'\\r\'
42764fi
42765ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42766if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42767 ac_cs_awk_cr='\\r'
42768else
42769 ac_cs_awk_cr=$ac_cr
42770fi
42771
42772echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42773_ACEOF
42774
42775
42776{
42777 echo "cat >conf$$subs.awk <<_ACEOF" &&
42778 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42779 echo "_ACEOF"
42780} >conf$$subs.sh ||
42781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42782ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42783ac_delim='%!_!# '
42784for ac_last_try in false false false false false :; do
42785 . ./conf$$subs.sh ||
42786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42787
42788 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42789 if test $ac_delim_n = $ac_delim_num; then
42790 break
42791 elif $ac_last_try; then
42792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42793 else
42794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42795 fi
42796done
42797rm -f conf$$subs.sh
42798
42799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42800cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42801_ACEOF
42802sed -n '
42803h
42804s/^/S["/; s/!.*/"]=/
42805p
42806g
42807s/^[^!]*!//
42808:repl
42809t repl
42810s/'"$ac_delim"'$//
42811t delim
42812:nl
42813h
42814s/\(.\{148\}\)..*/\1/
42815t more1
42816s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42817p
42818n
42819b repl
42820:more1
42821s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42822p
42823g
42824s/.\{148\}//
42825t nl
42826:delim
42827h
42828s/\(.\{148\}\)..*/\1/
42829t more2
42830s/["\\]/\\&/g; s/^/"/; s/$/"/
42831p
42832b
42833:more2
42834s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42835p
42836g
42837s/.\{148\}//
42838t delim
42839' <conf$$subs.awk | sed '
42840/^[^""]/{
42841 N
42842 s/\n//
42843}
42844' >>$CONFIG_STATUS || ac_write_fail=1
42845rm -f conf$$subs.awk
42846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42847_ACAWK
42848cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42849 for (key in S) S_is_set[key] = 1
42850 FS = ""
42851
42852}
42853{
42854 line = $ 0
42855 nfields = split(line, field, "@")
42856 substed = 0
42857 len = length(field[1])
42858 for (i = 2; i < nfields; i++) {
42859 key = field[i]
42860 keylen = length(key)
42861 if (S_is_set[key]) {
42862 value = S[key]
42863 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42864 len += length(value) + length(field[++i])
42865 substed = 1
42866 } else
42867 len += 1 + keylen
42868 }
42869
42870 print line
42871}
42872
42873_ACAWK
42874_ACEOF
42875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42876if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42877 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42878else
42879 cat
42880fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42881 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42882_ACEOF
42883
42884# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42885# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42886# trailing colons and then remove the whole line if VPATH becomes empty
42887# (actually we leave an empty line to preserve line numbers).
42888if test "x$srcdir" = x.; then
42889 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42890h
42891s///
42892s/^/:/
42893s/[ ]*$/:/
42894s/:\$(srcdir):/:/g
42895s/:\${srcdir}:/:/g
42896s/:@srcdir@:/:/g
42897s/^:*//
42898s/:*$//
42899x
42900s/\(=[ ]*\).*/\1/
42901G
42902s/\n//
42903s/^[^=]*=[ ]*$//
42904}'
42905fi
42906
42907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42908fi # test -n "$CONFIG_FILES"
42909
42910# Set up the scripts for CONFIG_HEADERS section.
42911# No need to generate them if there are no CONFIG_HEADERS.
42912# This happens for instance with `./config.status Makefile'.
42913if test -n "$CONFIG_HEADERS"; then
42914cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42915BEGIN {
42916_ACEOF
42917
42918# Transform confdefs.h into an awk script `defines.awk', embedded as
42919# here-document in config.status, that substitutes the proper values into
42920# config.h.in to produce config.h.
42921
42922# Create a delimiter string that does not exist in confdefs.h, to ease
42923# handling of long lines.
42924ac_delim='%!_!# '
42925for ac_last_try in false false :; do
42926 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42927 if test -z "$ac_tt"; then
42928 break
42929 elif $ac_last_try; then
42930 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42931 else
42932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42933 fi
42934done
42935
42936# For the awk script, D is an array of macro values keyed by name,
42937# likewise P contains macro parameters if any. Preserve backslash
42938# newline sequences.
42939
42940ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42941sed -n '
42942s/.\{148\}/&'"$ac_delim"'/g
42943t rset
42944:rset
42945s/^[ ]*#[ ]*define[ ][ ]*/ /
42946t def
42947d
42948:def
42949s/\\$//
42950t bsnl
42951s/["\\]/\\&/g
42952s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42953D["\1"]=" \3"/p
42954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42955d
42956:bsnl
42957s/["\\]/\\&/g
42958s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42959D["\1"]=" \3\\\\\\n"\\/p
42960t cont
42961s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42962t cont
42963d
42964:cont
42965n
42966s/.\{148\}/&'"$ac_delim"'/g
42967t clear
42968:clear
42969s/\\$//
42970t bsnlc
42971s/["\\]/\\&/g; s/^/"/; s/$/"/p
42972d
42973:bsnlc
42974s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42975b cont
42976' <confdefs.h | sed '
42977s/'"$ac_delim"'/"\\\
42978"/g' >>$CONFIG_STATUS || ac_write_fail=1
42979
42980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42981 for (key in D) D_is_set[key] = 1
42982 FS = ""
42983}
42984/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42985 line = \$ 0
42986 split(line, arg, " ")
42987 if (arg[1] == "#") {
42988 defundef = arg[2]
42989 mac1 = arg[3]
42990 } else {
42991 defundef = substr(arg[1], 2)
42992 mac1 = arg[2]
42993 }
42994 split(mac1, mac2, "(") #)
42995 macro = mac2[1]
42996 prefix = substr(line, 1, index(line, defundef) - 1)
42997 if (D_is_set[macro]) {
42998 # Preserve the white space surrounding the "#".
42999 print prefix "define", macro P[macro] D[macro]
43000 next
43001 } else {
43002 # Replace #undef with comments. This is necessary, for example,
43003 # in the case of _POSIX_SOURCE, which is predefined and required
43004 # on some systems where configure will not decide to define it.
43005 if (defundef == "undef") {
43006 print "/*", prefix defundef, macro, "*/"
43007 next
43008 }
43009 }
43010}
43011{ print }
43012_ACAWK
43013_ACEOF
43014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43015 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43016fi # test -n "$CONFIG_HEADERS"
43017
43018
43019eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43020shift
43021for ac_tag
43022do
43023 case $ac_tag in
43024 :[FHLC]) ac_mode=$ac_tag; continue;;
43025 esac
43026 case $ac_mode$ac_tag in
43027 :[FHL]*:*);;
43028 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43029 :[FH]-) ac_tag=-:-;;
43030 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43031 esac
43032 ac_save_IFS=$IFS
43033 IFS=:
43034 set x $ac_tag
43035 IFS=$ac_save_IFS
43036 shift
43037 ac_file=$1
43038 shift
43039
43040 case $ac_mode in
43041 :L) ac_source=$1;;
43042 :[FH])
43043 ac_file_inputs=
43044 for ac_f
43045 do
43046 case $ac_f in
43047 -) ac_f="$ac_tmp/stdin";;
43048 *) # Look for the file first in the build tree, then in the source tree
43049 # (if the path is not absolute). The absolute path cannot be DOS-style,
43050 # because $ac_f cannot contain `:'.
43051 test -f "$ac_f" ||
43052 case $ac_f in
43053 [\\/$]*) false;;
43054 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43055 esac ||
43056 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43057 esac
43058 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43059 as_fn_append ac_file_inputs " '$ac_f'"
43060 done
43061
43062 # Let's still pretend it is `configure' which instantiates (i.e., don't
43063 # use $as_me), people would be surprised to read:
43064 # /* config.h. Generated by config.status. */
43065 configure_input='Generated from '`
43066 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43067 `' by configure.'
43068 if test x"$ac_file" != x-; then
43069 configure_input="$ac_file. $configure_input"
43070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43071$as_echo "$as_me: creating $ac_file" >&6;}
43072 fi
43073 # Neutralize special characters interpreted by sed in replacement strings.
43074 case $configure_input in #(
43075 *\&* | *\|* | *\\* )
43076 ac_sed_conf_input=`$as_echo "$configure_input" |
43077 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43078 *) ac_sed_conf_input=$configure_input;;
43079 esac
43080
43081 case $ac_tag in
43082 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43084 esac
43085 ;;
43086 esac
43087
43088 ac_dir=`$as_dirname -- "$ac_file" ||
43089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43090 X"$ac_file" : 'X\(//\)[^/]' \| \
43091 X"$ac_file" : 'X\(//\)$' \| \
43092 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43093$as_echo X"$ac_file" |
43094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43095 s//\1/
43096 q
43097 }
43098 /^X\(\/\/\)[^/].*/{
43099 s//\1/
43100 q
43101 }
43102 /^X\(\/\/\)$/{
43103 s//\1/
43104 q
43105 }
43106 /^X\(\/\).*/{
43107 s//\1/
43108 q
43109 }
43110 s/.*/./; q'`
43111 as_dir="$ac_dir"; as_fn_mkdir_p
43112 ac_builddir=.
43113
43114case "$ac_dir" in
43115.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43116*)
43117 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43118 # A ".." for each directory in $ac_dir_suffix.
43119 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43120 case $ac_top_builddir_sub in
43121 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43122 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43123 esac ;;
43124esac
43125ac_abs_top_builddir=$ac_pwd
43126ac_abs_builddir=$ac_pwd$ac_dir_suffix
43127# for backward compatibility:
43128ac_top_builddir=$ac_top_build_prefix
43129
43130case $srcdir in
43131 .) # We are building in place.
43132 ac_srcdir=.
43133 ac_top_srcdir=$ac_top_builddir_sub
43134 ac_abs_top_srcdir=$ac_pwd ;;
43135 [\\/]* | ?:[\\/]* ) # Absolute name.
43136 ac_srcdir=$srcdir$ac_dir_suffix;
43137 ac_top_srcdir=$srcdir
43138 ac_abs_top_srcdir=$srcdir ;;
43139 *) # Relative name.
43140 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43141 ac_top_srcdir=$ac_top_build_prefix$srcdir
43142 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43143esac
43144ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43145
43146
43147 case $ac_mode in
43148 :F)
43149 #
43150 # CONFIG_FILE
43151 #
43152
43153 case $INSTALL in
43154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43155 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43156 esac
43157 ac_MKDIR_P=$MKDIR_P
43158 case $MKDIR_P in
43159 [\\/$]* | ?:[\\/]* ) ;;
43160 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43161 esac
43162_ACEOF
43163
43164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43165# If the template does not know about datarootdir, expand it.
43166# FIXME: This hack should be removed a few years after 2.60.
43167ac_datarootdir_hack=; ac_datarootdir_seen=
43168ac_sed_dataroot='
43169/datarootdir/ {
43170 p
43171 q
43172}
43173/@datadir@/p
43174/@docdir@/p
43175/@infodir@/p
43176/@localedir@/p
43177/@mandir@/p'
43178case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43179*datarootdir*) ac_datarootdir_seen=yes;;
43180*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43182$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43183_ACEOF
43184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43185 ac_datarootdir_hack='
43186 s&@datadir@&$datadir&g
43187 s&@docdir@&$docdir&g
43188 s&@infodir@&$infodir&g
43189 s&@localedir@&$localedir&g
43190 s&@mandir@&$mandir&g
43191 s&\\\${datarootdir}&$datarootdir&g' ;;
43192esac
43193_ACEOF
43194
43195# Neutralize VPATH when `$srcdir' = `.'.
43196# Shell code in configure.ac might set extrasub.
43197# FIXME: do we really want to maintain this feature?
43198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43199ac_sed_extra="$ac_vpsub
43200$extrasub
43201_ACEOF
43202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43203:t
43204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43205s|@configure_input@|$ac_sed_conf_input|;t t
43206s&@top_builddir@&$ac_top_builddir_sub&;t t
43207s&@top_build_prefix@&$ac_top_build_prefix&;t t
43208s&@srcdir@&$ac_srcdir&;t t
43209s&@abs_srcdir@&$ac_abs_srcdir&;t t
43210s&@top_srcdir@&$ac_top_srcdir&;t t
43211s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43212s&@builddir@&$ac_builddir&;t t
43213s&@abs_builddir@&$ac_abs_builddir&;t t
43214s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43215s&@INSTALL@&$ac_INSTALL&;t t
43216s&@MKDIR_P@&$ac_MKDIR_P&;t t
43217$ac_datarootdir_hack
43218"
43219eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43221
43222test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43227which seems to be undefined. Please make sure it is defined" >&5
43228$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43229which seems to be undefined. Please make sure it is defined" >&2;}
43230
43231 rm -f "$ac_tmp/stdin"
43232 case $ac_file in
43233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43235 esac \
43236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43237 ;;
43238 :H)
43239 #
43240 # CONFIG_HEADER
43241 #
43242 if test x"$ac_file" != x-; then
43243 {
43244 $as_echo "/* $configure_input */" \
43245 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43246 } >"$ac_tmp/config.h" \
43247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43248 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43250$as_echo "$as_me: $ac_file is unchanged" >&6;}
43251 else
43252 rm -f "$ac_file"
43253 mv "$ac_tmp/config.h" "$ac_file" \
43254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43255 fi
43256 else
43257 $as_echo "/* $configure_input */" \
43258 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43259 || as_fn_error $? "could not create -" "$LINENO" 5
43260 fi
43261# Compute "$ac_file"'s index in $config_headers.
43262_am_arg="$ac_file"
43263_am_stamp_count=1
43264for _am_header in $config_headers :; do
43265 case $_am_header in
43266 $_am_arg | $_am_arg:* )
43267 break ;;
43268 * )
43269 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43270 esac
43271done
43272echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43273$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43274 X"$_am_arg" : 'X\(//\)[^/]' \| \
43275 X"$_am_arg" : 'X\(//\)$' \| \
43276 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43277$as_echo X"$_am_arg" |
43278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43279 s//\1/
43280 q
43281 }
43282 /^X\(\/\/\)[^/].*/{
43283 s//\1/
43284 q
43285 }
43286 /^X\(\/\/\)$/{
43287 s//\1/
43288 q
43289 }
43290 /^X\(\/\).*/{
43291 s//\1/
43292 q
43293 }
43294 s/.*/./; q'`/stamp-h$_am_stamp_count
43295 ;;
43296
43297 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43298$as_echo "$as_me: executing $ac_file commands" >&6;}
43299 ;;
43300 esac
43301
43302
43303 case $ac_file$ac_mode in
43304 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43305 # Older Autoconf quotes --file arguments for eval, but not when files
43306 # are listed without --file. Let's play safe and only enable the eval
43307 # if we detect the quoting.
43308 case $CONFIG_FILES in
43309 *\'*) eval set x "$CONFIG_FILES" ;;
43310 *) set x $CONFIG_FILES ;;
43311 esac
43312 shift
43313 for mf
43314 do
43315 # Strip MF so we end up with the name of the file.
43316 mf=`echo "$mf" | sed -e 's/:.*$//'`
43317 # Check whether this is an Automake generated Makefile or not.
43318 # We used to match only the files named 'Makefile.in', but
43319 # some people rename them; so instead we look at the file content.
43320 # Grep'ing the first line is not enough: some people post-process
43321 # each Makefile.in and add a new line on top of each file to say so.
43322 # Grep'ing the whole file is not good either: AIX grep has a line
43323 # limit of 2048, but all sed's we know have understand at least 4000.
43324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43325 dirpart=`$as_dirname -- "$mf" ||
43326$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43327 X"$mf" : 'X\(//\)[^/]' \| \
43328 X"$mf" : 'X\(//\)$' \| \
43329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43330$as_echo X"$mf" |
43331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43332 s//\1/
43333 q
43334 }
43335 /^X\(\/\/\)[^/].*/{
43336 s//\1/
43337 q
43338 }
43339 /^X\(\/\/\)$/{
43340 s//\1/
43341 q
43342 }
43343 /^X\(\/\).*/{
43344 s//\1/
43345 q
43346 }
43347 s/.*/./; q'`
43348 else
43349 continue
43350 fi
43351 # Extract the definition of DEPDIR, am__include, and am__quote
43352 # from the Makefile without running 'make'.
43353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43354 test -z "$DEPDIR" && continue
43355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43356 test -z "$am__include" && continue
43357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43358 # Find all dependency output files, they are included files with
43359 # $(DEPDIR) in their names. We invoke sed twice because it is the
43360 # simplest approach to changing $(DEPDIR) to its actual value in the
43361 # expansion.
43362 for file in `sed -n "
43363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43365 # Make sure the directory exists.
43366 test -f "$dirpart/$file" && continue
43367 fdir=`$as_dirname -- "$file" ||
43368$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43369 X"$file" : 'X\(//\)[^/]' \| \
43370 X"$file" : 'X\(//\)$' \| \
43371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43372$as_echo X"$file" |
43373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43374 s//\1/
43375 q
43376 }
43377 /^X\(\/\/\)[^/].*/{
43378 s//\1/
43379 q
43380 }
43381 /^X\(\/\/\)$/{
43382 s//\1/
43383 q
43384 }
43385 /^X\(\/\).*/{
43386 s//\1/
43387 q
43388 }
43389 s/.*/./; q'`
43390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43391 # echo "creating $dirpart/$file"
43392 echo '# dummy' > "$dirpart/$file"
43393 done
43394 done
43395}
43396 ;;
43397 "libtool":C)
43398
43399 # See if we are running on zsh, and set the options that allow our
43400 # commands through without removal of \ escapes.
43401 if test -n "${ZSH_VERSION+set}"; then
43402 setopt NO_GLOB_SUBST
43403 fi
43404
43405 cfgfile=${ofile}T
43406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43407 $RM "$cfgfile"
43408
43409 cat <<_LT_EOF >> "$cfgfile"
43410#! $SHELL
43411# Generated automatically by $as_me ($PACKAGE) $VERSION
43412# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43413
43414# Provide generalized library-building support services.
43415# Written by Gordon Matzigkeit, 1996
43416
43417# Copyright (C) 2014 Free Software Foundation, Inc.
43418# This is free software; see the source for copying conditions. There is NO
43419# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43420
43421# GNU Libtool is free software; you can redistribute it and/or modify
43422# it under the terms of the GNU General Public License as published by
43423# the Free Software Foundation; either version 2 of of the License, or
43424# (at your option) any later version.
43425#
43426# As a special exception to the GNU General Public License, if you
43427# distribute this file as part of a program or library that is built
43428# using GNU Libtool, you may include this file under the same
43429# distribution terms that you use for the rest of that program.
43430#
43431# GNU Libtool is distributed in the hope that it will be useful, but
43432# WITHOUT ANY WARRANTY; without even the implied warranty of
43433# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43434# GNU General Public License for more details.
43435#
43436# You should have received a copy of the GNU General Public License
43437# along with this program. If not, see <http://www.gnu.org/licenses/>.
43438
43439
43440# The names of the tagged configurations supported by this script.
43441available_tags=''
43442
43443# Configured defaults for sys_lib_dlsearch_path munging.
43444: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43445
43446# ### BEGIN LIBTOOL CONFIG
43447
43448# Which release of libtool.m4 was used?
43449macro_version=$macro_version
43450macro_revision=$macro_revision
43451
43452# Assembler program.
43453AS=$lt_AS
43454
43455# DLL creation program.
43456DLLTOOL=$lt_DLLTOOL
43457
43458# Object dumper program.
43459OBJDUMP=$lt_OBJDUMP
43460
43461# Whether or not to build shared libraries.
43462build_libtool_libs=$enable_shared
43463
43464# Whether or not to build static libraries.
43465build_old_libs=$enable_static
43466
43467# What type of objects to build.
43468pic_mode=$pic_mode
43469
43470# Whether or not to optimize for fast installation.
43471fast_install=$enable_fast_install
43472
43473# Shared archive member basename,for filename based shared library versioning on AIX.
43474shared_archive_member_spec=$shared_archive_member_spec
43475
43476# Shell to use when invoking shell scripts.
43477SHELL=$lt_SHELL
43478
43479# An echo program that protects backslashes.
43480ECHO=$lt_ECHO
43481
43482# The PATH separator for the build system.
43483PATH_SEPARATOR=$lt_PATH_SEPARATOR
43484
43485# The host system.
43486host_alias=$host_alias
43487host=$host
43488host_os=$host_os
43489
43490# The build system.
43491build_alias=$build_alias
43492build=$build
43493build_os=$build_os
43494
43495# A sed program that does not truncate output.
43496SED=$lt_SED
43497
43498# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43499Xsed="\$SED -e 1s/^X//"
43500
43501# A grep program that handles long lines.
43502GREP=$lt_GREP
43503
43504# An ERE matcher.
43505EGREP=$lt_EGREP
43506
43507# A literal string matcher.
43508FGREP=$lt_FGREP
43509
43510# A BSD- or MS-compatible name lister.
43511NM=$lt_NM
43512
43513# Whether we need soft or hard links.
43514LN_S=$lt_LN_S
43515
43516# What is the maximum length of a command?
43517max_cmd_len=$max_cmd_len
43518
43519# Object file suffix (normally "o").
43520objext=$ac_objext
43521
43522# Executable file suffix (normally "").
43523exeext=$exeext
43524
43525# whether the shell understands "unset".
43526lt_unset=$lt_unset
43527
43528# turn spaces into newlines.
43529SP2NL=$lt_lt_SP2NL
43530
43531# turn newlines into spaces.
43532NL2SP=$lt_lt_NL2SP
43533
43534# convert \$build file names to \$host format.
43535to_host_file_cmd=$lt_cv_to_host_file_cmd
43536
43537# convert \$build files to toolchain format.
43538to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43539
43540# Method to check whether dependent libraries are shared objects.
43541deplibs_check_method=$lt_deplibs_check_method
43542
43543# Command to use when deplibs_check_method = "file_magic".
43544file_magic_cmd=$lt_file_magic_cmd
43545
43546# How to find potential files when deplibs_check_method = "file_magic".
43547file_magic_glob=$lt_file_magic_glob
43548
43549# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43550want_nocaseglob=$lt_want_nocaseglob
43551
43552# Command to associate shared and link libraries.
43553sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43554
43555# The archiver.
43556AR=$lt_AR
43557
43558# Flags to create an archive.
43559AR_FLAGS=$lt_AR_FLAGS
43560
43561# How to feed a file listing to the archiver.
43562archiver_list_spec=$lt_archiver_list_spec
43563
43564# A symbol stripping program.
43565STRIP=$lt_STRIP
43566
43567# Commands used to install an old-style archive.
43568RANLIB=$lt_RANLIB
43569old_postinstall_cmds=$lt_old_postinstall_cmds
43570old_postuninstall_cmds=$lt_old_postuninstall_cmds
43571
43572# Whether to use a lock for old archive extraction.
43573lock_old_archive_extraction=$lock_old_archive_extraction
43574
43575# A C compiler.
43576LTCC=$lt_CC
43577
43578# LTCC compiler flags.
43579LTCFLAGS=$lt_CFLAGS
43580
43581# Take the output of nm and produce a listing of raw symbols and C names.
43582global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43583
43584# Transform the output of nm in a proper C declaration.
43585global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43586
43587# Transform the output of nm into a list of symbols to manually relocate.
43588global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43589
43590# Transform the output of nm in a C name address pair.
43591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43592
43593# Transform the output of nm in a C name address pair when lib prefix is needed.
43594global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43595
43596# The name lister interface.
43597nm_interface=$lt_lt_cv_nm_interface
43598
43599# Specify filename containing input files for \$NM.
43600nm_file_list_spec=$lt_nm_file_list_spec
43601
43602# The root where to search for dependent libraries,and where our libraries should be installed.
43603lt_sysroot=$lt_sysroot
43604
43605# Command to truncate a binary pipe.
43606lt_truncate_bin=$lt_lt_cv_truncate_bin
43607
43608# The name of the directory that contains temporary libtool files.
43609objdir=$objdir
43610
43611# Used to examine libraries when file_magic_cmd begins with "file".
43612MAGIC_CMD=$MAGIC_CMD
43613
43614# Must we lock files when doing compilation?
43615need_locks=$lt_need_locks
43616
43617# Manifest tool.
43618MANIFEST_TOOL=$lt_MANIFEST_TOOL
43619
43620# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43621DSYMUTIL=$lt_DSYMUTIL
43622
43623# Tool to change global to local symbols on Mac OS X.
43624NMEDIT=$lt_NMEDIT
43625
43626# Tool to manipulate fat objects and archives on Mac OS X.
43627LIPO=$lt_LIPO
43628
43629# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43630OTOOL=$lt_OTOOL
43631
43632# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43633OTOOL64=$lt_OTOOL64
43634
43635# Old archive suffix (normally "a").
43636libext=$libext
43637
43638# Shared library suffix (normally ".so").
43639shrext_cmds=$lt_shrext_cmds
43640
43641# The commands to extract the exported symbol list from a shared archive.
43642extract_expsyms_cmds=$lt_extract_expsyms_cmds
43643
43644# Variables whose values should be saved in libtool wrapper scripts and
43645# restored at link time.
43646variables_saved_for_relink=$lt_variables_saved_for_relink
43647
43648# Do we need the "lib" prefix for modules?
43649need_lib_prefix=$need_lib_prefix
43650
43651# Do we need a version for libraries?
43652need_version=$need_version
43653
43654# Library versioning type.
43655version_type=$version_type
43656
43657# Shared library runtime path variable.
43658runpath_var=$runpath_var
43659
43660# Shared library path variable.
43661shlibpath_var=$shlibpath_var
43662
43663# Is shlibpath searched before the hard-coded library search path?
43664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43665
43666# Format of library name prefix.
43667libname_spec=$lt_libname_spec
43668
43669# List of archive names. First name is the real one, the rest are links.
43670# The last name is the one that the linker finds with -lNAME
43671library_names_spec=$lt_library_names_spec
43672
43673# The coded name of the library, if different from the real name.
43674soname_spec=$lt_soname_spec
43675
43676# Permission mode override for installation of shared libraries.
43677install_override_mode=$lt_install_override_mode
43678
43679# Command to use after installation of a shared archive.
43680postinstall_cmds=$lt_postinstall_cmds
43681
43682# Command to use after uninstallation of a shared archive.
43683postuninstall_cmds=$lt_postuninstall_cmds
43684
43685# Commands used to finish a libtool library installation in a directory.
43686finish_cmds=$lt_finish_cmds
43687
43688# As "finish_cmds", except a single script fragment to be evaled but
43689# not shown.
43690finish_eval=$lt_finish_eval
43691
43692# Whether we should hardcode library paths into libraries.
43693hardcode_into_libs=$hardcode_into_libs
43694
43695# Compile-time system search path for libraries.
43696sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43697
43698# Detected run-time system search path for libraries.
43699sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43700
43701# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43702configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43703
43704# Whether dlopen is supported.
43705dlopen_support=$enable_dlopen
43706
43707# Whether dlopen of programs is supported.
43708dlopen_self=$enable_dlopen_self
43709
43710# Whether dlopen of statically linked programs is supported.
43711dlopen_self_static=$enable_dlopen_self_static
43712
43713# Commands to strip libraries.
43714old_striplib=$lt_old_striplib
43715striplib=$lt_striplib
43716
43717
43718# The linker used to build libraries.
43719LD=$lt_LD
43720
43721# How to create reloadable object files.
43722reload_flag=$lt_reload_flag
43723reload_cmds=$lt_reload_cmds
43724
43725# Commands used to build an old-style archive.
43726old_archive_cmds=$lt_old_archive_cmds
43727
43728# A language specific compiler.
43729CC=$lt_compiler
43730
43731# Is the compiler the GNU compiler?
43732with_gcc=$GCC
43733
43734# Compiler flag to turn off builtin functions.
43735no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43736
43737# Additional compiler flags for building library objects.
43738pic_flag=$lt_lt_prog_compiler_pic
43739
43740# How to pass a linker flag through the compiler.
43741wl=$lt_lt_prog_compiler_wl
43742
43743# Compiler flag to prevent dynamic linking.
43744link_static_flag=$lt_lt_prog_compiler_static
43745
43746# Does compiler simultaneously support -c and -o options?
43747compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43748
43749# Whether or not to add -lc for building shared libraries.
43750build_libtool_need_lc=$archive_cmds_need_lc
43751
43752# Whether or not to disallow shared libs when runtime libs are static.
43753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43754
43755# Compiler flag to allow reflexive dlopens.
43756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43757
43758# Compiler flag to generate shared objects directly from archives.
43759whole_archive_flag_spec=$lt_whole_archive_flag_spec
43760
43761# Whether the compiler copes with passing no objects directly.
43762compiler_needs_object=$lt_compiler_needs_object
43763
43764# Create an old-style archive from a shared archive.
43765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43766
43767# Create a temporary old-style archive to link instead of a shared archive.
43768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43769
43770# Commands used to build a shared archive.
43771archive_cmds=$lt_archive_cmds
43772archive_expsym_cmds=$lt_archive_expsym_cmds
43773
43774# Commands used to build a loadable module if different from building
43775# a shared archive.
43776module_cmds=$lt_module_cmds
43777module_expsym_cmds=$lt_module_expsym_cmds
43778
43779# Whether we are building with GNU ld or not.
43780with_gnu_ld=$lt_with_gnu_ld
43781
43782# Flag that allows shared libraries with undefined symbols to be built.
43783allow_undefined_flag=$lt_allow_undefined_flag
43784
43785# Flag that enforces no undefined symbols.
43786no_undefined_flag=$lt_no_undefined_flag
43787
43788# Flag to hardcode \$libdir into a binary during linking.
43789# This must work even if \$libdir does not exist
43790hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43791
43792# Whether we need a single "-rpath" flag with a separated argument.
43793hardcode_libdir_separator=$lt_hardcode_libdir_separator
43794
43795# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43796# DIR into the resulting binary.
43797hardcode_direct=$hardcode_direct
43798
43799# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43800# DIR into the resulting binary and the resulting library dependency is
43801# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43802# library is relocated.
43803hardcode_direct_absolute=$hardcode_direct_absolute
43804
43805# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43806# into the resulting binary.
43807hardcode_minus_L=$hardcode_minus_L
43808
43809# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43810# into the resulting binary.
43811hardcode_shlibpath_var=$hardcode_shlibpath_var
43812
43813# Set to "yes" if building a shared library automatically hardcodes DIR
43814# into the library and all subsequent libraries and executables linked
43815# against it.
43816hardcode_automatic=$hardcode_automatic
43817
43818# Set to yes if linker adds runtime paths of dependent libraries
43819# to runtime path list.
43820inherit_rpath=$inherit_rpath
43821
43822# Whether libtool must link a program against all its dependency libraries.
43823link_all_deplibs=$link_all_deplibs
43824
43825# Set to "yes" if exported symbols are required.
43826always_export_symbols=$always_export_symbols
43827
43828# The commands to list exported symbols.
43829export_symbols_cmds=$lt_export_symbols_cmds
43830
43831# Symbols that should not be listed in the preloaded symbols.
43832exclude_expsyms=$lt_exclude_expsyms
43833
43834# Symbols that must always be exported.
43835include_expsyms=$lt_include_expsyms
43836
43837# Commands necessary for linking programs (against libraries) with templates.
43838prelink_cmds=$lt_prelink_cmds
43839
43840# Commands necessary for finishing linking programs.
43841postlink_cmds=$lt_postlink_cmds
43842
43843# Specify filename containing input files.
43844file_list_spec=$lt_file_list_spec
43845
43846# How to hardcode a shared library path into an executable.
43847hardcode_action=$hardcode_action
43848
43849# ### END LIBTOOL CONFIG
43850
43851_LT_EOF
43852
43853 cat <<'_LT_EOF' >> "$cfgfile"
43854
43855# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43856
43857# func_munge_path_list VARIABLE PATH
43858# -----------------------------------
43859# VARIABLE is name of variable containing _space_ separated list of
43860# directories to be munged by the contents of PATH, which is string
43861# having a format:
43862# "DIR[:DIR]:"
43863# string "DIR[ DIR]" will be prepended to VARIABLE
43864# ":DIR[:DIR]"
43865# string "DIR[ DIR]" will be appended to VARIABLE
43866# "DIRP[:DIRP]::[DIRA:]DIRA"
43867# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43868# "DIRA[ DIRA]" will be appended to VARIABLE
43869# "DIR[:DIR]"
43870# VARIABLE will be replaced by "DIR[ DIR]"
43871func_munge_path_list ()
43872{
43873 case x$2 in
43874 x)
43875 ;;
43876 *:)
43877 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43878 ;;
43879 x:*)
43880 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43881 ;;
43882 *::*)
43883 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43884 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43885 ;;
43886 *)
43887 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43888 ;;
43889 esac
43890}
43891
43892
43893# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43894func_cc_basename ()
43895{
43896 for cc_temp in $*""; do
43897 case $cc_temp in
43898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43900 \-*) ;;
43901 *) break;;
43902 esac
43903 done
43904 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43905}
43906
43907
43908# ### END FUNCTIONS SHARED WITH CONFIGURE
43909
43910_LT_EOF
43911
43912 case $host_os in
43913 aix3*)
43914 cat <<\_LT_EOF >> "$cfgfile"
43915# AIX sometimes has problems with the GCC collect2 program. For some
43916# reason, if we set the COLLECT_NAMES environment variable, the problems
43917# vanish in a puff of smoke.
43918if test set != "${COLLECT_NAMES+set}"; then
43919 COLLECT_NAMES=
43920 export COLLECT_NAMES
43921fi
43922_LT_EOF
43923 ;;
43924 esac
43925
43926
43927ltmain=$ac_aux_dir/ltmain.sh
43928
43929
43930 # We use sed instead of cat because bash on DJGPP gets confused if
43931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43932 # text mode, it properly converts lines to CR/LF. This bash problem
43933 # is reportedly fixed, but why not run on old versions too?
43934 sed '$q' "$ltmain" >> "$cfgfile" \
43935 || (rm -f "$cfgfile"; exit 1)
43936
43937 mv -f "$cfgfile" "$ofile" ||
43938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43939 chmod +x "$ofile"
43940
43941 ;;
43942
43943 esac
43944done # for ac_tag
43945
43946
43947as_fn_exit 0
43948_ACEOF
43949ac_clean_files=$ac_clean_files_save
43950
43951test $ac_write_fail = 0 ||
43952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43953
43954
43955# configure is writing to config.log, and then calls config.status.
43956# config.status does its own redirection, appending to config.log.
43957# Unfortunately, on DOS this fails, as config.log is still kept open
43958# by configure, so config.status won't be able to write to it; its
43959# output is simply discarded. So we exec the FD to /dev/null,
43960# effectively closing config.log, so it can be properly (re)opened and
43961# appended to by config.status. When coming back to configure, we
43962# need to make the FD available again.
43963if test "$no_create" != yes; then
43964 ac_cs_success=:
43965 ac_config_status_args=
43966 test "$silent" = yes &&
43967 ac_config_status_args="$ac_config_status_args --quiet"
43968 exec 5>/dev/null
43969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43970 exec 5>>config.log
43971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43972 # would make configure fail if this is the last instruction.
43973 $ac_cs_success || as_fn_exit 1
43974fi
43975
43976#
43977# CONFIG_SUBDIRS section.
43978#
43979if test "$no_recursion" != yes; then
43980
43981 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43982 # so they do not pile up.
43983 ac_sub_configure_args=
43984 ac_prev=
43985 eval "set x $ac_configure_args"
43986 shift
43987 for ac_arg
43988 do
43989 if test -n "$ac_prev"; then
43990 ac_prev=
43991 continue
43992 fi
43993 case $ac_arg in
43994 -cache-file | --cache-file | --cache-fil | --cache-fi \
43995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43996 ac_prev=cache_file ;;
43997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43999 | --c=*)
44000 ;;
44001 --config-cache | -C)
44002 ;;
44003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44004 ac_prev=srcdir ;;
44005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44006 ;;
44007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44008 ac_prev=prefix ;;
44009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44010 ;;
44011 --disable-option-checking)
44012 ;;
44013 *)
44014 case $ac_arg in
44015 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44016 esac
44017 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44018 esac
44019 done
44020
44021 # Always prepend --prefix to ensure using the same prefix
44022 # in subdir configurations.
44023 ac_arg="--prefix=$prefix"
44024 case $ac_arg in
44025 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44026 esac
44027 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44028
44029 # Pass --silent
44030 if test "$silent" = yes; then
44031 ac_sub_configure_args="--silent $ac_sub_configure_args"
44032 fi
44033
44034 # Always prepend --disable-option-checking to silence warnings, since
44035 # different subdirs can have different --enable and --with options.
44036 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44037
44038 ac_popdir=`pwd`
44039 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44040
44041 # Do not complain, so a configure script can configure whichever
44042 # parts of a large source tree are present.
44043 test -d "$srcdir/$ac_dir" || continue
44044
44045 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44046 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44047 $as_echo "$ac_msg" >&6
44048 as_dir="$ac_dir"; as_fn_mkdir_p
44049 ac_builddir=.
44050
44051case "$ac_dir" in
44052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44053*)
44054 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44055 # A ".." for each directory in $ac_dir_suffix.
44056 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44057 case $ac_top_builddir_sub in
44058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44060 esac ;;
44061esac
44062ac_abs_top_builddir=$ac_pwd
44063ac_abs_builddir=$ac_pwd$ac_dir_suffix
44064# for backward compatibility:
44065ac_top_builddir=$ac_top_build_prefix
44066
44067case $srcdir in
44068 .) # We are building in place.
44069 ac_srcdir=.
44070 ac_top_srcdir=$ac_top_builddir_sub
44071 ac_abs_top_srcdir=$ac_pwd ;;
44072 [\\/]* | ?:[\\/]* ) # Absolute name.
44073 ac_srcdir=$srcdir$ac_dir_suffix;
44074 ac_top_srcdir=$srcdir
44075 ac_abs_top_srcdir=$srcdir ;;
44076 *) # Relative name.
44077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44078 ac_top_srcdir=$ac_top_build_prefix$srcdir
44079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44080esac
44081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44082
44083
44084 cd "$ac_dir"
44085
44086 # Check for guested configure; otherwise get Cygnus style configure.
44087 if test -f "$ac_srcdir/configure.gnu"; then
44088 ac_sub_configure=$ac_srcdir/configure.gnu
44089 elif test -f "$ac_srcdir/configure"; then
44090 ac_sub_configure=$ac_srcdir/configure
44091 elif test -f "$ac_srcdir/configure.in"; then
44092 # This should be Cygnus configure.
44093 ac_sub_configure=$ac_aux_dir/configure
44094 else
44095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44096$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44097 ac_sub_configure=
44098 fi
44099
44100 # The recursion is here.
44101 if test -n "$ac_sub_configure"; then
44102 # Make the cache file name correct relative to the subdirectory.
44103 case $cache_file in
44104 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44105 *) # Relative name.
44106 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44107 esac
44108
44109 { $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
44110$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44111 # The eval makes quoting arguments work.
44112 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44113 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44114 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44115 fi
44116
44117 cd "$ac_popdir"
44118 done
44119fi
44120if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44122$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44123fi
44124
44125
44126
44127 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44128 if test -z "$tmp_cpp"; then
44129 tmp_cpp='cpp'
44130 fi
44131 cat >./tests/configurehelp.pm <<_EOF
44132# This is a generated file. Do not edit.
44133
44134package configurehelp;
44135
44136use strict;
44137use warnings;
44138use Exporter;
44139
44140use vars qw(
44141 @ISA
44142 @EXPORT_OK
44143 \$Cpreprocessor
44144 );
44145
44146@ISA = qw(Exporter);
44147
44148@EXPORT_OK = qw(
44149 \$Cpreprocessor
44150 );
44151
44152\$Cpreprocessor = '$tmp_cpp';
44153
441541;
44155_EOF
44156
44157
44158
44159## ---------------------------------- ##
44160## Start of distclean amending code ##
44161## ---------------------------------- ##
44162
44163for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44164do
44165
44166if test ! -f "$xc_subdir/Makefile"; then
44167 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44168 exit 1
44169fi
44170
44171# Fetch dependency tracking file list from Makefile include lines.
44172
44173xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44174xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44175
44176# --disable-dependency-tracking might have been used, consequently
44177# there is nothing to amend without a dependency tracking file list.
44178
44179if test $xc_cnt_words -gt 0; then
44180
44181{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44182$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44183
44184# Build Makefile specific patch hunk.
44185
44186xc_p="$xc_subdir/xc_patch.tmp"
44187
44188xc_rm_depfiles=`echo "$xc_inc_lines" \
44189 | $SED 's%include% -rm -f%' 2>/dev/null`
44190
44191xc_dep_subdirs=`echo "$xc_inc_lines" \
44192 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44193 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44194 | sort | uniq`
44195
44196echo "$xc_rm_depfiles" >$xc_p
44197
44198for xc_dep_dir in $xc_dep_subdirs; do
44199 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44200 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44201 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44202 echo "${xc_tab}fi" >>$xc_p
44203done
44204
44205# Build Makefile patching sed scripts.
44206
44207xc_s1="$xc_subdir/xc_script_1.tmp"
44208xc_s2="$xc_subdir/xc_script_2.tmp"
44209xc_s3="$xc_subdir/xc_script_3.tmp"
44210
44211cat >$xc_s1 <<\_EOT
44212/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44213 s/^.*(DEPDIR)/___xc_depdir_line___/
44214}
44215/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44216 s/^.*(DEPDIR)/___xc_depdir_line___/
44217}
44218_EOT
44219
44220cat >$xc_s2 <<\_EOT
44221/___xc_depdir_line___$/{
44222 N
44223 /___xc_depdir_line___$/D
44224}
44225_EOT
44226
44227cat >$xc_s3 <<_EOT
44228/^___xc_depdir_line___/{
44229 r $xc_p
44230 d
44231}
44232_EOT
44233
44234# Apply patch to Makefile and cleanup.
44235
44236$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44237$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44238$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44239
44240if test -f "$xc_subdir/Makefile.tmp3"; then
44241 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44242fi
44243
44244test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44245test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44246test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44247
44248test -f "$xc_p" && rm -f "$xc_p"
44249test -f "$xc_s1" && rm -f "$xc_s1"
44250test -f "$xc_s2" && rm -f "$xc_s2"
44251test -f "$xc_s3" && rm -f "$xc_s3"
44252
44253fi
44254
44255done
44256
44257## -------------------------------- ##
44258## End of distclean amending code ##
44259## -------------------------------- ##
44260
44261
44262
44263{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44264
44265 curl version: ${CURLVERSION}
44266 Host setup: ${host}
44267 Install prefix: ${prefix}
44268 Compiler: ${CC}
44269 SSL support: ${curl_ssl_msg}
44270 SSH support: ${curl_ssh_msg}
44271 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044272 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044273 GSS-API support: ${curl_gss_msg}
44274 TLS-SRP support: ${curl_tls_srp_msg}
44275 resolver: ${curl_res_msg}
44276 IPv6 support: ${curl_ipv6_msg}
44277 Unix sockets support: ${curl_unix_sockets_msg}
44278 IDN support: ${curl_idn_msg}
44279 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44280 Built-in manual: ${curl_manual_msg}
44281 --libcurl option: ${curl_libcurl_msg}
44282 Verbose errors: ${curl_verbose_msg}
44283 SSPI support: ${curl_sspi_msg}
44284 ca cert bundle: ${ca}${ca_warning}
44285 ca cert path: ${capath}${capath_warning}
44286 ca fallback: ${with_ca_fallback}
44287 LDAP support: ${curl_ldap_msg}
44288 LDAPS support: ${curl_ldaps_msg}
44289 RTSP support: ${curl_rtsp_msg}
44290 RTMP support: ${curl_rtmp_msg}
44291 metalink support: ${curl_mtlnk_msg}
44292 PSL support: ${curl_psl_msg}
44293 HTTP2 support: ${curl_h2_msg}
44294 Protocols: ${SUPPORT_PROTOCOLS}
44295" >&5
44296$as_echo "$as_me: Configured to build curl/libcurl:
44297
44298 curl version: ${CURLVERSION}
44299 Host setup: ${host}
44300 Install prefix: ${prefix}
44301 Compiler: ${CC}
44302 SSL support: ${curl_ssl_msg}
44303 SSH support: ${curl_ssh_msg}
44304 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044305 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044306 GSS-API support: ${curl_gss_msg}
44307 TLS-SRP support: ${curl_tls_srp_msg}
44308 resolver: ${curl_res_msg}
44309 IPv6 support: ${curl_ipv6_msg}
44310 Unix sockets support: ${curl_unix_sockets_msg}
44311 IDN support: ${curl_idn_msg}
44312 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44313 Built-in manual: ${curl_manual_msg}
44314 --libcurl option: ${curl_libcurl_msg}
44315 Verbose errors: ${curl_verbose_msg}
44316 SSPI support: ${curl_sspi_msg}
44317 ca cert bundle: ${ca}${ca_warning}
44318 ca cert path: ${capath}${capath_warning}
44319 ca fallback: ${with_ca_fallback}
44320 LDAP support: ${curl_ldap_msg}
44321 LDAPS support: ${curl_ldaps_msg}
44322 RTSP support: ${curl_rtsp_msg}
44323 RTMP support: ${curl_rtmp_msg}
44324 metalink support: ${curl_mtlnk_msg}
44325 PSL support: ${curl_psl_msg}
44326 HTTP2 support: ${curl_h2_msg}
44327 Protocols: ${SUPPORT_PROTOCOLS}
44328" >&6;}