blob: 74711b456b2489b21ba5e9f11a73f3245ba6b88e [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
926USE_CYASSL
927USE_MBEDTLS
928USE_POLARSSL
929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
935USE_DARWINSSL
936USE_WINDOWS_SSPI
937USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100938DEFAULT_SSL_BACKEND
939BUILD_STUB_GSS_FALSE
940BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700941USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100942HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700943ZLIB_LIBS
944HAVE_LIBZ_FALSE
945HAVE_LIBZ_TRUE
946HAVE_LIBZ
947PKGCONFIG
948CURL_DISABLE_GOPHER
949CURL_DISABLE_SMTP
950CURL_DISABLE_SMB
951CURL_DISABLE_IMAP
952CURL_DISABLE_POP3
953CURL_DISABLE_TFTP
954CURL_DISABLE_TELNET
955CURL_DISABLE_DICT
956CURL_DISABLE_PROXY
957HAVE_LDAP_SSL
958CURL_DISABLE_LDAPS
959CURL_DISABLE_LDAP
960CURL_DISABLE_FILE
961CURL_DISABLE_FTP
962CURL_DISABLE_RTSP
963CURL_DISABLE_HTTP
964DOING_NATIVE_WINDOWS_FALSE
965DOING_NATIVE_WINDOWS_TRUE
966BUILD_UNITTESTS_FALSE
967BUILD_UNITTESTS_TRUE
968CURLDEBUG_FALSE
969CURLDEBUG_TRUE
970USE_EXPLICIT_LIB_DEPS_FALSE
971USE_EXPLICIT_LIB_DEPS_TRUE
972REQUIRE_LIB_DEPS
973CPPFLAG_CURL_STATICLIB
974USE_CPPFLAG_CURL_STATICLIB_FALSE
975USE_CPPFLAG_CURL_STATICLIB_TRUE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982LT_SYS_LIBRARY_PATH
983OTOOL64
984OTOOL
985LIPO
986NMEDIT
987DSYMUTIL
988MANIFEST_TOOL
989RANLIB
990ac_ct_AR
991LN_S
992NM
993ac_ct_DUMPBIN
994DUMPBIN
995LD
996FGREP
997LIBTOOL
998OBJDUMP
999DLLTOOL
1000AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001001AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001002host_os
1003host_vendor
1004host_cpu
1005host
1006build_os
1007build_vendor
1008build_cpu
1009build
1010PKGADD_VENDOR
1011PKGADD_NAME
1012PKGADD_PKG
1013VERSIONNUM
1014CURLVERSION
1015am__fastdepCC_FALSE
1016am__fastdepCC_TRUE
1017CCDEPMODE
1018am__nodep
1019AMDEPBACKSLASH
1020AMDEP_FALSE
1021AMDEP_TRUE
1022am__quote
1023am__include
1024DEPDIR
1025am__untar
1026am__tar
1027AMTAR
1028am__leading_dot
1029SET_MAKE
1030AWK
1031mkdir_p
1032MKDIR_P
1033INSTALL_STRIP_PROGRAM
1034STRIP
1035install_sh
1036MAKEINFO
1037AUTOHEADER
1038AUTOMAKE
1039AUTOCONF
1040ACLOCAL
1041VERSION
1042PACKAGE
1043CYGPATH_W
1044am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001045CODE_COVERAGE_RULES
1046CODE_COVERAGE_LDFLAGS
1047CODE_COVERAGE_LIBS
1048CODE_COVERAGE_CXXFLAGS
1049CODE_COVERAGE_CFLAGS
1050CODE_COVERAGE_CPPFLAGS
1051GENHTML
1052LCOV
1053GCOV
1054CODE_COVERAGE_ENABLED
1055CODE_COVERAGE_ENABLED_FALSE
1056CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001057CPP
1058OBJEXT
1059EXEEXT
1060ac_ct_CC
1061CPPFLAGS
1062LDFLAGS
1063CFLAGS
1064CC
1065INSTALL_DATA
1066INSTALL_SCRIPT
1067INSTALL_PROGRAM
1068libext
1069AR
1070EGREP
1071GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001072SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001073CURL_CFLAG_EXTRAS
1074CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001075AM_BACKSLASH
1076AM_DEFAULT_VERBOSITY
1077AM_DEFAULT_V
1078AM_V
1079MAINT
1080MAINTAINER_MODE_FALSE
1081MAINTAINER_MODE_TRUE
1082target_alias
1083host_alias
1084build_alias
1085LIBS
1086ECHO_T
1087ECHO_N
1088ECHO_C
1089DEFS
1090mandir
1091localedir
1092libdir
1093psdir
1094pdfdir
1095dvidir
1096htmldir
1097infodir
1098docdir
1099oldincludedir
1100includedir
1101runstatedir
1102localstatedir
1103sharedstatedir
1104sysconfdir
1105datadir
1106datarootdir
1107libexecdir
1108sbindir
1109bindir
1110program_transform_name
1111prefix
1112exec_prefix
1113PACKAGE_URL
1114PACKAGE_BUGREPORT
1115PACKAGE_STRING
1116PACKAGE_VERSION
1117PACKAGE_TARNAME
1118PACKAGE_NAME
1119SHELL
1120PATH_SEPARATOR'
1121ac_subst_files=''
1122ac_user_opts='
1123enable_option_checking
1124enable_maintainer_mode
1125enable_silent_rules
1126enable_debug
1127enable_optimize
1128enable_warnings
1129enable_werror
1130enable_curldebug
1131enable_symbol_hiding
1132enable_hidden_symbols
1133enable_ares
1134enable_rt
1135with_gcov
1136enable_code_coverage
1137enable_dependency_tracking
1138enable_largefile
1139enable_shared
1140enable_static
1141with_pic
1142enable_fast_install
1143with_aix_soname
1144with_gnu_ld
1145with_sysroot
1146enable_libtool_lock
1147enable_http
1148enable_ftp
1149enable_file
1150enable_ldap
1151enable_ldaps
1152enable_rtsp
1153enable_proxy
1154enable_dict
1155enable_telnet
1156enable_tftp
1157enable_pop3
1158enable_imap
1159enable_smb
1160enable_smtp
1161enable_gopher
1162enable_manual
1163enable_libcurl_option
1164enable_libgcc
1165with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001166with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001167with_ldap_lib
1168with_lber_lib
1169enable_ipv6
1170with_gssapi_includes
1171with_gssapi_libs
1172with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001173with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001174with_winssl
1175with_darwinssl
1176with_ssl
1177with_egd_socket
1178with_random
1179with_gnutls
1180with_polarssl
1181with_mbedtls
1182with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001183with_wolfssl
Elliott Hughes82be86d2017-09-20 17:00:17 -07001184with_nss
1185with_axtls
1186with_ca_bundle
1187with_ca_path
1188with_ca_fallback
1189with_libpsl
1190with_libmetalink
1191with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001192with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001193with_librtmp
1194enable_versioned_symbols
1195with_winidn
1196with_libidn2
1197with_nghttp2
1198with_zsh_functions_dir
1199enable_threaded_resolver
1200enable_pthreads
1201enable_verbose
1202enable_sspi
1203enable_crypto_auth
1204enable_ntlm_wb
1205enable_tls_srp
1206enable_unix_sockets
1207enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001208'
1209 ac_precious_vars='build_alias
1210host_alias
1211target_alias
1212CC
1213CFLAGS
1214LDFLAGS
1215LIBS
1216CPPFLAGS
1217CPP
1218LT_SYS_LIBRARY_PATH'
1219ac_subdirs_all='ares'
1220
1221# Initialize some variables set by options.
1222ac_init_help=
1223ac_init_version=false
1224ac_unrecognized_opts=
1225ac_unrecognized_sep=
1226# The variables have the same names as the options, with
1227# dashes changed to underlines.
1228cache_file=/dev/null
1229exec_prefix=NONE
1230no_create=
1231no_recursion=
1232prefix=NONE
1233program_prefix=NONE
1234program_suffix=NONE
1235program_transform_name=s,x,x,
1236silent=
1237site=
1238srcdir=
1239verbose=
1240x_includes=NONE
1241x_libraries=NONE
1242
1243# Installation directory options.
1244# These are left unexpanded so users can "make install exec_prefix=/foo"
1245# and all the variables that are supposed to be based on exec_prefix
1246# by default will actually change.
1247# Use braces instead of parens because sh, perl, etc. also accept them.
1248# (The list follows the same order as the GNU Coding Standards.)
1249bindir='${exec_prefix}/bin'
1250sbindir='${exec_prefix}/sbin'
1251libexecdir='${exec_prefix}/libexec'
1252datarootdir='${prefix}/share'
1253datadir='${datarootdir}'
1254sysconfdir='${prefix}/etc'
1255sharedstatedir='${prefix}/com'
1256localstatedir='${prefix}/var'
1257runstatedir='${localstatedir}/run'
1258includedir='${prefix}/include'
1259oldincludedir='/usr/include'
1260docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1261infodir='${datarootdir}/info'
1262htmldir='${docdir}'
1263dvidir='${docdir}'
1264pdfdir='${docdir}'
1265psdir='${docdir}'
1266libdir='${exec_prefix}/lib'
1267localedir='${datarootdir}/locale'
1268mandir='${datarootdir}/man'
1269
1270ac_prev=
1271ac_dashdash=
1272for ac_option
1273do
1274 # If the previous option needs an argument, assign it.
1275 if test -n "$ac_prev"; then
1276 eval $ac_prev=\$ac_option
1277 ac_prev=
1278 continue
1279 fi
1280
1281 case $ac_option in
1282 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1283 *=) ac_optarg= ;;
1284 *) ac_optarg=yes ;;
1285 esac
1286
1287 # Accept the important Cygnus configure options, so we can diagnose typos.
1288
1289 case $ac_dashdash$ac_option in
1290 --)
1291 ac_dashdash=yes ;;
1292
1293 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1294 ac_prev=bindir ;;
1295 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1296 bindir=$ac_optarg ;;
1297
1298 -build | --build | --buil | --bui | --bu)
1299 ac_prev=build_alias ;;
1300 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1301 build_alias=$ac_optarg ;;
1302
1303 -cache-file | --cache-file | --cache-fil | --cache-fi \
1304 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1305 ac_prev=cache_file ;;
1306 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1307 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1308 cache_file=$ac_optarg ;;
1309
1310 --config-cache | -C)
1311 cache_file=config.cache ;;
1312
1313 -datadir | --datadir | --datadi | --datad)
1314 ac_prev=datadir ;;
1315 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1316 datadir=$ac_optarg ;;
1317
1318 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1319 | --dataroo | --dataro | --datar)
1320 ac_prev=datarootdir ;;
1321 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1322 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1323 datarootdir=$ac_optarg ;;
1324
1325 -disable-* | --disable-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid feature name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334"enable_$ac_useropt"
1335"*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval enable_$ac_useropt=no ;;
1340
1341 -docdir | --docdir | --docdi | --doc | --do)
1342 ac_prev=docdir ;;
1343 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1344 docdir=$ac_optarg ;;
1345
1346 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1347 ac_prev=dvidir ;;
1348 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1349 dvidir=$ac_optarg ;;
1350
1351 -enable-* | --enable-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid feature name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"enable_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval enable_$ac_useropt=\$ac_optarg ;;
1366
1367 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1368 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1369 | --exec | --exe | --ex)
1370 ac_prev=exec_prefix ;;
1371 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1372 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1373 | --exec=* | --exe=* | --ex=*)
1374 exec_prefix=$ac_optarg ;;
1375
1376 -gas | --gas | --ga | --g)
1377 # Obsolete; use --with-gas.
1378 with_gas=yes ;;
1379
1380 -help | --help | --hel | --he | -h)
1381 ac_init_help=long ;;
1382 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1383 ac_init_help=recursive ;;
1384 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1385 ac_init_help=short ;;
1386
1387 -host | --host | --hos | --ho)
1388 ac_prev=host_alias ;;
1389 -host=* | --host=* | --hos=* | --ho=*)
1390 host_alias=$ac_optarg ;;
1391
1392 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1393 ac_prev=htmldir ;;
1394 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1395 | --ht=*)
1396 htmldir=$ac_optarg ;;
1397
1398 -includedir | --includedir | --includedi | --included | --include \
1399 | --includ | --inclu | --incl | --inc)
1400 ac_prev=includedir ;;
1401 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1402 | --includ=* | --inclu=* | --incl=* | --inc=*)
1403 includedir=$ac_optarg ;;
1404
1405 -infodir | --infodir | --infodi | --infod | --info | --inf)
1406 ac_prev=infodir ;;
1407 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1408 infodir=$ac_optarg ;;
1409
1410 -libdir | --libdir | --libdi | --libd)
1411 ac_prev=libdir ;;
1412 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1413 libdir=$ac_optarg ;;
1414
1415 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1416 | --libexe | --libex | --libe)
1417 ac_prev=libexecdir ;;
1418 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1419 | --libexe=* | --libex=* | --libe=*)
1420 libexecdir=$ac_optarg ;;
1421
1422 -localedir | --localedir | --localedi | --localed | --locale)
1423 ac_prev=localedir ;;
1424 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1425 localedir=$ac_optarg ;;
1426
1427 -localstatedir | --localstatedir | --localstatedi | --localstated \
1428 | --localstate | --localstat | --localsta | --localst | --locals)
1429 ac_prev=localstatedir ;;
1430 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1431 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1432 localstatedir=$ac_optarg ;;
1433
1434 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1435 ac_prev=mandir ;;
1436 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1437 mandir=$ac_optarg ;;
1438
1439 -nfp | --nfp | --nf)
1440 # Obsolete; use --without-fp.
1441 with_fp=no ;;
1442
1443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1444 | --no-cr | --no-c | -n)
1445 no_create=yes ;;
1446
1447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449 no_recursion=yes ;;
1450
1451 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1452 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1453 | --oldin | --oldi | --old | --ol | --o)
1454 ac_prev=oldincludedir ;;
1455 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1456 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1457 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1458 oldincludedir=$ac_optarg ;;
1459
1460 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1461 ac_prev=prefix ;;
1462 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1463 prefix=$ac_optarg ;;
1464
1465 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1466 | --program-pre | --program-pr | --program-p)
1467 ac_prev=program_prefix ;;
1468 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1469 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1470 program_prefix=$ac_optarg ;;
1471
1472 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1473 | --program-suf | --program-su | --program-s)
1474 ac_prev=program_suffix ;;
1475 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1476 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1477 program_suffix=$ac_optarg ;;
1478
1479 -program-transform-name | --program-transform-name \
1480 | --program-transform-nam | --program-transform-na \
1481 | --program-transform-n | --program-transform- \
1482 | --program-transform | --program-transfor \
1483 | --program-transfo | --program-transf \
1484 | --program-trans | --program-tran \
1485 | --progr-tra | --program-tr | --program-t)
1486 ac_prev=program_transform_name ;;
1487 -program-transform-name=* | --program-transform-name=* \
1488 | --program-transform-nam=* | --program-transform-na=* \
1489 | --program-transform-n=* | --program-transform-=* \
1490 | --program-transform=* | --program-transfor=* \
1491 | --program-transfo=* | --program-transf=* \
1492 | --program-trans=* | --program-tran=* \
1493 | --progr-tra=* | --program-tr=* | --program-t=*)
1494 program_transform_name=$ac_optarg ;;
1495
1496 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1497 ac_prev=pdfdir ;;
1498 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1499 pdfdir=$ac_optarg ;;
1500
1501 -psdir | --psdir | --psdi | --psd | --ps)
1502 ac_prev=psdir ;;
1503 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504 psdir=$ac_optarg ;;
1505
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1508 silent=yes ;;
1509
1510 -runstatedir | --runstatedir | --runstatedi | --runstated \
1511 | --runstate | --runstat | --runsta | --runst | --runs \
1512 | --run | --ru | --r)
1513 ac_prev=runstatedir ;;
1514 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1515 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1516 | --run=* | --ru=* | --r=*)
1517 runstatedir=$ac_optarg ;;
1518
1519 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1520 ac_prev=sbindir ;;
1521 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1522 | --sbi=* | --sb=*)
1523 sbindir=$ac_optarg ;;
1524
1525 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1526 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1527 | --sharedst | --shareds | --shared | --share | --shar \
1528 | --sha | --sh)
1529 ac_prev=sharedstatedir ;;
1530 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1531 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1532 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1533 | --sha=* | --sh=*)
1534 sharedstatedir=$ac_optarg ;;
1535
1536 -site | --site | --sit)
1537 ac_prev=site ;;
1538 -site=* | --site=* | --sit=*)
1539 site=$ac_optarg ;;
1540
1541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1542 ac_prev=srcdir ;;
1543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1544 srcdir=$ac_optarg ;;
1545
1546 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1547 | --syscon | --sysco | --sysc | --sys | --sy)
1548 ac_prev=sysconfdir ;;
1549 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1550 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1551 sysconfdir=$ac_optarg ;;
1552
1553 -target | --target | --targe | --targ | --tar | --ta | --t)
1554 ac_prev=target_alias ;;
1555 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1556 target_alias=$ac_optarg ;;
1557
1558 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1559 verbose=yes ;;
1560
1561 -version | --version | --versio | --versi | --vers | -V)
1562 ac_init_version=: ;;
1563
1564 -with-* | --with-*)
1565 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1566 # Reject names that are not valid shell variable names.
1567 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568 as_fn_error $? "invalid package name: $ac_useropt"
1569 ac_useropt_orig=$ac_useropt
1570 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571 case $ac_user_opts in
1572 *"
1573"with_$ac_useropt"
1574"*) ;;
1575 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1576 ac_unrecognized_sep=', ';;
1577 esac
1578 eval with_$ac_useropt=\$ac_optarg ;;
1579
1580 -without-* | --without-*)
1581 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1582 # Reject names that are not valid shell variable names.
1583 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1584 as_fn_error $? "invalid package name: $ac_useropt"
1585 ac_useropt_orig=$ac_useropt
1586 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1587 case $ac_user_opts in
1588 *"
1589"with_$ac_useropt"
1590"*) ;;
1591 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1592 ac_unrecognized_sep=', ';;
1593 esac
1594 eval with_$ac_useropt=no ;;
1595
1596 --x)
1597 # Obsolete; use --with-x.
1598 with_x=yes ;;
1599
1600 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1601 | --x-incl | --x-inc | --x-in | --x-i)
1602 ac_prev=x_includes ;;
1603 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1604 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1605 x_includes=$ac_optarg ;;
1606
1607 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1608 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1609 ac_prev=x_libraries ;;
1610 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1611 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1612 x_libraries=$ac_optarg ;;
1613
1614 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1615Try \`$0 --help' for more information"
1616 ;;
1617
1618 *=*)
1619 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1620 # Reject names that are not valid shell variable names.
1621 case $ac_envvar in #(
1622 '' | [0-9]* | *[!_$as_cr_alnum]* )
1623 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1624 esac
1625 eval $ac_envvar=\$ac_optarg
1626 export $ac_envvar ;;
1627
1628 *)
1629 # FIXME: should be removed in autoconf 3.0.
1630 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1631 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1632 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1633 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1634 ;;
1635
1636 esac
1637done
1638
1639if test -n "$ac_prev"; then
1640 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1641 as_fn_error $? "missing argument to $ac_option"
1642fi
1643
1644if test -n "$ac_unrecognized_opts"; then
1645 case $enable_option_checking in
1646 no) ;;
1647 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1648 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1649 esac
1650fi
1651
1652# Check all directory arguments for consistency.
1653for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1654 datadir sysconfdir sharedstatedir localstatedir includedir \
1655 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1656 libdir localedir mandir runstatedir
1657do
1658 eval ac_val=\$$ac_var
1659 # Remove trailing slashes.
1660 case $ac_val in
1661 */ )
1662 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1663 eval $ac_var=\$ac_val;;
1664 esac
1665 # Be sure to have absolute directory names.
1666 case $ac_val in
1667 [\\/$]* | ?:[\\/]* ) continue;;
1668 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1669 esac
1670 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1671done
1672
1673# There might be people who depend on the old broken behavior: `$host'
1674# used to hold the argument of --host etc.
1675# FIXME: To remove some day.
1676build=$build_alias
1677host=$host_alias
1678target=$target_alias
1679
1680# FIXME: To remove some day.
1681if test "x$host_alias" != x; then
1682 if test "x$build_alias" = x; then
1683 cross_compiling=maybe
1684 elif test "x$build_alias" != "x$host_alias"; then
1685 cross_compiling=yes
1686 fi
1687fi
1688
1689ac_tool_prefix=
1690test -n "$host_alias" && ac_tool_prefix=$host_alias-
1691
1692test "$silent" = yes && exec 6>/dev/null
1693
1694
1695ac_pwd=`pwd` && test -n "$ac_pwd" &&
1696ac_ls_di=`ls -di .` &&
1697ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1698 as_fn_error $? "working directory cannot be determined"
1699test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1700 as_fn_error $? "pwd does not report name of working directory"
1701
1702
1703# Find the source files, if location was not specified.
1704if test -z "$srcdir"; then
1705 ac_srcdir_defaulted=yes
1706 # Try the directory containing this script, then the parent directory.
1707 ac_confdir=`$as_dirname -- "$as_myself" ||
1708$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1709 X"$as_myself" : 'X\(//\)[^/]' \| \
1710 X"$as_myself" : 'X\(//\)$' \| \
1711 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1712$as_echo X"$as_myself" |
1713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1714 s//\1/
1715 q
1716 }
1717 /^X\(\/\/\)[^/].*/{
1718 s//\1/
1719 q
1720 }
1721 /^X\(\/\/\)$/{
1722 s//\1/
1723 q
1724 }
1725 /^X\(\/\).*/{
1726 s//\1/
1727 q
1728 }
1729 s/.*/./; q'`
1730 srcdir=$ac_confdir
1731 if test ! -r "$srcdir/$ac_unique_file"; then
1732 srcdir=..
1733 fi
1734else
1735 ac_srcdir_defaulted=no
1736fi
1737if test ! -r "$srcdir/$ac_unique_file"; then
1738 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1739 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1740fi
1741ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1742ac_abs_confdir=`(
1743 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1744 pwd)`
1745# When building in place, set srcdir=.
1746if test "$ac_abs_confdir" = "$ac_pwd"; then
1747 srcdir=.
1748fi
1749# Remove unnecessary trailing slashes from srcdir.
1750# Double slashes in file names in object file debugging info
1751# mess up M-x gdb in Emacs.
1752case $srcdir in
1753*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1754esac
1755for ac_var in $ac_precious_vars; do
1756 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1757 eval ac_env_${ac_var}_value=\$${ac_var}
1758 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1759 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1760done
1761
1762#
1763# Report the --help message.
1764#
1765if test "$ac_init_help" = "long"; then
1766 # Omit some internal or obsolete options to make the list less imposing.
1767 # This message is too long to be a string in the A/UX 3.1 sh.
1768 cat <<_ACEOF
1769\`configure' configures curl - to adapt to many kinds of systems.
1770
1771Usage: $0 [OPTION]... [VAR=VALUE]...
1772
1773To assign environment variables (e.g., CC, CFLAGS...), specify them as
1774VAR=VALUE. See below for descriptions of some of the useful variables.
1775
1776Defaults for the options are specified in brackets.
1777
1778Configuration:
1779 -h, --help display this help and exit
1780 --help=short display options specific to this package
1781 --help=recursive display the short help of all the included packages
1782 -V, --version display version information and exit
1783 -q, --quiet, --silent do not print \`checking ...' messages
1784 --cache-file=FILE cache test results in FILE [disabled]
1785 -C, --config-cache alias for \`--cache-file=config.cache'
1786 -n, --no-create do not create output files
1787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1788
1789Installation directories:
1790 --prefix=PREFIX install architecture-independent files in PREFIX
1791 [$ac_default_prefix]
1792 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1793 [PREFIX]
1794
1795By default, \`make install' will install all the files in
1796\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1797an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1798for instance \`--prefix=\$HOME'.
1799
1800For better control, use the options below.
1801
1802Fine tuning of the installation directories:
1803 --bindir=DIR user executables [EPREFIX/bin]
1804 --sbindir=DIR system admin executables [EPREFIX/sbin]
1805 --libexecdir=DIR program executables [EPREFIX/libexec]
1806 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1807 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1808 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1809 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1810 --libdir=DIR object code libraries [EPREFIX/lib]
1811 --includedir=DIR C header files [PREFIX/include]
1812 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1813 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1814 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1815 --infodir=DIR info documentation [DATAROOTDIR/info]
1816 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1817 --mandir=DIR man documentation [DATAROOTDIR/man]
1818 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1819 --htmldir=DIR html documentation [DOCDIR]
1820 --dvidir=DIR dvi documentation [DOCDIR]
1821 --pdfdir=DIR pdf documentation [DOCDIR]
1822 --psdir=DIR ps documentation [DOCDIR]
1823_ACEOF
1824
1825 cat <<\_ACEOF
1826
1827Program names:
1828 --program-prefix=PREFIX prepend PREFIX to installed program names
1829 --program-suffix=SUFFIX append SUFFIX to installed program names
1830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1831
1832System types:
1833 --build=BUILD configure for building on BUILD [guessed]
1834 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1835_ACEOF
1836fi
1837
1838if test -n "$ac_init_help"; then
1839 case $ac_init_help in
1840 short | recursive ) echo "Configuration of curl -:";;
1841 esac
1842 cat <<\_ACEOF
1843
1844Optional Features:
1845 --disable-option-checking ignore unrecognized --enable/--with options
1846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1848 --enable-maintainer-mode
1849 enable make rules and dependencies not useful (and
1850 sometimes confusing) to the casual installer
1851 --enable-silent-rules less verbose build output (undo: "make V=1")
1852 --disable-silent-rules verbose build output (undo: "make V=0")
1853 --enable-debug Enable debug build options
1854 --disable-debug Disable debug build options
1855 --enable-optimize Enable compiler optimizations
1856 --disable-optimize Disable compiler optimizations
1857 --enable-warnings Enable strict compiler warnings
1858 --disable-warnings Disable strict compiler warnings
1859 --enable-werror Enable compiler warnings as errors
1860 --disable-werror Disable compiler warnings as errors
1861 --enable-curldebug Enable curl debug memory tracking
1862 --disable-curldebug Disable curl debug memory tracking
1863 --enable-symbol-hiding Enable hiding of library internal symbols
1864 --disable-symbol-hiding Disable hiding of library internal symbols
1865 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1866 --disable-hidden-symbols
1867 To be deprecated, use --disable-symbol-hiding
1868 --enable-ares[=PATH] Enable c-ares for DNS lookups
1869 --disable-ares Disable c-ares for DNS lookups
1870 --disable-rt disable dependency on -lrt
1871 --enable-code-coverage Whether to enable code coverage support
1872 --enable-dependency-tracking
1873 do not reject slow dependency extractors
1874 --disable-dependency-tracking
1875 speeds up one-time build
1876 --disable-largefile omit support for large files
1877 --enable-shared[=PKGS] build shared libraries [default=yes]
1878 --enable-static[=PKGS] build static libraries [default=yes]
1879 --enable-fast-install[=PKGS]
1880 optimize for fast installation [default=yes]
1881 --disable-libtool-lock avoid locking (might break parallel builds)
1882 --enable-http Enable HTTP support
1883 --disable-http Disable HTTP support
1884 --enable-ftp Enable FTP support
1885 --disable-ftp Disable FTP support
1886 --enable-file Enable FILE support
1887 --disable-file Disable FILE support
1888 --enable-ldap Enable LDAP support
1889 --disable-ldap Disable LDAP support
1890 --enable-ldaps Enable LDAPS support
1891 --disable-ldaps Disable LDAPS support
1892 --enable-rtsp Enable RTSP support
1893 --disable-rtsp Disable RTSP support
1894 --enable-proxy Enable proxy support
1895 --disable-proxy Disable proxy support
1896 --enable-dict Enable DICT support
1897 --disable-dict Disable DICT support
1898 --enable-telnet Enable TELNET support
1899 --disable-telnet Disable TELNET support
1900 --enable-tftp Enable TFTP support
1901 --disable-tftp Disable TFTP support
1902 --enable-pop3 Enable POP3 support
1903 --disable-pop3 Disable POP3 support
1904 --enable-imap Enable IMAP support
1905 --disable-imap Disable IMAP support
1906 --enable-smb Enable SMB/CIFS support
1907 --disable-smb Disable SMB/CIFS support
1908 --enable-smtp Enable SMTP support
1909 --disable-smtp Disable SMTP support
1910 --enable-gopher Enable Gopher support
1911 --disable-gopher Disable Gopher support
1912 --enable-manual Enable built-in manual
1913 --disable-manual Disable built-in manual
1914 --enable-libcurl-option Enable --libcurl C code generation support
1915 --disable-libcurl-option
1916 Disable --libcurl C code generation support
1917 --enable-libgcc use libgcc when linking
1918 --enable-ipv6 Enable IPv6 (with IPv4) support
1919 --disable-ipv6 Disable IPv6 support
1920 --enable-versioned-symbols
1921 Enable versioned symbols in shared library
1922 --disable-versioned-symbols
1923 Disable versioned symbols in shared library
1924 --enable-threaded-resolver
1925 Enable threaded resolver
1926 --disable-threaded-resolver
1927 Disable threaded resolver
1928 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1929 --disable-pthreads Disable POSIX threads
1930 --enable-verbose Enable verbose strings
1931 --disable-verbose Disable verbose strings
1932 --enable-sspi Enable SSPI
1933 --disable-sspi Disable SSPI
1934 --enable-crypto-auth Enable cryptographic authentication
1935 --disable-crypto-auth Disable cryptographic authentication
1936 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1937 helper, where FILE is ntlm_auth's absolute filename
1938 (default: /usr/bin/ntlm_auth)
1939 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1940 helper
1941 --enable-tls-srp Enable TLS-SRP authentication
1942 --disable-tls-srp Disable TLS-SRP authentication
1943 --enable-unix-sockets Enable Unix domain sockets
1944 --disable-unix-sockets Disable Unix domain sockets
1945 --enable-cookies Enable cookies support
1946 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001947
1948Optional Packages:
1949 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1950 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1951 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1952 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1953 both]
1954 --with-aix-soname=aix|svr4|both
1955 shared library versioning (aka "SONAME") variant to
1956 provide on AIX, [default=aix].
1957 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1958 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1959 compiler's sysroot if not specified).
1960 --with-zlib=PATH search for zlib in PATH
1961 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001962 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1963 installation; when possible, set the PKG_CONFIG_PATH
1964 environment variable instead of using this option
1965 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001966 --with-ldap-lib=libname Specify name of ldap lib file
1967 --with-lber-lib=libname Specify name of lber lib file
1968 --with-gssapi-includes=DIR
1969 Specify location of GSS-API headers
1970 --with-gssapi-libs=DIR Specify location of GSS-API libs
1971 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001972 --with-default-ssl-backend=NAME
1973 Use NAME as default SSL backend
1974 --without-default-ssl-backend
1975 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001976 --with-winssl enable Windows native SSL/TLS
1977 --without-winssl disable Windows native SSL/TLS
1978 --with-darwinssl enable Apple OS native SSL/TLS
1979 --without-darwinssl disable Apple OS native SSL/TLS
1980 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1981 installation (default: /usr/local/ssl); when
1982 possible, set the PKG_CONFIG_PATH environment
1983 variable instead of using this option
1984 --without-ssl disable OpenSSL
1985 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1986 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1987 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1988 installation root
1989 --without-gnutls disable GnuTLS detection
1990 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1991 installation root
1992 --without-polarssl disable PolarSSL detection
1993 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1994 installation root
1995 --without-mbedtls disable mbedTLS detection
1996 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1997 installation root (default: system lib default)
1998 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001999 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2000 installation root (default: system lib default)
2001 --without-wolfssl disable WolfSSL detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002002 --with-nss=PATH where to look for NSS, PATH points to the
2003 installation root
2004 --without-nss disable NSS detection
2005 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2006 installation prefix (default: /usr/local). Ignored
2007 if another SSL engine is selected.
2008 --without-axtls disable axTLS
2009 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2010 /etc/ca-bundle.crt)
2011 --without-ca-bundle Don't use a default CA bundle
2012 --with-ca-path=DIRECTORY
2013 Path to a directory containing CA certificates
2014 stored individually, with their filenames in a hash
2015 format. This option can be used with OpenSSL, GnuTLS
2016 and PolarSSL backends. Refer to OpenSSL c_rehash for
2017 details. (example: /etc/certificates)
2018 --without-ca-path Don't use a default CA path
2019 --with-ca-fallback Use the built in CA store of the SSL library
2020 --without-ca-fallback Don't use the built in CA store of the SSL library
2021 --without-libpsl disable support for libpsl cookie checking
2022 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2023 installation root
2024 --without-libmetalink disable libmetalink detection
2025 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2026 LIBSSH2 installation; when possible, set the
2027 PKG_CONFIG_PATH environment variable instead of
2028 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002029 --with-libssh2 enable LIBSSH2
2030 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2031 installation; when possible, set the PKG_CONFIG_PATH
2032 environment variable instead of using this option
2033 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002034 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2035 LIBRTMP installation; when possible, set the
2036 PKG_CONFIG_PATH environment variable instead of
2037 using this option
2038 --without-librtmp disable LIBRTMP
2039 --with-winidn=PATH enable Windows native IDN
2040 --without-winidn disable Windows native IDN
2041 --with-libidn2=PATH Enable libidn2 usage
2042 --without-libidn2 Disable libidn2 usage
2043 --with-nghttp2=PATH Enable nghttp2 usage
2044 --without-nghttp2 Disable nghttp2 usage
2045 --with-zsh-functions-dir=PATH
2046 Install zsh completions to PATH
2047 --without-zsh-functions-dir
2048 Do not install zsh completions
2049
2050Some influential environment variables:
2051 CC C compiler command
2052 CFLAGS C compiler flags
2053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2054 nonstandard directory <lib dir>
2055 LIBS libraries to pass to the linker, e.g. -l<library>
2056 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2057 you have headers in a nonstandard directory <include dir>
2058 CPP C preprocessor
2059 LT_SYS_LIBRARY_PATH
2060 User-defined run-time library search path.
2061
2062Use these variables to override the choices made by `configure' or to help
2063it to find libraries and programs with nonstandard names/locations.
2064
2065Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2066_ACEOF
2067ac_status=$?
2068fi
2069
2070if test "$ac_init_help" = "recursive"; then
2071 # If there are subdirs, report their specific --help.
2072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2073 test -d "$ac_dir" ||
2074 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2075 continue
2076 ac_builddir=.
2077
2078case "$ac_dir" in
2079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2080*)
2081 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2082 # A ".." for each directory in $ac_dir_suffix.
2083 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2084 case $ac_top_builddir_sub in
2085 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2086 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2087 esac ;;
2088esac
2089ac_abs_top_builddir=$ac_pwd
2090ac_abs_builddir=$ac_pwd$ac_dir_suffix
2091# for backward compatibility:
2092ac_top_builddir=$ac_top_build_prefix
2093
2094case $srcdir in
2095 .) # We are building in place.
2096 ac_srcdir=.
2097 ac_top_srcdir=$ac_top_builddir_sub
2098 ac_abs_top_srcdir=$ac_pwd ;;
2099 [\\/]* | ?:[\\/]* ) # Absolute name.
2100 ac_srcdir=$srcdir$ac_dir_suffix;
2101 ac_top_srcdir=$srcdir
2102 ac_abs_top_srcdir=$srcdir ;;
2103 *) # Relative name.
2104 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2105 ac_top_srcdir=$ac_top_build_prefix$srcdir
2106 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2107esac
2108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2109
2110 cd "$ac_dir" || { ac_status=$?; continue; }
2111 # Check for guested configure.
2112 if test -f "$ac_srcdir/configure.gnu"; then
2113 echo &&
2114 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2115 elif test -f "$ac_srcdir/configure"; then
2116 echo &&
2117 $SHELL "$ac_srcdir/configure" --help=recursive
2118 else
2119 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2120 fi || ac_status=$?
2121 cd "$ac_pwd" || { ac_status=$?; break; }
2122 done
2123fi
2124
2125test -n "$ac_init_help" && exit $ac_status
2126if $ac_init_version; then
2127 cat <<\_ACEOF
2128curl configure -
2129generated by GNU Autoconf 2.69
2130
2131Copyright (C) 2012 Free Software Foundation, Inc.
2132This configure script is free software; the Free Software Foundation
2133gives unlimited permission to copy, distribute and modify it.
2134
2135Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2136This configure script may be copied, distributed and modified under the
2137terms of the curl license; see COPYING for more details
2138_ACEOF
2139 exit
2140fi
2141
2142## ------------------------ ##
2143## Autoconf initialization. ##
2144## ------------------------ ##
2145
2146# ac_fn_c_try_compile LINENO
2147# --------------------------
2148# Try to compile conftest.$ac_ext, and return whether this succeeded.
2149ac_fn_c_try_compile ()
2150{
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 rm -f conftest.$ac_objext
2153 if { { ac_try="$ac_compile"
2154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
2158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159$as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_compile") 2>conftest.err
2161 ac_status=$?
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2166 fi
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } && {
2169 test -z "$ac_c_werror_flag" ||
2170 test ! -s conftest.err
2171 } && test -s conftest.$ac_objext; then :
2172 ac_retval=0
2173else
2174 $as_echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_retval=1
2178fi
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2181
2182} # ac_fn_c_try_compile
2183
2184# ac_fn_c_try_cpp LINENO
2185# ----------------------
2186# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187ac_fn_c_try_cpp ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2191case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2203 fi
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 }; then :
2209 ac_retval=0
2210else
2211 $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 ac_retval=1
2215fi
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_try_cpp
2220
Alex Deymo486467e2017-12-19 19:04:07 +01002221# ac_fn_c_try_link LINENO
2222# -----------------------
2223# Try to link conftest.$ac_ext, and return whether this succeeded.
2224ac_fn_c_try_link ()
2225{
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext conftest$ac_exeext
2228 if { { ac_try="$ac_link"
2229case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest$ac_exeext && {
2247 test "$cross_compiling" = yes ||
2248 test -x conftest$ac_exeext
2249 }; then :
2250 ac_retval=0
2251else
2252 $as_echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=1
2256fi
2257 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259 # interfere with the next link command; also delete a directory that is
2260 # left behind by Apple's compiler. We do this before executing the actions.
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2264
2265} # ac_fn_c_try_link
2266
Elliott Hughes82be86d2017-09-20 17:00:17 -07002267# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2268# -------------------------------------------------------
2269# Tests whether HEADER exists and can be compiled using the include files in
2270# INCLUDES, setting the cache variable VAR accordingly.
2271ac_fn_c_check_header_compile ()
2272{
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275$as_echo_n "checking for $2... " >&6; }
2276if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$4
2282#include <$2>
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285 eval "$3=yes"
2286else
2287 eval "$3=no"
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290fi
2291eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296} # ac_fn_c_check_header_compile
2297
2298# ac_fn_c_try_run LINENO
2299# ----------------------
2300# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2301# that executables *can* be run.
2302ac_fn_c_try_run ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if { { ac_try="$ac_link"
2306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
2310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311$as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_link") 2>&5
2313 ac_status=$?
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2316 { { case "(($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_try") 2>&5
2323 ac_status=$?
2324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325 test $ac_status = 0; }; }; then :
2326 ac_retval=0
2327else
2328 $as_echo "$as_me: program exited with status $ac_status" >&5
2329 $as_echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 ac_retval=$ac_status
2333fi
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status $ac_retval
2337
2338} # ac_fn_c_try_run
2339
Alex Deymo486467e2017-12-19 19:04:07 +01002340# ac_fn_c_check_func LINENO FUNC VAR
2341# ----------------------------------
2342# Tests whether FUNC exists, setting the cache variable VAR accordingly
2343ac_fn_c_check_func ()
2344{
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347$as_echo_n "checking for $2... " >&6; }
2348if eval \${$3+:} false; then :
2349 $as_echo_n "(cached) " >&6
2350else
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h. */
2353
2354#define $2 innocuous_$2
2355#ifdef __STDC__
2356# include <limits.h>
2357#else
2358# include <assert.h>
2359#endif
2360#undef $2
2361#ifdef __cplusplus
2362extern "C"
2363#endif
2364char $2 ();
2365#if defined __stub_$2 || defined __stub___$2
2366choke me
2367#endif
2368
2369int main (void)
2370{
2371return $2 ();
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_link "$LINENO"; then :
2377 eval "$3=yes"
2378else
2379 eval "$3=no"
2380fi
2381rm -f core conftest.err conftest.$ac_objext \
2382 conftest$ac_exeext conftest.$ac_ext
2383fi
2384eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386$as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2388
2389} # ac_fn_c_check_func
2390
2391# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2392# -------------------------------------------------------
2393# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2394# the include files in INCLUDES and setting the cache variable VAR
2395# accordingly.
2396ac_fn_c_check_header_mongrel ()
2397{
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 if eval \${$3+:} false; then :
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401$as_echo_n "checking for $2... " >&6; }
2402if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404fi
2405eval ac_res=\$$3
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408else
2409 # Is the header compilable?
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2411$as_echo_n "checking $2 usability... " >&6; }
2412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414$4
2415#include <$2>
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_header_compiler=yes
2419else
2420 ac_header_compiler=no
2421fi
2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2424$as_echo "$ac_header_compiler" >&6; }
2425
2426# Is the header present?
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2428$as_echo_n "checking $2 presence... " >&6; }
2429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h. */
2431#include <$2>
2432_ACEOF
2433if ac_fn_c_try_cpp "$LINENO"; then :
2434 ac_header_preproc=yes
2435else
2436 ac_header_preproc=no
2437fi
2438rm -f conftest.err conftest.i conftest.$ac_ext
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2440$as_echo "$ac_header_preproc" >&6; }
2441
2442# So? What about this header?
2443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2444 yes:no: )
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2446$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2448$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2449 ;;
2450 no:yes:* )
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2452$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2454$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2456$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2458$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461( $as_echo "## ----------------------------------------------------------------------- ##
2462## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2463## ----------------------------------------------------------------------- ##"
2464 ) | sed "s/^/$as_me: WARNING: /" >&2
2465 ;;
2466esac
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468$as_echo_n "checking for $2... " >&6; }
2469if eval \${$3+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471else
2472 eval "$3=\$ac_header_compiler"
2473fi
2474eval ac_res=\$$3
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476$as_echo "$ac_res" >&6; }
2477fi
2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479
2480} # ac_fn_c_check_header_mongrel
2481
Elliott Hughes82be86d2017-09-20 17:00:17 -07002482# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2483# -------------------------------------------
2484# Tests whether TYPE exists after having included INCLUDES, setting cache
2485# variable VAR accordingly.
2486ac_fn_c_check_type ()
2487{
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2490$as_echo_n "checking for $2... " >&6; }
2491if eval \${$3+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493else
2494 eval "$3=no"
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h. */
2497$4
2498int main (void)
2499{
2500if (sizeof ($2))
2501 return 0;
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506if ac_fn_c_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int main (void)
2511{
2512if (sizeof (($2)))
2513 return 0;
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518if ac_fn_c_try_compile "$LINENO"; then :
2519
2520else
2521 eval "$3=yes"
2522fi
2523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524fi
2525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526fi
2527eval ac_res=\$$3
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529$as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531
2532} # ac_fn_c_check_type
2533
Elliott Hughes72d948d2018-08-03 14:37:21 -07002534# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2535# ---------------------------------------------
2536# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2537# accordingly.
2538ac_fn_c_check_decl ()
2539{
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 as_decl_name=`echo $2|sed 's/ *(.*//'`
2542 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2544$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2545if eval \${$3+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547else
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549/* end confdefs.h. */
2550$4
2551int main (void)
2552{
2553#ifndef $as_decl_name
2554#ifdef __cplusplus
2555 (void) $as_decl_use;
2556#else
2557 (void) $as_decl_name;
2558#endif
2559#endif
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565if ac_fn_c_try_compile "$LINENO"; then :
2566 eval "$3=yes"
2567else
2568 eval "$3=no"
2569fi
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571fi
2572eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574$as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576
2577} # ac_fn_c_check_decl
2578
Elliott Hughes82be86d2017-09-20 17:00:17 -07002579# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2580# ----------------------------------------------------
2581# Tries to find if the field MEMBER exists in type AGGR, after including
2582# INCLUDES, setting cache variable VAR accordingly.
2583ac_fn_c_check_member ()
2584{
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2587$as_echo_n "checking for $2.$3... " >&6; }
2588if eval \${$4+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592/* end confdefs.h. */
2593$5
2594int main (void)
2595{
2596static $2 ac_aggr;
2597if (ac_aggr.$3)
2598return 0;
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$4=yes"
2605else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */
2608$5
2609int main (void)
2610{
2611static $2 ac_aggr;
2612if (sizeof ac_aggr.$3)
2613return 0;
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618if ac_fn_c_try_compile "$LINENO"; then :
2619 eval "$4=yes"
2620else
2621 eval "$4=no"
2622fi
2623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624fi
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626fi
2627eval ac_res=\$$4
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629$as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631
2632} # ac_fn_c_check_member
2633cat >config.log <<_ACEOF
2634This file contains any messages produced by compilers while
2635running configure, to aid debugging if configure makes a mistake.
2636
2637It was created by curl $as_me -, which was
2638generated by GNU Autoconf 2.69. Invocation command line was
2639
2640 $ $0 $@
2641
2642_ACEOF
2643exec 5>>config.log
2644{
2645cat <<_ASUNAME
2646## --------- ##
2647## Platform. ##
2648## --------- ##
2649
2650hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2651uname -m = `(uname -m) 2>/dev/null || echo unknown`
2652uname -r = `(uname -r) 2>/dev/null || echo unknown`
2653uname -s = `(uname -s) 2>/dev/null || echo unknown`
2654uname -v = `(uname -v) 2>/dev/null || echo unknown`
2655
2656/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2657/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2658
2659/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2660/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2661/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2662/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2663/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2664/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2665/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2666
2667_ASUNAME
2668
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 $as_echo "PATH: $as_dir"
2675 done
2676IFS=$as_save_IFS
2677
2678} >&5
2679
2680cat >&5 <<_ACEOF
2681
2682
2683## ----------- ##
2684## Core tests. ##
2685## ----------- ##
2686
2687_ACEOF
2688
2689
2690# Keep a trace of the command line.
2691# Strip out --no-create and --no-recursion so they do not pile up.
2692# Strip out --silent because we don't want to record it for future runs.
2693# Also quote any args containing shell meta-characters.
2694# Make two passes to allow for proper duplicate-argument suppression.
2695ac_configure_args=
2696ac_configure_args0=
2697ac_configure_args1=
2698ac_must_keep_next=false
2699for ac_pass in 1 2
2700do
2701 for ac_arg
2702 do
2703 case $ac_arg in
2704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2706 | -silent | --silent | --silen | --sile | --sil)
2707 continue ;;
2708 *\'*)
2709 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2710 esac
2711 case $ac_pass in
2712 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2713 2)
2714 as_fn_append ac_configure_args1 " '$ac_arg'"
2715 if test $ac_must_keep_next = true; then
2716 ac_must_keep_next=false # Got value, back to normal.
2717 else
2718 case $ac_arg in
2719 *=* | --config-cache | -C | -disable-* | --disable-* \
2720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2722 | -with-* | --with-* | -without-* | --without-* | --x)
2723 case "$ac_configure_args0 " in
2724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2725 esac
2726 ;;
2727 -* ) ac_must_keep_next=true ;;
2728 esac
2729 fi
2730 as_fn_append ac_configure_args " '$ac_arg'"
2731 ;;
2732 esac
2733 done
2734done
2735{ ac_configure_args0=; unset ac_configure_args0;}
2736{ ac_configure_args1=; unset ac_configure_args1;}
2737
2738# When interrupted or exit'd, cleanup temporary files, and complete
2739# config.log. We remove comments because anyway the quotes in there
2740# would cause problems or look ugly.
2741# WARNING: Use '\'' to represent an apostrophe within the trap.
2742# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2743trap 'exit_status=$?
2744 # Save into config.log some information that might help in debugging.
2745 {
2746 echo
2747
2748 $as_echo "## ---------------- ##
2749## Cache variables. ##
2750## ---------------- ##"
2751 echo
2752 # The following way of writing the cache mishandles newlines in values,
2753(
2754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2755 eval ac_val=\$$ac_var
2756 case $ac_val in #(
2757 *${as_nl}*)
2758 case $ac_var in #(
2759 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2760$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 esac
2762 case $ac_var in #(
2763 _ | IFS | as_nl) ;; #(
2764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2765 *) { eval $ac_var=; unset $ac_var;} ;;
2766 esac ;;
2767 esac
2768 done
2769 (set) 2>&1 |
2770 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2771 *${as_nl}ac_space=\ *)
2772 sed -n \
2773 "s/'\''/'\''\\\\'\'''\''/g;
2774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 ;; #(
2776 *)
2777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2778 ;;
2779 esac |
2780 sort
2781)
2782 echo
2783
2784 $as_echo "## ----------------- ##
2785## Output variables. ##
2786## ----------------- ##"
2787 echo
2788 for ac_var in $ac_subst_vars
2789 do
2790 eval ac_val=\$$ac_var
2791 case $ac_val in
2792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2793 esac
2794 $as_echo "$ac_var='\''$ac_val'\''"
2795 done | sort
2796 echo
2797
2798 if test -n "$ac_subst_files"; then
2799 $as_echo "## ------------------- ##
2800## File substitutions. ##
2801## ------------------- ##"
2802 echo
2803 for ac_var in $ac_subst_files
2804 do
2805 eval ac_val=\$$ac_var
2806 case $ac_val in
2807 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 esac
2809 $as_echo "$ac_var='\''$ac_val'\''"
2810 done | sort
2811 echo
2812 fi
2813
2814 if test -s confdefs.h; then
2815 $as_echo "## ----------- ##
2816## confdefs.h. ##
2817## ----------- ##"
2818 echo
2819 cat confdefs.h
2820 echo
2821 fi
2822 test "$ac_signal" != 0 &&
2823 $as_echo "$as_me: caught signal $ac_signal"
2824 $as_echo "$as_me: exit $exit_status"
2825 } >&5
2826 rm -f core *.core core.conftest.* &&
2827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 exit $exit_status
2829' 0
2830for ac_signal in 1 2 13 15; do
2831 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2832done
2833ac_signal=0
2834
2835# confdefs.h avoids OS command line length limits that DEFS can exceed.
2836rm -f -r conftest* confdefs.h
2837
2838$as_echo "/* confdefs.h */" > confdefs.h
2839
2840# Predefined preprocessor variables.
2841
2842cat >>confdefs.h <<_ACEOF
2843#define PACKAGE_NAME "$PACKAGE_NAME"
2844_ACEOF
2845
2846cat >>confdefs.h <<_ACEOF
2847#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2848_ACEOF
2849
2850cat >>confdefs.h <<_ACEOF
2851#define PACKAGE_VERSION "$PACKAGE_VERSION"
2852_ACEOF
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE_STRING "$PACKAGE_STRING"
2856_ACEOF
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2860_ACEOF
2861
2862cat >>confdefs.h <<_ACEOF
2863#define PACKAGE_URL "$PACKAGE_URL"
2864_ACEOF
2865
2866
2867# Let the site file select an alternate cache file if it wants to.
2868# Prefer an explicitly selected file to automatically selected ones.
2869ac_site_file1=NONE
2870ac_site_file2=NONE
2871if test -n "$CONFIG_SITE"; then
2872 # We do not want a PATH search for config.site.
2873 case $CONFIG_SITE in #((
2874 -*) ac_site_file1=./$CONFIG_SITE;;
2875 */*) ac_site_file1=$CONFIG_SITE;;
2876 *) ac_site_file1=./$CONFIG_SITE;;
2877 esac
2878elif test "x$prefix" != xNONE; then
2879 ac_site_file1=$prefix/share/config.site
2880 ac_site_file2=$prefix/etc/config.site
2881else
2882 ac_site_file1=$ac_default_prefix/share/config.site
2883 ac_site_file2=$ac_default_prefix/etc/config.site
2884fi
2885for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2886do
2887 test "x$ac_site_file" = xNONE && continue
2888 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2890$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2891 sed 's/^/| /' "$ac_site_file" >&5
2892 . "$ac_site_file" \
2893 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895as_fn_error $? "failed to load site script $ac_site_file
2896See \`config.log' for more details" "$LINENO" 5; }
2897 fi
2898done
2899
2900if test -r "$cache_file"; then
2901 # Some versions of bash will fail to source /dev/null (special files
2902 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2903 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2905$as_echo "$as_me: loading cache $cache_file" >&6;}
2906 case $cache_file in
2907 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2908 *) . "./$cache_file";;
2909 esac
2910 fi
2911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2913$as_echo "$as_me: creating cache $cache_file" >&6;}
2914 >$cache_file
2915fi
2916
2917# Check that the precious variables saved in the cache have kept the same
2918# value.
2919ac_cache_corrupted=false
2920for ac_var in $ac_precious_vars; do
2921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2922 eval ac_new_set=\$ac_env_${ac_var}_set
2923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2924 eval ac_new_val=\$ac_env_${ac_var}_value
2925 case $ac_old_set,$ac_new_set in
2926 set,)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2928$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2930 ,set)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2932$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2934 ,);;
2935 *)
2936 if test "x$ac_old_val" != "x$ac_new_val"; then
2937 # differences in whitespace do not lead to failure.
2938 ac_old_val_w=`echo x $ac_old_val`
2939 ac_new_val_w=`echo x $ac_new_val`
2940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2942$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2943 ac_cache_corrupted=:
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2946$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2947 eval $ac_var=\$ac_old_val
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2950$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2952$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2953 fi;;
2954 esac
2955 # Pass precious variables to config.status.
2956 if test "$ac_new_set" = set; then
2957 case $ac_new_val in
2958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2959 *) ac_arg=$ac_var=$ac_new_val ;;
2960 esac
2961 case " $ac_configure_args " in
2962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2963 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2964 esac
2965 fi
2966done
2967if $ac_cache_corrupted; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2971$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2972 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2973fi
2974## -------------------- ##
2975## Main body of script. ##
2976## -------------------- ##
2977
2978ac_ext=c
2979ac_cpp='$CPP $CPPFLAGS'
2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984
2985
2986
2987
2988
2989
2990# using curl-override.m4
2991
2992
2993
2994
2995
2996ac_config_headers="$ac_config_headers lib/curl_config.h"
2997
2998
2999
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3001$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3002 # Check whether --enable-maintainer-mode was given.
3003if test "${enable_maintainer_mode+set}" = set; then :
3004 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3005else
3006 USE_MAINTAINER_MODE=no
3007fi
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3010$as_echo "$USE_MAINTAINER_MODE" >&6; }
3011 if test $USE_MAINTAINER_MODE = yes; then
3012 MAINTAINER_MODE_TRUE=
3013 MAINTAINER_MODE_FALSE='#'
3014else
3015 MAINTAINER_MODE_TRUE='#'
3016 MAINTAINER_MODE_FALSE=
3017fi
3018
3019 MAINT=$MAINTAINER_MODE_TRUE
3020
3021
3022# Check whether --enable-silent-rules was given.
3023if test "${enable_silent_rules+set}" = set; then :
3024 enableval=$enable_silent_rules;
3025fi
3026
3027case $enable_silent_rules in # (((
3028 yes) AM_DEFAULT_VERBOSITY=0;;
3029 no) AM_DEFAULT_VERBOSITY=1;;
3030 *) AM_DEFAULT_VERBOSITY=0;;
3031esac
3032am_make=${MAKE-make}
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3034$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3035if ${am_cv_make_support_nested_variables+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037else
3038 if $as_echo 'TRUE=$(BAR$(V))
3039BAR0=false
3040BAR1=true
3041V=1
3042am__doit:
3043 @$(TRUE)
3044.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3045 am_cv_make_support_nested_variables=yes
3046else
3047 am_cv_make_support_nested_variables=no
3048fi
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3051$as_echo "$am_cv_make_support_nested_variables" >&6; }
3052if test $am_cv_make_support_nested_variables = yes; then
3053 AM_V='$(V)'
3054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3055else
3056 AM_V=$AM_DEFAULT_VERBOSITY
3057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3058fi
3059AM_BACKSLASH='\'
3060
3061
3062
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3064$as_echo_n "checking whether to enable debug build options... " >&6; }
3065 OPT_DEBUG_BUILD="default"
3066 # Check whether --enable-debug was given.
3067if test "${enable_debug+set}" = set; then :
3068 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3069fi
3070
3071 case "$OPT_DEBUG_BUILD" in
3072 no)
3073 want_debug="no"
3074 ;;
3075 default)
3076 want_debug="no"
3077 ;;
3078 *)
3079 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003080
3081$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3082
Elliott Hughes82be86d2017-09-20 17:00:17 -07003083 ;;
3084 esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3086$as_echo "$want_debug" >&6; }
3087
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3090$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3091 OPT_COMPILER_OPTIMIZE="default"
3092 # Check whether --enable-optimize was given.
3093if test "${enable_optimize+set}" = set; then :
3094 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3095fi
3096
3097 case "$OPT_COMPILER_OPTIMIZE" in
3098 no)
3099 want_optimize="no"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102 ;;
3103 default)
3104 if test "$want_debug" = "yes"; then
3105 want_optimize="assume_no"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3107$as_echo "(assumed) no" >&6; }
3108 else
3109 want_optimize="assume_yes"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3111$as_echo "(assumed) yes" >&6; }
3112 fi
3113 ;;
3114 *)
3115 want_optimize="yes"
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117$as_echo "yes" >&6; }
3118 ;;
3119 esac
3120
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3123$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3124 OPT_COMPILER_WARNINGS="default"
3125 # Check whether --enable-warnings was given.
3126if test "${enable_warnings+set}" = set; then :
3127 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3128fi
3129
3130 case "$OPT_COMPILER_WARNINGS" in
3131 no)
3132 want_warnings="no"
3133 ;;
3134 default)
3135 want_warnings="$want_debug"
3136 ;;
3137 *)
3138 want_warnings="yes"
3139 ;;
3140 esac
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3142$as_echo "$want_warnings" >&6; }
3143
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3146$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3147 OPT_COMPILER_WERROR="default"
3148 # Check whether --enable-werror was given.
3149if test "${enable_werror+set}" = set; then :
3150 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3151fi
3152
3153 case "$OPT_COMPILER_WERROR" in
3154 no)
3155 want_werror="no"
3156 ;;
3157 default)
3158 want_werror="no"
3159 ;;
3160 *)
3161 want_werror="yes"
3162 ;;
3163 esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3165$as_echo "$want_werror" >&6; }
3166
3167
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3169$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3170 OPT_CURLDEBUG_BUILD="default"
3171 # Check whether --enable-curldebug was given.
3172if test "${enable_curldebug+set}" = set; then :
3173 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3174fi
3175
3176 case "$OPT_CURLDEBUG_BUILD" in
3177 no)
3178 want_curldebug="no"
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181 ;;
3182 default)
3183 if test "$want_debug" = "yes"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3185$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003186
3187$as_echo "#define CURLDEBUG 1" >>confdefs.h
3188
Elliott Hughes82be86d2017-09-20 17:00:17 -07003189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192 fi
3193 want_curldebug_assumed="yes"
3194 want_curldebug="$want_debug"
3195 ;;
3196 *)
3197 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003198
3199$as_echo "#define CURLDEBUG 1" >>confdefs.h
3200
Elliott Hughes82be86d2017-09-20 17:00:17 -07003201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202$as_echo "yes" >&6; }
3203 ;;
3204 esac
3205
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3208$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3209 OPT_SYMBOL_HIDING="default"
3210 # Check whether --enable-symbol-hiding was given.
3211if test "${enable_symbol_hiding+set}" = set; then :
3212 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3213fi
3214
3215 # Check whether --enable-hidden-symbols was given.
3216if test "${enable_hidden_symbols+set}" = set; then :
3217 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3218fi
3219
3220 case "$OPT_SYMBOL_HIDING" in
3221 no)
3222 want_symbol_hiding="no"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225 ;;
3226 default)
3227 want_symbol_hiding="yes"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229$as_echo "yes" >&6; }
3230 ;;
3231 *)
3232 want_symbol_hiding="yes"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234$as_echo "yes" >&6; }
3235 ;;
3236 esac
3237
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3240$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3241 OPT_ARES="default"
3242 # Check whether --enable-ares was given.
3243if test "${enable_ares+set}" = set; then :
3244 enableval=$enable_ares; OPT_ARES=$enableval
3245fi
3246
3247 case "$OPT_ARES" in
3248 no)
3249 want_ares="no"
3250 ;;
3251 default)
3252 want_ares="no"
3253 ;;
3254 *)
3255 want_ares="yes"
3256 if test -n "$enableval" && test "$enableval" != "yes"; then
3257 want_ares_path="$enableval"
3258 fi
3259 ;;
3260 esac
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3262$as_echo "$want_ares" >&6; }
3263
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3266$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3267 OPT_RT="default"
3268 # Check whether --enable-rt was given.
3269if test "${enable_rt+set}" = set; then :
3270 enableval=$enable_rt; OPT_RT=$enableval
3271fi
3272
3273 case "$OPT_RT" in
3274 no)
3275 dontwant_rt="yes"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 ;;
3279 default)
3280 dontwant_rt="no"
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3282$as_echo "(assumed no)" >&6; }
3283 ;;
3284 *)
3285 dontwant_rt="no"
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288 ;;
3289 esac
3290
3291
3292#
3293# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3294#
3295
3296if test -z "$xc_configure_preamble_result"; then
3297 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3298fi
3299
3300#
3301# Check that 'PATH_SEPARATOR' has already been set.
3302#
3303
3304if test -z "$xc_PATH_SEPARATOR"; then
3305 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3306fi
3307if test -z "$PATH_SEPARATOR"; then
3308 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3311$as_echo_n "checking for path separator... " >&6; }
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3313$as_echo "$PATH_SEPARATOR" >&6; }
3314if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3316$as_echo_n "checking for initial path separator... " >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3318$as_echo "$xc_PATH_SEPARATOR" >&6; }
3319 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3320fi
3321
Elliott Hughes82be86d2017-09-20 17:00:17 -07003322
3323#
3324# save the configure arguments
3325#
3326CONFIGURE_OPTIONS="\"$ac_configure_args\""
3327
3328
3329CURL_CFLAG_EXTRAS=""
3330if test X"$want_werror" = Xyes; then
3331 CURL_CFLAG_EXTRAS="-Werror"
3332fi
3333
3334
3335if test -z "$SED"; then
3336 # Extract the first word of "sed", so it can be a program name with args.
3337set dummy sed; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if ${ac_cv_path_SED+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342else
3343 case $SED in
3344 [\\/]* | ?:[\\/]*)
3345 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 ;;
3347 *)
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349as_dummy="$PATH:/usr/bin:/usr/local/bin"
3350for as_dir in $as_dummy
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3365 ;;
3366esac
3367fi
3368SED=$ac_cv_path_SED
3369if test -n "$SED"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3371$as_echo "$SED" >&6; }
3372else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377
3378 if test -z "$SED" || test "$SED" = "not_found"; then
3379 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3380 fi
3381fi
3382
3383
3384if test -z "$GREP"; then
3385 # Extract the first word of "grep", so it can be a program name with args.
3386set dummy grep; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_path_GREP+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391else
3392 case $GREP in
3393 [\\/]* | ?:[\\/]*)
3394 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3395 ;;
3396 *)
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398as_dummy="$PATH:/usr/bin:/usr/local/bin"
3399for as_dir in $as_dummy
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410 done
3411IFS=$as_save_IFS
3412
3413 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3414 ;;
3415esac
3416fi
3417GREP=$ac_cv_path_GREP
3418if test -n "$GREP"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3420$as_echo "$GREP" >&6; }
3421else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427 if test -z "$GREP" || test "$GREP" = "not_found"; then
3428 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3429 fi
3430fi
3431
3432
3433if test -z "$EGREP"; then
3434 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3436$as_echo_n "checking for egrep... " >&6; }
3437 EGREP="$GREP -E"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3439$as_echo "$EGREP" >&6; }
3440 else
3441 # Extract the first word of "egrep", so it can be a program name with args.
3442set dummy egrep; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_path_EGREP+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 case $EGREP in
3449 [\\/]* | ?:[\\/]*)
3450 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3451 ;;
3452 *)
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454as_dummy="$PATH:/usr/bin:/usr/local/bin"
3455for as_dir in $as_dummy
3456do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465done
3466 done
3467IFS=$as_save_IFS
3468
3469 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3470 ;;
3471esac
3472fi
3473EGREP=$ac_cv_path_EGREP
3474if test -n "$EGREP"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3476$as_echo "$EGREP" >&6; }
3477else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480fi
3481
3482
3483 fi
3484fi
3485if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3486 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3487fi
3488
3489
3490if test -z "$AR"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3493set dummy ${ac_tool_prefix}ar; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if ${ac_cv_path_AR+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498else
3499 case $AR in
3500 [\\/]* | ?:[\\/]*)
3501 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3502 ;;
3503 *)
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505as_dummy="$PATH:/usr/bin:/usr/local/bin"
3506for as_dir in $as_dummy
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517 done
3518IFS=$as_save_IFS
3519
3520 ;;
3521esac
3522fi
3523AR=$ac_cv_path_AR
3524if test -n "$AR"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3526$as_echo "$AR" >&6; }
3527else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533fi
3534if test -z "$ac_cv_path_AR"; then
3535 ac_pt_AR=$AR
3536 # Extract the first word of "ar", so it can be a program name with args.
3537set dummy ar; ac_word=$2
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539$as_echo_n "checking for $ac_word... " >&6; }
3540if ${ac_cv_path_ac_pt_AR+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542else
3543 case $ac_pt_AR in
3544 [\\/]* | ?:[\\/]*)
3545 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3546 ;;
3547 *)
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549as_dummy="$PATH:/usr/bin:/usr/local/bin"
3550for as_dir in $as_dummy
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
3561 done
3562IFS=$as_save_IFS
3563
3564 ;;
3565esac
3566fi
3567ac_pt_AR=$ac_cv_path_ac_pt_AR
3568if test -n "$ac_pt_AR"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3570$as_echo "$ac_pt_AR" >&6; }
3571else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574fi
3575
3576 if test "x$ac_pt_AR" = x; then
3577 AR="not_found"
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580yes:)
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583ac_tool_warned=yes ;;
3584esac
3585 AR=$ac_pt_AR
3586 fi
3587else
3588 AR="$ac_cv_path_AR"
3589fi
3590
3591 if test -z "$AR" || test "$AR" = "not_found"; then
3592 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3593 fi
3594fi
3595
3596
3597
3598
3599CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3600
3601 xc_prog_cc_prev_IFS=$IFS
3602 xc_prog_cc_prev_LIBS=$LIBS
3603 xc_prog_cc_prev_CFLAGS=$CFLAGS
3604 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3605 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3606
3607
3608
3609 xc_bad_var_libs=no
3610 for xc_word in $LIBS; do
3611 case "$xc_word" in
3612 -l* | --library=*)
3613 :
3614 ;;
3615 *)
3616 xc_bad_var_libs=yes
3617 ;;
3618 esac
3619 done
3620 if test $xc_bad_var_libs = yes; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3622$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3624$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3625 fi
3626
3627
3628 xc_bad_var_ldflags=no
3629 for xc_word in $LDFLAGS; do
3630 case "$xc_word" in
3631 -D*)
3632 xc_bad_var_ldflags=yes
3633 ;;
3634 -U*)
3635 xc_bad_var_ldflags=yes
3636 ;;
3637 -I*)
3638 xc_bad_var_ldflags=yes
3639 ;;
3640 -l* | --library=*)
3641 xc_bad_var_ldflags=yes
3642 ;;
3643 esac
3644 done
3645 if test $xc_bad_var_ldflags = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3647$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3648 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3649 for xc_word in $LDFLAGS; do
3650 case "$xc_word" in
3651 -D*)
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3653$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3654 ;;
3655 -U*)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3657$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3658 ;;
3659 -I*)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3661$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3662 ;;
3663 -l* | --library=*)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3665$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3666 ;;
3667 esac
3668 done
3669 fi
3670
3671
3672 xc_bad_var_cppflags=no
3673 for xc_word in $CPPFLAGS; do
3674 case "$xc_word" in
3675 -rpath*)
3676 xc_bad_var_cppflags=yes
3677 ;;
3678 -L* | --library-path=*)
3679 xc_bad_var_cppflags=yes
3680 ;;
3681 -l* | --library=*)
3682 xc_bad_var_cppflags=yes
3683 ;;
3684 esac
3685 done
3686 if test $xc_bad_var_cppflags = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3688$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3689 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3690 for xc_word in $CPPFLAGS; do
3691 case "$xc_word" in
3692 -rpath*)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3694$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3695 ;;
3696 -L* | --library-path=*)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3698$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3699 ;;
3700 -l* | --library=*)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3702$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3703 ;;
3704 esac
3705 done
3706 fi
3707
3708
3709 xc_bad_var_cflags=no
3710 for xc_word in $CFLAGS; do
3711 case "$xc_word" in
3712 -D*)
3713 xc_bad_var_cflags=yes
3714 ;;
3715 -U*)
3716 xc_bad_var_cflags=yes
3717 ;;
3718 -I*)
3719 xc_bad_var_cflags=yes
3720 ;;
3721 -rpath*)
3722 xc_bad_var_cflags=yes
3723 ;;
3724 -L* | --library-path=*)
3725 xc_bad_var_cflags=yes
3726 ;;
3727 -l* | --library=*)
3728 xc_bad_var_cflags=yes
3729 ;;
3730 esac
3731 done
3732 if test $xc_bad_var_cflags = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3734$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3735 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3736 for xc_word in $CFLAGS; do
3737 case "$xc_word" in
3738 -D*)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3740$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3741 ;;
3742 -U*)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3744$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3745 ;;
3746 -I*)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3748$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3749 ;;
3750 -rpath*)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3752$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3753 ;;
3754 -L* | --library-path=*)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3756$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3757 ;;
3758 -l* | --library=*)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3760$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3761 ;;
3762 esac
3763 done
3764 fi
3765
3766 if test $xc_bad_var_libs = yes ||
3767 test $xc_bad_var_cflags = yes ||
3768 test $xc_bad_var_ldflags = yes ||
3769 test $xc_bad_var_cppflags = yes; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3771$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3772 fi
3773
3774ac_aux_dir=
3775for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3776 if test -f "$ac_dir/install-sh"; then
3777 ac_aux_dir=$ac_dir
3778 ac_install_sh="$ac_aux_dir/install-sh -c"
3779 break
3780 elif test -f "$ac_dir/install.sh"; then
3781 ac_aux_dir=$ac_dir
3782 ac_install_sh="$ac_aux_dir/install.sh -c"
3783 break
3784 elif test -f "$ac_dir/shtool"; then
3785 ac_aux_dir=$ac_dir
3786 ac_install_sh="$ac_aux_dir/shtool install -c"
3787 break
3788 fi
3789done
3790if test -z "$ac_aux_dir"; then
3791 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3792fi
3793
3794# These three variables are undocumented and unsupported,
3795# and are intended to be withdrawn in a future Autoconf release.
3796# They can cause serious problems if a builder's source tree is in a directory
3797# whose full name contains unusual characters.
3798ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3799ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3800ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3801
3802
3803# Find a good install program. We prefer a C program (faster),
3804# so one script is as good as another. But avoid the broken or
3805# incompatible versions:
3806# SysV /etc/install, /usr/sbin/install
3807# SunOS /usr/etc/install
3808# IRIX /sbin/install
3809# AIX /bin/install
3810# AmigaOS /C/install, which installs bootblocks on floppy discs
3811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814# OS/2's system install, which has a completely different semantic
3815# ./install, which can be erroneously created by make from ./install.sh.
3816# Reject install programs that cannot install multiple files.
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3818$as_echo_n "checking for a BSD-compatible install... " >&6; }
3819if test -z "$INSTALL"; then
3820if ${ac_cv_path_install+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 # Account for people who put trailing slashes in PATH elements.
3829case $as_dir/ in #((
3830 ./ | .// | /[cC]/* | \
3831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3833 /usr/ucb/* ) ;;
3834 *)
3835 # OSF1 and SCO ODT 3.0 have their own names for install.
3836 # Don't use installbsd from OSF since it installs stuff as root
3837 # by default.
3838 for ac_prog in ginstall scoinst install; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3841 if test $ac_prog = install &&
3842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843 # AIX install. It has an incompatible calling convention.
3844 :
3845 elif test $ac_prog = install &&
3846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3847 # program-specific install script used by HP pwplus--don't use.
3848 :
3849 else
3850 rm -rf conftest.one conftest.two conftest.dir
3851 echo one > conftest.one
3852 echo two > conftest.two
3853 mkdir conftest.dir
3854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3855 test -s conftest.one && test -s conftest.two &&
3856 test -s conftest.dir/conftest.one &&
3857 test -s conftest.dir/conftest.two
3858 then
3859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3860 break 3
3861 fi
3862 fi
3863 fi
3864 done
3865 done
3866 ;;
3867esac
3868
3869 done
3870IFS=$as_save_IFS
3871
3872rm -rf conftest.one conftest.two conftest.dir
3873
3874fi
3875 if test "${ac_cv_path_install+set}" = set; then
3876 INSTALL=$ac_cv_path_install
3877 else
3878 # As a last resort, use the slow shell script. Don't cache a
3879 # value for INSTALL within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the value is a relative name.
3882 INSTALL=$ac_install_sh
3883 fi
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3886$as_echo "$INSTALL" >&6; }
3887
3888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3889# It thinks the first close brace ends the variable substitution.
3890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3891
3892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3893
3894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3895
3896# Expand $ac_aux_dir to an absolute path.
3897am_aux_dir=`cd "$ac_aux_dir" && pwd`
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}gcc; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
3909if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935$as_echo "$CC" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_CC"; then
3944 ac_ct_CC=$CC
3945 # Extract the first word of "gcc", so it can be a program name with args.
3946set dummy gcc; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if ${ac_cv_prog_ac_ct_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_CC="gcc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967 done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973if test -n "$ac_ct_CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975$as_echo "$ac_ct_CC" >&6; }
3976else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981 if test "x$ac_ct_CC" = x; then
3982 CC=""
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990 CC=$ac_ct_CC
3991 fi
3992else
3993 CC="$ac_cv_prog_CC"
3994fi
3995
3996if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}cc; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if ${ac_cv_prog_CC+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_CC="${ac_tool_prefix}cc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 fi
4036fi
4037if test -z "$CC"; then
4038 # Extract the first word of "cc", so it can be a program name with args.
4039set dummy cc; ac_word=$2
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if ${ac_cv_prog_CC+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048 ac_prog_rejected=no
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4057 ac_prog_rejected=yes
4058 continue
4059 fi
4060 ac_cv_prog_CC="cc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065 done
4066IFS=$as_save_IFS
4067
4068if test $ac_prog_rejected = yes; then
4069 # We found a bogon in the path, so make sure we never use it.
4070 set dummy $ac_cv_prog_CC
4071 shift
4072 if test $# != 0; then
4073 # We chose a different compiler from the bogus one.
4074 # However, it has the same basename, so the bogon will be chosen
4075 # first if we set CC to just the basename; use the full file name.
4076 shift
4077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4078 fi
4079fi
4080fi
4081fi
4082CC=$ac_cv_prog_CC
4083if test -n "$CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085$as_echo "$CC" >&6; }
4086else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091
4092fi
4093if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in cl.exe
4096 do
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118done
4119 done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
4128else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134 test -n "$CC" && break
4135 done
4136fi
4137if test -z "$CC"; then
4138 ac_ct_CC=$CC
4139 for ac_prog in cl.exe
4140do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142set dummy $ac_prog; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if ${ac_cv_prog_ac_ct_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162done
4163 done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169if test -n "$ac_ct_CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171$as_echo "$ac_ct_CC" >&6; }
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177
4178 test -n "$ac_ct_CC" && break
4179done
4180
4181 if test "x$ac_ct_CC" = x; then
4182 CC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185yes:)
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188ac_tool_warned=yes ;;
4189esac
4190 CC=$ac_ct_CC
4191 fi
4192fi
4193
4194fi
4195
4196
4197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199as_fn_error $? "no acceptable C compiler found in \$PATH
4200See \`config.log' for more details" "$LINENO" 5; }
4201
4202# Provide some information about the compiler.
4203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4204set X $ac_compile
4205ac_compiler=$2
4206for ac_option in --version -v -V -qversion; do
4207 { { ac_try="$ac_compiler $ac_option >&5"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213$as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4215 ac_status=$?
4216 if test -s conftest.err; then
4217 sed '10a\
4218... rest of stderr output deleted ...
4219 10q' conftest.err >conftest.er1
4220 cat conftest.er1 >&5
4221 fi
4222 rm -f conftest.er1 conftest.err
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }
4225done
4226
4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h. */
4229
4230int main (void)
4231{
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237ac_clean_files_save=$ac_clean_files
4238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4239# Try to create an executable without -o first, disregard a.out.
4240# It will help us diagnose broken compilers, and finding out an intuition
4241# of exeext.
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4243$as_echo_n "checking whether the C compiler works... " >&6; }
4244ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4245
4246# The possible output files:
4247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4248
4249ac_rmfiles=
4250for ac_file in $ac_files
4251do
4252 case $ac_file in
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4255 esac
4256done
4257rm -f $ac_rmfiles
4258
4259if { { ac_try="$ac_link_default"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265$as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_link_default") 2>&5
4267 ac_status=$?
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; }; then :
4270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4272# in a Makefile. We should not override ac_cv_exeext if it was cached,
4273# so that the user can short-circuit this test for compilers unknown to
4274# Autoconf.
4275for ac_file in $ac_files ''
4276do
4277 test -f "$ac_file" || continue
4278 case $ac_file in
4279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4280 ;;
4281 [ab].out )
4282 # We found the default executable, but exeext='' is most
4283 # certainly right.
4284 break;;
4285 *.* )
4286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4287 then :; else
4288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4289 fi
4290 # We set ac_cv_exeext here because the later test for it is not
4291 # safe: cross compilers may not add the suffix if given an `-o'
4292 # argument, so we may need to know it at that point already.
4293 # Even if this section looks crufty: it has the advantage of
4294 # actually working.
4295 break;;
4296 * )
4297 break;;
4298 esac
4299done
4300test "$ac_cv_exeext" = no && ac_cv_exeext=
4301
4302else
4303 ac_file=''
4304fi
4305if test -z "$ac_file"; then :
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
4308$as_echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313as_fn_error 77 "C compiler cannot create executables
4314See \`config.log' for more details" "$LINENO" 5; }
4315else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317$as_echo "yes" >&6; }
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4320$as_echo_n "checking for C compiler default output file name... " >&6; }
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4322$as_echo "$ac_file" >&6; }
4323ac_exeext=$ac_cv_exeext
4324
4325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4326ac_clean_files=$ac_clean_files_save
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4328$as_echo_n "checking for suffix of executables... " >&6; }
4329if { { ac_try="$ac_link"
4330case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335$as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_link") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; then :
4340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4342# work properly (i.e., refer to `conftest.exe'), while it won't with
4343# `rm'.
4344for ac_file in conftest.exe conftest conftest.*; do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 break;;
4350 * ) break;;
4351 esac
4352done
4353else
4354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4357See \`config.log' for more details" "$LINENO" 5; }
4358fi
4359rm -f conftest conftest$ac_cv_exeext
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4361$as_echo "$ac_cv_exeext" >&6; }
4362
4363rm -f conftest.$ac_ext
4364EXEEXT=$ac_cv_exeext
4365ac_exeext=$EXEEXT
4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h. */
4368#include <stdio.h>
4369int main (void)
4370{
4371FILE *f = fopen ("conftest.out", "w");
4372 return ferror (f) || fclose (f) != 0;
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378ac_clean_files="$ac_clean_files conftest.out"
4379# Check that the compiler produces executables we can run. If not, either
4380# the compiler is broken, or we cross compile.
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4382$as_echo_n "checking whether we are cross compiling... " >&6; }
4383if test "$cross_compiling" != yes; then
4384 { { ac_try="$ac_link"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390$as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_link") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }
4395 if { ac_try='./conftest$ac_cv_exeext'
4396 { { case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_try") 2>&5
4403 ac_status=$?
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; }; }; then
4406 cross_compiling=no
4407 else
4408 if test "$cross_compiling" = maybe; then
4409 cross_compiling=yes
4410 else
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413as_fn_error $? "cannot run C compiled programs.
4414If you meant to cross compile, use \`--host'.
4415See \`config.log' for more details" "$LINENO" 5; }
4416 fi
4417 fi
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420$as_echo "$cross_compiling" >&6; }
4421
4422rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4423ac_clean_files=$ac_clean_files_save
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4425$as_echo_n "checking for suffix of object files... " >&6; }
4426if ${ac_cv_objext+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h. */
4431
4432int main (void)
4433{
4434
4435 ;
4436 return 0;
4437}
4438_ACEOF
4439rm -f conftest.o conftest.obj
4440if { { ac_try="$ac_compile"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446$as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compile") 2>&5
4448 ac_status=$?
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then :
4451 for ac_file in conftest.o conftest.obj conftest.*; do
4452 test -f "$ac_file" || continue;
4453 case $ac_file in
4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4456 break;;
4457 esac
4458done
4459else
4460 $as_echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "cannot compute suffix of object files: cannot compile
4466See \`config.log' for more details" "$LINENO" 5; }
4467fi
4468rm -f conftest.$ac_cv_objext conftest.$ac_ext
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4471$as_echo "$ac_cv_objext" >&6; }
4472OBJEXT=$ac_cv_objext
4473ac_objext=$OBJEXT
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4475$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4476if ${ac_cv_c_compiler_gnu+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481
4482int main (void)
4483{
4484#ifndef __GNUC__
4485 choke me
4486#endif
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_compiler_gnu=yes
4494else
4495 ac_compiler_gnu=no
4496fi
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503if test $ac_compiler_gnu = yes; then
4504 GCC=yes
4505else
4506 GCC=
4507fi
4508ac_test_CFLAGS=${CFLAGS+set}
4509ac_save_CFLAGS=$CFLAGS
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4511$as_echo_n "checking whether $CC accepts -g... " >&6; }
4512if ${ac_cv_prog_cc_g+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514else
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 ac_cv_prog_cc_g=no
4518 CFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h. */
4521
4522int main (void)
4523{
4524
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_prog_cc_g=yes
4531else
4532 CFLAGS=""
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535
4536int main (void)
4537{
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543if ac_fn_c_try_compile "$LINENO"; then :
4544
4545else
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="-g"
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h. */
4550
4551int main (void)
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_prog_cc_g=yes
4560fi
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562fi
4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_c_werror_flag=$ac_save_c_werror_flag
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4569$as_echo "$ac_cv_prog_cc_g" >&6; }
4570if test "$ac_test_CFLAGS" = set; then
4571 CFLAGS=$ac_save_CFLAGS
4572elif test $ac_cv_prog_cc_g = yes; then
4573 if test "$GCC" = yes; then
4574 CFLAGS="-g -O2"
4575 else
4576 CFLAGS="-g"
4577 fi
4578else
4579 if test "$GCC" = yes; then
4580 CFLAGS="-O2"
4581 else
4582 CFLAGS=
4583 fi
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4587if ${ac_cv_prog_cc_c89+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589else
4590 ac_cv_prog_cc_c89=no
4591ac_save_CC=$CC
4592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594#include <stdarg.h>
4595#include <stdio.h>
4596struct stat;
4597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4598struct buf { int x; };
4599FILE * (*rcsopen) (struct buf *, struct stat *, int);
4600static char *e (p, i)
4601 char **p;
4602 int i;
4603{
4604 return p[i];
4605}
4606static char *f (char * (*g) (char **, int), char **p, ...)
4607{
4608 char *s;
4609 va_list v;
4610 va_start (v,p);
4611 s = g (p, va_arg (v,int));
4612 va_end (v);
4613 return s;
4614}
4615
4616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4617 function prototypes and stuff, but not '\xHH' hex character constants.
4618 These don't provoke an error unfortunately, instead are silently treated
4619 as 'x'. The following induces an error, until -std is added to get
4620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4621 array size at least. It's necessary to write '\x00'==0 to get something
4622 that's true only with -std. */
4623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4624
4625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4626 inside strings and character constants. */
4627#define FOO(x) 'x'
4628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4629
4630int test (int i, double x);
4631struct s1 {int (*f) (int a);};
4632struct s2 {int (*f) (double a);};
4633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4634int argc;
4635char **argv;
4636int main (void)
4637{
4638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4645do
4646 CC="$ac_save_CC $ac_arg"
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_c89=$ac_arg
4649fi
4650rm -f core conftest.err conftest.$ac_objext
4651 test "x$ac_cv_prog_cc_c89" != "xno" && break
4652done
4653rm -f conftest.$ac_ext
4654CC=$ac_save_CC
4655
4656fi
4657# AC_CACHE_VAL
4658case "x$ac_cv_prog_cc_c89" in
4659 x)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4661$as_echo "none needed" >&6; } ;;
4662 xno)
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4664$as_echo "unsupported" >&6; } ;;
4665 *)
4666 CC="$CC $ac_cv_prog_cc_c89"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4669esac
4670if test "x$ac_cv_prog_cc_c89" != xno; then :
4671
4672fi
4673
4674ac_ext=c
4675ac_cpp='$CPP $CPPFLAGS'
4676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679
4680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4686$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4687if ${am_cv_prog_cc_c_o+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
4692
4693int main (void)
4694{
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700 # Make sure it works both with $CC and with simple cc.
4701 # Following AC_PROG_CC_C_O, we do the test twice because some
4702 # compilers refuse to overwrite an existing .o file with -o,
4703 # though they will create one.
4704 am_cv_prog_cc_c_o=yes
4705 for am_i in 1 2; do
4706 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4707 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } \
4711 && test -f conftest2.$ac_objext; then
4712 : OK
4713 else
4714 am_cv_prog_cc_c_o=no
4715 break
4716 fi
4717 done
4718 rm -f core conftest*
4719 unset am_i
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4722$as_echo "$am_cv_prog_cc_c_o" >&6; }
4723if test "$am_cv_prog_cc_c_o" != yes; then
4724 # Losing compiler, so override with the script.
4725 # FIXME: It is wrong to rewrite CC.
4726 # But if we don't then we get into trouble of one sort or another.
4727 # A longer-term fix would be to have automake use am__CC in this case,
4728 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4729 CC="$am_aux_dir/compile $CC"
4730fi
4731ac_ext=c
4732ac_cpp='$CPP $CPPFLAGS'
4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738
4739ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4745$as_echo_n "checking how to run the C preprocessor... " >&6; }
4746# On Suns, sometimes $CPP names a directory.
4747if test -n "$CPP" && test -d "$CPP"; then
4748 CPP=
4749fi
4750if test -z "$CPP"; then
4751 if ${ac_cv_prog_CPP+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 # Double quotes because CPP needs to be expanded
4755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756 do
4757 ac_preproc_ok=false
4758for ac_c_preproc_warn_flag in '' yes
4759do
4760 # Use a header file that comes with gcc, so configuring glibc
4761 # with a fresh cross-compiler works.
4762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763 # <limits.h> exists even on freestanding compilers.
4764 # On the NeXT, cc -E runs the code through the compiler's parser,
4765 # not just through cpp. "Syntax error" is here to catch this case.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768#ifdef __STDC__
4769# include <limits.h>
4770#else
4771# include <assert.h>
4772#endif
4773 Syntax error
4774_ACEOF
4775if ac_fn_c_try_cpp "$LINENO"; then :
4776
4777else
4778 # Broken: fails on valid input.
4779continue
4780fi
4781rm -f conftest.err conftest.i conftest.$ac_ext
4782
4783 # OK, works on sane cases. Now check whether nonexistent headers
4784 # can be detected and how.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787#include <ac_nonexistent.h>
4788_ACEOF
4789if ac_fn_c_try_cpp "$LINENO"; then :
4790 # Broken: success on invalid input.
4791continue
4792else
4793 # Passes both tests.
4794ac_preproc_ok=:
4795break
4796fi
4797rm -f conftest.err conftest.i conftest.$ac_ext
4798
4799done
4800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801rm -f conftest.i conftest.err conftest.$ac_ext
4802if $ac_preproc_ok; then :
4803 break
4804fi
4805
4806 done
4807 ac_cv_prog_CPP=$CPP
4808
4809fi
4810 CPP=$ac_cv_prog_CPP
4811else
4812 ac_cv_prog_CPP=$CPP
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4815$as_echo "$CPP" >&6; }
4816ac_preproc_ok=false
4817for ac_c_preproc_warn_flag in '' yes
4818do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827#ifdef __STDC__
4828# include <limits.h>
4829#else
4830# include <assert.h>
4831#endif
4832 Syntax error
4833_ACEOF
4834if ac_fn_c_try_cpp "$LINENO"; then :
4835
4836else
4837 # Broken: fails on valid input.
4838continue
4839fi
4840rm -f conftest.err conftest.i conftest.$ac_ext
4841
4842 # OK, works on sane cases. Now check whether nonexistent headers
4843 # can be detected and how.
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h. */
4846#include <ac_nonexistent.h>
4847_ACEOF
4848if ac_fn_c_try_cpp "$LINENO"; then :
4849 # Broken: success on invalid input.
4850continue
4851else
4852 # Passes both tests.
4853ac_preproc_ok=:
4854break
4855fi
4856rm -f conftest.err conftest.i conftest.$ac_ext
4857
4858done
4859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860rm -f conftest.i conftest.err conftest.$ac_ext
4861if $ac_preproc_ok; then :
4862
4863else
4864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4867See \`config.log' for more details" "$LINENO" 5; }
4868fi
4869
4870ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877 IFS=$xc_prog_cc_prev_IFS
4878 LIBS=$xc_prog_cc_prev_LIBS
4879 CFLAGS=$xc_prog_cc_prev_CFLAGS
4880 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4881 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4882
4883
4884
4885
4886
Elliott Hughes0128fe42018-02-27 14:57:55 -08004887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4889$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4890if ${ac_cv_path_SED+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892else
4893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4894 for ac_i in 1 2 3 4 5 6 7; do
4895 ac_script="$ac_script$as_nl$ac_script"
4896 done
4897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4898 { ac_script=; unset ac_script;}
4899 if test -z "$SED"; then
4900 ac_path_SED_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_prog in sed gsed; do
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4910 as_fn_executable_p "$ac_path_SED" || continue
4911# Check for GNU ac_path_SED and select it if it is found.
4912 # Check for GNU $ac_path_SED
4913case `"$ac_path_SED" --version 2>&1` in
4914*GNU*)
4915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4916*)
4917 ac_count=0
4918 $as_echo_n 0123456789 >"conftest.in"
4919 while :
4920 do
4921 cat "conftest.in" "conftest.in" >"conftest.tmp"
4922 mv "conftest.tmp" "conftest.in"
4923 cp "conftest.in" "conftest.nl"
4924 $as_echo '' >> "conftest.nl"
4925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927 as_fn_arith $ac_count + 1 && ac_count=$as_val
4928 if test $ac_count -gt ${ac_path_SED_max-0}; then
4929 # Best one so far, save it but keep looking for a better one
4930 ac_cv_path_SED="$ac_path_SED"
4931 ac_path_SED_max=$ac_count
4932 fi
4933 # 10*(2^10) chars as input seems more than enough
4934 test $ac_count -gt 10 && break
4935 done
4936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937esac
4938
4939 $ac_path_SED_found && break 3
4940 done
4941 done
4942 done
4943IFS=$as_save_IFS
4944 if test -z "$ac_cv_path_SED"; then
4945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4946 fi
4947else
4948 ac_cv_path_SED=$SED
4949fi
4950
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4953$as_echo "$ac_cv_path_SED" >&6; }
4954 SED="$ac_cv_path_SED"
4955 rm -f conftest.sed
4956
4957if test "$GCC" = "yes" ; then :
4958
4959
4960
4961 # allow to override gcov location
4962
4963# Check whether --with-gcov was given.
4964if test "${with_gcov+set}" = set; then :
4965 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4966else
4967 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4968fi
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4972$as_echo_n "checking whether to build with code coverage support... " >&6; }
4973 # Check whether --enable-code-coverage was given.
4974if test "${enable_code_coverage+set}" = set; then :
4975 enableval=$enable_code_coverage;
4976else
4977 enable_code_coverage=no
4978fi
4979
4980
4981 if test x$enable_code_coverage = xyes; then
4982 CODE_COVERAGE_ENABLED_TRUE=
4983 CODE_COVERAGE_ENABLED_FALSE='#'
4984else
4985 CODE_COVERAGE_ENABLED_TRUE='#'
4986 CODE_COVERAGE_ENABLED_FALSE=
4987fi
4988
4989 CODE_COVERAGE_ENABLED=$enable_code_coverage
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
4992$as_echo "$enable_code_coverage" >&6; }
4993
4994 if test "$enable_code_coverage" = "yes" ; then :
4995
4996 # check for gcov
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
4999set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001$as_echo_n "checking for $ac_word... " >&6; }
5002if ${ac_cv_prog_GCOV+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004else
5005 if test -n "$GCOV"; then
5006 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5007else
5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019done
5020 done
5021IFS=$as_save_IFS
5022
5023fi
5024fi
5025GCOV=$ac_cv_prog_GCOV
5026if test -n "$GCOV"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5028$as_echo "$GCOV" >&6; }
5029else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031$as_echo "no" >&6; }
5032fi
5033
5034
5035fi
5036if test -z "$ac_cv_prog_GCOV"; then
5037 ac_ct_GCOV=$GCOV
5038 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5039set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
5042if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044else
5045 if test -n "$ac_ct_GCOV"; then
5046 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059done
5060 done
5061IFS=$as_save_IFS
5062
5063fi
5064fi
5065ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5066if test -n "$ac_ct_GCOV"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5068$as_echo "$ac_ct_GCOV" >&6; }
5069else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
5072fi
5073
5074 if test "x$ac_ct_GCOV" = x; then
5075 GCOV=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078yes:)
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5081ac_tool_warned=yes ;;
5082esac
5083 GCOV=$ac_ct_GCOV
5084 fi
5085else
5086 GCOV="$ac_cv_prog_GCOV"
5087fi
5088
5089 if test "X$GCOV" = "X:"; then :
5090 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5091fi
5092
5093
5094 if test "$GCC" = "no" ; then :
5095
5096 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5097
5098fi
5099
5100 # Extract the first word of "lcov", so it can be a program name with args.
5101set dummy lcov; ac_word=$2
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if ${ac_cv_prog_LCOV+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106else
5107 if test -n "$LCOV"; then
5108 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_LCOV="lcov"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122 done
5123IFS=$as_save_IFS
5124
5125fi
5126fi
5127LCOV=$ac_cv_prog_LCOV
5128if test -n "$LCOV"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5130$as_echo "$LCOV" >&6; }
5131else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5134fi
5135
5136
5137 # Extract the first word of "genhtml", so it can be a program name with args.
5138set dummy genhtml; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_prog_GENHTML+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143else
5144 if test -n "$GENHTML"; then
5145 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_GENHTML="genhtml"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5157 fi
5158done
5159 done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164GENHTML=$ac_cv_prog_GENHTML
5165if test -n "$GENHTML"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5167$as_echo "$GENHTML" >&6; }
5168else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173
5174
5175 if test -z "$LCOV" ; then :
5176
5177 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5178
5179fi
5180
5181 if test -z "$GENHTML" ; then :
5182
5183 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5184
5185fi
5186
5187 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5188 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5189 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5190 CODE_COVERAGE_LIBS="-lgcov"
5191 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5192
5193
5194
5195
5196
5197
5198
5199 CODE_COVERAGE_RULES_CHECK='
5200 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5201 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5202'
5203 CODE_COVERAGE_RULES_CAPTURE='
5204 $(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)
5205 $(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)
5206 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5207 $(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)
5208 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5209'
5210 CODE_COVERAGE_RULES_CLEAN='
5211clean: code-coverage-clean
5212distclean: code-coverage-clean
5213code-coverage-clean:
5214 -$(LCOV) --directory $(top_builddir) -z
5215 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5216 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5217'
5218
5219else
5220
5221 CODE_COVERAGE_RULES_CHECK='
5222 @echo "Need to reconfigure with --enable-code-coverage"
5223'
5224 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5225 CODE_COVERAGE_RULES_CLEAN=''
5226
5227fi
5228
5229CODE_COVERAGE_RULES='
5230# Code coverage
5231#
5232# Optional:
5233# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5234# Multiple directories may be specified, separated by whitespace.
5235# (Default: $(top_builddir))
5236# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5237# by lcov for code coverage. (Default:
5238# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5239# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5240# reports to be created. (Default:
5241# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5242# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5243# set to 0 to disable it and leave empty to stay with the default.
5244# (Default: empty)
5245# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5246# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5247# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5248# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5249# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5250# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5251# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5252# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5253# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5254# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5255# lcov instance. (Default: empty)
5256# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5257# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5258# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5259# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5260# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5261# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5262# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5263#
5264# The generated report will be titled using the $(PACKAGE_NAME) and
5265# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5266# use the git-version-gen script, available online.
5267
5268# Optional variables
5269CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5270CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5271CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5272CODE_COVERAGE_BRANCH_COVERAGE ?=
5273CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5274--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5275CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5276CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5277CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5278CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5279CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5280CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5281CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5282$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5283--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5284CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5285CODE_COVERAGE_IGNORE_PATTERN ?=
5286
5287GITIGNOREFILES ?=
5288GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5289
5290code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5291code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5292code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5293 $(CODE_COVERAGE_OUTPUT_FILE);
5294code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5295code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5296code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5297 $(CODE_COVERAGE_IGNORE_PATTERN);
5298code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5299code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5300code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5301code_coverage_quiet = $(code_coverage_quiet_$(V))
5302code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5303code_coverage_quiet_0 = --quiet
5304
5305# sanitizes the test-name: replaces with underscores: dashes and dots
5306code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5307
5308# Use recursive makes in order to ignore errors during check
5309check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5310
5311# Capture code coverage data
5312code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5313
5314# Hook rule executed before code-coverage-capture, overridable by the user
5315code-coverage-capture-hook:
5316
5317'"$CODE_COVERAGE_RULES_CLEAN"'
5318
5319A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5320A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5321
5322.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5323'
5324
5325
5326
5327
5328else
5329 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5330 CODE_COVERAGE_ENABLED_TRUE='#'
5331
5332fi
5333
Elliott Hughes82be86d2017-09-20 17:00:17 -07005334am__api_version='1.15'
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5337$as_echo_n "checking whether build environment is sane... " >&6; }
5338# Reject unsafe characters in $srcdir or the absolute working directory
5339# name. Accept space and tab only in the latter.
5340am_lf='
5341'
5342case `pwd` in
5343 *[\\\"\#\$\&\'\`$am_lf]*)
5344 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5345esac
5346case $srcdir in
5347 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5348 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5349esac
5350
5351# Do 'set' in a subshell so we don't clobber the current shell's
5352# arguments. Must try -L first in case configure is actually a
5353# symlink; some systems play weird games with the mod time of symlinks
5354# (eg FreeBSD returns the mod time of the symlink's containing
5355# directory).
5356if (
5357 am_has_slept=no
5358 for am_try in 1 2; do
5359 echo "timestamp, slept: $am_has_slept" > conftest.file
5360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5361 if test "$*" = "X"; then
5362 # -L didn't work.
5363 set X `ls -t "$srcdir/configure" conftest.file`
5364 fi
5365 if test "$*" != "X $srcdir/configure conftest.file" \
5366 && test "$*" != "X conftest.file $srcdir/configure"; then
5367
5368 # If neither matched, then we have a broken ls. This can happen
5369 # if, for instance, CONFIG_SHELL is bash and it inherits a
5370 # broken ls alias from the environment. This has actually
5371 # happened. Such a system could not be considered "sane".
5372 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5373 alias in your environment" "$LINENO" 5
5374 fi
5375 if test "$2" = conftest.file || test $am_try -eq 2; then
5376 break
5377 fi
5378 # Just in case.
5379 sleep 1
5380 am_has_slept=yes
5381 done
5382 test "$2" = conftest.file
5383 )
5384then
5385 # Ok.
5386 :
5387else
5388 as_fn_error $? "newly created file is older than distributed files!
5389Check your system clock" "$LINENO" 5
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392$as_echo "yes" >&6; }
5393# If we didn't sleep, we still need to ensure time stamps of config.status and
5394# generated files are strictly newer.
5395am_sleep_pid=
5396if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5397 ( sleep 1 ) &
5398 am_sleep_pid=$!
5399fi
5400
5401rm -f conftest.file
5402
5403test "$program_prefix" != NONE &&
5404 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5405# Use a double $ so make ignores it.
5406test "$program_suffix" != NONE &&
5407 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5408# Double any \ or $.
5409# By default was `s,x,x', remove it if useless.
5410ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5411program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5412
5413if test x"${MISSING+set}" != xset; then
5414 case $am_aux_dir in
5415 *\ * | *\ *)
5416 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5417 *)
5418 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5419 esac
5420fi
5421# Use eval to expand $SHELL
5422if eval "$MISSING --is-lightweight"; then
5423 am_missing_run="$MISSING "
5424else
5425 am_missing_run=
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5427$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5428fi
5429
5430if test x"${install_sh+set}" != xset; then
5431 case $am_aux_dir in
5432 *\ * | *\ *)
5433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5434 *)
5435 install_sh="\${SHELL} $am_aux_dir/install-sh"
5436 esac
5437fi
5438
5439# Installed binaries are usually stripped using 'strip' when the user
5440# run "make install-strip". However 'strip' might not be the right
5441# tool to use in cross-compilation environments, therefore Automake
5442# will honor the 'STRIP' environment variable to overrule this program.
5443if test "$cross_compiling" != no; then
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5446set dummy ${ac_tool_prefix}strip; ac_word=$2
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448$as_echo_n "checking for $ac_word... " >&6; }
5449if ${ac_cv_prog_STRIP+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451else
5452 if test -n "$STRIP"; then
5453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466done
5467 done
5468IFS=$as_save_IFS
5469
5470fi
5471fi
5472STRIP=$ac_cv_prog_STRIP
5473if test -n "$STRIP"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5475$as_echo "$STRIP" >&6; }
5476else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482fi
5483if test -z "$ac_cv_prog_STRIP"; then
5484 ac_ct_STRIP=$STRIP
5485 # Extract the first word of "strip", so it can be a program name with args.
5486set dummy strip; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$ac_ct_STRIP"; then
5493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_ac_ct_STRIP="strip"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507 done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5513if test -n "$ac_ct_STRIP"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5515$as_echo "$ac_ct_STRIP" >&6; }
5516else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521 if test "x$ac_ct_STRIP" = x; then
5522 STRIP=":"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525yes:)
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528ac_tool_warned=yes ;;
5529esac
5530 STRIP=$ac_ct_STRIP
5531 fi
5532else
5533 STRIP="$ac_cv_prog_STRIP"
5534fi
5535
5536fi
5537INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5538
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5540$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5541if test -z "$MKDIR_P"; then
5542 if ${ac_cv_path_mkdir+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_prog in mkdir gmkdir; do
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5554 'mkdir (GNU coreutils) '* | \
5555 'mkdir (coreutils) '* | \
5556 'mkdir (fileutils) '4.1*)
5557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5558 break 3;;
5559 esac
5560 done
5561 done
5562 done
5563IFS=$as_save_IFS
5564
5565fi
5566
5567 test -d ./--version && rmdir ./--version
5568 if test "${ac_cv_path_mkdir+set}" = set; then
5569 MKDIR_P="$ac_cv_path_mkdir -p"
5570 else
5571 # As a last resort, use the slow shell script. Don't cache a
5572 # value for MKDIR_P within a source directory, because that will
5573 # break other packages using the cache if that directory is
5574 # removed, or if the value is a relative name.
5575 MKDIR_P="$ac_install_sh -d"
5576 fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5579$as_echo "$MKDIR_P" >&6; }
5580
5581for ac_prog in gawk mawk nawk awk
5582do
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584set dummy $ac_prog; ac_word=$2
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586$as_echo_n "checking for $ac_word... " >&6; }
5587if ${ac_cv_prog_AWK+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589else
5590 if test -n "$AWK"; then
5591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_AWK="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605 done
5606IFS=$as_save_IFS
5607
5608fi
5609fi
5610AWK=$ac_cv_prog_AWK
5611if test -n "$AWK"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5613$as_echo "$AWK" >&6; }
5614else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617fi
5618
5619
5620 test -n "$AWK" && break
5621done
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5624$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5625set x ${MAKE-make}
5626ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5627if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 cat >conftest.make <<\_ACEOF
5631SHELL = /bin/sh
5632all:
5633 @echo '@@@%%%=$(MAKE)=@@@%%%'
5634_ACEOF
5635# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5636case `${MAKE-make} -f conftest.make 2>/dev/null` in
5637 *@@@%%%=?*=@@@%%%*)
5638 eval ac_cv_prog_make_${ac_make}_set=yes;;
5639 *)
5640 eval ac_cv_prog_make_${ac_make}_set=no;;
5641esac
5642rm -f conftest.make
5643fi
5644if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646$as_echo "yes" >&6; }
5647 SET_MAKE=
5648else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651 SET_MAKE="MAKE=${MAKE-make}"
5652fi
5653
5654rm -rf .tst 2>/dev/null
5655mkdir .tst 2>/dev/null
5656if test -d .tst; then
5657 am__leading_dot=.
5658else
5659 am__leading_dot=_
5660fi
5661rmdir .tst 2>/dev/null
5662
5663DEPDIR="${am__leading_dot}deps"
5664
5665ac_config_commands="$ac_config_commands depfiles"
5666
5667
5668am_make=${MAKE-make}
5669cat > confinc << 'END'
5670am__doit:
5671 @echo this is the am__doit target
5672.PHONY: am__doit
5673END
5674# If we don't find an include directive, just comment out the code.
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5676$as_echo_n "checking for style of include used by $am_make... " >&6; }
5677am__include="#"
5678am__quote=
5679_am_result=none
5680# First try GNU make style include.
5681echo "include confinc" > confmf
5682# Ignore all kinds of additional output from 'make'.
5683case `$am_make -s -f confmf 2> /dev/null` in #(
5684*the\ am__doit\ target*)
5685 am__include=include
5686 am__quote=
5687 _am_result=GNU
5688 ;;
5689esac
5690# Now try BSD make style include.
5691if test "$am__include" = "#"; then
5692 echo '.include "confinc"' > confmf
5693 case `$am_make -s -f confmf 2> /dev/null` in #(
5694 *the\ am__doit\ target*)
5695 am__include=.include
5696 am__quote="\""
5697 _am_result=BSD
5698 ;;
5699 esac
5700fi
5701
5702
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5704$as_echo "$_am_result" >&6; }
5705rm -f confinc confmf
5706
5707# Check whether --enable-dependency-tracking was given.
5708if test "${enable_dependency_tracking+set}" = set; then :
5709 enableval=$enable_dependency_tracking;
5710fi
5711
5712if test "x$enable_dependency_tracking" != xno; then
5713 am_depcomp="$ac_aux_dir/depcomp"
5714 AMDEPBACKSLASH='\'
5715 am__nodep='_no'
5716fi
5717 if test "x$enable_dependency_tracking" != xno; then
5718 AMDEP_TRUE=
5719 AMDEP_FALSE='#'
5720else
5721 AMDEP_TRUE='#'
5722 AMDEP_FALSE=
5723fi
5724
5725
5726## --------------------------------------- ##
5727## Start of automake initialization code ##
5728## --------------------------------------- ##
5729
5730if test "`cd $srcdir && pwd`" != "`pwd`"; then
5731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5732 # is not polluted with repeated "-I."
5733 am__isrc=' -I$(srcdir)'
5734 # test to see if srcdir already configured
5735 if test -f $srcdir/config.status; then
5736 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5737 fi
5738fi
5739
5740# test whether we have cygpath
5741if test -z "$CYGPATH_W"; then
5742 if (cygpath --version) >/dev/null 2>/dev/null; then
5743 CYGPATH_W='cygpath -w'
5744 else
5745 CYGPATH_W=echo
5746 fi
5747fi
5748
5749
5750# Define the identity of the package.
5751 PACKAGE='curl'
5752 VERSION='-'
5753
5754
5755cat >>confdefs.h <<_ACEOF
5756#define PACKAGE "$PACKAGE"
5757_ACEOF
5758
5759
5760cat >>confdefs.h <<_ACEOF
5761#define VERSION "$VERSION"
5762_ACEOF
5763
5764# Some tools Automake needs.
5765
5766ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5767
5768
5769AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5770
5771
5772AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5773
5774
5775AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5776
5777
5778MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5779
5780# For better backward compatibility. To be removed once Automake 1.9.x
5781# dies out for good. For more background, see:
5782# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5783# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5784mkdir_p='$(MKDIR_P)'
5785
5786# We need awk for the "check" target (and possibly the TAP driver). The
5787# system "awk" is bad on some platforms.
5788# Always define AMTAR for backward compatibility. Yes, it's still used
5789# in the wild :-( We should find a proper way to deprecate it ...
5790AMTAR='$${TAR-tar}'
5791
5792
5793# We'll loop over all known methods to create a tar archive until one works.
5794_am_tools='gnutar pax cpio none'
5795
5796am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5797
5798
5799
5800
5801
5802depcc="$CC" am_compiler_list=
5803
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5805$as_echo_n "checking dependency style of $depcc... " >&6; }
5806if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5810 # We make a subdir and do the tests there. Otherwise we can end up
5811 # making bogus files that we don't know about and never remove. For
5812 # instance it was reported that on HP-UX the gcc test will end up
5813 # making a dummy file named 'D' -- because '-MD' means "put the output
5814 # in D".
5815 rm -rf conftest.dir
5816 mkdir conftest.dir
5817 # Copy depcomp to subdir because otherwise we won't find it if we're
5818 # using a relative directory.
5819 cp "$am_depcomp" conftest.dir
5820 cd conftest.dir
5821 # We will build objects and dependencies in a subdirectory because
5822 # it helps to detect inapplicable dependency modes. For instance
5823 # both Tru64's cc and ICC support -MD to output dependencies as a
5824 # side effect of compilation, but ICC will put the dependencies in
5825 # the current directory while Tru64 will put them in the object
5826 # directory.
5827 mkdir sub
5828
5829 am_cv_CC_dependencies_compiler_type=none
5830 if test "$am_compiler_list" = ""; then
5831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5832 fi
5833 am__universal=false
5834 case " $depcc " in #(
5835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5836 esac
5837
5838 for depmode in $am_compiler_list; do
5839 # Setup a source with many dependencies, because some compilers
5840 # like to wrap large dependency lists on column 80 (with \), and
5841 # we should not choose a depcomp mode which is confused by this.
5842 #
5843 # We need to recreate these files for each test, as the compiler may
5844 # overwrite some of them when testing with obscure command lines.
5845 # This happens at least with the AIX C compiler.
5846 : > sub/conftest.c
5847 for i in 1 2 3 4 5 6; do
5848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5850 # Solaris 10 /bin/sh.
5851 echo '/* dummy */' > sub/conftst$i.h
5852 done
5853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5854
5855 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5856 # mode. It turns out that the SunPro C++ compiler does not properly
5857 # handle '-M -o', and we need to detect this. Also, some Intel
5858 # versions had trouble with output in subdirs.
5859 am__obj=sub/conftest.${OBJEXT-o}
5860 am__minus_obj="-o $am__obj"
5861 case $depmode in
5862 gcc)
5863 # This depmode causes a compiler race in universal mode.
5864 test "$am__universal" = false || continue
5865 ;;
5866 nosideeffect)
5867 # After this tag, mechanisms are not by side-effect, so they'll
5868 # only be used when explicitly requested.
5869 if test "x$enable_dependency_tracking" = xyes; then
5870 continue
5871 else
5872 break
5873 fi
5874 ;;
5875 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5876 # This compiler won't grok '-c -o', but also, the minuso test has
5877 # not run yet. These depmodes are late enough in the game, and
5878 # so weak that their functioning should not be impacted.
5879 am__obj=conftest.${OBJEXT-o}
5880 am__minus_obj=
5881 ;;
5882 none) break ;;
5883 esac
5884 if depmode=$depmode \
5885 source=sub/conftest.c object=$am__obj \
5886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5888 >/dev/null 2>conftest.err &&
5889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5893 # icc doesn't choke on unknown options, it will just issue warnings
5894 # or remarks (even with -Werror). So we grep stderr for any message
5895 # that says an option was ignored or not supported.
5896 # When given -MP, icc 7.0 and 7.1 complain thusly:
5897 # icc: Command line warning: ignoring option '-M'; no argument required
5898 # The diagnosis changed in icc 8.0:
5899 # icc: Command line remark: option '-MP' not supported
5900 if (grep 'ignoring option' conftest.err ||
5901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5902 am_cv_CC_dependencies_compiler_type=$depmode
5903 break
5904 fi
5905 fi
5906 done
5907
5908 cd ..
5909 rm -rf conftest.dir
5910else
5911 am_cv_CC_dependencies_compiler_type=none
5912fi
5913
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5916$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5918
5919 if
5920 test "x$enable_dependency_tracking" != xno \
5921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5922 am__fastdepCC_TRUE=
5923 am__fastdepCC_FALSE='#'
5924else
5925 am__fastdepCC_TRUE='#'
5926 am__fastdepCC_FALSE=
5927fi
5928
5929
5930
5931# POSIX will say in a future version that running "rm -f" with no argument
5932# is OK; and we want to be able to make that assumption in our Makefile
5933# recipes. So use an aggressive probe to check that the usage we want is
5934# actually supported "in the wild" to an acceptable degree.
5935# See automake bug#10828.
5936# To make any issue more visible, cause the running configure to be aborted
5937# by default if the 'rm' program in use doesn't match our expectations; the
5938# user can still override this though.
5939if rm -f && rm -fr && rm -rf; then : OK; else
5940 cat >&2 <<'END'
5941Oops!
5942
5943Your 'rm' program seems unable to run without file operands specified
5944on the command line, even when the '-f' option is present. This is contrary
5945to the behaviour of most rm programs out there, and not conforming with
5946the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5947
5948Please tell bug-automake@gnu.org about your system, including the value
5949of your $PATH and any error possibly output before this message. This
5950can help us improve future automake versions.
5951
5952END
5953 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5954 echo 'Configuration will proceed anyway, since you have set the' >&2
5955 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5956 echo >&2
5957 else
5958 cat >&2 <<'END'
5959Aborting the configuration process, to ensure you take notice of the issue.
5960
5961You can download and install GNU coreutils to get an 'rm' implementation
5962that behaves properly: <http://www.gnu.org/software/coreutils/>.
5963
5964If you want to complete the configuration process using your problematic
5965'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5966to "yes", and re-run configure.
5967
5968END
5969 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5970 fi
5971fi
5972
5973## ------------------------------------- ##
5974## End of automake initialization code ##
5975## ------------------------------------- ##
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5979$as_echo_n "checking curl version... " >&6; }
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5981$as_echo "$CURLVERSION" >&6; }
5982
5983
5984
5985VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5986
5987
5988PKGADD_PKG="HAXXcurl"
5989PKGADD_NAME="curl - a client that groks URLs"
5990PKGADD_VENDOR="curl.haxx.se"
5991
5992
5993
5994
5995 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5996 curl_ssh_msg="no (--with-libssh2)"
5997 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01005998 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005999 curl_gss_msg="no (--with-gssapi)"
6000curl_tls_srp_msg="no (--enable-tls-srp)"
6001 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6002 curl_ipv6_msg="no (--enable-ipv6)"
6003curl_unix_sockets_msg="no (--enable-unix-sockets)"
6004 curl_idn_msg="no (--with-{libidn2,winidn})"
6005 curl_manual_msg="no (--enable-manual)"
6006curl_libcurl_msg="enabled (--disable-libcurl-option)"
6007curl_verbose_msg="enabled (--disable-verbose)"
6008 curl_sspi_msg="no (--enable-sspi)"
6009 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6010 curl_ldaps_msg="no (--enable-ldaps)"
6011 curl_rtsp_msg="no (--enable-rtsp)"
6012 curl_rtmp_msg="no (--with-librtmp)"
6013 curl_mtlnk_msg="no (--with-libmetalink)"
6014 curl_psl_msg="no (--with-libpsl)"
6015
Alex Deymo486467e2017-12-19 19:04:07 +01006016 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006017
6018INITIAL_LDFLAGS=$LDFLAGS
6019INITIAL_LIBS=$LIBS
6020
6021
6022# Make sure we can run config.sub.
6023$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6024 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6027$as_echo_n "checking build system type... " >&6; }
6028if ${ac_cv_build+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030else
6031 ac_build_alias=$build_alias
6032test "x$ac_build_alias" = x &&
6033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6034test "x$ac_build_alias" = x &&
6035 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6036ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6037 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6038
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6041$as_echo "$ac_cv_build" >&6; }
6042case $ac_cv_build in
6043*-*-*) ;;
6044*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6045esac
6046build=$ac_cv_build
6047ac_save_IFS=$IFS; IFS='-'
6048set x $ac_cv_build
6049shift
6050build_cpu=$1
6051build_vendor=$2
6052shift; shift
6053# Remember, the first character of IFS is used to create $*,
6054# except with old shells:
6055build_os=$*
6056IFS=$ac_save_IFS
6057case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6058
6059
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6061$as_echo_n "checking host system type... " >&6; }
6062if ${ac_cv_host+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064else
6065 if test "x$host_alias" = x; then
6066 ac_cv_host=$ac_cv_build
6067else
6068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6069 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6070fi
6071
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6074$as_echo "$ac_cv_host" >&6; }
6075case $ac_cv_host in
6076*-*-*) ;;
6077*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6078esac
6079host=$ac_cv_host
6080ac_save_IFS=$IFS; IFS='-'
6081set x $ac_cv_host
6082shift
6083host_cpu=$1
6084host_vendor=$2
6085shift; shift
6086# Remember, the first character of IFS is used to create $*,
6087# except with old shells:
6088host_os=$*
6089IFS=$ac_save_IFS
6090case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6091
6092
6093
6094cat >>confdefs.h <<_ACEOF
6095#define OS "${host}"
6096_ACEOF
6097
6098
Elliott Hughes72d948d2018-08-03 14:37:21 -07006099# Silence warning: ar: 'u' modifier ignored since 'D' is the default
6100AR_FLAGS=cr
6101
Elliott Hughes82be86d2017-09-20 17:00:17 -07006102
6103
6104
Elliott Hughes82be86d2017-09-20 17:00:17 -07006105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6106$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6107if ${ac_cv_path_GREP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109else
6110 if test -z "$GREP"; then
6111 ac_path_GREP_found=false
6112 # Loop through the user's path and test for each of PROGNAME-LIST
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_prog in grep ggrep; do
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6121 as_fn_executable_p "$ac_path_GREP" || continue
6122# Check for GNU ac_path_GREP and select it if it is found.
6123 # Check for GNU $ac_path_GREP
6124case `"$ac_path_GREP" --version 2>&1` in
6125*GNU*)
6126 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6127*)
6128 ac_count=0
6129 $as_echo_n 0123456789 >"conftest.in"
6130 while :
6131 do
6132 cat "conftest.in" "conftest.in" >"conftest.tmp"
6133 mv "conftest.tmp" "conftest.in"
6134 cp "conftest.in" "conftest.nl"
6135 $as_echo 'GREP' >> "conftest.nl"
6136 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6138 as_fn_arith $ac_count + 1 && ac_count=$as_val
6139 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6140 # Best one so far, save it but keep looking for a better one
6141 ac_cv_path_GREP="$ac_path_GREP"
6142 ac_path_GREP_max=$ac_count
6143 fi
6144 # 10*(2^10) chars as input seems more than enough
6145 test $ac_count -gt 10 && break
6146 done
6147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6148esac
6149
6150 $ac_path_GREP_found && break 3
6151 done
6152 done
6153 done
6154IFS=$as_save_IFS
6155 if test -z "$ac_cv_path_GREP"; then
6156 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6157 fi
6158else
6159 ac_cv_path_GREP=$GREP
6160fi
6161
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6164$as_echo "$ac_cv_path_GREP" >&6; }
6165 GREP="$ac_cv_path_GREP"
6166
6167
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6169$as_echo_n "checking for egrep... " >&6; }
6170if ${ac_cv_path_EGREP+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172else
6173 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6174 then ac_cv_path_EGREP="$GREP -E"
6175 else
6176 if test -z "$EGREP"; then
6177 ac_path_EGREP_found=false
6178 # Loop through the user's path and test for each of PROGNAME-LIST
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_prog in egrep; do
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6187 as_fn_executable_p "$ac_path_EGREP" || continue
6188# Check for GNU ac_path_EGREP and select it if it is found.
6189 # Check for GNU $ac_path_EGREP
6190case `"$ac_path_EGREP" --version 2>&1` in
6191*GNU*)
6192 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6193*)
6194 ac_count=0
6195 $as_echo_n 0123456789 >"conftest.in"
6196 while :
6197 do
6198 cat "conftest.in" "conftest.in" >"conftest.tmp"
6199 mv "conftest.tmp" "conftest.in"
6200 cp "conftest.in" "conftest.nl"
6201 $as_echo 'EGREP' >> "conftest.nl"
6202 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6204 as_fn_arith $ac_count + 1 && ac_count=$as_val
6205 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6206 # Best one so far, save it but keep looking for a better one
6207 ac_cv_path_EGREP="$ac_path_EGREP"
6208 ac_path_EGREP_max=$ac_count
6209 fi
6210 # 10*(2^10) chars as input seems more than enough
6211 test $ac_count -gt 10 && break
6212 done
6213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6214esac
6215
6216 $ac_path_EGREP_found && break 3
6217 done
6218 done
6219 done
6220IFS=$as_save_IFS
6221 if test -z "$ac_cv_path_EGREP"; then
6222 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6223 fi
6224else
6225 ac_cv_path_EGREP=$EGREP
6226fi
6227
6228 fi
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6231$as_echo "$ac_cv_path_EGREP" >&6; }
6232 EGREP="$ac_cv_path_EGREP"
6233
6234
Elliott Hughes82be86d2017-09-20 17:00:17 -07006235
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6238$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h. */
6241
6242#ifdef _AIX
6243 yes_this_is_aix
6244#endif
6245
6246_ACEOF
6247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6251$as_echo "yes" >&6; }
6252 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6253
6254
6255else
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258$as_echo "no" >&6; }
6259
6260fi
6261rm -f conftest*
6262
6263
6264
6265
6266 #
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6268$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h. */
6271
6272
6273
6274int main (void)
6275{
6276
6277#ifdef _THREAD_SAFE
6278 int dummy=1;
6279#else
6280 force compilation error
6281#endif
6282
6283 ;
6284 return 0;
6285}
6286
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6291$as_echo "yes" >&6; }
6292 tmp_thread_safe_initially_defined="yes"
6293
6294else
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297$as_echo "no" >&6; }
6298 tmp_thread_safe_initially_defined="no"
6299
6300fi
6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 #
6303 if test "$tmp_thread_safe_initially_defined" = "no"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6305$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6306
6307 case $host_os in
6308 aix[123].* | aix4.[012].*)
6309 tmp_need_thread_safe="no"
6310 ;;
6311 aix*)
6312 tmp_need_thread_safe="yes"
6313 ;;
6314 *)
6315 tmp_need_thread_safe="no"
6316 ;;
6317 esac
6318
6319 if test "$tmp_need_thread_safe" = "yes"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6321$as_echo "yes" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324$as_echo "no" >&6; }
6325 fi
6326 fi
6327 #
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6329$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6330 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6331 test "$tmp_need_thread_safe" = "yes"; then
6332
6333
6334$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6335
6336cat >>confdefs.h <<_EOF
6337#ifndef _THREAD_SAFE
6338# define _THREAD_SAFE
6339#endif
6340_EOF
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343$as_echo "yes" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346$as_echo "no" >&6; }
6347 fi
6348 #
6349
6350
6351 #
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6353$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h. */
6356
6357
6358
6359int main (void)
6360{
6361
6362#ifdef _REENTRANT
6363 int dummy=1;
6364#else
6365 force compilation error
6366#endif
6367
6368 ;
6369 return 0;
6370}
6371
6372_ACEOF
6373if ac_fn_c_try_compile "$LINENO"; then :
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6376$as_echo "yes" >&6; }
6377 tmp_reentrant_initially_defined="yes"
6378
6379else
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383 tmp_reentrant_initially_defined="no"
6384
6385fi
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 #
6388 if test "$tmp_reentrant_initially_defined" = "no"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6390$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6391
6392 case $host_os in
6393 solaris*)
6394 tmp_need_reentrant="yes"
6395 ;;
6396 *)
6397 tmp_need_reentrant="no"
6398 ;;
6399 esac
6400
6401 if test "$tmp_need_reentrant" = "no"; then
6402
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405
6406
6407#include <errno.h>
6408
6409int main (void)
6410{
6411
6412 if(0 != errno)
6413 return 1;
6414
6415 ;
6416 return 0;
6417}
6418
6419_ACEOF
6420if ac_fn_c_try_compile "$LINENO"; then :
6421
6422 tmp_errno="yes"
6423
6424else
6425
6426 tmp_errno="no"
6427
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test "$tmp_errno" = "yes"; then
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h. */
6433
6434
6435#include <errno.h>
6436
6437int main (void)
6438{
6439
6440#ifdef errno
6441 int dummy=1;
6442#else
6443 force compilation error
6444#endif
6445
6446 ;
6447 return 0;
6448}
6449
6450_ACEOF
6451if ac_fn_c_try_compile "$LINENO"; then :
6452
6453 tmp_errno="errno_macro_defined"
6454
6455else
6456
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h. */
6459
6460
6461#define _REENTRANT
6462#include <errno.h>
6463
6464int main (void)
6465{
6466
6467#ifdef errno
6468 int dummy=1;
6469#else
6470 force compilation error
6471#endif
6472
6473 ;
6474 return 0;
6475}
6476
6477_ACEOF
6478if ac_fn_c_try_compile "$LINENO"; then :
6479
6480 tmp_errno="errno_macro_needs_reentrant"
6481 tmp_need_reentrant="yes"
6482
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489
6490 fi
6491 if test "$tmp_need_reentrant" = "no"; then
6492
6493 if test "$tmp_need_reentrant" = "no"; then
6494
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497
6498
6499#define gmtime_r innocuous_gmtime_r
6500#ifdef __STDC__
6501# include <limits.h>
6502#else
6503# include <assert.h>
6504#endif
6505#undef gmtime_r
6506#ifdef __cplusplus
6507extern "C"
6508#endif
6509char gmtime_r ();
6510#if defined __stub_gmtime_r || defined __stub___gmtime_r
6511choke me
6512#endif
6513
6514int main (void)
6515{
6516return gmtime_r ();
6517 ;
6518 return 0;
6519}
6520
6521_ACEOF
6522if ac_fn_c_try_link "$LINENO"; then :
6523
6524 tmp_gmtime_r="yes"
6525
6526else
6527
6528 tmp_gmtime_r="no"
6529
6530fi
6531rm -f core conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 if test "$tmp_gmtime_r" = "yes"; then
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537#include <sys/types.h>
6538#include <time.h>
6539
6540_ACEOF
6541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6543
6544 tmp_gmtime_r="proto_declared"
6545
6546else
6547
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h. */
6550
6551#define _REENTRANT
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_needs_reentrant"
6560 tmp_need_reentrant="yes"
6561
6562fi
6563rm -f conftest*
6564
6565
6566fi
6567rm -f conftest*
6568
6569 fi
6570
6571 fi
6572 if test "$tmp_need_reentrant" = "no"; then
6573
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h. */
6576
6577
6578#define localtime_r innocuous_localtime_r
6579#ifdef __STDC__
6580# include <limits.h>
6581#else
6582# include <assert.h>
6583#endif
6584#undef localtime_r
6585#ifdef __cplusplus
6586extern "C"
6587#endif
6588char localtime_r ();
6589#if defined __stub_localtime_r || defined __stub___localtime_r
6590choke me
6591#endif
6592
6593int main (void)
6594{
6595return localtime_r ();
6596 ;
6597 return 0;
6598}
6599
6600_ACEOF
6601if ac_fn_c_try_link "$LINENO"; then :
6602
6603 tmp_localtime_r="yes"
6604
6605else
6606
6607 tmp_localtime_r="no"
6608
6609fi
6610rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6612 if test "$tmp_localtime_r" = "yes"; then
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615
6616#include <sys/types.h>
6617#include <time.h>
6618
6619_ACEOF
6620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "localtime_r" >/dev/null 2>&1; then :
6622
6623 tmp_localtime_r="proto_declared"
6624
6625else
6626
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h. */
6629
6630#define _REENTRANT
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_needs_reentrant"
6639 tmp_need_reentrant="yes"
6640
6641fi
6642rm -f conftest*
6643
6644
6645fi
6646rm -f conftest*
6647
6648 fi
6649
6650 fi
6651 if test "$tmp_need_reentrant" = "no"; then
6652
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h. */
6655
6656
6657#define strerror_r innocuous_strerror_r
6658#ifdef __STDC__
6659# include <limits.h>
6660#else
6661# include <assert.h>
6662#endif
6663#undef strerror_r
6664#ifdef __cplusplus
6665extern "C"
6666#endif
6667char strerror_r ();
6668#if defined __stub_strerror_r || defined __stub___strerror_r
6669choke me
6670#endif
6671
6672int main (void)
6673{
6674return strerror_r ();
6675 ;
6676 return 0;
6677}
6678
6679_ACEOF
6680if ac_fn_c_try_link "$LINENO"; then :
6681
6682 tmp_strerror_r="yes"
6683
6684else
6685
6686 tmp_strerror_r="no"
6687
6688fi
6689rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6691 if test "$tmp_strerror_r" = "yes"; then
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h. */
6694
6695#include <sys/types.h>
6696#include <string.h>
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "strerror_r" >/dev/null 2>&1; then :
6701
6702 tmp_strerror_r="proto_declared"
6703
6704else
6705
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h. */
6708
6709#define _REENTRANT
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_needs_reentrant"
6718 tmp_need_reentrant="yes"
6719
6720fi
6721rm -f conftest*
6722
6723
6724fi
6725rm -f conftest*
6726
6727 fi
6728
6729 fi
6730 if test "$tmp_need_reentrant" = "no"; then
6731
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h. */
6734
6735
6736#define strtok_r innocuous_strtok_r
6737#ifdef __STDC__
6738# include <limits.h>
6739#else
6740# include <assert.h>
6741#endif
6742#undef strtok_r
6743#ifdef __cplusplus
6744extern "C"
6745#endif
6746char strtok_r ();
6747#if defined __stub_strtok_r || defined __stub___strtok_r
6748choke me
6749#endif
6750
6751int main (void)
6752{
6753return strtok_r ();
6754 ;
6755 return 0;
6756}
6757
6758_ACEOF
6759if ac_fn_c_try_link "$LINENO"; then :
6760
6761 tmp_strtok_r="yes"
6762
6763else
6764
6765 tmp_strtok_r="no"
6766
6767fi
6768rm -f core conftest.err conftest.$ac_objext \
6769 conftest$ac_exeext conftest.$ac_ext
6770 if test "$tmp_strtok_r" = "yes"; then
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h. */
6773
6774#include <sys/types.h>
6775#include <string.h>
6776
6777_ACEOF
6778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6779 $EGREP "strtok_r" >/dev/null 2>&1; then :
6780
6781 tmp_strtok_r="proto_declared"
6782
6783else
6784
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h. */
6787
6788#define _REENTRANT
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_needs_reentrant"
6797 tmp_need_reentrant="yes"
6798
6799fi
6800rm -f conftest*
6801
6802
6803fi
6804rm -f conftest*
6805
6806 fi
6807
6808 fi
6809 if test "$tmp_need_reentrant" = "no"; then
6810
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h. */
6813
6814
6815#define inet_ntoa_r innocuous_inet_ntoa_r
6816#ifdef __STDC__
6817# include <limits.h>
6818#else
6819# include <assert.h>
6820#endif
6821#undef inet_ntoa_r
6822#ifdef __cplusplus
6823extern "C"
6824#endif
6825char inet_ntoa_r ();
6826#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6827choke me
6828#endif
6829
6830int main (void)
6831{
6832return inet_ntoa_r ();
6833 ;
6834 return 0;
6835}
6836
6837_ACEOF
6838if ac_fn_c_try_link "$LINENO"; then :
6839
6840 tmp_inet_ntoa_r="yes"
6841
6842else
6843
6844 tmp_inet_ntoa_r="no"
6845
6846fi
6847rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6849 if test "$tmp_inet_ntoa_r" = "yes"; then
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h. */
6852
6853#include <sys/types.h>
6854#include <sys/socket.h>
6855#include <netinet/in.h>
6856#include <arpa/inet.h>
6857
6858_ACEOF
6859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6861
6862 tmp_inet_ntoa_r="proto_declared"
6863
6864else
6865
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h. */
6868
6869#define _REENTRANT
6870#include <sys/types.h>
6871#include <sys/socket.h>
6872#include <netinet/in.h>
6873#include <arpa/inet.h>
6874
6875_ACEOF
6876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6878
6879 tmp_inet_ntoa_r="proto_needs_reentrant"
6880 tmp_need_reentrant="yes"
6881
6882fi
6883rm -f conftest*
6884
6885
6886fi
6887rm -f conftest*
6888
6889 fi
6890
6891 fi
6892 if test "$tmp_need_reentrant" = "no"; then
6893
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h. */
6896
6897
6898#define gethostbyaddr_r innocuous_gethostbyaddr_r
6899#ifdef __STDC__
6900# include <limits.h>
6901#else
6902# include <assert.h>
6903#endif
6904#undef gethostbyaddr_r
6905#ifdef __cplusplus
6906extern "C"
6907#endif
6908char gethostbyaddr_r ();
6909#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6910choke me
6911#endif
6912
6913int main (void)
6914{
6915return gethostbyaddr_r ();
6916 ;
6917 return 0;
6918}
6919
6920_ACEOF
6921if ac_fn_c_try_link "$LINENO"; then :
6922
6923 tmp_gethostbyaddr_r="yes"
6924
6925else
6926
6927 tmp_gethostbyaddr_r="no"
6928
6929fi
6930rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 if test "$tmp_gethostbyaddr_r" = "yes"; then
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h. */
6935
6936#include <sys/types.h>
6937#include <netdb.h>
6938
6939_ACEOF
6940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6942
6943 tmp_gethostbyaddr_r="proto_declared"
6944
6945else
6946
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h. */
6949
6950#define _REENTRANT
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_needs_reentrant"
6959 tmp_need_reentrant="yes"
6960
6961fi
6962rm -f conftest*
6963
6964
6965fi
6966rm -f conftest*
6967
6968 fi
6969
6970 fi
6971 if test "$tmp_need_reentrant" = "no"; then
6972
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h. */
6975
6976
6977#define gethostbyname_r innocuous_gethostbyname_r
6978#ifdef __STDC__
6979# include <limits.h>
6980#else
6981# include <assert.h>
6982#endif
6983#undef gethostbyname_r
6984#ifdef __cplusplus
6985extern "C"
6986#endif
6987char gethostbyname_r ();
6988#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6989choke me
6990#endif
6991
6992int main (void)
6993{
6994return gethostbyname_r ();
6995 ;
6996 return 0;
6997}
6998
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001
7002 tmp_gethostbyname_r="yes"
7003
7004else
7005
7006 tmp_gethostbyname_r="no"
7007
7008fi
7009rm -f core conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011 if test "$tmp_gethostbyname_r" = "yes"; then
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h. */
7014
7015#include <sys/types.h>
7016#include <netdb.h>
7017
7018_ACEOF
7019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7021
7022 tmp_gethostbyname_r="proto_declared"
7023
7024else
7025
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h. */
7028
7029#define _REENTRANT
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_needs_reentrant"
7038 tmp_need_reentrant="yes"
7039
7040fi
7041rm -f conftest*
7042
7043
7044fi
7045rm -f conftest*
7046
7047 fi
7048
7049 fi
7050 if test "$tmp_need_reentrant" = "no"; then
7051
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h. */
7054
7055
7056#define getprotobyname_r innocuous_getprotobyname_r
7057#ifdef __STDC__
7058# include <limits.h>
7059#else
7060# include <assert.h>
7061#endif
7062#undef getprotobyname_r
7063#ifdef __cplusplus
7064extern "C"
7065#endif
7066char getprotobyname_r ();
7067#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7068choke me
7069#endif
7070
7071int main (void)
7072{
7073return getprotobyname_r ();
7074 ;
7075 return 0;
7076}
7077
7078_ACEOF
7079if ac_fn_c_try_link "$LINENO"; then :
7080
7081 tmp_getprotobyname_r="yes"
7082
7083else
7084
7085 tmp_getprotobyname_r="no"
7086
7087fi
7088rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 if test "$tmp_getprotobyname_r" = "yes"; then
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h. */
7093
7094#include <sys/types.h>
7095#include <netdb.h>
7096
7097_ACEOF
7098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7100
7101 tmp_getprotobyname_r="proto_declared"
7102
7103else
7104
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h. */
7107
7108#define _REENTRANT
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_needs_reentrant"
7117 tmp_need_reentrant="yes"
7118
7119fi
7120rm -f conftest*
7121
7122
7123fi
7124rm -f conftest*
7125
7126 fi
7127
7128 fi
7129 if test "$tmp_need_reentrant" = "no"; then
7130
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h. */
7133
7134
7135#define getservbyport_r innocuous_getservbyport_r
7136#ifdef __STDC__
7137# include <limits.h>
7138#else
7139# include <assert.h>
7140#endif
7141#undef getservbyport_r
7142#ifdef __cplusplus
7143extern "C"
7144#endif
7145char getservbyport_r ();
7146#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7147choke me
7148#endif
7149
7150int main (void)
7151{
7152return getservbyport_r ();
7153 ;
7154 return 0;
7155}
7156
7157_ACEOF
7158if ac_fn_c_try_link "$LINENO"; then :
7159
7160 tmp_getservbyport_r="yes"
7161
7162else
7163
7164 tmp_getservbyport_r="no"
7165
7166fi
7167rm -f core conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7169 if test "$tmp_getservbyport_r" = "yes"; then
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h. */
7172
7173#include <sys/types.h>
7174#include <netdb.h>
7175
7176_ACEOF
7177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7179
7180 tmp_getservbyport_r="proto_declared"
7181
7182else
7183
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h. */
7186
7187#define _REENTRANT
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_needs_reentrant"
7196 tmp_need_reentrant="yes"
7197
7198fi
7199rm -f conftest*
7200
7201
7202fi
7203rm -f conftest*
7204
7205 fi
7206
7207 fi
7208
7209 fi
7210 if test "$tmp_need_reentrant" = "yes"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7212$as_echo "yes" >&6; }
7213 else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215$as_echo "no" >&6; }
7216 fi
7217 fi
7218 #
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7220$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7221 if test "$tmp_reentrant_initially_defined" = "yes" ||
7222 test "$tmp_need_reentrant" = "yes"; then
7223
7224
7225$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7226
7227cat >>confdefs.h <<_EOF
7228#ifndef _REENTRANT
7229# define _REENTRANT
7230#endif
7231_EOF
7232
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234$as_echo "yes" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238 fi
7239 #
7240
7241
7242# Check whether --enable-largefile was given.
7243if test "${enable_largefile+set}" = set; then :
7244 enableval=$enable_largefile;
7245fi
7246
7247if test "$enable_largefile" != no; then
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7250$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7251if ${ac_cv_sys_largefile_CC+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253else
7254 ac_cv_sys_largefile_CC=no
7255 if test "$GCC" != yes; then
7256 ac_save_CC=$CC
7257 while :; do
7258 # IRIX 6.2 and later do not support large files by default,
7259 # so use the C compiler's -n32 option if that helps.
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h. */
7262#include <sys/types.h>
7263 /* Check that off_t can represent 2**63 - 1 correctly.
7264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7265 since some C++ compilers masquerading as C compilers
7266 incorrectly reject 9223372036854775807. */
7267#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7269 && LARGE_OFF_T % 2147483647 == 1)
7270 ? 1 : -1];
7271int main (void)
7272{
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 break
7280fi
7281rm -f core conftest.err conftest.$ac_objext
7282 CC="$CC -n32"
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 ac_cv_sys_largefile_CC=' -n32'; break
7285fi
7286rm -f core conftest.err conftest.$ac_objext
7287 break
7288 done
7289 CC=$ac_save_CC
7290 rm -f conftest.$ac_ext
7291 fi
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7294$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7295 if test "$ac_cv_sys_largefile_CC" != no; then
7296 CC=$CC$ac_cv_sys_largefile_CC
7297 fi
7298
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7300$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7301if ${ac_cv_sys_file_offset_bits+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303else
7304 while :; do
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h. */
7307#include <sys/types.h>
7308 /* Check that off_t can represent 2**63 - 1 correctly.
7309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7310 since some C++ compilers masquerading as C compilers
7311 incorrectly reject 9223372036854775807. */
7312#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7314 && LARGE_OFF_T % 2147483647 == 1)
7315 ? 1 : -1];
7316int main (void)
7317{
7318
7319 ;
7320 return 0;
7321}
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324 ac_cv_sys_file_offset_bits=no; break
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329#define _FILE_OFFSET_BITS 64
7330#include <sys/types.h>
7331 /* Check that off_t can represent 2**63 - 1 correctly.
7332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7333 since some C++ compilers masquerading as C compilers
7334 incorrectly reject 9223372036854775807. */
7335#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7337 && LARGE_OFF_T % 2147483647 == 1)
7338 ? 1 : -1];
7339int main (void)
7340{
7341
7342 ;
7343 return 0;
7344}
7345_ACEOF
7346if ac_fn_c_try_compile "$LINENO"; then :
7347 ac_cv_sys_file_offset_bits=64; break
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 ac_cv_sys_file_offset_bits=unknown
7351 break
7352done
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7355$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7356case $ac_cv_sys_file_offset_bits in #(
7357 no | unknown) ;;
7358 *)
7359cat >>confdefs.h <<_ACEOF
7360#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7361_ACEOF
7362;;
7363esac
7364rm -rf conftest*
7365 if test $ac_cv_sys_file_offset_bits = unknown; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7367$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7368if ${ac_cv_sys_large_files+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370else
7371 while :; do
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h. */
7374#include <sys/types.h>
7375 /* Check that off_t can represent 2**63 - 1 correctly.
7376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7377 since some C++ compilers masquerading as C compilers
7378 incorrectly reject 9223372036854775807. */
7379#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7381 && LARGE_OFF_T % 2147483647 == 1)
7382 ? 1 : -1];
7383int main (void)
7384{
7385
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390if ac_fn_c_try_compile "$LINENO"; then :
7391 ac_cv_sys_large_files=no; break
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396#define _LARGE_FILES 1
7397#include <sys/types.h>
7398 /* Check that off_t can represent 2**63 - 1 correctly.
7399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7400 since some C++ compilers masquerading as C compilers
7401 incorrectly reject 9223372036854775807. */
7402#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7404 && LARGE_OFF_T % 2147483647 == 1)
7405 ? 1 : -1];
7406int main (void)
7407{
7408
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_cv_sys_large_files=1; break
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 ac_cv_sys_large_files=unknown
7418 break
7419done
7420fi
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7422$as_echo "$ac_cv_sys_large_files" >&6; }
7423case $ac_cv_sys_large_files in #(
7424 no | unknown) ;;
7425 *)
7426cat >>confdefs.h <<_ACEOF
7427#define _LARGE_FILES $ac_cv_sys_large_files
7428_ACEOF
7429;;
7430esac
7431rm -rf conftest*
7432 fi
7433
7434
7435fi
7436
7437
7438case `pwd` in
7439 *\ * | *\ *)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7441$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7442esac
7443
7444
7445
7446macro_version='2.4.6'
7447macro_revision='2.4.6'
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461ltmain=$ac_aux_dir/ltmain.sh
7462
7463# Backslashify metacharacters that are still active within
7464# double-quoted strings.
7465sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7466
7467# Same as above, but do not quote variable references.
7468double_quote_subst='s/\(["`\\]\)/\\\1/g'
7469
7470# Sed substitution to delay expansion of an escaped shell variable in a
7471# double_quote_subst'ed string.
7472delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7473
7474# Sed substitution to delay expansion of an escaped single quote.
7475delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7476
7477# Sed substitution to avoid accidental globbing in evaled expressions
7478no_glob_subst='s/\*/\\\*/g'
7479
7480ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7481ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7482ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7483
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7485$as_echo_n "checking how to print strings... " >&6; }
7486# Test print first, because it will be a builtin if present.
7487if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7488 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7489 ECHO='print -r --'
7490elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7491 ECHO='printf %s\n'
7492else
7493 # Use this function as a fallback that always works.
7494 func_fallback_echo ()
7495 {
7496 eval 'cat <<_LTECHO_EOF
7497$1
7498_LTECHO_EOF'
7499 }
7500 ECHO='func_fallback_echo'
7501fi
7502
7503# func_echo_all arg...
7504# Invoke $ECHO with all args, space-separated.
7505func_echo_all ()
7506{
7507 $ECHO ""
7508}
7509
7510case $ECHO in
7511 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7512$as_echo "printf" >&6; } ;;
7513 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7514$as_echo "print -r" >&6; } ;;
7515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7516$as_echo "cat" >&6; } ;;
7517esac
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7533$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7534if ${ac_cv_path_SED+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536else
7537 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7538 for ac_i in 1 2 3 4 5 6 7; do
7539 ac_script="$ac_script$as_nl$ac_script"
7540 done
7541 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7542 { ac_script=; unset ac_script;}
7543 if test -z "$SED"; then
7544 ac_path_SED_found=false
7545 # Loop through the user's path and test for each of PROGNAME-LIST
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_prog in sed gsed; do
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7554 as_fn_executable_p "$ac_path_SED" || continue
7555# Check for GNU ac_path_SED and select it if it is found.
7556 # Check for GNU $ac_path_SED
7557case `"$ac_path_SED" --version 2>&1` in
7558*GNU*)
7559 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7560*)
7561 ac_count=0
7562 $as_echo_n 0123456789 >"conftest.in"
7563 while :
7564 do
7565 cat "conftest.in" "conftest.in" >"conftest.tmp"
7566 mv "conftest.tmp" "conftest.in"
7567 cp "conftest.in" "conftest.nl"
7568 $as_echo '' >> "conftest.nl"
7569 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7571 as_fn_arith $ac_count + 1 && ac_count=$as_val
7572 if test $ac_count -gt ${ac_path_SED_max-0}; then
7573 # Best one so far, save it but keep looking for a better one
7574 ac_cv_path_SED="$ac_path_SED"
7575 ac_path_SED_max=$ac_count
7576 fi
7577 # 10*(2^10) chars as input seems more than enough
7578 test $ac_count -gt 10 && break
7579 done
7580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7581esac
7582
7583 $ac_path_SED_found && break 3
7584 done
7585 done
7586 done
7587IFS=$as_save_IFS
7588 if test -z "$ac_cv_path_SED"; then
7589 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7590 fi
7591else
7592 ac_cv_path_SED=$SED
7593fi
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7597$as_echo "$ac_cv_path_SED" >&6; }
7598 SED="$ac_cv_path_SED"
7599 rm -f conftest.sed
7600
7601test -z "$SED" && SED=sed
7602Xsed="$SED -e 1s/^X//"
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7615$as_echo_n "checking for fgrep... " >&6; }
7616if ${ac_cv_path_FGREP+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618else
7619 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7620 then ac_cv_path_FGREP="$GREP -F"
7621 else
7622 if test -z "$FGREP"; then
7623 ac_path_FGREP_found=false
7624 # Loop through the user's path and test for each of PROGNAME-LIST
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_prog in fgrep; do
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7633 as_fn_executable_p "$ac_path_FGREP" || continue
7634# Check for GNU ac_path_FGREP and select it if it is found.
7635 # Check for GNU $ac_path_FGREP
7636case `"$ac_path_FGREP" --version 2>&1` in
7637*GNU*)
7638 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7639*)
7640 ac_count=0
7641 $as_echo_n 0123456789 >"conftest.in"
7642 while :
7643 do
7644 cat "conftest.in" "conftest.in" >"conftest.tmp"
7645 mv "conftest.tmp" "conftest.in"
7646 cp "conftest.in" "conftest.nl"
7647 $as_echo 'FGREP' >> "conftest.nl"
7648 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7650 as_fn_arith $ac_count + 1 && ac_count=$as_val
7651 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7652 # Best one so far, save it but keep looking for a better one
7653 ac_cv_path_FGREP="$ac_path_FGREP"
7654 ac_path_FGREP_max=$ac_count
7655 fi
7656 # 10*(2^10) chars as input seems more than enough
7657 test $ac_count -gt 10 && break
7658 done
7659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7660esac
7661
7662 $ac_path_FGREP_found && break 3
7663 done
7664 done
7665 done
7666IFS=$as_save_IFS
7667 if test -z "$ac_cv_path_FGREP"; then
7668 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7669 fi
7670else
7671 ac_cv_path_FGREP=$FGREP
7672fi
7673
7674 fi
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7677$as_echo "$ac_cv_path_FGREP" >&6; }
7678 FGREP="$ac_cv_path_FGREP"
7679
7680
7681test -z "$GREP" && GREP=grep
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701# Check whether --with-gnu-ld was given.
7702if test "${with_gnu_ld+set}" = set; then :
7703 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7704else
7705 with_gnu_ld=no
7706fi
7707
7708ac_prog=ld
7709if test yes = "$GCC"; then
7710 # Check if gcc -print-prog-name=ld gives a path.
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7712$as_echo_n "checking for ld used by $CC... " >&6; }
7713 case $host in
7714 *-*-mingw*)
7715 # gcc leaves a trailing carriage return, which upsets mingw
7716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7717 *)
7718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7719 esac
7720 case $ac_prog in
7721 # Accept absolute paths.
7722 [\\/]* | ?:[\\/]*)
7723 re_direlt='/[^/][^/]*/\.\./'
7724 # Canonicalize the pathname of ld
7725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7728 done
7729 test -z "$LD" && LD=$ac_prog
7730 ;;
7731 "")
7732 # If it fails, then pretend we aren't using GCC.
7733 ac_prog=ld
7734 ;;
7735 *)
7736 # If it is relative, then search for the first ld in PATH.
7737 with_gnu_ld=unknown
7738 ;;
7739 esac
7740elif test yes = "$with_gnu_ld"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7742$as_echo_n "checking for GNU ld... " >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7745$as_echo_n "checking for non-GNU ld... " >&6; }
7746fi
7747if ${lt_cv_path_LD+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749else
7750 if test -z "$LD"; then
7751 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7752 for ac_dir in $PATH; do
7753 IFS=$lt_save_ifs
7754 test -z "$ac_dir" && ac_dir=.
7755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7756 lt_cv_path_LD=$ac_dir/$ac_prog
7757 # Check to see if the program is GNU ld. I'd rather use --version,
7758 # but apparently some variants of GNU ld only accept -v.
7759 # Break only if it was the GNU/non-GNU ld that we prefer.
7760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7761 *GNU* | *'with BFD'*)
7762 test no != "$with_gnu_ld" && break
7763 ;;
7764 *)
7765 test yes != "$with_gnu_ld" && break
7766 ;;
7767 esac
7768 fi
7769 done
7770 IFS=$lt_save_ifs
7771else
7772 lt_cv_path_LD=$LD # Let the user override the test with a path.
7773fi
7774fi
7775
7776LD=$lt_cv_path_LD
7777if test -n "$LD"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7779$as_echo "$LD" >&6; }
7780else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7786$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7787if ${lt_cv_prog_gnu_ld+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789else
7790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7791case `$LD -v 2>&1 </dev/null` in
7792*GNU* | *'with BFD'*)
7793 lt_cv_prog_gnu_ld=yes
7794 ;;
7795*)
7796 lt_cv_prog_gnu_ld=no
7797 ;;
7798esac
7799fi
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7801$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7802with_gnu_ld=$lt_cv_prog_gnu_ld
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7813$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7814if ${lt_cv_path_NM+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816else
7817 if test -n "$NM"; then
7818 # Let the user override the test.
7819 lt_cv_path_NM=$NM
7820else
7821 lt_nm_to_check=${ac_tool_prefix}nm
7822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7823 lt_nm_to_check="$lt_nm_to_check nm"
7824 fi
7825 for lt_tmp_nm in $lt_nm_to_check; do
7826 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7828 IFS=$lt_save_ifs
7829 test -z "$ac_dir" && ac_dir=.
7830 tmp_nm=$ac_dir/$lt_tmp_nm
7831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7832 # Check to see if the nm accepts a BSD-compat flag.
7833 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7834 # nm: unknown option "B" ignored
7835 # Tru64's nm complains that /dev/null is an invalid object file
7836 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7837 case $build_os in
7838 mingw*) lt_bad_file=conftest.nm/nofile ;;
7839 *) lt_bad_file=/dev/null ;;
7840 esac
7841 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7842 *$lt_bad_file* | *'Invalid file or object type'*)
7843 lt_cv_path_NM="$tmp_nm -B"
7844 break 2
7845 ;;
7846 *)
7847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7848 */dev/null*)
7849 lt_cv_path_NM="$tmp_nm -p"
7850 break 2
7851 ;;
7852 *)
7853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7854 continue # so that we can try to find one that supports BSD flags
7855 ;;
7856 esac
7857 ;;
7858 esac
7859 fi
7860 done
7861 IFS=$lt_save_ifs
7862 done
7863 : ${lt_cv_path_NM=no}
7864fi
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7867$as_echo "$lt_cv_path_NM" >&6; }
7868if test no != "$lt_cv_path_NM"; then
7869 NM=$lt_cv_path_NM
7870else
7871 # Didn't find any BSD compatible name lister, look for dumpbin.
7872 if test -n "$DUMPBIN"; then :
7873 # Let the user override the test.
7874 else
7875 if test -n "$ac_tool_prefix"; then
7876 for ac_prog in dumpbin "link -dump"
7877 do
7878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881$as_echo_n "checking for $ac_word... " >&6; }
7882if ${ac_cv_prog_DUMPBIN+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884else
7885 if test -n "$DUMPBIN"; then
7886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900 done
7901IFS=$as_save_IFS
7902
7903fi
7904fi
7905DUMPBIN=$ac_cv_prog_DUMPBIN
7906if test -n "$DUMPBIN"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7908$as_echo "$DUMPBIN" >&6; }
7909else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913
7914
7915 test -n "$DUMPBIN" && break
7916 done
7917fi
7918if test -z "$DUMPBIN"; then
7919 ac_ct_DUMPBIN=$DUMPBIN
7920 for ac_prog in dumpbin "link -dump"
7921do
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923set dummy $ac_prog; ac_word=$2
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925$as_echo_n "checking for $ac_word... " >&6; }
7926if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928else
7929 if test -n "$ac_ct_DUMPBIN"; then
7930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7931else
7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943done
7944 done
7945IFS=$as_save_IFS
7946
7947fi
7948fi
7949ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7950if test -n "$ac_ct_DUMPBIN"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7952$as_echo "$ac_ct_DUMPBIN" >&6; }
7953else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955$as_echo "no" >&6; }
7956fi
7957
7958
7959 test -n "$ac_ct_DUMPBIN" && break
7960done
7961
7962 if test "x$ac_ct_DUMPBIN" = x; then
7963 DUMPBIN=":"
7964 else
7965 case $cross_compiling:$ac_tool_warned in
7966yes:)
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7969ac_tool_warned=yes ;;
7970esac
7971 DUMPBIN=$ac_ct_DUMPBIN
7972 fi
7973fi
7974
7975 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7976 *COFF*)
7977 DUMPBIN="$DUMPBIN -symbols -headers"
7978 ;;
7979 *)
7980 DUMPBIN=:
7981 ;;
7982 esac
7983 fi
7984
7985 if test : != "$DUMPBIN"; then
7986 NM=$DUMPBIN
7987 fi
7988fi
7989test -z "$NM" && NM=nm
7990
7991
7992
7993
7994
7995
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7997$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7998if ${lt_cv_nm_interface+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000else
8001 lt_cv_nm_interface="BSD nm"
8002 echo "int some_variable = 0;" > conftest.$ac_ext
8003 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8004 (eval "$ac_compile" 2>conftest.err)
8005 cat conftest.err >&5
8006 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8008 cat conftest.err >&5
8009 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8010 cat conftest.out >&5
8011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8012 lt_cv_nm_interface="MS dumpbin"
8013 fi
8014 rm -f conftest*
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8017$as_echo "$lt_cv_nm_interface" >&6; }
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8020$as_echo_n "checking whether ln -s works... " >&6; }
8021LN_S=$as_ln_s
8022if test "$LN_S" = "ln -s"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8024$as_echo "yes" >&6; }
8025else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8027$as_echo "no, using $LN_S" >&6; }
8028fi
8029
8030# find the maximum length of command line arguments
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8032$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8033if ${lt_cv_sys_max_cmd_len+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035else
8036 i=0
8037 teststring=ABCD
8038
8039 case $build_os in
8040 msdosdjgpp*)
8041 # On DJGPP, this test can blow up pretty badly due to problems in libc
8042 # (any single argument exceeding 2000 bytes causes a buffer overrun
8043 # during glob expansion). Even if it were fixed, the result of this
8044 # check would be larger than it should be.
8045 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8046 ;;
8047
8048 gnu*)
8049 # Under GNU Hurd, this test is not required because there is
8050 # no limit to the length of command line arguments.
8051 # Libtool will interpret -1 as no limit whatsoever
8052 lt_cv_sys_max_cmd_len=-1;
8053 ;;
8054
8055 cygwin* | mingw* | cegcc*)
8056 # On Win9x/ME, this test blows up -- it succeeds, but takes
8057 # about 5 minutes as the teststring grows exponentially.
8058 # Worse, since 9x/ME are not pre-emptively multitasking,
8059 # you end up with a "frozen" computer, even though with patience
8060 # the test eventually succeeds (with a max line length of 256k).
8061 # Instead, let's just punt: use the minimum linelength reported by
8062 # all of the supported platforms: 8192 (on NT/2K/XP).
8063 lt_cv_sys_max_cmd_len=8192;
8064 ;;
8065
8066 mint*)
8067 # On MiNT this can take a long time and run out of memory.
8068 lt_cv_sys_max_cmd_len=8192;
8069 ;;
8070
8071 amigaos*)
8072 # On AmigaOS with pdksh, this test takes hours, literally.
8073 # So we just punt and use a minimum line length of 8192.
8074 lt_cv_sys_max_cmd_len=8192;
8075 ;;
8076
8077 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8078 # This has been around since 386BSD, at least. Likely further.
8079 if test -x /sbin/sysctl; then
8080 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8081 elif test -x /usr/sbin/sysctl; then
8082 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8083 else
8084 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8085 fi
8086 # And add a safety zone
8087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8089 ;;
8090
8091 interix*)
8092 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8093 lt_cv_sys_max_cmd_len=196608
8094 ;;
8095
8096 os2*)
8097 # The test takes a long time on OS/2.
8098 lt_cv_sys_max_cmd_len=8192
8099 ;;
8100
8101 osf*)
8102 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8103 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8104 # nice to cause kernel panics so lets avoid the loop below.
8105 # First set a reasonable default.
8106 lt_cv_sys_max_cmd_len=16384
8107 #
8108 if test -x /sbin/sysconfig; then
8109 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8110 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8111 esac
8112 fi
8113 ;;
8114 sco3.2v5*)
8115 lt_cv_sys_max_cmd_len=102400
8116 ;;
8117 sysv5* | sco5v6* | sysv4.2uw2*)
8118 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8119 if test -n "$kargmax"; then
8120 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8121 else
8122 lt_cv_sys_max_cmd_len=32768
8123 fi
8124 ;;
8125 *)
8126 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8127 if test -n "$lt_cv_sys_max_cmd_len" && \
8128 test undefined != "$lt_cv_sys_max_cmd_len"; then
8129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8131 else
8132 # Make teststring a little bigger before we do anything with it.
8133 # a 1K string should be a reasonable start.
8134 for i in 1 2 3 4 5 6 7 8; do
8135 teststring=$teststring$teststring
8136 done
8137 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8138 # If test is not a shell built-in, we'll probably end up computing a
8139 # maximum length that is only half of the actual maximum length, but
8140 # we can't tell.
8141 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8142 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8143 test 17 != "$i" # 1/2 MB should be enough
8144 do
8145 i=`expr $i + 1`
8146 teststring=$teststring$teststring
8147 done
8148 # Only check the string length outside the loop.
8149 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8150 teststring=
8151 # Add a significant safety factor because C++ compilers can tack on
8152 # massive amounts of additional arguments before passing them to the
8153 # linker. It appears as though 1/2 is a usable value.
8154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8155 fi
8156 ;;
8157 esac
8158
8159fi
8160
8161if test -n "$lt_cv_sys_max_cmd_len"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8163$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8164else
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8166$as_echo "none" >&6; }
8167fi
8168max_cmd_len=$lt_cv_sys_max_cmd_len
8169
8170
8171
8172
8173
8174
8175: ${CP="cp -f"}
8176: ${MV="mv -f"}
8177: ${RM="rm -f"}
8178
8179if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8180 lt_unset=unset
8181else
8182 lt_unset=false
8183fi
8184
8185
8186
8187
8188
8189# test EBCDIC or ASCII
8190case `echo X|tr X '\101'` in
8191 A) # ASCII based system
8192 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8193 lt_SP2NL='tr \040 \012'
8194 lt_NL2SP='tr \015\012 \040\040'
8195 ;;
8196 *) # EBCDIC based system
8197 lt_SP2NL='tr \100 \n'
8198 lt_NL2SP='tr \r\n \100\100'
8199 ;;
8200esac
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8211$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8212if ${lt_cv_to_host_file_cmd+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214else
8215 case $host in
8216 *-*-mingw* )
8217 case $build in
8218 *-*-mingw* ) # actually msys
8219 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8220 ;;
8221 *-*-cygwin* )
8222 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8223 ;;
8224 * ) # otherwise, assume *nix
8225 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8226 ;;
8227 esac
8228 ;;
8229 *-*-cygwin* )
8230 case $build in
8231 *-*-mingw* ) # actually msys
8232 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8233 ;;
8234 *-*-cygwin* )
8235 lt_cv_to_host_file_cmd=func_convert_file_noop
8236 ;;
8237 * ) # otherwise, assume *nix
8238 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8239 ;;
8240 esac
8241 ;;
8242 * ) # unhandled hosts (and "normal" native builds)
8243 lt_cv_to_host_file_cmd=func_convert_file_noop
8244 ;;
8245esac
8246
8247fi
8248
8249to_host_file_cmd=$lt_cv_to_host_file_cmd
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8251$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8252
8253
8254
8255
8256
8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8258$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8259if ${lt_cv_to_tool_file_cmd+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261else
8262 #assume ordinary cross tools, or native build.
8263lt_cv_to_tool_file_cmd=func_convert_file_noop
8264case $host in
8265 *-*-mingw* )
8266 case $build in
8267 *-*-mingw* ) # actually msys
8268 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8269 ;;
8270 esac
8271 ;;
8272esac
8273
8274fi
8275
8276to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8278$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8279
8280
8281
8282
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8285$as_echo_n "checking for $LD option to reload object files... " >&6; }
8286if ${lt_cv_ld_reload_flag+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288else
8289 lt_cv_ld_reload_flag='-r'
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8292$as_echo "$lt_cv_ld_reload_flag" >&6; }
8293reload_flag=$lt_cv_ld_reload_flag
8294case $reload_flag in
8295"" | " "*) ;;
8296*) reload_flag=" $reload_flag" ;;
8297esac
8298reload_cmds='$LD$reload_flag -o $output$reload_objs'
8299case $host_os in
8300 cygwin* | mingw* | pw32* | cegcc*)
8301 if test yes != "$GCC"; then
8302 reload_cmds=false
8303 fi
8304 ;;
8305 darwin*)
8306 if test yes = "$GCC"; then
8307 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8308 else
8309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8310 fi
8311 ;;
8312esac
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8324set dummy ${ac_tool_prefix}objdump; ac_word=$2
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326$as_echo_n "checking for $ac_word... " >&6; }
8327if ${ac_cv_prog_OBJDUMP+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329else
8330 if test -n "$OBJDUMP"; then
8331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8332else
8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334for as_dir in $PATH
8335do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344done
8345 done
8346IFS=$as_save_IFS
8347
8348fi
8349fi
8350OBJDUMP=$ac_cv_prog_OBJDUMP
8351if test -n "$OBJDUMP"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8353$as_echo "$OBJDUMP" >&6; }
8354else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356$as_echo "no" >&6; }
8357fi
8358
8359
8360fi
8361if test -z "$ac_cv_prog_OBJDUMP"; then
8362 ac_ct_OBJDUMP=$OBJDUMP
8363 # Extract the first word of "objdump", so it can be a program name with args.
8364set dummy objdump; ac_word=$2
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369else
8370 if test -n "$ac_ct_OBJDUMP"; then
8371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384done
8385 done
8386IFS=$as_save_IFS
8387
8388fi
8389fi
8390ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8391if test -n "$ac_ct_OBJDUMP"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8393$as_echo "$ac_ct_OBJDUMP" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399 if test "x$ac_ct_OBJDUMP" = x; then
8400 OBJDUMP="false"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403yes:)
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406ac_tool_warned=yes ;;
8407esac
8408 OBJDUMP=$ac_ct_OBJDUMP
8409 fi
8410else
8411 OBJDUMP="$ac_cv_prog_OBJDUMP"
8412fi
8413
8414test -z "$OBJDUMP" && OBJDUMP=objdump
8415
8416
8417
8418
8419
8420
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8422$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8423if ${lt_cv_deplibs_check_method+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425else
8426 lt_cv_file_magic_cmd='$MAGIC_CMD'
8427lt_cv_file_magic_test_file=
8428lt_cv_deplibs_check_method='unknown'
8429# Need to set the preceding variable on all platforms that support
8430# interlibrary dependencies.
8431# 'none' -- dependencies not supported.
8432# 'unknown' -- same as none, but documents that we really don't know.
8433# 'pass_all' -- all dependencies passed with no checks.
8434# 'test_compile' -- check by making test program.
8435# 'file_magic [[regex]]' -- check by looking for files in library path
8436# that responds to the $file_magic_cmd with a given extended regex.
8437# If you have 'file' or equivalent on your system and you're not sure
8438# whether 'pass_all' will *always* work, you probably want this one.
8439
8440case $host_os in
8441aix[4-9]*)
8442 lt_cv_deplibs_check_method=pass_all
8443 ;;
8444
8445beos*)
8446 lt_cv_deplibs_check_method=pass_all
8447 ;;
8448
8449bsdi[45]*)
8450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8451 lt_cv_file_magic_cmd='/usr/bin/file -L'
8452 lt_cv_file_magic_test_file=/shlib/libc.so
8453 ;;
8454
8455cygwin*)
8456 # func_win32_libid is a shell function defined in ltmain.sh
8457 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8458 lt_cv_file_magic_cmd='func_win32_libid'
8459 ;;
8460
8461mingw* | pw32*)
8462 # Base MSYS/MinGW do not provide the 'file' command needed by
8463 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8464 # unless we find 'file', for example because we are cross-compiling.
8465 if ( file / ) >/dev/null 2>&1; then
8466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8467 lt_cv_file_magic_cmd='func_win32_libid'
8468 else
8469 # Keep this pattern in sync with the one in func_win32_libid.
8470 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8471 lt_cv_file_magic_cmd='$OBJDUMP -f'
8472 fi
8473 ;;
8474
8475cegcc*)
8476 # use the weaker test based on 'objdump'. See mingw*.
8477 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8478 lt_cv_file_magic_cmd='$OBJDUMP -f'
8479 ;;
8480
8481darwin* | rhapsody*)
8482 lt_cv_deplibs_check_method=pass_all
8483 ;;
8484
8485freebsd* | dragonfly*)
8486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8487 case $host_cpu in
8488 i*86 )
8489 # Not sure whether the presence of OpenBSD here was a mistake.
8490 # Let's accept both of them until this is cleared up.
8491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8492 lt_cv_file_magic_cmd=/usr/bin/file
8493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8494 ;;
8495 esac
8496 else
8497 lt_cv_deplibs_check_method=pass_all
8498 fi
8499 ;;
8500
8501haiku*)
8502 lt_cv_deplibs_check_method=pass_all
8503 ;;
8504
8505hpux10.20* | hpux11*)
8506 lt_cv_file_magic_cmd=/usr/bin/file
8507 case $host_cpu in
8508 ia64*)
8509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8511 ;;
8512 hppa*64*)
8513 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]'
8514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8515 ;;
8516 *)
8517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8518 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8519 ;;
8520 esac
8521 ;;
8522
8523interix[3-9]*)
8524 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8526 ;;
8527
8528irix5* | irix6* | nonstopux*)
8529 case $LD in
8530 *-32|*"-32 ") libmagic=32-bit;;
8531 *-n32|*"-n32 ") libmagic=N32;;
8532 *-64|*"-64 ") libmagic=64-bit;;
8533 *) libmagic=never-match;;
8534 esac
8535 lt_cv_deplibs_check_method=pass_all
8536 ;;
8537
8538# This must be glibc/ELF.
8539linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8540 lt_cv_deplibs_check_method=pass_all
8541 ;;
8542
8543netbsd* | netbsdelf*-gnu)
8544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8546 else
8547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8548 fi
8549 ;;
8550
8551newos6*)
8552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8553 lt_cv_file_magic_cmd=/usr/bin/file
8554 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8555 ;;
8556
8557*nto* | *qnx*)
8558 lt_cv_deplibs_check_method=pass_all
8559 ;;
8560
8561openbsd* | bitrig*)
8562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8564 else
8565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8566 fi
8567 ;;
8568
8569osf3* | osf4* | osf5*)
8570 lt_cv_deplibs_check_method=pass_all
8571 ;;
8572
8573rdos*)
8574 lt_cv_deplibs_check_method=pass_all
8575 ;;
8576
8577solaris*)
8578 lt_cv_deplibs_check_method=pass_all
8579 ;;
8580
8581sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8582 lt_cv_deplibs_check_method=pass_all
8583 ;;
8584
8585sysv4 | sysv4.3*)
8586 case $host_vendor in
8587 motorola)
8588 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]'
8589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8590 ;;
8591 ncr)
8592 lt_cv_deplibs_check_method=pass_all
8593 ;;
8594 sequent)
8595 lt_cv_file_magic_cmd='/bin/file'
8596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8597 ;;
8598 sni)
8599 lt_cv_file_magic_cmd='/bin/file'
8600 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8601 lt_cv_file_magic_test_file=/lib/libc.so
8602 ;;
8603 siemens)
8604 lt_cv_deplibs_check_method=pass_all
8605 ;;
8606 pc)
8607 lt_cv_deplibs_check_method=pass_all
8608 ;;
8609 esac
8610 ;;
8611
8612tpf*)
8613 lt_cv_deplibs_check_method=pass_all
8614 ;;
8615os2*)
8616 lt_cv_deplibs_check_method=pass_all
8617 ;;
8618esac
8619
8620fi
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8622$as_echo "$lt_cv_deplibs_check_method" >&6; }
8623
8624file_magic_glob=
8625want_nocaseglob=no
8626if test "$build" = "$host"; then
8627 case $host_os in
8628 mingw* | pw32*)
8629 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8630 want_nocaseglob=yes
8631 else
8632 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8633 fi
8634 ;;
8635 esac
8636fi
8637
8638file_magic_cmd=$lt_cv_file_magic_cmd
8639deplibs_check_method=$lt_cv_deplibs_check_method
8640test -z "$deplibs_check_method" && deplibs_check_method=unknown
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663if test -n "$ac_tool_prefix"; then
8664 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8665set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667$as_echo_n "checking for $ac_word... " >&6; }
8668if ${ac_cv_prog_DLLTOOL+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670else
8671 if test -n "$DLLTOOL"; then
8672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685done
8686 done
8687IFS=$as_save_IFS
8688
8689fi
8690fi
8691DLLTOOL=$ac_cv_prog_DLLTOOL
8692if test -n "$DLLTOOL"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8694$as_echo "$DLLTOOL" >&6; }
8695else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697$as_echo "no" >&6; }
8698fi
8699
8700
8701fi
8702if test -z "$ac_cv_prog_DLLTOOL"; then
8703 ac_ct_DLLTOOL=$DLLTOOL
8704 # Extract the first word of "dlltool", so it can be a program name with args.
8705set dummy dlltool; ac_word=$2
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707$as_echo_n "checking for $ac_word... " >&6; }
8708if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710else
8711 if test -n "$ac_ct_DLLTOOL"; then
8712 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8713else
8714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725done
8726 done
8727IFS=$as_save_IFS
8728
8729fi
8730fi
8731ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8732if test -n "$ac_ct_DLLTOOL"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8734$as_echo "$ac_ct_DLLTOOL" >&6; }
8735else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737$as_echo "no" >&6; }
8738fi
8739
8740 if test "x$ac_ct_DLLTOOL" = x; then
8741 DLLTOOL="false"
8742 else
8743 case $cross_compiling:$ac_tool_warned in
8744yes:)
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8747ac_tool_warned=yes ;;
8748esac
8749 DLLTOOL=$ac_ct_DLLTOOL
8750 fi
8751else
8752 DLLTOOL="$ac_cv_prog_DLLTOOL"
8753fi
8754
8755test -z "$DLLTOOL" && DLLTOOL=dlltool
8756
8757
8758
8759
8760
8761
8762
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8764$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8765if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767else
8768 lt_cv_sharedlib_from_linklib_cmd='unknown'
8769
8770case $host_os in
8771cygwin* | mingw* | pw32* | cegcc*)
8772 # two different shell functions defined in ltmain.sh;
8773 # decide which one to use based on capabilities of $DLLTOOL
8774 case `$DLLTOOL --help 2>&1` in
8775 *--identify-strict*)
8776 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8777 ;;
8778 *)
8779 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8780 ;;
8781 esac
8782 ;;
8783*)
8784 # fallback: assume linklib IS sharedlib
8785 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8786 ;;
8787esac
8788
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8791$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8792sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8793test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8794
8795
8796
8797
8798
8799
8800
8801if test -n "$ac_tool_prefix"; then
8802 for ac_prog in ar
8803 do
8804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if ${ac_cv_prog_AR+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810else
8811 if test -n "$AR"; then
8812 ac_cv_prog_AR="$AR" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8824 fi
8825done
8826 done
8827IFS=$as_save_IFS
8828
8829fi
8830fi
8831AR=$ac_cv_prog_AR
8832if test -n "$AR"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8834$as_echo "$AR" >&6; }
8835else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841 test -n "$AR" && break
8842 done
8843fi
8844if test -z "$AR"; then
8845 ac_ct_AR=$AR
8846 for ac_prog in ar
8847do
8848 # Extract the first word of "$ac_prog", so it can be a program name with args.
8849set dummy $ac_prog; ac_word=$2
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if ${ac_cv_prog_ac_ct_AR+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 if test -n "$ac_ct_AR"; then
8856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865 ac_cv_prog_ac_ct_AR="$ac_prog"
8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870 done
8871IFS=$as_save_IFS
8872
8873fi
8874fi
8875ac_ct_AR=$ac_cv_prog_ac_ct_AR
8876if test -n "$ac_ct_AR"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8878$as_echo "$ac_ct_AR" >&6; }
8879else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884
8885 test -n "$ac_ct_AR" && break
8886done
8887
8888 if test "x$ac_ct_AR" = x; then
8889 AR="false"
8890 else
8891 case $cross_compiling:$ac_tool_warned in
8892yes:)
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8895ac_tool_warned=yes ;;
8896esac
8897 AR=$ac_ct_AR
8898 fi
8899fi
8900
8901: ${AR=ar}
8902: ${AR_FLAGS=cru}
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8915$as_echo_n "checking for archiver @FILE support... " >&6; }
8916if ${lt_cv_ar_at_file+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918else
8919 lt_cv_ar_at_file=no
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h. */
8922
8923int main (void)
8924{
8925
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_compile "$LINENO"; then :
8931 echo conftest.$ac_objext > conftest.lst
8932 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8934 (eval $lt_ar_try) 2>&5
8935 ac_status=$?
8936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8937 test $ac_status = 0; }
8938 if test 0 -eq "$ac_status"; then
8939 # Ensure the archiver fails upon bogus file names.
8940 rm -f conftest.$ac_objext libconftest.a
8941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8942 (eval $lt_ar_try) 2>&5
8943 ac_status=$?
8944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8945 test $ac_status = 0; }
8946 if test 0 -ne "$ac_status"; then
8947 lt_cv_ar_at_file=@
8948 fi
8949 fi
8950 rm -f conftest.* libconftest.a
8951
8952fi
8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954
8955fi
8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8957$as_echo "$lt_cv_ar_at_file" >&6; }
8958
8959if test no = "$lt_cv_ar_at_file"; then
8960 archiver_list_spec=
8961else
8962 archiver_list_spec=$lt_cv_ar_at_file
8963fi
8964
8965
8966
8967
8968
8969
8970
8971if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8973set dummy ${ac_tool_prefix}strip; ac_word=$2
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975$as_echo_n "checking for $ac_word... " >&6; }
8976if ${ac_cv_prog_STRIP+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978else
8979 if test -n "$STRIP"; then
8980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8992 fi
8993done
8994 done
8995IFS=$as_save_IFS
8996
8997fi
8998fi
8999STRIP=$ac_cv_prog_STRIP
9000if test -n "$STRIP"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9002$as_echo "$STRIP" >&6; }
9003else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
9006fi
9007
9008
9009fi
9010if test -z "$ac_cv_prog_STRIP"; then
9011 ac_ct_STRIP=$STRIP
9012 # Extract the first word of "strip", so it can be a program name with args.
9013set dummy strip; ac_word=$2
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
9016if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018else
9019 if test -n "$ac_ct_STRIP"; then
9020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9021else
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
9024do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9029 ac_cv_prog_ac_ct_STRIP="strip"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9032 fi
9033done
9034 done
9035IFS=$as_save_IFS
9036
9037fi
9038fi
9039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9040if test -n "$ac_ct_STRIP"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9042$as_echo "$ac_ct_STRIP" >&6; }
9043else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
9046fi
9047
9048 if test "x$ac_ct_STRIP" = x; then
9049 STRIP=":"
9050 else
9051 case $cross_compiling:$ac_tool_warned in
9052yes:)
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9055ac_tool_warned=yes ;;
9056esac
9057 STRIP=$ac_ct_STRIP
9058 fi
9059else
9060 STRIP="$ac_cv_prog_STRIP"
9061fi
9062
9063test -z "$STRIP" && STRIP=:
9064
9065
9066
9067
9068
9069
9070if test -n "$ac_tool_prefix"; then
9071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9072set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if ${ac_cv_prog_RANLIB+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093 done
9094IFS=$as_save_IFS
9095
9096fi
9097fi
9098RANLIB=$ac_cv_prog_RANLIB
9099if test -n "$RANLIB"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101$as_echo "$RANLIB" >&6; }
9102else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105fi
9106
9107
9108fi
9109if test -z "$ac_cv_prog_RANLIB"; then
9110 ac_ct_RANLIB=$RANLIB
9111 # Extract the first word of "ranlib", so it can be a program name with args.
9112set dummy ranlib; ac_word=$2
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
9115if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 if test -n "$ac_ct_RANLIB"; then
9119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9120else
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_ac_ct_RANLIB="ranlib"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133 done
9134IFS=$as_save_IFS
9135
9136fi
9137fi
9138ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9139if test -n "$ac_ct_RANLIB"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9141$as_echo "$ac_ct_RANLIB" >&6; }
9142else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
9145fi
9146
9147 if test "x$ac_ct_RANLIB" = x; then
9148 RANLIB=":"
9149 else
9150 case $cross_compiling:$ac_tool_warned in
9151yes:)
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9154ac_tool_warned=yes ;;
9155esac
9156 RANLIB=$ac_ct_RANLIB
9157 fi
9158else
9159 RANLIB="$ac_cv_prog_RANLIB"
9160fi
9161
9162test -z "$RANLIB" && RANLIB=:
9163
9164
9165
9166
9167
9168
9169# Determine commands to create old-style static archives.
9170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9171old_postinstall_cmds='chmod 644 $oldlib'
9172old_postuninstall_cmds=
9173
9174if test -n "$RANLIB"; then
9175 case $host_os in
9176 bitrig* | openbsd*)
9177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9178 ;;
9179 *)
9180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9181 ;;
9182 esac
9183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9184fi
9185
9186case $host_os in
9187 darwin*)
9188 lock_old_archive_extraction=yes ;;
9189 *)
9190 lock_old_archive_extraction=no ;;
9191esac
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
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# If no C compiler was specified, use CC.
9232LTCC=${LTCC-"$CC"}
9233
9234# If no C compiler flags were specified, use CFLAGS.
9235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9236
9237# Allow CC to be a program name with arguments.
9238compiler=$CC
9239
9240
9241# Check for command to grab the raw symbol name followed by C symbol from nm.
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9243$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9244if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246else
9247
9248# These are sane defaults that work on at least a few old systems.
9249# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9250
9251# Character class describing NM global symbol codes.
9252symcode='[BCDEGRST]'
9253
9254# Regexp to match symbols that can be accessed directly from C.
9255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9256
9257# Define system-specific variables.
9258case $host_os in
9259aix*)
9260 symcode='[BCDT]'
9261 ;;
9262cygwin* | mingw* | pw32* | cegcc*)
9263 symcode='[ABCDGISTW]'
9264 ;;
9265hpux*)
9266 if test ia64 = "$host_cpu"; then
9267 symcode='[ABCDEGRST]'
9268 fi
9269 ;;
9270irix* | nonstopux*)
9271 symcode='[BCDEGRST]'
9272 ;;
9273osf*)
9274 symcode='[BCDEGQRST]'
9275 ;;
9276solaris*)
9277 symcode='[BDRT]'
9278 ;;
9279sco3.2v5*)
9280 symcode='[DT]'
9281 ;;
9282sysv4.2uw2*)
9283 symcode='[DT]'
9284 ;;
9285sysv5* | sco5v6* | unixware* | OpenUNIX*)
9286 symcode='[ABDT]'
9287 ;;
9288sysv4)
9289 symcode='[DFNSTU]'
9290 ;;
9291esac
9292
9293# If we're using GNU nm, then use its standard symbol codes.
9294case `$NM -V 2>&1` in
9295*GNU* | *'with BFD'*)
9296 symcode='[ABCDGIRSTW]' ;;
9297esac
9298
9299if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9300 # Gets list of data symbols to import.
9301 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9302 # Adjust the below global symbol transforms to fixup imported variables.
9303 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9304 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9305 lt_c_name_lib_hook="\
9306 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9307 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9308else
9309 # Disable hooks by default.
9310 lt_cv_sys_global_symbol_to_import=
9311 lt_cdecl_hook=
9312 lt_c_name_hook=
9313 lt_c_name_lib_hook=
9314fi
9315
9316# Transform an extracted symbol line into a proper C declaration.
9317# Some systems (esp. on ia64) link data and code symbols differently,
9318# so use this general approach.
9319lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9320$lt_cdecl_hook\
9321" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9322" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9323
9324# Transform an extracted symbol line into symbol name and symbol address
9325lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9326$lt_c_name_hook\
9327" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9328" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9329
9330# Transform an extracted symbol line into symbol name with lib prefix and
9331# symbol address.
9332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9333$lt_c_name_lib_hook\
9334" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9335" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9336" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9337
9338# Handle CRLF in mingw tool chain
9339opt_cr=
9340case $build_os in
9341mingw*)
9342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9343 ;;
9344esac
9345
9346# Try without a prefix underscore, then with it.
9347for ac_symprfx in "" "_"; do
9348
9349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9350 symxfrm="\\1 $ac_symprfx\\2 \\2"
9351
9352 # Write the raw and C identifiers.
9353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9354 # Fake it for dumpbin and say T for any non-static function,
9355 # D for any global variable and I for any imported variable.
9356 # Also find C++ and __fastcall symbols from MSVC++,
9357 # which start with @ or ?.
9358 lt_cv_sys_global_symbol_pipe="$AWK '"\
9359" {last_section=section; section=\$ 3};"\
9360" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9361" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9362" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9363" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9364" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9365" \$ 0!~/External *\|/{next};"\
9366" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9367" {if(hide[section]) next};"\
9368" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9369" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9370" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9371" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9372" ' prfx=^$ac_symprfx"
9373 else
9374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9375 fi
9376 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9377
9378 # Check to see that the pipe works correctly.
9379 pipe_works=no
9380
9381 rm -f conftest*
9382 cat > conftest.$ac_ext <<_LT_EOF
9383#ifdef __cplusplus
9384extern "C" {
9385#endif
9386char nm_test_var;
9387void nm_test_func(void);
9388void nm_test_func(void){}
9389#ifdef __cplusplus
9390}
9391#endif
9392int main(){nm_test_var='a';nm_test_func();return(0);}
9393_LT_EOF
9394
9395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9396 (eval $ac_compile) 2>&5
9397 ac_status=$?
9398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9399 test $ac_status = 0; }; then
9400 # Now try to grab the symbols.
9401 nlist=conftest.nm
9402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9403 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9404 ac_status=$?
9405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9406 test $ac_status = 0; } && test -s "$nlist"; then
9407 # Try sorting and uniquifying the output.
9408 if sort "$nlist" | uniq > "$nlist"T; then
9409 mv -f "$nlist"T "$nlist"
9410 else
9411 rm -f "$nlist"T
9412 fi
9413
9414 # Make sure that we snagged all the symbols we need.
9415 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9416 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9417 cat <<_LT_EOF > conftest.$ac_ext
9418/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9419#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9420/* DATA imports from DLLs on WIN32 can't be const, because runtime
9421 relocations are performed -- see ld's documentation on pseudo-relocs. */
9422# define LT_DLSYM_CONST
9423#elif defined __osf__
9424/* This system does not cope well with relocations in const data. */
9425# define LT_DLSYM_CONST
9426#else
9427# define LT_DLSYM_CONST const
9428#endif
9429
9430#ifdef __cplusplus
9431extern "C" {
9432#endif
9433
9434_LT_EOF
9435 # Now generate the symbol file.
9436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9437
9438 cat <<_LT_EOF >> conftest.$ac_ext
9439
9440/* The mapping between symbol names and symbols. */
9441LT_DLSYM_CONST struct {
9442 const char *name;
9443 void *address;
9444}
9445lt__PROGRAM__LTX_preloaded_symbols[] =
9446{
9447 { "@PROGRAM@", (void *) 0 },
9448_LT_EOF
9449 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9450 cat <<\_LT_EOF >> conftest.$ac_ext
9451 {0, (void *) 0}
9452};
9453
9454/* This works around a problem in FreeBSD linker */
9455#ifdef FREEBSD_WORKAROUND
9456static const void *lt_preloaded_setup() {
9457 return lt__PROGRAM__LTX_preloaded_symbols;
9458}
9459#endif
9460
9461#ifdef __cplusplus
9462}
9463#endif
9464_LT_EOF
9465 # Now try linking the two files.
9466 mv -f conftest.$ac_objext conftstm.$ac_objext
9467 lt_globsym_save_LIBS=$LIBS
9468 lt_globsym_save_CFLAGS=$CFLAGS
9469 LIBS=conftstm.$ac_objext
9470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9472 (eval $ac_link) 2>&5
9473 ac_status=$?
9474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9475 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9476 pipe_works=yes
9477 fi
9478 LIBS=$lt_globsym_save_LIBS
9479 CFLAGS=$lt_globsym_save_CFLAGS
9480 else
9481 echo "cannot find nm_test_func in $nlist" >&5
9482 fi
9483 else
9484 echo "cannot find nm_test_var in $nlist" >&5
9485 fi
9486 else
9487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9488 fi
9489 else
9490 echo "$progname: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 fi
9493 rm -rf conftest* conftst*
9494
9495 # Do not use the global_symbol_pipe unless it works.
9496 if test yes = "$pipe_works"; then
9497 break
9498 else
9499 lt_cv_sys_global_symbol_pipe=
9500 fi
9501done
9502
9503fi
9504
9505if test -z "$lt_cv_sys_global_symbol_pipe"; then
9506 lt_cv_sys_global_symbol_to_cdecl=
9507fi
9508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9510$as_echo "failed" >&6; }
9511else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9513$as_echo "ok" >&6; }
9514fi
9515
9516# Response file support.
9517if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9518 nm_file_list_spec='@'
9519elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9520 nm_file_list_spec='@'
9521fi
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9560$as_echo_n "checking for sysroot... " >&6; }
9561
9562# Check whether --with-sysroot was given.
9563if test "${with_sysroot+set}" = set; then :
9564 withval=$with_sysroot;
9565else
9566 with_sysroot=no
9567fi
9568
9569
9570lt_sysroot=
9571case $with_sysroot in #(
9572 yes)
9573 if test yes = "$GCC"; then
9574 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9575 fi
9576 ;; #(
9577 /*)
9578 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9579 ;; #(
9580 no|'')
9581 ;; #(
9582 *)
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9584$as_echo "$with_sysroot" >&6; }
9585 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9586 ;;
9587esac
9588
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9590$as_echo "${lt_sysroot:-no}" >&6; }
9591
9592
9593
9594
9595
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9597$as_echo_n "checking for a working dd... " >&6; }
9598if ${ac_cv_path_lt_DD+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600else
9601 printf 0123456789abcdef0123456789abcdef >conftest.i
9602cat conftest.i conftest.i >conftest2.i
9603: ${lt_DD:=$DD}
9604if test -z "$lt_DD"; then
9605 ac_path_lt_DD_found=false
9606 # Loop through the user's path and test for each of PROGNAME-LIST
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608for as_dir in $PATH
9609do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_prog in dd; do
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9615 as_fn_executable_p "$ac_path_lt_DD" || continue
9616if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9617 cmp -s conftest.i conftest.out \
9618 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9619fi
9620 $ac_path_lt_DD_found && break 3
9621 done
9622 done
9623 done
9624IFS=$as_save_IFS
9625 if test -z "$ac_cv_path_lt_DD"; then
9626 :
9627 fi
9628else
9629 ac_cv_path_lt_DD=$lt_DD
9630fi
9631
9632rm -f conftest.i conftest2.i conftest.out
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9635$as_echo "$ac_cv_path_lt_DD" >&6; }
9636
9637
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9639$as_echo_n "checking how to truncate binary pipes... " >&6; }
9640if ${lt_cv_truncate_bin+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642else
9643 printf 0123456789abcdef0123456789abcdef >conftest.i
9644cat conftest.i conftest.i >conftest2.i
9645lt_cv_truncate_bin=
9646if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9647 cmp -s conftest.i conftest.out \
9648 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9649fi
9650rm -f conftest.i conftest2.i conftest.out
9651test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9652fi
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9654$as_echo "$lt_cv_truncate_bin" >&6; }
9655
9656
9657
9658
9659
9660
9661
9662# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9663func_cc_basename ()
9664{
9665 for cc_temp in $*""; do
9666 case $cc_temp in
9667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9669 \-*) ;;
9670 *) break;;
9671 esac
9672 done
9673 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9674}
9675
9676# Check whether --enable-libtool-lock was given.
9677if test "${enable_libtool_lock+set}" = set; then :
9678 enableval=$enable_libtool_lock;
9679fi
9680
9681test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9682
9683# Some flags need to be propagated to the compiler or linker for good
9684# libtool support.
9685case $host in
9686ia64-*-hpux*)
9687 # Find out what ABI is being produced by ac_compile, and set mode
9688 # options accordingly.
9689 echo 'int i;' > conftest.$ac_ext
9690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9691 (eval $ac_compile) 2>&5
9692 ac_status=$?
9693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9694 test $ac_status = 0; }; then
9695 case `/usr/bin/file conftest.$ac_objext` in
9696 *ELF-32*)
9697 HPUX_IA64_MODE=32
9698 ;;
9699 *ELF-64*)
9700 HPUX_IA64_MODE=64
9701 ;;
9702 esac
9703 fi
9704 rm -rf conftest*
9705 ;;
9706*-*-irix6*)
9707 # Find out what ABI is being produced by ac_compile, and set linker
9708 # options accordingly.
9709 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9711 (eval $ac_compile) 2>&5
9712 ac_status=$?
9713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9714 test $ac_status = 0; }; then
9715 if test yes = "$lt_cv_prog_gnu_ld"; then
9716 case `/usr/bin/file conftest.$ac_objext` in
9717 *32-bit*)
9718 LD="${LD-ld} -melf32bsmip"
9719 ;;
9720 *N32*)
9721 LD="${LD-ld} -melf32bmipn32"
9722 ;;
9723 *64-bit*)
9724 LD="${LD-ld} -melf64bmip"
9725 ;;
9726 esac
9727 else
9728 case `/usr/bin/file conftest.$ac_objext` in
9729 *32-bit*)
9730 LD="${LD-ld} -32"
9731 ;;
9732 *N32*)
9733 LD="${LD-ld} -n32"
9734 ;;
9735 *64-bit*)
9736 LD="${LD-ld} -64"
9737 ;;
9738 esac
9739 fi
9740 fi
9741 rm -rf conftest*
9742 ;;
9743
9744mips64*-*linux*)
9745 # Find out what ABI is being produced by ac_compile, and set linker
9746 # options accordingly.
9747 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9749 (eval $ac_compile) 2>&5
9750 ac_status=$?
9751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9752 test $ac_status = 0; }; then
9753 emul=elf
9754 case `/usr/bin/file conftest.$ac_objext` in
9755 *32-bit*)
9756 emul="${emul}32"
9757 ;;
9758 *64-bit*)
9759 emul="${emul}64"
9760 ;;
9761 esac
9762 case `/usr/bin/file conftest.$ac_objext` in
9763 *MSB*)
9764 emul="${emul}btsmip"
9765 ;;
9766 *LSB*)
9767 emul="${emul}ltsmip"
9768 ;;
9769 esac
9770 case `/usr/bin/file conftest.$ac_objext` in
9771 *N32*)
9772 emul="${emul}n32"
9773 ;;
9774 esac
9775 LD="${LD-ld} -m $emul"
9776 fi
9777 rm -rf conftest*
9778 ;;
9779
9780x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9781s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9782 # Find out what ABI is being produced by ac_compile, and set linker
9783 # options accordingly. Note that the listed cases only cover the
9784 # situations where additional linker options are needed (such as when
9785 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9786 # vice versa); the common cases where no linker options are needed do
9787 # not appear in the list.
9788 echo 'int i;' > conftest.$ac_ext
9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9790 (eval $ac_compile) 2>&5
9791 ac_status=$?
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }; then
9794 case `/usr/bin/file conftest.o` in
9795 *32-bit*)
9796 case $host in
9797 x86_64-*kfreebsd*-gnu)
9798 LD="${LD-ld} -m elf_i386_fbsd"
9799 ;;
9800 x86_64-*linux*)
9801 case `/usr/bin/file conftest.o` in
9802 *x86-64*)
9803 LD="${LD-ld} -m elf32_x86_64"
9804 ;;
9805 *)
9806 LD="${LD-ld} -m elf_i386"
9807 ;;
9808 esac
9809 ;;
9810 powerpc64le-*linux*)
9811 LD="${LD-ld} -m elf32lppclinux"
9812 ;;
9813 powerpc64-*linux*)
9814 LD="${LD-ld} -m elf32ppclinux"
9815 ;;
9816 s390x-*linux*)
9817 LD="${LD-ld} -m elf_s390"
9818 ;;
9819 sparc64-*linux*)
9820 LD="${LD-ld} -m elf32_sparc"
9821 ;;
9822 esac
9823 ;;
9824 *64-bit*)
9825 case $host in
9826 x86_64-*kfreebsd*-gnu)
9827 LD="${LD-ld} -m elf_x86_64_fbsd"
9828 ;;
9829 x86_64-*linux*)
9830 LD="${LD-ld} -m elf_x86_64"
9831 ;;
9832 powerpcle-*linux*)
9833 LD="${LD-ld} -m elf64lppc"
9834 ;;
9835 powerpc-*linux*)
9836 LD="${LD-ld} -m elf64ppc"
9837 ;;
9838 s390*-*linux*|s390*-*tpf*)
9839 LD="${LD-ld} -m elf64_s390"
9840 ;;
9841 sparc*-*linux*)
9842 LD="${LD-ld} -m elf64_sparc"
9843 ;;
9844 esac
9845 ;;
9846 esac
9847 fi
9848 rm -rf conftest*
9849 ;;
9850
9851*-*-sco3.2v5*)
9852 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9853 SAVE_CFLAGS=$CFLAGS
9854 CFLAGS="$CFLAGS -belf"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9856$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9857if ${lt_cv_cc_needs_belf+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859else
9860 ac_ext=c
9861ac_cpp='$CPP $CPPFLAGS'
9862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864ac_compiler_gnu=$ac_cv_c_compiler_gnu
9865
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h. */
9868
9869int main (void)
9870{
9871
9872 ;
9873 return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877 lt_cv_cc_needs_belf=yes
9878else
9879 lt_cv_cc_needs_belf=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 ac_ext=c
9884ac_cpp='$CPP $CPPFLAGS'
9885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9887ac_compiler_gnu=$ac_cv_c_compiler_gnu
9888
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9891$as_echo "$lt_cv_cc_needs_belf" >&6; }
9892 if test yes != "$lt_cv_cc_needs_belf"; then
9893 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9894 CFLAGS=$SAVE_CFLAGS
9895 fi
9896 ;;
9897*-*solaris*)
9898 # Find out what ABI is being produced by ac_compile, and set linker
9899 # options accordingly.
9900 echo 'int i;' > conftest.$ac_ext
9901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9902 (eval $ac_compile) 2>&5
9903 ac_status=$?
9904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9905 test $ac_status = 0; }; then
9906 case `/usr/bin/file conftest.o` in
9907 *64-bit*)
9908 case $lt_cv_prog_gnu_ld in
9909 yes*)
9910 case $host in
9911 i?86-*-solaris*|x86_64-*-solaris*)
9912 LD="${LD-ld} -m elf_x86_64"
9913 ;;
9914 sparc*-*-solaris*)
9915 LD="${LD-ld} -m elf64_sparc"
9916 ;;
9917 esac
9918 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9919 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9920 LD=${LD-ld}_sol2
9921 fi
9922 ;;
9923 *)
9924 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9925 LD="${LD-ld} -64"
9926 fi
9927 ;;
9928 esac
9929 ;;
9930 esac
9931 fi
9932 rm -rf conftest*
9933 ;;
9934esac
9935
9936need_locks=$enable_libtool_lock
9937
9938if test -n "$ac_tool_prefix"; then
9939 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9940set dummy ${ac_tool_prefix}mt; ac_word=$2
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942$as_echo_n "checking for $ac_word... " >&6; }
9943if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945else
9946 if test -n "$MANIFEST_TOOL"; then
9947 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9948else
9949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950for as_dir in $PATH
9951do
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9959 fi
9960done
9961 done
9962IFS=$as_save_IFS
9963
9964fi
9965fi
9966MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9967if test -n "$MANIFEST_TOOL"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9969$as_echo "$MANIFEST_TOOL" >&6; }
9970else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972$as_echo "no" >&6; }
9973fi
9974
9975
9976fi
9977if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9978 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9979 # Extract the first word of "mt", so it can be a program name with args.
9980set dummy mt; ac_word=$2
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982$as_echo_n "checking for $ac_word... " >&6; }
9983if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985else
9986 if test -n "$ac_ct_MANIFEST_TOOL"; then
9987 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9988else
9989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990for as_dir in $PATH
9991do
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
9999 fi
10000done
10001 done
10002IFS=$as_save_IFS
10003
10004fi
10005fi
10006ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10007if test -n "$ac_ct_MANIFEST_TOOL"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10009$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10010else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012$as_echo "no" >&6; }
10013fi
10014
10015 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10016 MANIFEST_TOOL=":"
10017 else
10018 case $cross_compiling:$ac_tool_warned in
10019yes:)
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10022ac_tool_warned=yes ;;
10023esac
10024 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10025 fi
10026else
10027 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10028fi
10029
10030test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10032$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10033if ${lt_cv_path_mainfest_tool+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035else
10036 lt_cv_path_mainfest_tool=no
10037 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10038 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10039 cat conftest.err >&5
10040 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10041 lt_cv_path_mainfest_tool=yes
10042 fi
10043 rm -f conftest*
10044fi
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10046$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10047if test yes != "$lt_cv_path_mainfest_tool"; then
10048 MANIFEST_TOOL=:
10049fi
10050
10051
10052
10053
10054
10055
10056 case $host_os in
10057 rhapsody* | darwin*)
10058 if test -n "$ac_tool_prefix"; then
10059 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10060set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062$as_echo_n "checking for $ac_word... " >&6; }
10063if ${ac_cv_prog_DSYMUTIL+:} false; then :
10064 $as_echo_n "(cached) " >&6
10065else
10066 if test -n "$DSYMUTIL"; then
10067 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10068else
10069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070for as_dir in $PATH
10071do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10076 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10079 fi
10080done
10081 done
10082IFS=$as_save_IFS
10083
10084fi
10085fi
10086DSYMUTIL=$ac_cv_prog_DSYMUTIL
10087if test -n "$DSYMUTIL"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10089$as_echo "$DSYMUTIL" >&6; }
10090else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
10093fi
10094
10095
10096fi
10097if test -z "$ac_cv_prog_DSYMUTIL"; then
10098 ac_ct_DSYMUTIL=$DSYMUTIL
10099 # Extract the first word of "dsymutil", so it can be a program name with args.
10100set dummy dsymutil; ac_word=$2
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10102$as_echo_n "checking for $ac_word... " >&6; }
10103if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10104 $as_echo_n "(cached) " >&6
10105else
10106 if test -n "$ac_ct_DSYMUTIL"; then
10107 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10108else
10109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110for as_dir in $PATH
10111do
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120done
10121 done
10122IFS=$as_save_IFS
10123
10124fi
10125fi
10126ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10127if test -n "$ac_ct_DSYMUTIL"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10129$as_echo "$ac_ct_DSYMUTIL" >&6; }
10130else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132$as_echo "no" >&6; }
10133fi
10134
10135 if test "x$ac_ct_DSYMUTIL" = x; then
10136 DSYMUTIL=":"
10137 else
10138 case $cross_compiling:$ac_tool_warned in
10139yes:)
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10142ac_tool_warned=yes ;;
10143esac
10144 DSYMUTIL=$ac_ct_DSYMUTIL
10145 fi
10146else
10147 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10148fi
10149
10150 if test -n "$ac_tool_prefix"; then
10151 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10152set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154$as_echo_n "checking for $ac_word... " >&6; }
10155if ${ac_cv_prog_NMEDIT+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157else
10158 if test -n "$NMEDIT"; then
10159 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10160else
10161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162for as_dir in $PATH
10163do
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10171 fi
10172done
10173 done
10174IFS=$as_save_IFS
10175
10176fi
10177fi
10178NMEDIT=$ac_cv_prog_NMEDIT
10179if test -n "$NMEDIT"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10181$as_echo "$NMEDIT" >&6; }
10182else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184$as_echo "no" >&6; }
10185fi
10186
10187
10188fi
10189if test -z "$ac_cv_prog_NMEDIT"; then
10190 ac_ct_NMEDIT=$NMEDIT
10191 # Extract the first word of "nmedit", so it can be a program name with args.
10192set dummy nmedit; ac_word=$2
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197else
10198 if test -n "$ac_ct_NMEDIT"; then
10199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10200else
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10211 fi
10212done
10213 done
10214IFS=$as_save_IFS
10215
10216fi
10217fi
10218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10219if test -n "$ac_ct_NMEDIT"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10221$as_echo "$ac_ct_NMEDIT" >&6; }
10222else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
10225fi
10226
10227 if test "x$ac_ct_NMEDIT" = x; then
10228 NMEDIT=":"
10229 else
10230 case $cross_compiling:$ac_tool_warned in
10231yes:)
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10234ac_tool_warned=yes ;;
10235esac
10236 NMEDIT=$ac_ct_NMEDIT
10237 fi
10238else
10239 NMEDIT="$ac_cv_prog_NMEDIT"
10240fi
10241
10242 if test -n "$ac_tool_prefix"; then
10243 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10244set dummy ${ac_tool_prefix}lipo; ac_word=$2
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246$as_echo_n "checking for $ac_word... " >&6; }
10247if ${ac_cv_prog_LIPO+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249else
10250 if test -n "$LIPO"; then
10251 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10252else
10253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254for as_dir in $PATH
10255do
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10263 fi
10264done
10265 done
10266IFS=$as_save_IFS
10267
10268fi
10269fi
10270LIPO=$ac_cv_prog_LIPO
10271if test -n "$LIPO"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10273$as_echo "$LIPO" >&6; }
10274else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276$as_echo "no" >&6; }
10277fi
10278
10279
10280fi
10281if test -z "$ac_cv_prog_LIPO"; then
10282 ac_ct_LIPO=$LIPO
10283 # Extract the first word of "lipo", so it can be a program name with args.
10284set dummy lipo; ac_word=$2
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286$as_echo_n "checking for $ac_word... " >&6; }
10287if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10288 $as_echo_n "(cached) " >&6
10289else
10290 if test -n "$ac_ct_LIPO"; then
10291 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10292else
10293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294for as_dir in $PATH
10295do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_ac_ct_LIPO="lipo"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10303 fi
10304done
10305 done
10306IFS=$as_save_IFS
10307
10308fi
10309fi
10310ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10311if test -n "$ac_ct_LIPO"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10313$as_echo "$ac_ct_LIPO" >&6; }
10314else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316$as_echo "no" >&6; }
10317fi
10318
10319 if test "x$ac_ct_LIPO" = x; then
10320 LIPO=":"
10321 else
10322 case $cross_compiling:$ac_tool_warned in
10323yes:)
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10326ac_tool_warned=yes ;;
10327esac
10328 LIPO=$ac_ct_LIPO
10329 fi
10330else
10331 LIPO="$ac_cv_prog_LIPO"
10332fi
10333
10334 if test -n "$ac_tool_prefix"; then
10335 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10336set dummy ${ac_tool_prefix}otool; ac_word=$2
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338$as_echo_n "checking for $ac_word... " >&6; }
10339if ${ac_cv_prog_OTOOL+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341else
10342 if test -n "$OTOOL"; then
10343 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10344else
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10355 fi
10356done
10357 done
10358IFS=$as_save_IFS
10359
10360fi
10361fi
10362OTOOL=$ac_cv_prog_OTOOL
10363if test -n "$OTOOL"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10365$as_echo "$OTOOL" >&6; }
10366else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
10369fi
10370
10371
10372fi
10373if test -z "$ac_cv_prog_OTOOL"; then
10374 ac_ct_OTOOL=$OTOOL
10375 # Extract the first word of "otool", so it can be a program name with args.
10376set dummy otool; ac_word=$2
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
10379if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381else
10382 if test -n "$ac_ct_OTOOL"; then
10383 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392 ac_cv_prog_ac_ct_OTOOL="otool"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10395 fi
10396done
10397 done
10398IFS=$as_save_IFS
10399
10400fi
10401fi
10402ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10403if test -n "$ac_ct_OTOOL"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10405$as_echo "$ac_ct_OTOOL" >&6; }
10406else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409fi
10410
10411 if test "x$ac_ct_OTOOL" = x; then
10412 OTOOL=":"
10413 else
10414 case $cross_compiling:$ac_tool_warned in
10415yes:)
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10418ac_tool_warned=yes ;;
10419esac
10420 OTOOL=$ac_ct_OTOOL
10421 fi
10422else
10423 OTOOL="$ac_cv_prog_OTOOL"
10424fi
10425
10426 if test -n "$ac_tool_prefix"; then
10427 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10428set dummy ${ac_tool_prefix}otool64; ac_word=$2
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430$as_echo_n "checking for $ac_word... " >&6; }
10431if ${ac_cv_prog_OTOOL64+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434 if test -n "$OTOOL64"; then
10435 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10436else
10437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10447 fi
10448done
10449 done
10450IFS=$as_save_IFS
10451
10452fi
10453fi
10454OTOOL64=$ac_cv_prog_OTOOL64
10455if test -n "$OTOOL64"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10457$as_echo "$OTOOL64" >&6; }
10458else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460$as_echo "no" >&6; }
10461fi
10462
10463
10464fi
10465if test -z "$ac_cv_prog_OTOOL64"; then
10466 ac_ct_OTOOL64=$OTOOL64
10467 # Extract the first word of "otool64", so it can be a program name with args.
10468set dummy otool64; ac_word=$2
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470$as_echo_n "checking for $ac_word... " >&6; }
10471if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473else
10474 if test -n "$ac_ct_OTOOL64"; then
10475 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10476else
10477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in $PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_ac_ct_OTOOL64="otool64"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488done
10489 done
10490IFS=$as_save_IFS
10491
10492fi
10493fi
10494ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10495if test -n "$ac_ct_OTOOL64"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10497$as_echo "$ac_ct_OTOOL64" >&6; }
10498else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500$as_echo "no" >&6; }
10501fi
10502
10503 if test "x$ac_ct_OTOOL64" = x; then
10504 OTOOL64=":"
10505 else
10506 case $cross_compiling:$ac_tool_warned in
10507yes:)
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10510ac_tool_warned=yes ;;
10511esac
10512 OTOOL64=$ac_ct_OTOOL64
10513 fi
10514else
10515 OTOOL64="$ac_cv_prog_OTOOL64"
10516fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10545$as_echo_n "checking for -single_module linker flag... " >&6; }
10546if ${lt_cv_apple_cc_single_mod+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548else
10549 lt_cv_apple_cc_single_mod=no
10550 if test -z "$LT_MULTI_MODULE"; then
10551 # By default we will add the -single_module flag. You can override
10552 # by either setting the environment variable LT_MULTI_MODULE
10553 # non-empty at configure time, or by adding -multi_module to the
10554 # link flags.
10555 rm -rf libconftest.dylib*
10556 echo "int foo(void){return 1;}" > conftest.c
10557 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10558-dynamiclib -Wl,-single_module conftest.c" >&5
10559 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10560 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10561 _lt_result=$?
10562 # If there is a non-empty error log, and "single_module"
10563 # appears in it, assume the flag caused a linker warning
10564 if test -s conftest.err && $GREP single_module conftest.err; then
10565 cat conftest.err >&5
10566 # Otherwise, if the output was created with a 0 exit code from
10567 # the compiler, it worked.
10568 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10569 lt_cv_apple_cc_single_mod=yes
10570 else
10571 cat conftest.err >&5
10572 fi
10573 rm -rf libconftest.dylib*
10574 rm -f conftest.*
10575 fi
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10578$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10579
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10582if ${lt_cv_ld_exported_symbols_list+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584else
10585 lt_cv_ld_exported_symbols_list=no
10586 save_LDFLAGS=$LDFLAGS
10587 echo "_main" > conftest.sym
10588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h. */
10591
10592int main (void)
10593{
10594
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599if ac_fn_c_try_link "$LINENO"; then :
10600 lt_cv_ld_exported_symbols_list=yes
10601else
10602 lt_cv_ld_exported_symbols_list=no
10603fi
10604rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LDFLAGS=$save_LDFLAGS
10607
10608fi
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10610$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10611
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10613$as_echo_n "checking for -force_load linker flag... " >&6; }
10614if ${lt_cv_ld_force_load+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616else
10617 lt_cv_ld_force_load=no
10618 cat > conftest.c << _LT_EOF
10619int forced_loaded() { return 2;}
10620_LT_EOF
10621 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10622 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10623 echo "$AR cru libconftest.a conftest.o" >&5
10624 $AR cru libconftest.a conftest.o 2>&5
10625 echo "$RANLIB libconftest.a" >&5
10626 $RANLIB libconftest.a 2>&5
10627 cat > conftest.c << _LT_EOF
10628int main() { return 0;}
10629_LT_EOF
10630 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10631 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10632 _lt_result=$?
10633 if test -s conftest.err && $GREP force_load conftest.err; then
10634 cat conftest.err >&5
10635 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10636 lt_cv_ld_force_load=yes
10637 else
10638 cat conftest.err >&5
10639 fi
10640 rm -f conftest.err libconftest.a conftest conftest.c
10641 rm -rf conftest.dSYM
10642
10643fi
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10645$as_echo "$lt_cv_ld_force_load" >&6; }
10646 case $host_os in
10647 rhapsody* | darwin1.[012])
10648 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10649 darwin1.*)
10650 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10651 darwin*) # darwin 5.x on
10652 # if running on 10.5 or later, the deployment target defaults
10653 # to the OS version, if on x86, and 10.4, the deployment
10654 # target defaults to 10.4. Don't you love it?
10655 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10656 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10657 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10658 10.[012][,.]*)
10659 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10660 10.*)
10661 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10662 esac
10663 ;;
10664 esac
10665 if test yes = "$lt_cv_apple_cc_single_mod"; then
10666 _lt_dar_single_mod='$single_module'
10667 fi
10668 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10669 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10670 else
10671 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10672 fi
10673 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10674 _lt_dsymutil='~$DSYMUTIL $lib || :'
10675 else
10676 _lt_dsymutil=
10677 fi
10678 ;;
10679 esac
10680
10681# func_munge_path_list VARIABLE PATH
10682# -----------------------------------
10683# VARIABLE is name of variable containing _space_ separated list of
10684# directories to be munged by the contents of PATH, which is string
10685# having a format:
10686# "DIR[:DIR]:"
10687# string "DIR[ DIR]" will be prepended to VARIABLE
10688# ":DIR[:DIR]"
10689# string "DIR[ DIR]" will be appended to VARIABLE
10690# "DIRP[:DIRP]::[DIRA:]DIRA"
10691# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10692# "DIRA[ DIRA]" will be appended to VARIABLE
10693# "DIR[:DIR]"
10694# VARIABLE will be replaced by "DIR[ DIR]"
10695func_munge_path_list ()
10696{
10697 case x$2 in
10698 x)
10699 ;;
10700 *:)
10701 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10702 ;;
10703 x:*)
10704 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10705 ;;
10706 *::*)
10707 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10708 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10709 ;;
10710 *)
10711 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10712 ;;
10713 esac
10714}
10715
Alex Deymo486467e2017-12-19 19:04:07 +010010716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10717$as_echo_n "checking for ANSI C header files... " >&6; }
10718if ${ac_cv_header_stdc+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720else
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h. */
10723#include <stdlib.h>
10724#include <stdarg.h>
10725#include <string.h>
10726#include <float.h>
10727
10728int main (void)
10729{
10730
10731 ;
10732 return 0;
10733}
10734_ACEOF
10735if ac_fn_c_try_compile "$LINENO"; then :
10736 ac_cv_header_stdc=yes
10737else
10738 ac_cv_header_stdc=no
10739fi
10740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10741
10742if test $ac_cv_header_stdc = yes; then
10743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h. */
10746#include <string.h>
10747
10748_ACEOF
10749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10750 $EGREP "memchr" >/dev/null 2>&1; then :
10751
10752else
10753 ac_cv_header_stdc=no
10754fi
10755rm -f conftest*
10756
10757fi
10758
10759if test $ac_cv_header_stdc = yes; then
10760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762/* end confdefs.h. */
10763#include <stdlib.h>
10764
10765_ACEOF
10766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10767 $EGREP "free" >/dev/null 2>&1; then :
10768
10769else
10770 ac_cv_header_stdc=no
10771fi
10772rm -f conftest*
10773
10774fi
10775
10776if test $ac_cv_header_stdc = yes; then
10777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10778 if test "$cross_compiling" = yes; then :
10779 :
10780else
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782/* end confdefs.h. */
10783#include <ctype.h>
10784#include <stdlib.h>
10785#if ((' ' & 0x0FF) == 0x020)
10786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10788#else
10789# define ISLOWER(c) \
10790 (('a' <= (c) && (c) <= 'i') \
10791 || ('j' <= (c) && (c) <= 'r') \
10792 || ('s' <= (c) && (c) <= 'z'))
10793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10794#endif
10795
10796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10797int
10798main ()
10799{
10800 int i;
10801 for (i = 0; i < 256; i++)
10802 if (XOR (islower (i), ISLOWER (i))
10803 || toupper (i) != TOUPPER (i))
10804 return 2;
10805 return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_run "$LINENO"; then :
10809
10810else
10811 ac_cv_header_stdc=no
10812fi
10813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10814 conftest.$ac_objext conftest.beam conftest.$ac_ext
10815fi
10816
10817fi
10818fi
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10820$as_echo "$ac_cv_header_stdc" >&6; }
10821if test $ac_cv_header_stdc = yes; then
10822
10823$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10824
10825fi
10826
10827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10828for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10829 inttypes.h stdint.h unistd.h
10830do :
10831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10833"
10834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10835 cat >>confdefs.h <<_ACEOF
10836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837_ACEOF
10838
10839fi
10840
10841done
10842
10843
Elliott Hughes82be86d2017-09-20 17:00:17 -070010844for ac_header in dlfcn.h
10845do :
10846 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10847"
10848if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10849 cat >>confdefs.h <<_ACEOF
10850#define HAVE_DLFCN_H 1
10851_ACEOF
10852
10853fi
10854
10855done
10856
10857# ------------------------------------ #
10858# Determine libtool default behavior #
10859# ------------------------------------ #
10860
10861#
10862# Default behavior is to enable shared and static libraries on systems
10863# where libtool knows how to build both library versions, and does not
10864# require separate configuration and build runs for each flavor.
10865#
10866
10867xc_lt_want_enable_shared='yes'
10868xc_lt_want_enable_static='yes'
10869
10870#
10871# User may have disabled shared or static libraries.
10872#
10873case "x$enable_shared" in # (
10874 xno)
10875 xc_lt_want_enable_shared='no'
10876 ;;
10877esac
10878case "x$enable_static" in # (
10879 xno)
10880 xc_lt_want_enable_static='no'
10881 ;;
10882esac
10883if test "x$xc_lt_want_enable_shared" = 'xno' &&
10884 test "x$xc_lt_want_enable_static" = 'xno'; then
10885 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10886fi
10887
10888#
10889# Default behavior on systems that require independent configuration
10890# and build runs for shared and static is to enable shared libraries
10891# and disable static ones. On these systems option '--disable-shared'
10892# must be used in order to build a proper static library.
10893#
10894
10895if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10896 test "x$xc_lt_want_enable_static" = 'xyes'; then
10897 case $host_os in # (
10898 pw32* | cegcc* | os2* | aix*)
10899 xc_lt_want_enable_static='no'
10900 ;;
10901 esac
10902fi
10903
10904#
10905# Make libtool aware of current shared and static library preferences
10906# taking in account that, depending on host characteristics, libtool
10907# may modify these option preferences later in this configure script.
10908#
10909
10910enable_shared=$xc_lt_want_enable_shared
10911enable_static=$xc_lt_want_enable_static
10912
10913#
10914# Default behavior is to build PIC objects for shared libraries and
10915# non-PIC objects for static libraries.
10916#
10917
10918xc_lt_want_with_pic='default'
10919
10920#
10921# User may have specified PIC preference.
10922#
10923
10924case "x$with_pic" in # ((
10925 xno)
10926 xc_lt_want_with_pic='no'
10927 ;;
10928 xyes)
10929 xc_lt_want_with_pic='yes'
10930 ;;
10931esac
10932
10933#
10934# Default behavior on some systems where building a shared library out
10935# of non-PIC compiled objects will fail with following linker error
10936# "relocation R_X86_64_32 can not be used when making a shared object"
10937# is to build PIC objects even for static libraries. This behavior may
10938# be overridden using 'configure --disable-shared --without-pic'.
10939#
10940
10941if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10942 case $host_cpu in # (
10943 x86_64 | amd64 | ia64)
10944 case $host_os in # (
10945 linux* | freebsd*)
10946 xc_lt_want_with_pic='yes'
10947 ;;
10948 esac
10949 ;;
10950 esac
10951fi
10952
10953#
10954# Make libtool aware of current PIC preference taking in account that,
10955# depending on host characteristics, libtool may modify PIC default
10956# behavior to fit host system idiosyncrasies later in this script.
10957#
10958
10959with_pic=$xc_lt_want_with_pic
10960
10961## ----------------------- ##
10962## Start of libtool code ##
10963## ----------------------- ##
10964
10965
10966
10967
10968# Set options
10969enable_win32_dll=yes
10970
10971case $host in
10972*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10973 if test -n "$ac_tool_prefix"; then
10974 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10975set dummy ${ac_tool_prefix}as; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
10978if ${ac_cv_prog_AS+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$AS"; then
10982 ac_cv_prog_AS="$AS" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_AS="${ac_tool_prefix}as"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996 done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001AS=$ac_cv_prog_AS
11002if test -n "$AS"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11004$as_echo "$AS" >&6; }
11005else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010
11011fi
11012if test -z "$ac_cv_prog_AS"; then
11013 ac_ct_AS=$AS
11014 # Extract the first word of "as", so it can be a program name with args.
11015set dummy as; ac_word=$2
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017$as_echo_n "checking for $ac_word... " >&6; }
11018if ${ac_cv_prog_ac_ct_AS+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020else
11021 if test -n "$ac_ct_AS"; then
11022 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11023else
11024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in $PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11031 ac_cv_prog_ac_ct_AS="as"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11034 fi
11035done
11036 done
11037IFS=$as_save_IFS
11038
11039fi
11040fi
11041ac_ct_AS=$ac_cv_prog_ac_ct_AS
11042if test -n "$ac_ct_AS"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11044$as_echo "$ac_ct_AS" >&6; }
11045else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
11048fi
11049
11050 if test "x$ac_ct_AS" = x; then
11051 AS="false"
11052 else
11053 case $cross_compiling:$ac_tool_warned in
11054yes:)
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11057ac_tool_warned=yes ;;
11058esac
11059 AS=$ac_ct_AS
11060 fi
11061else
11062 AS="$ac_cv_prog_AS"
11063fi
11064
11065 if test -n "$ac_tool_prefix"; then
11066 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11067set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069$as_echo_n "checking for $ac_word... " >&6; }
11070if ${ac_cv_prog_DLLTOOL+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072else
11073 if test -n "$DLLTOOL"; then
11074 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088 done
11089IFS=$as_save_IFS
11090
11091fi
11092fi
11093DLLTOOL=$ac_cv_prog_DLLTOOL
11094if test -n "$DLLTOOL"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11096$as_echo "$DLLTOOL" >&6; }
11097else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099$as_echo "no" >&6; }
11100fi
11101
11102
11103fi
11104if test -z "$ac_cv_prog_DLLTOOL"; then
11105 ac_ct_DLLTOOL=$DLLTOOL
11106 # Extract the first word of "dlltool", so it can be a program name with args.
11107set dummy dlltool; ac_word=$2
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
11110if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11111 $as_echo_n "(cached) " >&6
11112else
11113 if test -n "$ac_ct_DLLTOOL"; then
11114 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127done
11128 done
11129IFS=$as_save_IFS
11130
11131fi
11132fi
11133ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11134if test -n "$ac_ct_DLLTOOL"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11136$as_echo "$ac_ct_DLLTOOL" >&6; }
11137else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
11140fi
11141
11142 if test "x$ac_ct_DLLTOOL" = x; then
11143 DLLTOOL="false"
11144 else
11145 case $cross_compiling:$ac_tool_warned in
11146yes:)
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149ac_tool_warned=yes ;;
11150esac
11151 DLLTOOL=$ac_ct_DLLTOOL
11152 fi
11153else
11154 DLLTOOL="$ac_cv_prog_DLLTOOL"
11155fi
11156
11157 if test -n "$ac_tool_prefix"; then
11158 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11159set dummy ${ac_tool_prefix}objdump; ac_word=$2
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
11162if ${ac_cv_prog_OBJDUMP+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164else
11165 if test -n "$OBJDUMP"; then
11166 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179done
11180 done
11181IFS=$as_save_IFS
11182
11183fi
11184fi
11185OBJDUMP=$ac_cv_prog_OBJDUMP
11186if test -n "$OBJDUMP"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11188$as_echo "$OBJDUMP" >&6; }
11189else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192fi
11193
11194
11195fi
11196if test -z "$ac_cv_prog_OBJDUMP"; then
11197 ac_ct_OBJDUMP=$OBJDUMP
11198 # Extract the first word of "objdump", so it can be a program name with args.
11199set dummy objdump; ac_word=$2
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201$as_echo_n "checking for $ac_word... " >&6; }
11202if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204else
11205 if test -n "$ac_ct_OBJDUMP"; then
11206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11207else
11208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209for as_dir in $PATH
11210do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11218 fi
11219done
11220 done
11221IFS=$as_save_IFS
11222
11223fi
11224fi
11225ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11226if test -n "$ac_ct_OBJDUMP"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11228$as_echo "$ac_ct_OBJDUMP" >&6; }
11229else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232fi
11233
11234 if test "x$ac_ct_OBJDUMP" = x; then
11235 OBJDUMP="false"
11236 else
11237 case $cross_compiling:$ac_tool_warned in
11238yes:)
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241ac_tool_warned=yes ;;
11242esac
11243 OBJDUMP=$ac_ct_OBJDUMP
11244 fi
11245else
11246 OBJDUMP="$ac_cv_prog_OBJDUMP"
11247fi
11248
11249 ;;
11250esac
11251
11252test -z "$AS" && AS=as
11253
11254
11255
11256
11257
11258test -z "$DLLTOOL" && DLLTOOL=dlltool
11259
11260
11261
11262
11263
11264test -z "$OBJDUMP" && OBJDUMP=objdump
11265
11266
11267
11268
11269
11270
11271
11272 enable_dlopen=no
11273
11274
11275
11276 # Check whether --enable-shared was given.
11277if test "${enable_shared+set}" = set; then :
11278 enableval=$enable_shared; p=${PACKAGE-default}
11279 case $enableval in
11280 yes) enable_shared=yes ;;
11281 no) enable_shared=no ;;
11282 *)
11283 enable_shared=no
11284 # Look at the argument we got. We use all the common list separators.
11285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11286 for pkg in $enableval; do
11287 IFS=$lt_save_ifs
11288 if test "X$pkg" = "X$p"; then
11289 enable_shared=yes
11290 fi
11291 done
11292 IFS=$lt_save_ifs
11293 ;;
11294 esac
11295else
11296 enable_shared=yes
11297fi
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 # Check whether --enable-static was given.
11308if test "${enable_static+set}" = set; then :
11309 enableval=$enable_static; p=${PACKAGE-default}
11310 case $enableval in
11311 yes) enable_static=yes ;;
11312 no) enable_static=no ;;
11313 *)
11314 enable_static=no
11315 # Look at the argument we got. We use all the common list separators.
11316 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11317 for pkg in $enableval; do
11318 IFS=$lt_save_ifs
11319 if test "X$pkg" = "X$p"; then
11320 enable_static=yes
11321 fi
11322 done
11323 IFS=$lt_save_ifs
11324 ;;
11325 esac
11326else
11327 enable_static=yes
11328fi
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339# Check whether --with-pic was given.
11340if test "${with_pic+set}" = set; then :
11341 withval=$with_pic; lt_p=${PACKAGE-default}
11342 case $withval in
11343 yes|no) pic_mode=$withval ;;
11344 *)
11345 pic_mode=default
11346 # Look at the argument we got. We use all the common list separators.
11347 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11348 for lt_pkg in $withval; do
11349 IFS=$lt_save_ifs
11350 if test "X$lt_pkg" = "X$lt_p"; then
11351 pic_mode=yes
11352 fi
11353 done
11354 IFS=$lt_save_ifs
11355 ;;
11356 esac
11357else
11358 pic_mode=default
11359fi
11360
11361
11362
11363
11364
11365
11366
11367
11368 # Check whether --enable-fast-install was given.
11369if test "${enable_fast_install+set}" = set; then :
11370 enableval=$enable_fast_install; p=${PACKAGE-default}
11371 case $enableval in
11372 yes) enable_fast_install=yes ;;
11373 no) enable_fast_install=no ;;
11374 *)
11375 enable_fast_install=no
11376 # Look at the argument we got. We use all the common list separators.
11377 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11378 for pkg in $enableval; do
11379 IFS=$lt_save_ifs
11380 if test "X$pkg" = "X$p"; then
11381 enable_fast_install=yes
11382 fi
11383 done
11384 IFS=$lt_save_ifs
11385 ;;
11386 esac
11387else
11388 enable_fast_install=yes
11389fi
11390
11391
11392
11393
11394
11395
11396
11397
11398 shared_archive_member_spec=
11399case $host,$enable_shared in
11400power*-*-aix[5-9]*,yes)
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11402$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11403
11404# Check whether --with-aix-soname was given.
11405if test "${with_aix_soname+set}" = set; then :
11406 withval=$with_aix_soname; case $withval in
11407 aix|svr4|both)
11408 ;;
11409 *)
11410 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11411 ;;
11412 esac
11413 lt_cv_with_aix_soname=$with_aix_soname
11414else
11415 if ${lt_cv_with_aix_soname+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417else
11418 lt_cv_with_aix_soname=aix
11419fi
11420
11421 with_aix_soname=$lt_cv_with_aix_soname
11422fi
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11425$as_echo "$with_aix_soname" >&6; }
11426 if test aix != "$with_aix_soname"; then
11427 # For the AIX way of multilib, we name the shared archive member
11428 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11429 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11430 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11431 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11432 if test 64 = "${OBJECT_MODE-32}"; then
11433 shared_archive_member_spec=shr_64
11434 else
11435 shared_archive_member_spec=shr
11436 fi
11437 fi
11438 ;;
11439*)
11440 with_aix_soname=aix
11441 ;;
11442esac
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453# This can be used to rebuild libtool when needed
11454LIBTOOL_DEPS=$ltmain
11455
11456# Always use our own libtool.
11457LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488test -z "$LN_S" && LN_S="ln -s"
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503if test -n "${ZSH_VERSION+set}"; then
11504 setopt NO_GLOB_SUBST
11505fi
11506
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11508$as_echo_n "checking for objdir... " >&6; }
11509if ${lt_cv_objdir+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511else
11512 rm -f .libs 2>/dev/null
11513mkdir .libs 2>/dev/null
11514if test -d .libs; then
11515 lt_cv_objdir=.libs
11516else
11517 # MS-DOS does not allow filenames that begin with a dot.
11518 lt_cv_objdir=_libs
11519fi
11520rmdir .libs 2>/dev/null
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11523$as_echo "$lt_cv_objdir" >&6; }
11524objdir=$lt_cv_objdir
11525
11526
11527
11528
11529
11530cat >>confdefs.h <<_ACEOF
11531#define LT_OBJDIR "$lt_cv_objdir/"
11532_ACEOF
11533
11534
11535
11536
11537case $host_os in
11538aix3*)
11539 # AIX sometimes has problems with the GCC collect2 program. For some
11540 # reason, if we set the COLLECT_NAMES environment variable, the problems
11541 # vanish in a puff of smoke.
11542 if test set != "${COLLECT_NAMES+set}"; then
11543 COLLECT_NAMES=
11544 export COLLECT_NAMES
11545 fi
11546 ;;
11547esac
11548
11549# Global variables:
11550ofile=libtool
11551can_build_shared=yes
11552
11553# All known linkers require a '.a' archive for static linking (except MSVC,
11554# which needs '.lib').
11555libext=a
11556
11557with_gnu_ld=$lt_cv_prog_gnu_ld
11558
11559old_CC=$CC
11560old_CFLAGS=$CFLAGS
11561
11562# Set sane defaults for various variables
11563test -z "$CC" && CC=cc
11564test -z "$LTCC" && LTCC=$CC
11565test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11566test -z "$LD" && LD=ld
11567test -z "$ac_objext" && ac_objext=o
11568
11569func_cc_basename $compiler
11570cc_basename=$func_cc_basename_result
11571
11572
11573# Only perform the check for file, if the check method requires it
11574test -z "$MAGIC_CMD" && MAGIC_CMD=file
11575case $deplibs_check_method in
11576file_magic*)
11577 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11579$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11580if ${lt_cv_path_MAGIC_CMD+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582else
11583 case $MAGIC_CMD in
11584[\\/*] | ?:[\\/]*)
11585 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11586 ;;
11587*)
11588 lt_save_MAGIC_CMD=$MAGIC_CMD
11589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11591 for ac_dir in $ac_dummy; do
11592 IFS=$lt_save_ifs
11593 test -z "$ac_dir" && ac_dir=.
11594 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11595 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11596 if test -n "$file_magic_test_file"; then
11597 case $deplibs_check_method in
11598 "file_magic "*)
11599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11600 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11602 $EGREP "$file_magic_regex" > /dev/null; then
11603 :
11604 else
11605 cat <<_LT_EOF 1>&2
11606
11607*** Warning: the command libtool uses to detect shared libraries,
11608*** $file_magic_cmd, produces output that libtool cannot recognize.
11609*** The result is that libtool may fail to recognize shared libraries
11610*** as such. This will affect the creation of libtool libraries that
11611*** depend on shared libraries, but programs linked with such libtool
11612*** libraries will work regardless of this problem. Nevertheless, you
11613*** may want to report the problem to your system manager and/or to
11614*** bug-libtool@gnu.org
11615
11616_LT_EOF
11617 fi ;;
11618 esac
11619 fi
11620 break
11621 fi
11622 done
11623 IFS=$lt_save_ifs
11624 MAGIC_CMD=$lt_save_MAGIC_CMD
11625 ;;
11626esac
11627fi
11628
11629MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11630if test -n "$MAGIC_CMD"; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11632$as_echo "$MAGIC_CMD" >&6; }
11633else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
11636fi
11637
11638
11639
11640
11641
11642if test -z "$lt_cv_path_MAGIC_CMD"; then
11643 if test -n "$ac_tool_prefix"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11645$as_echo_n "checking for file... " >&6; }
11646if ${lt_cv_path_MAGIC_CMD+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648else
11649 case $MAGIC_CMD in
11650[\\/*] | ?:[\\/]*)
11651 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11652 ;;
11653*)
11654 lt_save_MAGIC_CMD=$MAGIC_CMD
11655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11656 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11657 for ac_dir in $ac_dummy; do
11658 IFS=$lt_save_ifs
11659 test -z "$ac_dir" && ac_dir=.
11660 if test -f "$ac_dir/file"; then
11661 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11662 if test -n "$file_magic_test_file"; then
11663 case $deplibs_check_method in
11664 "file_magic "*)
11665 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11666 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11667 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11668 $EGREP "$file_magic_regex" > /dev/null; then
11669 :
11670 else
11671 cat <<_LT_EOF 1>&2
11672
11673*** Warning: the command libtool uses to detect shared libraries,
11674*** $file_magic_cmd, produces output that libtool cannot recognize.
11675*** The result is that libtool may fail to recognize shared libraries
11676*** as such. This will affect the creation of libtool libraries that
11677*** depend on shared libraries, but programs linked with such libtool
11678*** libraries will work regardless of this problem. Nevertheless, you
11679*** may want to report the problem to your system manager and/or to
11680*** bug-libtool@gnu.org
11681
11682_LT_EOF
11683 fi ;;
11684 esac
11685 fi
11686 break
11687 fi
11688 done
11689 IFS=$lt_save_ifs
11690 MAGIC_CMD=$lt_save_MAGIC_CMD
11691 ;;
11692esac
11693fi
11694
11695MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11696if test -n "$MAGIC_CMD"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11698$as_echo "$MAGIC_CMD" >&6; }
11699else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
11702fi
11703
11704
11705 else
11706 MAGIC_CMD=:
11707 fi
11708fi
11709
11710 fi
11711 ;;
11712esac
11713
11714# Use C for the default configuration in the libtool script
11715
11716lt_save_CC=$CC
11717ac_ext=c
11718ac_cpp='$CPP $CPPFLAGS'
11719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11721ac_compiler_gnu=$ac_cv_c_compiler_gnu
11722
11723
11724# Source file extension for C test sources.
11725ac_ext=c
11726
11727# Object file extension for compiled C test sources.
11728objext=o
11729objext=$objext
11730
11731# Code to be used in simple compile tests
11732lt_simple_compile_test_code="int some_variable = 0;"
11733
11734# Code to be used in simple link tests
11735lt_simple_link_test_code='int main(){return(0);}'
11736
11737
11738
11739
11740
11741
11742
11743# If no C compiler was specified, use CC.
11744LTCC=${LTCC-"$CC"}
11745
11746# If no C compiler flags were specified, use CFLAGS.
11747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11748
11749# Allow CC to be a program name with arguments.
11750compiler=$CC
11751
11752# Save the default compiler, since it gets overwritten when the other
11753# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11754compiler_DEFAULT=$CC
11755
11756# save warnings/boilerplate of simple test code
11757ac_outfile=conftest.$ac_objext
11758echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11759eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11760_lt_compiler_boilerplate=`cat conftest.err`
11761$RM conftest*
11762
11763ac_outfile=conftest.$ac_objext
11764echo "$lt_simple_link_test_code" >conftest.$ac_ext
11765eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11766_lt_linker_boilerplate=`cat conftest.err`
11767$RM -r conftest*
11768
11769
11770## CAVEAT EMPTOR:
11771## There is no encapsulation within the following macros, do not change
11772## the running order or otherwise move them around unless you know exactly
11773## what you are doing...
11774if test -n "$compiler"; then
11775
11776lt_prog_compiler_no_builtin_flag=
11777
11778if test yes = "$GCC"; then
11779 case $cc_basename in
11780 nvcc*)
11781 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11782 *)
11783 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11784 esac
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11787$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11788if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791 lt_cv_prog_compiler_rtti_exceptions=no
11792 ac_outfile=conftest.$ac_objext
11793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11794 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11795 # Insert the option either (1) after the last *FLAGS variable, or
11796 # (2) before a word containing "conftest.", or (3) at the end.
11797 # Note that $ac_compile itself does not contain backslashes and begins
11798 # with a dollar sign (not a hyphen), so the echo should work correctly.
11799 # The option is referenced via a variable to avoid confusing sed.
11800 lt_compile=`echo "$ac_compile" | $SED \
11801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11803 -e 's:$: $lt_compiler_flag:'`
11804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11805 (eval "$lt_compile" 2>conftest.err)
11806 ac_status=$?
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 if (exit $ac_status) && test -s "$ac_outfile"; then
11810 # The compiler can only warn and ignore the option if not recognized
11811 # So say no if there are warnings other than the usual output.
11812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11815 lt_cv_prog_compiler_rtti_exceptions=yes
11816 fi
11817 fi
11818 $RM conftest*
11819
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11822$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11823
11824if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11825 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11826else
11827 :
11828fi
11829
11830fi
11831
11832
11833
11834
11835
11836
11837 lt_prog_compiler_wl=
11838lt_prog_compiler_pic=
11839lt_prog_compiler_static=
11840
11841
11842 if test yes = "$GCC"; then
11843 lt_prog_compiler_wl='-Wl,'
11844 lt_prog_compiler_static='-static'
11845
11846 case $host_os in
11847 aix*)
11848 # All AIX code is PIC.
11849 if test ia64 = "$host_cpu"; then
11850 # AIX 5 now supports IA64 processor
11851 lt_prog_compiler_static='-Bstatic'
11852 fi
11853 lt_prog_compiler_pic='-fPIC'
11854 ;;
11855
11856 amigaos*)
11857 case $host_cpu in
11858 powerpc)
11859 # see comment about AmigaOS4 .so support
11860 lt_prog_compiler_pic='-fPIC'
11861 ;;
11862 m68k)
11863 # FIXME: we need at least 68020 code to build shared libraries, but
11864 # adding the '-m68020' flag to GCC prevents building anything better,
11865 # like '-m68040'.
11866 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11867 ;;
11868 esac
11869 ;;
11870
11871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11872 # PIC is the default for these OSes.
11873 ;;
11874
11875 mingw* | cygwin* | pw32* | os2* | cegcc*)
11876 # This hack is so that the source file can tell whether it is being
11877 # built for inclusion in a dll (and should export symbols for example).
11878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11879 # (--disable-auto-import) libraries
11880 lt_prog_compiler_pic='-DDLL_EXPORT'
11881 case $host_os in
11882 os2*)
11883 lt_prog_compiler_static='$wl-static'
11884 ;;
11885 esac
11886 ;;
11887
11888 darwin* | rhapsody*)
11889 # PIC is the default on this platform
11890 # Common symbols not allowed in MH_DYLIB files
11891 lt_prog_compiler_pic='-fno-common'
11892 ;;
11893
11894 haiku*)
11895 # PIC is the default for Haiku.
11896 # The "-static" flag exists, but is broken.
11897 lt_prog_compiler_static=
11898 ;;
11899
11900 hpux*)
11901 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11902 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11903 # sets the default TLS model and affects inlining.
11904 case $host_cpu in
11905 hppa*64*)
11906 # +Z the default
11907 ;;
11908 *)
11909 lt_prog_compiler_pic='-fPIC'
11910 ;;
11911 esac
11912 ;;
11913
11914 interix[3-9]*)
11915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11916 # Instead, we relocate shared libraries at runtime.
11917 ;;
11918
11919 msdosdjgpp*)
11920 # Just because we use GCC doesn't mean we suddenly get shared libraries
11921 # on systems that don't support them.
11922 lt_prog_compiler_can_build_shared=no
11923 enable_shared=no
11924 ;;
11925
11926 *nto* | *qnx*)
11927 # QNX uses GNU C++, but need to define -shared option too, otherwise
11928 # it will coredump.
11929 lt_prog_compiler_pic='-fPIC -shared'
11930 ;;
11931
11932 sysv4*MP*)
11933 if test -d /usr/nec; then
11934 lt_prog_compiler_pic=-Kconform_pic
11935 fi
11936 ;;
11937
11938 *)
11939 lt_prog_compiler_pic='-fPIC'
11940 ;;
11941 esac
11942
11943 case $cc_basename in
11944 nvcc*) # Cuda Compiler Driver 2.2
11945 lt_prog_compiler_wl='-Xlinker '
11946 if test -n "$lt_prog_compiler_pic"; then
11947 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11948 fi
11949 ;;
11950 esac
11951 else
11952 # PORTME Check for flag to pass linker flags through the system compiler.
11953 case $host_os in
11954 aix*)
11955 lt_prog_compiler_wl='-Wl,'
11956 if test ia64 = "$host_cpu"; then
11957 # AIX 5 now supports IA64 processor
11958 lt_prog_compiler_static='-Bstatic'
11959 else
11960 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11961 fi
11962 ;;
11963
11964 darwin* | rhapsody*)
11965 # PIC is the default on this platform
11966 # Common symbols not allowed in MH_DYLIB files
11967 lt_prog_compiler_pic='-fno-common'
11968 case $cc_basename in
11969 nagfor*)
11970 # NAG Fortran compiler
11971 lt_prog_compiler_wl='-Wl,-Wl,,'
11972 lt_prog_compiler_pic='-PIC'
11973 lt_prog_compiler_static='-Bstatic'
11974 ;;
11975 esac
11976 ;;
11977
11978 mingw* | cygwin* | pw32* | os2* | cegcc*)
11979 # This hack is so that the source file can tell whether it is being
11980 # built for inclusion in a dll (and should export symbols for example).
11981 lt_prog_compiler_pic='-DDLL_EXPORT'
11982 case $host_os in
11983 os2*)
11984 lt_prog_compiler_static='$wl-static'
11985 ;;
11986 esac
11987 ;;
11988
11989 hpux9* | hpux10* | hpux11*)
11990 lt_prog_compiler_wl='-Wl,'
11991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11992 # not for PA HP-UX.
11993 case $host_cpu in
11994 hppa*64*|ia64*)
11995 # +Z the default
11996 ;;
11997 *)
11998 lt_prog_compiler_pic='+Z'
11999 ;;
12000 esac
12001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12002 lt_prog_compiler_static='$wl-a ${wl}archive'
12003 ;;
12004
12005 irix5* | irix6* | nonstopux*)
12006 lt_prog_compiler_wl='-Wl,'
12007 # PIC (with -KPIC) is the default.
12008 lt_prog_compiler_static='-non_shared'
12009 ;;
12010
12011 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12012 case $cc_basename in
12013 # old Intel for x86_64, which still supported -KPIC.
12014 ecc*)
12015 lt_prog_compiler_wl='-Wl,'
12016 lt_prog_compiler_pic='-KPIC'
12017 lt_prog_compiler_static='-static'
12018 ;;
12019 # icc used to be incompatible with GCC.
12020 # ICC 10 doesn't accept -KPIC any more.
12021 icc* | ifort*)
12022 lt_prog_compiler_wl='-Wl,'
12023 lt_prog_compiler_pic='-fPIC'
12024 lt_prog_compiler_static='-static'
12025 ;;
12026 # Lahey Fortran 8.1.
12027 lf95*)
12028 lt_prog_compiler_wl='-Wl,'
12029 lt_prog_compiler_pic='--shared'
12030 lt_prog_compiler_static='--static'
12031 ;;
12032 nagfor*)
12033 # NAG Fortran compiler
12034 lt_prog_compiler_wl='-Wl,-Wl,,'
12035 lt_prog_compiler_pic='-PIC'
12036 lt_prog_compiler_static='-Bstatic'
12037 ;;
12038 tcc*)
12039 # Fabrice Bellard et al's Tiny C Compiler
12040 lt_prog_compiler_wl='-Wl,'
12041 lt_prog_compiler_pic='-fPIC'
12042 lt_prog_compiler_static='-static'
12043 ;;
12044 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12045 # Portland Group compilers (*not* the Pentium gcc compiler,
12046 # which looks to be a dead project)
12047 lt_prog_compiler_wl='-Wl,'
12048 lt_prog_compiler_pic='-fpic'
12049 lt_prog_compiler_static='-Bstatic'
12050 ;;
12051 ccc*)
12052 lt_prog_compiler_wl='-Wl,'
12053 # All Alpha code is PIC.
12054 lt_prog_compiler_static='-non_shared'
12055 ;;
12056 xl* | bgxl* | bgf* | mpixl*)
12057 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12058 lt_prog_compiler_wl='-Wl,'
12059 lt_prog_compiler_pic='-qpic'
12060 lt_prog_compiler_static='-qstaticlink'
12061 ;;
12062 *)
12063 case `$CC -V 2>&1 | sed 5q` in
12064 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12065 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12066 lt_prog_compiler_pic='-KPIC'
12067 lt_prog_compiler_static='-Bstatic'
12068 lt_prog_compiler_wl=''
12069 ;;
12070 *Sun\ F* | *Sun*Fortran*)
12071 lt_prog_compiler_pic='-KPIC'
12072 lt_prog_compiler_static='-Bstatic'
12073 lt_prog_compiler_wl='-Qoption ld '
12074 ;;
12075 *Sun\ C*)
12076 # Sun C 5.9
12077 lt_prog_compiler_pic='-KPIC'
12078 lt_prog_compiler_static='-Bstatic'
12079 lt_prog_compiler_wl='-Wl,'
12080 ;;
12081 *Intel*\ [CF]*Compiler*)
12082 lt_prog_compiler_wl='-Wl,'
12083 lt_prog_compiler_pic='-fPIC'
12084 lt_prog_compiler_static='-static'
12085 ;;
12086 *Portland\ Group*)
12087 lt_prog_compiler_wl='-Wl,'
12088 lt_prog_compiler_pic='-fpic'
12089 lt_prog_compiler_static='-Bstatic'
12090 ;;
12091 esac
12092 ;;
12093 esac
12094 ;;
12095
12096 newsos6)
12097 lt_prog_compiler_pic='-KPIC'
12098 lt_prog_compiler_static='-Bstatic'
12099 ;;
12100
12101 *nto* | *qnx*)
12102 # QNX uses GNU C++, but need to define -shared option too, otherwise
12103 # it will coredump.
12104 lt_prog_compiler_pic='-fPIC -shared'
12105 ;;
12106
12107 osf3* | osf4* | osf5*)
12108 lt_prog_compiler_wl='-Wl,'
12109 # All OSF/1 code is PIC.
12110 lt_prog_compiler_static='-non_shared'
12111 ;;
12112
12113 rdos*)
12114 lt_prog_compiler_static='-non_shared'
12115 ;;
12116
12117 solaris*)
12118 lt_prog_compiler_pic='-KPIC'
12119 lt_prog_compiler_static='-Bstatic'
12120 case $cc_basename in
12121 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12122 lt_prog_compiler_wl='-Qoption ld ';;
12123 *)
12124 lt_prog_compiler_wl='-Wl,';;
12125 esac
12126 ;;
12127
12128 sunos4*)
12129 lt_prog_compiler_wl='-Qoption ld '
12130 lt_prog_compiler_pic='-PIC'
12131 lt_prog_compiler_static='-Bstatic'
12132 ;;
12133
12134 sysv4 | sysv4.2uw2* | sysv4.3*)
12135 lt_prog_compiler_wl='-Wl,'
12136 lt_prog_compiler_pic='-KPIC'
12137 lt_prog_compiler_static='-Bstatic'
12138 ;;
12139
12140 sysv4*MP*)
12141 if test -d /usr/nec; then
12142 lt_prog_compiler_pic='-Kconform_pic'
12143 lt_prog_compiler_static='-Bstatic'
12144 fi
12145 ;;
12146
12147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12148 lt_prog_compiler_wl='-Wl,'
12149 lt_prog_compiler_pic='-KPIC'
12150 lt_prog_compiler_static='-Bstatic'
12151 ;;
12152
12153 unicos*)
12154 lt_prog_compiler_wl='-Wl,'
12155 lt_prog_compiler_can_build_shared=no
12156 ;;
12157
12158 uts4*)
12159 lt_prog_compiler_pic='-pic'
12160 lt_prog_compiler_static='-Bstatic'
12161 ;;
12162
12163 *)
12164 lt_prog_compiler_can_build_shared=no
12165 ;;
12166 esac
12167 fi
12168
12169case $host_os in
12170 # For platforms that do not support PIC, -DPIC is meaningless:
12171 *djgpp*)
12172 lt_prog_compiler_pic=
12173 ;;
12174 *)
12175 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12176 ;;
12177esac
12178
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12180$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12181if ${lt_cv_prog_compiler_pic+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183else
12184 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12187$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12188lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12189
12190#
12191# Check to make sure the PIC flag actually works.
12192#
12193if test -n "$lt_prog_compiler_pic"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12195$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12196if ${lt_cv_prog_compiler_pic_works+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198else
12199 lt_cv_prog_compiler_pic_works=no
12200 ac_outfile=conftest.$ac_objext
12201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12202 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12203 # Insert the option either (1) after the last *FLAGS variable, or
12204 # (2) before a word containing "conftest.", or (3) at the end.
12205 # Note that $ac_compile itself does not contain backslashes and begins
12206 # with a dollar sign (not a hyphen), so the echo should work correctly.
12207 # The option is referenced via a variable to avoid confusing sed.
12208 lt_compile=`echo "$ac_compile" | $SED \
12209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12211 -e 's:$: $lt_compiler_flag:'`
12212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12213 (eval "$lt_compile" 2>conftest.err)
12214 ac_status=$?
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 if (exit $ac_status) && test -s "$ac_outfile"; then
12218 # The compiler can only warn and ignore the option if not recognized
12219 # So say no if there are warnings other than the usual output.
12220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12223 lt_cv_prog_compiler_pic_works=yes
12224 fi
12225 fi
12226 $RM conftest*
12227
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12230$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12231
12232if test yes = "$lt_cv_prog_compiler_pic_works"; then
12233 case $lt_prog_compiler_pic in
12234 "" | " "*) ;;
12235 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12236 esac
12237else
12238 lt_prog_compiler_pic=
12239 lt_prog_compiler_can_build_shared=no
12240fi
12241
12242fi
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254#
12255# Check to make sure the static flag actually works.
12256#
12257wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12259$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12260if ${lt_cv_prog_compiler_static_works+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262else
12263 lt_cv_prog_compiler_static_works=no
12264 save_LDFLAGS=$LDFLAGS
12265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12268 # The linker can only warn and ignore the option if not recognized
12269 # So say no if there are warnings
12270 if test -s conftest.err; then
12271 # Append any errors to the config.log.
12272 cat conftest.err 1>&5
12273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12275 if diff conftest.exp conftest.er2 >/dev/null; then
12276 lt_cv_prog_compiler_static_works=yes
12277 fi
12278 else
12279 lt_cv_prog_compiler_static_works=yes
12280 fi
12281 fi
12282 $RM -r conftest*
12283 LDFLAGS=$save_LDFLAGS
12284
12285fi
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12287$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12288
12289if test yes = "$lt_cv_prog_compiler_static_works"; then
12290 :
12291else
12292 lt_prog_compiler_static=
12293fi
12294
12295
12296
12297
12298
12299
12300
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12302$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12303if ${lt_cv_prog_compiler_c_o+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305else
12306 lt_cv_prog_compiler_c_o=no
12307 $RM -r conftest 2>/dev/null
12308 mkdir conftest
12309 cd conftest
12310 mkdir out
12311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12312
12313 lt_compiler_flag="-o out/conftest2.$ac_objext"
12314 # Insert the option either (1) after the last *FLAGS variable, or
12315 # (2) before a word containing "conftest.", or (3) at the end.
12316 # Note that $ac_compile itself does not contain backslashes and begins
12317 # with a dollar sign (not a hyphen), so the echo should work correctly.
12318 lt_compile=`echo "$ac_compile" | $SED \
12319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12321 -e 's:$: $lt_compiler_flag:'`
12322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12323 (eval "$lt_compile" 2>out/conftest.err)
12324 ac_status=$?
12325 cat out/conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12328 then
12329 # The compiler can only warn and ignore the option if not recognized
12330 # So say no if there are warnings
12331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12334 lt_cv_prog_compiler_c_o=yes
12335 fi
12336 fi
12337 chmod u+w . 2>&5
12338 $RM conftest*
12339 # SGI C++ compiler will create directory out/ii_files/ for
12340 # template instantiation
12341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12342 $RM out/* && rmdir out
12343 cd ..
12344 $RM -r conftest
12345 $RM conftest*
12346
12347fi
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12349$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12350
12351
12352
12353
12354
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12357$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12358if ${lt_cv_prog_compiler_c_o+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 lt_cv_prog_compiler_c_o=no
12362 $RM -r conftest 2>/dev/null
12363 mkdir conftest
12364 cd conftest
12365 mkdir out
12366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12367
12368 lt_compiler_flag="-o out/conftest2.$ac_objext"
12369 # Insert the option either (1) after the last *FLAGS variable, or
12370 # (2) before a word containing "conftest.", or (3) at the end.
12371 # Note that $ac_compile itself does not contain backslashes and begins
12372 # with a dollar sign (not a hyphen), so the echo should work correctly.
12373 lt_compile=`echo "$ac_compile" | $SED \
12374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12376 -e 's:$: $lt_compiler_flag:'`
12377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12378 (eval "$lt_compile" 2>out/conftest.err)
12379 ac_status=$?
12380 cat out/conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12383 then
12384 # The compiler can only warn and ignore the option if not recognized
12385 # So say no if there are warnings
12386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12389 lt_cv_prog_compiler_c_o=yes
12390 fi
12391 fi
12392 chmod u+w . 2>&5
12393 $RM conftest*
12394 # SGI C++ compiler will create directory out/ii_files/ for
12395 # template instantiation
12396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12397 $RM out/* && rmdir out
12398 cd ..
12399 $RM -r conftest
12400 $RM conftest*
12401
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12404$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12405
12406
12407
12408
12409hard_links=nottested
12410if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12411 # do not overwrite the value of need_locks provided by the user
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12413$as_echo_n "checking if we can lock with hard links... " >&6; }
12414 hard_links=yes
12415 $RM conftest*
12416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12417 touch conftest.a
12418 ln conftest.a conftest.b 2>&5 || hard_links=no
12419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12421$as_echo "$hard_links" >&6; }
12422 if test no = "$hard_links"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12424$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12425 need_locks=warn
12426 fi
12427else
12428 need_locks=no
12429fi
12430
12431
12432
12433
12434
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12437$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12438
12439 runpath_var=
12440 allow_undefined_flag=
12441 always_export_symbols=no
12442 archive_cmds=
12443 archive_expsym_cmds=
12444 compiler_needs_object=no
12445 enable_shared_with_static_runtimes=no
12446 export_dynamic_flag_spec=
12447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12448 hardcode_automatic=no
12449 hardcode_direct=no
12450 hardcode_direct_absolute=no
12451 hardcode_libdir_flag_spec=
12452 hardcode_libdir_separator=
12453 hardcode_minus_L=no
12454 hardcode_shlibpath_var=unsupported
12455 inherit_rpath=no
12456 link_all_deplibs=unknown
12457 module_cmds=
12458 module_expsym_cmds=
12459 old_archive_from_new_cmds=
12460 old_archive_from_expsyms_cmds=
12461 thread_safe_flag_spec=
12462 whole_archive_flag_spec=
12463 # include_expsyms should be a list of space-separated symbols to be *always*
12464 # included in the symbol list
12465 include_expsyms=
12466 # exclude_expsyms can be an extended regexp of symbols to exclude
12467 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12468 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12469 # as well as any symbol that contains 'd'.
12470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12472 # platforms (ab)use it in PIC code, but their linkers get confused if
12473 # the symbol is explicitly referenced. Since portable code cannot
12474 # rely on this symbol name, it's probably fine to never include it in
12475 # preloaded symbol tables.
12476 # Exclude shared library initialization/finalization symbols.
12477 extract_expsyms_cmds=
12478
12479 case $host_os in
12480 cygwin* | mingw* | pw32* | cegcc*)
12481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12482 # When not using gcc, we currently assume that we are using
12483 # Microsoft Visual C++.
12484 if test yes != "$GCC"; then
12485 with_gnu_ld=no
12486 fi
12487 ;;
12488 interix*)
12489 # we just hope/assume this is gcc and not c89 (= MSVC++)
12490 with_gnu_ld=yes
12491 ;;
12492 openbsd* | bitrig*)
12493 with_gnu_ld=no
12494 ;;
12495 linux* | k*bsd*-gnu | gnu*)
12496 link_all_deplibs=no
12497 ;;
12498 esac
12499
12500 ld_shlibs=yes
12501
12502 # On some targets, GNU ld is compatible enough with the native linker
12503 # that we're better off using the native interface for both.
12504 lt_use_gnu_ld_interface=no
12505 if test yes = "$with_gnu_ld"; then
12506 case $host_os in
12507 aix*)
12508 # The AIX port of GNU ld has always aspired to compatibility
12509 # with the native linker. However, as the warning in the GNU ld
12510 # block says, versions before 2.19.5* couldn't really create working
12511 # shared libraries, regardless of the interface used.
12512 case `$LD -v 2>&1` in
12513 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12514 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12515 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12516 *)
12517 lt_use_gnu_ld_interface=yes
12518 ;;
12519 esac
12520 ;;
12521 *)
12522 lt_use_gnu_ld_interface=yes
12523 ;;
12524 esac
12525 fi
12526
12527 if test yes = "$lt_use_gnu_ld_interface"; then
12528 # If archive_cmds runs LD, not CC, wlarc should be empty
12529 wlarc='$wl'
12530
12531 # Set some defaults for GNU ld with shared library support. These
12532 # are reset later if shared libraries are not supported. Putting them
12533 # here allows them to be overridden if necessary.
12534 runpath_var=LD_RUN_PATH
12535 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12536 export_dynamic_flag_spec='$wl--export-dynamic'
12537 # ancient GNU ld didn't support --whole-archive et. al.
12538 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12539 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12540 else
12541 whole_archive_flag_spec=
12542 fi
12543 supports_anon_versioning=no
12544 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12545 *GNU\ gold*) supports_anon_versioning=yes ;;
12546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12549 *\ 2.11.*) ;; # other 2.11 versions
12550 *) supports_anon_versioning=yes ;;
12551 esac
12552
12553 # See if GNU ld supports shared libraries.
12554 case $host_os in
12555 aix[3-9]*)
12556 # On AIX/PPC, the GNU linker is very broken
12557 if test ia64 != "$host_cpu"; then
12558 ld_shlibs=no
12559 cat <<_LT_EOF 1>&2
12560
12561*** Warning: the GNU linker, at least up to release 2.19, is reported
12562*** to be unable to reliably create shared libraries on AIX.
12563*** Therefore, libtool is disabling shared libraries support. If you
12564*** really care for shared libraries, you may want to install binutils
12565*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12566*** You will then need to restart the configuration process.
12567
12568_LT_EOF
12569 fi
12570 ;;
12571
12572 amigaos*)
12573 case $host_cpu in
12574 powerpc)
12575 # see comment about AmigaOS4 .so support
12576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12577 archive_expsym_cmds=''
12578 ;;
12579 m68k)
12580 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)'
12581 hardcode_libdir_flag_spec='-L$libdir'
12582 hardcode_minus_L=yes
12583 ;;
12584 esac
12585 ;;
12586
12587 beos*)
12588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12589 allow_undefined_flag=unsupported
12590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12591 # support --undefined. This deserves some investigation. FIXME
12592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12593 else
12594 ld_shlibs=no
12595 fi
12596 ;;
12597
12598 cygwin* | mingw* | pw32* | cegcc*)
12599 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12600 # as there is no search path for DLLs.
12601 hardcode_libdir_flag_spec='-L$libdir'
12602 export_dynamic_flag_spec='$wl--export-all-symbols'
12603 allow_undefined_flag=unsupported
12604 always_export_symbols=no
12605 enable_shared_with_static_runtimes=yes
12606 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'
12607 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12608
12609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12611 # If the export-symbols file already is a .def file, use it as
12612 # is; otherwise, prepend EXPORTS...
12613 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12614 cp $export_symbols $output_objdir/$soname.def;
12615 else
12616 echo EXPORTS > $output_objdir/$soname.def;
12617 cat $export_symbols >> $output_objdir/$soname.def;
12618 fi~
12619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12620 else
12621 ld_shlibs=no
12622 fi
12623 ;;
12624
12625 haiku*)
12626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12627 link_all_deplibs=yes
12628 ;;
12629
12630 os2*)
12631 hardcode_libdir_flag_spec='-L$libdir'
12632 hardcode_minus_L=yes
12633 allow_undefined_flag=unsupported
12634 shrext_cmds=.dll
12635 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12636 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12637 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12638 $ECHO EXPORTS >> $output_objdir/$libname.def~
12639 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12640 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12641 emximp -o $lib $output_objdir/$libname.def'
12642 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12643 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12644 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12645 $ECHO EXPORTS >> $output_objdir/$libname.def~
12646 prefix_cmds="$SED"~
12647 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12648 prefix_cmds="$prefix_cmds -e 1d";
12649 fi~
12650 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12651 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12653 emximp -o $lib $output_objdir/$libname.def'
12654 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12655 enable_shared_with_static_runtimes=yes
12656 ;;
12657
12658 interix[3-9]*)
12659 hardcode_direct=no
12660 hardcode_shlibpath_var=no
12661 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12662 export_dynamic_flag_spec='$wl-E'
12663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12664 # Instead, shared libraries are loaded at an image base (0x10000000 by
12665 # default) and relocated if they conflict, which is a slow very memory
12666 # consuming and fragmenting process. To avoid this, we pick a random,
12667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12670 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'
12671 ;;
12672
12673 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12674 tmp_diet=no
12675 if test linux-dietlibc = "$host_os"; then
12676 case $cc_basename in
12677 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12678 esac
12679 fi
12680 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12681 && test no = "$tmp_diet"
12682 then
12683 tmp_addflag=' $pic_flag'
12684 tmp_sharedflag='-shared'
12685 case $cc_basename,$host_cpu in
12686 pgcc*) # Portland Group C compiler
12687 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'
12688 tmp_addflag=' $pic_flag'
12689 ;;
12690 pgf77* | pgf90* | pgf95* | pgfortran*)
12691 # Portland Group f77 and f90 compilers
12692 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'
12693 tmp_addflag=' $pic_flag -Mnomain' ;;
12694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12695 tmp_addflag=' -i_dynamic' ;;
12696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12697 tmp_addflag=' -i_dynamic -nofor_main' ;;
12698 ifc* | ifort*) # Intel Fortran compiler
12699 tmp_addflag=' -nofor_main' ;;
12700 lf95*) # Lahey Fortran 8.1
12701 whole_archive_flag_spec=
12702 tmp_sharedflag='--shared' ;;
12703 nagfor*) # NAGFOR 5.3
12704 tmp_sharedflag='-Wl,-shared' ;;
12705 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12706 tmp_sharedflag='-qmkshrobj'
12707 tmp_addflag= ;;
12708 nvcc*) # Cuda Compiler Driver 2.2
12709 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'
12710 compiler_needs_object=yes
12711 ;;
12712 esac
12713 case `$CC -V 2>&1 | sed 5q` in
12714 *Sun\ C*) # Sun C 5.9
12715 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'
12716 compiler_needs_object=yes
12717 tmp_sharedflag='-G' ;;
12718 *Sun\ F*) # Sun Fortran 8.3
12719 tmp_sharedflag='-G' ;;
12720 esac
12721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12722
12723 if test yes = "$supports_anon_versioning"; then
12724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12726 echo "local: *; };" >> $output_objdir/$libname.ver~
12727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12728 fi
12729
12730 case $cc_basename in
12731 tcc*)
12732 export_dynamic_flag_spec='-rdynamic'
12733 ;;
12734 xlf* | bgf* | bgxlf* | mpixlf*)
12735 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12736 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12738 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12739 if test yes = "$supports_anon_versioning"; then
12740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12742 echo "local: *; };" >> $output_objdir/$libname.ver~
12743 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12744 fi
12745 ;;
12746 esac
12747 else
12748 ld_shlibs=no
12749 fi
12750 ;;
12751
12752 netbsd* | netbsdelf*-gnu)
12753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12755 wlarc=
12756 else
12757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12759 fi
12760 ;;
12761
12762 solaris*)
12763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12764 ld_shlibs=no
12765 cat <<_LT_EOF 1>&2
12766
12767*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12768*** create shared libraries on Solaris systems. Therefore, libtool
12769*** is disabling shared libraries support. We urge you to upgrade GNU
12770*** binutils to release 2.9.1 or newer. Another option is to modify
12771*** your PATH or compiler configuration so that the native linker is
12772*** used, and then restart.
12773
12774_LT_EOF
12775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12778 else
12779 ld_shlibs=no
12780 fi
12781 ;;
12782
12783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12784 case `$LD -v 2>&1` in
12785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12786 ld_shlibs=no
12787 cat <<_LT_EOF 1>&2
12788
12789*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12790*** reliably create shared libraries on SCO systems. Therefore, libtool
12791*** is disabling shared libraries support. We urge you to upgrade GNU
12792*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12793*** your PATH or compiler configuration so that the native linker is
12794*** used, and then restart.
12795
12796_LT_EOF
12797 ;;
12798 *)
12799 # For security reasons, it is highly recommended that you always
12800 # use absolute paths for naming shared libraries, and exclude the
12801 # DT_RUNPATH tag from executables and libraries. But doing so
12802 # requires that you compile everything twice, which is a pain.
12803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12807 else
12808 ld_shlibs=no
12809 fi
12810 ;;
12811 esac
12812 ;;
12813
12814 sunos4*)
12815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12816 wlarc=
12817 hardcode_direct=yes
12818 hardcode_shlibpath_var=no
12819 ;;
12820
12821 *)
12822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12825 else
12826 ld_shlibs=no
12827 fi
12828 ;;
12829 esac
12830
12831 if test no = "$ld_shlibs"; then
12832 runpath_var=
12833 hardcode_libdir_flag_spec=
12834 export_dynamic_flag_spec=
12835 whole_archive_flag_spec=
12836 fi
12837 else
12838 # PORTME fill in a description of your system's linker (not GNU ld)
12839 case $host_os in
12840 aix3*)
12841 allow_undefined_flag=unsupported
12842 always_export_symbols=yes
12843 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'
12844 # Note: this linker hardcodes the directories in LIBPATH if there
12845 # are no directories specified by -L.
12846 hardcode_minus_L=yes
12847 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12848 # Neither direct hardcoding nor static linking is supported with a
12849 # broken collect2.
12850 hardcode_direct=unsupported
12851 fi
12852 ;;
12853
12854 aix[4-9]*)
12855 if test ia64 = "$host_cpu"; then
12856 # On IA64, the linker does run time linking by default, so we don't
12857 # have to do anything special.
12858 aix_use_runtimelinking=no
12859 exp_sym_flag='-Bexport'
12860 no_entry_flag=
12861 else
12862 # If we're using GNU nm, then we don't want the "-C" option.
12863 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12864 # Without the "-l" option, or with the "-B" option, AIX nm treats
12865 # weak defined symbols like other global defined symbols, whereas
12866 # GNU nm marks them as "W".
12867 # While the 'weak' keyword is ignored in the Export File, we need
12868 # it in the Import File for the 'aix-soname' feature, so we have
12869 # to replace the "-B" option with "-P" for AIX nm.
12870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12871 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'
12872 else
12873 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'
12874 fi
12875 aix_use_runtimelinking=no
12876
12877 # Test if we are trying to use run time linking or normal
12878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12879 # have runtime linking enabled, and use it for executables.
12880 # For shared libraries, we enable/disable runtime linking
12881 # depending on the kind of the shared library created -
12882 # when "with_aix_soname,aix_use_runtimelinking" is:
12883 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12884 # "aix,yes" lib.so shared, rtl:yes, for executables
12885 # lib.a static archive
12886 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12887 # lib.a(lib.so.V) shared, rtl:no, for executables
12888 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12889 # lib.a(lib.so.V) shared, rtl:no
12890 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12891 # lib.a static archive
12892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12893 for ld_flag in $LDFLAGS; do
12894 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12895 aix_use_runtimelinking=yes
12896 break
12897 fi
12898 done
12899 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12900 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12901 # so we don't have lib.a shared libs to link our executables.
12902 # We have to force runtime linking in this case.
12903 aix_use_runtimelinking=yes
12904 LDFLAGS="$LDFLAGS -Wl,-brtl"
12905 fi
12906 ;;
12907 esac
12908
12909 exp_sym_flag='-bexport'
12910 no_entry_flag='-bnoentry'
12911 fi
12912
12913 # When large executables or shared objects are built, AIX ld can
12914 # have problems creating the table of contents. If linking a library
12915 # or program results in "error TOC overflow" add -mminimal-toc to
12916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12918
12919 archive_cmds=''
12920 hardcode_direct=yes
12921 hardcode_direct_absolute=yes
12922 hardcode_libdir_separator=':'
12923 link_all_deplibs=yes
12924 file_list_spec='$wl-f,'
12925 case $with_aix_soname,$aix_use_runtimelinking in
12926 aix,*) ;; # traditional, no import file
12927 svr4,* | *,yes) # use import file
12928 # The Import File defines what to hardcode.
12929 hardcode_direct=no
12930 hardcode_direct_absolute=no
12931 ;;
12932 esac
12933
12934 if test yes = "$GCC"; then
12935 case $host_os in aix4.[012]|aix4.[012].*)
12936 # We only want to do this on AIX 4.2 and lower, the check
12937 # below for broken collect2 doesn't work under 4.3+
12938 collect2name=`$CC -print-prog-name=collect2`
12939 if test -f "$collect2name" &&
12940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12941 then
12942 # We have reworked collect2
12943 :
12944 else
12945 # We have old collect2
12946 hardcode_direct=unsupported
12947 # It fails to find uninstalled libraries when the uninstalled
12948 # path is not listed in the libpath. Setting hardcode_minus_L
12949 # to unsupported forces relinking
12950 hardcode_minus_L=yes
12951 hardcode_libdir_flag_spec='-L$libdir'
12952 hardcode_libdir_separator=
12953 fi
12954 ;;
12955 esac
12956 shared_flag='-shared'
12957 if test yes = "$aix_use_runtimelinking"; then
12958 shared_flag="$shared_flag "'$wl-G'
12959 fi
12960 # Need to ensure runtime linking is disabled for the traditional
12961 # shared library, or the linker may eventually find shared libraries
12962 # /with/ Import File - we do not want to mix them.
12963 shared_flag_aix='-shared'
12964 shared_flag_svr4='-shared $wl-G'
12965 else
12966 # not using gcc
12967 if test ia64 = "$host_cpu"; then
12968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12969 # chokes on -Wl,-G. The following line is correct:
12970 shared_flag='-G'
12971 else
12972 if test yes = "$aix_use_runtimelinking"; then
12973 shared_flag='$wl-G'
12974 else
12975 shared_flag='$wl-bM:SRE'
12976 fi
12977 shared_flag_aix='$wl-bM:SRE'
12978 shared_flag_svr4='$wl-G'
12979 fi
12980 fi
12981
12982 export_dynamic_flag_spec='$wl-bexpall'
12983 # It seems that -bexpall does not export symbols beginning with
12984 # underscore (_), so it is better to generate a list of symbols to export.
12985 always_export_symbols=yes
12986 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12987 # Warning - without using the other runtime loading flags (-brtl),
12988 # -berok will link without error, but may produce a broken library.
12989 allow_undefined_flag='-berok'
12990 # Determine the default libpath from the value encoded in an
12991 # empty executable.
12992 if test set = "${lt_cv_aix_libpath+set}"; then
12993 aix_libpath=$lt_cv_aix_libpath
12994else
12995 if ${lt_cv_aix_libpath_+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h. */
13000
13001int main (void)
13002{
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008if ac_fn_c_try_link "$LINENO"; then :
13009
13010 lt_aix_libpath_sed='
13011 /Import File Strings/,/^$/ {
13012 /^0/ {
13013 s/^0 *\([^ ]*\) *$/\1/
13014 p
13015 }
13016 }'
13017 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018 # Check for a 64-bit object if we didn't find anything.
13019 if test -z "$lt_cv_aix_libpath_"; then
13020 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13021 fi
13022fi
13023rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 if test -z "$lt_cv_aix_libpath_"; then
13026 lt_cv_aix_libpath_=/usr/lib:/lib
13027 fi
13028
13029fi
13030
13031 aix_libpath=$lt_cv_aix_libpath_
13032fi
13033
13034 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13035 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
13036 else
13037 if test ia64 = "$host_cpu"; then
13038 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13039 allow_undefined_flag="-z nodefs"
13040 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"
13041 else
13042 # Determine the default libpath from the value encoded in an
13043 # empty executable.
13044 if test set = "${lt_cv_aix_libpath+set}"; then
13045 aix_libpath=$lt_cv_aix_libpath
13046else
13047 if ${lt_cv_aix_libpath_+:} false; then :
13048 $as_echo_n "(cached) " >&6
13049else
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h. */
13052
13053int main (void)
13054{
13055
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060if ac_fn_c_try_link "$LINENO"; then :
13061
13062 lt_aix_libpath_sed='
13063 /Import File Strings/,/^$/ {
13064 /^0/ {
13065 s/^0 *\([^ ]*\) *$/\1/
13066 p
13067 }
13068 }'
13069 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13070 # Check for a 64-bit object if we didn't find anything.
13071 if test -z "$lt_cv_aix_libpath_"; then
13072 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13073 fi
13074fi
13075rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077 if test -z "$lt_cv_aix_libpath_"; then
13078 lt_cv_aix_libpath_=/usr/lib:/lib
13079 fi
13080
13081fi
13082
13083 aix_libpath=$lt_cv_aix_libpath_
13084fi
13085
13086 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13087 # Warning - without using the other run time loading flags,
13088 # -berok will link without error, but may produce a broken library.
13089 no_undefined_flag=' $wl-bernotok'
13090 allow_undefined_flag=' $wl-berok'
13091 if test yes = "$with_gnu_ld"; then
13092 # We only use this code for GNU lds that support --whole-archive.
13093 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13094 else
13095 # Exported symbols can be pulled into shared objects from archives
13096 whole_archive_flag_spec='$convenience'
13097 fi
13098 archive_cmds_need_lc=yes
13099 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13100 # -brtl affects multiple linker settings, -berok does not and is overridden later
13101 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13102 if test svr4 != "$with_aix_soname"; then
13103 # This is similar to how AIX traditionally builds its shared libraries.
13104 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'
13105 fi
13106 if test aix != "$with_aix_soname"; then
13107 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'
13108 else
13109 # used by -dlpreopen to get the symbols
13110 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13111 fi
13112 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13113 fi
13114 fi
13115 ;;
13116
13117 amigaos*)
13118 case $host_cpu in
13119 powerpc)
13120 # see comment about AmigaOS4 .so support
13121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13122 archive_expsym_cmds=''
13123 ;;
13124 m68k)
13125 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)'
13126 hardcode_libdir_flag_spec='-L$libdir'
13127 hardcode_minus_L=yes
13128 ;;
13129 esac
13130 ;;
13131
13132 bsdi[45]*)
13133 export_dynamic_flag_spec=-rdynamic
13134 ;;
13135
13136 cygwin* | mingw* | pw32* | cegcc*)
13137 # When not using gcc, we currently assume that we are using
13138 # Microsoft Visual C++.
13139 # hardcode_libdir_flag_spec is actually meaningless, as there is
13140 # no search path for DLLs.
13141 case $cc_basename in
13142 cl*)
13143 # Native MSVC
13144 hardcode_libdir_flag_spec=' '
13145 allow_undefined_flag=unsupported
13146 always_export_symbols=yes
13147 file_list_spec='@'
13148 # Tell ltmain to make .lib files, not .a files.
13149 libext=lib
13150 # Tell ltmain to make .dll files, not .so files.
13151 shrext_cmds=.dll
13152 # FIXME: Setting linknames here is a bad hack.
13153 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13154 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13155 cp "$export_symbols" "$output_objdir/$soname.def";
13156 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13157 else
13158 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13159 fi~
13160 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13161 linknames='
13162 # The linker will not automatically build a static lib if we build a DLL.
13163 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13164 enable_shared_with_static_runtimes=yes
13165 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13167 # Don't use ranlib
13168 old_postinstall_cmds='chmod 644 $oldlib'
13169 postlink_cmds='lt_outputfile="@OUTPUT@"~
13170 lt_tool_outputfile="@TOOL_OUTPUT@"~
13171 case $lt_outputfile in
13172 *.exe|*.EXE) ;;
13173 *)
13174 lt_outputfile=$lt_outputfile.exe
13175 lt_tool_outputfile=$lt_tool_outputfile.exe
13176 ;;
13177 esac~
13178 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13179 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13180 $RM "$lt_outputfile.manifest";
13181 fi'
13182 ;;
13183 *)
13184 # Assume MSVC wrapper
13185 hardcode_libdir_flag_spec=' '
13186 allow_undefined_flag=unsupported
13187 # Tell ltmain to make .lib files, not .a files.
13188 libext=lib
13189 # Tell ltmain to make .dll files, not .so files.
13190 shrext_cmds=.dll
13191 # FIXME: Setting linknames here is a bad hack.
13192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13193 # The linker will automatically build a .lib file if we build a DLL.
13194 old_archive_from_new_cmds='true'
13195 # FIXME: Should let the user specify the lib program.
13196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13197 enable_shared_with_static_runtimes=yes
13198 ;;
13199 esac
13200 ;;
13201
13202 darwin* | rhapsody*)
13203
13204
13205 archive_cmds_need_lc=no
13206 hardcode_direct=no
13207 hardcode_automatic=yes
13208 hardcode_shlibpath_var=unsupported
13209 if test yes = "$lt_cv_ld_force_load"; then
13210 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\"`'
13211
13212 else
13213 whole_archive_flag_spec=''
13214 fi
13215 link_all_deplibs=yes
13216 allow_undefined_flag=$_lt_dar_allow_undefined
13217 case $cc_basename in
13218 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13219 *) _lt_dar_can_shared=$GCC ;;
13220 esac
13221 if test yes = "$_lt_dar_can_shared"; then
13222 output_verbose_link_cmd=func_echo_all
13223 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13224 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13225 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"
13226 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"
13227
13228 else
13229 ld_shlibs=no
13230 fi
13231
13232 ;;
13233
13234 dgux*)
13235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_libdir_flag_spec='-L$libdir'
13237 hardcode_shlibpath_var=no
13238 ;;
13239
13240 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13241 # support. Future versions do this automatically, but an explicit c++rt0.o
13242 # does not break anything, and helps significantly (at the cost of a little
13243 # extra space).
13244 freebsd2.2*)
13245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13246 hardcode_libdir_flag_spec='-R$libdir'
13247 hardcode_direct=yes
13248 hardcode_shlibpath_var=no
13249 ;;
13250
13251 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13252 freebsd2.*)
13253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13254 hardcode_direct=yes
13255 hardcode_minus_L=yes
13256 hardcode_shlibpath_var=no
13257 ;;
13258
13259 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13260 freebsd* | dragonfly*)
13261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13262 hardcode_libdir_flag_spec='-R$libdir'
13263 hardcode_direct=yes
13264 hardcode_shlibpath_var=no
13265 ;;
13266
13267 hpux9*)
13268 if test yes = "$GCC"; then
13269 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'
13270 else
13271 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'
13272 fi
13273 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13274 hardcode_libdir_separator=:
13275 hardcode_direct=yes
13276
13277 # hardcode_minus_L: Not really in the search PATH,
13278 # but as the default location of the library.
13279 hardcode_minus_L=yes
13280 export_dynamic_flag_spec='$wl-E'
13281 ;;
13282
13283 hpux10*)
13284 if test yes,no = "$GCC,$with_gnu_ld"; then
13285 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13286 else
13287 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13288 fi
13289 if test no = "$with_gnu_ld"; then
13290 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13291 hardcode_libdir_separator=:
13292 hardcode_direct=yes
13293 hardcode_direct_absolute=yes
13294 export_dynamic_flag_spec='$wl-E'
13295 # hardcode_minus_L: Not really in the search PATH,
13296 # but as the default location of the library.
13297 hardcode_minus_L=yes
13298 fi
13299 ;;
13300
13301 hpux11*)
13302 if test yes,no = "$GCC,$with_gnu_ld"; then
13303 case $host_cpu in
13304 hppa*64*)
13305 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 ;;
13307 ia64*)
13308 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13309 ;;
13310 *)
13311 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13312 ;;
13313 esac
13314 else
13315 case $host_cpu in
13316 hppa*64*)
13317 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13318 ;;
13319 ia64*)
13320 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13321 ;;
13322 *)
13323
13324 # Older versions of the 11.00 compiler do not understand -b yet
13325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13327$as_echo_n "checking if $CC understands -b... " >&6; }
13328if ${lt_cv_prog_compiler__b+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330else
13331 lt_cv_prog_compiler__b=no
13332 save_LDFLAGS=$LDFLAGS
13333 LDFLAGS="$LDFLAGS -b"
13334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13336 # The linker can only warn and ignore the option if not recognized
13337 # So say no if there are warnings
13338 if test -s conftest.err; then
13339 # Append any errors to the config.log.
13340 cat conftest.err 1>&5
13341 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343 if diff conftest.exp conftest.er2 >/dev/null; then
13344 lt_cv_prog_compiler__b=yes
13345 fi
13346 else
13347 lt_cv_prog_compiler__b=yes
13348 fi
13349 fi
13350 $RM -r conftest*
13351 LDFLAGS=$save_LDFLAGS
13352
13353fi
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13355$as_echo "$lt_cv_prog_compiler__b" >&6; }
13356
13357if test yes = "$lt_cv_prog_compiler__b"; then
13358 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13359else
13360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13361fi
13362
13363 ;;
13364 esac
13365 fi
13366 if test no = "$with_gnu_ld"; then
13367 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13368 hardcode_libdir_separator=:
13369
13370 case $host_cpu in
13371 hppa*64*|ia64*)
13372 hardcode_direct=no
13373 hardcode_shlibpath_var=no
13374 ;;
13375 *)
13376 hardcode_direct=yes
13377 hardcode_direct_absolute=yes
13378 export_dynamic_flag_spec='$wl-E'
13379
13380 # hardcode_minus_L: Not really in the search PATH,
13381 # but as the default location of the library.
13382 hardcode_minus_L=yes
13383 ;;
13384 esac
13385 fi
13386 ;;
13387
13388 irix5* | irix6* | nonstopux*)
13389 if test yes = "$GCC"; then
13390 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'
13391 # Try to use the -exported_symbol ld option, if it does not
13392 # work, assume that -exports_file does not work either and
13393 # implicitly export all symbols.
13394 # This should be the same for all languages, so no per-tag cache variable.
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13396$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13397if ${lt_cv_irix_exported_symbol+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399else
13400 save_LDFLAGS=$LDFLAGS
13401 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h. */
13404int foo (void) { return 0; }
13405_ACEOF
13406if ac_fn_c_try_link "$LINENO"; then :
13407 lt_cv_irix_exported_symbol=yes
13408else
13409 lt_cv_irix_exported_symbol=no
13410fi
13411rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 LDFLAGS=$save_LDFLAGS
13414fi
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13416$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13417 if test yes = "$lt_cv_irix_exported_symbol"; then
13418 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'
13419 fi
13420 link_all_deplibs=no
13421 else
13422 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'
13423 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'
13424 fi
13425 archive_cmds_need_lc='no'
13426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13427 hardcode_libdir_separator=:
13428 inherit_rpath=yes
13429 link_all_deplibs=yes
13430 ;;
13431
13432 linux*)
13433 case $cc_basename in
13434 tcc*)
13435 # Fabrice Bellard et al's Tiny C Compiler
13436 ld_shlibs=yes
13437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13438 ;;
13439 esac
13440 ;;
13441
13442 netbsd* | netbsdelf*-gnu)
13443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13445 else
13446 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13447 fi
13448 hardcode_libdir_flag_spec='-R$libdir'
13449 hardcode_direct=yes
13450 hardcode_shlibpath_var=no
13451 ;;
13452
13453 newsos6)
13454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455 hardcode_direct=yes
13456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13457 hardcode_libdir_separator=:
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 *nto* | *qnx*)
13462 ;;
13463
13464 openbsd* | bitrig*)
13465 if test -f /usr/libexec/ld.so; then
13466 hardcode_direct=yes
13467 hardcode_shlibpath_var=no
13468 hardcode_direct_absolute=yes
13469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13470 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13472 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13473 export_dynamic_flag_spec='$wl-E'
13474 else
13475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13476 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13477 fi
13478 else
13479 ld_shlibs=no
13480 fi
13481 ;;
13482
13483 os2*)
13484 hardcode_libdir_flag_spec='-L$libdir'
13485 hardcode_minus_L=yes
13486 allow_undefined_flag=unsupported
13487 shrext_cmds=.dll
13488 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13491 $ECHO EXPORTS >> $output_objdir/$libname.def~
13492 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13493 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13494 emximp -o $lib $output_objdir/$libname.def'
13495 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13498 $ECHO EXPORTS >> $output_objdir/$libname.def~
13499 prefix_cmds="$SED"~
13500 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13501 prefix_cmds="$prefix_cmds -e 1d";
13502 fi~
13503 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13504 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13506 emximp -o $lib $output_objdir/$libname.def'
13507 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13508 enable_shared_with_static_runtimes=yes
13509 ;;
13510
13511 osf3*)
13512 if test yes = "$GCC"; then
13513 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13514 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'
13515 else
13516 allow_undefined_flag=' -expect_unresolved \*'
13517 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'
13518 fi
13519 archive_cmds_need_lc='no'
13520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13521 hardcode_libdir_separator=:
13522 ;;
13523
13524 osf4* | osf5*) # as osf3* with the addition of -msym flag
13525 if test yes = "$GCC"; then
13526 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13527 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'
13528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13529 else
13530 allow_undefined_flag=' -expect_unresolved \*'
13531 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'
13532 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~
13533 $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'
13534
13535 # Both c and cxx compiler support -rpath directly
13536 hardcode_libdir_flag_spec='-rpath $libdir'
13537 fi
13538 archive_cmds_need_lc='no'
13539 hardcode_libdir_separator=:
13540 ;;
13541
13542 solaris*)
13543 no_undefined_flag=' -z defs'
13544 if test yes = "$GCC"; then
13545 wlarc='$wl'
13546 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548 $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'
13549 else
13550 case `$CC -V 2>&1` in
13551 *"Compilers 5.0"*)
13552 wlarc=''
13553 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13556 ;;
13557 *)
13558 wlarc='$wl'
13559 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13561 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13562 ;;
13563 esac
13564 fi
13565 hardcode_libdir_flag_spec='-R$libdir'
13566 hardcode_shlibpath_var=no
13567 case $host_os in
13568 solaris2.[0-5] | solaris2.[0-5].*) ;;
13569 *)
13570 # The compiler driver will combine and reorder linker options,
13571 # but understands '-z linker_flag'. GCC discards it without '$wl',
13572 # but is careful enough not to reorder.
13573 # Supported since Solaris 2.6 (maybe 2.5.1?)
13574 if test yes = "$GCC"; then
13575 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13576 else
13577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13578 fi
13579 ;;
13580 esac
13581 link_all_deplibs=yes
13582 ;;
13583
13584 sunos4*)
13585 if test sequent = "$host_vendor"; then
13586 # Use $CC to link under sequent, because it throws in some extra .o
13587 # files that make .init and .fini sections work.
13588 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13589 else
13590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13591 fi
13592 hardcode_libdir_flag_spec='-L$libdir'
13593 hardcode_direct=yes
13594 hardcode_minus_L=yes
13595 hardcode_shlibpath_var=no
13596 ;;
13597
13598 sysv4)
13599 case $host_vendor in
13600 sni)
13601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct=yes # is this really true???
13603 ;;
13604 siemens)
13605 ## LD is ld it makes a PLAMLIB
13606 ## CC just makes a GrossModule.
13607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13608 reload_cmds='$CC -r -o $output$reload_objs'
13609 hardcode_direct=no
13610 ;;
13611 motorola)
13612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13614 ;;
13615 esac
13616 runpath_var='LD_RUN_PATH'
13617 hardcode_shlibpath_var=no
13618 ;;
13619
13620 sysv4.3*)
13621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13622 hardcode_shlibpath_var=no
13623 export_dynamic_flag_spec='-Bexport'
13624 ;;
13625
13626 sysv4*MP*)
13627 if test -d /usr/nec; then
13628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_shlibpath_var=no
13630 runpath_var=LD_RUN_PATH
13631 hardcode_runpath_var=yes
13632 ld_shlibs=yes
13633 fi
13634 ;;
13635
13636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13637 no_undefined_flag='$wl-z,text'
13638 archive_cmds_need_lc=no
13639 hardcode_shlibpath_var=no
13640 runpath_var='LD_RUN_PATH'
13641
13642 if test yes = "$GCC"; then
13643 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 else
13646 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 fi
13649 ;;
13650
13651 sysv5* | sco3.2v5* | sco5v6*)
13652 # Note: We CANNOT use -z defs as we might desire, because we do not
13653 # link with -lc, and that would cause any symbols used from libc to
13654 # always be unresolved, which means just about no library would
13655 # ever link correctly. If we're not using GNU ld we use -z text
13656 # though, which does catch some bad symbols but isn't as heavy-handed
13657 # as -z defs.
13658 no_undefined_flag='$wl-z,text'
13659 allow_undefined_flag='$wl-z,nodefs'
13660 archive_cmds_need_lc=no
13661 hardcode_shlibpath_var=no
13662 hardcode_libdir_flag_spec='$wl-R,$libdir'
13663 hardcode_libdir_separator=':'
13664 link_all_deplibs=yes
13665 export_dynamic_flag_spec='$wl-Bexport'
13666 runpath_var='LD_RUN_PATH'
13667
13668 if test yes = "$GCC"; then
13669 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 else
13672 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 fi
13675 ;;
13676
13677 uts4*)
13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_libdir_flag_spec='-L$libdir'
13680 hardcode_shlibpath_var=no
13681 ;;
13682
13683 *)
13684 ld_shlibs=no
13685 ;;
13686 esac
13687
13688 if test sni = "$host_vendor"; then
13689 case $host in
13690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13691 export_dynamic_flag_spec='$wl-Blargedynsym'
13692 ;;
13693 esac
13694 fi
13695 fi
13696
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13698$as_echo "$ld_shlibs" >&6; }
13699test no = "$ld_shlibs" && can_build_shared=no
13700
13701with_gnu_ld=$with_gnu_ld
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717#
13718# Do we need to explicitly link libc?
13719#
13720case "x$archive_cmds_need_lc" in
13721x|xyes)
13722 # Assume -lc should be added
13723 archive_cmds_need_lc=yes
13724
13725 if test yes,yes = "$GCC,$enable_shared"; then
13726 case $archive_cmds in
13727 *'~'*)
13728 # FIXME: we may have to deal with multi-command sequences.
13729 ;;
13730 '$CC '*)
13731 # Test whether the compiler implicitly links with -lc since on some
13732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13733 # to ld, don't add -lc before -lgcc.
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13735$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13736if ${lt_cv_archive_cmds_need_lc+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738else
13739 $RM conftest*
13740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13741
13742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13743 (eval $ac_compile) 2>&5
13744 ac_status=$?
13745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746 test $ac_status = 0; } 2>conftest.err; then
13747 soname=conftest
13748 lib=conftest
13749 libobjs=conftest.$ac_objext
13750 deplibs=
13751 wl=$lt_prog_compiler_wl
13752 pic_flag=$lt_prog_compiler_pic
13753 compiler_flags=-v
13754 linker_flags=-v
13755 verstring=
13756 output_objdir=.
13757 libname=conftest
13758 lt_save_allow_undefined_flag=$allow_undefined_flag
13759 allow_undefined_flag=
13760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }
13765 then
13766 lt_cv_archive_cmds_need_lc=no
13767 else
13768 lt_cv_archive_cmds_need_lc=yes
13769 fi
13770 allow_undefined_flag=$lt_save_allow_undefined_flag
13771 else
13772 cat conftest.err 1>&5
13773 fi
13774 $RM conftest*
13775
13776fi
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13778$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13780 ;;
13781 esac
13782 fi
13783 ;;
13784esac
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13938$as_echo_n "checking dynamic linker characteristics... " >&6; }
13939
13940if test yes = "$GCC"; then
13941 case $host_os in
13942 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13943 *) lt_awk_arg='/^libraries:/' ;;
13944 esac
13945 case $host_os in
13946 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13947 *) lt_sed_strip_eq='s|=/|/|g' ;;
13948 esac
13949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13950 case $lt_search_path_spec in
13951 *\;*)
13952 # if the path contains ";" then we assume it to be the separator
13953 # otherwise default to the standard path separator (i.e. ":") - it is
13954 # assumed that no part of a normal pathname contains ";" but that should
13955 # okay in the real world where ";" in dirpaths is itself problematic.
13956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13957 ;;
13958 *)
13959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13960 ;;
13961 esac
13962 # Ok, now we have the path, separated by spaces, we can step through it
13963 # and add multilib dir if necessary...
13964 lt_tmp_lt_search_path_spec=
13965 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13966 # ...but if some path component already ends with the multilib dir we assume
13967 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13968 case "$lt_multi_os_dir; $lt_search_path_spec " in
13969 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13970 lt_multi_os_dir=
13971 ;;
13972 esac
13973 for lt_sys_path in $lt_search_path_spec; do
13974 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13976 elif test -n "$lt_multi_os_dir"; then
13977 test -d "$lt_sys_path" && \
13978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13979 fi
13980 done
13981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13982BEGIN {RS = " "; FS = "/|\n";} {
13983 lt_foo = "";
13984 lt_count = 0;
13985 for (lt_i = NF; lt_i > 0; lt_i--) {
13986 if ($lt_i != "" && $lt_i != ".") {
13987 if ($lt_i == "..") {
13988 lt_count++;
13989 } else {
13990 if (lt_count == 0) {
13991 lt_foo = "/" $lt_i lt_foo;
13992 } else {
13993 lt_count--;
13994 }
13995 }
13996 }
13997 }
13998 if (lt_foo != "") { lt_freq[lt_foo]++; }
13999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14000}'`
14001 # AWK program above erroneously prepends '/' to C:/dos/paths
14002 # for these hosts.
14003 case $host_os in
14004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14005 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14006 esac
14007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14008else
14009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14010fi
14011library_names_spec=
14012libname_spec='lib$name'
14013soname_spec=
14014shrext_cmds=.so
14015postinstall_cmds=
14016postuninstall_cmds=
14017finish_cmds=
14018finish_eval=
14019shlibpath_var=
14020shlibpath_overrides_runpath=unknown
14021version_type=none
14022dynamic_linker="$host_os ld.so"
14023sys_lib_dlsearch_path_spec="/lib /usr/lib"
14024need_lib_prefix=unknown
14025hardcode_into_libs=no
14026
14027# when you set need_version to no, make sure it does not cause -set_version
14028# flags to be left without arguments
14029need_version=unknown
14030
14031
14032
14033case $host_os in
14034aix3*)
14035 version_type=linux # correct to gnu/linux during the next big refactor
14036 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14037 shlibpath_var=LIBPATH
14038
14039 # AIX 3 has no versioning support, so we append a major version to the name.
14040 soname_spec='$libname$release$shared_ext$major'
14041 ;;
14042
14043aix[4-9]*)
14044 version_type=linux # correct to gnu/linux during the next big refactor
14045 need_lib_prefix=no
14046 need_version=no
14047 hardcode_into_libs=yes
14048 if test ia64 = "$host_cpu"; then
14049 # AIX 5 supports IA64
14050 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 else
14053 # With GCC up to 2.95.x, collect2 would create an import file
14054 # for dependence libraries. The import file would start with
14055 # the line '#! .'. This would cause the generated library to
14056 # depend on '.', always an invalid library. This was fixed in
14057 # development snapshots of GCC prior to 3.0.
14058 case $host_os in
14059 aix4 | aix4.[01] | aix4.[01].*)
14060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14061 echo ' yes '
14062 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14063 :
14064 else
14065 can_build_shared=no
14066 fi
14067 ;;
14068 esac
14069 # Using Import Files as archive members, it is possible to support
14070 # filename-based versioning of shared library archives on AIX. While
14071 # this would work for both with and without runtime linking, it will
14072 # prevent static linking of such archives. So we do filename-based
14073 # shared library versioning with .so extension only, which is used
14074 # when both runtime linking and shared linking is enabled.
14075 # Unfortunately, runtime linking may impact performance, so we do
14076 # not want this to be the default eventually. Also, we use the
14077 # versioned .so libs for executables only if there is the -brtl
14078 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14079 # To allow for filename-based versioning support, we need to create
14080 # libNAME.so.V as an archive file, containing:
14081 # *) an Import File, referring to the versioned filename of the
14082 # archive as well as the shared archive member, telling the
14083 # bitwidth (32 or 64) of that shared object, and providing the
14084 # list of exported symbols of that shared object, eventually
14085 # decorated with the 'weak' keyword
14086 # *) the shared object with the F_LOADONLY flag set, to really avoid
14087 # it being seen by the linker.
14088 # At run time we better use the real file rather than another symlink,
14089 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14090
14091 case $with_aix_soname,$aix_use_runtimelinking in
14092 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14093 # soname into executable. Probably we can add versioning support to
14094 # collect2, so additional links can be useful in future.
14095 aix,yes) # traditional libtool
14096 dynamic_linker='AIX unversionable lib.so'
14097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14098 # instead of lib<name>.a to let people know that these are not
14099 # typical AIX shared libraries.
14100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14101 ;;
14102 aix,no) # traditional AIX only
14103 dynamic_linker='AIX lib.a(lib.so.V)'
14104 # We preserve .a as extension for shared libraries through AIX4.2
14105 # and later when we are not doing run time linking.
14106 library_names_spec='$libname$release.a $libname.a'
14107 soname_spec='$libname$release$shared_ext$major'
14108 ;;
14109 svr4,*) # full svr4 only
14110 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14111 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14112 # We do not specify a path in Import Files, so LIBPATH fires.
14113 shlibpath_overrides_runpath=yes
14114 ;;
14115 *,yes) # both, prefer svr4
14116 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14117 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14118 # unpreferred sharedlib libNAME.a needs extra handling
14119 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"'
14120 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"'
14121 # We do not specify a path in Import Files, so LIBPATH fires.
14122 shlibpath_overrides_runpath=yes
14123 ;;
14124 *,no) # both, prefer aix
14125 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14126 library_names_spec='$libname$release.a $libname.a'
14127 soname_spec='$libname$release$shared_ext$major'
14128 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14129 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)'
14130 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"'
14131 ;;
14132 esac
14133 shlibpath_var=LIBPATH
14134 fi
14135 ;;
14136
14137amigaos*)
14138 case $host_cpu in
14139 powerpc)
14140 # Since July 2007 AmigaOS4 officially supports .so libraries.
14141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14143 ;;
14144 m68k)
14145 library_names_spec='$libname.ixlibrary $libname.a'
14146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14147 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'
14148 ;;
14149 esac
14150 ;;
14151
14152beos*)
14153 library_names_spec='$libname$shared_ext'
14154 dynamic_linker="$host_os ld.so"
14155 shlibpath_var=LIBRARY_PATH
14156 ;;
14157
14158bsdi[45]*)
14159 version_type=linux # correct to gnu/linux during the next big refactor
14160 need_version=no
14161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14162 soname_spec='$libname$release$shared_ext$major'
14163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14167 # the default ld.so.conf also contains /usr/contrib/lib and
14168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14169 # libtool to hard-code these into programs
14170 ;;
14171
14172cygwin* | mingw* | pw32* | cegcc*)
14173 version_type=windows
14174 shrext_cmds=.dll
14175 need_version=no
14176 need_lib_prefix=no
14177
14178 case $GCC,$cc_basename in
14179 yes,*)
14180 # gcc
14181 library_names_spec='$libname.dll.a'
14182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14183 postinstall_cmds='base_file=`basename \$file`~
14184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14185 dldir=$destdir/`dirname \$dlpath`~
14186 test -d \$dldir || mkdir -p \$dldir~
14187 $install_prog $dir/$dlname \$dldir/$dlname~
14188 chmod a+x \$dldir/$dlname~
14189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14191 fi'
14192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14193 dlpath=$dir/\$dldll~
14194 $RM \$dlpath'
14195 shlibpath_overrides_runpath=yes
14196
14197 case $host_os in
14198 cygwin*)
14199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14200 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14201
14202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14203 ;;
14204 mingw* | cegcc*)
14205 # MinGW DLLs use traditional 'lib' prefix
14206 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14207 ;;
14208 pw32*)
14209 # pw32 DLLs use 'pw' prefix rather than 'lib'
14210 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14211 ;;
14212 esac
14213 dynamic_linker='Win32 ld.exe'
14214 ;;
14215
14216 *,cl*)
14217 # Native MSVC
14218 libname_spec='$name'
14219 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14220 library_names_spec='$libname.dll.lib'
14221
14222 case $build_os in
14223 mingw*)
14224 sys_lib_search_path_spec=
14225 lt_save_ifs=$IFS
14226 IFS=';'
14227 for lt_path in $LIB
14228 do
14229 IFS=$lt_save_ifs
14230 # Let DOS variable expansion print the short 8.3 style file name.
14231 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14232 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14233 done
14234 IFS=$lt_save_ifs
14235 # Convert to MSYS style.
14236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14237 ;;
14238 cygwin*)
14239 # Convert to unix form, then to dos form, then back to unix form
14240 # but this time dos style (no spaces!) so that the unix form looks
14241 # like /cygdrive/c/PROGRA~1:/cygdr...
14242 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14243 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14244 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14245 ;;
14246 *)
14247 sys_lib_search_path_spec=$LIB
14248 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14249 # It is most probably a Windows format PATH.
14250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14251 else
14252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14253 fi
14254 # FIXME: find the short name or the path components, as spaces are
14255 # common. (e.g. "Program Files" -> "PROGRA~1")
14256 ;;
14257 esac
14258
14259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14260 postinstall_cmds='base_file=`basename \$file`~
14261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14262 dldir=$destdir/`dirname \$dlpath`~
14263 test -d \$dldir || mkdir -p \$dldir~
14264 $install_prog $dir/$dlname \$dldir/$dlname'
14265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14266 dlpath=$dir/\$dldll~
14267 $RM \$dlpath'
14268 shlibpath_overrides_runpath=yes
14269 dynamic_linker='Win32 link.exe'
14270 ;;
14271
14272 *)
14273 # Assume MSVC wrapper
14274 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14275 dynamic_linker='Win32 ld.exe'
14276 ;;
14277 esac
14278 # FIXME: first we should search . and the directory the executable is in
14279 shlibpath_var=PATH
14280 ;;
14281
14282darwin* | rhapsody*)
14283 dynamic_linker="$host_os dyld"
14284 version_type=darwin
14285 need_lib_prefix=no
14286 need_version=no
14287 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14288 soname_spec='$libname$release$major$shared_ext'
14289 shlibpath_overrides_runpath=yes
14290 shlibpath_var=DYLD_LIBRARY_PATH
14291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14292
14293 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14295 ;;
14296
14297dgux*)
14298 version_type=linux # correct to gnu/linux during the next big refactor
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14302 soname_spec='$libname$release$shared_ext$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 ;;
14305
14306freebsd* | dragonfly*)
14307 # DragonFly does not have aout. When/if they implement a new
14308 # versioning mechanism, adjust this.
14309 if test -x /usr/bin/objformat; then
14310 objformat=`/usr/bin/objformat`
14311 else
14312 case $host_os in
14313 freebsd[23].*) objformat=aout ;;
14314 *) objformat=elf ;;
14315 esac
14316 fi
14317 version_type=freebsd-$objformat
14318 case $version_type in
14319 freebsd-elf*)
14320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14321 soname_spec='$libname$release$shared_ext$major'
14322 need_version=no
14323 need_lib_prefix=no
14324 ;;
14325 freebsd-*)
14326 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14327 need_version=yes
14328 ;;
14329 esac
14330 shlibpath_var=LD_LIBRARY_PATH
14331 case $host_os in
14332 freebsd2.*)
14333 shlibpath_overrides_runpath=yes
14334 ;;
14335 freebsd3.[01]* | freebsdelf3.[01]*)
14336 shlibpath_overrides_runpath=yes
14337 hardcode_into_libs=yes
14338 ;;
14339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14341 shlibpath_overrides_runpath=no
14342 hardcode_into_libs=yes
14343 ;;
14344 *) # from 4.6 on, and DragonFly
14345 shlibpath_overrides_runpath=yes
14346 hardcode_into_libs=yes
14347 ;;
14348 esac
14349 ;;
14350
14351haiku*)
14352 version_type=linux # correct to gnu/linux during the next big refactor
14353 need_lib_prefix=no
14354 need_version=no
14355 dynamic_linker="$host_os runtime_loader"
14356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14357 soname_spec='$libname$release$shared_ext$major'
14358 shlibpath_var=LIBRARY_PATH
14359 shlibpath_overrides_runpath=no
14360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14361 hardcode_into_libs=yes
14362 ;;
14363
14364hpux9* | hpux10* | hpux11*)
14365 # Give a soname corresponding to the major version so that dld.sl refuses to
14366 # link against other versions.
14367 version_type=sunos
14368 need_lib_prefix=no
14369 need_version=no
14370 case $host_cpu in
14371 ia64*)
14372 shrext_cmds='.so'
14373 hardcode_into_libs=yes
14374 dynamic_linker="$host_os dld.so"
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14378 soname_spec='$libname$release$shared_ext$major'
14379 if test 32 = "$HPUX_IA64_MODE"; then
14380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14381 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14382 else
14383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14384 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14385 fi
14386 ;;
14387 hppa*64*)
14388 shrext_cmds='.sl'
14389 hardcode_into_libs=yes
14390 dynamic_linker="$host_os dld.sl"
14391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14394 soname_spec='$libname$release$shared_ext$major'
14395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14397 ;;
14398 *)
14399 shrext_cmds='.sl'
14400 dynamic_linker="$host_os dld.sl"
14401 shlibpath_var=SHLIB_PATH
14402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14404 soname_spec='$libname$release$shared_ext$major'
14405 ;;
14406 esac
14407 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14408 postinstall_cmds='chmod 555 $lib'
14409 # or fails outright, so override atomically:
14410 install_override_mode=555
14411 ;;
14412
14413interix[3-9]*)
14414 version_type=linux # correct to gnu/linux during the next big refactor
14415 need_lib_prefix=no
14416 need_version=no
14417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14418 soname_spec='$libname$release$shared_ext$major'
14419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 shlibpath_overrides_runpath=no
14422 hardcode_into_libs=yes
14423 ;;
14424
14425irix5* | irix6* | nonstopux*)
14426 case $host_os in
14427 nonstopux*) version_type=nonstopux ;;
14428 *)
14429 if test yes = "$lt_cv_prog_gnu_ld"; then
14430 version_type=linux # correct to gnu/linux during the next big refactor
14431 else
14432 version_type=irix
14433 fi ;;
14434 esac
14435 need_lib_prefix=no
14436 need_version=no
14437 soname_spec='$libname$release$shared_ext$major'
14438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14439 case $host_os in
14440 irix5* | nonstopux*)
14441 libsuff= shlibsuff=
14442 ;;
14443 *)
14444 case $LD in # libtool.m4 will add one of these switches to LD
14445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14446 libsuff= shlibsuff= libmagic=32-bit;;
14447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14448 libsuff=32 shlibsuff=N32 libmagic=N32;;
14449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14451 *) libsuff= shlibsuff= libmagic=never-match;;
14452 esac
14453 ;;
14454 esac
14455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14456 shlibpath_overrides_runpath=no
14457 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14458 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14459 hardcode_into_libs=yes
14460 ;;
14461
14462# No shared lib support for Linux oldld, aout, or coff.
14463linux*oldld* | linux*aout* | linux*coff*)
14464 dynamic_linker=no
14465 ;;
14466
14467linux*android*)
14468 version_type=none # Android doesn't support versioned libraries.
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='$libname$release$shared_ext'
14472 soname_spec='$libname$release$shared_ext'
14473 finish_cmds=
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes
14476
14477 # This implies no fast_install, which is unacceptable.
14478 # Some rework will be needed to allow for fast_install
14479 # before this can be enabled.
14480 hardcode_into_libs=yes
14481
14482 dynamic_linker='Android linker'
14483 # Don't embed -rpath directories since the linker doesn't support them.
14484 hardcode_libdir_flag_spec='-L$libdir'
14485 ;;
14486
14487# This must be glibc/ELF.
14488linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14489 version_type=linux # correct to gnu/linux during the next big refactor
14490 need_lib_prefix=no
14491 need_version=no
14492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493 soname_spec='$libname$release$shared_ext$major'
14494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14495 shlibpath_var=LD_LIBRARY_PATH
14496 shlibpath_overrides_runpath=no
14497
14498 # Some binutils ld are patched to set DT_RUNPATH
14499 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501else
14502 lt_cv_shlibpath_overrides_runpath=no
14503 save_LDFLAGS=$LDFLAGS
14504 save_libdir=$libdir
14505 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14506 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508/* end confdefs.h. */
14509
14510int main (void)
14511{
14512
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517if ac_fn_c_try_link "$LINENO"; then :
14518 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14519 lt_cv_shlibpath_overrides_runpath=yes
14520fi
14521fi
14522rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 LDFLAGS=$save_LDFLAGS
14525 libdir=$save_libdir
14526
14527fi
14528
14529 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14530
14531 # This implies no fast_install, which is unacceptable.
14532 # Some rework will be needed to allow for fast_install
14533 # before this can be enabled.
14534 hardcode_into_libs=yes
14535
14536 # Ideally, we could use ldconfig to report *all* directores which are
14537 # searched for libraries, however this is still not possible. Aside from not
14538 # being certain /sbin/ldconfig is available, command
14539 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14540 # even though it is searched at run-time. Try to do the best guess by
14541 # appending ld.so.conf contents (and includes) to the search path.
14542 if test -f /etc/ld.so.conf; then
14543 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' ' '`
14544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14545 fi
14546
14547 # We used to test for /lib/ld.so.1 and disable shared libraries on
14548 # powerpc, because MkLinux only supported shared libraries with the
14549 # GNU dynamic linker. Since this was broken with cross compilers,
14550 # most powerpc-linux boxes support dynamic linking these days and
14551 # people can always --disable-shared, the test was removed, and we
14552 # assume the GNU/Linux dynamic linker is in use.
14553 dynamic_linker='GNU/Linux ld.so'
14554 ;;
14555
14556netbsdelf*-gnu)
14557 version_type=linux
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=no
14564 hardcode_into_libs=yes
14565 dynamic_linker='NetBSD ld.elf_so'
14566 ;;
14567
14568netbsd*)
14569 version_type=sunos
14570 need_lib_prefix=no
14571 need_version=no
14572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14575 dynamic_linker='NetBSD (a.out) ld.so'
14576 else
14577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14578 soname_spec='$libname$release$shared_ext$major'
14579 dynamic_linker='NetBSD ld.elf_so'
14580 fi
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes
14583 hardcode_into_libs=yes
14584 ;;
14585
14586newsos6)
14587 version_type=linux # correct to gnu/linux during the next big refactor
14588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=yes
14591 ;;
14592
14593*nto* | *qnx*)
14594 version_type=qnx
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14598 soname_spec='$libname$release$shared_ext$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=no
14601 hardcode_into_libs=yes
14602 dynamic_linker='ldqnx.so'
14603 ;;
14604
14605openbsd* | bitrig*)
14606 version_type=sunos
14607 sys_lib_dlsearch_path_spec=/usr/lib
14608 need_lib_prefix=no
14609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14610 need_version=no
14611 else
14612 need_version=yes
14613 fi
14614 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=yes
14618 ;;
14619
14620os2*)
14621 libname_spec='$name'
14622 version_type=windows
14623 shrext_cmds=.dll
14624 need_version=no
14625 need_lib_prefix=no
14626 # OS/2 can only load a DLL with a base name of 8 characters or less.
14627 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14628 v=$($ECHO $release$versuffix | tr -d .-);
14629 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14630 $ECHO $n$v`$shared_ext'
14631 library_names_spec='${libname}_dll.$libext'
14632 dynamic_linker='OS/2 ld.exe'
14633 shlibpath_var=BEGINLIBPATH
14634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14636 postinstall_cmds='base_file=`basename \$file`~
14637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14638 dldir=$destdir/`dirname \$dlpath`~
14639 test -d \$dldir || mkdir -p \$dldir~
14640 $install_prog $dir/$dlname \$dldir/$dlname~
14641 chmod a+x \$dldir/$dlname~
14642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14644 fi'
14645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14646 dlpath=$dir/\$dldll~
14647 $RM \$dlpath'
14648 ;;
14649
14650osf3* | osf4* | osf5*)
14651 version_type=osf
14652 need_lib_prefix=no
14653 need_version=no
14654 soname_spec='$libname$release$shared_ext$major'
14655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659 ;;
14660
14661rdos*)
14662 dynamic_linker=no
14663 ;;
14664
14665solaris*)
14666 version_type=linux # correct to gnu/linux during the next big refactor
14667 need_lib_prefix=no
14668 need_version=no
14669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14670 soname_spec='$libname$release$shared_ext$major'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 hardcode_into_libs=yes
14674 # ldd complains unless libraries are executable
14675 postinstall_cmds='chmod +x $lib'
14676 ;;
14677
14678sunos4*)
14679 version_type=sunos
14680 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes
14684 if test yes = "$with_gnu_ld"; then
14685 need_lib_prefix=no
14686 fi
14687 need_version=yes
14688 ;;
14689
14690sysv4 | sysv4.3*)
14691 version_type=linux # correct to gnu/linux during the next big refactor
14692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14693 soname_spec='$libname$release$shared_ext$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 case $host_vendor in
14696 sni)
14697 shlibpath_overrides_runpath=no
14698 need_lib_prefix=no
14699 runpath_var=LD_RUN_PATH
14700 ;;
14701 siemens)
14702 need_lib_prefix=no
14703 ;;
14704 motorola)
14705 need_lib_prefix=no
14706 need_version=no
14707 shlibpath_overrides_runpath=no
14708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14709 ;;
14710 esac
14711 ;;
14712
14713sysv4*MP*)
14714 if test -d /usr/nec; then
14715 version_type=linux # correct to gnu/linux during the next big refactor
14716 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14717 soname_spec='$libname$shared_ext.$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 fi
14720 ;;
14721
14722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14723 version_type=sco
14724 need_lib_prefix=no
14725 need_version=no
14726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14727 soname_spec='$libname$release$shared_ext$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=yes
14730 hardcode_into_libs=yes
14731 if test yes = "$with_gnu_ld"; then
14732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14733 else
14734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14735 case $host_os in
14736 sco3.2v5*)
14737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14738 ;;
14739 esac
14740 fi
14741 sys_lib_dlsearch_path_spec='/usr/lib'
14742 ;;
14743
14744tpf*)
14745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14746 version_type=linux # correct to gnu/linux during the next big refactor
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=no
14752 hardcode_into_libs=yes
14753 ;;
14754
14755uts4*)
14756 version_type=linux # correct to gnu/linux during the next big refactor
14757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14758 soname_spec='$libname$release$shared_ext$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 ;;
14761
14762*)
14763 dynamic_linker=no
14764 ;;
14765esac
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14767$as_echo "$dynamic_linker" >&6; }
14768test no = "$dynamic_linker" && can_build_shared=no
14769
14770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14771if test yes = "$GCC"; then
14772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14773fi
14774
14775if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14776 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14777fi
14778
14779if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14780 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14781fi
14782
14783# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14784configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14785
14786# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14787func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14788
14789# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14790configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14889$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14890hardcode_action=
14891if test -n "$hardcode_libdir_flag_spec" ||
14892 test -n "$runpath_var" ||
14893 test yes = "$hardcode_automatic"; then
14894
14895 # We can hardcode non-existent directories.
14896 if test no != "$hardcode_direct" &&
14897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14898 # have to relink, otherwise we might link with an installed library
14899 # when we should be linking with a yet-to-be-installed one
14900 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14901 test no != "$hardcode_minus_L"; then
14902 # Linking always hardcodes the temporary library directory.
14903 hardcode_action=relink
14904 else
14905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14906 hardcode_action=immediate
14907 fi
14908else
14909 # We cannot hardcode anything, or else we can only hardcode existing
14910 # directories.
14911 hardcode_action=unsupported
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14914$as_echo "$hardcode_action" >&6; }
14915
14916if test relink = "$hardcode_action" ||
14917 test yes = "$inherit_rpath"; then
14918 # Fast installation is not supported
14919 enable_fast_install=no
14920elif test yes = "$shlibpath_overrides_runpath" ||
14921 test no = "$enable_shared"; then
14922 # Fast installation is not necessary
14923 enable_fast_install=needless
14924fi
14925
14926
14927
14928
14929
14930
14931 if test yes != "$enable_dlopen"; then
14932 enable_dlopen=unknown
14933 enable_dlopen_self=unknown
14934 enable_dlopen_self_static=unknown
14935else
14936 lt_cv_dlopen=no
14937 lt_cv_dlopen_libs=
14938
14939 case $host_os in
14940 beos*)
14941 lt_cv_dlopen=load_add_on
14942 lt_cv_dlopen_libs=
14943 lt_cv_dlopen_self=yes
14944 ;;
14945
14946 mingw* | pw32* | cegcc*)
14947 lt_cv_dlopen=LoadLibrary
14948 lt_cv_dlopen_libs=
14949 ;;
14950
14951 cygwin*)
14952 lt_cv_dlopen=dlopen
14953 lt_cv_dlopen_libs=
14954 ;;
14955
14956 darwin*)
14957 # if libdl is installed we need to link against it
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14959$as_echo_n "checking for dlopen in -ldl... " >&6; }
14960if ${ac_cv_lib_dl_dlopen+:} false; then :
14961 $as_echo_n "(cached) " >&6
14962else
14963 ac_check_lib_save_LIBS=$LIBS
14964LIBS="-ldl $LIBS"
14965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h. */
14967
14968
14969#ifdef __cplusplus
14970extern "C"
14971#endif
14972char dlopen ();
14973int main (void)
14974{
14975return dlopen ();
14976 ;
14977 return 0;
14978}
14979_ACEOF
14980if ac_fn_c_try_link "$LINENO"; then :
14981 ac_cv_lib_dl_dlopen=yes
14982else
14983 ac_cv_lib_dl_dlopen=no
14984fi
14985rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987LIBS=$ac_check_lib_save_LIBS
14988fi
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14992 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14993else
14994
14995 lt_cv_dlopen=dyld
14996 lt_cv_dlopen_libs=
14997 lt_cv_dlopen_self=yes
14998
14999fi
15000
15001 ;;
15002
15003 tpf*)
15004 # Don't try to run any link tests for TPF. We know it's impossible
15005 # because TPF is a cross-compiler, and we know how we open DSOs.
15006 lt_cv_dlopen=dlopen
15007 lt_cv_dlopen_libs=
15008 lt_cv_dlopen_self=no
15009 ;;
15010
15011 *)
15012 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15013if test "x$ac_cv_func_shl_load" = xyes; then :
15014 lt_cv_dlopen=shl_load
15015else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15017$as_echo_n "checking for shl_load in -ldld... " >&6; }
15018if ${ac_cv_lib_dld_shl_load+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020else
15021 ac_check_lib_save_LIBS=$LIBS
15022LIBS="-ldld $LIBS"
15023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024/* end confdefs.h. */
15025
15026
15027#ifdef __cplusplus
15028extern "C"
15029#endif
15030char shl_load ();
15031int main (void)
15032{
15033return shl_load ();
15034 ;
15035 return 0;
15036}
15037_ACEOF
15038if ac_fn_c_try_link "$LINENO"; then :
15039 ac_cv_lib_dld_shl_load=yes
15040else
15041 ac_cv_lib_dld_shl_load=no
15042fi
15043rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045LIBS=$ac_check_lib_save_LIBS
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15048$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15049if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15050 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15051else
15052 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15053if test "x$ac_cv_func_dlopen" = xyes; then :
15054 lt_cv_dlopen=dlopen
15055else
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15057$as_echo_n "checking for dlopen in -ldl... " >&6; }
15058if ${ac_cv_lib_dl_dlopen+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060else
15061 ac_check_lib_save_LIBS=$LIBS
15062LIBS="-ldl $LIBS"
15063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064/* end confdefs.h. */
15065
15066
15067#ifdef __cplusplus
15068extern "C"
15069#endif
15070char dlopen ();
15071int main (void)
15072{
15073return dlopen ();
15074 ;
15075 return 0;
15076}
15077_ACEOF
15078if ac_fn_c_try_link "$LINENO"; then :
15079 ac_cv_lib_dl_dlopen=yes
15080else
15081 ac_cv_lib_dl_dlopen=no
15082fi
15083rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085LIBS=$ac_check_lib_save_LIBS
15086fi
15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15088$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15089if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15090 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15091else
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15093$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15094if ${ac_cv_lib_svld_dlopen+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096else
15097 ac_check_lib_save_LIBS=$LIBS
15098LIBS="-lsvld $LIBS"
15099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100/* end confdefs.h. */
15101
15102
15103#ifdef __cplusplus
15104extern "C"
15105#endif
15106char dlopen ();
15107int main (void)
15108{
15109return dlopen ();
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115 ac_cv_lib_svld_dlopen=yes
15116else
15117 ac_cv_lib_svld_dlopen=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15124$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15125if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15126 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15127else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15129$as_echo_n "checking for dld_link in -ldld... " >&6; }
15130if ${ac_cv_lib_dld_dld_link+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 ac_check_lib_save_LIBS=$LIBS
15134LIBS="-ldld $LIBS"
15135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136/* end confdefs.h. */
15137
15138
15139#ifdef __cplusplus
15140extern "C"
15141#endif
15142char dld_link ();
15143int main (void)
15144{
15145return dld_link ();
15146 ;
15147 return 0;
15148}
15149_ACEOF
15150if ac_fn_c_try_link "$LINENO"; then :
15151 ac_cv_lib_dld_dld_link=yes
15152else
15153 ac_cv_lib_dld_dld_link=no
15154fi
15155rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157LIBS=$ac_check_lib_save_LIBS
15158fi
15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15160$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15161if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15162 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15163fi
15164
15165
15166fi
15167
15168
15169fi
15170
15171
15172fi
15173
15174
15175fi
15176
15177
15178fi
15179
15180 ;;
15181 esac
15182
15183 if test no = "$lt_cv_dlopen"; then
15184 enable_dlopen=no
15185 else
15186 enable_dlopen=yes
15187 fi
15188
15189 case $lt_cv_dlopen in
15190 dlopen)
15191 save_CPPFLAGS=$CPPFLAGS
15192 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15193
15194 save_LDFLAGS=$LDFLAGS
15195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15196
15197 save_LIBS=$LIBS
15198 LIBS="$lt_cv_dlopen_libs $LIBS"
15199
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15201$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15202if ${lt_cv_dlopen_self+:} false; then :
15203 $as_echo_n "(cached) " >&6
15204else
15205 if test yes = "$cross_compiling"; then :
15206 lt_cv_dlopen_self=cross
15207else
15208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15209 lt_status=$lt_dlunknown
15210 cat > conftest.$ac_ext <<_LT_EOF
15211#line $LINENO "configure"
15212#include "confdefs.h"
15213
15214#if HAVE_DLFCN_H
15215#include <dlfcn.h>
15216#endif
15217
15218#include <stdio.h>
15219
15220#ifdef RTLD_GLOBAL
15221# define LT_DLGLOBAL RTLD_GLOBAL
15222#else
15223# ifdef DL_GLOBAL
15224# define LT_DLGLOBAL DL_GLOBAL
15225# else
15226# define LT_DLGLOBAL 0
15227# endif
15228#endif
15229
15230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15231 find out it does not work in some platform. */
15232#ifndef LT_DLLAZY_OR_NOW
15233# ifdef RTLD_LAZY
15234# define LT_DLLAZY_OR_NOW RTLD_LAZY
15235# else
15236# ifdef DL_LAZY
15237# define LT_DLLAZY_OR_NOW DL_LAZY
15238# else
15239# ifdef RTLD_NOW
15240# define LT_DLLAZY_OR_NOW RTLD_NOW
15241# else
15242# ifdef DL_NOW
15243# define LT_DLLAZY_OR_NOW DL_NOW
15244# else
15245# define LT_DLLAZY_OR_NOW 0
15246# endif
15247# endif
15248# endif
15249# endif
15250#endif
15251
15252/* When -fvisibility=hidden is used, assume the code has been annotated
15253 correspondingly for the symbols needed. */
15254#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15255int fnord () __attribute__((visibility("default")));
15256#endif
15257
15258int fnord () { return 42; }
15259int main ()
15260{
15261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15262 int status = $lt_dlunknown;
15263
15264 if (self)
15265 {
15266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15267 else
15268 {
15269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15270 else puts (dlerror ());
15271 }
15272 /* dlclose (self); */
15273 }
15274 else
15275 puts (dlerror ());
15276
15277 return status;
15278}
15279_LT_EOF
15280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15281 (eval $ac_link) 2>&5
15282 ac_status=$?
15283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15285 (./conftest; exit; ) >&5 2>/dev/null
15286 lt_status=$?
15287 case x$lt_status in
15288 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15289 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15290 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15291 esac
15292 else :
15293 # compilation failed
15294 lt_cv_dlopen_self=no
15295 fi
15296fi
15297rm -fr conftest*
15298
15299
15300fi
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15302$as_echo "$lt_cv_dlopen_self" >&6; }
15303
15304 if test yes = "$lt_cv_dlopen_self"; then
15305 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15307$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15308if ${lt_cv_dlopen_self_static+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310else
15311 if test yes = "$cross_compiling"; then :
15312 lt_cv_dlopen_self_static=cross
15313else
15314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15315 lt_status=$lt_dlunknown
15316 cat > conftest.$ac_ext <<_LT_EOF
15317#line $LINENO "configure"
15318#include "confdefs.h"
15319
15320#if HAVE_DLFCN_H
15321#include <dlfcn.h>
15322#endif
15323
15324#include <stdio.h>
15325
15326#ifdef RTLD_GLOBAL
15327# define LT_DLGLOBAL RTLD_GLOBAL
15328#else
15329# ifdef DL_GLOBAL
15330# define LT_DLGLOBAL DL_GLOBAL
15331# else
15332# define LT_DLGLOBAL 0
15333# endif
15334#endif
15335
15336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15337 find out it does not work in some platform. */
15338#ifndef LT_DLLAZY_OR_NOW
15339# ifdef RTLD_LAZY
15340# define LT_DLLAZY_OR_NOW RTLD_LAZY
15341# else
15342# ifdef DL_LAZY
15343# define LT_DLLAZY_OR_NOW DL_LAZY
15344# else
15345# ifdef RTLD_NOW
15346# define LT_DLLAZY_OR_NOW RTLD_NOW
15347# else
15348# ifdef DL_NOW
15349# define LT_DLLAZY_OR_NOW DL_NOW
15350# else
15351# define LT_DLLAZY_OR_NOW 0
15352# endif
15353# endif
15354# endif
15355# endif
15356#endif
15357
15358/* When -fvisibility=hidden is used, assume the code has been annotated
15359 correspondingly for the symbols needed. */
15360#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15361int fnord () __attribute__((visibility("default")));
15362#endif
15363
15364int fnord () { return 42; }
15365int main ()
15366{
15367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15368 int status = $lt_dlunknown;
15369
15370 if (self)
15371 {
15372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15373 else
15374 {
15375 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15376 else puts (dlerror ());
15377 }
15378 /* dlclose (self); */
15379 }
15380 else
15381 puts (dlerror ());
15382
15383 return status;
15384}
15385_LT_EOF
15386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15387 (eval $ac_link) 2>&5
15388 ac_status=$?
15389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15390 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15391 (./conftest; exit; ) >&5 2>/dev/null
15392 lt_status=$?
15393 case x$lt_status in
15394 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15395 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15396 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15397 esac
15398 else :
15399 # compilation failed
15400 lt_cv_dlopen_self_static=no
15401 fi
15402fi
15403rm -fr conftest*
15404
15405
15406fi
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15408$as_echo "$lt_cv_dlopen_self_static" >&6; }
15409 fi
15410
15411 CPPFLAGS=$save_CPPFLAGS
15412 LDFLAGS=$save_LDFLAGS
15413 LIBS=$save_LIBS
15414 ;;
15415 esac
15416
15417 case $lt_cv_dlopen_self in
15418 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15419 *) enable_dlopen_self=unknown ;;
15420 esac
15421
15422 case $lt_cv_dlopen_self_static in
15423 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15424 *) enable_dlopen_self_static=unknown ;;
15425 esac
15426fi
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444striplib=
15445old_striplib=
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15447$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15448if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15449 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15450 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15452$as_echo "yes" >&6; }
15453else
15454# FIXME - insert some real tests, host_os isn't really good enough
15455 case $host_os in
15456 darwin*)
15457 if test -n "$STRIP"; then
15458 striplib="$STRIP -x"
15459 old_striplib="$STRIP -S"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15461$as_echo "yes" >&6; }
15462 else
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464$as_echo "no" >&6; }
15465 fi
15466 ;;
15467 *)
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470 ;;
15471 esac
15472fi
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485 # Report what library types will actually be built
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15487$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15489$as_echo "$can_build_shared" >&6; }
15490
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15492$as_echo_n "checking whether to build shared libraries... " >&6; }
15493 test no = "$can_build_shared" && enable_shared=no
15494
15495 # On AIX, shared libraries and static libraries use the same namespace, and
15496 # are all built from PIC.
15497 case $host_os in
15498 aix3*)
15499 test yes = "$enable_shared" && enable_static=no
15500 if test -n "$RANLIB"; then
15501 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15502 postinstall_cmds='$RANLIB $lib'
15503 fi
15504 ;;
15505
15506 aix[4-9]*)
15507 if test ia64 != "$host_cpu"; then
15508 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15509 yes,aix,yes) ;; # shared object as lib.so file only
15510 yes,svr4,*) ;; # shared object as lib.so archive member only
15511 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15512 esac
15513 fi
15514 ;;
15515 esac
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15517$as_echo "$enable_shared" >&6; }
15518
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15520$as_echo_n "checking whether to build static libraries... " >&6; }
15521 # Make sure either enable_shared or enable_static is yes.
15522 test yes = "$enable_shared" || enable_static=yes
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15524$as_echo "$enable_static" >&6; }
15525
15526
15527
15528
15529fi
15530ac_ext=c
15531ac_cpp='$CPP $CPPFLAGS'
15532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15534ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535
15536CC=$lt_save_CC
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552 ac_config_commands="$ac_config_commands libtool"
15553
15554
15555
15556
15557# Only expand once:
15558
15559
15560## --------------------- ##
15561## End of libtool code ##
15562## --------------------- ##
15563
15564#
15565# Verify if finally libtool shared libraries will be built
15566#
15567
15568case "x$enable_shared" in # ((
15569 xyes | xno)
15570 xc_lt_build_shared=$enable_shared
15571 ;;
15572 *)
15573 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15574 ;;
15575esac
15576
15577#
15578# Verify if finally libtool static libraries will be built
15579#
15580
15581case "x$enable_static" in # ((
15582 xyes | xno)
15583 xc_lt_build_static=$enable_static
15584 ;;
15585 *)
15586 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15587 ;;
15588esac
15589
15590#
15591# Verify if libtool shared libraries should be linked using flag -version-info
15592#
15593
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15595$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15596xc_lt_shlib_use_version_info='yes'
15597if test "x$version_type" = 'xnone'; then
15598 xc_lt_shlib_use_version_info='no'
15599fi
15600case $host_os in # (
15601 amigaos*)
15602 xc_lt_shlib_use_version_info='yes'
15603 ;;
15604esac
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15606$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15607
15608#
15609# Verify if libtool shared libraries should be linked using flag -no-undefined
15610#
15611
15612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15613$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15614xc_lt_shlib_use_no_undefined='no'
15615if test "x$allow_undefined" = 'xno'; then
15616 xc_lt_shlib_use_no_undefined='yes'
15617elif test "x$allow_undefined_flag" = 'xunsupported'; then
15618 xc_lt_shlib_use_no_undefined='yes'
15619fi
15620case $host_os in # (
15621 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15622 xc_lt_shlib_use_no_undefined='yes'
15623 ;;
15624esac
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15626$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15627
15628#
15629# Verify if libtool shared libraries should be linked using flag -mimpure-text
15630#
15631
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15633$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15634xc_lt_shlib_use_mimpure_text='no'
15635case $host_os in # (
15636 solaris2*)
15637 if test "x$GCC" = 'xyes'; then
15638 xc_lt_shlib_use_mimpure_text='yes'
15639 fi
15640 ;;
15641esac
15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15643$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15644
15645#
15646# Find out whether libtool libraries would be built wit PIC
15647#
15648
15649case "x$pic_mode" in # ((((
15650 xdefault)
15651 xc_lt_build_shared_with_pic='yes'
15652 xc_lt_build_static_with_pic='no'
15653 ;;
15654 xyes)
15655 xc_lt_build_shared_with_pic='yes'
15656 xc_lt_build_static_with_pic='yes'
15657 ;;
15658 xno)
15659 xc_lt_build_shared_with_pic='no'
15660 xc_lt_build_static_with_pic='no'
15661 ;;
15662 *)
15663 xc_lt_build_shared_with_pic='unknown'
15664 xc_lt_build_static_with_pic='unknown'
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15666$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15667 ;;
15668esac
15669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15670$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15672$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15674$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15676$as_echo "$xc_lt_build_static_with_pic" >&6; }
15677
15678#
15679# Verify if libtool shared libraries will be built while static not built
15680#
15681
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15683$as_echo_n "checking whether to build shared libraries only... " >&6; }
15684if test "$xc_lt_build_shared" = 'yes' &&
15685 test "$xc_lt_build_static" = 'no'; then
15686 xc_lt_build_shared_only='yes'
15687else
15688 xc_lt_build_shared_only='no'
15689fi
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15691$as_echo "$xc_lt_build_shared_only" >&6; }
15692
15693#
15694# Verify if libtool static libraries will be built while shared not built
15695#
15696
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15698$as_echo_n "checking whether to build static libraries only... " >&6; }
15699if test "$xc_lt_build_static" = 'yes' &&
15700 test "$xc_lt_build_shared" = 'no'; then
15701 xc_lt_build_static_only='yes'
15702else
15703 xc_lt_build_static_only='no'
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15706$as_echo "$xc_lt_build_static_only" >&6; }
15707
15708
15709
15710
15711#
15712# Automake conditionals based on libtool related checks
15713#
15714
15715 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15716 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15717 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15718else
15719 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15720 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15721fi
15722
15723 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15724 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15725 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15726else
15727 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15728 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15729fi
15730
15731 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15732 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15733 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15734else
15735 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15736 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15737fi
15738
15739
15740#
15741# Due to libtool and automake machinery limitations of not allowing
15742# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15743# inclusion of these in shared or static libraries, we are forced to
15744# build using separate configure runs for shared and static libraries
15745# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15746# to compile objects for each kind of library. Notice that relying on
15747# the '-DPIC' CFLAG that libtool provides is not valid given that the
15748# user might for example choose to build static libraries with PIC.
15749#
15750
15751#
15752# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15753# targeting a static library and not building its shared counterpart.
15754#
15755
15756 if test "x$xc_lt_build_static_only" = 'xyes'; then
15757 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15758 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15759else
15760 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15761 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15762fi
15763
15764
15765#
15766# Make staticlib CPPFLAG variable and its definition visible in output
15767# files unconditionally, providing an empty definition unless strictly
15768# targeting a static library and not building its shared counterpart.
15769#
15770
15771CPPFLAG_CURL_STATICLIB=
15772if test "x$xc_lt_build_static_only" = 'xyes'; then
15773 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15774fi
15775
15776
15777
15778# Determine whether all dependent libraries must be specified when linking
15779if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15780then
15781 REQUIRE_LIB_DEPS=no
15782else
15783 REQUIRE_LIB_DEPS=yes
15784fi
15785
15786 if test x$REQUIRE_LIB_DEPS = xyes; then
15787 USE_EXPLICIT_LIB_DEPS_TRUE=
15788 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15789else
15790 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15791 USE_EXPLICIT_LIB_DEPS_FALSE=
15792fi
15793
15794
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15796$as_echo_n "checking for inline... " >&6; }
15797if ${ac_cv_c_inline+:} false; then :
15798 $as_echo_n "(cached) " >&6
15799else
15800 ac_cv_c_inline=no
15801for ac_kw in inline __inline__ __inline; do
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h. */
15804#ifndef __cplusplus
15805typedef int foo_t;
15806static $ac_kw foo_t static_foo () {return 0; }
15807$ac_kw foo_t foo () {return 0; }
15808#endif
15809
15810_ACEOF
15811if ac_fn_c_try_compile "$LINENO"; then :
15812 ac_cv_c_inline=$ac_kw
15813fi
15814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 test "$ac_cv_c_inline" != no && break
15816done
15817
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15820$as_echo "$ac_cv_c_inline" >&6; }
15821
15822case $ac_cv_c_inline in
15823 inline | yes) ;;
15824 *)
15825 case $ac_cv_c_inline in
15826 no) ac_val=;;
15827 *) ac_val=$ac_cv_c_inline;;
15828 esac
15829 cat >>confdefs.h <<_ACEOF
15830#ifndef __cplusplus
15831#define inline $ac_val
15832#endif
15833_ACEOF
15834 ;;
15835esac
15836
15837
15838
15839
Alex Deymo486467e2017-12-19 19:04:07 +010015840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15841$as_echo_n "checking if cpp -P is needed... " >&6; }
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h. */
15844
15845 #include <errno.h>
15846TEST EINVAL TEST
15847
15848_ACEOF
15849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15850 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15851 cpp=no
15852else
15853 cpp=yes
15854fi
15855rm -f conftest*
15856
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15858$as_echo "$cpp" >&6; }
15859
15860 if test "x$cpp" = "xyes"; then
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15862$as_echo_n "checking if cpp -P works... " >&6; }
15863 OLDCPPFLAGS=$CPPFLAGS
15864 CPPFLAGS="$CPPFLAGS -P"
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866/* end confdefs.h. */
15867
15868 #include <errno.h>
15869TEST EINVAL TEST
15870
15871_ACEOF
15872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15873 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15874 cpp_p=yes
15875else
15876 cpp_p=no
15877fi
15878rm -f conftest*
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15881$as_echo "$cpp_p" >&6; }
15882
15883 if test "x$cpp_p" = "xno"; then
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15885$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15886 # without -P
15887 CPPPFLAG=""
15888 else
15889 # with -P
15890 CPPPFLAG="-P"
15891 fi
15892 CPPFLAGS=$OLDCPPFLAGS
15893 else
15894 # without -P
15895 CPPPFLAG=""
15896 fi
15897
15898
Elliott Hughes82be86d2017-09-20 17:00:17 -070015899 #
15900 compiler_id="unknown"
15901 compiler_num="0"
15902 #
15903 flags_dbg_all="unknown"
15904 flags_dbg_yes="unknown"
15905 flags_dbg_off="unknown"
15906 flags_opt_all="unknown"
15907 flags_opt_yes="unknown"
15908 flags_opt_off="unknown"
15909 #
15910 flags_prefer_cppflags="no"
15911 #
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15914$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15915
15916 OLDCPPFLAGS=$CPPFLAGS
15917 # CPPPFLAG comes from CURL_CPP_P
15918 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15919 if test -z "$SED"; then
15920 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15921 fi
15922 if test -z "$GREP"; then
15923 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15924 fi
15925
15926 tmp_exp=""
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928/* end confdefs.h. */
15929
15930
15931#ifdef __DECC
15932CURL_DEF_TOKEN __DECC
15933#endif
15934
15935
15936_ACEOF
15937if ac_fn_c_try_cpp "$LINENO"; then :
15938
15939 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15940 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15941 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15942 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15943 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15944 tmp_exp=""
15945 fi
15946
15947fi
15948rm -f conftest.err conftest.i conftest.$ac_ext
15949 if test -z "$tmp_exp"; then
15950 curl_cv_have_def___DECC=no
15951
15952 else
15953 curl_cv_have_def___DECC=yes
15954 curl_cv_def___DECC=$tmp_exp
15955
15956 fi
15957 CPPFLAGS=$OLDCPPFLAGS
15958
15959
15960 OLDCPPFLAGS=$CPPFLAGS
15961 # CPPPFLAG comes from CURL_CPP_P
15962 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15963 if test -z "$SED"; then
15964 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15965 fi
15966 if test -z "$GREP"; then
15967 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15968 fi
15969
15970 tmp_exp=""
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h. */
15973
15974
15975#ifdef __DECC_VER
15976CURL_DEF_TOKEN __DECC_VER
15977#endif
15978
15979
15980_ACEOF
15981if ac_fn_c_try_cpp "$LINENO"; then :
15982
15983 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15984 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15985 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15986 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15987 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15988 tmp_exp=""
15989 fi
15990
15991fi
15992rm -f conftest.err conftest.i conftest.$ac_ext
15993 if test -z "$tmp_exp"; then
15994 curl_cv_have_def___DECC_VER=no
15995
15996 else
15997 curl_cv_have_def___DECC_VER=yes
15998 curl_cv_def___DECC_VER=$tmp_exp
15999
16000 fi
16001 CPPFLAGS=$OLDCPPFLAGS
16002
16003 if test "$curl_cv_have_def___DECC" = "yes" &&
16004 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16006$as_echo "yes" >&6; }
16007 compiler_id="DEC_C"
16008 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16009 flags_dbg_yes="-g2"
16010 flags_dbg_off=""
16011 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16012 flags_opt_yes="-O1"
16013 flags_opt_off="-O0"
16014 else
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016$as_echo "no" >&6; }
16017 fi
16018
16019
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16021$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16022
16023 OLDCPPFLAGS=$CPPFLAGS
16024 # CPPPFLAG comes from CURL_CPP_P
16025 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16026 if test -z "$SED"; then
16027 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16028 fi
16029 if test -z "$GREP"; then
16030 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16031 fi
16032
16033 tmp_exp=""
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h. */
16036
16037
16038#ifdef __HP_cc
16039CURL_DEF_TOKEN __HP_cc
16040#endif
16041
16042
16043_ACEOF
16044if ac_fn_c_try_cpp "$LINENO"; then :
16045
16046 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16047 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16048 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16049 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16050 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16051 tmp_exp=""
16052 fi
16053
16054fi
16055rm -f conftest.err conftest.i conftest.$ac_ext
16056 if test -z "$tmp_exp"; then
16057 curl_cv_have_def___HP_cc=no
16058
16059 else
16060 curl_cv_have_def___HP_cc=yes
16061 curl_cv_def___HP_cc=$tmp_exp
16062
16063 fi
16064 CPPFLAGS=$OLDCPPFLAGS
16065
16066 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16068$as_echo "yes" >&6; }
16069 compiler_id="HP_UX_C"
16070 flags_dbg_all="-g -s"
16071 flags_dbg_yes="-g"
16072 flags_dbg_off="-s"
16073 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16074 flags_opt_yes="+O2"
16075 flags_opt_off="+O0"
16076 else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078$as_echo "no" >&6; }
16079 fi
16080
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16083$as_echo_n "checking if compiler is IBM C... " >&6; }
16084
16085 OLDCPPFLAGS=$CPPFLAGS
16086 # CPPPFLAG comes from CURL_CPP_P
16087 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16088 if test -z "$SED"; then
16089 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16090 fi
16091 if test -z "$GREP"; then
16092 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16093 fi
16094
16095 tmp_exp=""
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097/* end confdefs.h. */
16098
16099
16100#ifdef __IBMC__
16101CURL_DEF_TOKEN __IBMC__
16102#endif
16103
16104
16105_ACEOF
16106if ac_fn_c_try_cpp "$LINENO"; then :
16107
16108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16112 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16113 tmp_exp=""
16114 fi
16115
16116fi
16117rm -f conftest.err conftest.i conftest.$ac_ext
16118 if test -z "$tmp_exp"; then
16119 curl_cv_have_def___IBMC__=no
16120
16121 else
16122 curl_cv_have_def___IBMC__=yes
16123 curl_cv_def___IBMC__=$tmp_exp
16124
16125 fi
16126 CPPFLAGS=$OLDCPPFLAGS
16127
16128 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16130$as_echo "yes" >&6; }
16131 compiler_id="IBM_C"
16132 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16133 flags_dbg_yes="-g"
16134 flags_dbg_off=""
16135 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16136 flags_opt_all="$flags_opt_all -qnooptimize"
16137 flags_opt_all="$flags_opt_all -qoptimize=0"
16138 flags_opt_all="$flags_opt_all -qoptimize=1"
16139 flags_opt_all="$flags_opt_all -qoptimize=2"
16140 flags_opt_all="$flags_opt_all -qoptimize=3"
16141 flags_opt_all="$flags_opt_all -qoptimize=4"
16142 flags_opt_all="$flags_opt_all -qoptimize=5"
16143 flags_opt_yes="-O2"
16144 flags_opt_off="-qnooptimize"
16145 flags_prefer_cppflags="yes"
16146 else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148$as_echo "no" >&6; }
16149 fi
16150
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16153$as_echo_n "checking if compiler is Intel C... " >&6; }
16154
16155 OLDCPPFLAGS=$CPPFLAGS
16156 # CPPPFLAG comes from CURL_CPP_P
16157 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16158 if test -z "$SED"; then
16159 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16160 fi
16161 if test -z "$GREP"; then
16162 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16163 fi
16164
16165 tmp_exp=""
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h. */
16168
16169
16170#ifdef __INTEL_COMPILER
16171CURL_DEF_TOKEN __INTEL_COMPILER
16172#endif
16173
16174
16175_ACEOF
16176if ac_fn_c_try_cpp "$LINENO"; then :
16177
16178 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16179 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16180 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16181 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16182 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16183 tmp_exp=""
16184 fi
16185
16186fi
16187rm -f conftest.err conftest.i conftest.$ac_ext
16188 if test -z "$tmp_exp"; then
16189 curl_cv_have_def___INTEL_COMPILER=no
16190
16191 else
16192 curl_cv_have_def___INTEL_COMPILER=yes
16193 curl_cv_def___INTEL_COMPILER=$tmp_exp
16194
16195 fi
16196 CPPFLAGS=$OLDCPPFLAGS
16197
16198 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16200$as_echo "yes" >&6; }
16201 compiler_num="$curl_cv_def___INTEL_COMPILER"
16202
16203 OLDCPPFLAGS=$CPPFLAGS
16204 # CPPPFLAG comes from CURL_CPP_P
16205 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16206 if test -z "$SED"; then
16207 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16208 fi
16209 if test -z "$GREP"; then
16210 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16211 fi
16212
16213 tmp_exp=""
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215/* end confdefs.h. */
16216
16217
16218#ifdef __unix__
16219CURL_DEF_TOKEN __unix__
16220#endif
16221
16222
16223_ACEOF
16224if ac_fn_c_try_cpp "$LINENO"; then :
16225
16226 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16227 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16228 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16229 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16230 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16231 tmp_exp=""
16232 fi
16233
16234fi
16235rm -f conftest.err conftest.i conftest.$ac_ext
16236 if test -z "$tmp_exp"; then
16237 curl_cv_have_def___unix__=no
16238
16239 else
16240 curl_cv_have_def___unix__=yes
16241 curl_cv_def___unix__=$tmp_exp
16242
16243 fi
16244 CPPFLAGS=$OLDCPPFLAGS
16245
16246 if test "$curl_cv_have_def___unix__" = "yes"; then
16247 compiler_id="INTEL_UNIX_C"
16248 flags_dbg_all="-g -g0"
16249 flags_dbg_yes="-g"
16250 flags_dbg_off=""
16251 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16252 flags_opt_yes="-O2"
16253 flags_opt_off="-O0"
16254 else
16255 compiler_id="INTEL_WINDOWS_C"
16256 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16257 flags_dbg_all="$flags_dbg_all /debug"
16258 flags_dbg_all="$flags_dbg_all /debug:none"
16259 flags_dbg_all="$flags_dbg_all /debug:minimal"
16260 flags_dbg_all="$flags_dbg_all /debug:partial"
16261 flags_dbg_all="$flags_dbg_all /debug:full"
16262 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16263 flags_dbg_all="$flags_dbg_all /debug:extended"
16264 flags_dbg_yes="/Zi /Oy-"
16265 flags_dbg_off="/debug:none /Oy-"
16266 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16267 flags_opt_yes="/O2"
16268 flags_opt_off="/Od"
16269 fi
16270 else
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16272$as_echo "no" >&6; }
16273 fi
16274
16275
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16277$as_echo_n "checking if compiler is clang... " >&6; }
16278
16279 OLDCPPFLAGS=$CPPFLAGS
16280 # CPPPFLAG comes from CURL_CPP_P
16281 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16282 if test -z "$SED"; then
16283 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16284 fi
16285 if test -z "$GREP"; then
16286 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16287 fi
16288
16289 tmp_exp=""
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h. */
16292
16293
16294#ifdef __clang__
16295CURL_DEF_TOKEN __clang__
16296#endif
16297
16298
16299_ACEOF
16300if ac_fn_c_try_cpp "$LINENO"; then :
16301
16302 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16303 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16304 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16305 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16306 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16307 tmp_exp=""
16308 fi
16309
16310fi
16311rm -f conftest.err conftest.i conftest.$ac_ext
16312 if test -z "$tmp_exp"; then
16313 curl_cv_have_def___clang__=no
16314
16315 else
16316 curl_cv_have_def___clang__=yes
16317 curl_cv_def___clang__=$tmp_exp
16318
16319 fi
16320 CPPFLAGS=$OLDCPPFLAGS
16321
16322 if test "$curl_cv_have_def___clang__" = "yes"; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16324$as_echo "yes" >&6; }
16325 compiler_id="CLANG"
16326 fullclangver=`$CC -v 2>&1 | grep version`
16327 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16328 if test -z "$clangver"; then
16329 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016330 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016331 else
16332 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16333 fi
16334 fi
16335 clangvhi=`echo $clangver | cut -d . -f1`
16336 clangvlo=`echo $clangver | cut -d . -f2`
16337 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16338 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16339 flags_dbg_all="$flags_dbg_all -ggdb"
16340 flags_dbg_all="$flags_dbg_all -gstabs"
16341 flags_dbg_all="$flags_dbg_all -gstabs+"
16342 flags_dbg_all="$flags_dbg_all -gcoff"
16343 flags_dbg_all="$flags_dbg_all -gxcoff"
16344 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16345 flags_dbg_all="$flags_dbg_all -gvms"
16346 flags_dbg_yes="-g"
16347 flags_dbg_off=""
16348 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16349 flags_opt_yes="-Os"
16350 flags_opt_off="-O0"
16351 else
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353$as_echo "no" >&6; }
16354 fi
16355
16356
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16358$as_echo_n "checking if compiler is GNU C... " >&6; }
16359
16360 OLDCPPFLAGS=$CPPFLAGS
16361 # CPPPFLAG comes from CURL_CPP_P
16362 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16363 if test -z "$SED"; then
16364 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16365 fi
16366 if test -z "$GREP"; then
16367 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16368 fi
16369
16370 tmp_exp=""
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372/* end confdefs.h. */
16373
16374
16375#ifdef __GNUC__
16376CURL_DEF_TOKEN __GNUC__
16377#endif
16378
16379
16380_ACEOF
16381if ac_fn_c_try_cpp "$LINENO"; then :
16382
16383 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16384 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16385 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16386 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16387 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16388 tmp_exp=""
16389 fi
16390
16391fi
16392rm -f conftest.err conftest.i conftest.$ac_ext
16393 if test -z "$tmp_exp"; then
16394 curl_cv_have_def___GNUC__=no
16395
16396 else
16397 curl_cv_have_def___GNUC__=yes
16398 curl_cv_def___GNUC__=$tmp_exp
16399
16400 fi
16401 CPPFLAGS=$OLDCPPFLAGS
16402
16403 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16404 test "$compiler_id" = "unknown"; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16406$as_echo "yes" >&6; }
16407 compiler_id="GNU_C"
16408 gccver=`$CC -dumpversion`
16409 gccvhi=`echo $gccver | cut -d . -f1`
16410 gccvlo=`echo $gccver | cut -d . -f2`
16411 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16412 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16413 flags_dbg_all="$flags_dbg_all -ggdb"
16414 flags_dbg_all="$flags_dbg_all -gstabs"
16415 flags_dbg_all="$flags_dbg_all -gstabs+"
16416 flags_dbg_all="$flags_dbg_all -gcoff"
16417 flags_dbg_all="$flags_dbg_all -gxcoff"
16418 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16419 flags_dbg_all="$flags_dbg_all -gvms"
16420 flags_dbg_yes="-g"
16421 flags_dbg_off=""
16422 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16423 flags_opt_yes="-O2"
16424 flags_opt_off="-O0"
16425
16426 OLDCPPFLAGS=$CPPFLAGS
16427 # CPPPFLAG comes from CURL_CPP_P
16428 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16429 if test -z "$SED"; then
16430 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16431 fi
16432 if test -z "$GREP"; then
16433 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16434 fi
16435
16436 tmp_exp=""
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h. */
16439
16440
16441#ifdef _WIN32
16442CURL_DEF_TOKEN _WIN32
16443#endif
16444
16445
16446_ACEOF
16447if ac_fn_c_try_cpp "$LINENO"; then :
16448
16449 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16450 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16451 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16452 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16453 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16454 tmp_exp=""
16455 fi
16456
16457fi
16458rm -f conftest.err conftest.i conftest.$ac_ext
16459 if test -z "$tmp_exp"; then
16460 curl_cv_have_def__WIN32=no
16461
16462 else
16463 curl_cv_have_def__WIN32=yes
16464 curl_cv_def__WIN32=$tmp_exp
16465
16466 fi
16467 CPPFLAGS=$OLDCPPFLAGS
16468
16469 else
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16471$as_echo "no" >&6; }
16472 fi
16473
16474
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16476$as_echo_n "checking if compiler is LCC... " >&6; }
16477
16478 OLDCPPFLAGS=$CPPFLAGS
16479 # CPPPFLAG comes from CURL_CPP_P
16480 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16481 if test -z "$SED"; then
16482 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16483 fi
16484 if test -z "$GREP"; then
16485 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16486 fi
16487
16488 tmp_exp=""
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490/* end confdefs.h. */
16491
16492
16493#ifdef __LCC__
16494CURL_DEF_TOKEN __LCC__
16495#endif
16496
16497
16498_ACEOF
16499if ac_fn_c_try_cpp "$LINENO"; then :
16500
16501 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16502 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16503 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16504 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16505 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16506 tmp_exp=""
16507 fi
16508
16509fi
16510rm -f conftest.err conftest.i conftest.$ac_ext
16511 if test -z "$tmp_exp"; then
16512 curl_cv_have_def___LCC__=no
16513
16514 else
16515 curl_cv_have_def___LCC__=yes
16516 curl_cv_def___LCC__=$tmp_exp
16517
16518 fi
16519 CPPFLAGS=$OLDCPPFLAGS
16520
16521 if test "$curl_cv_have_def___LCC__" = "yes"; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16523$as_echo "yes" >&6; }
16524 compiler_id="LCC"
16525 flags_dbg_all="-g"
16526 flags_dbg_yes="-g"
16527 flags_dbg_off=""
16528 flags_opt_all=""
16529 flags_opt_yes=""
16530 flags_opt_off=""
16531 else
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533$as_echo "no" >&6; }
16534 fi
16535
16536
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16538$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16539
16540 OLDCPPFLAGS=$CPPFLAGS
16541 # CPPPFLAG comes from CURL_CPP_P
16542 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16543 if test -z "$SED"; then
16544 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16545 fi
16546 if test -z "$GREP"; then
16547 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16548 fi
16549
16550 tmp_exp=""
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h. */
16553
16554
16555#ifdef __GNUC__
16556CURL_DEF_TOKEN __GNUC__
16557#endif
16558
16559
16560_ACEOF
16561if ac_fn_c_try_cpp "$LINENO"; then :
16562
16563 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16564 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16565 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16566 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16567 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16568 tmp_exp=""
16569 fi
16570
16571fi
16572rm -f conftest.err conftest.i conftest.$ac_ext
16573 if test -z "$tmp_exp"; then
16574 curl_cv_have_def___GNUC__=no
16575
16576 else
16577 curl_cv_have_def___GNUC__=yes
16578 curl_cv_def___GNUC__=$tmp_exp
16579
16580 fi
16581 CPPFLAGS=$OLDCPPFLAGS
16582
16583
16584 OLDCPPFLAGS=$CPPFLAGS
16585 # CPPPFLAG comes from CURL_CPP_P
16586 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16587 if test -z "$SED"; then
16588 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16589 fi
16590 if test -z "$GREP"; then
16591 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16592 fi
16593
16594 tmp_exp=""
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596/* end confdefs.h. */
16597
16598
16599#ifdef _COMPILER_VERSION
16600CURL_DEF_TOKEN _COMPILER_VERSION
16601#endif
16602
16603
16604_ACEOF
16605if ac_fn_c_try_cpp "$LINENO"; then :
16606
16607 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16608 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16609 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16610 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16611 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16612 tmp_exp=""
16613 fi
16614
16615fi
16616rm -f conftest.err conftest.i conftest.$ac_ext
16617 if test -z "$tmp_exp"; then
16618 curl_cv_have_def__COMPILER_VERSION=no
16619
16620 else
16621 curl_cv_have_def__COMPILER_VERSION=yes
16622 curl_cv_def__COMPILER_VERSION=$tmp_exp
16623
16624 fi
16625 CPPFLAGS=$OLDCPPFLAGS
16626
16627
16628 OLDCPPFLAGS=$CPPFLAGS
16629 # CPPPFLAG comes from CURL_CPP_P
16630 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16631 if test -z "$SED"; then
16632 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16633 fi
16634 if test -z "$GREP"; then
16635 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16636 fi
16637
16638 tmp_exp=""
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h. */
16641
16642
16643#ifdef _SGI_COMPILER_VERSION
16644CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16645#endif
16646
16647
16648_ACEOF
16649if ac_fn_c_try_cpp "$LINENO"; then :
16650
16651 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16652 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16653 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16654 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16655 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16656 tmp_exp=""
16657 fi
16658
16659fi
16660rm -f conftest.err conftest.i conftest.$ac_ext
16661 if test -z "$tmp_exp"; then
16662 curl_cv_have_def__SGI_COMPILER_VERSION=no
16663
16664 else
16665 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16666 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16667
16668 fi
16669 CPPFLAGS=$OLDCPPFLAGS
16670
16671 if test "$curl_cv_have_def___GNUC__" = "no" &&
16672 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16673 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16675$as_echo "yes" >&6; }
16676 compiler_id="SGI_MIPSPRO_C"
16677 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16678 flags_dbg_yes="-g"
16679 flags_dbg_off=""
16680 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16681 flags_opt_yes="-O2"
16682 flags_opt_off="-O0"
16683 else
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685$as_echo "no" >&6; }
16686 fi
16687
16688
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16690$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16691
16692 OLDCPPFLAGS=$CPPFLAGS
16693 # CPPPFLAG comes from CURL_CPP_P
16694 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16695 if test -z "$SED"; then
16696 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16697 fi
16698 if test -z "$GREP"; then
16699 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16700 fi
16701
16702 tmp_exp=""
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704/* end confdefs.h. */
16705
16706
16707#ifdef __GNUC__
16708CURL_DEF_TOKEN __GNUC__
16709#endif
16710
16711
16712_ACEOF
16713if ac_fn_c_try_cpp "$LINENO"; then :
16714
16715 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16716 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16717 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16718 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16719 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16720 tmp_exp=""
16721 fi
16722
16723fi
16724rm -f conftest.err conftest.i conftest.$ac_ext
16725 if test -z "$tmp_exp"; then
16726 curl_cv_have_def___GNUC__=no
16727
16728 else
16729 curl_cv_have_def___GNUC__=yes
16730 curl_cv_def___GNUC__=$tmp_exp
16731
16732 fi
16733 CPPFLAGS=$OLDCPPFLAGS
16734
16735
16736 OLDCPPFLAGS=$CPPFLAGS
16737 # CPPPFLAG comes from CURL_CPP_P
16738 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16739 if test -z "$SED"; then
16740 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16741 fi
16742 if test -z "$GREP"; then
16743 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16744 fi
16745
16746 tmp_exp=""
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h. */
16749
16750
16751#ifdef __sgi
16752CURL_DEF_TOKEN __sgi
16753#endif
16754
16755
16756_ACEOF
16757if ac_fn_c_try_cpp "$LINENO"; then :
16758
16759 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16760 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16761 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16762 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16763 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16764 tmp_exp=""
16765 fi
16766
16767fi
16768rm -f conftest.err conftest.i conftest.$ac_ext
16769 if test -z "$tmp_exp"; then
16770 curl_cv_have_def___sgi=no
16771
16772 else
16773 curl_cv_have_def___sgi=yes
16774 curl_cv_def___sgi=$tmp_exp
16775
16776 fi
16777 CPPFLAGS=$OLDCPPFLAGS
16778
16779 if test "$curl_cv_have_def___GNUC__" = "no" &&
16780 test "$curl_cv_have_def___sgi" = "yes" &&
16781 test "$compiler_id" = "unknown"; then
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16783$as_echo "yes" >&6; }
16784 compiler_id="SGI_MIPS_C"
16785 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16786 flags_dbg_yes="-g"
16787 flags_dbg_off=""
16788 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16789 flags_opt_yes="-O2"
16790 flags_opt_off="-O0"
16791 else
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793$as_echo "no" >&6; }
16794 fi
16795
16796
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16798$as_echo_n "checking if compiler is SunPro C... " >&6; }
16799
16800 OLDCPPFLAGS=$CPPFLAGS
16801 # CPPPFLAG comes from CURL_CPP_P
16802 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16803 if test -z "$SED"; then
16804 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16805 fi
16806 if test -z "$GREP"; then
16807 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16808 fi
16809
16810 tmp_exp=""
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h. */
16813
16814
16815#ifdef __SUNPRO_C
16816CURL_DEF_TOKEN __SUNPRO_C
16817#endif
16818
16819
16820_ACEOF
16821if ac_fn_c_try_cpp "$LINENO"; then :
16822
16823 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16824 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16825 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16826 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16827 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16828 tmp_exp=""
16829 fi
16830
16831fi
16832rm -f conftest.err conftest.i conftest.$ac_ext
16833 if test -z "$tmp_exp"; then
16834 curl_cv_have_def___SUNPRO_C=no
16835
16836 else
16837 curl_cv_have_def___SUNPRO_C=yes
16838 curl_cv_def___SUNPRO_C=$tmp_exp
16839
16840 fi
16841 CPPFLAGS=$OLDCPPFLAGS
16842
16843 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16845$as_echo "yes" >&6; }
16846 compiler_id="SUNPRO_C"
16847 flags_dbg_all="-g -s"
16848 flags_dbg_yes="-g"
16849 flags_dbg_off="-s"
16850 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16851 flags_opt_yes="-xO2"
16852 flags_opt_off=""
16853 else
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855$as_echo "no" >&6; }
16856 fi
16857
16858
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16860$as_echo_n "checking if compiler is Tiny C... " >&6; }
16861
16862 OLDCPPFLAGS=$CPPFLAGS
16863 # CPPPFLAG comes from CURL_CPP_P
16864 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16865 if test -z "$SED"; then
16866 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16867 fi
16868 if test -z "$GREP"; then
16869 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16870 fi
16871
16872 tmp_exp=""
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874/* end confdefs.h. */
16875
16876
16877#ifdef __TINYC__
16878CURL_DEF_TOKEN __TINYC__
16879#endif
16880
16881
16882_ACEOF
16883if ac_fn_c_try_cpp "$LINENO"; then :
16884
16885 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16886 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16887 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16888 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16889 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16890 tmp_exp=""
16891 fi
16892
16893fi
16894rm -f conftest.err conftest.i conftest.$ac_ext
16895 if test -z "$tmp_exp"; then
16896 curl_cv_have_def___TINYC__=no
16897
16898 else
16899 curl_cv_have_def___TINYC__=yes
16900 curl_cv_def___TINYC__=$tmp_exp
16901
16902 fi
16903 CPPFLAGS=$OLDCPPFLAGS
16904
16905 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16907$as_echo "yes" >&6; }
16908 compiler_id="TINY_C"
16909 flags_dbg_all="-g -b"
16910 flags_dbg_yes="-g"
16911 flags_dbg_off=""
16912 flags_opt_all=""
16913 flags_opt_yes=""
16914 flags_opt_off=""
16915 else
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917$as_echo "no" >&6; }
16918 fi
16919
16920
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16922$as_echo_n "checking if compiler is Watcom C... " >&6; }
16923
16924 OLDCPPFLAGS=$CPPFLAGS
16925 # CPPPFLAG comes from CURL_CPP_P
16926 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16927 if test -z "$SED"; then
16928 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16929 fi
16930 if test -z "$GREP"; then
16931 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16932 fi
16933
16934 tmp_exp=""
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936/* end confdefs.h. */
16937
16938
16939#ifdef __WATCOMC__
16940CURL_DEF_TOKEN __WATCOMC__
16941#endif
16942
16943
16944_ACEOF
16945if ac_fn_c_try_cpp "$LINENO"; then :
16946
16947 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16948 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16949 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16950 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16951 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16952 tmp_exp=""
16953 fi
16954
16955fi
16956rm -f conftest.err conftest.i conftest.$ac_ext
16957 if test -z "$tmp_exp"; then
16958 curl_cv_have_def___WATCOMC__=no
16959
16960 else
16961 curl_cv_have_def___WATCOMC__=yes
16962 curl_cv_def___WATCOMC__=$tmp_exp
16963
16964 fi
16965 CPPFLAGS=$OLDCPPFLAGS
16966
16967 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16969$as_echo "yes" >&6; }
16970
16971 OLDCPPFLAGS=$CPPFLAGS
16972 # CPPPFLAG comes from CURL_CPP_P
16973 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16974 if test -z "$SED"; then
16975 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16976 fi
16977 if test -z "$GREP"; then
16978 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16979 fi
16980
16981 tmp_exp=""
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h. */
16984
16985
16986#ifdef __UNIX__
16987CURL_DEF_TOKEN __UNIX__
16988#endif
16989
16990
16991_ACEOF
16992if ac_fn_c_try_cpp "$LINENO"; then :
16993
16994 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16995 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16996 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16997 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16998 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16999 tmp_exp=""
17000 fi
17001
17002fi
17003rm -f conftest.err conftest.i conftest.$ac_ext
17004 if test -z "$tmp_exp"; then
17005 curl_cv_have_def___UNIX__=no
17006
17007 else
17008 curl_cv_have_def___UNIX__=yes
17009 curl_cv_def___UNIX__=$tmp_exp
17010
17011 fi
17012 CPPFLAGS=$OLDCPPFLAGS
17013
17014 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17015 compiler_id="WATCOM_UNIX_C"
17016 flags_dbg_all="-g1 -g1+ -g2 -g3"
17017 flags_dbg_yes="-g2"
17018 flags_dbg_off=""
17019 flags_opt_all="-O0 -O1 -O2 -O3"
17020 flags_opt_yes="-O2"
17021 flags_opt_off="-O0"
17022 else
17023 compiler_id="WATCOM_WINDOWS_C"
17024 flags_dbg_all=""
17025 flags_dbg_yes=""
17026 flags_dbg_off=""
17027 flags_opt_all=""
17028 flags_opt_yes=""
17029 flags_opt_off=""
17030 fi
17031 else
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033$as_echo "no" >&6; }
17034 fi
17035
17036 #
17037 if test "$compiler_id" = "unknown"; then
17038 cat <<_EOF 1>&2
17039***
17040*** Warning: This configure script does not have information about the
17041*** compiler you are using, relative to the flags required to enable or
17042*** disable generation of debug info, optimization options or warnings.
17043***
17044*** Whatever settings are present in CFLAGS will be used for this run.
17045***
17046*** If you wish to help the curl project to better support your compiler
17047*** you can report this and the required info on the libcurl development
17048*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17049***
17050_EOF
17051 fi
17052
17053
17054squeeze() {
17055 _sqz_result=""
17056 eval _sqz_input=\$$1
17057 for _sqz_token in $_sqz_input; do
17058 if test -z "$_sqz_result"; then
17059 _sqz_result="$_sqz_token"
17060 else
17061 _sqz_result="$_sqz_result $_sqz_token"
17062 fi
17063 done
17064 eval $1=\$_sqz_result
17065 return 0
17066}
17067
17068
17069 #
17070 if test "$compiler_id" != "unknown"; then
17071 #
17072 if test "$compiler_id" = "GNU_C" ||
17073 test "$compiler_id" = "CLANG"; then
17074
17075 if test "$compiler_id" = "GNU_C" ||
17076 test "$compiler_id" = "CLANG"; then
17077 tmp_has_include="no"
17078 tmp_chg_FLAGS="$CFLAGS"
17079 for word1 in $tmp_chg_FLAGS; do
17080 case "$word1" in
17081 -I*)
17082 tmp_has_include="yes"
17083 ;;
17084 esac
17085 done
17086 if test "$tmp_has_include" = "yes"; then
17087 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17088 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17089 CFLAGS="$tmp_chg_FLAGS"
17090 squeeze CFLAGS
17091 fi
17092 tmp_has_include="no"
17093 tmp_chg_FLAGS="$CPPFLAGS"
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 CPPFLAGS="$tmp_chg_FLAGS"
17105 squeeze CPPFLAGS
17106 fi
17107 fi
17108
17109 fi
17110 #
17111 tmp_save_CPPFLAGS="$CPPFLAGS"
17112 tmp_save_CFLAGS="$CFLAGS"
17113 tmp_CPPFLAGS=""
17114 tmp_CFLAGS=""
17115 #
17116 case "$compiler_id" in
17117 #
17118 CLANG)
17119 #
17120 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17121 ;;
17122 #
17123 DEC_C)
17124 #
17125 tmp_CFLAGS="$tmp_CFLAGS -std1"
17126 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17127 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17128 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17129 ;;
17130 #
17131 GNU_C)
17132 #
17133 if test "$compiler_num" -ge "295"; then
17134 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17135 fi
17136 ;;
17137 #
17138 HP_UX_C)
17139 #
17140 tmp_CFLAGS="$tmp_CFLAGS -z"
17141 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17142 ;;
17143 #
17144 IBM_C)
17145 #
17146 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17147 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17148 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17149 ;;
17150 #
17151 INTEL_UNIX_C)
17152 #
17153 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17154 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17155 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17156 ;;
17157 #
17158 INTEL_WINDOWS_C)
17159 #
17160 tmp_CFLAGS="$tmp_CFLAGS"
17161 ;;
17162 #
17163 LCC)
17164 #
17165 tmp_CFLAGS="$tmp_CFLAGS -n"
17166 ;;
17167 #
17168 SGI_MIPS_C)
17169 #
17170 tmp_CFLAGS="$tmp_CFLAGS"
17171 ;;
17172 #
17173 SGI_MIPSPRO_C)
17174 #
17175 tmp_CFLAGS="$tmp_CFLAGS"
17176 ;;
17177 #
17178 SUNPRO_C)
17179 #
17180 tmp_CFLAGS="$tmp_CFLAGS"
17181 ;;
17182 #
17183 TINY_C)
17184 #
17185 tmp_CFLAGS="$tmp_CFLAGS"
17186 ;;
17187 #
17188 WATCOM_UNIX_C)
17189 #
17190 tmp_CFLAGS="$tmp_CFLAGS"
17191 ;;
17192 #
17193 WATCOM_WINDOWS_C)
17194 #
17195 tmp_CFLAGS="$tmp_CFLAGS"
17196 ;;
17197 #
17198 esac
17199 #
17200 squeeze tmp_CPPFLAGS
17201 squeeze tmp_CFLAGS
17202 #
17203 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17205$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17206 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17207 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17208 squeeze CPPFLAGS
17209 squeeze CFLAGS
17210
17211 tmp_compiler_works="unknown"
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213/* end confdefs.h. */
17214
17215
17216
17217int main (void)
17218{
17219
17220 int i = 1;
17221 return i;
17222
17223 ;
17224 return 0;
17225}
17226
17227_ACEOF
17228if ac_fn_c_try_compile "$LINENO"; then :
17229
17230 tmp_compiler_works="yes"
17231
17232else
17233
17234 tmp_compiler_works="no"
17235 echo " " >&6
17236 sed 's/^/cc-fail: /' conftest.err >&6
17237 echo " " >&6
17238
17239fi
17240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 if test "$tmp_compiler_works" = "yes"; then
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h. */
17244
17245
17246
17247int main (void)
17248{
17249
17250 int i = 1;
17251 return i;
17252
17253 ;
17254 return 0;
17255}
17256
17257_ACEOF
17258if ac_fn_c_try_link "$LINENO"; then :
17259
17260 tmp_compiler_works="yes"
17261
17262else
17263
17264 tmp_compiler_works="no"
17265 echo " " >&6
17266 sed 's/^/link-fail: /' conftest.err >&6
17267 echo " " >&6
17268
17269fi
17270rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 fi
17273 if test "x$cross_compiling" != "xyes" &&
17274 test "$tmp_compiler_works" = "yes"; then
17275 if test "$cross_compiling" = yes; then :
17276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17278as_fn_error $? "cannot run test program while cross compiling
17279See \`config.log' for more details" "$LINENO" 5; }
17280else
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282/* end confdefs.h. */
17283
17284
17285# ifdef __STDC__
17286# include <stdlib.h>
17287# endif
17288
17289int main (void)
17290{
17291
17292 int i = 0;
17293 exit(i);
17294
17295 ;
17296 return 0;
17297}
17298
17299_ACEOF
17300if ac_fn_c_try_run "$LINENO"; then :
17301
17302 tmp_compiler_works="yes"
17303
17304else
17305
17306 tmp_compiler_works="no"
17307 echo " " >&6
17308 echo "run-fail: test program exited with status $ac_status" >&6
17309 echo " " >&6
17310
17311fi
17312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17313 conftest.$ac_objext conftest.beam conftest.$ac_ext
17314fi
17315
17316 fi
17317 if test "$tmp_compiler_works" = "yes"; then
17318
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320$as_echo "yes" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17322$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17323
17324 else
17325
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327$as_echo "no" >&6; }
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17329$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17330 CPPFLAGS="$tmp_save_CPPFLAGS"
17331 CFLAGS="$tmp_save_CFLAGS"
17332
17333 fi
17334
17335 fi
17336 #
17337 fi
17338
17339
17340 #
17341 if test "$compiler_id" != "unknown"; then
17342 #
17343 tmp_save_CFLAGS="$CFLAGS"
17344 tmp_save_CPPFLAGS="$CPPFLAGS"
17345 #
17346 tmp_options=""
17347 tmp_CFLAGS="$CFLAGS"
17348 tmp_CPPFLAGS="$CPPFLAGS"
17349
17350 ac_var_stripped=""
17351 for word1 in $tmp_CFLAGS; do
17352 ac_var_strip_word="no"
17353 for word2 in $flags_dbg_all; do
17354 if test "$word1" = "$word2"; then
17355 ac_var_strip_word="yes"
17356 fi
17357 done
17358 if test "$ac_var_strip_word" = "no"; then
17359 ac_var_stripped="$ac_var_stripped $word1"
17360 fi
17361 done
17362 tmp_CFLAGS="$ac_var_stripped"
17363 squeeze tmp_CFLAGS
17364
17365
17366 ac_var_stripped=""
17367 for word1 in $tmp_CPPFLAGS; do
17368 ac_var_strip_word="no"
17369 for word2 in $flags_dbg_all; do
17370 if test "$word1" = "$word2"; then
17371 ac_var_strip_word="yes"
17372 fi
17373 done
17374 if test "$ac_var_strip_word" = "no"; then
17375 ac_var_stripped="$ac_var_stripped $word1"
17376 fi
17377 done
17378 tmp_CPPFLAGS="$ac_var_stripped"
17379 squeeze tmp_CPPFLAGS
17380
17381 #
17382 if test "$want_debug" = "yes"; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17384$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17385 tmp_options="$flags_dbg_yes"
17386 fi
17387 if test "$want_debug" = "no"; then
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17389$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17390 tmp_options="$flags_dbg_off"
17391 fi
17392 #
17393 if test "$flags_prefer_cppflags" = "yes"; then
17394 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17395 CFLAGS="$tmp_CFLAGS"
17396 else
17397 CPPFLAGS="$tmp_CPPFLAGS"
17398 CFLAGS="$tmp_CFLAGS $tmp_options"
17399 fi
17400 squeeze CPPFLAGS
17401 squeeze CFLAGS
17402
17403 tmp_compiler_works="unknown"
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405/* end confdefs.h. */
17406
17407
17408
17409int main (void)
17410{
17411
17412 int i = 1;
17413 return i;
17414
17415 ;
17416 return 0;
17417}
17418
17419_ACEOF
17420if ac_fn_c_try_compile "$LINENO"; then :
17421
17422 tmp_compiler_works="yes"
17423
17424else
17425
17426 tmp_compiler_works="no"
17427 echo " " >&6
17428 sed 's/^/cc-fail: /' conftest.err >&6
17429 echo " " >&6
17430
17431fi
17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17433 if test "$tmp_compiler_works" = "yes"; then
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435/* end confdefs.h. */
17436
17437
17438
17439int main (void)
17440{
17441
17442 int i = 1;
17443 return i;
17444
17445 ;
17446 return 0;
17447}
17448
17449_ACEOF
17450if ac_fn_c_try_link "$LINENO"; then :
17451
17452 tmp_compiler_works="yes"
17453
17454else
17455
17456 tmp_compiler_works="no"
17457 echo " " >&6
17458 sed 's/^/link-fail: /' conftest.err >&6
17459 echo " " >&6
17460
17461fi
17462rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464 fi
17465 if test "x$cross_compiling" != "xyes" &&
17466 test "$tmp_compiler_works" = "yes"; then
17467 if test "$cross_compiling" = yes; then :
17468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17470as_fn_error $? "cannot run test program while cross compiling
17471See \`config.log' for more details" "$LINENO" 5; }
17472else
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474/* end confdefs.h. */
17475
17476
17477# ifdef __STDC__
17478# include <stdlib.h>
17479# endif
17480
17481int main (void)
17482{
17483
17484 int i = 0;
17485 exit(i);
17486
17487 ;
17488 return 0;
17489}
17490
17491_ACEOF
17492if ac_fn_c_try_run "$LINENO"; then :
17493
17494 tmp_compiler_works="yes"
17495
17496else
17497
17498 tmp_compiler_works="no"
17499 echo " " >&6
17500 echo "run-fail: test program exited with status $ac_status" >&6
17501 echo " " >&6
17502
17503fi
17504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17505 conftest.$ac_objext conftest.beam conftest.$ac_ext
17506fi
17507
17508 fi
17509 if test "$tmp_compiler_works" = "yes"; then
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17512$as_echo "yes" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17514$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17515
17516 else
17517
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519$as_echo "no" >&6; }
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17521$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17522 CPPFLAGS="$tmp_save_CPPFLAGS"
17523 CFLAGS="$tmp_save_CFLAGS"
17524
17525 fi
17526
17527 #
17528 fi
17529
17530
17531 #
17532 if test "$compiler_id" != "unknown"; then
17533 #
17534 tmp_save_CFLAGS="$CFLAGS"
17535 tmp_save_CPPFLAGS="$CPPFLAGS"
17536 #
17537 tmp_options=""
17538 tmp_CFLAGS="$CFLAGS"
17539 tmp_CPPFLAGS="$CPPFLAGS"
17540 honor_optimize_option="yes"
17541 #
17542 #
17543 if test "$want_optimize" = "assume_no" ||
17544 test "$want_optimize" = "assume_yes"; then
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17546$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17547
17548
17549 ac_var_match_word="no"
17550 for word1 in $tmp_CFLAGS; do
17551 for word2 in $flags_opt_all; do
17552 if test "$word1" = "$word2"; then
17553 ac_var_match_word="yes"
17554 fi
17555 done
17556 done
17557
17558 if test "$ac_var_match_word" = "yes"; then
17559
17560 honor_optimize_option="no"
17561
17562
17563 fi
17564
17565
17566
17567 ac_var_match_word="no"
17568 for word1 in $tmp_CPPFLAGS; do
17569 for word2 in $flags_opt_all; do
17570 if test "$word1" = "$word2"; then
17571 ac_var_match_word="yes"
17572 fi
17573 done
17574 done
17575
17576 if test "$ac_var_match_word" = "yes"; then
17577
17578 honor_optimize_option="no"
17579
17580
17581 fi
17582
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17584$as_echo "$honor_optimize_option" >&6; }
17585 if test "$honor_optimize_option" = "yes"; then
17586 if test "$want_optimize" = "assume_yes"; then
17587 want_optimize="yes"
17588 fi
17589 if test "$want_optimize" = "assume_no"; then
17590 want_optimize="no"
17591 fi
17592 fi
17593 fi
17594 #
17595 if test "$honor_optimize_option" = "yes"; then
17596
17597 ac_var_stripped=""
17598 for word1 in $tmp_CFLAGS; do
17599 ac_var_strip_word="no"
17600 for word2 in $flags_opt_all; do
17601 if test "$word1" = "$word2"; then
17602 ac_var_strip_word="yes"
17603 fi
17604 done
17605 if test "$ac_var_strip_word" = "no"; then
17606 ac_var_stripped="$ac_var_stripped $word1"
17607 fi
17608 done
17609 tmp_CFLAGS="$ac_var_stripped"
17610 squeeze tmp_CFLAGS
17611
17612
17613 ac_var_stripped=""
17614 for word1 in $tmp_CPPFLAGS; do
17615 ac_var_strip_word="no"
17616 for word2 in $flags_opt_all; do
17617 if test "$word1" = "$word2"; then
17618 ac_var_strip_word="yes"
17619 fi
17620 done
17621 if test "$ac_var_strip_word" = "no"; then
17622 ac_var_stripped="$ac_var_stripped $word1"
17623 fi
17624 done
17625 tmp_CPPFLAGS="$ac_var_stripped"
17626 squeeze tmp_CPPFLAGS
17627
17628 if test "$want_optimize" = "yes"; then
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17630$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17631 tmp_options="$flags_opt_yes"
17632 fi
17633 if test "$want_optimize" = "no"; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17635$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17636 tmp_options="$flags_opt_off"
17637 fi
17638 if test "$flags_prefer_cppflags" = "yes"; then
17639 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17640 CFLAGS="$tmp_CFLAGS"
17641 else
17642 CPPFLAGS="$tmp_CPPFLAGS"
17643 CFLAGS="$tmp_CFLAGS $tmp_options"
17644 fi
17645 squeeze CPPFLAGS
17646 squeeze CFLAGS
17647
17648 tmp_compiler_works="unknown"
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650/* end confdefs.h. */
17651
17652
17653
17654int main (void)
17655{
17656
17657 int i = 1;
17658 return i;
17659
17660 ;
17661 return 0;
17662}
17663
17664_ACEOF
17665if ac_fn_c_try_compile "$LINENO"; then :
17666
17667 tmp_compiler_works="yes"
17668
17669else
17670
17671 tmp_compiler_works="no"
17672 echo " " >&6
17673 sed 's/^/cc-fail: /' conftest.err >&6
17674 echo " " >&6
17675
17676fi
17677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678 if test "$tmp_compiler_works" = "yes"; then
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680/* end confdefs.h. */
17681
17682
17683
17684int main (void)
17685{
17686
17687 int i = 1;
17688 return i;
17689
17690 ;
17691 return 0;
17692}
17693
17694_ACEOF
17695if ac_fn_c_try_link "$LINENO"; then :
17696
17697 tmp_compiler_works="yes"
17698
17699else
17700
17701 tmp_compiler_works="no"
17702 echo " " >&6
17703 sed 's/^/link-fail: /' conftest.err >&6
17704 echo " " >&6
17705
17706fi
17707rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 fi
17710 if test "x$cross_compiling" != "xyes" &&
17711 test "$tmp_compiler_works" = "yes"; then
17712 if test "$cross_compiling" = yes; then :
17713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17715as_fn_error $? "cannot run test program while cross compiling
17716See \`config.log' for more details" "$LINENO" 5; }
17717else
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719/* end confdefs.h. */
17720
17721
17722# ifdef __STDC__
17723# include <stdlib.h>
17724# endif
17725
17726int main (void)
17727{
17728
17729 int i = 0;
17730 exit(i);
17731
17732 ;
17733 return 0;
17734}
17735
17736_ACEOF
17737if ac_fn_c_try_run "$LINENO"; then :
17738
17739 tmp_compiler_works="yes"
17740
17741else
17742
17743 tmp_compiler_works="no"
17744 echo " " >&6
17745 echo "run-fail: test program exited with status $ac_status" >&6
17746 echo " " >&6
17747
17748fi
17749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17750 conftest.$ac_objext conftest.beam conftest.$ac_ext
17751fi
17752
17753 fi
17754 if test "$tmp_compiler_works" = "yes"; then
17755
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17757$as_echo "yes" >&6; }
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17759$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17760
17761 else
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764$as_echo "no" >&6; }
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17766$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17767 CPPFLAGS="$tmp_save_CPPFLAGS"
17768 CFLAGS="$tmp_save_CFLAGS"
17769
17770 fi
17771
17772 fi
17773 #
17774 fi
17775
17776
17777 #
17778 if test "$compiler_id" != "unknown"; then
17779 #
17780 tmp_save_CPPFLAGS="$CPPFLAGS"
17781 tmp_save_CFLAGS="$CFLAGS"
17782 tmp_CPPFLAGS=""
17783 tmp_CFLAGS=""
17784 #
17785 case "$compiler_id" in
17786 #
17787 CLANG)
17788 #
17789 if test "$want_warnings" = "yes"; then
17790 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17791 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17792 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17793 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17794 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17795 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17796 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17797 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17798 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17799 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17800 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17801 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17802 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17803 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17804 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17805 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17806 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17807 #
17808 if test "$compiler_num" -ge "101"; then
17809 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17810 fi
17811 #
17812 if test "$compiler_num" -ge "208"; then
17813 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17814 fi
17815 #
17816 if test "$compiler_num" -ge "209"; then
17817 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17818 fi
17819 #
17820 if test "$compiler_num" -ge "302"; then
17821 case $host_os in
17822 cygwin* | mingw*)
17823 ;;
17824 *)
17825 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17826 ;;
17827 esac
17828 fi
17829 #
17830 if test "$compiler_num" -ge "306"; then
17831 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17832 fi
17833 #
17834 if test "$compiler_num" -ge "309"; then
17835 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017836 # avoid the varargs warning, fixed in 4.0
17837 # https://bugs.llvm.org/show_bug.cgi?id=29140
17838 if test "$compiler_num" -lt "400"; then
17839 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17840 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017841 fi
17842 fi
17843 ;;
17844 #
17845 DEC_C)
17846 #
17847 if test "$want_warnings" = "yes"; then
17848 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17849 fi
17850 ;;
17851 #
17852 GNU_C)
17853 #
17854 if test "$want_warnings" = "yes"; then
17855 #
17856 if test "x$cross_compiling" != "xyes" ||
17857 test "$compiler_num" -ge "300"; then
17858 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17859 fi
17860 #
17861 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17862 #
17863 if test "$compiler_num" -ge "104"; then
17864 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17865 if test "x$cross_compiling" != "xyes" ||
17866 test "$compiler_num" -ge "300"; then
17867 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17868 fi
17869 fi
17870 #
17871 if test "$compiler_num" -ge "207"; then
17872 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17873 if test "x$cross_compiling" != "xyes" ||
17874 test "$compiler_num" -ge "300"; then
17875 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17876 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17877 fi
17878 fi
17879 #
17880 if test "$compiler_num" -ge "295"; then
17881 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17882 fi
17883 #
17884 if test "$compiler_num" -ge "296"; then
17885 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17886 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17887 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17888 fi
17889 #
17890 if test "$compiler_num" -ge "297"; then
17891 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17892 fi
17893 #
17894 if test "$compiler_num" -ge "300"; then
17895 tmp_CFLAGS="$tmp_CFLAGS"
17896 fi
17897 #
17898 if test "$compiler_num" -ge "303"; then
17899 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17900 fi
17901 #
17902 if test "$compiler_num" -ge "304"; then
17903 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17904 fi
17905 #
17906 if test "$compiler_num" -ge "400"; then
17907 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17908 fi
17909 #
17910 if test "$compiler_num" -ge "402"; then
17911 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17912 fi
17913 #
17914 if test "$compiler_num" -ge "403"; then
17915 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17916 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17917 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17918 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17919 fi
17920 #
17921 if test "$compiler_num" -ge "405"; then
17922 if test "$curl_cv_have_def__WIN32" = "yes"; then
17923 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17924 fi
17925 fi
17926 #
17927 if test "$compiler_num" -ge "406"; then
17928 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17929 fi
17930 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017931 if test "$compiler_num" -ge "600"; then
17932 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17933 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
17934 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference"
17935 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
17936 fi
17937 #
17938 if test "$compiler_num" -ge "700"; then
17939 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17940 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17941 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17942 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17943 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
17944 fi
17945 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017946 fi
17947 #
17948 if test "$compiler_num" -ge "300"; then
17949 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17950 else
17951 if test "x$cross_compiling" = "xyes"; then
17952 if test "$compiler_num" -ge "104"; then
17953 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17954 fi
17955 if test "$compiler_num" -ge "207"; then
17956 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17957 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17958 fi
17959 fi
17960 fi
17961 ;;
17962 #
17963 HP_UX_C)
17964 #
17965 if test "$want_warnings" = "yes"; then
17966 tmp_CFLAGS="$tmp_CFLAGS +w1"
17967 fi
17968 ;;
17969 #
17970 IBM_C)
17971 #
17972 tmp_CFLAGS="$tmp_CFLAGS"
17973 ;;
17974 #
17975 INTEL_UNIX_C)
17976 #
17977 if test "$want_warnings" = "yes"; then
17978 if test "$compiler_num" -gt "600"; then
17979 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17980 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17981 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17982 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17983 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17984 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17985 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17986 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17987 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17988 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17989 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17990 fi
17991 fi
17992 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17993 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17994 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17995 if test "$compiler_num" -ge "1000"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17997 fi
17998 ;;
17999 #
18000 INTEL_WINDOWS_C)
18001 #
18002 tmp_CFLAGS="$tmp_CFLAGS"
18003 ;;
18004 #
18005 LCC)
18006 #
18007 if test "$want_warnings" = "yes"; then
18008 tmp_CFLAGS="$tmp_CFLAGS"
18009 fi
18010 ;;
18011 #
18012 SGI_MIPS_C)
18013 #
18014 if test "$want_warnings" = "yes"; then
18015 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18016 fi
18017 ;;
18018 #
18019 SGI_MIPSPRO_C)
18020 #
18021 if test "$want_warnings" = "yes"; then
18022 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18023 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18024 fi
18025 ;;
18026 #
18027 SUNPRO_C)
18028 #
18029 if test "$want_warnings" = "yes"; then
18030 tmp_CFLAGS="$tmp_CFLAGS -v"
18031 fi
18032 ;;
18033 #
18034 TINY_C)
18035 #
18036 if test "$want_warnings" = "yes"; then
18037 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18038 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18039 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18040 fi
18041 ;;
18042 #
18043 WATCOM_UNIX_C)
18044 #
18045 if test "$want_warnings" = "yes"; then
18046 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18047 fi
18048 ;;
18049 #
18050 WATCOM_WINDOWS_C)
18051 #
18052 tmp_CFLAGS="$tmp_CFLAGS"
18053 ;;
18054 #
18055 esac
18056 #
18057 squeeze tmp_CPPFLAGS
18058 squeeze tmp_CFLAGS
18059 #
18060 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18062$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18063 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18064 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18065 squeeze CPPFLAGS
18066 squeeze CFLAGS
18067
18068 tmp_compiler_works="unknown"
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070/* end confdefs.h. */
18071
18072
18073
18074int main (void)
18075{
18076
18077 int i = 1;
18078 return i;
18079
18080 ;
18081 return 0;
18082}
18083
18084_ACEOF
18085if ac_fn_c_try_compile "$LINENO"; then :
18086
18087 tmp_compiler_works="yes"
18088
18089else
18090
18091 tmp_compiler_works="no"
18092 echo " " >&6
18093 sed 's/^/cc-fail: /' conftest.err >&6
18094 echo " " >&6
18095
18096fi
18097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098 if test "$tmp_compiler_works" = "yes"; then
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100/* end confdefs.h. */
18101
18102
18103
18104int main (void)
18105{
18106
18107 int i = 1;
18108 return i;
18109
18110 ;
18111 return 0;
18112}
18113
18114_ACEOF
18115if ac_fn_c_try_link "$LINENO"; then :
18116
18117 tmp_compiler_works="yes"
18118
18119else
18120
18121 tmp_compiler_works="no"
18122 echo " " >&6
18123 sed 's/^/link-fail: /' conftest.err >&6
18124 echo " " >&6
18125
18126fi
18127rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18129 fi
18130 if test "x$cross_compiling" != "xyes" &&
18131 test "$tmp_compiler_works" = "yes"; then
18132 if test "$cross_compiling" = yes; then :
18133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18135as_fn_error $? "cannot run test program while cross compiling
18136See \`config.log' for more details" "$LINENO" 5; }
18137else
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139/* end confdefs.h. */
18140
18141
18142# ifdef __STDC__
18143# include <stdlib.h>
18144# endif
18145
18146int main (void)
18147{
18148
18149 int i = 0;
18150 exit(i);
18151
18152 ;
18153 return 0;
18154}
18155
18156_ACEOF
18157if ac_fn_c_try_run "$LINENO"; then :
18158
18159 tmp_compiler_works="yes"
18160
18161else
18162
18163 tmp_compiler_works="no"
18164 echo " " >&6
18165 echo "run-fail: test program exited with status $ac_status" >&6
18166 echo " " >&6
18167
18168fi
18169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18170 conftest.$ac_objext conftest.beam conftest.$ac_ext
18171fi
18172
18173 fi
18174 if test "$tmp_compiler_works" = "yes"; then
18175
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18177$as_echo "yes" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18179$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18180
18181 else
18182
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18184$as_echo "no" >&6; }
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18186$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18187 CPPFLAGS="$tmp_save_CPPFLAGS"
18188 CFLAGS="$tmp_save_CFLAGS"
18189
18190 fi
18191
18192 fi
18193 #
18194 fi
18195
18196
18197if test "$compiler_id" = "INTEL_UNIX_C"; then
18198 #
18199 if test "$compiler_num" -ge "1000"; then
18200 CFLAGS="$CFLAGS -shared-intel"
18201 elif test "$compiler_num" -ge "900"; then
18202 CFLAGS="$CFLAGS -i-dynamic"
18203 fi
18204 #
18205fi
18206
18207
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18209$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211/* end confdefs.h. */
18212
18213
18214
18215int main (void)
18216{
18217
18218 force compilation error
18219
18220 ;
18221 return 0;
18222}
18223
18224_ACEOF
18225if ac_fn_c_try_compile "$LINENO"; then :
18226
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18228$as_echo "no" >&6; }
18229 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18230
18231else
18232
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18234$as_echo "yes" >&6; }
18235
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238
18239
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18241$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243/* end confdefs.h. */
18244
18245
18246 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18247
18248int main (void)
18249{
18250
18251 bad_t dummy;
18252
18253 ;
18254 return 0;
18255}
18256
18257_ACEOF
18258if ac_fn_c_try_compile "$LINENO"; then :
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261$as_echo "no" >&6; }
18262 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18263
18264else
18265
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267$as_echo "yes" >&6; }
18268
18269fi
18270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271
18272
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18274$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276/* end confdefs.h. */
18277
18278
18279# include <stdlib.h>
18280 int rand(int n);
18281 int rand(int n)
18282 {
18283 if(n)
18284 return ++n;
18285 else
18286 return n;
18287 }
18288
18289int main (void)
18290{
18291
18292 int i[2]={0,0};
18293 int j = rand(i[0]);
18294 if(j)
18295 return j;
18296
18297 ;
18298 return 0;
18299}
18300
18301_ACEOF
18302if ac_fn_c_try_compile "$LINENO"; then :
18303
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305$as_echo "no" >&6; }
18306 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18307
18308else
18309
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311$as_echo "yes" >&6; }
18312
18313fi
18314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18318$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18319 supports_symbol_hiding="no"
18320 symbol_hiding_CFLAGS=""
18321 symbol_hiding_EXTERN=""
18322 tmp_CFLAGS=""
18323 tmp_EXTERN=""
18324 case "$compiler_id" in
18325 CLANG)
18326 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18327 tmp_CFLAGS="-fvisibility=hidden"
18328 supports_symbol_hiding="yes"
18329 ;;
18330 GNU_C)
18331 if test "$compiler_num" -ge "304"; then
18332 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18333 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18334 tmp_CFLAGS="-fvisibility=hidden"
18335 supports_symbol_hiding="yes"
18336 fi
18337 fi
18338 ;;
18339 INTEL_UNIX_C)
18340 if test "$compiler_num" -ge "900"; then
18341 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18342 tmp_save_CFLAGS="$CFLAGS"
18343 CFLAGS="$CFLAGS -fvisibility=hidden"
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345/* end confdefs.h. */
18346
18347
18348# include <stdio.h>
18349
18350int main (void)
18351{
18352
18353 printf("icc fvisibility bug test");
18354
18355 ;
18356 return 0;
18357}
18358
18359_ACEOF
18360if ac_fn_c_try_link "$LINENO"; then :
18361
18362 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18363 tmp_CFLAGS="-fvisibility=hidden"
18364 supports_symbol_hiding="yes"
18365
18366fi
18367rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369 CFLAGS="$tmp_save_CFLAGS"
18370 fi
18371 fi
18372 ;;
18373 SUNPRO_C)
18374 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18375 tmp_EXTERN="__global"
18376 tmp_CFLAGS="-xldscope=hidden"
18377 supports_symbol_hiding="yes"
18378 fi
18379 ;;
18380 esac
18381 if test "$supports_symbol_hiding" = "yes"; then
18382 tmp_save_CFLAGS="$CFLAGS"
18383 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18384 squeeze CFLAGS
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386/* end confdefs.h. */
18387
18388
18389 $tmp_EXTERN char *dummy(char *buff);
18390 char *dummy(char *buff)
18391 {
18392 if(buff)
18393 return ++buff;
18394 else
18395 return buff;
18396 }
18397
18398int main (void)
18399{
18400
18401 char b[16];
18402 char *r = dummy(&b[0]);
18403 if(r)
18404 return (int)*r;
18405
18406 ;
18407 return 0;
18408}
18409
18410_ACEOF
18411if ac_fn_c_try_compile "$LINENO"; then :
18412
18413 supports_symbol_hiding="yes"
18414 if test -f conftest.err; then
18415 grep 'visibility' conftest.err >/dev/null
18416 if test "$?" -eq "0"; then
18417 supports_symbol_hiding="no"
18418 fi
18419 fi
18420
18421else
18422
18423 supports_symbol_hiding="no"
18424 echo " " >&6
18425 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18426 sed 's/^/cc-err: /' conftest.err >&6
18427 echo " " >&6
18428
18429fi
18430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 CFLAGS="$tmp_save_CFLAGS"
18432 fi
18433 if test "$supports_symbol_hiding" = "yes"; then
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18435$as_echo "yes" >&6; }
18436 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18437 symbol_hiding_EXTERN="$tmp_EXTERN"
18438 else
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18440$as_echo "no" >&6; }
18441 fi
18442
18443
18444
18445 supports_curldebug="unknown"
18446 if test "$want_curldebug" = "yes"; then
18447 if test "x$enable_shared" != "xno" &&
18448 test "x$enable_shared" != "xyes"; then
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18450$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18451 supports_curldebug="no"
18452 fi
18453 if test "x$enable_static" != "xno" &&
18454 test "x$enable_static" != "xyes"; then
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18456$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18457 supports_curldebug="no"
18458 fi
18459 if test "$supports_curldebug" != "no"; then
18460 if test "$enable_shared" = "yes" &&
18461 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18462 supports_curldebug="no"
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18464$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18465 fi
18466 fi
18467 fi
18468 #
18469 if test "$want_curldebug" = "yes"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18471$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18472 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18474$as_echo "$supports_curldebug" >&6; }
18475 if test "$supports_curldebug" = "no"; then
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18477$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18478 want_curldebug="no"
18479 fi
18480 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018481
18482 if test x$want_curldebug = xyes; then
18483 CURLDEBUG_TRUE=
18484 CURLDEBUG_FALSE='#'
18485else
18486 CURLDEBUG_TRUE='#'
18487 CURLDEBUG_FALSE=
18488fi
18489
18490
18491supports_unittests=yes
18492# cross-compilation of unit tests static library/programs fails when
18493# libcurl shared library is built. This might be due to a libtool or
18494# automake issue. In this case we disable unit tests.
18495if test "x$cross_compiling" != "xno" &&
18496 test "x$enable_shared" != "xno"; then
18497 supports_unittests=no
18498fi
18499
18500# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18501# a problem related with OpenSSL headers and library versions not matching.
18502# Disable unit tests while time to further investigate this is found.
18503case $host in
18504 mips-sgi-irix6.5)
18505 if test "$compiler_id" = "GNU_C"; then
18506 supports_unittests=no
18507 fi
18508 ;;
18509esac
18510
18511# All AIX autobuilds fails unit tests linking against unittests library
18512# due to unittests library being built with no symbols or members. Libtool ?
18513# Disable unit tests while time to further investigate this is found.
18514case $host_os in
18515 aix*)
18516 supports_unittests=no
18517 ;;
18518esac
18519
18520if test "x$want_debug" = "xyes" &&
18521 test "x$supports_unittests" = "xyes"; then
18522 want_unittests=yes
18523else
18524 want_unittests=no
18525fi
18526 if test x$want_unittests = xyes; then
18527 BUILD_UNITTESTS_TRUE=
18528 BUILD_UNITTESTS_FALSE='#'
18529else
18530 BUILD_UNITTESTS_TRUE='#'
18531 BUILD_UNITTESTS_FALSE=
18532fi
18533
18534
18535
18536
18537
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18539$as_echo_n "checking for windows.h... " >&6; }
18540if ${curl_cv_header_windows_h+:} false; then :
18541 $as_echo_n "(cached) " >&6
18542else
18543
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545/* end confdefs.h. */
18546
18547
18548#undef inline
18549#ifndef WIN32_LEAN_AND_MEAN
18550#define WIN32_LEAN_AND_MEAN
18551#endif
18552#include <windows.h>
18553
18554int main (void)
18555{
18556
18557#if defined(__CYGWIN__) || defined(__CEGCC__)
18558 HAVE_WINDOWS_H shall not be defined.
18559#else
18560 int dummy=2*WINVER;
18561#endif
18562
18563 ;
18564 return 0;
18565}
18566
18567_ACEOF
18568if ac_fn_c_try_compile "$LINENO"; then :
18569
18570 curl_cv_header_windows_h="yes"
18571
18572else
18573
18574 curl_cv_header_windows_h="no"
18575
18576fi
18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578
18579fi
18580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18581$as_echo "$curl_cv_header_windows_h" >&6; }
18582 case "$curl_cv_header_windows_h" in
18583 yes)
18584
18585cat >>confdefs.h <<_ACEOF
18586#define HAVE_WINDOWS_H 1
18587_ACEOF
18588
18589 ;;
18590 esac
18591
18592
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18594$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18595if ${curl_cv_native_windows+:} false; then :
18596 $as_echo_n "(cached) " >&6
18597else
18598
18599 if test "$curl_cv_header_windows_h" = "no"; then
18600 curl_cv_native_windows="no"
18601 else
18602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603/* end confdefs.h. */
18604
18605
18606
18607int main (void)
18608{
18609
18610#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18611 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18612 int dummy=1;
18613#else
18614 Not a native Windows build target.
18615#endif
18616
18617 ;
18618 return 0;
18619}
18620
18621_ACEOF
18622if ac_fn_c_try_compile "$LINENO"; then :
18623
18624 curl_cv_native_windows="yes"
18625
18626else
18627
18628 curl_cv_native_windows="no"
18629
18630fi
18631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18632 fi
18633
18634fi
18635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18636$as_echo "$curl_cv_native_windows" >&6; }
18637 if test "x$curl_cv_native_windows" = xyes; then
18638 DOING_NATIVE_WINDOWS_TRUE=
18639 DOING_NATIVE_WINDOWS_FALSE='#'
18640else
18641 DOING_NATIVE_WINDOWS_TRUE='#'
18642 DOING_NATIVE_WINDOWS_FALSE=
18643fi
18644
18645
18646case X-"$curl_cv_native_windows" in
18647 X-yes)
18648
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18650$as_echo_n "checking for winsock.h... " >&6; }
18651if ${curl_cv_header_winsock_h+:} false; then :
18652 $as_echo_n "(cached) " >&6
18653else
18654
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656/* end confdefs.h. */
18657
18658
18659#undef inline
18660#ifndef WIN32_LEAN_AND_MEAN
18661#define WIN32_LEAN_AND_MEAN
18662#endif
18663#include <windows.h>
18664#include <winsock.h>
18665
18666int main (void)
18667{
18668
18669#if defined(__CYGWIN__) || defined(__CEGCC__)
18670 HAVE_WINSOCK_H shall not be defined.
18671#else
18672 int dummy=WSACleanup();
18673#endif
18674
18675 ;
18676 return 0;
18677}
18678
18679_ACEOF
18680if ac_fn_c_try_compile "$LINENO"; then :
18681
18682 curl_cv_header_winsock_h="yes"
18683
18684else
18685
18686 curl_cv_header_winsock_h="no"
18687
18688fi
18689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18690
18691fi
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18693$as_echo "$curl_cv_header_winsock_h" >&6; }
18694 case "$curl_cv_header_winsock_h" in
18695 yes)
18696
18697cat >>confdefs.h <<_ACEOF
18698#define HAVE_WINSOCK_H 1
18699_ACEOF
18700
18701 ;;
18702 esac
18703
18704
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18706$as_echo_n "checking for winsock2.h... " >&6; }
18707if ${curl_cv_header_winsock2_h+:} false; then :
18708 $as_echo_n "(cached) " >&6
18709else
18710
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712/* end confdefs.h. */
18713
18714
18715#undef inline
18716#ifndef WIN32_LEAN_AND_MEAN
18717#define WIN32_LEAN_AND_MEAN
18718#endif
18719#include <windows.h>
18720#include <winsock2.h>
18721
18722int main (void)
18723{
18724
18725#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18726 HAVE_WINSOCK2_H shall not be defined.
18727#else
18728 int dummy=2*IPPROTO_ESP;
18729#endif
18730
18731 ;
18732 return 0;
18733}
18734
18735_ACEOF
18736if ac_fn_c_try_compile "$LINENO"; then :
18737
18738 curl_cv_header_winsock2_h="yes"
18739
18740else
18741
18742 curl_cv_header_winsock2_h="no"
18743
18744fi
18745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746
18747fi
18748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18749$as_echo "$curl_cv_header_winsock2_h" >&6; }
18750 case "$curl_cv_header_winsock2_h" in
18751 yes)
18752
18753cat >>confdefs.h <<_ACEOF
18754#define HAVE_WINSOCK2_H 1
18755_ACEOF
18756
18757 ;;
18758 esac
18759
18760
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18762$as_echo_n "checking for ws2tcpip.h... " >&6; }
18763if ${curl_cv_header_ws2tcpip_h+:} false; then :
18764 $as_echo_n "(cached) " >&6
18765else
18766
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768/* end confdefs.h. */
18769
18770
18771#undef inline
18772#ifndef WIN32_LEAN_AND_MEAN
18773#define WIN32_LEAN_AND_MEAN
18774#endif
18775#include <windows.h>
18776#include <winsock2.h>
18777#include <ws2tcpip.h>
18778
18779int main (void)
18780{
18781
18782#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18783 HAVE_WS2TCPIP_H shall not be defined.
18784#else
18785 int dummy=2*IP_PKTINFO;
18786#endif
18787
18788 ;
18789 return 0;
18790}
18791
18792_ACEOF
18793if ac_fn_c_try_compile "$LINENO"; then :
18794
18795 curl_cv_header_ws2tcpip_h="yes"
18796
18797else
18798
18799 curl_cv_header_ws2tcpip_h="no"
18800
18801fi
18802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803
18804fi
18805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18806$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18807 case "$curl_cv_header_ws2tcpip_h" in
18808 yes)
18809
18810cat >>confdefs.h <<_ACEOF
18811#define HAVE_WS2TCPIP_H 1
18812_ACEOF
18813
18814 ;;
18815 esac
18816
18817
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18819$as_echo_n "checking for winldap.h... " >&6; }
18820if ${curl_cv_header_winldap_h+:} false; then :
18821 $as_echo_n "(cached) " >&6
18822else
18823
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825/* end confdefs.h. */
18826
18827
18828#undef inline
18829#ifdef HAVE_WINDOWS_H
18830#ifndef WIN32_LEAN_AND_MEAN
18831#define WIN32_LEAN_AND_MEAN
18832#endif
18833#include <windows.h>
18834#endif
18835#include <winldap.h>
18836
18837int main (void)
18838{
18839
18840#if defined(__CYGWIN__) || defined(__CEGCC__)
18841 HAVE_WINLDAP_H shall not be defined.
18842#else
18843 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18844 ULONG res = ldap_unbind(ldp);
18845#endif
18846
18847 ;
18848 return 0;
18849}
18850
18851_ACEOF
18852if ac_fn_c_try_compile "$LINENO"; then :
18853
18854 curl_cv_header_winldap_h="yes"
18855
18856else
18857
18858 curl_cv_header_winldap_h="no"
18859
18860fi
18861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862
18863fi
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18865$as_echo "$curl_cv_header_winldap_h" >&6; }
18866 case "$curl_cv_header_winldap_h" in
18867 yes)
18868
18869cat >>confdefs.h <<_ACEOF
18870#define HAVE_WINLDAP_H 1
18871_ACEOF
18872
18873 ;;
18874 esac
18875
18876
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18878$as_echo_n "checking for winber.h... " >&6; }
18879if ${curl_cv_header_winber_h+:} false; then :
18880 $as_echo_n "(cached) " >&6
18881else
18882
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h. */
18885
18886
18887#undef inline
18888#ifdef HAVE_WINDOWS_H
18889#ifndef WIN32_LEAN_AND_MEAN
18890#define WIN32_LEAN_AND_MEAN
18891#endif
18892#include <windows.h>
18893#endif
18894#include <winldap.h>
18895#include <winber.h>
18896
18897int main (void)
18898{
18899
18900#if defined(__CYGWIN__) || defined(__CEGCC__)
18901 HAVE_WINBER_H shall not be defined.
18902#else
18903 BERVAL *bvp = NULL;
18904 BerElement *bep = ber_init(bvp);
18905 ber_free(bep, 1);
18906#endif
18907
18908 ;
18909 return 0;
18910}
18911
18912_ACEOF
18913if ac_fn_c_try_compile "$LINENO"; then :
18914
18915 curl_cv_header_winber_h="yes"
18916
18917else
18918
18919 curl_cv_header_winber_h="no"
18920
18921fi
18922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923
18924fi
18925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18926$as_echo "$curl_cv_header_winber_h" >&6; }
18927 case "$curl_cv_header_winber_h" in
18928 yes)
18929
18930cat >>confdefs.h <<_ACEOF
18931#define HAVE_WINBER_H 1
18932_ACEOF
18933
18934 ;;
18935 esac
18936
18937 ;;
18938 *)
18939 curl_cv_header_winsock_h="no"
18940 curl_cv_header_winsock2_h="no"
18941 curl_cv_header_ws2tcpip_h="no"
18942 curl_cv_header_winldap_h="no"
18943 curl_cv_header_winber_h="no"
18944 ;;
18945esac
18946
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18948$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18949 curl_win32_file_api="no"
18950 if test "$curl_cv_header_windows_h" = "yes"; then
18951 if test x"$enable_largefile" != "xno"; then
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953/* end confdefs.h. */
18954
18955
18956
18957int main (void)
18958{
18959
18960#if !defined(_WIN32_WCE) && \
18961 (defined(__MINGW32__) || \
18962 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18963 int dummy=1;
18964#else
18965 WIN32 large file API not supported.
18966#endif
18967
18968 ;
18969 return 0;
18970}
18971
18972_ACEOF
18973if ac_fn_c_try_compile "$LINENO"; then :
18974
18975 curl_win32_file_api="win32_large_files"
18976
18977fi
18978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979 fi
18980 if test "$curl_win32_file_api" = "no"; then
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982/* end confdefs.h. */
18983
18984
18985
18986int main (void)
18987{
18988
18989#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18990 int dummy=1;
18991#else
18992 WIN32 small file API not supported.
18993#endif
18994
18995 ;
18996 return 0;
18997}
18998
18999_ACEOF
19000if ac_fn_c_try_compile "$LINENO"; then :
19001
19002 curl_win32_file_api="win32_small_files"
19003
19004fi
19005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 fi
19007 fi
19008 case "$curl_win32_file_api" in
19009 win32_large_files)
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19011$as_echo "yes (large file enabled)" >&6; }
19012
19013cat >>confdefs.h <<_ACEOF
19014#define USE_WIN32_LARGE_FILES 1
19015_ACEOF
19016
19017 ;;
19018 win32_small_files)
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19020$as_echo "yes (large file disabled)" >&6; }
19021
19022cat >>confdefs.h <<_ACEOF
19023#define USE_WIN32_SMALL_FILES 1
19024_ACEOF
19025
19026 ;;
19027 *)
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19029$as_echo "no" >&6; }
19030 ;;
19031 esac
19032
19033
19034
19035
19036 tst_cflags="no"
19037 case $host_os in
19038 darwin*)
19039 tst_cflags="yes"
19040 ;;
19041 esac
19042
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19044$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19046$as_echo "$tst_cflags" >&6; };
19047
19048 if test "$tst_cflags" = "yes"; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19050$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19051 min=""
19052 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19053 min="-mmacosx-version-min=10.8"
19054 CFLAGS="$CFLAGS $min"
19055 fi
19056 if test -z "$min"; then
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19058$as_echo "set by user" >&6; }
19059 else
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19061$as_echo "$min set" >&6; }
19062 fi
19063
19064 old_CFLAGS=$CFLAGS
19065 CFLAGS="$CFLAGS -Werror=partial-availability"
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19067$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069/* end confdefs.h. */
19070
19071int main (void)
19072{
19073
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078if ac_fn_c_try_compile "$LINENO"; then :
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19080$as_echo "yes" >&6; }
19081else
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083$as_echo "no" >&6; }
19084 CFLAGS=$old_CFLAGS
19085fi
19086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19087 fi
19088
19089
19090
Alex Deymo486467e2017-12-19 19:04:07 +010019091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19092$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094/* end confdefs.h. */
19095
19096
19097#include <stdlib.h>
19098
19099int main (void)
19100{
19101
19102 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19103
19104 ;
19105 return 0;
19106}
19107
19108_ACEOF
19109if ac_fn_c_try_compile "$LINENO"; then :
19110
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112$as_echo "yes" >&6; }
19113
19114cat >>confdefs.h <<_ACEOF
19115#define HAVE_BUILTIN_AVAILABLE 1
19116_ACEOF
19117
19118
19119else
19120
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122$as_echo "no" >&6; }
19123
19124fi
19125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126
19127
Elliott Hughes82be86d2017-09-20 17:00:17 -070019128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19129$as_echo_n "checking whether to support http... " >&6; }
19130# Check whether --enable-http was given.
19131if test "${enable_http+set}" = set; then :
19132 enableval=$enable_http; case "$enableval" in
19133 no)
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135$as_echo "no" >&6; }
19136
19137$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19138
19139 disable_http="yes"
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19141$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19142 CURL_DISABLE_HTTP=1
19143
19144
19145$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19146
19147 CURL_DISABLE_RTSP=1
19148
19149 ;;
19150 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19151$as_echo "yes" >&6; }
19152 ;;
19153 esac
19154else
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19156$as_echo "yes" >&6; }
19157
19158fi
19159
19160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19161$as_echo_n "checking whether to support ftp... " >&6; }
19162# Check whether --enable-ftp was given.
19163if test "${enable_ftp+set}" = set; then :
19164 enableval=$enable_ftp; case "$enableval" in
19165 no)
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167$as_echo "no" >&6; }
19168
19169$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19170
19171 CURL_DISABLE_FTP=1
19172
19173 ;;
19174 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19175$as_echo "yes" >&6; }
19176 ;;
19177 esac
19178else
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19180$as_echo "yes" >&6; }
19181
19182fi
19183
19184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19185$as_echo_n "checking whether to support file... " >&6; }
19186# Check whether --enable-file was given.
19187if test "${enable_file+set}" = set; then :
19188 enableval=$enable_file; case "$enableval" in
19189 no)
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19191$as_echo "no" >&6; }
19192
19193$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19194
19195 CURL_DISABLE_FILE=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 ldap" >&5
19209$as_echo_n "checking whether to support ldap... " >&6; }
19210# Check whether --enable-ldap was given.
19211if test "${enable_ldap+set}" = set; then :
19212 enableval=$enable_ldap; 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_LDAP 1" >>confdefs.h
19218
19219 CURL_DISABLE_LDAP=1
19220
19221 ;;
19222 *)
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224$as_echo "yes" >&6; }
19225 ;;
19226 esac
19227else
19228
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19230$as_echo "yes" >&6; }
19231
19232fi
19233
19234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19235$as_echo_n "checking whether to support ldaps... " >&6; }
19236# Check whether --enable-ldaps was given.
19237if test "${enable_ldaps+set}" = set; then :
19238 enableval=$enable_ldaps; case "$enableval" in
19239 no)
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241$as_echo "no" >&6; }
19242
19243$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19244
19245 CURL_DISABLE_LDAPS=1
19246
19247 ;;
19248 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19250$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19251
19252$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19253
19254 CURL_DISABLE_LDAPS=1
19255
19256 else
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19258$as_echo "yes" >&6; }
19259
19260$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19261
19262 HAVE_LDAP_SSL=1
19263
19264 fi
19265 ;;
19266 esac
19267else
19268
19269 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271$as_echo "no" >&6; }
19272
19273$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19274
19275 CURL_DISABLE_LDAPS=1
19276
19277 else
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19279$as_echo "yes" >&6; }
19280
19281$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19282
19283 HAVE_LDAP_SSL=1
19284
19285 fi
19286
19287fi
19288
19289
19290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19291$as_echo_n "checking whether to support rtsp... " >&6; }
19292# Check whether --enable-rtsp was given.
19293if test "${enable_rtsp+set}" = set; then :
19294 enableval=$enable_rtsp; case "$enableval" in
19295 no)
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19297$as_echo "no" >&6; }
19298
19299$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19300
19301 CURL_DISABLE_RTSP=1
19302
19303 ;;
19304 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19305 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19306 else
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308$as_echo "yes" >&6; }
19309 curl_rtsp_msg="enabled"
19310 fi
19311 ;;
19312 esac
19313else
19314 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316$as_echo "yes" >&6; }
19317 curl_rtsp_msg="enabled"
19318 else
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19320$as_echo "no" >&6; }
19321 fi
19322
19323fi
19324
19325
19326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19327$as_echo_n "checking whether to support proxies... " >&6; }
19328# Check whether --enable-proxy was given.
19329if test "${enable_proxy+set}" = set; then :
19330 enableval=$enable_proxy; case "$enableval" in
19331 no)
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333$as_echo "no" >&6; }
19334
19335$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19336
19337 CURL_DISABLE_PROXY=1
19338
19339 ;;
19340 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19341$as_echo "yes" >&6; }
19342 ;;
19343 esac
19344else
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19346$as_echo "yes" >&6; }
19347
19348fi
19349
19350
19351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19352$as_echo_n "checking whether to support dict... " >&6; }
19353# Check whether --enable-dict was given.
19354if test "${enable_dict+set}" = set; then :
19355 enableval=$enable_dict; case "$enableval" in
19356 no)
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358$as_echo "no" >&6; }
19359
19360$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19361
19362 CURL_DISABLE_DICT=1
19363
19364 ;;
19365 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19366$as_echo "yes" >&6; }
19367 ;;
19368 esac
19369else
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19371$as_echo "yes" >&6; }
19372
19373fi
19374
19375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19376$as_echo_n "checking whether to support telnet... " >&6; }
19377# Check whether --enable-telnet was given.
19378if test "${enable_telnet+set}" = set; then :
19379 enableval=$enable_telnet; case "$enableval" in
19380 no)
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382$as_echo "no" >&6; }
19383
19384$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19385
19386 CURL_DISABLE_TELNET=1
19387
19388 ;;
19389 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19390$as_echo "yes" >&6; }
19391 ;;
19392 esac
19393else
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395$as_echo "yes" >&6; }
19396
19397fi
19398
19399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19400$as_echo_n "checking whether to support tftp... " >&6; }
19401# Check whether --enable-tftp was given.
19402if test "${enable_tftp+set}" = set; then :
19403 enableval=$enable_tftp; 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_TFTP 1" >>confdefs.h
19409
19410 CURL_DISABLE_TFTP=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
19424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19425$as_echo_n "checking whether to support pop3... " >&6; }
19426# Check whether --enable-pop3 was given.
19427if test "${enable_pop3+set}" = set; then :
19428 enableval=$enable_pop3; case "$enableval" in
19429 no)
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431$as_echo "no" >&6; }
19432
19433$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19434
19435 CURL_DISABLE_POP3=1
19436
19437 ;;
19438 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439$as_echo "yes" >&6; }
19440 ;;
19441 esac
19442else
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19444$as_echo "yes" >&6; }
19445
19446fi
19447
19448
19449
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19451$as_echo_n "checking whether to support imap... " >&6; }
19452# Check whether --enable-imap was given.
19453if test "${enable_imap+set}" = set; then :
19454 enableval=$enable_imap; case "$enableval" in
19455 no)
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457$as_echo "no" >&6; }
19458
19459$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19460
19461 CURL_DISABLE_IMAP=1
19462
19463 ;;
19464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19465$as_echo "yes" >&6; }
19466 ;;
19467 esac
19468else
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19470$as_echo "yes" >&6; }
19471
19472fi
19473
19474
19475
19476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19477$as_echo_n "checking whether to support smb... " >&6; }
19478# Check whether --enable-smb was given.
19479if test "${enable_smb+set}" = set; then :
19480 enableval=$enable_smb; case "$enableval" in
19481 no)
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483$as_echo "no" >&6; }
19484
19485$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19486
19487 CURL_DISABLE_SMB=1
19488
19489 ;;
19490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19491$as_echo "yes" >&6; }
19492 ;;
19493 esac
19494else
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19496$as_echo "yes" >&6; }
19497
19498fi
19499
19500
19501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19502$as_echo_n "checking whether to support smtp... " >&6; }
19503# Check whether --enable-smtp was given.
19504if test "${enable_smtp+set}" = set; then :
19505 enableval=$enable_smtp; case "$enableval" in
19506 no)
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19508$as_echo "no" >&6; }
19509
19510$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19511
19512 CURL_DISABLE_SMTP=1
19513
19514 ;;
19515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516$as_echo "yes" >&6; }
19517 ;;
19518 esac
19519else
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19521$as_echo "yes" >&6; }
19522
19523fi
19524
19525
19526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19527$as_echo_n "checking whether to support gopher... " >&6; }
19528# Check whether --enable-gopher was given.
19529if test "${enable_gopher+set}" = set; then :
19530 enableval=$enable_gopher; case "$enableval" in
19531 no)
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533$as_echo "no" >&6; }
19534
19535$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19536
19537 CURL_DISABLE_GOPHER=1
19538
19539 ;;
19540 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541$as_echo "yes" >&6; }
19542 ;;
19543 esac
19544else
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19546$as_echo "yes" >&6; }
19547
19548fi
19549
19550
19551
19552
19553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19554$as_echo_n "checking whether to provide built-in manual... " >&6; }
19555# Check whether --enable-manual was given.
19556if test "${enable_manual+set}" = set; then :
19557 enableval=$enable_manual; case "$enableval" in
19558 no)
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19560$as_echo "no" >&6; }
19561 ;;
19562 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19563$as_echo "yes" >&6; }
19564 USE_MANUAL="1"
19565 ;;
19566 esac
19567else
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569$as_echo "yes" >&6; }
19570 USE_MANUAL="1"
19571
19572fi
19573
19574
19575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19576$as_echo_n "checking whether to enable generation of C code... " >&6; }
19577# Check whether --enable-libcurl_option was given.
19578if test "${enable_libcurl_option+set}" = set; then :
19579 enableval=$enable_libcurl_option; case "$enableval" in
19580 no)
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19582$as_echo "no" >&6; }
19583
19584$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19585
19586 curl_libcurl_msg="no"
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19601$as_echo_n "checking whether to use libgcc... " >&6; }
19602# Check whether --enable-libgcc was given.
19603if test "${enable_libgcc+set}" = set; then :
19604 enableval=$enable_libgcc; case "$enableval" in
19605 yes)
19606 LIBS="-lgcc $LIBS"
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608$as_echo "yes" >&6; }
19609 ;;
19610 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611$as_echo "no" >&6; }
19612 ;;
19613 esac
19614else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616$as_echo "no" >&6; }
19617
19618fi
19619
19620
19621
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19623$as_echo_n "checking if X/Open network library is required... " >&6; }
19624 tst_lib_xnet_required="no"
19625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626/* end confdefs.h. */
19627
19628
19629int main (void)
19630{
19631#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19632 return 0;
19633#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19634 return 0;
19635#else
19636 force compilation error
19637#endif
19638}
19639
19640
19641_ACEOF
19642if ac_fn_c_try_compile "$LINENO"; then :
19643
19644 tst_lib_xnet_required="yes"
19645 LIBS="-lxnet $LIBS"
19646
19647fi
19648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19650$as_echo "$tst_lib_xnet_required" >&6; }
19651
19652
19653ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19654if test "x$ac_cv_func_gethostbyname" = xyes; then :
19655 HAVE_GETHOSTBYNAME="1"
19656
19657else
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19659$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19660if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19661 $as_echo_n "(cached) " >&6
19662else
19663 ac_check_lib_save_LIBS=$LIBS
19664LIBS="-lnsl $LIBS"
19665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666/* end confdefs.h. */
19667
19668
19669#ifdef __cplusplus
19670extern "C"
19671#endif
19672char gethostbyname ();
19673int main (void)
19674{
19675return gethostbyname ();
19676 ;
19677 return 0;
19678}
19679_ACEOF
19680if ac_fn_c_try_link "$LINENO"; then :
19681 ac_cv_lib_nsl_gethostbyname=yes
19682else
19683 ac_cv_lib_nsl_gethostbyname=no
19684fi
19685rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19687LIBS=$ac_check_lib_save_LIBS
19688fi
19689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19690$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19691if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19692 HAVE_GETHOSTBYNAME="1"
19693 LIBS="-lnsl $LIBS"
19694
19695fi
19696
19697
19698fi
19699
19700
19701if test "$HAVE_GETHOSTBYNAME" != "1"
19702then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19704$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19705if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19706 $as_echo_n "(cached) " >&6
19707else
19708 ac_check_lib_save_LIBS=$LIBS
19709LIBS="-lsocket $LIBS"
19710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711/* end confdefs.h. */
19712
19713
19714#ifdef __cplusplus
19715extern "C"
19716#endif
19717char gethostbyname ();
19718int main (void)
19719{
19720return gethostbyname ();
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725if ac_fn_c_try_link "$LINENO"; then :
19726 ac_cv_lib_socket_gethostbyname=yes
19727else
19728 ac_cv_lib_socket_gethostbyname=no
19729fi
19730rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732LIBS=$ac_check_lib_save_LIBS
19733fi
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19735$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19736if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19737 HAVE_GETHOSTBYNAME="1"
19738 LIBS="-lsocket $LIBS"
19739
19740fi
19741
19742fi
19743
19744if test "$HAVE_GETHOSTBYNAME" != "1"
19745then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19747$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19748if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19749 $as_echo_n "(cached) " >&6
19750else
19751 ac_check_lib_save_LIBS=$LIBS
19752LIBS="-lwatt $LIBS"
19753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754/* end confdefs.h. */
19755
19756
19757#ifdef __cplusplus
19758extern "C"
19759#endif
19760char gethostbyname ();
19761int main (void)
19762{
19763return gethostbyname ();
19764 ;
19765 return 0;
19766}
19767_ACEOF
19768if ac_fn_c_try_link "$LINENO"; then :
19769 ac_cv_lib_watt_gethostbyname=yes
19770else
19771 ac_cv_lib_watt_gethostbyname=no
19772fi
19773rm -f core conftest.err conftest.$ac_objext \
19774 conftest$ac_exeext conftest.$ac_ext
19775LIBS=$ac_check_lib_save_LIBS
19776fi
19777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19778$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19779if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19780 HAVE_GETHOSTBYNAME="1"
19781 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19782 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19783 LIBS="-lwatt $LIBS"
19784
19785fi
19786
19787fi
19788
19789if test "$HAVE_GETHOSTBYNAME" != "1"
19790then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19792$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19793 my_ac_save_LIBS=$LIBS
19794 LIBS="-lnsl -lsocket $LIBS"
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h. */
19797
19798
19799
19800int main (void)
19801{
19802
19803 gethostbyname();
19804
19805 ;
19806 return 0;
19807}
19808
19809_ACEOF
19810if ac_fn_c_try_link "$LINENO"; then :
19811
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19813$as_echo "yes" >&6; }
19814 HAVE_GETHOSTBYNAME="1"
19815
19816else
19817
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19819$as_echo "no" >&6; }
19820 LIBS=$my_ac_save_LIBS
19821
19822fi
19823rm -f core conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825fi
19826
19827if test "$HAVE_GETHOSTBYNAME" != "1"
19828then
19829 if test "$curl_cv_header_windows_h" = "yes"; then
19830 if test "$curl_cv_header_winsock_h" = "yes"; then
19831 case $host in
19832 *-*-mingw32ce*)
19833 winsock_LIB="-lwinsock"
19834 ;;
19835 *)
19836 winsock_LIB="-lwsock32"
19837 ;;
19838 esac
19839 fi
19840 if test "$curl_cv_header_winsock2_h" = "yes"; then
19841 winsock_LIB="-lws2_32"
19842 fi
19843 if test ! -z "$winsock_LIB"; then
19844 my_ac_save_LIBS=$LIBS
19845 LIBS="$winsock_LIB $LIBS"
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19847$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849/* end confdefs.h. */
19850
19851
19852#ifdef HAVE_WINDOWS_H
19853#ifndef WIN32_LEAN_AND_MEAN
19854#define WIN32_LEAN_AND_MEAN
19855#endif
19856#include <windows.h>
19857#ifdef HAVE_WINSOCK2_H
19858#include <winsock2.h>
19859#else
19860#ifdef HAVE_WINSOCK_H
19861#include <winsock.h>
19862#endif
19863#endif
19864#endif
19865
19866int main (void)
19867{
19868
19869 gethostbyname("www.dummysite.com");
19870
19871 ;
19872 return 0;
19873}
19874
19875_ACEOF
19876if ac_fn_c_try_link "$LINENO"; then :
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879$as_echo "yes" >&6; }
19880 HAVE_GETHOSTBYNAME="1"
19881
19882else
19883
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19885$as_echo "no" >&6; }
19886 winsock_LIB=""
19887 LIBS=$my_ac_save_LIBS
19888
19889fi
19890rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
19892 fi
19893 fi
19894fi
19895
19896if test "$HAVE_GETHOSTBYNAME" != "1"
19897then
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19899$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901/* end confdefs.h. */
19902
19903
19904/* Older Minix versions may need <net/gen/netdb.h> here instead */
19905#include <netdb.h>
19906
19907int main (void)
19908{
19909
19910 gethostbyname("www.dummysite.com");
19911
19912 ;
19913 return 0;
19914}
19915
19916_ACEOF
19917if ac_fn_c_try_link "$LINENO"; then :
19918
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19920$as_echo "yes" >&6; }
19921 HAVE_GETHOSTBYNAME="1"
19922
19923else
19924
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19926$as_echo "no" >&6; }
19927
19928fi
19929rm -f core conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19931fi
19932
19933if test "$HAVE_GETHOSTBYNAME" != "1"
19934then
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19936$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938/* end confdefs.h. */
19939
19940
19941#include <stdio.h>
19942#include <netdb.h>
19943
19944int main (void)
19945{
19946
19947 gethostbyname("www.dummysite.com");
19948
19949 ;
19950 return 0;
19951}
19952
19953_ACEOF
19954if ac_fn_c_try_link "$LINENO"; then :
19955
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957$as_echo "yes" >&6; }
19958 HAVE_GETHOSTBYNAME="1"
19959
19960else
19961
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963$as_echo "no" >&6; }
19964
19965fi
19966rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968fi
19969
19970if test "$HAVE_GETHOSTBYNAME" != "1"
19971then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19973$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19974if ${ac_cv_lib_network_gethostbyname+:} false; then :
19975 $as_echo_n "(cached) " >&6
19976else
19977 ac_check_lib_save_LIBS=$LIBS
19978LIBS="-lnetwork $LIBS"
19979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980/* end confdefs.h. */
19981
19982
19983#ifdef __cplusplus
19984extern "C"
19985#endif
19986char gethostbyname ();
19987int main (void)
19988{
19989return gethostbyname ();
19990 ;
19991 return 0;
19992}
19993_ACEOF
19994if ac_fn_c_try_link "$LINENO"; then :
19995 ac_cv_lib_network_gethostbyname=yes
19996else
19997 ac_cv_lib_network_gethostbyname=no
19998fi
19999rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001LIBS=$ac_check_lib_save_LIBS
20002fi
20003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20004$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20005if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20006 HAVE_GETHOSTBYNAME="1"
20007 LIBS="-lnetwork $LIBS"
20008
20009fi
20010
20011fi
20012
20013if test "$HAVE_GETHOSTBYNAME" != "1"
20014then
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20016$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20017if ${ac_cv_lib_net_gethostbyname+:} false; then :
20018 $as_echo_n "(cached) " >&6
20019else
20020 ac_check_lib_save_LIBS=$LIBS
20021LIBS="-lnet $LIBS"
20022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023/* end confdefs.h. */
20024
20025
20026#ifdef __cplusplus
20027extern "C"
20028#endif
20029char gethostbyname ();
20030int main (void)
20031{
20032return gethostbyname ();
20033 ;
20034 return 0;
20035}
20036_ACEOF
20037if ac_fn_c_try_link "$LINENO"; then :
20038 ac_cv_lib_net_gethostbyname=yes
20039else
20040 ac_cv_lib_net_gethostbyname=no
20041fi
20042rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20044LIBS=$ac_check_lib_save_LIBS
20045fi
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20047$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20048if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20049 HAVE_GETHOSTBYNAME="1"
20050 LIBS="-lnet $LIBS"
20051
20052fi
20053
20054fi
20055
20056
20057if test "$HAVE_GETHOSTBYNAME" != "1"; then
20058 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20059fi
20060
20061
20062curl_includes_winsock2="\
20063/* includes start */
20064#ifdef HAVE_WINDOWS_H
20065# ifndef WIN32_LEAN_AND_MEAN
20066# define WIN32_LEAN_AND_MEAN
20067# endif
20068# include <windows.h>
20069# ifdef HAVE_WINSOCK2_H
20070# include <winsock2.h>
20071# else
20072# ifdef HAVE_WINSOCK_H
20073# include <winsock.h>
20074# endif
20075# endif
20076#endif
20077/* includes end */"
20078
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20080$as_echo_n "checking for windows.h... " >&6; }
20081if ${curl_cv_header_windows_h+:} false; then :
20082 $as_echo_n "(cached) " >&6
20083else
20084
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086/* end confdefs.h. */
20087
20088
20089#undef inline
20090#ifndef WIN32_LEAN_AND_MEAN
20091#define WIN32_LEAN_AND_MEAN
20092#endif
20093#include <windows.h>
20094
20095int main (void)
20096{
20097
20098#if defined(__CYGWIN__) || defined(__CEGCC__)
20099 HAVE_WINDOWS_H shall not be defined.
20100#else
20101 int dummy=2*WINVER;
20102#endif
20103
20104 ;
20105 return 0;
20106}
20107
20108_ACEOF
20109if ac_fn_c_try_compile "$LINENO"; then :
20110
20111 curl_cv_header_windows_h="yes"
20112
20113else
20114
20115 curl_cv_header_windows_h="no"
20116
20117fi
20118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119
20120fi
20121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20122$as_echo "$curl_cv_header_windows_h" >&6; }
20123 case "$curl_cv_header_windows_h" in
20124 yes)
20125
20126cat >>confdefs.h <<_ACEOF
20127#define HAVE_WINDOWS_H 1
20128_ACEOF
20129
20130 ;;
20131 esac
20132
20133
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20135$as_echo_n "checking for winsock.h... " >&6; }
20136if ${curl_cv_header_winsock_h+:} false; then :
20137 $as_echo_n "(cached) " >&6
20138else
20139
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141/* end confdefs.h. */
20142
20143
20144#undef inline
20145#ifndef WIN32_LEAN_AND_MEAN
20146#define WIN32_LEAN_AND_MEAN
20147#endif
20148#include <windows.h>
20149#include <winsock.h>
20150
20151int main (void)
20152{
20153
20154#if defined(__CYGWIN__) || defined(__CEGCC__)
20155 HAVE_WINSOCK_H shall not be defined.
20156#else
20157 int dummy=WSACleanup();
20158#endif
20159
20160 ;
20161 return 0;
20162}
20163
20164_ACEOF
20165if ac_fn_c_try_compile "$LINENO"; then :
20166
20167 curl_cv_header_winsock_h="yes"
20168
20169else
20170
20171 curl_cv_header_winsock_h="no"
20172
20173fi
20174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175
20176fi
20177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20178$as_echo "$curl_cv_header_winsock_h" >&6; }
20179 case "$curl_cv_header_winsock_h" in
20180 yes)
20181
20182cat >>confdefs.h <<_ACEOF
20183#define HAVE_WINSOCK_H 1
20184_ACEOF
20185
20186 ;;
20187 esac
20188
20189
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20191$as_echo_n "checking for winsock2.h... " >&6; }
20192if ${curl_cv_header_winsock2_h+:} false; then :
20193 $as_echo_n "(cached) " >&6
20194else
20195
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197/* end confdefs.h. */
20198
20199
20200#undef inline
20201#ifndef WIN32_LEAN_AND_MEAN
20202#define WIN32_LEAN_AND_MEAN
20203#endif
20204#include <windows.h>
20205#include <winsock2.h>
20206
20207int main (void)
20208{
20209
20210#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20211 HAVE_WINSOCK2_H shall not be defined.
20212#else
20213 int dummy=2*IPPROTO_ESP;
20214#endif
20215
20216 ;
20217 return 0;
20218}
20219
20220_ACEOF
20221if ac_fn_c_try_compile "$LINENO"; then :
20222
20223 curl_cv_header_winsock2_h="yes"
20224
20225else
20226
20227 curl_cv_header_winsock2_h="no"
20228
20229fi
20230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231
20232fi
20233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20234$as_echo "$curl_cv_header_winsock2_h" >&6; }
20235 case "$curl_cv_header_winsock2_h" in
20236 yes)
20237
20238cat >>confdefs.h <<_ACEOF
20239#define HAVE_WINSOCK2_H 1
20240_ACEOF
20241
20242 ;;
20243 esac
20244
20245
20246
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20248$as_echo_n "checking for connect in libraries... " >&6; }
20249 tst_connect_save_LIBS="$LIBS"
20250 tst_connect_need_LIBS="unknown"
20251 for tst_lib in '' '-lsocket' ; do
20252 if test "$tst_connect_need_LIBS" = "unknown"; then
20253 LIBS="$tst_lib $tst_connect_save_LIBS"
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255/* end confdefs.h. */
20256
20257
20258 $curl_includes_winsock2
20259 #ifndef HAVE_WINDOWS_H
20260 int connect(int, void*, int);
20261 #endif
20262
20263int main (void)
20264{
20265
20266 if(0 != connect(0, 0, 0))
20267 return 1;
20268
20269 ;
20270 return 0;
20271}
20272
20273_ACEOF
20274if ac_fn_c_try_link "$LINENO"; then :
20275
20276 tst_connect_need_LIBS="$tst_lib"
20277
20278fi
20279rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20281 fi
20282 done
20283 LIBS="$tst_connect_save_LIBS"
20284 #
20285 case X-"$tst_connect_need_LIBS" in
20286 X-unknown)
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20288$as_echo "cannot find connect" >&6; }
20289 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20290 ;;
20291 X-)
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293$as_echo "yes" >&6; }
20294 ;;
20295 *)
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20297$as_echo "$tst_connect_need_LIBS" >&6; }
20298 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20299 ;;
20300 esac
20301
20302
20303CURL_NETWORK_LIBS=$LIBS
20304
20305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20306$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20307if ${ac_cv_header_time+:} false; then :
20308 $as_echo_n "(cached) " >&6
20309else
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311/* end confdefs.h. */
20312#include <sys/types.h>
20313#include <sys/time.h>
20314#include <time.h>
20315
20316int main (void)
20317{
20318if ((struct tm *) 0)
20319return 0;
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324if ac_fn_c_try_compile "$LINENO"; then :
20325 ac_cv_header_time=yes
20326else
20327 ac_cv_header_time=no
20328fi
20329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330fi
20331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20332$as_echo "$ac_cv_header_time" >&6; }
20333if test $ac_cv_header_time = yes; then
20334
20335$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20336
20337fi
20338
20339
20340 for ac_header in sys/types.h sys/time.h time.h
20341do :
20342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20343ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20344if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20345 cat >>confdefs.h <<_ACEOF
20346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20347_ACEOF
20348
20349fi
20350
20351done
20352
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20354$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20355 #
20356 if test "x$dontwant_rt" = "xno" ; then
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358/* end confdefs.h. */
20359
20360
20361#ifdef HAVE_SYS_TYPES_H
20362#include <sys/types.h>
20363#endif
20364#ifdef HAVE_SYS_TIME_H
20365#include <sys/time.h>
20366#ifdef TIME_WITH_SYS_TIME
20367#include <time.h>
20368#endif
20369#else
20370#ifdef HAVE_TIME_H
20371#include <time.h>
20372#endif
20373#endif
20374
20375int main (void)
20376{
20377
20378 struct timespec ts;
20379 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20380
20381 ;
20382 return 0;
20383}
20384
20385_ACEOF
20386if ac_fn_c_try_compile "$LINENO"; then :
20387
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20389$as_echo "yes" >&6; }
20390 curl_func_clock_gettime="yes"
20391
20392else
20393
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395$as_echo "no" >&6; }
20396 curl_func_clock_gettime="no"
20397
20398fi
20399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20400 fi
20401
20402
20403 #
20404 if test "$curl_func_clock_gettime" = "yes"; then
20405 #
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20407$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20408 #
20409 curl_cv_save_LIBS="$LIBS"
20410 curl_cv_gclk_LIBS="unknown"
20411 #
20412 for x_xlibs in '' '-lrt' '-lposix4' ; do
20413 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20414 if test -z "$x_xlibs"; then
20415 LIBS="$curl_cv_save_LIBS"
20416 else
20417 LIBS="$x_xlibs $curl_cv_save_LIBS"
20418 fi
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420/* end confdefs.h. */
20421
20422
20423#ifdef HAVE_SYS_TYPES_H
20424#include <sys/types.h>
20425#endif
20426#ifdef HAVE_SYS_TIME_H
20427#include <sys/time.h>
20428#ifdef TIME_WITH_SYS_TIME
20429#include <time.h>
20430#endif
20431#else
20432#ifdef HAVE_TIME_H
20433#include <time.h>
20434#endif
20435#endif
20436
20437int main (void)
20438{
20439
20440 struct timespec ts;
20441 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20442
20443 ;
20444 return 0;
20445}
20446
20447_ACEOF
20448if ac_fn_c_try_link "$LINENO"; then :
20449
20450 curl_cv_gclk_LIBS="$x_xlibs"
20451
20452fi
20453rm -f core conftest.err conftest.$ac_objext \
20454 conftest$ac_exeext conftest.$ac_ext
20455 fi
20456 done
20457 #
20458 LIBS="$curl_cv_save_LIBS"
20459 #
20460 case X-"$curl_cv_gclk_LIBS" in
20461 X-unknown)
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20463$as_echo "cannot find clock_gettime" >&6; }
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20465$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20466 curl_func_clock_gettime="no"
20467 ;;
20468 X-)
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20470$as_echo "no additional lib required" >&6; }
20471 curl_func_clock_gettime="yes"
20472 ;;
20473 *)
20474 if test -z "$curl_cv_save_LIBS"; then
20475 LIBS="$curl_cv_gclk_LIBS"
20476 else
20477 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20478 fi
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20480$as_echo "$curl_cv_gclk_LIBS" >&6; }
20481 curl_func_clock_gettime="yes"
20482 ;;
20483 esac
20484 #
20485 if test "x$cross_compiling" != "xyes" &&
20486 test "$curl_func_clock_gettime" = "yes"; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20488$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20489 if test "$cross_compiling" = yes; then :
20490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20492as_fn_error $? "cannot run test program while cross compiling
20493See \`config.log' for more details" "$LINENO" 5; }
20494else
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496/* end confdefs.h. */
20497
20498
20499#ifdef HAVE_STDLIB_H
20500#include <stdlib.h>
20501#endif
20502#ifdef HAVE_SYS_TYPES_H
20503#include <sys/types.h>
20504#endif
20505#ifdef HAVE_SYS_TIME_H
20506#include <sys/time.h>
20507#ifdef TIME_WITH_SYS_TIME
20508#include <time.h>
20509#endif
20510#else
20511#ifdef HAVE_TIME_H
20512#include <time.h>
20513#endif
20514#endif
20515
20516int main (void)
20517{
20518
20519 struct timespec ts;
20520 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20521 exit(0);
20522 else
20523 exit(1);
20524
20525 ;
20526 return 0;
20527}
20528
20529_ACEOF
20530if ac_fn_c_try_run "$LINENO"; then :
20531
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20533$as_echo "yes" >&6; }
20534
20535else
20536
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538$as_echo "no" >&6; }
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20540$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20541 curl_func_clock_gettime="no"
20542 LIBS="$curl_cv_save_LIBS"
20543
20544fi
20545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20546 conftest.$ac_objext conftest.beam conftest.$ac_ext
20547fi
20548
20549 fi
20550 #
20551 case "$curl_func_clock_gettime" in
20552 yes)
20553
20554cat >>confdefs.h <<_ACEOF
20555#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20556_ACEOF
20557
20558 ;;
20559 esac
20560 #
20561 fi
20562 #
20563
20564
20565CURL_NETWORK_AND_TIME_LIBS=$LIBS
20566
20567
20568
20569clean_CPPFLAGS=$CPPFLAGS
20570clean_LDFLAGS=$LDFLAGS
20571clean_LIBS=$LIBS
20572ZLIB_LIBS=""
20573
20574# Check whether --with-zlib was given.
20575if test "${with_zlib+set}" = set; then :
20576 withval=$with_zlib; OPT_ZLIB="$withval"
20577fi
20578
20579
20580if test "$OPT_ZLIB" = "no" ; then
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20582$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20583else
20584 if test "$OPT_ZLIB" = "yes" ; then
20585 OPT_ZLIB=""
20586 fi
20587
20588 if test -z "$OPT_ZLIB" ; then
20589
20590 if test -n "$PKG_CONFIG"; then
20591 PKGCONFIG="$PKG_CONFIG"
20592 else
20593 if test -n "$ac_tool_prefix"; then
20594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20595set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20597$as_echo_n "checking for $ac_word... " >&6; }
20598if ${ac_cv_path_PKGCONFIG+:} false; then :
20599 $as_echo_n "(cached) " >&6
20600else
20601 case $PKGCONFIG in
20602 [\\/]* | ?:[\\/]*)
20603 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20604 ;;
20605 *)
20606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20607as_dummy="$PATH:/usr/bin:/usr/local/bin"
20608for as_dir in $as_dummy
20609do
20610 IFS=$as_save_IFS
20611 test -z "$as_dir" && as_dir=.
20612 for ac_exec_ext in '' $ac_executable_extensions; do
20613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20614 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20616 break 2
20617 fi
20618done
20619 done
20620IFS=$as_save_IFS
20621
20622 ;;
20623esac
20624fi
20625PKGCONFIG=$ac_cv_path_PKGCONFIG
20626if test -n "$PKGCONFIG"; then
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20628$as_echo "$PKGCONFIG" >&6; }
20629else
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20631$as_echo "no" >&6; }
20632fi
20633
20634
20635fi
20636if test -z "$ac_cv_path_PKGCONFIG"; then
20637 ac_pt_PKGCONFIG=$PKGCONFIG
20638 # Extract the first word of "pkg-config", so it can be a program name with args.
20639set dummy pkg-config; ac_word=$2
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20641$as_echo_n "checking for $ac_word... " >&6; }
20642if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20643 $as_echo_n "(cached) " >&6
20644else
20645 case $ac_pt_PKGCONFIG in
20646 [\\/]* | ?:[\\/]*)
20647 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20648 ;;
20649 *)
20650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20651as_dummy="$PATH:/usr/bin:/usr/local/bin"
20652for as_dir in $as_dummy
20653do
20654 IFS=$as_save_IFS
20655 test -z "$as_dir" && as_dir=.
20656 for ac_exec_ext in '' $ac_executable_extensions; do
20657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20658 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20660 break 2
20661 fi
20662done
20663 done
20664IFS=$as_save_IFS
20665
20666 ;;
20667esac
20668fi
20669ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20670if test -n "$ac_pt_PKGCONFIG"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20672$as_echo "$ac_pt_PKGCONFIG" >&6; }
20673else
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20675$as_echo "no" >&6; }
20676fi
20677
20678 if test "x$ac_pt_PKGCONFIG" = x; then
20679 PKGCONFIG="no"
20680 else
20681 case $cross_compiling:$ac_tool_warned in
20682yes:)
20683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20685ac_tool_warned=yes ;;
20686esac
20687 PKGCONFIG=$ac_pt_PKGCONFIG
20688 fi
20689else
20690 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20691fi
20692
20693 fi
20694
20695 if test "x$PKGCONFIG" != "xno"; then
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20697$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20698 itexists=`
20699 if test -n ""; then
20700 PKG_CONFIG_LIBDIR=""
20701 export PKG_CONFIG_LIBDIR
20702 fi
20703 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20704
20705 if test -z "$itexists"; then
20706 PKGCONFIG="no"
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708$as_echo "no" >&6; }
20709 else
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20711$as_echo "found" >&6; }
20712 fi
20713 fi
20714
20715
20716 if test "$PKGCONFIG" != "no" ; then
20717 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20718 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20719 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20720 OPT_ZLIB=""
20721 HAVE_LIBZ="1"
20722 fi
20723
20724 if test -z "$HAVE_LIBZ"; then
20725
20726
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20728$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20729if ${ac_cv_lib_z_inflateEnd+:} false; then :
20730 $as_echo_n "(cached) " >&6
20731else
20732 ac_check_lib_save_LIBS=$LIBS
20733LIBS="-lz $LIBS"
20734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735/* end confdefs.h. */
20736
20737
20738#ifdef __cplusplus
20739extern "C"
20740#endif
20741char inflateEnd ();
20742int main (void)
20743{
20744return inflateEnd ();
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749if ac_fn_c_try_link "$LINENO"; then :
20750 ac_cv_lib_z_inflateEnd=yes
20751else
20752 ac_cv_lib_z_inflateEnd=no
20753fi
20754rm -f core conftest.err conftest.$ac_objext \
20755 conftest$ac_exeext conftest.$ac_ext
20756LIBS=$ac_check_lib_save_LIBS
20757fi
20758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20759$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20760if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20761 HAVE_LIBZ="1"
20762 LIBS="-lz $LIBS"
20763else
20764 OPT_ZLIB="/usr/local"
20765fi
20766
20767 fi
20768 fi
20769
20770 if test -n "$OPT_ZLIB"; then
20771 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20772 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20773 fi
20774
20775 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20776if test "x$ac_cv_header_zlib_h" = xyes; then :
20777
20778 HAVE_ZLIB_H="1"
20779 if test "$HAVE_LIBZ" != "1"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20781$as_echo_n "checking for gzread in -lz... " >&6; }
20782if ${ac_cv_lib_z_gzread+:} 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 gzread ();
20795int main (void)
20796{
20797return gzread ();
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802if ac_fn_c_try_link "$LINENO"; then :
20803 ac_cv_lib_z_gzread=yes
20804else
20805 ac_cv_lib_z_gzread=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_gzread" >&5
20812$as_echo "$ac_cv_lib_z_gzread" >&6; }
20813if test "x$ac_cv_lib_z_gzread" = xyes; then :
20814
20815 HAVE_LIBZ="1"
20816 LIBS="-lz $LIBS"
20817
20818else
20819 CPPFLAGS=$clean_CPPFLAGS
20820 LDFLAGS=$clean_LDFLAGS
20821fi
20822
20823 fi
20824
20825else
20826
20827 CPPFLAGS=$clean_CPPFLAGS
20828 LDFLAGS=$clean_LDFLAGS
20829
20830fi
20831
20832
20833
20834 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20835 then
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20837$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20838 HAVE_LIBZ=""
20839 CPPFLAGS=$clean_CPPFLAGS
20840 LDFLAGS=$clean_LDFLAGS
20841 LIBS=$clean_LIBS
20842 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20843 then
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20845$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20846 CPPFLAGS=$clean_CPPFLAGS
20847 LDFLAGS=$clean_LDFLAGS
20848 LIBS=$clean_LIBS
20849 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20850 then
20851
20852
20853$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20854
20855
20856$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20857
20858
20859 ZLIB_LIBS="-lz"
20860 LIBS="-lz $clean_LIBS"
20861
20862 AMFIXLIB="1"
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20864$as_echo "$as_me: found both libz and libz.h header" >&6;}
20865 curl_zlib_msg="enabled"
20866 fi
20867fi
20868
20869 if test x"$AMFIXLIB" = x1; then
20870 HAVE_LIBZ_TRUE=
20871 HAVE_LIBZ_FALSE='#'
20872else
20873 HAVE_LIBZ_TRUE='#'
20874 HAVE_LIBZ_FALSE=
20875fi
20876
20877
20878
20879
Alex Deymo486467e2017-12-19 19:04:07 +010020880
20881OPT_BROTLI=off
20882
20883# Check whether --with-brotli was given.
20884if test "${with_brotli+set}" = set; then :
20885 withval=$with_brotli; OPT_BROTLI=$withval
20886fi
20887
20888
20889if test X"$OPT_BROTLI" != Xno; then
20890 CLEANLDFLAGS="$LDFLAGS"
20891 CLEANCPPFLAGS="$CPPFLAGS"
20892 CLEANLIBS="$LIBS"
20893
20894 case "$OPT_BROTLI" in
20895 yes)
20896
20897 if test -n "$PKG_CONFIG"; then
20898 PKGCONFIG="$PKG_CONFIG"
20899 else
20900 if test -n "$ac_tool_prefix"; then
20901 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20902set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20904$as_echo_n "checking for $ac_word... " >&6; }
20905if ${ac_cv_path_PKGCONFIG+:} false; then :
20906 $as_echo_n "(cached) " >&6
20907else
20908 case $PKGCONFIG in
20909 [\\/]* | ?:[\\/]*)
20910 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20911 ;;
20912 *)
20913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20914as_dummy="$PATH:/usr/bin:/usr/local/bin"
20915for as_dir in $as_dummy
20916do
20917 IFS=$as_save_IFS
20918 test -z "$as_dir" && as_dir=.
20919 for ac_exec_ext in '' $ac_executable_extensions; do
20920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20921 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20923 break 2
20924 fi
20925done
20926 done
20927IFS=$as_save_IFS
20928
20929 ;;
20930esac
20931fi
20932PKGCONFIG=$ac_cv_path_PKGCONFIG
20933if test -n "$PKGCONFIG"; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20935$as_echo "$PKGCONFIG" >&6; }
20936else
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938$as_echo "no" >&6; }
20939fi
20940
20941
20942fi
20943if test -z "$ac_cv_path_PKGCONFIG"; then
20944 ac_pt_PKGCONFIG=$PKGCONFIG
20945 # Extract the first word of "pkg-config", so it can be a program name with args.
20946set dummy pkg-config; ac_word=$2
20947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948$as_echo_n "checking for $ac_word... " >&6; }
20949if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20950 $as_echo_n "(cached) " >&6
20951else
20952 case $ac_pt_PKGCONFIG in
20953 [\\/]* | ?:[\\/]*)
20954 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20955 ;;
20956 *)
20957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20958as_dummy="$PATH:/usr/bin:/usr/local/bin"
20959for as_dir in $as_dummy
20960do
20961 IFS=$as_save_IFS
20962 test -z "$as_dir" && as_dir=.
20963 for ac_exec_ext in '' $ac_executable_extensions; do
20964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20965 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20967 break 2
20968 fi
20969done
20970 done
20971IFS=$as_save_IFS
20972
20973 ;;
20974esac
20975fi
20976ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20977if test -n "$ac_pt_PKGCONFIG"; then
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20979$as_echo "$ac_pt_PKGCONFIG" >&6; }
20980else
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20982$as_echo "no" >&6; }
20983fi
20984
20985 if test "x$ac_pt_PKGCONFIG" = x; then
20986 PKGCONFIG="no"
20987 else
20988 case $cross_compiling:$ac_tool_warned in
20989yes:)
20990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20992ac_tool_warned=yes ;;
20993esac
20994 PKGCONFIG=$ac_pt_PKGCONFIG
20995 fi
20996else
20997 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20998fi
20999
21000 fi
21001
21002 if test "x$PKGCONFIG" != "xno"; then
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21004$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21005 itexists=`
21006 if test -n ""; then
21007 PKG_CONFIG_LIBDIR=""
21008 export PKG_CONFIG_LIBDIR
21009 fi
21010 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21011
21012 if test -z "$itexists"; then
21013 PKGCONFIG="no"
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21015$as_echo "no" >&6; }
21016 else
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21018$as_echo "found" >&6; }
21019 fi
21020 fi
21021
21022
21023 if test "$PKGCONFIG" != "no" ; then
21024 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21025 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21026 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21027 version=`$PKGCONFIG --modversion libbrotlidec`
21028 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21029 fi
21030
21031 ;;
21032 off)
21033 ;;
21034 *)
21035 PREFIX_BROTLI=$OPT_BROTLI
21036 ;;
21037 esac
21038
21039 if test -n "$PREFIX_BROTLI"; then
21040 LIB_BROTLI="-lbrotlidec"
21041 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21042 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21043 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21044 fi
21045
21046 LDFLAGS="$LDFLAGS $LD_BROTLI"
21047 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21048 LIBS="$LIB_BROTLI $LIBS"
21049
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21051$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21052if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21053 $as_echo_n "(cached) " >&6
21054else
21055 ac_check_lib_save_LIBS=$LIBS
21056LIBS="-lbrotlidec $LIBS"
21057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058/* end confdefs.h. */
21059
21060
21061#ifdef __cplusplus
21062extern "C"
21063#endif
21064char BrotliDecoderDecompress ();
21065int main (void)
21066{
21067return BrotliDecoderDecompress ();
21068 ;
21069 return 0;
21070}
21071_ACEOF
21072if ac_fn_c_try_link "$LINENO"; then :
21073 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21074else
21075 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21076fi
21077rm -f core conftest.err conftest.$ac_objext \
21078 conftest$ac_exeext conftest.$ac_ext
21079LIBS=$ac_check_lib_save_LIBS
21080fi
21081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21082$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21083if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21084 cat >>confdefs.h <<_ACEOF
21085#define HAVE_LIBBROTLIDEC 1
21086_ACEOF
21087
21088 LIBS="-lbrotlidec $LIBS"
21089
21090fi
21091
21092
21093 for ac_header in brotli/decode.h
21094do :
21095 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21096if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21097 cat >>confdefs.h <<_ACEOF
21098#define HAVE_BROTLI_DECODE_H 1
21099_ACEOF
21100 curl_brotli_msg="enabled (libbrotlidec)"
21101 HAVE_BROTLI=1
21102
21103$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21104
21105 HAVE_BROTLI=1
21106
21107
21108fi
21109
21110done
21111
21112
21113 if test X"$OPT_BROTLI" != Xoff &&
21114 test "$HAVE_BROTLI" != "1"; then
21115 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21116 fi
21117
21118 if test "$HAVE_BROTLI" = "1"; then
21119 if test -n "$DIR_BROTLI"; then
21120
21121 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021122 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21123 export CURL_LIBRARY_PATH
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21125$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021126 fi
21127 fi
21128 else
21129 LDFLAGS=$CLEANLDFLAGS
21130 CPPFLAGS=$CLEANCPPFLAGS
21131 LIBS=$CLEANLIBS
21132 fi
21133fi
21134
21135
Elliott Hughes82be86d2017-09-20 17:00:17 -070021136LDAPLIBNAME=""
21137
21138# Check whether --with-ldap-lib was given.
21139if test "${with_ldap_lib+set}" = set; then :
21140 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21141fi
21142
21143
21144LBERLIBNAME=""
21145
21146# Check whether --with-lber-lib was given.
21147if test "${with_lber_lib+set}" = set; then :
21148 withval=$with_lber_lib; LBERLIBNAME="$withval"
21149fi
21150
21151
21152if test x$CURL_DISABLE_LDAP != x1 ; then
21153
21154
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21156$as_echo_n "checking for lber.h... " >&6; }
21157if ${curl_cv_header_lber_h+:} false; then :
21158 $as_echo_n "(cached) " >&6
21159else
21160
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162/* end confdefs.h. */
21163
21164
21165#undef inline
21166#ifdef HAVE_WINDOWS_H
21167#ifndef WIN32_LEAN_AND_MEAN
21168#define WIN32_LEAN_AND_MEAN
21169#endif
21170#include <windows.h>
21171#else
21172#ifdef HAVE_SYS_TYPES_H
21173#include <sys/types.h>
21174#endif
21175#endif
21176#ifndef NULL
21177#define NULL (void *)0
21178#endif
21179#include <lber.h>
21180
21181int main (void)
21182{
21183
21184 BerValue *bvp = NULL;
21185 BerElement *bep = ber_init(bvp);
21186 ber_free(bep, 1);
21187
21188 ;
21189 return 0;
21190}
21191
21192_ACEOF
21193if ac_fn_c_try_compile "$LINENO"; then :
21194
21195 curl_cv_header_lber_h="yes"
21196
21197else
21198
21199 curl_cv_header_lber_h="no"
21200
21201fi
21202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21203
21204fi
21205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21206$as_echo "$curl_cv_header_lber_h" >&6; }
21207 if test "$curl_cv_header_lber_h" = "yes"; then
21208
21209cat >>confdefs.h <<_ACEOF
21210#define HAVE_LBER_H 1
21211_ACEOF
21212
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#ifndef LDAP_DEPRECATED
21233#define LDAP_DEPRECATED 1
21234#endif
21235#include <ldap.h>
21236
21237int main (void)
21238{
21239
21240 BerValue *bvp = NULL;
21241 BerElement *bep = ber_init(bvp);
21242 ber_free(bep, 1);
21243
21244 ;
21245 return 0;
21246}
21247
21248_ACEOF
21249if ac_fn_c_try_compile "$LINENO"; then :
21250
21251 curl_cv_need_header_lber_h="no"
21252
21253else
21254
21255 curl_cv_need_header_lber_h="yes"
21256
21257fi
21258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 #
21260 case "$curl_cv_need_header_lber_h" in
21261 yes)
21262
21263cat >>confdefs.h <<_ACEOF
21264#define NEED_LBER_H 1
21265_ACEOF
21266
21267 ;;
21268 esac
21269 fi
21270
21271
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21273$as_echo_n "checking for ldap.h... " >&6; }
21274if ${curl_cv_header_ldap_h+:} false; then :
21275 $as_echo_n "(cached) " >&6
21276else
21277
21278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279/* end confdefs.h. */
21280
21281
21282#undef inline
21283#ifdef HAVE_WINDOWS_H
21284#ifndef WIN32_LEAN_AND_MEAN
21285#define WIN32_LEAN_AND_MEAN
21286#endif
21287#include <windows.h>
21288#else
21289#ifdef HAVE_SYS_TYPES_H
21290#include <sys/types.h>
21291#endif
21292#endif
21293#ifndef LDAP_DEPRECATED
21294#define LDAP_DEPRECATED 1
21295#endif
21296#ifdef NEED_LBER_H
21297#include <lber.h>
21298#endif
21299#include <ldap.h>
21300
21301int main (void)
21302{
21303
21304 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21305 int res = ldap_unbind(ldp);
21306
21307 ;
21308 return 0;
21309}
21310
21311_ACEOF
21312if ac_fn_c_try_compile "$LINENO"; then :
21313
21314 curl_cv_header_ldap_h="yes"
21315
21316else
21317
21318 curl_cv_header_ldap_h="no"
21319
21320fi
21321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322
21323fi
21324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21325$as_echo "$curl_cv_header_ldap_h" >&6; }
21326 case "$curl_cv_header_ldap_h" in
21327 yes)
21328
21329cat >>confdefs.h <<_ACEOF
21330#define HAVE_LDAP_H 1
21331_ACEOF
21332
21333 ;;
21334 esac
21335
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21338$as_echo_n "checking for ldapssl.h... " >&6; }
21339if ${curl_cv_header_ldapssl_h+:} false; then :
21340 $as_echo_n "(cached) " >&6
21341else
21342
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344/* end confdefs.h. */
21345
21346
21347#undef inline
21348#ifdef HAVE_WINDOWS_H
21349#ifndef WIN32_LEAN_AND_MEAN
21350#define WIN32_LEAN_AND_MEAN
21351#endif
21352#include <windows.h>
21353#else
21354#ifdef HAVE_SYS_TYPES_H
21355#include <sys/types.h>
21356#endif
21357#endif
21358#ifndef NULL
21359#define NULL (void *)0
21360#endif
21361#ifndef LDAP_DEPRECATED
21362#define LDAP_DEPRECATED 1
21363#endif
21364#ifdef NEED_LBER_H
21365#include <lber.h>
21366#endif
21367#ifdef HAVE_LDAP_H
21368#include <ldap.h>
21369#endif
21370#include <ldapssl.h>
21371
21372int main (void)
21373{
21374
21375 char *cert_label = NULL;
21376 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21377
21378 ;
21379 return 0;
21380}
21381
21382_ACEOF
21383if ac_fn_c_try_compile "$LINENO"; then :
21384
21385 curl_cv_header_ldapssl_h="yes"
21386
21387else
21388
21389 curl_cv_header_ldapssl_h="no"
21390
21391fi
21392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393
21394fi
21395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21396$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21397 case "$curl_cv_header_ldapssl_h" in
21398 yes)
21399
21400cat >>confdefs.h <<_ACEOF
21401#define HAVE_LDAPSSL_H 1
21402_ACEOF
21403
21404 ;;
21405 esac
21406
21407
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21409$as_echo_n "checking for ldap_ssl.h... " >&6; }
21410if ${curl_cv_header_ldap_ssl_h+:} false; then :
21411 $as_echo_n "(cached) " >&6
21412else
21413
21414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21415/* end confdefs.h. */
21416
21417
21418#undef inline
21419#ifdef HAVE_WINDOWS_H
21420#ifndef WIN32_LEAN_AND_MEAN
21421#define WIN32_LEAN_AND_MEAN
21422#endif
21423#include <windows.h>
21424#else
21425#ifdef HAVE_SYS_TYPES_H
21426#include <sys/types.h>
21427#endif
21428#endif
21429#ifndef LDAP_DEPRECATED
21430#define LDAP_DEPRECATED 1
21431#endif
21432#ifdef NEED_LBER_H
21433#include <lber.h>
21434#endif
21435#ifdef HAVE_LDAP_H
21436#include <ldap.h>
21437#endif
21438#include <ldap_ssl.h>
21439
21440int main (void)
21441{
21442
21443 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21444
21445 ;
21446 return 0;
21447}
21448
21449_ACEOF
21450if ac_fn_c_try_compile "$LINENO"; then :
21451
21452 curl_cv_header_ldap_ssl_h="yes"
21453
21454else
21455
21456 curl_cv_header_ldap_ssl_h="no"
21457
21458fi
21459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460
21461fi
21462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21463$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21464 case "$curl_cv_header_ldap_ssl_h" in
21465 yes)
21466
21467cat >>confdefs.h <<_ACEOF
21468#define HAVE_LDAP_SSL_H 1
21469_ACEOF
21470
21471 ;;
21472 esac
21473
21474
21475 if test -z "$LDAPLIBNAME" ; then
21476 if test "$curl_cv_native_windows" = "yes"; then
21477 LDAPLIBNAME="wldap32"
21478 LBERLIBNAME="no"
21479 fi
21480 fi
21481
21482 if test "$LDAPLIBNAME" ; then
21483 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21485$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21486if eval \${$as_ac_Lib+:} false; then :
21487 $as_echo_n "(cached) " >&6
21488else
21489 ac_check_lib_save_LIBS=$LIBS
21490LIBS="-l"$LDAPLIBNAME" $LIBS"
21491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492/* end confdefs.h. */
21493
21494
21495#ifdef __cplusplus
21496extern "C"
21497#endif
21498char ldap_init ();
21499int main (void)
21500{
21501return ldap_init ();
21502 ;
21503 return 0;
21504}
21505_ACEOF
21506if ac_fn_c_try_link "$LINENO"; then :
21507 eval "$as_ac_Lib=yes"
21508else
21509 eval "$as_ac_Lib=no"
21510fi
21511rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21513LIBS=$ac_check_lib_save_LIBS
21514fi
21515eval ac_res=\$$as_ac_Lib
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21517$as_echo "$ac_res" >&6; }
21518if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21519 cat >>confdefs.h <<_ACEOF
21520#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21521_ACEOF
21522
21523 LIBS="-l"$LDAPLIBNAME" $LIBS"
21524
21525else
21526
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21528$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21529
21530$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21531
21532 CURL_DISABLE_LDAP=1
21533
21534
21535$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21536
21537 CURL_DISABLE_LDAPS=1
21538
21539fi
21540
21541 else
21542
21543 #
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21545$as_echo_n "checking for LDAP libraries... " >&6; }
21546 #
21547 u_libs=""
21548 #
21549
21550 #
21551 curl_cv_save_LIBS="$LIBS"
21552 curl_cv_ldap_LIBS="unknown"
21553 #
21554 for x_nlibs in '' "$u_libs" \
21555 '-lldap' \
21556 '-lldap -llber' \
21557 '-llber -lldap' \
21558 '-lldapssl -lldapx -lldapsdk' \
21559 '-lldapsdk -lldapx -lldapssl' ; do
21560 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21561 if test -z "$x_nlibs"; then
21562 LIBS="$curl_cv_save_LIBS"
21563 else
21564 LIBS="$x_nlibs $curl_cv_save_LIBS"
21565 fi
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567/* end confdefs.h. */
21568
21569
21570#undef inline
21571#ifdef HAVE_WINDOWS_H
21572#ifndef WIN32_LEAN_AND_MEAN
21573#define WIN32_LEAN_AND_MEAN
21574#endif
21575#include <windows.h>
21576#else
21577#ifdef HAVE_SYS_TYPES_H
21578#include <sys/types.h>
21579#endif
21580#endif
21581#ifndef NULL
21582#define NULL (void *)0
21583#endif
21584#ifndef LDAP_DEPRECATED
21585#define LDAP_DEPRECATED 1
21586#endif
21587#ifdef NEED_LBER_H
21588#include <lber.h>
21589#endif
21590#ifdef HAVE_LDAP_H
21591#include <ldap.h>
21592#endif
21593
21594int main (void)
21595{
21596
21597 BerValue *bvp = NULL;
21598 BerElement *bep = ber_init(bvp);
21599 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21600 int res = ldap_unbind(ldp);
21601 ber_free(bep, 1);
21602
21603 ;
21604 return 0;
21605}
21606
21607_ACEOF
21608if ac_fn_c_try_link "$LINENO"; then :
21609
21610 curl_cv_ldap_LIBS="$x_nlibs"
21611
21612fi
21613rm -f core conftest.err conftest.$ac_objext \
21614 conftest$ac_exeext conftest.$ac_ext
21615 fi
21616 done
21617 #
21618 LIBS="$curl_cv_save_LIBS"
21619 #
21620 case X-"$curl_cv_ldap_LIBS" in
21621 X-unknown)
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21623$as_echo "cannot find LDAP libraries" >&6; }
21624 ;;
21625 X-)
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21627$as_echo "no additional lib required" >&6; }
21628 ;;
21629 *)
21630 if test -z "$curl_cv_save_LIBS"; then
21631 LIBS="$curl_cv_ldap_LIBS"
21632 else
21633 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21634 fi
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21636$as_echo "$curl_cv_ldap_LIBS" >&6; }
21637 ;;
21638 esac
21639 #
21640
21641 case X-"$curl_cv_ldap_LIBS" in
21642 X-unknown)
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21644$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21645
21646$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21647
21648 CURL_DISABLE_LDAP=1
21649
21650
21651$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21652
21653 CURL_DISABLE_LDAPS=1
21654
21655 ;;
21656 esac
21657 fi
21658fi
21659
21660if test x$CURL_DISABLE_LDAP != x1 ; then
21661
21662 if test "$LBERLIBNAME" ; then
21663 if test "$LBERLIBNAME" != "no" ; then
21664 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21666$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21667if eval \${$as_ac_Lib+:} false; then :
21668 $as_echo_n "(cached) " >&6
21669else
21670 ac_check_lib_save_LIBS=$LIBS
21671LIBS="-l"$LBERLIBNAME" $LIBS"
21672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673/* end confdefs.h. */
21674
21675
21676#ifdef __cplusplus
21677extern "C"
21678#endif
21679char ber_free ();
21680int main (void)
21681{
21682return ber_free ();
21683 ;
21684 return 0;
21685}
21686_ACEOF
21687if ac_fn_c_try_link "$LINENO"; then :
21688 eval "$as_ac_Lib=yes"
21689else
21690 eval "$as_ac_Lib=no"
21691fi
21692rm -f core conftest.err conftest.$ac_objext \
21693 conftest$ac_exeext conftest.$ac_ext
21694LIBS=$ac_check_lib_save_LIBS
21695fi
21696eval ac_res=\$$as_ac_Lib
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21698$as_echo "$ac_res" >&6; }
21699if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21700 cat >>confdefs.h <<_ACEOF
21701#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21702_ACEOF
21703
21704 LIBS="-l"$LBERLIBNAME" $LIBS"
21705
21706else
21707
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21709$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21710
21711$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21712
21713 CURL_DISABLE_LDAP=1
21714
21715
21716$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21717
21718 CURL_DISABLE_LDAPS=1
21719
21720fi
21721
21722 fi
21723 fi
21724fi
21725
21726if test x$CURL_DISABLE_LDAP != x1 ; then
21727 for ac_func in ldap_url_parse ldap_init_fd
21728do :
21729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21731if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21732 cat >>confdefs.h <<_ACEOF
21733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21734_ACEOF
21735
21736fi
21737done
21738
21739
21740 if test "$LDAPLIBNAME" = "wldap32"; then
21741 curl_ldap_msg="enabled (winldap)"
21742
21743$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21744
21745 else
21746 curl_ldap_msg="enabled (OpenLDAP)"
21747 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21748
21749$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21750
21751 USE_OPENLDAP=1
21752
21753 fi
21754 fi
21755fi
21756
21757if test x$CURL_DISABLE_LDAPS != x1 ; then
21758 curl_ldaps_msg="enabled"
21759fi
21760
21761
21762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21763$as_echo_n "checking whether to enable IPv6... " >&6; }
21764# Check whether --enable-ipv6 was given.
21765if test "${enable_ipv6+set}" = set; then :
21766 enableval=$enable_ipv6; case "$enableval" in
21767 no)
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21769$as_echo "no" >&6; }
21770 ipv6=no
21771 ;;
21772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21773$as_echo "yes" >&6; }
21774 ipv6=yes
21775 ;;
21776 esac
21777else
21778 if test "$cross_compiling" = yes; then :
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21780$as_echo "yes" >&6; }
21781 ipv6=yes
21782
21783else
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785/* end confdefs.h. */
21786 /* is AF_INET6 available? */
21787#include <sys/types.h>
21788#ifdef HAVE_WINSOCK2_H
21789#include <winsock2.h>
21790#else
21791#include <sys/socket.h>
21792#endif
21793#include <stdlib.h> /* for exit() */
21794main()
21795{
21796 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21797 exit(1);
21798 else
21799 exit(0);
21800}
21801
21802_ACEOF
21803if ac_fn_c_try_run "$LINENO"; then :
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21805$as_echo "yes" >&6; }
21806 ipv6=yes
21807else
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21809$as_echo "no" >&6; }
21810 ipv6=no
21811fi
21812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21813 conftest.$ac_objext conftest.beam conftest.$ac_ext
21814fi
21815
21816fi
21817
21818
21819if test "$ipv6" = "yes"; then
21820 curl_ipv6_msg="enabled"
21821fi
21822
21823# Check if struct sockaddr_in6 have sin6_scope_id member
21824if test "$ipv6" = yes; then
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21826$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828/* end confdefs.h. */
21829
21830#include <sys/types.h>
21831#ifdef HAVE_WINSOCK2_H
21832#include <winsock2.h>
21833#include <ws2tcpip.h>
21834#else
21835#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021836#if defined (__TANDEM)
21837# include <netinet/in6.h>
21838#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021839#endif
21840int main (void)
21841{
21842struct sockaddr_in6 s; s.sin6_scope_id = 0;
21843 ;
21844 return 0;
21845}
21846_ACEOF
21847if ac_fn_c_try_compile "$LINENO"; then :
21848 have_sin6_scope_id=yes
21849fi
21850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 if test "$have_sin6_scope_id" = yes; then
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21853$as_echo "yes" >&6; }
21854
21855$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21856
21857 else
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859$as_echo "no" >&6; }
21860 fi
21861fi
21862
21863
21864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21865$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021866
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021867
21868 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021869 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21870 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021871 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021872 curl_cv_writable_argv=cross
21873
21874else
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876/* end confdefs.h. */
21877
Elliott Hughes82be86d2017-09-20 17:00:17 -070021878int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021879 argv00 = ' ';
21880 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021881}
21882
Elliott Hughes82be86d2017-09-20 17:00:17 -070021883_ACEOF
21884if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021885 curl_cv_writable_argv=yes
21886
21887else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021888 curl_cv_writable_argv=no
21889
21890fi
21891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21892 conftest.$ac_objext conftest.beam conftest.$ac_ext
21893fi
21894
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021895 LD_LIBRARY_PATH=$old # restore
21896
Elliott Hughes82be86d2017-09-20 17:00:17 -070021897case $curl_cv_writable_argv in
21898yes)
21899
21900$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21901
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21903$as_echo "yes" >&6; }
21904 ;;
21905no)
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21907$as_echo "no" >&6; }
21908 ;;
21909*)
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911$as_echo "no" >&6; }
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21913$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21914 ;;
21915esac
21916
21917
21918
21919GSSAPI_ROOT="/usr"
21920
21921# Check whether --with-gssapi-includes was given.
21922if test "${with_gssapi_includes+set}" = set; then :
21923 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21924 want_gss="yes"
21925
21926fi
21927
21928
21929
21930# Check whether --with-gssapi-libs was given.
21931if test "${with_gssapi_libs+set}" = set; then :
21932 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21933 want_gss="yes"
21934
21935fi
21936
21937
21938
21939# Check whether --with-gssapi was given.
21940if test "${with_gssapi+set}" = set; then :
21941 withval=$with_gssapi;
21942 GSSAPI_ROOT="$withval"
21943 if test x"$GSSAPI_ROOT" != xno; then
21944 want_gss="yes"
21945 if test x"$GSSAPI_ROOT" = xyes; then
21946 GSSAPI_ROOT="/usr"
21947 fi
21948 fi
21949
21950fi
21951
21952
21953: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21954
21955save_CPPFLAGS="$CPPFLAGS"
21956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21957$as_echo_n "checking if GSS-API support is requested... " >&6; }
21958if test x"$want_gss" = xyes; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21960$as_echo "yes" >&6; }
21961
21962 if test -z "$GSSAPI_INCS"; then
21963 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21964 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21965 elif test -f "$KRB5CONFIG"; then
21966 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21967 elif test "$GSSAPI_ROOT" != "yes"; then
21968 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21969 fi
21970 fi
21971
21972 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21973
21974 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21975if test "x$ac_cv_header_gss_h" = xyes; then :
21976
21977
21978$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21979
21980 gnu_gss=yes
21981
21982else
21983
21984 for ac_header in gssapi/gssapi.h
21985do :
21986 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21987if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21988 cat >>confdefs.h <<_ACEOF
21989#define HAVE_GSSAPI_GSSAPI_H 1
21990_ACEOF
21991
21992else
21993 not_mit=1
21994fi
21995
21996done
21997
21998 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21999do :
22000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22001ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22002$ac_includes_default
22003#ifdef HAVE_GSSAPI_GSSAPI_H
22004#include <gssapi/gssapi.h>
22005#endif
22006
22007"
22008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22009 cat >>confdefs.h <<_ACEOF
22010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22011_ACEOF
22012
22013else
22014 not_mit=1
22015fi
22016
22017done
22018
22019 if test "x$not_mit" = "x1"; then
22020 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22021if test "x$ac_cv_header_gssapi_h" = xyes; then :
22022
22023
22024$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22025
22026
22027else
22028
22029 want_gss=no
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22031$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22032
22033
22034fi
22035
22036
22037 else
22038
22039$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22040
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22042$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044/* end confdefs.h. */
22045
22046
22047#include <gssapi/gssapi.h>
22048#include <gssapi/gssapi_generic.h>
22049#include <gssapi/gssapi_krb5.h>
22050
22051int main (void)
22052{
22053
22054 gss_import_name(
22055 (OM_uint32 *)0,
22056 (gss_buffer_t)0,
22057 GSS_C_NT_HOSTBASED_SERVICE,
22058 (gss_name_t *)0);
22059
22060 ;
22061 return 0;
22062}
22063
22064_ACEOF
22065if ac_fn_c_try_compile "$LINENO"; then :
22066
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22068$as_echo "yes" >&6; }
22069
22070else
22071
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073$as_echo "no" >&6; }
22074
22075$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22076
22077
22078fi
22079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 fi
22081
22082
22083fi
22084
22085
22086else
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22088$as_echo "no" >&6; }
22089fi
22090if test x"$want_gss" = xyes; then
22091
22092$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22093
22094 HAVE_GSSAPI=1
22095 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22096
22097 if test -n "$gnu_gss"; then
22098 curl_gss_msg="enabled (GNU GSS)"
22099 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22100 LIBS="-lgss $LIBS"
22101 elif test -z "$GSSAPI_LIB_DIR"; then
22102 case $host in
22103 *-*-darwin*)
22104 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22105 ;;
22106 *)
22107 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22108 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22109 LIBS="$gss_libs $LIBS"
22110 elif test -f "$KRB5CONFIG"; then
22111 gss_libs=`$KRB5CONFIG --libs gssapi`
22112 LIBS="$gss_libs $LIBS"
22113 else
22114 case $host in
22115 *-hp-hpux*)
22116 gss_libname="gss"
22117 ;;
22118 *)
22119 gss_libname="gssapi"
22120 ;;
22121 esac
22122
22123 if test "$GSSAPI_ROOT" != "yes"; then
22124 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22125 LIBS="-l$gss_libname $LIBS"
22126 else
22127 LIBS="-l$gss_libname $LIBS"
22128 fi
22129 fi
22130 ;;
22131 esac
22132 else
22133 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22134 case $host in
22135 *-hp-hpux*)
22136 LIBS="-lgss $LIBS"
22137 ;;
22138 *)
22139 LIBS="-lgssapi $LIBS"
22140 ;;
22141 esac
22142 fi
22143else
22144 CPPFLAGS="$save_CPPFLAGS"
22145fi
22146
Alex Deymo486467e2017-12-19 19:04:07 +010022147build_libstubgss=no
22148if test x"$want_gss" = "xyes"; then
22149 build_libstubgss=yes
22150fi
22151
22152 if test "x$build_libstubgss" = "xyes"; then
22153 BUILD_STUB_GSS_TRUE=
22154 BUILD_STUB_GSS_FALSE='#'
22155else
22156 BUILD_STUB_GSS_TRUE='#'
22157 BUILD_STUB_GSS_FALSE=
22158fi
22159
22160
22161
22162DEFAULT_SSL_BACKEND=no
22163VALID_DEFAULT_SSL_BACKEND=
22164
22165# Check whether --with-default-ssl-backend was given.
22166if test "${with_default_ssl_backend+set}" = set; then :
22167 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22168fi
22169
22170case "$DEFAULT_SSL_BACKEND" in
22171 no)
22172 ;;
22173 default|yes)
22174 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22175 ;;
22176 *)
22177
22178 VALID_DEFAULT_SSL_BACKEND=no
22179 ;;
22180esac
22181
22182
Elliott Hughes82be86d2017-09-20 17:00:17 -070022183
22184OPT_WINSSL=no
22185
22186# Check whether --with-winssl was given.
22187if test "${with_winssl+set}" = set; then :
22188 withval=$with_winssl; OPT_WINSSL=$withval
22189fi
22190
22191
22192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22193$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022194if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22195 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022196 if test "x$OPT_WINSSL" != "xno" &&
22197 test "x$curl_cv_native_windows" = "xyes"; then
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22199$as_echo "yes" >&6; }
22200
22201$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22202
22203 USE_SCHANNEL=1
22204
Alex Deymo486467e2017-12-19 19:04:07 +010022205 ssl_msg="Windows-native"
22206 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022207 WINSSL_ENABLED=1
22208 # --with-winssl implies --enable-sspi
22209
22210$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22211
22212 USE_WINDOWS_SSPI=1
22213
22214 curl_sspi_msg="enabled"
22215 LIBS="-lcrypt32 $LIBS"
22216 else
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218$as_echo "no" >&6; }
22219 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022220 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022221else
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223$as_echo "no" >&6; }
22224fi
22225
22226OPT_DARWINSSL=no
22227
22228# Check whether --with-darwinssl was given.
22229if test "${with_darwinssl+set}" = set; then :
22230 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22231fi
22232
22233
22234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22235$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022236if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022237 if test "x$OPT_DARWINSSL" != "xno" &&
22238 test -d "/System/Library/Frameworks/Security.framework"; then
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22240$as_echo "yes" >&6; }
22241
22242$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22243
22244 USE_DARWINSSL=1
22245
Alex Deymo486467e2017-12-19 19:04:07 +010022246 ssl_msg="Apple OS-native"
22247 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022248 DARWINSSL_ENABLED=1
22249 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22250 else
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252$as_echo "no" >&6; }
22253 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022254 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022255else
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257$as_echo "no" >&6; }
22258fi
22259
22260
22261OPT_SSL=off
22262ca="no"
22263
22264# Check whether --with-ssl was given.
22265if test "${with_ssl+set}" = set; then :
22266 withval=$with_ssl; OPT_SSL=$withval
22267fi
22268
22269
Alex Deymo486467e2017-12-19 19:04:07 +010022270if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22271 test X"$OPT_SSL" != Xno; then
22272 ssl_msg=
22273
Elliott Hughes82be86d2017-09-20 17:00:17 -070022274 CLEANLDFLAGS="$LDFLAGS"
22275 CLEANCPPFLAGS="$CPPFLAGS"
22276 CLEANLIBS="$LIBS"
22277
22278 case $host in
22279 *-*-msys* | *-*-mingw*)
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22281$as_echo_n "checking for gdi32... " >&6; }
22282 my_ac_save_LIBS=$LIBS
22283 LIBS="-lgdi32 $LIBS"
22284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22285/* end confdefs.h. */
22286#include <windef.h>
22287 #include <wingdi.h>
22288int main (void)
22289{
22290GdiFlush();
22291 ;
22292 return 0;
22293}
22294_ACEOF
22295if ac_fn_c_try_link "$LINENO"; then :
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297$as_echo "yes" >&6; }
22298else
22299 LIBS=$my_ac_save_LIBS
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22301$as_echo "no" >&6; }
22302
22303fi
22304rm -f core conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
22306 ;;
22307 esac
22308
22309 case "$OPT_SSL" in
22310 yes)
22311 if test x$cross_compiling != xyes; then
22312 PKGTEST="yes"
22313 fi
22314 PREFIX_OPENSSL=/usr/local/ssl
22315 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22316 ;;
22317 off)
22318 if test x$cross_compiling != xyes; then
22319 PKGTEST="yes"
22320 fi
22321 PREFIX_OPENSSL=
22322 ;;
22323 *)
22324 PKGTEST="no"
22325 PREFIX_OPENSSL=$OPT_SSL
22326
22327 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022328 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022329 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22330$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022331 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022332 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22333 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022334 fi
22335
22336 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22337 if test "$PREFIX_OPENSSL" != "/usr" ; then
22338 SSL_LDFLAGS="-L$LIB_OPENSSL"
22339 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22340 fi
22341 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22342 ;;
22343 esac
22344
22345 if test "$PKGTEST" = "yes"; then
22346
22347
22348 if test -n "$PKG_CONFIG"; then
22349 PKGCONFIG="$PKG_CONFIG"
22350 else
22351 if test -n "$ac_tool_prefix"; then
22352 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22353set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355$as_echo_n "checking for $ac_word... " >&6; }
22356if ${ac_cv_path_PKGCONFIG+:} false; then :
22357 $as_echo_n "(cached) " >&6
22358else
22359 case $PKGCONFIG in
22360 [\\/]* | ?:[\\/]*)
22361 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22362 ;;
22363 *)
22364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22365as_dummy="$PATH:/usr/bin:/usr/local/bin"
22366for as_dir in $as_dummy
22367do
22368 IFS=$as_save_IFS
22369 test -z "$as_dir" && as_dir=.
22370 for ac_exec_ext in '' $ac_executable_extensions; do
22371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22372 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22374 break 2
22375 fi
22376done
22377 done
22378IFS=$as_save_IFS
22379
22380 ;;
22381esac
22382fi
22383PKGCONFIG=$ac_cv_path_PKGCONFIG
22384if test -n "$PKGCONFIG"; then
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22386$as_echo "$PKGCONFIG" >&6; }
22387else
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22389$as_echo "no" >&6; }
22390fi
22391
22392
22393fi
22394if test -z "$ac_cv_path_PKGCONFIG"; then
22395 ac_pt_PKGCONFIG=$PKGCONFIG
22396 # Extract the first word of "pkg-config", so it can be a program name with args.
22397set dummy pkg-config; ac_word=$2
22398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22399$as_echo_n "checking for $ac_word... " >&6; }
22400if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22401 $as_echo_n "(cached) " >&6
22402else
22403 case $ac_pt_PKGCONFIG in
22404 [\\/]* | ?:[\\/]*)
22405 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22406 ;;
22407 *)
22408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22409as_dummy="$PATH:/usr/bin:/usr/local/bin"
22410for as_dir in $as_dummy
22411do
22412 IFS=$as_save_IFS
22413 test -z "$as_dir" && as_dir=.
22414 for ac_exec_ext in '' $ac_executable_extensions; do
22415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22416 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22418 break 2
22419 fi
22420done
22421 done
22422IFS=$as_save_IFS
22423
22424 ;;
22425esac
22426fi
22427ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22428if test -n "$ac_pt_PKGCONFIG"; then
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22430$as_echo "$ac_pt_PKGCONFIG" >&6; }
22431else
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22433$as_echo "no" >&6; }
22434fi
22435
22436 if test "x$ac_pt_PKGCONFIG" = x; then
22437 PKGCONFIG="no"
22438 else
22439 case $cross_compiling:$ac_tool_warned in
22440yes:)
22441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22443ac_tool_warned=yes ;;
22444esac
22445 PKGCONFIG=$ac_pt_PKGCONFIG
22446 fi
22447else
22448 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22449fi
22450
22451 fi
22452
22453 if test "x$PKGCONFIG" != "xno"; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22455$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22456 itexists=`
22457 if test -n "$OPENSSL_PCDIR"; then
22458 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22459 export PKG_CONFIG_LIBDIR
22460 fi
22461 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22462
22463 if test -z "$itexists"; then
22464 PKGCONFIG="no"
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22466$as_echo "no" >&6; }
22467 else
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22469$as_echo "found" >&6; }
22470 fi
22471 fi
22472
22473
22474 if test "$PKGCONFIG" != "no" ; then
22475 SSL_LIBS=`
22476 if test -n "$OPENSSL_PCDIR"; then
22477 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22478 export PKG_CONFIG_LIBDIR
22479 fi
22480 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22481
22482 SSL_LDFLAGS=`
22483 if test -n "$OPENSSL_PCDIR"; then
22484 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22485 export PKG_CONFIG_LIBDIR
22486 fi
22487 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22488
22489 SSL_CPPFLAGS=`
22490 if test -n "$OPENSSL_PCDIR"; then
22491 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22492 export PKG_CONFIG_LIBDIR
22493 fi
22494 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22495
22496
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22498$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22500$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22502$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22503
22504 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22505
22506 LIBS="$SSL_LIBS $LIBS"
22507 fi
22508 fi
22509
22510 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22511 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22512
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22514$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22515if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22516 $as_echo_n "(cached) " >&6
22517else
22518 ac_check_lib_save_LIBS=$LIBS
22519LIBS="-lcrypto $LIBS"
22520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521/* end confdefs.h. */
22522
22523
22524#ifdef __cplusplus
22525extern "C"
22526#endif
22527char HMAC_Update ();
22528int main (void)
22529{
22530return HMAC_Update ();
22531 ;
22532 return 0;
22533}
22534_ACEOF
22535if ac_fn_c_try_link "$LINENO"; then :
22536 ac_cv_lib_crypto_HMAC_Update=yes
22537else
22538 ac_cv_lib_crypto_HMAC_Update=no
22539fi
22540rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext conftest.$ac_ext
22542LIBS=$ac_check_lib_save_LIBS
22543fi
22544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22545$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22546if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22547
22548 HAVECRYPTO="yes"
22549 LIBS="-lcrypto $LIBS"
22550
22551else
22552
22553 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22554 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22556$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22557if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22558 $as_echo_n "(cached) " >&6
22559else
22560 ac_check_lib_save_LIBS=$LIBS
22561LIBS="-lcrypto $LIBS"
22562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563/* end confdefs.h. */
22564
22565
22566#ifdef __cplusplus
22567extern "C"
22568#endif
22569char HMAC_Init_ex ();
22570int main (void)
22571{
22572return HMAC_Init_ex ();
22573 ;
22574 return 0;
22575}
22576_ACEOF
22577if ac_fn_c_try_link "$LINENO"; then :
22578 ac_cv_lib_crypto_HMAC_Init_ex=yes
22579else
22580 ac_cv_lib_crypto_HMAC_Init_ex=no
22581fi
22582rm -f core conftest.err conftest.$ac_objext \
22583 conftest$ac_exeext conftest.$ac_ext
22584LIBS=$ac_check_lib_save_LIBS
22585fi
22586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22587$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22588if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22589
22590 HAVECRYPTO="yes"
22591 LIBS="-lcrypto $LIBS"
22592else
22593
22594
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22596$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022597 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599/* end confdefs.h. */
22600
22601 #include <openssl/err.h>
22602
22603int main (void)
22604{
22605
22606 ERR_clear_error();
22607
22608 ;
22609 return 0;
22610}
22611_ACEOF
22612if ac_fn_c_try_link "$LINENO"; then :
22613
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22615$as_echo "yes" >&6; }
22616 HAVECRYPTO="yes"
22617
22618else
22619
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621$as_echo "no" >&6; }
22622
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22624$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022625 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627/* end confdefs.h. */
22628
22629 #include <openssl/err.h>
22630
22631int main (void)
22632{
22633
22634 ERR_clear_error();
22635
22636 ;
22637 return 0;
22638}
22639_ACEOF
22640if ac_fn_c_try_link "$LINENO"; then :
22641
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22643$as_echo "yes" >&6; }
22644 HAVECRYPTO="yes"
22645
22646else
22647
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22649$as_echo "no" >&6; }
22650 LDFLAGS="$CLEANLDFLAGS"
22651 CPPFLAGS="$CLEANCPPFLAGS"
22652 LIBS="$CLEANLIBS"
22653
22654
22655fi
22656rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658
22659
22660fi
22661rm -f core conftest.err conftest.$ac_objext \
22662 conftest$ac_exeext conftest.$ac_ext
22663
22664
22665fi
22666
22667
22668fi
22669
22670
22671 if test X"$HAVECRYPTO" = X"yes"; then
22672
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22674$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22675if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22676 $as_echo_n "(cached) " >&6
22677else
22678 ac_check_lib_save_LIBS=$LIBS
22679LIBS="-lssl $LIBS"
22680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681/* end confdefs.h. */
22682
22683
22684#ifdef __cplusplus
22685extern "C"
22686#endif
22687char SSL_connect ();
22688int main (void)
22689{
22690return SSL_connect ();
22691 ;
22692 return 0;
22693}
22694_ACEOF
22695if ac_fn_c_try_link "$LINENO"; then :
22696 ac_cv_lib_ssl_SSL_connect=yes
22697else
22698 ac_cv_lib_ssl_SSL_connect=no
22699fi
22700rm -f core conftest.err conftest.$ac_objext \
22701 conftest$ac_exeext conftest.$ac_ext
22702LIBS=$ac_check_lib_save_LIBS
22703fi
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22705$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22706if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22707 cat >>confdefs.h <<_ACEOF
22708#define HAVE_LIBSSL 1
22709_ACEOF
22710
22711 LIBS="-lssl $LIBS"
22712
22713fi
22714
22715
22716 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22718$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22719 OLIBS=$LIBS
22720 LIBS="-lRSAglue -lrsaref $LIBS"
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22722$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22723if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22724 $as_echo_n "(cached) " >&6
22725else
22726 ac_check_lib_save_LIBS=$LIBS
22727LIBS="-lssl $LIBS"
22728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729/* end confdefs.h. */
22730
22731
22732#ifdef __cplusplus
22733extern "C"
22734#endif
22735char SSL_connect ();
22736int main (void)
22737{
22738return SSL_connect ();
22739 ;
22740 return 0;
22741}
22742_ACEOF
22743if ac_fn_c_try_link "$LINENO"; then :
22744 ac_cv_lib_ssl_SSL_connect=yes
22745else
22746 ac_cv_lib_ssl_SSL_connect=no
22747fi
22748rm -f core conftest.err conftest.$ac_objext \
22749 conftest$ac_exeext conftest.$ac_ext
22750LIBS=$ac_check_lib_save_LIBS
22751fi
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22753$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22754if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22755 cat >>confdefs.h <<_ACEOF
22756#define HAVE_LIBSSL 1
22757_ACEOF
22758
22759 LIBS="-lssl $LIBS"
22760
22761fi
22762
22763 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22765$as_echo "no" >&6; }
22766 LIBS=$OLIBS
22767 else
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22769$as_echo "yes" >&6; }
22770 fi
22771
22772 else
22773
22774 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22775 openssl/pem.h openssl/ssl.h openssl/err.h
22776do :
22777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22780 cat >>confdefs.h <<_ACEOF
22781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22782_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022783 ssl_msg="OpenSSL"
22784 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022785 OPENSSL_ENABLED=1
22786
22787$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22788
22789fi
22790
22791done
22792
22793
22794 if test $ac_cv_header_openssl_x509_h = no; then
22795 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22796do :
22797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22798ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22800 cat >>confdefs.h <<_ACEOF
22801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22802_ACEOF
22803
22804fi
22805
22806done
22807
22808
22809 if test $ac_cv_header_x509_h = yes &&
22810 test $ac_cv_header_crypto_h = yes &&
22811 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022812 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022813 OPENSSL_ENABLED=1
22814 fi
22815 fi
22816 fi
22817
Alex Deymo486467e2017-12-19 19:04:07 +010022818 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022819 LIBS="$CLEANLIBS"
22820 fi
22821
22822 if test X"$OPT_SSL" != Xoff &&
22823 test "$OPENSSL_ENABLED" != "1"; then
22824 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22825 fi
22826 fi
22827
22828 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022829
22830 for ac_func in RAND_egd \
22831 ENGINE_cleanup \
22832 SSL_get_shutdown \
22833 SSLv2_client_method
22834do :
22835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22836ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22837if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22838 cat >>confdefs.h <<_ACEOF
22839#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22840_ACEOF
22841
22842fi
22843done
22844
22845
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22847$as_echo_n "checking for BoringSSL... " >&6; }
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849/* end confdefs.h. */
22850
22851
22852 #include <openssl/base.h>
22853
22854int main (void)
22855{
22856
22857 #ifndef OPENSSL_IS_BORINGSSL
22858 #error not boringssl
22859 #endif
22860
22861 ;
22862 return 0;
22863}
22864
22865_ACEOF
22866if ac_fn_c_try_compile "$LINENO"; then :
22867
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869$as_echo "yes" >&6; }
22870
22871cat >>confdefs.h <<_ACEOF
22872#define HAVE_BORINGSSL 1
22873_ACEOF
22874
Alex Deymo486467e2017-12-19 19:04:07 +010022875 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022876
22877else
22878
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22880$as_echo "no" >&6; }
22881
22882fi
22883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22886$as_echo_n "checking for libressl... " >&6; }
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888/* end confdefs.h. */
22889
22890
22891#include <openssl/opensslv.h>
22892
22893int main (void)
22894{
22895
22896 int dummy = LIBRESSL_VERSION_NUMBER;
22897
22898 ;
22899 return 0;
22900}
22901
22902_ACEOF
22903if ac_fn_c_try_compile "$LINENO"; then :
22904
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22906$as_echo "yes" >&6; }
22907
22908cat >>confdefs.h <<_ACEOF
22909#define HAVE_LIBRESSL 1
22910_ACEOF
22911
Alex Deymo486467e2017-12-19 19:04:07 +010022912 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022913
22914else
22915
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22917$as_echo "no" >&6; }
22918
22919fi
22920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 fi
22922
22923 if test "$OPENSSL_ENABLED" = "1"; then
22924 if test -n "$LIB_OPENSSL"; then
22925 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022926 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22927 export CURL_LIBRARY_PATH
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22929$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022930 fi
22931 fi
22932
22933 #
22934
22935 #
22936 tst_api="unknown"
22937 #
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22939$as_echo_n "checking for OpenSSL headers version... " >&6; }
22940
22941 OLDCPPFLAGS=$CPPFLAGS
22942 # CPPPFLAG comes from CURL_CPP_P
22943 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22944 if test -z "$SED"; then
22945 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22946 fi
22947 if test -z "$GREP"; then
22948 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22949 fi
22950
22951 tmp_exp=""
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953/* end confdefs.h. */
22954
22955
22956# ifdef USE_OPENSSL
22957# include <openssl/crypto.h>
22958# else
22959# include <crypto.h>
22960# endif
22961
22962#ifdef OPENSSL_VERSION_NUMBER
22963CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22964#endif
22965
22966
22967_ACEOF
22968if ac_fn_c_try_cpp "$LINENO"; then :
22969
22970 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22971 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22972 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22973 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22974 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22975 tmp_exp=""
22976 fi
22977
22978fi
22979rm -f conftest.err conftest.i conftest.$ac_ext
22980 if test -z "$tmp_exp"; then
22981 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22982
22983 else
22984 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22985 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22986
22987 fi
22988 CPPFLAGS=$OLDCPPFLAGS
22989
22990 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22991 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22992 case "x$tst_verlen" in
22993 x6)
22994 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22995 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22996 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22997 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22998 ;;
22999 x11|x10)
23000 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23001 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23002 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23003 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23004 ;;
23005 *)
23006 tst_api="unknown"
23007 ;;
23008 esac
23009 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023010 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023011 0x110) tst_show="1.1.0" ;;
23012 0x102) tst_show="1.0.2" ;;
23013 0x101) tst_show="1.0.1" ;;
23014 0x100) tst_show="1.0.0" ;;
23015 0x099) tst_show="0.9.9" ;;
23016 0x098) tst_show="0.9.8" ;;
23017 0x097) tst_show="0.9.7" ;;
23018 0x096) tst_show="0.9.6" ;;
23019 0x095) tst_show="0.9.5" ;;
23020 0x094) tst_show="0.9.4" ;;
23021 0x093) tst_show="0.9.3" ;;
23022 0x092) tst_show="0.9.2" ;;
23023 0x091) tst_show="0.9.1" ;;
23024 *) tst_show="unknown" ;;
23025 esac
23026 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23027 else
23028 tst_show="unknown"
23029 fi
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23031$as_echo "$tst_show" >&6; }
23032 #
23033 curl_openssl_api_headers=$tst_api
23034
23035
23036 #
23037 tst_api="unknown"
23038 #
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23040$as_echo_n "checking for OpenSSL library version... " >&6; }
23041 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043/* end confdefs.h. */
23044
23045
23046#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23047#ifdef __STDC__
23048# include <limits.h>
23049#else
23050# include <assert.h>
23051#endif
23052#undef ERR_clear_last_mark
23053#ifdef __cplusplus
23054extern "C"
23055#endif
23056char ERR_clear_last_mark ();
23057#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23058choke me
23059#endif
23060
23061int main (void)
23062{
23063return ERR_clear_last_mark ();
23064 ;
23065 return 0;
23066}
23067
23068_ACEOF
23069if ac_fn_c_try_link "$LINENO"; then :
23070
23071 tst_api="0x111"
23072
23073fi
23074rm -f core conftest.err conftest.$ac_objext \
23075 conftest$ac_exeext conftest.$ac_ext
23076 fi
23077 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023078 case $host in
23079 *-*-vms*)
23080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23081/* end confdefs.h. */
23082
23083
23084#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23085#ifdef __STDC__
23086# include <limits.h>
23087#else
23088# include <assert.h>
23089#endif
23090#undef SSL_CTX_set_not_resumbl_sess_cb
23091#ifdef __cplusplus
23092extern "C"
23093#endif
23094char SSL_CTX_set_not_resumbl_sess_cb ();
23095#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23096choke me
23097#endif
23098
23099int main (void)
23100{
23101return SSL_CTX_set_not_resumbl_sess_cb ();
23102 ;
23103 return 0;
23104}
23105
23106_ACEOF
23107if ac_fn_c_try_link "$LINENO"; then :
23108
23109 tst_api="0x110"
23110
23111fi
23112rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114 ;;
23115 *)
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117/* end confdefs.h. */
23118
23119
23120#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23121#ifdef __STDC__
23122# include <limits.h>
23123#else
23124# include <assert.h>
23125#endif
23126#undef SSL_CTX_set_not_resumable_session_callback
23127#ifdef __cplusplus
23128extern "C"
23129#endif
23130char SSL_CTX_set_not_resumable_session_callback ();
23131#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23132choke me
23133#endif
23134
23135int main (void)
23136{
23137return SSL_CTX_set_not_resumable_session_callback ();
23138 ;
23139 return 0;
23140}
23141
23142_ACEOF
23143if ac_fn_c_try_link "$LINENO"; then :
23144
23145 tst_api="0x110"
23146
23147fi
23148rm -f core conftest.err conftest.$ac_objext \
23149 conftest$ac_exeext conftest.$ac_ext
23150 ;;
23151 esac
23152 fi
23153 if test "$tst_api" = "unknown"; then
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155/* end confdefs.h. */
23156
23157
23158#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23159#ifdef __STDC__
23160# include <limits.h>
23161#else
23162# include <assert.h>
23163#endif
23164#undef SSL_CONF_CTX_new
23165#ifdef __cplusplus
23166extern "C"
23167#endif
23168char SSL_CONF_CTX_new ();
23169#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23170choke me
23171#endif
23172
23173int main (void)
23174{
23175return SSL_CONF_CTX_new ();
23176 ;
23177 return 0;
23178}
23179
23180_ACEOF
23181if ac_fn_c_try_link "$LINENO"; then :
23182
23183 tst_api="0x102"
23184
23185fi
23186rm -f core conftest.err conftest.$ac_objext \
23187 conftest$ac_exeext conftest.$ac_ext
23188 fi
23189 if test "$tst_api" = "unknown"; then
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191/* end confdefs.h. */
23192
23193
23194#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23195#ifdef __STDC__
23196# include <limits.h>
23197#else
23198# include <assert.h>
23199#endif
23200#undef SSL_renegotiate_abbreviated
23201#ifdef __cplusplus
23202extern "C"
23203#endif
23204char SSL_renegotiate_abbreviated ();
23205#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23206choke me
23207#endif
23208
23209int main (void)
23210{
23211return SSL_renegotiate_abbreviated ();
23212 ;
23213 return 0;
23214}
23215
23216_ACEOF
23217if ac_fn_c_try_link "$LINENO"; then :
23218
23219 tst_api="0x101"
23220
23221fi
23222rm -f core conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
23224 fi
23225 if test "$tst_api" = "unknown"; then
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227/* end confdefs.h. */
23228
23229
23230#define OBJ_add_sigid innocuous_OBJ_add_sigid
23231#ifdef __STDC__
23232# include <limits.h>
23233#else
23234# include <assert.h>
23235#endif
23236#undef OBJ_add_sigid
23237#ifdef __cplusplus
23238extern "C"
23239#endif
23240char OBJ_add_sigid ();
23241#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23242choke me
23243#endif
23244
23245int main (void)
23246{
23247return OBJ_add_sigid ();
23248 ;
23249 return 0;
23250}
23251
23252_ACEOF
23253if ac_fn_c_try_link "$LINENO"; then :
23254
23255 tst_api="0x100"
23256
23257fi
23258rm -f core conftest.err conftest.$ac_objext \
23259 conftest$ac_exeext conftest.$ac_ext
23260 fi
23261 if test "$tst_api" = "unknown"; then
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263/* end confdefs.h. */
23264
23265
23266#define ERR_set_mark innocuous_ERR_set_mark
23267#ifdef __STDC__
23268# include <limits.h>
23269#else
23270# include <assert.h>
23271#endif
23272#undef ERR_set_mark
23273#ifdef __cplusplus
23274extern "C"
23275#endif
23276char ERR_set_mark ();
23277#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23278choke me
23279#endif
23280
23281int main (void)
23282{
23283return ERR_set_mark ();
23284 ;
23285 return 0;
23286}
23287
23288_ACEOF
23289if ac_fn_c_try_link "$LINENO"; then :
23290
23291 tst_api="0x098"
23292
23293fi
23294rm -f core conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 fi
23297 if test "$tst_api" = "unknown"; then
23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299/* end confdefs.h. */
23300
23301
23302#define ERR_peek_last_error innocuous_ERR_peek_last_error
23303#ifdef __STDC__
23304# include <limits.h>
23305#else
23306# include <assert.h>
23307#endif
23308#undef ERR_peek_last_error
23309#ifdef __cplusplus
23310extern "C"
23311#endif
23312char ERR_peek_last_error ();
23313#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23314choke me
23315#endif
23316
23317int main (void)
23318{
23319return ERR_peek_last_error ();
23320 ;
23321 return 0;
23322}
23323
23324_ACEOF
23325if ac_fn_c_try_link "$LINENO"; then :
23326
23327 tst_api="0x097"
23328
23329fi
23330rm -f core conftest.err conftest.$ac_objext \
23331 conftest$ac_exeext conftest.$ac_ext
23332 fi
23333 if test "$tst_api" = "unknown"; then
23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335/* end confdefs.h. */
23336
23337
23338#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23339#ifdef __STDC__
23340# include <limits.h>
23341#else
23342# include <assert.h>
23343#endif
23344#undef c2i_ASN1_OBJECT
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char c2i_ASN1_OBJECT ();
23349#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23350choke me
23351#endif
23352
23353int main (void)
23354{
23355return c2i_ASN1_OBJECT ();
23356 ;
23357 return 0;
23358}
23359
23360_ACEOF
23361if ac_fn_c_try_link "$LINENO"; then :
23362
23363 tst_api="0x096"
23364
23365fi
23366rm -f core conftest.err conftest.$ac_objext \
23367 conftest$ac_exeext conftest.$ac_ext
23368 fi
23369 if test "$tst_api" = "unknown"; then
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371/* end confdefs.h. */
23372
23373
23374#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23375#ifdef __STDC__
23376# include <limits.h>
23377#else
23378# include <assert.h>
23379#endif
23380#undef SSL_CTX_set_purpose
23381#ifdef __cplusplus
23382extern "C"
23383#endif
23384char SSL_CTX_set_purpose ();
23385#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23386choke me
23387#endif
23388
23389int main (void)
23390{
23391return SSL_CTX_set_purpose ();
23392 ;
23393 return 0;
23394}
23395
23396_ACEOF
23397if ac_fn_c_try_link "$LINENO"; then :
23398
23399 tst_api="0x095"
23400
23401fi
23402rm -f core conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23404 fi
23405 if test "$tst_api" = "unknown"; then
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407/* end confdefs.h. */
23408
23409
23410#define OBJ_obj2txt innocuous_OBJ_obj2txt
23411#ifdef __STDC__
23412# include <limits.h>
23413#else
23414# include <assert.h>
23415#endif
23416#undef OBJ_obj2txt
23417#ifdef __cplusplus
23418extern "C"
23419#endif
23420char OBJ_obj2txt ();
23421#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23422choke me
23423#endif
23424
23425int main (void)
23426{
23427return OBJ_obj2txt ();
23428 ;
23429 return 0;
23430}
23431
23432_ACEOF
23433if ac_fn_c_try_link "$LINENO"; then :
23434
23435 tst_api="0x094"
23436
23437fi
23438rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23440 fi
23441 if test "$tst_api" = "unknown"; then
23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443/* end confdefs.h. */
23444
23445
23446#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23447#ifdef __STDC__
23448# include <limits.h>
23449#else
23450# include <assert.h>
23451#endif
23452#undef SSL_get_verify_depth
23453#ifdef __cplusplus
23454extern "C"
23455#endif
23456char SSL_get_verify_depth ();
23457#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23458choke me
23459#endif
23460
23461int main (void)
23462{
23463return SSL_get_verify_depth ();
23464 ;
23465 return 0;
23466}
23467
23468_ACEOF
23469if ac_fn_c_try_link "$LINENO"; then :
23470
23471 tst_api="0x093"
23472
23473fi
23474rm -f core conftest.err conftest.$ac_objext \
23475 conftest$ac_exeext conftest.$ac_ext
23476 fi
23477 if test "$tst_api" = "unknown"; then
23478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23479/* end confdefs.h. */
23480
23481
23482#define SSL_library_init innocuous_SSL_library_init
23483#ifdef __STDC__
23484# include <limits.h>
23485#else
23486# include <assert.h>
23487#endif
23488#undef SSL_library_init
23489#ifdef __cplusplus
23490extern "C"
23491#endif
23492char SSL_library_init ();
23493#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23494choke me
23495#endif
23496
23497int main (void)
23498{
23499return SSL_library_init ();
23500 ;
23501 return 0;
23502}
23503
23504_ACEOF
23505if ac_fn_c_try_link "$LINENO"; then :
23506
23507 tst_api="0x092"
23508
23509fi
23510rm -f core conftest.err conftest.$ac_objext \
23511 conftest$ac_exeext conftest.$ac_ext
23512 fi
23513 if test "$tst_api" = "unknown"; then
23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515/* end confdefs.h. */
23516
23517
23518#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23519#ifdef __STDC__
23520# include <limits.h>
23521#else
23522# include <assert.h>
23523#endif
23524#undef SSL_CTX_set_cipher_list
23525#ifdef __cplusplus
23526extern "C"
23527#endif
23528char SSL_CTX_set_cipher_list ();
23529#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23530choke me
23531#endif
23532
23533int main (void)
23534{
23535return SSL_CTX_set_cipher_list ();
23536 ;
23537 return 0;
23538}
23539
23540_ACEOF
23541if ac_fn_c_try_link "$LINENO"; then :
23542
23543 tst_api="0x091"
23544
23545fi
23546rm -f core conftest.err conftest.$ac_objext \
23547 conftest$ac_exeext conftest.$ac_ext
23548 fi
23549 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023550 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023551 0x110) tst_show="1.1.0" ;;
23552 0x102) tst_show="1.0.2" ;;
23553 0x101) tst_show="1.0.1" ;;
23554 0x100) tst_show="1.0.0" ;;
23555 0x099) tst_show="0.9.9" ;;
23556 0x098) tst_show="0.9.8" ;;
23557 0x097) tst_show="0.9.7" ;;
23558 0x096) tst_show="0.9.6" ;;
23559 0x095) tst_show="0.9.5" ;;
23560 0x094) tst_show="0.9.4" ;;
23561 0x093) tst_show="0.9.3" ;;
23562 0x092) tst_show="0.9.2" ;;
23563 0x091) tst_show="0.9.1" ;;
23564 *) tst_show="unknown" ;;
23565 esac
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23567$as_echo "$tst_show" >&6; }
23568 #
23569 curl_openssl_api_library=$tst_api
23570
23571 #
23572 tst_match="yes"
23573 #
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23575$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23576 if test "$curl_openssl_api_headers" = "unknown" ||
23577 test "$curl_openssl_api_library" = "unknown"; then
23578 tst_match="fail"
23579 tst_warns="Can not compare OpenSSL headers and library versions."
23580 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23581 tst_match="no"
23582 tst_warns="OpenSSL headers and library versions do not match."
23583 fi
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23585$as_echo "$tst_match" >&6; }
23586 if test "$tst_match" != "yes"; then
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23588$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23589 fi
23590
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023591 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023592 fi
23593
Alex Deymo486467e2017-12-19 19:04:07 +010023594 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023595fi
23596
23597
23598if test X"$OPENSSL_ENABLED" = X"1"; then
23599
23600# Check whether --with-egd-socket was given.
23601if test "${with_egd_socket+set}" = set; then :
23602 withval=$with_egd_socket; EGD_SOCKET="$withval"
23603
23604fi
23605
23606 if test -n "$EGD_SOCKET" ; then
23607
23608cat >>confdefs.h <<_ACEOF
23609#define EGD_SOCKET "$EGD_SOCKET"
23610_ACEOF
23611
23612 fi
23613
23614
23615# Check whether --with-random was given.
23616if test "${with_random+set}" = set; then :
23617 withval=$with_random; RANDOM_FILE="$withval"
23618else
23619
23620 if test x$cross_compiling != xyes; then
23621 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23623$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23624if eval \${$as_ac_File+:} false; then :
23625 $as_echo_n "(cached) " >&6
23626else
23627 test "$cross_compiling" = yes &&
23628 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23629if test -r ""/dev/urandom""; then
23630 eval "$as_ac_File=yes"
23631else
23632 eval "$as_ac_File=no"
23633fi
23634fi
23635eval ac_res=\$$as_ac_File
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23637$as_echo "$ac_res" >&6; }
23638if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23639 RANDOM_FILE="/dev/urandom"
23640fi
23641
23642 else
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23644$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23645 fi
23646
23647
23648fi
23649
23650 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define RANDOM_FILE "$RANDOM_FILE"
23655_ACEOF
23656
23657 fi
23658fi
23659
23660if test "$OPENSSL_ENABLED" = "1"; then
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23662$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23663if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23664 $as_echo_n "(cached) " >&6
23665else
23666 ac_check_lib_save_LIBS=$LIBS
23667LIBS="-lcrypto $LIBS"
23668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669/* end confdefs.h. */
23670
23671
23672#ifdef __cplusplus
23673extern "C"
23674#endif
23675char SRP_Calc_client_key ();
23676int main (void)
23677{
23678return SRP_Calc_client_key ();
23679 ;
23680 return 0;
23681}
23682_ACEOF
23683if ac_fn_c_try_link "$LINENO"; then :
23684 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23685else
23686 ac_cv_lib_crypto_SRP_Calc_client_key=no
23687fi
23688rm -f core conftest.err conftest.$ac_objext \
23689 conftest$ac_exeext conftest.$ac_ext
23690LIBS=$ac_check_lib_save_LIBS
23691fi
23692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23693$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23694if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23695
23696
23697$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23698
23699 HAVE_OPENSSL_SRP=1
23700
23701
23702fi
23703
23704fi
23705
23706
23707OPT_GNUTLS=no
23708
23709
23710# Check whether --with-gnutls was given.
23711if test "${with_gnutls+set}" = set; then :
23712 withval=$with_gnutls; OPT_GNUTLS=$withval
23713fi
23714
23715
Alex Deymo486467e2017-12-19 19:04:07 +010023716if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23717 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023718
23719 if test X"$OPT_GNUTLS" != Xno; then
23720
23721 addld=""
23722 addlib=""
23723 gtlslib=""
23724 version=""
23725 addcflags=""
23726
23727 if test "x$OPT_GNUTLS" = "xyes"; then
23728
23729 if test -n "$PKG_CONFIG"; then
23730 PKGCONFIG="$PKG_CONFIG"
23731 else
23732 if test -n "$ac_tool_prefix"; then
23733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23736$as_echo_n "checking for $ac_word... " >&6; }
23737if ${ac_cv_path_PKGCONFIG+:} false; then :
23738 $as_echo_n "(cached) " >&6
23739else
23740 case $PKGCONFIG in
23741 [\\/]* | ?:[\\/]*)
23742 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23743 ;;
23744 *)
23745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23746as_dummy="$PATH:/usr/bin:/usr/local/bin"
23747for as_dir in $as_dummy
23748do
23749 IFS=$as_save_IFS
23750 test -z "$as_dir" && as_dir=.
23751 for ac_exec_ext in '' $ac_executable_extensions; do
23752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23753 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23755 break 2
23756 fi
23757done
23758 done
23759IFS=$as_save_IFS
23760
23761 ;;
23762esac
23763fi
23764PKGCONFIG=$ac_cv_path_PKGCONFIG
23765if test -n "$PKGCONFIG"; then
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23767$as_echo "$PKGCONFIG" >&6; }
23768else
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23770$as_echo "no" >&6; }
23771fi
23772
23773
23774fi
23775if test -z "$ac_cv_path_PKGCONFIG"; then
23776 ac_pt_PKGCONFIG=$PKGCONFIG
23777 # Extract the first word of "pkg-config", so it can be a program name with args.
23778set dummy pkg-config; ac_word=$2
23779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23780$as_echo_n "checking for $ac_word... " >&6; }
23781if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23782 $as_echo_n "(cached) " >&6
23783else
23784 case $ac_pt_PKGCONFIG in
23785 [\\/]* | ?:[\\/]*)
23786 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23787 ;;
23788 *)
23789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23790as_dummy="$PATH:/usr/bin:/usr/local/bin"
23791for as_dir in $as_dummy
23792do
23793 IFS=$as_save_IFS
23794 test -z "$as_dir" && as_dir=.
23795 for ac_exec_ext in '' $ac_executable_extensions; do
23796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23797 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23799 break 2
23800 fi
23801done
23802 done
23803IFS=$as_save_IFS
23804
23805 ;;
23806esac
23807fi
23808ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23809if test -n "$ac_pt_PKGCONFIG"; then
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23811$as_echo "$ac_pt_PKGCONFIG" >&6; }
23812else
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23814$as_echo "no" >&6; }
23815fi
23816
23817 if test "x$ac_pt_PKGCONFIG" = x; then
23818 PKGCONFIG="no"
23819 else
23820 case $cross_compiling:$ac_tool_warned in
23821yes:)
23822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23824ac_tool_warned=yes ;;
23825esac
23826 PKGCONFIG=$ac_pt_PKGCONFIG
23827 fi
23828else
23829 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23830fi
23831
23832 fi
23833
23834 if test "x$PKGCONFIG" != "xno"; then
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23836$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23837 itexists=`
23838 if test -n ""; then
23839 PKG_CONFIG_LIBDIR=""
23840 export PKG_CONFIG_LIBDIR
23841 fi
23842 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23843
23844 if test -z "$itexists"; then
23845 PKGCONFIG="no"
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847$as_echo "no" >&6; }
23848 else
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23850$as_echo "found" >&6; }
23851 fi
23852 fi
23853
23854
23855 if test "$PKGCONFIG" != "no" ; then
23856 addlib=`$PKGCONFIG --libs-only-l gnutls`
23857 addld=`$PKGCONFIG --libs-only-L gnutls`
23858 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23859 version=`$PKGCONFIG --modversion gnutls`
23860 gtlslib=`echo $addld | $SED -e 's/-L//'`
23861 else
23862 check=`libgnutls-config --version 2>/dev/null`
23863 if test -n "$check"; then
23864 addlib=`libgnutls-config --libs`
23865 addcflags=`libgnutls-config --cflags`
23866 version=`libgnutls-config --version`
23867 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23868 fi
23869 fi
23870 else
23871 cfg=$OPT_GNUTLS/bin/libgnutls-config
23872 check=`$cfg --version 2>/dev/null`
23873 if test -n "$check"; then
23874 addlib=`$cfg --libs`
23875 addcflags=`$cfg --cflags`
23876 version=`$cfg --version`
23877 gtlslib=`$cfg --prefix`/lib$libsuff
23878 else
23879 addlib=-lgnutls
23880 addld=-L$OPT_GNUTLS/lib$libsuff
23881 addcflags=-I$OPT_GNUTLS/include
23882 version="" # we just don't know
23883 gtlslib=$OPT_GNUTLS/lib$libsuff
23884 fi
23885 fi
23886
23887 if test -z "$version"; then
23888 version="unknown"
23889 fi
23890
23891 if test -n "$addlib"; then
23892
23893 CLEANLIBS="$LIBS"
23894 CLEANCPPFLAGS="$CPPFLAGS"
23895 CLEANLDFLAGS="$LDFLAGS"
23896
23897 LIBS="$addlib $LIBS"
23898 LDFLAGS="$LDFLAGS $addld"
23899 if test "$addcflags" != "-I/usr/include"; then
23900 CPPFLAGS="$CPPFLAGS $addcflags"
23901 fi
23902
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23904$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23905if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23906 $as_echo_n "(cached) " >&6
23907else
23908 ac_check_lib_save_LIBS=$LIBS
23909LIBS="-lgnutls $LIBS"
23910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911/* end confdefs.h. */
23912
23913
23914#ifdef __cplusplus
23915extern "C"
23916#endif
23917char gnutls_check_version ();
23918int main (void)
23919{
23920return gnutls_check_version ();
23921 ;
23922 return 0;
23923}
23924_ACEOF
23925if ac_fn_c_try_link "$LINENO"; then :
23926 ac_cv_lib_gnutls_gnutls_check_version=yes
23927else
23928 ac_cv_lib_gnutls_gnutls_check_version=no
23929fi
23930rm -f core conftest.err conftest.$ac_objext \
23931 conftest$ac_exeext conftest.$ac_ext
23932LIBS=$ac_check_lib_save_LIBS
23933fi
23934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23935$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23936if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23937
23938
23939$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23940
23941 USE_GNUTLS=1
23942
23943 GNUTLS_ENABLED=1
23944 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023945 ssl_msg="GnuTLS"
23946 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023947
23948else
23949
23950 LIBS="$CLEANLIBS"
23951 CPPFLAGS="$CLEANCPPFLAGS"
23952
23953fi
23954
23955
23956 if test "x$USE_GNUTLS" = "xyes"; then
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23958$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023959 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023960 if test -n "$gtlslib"; then
23961 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023962 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
23963 export CURL_LIBRARY_PATH
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
23965$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070023966 fi
23967 fi
23968 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23969do :
23970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23973 cat >>confdefs.h <<_ACEOF
23974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23975_ACEOF
23976
23977fi
23978done
23979
23980 fi
23981
23982 fi
23983
23984 fi
Alex Deymo486467e2017-12-19 19:04:07 +010023985 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023986fi
23987
23988
23989if test "$GNUTLS_ENABLED" = "1"; then
23990 USE_GNUTLS_NETTLE=
23991 # First check if we can detect either crypto library via transitive linking
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23993$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23994if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23995 $as_echo_n "(cached) " >&6
23996else
23997 ac_check_lib_save_LIBS=$LIBS
23998LIBS="-lgnutls $LIBS"
23999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000/* end confdefs.h. */
24001
24002
24003#ifdef __cplusplus
24004extern "C"
24005#endif
24006char nettle_MD5Init ();
24007int main (void)
24008{
24009return nettle_MD5Init ();
24010 ;
24011 return 0;
24012}
24013_ACEOF
24014if ac_fn_c_try_link "$LINENO"; then :
24015 ac_cv_lib_gnutls_nettle_MD5Init=yes
24016else
24017 ac_cv_lib_gnutls_nettle_MD5Init=no
24018fi
24019rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24021LIBS=$ac_check_lib_save_LIBS
24022fi
24023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24024$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24025if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24026 USE_GNUTLS_NETTLE=1
24027fi
24028
24029 if test "$USE_GNUTLS_NETTLE" = ""; then
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24031$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24032if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24033 $as_echo_n "(cached) " >&6
24034else
24035 ac_check_lib_save_LIBS=$LIBS
24036LIBS="-lgnutls $LIBS"
24037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038/* end confdefs.h. */
24039
24040
24041#ifdef __cplusplus
24042extern "C"
24043#endif
24044char gcry_control ();
24045int main (void)
24046{
24047return gcry_control ();
24048 ;
24049 return 0;
24050}
24051_ACEOF
24052if ac_fn_c_try_link "$LINENO"; then :
24053 ac_cv_lib_gnutls_gcry_control=yes
24054else
24055 ac_cv_lib_gnutls_gcry_control=no
24056fi
24057rm -f core conftest.err conftest.$ac_objext \
24058 conftest$ac_exeext conftest.$ac_ext
24059LIBS=$ac_check_lib_save_LIBS
24060fi
24061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24062$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24063if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24064 USE_GNUTLS_NETTLE=0
24065fi
24066
24067 fi
24068 # If not, try linking directly to both of them to see if they are available
24069 if test "$USE_GNUTLS_NETTLE" = ""; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24071$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24072if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074else
24075 ac_check_lib_save_LIBS=$LIBS
24076LIBS="-lnettle $LIBS"
24077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078/* end confdefs.h. */
24079
24080
24081#ifdef __cplusplus
24082extern "C"
24083#endif
24084char nettle_MD5Init ();
24085int main (void)
24086{
24087return nettle_MD5Init ();
24088 ;
24089 return 0;
24090}
24091_ACEOF
24092if ac_fn_c_try_link "$LINENO"; then :
24093 ac_cv_lib_nettle_nettle_MD5Init=yes
24094else
24095 ac_cv_lib_nettle_nettle_MD5Init=no
24096fi
24097rm -f core conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24099LIBS=$ac_check_lib_save_LIBS
24100fi
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24102$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24103if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24104 USE_GNUTLS_NETTLE=1
24105fi
24106
24107 fi
24108 if test "$USE_GNUTLS_NETTLE" = ""; then
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24110$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24111if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24112 $as_echo_n "(cached) " >&6
24113else
24114 ac_check_lib_save_LIBS=$LIBS
24115LIBS="-lgcrypt $LIBS"
24116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117/* end confdefs.h. */
24118
24119
24120#ifdef __cplusplus
24121extern "C"
24122#endif
24123char gcry_control ();
24124int main (void)
24125{
24126return gcry_control ();
24127 ;
24128 return 0;
24129}
24130_ACEOF
24131if ac_fn_c_try_link "$LINENO"; then :
24132 ac_cv_lib_gcrypt_gcry_control=yes
24133else
24134 ac_cv_lib_gcrypt_gcry_control=no
24135fi
24136rm -f core conftest.err conftest.$ac_objext \
24137 conftest$ac_exeext conftest.$ac_ext
24138LIBS=$ac_check_lib_save_LIBS
24139fi
24140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24141$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24142if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24143 USE_GNUTLS_NETTLE=0
24144fi
24145
24146 fi
24147 if test "$USE_GNUTLS_NETTLE" = ""; then
24148 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24149 fi
24150 if test "$USE_GNUTLS_NETTLE" = "1"; then
24151
24152$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24153
24154 USE_GNUTLS_NETTLE=1
24155
24156 LIBS="-lnettle $LIBS"
24157 else
24158 LIBS="-lgcrypt $LIBS"
24159 fi
24160fi
24161
24162if test "$GNUTLS_ENABLED" = "1"; then
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24164$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24165if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24166 $as_echo_n "(cached) " >&6
24167else
24168 ac_check_lib_save_LIBS=$LIBS
24169LIBS="-lgnutls $LIBS"
24170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24171/* end confdefs.h. */
24172
24173
24174#ifdef __cplusplus
24175extern "C"
24176#endif
24177char gnutls_srp_verifier ();
24178int main (void)
24179{
24180return gnutls_srp_verifier ();
24181 ;
24182 return 0;
24183}
24184_ACEOF
24185if ac_fn_c_try_link "$LINENO"; then :
24186 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24187else
24188 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24189fi
24190rm -f core conftest.err conftest.$ac_objext \
24191 conftest$ac_exeext conftest.$ac_ext
24192LIBS=$ac_check_lib_save_LIBS
24193fi
24194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24195$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24196if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24197
24198
24199$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24200
24201 HAVE_GNUTLS_SRP=1
24202
24203
24204fi
24205
24206fi
24207
24208
24209OPT_POLARSSL=no
24210
24211_cppflags=$CPPFLAGS
24212_ldflags=$LDFLAGS
24213
24214# Check whether --with-polarssl was given.
24215if test "${with_polarssl+set}" = set; then :
24216 withval=$with_polarssl; OPT_POLARSSL=$withval
24217fi
24218
24219
Alex Deymo486467e2017-12-19 19:04:07 +010024220if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24221 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024222
24223 if test X"$OPT_POLARSSL" != Xno; then
24224
24225 if test "$OPT_POLARSSL" = "yes"; then
24226 OPT_POLARSSL=""
24227 fi
24228
24229 if test -z "$OPT_POLARSSL" ; then
24230
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24232$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24233if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24234 $as_echo_n "(cached) " >&6
24235else
24236 ac_check_lib_save_LIBS=$LIBS
24237LIBS="-lpolarssl $LIBS"
24238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239/* end confdefs.h. */
24240
24241
24242#ifdef __cplusplus
24243extern "C"
24244#endif
24245char havege_init ();
24246int main (void)
24247{
24248return havege_init ();
24249 ;
24250 return 0;
24251}
24252_ACEOF
24253if ac_fn_c_try_link "$LINENO"; then :
24254 ac_cv_lib_polarssl_havege_init=yes
24255else
24256 ac_cv_lib_polarssl_havege_init=no
24257fi
24258rm -f core conftest.err conftest.$ac_objext \
24259 conftest$ac_exeext conftest.$ac_ext
24260LIBS=$ac_check_lib_save_LIBS
24261fi
24262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24263$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24264if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24265
24266
24267$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24268
24269 USE_POLARSSL=1
24270
24271 POLARSSL_ENABLED=1
24272 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024273 ssl_msg="PolarSSL"
24274 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024275
24276fi
24277
24278 fi
24279
24280 addld=""
24281 addlib=""
24282 addcflags=""
24283 polarssllib=""
24284
24285 if test "x$USE_POLARSSL" != "xyes"; then
24286 addld=-L$OPT_POLARSSL/lib$libsuff
24287 addcflags=-I$OPT_POLARSSL/include
24288 polarssllib=$OPT_POLARSSL/lib$libsuff
24289
24290 LDFLAGS="$LDFLAGS $addld"
24291 if test "$addcflags" != "-I/usr/include"; then
24292 CPPFLAGS="$CPPFLAGS $addcflags"
24293 fi
24294
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24296$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24297if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24298 $as_echo_n "(cached) " >&6
24299else
24300 ac_check_lib_save_LIBS=$LIBS
24301LIBS="-lpolarssl $LIBS"
24302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303/* end confdefs.h. */
24304
24305
24306#ifdef __cplusplus
24307extern "C"
24308#endif
24309char ssl_init ();
24310int main (void)
24311{
24312return ssl_init ();
24313 ;
24314 return 0;
24315}
24316_ACEOF
24317if ac_fn_c_try_link "$LINENO"; then :
24318 ac_cv_lib_polarssl_ssl_init=yes
24319else
24320 ac_cv_lib_polarssl_ssl_init=no
24321fi
24322rm -f core conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
24324LIBS=$ac_check_lib_save_LIBS
24325fi
24326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24327$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24328if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24329
24330
24331$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24332
24333 USE_POLARSSL=1
24334
24335 POLARSSL_ENABLED=1
24336 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024337 ssl_msg="PolarSSL"
24338 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024339
24340else
24341
24342 CPPFLAGS=$_cppflags
24343 LDFLAGS=$_ldflags
24344
24345fi
24346
24347 fi
24348
24349 if test "x$USE_POLARSSL" = "xyes"; then
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24351$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024352 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024353 LIBS="-lpolarssl $LIBS"
24354
24355 if test -n "$polarssllib"; then
24356 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024357 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24358 export CURL_LIBRARY_PATH
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24360$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024361 fi
24362 fi
24363 fi
24364
24365 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024366 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024367fi
24368
24369
24370OPT_MBEDTLS=no
24371
24372_cppflags=$CPPFLAGS
24373_ldflags=$LDFLAGS
24374
24375# Check whether --with-mbedtls was given.
24376if test "${with_mbedtls+set}" = set; then :
24377 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24378fi
24379
24380
Alex Deymo486467e2017-12-19 19:04:07 +010024381if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24382 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024383
24384 if test X"$OPT_MBEDTLS" != Xno; then
24385
24386 if test "$OPT_MBEDTLS" = "yes"; then
24387 OPT_MBEDTLS=""
24388 fi
24389
24390 if test -z "$OPT_MBEDTLS" ; then
24391
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24393$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24394if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24395 $as_echo_n "(cached) " >&6
24396else
24397 ac_check_lib_save_LIBS=$LIBS
24398LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400/* end confdefs.h. */
24401
24402
24403#ifdef __cplusplus
24404extern "C"
24405#endif
24406char mbedtls_havege_init ();
24407int main (void)
24408{
24409return mbedtls_havege_init ();
24410 ;
24411 return 0;
24412}
24413_ACEOF
24414if ac_fn_c_try_link "$LINENO"; then :
24415 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24416else
24417 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24418fi
24419rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24421LIBS=$ac_check_lib_save_LIBS
24422fi
24423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24424$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24425if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24426
24427
24428$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24429
24430 USE_MBEDTLS=1
24431
24432 MBEDTLS_ENABLED=1
24433 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024434 ssl_msg="mbedTLS"
24435 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024436
24437fi
24438
24439 fi
24440
24441 addld=""
24442 addlib=""
24443 addcflags=""
24444 mbedtlslib=""
24445
24446 if test "x$USE_MBEDTLS" != "xyes"; then
24447 addld=-L$OPT_MBEDTLS/lib$libsuff
24448 addcflags=-I$OPT_MBEDTLS/include
24449 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24450
24451 LDFLAGS="$LDFLAGS $addld"
24452 if test "$addcflags" != "-I/usr/include"; then
24453 CPPFLAGS="$CPPFLAGS $addcflags"
24454 fi
24455
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24457$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24458if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24459 $as_echo_n "(cached) " >&6
24460else
24461 ac_check_lib_save_LIBS=$LIBS
24462LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24464/* end confdefs.h. */
24465
24466
24467#ifdef __cplusplus
24468extern "C"
24469#endif
24470char mbedtls_ssl_init ();
24471int main (void)
24472{
24473return mbedtls_ssl_init ();
24474 ;
24475 return 0;
24476}
24477_ACEOF
24478if ac_fn_c_try_link "$LINENO"; then :
24479 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24480else
24481 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24482fi
24483rm -f core conftest.err conftest.$ac_objext \
24484 conftest$ac_exeext conftest.$ac_ext
24485LIBS=$ac_check_lib_save_LIBS
24486fi
24487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24488$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24489if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24490
24491
24492$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24493
24494 USE_MBEDTLS=1
24495
24496 MBEDTLS_ENABLED=1
24497 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024498 ssl_msg="mbedTLS"
24499 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024500
24501else
24502
24503 CPPFLAGS=$_cppflags
24504 LDFLAGS=$_ldflags
24505
24506fi
24507
24508 fi
24509
24510 if test "x$USE_MBEDTLS" = "xyes"; then
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24512$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024513 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024514
24515 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24516
24517 if test -n "$mbedtlslib"; then
24518 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024519 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24520 export CURL_LIBRARY_PATH
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24522$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024523 fi
24524 fi
24525 fi
24526
24527 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024528 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024529fi
24530
24531
24532OPT_CYASSL=no
24533
24534_cppflags=$CPPFLAGS
24535_ldflags=$LDFLAGS
24536
24537# Check whether --with-cyassl was given.
24538if test "${with_cyassl+set}" = set; then :
24539 withval=$with_cyassl; OPT_CYASSL=$withval
24540fi
24541
24542
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024543
24544# Check whether --with-wolfssl was given.
24545if test "${with_wolfssl+set}" = set; then :
24546 withval=$with_wolfssl; OPT_CYASSL=$withval
24547fi
24548
24549
Alex Deymo486467e2017-12-19 19:04:07 +010024550if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24551 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024552
24553 if test X"$OPT_CYASSL" != Xno; then
24554
24555 if test "$OPT_CYASSL" = "yes"; then
24556 OPT_CYASSL=""
24557 fi
24558
24559
24560 cyassllibname=cyassl
24561
24562 if test -z "$OPT_CYASSL" ; then
24563
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24565$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24566if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24567 $as_echo_n "(cached) " >&6
24568else
24569 ac_check_lib_save_LIBS=$LIBS
24570LIBS="-lcyassl $LIBS"
24571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24572/* end confdefs.h. */
24573
24574
24575#ifdef __cplusplus
24576extern "C"
24577#endif
24578char CyaSSL_Init ();
24579int main (void)
24580{
24581return CyaSSL_Init ();
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586if ac_fn_c_try_link "$LINENO"; then :
24587 ac_cv_lib_cyassl_CyaSSL_Init=yes
24588else
24589 ac_cv_lib_cyassl_CyaSSL_Init=no
24590fi
24591rm -f core conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24593LIBS=$ac_check_lib_save_LIBS
24594fi
24595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24596$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24597if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24598
24599
24600$as_echo "#define USE_CYASSL 1" >>confdefs.h
24601
24602 USE_CYASSL=1
24603
24604 CYASSL_ENABLED=1
24605 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024606 ssl_msg="CyaSSL"
24607 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024608
24609fi
24610
24611 fi
24612
24613 addld=""
24614 addlib=""
24615 addcflags=""
24616 cyassllib=""
24617
24618 if test "x$USE_CYASSL" != "xyes"; then
24619 addld=-L$OPT_CYASSL/lib$libsuff
24620 addcflags=-I$OPT_CYASSL/include
24621 cyassllib=$OPT_CYASSL/lib$libsuff
24622
24623 LDFLAGS="$LDFLAGS $addld"
24624 if test "$addcflags" != "-I/usr/include"; then
24625 CPPFLAGS="$CPPFLAGS $addcflags"
24626 fi
24627
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24629$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24630if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24631 $as_echo_n "(cached) " >&6
24632else
24633 ac_check_lib_save_LIBS=$LIBS
24634LIBS="-lcyassl $LIBS"
24635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636/* end confdefs.h. */
24637
24638
24639#ifdef __cplusplus
24640extern "C"
24641#endif
24642char CyaSSL_Init ();
24643int main (void)
24644{
24645return CyaSSL_Init ();
24646 ;
24647 return 0;
24648}
24649_ACEOF
24650if ac_fn_c_try_link "$LINENO"; then :
24651 ac_cv_lib_cyassl_CyaSSL_Init=yes
24652else
24653 ac_cv_lib_cyassl_CyaSSL_Init=no
24654fi
24655rm -f core conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
24657LIBS=$ac_check_lib_save_LIBS
24658fi
24659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24660$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24661if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24662
24663
24664$as_echo "#define USE_CYASSL 1" >>confdefs.h
24665
24666 USE_CYASSL=1
24667
24668 CYASSL_ENABLED=1
24669 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024670 ssl_msg="CyaSSL"
24671 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024672
24673else
24674
24675 CPPFLAGS=$_cppflags
24676 LDFLAGS=$_ldflags
24677 cyassllib=""
24678
24679fi
24680
24681 fi
24682
24683 addld=""
24684 addlib=""
24685 addcflags=""
24686
24687 if test "x$USE_CYASSL" != "xyes"; then
24688 addld=-L$OPT_CYASSL/lib$libsuff
24689 addcflags=-I$OPT_CYASSL/include
24690 cyassllib=$OPT_CYASSL/lib$libsuff
24691
24692 LDFLAGS="$LDFLAGS $addld"
24693 if test "$addcflags" != "-I/usr/include"; then
24694 CPPFLAGS="$CPPFLAGS $addcflags"
24695 fi
24696
24697 cyassllibname=wolfssl
24698 my_ac_save_LIBS="$LIBS"
24699 LIBS="-l$cyassllibname -lm $LIBS"
24700
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24702$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704/* end confdefs.h. */
24705
24706
24707/* These aren't needed for detection and confuse WolfSSL.
24708 They are set up properly later if it is detected. */
24709#undef SIZEOF_LONG
24710#undef SIZEOF_LONG_LONG
24711#include <cyassl/ssl.h>
24712
24713int main (void)
24714{
24715
24716 return CyaSSL_Init();
24717
24718 ;
24719 return 0;
24720}
24721
24722_ACEOF
24723if ac_fn_c_try_link "$LINENO"; then :
24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24726$as_echo "yes" >&6; }
24727
24728$as_echo "#define USE_CYASSL 1" >>confdefs.h
24729
24730 USE_CYASSL=1
24731
24732 CYASSL_ENABLED=1
24733 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024734 ssl_msg="WolfSSL"
24735 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024736
24737else
24738
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24740$as_echo "no" >&6; }
24741 CPPFLAGS=$_cppflags
24742 LDFLAGS=$_ldflags
24743 cyassllib=""
24744
24745fi
24746rm -f core conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
24748 LIBS="$my_ac_save_LIBS"
24749 fi
24750
24751 if test "x$USE_CYASSL" = "xyes"; then
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24753$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024754 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024755
Elliott Hughes72d948d2018-08-03 14:37:21 -070024756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024757$as_echo_n "checking size of long long... " >&6; }
24758if ${ac_cv_sizeof_long_long+:} false; then :
24759 $as_echo_n "(cached) " >&6
24760else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024761 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024764
Elliott Hughes72d948d2018-08-03 14:37:21 -070024765#include <sys/types.h>
24766
24767
24768int main (void)
24769{
24770switch (0) case 0: case (sizeof (long long) == $ac_size):;
24771 ;
24772 return 0;
24773}
24774_ACEOF
24775if ac_fn_c_try_compile "$LINENO"; then :
24776 ac_cv_sizeof_long_long=$ac_size
24777fi
24778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24779 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24780done
24781
Elliott Hughes82be86d2017-09-20 17:00:17 -070024782fi
24783
Elliott Hughes72d948d2018-08-03 14:37:21 -070024784if test x$ac_cv_sizeof_long_long = x ; then
24785 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024786fi
24787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24788$as_echo "$ac_cv_sizeof_long_long" >&6; }
24789
Elliott Hughes82be86d2017-09-20 17:00:17 -070024790cat >>confdefs.h <<_ACEOF
24791#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24792_ACEOF
24793
24794
24795
24796 for ac_header in cyassl/options.h
24797do :
24798 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24799if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24800 cat >>confdefs.h <<_ACEOF
24801#define HAVE_CYASSL_OPTIONS_H 1
24802_ACEOF
24803
24804fi
24805
24806done
24807
24808
24809 for ac_header in cyassl/error-ssl.h
24810do :
24811 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24812if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24813 cat >>confdefs.h <<_ACEOF
24814#define HAVE_CYASSL_ERROR_SSL_H 1
24815_ACEOF
24816
24817fi
24818
24819done
24820
24821
24822 LIBS="-l$cyassllibname -lm $LIBS"
24823
24824 if test "x$cyassllibname" = "xwolfssl"; then
24825 for ac_func in wolfSSLv3_client_method \
24826 wolfSSL_CTX_UseSupportedCurve \
24827 wolfSSL_get_peer_certificate \
24828 wolfSSL_UseALPN
24829do :
24830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24832if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24833 cat >>confdefs.h <<_ACEOF
24834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24835_ACEOF
24836
24837fi
24838done
24839
24840 else
24841 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24842 CyaSSL_get_peer_certificate
24843do :
24844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24846if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24847 cat >>confdefs.h <<_ACEOF
24848#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24849_ACEOF
24850
24851fi
24852done
24853
24854 fi
24855
24856 if test -n "$cyassllib"; then
24857 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024858 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24859 export CURL_LIBRARY_PATH
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24861$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024862 fi
24863 fi
24864
24865 fi
24866
24867 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024868 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024869fi
24870
24871
24872OPT_NSS=no
24873
24874
24875# Check whether --with-nss was given.
24876if test "${with_nss+set}" = set; then :
24877 withval=$with_nss; OPT_NSS=$withval
24878fi
24879
24880
Alex Deymo486467e2017-12-19 19:04:07 +010024881if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24882 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024883
24884 if test X"$OPT_NSS" != Xno; then
24885
24886 addld=""
24887 addlib=""
24888 addcflags=""
24889 nssprefix=""
24890 version=""
24891
24892 if test "x$OPT_NSS" = "xyes"; then
24893
24894
24895 if test -n "$PKG_CONFIG"; then
24896 PKGCONFIG="$PKG_CONFIG"
24897 else
24898 if test -n "$ac_tool_prefix"; then
24899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24900set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24902$as_echo_n "checking for $ac_word... " >&6; }
24903if ${ac_cv_path_PKGCONFIG+:} false; then :
24904 $as_echo_n "(cached) " >&6
24905else
24906 case $PKGCONFIG in
24907 [\\/]* | ?:[\\/]*)
24908 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24909 ;;
24910 *)
24911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24912as_dummy="$PATH:/usr/bin:/usr/local/bin"
24913for as_dir in $as_dummy
24914do
24915 IFS=$as_save_IFS
24916 test -z "$as_dir" && as_dir=.
24917 for ac_exec_ext in '' $ac_executable_extensions; do
24918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24919 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24921 break 2
24922 fi
24923done
24924 done
24925IFS=$as_save_IFS
24926
24927 ;;
24928esac
24929fi
24930PKGCONFIG=$ac_cv_path_PKGCONFIG
24931if test -n "$PKGCONFIG"; then
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24933$as_echo "$PKGCONFIG" >&6; }
24934else
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24936$as_echo "no" >&6; }
24937fi
24938
24939
24940fi
24941if test -z "$ac_cv_path_PKGCONFIG"; then
24942 ac_pt_PKGCONFIG=$PKGCONFIG
24943 # Extract the first word of "pkg-config", so it can be a program name with args.
24944set dummy pkg-config; ac_word=$2
24945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24946$as_echo_n "checking for $ac_word... " >&6; }
24947if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24948 $as_echo_n "(cached) " >&6
24949else
24950 case $ac_pt_PKGCONFIG in
24951 [\\/]* | ?:[\\/]*)
24952 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24953 ;;
24954 *)
24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956as_dummy="$PATH:/usr/bin:/usr/local/bin"
24957for as_dir in $as_dummy
24958do
24959 IFS=$as_save_IFS
24960 test -z "$as_dir" && as_dir=.
24961 for ac_exec_ext in '' $ac_executable_extensions; do
24962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24963 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24965 break 2
24966 fi
24967done
24968 done
24969IFS=$as_save_IFS
24970
24971 ;;
24972esac
24973fi
24974ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24975if test -n "$ac_pt_PKGCONFIG"; then
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24977$as_echo "$ac_pt_PKGCONFIG" >&6; }
24978else
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24980$as_echo "no" >&6; }
24981fi
24982
24983 if test "x$ac_pt_PKGCONFIG" = x; then
24984 PKGCONFIG="no"
24985 else
24986 case $cross_compiling:$ac_tool_warned in
24987yes:)
24988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24990ac_tool_warned=yes ;;
24991esac
24992 PKGCONFIG=$ac_pt_PKGCONFIG
24993 fi
24994else
24995 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24996fi
24997
24998 fi
24999
25000 if test "x$PKGCONFIG" != "xno"; then
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25002$as_echo_n "checking for nss options with pkg-config... " >&6; }
25003 itexists=`
25004 if test -n ""; then
25005 PKG_CONFIG_LIBDIR=""
25006 export PKG_CONFIG_LIBDIR
25007 fi
25008 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25009
25010 if test -z "$itexists"; then
25011 PKGCONFIG="no"
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25013$as_echo "no" >&6; }
25014 else
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25016$as_echo "found" >&6; }
25017 fi
25018 fi
25019
25020
25021 if test "$PKGCONFIG" != "no" ; then
25022 addlib=`$PKGCONFIG --libs nss`
25023 addcflags=`$PKGCONFIG --cflags nss`
25024 version=`$PKGCONFIG --modversion nss`
25025 nssprefix=`$PKGCONFIG --variable=prefix nss`
25026 else
25027
25028 check=`nss-config --version 2>/dev/null`
25029 if test -n "$check"; then
25030 addlib=`nss-config --libs`
25031 addcflags=`nss-config --cflags`
25032 version=`nss-config --version`
25033 nssprefix=`nss-config --prefix`
25034 else
25035 addlib="-lnss3"
25036 addcflags=""
25037 version="unknown"
25038 fi
25039 fi
25040 else
25041 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25042 if test -f "$NSS_PCDIR/nss.pc"; then
25043
25044 if test -n "$PKG_CONFIG"; then
25045 PKGCONFIG="$PKG_CONFIG"
25046 else
25047 if test -n "$ac_tool_prefix"; then
25048 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25049set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25051$as_echo_n "checking for $ac_word... " >&6; }
25052if ${ac_cv_path_PKGCONFIG+:} false; then :
25053 $as_echo_n "(cached) " >&6
25054else
25055 case $PKGCONFIG in
25056 [\\/]* | ?:[\\/]*)
25057 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25058 ;;
25059 *)
25060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25061as_dummy="$PATH:/usr/bin:/usr/local/bin"
25062for as_dir in $as_dummy
25063do
25064 IFS=$as_save_IFS
25065 test -z "$as_dir" && as_dir=.
25066 for ac_exec_ext in '' $ac_executable_extensions; do
25067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25068 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25070 break 2
25071 fi
25072done
25073 done
25074IFS=$as_save_IFS
25075
25076 ;;
25077esac
25078fi
25079PKGCONFIG=$ac_cv_path_PKGCONFIG
25080if test -n "$PKGCONFIG"; then
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25082$as_echo "$PKGCONFIG" >&6; }
25083else
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25085$as_echo "no" >&6; }
25086fi
25087
25088
25089fi
25090if test -z "$ac_cv_path_PKGCONFIG"; then
25091 ac_pt_PKGCONFIG=$PKGCONFIG
25092 # Extract the first word of "pkg-config", so it can be a program name with args.
25093set dummy pkg-config; ac_word=$2
25094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25095$as_echo_n "checking for $ac_word... " >&6; }
25096if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25097 $as_echo_n "(cached) " >&6
25098else
25099 case $ac_pt_PKGCONFIG in
25100 [\\/]* | ?:[\\/]*)
25101 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25102 ;;
25103 *)
25104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25105as_dummy="$PATH:/usr/bin:/usr/local/bin"
25106for as_dir in $as_dummy
25107do
25108 IFS=$as_save_IFS
25109 test -z "$as_dir" && as_dir=.
25110 for ac_exec_ext in '' $ac_executable_extensions; do
25111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25112 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25114 break 2
25115 fi
25116done
25117 done
25118IFS=$as_save_IFS
25119
25120 ;;
25121esac
25122fi
25123ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25124if test -n "$ac_pt_PKGCONFIG"; then
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25126$as_echo "$ac_pt_PKGCONFIG" >&6; }
25127else
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25129$as_echo "no" >&6; }
25130fi
25131
25132 if test "x$ac_pt_PKGCONFIG" = x; then
25133 PKGCONFIG="no"
25134 else
25135 case $cross_compiling:$ac_tool_warned in
25136yes:)
25137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25139ac_tool_warned=yes ;;
25140esac
25141 PKGCONFIG=$ac_pt_PKGCONFIG
25142 fi
25143else
25144 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25145fi
25146
25147 fi
25148
25149 if test "x$PKGCONFIG" != "xno"; then
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25151$as_echo_n "checking for nss options with pkg-config... " >&6; }
25152 itexists=`
25153 if test -n "$NSS_PCDIR"; then
25154 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25155 export PKG_CONFIG_LIBDIR
25156 fi
25157 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25158
25159 if test -z "$itexists"; then
25160 PKGCONFIG="no"
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25162$as_echo "no" >&6; }
25163 else
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25165$as_echo "found" >&6; }
25166 fi
25167 fi
25168
25169 if test "$PKGCONFIG" != "no" ; then
25170 addld=`
25171 if test -n "$NSS_PCDIR"; then
25172 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25173 export PKG_CONFIG_LIBDIR
25174 fi
25175 $PKGCONFIG --libs-only-L nss`
25176 addlib=`
25177 if test -n "$NSS_PCDIR"; then
25178 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25179 export PKG_CONFIG_LIBDIR
25180 fi
25181 $PKGCONFIG --libs-only-l nss`
25182 addcflags=`
25183 if test -n "$NSS_PCDIR"; then
25184 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25185 export PKG_CONFIG_LIBDIR
25186 fi
25187 $PKGCONFIG --cflags nss`
25188 version=`
25189 if test -n "$NSS_PCDIR"; then
25190 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25191 export PKG_CONFIG_LIBDIR
25192 fi
25193 $PKGCONFIG --modversion nss`
25194 nssprefix=`
25195 if test -n "$NSS_PCDIR"; then
25196 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25197 export PKG_CONFIG_LIBDIR
25198 fi
25199 $PKGCONFIG --variable=prefix nss`
25200 fi
25201 fi
25202 fi
25203
25204 if test -z "$addlib"; then
25205 # Without pkg-config, we'll kludge in some defaults
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25207$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25208 addld="-L$OPT_NSS/lib"
25209 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25210 addcflags="-I$OPT_NSS/include"
25211 version="unknown"
25212 nssprefix=$OPT_NSS
25213 fi
25214
25215 CLEANLDFLAGS="$LDFLAGS"
25216 CLEANLIBS="$LIBS"
25217 CLEANCPPFLAGS="$CPPFLAGS"
25218
25219 LDFLAGS="$addld $LDFLAGS"
25220 LIBS="$addlib $LIBS"
25221 if test "$addcflags" != "-I/usr/include"; then
25222 CPPFLAGS="$CPPFLAGS $addcflags"
25223 fi
25224
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25226$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25227if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25228 $as_echo_n "(cached) " >&6
25229else
25230 ac_check_lib_save_LIBS=$LIBS
25231LIBS="-lnss3 $LIBS"
25232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25233/* end confdefs.h. */
25234
25235
25236#ifdef __cplusplus
25237extern "C"
25238#endif
25239char SSL_VersionRangeSet ();
25240int main (void)
25241{
25242return SSL_VersionRangeSet ();
25243 ;
25244 return 0;
25245}
25246_ACEOF
25247if ac_fn_c_try_link "$LINENO"; then :
25248 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25249else
25250 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25251fi
25252rm -f core conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
25254LIBS=$ac_check_lib_save_LIBS
25255fi
25256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25257$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25258if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25259
25260
25261$as_echo "#define USE_NSS 1" >>confdefs.h
25262
25263 USE_NSS=1
25264
25265 USE_NSS="yes"
25266 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025267 ssl_msg="NSS"
25268 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025269
25270else
25271
25272 LDFLAGS="$CLEANLDFLAGS"
25273 LIBS="$CLEANLIBS"
25274 CPPFLAGS="$CLEANCPPFLAGS"
25275
25276fi
25277
25278
25279 if test "x$USE_NSS" = "xyes"; then
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25281$as_echo "$as_me: detected NSS version $version" >&6;}
25282
Elliott Hughescac39802018-04-27 16:19:43 -070025283 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25284if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25285
25286
25287$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25288
25289
25290fi
25291
25292
Elliott Hughes82be86d2017-09-20 17:00:17 -070025293 NSS_LIBS=$addlib
25294
25295
25296 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025297 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25298 export CURL_LIBRARY_PATH
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25300$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025301 fi
25302
25303 fi
25304 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025305 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025306fi
Alex Deymo486467e2017-12-19 19:04:07 +010025307
Elliott Hughes82be86d2017-09-20 17:00:17 -070025308OPT_AXTLS=off
25309
25310
25311# Check whether --with-axtls was given.
25312if test "${with_axtls+set}" = set; then :
25313 withval=$with_axtls; OPT_AXTLS=$withval
25314fi
25315
25316
Alex Deymo486467e2017-12-19 19:04:07 +010025317if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25318 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025319 if test X"$OPT_AXTLS" != Xno; then
25320 CLEANLDFLAGS="$LDFLAGS"
25321 CLEANCPPFLAGS="$CPPFLAGS"
25322 CLEANLIBS="$LIBS"
25323
25324 case "$OPT_AXTLS" in
25325 yes)
25326 PREFIX_AXTLS=/usr/local
25327 LIB_AXTLS="$PREFIX_AXTLS/lib"
25328 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25329 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25330 ;;
25331 off)
25332 PREFIX_AXTLS=
25333 ;;
25334 *)
25335 PREFIX_AXTLS=$OPT_AXTLS
25336 LIB_AXTLS="$PREFIX_AXTLS/lib"
25337 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25338 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25339 ;;
25340 esac
25341
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25343$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25344if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25345 $as_echo_n "(cached) " >&6
25346else
25347 ac_check_lib_save_LIBS=$LIBS
25348LIBS="-laxtls $LIBS"
25349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350/* end confdefs.h. */
25351
25352
25353#ifdef __cplusplus
25354extern "C"
25355#endif
25356char ssl_version ();
25357int main (void)
25358{
25359return ssl_version ();
25360 ;
25361 return 0;
25362}
25363_ACEOF
25364if ac_fn_c_try_link "$LINENO"; then :
25365 ac_cv_lib_axtls_ssl_version=yes
25366else
25367 ac_cv_lib_axtls_ssl_version=no
25368fi
25369rm -f core conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25371LIBS=$ac_check_lib_save_LIBS
25372fi
25373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25374$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25375if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25376
25377 LIBS="-laxtls $LIBS"
25378
25379$as_echo "#define USE_AXTLS 1" >>confdefs.h
25380
25381 USE_AXTLS=1
25382
25383 AXTLS_ENABLED=1
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025384 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070025385 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025386 ssl_msg="axTLS"
25387 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025388
25389 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025390 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25391 export CURL_LIBRARY_PATH
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25393$as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025394 fi
25395
25396else
25397
25398 LDFLAGS="$CLEANLDFLAGS"
25399 CPPFLAGS="$CLEANCPPFLAGS"
25400 LIBS="$CLEANLIBS"
25401
25402fi
25403
25404 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025405 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025406fi
25407
Alex Deymo486467e2017-12-19 19:04:07 +010025408case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25409x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25411$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
25413$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025414 ;;
25415x1)
25416 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025417
25418 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025419 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25420$as_echo "$as_me: built with one SSL backend" >&6;}
25421 ;;
25422*)
25423 # more than one SSL backend is enabled
25424
25425 SSL_ENABLED="1"
25426
25427 CURL_WITH_MULTI_SSL="1"
25428
25429$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25430
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25432$as_echo "$as_me: built with multiple SSL backends" >&6;}
25433 ;;
25434esac
25435
25436if test -n "$ssl_backends"; then
25437 curl_ssl_msg="enabled ($ssl_backends)"
25438fi
25439
25440if test no = "$VALID_DEFAULT_SSL_BACKEND"
25441then
25442 if test -n "$SSL_ENABLED"
25443 then
25444 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25445 else
25446 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25447 fi
25448elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25449then
25450
25451cat >>confdefs.h <<_ACEOF
25452#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25453_ACEOF
25454
Elliott Hughes82be86d2017-09-20 17:00:17 -070025455fi
25456
25457
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025458if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025459
25460
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25462$as_echo_n "checking default CA cert bundle/path... " >&6; }
25463
25464
25465# Check whether --with-ca-bundle was given.
25466if test "${with_ca_bundle+set}" = set; then :
25467 withval=$with_ca_bundle;
25468 want_ca="$withval"
25469 if test "x$want_ca" = "xyes"; then
25470 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25471 fi
25472
25473else
25474 want_ca="unset"
25475fi
25476
25477
25478# Check whether --with-ca-path was given.
25479if test "${with_ca_path+set}" = set; then :
25480 withval=$with_ca_path;
25481 want_capath="$withval"
25482 if test "x$want_capath" = "xyes"; then
25483 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25484 fi
25485
25486else
25487 want_capath="unset"
25488fi
25489
25490
25491 ca_warning=" (warning: certs not found)"
25492 capath_warning=" (warning: certs not found)"
25493 check_capath=""
25494
25495 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25496 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25497 ca="$want_ca"
25498 capath="$want_capath"
25499 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25500 ca="$want_ca"
25501 capath="no"
25502 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25503 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25504 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25505 fi
25506 capath="$want_capath"
25507 ca="no"
25508 else
25509 ca="no"
25510 capath="no"
25511 if test "x$cross_compiling" != "xyes"; then
25512 if test "x$want_ca" = "xunset"; then
25513 if test "x$prefix" != xNONE; then
25514 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25515 else
25516 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25517 fi
25518
25519 for a in /etc/ssl/certs/ca-certificates.crt \
25520 /etc/pki/tls/certs/ca-bundle.crt \
25521 /usr/share/ssl/certs/ca-bundle.crt \
25522 /usr/local/share/certs/ca-root-nss.crt \
25523 /etc/ssl/cert.pem \
25524 "$cac"; do
25525 if test -f "$a"; then
25526 ca="$a"
25527 break
25528 fi
25529 done
25530 fi
25531 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25532 "x$OPENSSL_ENABLED" = "x1"; then
25533 check_capath="/etc/ssl/certs/"
25534 fi
25535 else
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25537$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25538 fi
25539 fi
25540
25541 if test "x$ca" = "xno" || test -f "$ca"; then
25542 ca_warning=""
25543 fi
25544
25545 if test "x$capath" != "xno"; then
25546 check_capath="$capath"
25547 fi
25548
25549 if test ! -z "$check_capath"; then
25550 for a in "$check_capath"; do
25551 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
25552 if test "x$capath" = "xno"; then
25553 capath="$a"
25554 fi
25555 capath_warning=""
25556 break
25557 fi
25558 done
25559 fi
25560
25561 if test "x$capath" = "xno"; then
25562 capath_warning=""
25563 fi
25564
25565 if test "x$ca" != "xno"; then
25566 CURL_CA_BUNDLE='"'$ca'"'
25567
25568cat >>confdefs.h <<_ACEOF
25569#define CURL_CA_BUNDLE "$ca"
25570_ACEOF
25571
25572
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25574$as_echo "$ca" >&6; }
25575 fi
25576 if test "x$capath" != "xno"; then
25577 CURL_CA_PATH="\"$capath\""
25578
25579cat >>confdefs.h <<_ACEOF
25580#define CURL_CA_PATH "$capath"
25581_ACEOF
25582
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25584$as_echo "$capath (capath)" >&6; }
25585 fi
25586 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25588$as_echo "no" >&6; }
25589 fi
25590
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25592$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25593
25594# Check whether --with-ca-fallback was given.
25595if test "${with_ca_fallback+set}" = set; then :
25596 withval=$with_ca_fallback;
25597 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25598 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25599 fi
25600
25601else
25602 with_ca_fallback="no"
25603fi
25604
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25606$as_echo "$with_ca_fallback" >&6; }
25607 if test "x$with_ca_fallback" = "xyes"; then
25608 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25609 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25610 fi
25611
25612cat >>confdefs.h <<_ACEOF
25613#define CURL_CA_FALLBACK 1
25614_ACEOF
25615
25616 fi
25617
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025618fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025619
25620
25621
25622# Check whether --with-libpsl was given.
25623if test "${with_libpsl+set}" = set; then :
25624 withval=$with_libpsl; with_libpsl=$withval
25625else
25626 with_libpsl=yes
25627fi
25628
25629if test $with_libpsl != "no"; then
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25631$as_echo_n "checking for library containing psl_builtin... " >&6; }
25632if ${ac_cv_search_psl_builtin+:} false; then :
25633 $as_echo_n "(cached) " >&6
25634else
25635 ac_func_search_save_LIBS=$LIBS
25636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637/* end confdefs.h. */
25638
25639
25640#ifdef __cplusplus
25641extern "C"
25642#endif
25643char psl_builtin ();
25644int main (void)
25645{
25646return psl_builtin ();
25647 ;
25648 return 0;
25649}
25650_ACEOF
25651for ac_lib in '' psl; do
25652 if test -z "$ac_lib"; then
25653 ac_res="none required"
25654 else
25655 ac_res=-l$ac_lib
25656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25657 fi
25658 if ac_fn_c_try_link "$LINENO"; then :
25659 ac_cv_search_psl_builtin=$ac_res
25660fi
25661rm -f core conftest.err conftest.$ac_objext \
25662 conftest$ac_exeext
25663 if ${ac_cv_search_psl_builtin+:} false; then :
25664 break
25665fi
25666done
25667if ${ac_cv_search_psl_builtin+:} false; then :
25668
25669else
25670 ac_cv_search_psl_builtin=no
25671fi
25672rm conftest.$ac_ext
25673LIBS=$ac_func_search_save_LIBS
25674fi
25675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25676$as_echo "$ac_cv_search_psl_builtin" >&6; }
25677ac_res=$ac_cv_search_psl_builtin
25678if test "$ac_res" != no; then :
25679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25680 curl_psl_msg="yes";
25681
25682$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25683
25684
25685else
25686 curl_psl_msg="no (libpsl not found)";
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25688$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25689
25690
25691fi
25692
25693fi
25694 if test "$curl_psl_msg" = "yes"; then
25695 USE_LIBPSL_TRUE=
25696 USE_LIBPSL_FALSE='#'
25697else
25698 USE_LIBPSL_TRUE='#'
25699 USE_LIBPSL_FALSE=
25700fi
25701
25702
25703
25704OPT_LIBMETALINK=no
25705
25706
25707# Check whether --with-libmetalink was given.
25708if test "${with_libmetalink+set}" = set; then :
25709 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25710fi
25711
25712
25713if test X"$OPT_LIBMETALINK" != Xno; then
25714
25715 addld=""
25716 addlib=""
25717 addcflags=""
25718 version=""
25719 libmetalinklib=""
25720
25721 PKGTEST="no"
25722 if test "x$OPT_LIBMETALINK" = "xyes"; then
25723 PKGTEST="yes"
25724
25725 if test -n "$PKG_CONFIG"; then
25726 PKGCONFIG="$PKG_CONFIG"
25727 else
25728 if test -n "$ac_tool_prefix"; then
25729 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25730set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25732$as_echo_n "checking for $ac_word... " >&6; }
25733if ${ac_cv_path_PKGCONFIG+:} false; then :
25734 $as_echo_n "(cached) " >&6
25735else
25736 case $PKGCONFIG in
25737 [\\/]* | ?:[\\/]*)
25738 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25739 ;;
25740 *)
25741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25742as_dummy="$PATH:/usr/bin:/usr/local/bin"
25743for as_dir in $as_dummy
25744do
25745 IFS=$as_save_IFS
25746 test -z "$as_dir" && as_dir=.
25747 for ac_exec_ext in '' $ac_executable_extensions; do
25748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25749 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25751 break 2
25752 fi
25753done
25754 done
25755IFS=$as_save_IFS
25756
25757 ;;
25758esac
25759fi
25760PKGCONFIG=$ac_cv_path_PKGCONFIG
25761if test -n "$PKGCONFIG"; then
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25763$as_echo "$PKGCONFIG" >&6; }
25764else
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25766$as_echo "no" >&6; }
25767fi
25768
25769
25770fi
25771if test -z "$ac_cv_path_PKGCONFIG"; then
25772 ac_pt_PKGCONFIG=$PKGCONFIG
25773 # Extract the first word of "pkg-config", so it can be a program name with args.
25774set dummy pkg-config; ac_word=$2
25775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25776$as_echo_n "checking for $ac_word... " >&6; }
25777if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25778 $as_echo_n "(cached) " >&6
25779else
25780 case $ac_pt_PKGCONFIG in
25781 [\\/]* | ?:[\\/]*)
25782 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25783 ;;
25784 *)
25785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25786as_dummy="$PATH:/usr/bin:/usr/local/bin"
25787for as_dir in $as_dummy
25788do
25789 IFS=$as_save_IFS
25790 test -z "$as_dir" && as_dir=.
25791 for ac_exec_ext in '' $ac_executable_extensions; do
25792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25793 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25795 break 2
25796 fi
25797done
25798 done
25799IFS=$as_save_IFS
25800
25801 ;;
25802esac
25803fi
25804ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25805if test -n "$ac_pt_PKGCONFIG"; then
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25807$as_echo "$ac_pt_PKGCONFIG" >&6; }
25808else
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25810$as_echo "no" >&6; }
25811fi
25812
25813 if test "x$ac_pt_PKGCONFIG" = x; then
25814 PKGCONFIG="no"
25815 else
25816 case $cross_compiling:$ac_tool_warned in
25817yes:)
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25820ac_tool_warned=yes ;;
25821esac
25822 PKGCONFIG=$ac_pt_PKGCONFIG
25823 fi
25824else
25825 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25826fi
25827
25828 fi
25829
25830 if test "x$PKGCONFIG" != "xno"; then
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25832$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25833 itexists=`
25834 if test -n ""; then
25835 PKG_CONFIG_LIBDIR=""
25836 export PKG_CONFIG_LIBDIR
25837 fi
25838 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25839
25840 if test -z "$itexists"; then
25841 PKGCONFIG="no"
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25843$as_echo "no" >&6; }
25844 else
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25846$as_echo "found" >&6; }
25847 fi
25848 fi
25849
25850 else
25851 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25853$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25854 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25855 PKGTEST="yes"
25856 fi
25857 if test "$PKGTEST" = "yes"; then
25858
25859 if test -n "$PKG_CONFIG"; then
25860 PKGCONFIG="$PKG_CONFIG"
25861 else
25862 if test -n "$ac_tool_prefix"; then
25863 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25864set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25866$as_echo_n "checking for $ac_word... " >&6; }
25867if ${ac_cv_path_PKGCONFIG+:} false; then :
25868 $as_echo_n "(cached) " >&6
25869else
25870 case $PKGCONFIG in
25871 [\\/]* | ?:[\\/]*)
25872 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25873 ;;
25874 *)
25875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25876as_dummy="$PATH:/usr/bin:/usr/local/bin"
25877for as_dir in $as_dummy
25878do
25879 IFS=$as_save_IFS
25880 test -z "$as_dir" && as_dir=.
25881 for ac_exec_ext in '' $ac_executable_extensions; do
25882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25883 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25885 break 2
25886 fi
25887done
25888 done
25889IFS=$as_save_IFS
25890
25891 ;;
25892esac
25893fi
25894PKGCONFIG=$ac_cv_path_PKGCONFIG
25895if test -n "$PKGCONFIG"; then
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25897$as_echo "$PKGCONFIG" >&6; }
25898else
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900$as_echo "no" >&6; }
25901fi
25902
25903
25904fi
25905if test -z "$ac_cv_path_PKGCONFIG"; then
25906 ac_pt_PKGCONFIG=$PKGCONFIG
25907 # Extract the first word of "pkg-config", so it can be a program name with args.
25908set dummy pkg-config; ac_word=$2
25909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25910$as_echo_n "checking for $ac_word... " >&6; }
25911if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25912 $as_echo_n "(cached) " >&6
25913else
25914 case $ac_pt_PKGCONFIG in
25915 [\\/]* | ?:[\\/]*)
25916 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25917 ;;
25918 *)
25919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25920as_dummy="$PATH:/usr/bin:/usr/local/bin"
25921for as_dir in $as_dummy
25922do
25923 IFS=$as_save_IFS
25924 test -z "$as_dir" && as_dir=.
25925 for ac_exec_ext in '' $ac_executable_extensions; do
25926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25927 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25929 break 2
25930 fi
25931done
25932 done
25933IFS=$as_save_IFS
25934
25935 ;;
25936esac
25937fi
25938ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25939if test -n "$ac_pt_PKGCONFIG"; then
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25941$as_echo "$ac_pt_PKGCONFIG" >&6; }
25942else
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25944$as_echo "no" >&6; }
25945fi
25946
25947 if test "x$ac_pt_PKGCONFIG" = x; then
25948 PKGCONFIG="no"
25949 else
25950 case $cross_compiling:$ac_tool_warned in
25951yes:)
25952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25954ac_tool_warned=yes ;;
25955esac
25956 PKGCONFIG=$ac_pt_PKGCONFIG
25957 fi
25958else
25959 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25960fi
25961
25962 fi
25963
25964 if test "x$PKGCONFIG" != "xno"; then
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25966$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25967 itexists=`
25968 if test -n "$LIBMETALINK_PCDIR"; then
25969 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25970 export PKG_CONFIG_LIBDIR
25971 fi
25972 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25973
25974 if test -z "$itexists"; then
25975 PKGCONFIG="no"
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25977$as_echo "no" >&6; }
25978 else
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25980$as_echo "found" >&6; }
25981 fi
25982 fi
25983
25984 fi
25985 fi
25986 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25987 addlib=`
25988 if test -n "$LIBMETALINK_PCDIR"; then
25989 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25990 export PKG_CONFIG_LIBDIR
25991 fi
25992 $PKGCONFIG --libs-only-l libmetalink`
25993 addld=`
25994 if test -n "$LIBMETALINK_PCDIR"; then
25995 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25996 export PKG_CONFIG_LIBDIR
25997 fi
25998 $PKGCONFIG --libs-only-L libmetalink`
25999 addcflags=`
26000 if test -n "$LIBMETALINK_PCDIR"; then
26001 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26002 export PKG_CONFIG_LIBDIR
26003 fi
26004 $PKGCONFIG --cflags-only-I libmetalink`
26005 version=`
26006 if test -n "$LIBMETALINK_PCDIR"; then
26007 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26008 export PKG_CONFIG_LIBDIR
26009 fi
26010 $PKGCONFIG --modversion libmetalink`
26011 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26012 fi
26013 if test -n "$addlib"; then
26014
26015 clean_CPPFLAGS="$CPPFLAGS"
26016 clean_LDFLAGS="$LDFLAGS"
26017 clean_LIBS="$LIBS"
26018 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26019 LDFLAGS="$clean_LDFLAGS $addld"
26020 LIBS="$addlib $clean_LIBS"
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26022$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26024/* end confdefs.h. */
26025
26026
26027# include <metalink/metalink.h>
26028
26029int main (void)
26030{
26031
26032 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26033 return 1;
26034
26035 ;
26036 return 0;
26037}
26038
26039_ACEOF
26040if ac_fn_c_try_link "$LINENO"; then :
26041
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26043$as_echo "yes ($version)" >&6; }
26044 want_metalink="yes"
26045
26046else
26047
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26049$as_echo "no ($version)" >&6; }
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26051$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26052 want_metalink="no"
26053
26054fi
26055rm -f core conftest.err conftest.$ac_objext \
26056 conftest$ac_exeext conftest.$ac_ext
26057 CPPFLAGS="$clean_CPPFLAGS"
26058 LDFLAGS="$clean_LDFLAGS"
26059 LIBS="$clean_LIBS"
26060 if test "$want_metalink" = "yes"; then
26061
26062$as_echo "#define USE_METALINK 1" >>confdefs.h
26063
26064 LIBMETALINK_LIBS=$addlib
26065 LIBMETALINK_LDFLAGS=$addld
26066 LIBMETALINK_CPPFLAGS=$addcflags
26067
26068
26069
26070 curl_mtlnk_msg="enabled"
26071 fi
26072
26073 fi
26074fi
26075
26076
26077OPT_LIBSSH2=off
26078
26079# Check whether --with-libssh2 was given.
26080if test "${with_libssh2+set}" = set; then :
26081 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026082else
26083 OPT_LIBSSH2=no
26084fi
26085
26086
26087
26088OPT_LIBSSH=off
26089
26090# Check whether --with-libssh was given.
26091if test "${with_libssh+set}" = set; then :
26092 withval=$with_libssh; OPT_LIBSSH=$withval
26093else
26094 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026095fi
26096
26097
26098if test X"$OPT_LIBSSH2" != Xno; then
26099 CLEANLDFLAGS="$LDFLAGS"
26100 CLEANCPPFLAGS="$CPPFLAGS"
26101 CLEANLIBS="$LIBS"
26102
26103 case "$OPT_LIBSSH2" in
26104 yes)
26105
26106 if test -n "$PKG_CONFIG"; then
26107 PKGCONFIG="$PKG_CONFIG"
26108 else
26109 if test -n "$ac_tool_prefix"; then
26110 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26111set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26113$as_echo_n "checking for $ac_word... " >&6; }
26114if ${ac_cv_path_PKGCONFIG+:} false; then :
26115 $as_echo_n "(cached) " >&6
26116else
26117 case $PKGCONFIG in
26118 [\\/]* | ?:[\\/]*)
26119 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26120 ;;
26121 *)
26122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26123as_dummy="$PATH:/usr/bin:/usr/local/bin"
26124for as_dir in $as_dummy
26125do
26126 IFS=$as_save_IFS
26127 test -z "$as_dir" && as_dir=.
26128 for ac_exec_ext in '' $ac_executable_extensions; do
26129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26130 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26132 break 2
26133 fi
26134done
26135 done
26136IFS=$as_save_IFS
26137
26138 ;;
26139esac
26140fi
26141PKGCONFIG=$ac_cv_path_PKGCONFIG
26142if test -n "$PKGCONFIG"; then
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26144$as_echo "$PKGCONFIG" >&6; }
26145else
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26147$as_echo "no" >&6; }
26148fi
26149
26150
26151fi
26152if test -z "$ac_cv_path_PKGCONFIG"; then
26153 ac_pt_PKGCONFIG=$PKGCONFIG
26154 # Extract the first word of "pkg-config", so it can be a program name with args.
26155set dummy pkg-config; ac_word=$2
26156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26157$as_echo_n "checking for $ac_word... " >&6; }
26158if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26159 $as_echo_n "(cached) " >&6
26160else
26161 case $ac_pt_PKGCONFIG in
26162 [\\/]* | ?:[\\/]*)
26163 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26164 ;;
26165 *)
26166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26167as_dummy="$PATH:/usr/bin:/usr/local/bin"
26168for as_dir in $as_dummy
26169do
26170 IFS=$as_save_IFS
26171 test -z "$as_dir" && as_dir=.
26172 for ac_exec_ext in '' $ac_executable_extensions; do
26173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26174 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26176 break 2
26177 fi
26178done
26179 done
26180IFS=$as_save_IFS
26181
26182 ;;
26183esac
26184fi
26185ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26186if test -n "$ac_pt_PKGCONFIG"; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26188$as_echo "$ac_pt_PKGCONFIG" >&6; }
26189else
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26191$as_echo "no" >&6; }
26192fi
26193
26194 if test "x$ac_pt_PKGCONFIG" = x; then
26195 PKGCONFIG="no"
26196 else
26197 case $cross_compiling:$ac_tool_warned in
26198yes:)
26199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26201ac_tool_warned=yes ;;
26202esac
26203 PKGCONFIG=$ac_pt_PKGCONFIG
26204 fi
26205else
26206 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26207fi
26208
26209 fi
26210
26211 if test "x$PKGCONFIG" != "xno"; then
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26213$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26214 itexists=`
26215 if test -n ""; then
26216 PKG_CONFIG_LIBDIR=""
26217 export PKG_CONFIG_LIBDIR
26218 fi
26219 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26220
26221 if test -z "$itexists"; then
26222 PKGCONFIG="no"
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26224$as_echo "no" >&6; }
26225 else
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26227$as_echo "found" >&6; }
26228 fi
26229 fi
26230
26231
26232 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026233 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026234 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26235 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26236 version=`$PKGCONFIG --modversion libssh2`
26237 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26238 fi
26239
26240 ;;
26241 off)
26242 ;;
26243 *)
26244 PREFIX_SSH2=$OPT_LIBSSH2
26245 ;;
26246 esac
26247
26248 if test -n "$PREFIX_SSH2"; then
26249 LIB_SSH2="-lssh2"
26250 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26251 CPP_SSH2=-I${PREFIX_SSH2}/include
26252 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26253 fi
26254
26255 LDFLAGS="$LDFLAGS $LD_SSH2"
26256 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26257 LIBS="$LIB_SSH2 $LIBS"
26258
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26260$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26261if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26262 $as_echo_n "(cached) " >&6
26263else
26264 ac_check_lib_save_LIBS=$LIBS
26265LIBS="-lssh2 $LIBS"
26266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26267/* end confdefs.h. */
26268
26269
26270#ifdef __cplusplus
26271extern "C"
26272#endif
26273char libssh2_channel_open_ex ();
26274int main (void)
26275{
26276return libssh2_channel_open_ex ();
26277 ;
26278 return 0;
26279}
26280_ACEOF
26281if ac_fn_c_try_link "$LINENO"; then :
26282 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26283else
26284 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26285fi
26286rm -f core conftest.err conftest.$ac_objext \
26287 conftest$ac_exeext conftest.$ac_ext
26288LIBS=$ac_check_lib_save_LIBS
26289fi
26290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26291$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26292if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26293 cat >>confdefs.h <<_ACEOF
26294#define HAVE_LIBSSH2 1
26295_ACEOF
26296
26297 LIBS="-lssh2 $LIBS"
26298
26299fi
26300
26301
26302 for ac_header in libssh2.h
26303do :
26304 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26305if test "x$ac_cv_header_libssh2_h" = xyes; then :
26306 cat >>confdefs.h <<_ACEOF
26307#define HAVE_LIBSSH2_H 1
26308_ACEOF
26309 curl_ssh_msg="enabled (libSSH2)"
26310 LIBSSH2_ENABLED=1
26311
26312$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26313
26314 USE_LIBSSH2=1
26315
26316
26317fi
26318
26319done
26320
26321
26322 if test X"$OPT_LIBSSH2" != Xoff &&
26323 test "$LIBSSH2_ENABLED" != "1"; then
26324 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26325 fi
26326
26327 if test "$LIBSSH2_ENABLED" = "1"; then
26328 if test -n "$DIR_SSH2"; then
26329
26330 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026331 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26332 export CURL_LIBRARY_PATH
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26334$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026335 fi
26336 fi
26337 else
26338 LDFLAGS=$CLEANLDFLAGS
26339 CPPFLAGS=$CLEANCPPFLAGS
26340 LIBS=$CLEANLIBS
26341 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026342elif test X"$OPT_LIBSSH" != Xno; then
26343 CLEANLDFLAGS="$LDFLAGS"
26344 CLEANCPPFLAGS="$CPPFLAGS"
26345 CLEANLIBS="$LIBS"
26346
26347 case "$OPT_LIBSSH" in
26348 yes)
26349
26350 if test -n "$PKG_CONFIG"; then
26351 PKGCONFIG="$PKG_CONFIG"
26352 else
26353 if test -n "$ac_tool_prefix"; then
26354 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26355set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26357$as_echo_n "checking for $ac_word... " >&6; }
26358if ${ac_cv_path_PKGCONFIG+:} false; then :
26359 $as_echo_n "(cached) " >&6
26360else
26361 case $PKGCONFIG in
26362 [\\/]* | ?:[\\/]*)
26363 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26364 ;;
26365 *)
26366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367as_dummy="$PATH:/usr/bin:/usr/local/bin"
26368for as_dir in $as_dummy
26369do
26370 IFS=$as_save_IFS
26371 test -z "$as_dir" && as_dir=.
26372 for ac_exec_ext in '' $ac_executable_extensions; do
26373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26374 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26376 break 2
26377 fi
26378done
26379 done
26380IFS=$as_save_IFS
26381
26382 ;;
26383esac
26384fi
26385PKGCONFIG=$ac_cv_path_PKGCONFIG
26386if test -n "$PKGCONFIG"; then
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26388$as_echo "$PKGCONFIG" >&6; }
26389else
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26391$as_echo "no" >&6; }
26392fi
26393
26394
26395fi
26396if test -z "$ac_cv_path_PKGCONFIG"; then
26397 ac_pt_PKGCONFIG=$PKGCONFIG
26398 # Extract the first word of "pkg-config", so it can be a program name with args.
26399set dummy pkg-config; ac_word=$2
26400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26401$as_echo_n "checking for $ac_word... " >&6; }
26402if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26403 $as_echo_n "(cached) " >&6
26404else
26405 case $ac_pt_PKGCONFIG in
26406 [\\/]* | ?:[\\/]*)
26407 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26408 ;;
26409 *)
26410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26411as_dummy="$PATH:/usr/bin:/usr/local/bin"
26412for as_dir in $as_dummy
26413do
26414 IFS=$as_save_IFS
26415 test -z "$as_dir" && as_dir=.
26416 for ac_exec_ext in '' $ac_executable_extensions; do
26417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26418 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26420 break 2
26421 fi
26422done
26423 done
26424IFS=$as_save_IFS
26425
26426 ;;
26427esac
26428fi
26429ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26430if test -n "$ac_pt_PKGCONFIG"; then
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26432$as_echo "$ac_pt_PKGCONFIG" >&6; }
26433else
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26435$as_echo "no" >&6; }
26436fi
26437
26438 if test "x$ac_pt_PKGCONFIG" = x; then
26439 PKGCONFIG="no"
26440 else
26441 case $cross_compiling:$ac_tool_warned in
26442yes:)
26443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26445ac_tool_warned=yes ;;
26446esac
26447 PKGCONFIG=$ac_pt_PKGCONFIG
26448 fi
26449else
26450 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26451fi
26452
26453 fi
26454
26455 if test "x$PKGCONFIG" != "xno"; then
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26457$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26458 itexists=`
26459 if test -n ""; then
26460 PKG_CONFIG_LIBDIR=""
26461 export PKG_CONFIG_LIBDIR
26462 fi
26463 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26464
26465 if test -z "$itexists"; then
26466 PKGCONFIG="no"
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26468$as_echo "no" >&6; }
26469 else
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26471$as_echo "found" >&6; }
26472 fi
26473 fi
26474
26475
26476 if test "$PKGCONFIG" != "no" ; then
26477 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26478 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26479 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26480 version=`$PKGCONFIG --modversion libssh`
26481 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26482 fi
26483
26484 ;;
26485 off)
26486 ;;
26487 *)
26488 PREFIX_SSH=$OPT_LIBSSH
26489 ;;
26490 esac
26491
26492 if test -n "$PREFIX_SSH"; then
26493 LIB_SSH="-lssh"
26494 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26495 CPP_SSH=-I${PREFIX_SSH}/include
26496 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26497 fi
26498
26499 LDFLAGS="$LDFLAGS $LD_SSH"
26500 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26501 LIBS="$LIB_SSH $LIBS"
26502
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26504$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26505if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26506 $as_echo_n "(cached) " >&6
26507else
26508 ac_check_lib_save_LIBS=$LIBS
26509LIBS="-lssh $LIBS"
26510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511/* end confdefs.h. */
26512
26513
26514#ifdef __cplusplus
26515extern "C"
26516#endif
26517char ssh_new ();
26518int main (void)
26519{
26520return ssh_new ();
26521 ;
26522 return 0;
26523}
26524_ACEOF
26525if ac_fn_c_try_link "$LINENO"; then :
26526 ac_cv_lib_ssh_ssh_new=yes
26527else
26528 ac_cv_lib_ssh_ssh_new=no
26529fi
26530rm -f core conftest.err conftest.$ac_objext \
26531 conftest$ac_exeext conftest.$ac_ext
26532LIBS=$ac_check_lib_save_LIBS
26533fi
26534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26535$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26536if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26537 cat >>confdefs.h <<_ACEOF
26538#define HAVE_LIBSSH 1
26539_ACEOF
26540
26541 LIBS="-lssh $LIBS"
26542
26543fi
26544
26545
26546 for ac_header in libssh/libssh.h
26547do :
26548 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26549if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26550 cat >>confdefs.h <<_ACEOF
26551#define HAVE_LIBSSH_LIBSSH_H 1
26552_ACEOF
26553 curl_ssh_msg="enabled (libSSH)"
26554 LIBSSH_ENABLED=1
26555
26556$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26557
26558 USE_LIBSSH=1
26559
26560
26561fi
26562
26563done
26564
26565
26566 if test X"$OPT_LIBSSH" != Xoff &&
26567 test "$LIBSSH_ENABLED" != "1"; then
26568 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26569 fi
26570
26571 if test "$LIBSSH_ENABLED" = "1"; then
26572 if test -n "$DIR_SSH"; then
26573
26574 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026575 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26576 export CURL_LIBRARY_PATH
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26578$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026579 fi
26580 fi
26581 else
26582 LDFLAGS=$CLEANLDFLAGS
26583 CPPFLAGS=$CLEANCPPFLAGS
26584 LIBS=$CLEANLIBS
26585 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026586fi
26587
26588
26589OPT_LIBRTMP=off
26590
26591# Check whether --with-librtmp was given.
26592if test "${with_librtmp+set}" = set; then :
26593 withval=$with_librtmp; OPT_LIBRTMP=$withval
26594fi
26595
26596
26597if test X"$OPT_LIBRTMP" != Xno; then
26598 CLEANLDFLAGS="$LDFLAGS"
26599 CLEANCPPFLAGS="$CPPFLAGS"
26600 CLEANLIBS="$LIBS"
26601
26602 case "$OPT_LIBRTMP" in
26603 yes)
26604
26605 if test -n "$PKG_CONFIG"; then
26606 PKGCONFIG="$PKG_CONFIG"
26607 else
26608 if test -n "$ac_tool_prefix"; then
26609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26610set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26612$as_echo_n "checking for $ac_word... " >&6; }
26613if ${ac_cv_path_PKGCONFIG+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615else
26616 case $PKGCONFIG in
26617 [\\/]* | ?:[\\/]*)
26618 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26619 ;;
26620 *)
26621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26622as_dummy="$PATH:/usr/bin:/usr/local/bin"
26623for as_dir in $as_dummy
26624do
26625 IFS=$as_save_IFS
26626 test -z "$as_dir" && as_dir=.
26627 for ac_exec_ext in '' $ac_executable_extensions; do
26628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26629 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26631 break 2
26632 fi
26633done
26634 done
26635IFS=$as_save_IFS
26636
26637 ;;
26638esac
26639fi
26640PKGCONFIG=$ac_cv_path_PKGCONFIG
26641if test -n "$PKGCONFIG"; then
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26643$as_echo "$PKGCONFIG" >&6; }
26644else
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26646$as_echo "no" >&6; }
26647fi
26648
26649
26650fi
26651if test -z "$ac_cv_path_PKGCONFIG"; then
26652 ac_pt_PKGCONFIG=$PKGCONFIG
26653 # Extract the first word of "pkg-config", so it can be a program name with args.
26654set dummy pkg-config; ac_word=$2
26655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26656$as_echo_n "checking for $ac_word... " >&6; }
26657if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26658 $as_echo_n "(cached) " >&6
26659else
26660 case $ac_pt_PKGCONFIG in
26661 [\\/]* | ?:[\\/]*)
26662 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26663 ;;
26664 *)
26665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26666as_dummy="$PATH:/usr/bin:/usr/local/bin"
26667for as_dir in $as_dummy
26668do
26669 IFS=$as_save_IFS
26670 test -z "$as_dir" && as_dir=.
26671 for ac_exec_ext in '' $ac_executable_extensions; do
26672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26673 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26675 break 2
26676 fi
26677done
26678 done
26679IFS=$as_save_IFS
26680
26681 ;;
26682esac
26683fi
26684ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26685if test -n "$ac_pt_PKGCONFIG"; then
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26687$as_echo "$ac_pt_PKGCONFIG" >&6; }
26688else
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26690$as_echo "no" >&6; }
26691fi
26692
26693 if test "x$ac_pt_PKGCONFIG" = x; then
26694 PKGCONFIG="no"
26695 else
26696 case $cross_compiling:$ac_tool_warned in
26697yes:)
26698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26700ac_tool_warned=yes ;;
26701esac
26702 PKGCONFIG=$ac_pt_PKGCONFIG
26703 fi
26704else
26705 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26706fi
26707
26708 fi
26709
26710 if test "x$PKGCONFIG" != "xno"; then
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26712$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26713 itexists=`
26714 if test -n ""; then
26715 PKG_CONFIG_LIBDIR=""
26716 export PKG_CONFIG_LIBDIR
26717 fi
26718 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26719
26720 if test -z "$itexists"; then
26721 PKGCONFIG="no"
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26723$as_echo "no" >&6; }
26724 else
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26726$as_echo "found" >&6; }
26727 fi
26728 fi
26729
26730
26731 if test "$PKGCONFIG" != "no" ; then
26732 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26733 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26734 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26735 version=`$PKGCONFIG --modversion librtmp`
26736 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26737 else
26738 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26739 fi
26740
26741 ;;
26742 off)
26743 LIB_RTMP="-lrtmp"
26744 ;;
26745 *)
26746 LIB_RTMP="-lrtmp"
26747 PREFIX_RTMP=$OPT_LIBRTMP
26748 ;;
26749 esac
26750
26751 if test -n "$PREFIX_RTMP"; then
26752 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26753 CPP_RTMP=-I${PREFIX_RTMP}/include
26754 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26755 fi
26756
26757 LDFLAGS="$LDFLAGS $LD_RTMP"
26758 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26759 LIBS="$LIB_RTMP $LIBS"
26760
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26762$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26763if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26764 $as_echo_n "(cached) " >&6
26765else
26766 ac_check_lib_save_LIBS=$LIBS
26767LIBS="-lrtmp $LIBS"
26768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769/* end confdefs.h. */
26770
26771
26772#ifdef __cplusplus
26773extern "C"
26774#endif
26775char RTMP_Init ();
26776int main (void)
26777{
26778return RTMP_Init ();
26779 ;
26780 return 0;
26781}
26782_ACEOF
26783if ac_fn_c_try_link "$LINENO"; then :
26784 ac_cv_lib_rtmp_RTMP_Init=yes
26785else
26786 ac_cv_lib_rtmp_RTMP_Init=no
26787fi
26788rm -f core conftest.err conftest.$ac_objext \
26789 conftest$ac_exeext conftest.$ac_ext
26790LIBS=$ac_check_lib_save_LIBS
26791fi
26792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26793$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26794if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26795
26796 for ac_header in librtmp/rtmp.h
26797do :
26798 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26799if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26800 cat >>confdefs.h <<_ACEOF
26801#define HAVE_LIBRTMP_RTMP_H 1
26802_ACEOF
26803 curl_rtmp_msg="enabled (librtmp)"
26804 LIBRTMP_ENABLED=1
26805
26806$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26807
26808 USE_LIBRTMP=1
26809
26810
26811fi
26812
26813done
26814
26815
26816else
26817 LDFLAGS=$CLEANLDFLAGS
26818 CPPFLAGS=$CLEANCPPFLAGS
26819 LIBS=$CLEANLIBS
26820
26821fi
26822
26823
26824 if test X"$OPT_LIBRTMP" != Xoff &&
26825 test "$LIBRTMP_ENABLED" != "1"; then
26826 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26827 fi
26828
26829fi
26830
26831
26832versioned_symbols_flavour=
26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26834$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26835# Check whether --enable-versioned-symbols was given.
26836if test "${enable_versioned_symbols+set}" = set; then :
26837 enableval=$enable_versioned_symbols; case "$enableval" in
26838 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26839$as_echo "yes" >&6; }
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26841$as_echo_n "checking if libraries can be versioned... " >&6; }
26842 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26843 if test -z "$GLD"; then
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26845$as_echo "no" >&6; }
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26847$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26848 else
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26850$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026851 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26852 versioned_symbols_flavour="MULTISSL_"
26853 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026854 versioned_symbols_flavour="OPENSSL_"
26855 elif test "x$GNUTLS_ENABLED" = "x1"; then
26856 versioned_symbols_flavour="GNUTLS_"
26857 elif test "x$NSS_ENABLED" = "x1"; then
26858 versioned_symbols_flavour="NSS_"
26859 elif test "x$POLARSSL_ENABLED" = "x1"; then
26860 versioned_symbols_flavour="POLARSSL_"
26861 elif test "x$CYASSL_ENABLED" = "x1"; then
26862 versioned_symbols_flavour="CYASSL_"
26863 elif test "x$AXTLS_ENABLED" = "x1"; then
26864 versioned_symbols_flavour="AXTLS_"
26865 elif test "x$WINSSL_ENABLED" = "x1"; then
26866 versioned_symbols_flavour="WINSSL_"
26867 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26868 versioned_symbols_flavour="DARWINSSL_"
26869 else
26870 versioned_symbols_flavour=""
26871 fi
26872 versioned_symbols="yes"
26873 fi
26874 ;;
26875
26876 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26877$as_echo "no" >&6; }
26878 ;;
26879 esac
26880
26881else
26882
26883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26884$as_echo "no" >&6; }
26885
26886
26887fi
26888
26889
26890CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26891
26892 if test "x$versioned_symbols" = 'xyes'; then
26893 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26894 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26895else
26896 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26897 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26898fi
26899
26900
26901
26902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26903$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26904OPT_WINIDN="default"
26905
26906# Check whether --with-winidn was given.
26907if test "${with_winidn+set}" = set; then :
26908 withval=$with_winidn; OPT_WINIDN=$withval
26909fi
26910
26911case "$OPT_WINIDN" in
26912 no|default)
26913 want_winidn="no"
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26915$as_echo "no" >&6; }
26916 ;;
26917 yes)
26918 want_winidn="yes"
26919 want_winidn_path="default"
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26921$as_echo "yes" >&6; }
26922 ;;
26923 *)
26924 want_winidn="yes"
26925 want_winidn_path="$withval"
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26927$as_echo "yes ($withval)" >&6; }
26928 ;;
26929esac
26930
26931if test "$want_winidn" = "yes"; then
26932 clean_CPPFLAGS="$CPPFLAGS"
26933 clean_LDFLAGS="$LDFLAGS"
26934 clean_LIBS="$LIBS"
26935 WINIDN_LIBS="-lnormaliz"
26936 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26937 #
26938 if test "$want_winidn_path" != "default"; then
26939 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26940 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26941 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26942 fi
26943 #
26944 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26945 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26946 LIBS="$WINIDN_LIBS $LIBS"
26947 #
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26949$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951/* end confdefs.h. */
26952
26953
26954 #include <windows.h>
26955
26956int main (void)
26957{
26958
26959 IdnToUnicode(0, NULL, 0, NULL, 0);
26960
26961 ;
26962 return 0;
26963}
26964
26965_ACEOF
26966if ac_fn_c_try_link "$LINENO"; then :
26967
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26969$as_echo "yes" >&6; }
26970 tst_links_winidn="yes"
26971
26972else
26973
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26975$as_echo "no" >&6; }
26976 tst_links_winidn="no"
26977
26978fi
26979rm -f core conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
26981 #
26982 if test "$tst_links_winidn" = "yes"; then
26983
26984$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26985
26986
26987$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26988
26989 IDN_ENABLED=1
26990
26991 curl_idn_msg="enabled (Windows-native)"
26992 else
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26994$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26995 CPPFLAGS="$clean_CPPFLAGS"
26996 LDFLAGS="$clean_LDFLAGS"
26997 LIBS="$clean_LIBS"
26998 fi
26999fi
27000
27001
27002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27003$as_echo_n "checking whether to build with libidn2... " >&6; }
27004OPT_IDN="default"
27005
27006# Check whether --with-libidn2 was given.
27007if test "${with_libidn2+set}" = set; then :
27008 withval=$with_libidn2; OPT_IDN=$withval
27009fi
27010
27011case "$OPT_IDN" in
27012 no)
27013 want_idn="no"
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27015$as_echo "no" >&6; }
27016 ;;
27017 default)
27018 want_idn="yes"
27019 want_idn_path="default"
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27021$as_echo "(assumed) yes" >&6; }
27022 ;;
27023 yes)
27024 want_idn="yes"
27025 want_idn_path="default"
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027$as_echo "yes" >&6; }
27028 ;;
27029 *)
27030 want_idn="yes"
27031 want_idn_path="$withval"
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27033$as_echo "yes ($withval)" >&6; }
27034 ;;
27035esac
27036
27037if test "$want_idn" = "yes"; then
27038 clean_CPPFLAGS="$CPPFLAGS"
27039 clean_LDFLAGS="$LDFLAGS"
27040 clean_LIBS="$LIBS"
27041 PKGCONFIG="no"
27042 #
27043 if test "$want_idn_path" != "default"; then
27044 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27045
27046 if test -n "$PKG_CONFIG"; then
27047 PKGCONFIG="$PKG_CONFIG"
27048 else
27049 if test -n "$ac_tool_prefix"; then
27050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27053$as_echo_n "checking for $ac_word... " >&6; }
27054if ${ac_cv_path_PKGCONFIG+:} false; then :
27055 $as_echo_n "(cached) " >&6
27056else
27057 case $PKGCONFIG in
27058 [\\/]* | ?:[\\/]*)
27059 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27060 ;;
27061 *)
27062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27063as_dummy="$PATH:/usr/bin:/usr/local/bin"
27064for as_dir in $as_dummy
27065do
27066 IFS=$as_save_IFS
27067 test -z "$as_dir" && as_dir=.
27068 for ac_exec_ext in '' $ac_executable_extensions; do
27069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27070 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27072 break 2
27073 fi
27074done
27075 done
27076IFS=$as_save_IFS
27077
27078 ;;
27079esac
27080fi
27081PKGCONFIG=$ac_cv_path_PKGCONFIG
27082if test -n "$PKGCONFIG"; then
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27084$as_echo "$PKGCONFIG" >&6; }
27085else
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27087$as_echo "no" >&6; }
27088fi
27089
27090
27091fi
27092if test -z "$ac_cv_path_PKGCONFIG"; then
27093 ac_pt_PKGCONFIG=$PKGCONFIG
27094 # Extract the first word of "pkg-config", so it can be a program name with args.
27095set dummy pkg-config; ac_word=$2
27096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27097$as_echo_n "checking for $ac_word... " >&6; }
27098if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27099 $as_echo_n "(cached) " >&6
27100else
27101 case $ac_pt_PKGCONFIG in
27102 [\\/]* | ?:[\\/]*)
27103 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27104 ;;
27105 *)
27106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27107as_dummy="$PATH:/usr/bin:/usr/local/bin"
27108for as_dir in $as_dummy
27109do
27110 IFS=$as_save_IFS
27111 test -z "$as_dir" && as_dir=.
27112 for ac_exec_ext in '' $ac_executable_extensions; do
27113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27114 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27116 break 2
27117 fi
27118done
27119 done
27120IFS=$as_save_IFS
27121
27122 ;;
27123esac
27124fi
27125ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27126if test -n "$ac_pt_PKGCONFIG"; then
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27128$as_echo "$ac_pt_PKGCONFIG" >&6; }
27129else
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27131$as_echo "no" >&6; }
27132fi
27133
27134 if test "x$ac_pt_PKGCONFIG" = x; then
27135 PKGCONFIG="no"
27136 else
27137 case $cross_compiling:$ac_tool_warned in
27138yes:)
27139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27141ac_tool_warned=yes ;;
27142esac
27143 PKGCONFIG=$ac_pt_PKGCONFIG
27144 fi
27145else
27146 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27147fi
27148
27149 fi
27150
27151 if test "x$PKGCONFIG" != "xno"; then
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27153$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27154 itexists=`
27155 if test -n "$IDN_PCDIR"; then
27156 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27157 export PKG_CONFIG_LIBDIR
27158 fi
27159 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27160
27161 if test -z "$itexists"; then
27162 PKGCONFIG="no"
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27164$as_echo "no" >&6; }
27165 else
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27167$as_echo "found" >&6; }
27168 fi
27169 fi
27170
27171 if test "$PKGCONFIG" != "no"; then
27172 IDN_LIBS=`
27173 if test -n "$IDN_PCDIR"; then
27174 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27175 export PKG_CONFIG_LIBDIR
27176 fi
27177 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27178 IDN_LDFLAGS=`
27179 if test -n "$IDN_PCDIR"; then
27180 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27181 export PKG_CONFIG_LIBDIR
27182 fi
27183 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27184 IDN_CPPFLAGS=`
27185 if test -n "$IDN_PCDIR"; then
27186 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27187 export PKG_CONFIG_LIBDIR
27188 fi
27189 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27190 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27191 else
27192 IDN_LIBS="-lidn2"
27193 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27194 IDN_CPPFLAGS="-I$want_idn_path/include"
27195 IDN_DIR="$want_idn_path/lib$libsuff"
27196 fi
27197 else
27198
27199 if test -n "$PKG_CONFIG"; then
27200 PKGCONFIG="$PKG_CONFIG"
27201 else
27202 if test -n "$ac_tool_prefix"; then
27203 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27204set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27206$as_echo_n "checking for $ac_word... " >&6; }
27207if ${ac_cv_path_PKGCONFIG+:} false; then :
27208 $as_echo_n "(cached) " >&6
27209else
27210 case $PKGCONFIG in
27211 [\\/]* | ?:[\\/]*)
27212 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27213 ;;
27214 *)
27215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27216as_dummy="$PATH:/usr/bin:/usr/local/bin"
27217for as_dir in $as_dummy
27218do
27219 IFS=$as_save_IFS
27220 test -z "$as_dir" && as_dir=.
27221 for ac_exec_ext in '' $ac_executable_extensions; do
27222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27223 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27225 break 2
27226 fi
27227done
27228 done
27229IFS=$as_save_IFS
27230
27231 ;;
27232esac
27233fi
27234PKGCONFIG=$ac_cv_path_PKGCONFIG
27235if test -n "$PKGCONFIG"; then
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27237$as_echo "$PKGCONFIG" >&6; }
27238else
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27240$as_echo "no" >&6; }
27241fi
27242
27243
27244fi
27245if test -z "$ac_cv_path_PKGCONFIG"; then
27246 ac_pt_PKGCONFIG=$PKGCONFIG
27247 # Extract the first word of "pkg-config", so it can be a program name with args.
27248set dummy pkg-config; ac_word=$2
27249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27250$as_echo_n "checking for $ac_word... " >&6; }
27251if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27252 $as_echo_n "(cached) " >&6
27253else
27254 case $ac_pt_PKGCONFIG in
27255 [\\/]* | ?:[\\/]*)
27256 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27257 ;;
27258 *)
27259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27260as_dummy="$PATH:/usr/bin:/usr/local/bin"
27261for as_dir in $as_dummy
27262do
27263 IFS=$as_save_IFS
27264 test -z "$as_dir" && as_dir=.
27265 for ac_exec_ext in '' $ac_executable_extensions; do
27266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27267 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27269 break 2
27270 fi
27271done
27272 done
27273IFS=$as_save_IFS
27274
27275 ;;
27276esac
27277fi
27278ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27279if test -n "$ac_pt_PKGCONFIG"; then
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27281$as_echo "$ac_pt_PKGCONFIG" >&6; }
27282else
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27284$as_echo "no" >&6; }
27285fi
27286
27287 if test "x$ac_pt_PKGCONFIG" = x; then
27288 PKGCONFIG="no"
27289 else
27290 case $cross_compiling:$ac_tool_warned in
27291yes:)
27292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27294ac_tool_warned=yes ;;
27295esac
27296 PKGCONFIG=$ac_pt_PKGCONFIG
27297 fi
27298else
27299 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27300fi
27301
27302 fi
27303
27304 if test "x$PKGCONFIG" != "xno"; then
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27306$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27307 itexists=`
27308 if test -n ""; then
27309 PKG_CONFIG_LIBDIR=""
27310 export PKG_CONFIG_LIBDIR
27311 fi
27312 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27313
27314 if test -z "$itexists"; then
27315 PKGCONFIG="no"
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27317$as_echo "no" >&6; }
27318 else
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27320$as_echo "found" >&6; }
27321 fi
27322 fi
27323
27324 if test "$PKGCONFIG" != "no"; then
27325 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27326 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27327 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27328 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27329 else
27330 IDN_LIBS="-lidn2"
27331 fi
27332 fi
27333 #
27334 if test "$PKGCONFIG" != "no"; then
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27336$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27338$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27340$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27342$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27343 else
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27345$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27347$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27349$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27351$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27352 fi
27353 #
27354 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27355 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27356 LIBS="$IDN_LIBS $LIBS"
27357 #
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27359$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27361/* end confdefs.h. */
27362
27363
27364#define idn2_lookup_ul innocuous_idn2_lookup_ul
27365#ifdef __STDC__
27366# include <limits.h>
27367#else
27368# include <assert.h>
27369#endif
27370#undef idn2_lookup_ul
27371#ifdef __cplusplus
27372extern "C"
27373#endif
27374char idn2_lookup_ul ();
27375#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27376choke me
27377#endif
27378
27379int main (void)
27380{
27381return idn2_lookup_ul ();
27382 ;
27383 return 0;
27384}
27385
27386_ACEOF
27387if ac_fn_c_try_link "$LINENO"; then :
27388
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27390$as_echo "yes" >&6; }
27391 tst_links_libidn="yes"
27392
27393else
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27396$as_echo "no" >&6; }
27397 tst_links_libidn="no"
27398
27399fi
27400rm -f core conftest.err conftest.$ac_objext \
27401 conftest$ac_exeext conftest.$ac_ext
27402 #
27403 for ac_header in idn2.h
27404do :
27405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27408 cat >>confdefs.h <<_ACEOF
27409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27410_ACEOF
27411
27412fi
27413
27414done
27415
27416
27417 if test "$tst_links_libidn" = "yes"; then
27418
27419$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27420
27421
27422 IDN_ENABLED=1
27423
27424 curl_idn_msg="enabled (libidn2)"
27425 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027426 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27427 export CURL_LIBRARY_PATH
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27429$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027430 fi
27431 else
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27433$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27434 CPPFLAGS="$clean_CPPFLAGS"
27435 LDFLAGS="$clean_LDFLAGS"
27436 LIBS="$clean_LIBS"
27437 fi
27438fi
27439
27440
27441
27442
27443
27444OPT_H2="yes"
27445
27446if test "x$disable_http" = "xyes"; then
27447 # without HTTP, nghttp2 is no use
27448 OPT_H2="no"
27449fi
27450
27451
27452# Check whether --with-nghttp2 was given.
27453if test "${with_nghttp2+set}" = set; then :
27454 withval=$with_nghttp2; OPT_H2=$withval
27455fi
27456
27457case "$OPT_H2" in
27458 no)
27459 want_h2="no"
27460 ;;
27461 yes)
27462 want_h2="default"
27463 want_h2_path=""
27464 ;;
27465 *)
27466 want_h2="yes"
27467 want_h2_path="$withval/lib/pkgconfig"
27468 ;;
27469esac
27470
27471curl_h2_msg="disabled (--with-nghttp2)"
27472if test X"$want_h2" != Xno; then
27473 CLEANLDFLAGS="$LDFLAGS"
27474 CLEANCPPFLAGS="$CPPFLAGS"
27475 CLEANLIBS="$LIBS"
27476
27477
27478 if test -n "$PKG_CONFIG"; then
27479 PKGCONFIG="$PKG_CONFIG"
27480 else
27481 if test -n "$ac_tool_prefix"; then
27482 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27483set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27485$as_echo_n "checking for $ac_word... " >&6; }
27486if ${ac_cv_path_PKGCONFIG+:} false; then :
27487 $as_echo_n "(cached) " >&6
27488else
27489 case $PKGCONFIG in
27490 [\\/]* | ?:[\\/]*)
27491 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27492 ;;
27493 *)
27494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27495as_dummy="$PATH:/usr/bin:/usr/local/bin"
27496for as_dir in $as_dummy
27497do
27498 IFS=$as_save_IFS
27499 test -z "$as_dir" && as_dir=.
27500 for ac_exec_ext in '' $ac_executable_extensions; do
27501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27502 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27504 break 2
27505 fi
27506done
27507 done
27508IFS=$as_save_IFS
27509
27510 ;;
27511esac
27512fi
27513PKGCONFIG=$ac_cv_path_PKGCONFIG
27514if test -n "$PKGCONFIG"; then
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27516$as_echo "$PKGCONFIG" >&6; }
27517else
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27519$as_echo "no" >&6; }
27520fi
27521
27522
27523fi
27524if test -z "$ac_cv_path_PKGCONFIG"; then
27525 ac_pt_PKGCONFIG=$PKGCONFIG
27526 # Extract the first word of "pkg-config", so it can be a program name with args.
27527set dummy pkg-config; ac_word=$2
27528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27529$as_echo_n "checking for $ac_word... " >&6; }
27530if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27531 $as_echo_n "(cached) " >&6
27532else
27533 case $ac_pt_PKGCONFIG in
27534 [\\/]* | ?:[\\/]*)
27535 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27536 ;;
27537 *)
27538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27539as_dummy="$PATH:/usr/bin:/usr/local/bin"
27540for as_dir in $as_dummy
27541do
27542 IFS=$as_save_IFS
27543 test -z "$as_dir" && as_dir=.
27544 for ac_exec_ext in '' $ac_executable_extensions; do
27545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27546 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27548 break 2
27549 fi
27550done
27551 done
27552IFS=$as_save_IFS
27553
27554 ;;
27555esac
27556fi
27557ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27558if test -n "$ac_pt_PKGCONFIG"; then
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27560$as_echo "$ac_pt_PKGCONFIG" >&6; }
27561else
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27563$as_echo "no" >&6; }
27564fi
27565
27566 if test "x$ac_pt_PKGCONFIG" = x; then
27567 PKGCONFIG="no"
27568 else
27569 case $cross_compiling:$ac_tool_warned in
27570yes:)
27571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27573ac_tool_warned=yes ;;
27574esac
27575 PKGCONFIG=$ac_pt_PKGCONFIG
27576 fi
27577else
27578 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27579fi
27580
27581 fi
27582
27583 if test "x$PKGCONFIG" != "xno"; then
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27585$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27586 itexists=`
27587 if test -n "$want_h2_path"; then
27588 PKG_CONFIG_LIBDIR="$want_h2_path"
27589 export PKG_CONFIG_LIBDIR
27590 fi
27591 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27592
27593 if test -z "$itexists"; then
27594 PKGCONFIG="no"
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27596$as_echo "no" >&6; }
27597 else
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27599$as_echo "found" >&6; }
27600 fi
27601 fi
27602
27603
27604 if test "$PKGCONFIG" != "no" ; then
27605 LIB_H2=`
27606 if test -n "$want_h2_path"; then
27607 PKG_CONFIG_LIBDIR="$want_h2_path"
27608 export PKG_CONFIG_LIBDIR
27609 fi
27610
27611 $PKGCONFIG --libs-only-l libnghttp2`
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27613$as_echo "$as_me: -l is $LIB_H2" >&6;}
27614
27615 CPP_H2=`
27616 if test -n "$want_h2_path"; then
27617 PKG_CONFIG_LIBDIR="$want_h2_path"
27618 export PKG_CONFIG_LIBDIR
27619 fi
27620 $PKGCONFIG --cflags-only-I libnghttp2`
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27622$as_echo "$as_me: -I is $CPP_H2" >&6;}
27623
27624 LD_H2=`
27625 if test -n "$want_h2_path"; then
27626 PKG_CONFIG_LIBDIR="$want_h2_path"
27627 export PKG_CONFIG_LIBDIR
27628 fi
27629
27630 $PKGCONFIG --libs-only-L libnghttp2`
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27632$as_echo "$as_me: -L is $LD_H2" >&6;}
27633
27634 LDFLAGS="$LDFLAGS $LD_H2"
27635 CPPFLAGS="$CPPFLAGS $CPP_H2"
27636 LIBS="$LIB_H2 $LIBS"
27637
27638 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27639 # >= 1.0.0
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27641$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27642if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27643 $as_echo_n "(cached) " >&6
27644else
27645 ac_check_lib_save_LIBS=$LIBS
27646LIBS="-lnghttp2 $LIBS"
27647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27648/* end confdefs.h. */
27649
27650
27651#ifdef __cplusplus
27652extern "C"
27653#endif
27654char nghttp2_option_set_no_recv_client_magic ();
27655int main (void)
27656{
27657return nghttp2_option_set_no_recv_client_magic ();
27658 ;
27659 return 0;
27660}
27661_ACEOF
27662if ac_fn_c_try_link "$LINENO"; then :
27663 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27664else
27665 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27666fi
27667rm -f core conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext conftest.$ac_ext
27669LIBS=$ac_check_lib_save_LIBS
27670fi
27671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27672$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27673if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27674
27675 for ac_header in nghttp2/nghttp2.h
27676do :
27677 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27678if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27679 cat >>confdefs.h <<_ACEOF
27680#define HAVE_NGHTTP2_NGHTTP2_H 1
27681_ACEOF
27682 curl_h2_msg="enabled (nghttp2)"
27683 NGHTTP2_ENABLED=1
27684
27685$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27686
27687 USE_NGHTTP2=1
27688
27689
27690fi
27691
27692done
27693
27694
27695else
27696 LDFLAGS=$CLEANLDFLAGS
27697 CPPFLAGS=$CLEANCPPFLAGS
27698 LIBS=$CLEANLIBS
27699
27700fi
27701
27702
27703 else
27704 if test X"$want_h2" != Xdefault; then
27705 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27706 fi
27707 fi
27708
27709fi
27710
27711
27712OPT_ZSH_FPATH=default
27713
27714# Check whether --with-zsh-functions-dir was given.
27715if test "${with_zsh_functions_dir+set}" = set; then :
27716 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27717fi
27718
27719case "$OPT_ZSH_FPATH" in
27720 no)
27721 ;;
27722 default|yes)
27723 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27724
27725 ;;
27726 *)
27727 ZSH_FUNCTIONS_DIR="$withval"
27728
27729 ;;
27730esac
27731
27732
27733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27734$as_echo_n "checking for ANSI C header files... " >&6; }
27735if ${ac_cv_header_stdc+:} false; then :
27736 $as_echo_n "(cached) " >&6
27737else
27738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27739/* end confdefs.h. */
27740#include <stdlib.h>
27741#include <stdarg.h>
27742#include <string.h>
27743#include <float.h>
27744
27745int main (void)
27746{
27747
27748 ;
27749 return 0;
27750}
27751_ACEOF
27752if ac_fn_c_try_compile "$LINENO"; then :
27753 ac_cv_header_stdc=yes
27754else
27755 ac_cv_header_stdc=no
27756fi
27757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758
27759if test $ac_cv_header_stdc = yes; then
27760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27762/* end confdefs.h. */
27763#include <string.h>
27764
27765_ACEOF
27766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27767 $EGREP "memchr" >/dev/null 2>&1; then :
27768
27769else
27770 ac_cv_header_stdc=no
27771fi
27772rm -f conftest*
27773
27774fi
27775
27776if test $ac_cv_header_stdc = yes; then
27777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27779/* end confdefs.h. */
27780#include <stdlib.h>
27781
27782_ACEOF
27783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27784 $EGREP "free" >/dev/null 2>&1; then :
27785
27786else
27787 ac_cv_header_stdc=no
27788fi
27789rm -f conftest*
27790
27791fi
27792
27793if test $ac_cv_header_stdc = yes; then
27794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27795 if test "$cross_compiling" = yes; then :
27796 :
27797else
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799/* end confdefs.h. */
27800#include <ctype.h>
27801#include <stdlib.h>
27802#if ((' ' & 0x0FF) == 0x020)
27803# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27804# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27805#else
27806# define ISLOWER(c) \
27807 (('a' <= (c) && (c) <= 'i') \
27808 || ('j' <= (c) && (c) <= 'r') \
27809 || ('s' <= (c) && (c) <= 'z'))
27810# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27811#endif
27812
27813#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27814int
27815main ()
27816{
27817 int i;
27818 for (i = 0; i < 256; i++)
27819 if (XOR (islower (i), ISLOWER (i))
27820 || toupper (i) != TOUPPER (i))
27821 return 2;
27822 return 0;
27823}
27824_ACEOF
27825if ac_fn_c_try_run "$LINENO"; then :
27826
27827else
27828 ac_cv_header_stdc=no
27829fi
27830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27831 conftest.$ac_objext conftest.beam conftest.$ac_ext
27832fi
27833
27834fi
27835fi
27836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27837$as_echo "$ac_cv_header_stdc" >&6; }
27838if test $ac_cv_header_stdc = yes; then
27839
27840$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27841
27842fi
27843
27844
27845
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27847$as_echo_n "checking for malloc.h... " >&6; }
27848if ${curl_cv_header_malloc_h+:} false; then :
27849 $as_echo_n "(cached) " >&6
27850else
27851
27852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27853/* end confdefs.h. */
27854
27855
27856#include <malloc.h>
27857
27858int main (void)
27859{
27860
27861 void *p = malloc(10);
27862 void *q = calloc(10,10);
27863 free(p);
27864 free(q);
27865
27866 ;
27867 return 0;
27868}
27869
27870_ACEOF
27871if ac_fn_c_try_compile "$LINENO"; then :
27872
27873 curl_cv_header_malloc_h="yes"
27874
27875else
27876
27877 curl_cv_header_malloc_h="no"
27878
27879fi
27880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27881
27882fi
27883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27884$as_echo "$curl_cv_header_malloc_h" >&6; }
27885 if test "$curl_cv_header_malloc_h" = "yes"; then
27886
27887cat >>confdefs.h <<_ACEOF
27888#define HAVE_MALLOC_H 1
27889_ACEOF
27890
27891 #
27892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27893/* end confdefs.h. */
27894
27895
27896#include <stdlib.h>
27897
27898int main (void)
27899{
27900
27901 void *p = malloc(10);
27902 void *q = calloc(10,10);
27903 free(p);
27904 free(q);
27905
27906 ;
27907 return 0;
27908}
27909
27910_ACEOF
27911if ac_fn_c_try_compile "$LINENO"; then :
27912
27913 curl_cv_need_header_malloc_h="no"
27914
27915else
27916
27917 curl_cv_need_header_malloc_h="yes"
27918
27919fi
27920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 #
27922 case "$curl_cv_need_header_malloc_h" in
27923 yes)
27924
27925cat >>confdefs.h <<_ACEOF
27926#define NEED_MALLOC_H 1
27927_ACEOF
27928
27929 ;;
27930 esac
27931 fi
27932
27933
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27935$as_echo_n "checking for memory.h... " >&6; }
27936if ${curl_cv_header_memory_h+:} false; then :
27937 $as_echo_n "(cached) " >&6
27938else
27939
27940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27941/* end confdefs.h. */
27942
27943
27944#include <memory.h>
27945
27946int main (void)
27947{
27948
27949 void *p = malloc(10);
27950 void *q = calloc(10,10);
27951 free(p);
27952 free(q);
27953
27954 ;
27955 return 0;
27956}
27957
27958_ACEOF
27959if ac_fn_c_try_compile "$LINENO"; then :
27960
27961 curl_cv_header_memory_h="yes"
27962
27963else
27964
27965 curl_cv_header_memory_h="no"
27966
27967fi
27968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27969
27970fi
27971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27972$as_echo "$curl_cv_header_memory_h" >&6; }
27973 if test "$curl_cv_header_memory_h" = "yes"; then
27974
27975cat >>confdefs.h <<_ACEOF
27976#define HAVE_MEMORY_H 1
27977_ACEOF
27978
27979 #
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981/* end confdefs.h. */
27982
27983
27984#include <stdlib.h>
27985
27986int main (void)
27987{
27988
27989 void *p = malloc(10);
27990 void *q = calloc(10,10);
27991 free(p);
27992 free(q);
27993
27994 ;
27995 return 0;
27996}
27997
27998_ACEOF
27999if ac_fn_c_try_compile "$LINENO"; then :
28000
28001 curl_cv_need_header_memory_h="no"
28002
28003else
28004
28005 curl_cv_need_header_memory_h="yes"
28006
28007fi
28008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 #
28010 case "$curl_cv_need_header_memory_h" in
28011 yes)
28012
28013cat >>confdefs.h <<_ACEOF
28014#define NEED_MEMORY_H 1
28015_ACEOF
28016
28017 ;;
28018 esac
28019 fi
28020
28021
28022for ac_header in sys/types.h \
28023 sys/time.h \
28024 sys/select.h \
28025 sys/socket.h \
28026 sys/ioctl.h \
28027 sys/uio.h \
28028 assert.h \
28029 unistd.h \
28030 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028031 arpa/inet.h \
28032 net/if.h \
28033 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028034 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028035 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028036 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028037 netinet/tcp.h \
28038 netdb.h \
28039 sys/sockio.h \
28040 sys/stat.h \
28041 sys/param.h \
28042 termios.h \
28043 termio.h \
28044 sgtty.h \
28045 fcntl.h \
28046 alloca.h \
28047 time.h \
28048 io.h \
28049 pwd.h \
28050 utime.h \
28051 sys/utime.h \
28052 sys/poll.h \
28053 poll.h \
28054 socket.h \
28055 sys/resource.h \
28056 libgen.h \
28057 locale.h \
28058 errno.h \
28059 stdbool.h \
28060 arpa/tftp.h \
28061 sys/filio.h \
28062 sys/wait.h \
28063 setjmp.h
28064do :
28065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28066ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28067#ifdef HAVE_SYS_TYPES_H
28068#include <sys/types.h>
28069#endif
28070#ifdef HAVE_SYS_TIME_H
28071#include <sys/time.h>
28072#endif
28073#ifdef HAVE_SYS_SELECT_H
28074#include <sys/select.h>
28075#endif
28076#ifdef HAVE_SYS_SOCKET_H
28077#include <sys/socket.h>
28078#endif
28079#ifdef HAVE_NETINET_IN_H
28080#include <netinet/in.h>
28081#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028082#ifdef HAVE_NETINET_IN6_H
28083#include <netinet/in6.h>
28084#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028085#ifdef HAVE_SYS_UN_H
28086#include <sys/un.h>
28087#endif
28088
28089
28090"
28091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28092 cat >>confdefs.h <<_ACEOF
28093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28094_ACEOF
28095
28096fi
28097
28098done
28099
28100
28101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28102$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28103if ${ac_cv_c_const+:} false; then :
28104 $as_echo_n "(cached) " >&6
28105else
28106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107/* end confdefs.h. */
28108
28109int main (void)
28110{
28111
28112#ifndef __cplusplus
28113 /* Ultrix mips cc rejects this sort of thing. */
28114 typedef int charset[2];
28115 const charset cs = { 0, 0 };
28116 /* SunOS 4.1.1 cc rejects this. */
28117 char const *const *pcpcc;
28118 char **ppc;
28119 /* NEC SVR4.0.2 mips cc rejects this. */
28120 struct point {int x, y;};
28121 static struct point const zero = {0,0};
28122 /* AIX XL C 1.02.0.0 rejects this.
28123 It does not let you subtract one const X* pointer from another in
28124 an arm of an if-expression whose if-part is not a constant
28125 expression */
28126 const char *g = "string";
28127 pcpcc = &g + (g ? g-g : 0);
28128 /* HPUX 7.0 cc rejects these. */
28129 ++pcpcc;
28130 ppc = (char**) pcpcc;
28131 pcpcc = (char const *const *) ppc;
28132 { /* SCO 3.2v4 cc rejects this sort of thing. */
28133 char tx;
28134 char *t = &tx;
28135 char const *s = 0 ? (char *) 0 : (char const *) 0;
28136
28137 *t++ = 0;
28138 if (s) return 0;
28139 }
28140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28141 int x[] = {25, 17};
28142 const int *foo = &x[0];
28143 ++foo;
28144 }
28145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28146 typedef const int *iptr;
28147 iptr p = 0;
28148 ++p;
28149 }
28150 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28152 struct s { int j; const int *ap[3]; } bx;
28153 struct s *b = &bx; b->j = 5;
28154 }
28155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28156 const int foo = 10;
28157 if (!foo) return 0;
28158 }
28159 return !cs[0] && !zero.x;
28160#endif
28161
28162 ;
28163 return 0;
28164}
28165_ACEOF
28166if ac_fn_c_try_compile "$LINENO"; then :
28167 ac_cv_c_const=yes
28168else
28169 ac_cv_c_const=no
28170fi
28171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172fi
28173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28174$as_echo "$ac_cv_c_const" >&6; }
28175if test $ac_cv_c_const = no; then
28176
28177$as_echo "#define const /**/" >>confdefs.h
28178
28179fi
28180
28181
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28183$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28184if ${curl_cv_variadic_macros_c99+:} false; then :
28185 $as_echo_n "(cached) " >&6
28186else
28187
28188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28189/* end confdefs.h. */
28190
28191
28192#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28193#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28194 int fun3(int arg1, int arg2, int arg3);
28195 int fun2(int arg1, int arg2);
28196 int fun3(int arg1, int arg2, int arg3)
28197 { return arg1 + arg2 + arg3; }
28198 int fun2(int arg1, int arg2)
28199 { return arg1 + arg2; }
28200
28201int main (void)
28202{
28203
28204 int res3 = c99_vmacro3(1, 2, 3);
28205 int res2 = c99_vmacro2(1, 2);
28206
28207 ;
28208 return 0;
28209}
28210
28211_ACEOF
28212if ac_fn_c_try_compile "$LINENO"; then :
28213
28214 curl_cv_variadic_macros_c99="yes"
28215
28216else
28217
28218 curl_cv_variadic_macros_c99="no"
28219
28220fi
28221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28222
28223fi
28224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28225$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28226 case "$curl_cv_variadic_macros_c99" in
28227 yes)
28228
28229cat >>confdefs.h <<_ACEOF
28230#define HAVE_VARIADIC_MACROS_C99 1
28231_ACEOF
28232
28233 ;;
28234 esac
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28236$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28237if ${curl_cv_variadic_macros_gcc+:} false; then :
28238 $as_echo_n "(cached) " >&6
28239else
28240
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242/* end confdefs.h. */
28243
28244
28245#define gcc_vmacro3(first, args...) fun3(first, args)
28246#define gcc_vmacro2(first, args...) fun2(first, args)
28247 int fun3(int arg1, int arg2, int arg3);
28248 int fun2(int arg1, int arg2);
28249 int fun3(int arg1, int arg2, int arg3)
28250 { return arg1 + arg2 + arg3; }
28251 int fun2(int arg1, int arg2)
28252 { return arg1 + arg2; }
28253
28254int main (void)
28255{
28256
28257 int res3 = gcc_vmacro3(1, 2, 3);
28258 int res2 = gcc_vmacro2(1, 2);
28259
28260 ;
28261 return 0;
28262}
28263
28264_ACEOF
28265if ac_fn_c_try_compile "$LINENO"; then :
28266
28267 curl_cv_variadic_macros_gcc="yes"
28268
28269else
28270
28271 curl_cv_variadic_macros_gcc="no"
28272
28273fi
28274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28275
28276fi
28277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28278$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28279 case "$curl_cv_variadic_macros_gcc" in
28280 yes)
28281
28282cat >>confdefs.h <<_ACEOF
28283#define HAVE_VARIADIC_MACROS_GCC 1
28284_ACEOF
28285
28286 ;;
28287 esac
28288
28289ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28290if test "x$ac_cv_type_size_t" = xyes; then :
28291
28292else
28293
28294cat >>confdefs.h <<_ACEOF
28295#define size_t unsigned int
28296_ACEOF
28297
28298fi
28299
28300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28301$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28302if ${ac_cv_header_time+:} false; then :
28303 $as_echo_n "(cached) " >&6
28304else
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306/* end confdefs.h. */
28307#include <sys/types.h>
28308#include <sys/time.h>
28309#include <time.h>
28310
28311int main (void)
28312{
28313if ((struct tm *) 0)
28314return 0;
28315 ;
28316 return 0;
28317}
28318_ACEOF
28319if ac_fn_c_try_compile "$LINENO"; then :
28320 ac_cv_header_time=yes
28321else
28322 ac_cv_header_time=no
28323fi
28324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325fi
28326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28327$as_echo "$ac_cv_header_time" >&6; }
28328if test $ac_cv_header_time = yes; then
28329
28330$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28331
28332fi
28333
28334
28335 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28336do :
28337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28340 cat >>confdefs.h <<_ACEOF
28341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28342_ACEOF
28343
28344fi
28345
28346done
28347
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28349$as_echo_n "checking for struct timeval... " >&6; }
28350if ${curl_cv_struct_timeval+:} false; then :
28351 $as_echo_n "(cached) " >&6
28352else
28353
28354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28355/* end confdefs.h. */
28356
28357
28358#undef inline
28359#ifdef HAVE_WINDOWS_H
28360#ifndef WIN32_LEAN_AND_MEAN
28361#define WIN32_LEAN_AND_MEAN
28362#endif
28363#include <windows.h>
28364#ifdef HAVE_WINSOCK2_H
28365#include <winsock2.h>
28366#else
28367#ifdef HAVE_WINSOCK_H
28368#include <winsock.h>
28369#endif
28370#endif
28371#endif
28372#ifdef HAVE_SYS_TYPES_H
28373#include <sys/types.h>
28374#endif
28375#ifdef HAVE_SYS_TIME_H
28376#include <sys/time.h>
28377#ifdef TIME_WITH_SYS_TIME
28378#include <time.h>
28379#endif
28380#else
28381#ifdef HAVE_TIME_H
28382#include <time.h>
28383#endif
28384#endif
28385#ifdef HAVE_SYS_SOCKET_H
28386#include <sys/socket.h>
28387#endif
28388
28389int main (void)
28390{
28391
28392 struct timeval ts;
28393 ts.tv_sec = 0;
28394 ts.tv_usec = 0;
28395
28396 ;
28397 return 0;
28398}
28399
28400_ACEOF
28401if ac_fn_c_try_compile "$LINENO"; then :
28402
28403 curl_cv_struct_timeval="yes"
28404
28405else
28406
28407 curl_cv_struct_timeval="no"
28408
28409fi
28410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28411
28412fi
28413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28414$as_echo "$curl_cv_struct_timeval" >&6; }
28415 case "$curl_cv_struct_timeval" in
28416 yes)
28417
28418cat >>confdefs.h <<_ACEOF
28419#define HAVE_STRUCT_TIMEVAL 1
28420_ACEOF
28421
28422 ;;
28423 esac
28424
28425
28426
28427 if test "x$cross_compiling" != xyes; then
28428
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28430$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028431
28432
28433 old=$LD_LIBRARY_PATH
28434 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28435 export LD_LIBRARY_PATH
28436 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28439as_fn_error $? "cannot run test program while cross compiling
28440See \`config.log' for more details" "$LINENO" 5; }
28441else
28442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443/* end confdefs.h. */
28444
28445main()
28446{
28447 return 0;
28448}
28449
28450_ACEOF
28451if ac_fn_c_try_run "$LINENO"; then :
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28453$as_echo "fine" >&6; }
28454else
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28456$as_echo "failed" >&6; }
28457 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28458
28459fi
28460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28461 conftest.$ac_objext conftest.beam conftest.$ac_ext
28462fi
28463
Elliott Hughes72d948d2018-08-03 14:37:21 -070028464 LD_LIBRARY_PATH=$old # restore
28465
Elliott Hughes82be86d2017-09-20 17:00:17 -070028466
28467 fi
28468
28469
Elliott Hughes82be86d2017-09-20 17:00:17 -070028470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28471$as_echo_n "checking size of size_t... " >&6; }
28472if ${ac_cv_sizeof_size_t+:} false; then :
28473 $as_echo_n "(cached) " >&6
28474else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028475 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028478
Elliott Hughes72d948d2018-08-03 14:37:21 -070028479#include <sys/types.h>
28480
28481
28482int main (void)
28483{
28484switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28485 ;
28486 return 0;
28487}
28488_ACEOF
28489if ac_fn_c_try_compile "$LINENO"; then :
28490 ac_cv_sizeof_size_t=$ac_size
28491fi
28492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28493 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28494done
28495
Elliott Hughes82be86d2017-09-20 17:00:17 -070028496fi
28497
Elliott Hughes72d948d2018-08-03 14:37:21 -070028498if test x$ac_cv_sizeof_size_t = x ; then
28499 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028500fi
28501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28502$as_echo "$ac_cv_sizeof_size_t" >&6; }
28503
Elliott Hughes82be86d2017-09-20 17:00:17 -070028504cat >>confdefs.h <<_ACEOF
28505#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28506_ACEOF
28507
28508
Elliott Hughes82be86d2017-09-20 17:00:17 -070028509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28510$as_echo_n "checking size of long... " >&6; }
28511if ${ac_cv_sizeof_long+:} false; then :
28512 $as_echo_n "(cached) " >&6
28513else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028514 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28516/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028517
Elliott Hughes72d948d2018-08-03 14:37:21 -070028518#include <sys/types.h>
28519
28520
28521int main (void)
28522{
28523switch (0) case 0: case (sizeof (long) == $ac_size):;
28524 ;
28525 return 0;
28526}
28527_ACEOF
28528if ac_fn_c_try_compile "$LINENO"; then :
28529 ac_cv_sizeof_long=$ac_size
28530fi
28531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28532 if test x$ac_cv_sizeof_long != x ; then break; fi
28533done
28534
Elliott Hughes82be86d2017-09-20 17:00:17 -070028535fi
28536
Elliott Hughes72d948d2018-08-03 14:37:21 -070028537if test x$ac_cv_sizeof_long = x ; then
28538 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028539fi
28540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28541$as_echo "$ac_cv_sizeof_long" >&6; }
28542
Elliott Hughes82be86d2017-09-20 17:00:17 -070028543cat >>confdefs.h <<_ACEOF
28544#define SIZEOF_LONG $ac_cv_sizeof_long
28545_ACEOF
28546
28547
Elliott Hughes82be86d2017-09-20 17:00:17 -070028548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28549$as_echo_n "checking size of int... " >&6; }
28550if ${ac_cv_sizeof_int+:} false; then :
28551 $as_echo_n "(cached) " >&6
28552else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028553 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28555/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028556
Elliott Hughes72d948d2018-08-03 14:37:21 -070028557#include <sys/types.h>
28558
28559
28560int main (void)
28561{
28562switch (0) case 0: case (sizeof (int) == $ac_size):;
28563 ;
28564 return 0;
28565}
28566_ACEOF
28567if ac_fn_c_try_compile "$LINENO"; then :
28568 ac_cv_sizeof_int=$ac_size
28569fi
28570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28571 if test x$ac_cv_sizeof_int != x ; then break; fi
28572done
28573
Elliott Hughes82be86d2017-09-20 17:00:17 -070028574fi
28575
Elliott Hughes72d948d2018-08-03 14:37:21 -070028576if test x$ac_cv_sizeof_int = x ; then
28577 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028578fi
28579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28580$as_echo "$ac_cv_sizeof_int" >&6; }
28581
Elliott Hughes82be86d2017-09-20 17:00:17 -070028582cat >>confdefs.h <<_ACEOF
28583#define SIZEOF_INT $ac_cv_sizeof_int
28584_ACEOF
28585
28586
Elliott Hughes82be86d2017-09-20 17:00:17 -070028587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28588$as_echo_n "checking size of short... " >&6; }
28589if ${ac_cv_sizeof_short+:} false; then :
28590 $as_echo_n "(cached) " >&6
28591else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028592 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28594/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028595
Elliott Hughes72d948d2018-08-03 14:37:21 -070028596#include <sys/types.h>
28597
28598
28599int main (void)
28600{
28601switch (0) case 0: case (sizeof (short) == $ac_size):;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606if ac_fn_c_try_compile "$LINENO"; then :
28607 ac_cv_sizeof_short=$ac_size
28608fi
28609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28610 if test x$ac_cv_sizeof_short != x ; then break; fi
28611done
28612
Elliott Hughes82be86d2017-09-20 17:00:17 -070028613fi
28614
Elliott Hughes72d948d2018-08-03 14:37:21 -070028615if test x$ac_cv_sizeof_short = x ; then
28616 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028617fi
28618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28619$as_echo "$ac_cv_sizeof_short" >&6; }
28620
Elliott Hughes82be86d2017-09-20 17:00:17 -070028621cat >>confdefs.h <<_ACEOF
28622#define SIZEOF_SHORT $ac_cv_sizeof_short
28623_ACEOF
28624
28625
Elliott Hughes82be86d2017-09-20 17:00:17 -070028626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28627$as_echo_n "checking size of time_t... " >&6; }
28628if ${ac_cv_sizeof_time_t+:} false; then :
28629 $as_echo_n "(cached) " >&6
28630else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028631 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28633/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028634
Elliott Hughes72d948d2018-08-03 14:37:21 -070028635#include <sys/types.h>
28636
28637
28638int main (void)
28639{
28640switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28641 ;
28642 return 0;
28643}
28644_ACEOF
28645if ac_fn_c_try_compile "$LINENO"; then :
28646 ac_cv_sizeof_time_t=$ac_size
28647fi
28648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28650done
28651
Elliott Hughes82be86d2017-09-20 17:00:17 -070028652fi
28653
Elliott Hughes72d948d2018-08-03 14:37:21 -070028654if test x$ac_cv_sizeof_time_t = x ; then
28655 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028656fi
28657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28658$as_echo "$ac_cv_sizeof_time_t" >&6; }
28659
Elliott Hughes82be86d2017-09-20 17:00:17 -070028660cat >>confdefs.h <<_ACEOF
28661#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28662_ACEOF
28663
28664
Elliott Hughes82be86d2017-09-20 17:00:17 -070028665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28666$as_echo_n "checking size of off_t... " >&6; }
28667if ${ac_cv_sizeof_off_t+:} false; then :
28668 $as_echo_n "(cached) " >&6
28669else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028670 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28672/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028673
Elliott Hughes72d948d2018-08-03 14:37:21 -070028674#include <sys/types.h>
28675
28676
28677int main (void)
28678{
28679switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28680 ;
28681 return 0;
28682}
28683_ACEOF
28684if ac_fn_c_try_compile "$LINENO"; then :
28685 ac_cv_sizeof_off_t=$ac_size
28686fi
28687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28688 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28689done
28690
Elliott Hughes82be86d2017-09-20 17:00:17 -070028691fi
28692
Elliott Hughes72d948d2018-08-03 14:37:21 -070028693if test x$ac_cv_sizeof_off_t = x ; then
28694 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028695fi
28696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28697$as_echo "$ac_cv_sizeof_off_t" >&6; }
28698
Elliott Hughes82be86d2017-09-20 17:00:17 -070028699cat >>confdefs.h <<_ACEOF
28700#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28701_ACEOF
28702
28703
28704
Alex Deymo486467e2017-12-19 19:04:07 +010028705o=$CPPFLAGS
28706CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28708$as_echo_n "checking size of curl_off_t... " >&6; }
28709if ${ac_cv_sizeof_curl_off_t+:} false; then :
28710 $as_echo_n "(cached) " >&6
28711else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028712 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28714/* end confdefs.h. */
28715
28716#include <sys/types.h>
28717
Alex Deymo486467e2017-12-19 19:04:07 +010028718#include <curl/system.h>
28719
Alex Deymo486467e2017-12-19 19:04:07 +010028720
Elliott Hughes72d948d2018-08-03 14:37:21 -070028721int main (void)
28722{
28723switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28724 ;
28725 return 0;
28726}
28727_ACEOF
28728if ac_fn_c_try_compile "$LINENO"; then :
28729 ac_cv_sizeof_curl_off_t=$ac_size
28730fi
28731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28732 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28733done
28734
Elliott Hughes82be86d2017-09-20 17:00:17 -070028735fi
28736
Elliott Hughes72d948d2018-08-03 14:37:21 -070028737if test x$ac_cv_sizeof_curl_off_t = x ; then
28738 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028739fi
28740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28741$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28742
Alex Deymo486467e2017-12-19 19:04:07 +010028743cat >>confdefs.h <<_ACEOF
28744#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28745_ACEOF
28746
28747
28748CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028749
28750ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28751if test "x$ac_cv_type_long_long" = xyes; then :
28752
28753$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28754
28755 longlong="yes"
28756
28757fi
28758
28759
28760if test "xyes" = "x$longlong"; then
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28762$as_echo_n "checking if numberLL works... " >&6; }
28763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28764/* end confdefs.h. */
28765
28766
28767
28768int main (void)
28769{
28770
28771 long long val = 1000LL;
28772
28773 ;
28774 return 0;
28775}
28776
28777_ACEOF
28778if ac_fn_c_try_compile "$LINENO"; then :
28779
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28781$as_echo "yes" >&6; }
28782
28783$as_echo "#define HAVE_LL 1" >>confdefs.h
28784
28785
28786else
28787
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28789$as_echo "no" >&6; }
28790
28791fi
28792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793fi
28794
28795
28796# check for ssize_t
28797ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28798if test "x$ac_cv_type_ssize_t" = xyes; then :
28799
28800else
28801
28802$as_echo "#define ssize_t int" >>confdefs.h
28803
28804fi
28805
28806
28807# check for bool type
28808ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28809#ifdef HAVE_SYS_TYPES_H
28810#include <sys/types.h>
28811#endif
28812#ifdef HAVE_STDBOOL_H
28813#include <stdbool.h>
28814#endif
28815
28816"
28817if test "x$ac_cv_type_bool" = xyes; then :
28818
28819
28820$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28821
28822
28823fi
28824
28825
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028826# check for sa_family_t
28827ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28828#ifdef HAVE_SYS_SOCKET_H
28829#include <sys/socket.h>
28830#endif
28831
28832"
28833if test "x$ac_cv_type_sa_family_t" = xyes; then :
28834
28835$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28836
28837else
28838
28839 # The windows name?
28840 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28841#ifdef HAVE_SYS_SOCKET_H
28842#include <sys/socket.h>
28843#endif
28844
28845"
28846if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28847
28848$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28849
28850else
28851
28852$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28853
28854fi
28855
28856
28857fi
28858
28859
Elliott Hughescac39802018-04-27 16:19:43 -070028860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28861$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028862
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028863
28864 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028865 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28866 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028867 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28869$as_echo "no" >&6; }
28870
28871else
28872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873/* end confdefs.h. */
28874
Elliott Hughescac39802018-04-27 16:19:43 -070028875 #include <time.h>
28876 #include <limits.h>
28877 time_t t = -1;
28878 return (t > 0);
28879
28880_ACEOF
28881if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28883$as_echo "yes" >&6; }
28884
28885$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28886
28887
28888else
Elliott Hughescac39802018-04-27 16:19:43 -070028889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28890$as_echo "no" >&6; }
28891
28892fi
28893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28894 conftest.$ac_objext conftest.beam conftest.$ac_ext
28895fi
28896
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028897 LD_LIBRARY_PATH=$old # restore
28898
Elliott Hughescac39802018-04-27 16:19:43 -070028899
Elliott Hughes82be86d2017-09-20 17:00:17 -070028900
28901curl_includes_ws2tcpip="\
28902/* includes start */
28903#ifdef HAVE_WINDOWS_H
28904# ifndef WIN32_LEAN_AND_MEAN
28905# define WIN32_LEAN_AND_MEAN
28906# endif
28907# include <windows.h>
28908# ifdef HAVE_WINSOCK2_H
28909# include <winsock2.h>
28910# ifdef HAVE_WS2TCPIP_H
28911# include <ws2tcpip.h>
28912# endif
28913# endif
28914#endif
28915/* includes end */"
28916
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28918$as_echo_n "checking for windows.h... " >&6; }
28919if ${curl_cv_header_windows_h+:} false; then :
28920 $as_echo_n "(cached) " >&6
28921else
28922
28923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924/* end confdefs.h. */
28925
28926
28927#undef inline
28928#ifndef WIN32_LEAN_AND_MEAN
28929#define WIN32_LEAN_AND_MEAN
28930#endif
28931#include <windows.h>
28932
28933int main (void)
28934{
28935
28936#if defined(__CYGWIN__) || defined(__CEGCC__)
28937 HAVE_WINDOWS_H shall not be defined.
28938#else
28939 int dummy=2*WINVER;
28940#endif
28941
28942 ;
28943 return 0;
28944}
28945
28946_ACEOF
28947if ac_fn_c_try_compile "$LINENO"; then :
28948
28949 curl_cv_header_windows_h="yes"
28950
28951else
28952
28953 curl_cv_header_windows_h="no"
28954
28955fi
28956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28957
28958fi
28959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28960$as_echo "$curl_cv_header_windows_h" >&6; }
28961 case "$curl_cv_header_windows_h" in
28962 yes)
28963
28964cat >>confdefs.h <<_ACEOF
28965#define HAVE_WINDOWS_H 1
28966_ACEOF
28967
28968 ;;
28969 esac
28970
28971
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28973$as_echo_n "checking for winsock2.h... " >&6; }
28974if ${curl_cv_header_winsock2_h+:} false; then :
28975 $as_echo_n "(cached) " >&6
28976else
28977
28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979/* end confdefs.h. */
28980
28981
28982#undef inline
28983#ifndef WIN32_LEAN_AND_MEAN
28984#define WIN32_LEAN_AND_MEAN
28985#endif
28986#include <windows.h>
28987#include <winsock2.h>
28988
28989int main (void)
28990{
28991
28992#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28993 HAVE_WINSOCK2_H shall not be defined.
28994#else
28995 int dummy=2*IPPROTO_ESP;
28996#endif
28997
28998 ;
28999 return 0;
29000}
29001
29002_ACEOF
29003if ac_fn_c_try_compile "$LINENO"; then :
29004
29005 curl_cv_header_winsock2_h="yes"
29006
29007else
29008
29009 curl_cv_header_winsock2_h="no"
29010
29011fi
29012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29013
29014fi
29015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29016$as_echo "$curl_cv_header_winsock2_h" >&6; }
29017 case "$curl_cv_header_winsock2_h" in
29018 yes)
29019
29020cat >>confdefs.h <<_ACEOF
29021#define HAVE_WINSOCK2_H 1
29022_ACEOF
29023
29024 ;;
29025 esac
29026
29027
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29029$as_echo_n "checking for ws2tcpip.h... " >&6; }
29030if ${curl_cv_header_ws2tcpip_h+:} false; then :
29031 $as_echo_n "(cached) " >&6
29032else
29033
29034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29035/* end confdefs.h. */
29036
29037
29038#undef inline
29039#ifndef WIN32_LEAN_AND_MEAN
29040#define WIN32_LEAN_AND_MEAN
29041#endif
29042#include <windows.h>
29043#include <winsock2.h>
29044#include <ws2tcpip.h>
29045
29046int main (void)
29047{
29048
29049#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29050 HAVE_WS2TCPIP_H shall not be defined.
29051#else
29052 int dummy=2*IP_PKTINFO;
29053#endif
29054
29055 ;
29056 return 0;
29057}
29058
29059_ACEOF
29060if ac_fn_c_try_compile "$LINENO"; then :
29061
29062 curl_cv_header_ws2tcpip_h="yes"
29063
29064else
29065
29066 curl_cv_header_ws2tcpip_h="no"
29067
29068fi
29069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29070
29071fi
29072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29073$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29074 case "$curl_cv_header_ws2tcpip_h" in
29075 yes)
29076
29077cat >>confdefs.h <<_ACEOF
29078#define HAVE_WS2TCPIP_H 1
29079_ACEOF
29080
29081 ;;
29082 esac
29083
29084
29085
29086curl_includes_sys_socket="\
29087/* includes start */
29088#ifdef HAVE_SYS_TYPES_H
29089# include <sys/types.h>
29090#endif
29091#ifdef HAVE_SYS_SOCKET_H
29092# include <sys/socket.h>
29093#endif
29094/* includes end */"
29095 for ac_header in sys/types.h sys/socket.h
29096do :
29097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29098ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29099"
29100if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29101 cat >>confdefs.h <<_ACEOF
29102#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29103_ACEOF
29104
29105fi
29106
29107done
29108
29109
29110
29111curl_preprocess_callconv="\
29112/* preprocess start */
29113#ifdef HAVE_WINDOWS_H
29114# define FUNCALLCONV __stdcall
29115#else
29116# define FUNCALLCONV
29117#endif
29118/* preprocess end */"
29119
29120
29121 #
29122 #
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29124$as_echo_n "checking for curl_socklen_t data type... " >&6; }
29125 curl_typeof_curl_socklen_t="unknown"
29126 for arg1 in int SOCKET; do
29127 for arg2 in 'struct sockaddr' void; do
29128 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29129 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29131/* end confdefs.h. */
29132
29133
29134 $curl_includes_ws2tcpip
29135 $curl_includes_sys_socket
29136 $curl_preprocess_callconv
29137 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29138
29139int main (void)
29140{
29141
29142 $t *lenptr = 0;
29143 if(0 != getpeername(0, 0, lenptr))
29144 return 1;
29145
29146 ;
29147 return 0;
29148}
29149
29150_ACEOF
29151if ac_fn_c_try_compile "$LINENO"; then :
29152
29153 curl_typeof_curl_socklen_t="$t"
29154
29155fi
29156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29157 fi
29158 done
29159 done
29160 done
29161 for t in socklen_t int; do
29162 if test "$curl_typeof_curl_socklen_t" = "void"; then
29163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29164/* end confdefs.h. */
29165
29166
29167 $curl_includes_sys_socket
29168 typedef $t curl_socklen_t;
29169
29170int main (void)
29171{
29172
29173 curl_socklen_t dummy;
29174
29175 ;
29176 return 0;
29177}
29178
29179_ACEOF
29180if ac_fn_c_try_compile "$LINENO"; then :
29181
29182 curl_typeof_curl_socklen_t="$t"
29183
29184fi
29185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29186 fi
29187 done
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29189$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29190 if test "$curl_typeof_curl_socklen_t" = "void" ||
29191 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29192 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29193 fi
29194 #
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29196$as_echo_n "checking size of curl_socklen_t... " >&6; }
29197 curl_sizeof_curl_socklen_t="unknown"
29198 curl_pull_headers_socklen_t="unknown"
29199 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29200 tst_pull_header_checks='none ws2tcpip'
29201 tst_size_checks='4'
29202 else
29203 tst_pull_header_checks='none systypes syssocket'
29204 tst_size_checks='4 8 2'
29205 fi
29206 for tst_size in $tst_size_checks; do
29207 for tst_pull_headers in $tst_pull_header_checks; do
29208 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29209 case $tst_pull_headers in
29210 ws2tcpip)
29211 tmp_includes="$curl_includes_ws2tcpip"
29212 ;;
29213 systypes)
29214 tmp_includes="$curl_includes_sys_types"
29215 ;;
29216 syssocket)
29217 tmp_includes="$curl_includes_sys_socket"
29218 ;;
29219 *)
29220 tmp_includes=""
29221 ;;
29222 esac
29223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29224/* end confdefs.h. */
29225
29226
29227 $tmp_includes
29228 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29229 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29230
29231int main (void)
29232{
29233
29234 curl_socklen_t dummy;
29235
29236 ;
29237 return 0;
29238}
29239
29240_ACEOF
29241if ac_fn_c_try_compile "$LINENO"; then :
29242
29243 curl_sizeof_curl_socklen_t="$tst_size"
29244 curl_pull_headers_socklen_t="$tst_pull_headers"
29245
29246fi
29247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248 fi
29249 done
29250 done
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29252$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29253 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29254 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29255 fi
29256 #
29257 case $curl_pull_headers_socklen_t in
29258 ws2tcpip)
29259
29260cat >>confdefs.h <<_EOF
29261#define CURL_PULL_WS2TCPIP_H 1
29262_EOF
29263
29264 ;;
29265 systypes)
29266
29267cat >>confdefs.h <<_EOF
29268#define CURL_PULL_SYS_TYPES_H 1
29269_EOF
29270
29271 ;;
29272 syssocket)
29273
29274cat >>confdefs.h <<_EOF
29275#define CURL_PULL_SYS_TYPES_H 1
29276_EOF
29277
29278
29279cat >>confdefs.h <<_EOF
29280#define CURL_PULL_SYS_SOCKET_H 1
29281_EOF
29282
29283 ;;
29284 esac
29285
29286cat >>confdefs.h <<_EOF
29287#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29288_EOF
29289
29290
29291cat >>confdefs.h <<_EOF
29292#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29293_EOF
29294
29295
29296
29297
29298curl_includes_poll="\
29299/* includes start */
29300#ifdef HAVE_SYS_TYPES_H
29301# include <sys/types.h>
29302#endif
29303#ifdef HAVE_POLL_H
29304# include <poll.h>
29305#endif
29306#ifdef HAVE_SYS_POLL_H
29307# include <sys/poll.h>
29308#endif
29309/* includes end */"
29310 for ac_header in sys/types.h poll.h sys/poll.h
29311do :
29312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29314"
29315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29316 cat >>confdefs.h <<_ACEOF
29317#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29318_ACEOF
29319
29320fi
29321
29322done
29323
29324
29325
29326 #
29327 tst_poll_events_macro_defined="unknown"
29328 #
29329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29330/* end confdefs.h. */
29331
29332
29333 $curl_includes_poll
29334
29335int main (void)
29336{
29337
29338#if defined(events) || defined(revents)
29339 return 0;
29340#else
29341 force compilation error
29342#endif
29343
29344 ;
29345 return 0;
29346}
29347
29348_ACEOF
29349if ac_fn_c_try_compile "$LINENO"; then :
29350
29351 tst_poll_events_macro_defined="yes"
29352
29353else
29354
29355 tst_poll_events_macro_defined="no"
29356
29357fi
29358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29359 #
29360 if test "$tst_poll_events_macro_defined" = "yes"; then
29361 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29362
29363cat >>confdefs.h <<_EOF
29364#define CURL_PULL_SYS_POLL_H 1
29365_EOF
29366
29367 fi
29368 fi
29369 #
29370
29371
29372
29373 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29374#undef inline
29375#ifdef HAVE_WINDOWS_H
29376#ifndef WIN32_LEAN_AND_MEAN
29377#define WIN32_LEAN_AND_MEAN
29378#endif
29379#include <windows.h>
29380#ifdef HAVE_WINSOCK2_H
29381#include <winsock2.h>
29382#else
29383#ifdef HAVE_WINSOCK_H
29384#include <winsock.h>
29385#endif
29386#endif
29387#else
29388#ifdef HAVE_SYS_TYPES_H
29389#include <sys/types.h>
29390#endif
29391#ifdef HAVE_SYS_SOCKET_H
29392#include <sys/socket.h>
29393#endif
29394#ifdef HAVE_NETINET_IN_H
29395#include <netinet/in.h>
29396#endif
29397#ifdef HAVE_ARPA_INET_H
29398#include <arpa/inet.h>
29399#endif
29400#endif
29401
29402"
29403if test "x$ac_cv_type_in_addr_t" = xyes; then :
29404
29405else
29406
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29408$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29409if ${curl_cv_in_addr_t_equiv+:} false; then :
29410 $as_echo_n "(cached) " >&6
29411else
29412
29413 curl_cv_in_addr_t_equiv="unknown"
29414 for t in "unsigned long" int size_t unsigned long; do
29415 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29417/* end confdefs.h. */
29418
29419
29420#undef inline
29421#ifdef HAVE_WINDOWS_H
29422#ifndef WIN32_LEAN_AND_MEAN
29423#define WIN32_LEAN_AND_MEAN
29424#endif
29425#include <windows.h>
29426#ifdef HAVE_WINSOCK2_H
29427#include <winsock2.h>
29428#else
29429#ifdef HAVE_WINSOCK_H
29430#include <winsock.h>
29431#endif
29432#endif
29433#else
29434#ifdef HAVE_SYS_TYPES_H
29435#include <sys/types.h>
29436#endif
29437#ifdef HAVE_SYS_SOCKET_H
29438#include <sys/socket.h>
29439#endif
29440#ifdef HAVE_NETINET_IN_H
29441#include <netinet/in.h>
29442#endif
29443#ifdef HAVE_ARPA_INET_H
29444#include <arpa/inet.h>
29445#endif
29446#endif
29447
29448int main (void)
29449{
29450
29451 $t data = inet_addr ("1.2.3.4");
29452
29453 ;
29454 return 0;
29455}
29456
29457_ACEOF
29458if ac_fn_c_try_link "$LINENO"; then :
29459
29460 curl_cv_in_addr_t_equiv="$t"
29461
29462fi
29463rm -f core conftest.err conftest.$ac_objext \
29464 conftest$ac_exeext conftest.$ac_ext
29465 fi
29466 done
29467
29468fi
29469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29470$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29471 case "$curl_cv_in_addr_t_equiv" in
29472 unknown)
29473 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29474 ;;
29475 *)
29476
29477cat >>confdefs.h <<_ACEOF
29478#define in_addr_t $curl_cv_in_addr_t_equiv
29479_ACEOF
29480
29481 ;;
29482 esac
29483
29484fi
29485
29486
29487
29488
29489 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29490#undef inline
29491#ifdef HAVE_WINDOWS_H
29492#ifndef WIN32_LEAN_AND_MEAN
29493#define WIN32_LEAN_AND_MEAN
29494#endif
29495#include <windows.h>
29496#ifdef HAVE_WINSOCK2_H
29497#include <winsock2.h>
29498#endif
29499#else
29500#ifdef HAVE_SYS_TYPES_H
29501#include <sys/types.h>
29502#endif
29503#ifdef HAVE_SYS_SOCKET_H
29504#include <sys/socket.h>
29505#endif
29506#ifdef HAVE_NETINET_IN_H
29507#include <netinet/in.h>
29508#endif
29509#ifdef HAVE_ARPA_INET_H
29510#include <arpa/inet.h>
29511#endif
29512#endif
29513
29514"
29515if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29516
29517$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29518
29519fi
29520
29521
29522
29523
29524 for ac_header in signal.h
29525do :
29526 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29527if test "x$ac_cv_header_signal_h" = xyes; then :
29528 cat >>confdefs.h <<_ACEOF
29529#define HAVE_SIGNAL_H 1
29530_ACEOF
29531
29532fi
29533
29534done
29535
29536 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29537#ifdef HAVE_SIGNAL_H
29538#include <signal.h>
29539#endif
29540
29541"
29542if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29543
29544
29545$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29546
29547
29548fi
29549
29550 case "$ac_cv_type_sig_atomic_t" in
29551 yes)
29552 #
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29554$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29556/* end confdefs.h. */
29557
29558
29559#ifdef HAVE_SIGNAL_H
29560#include <signal.h>
29561#endif
29562
29563int main (void)
29564{
29565
29566 static volatile sig_atomic_t dummy = 0;
29567
29568 ;
29569 return 0;
29570}
29571
29572_ACEOF
29573if ac_fn_c_try_link "$LINENO"; then :
29574
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576$as_echo "no" >&6; }
29577 curl_cv_sig_atomic_t_volatile="no"
29578
29579else
29580
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29582$as_echo "yes" >&6; }
29583 curl_cv_sig_atomic_t_volatile="yes"
29584
29585fi
29586rm -f core conftest.err conftest.$ac_objext \
29587 conftest$ac_exeext conftest.$ac_ext
29588 #
29589 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29590
29591$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29592
29593 fi
29594 ;;
29595 esac
29596
29597
29598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29599$as_echo_n "checking return type of signal handlers... " >&6; }
29600if ${ac_cv_type_signal+:} false; then :
29601 $as_echo_n "(cached) " >&6
29602else
29603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29604/* end confdefs.h. */
29605#include <sys/types.h>
29606#include <signal.h>
29607
29608int main (void)
29609{
29610return *(signal (0, 0)) (0) == 1;
29611 ;
29612 return 0;
29613}
29614_ACEOF
29615if ac_fn_c_try_compile "$LINENO"; then :
29616 ac_cv_type_signal=int
29617else
29618 ac_cv_type_signal=void
29619fi
29620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29621fi
29622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29623$as_echo "$ac_cv_type_signal" >&6; }
29624
29625cat >>confdefs.h <<_ACEOF
29626#define RETSIGTYPE $ac_cv_type_signal
29627_ACEOF
29628
29629
29630
29631
29632 for ac_header in sys/select.h sys/socket.h
29633do :
29634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29635ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29637 cat >>confdefs.h <<_ACEOF
29638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29639_ACEOF
29640
29641fi
29642
29643done
29644
29645 #
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29647$as_echo_n "checking for select... " >&6; }
29648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29649/* end confdefs.h. */
29650
29651
29652#undef inline
29653#ifdef HAVE_WINDOWS_H
29654#ifndef WIN32_LEAN_AND_MEAN
29655#define WIN32_LEAN_AND_MEAN
29656#endif
29657#include <windows.h>
29658#ifdef HAVE_WINSOCK2_H
29659#include <winsock2.h>
29660#else
29661#ifdef HAVE_WINSOCK_H
29662#include <winsock.h>
29663#endif
29664#endif
29665#endif
29666#ifdef HAVE_SYS_TYPES_H
29667#include <sys/types.h>
29668#endif
29669#ifdef HAVE_SYS_TIME_H
29670#include <sys/time.h>
29671#ifdef TIME_WITH_SYS_TIME
29672#include <time.h>
29673#endif
29674#else
29675#ifdef HAVE_TIME_H
29676#include <time.h>
29677#endif
29678#endif
29679#ifndef HAVE_WINDOWS_H
29680#ifdef HAVE_SYS_SELECT_H
29681#include <sys/select.h>
29682#endif
29683#ifdef HAVE_SYS_SOCKET_H
29684#include <sys/socket.h>
29685#endif
29686#endif
29687
29688int main (void)
29689{
29690
29691 select(0, 0, 0, 0, 0);
29692
29693 ;
29694 return 0;
29695}
29696
29697_ACEOF
29698if ac_fn_c_try_link "$LINENO"; then :
29699
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29701$as_echo "yes" >&6; }
29702 curl_cv_select="yes"
29703
29704else
29705
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29707$as_echo "no" >&6; }
29708 curl_cv_select="no"
29709
29710fi
29711rm -f core conftest.err conftest.$ac_objext \
29712 conftest$ac_exeext conftest.$ac_ext
29713 #
29714 if test "$curl_cv_select" = "yes"; then
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29716$as_echo_n "checking types of args and return type for select... " >&6; }
29717if ${curl_cv_func_select_args+:} false; then :
29718 $as_echo_n "(cached) " >&6
29719else
29720
29721 curl_cv_func_select_args="unknown"
29722 for sel_retv in 'int' 'ssize_t'; do
29723 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29724 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29725 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29726 if test "$curl_cv_func_select_args" = "unknown"; then
29727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29728/* end confdefs.h. */
29729
29730
29731#undef inline
29732#ifdef HAVE_WINDOWS_H
29733#ifndef WIN32_LEAN_AND_MEAN
29734#define WIN32_LEAN_AND_MEAN
29735#endif
29736#include <windows.h>
29737#ifdef HAVE_WINSOCK2_H
29738#include <winsock2.h>
29739#else
29740#ifdef HAVE_WINSOCK_H
29741#include <winsock.h>
29742#endif
29743#endif
29744#define SELECTCALLCONV PASCAL
29745#endif
29746#ifdef HAVE_SYS_TYPES_H
29747#include <sys/types.h>
29748#endif
29749#ifdef HAVE_SYS_TIME_H
29750#include <sys/time.h>
29751#ifdef TIME_WITH_SYS_TIME
29752#include <time.h>
29753#endif
29754#else
29755#ifdef HAVE_TIME_H
29756#include <time.h>
29757#endif
29758#endif
29759#ifndef HAVE_WINDOWS_H
29760#ifdef HAVE_SYS_SELECT_H
29761#include <sys/select.h>
29762#endif
29763#ifdef HAVE_SYS_SOCKET_H
29764#include <sys/socket.h>
29765#endif
29766#define SELECTCALLCONV
29767#endif
29768#ifndef HAVE_STRUCT_TIMEVAL
29769 struct timeval {
29770 long tv_sec;
29771 long tv_usec;
29772 };
29773#endif
29774 extern $sel_retv SELECTCALLCONV
29775#ifdef __ANDROID__
29776__attribute__((overloadable))
29777#endif
29778 select($sel_arg1,
29779 $sel_arg234,
29780 $sel_arg234,
29781 $sel_arg234,
29782 $sel_arg5);
29783
29784int main (void)
29785{
29786
29787 $sel_arg1 nfds=0;
29788 $sel_arg234 rfds=0;
29789 $sel_arg234 wfds=0;
29790 $sel_arg234 efds=0;
29791 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29792
29793 ;
29794 return 0;
29795}
29796
29797_ACEOF
29798if ac_fn_c_try_compile "$LINENO"; then :
29799
29800 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29801
29802fi
29803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804 fi
29805 done
29806 done
29807 done
29808 done
29809
29810fi
29811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29812$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29813 if test "$curl_cv_func_select_args" = "unknown"; then
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29815$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29817$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29818 else
29819 select_prev_IFS=$IFS; IFS=','
29820 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29821 IFS=$select_prev_IFS
29822 shift
29823 #
29824 sel_qual_type_arg5=$3
29825 #
29826
29827cat >>confdefs.h <<_ACEOF
29828#define SELECT_TYPE_ARG1 $1
29829_ACEOF
29830
29831
29832cat >>confdefs.h <<_ACEOF
29833#define SELECT_TYPE_ARG234 $2
29834_ACEOF
29835
29836
29837cat >>confdefs.h <<_ACEOF
29838#define SELECT_TYPE_RETV $4
29839_ACEOF
29840
29841 #
29842 prev_sh_opts=$-
29843 #
29844 case $prev_sh_opts in
29845 *f*)
29846 ;;
29847 *)
29848 set -f
29849 ;;
29850 esac
29851 #
29852 case "$sel_qual_type_arg5" in
29853 const*)
29854 sel_qual_arg5=const
29855 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29856 ;;
29857 *)
29858 sel_qual_arg5=
29859 sel_type_arg5=$sel_qual_type_arg5
29860 ;;
29861 esac
29862 #
29863
29864cat >>confdefs.h <<_ACEOF
29865#define SELECT_QUAL_ARG5 $sel_qual_arg5
29866_ACEOF
29867
29868
29869cat >>confdefs.h <<_ACEOF
29870#define SELECT_TYPE_ARG5 $sel_type_arg5
29871_ACEOF
29872
29873 #
29874 case $prev_sh_opts in
29875 *f*)
29876 ;;
29877 *)
29878 set +f
29879 ;;
29880 esac
29881 #
29882
29883cat >>confdefs.h <<_ACEOF
29884#define HAVE_SELECT 1
29885_ACEOF
29886
29887 curl_cv_func_select="yes"
29888 fi
29889 fi
29890
29891
29892
29893 for ac_header in sys/types.h sys/socket.h
29894do :
29895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29898 cat >>confdefs.h <<_ACEOF
29899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29900_ACEOF
29901
29902fi
29903
29904done
29905
29906 #
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29908$as_echo_n "checking for recv... " >&6; }
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910/* end confdefs.h. */
29911
29912
29913#undef inline
29914#ifdef HAVE_WINDOWS_H
29915#ifndef WIN32_LEAN_AND_MEAN
29916#define WIN32_LEAN_AND_MEAN
29917#endif
29918#include <windows.h>
29919#ifdef HAVE_WINSOCK2_H
29920#include <winsock2.h>
29921#else
29922#ifdef HAVE_WINSOCK_H
29923#include <winsock.h>
29924#endif
29925#endif
29926#else
29927#ifdef HAVE_SYS_TYPES_H
29928#include <sys/types.h>
29929#endif
29930#ifdef HAVE_SYS_SOCKET_H
29931#include <sys/socket.h>
29932#endif
29933#endif
29934
29935int main (void)
29936{
29937
29938 recv(0, 0, 0, 0);
29939
29940 ;
29941 return 0;
29942}
29943
29944_ACEOF
29945if ac_fn_c_try_link "$LINENO"; then :
29946
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29948$as_echo "yes" >&6; }
29949 curl_cv_recv="yes"
29950
29951else
29952
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29954$as_echo "no" >&6; }
29955 curl_cv_recv="no"
29956
29957fi
29958rm -f core conftest.err conftest.$ac_objext \
29959 conftest$ac_exeext conftest.$ac_ext
29960 #
29961 if test "$curl_cv_recv" = "yes"; then
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29963$as_echo_n "checking types of args and return type for recv... " >&6; }
29964if ${curl_cv_func_recv_args+:} false; then :
29965 $as_echo_n "(cached) " >&6
29966else
29967
29968 curl_cv_func_recv_args="unknown"
29969 for recv_retv in 'int' 'ssize_t'; do
29970 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29971 for recv_arg2 in 'char *' 'void *'; do
29972 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29973 for recv_arg4 in 'int' 'unsigned int'; do
29974 if test "$curl_cv_func_recv_args" = "unknown"; then
29975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29976/* end confdefs.h. */
29977
29978
29979#undef inline
29980#ifdef HAVE_WINDOWS_H
29981#ifndef WIN32_LEAN_AND_MEAN
29982#define WIN32_LEAN_AND_MEAN
29983#endif
29984#include <windows.h>
29985#ifdef HAVE_WINSOCK2_H
29986#include <winsock2.h>
29987#else
29988#ifdef HAVE_WINSOCK_H
29989#include <winsock.h>
29990#endif
29991#endif
29992#define RECVCALLCONV PASCAL
29993#else
29994#ifdef HAVE_SYS_TYPES_H
29995#include <sys/types.h>
29996#endif
29997#ifdef HAVE_SYS_SOCKET_H
29998#include <sys/socket.h>
29999#endif
30000#define RECVCALLCONV
30001#endif
30002 extern $recv_retv RECVCALLCONV
30003#ifdef __ANDROID__
30004__attribute__((overloadable))
30005#endif
30006 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30007
30008int main (void)
30009{
30010
30011 $recv_arg1 s=0;
30012 $recv_arg2 buf=0;
30013 $recv_arg3 len=0;
30014 $recv_arg4 flags=0;
30015 $recv_retv res = recv(s, buf, len, flags);
30016
30017 ;
30018 return 0;
30019}
30020
30021_ACEOF
30022if ac_fn_c_try_compile "$LINENO"; then :
30023
30024 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30025
30026fi
30027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30028 fi
30029 done
30030 done
30031 done
30032 done
30033 done
30034
30035fi
30036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30037$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30038 if test "$curl_cv_func_recv_args" = "unknown"; then
30039 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30040 else
30041 recv_prev_IFS=$IFS; IFS=','
30042 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30043 IFS=$recv_prev_IFS
30044 shift
30045 #
30046
30047cat >>confdefs.h <<_ACEOF
30048#define RECV_TYPE_ARG1 $1
30049_ACEOF
30050
30051
30052cat >>confdefs.h <<_ACEOF
30053#define RECV_TYPE_ARG2 $2
30054_ACEOF
30055
30056
30057cat >>confdefs.h <<_ACEOF
30058#define RECV_TYPE_ARG3 $3
30059_ACEOF
30060
30061
30062cat >>confdefs.h <<_ACEOF
30063#define RECV_TYPE_ARG4 $4
30064_ACEOF
30065
30066
30067cat >>confdefs.h <<_ACEOF
30068#define RECV_TYPE_RETV $5
30069_ACEOF
30070
30071 #
30072
30073cat >>confdefs.h <<_ACEOF
30074#define HAVE_RECV 1
30075_ACEOF
30076
30077 curl_cv_func_recv="yes"
30078 fi
30079 else
30080 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30081 fi
30082
30083
30084 for ac_header in sys/types.h sys/socket.h
30085do :
30086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30087ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30088if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30089 cat >>confdefs.h <<_ACEOF
30090#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30091_ACEOF
30092
30093fi
30094
30095done
30096
30097 #
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30099$as_echo_n "checking for send... " >&6; }
30100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30101/* end confdefs.h. */
30102
30103
30104#undef inline
30105#ifdef HAVE_WINDOWS_H
30106#ifndef WIN32_LEAN_AND_MEAN
30107#define WIN32_LEAN_AND_MEAN
30108#endif
30109#include <windows.h>
30110#ifdef HAVE_WINSOCK2_H
30111#include <winsock2.h>
30112#else
30113#ifdef HAVE_WINSOCK_H
30114#include <winsock.h>
30115#endif
30116#endif
30117#else
30118#ifdef HAVE_SYS_TYPES_H
30119#include <sys/types.h>
30120#endif
30121#ifdef HAVE_SYS_SOCKET_H
30122#include <sys/socket.h>
30123#endif
30124#endif
30125
30126int main (void)
30127{
30128
30129 send(0, 0, 0, 0);
30130
30131 ;
30132 return 0;
30133}
30134
30135_ACEOF
30136if ac_fn_c_try_link "$LINENO"; then :
30137
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139$as_echo "yes" >&6; }
30140 curl_cv_send="yes"
30141
30142else
30143
30144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30145$as_echo "no" >&6; }
30146 curl_cv_send="no"
30147
30148fi
30149rm -f core conftest.err conftest.$ac_objext \
30150 conftest$ac_exeext conftest.$ac_ext
30151 #
30152 if test "$curl_cv_send" = "yes"; then
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30154$as_echo_n "checking types of args and return type for send... " >&6; }
30155if ${curl_cv_func_send_args+:} false; then :
30156 $as_echo_n "(cached) " >&6
30157else
30158
30159 curl_cv_func_send_args="unknown"
30160 for send_retv in 'int' 'ssize_t'; do
30161 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30162 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30163 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30164 for send_arg4 in 'int' 'unsigned int'; do
30165 if test "$curl_cv_func_send_args" = "unknown"; then
30166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30167/* end confdefs.h. */
30168
30169
30170#undef inline
30171#ifdef HAVE_WINDOWS_H
30172#ifndef WIN32_LEAN_AND_MEAN
30173#define WIN32_LEAN_AND_MEAN
30174#endif
30175#include <windows.h>
30176#ifdef HAVE_WINSOCK2_H
30177#include <winsock2.h>
30178#else
30179#ifdef HAVE_WINSOCK_H
30180#include <winsock.h>
30181#endif
30182#endif
30183#define SENDCALLCONV PASCAL
30184#else
30185#ifdef HAVE_SYS_TYPES_H
30186#include <sys/types.h>
30187#endif
30188#ifdef HAVE_SYS_SOCKET_H
30189#include <sys/socket.h>
30190#endif
30191#define SENDCALLCONV
30192#endif
30193 extern $send_retv SENDCALLCONV
30194#ifdef __ANDROID__
30195__attribute__((overloadable))
30196#endif
30197 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30198
30199int main (void)
30200{
30201
30202 $send_arg1 s=0;
30203 $send_arg3 len=0;
30204 $send_arg4 flags=0;
30205 $send_retv res = send(s, 0, len, flags);
30206
30207 ;
30208 return 0;
30209}
30210
30211_ACEOF
30212if ac_fn_c_try_compile "$LINENO"; then :
30213
30214 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30215
30216fi
30217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30218 fi
30219 done
30220 done
30221 done
30222 done
30223 done
30224
30225fi
30226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30227$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30228 if test "$curl_cv_func_send_args" = "unknown"; then
30229 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30230 else
30231 send_prev_IFS=$IFS; IFS=','
30232 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30233 IFS=$send_prev_IFS
30234 shift
30235 #
30236 send_qual_type_arg2=$2
30237 #
30238
30239cat >>confdefs.h <<_ACEOF
30240#define SEND_TYPE_ARG1 $1
30241_ACEOF
30242
30243
30244cat >>confdefs.h <<_ACEOF
30245#define SEND_TYPE_ARG3 $3
30246_ACEOF
30247
30248
30249cat >>confdefs.h <<_ACEOF
30250#define SEND_TYPE_ARG4 $4
30251_ACEOF
30252
30253
30254cat >>confdefs.h <<_ACEOF
30255#define SEND_TYPE_RETV $5
30256_ACEOF
30257
30258 #
30259 prev_sh_opts=$-
30260 #
30261 case $prev_sh_opts in
30262 *f*)
30263 ;;
30264 *)
30265 set -f
30266 ;;
30267 esac
30268 #
30269 case "$send_qual_type_arg2" in
30270 const*)
30271 send_qual_arg2=const
30272 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30273 ;;
30274 *)
30275 send_qual_arg2=
30276 send_type_arg2=$send_qual_type_arg2
30277 ;;
30278 esac
30279 #
30280
30281cat >>confdefs.h <<_ACEOF
30282#define SEND_QUAL_ARG2 $send_qual_arg2
30283_ACEOF
30284
30285
30286cat >>confdefs.h <<_ACEOF
30287#define SEND_TYPE_ARG2 $send_type_arg2
30288_ACEOF
30289
30290 #
30291 case $prev_sh_opts in
30292 *f*)
30293 ;;
30294 *)
30295 set +f
30296 ;;
30297 esac
30298 #
30299
30300cat >>confdefs.h <<_ACEOF
30301#define HAVE_SEND 1
30302_ACEOF
30303
30304 curl_cv_func_send="yes"
30305 fi
30306 else
30307 as_fn_error $? "Unable to link function send" "$LINENO" 5
30308 fi
30309
30310
30311 for ac_header in sys/types.h sys/socket.h
30312do :
30313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30314ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30316 cat >>confdefs.h <<_ACEOF
30317#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30318_ACEOF
30319
30320fi
30321
30322done
30323
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30325$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30326if ${curl_cv_msg_nosignal+:} false; then :
30327 $as_echo_n "(cached) " >&6
30328else
30329
30330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30331/* end confdefs.h. */
30332
30333
30334#undef inline
30335#ifdef HAVE_WINDOWS_H
30336#ifndef WIN32_LEAN_AND_MEAN
30337#define WIN32_LEAN_AND_MEAN
30338#endif
30339#include <windows.h>
30340#ifdef HAVE_WINSOCK2_H
30341#include <winsock2.h>
30342#else
30343#ifdef HAVE_WINSOCK_H
30344#include <winsock.h>
30345#endif
30346#endif
30347#else
30348#ifdef HAVE_SYS_TYPES_H
30349#include <sys/types.h>
30350#endif
30351#ifdef HAVE_SYS_SOCKET_H
30352#include <sys/socket.h>
30353#endif
30354#endif
30355
30356int main (void)
30357{
30358
30359 int flag=MSG_NOSIGNAL;
30360
30361 ;
30362 return 0;
30363}
30364
30365_ACEOF
30366if ac_fn_c_try_compile "$LINENO"; then :
30367
30368 curl_cv_msg_nosignal="yes"
30369
30370else
30371
30372 curl_cv_msg_nosignal="no"
30373
30374fi
30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30376
30377fi
30378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30379$as_echo "$curl_cv_msg_nosignal" >&6; }
30380 case "$curl_cv_msg_nosignal" in
30381 yes)
30382
30383cat >>confdefs.h <<_ACEOF
30384#define HAVE_MSG_NOSIGNAL 1
30385_ACEOF
30386
30387 ;;
30388 esac
30389
30390
30391
30392curl_includes_unistd="\
30393/* includes start */
30394#ifdef HAVE_SYS_TYPES_H
30395# include <sys/types.h>
30396#endif
30397#ifdef HAVE_UNISTD_H
30398# include <unistd.h>
30399#endif
30400/* includes end */"
30401 for ac_header in sys/types.h unistd.h
30402do :
30403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30405"
30406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30407 cat >>confdefs.h <<_ACEOF
30408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30409_ACEOF
30410
30411fi
30412
30413done
30414
30415
30416
30417 #
30418 tst_links_alarm="unknown"
30419 tst_proto_alarm="unknown"
30420 tst_compi_alarm="unknown"
30421 tst_allow_alarm="unknown"
30422 #
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30424$as_echo_n "checking if alarm can be linked... " >&6; }
30425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30426/* end confdefs.h. */
30427
30428
30429#define alarm innocuous_alarm
30430#ifdef __STDC__
30431# include <limits.h>
30432#else
30433# include <assert.h>
30434#endif
30435#undef alarm
30436#ifdef __cplusplus
30437extern "C"
30438#endif
30439char alarm ();
30440#if defined __stub_alarm || defined __stub___alarm
30441choke me
30442#endif
30443
30444int main (void)
30445{
30446return alarm ();
30447 ;
30448 return 0;
30449}
30450
30451_ACEOF
30452if ac_fn_c_try_link "$LINENO"; then :
30453
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30455$as_echo "yes" >&6; }
30456 tst_links_alarm="yes"
30457
30458else
30459
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30461$as_echo "no" >&6; }
30462 tst_links_alarm="no"
30463
30464fi
30465rm -f core conftest.err conftest.$ac_objext \
30466 conftest$ac_exeext conftest.$ac_ext
30467 #
30468 if test "$tst_links_alarm" = "yes"; then
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30470$as_echo_n "checking if alarm is prototyped... " >&6; }
30471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30472/* end confdefs.h. */
30473
30474 $curl_includes_unistd
30475
30476_ACEOF
30477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30478 $EGREP "alarm" >/dev/null 2>&1; then :
30479
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30481$as_echo "yes" >&6; }
30482 tst_proto_alarm="yes"
30483
30484else
30485
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487$as_echo "no" >&6; }
30488 tst_proto_alarm="no"
30489
30490fi
30491rm -f conftest*
30492
30493 fi
30494 #
30495 if test "$tst_proto_alarm" = "yes"; then
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30497$as_echo_n "checking if alarm is compilable... " >&6; }
30498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30499/* end confdefs.h. */
30500
30501
30502 $curl_includes_unistd
30503
30504int main (void)
30505{
30506
30507 if(0 != alarm(0))
30508 return 1;
30509
30510 ;
30511 return 0;
30512}
30513
30514_ACEOF
30515if ac_fn_c_try_compile "$LINENO"; then :
30516
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30518$as_echo "yes" >&6; }
30519 tst_compi_alarm="yes"
30520
30521else
30522
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30524$as_echo "no" >&6; }
30525 tst_compi_alarm="no"
30526
30527fi
30528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30529 fi
30530 #
30531 if test "$tst_compi_alarm" = "yes"; then
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30533$as_echo_n "checking if alarm usage allowed... " >&6; }
30534 if test "x$curl_disallow_alarm" != "xyes"; then
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30536$as_echo "yes" >&6; }
30537 tst_allow_alarm="yes"
30538 else
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30540$as_echo "no" >&6; }
30541 tst_allow_alarm="no"
30542 fi
30543 fi
30544 #
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30546$as_echo_n "checking if alarm might be used... " >&6; }
30547 if test "$tst_links_alarm" = "yes" &&
30548 test "$tst_proto_alarm" = "yes" &&
30549 test "$tst_compi_alarm" = "yes" &&
30550 test "$tst_allow_alarm" = "yes"; then
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30552$as_echo "yes" >&6; }
30553
30554cat >>confdefs.h <<_ACEOF
30555#define HAVE_ALARM 1
30556_ACEOF
30557
30558 curl_cv_func_alarm="yes"
30559 else
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561$as_echo "no" >&6; }
30562 curl_cv_func_alarm="no"
30563 fi
30564
30565
30566curl_includes_string="\
30567/* includes start */
30568#ifdef HAVE_SYS_TYPES_H
30569# include <sys/types.h>
30570#endif
30571#ifdef HAVE_STRING_H
30572# include <string.h>
30573#endif
30574#ifdef HAVE_STRINGS_H
30575# include <strings.h>
30576#endif
30577/* includes end */"
30578 for ac_header in sys/types.h string.h strings.h
30579do :
30580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30581ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30582"
30583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30584 cat >>confdefs.h <<_ACEOF
30585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30586_ACEOF
30587
30588fi
30589
30590done
30591
30592
30593
30594curl_includes_libgen="\
30595/* includes start */
30596#ifdef HAVE_SYS_TYPES_H
30597# include <sys/types.h>
30598#endif
30599#ifdef HAVE_LIBGEN_H
30600# include <libgen.h>
30601#endif
30602/* includes end */"
30603 for ac_header in sys/types.h libgen.h
30604do :
30605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30606ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30607"
30608if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30609 cat >>confdefs.h <<_ACEOF
30610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30611_ACEOF
30612
30613fi
30614
30615done
30616
30617
30618
30619 #
30620 tst_links_basename="unknown"
30621 tst_proto_basename="unknown"
30622 tst_compi_basename="unknown"
30623 tst_allow_basename="unknown"
30624 #
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30626$as_echo_n "checking if basename can be linked... " >&6; }
30627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30628/* end confdefs.h. */
30629
30630
30631#define basename innocuous_basename
30632#ifdef __STDC__
30633# include <limits.h>
30634#else
30635# include <assert.h>
30636#endif
30637#undef basename
30638#ifdef __cplusplus
30639extern "C"
30640#endif
30641char basename ();
30642#if defined __stub_basename || defined __stub___basename
30643choke me
30644#endif
30645
30646int main (void)
30647{
30648return basename ();
30649 ;
30650 return 0;
30651}
30652
30653_ACEOF
30654if ac_fn_c_try_link "$LINENO"; then :
30655
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30657$as_echo "yes" >&6; }
30658 tst_links_basename="yes"
30659
30660else
30661
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30663$as_echo "no" >&6; }
30664 tst_links_basename="no"
30665
30666fi
30667rm -f core conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
30669 #
30670 if test "$tst_links_basename" = "yes"; then
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30672$as_echo_n "checking if basename is prototyped... " >&6; }
30673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30674/* end confdefs.h. */
30675
30676 $curl_includes_string
30677 $curl_includes_libgen
30678 $curl_includes_unistd
30679
30680_ACEOF
30681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30682 $EGREP "basename" >/dev/null 2>&1; then :
30683
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30685$as_echo "yes" >&6; }
30686 tst_proto_basename="yes"
30687
30688else
30689
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30691$as_echo "no" >&6; }
30692 tst_proto_basename="no"
30693
30694fi
30695rm -f conftest*
30696
30697 fi
30698 #
30699 if test "$tst_proto_basename" = "yes"; then
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30701$as_echo_n "checking if basename is compilable... " >&6; }
30702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30703/* end confdefs.h. */
30704
30705
30706 $curl_includes_string
30707 $curl_includes_libgen
30708 $curl_includes_unistd
30709
30710int main (void)
30711{
30712
30713 if(0 != basename(0))
30714 return 1;
30715
30716 ;
30717 return 0;
30718}
30719
30720_ACEOF
30721if ac_fn_c_try_compile "$LINENO"; then :
30722
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30724$as_echo "yes" >&6; }
30725 tst_compi_basename="yes"
30726
30727else
30728
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730$as_echo "no" >&6; }
30731 tst_compi_basename="no"
30732
30733fi
30734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30735 fi
30736 #
30737 if test "$tst_compi_basename" = "yes"; then
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30739$as_echo_n "checking if basename usage allowed... " >&6; }
30740 if test "x$curl_disallow_basename" != "xyes"; then
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30742$as_echo "yes" >&6; }
30743 tst_allow_basename="yes"
30744 else
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30746$as_echo "no" >&6; }
30747 tst_allow_basename="no"
30748 fi
30749 fi
30750 #
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30752$as_echo_n "checking if basename might be used... " >&6; }
30753 if test "$tst_links_basename" = "yes" &&
30754 test "$tst_proto_basename" = "yes" &&
30755 test "$tst_compi_basename" = "yes" &&
30756 test "$tst_allow_basename" = "yes"; then
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30758$as_echo "yes" >&6; }
30759
30760cat >>confdefs.h <<_ACEOF
30761#define HAVE_BASENAME 1
30762_ACEOF
30763
30764 curl_cv_func_basename="yes"
30765 else
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30767$as_echo "no" >&6; }
30768 curl_cv_func_basename="no"
30769 fi
30770
30771
30772curl_includes_socket="\
30773/* includes start */
30774#ifdef HAVE_SYS_TYPES_H
30775# include <sys/types.h>
30776#endif
30777#ifdef HAVE_SOCKET_H
30778# include <socket.h>
30779#endif
30780/* includes end */"
30781 for ac_header in sys/types.h socket.h
30782do :
30783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30784ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30785"
30786if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30787 cat >>confdefs.h <<_ACEOF
30788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30789_ACEOF
30790
30791fi
30792
30793done
30794
30795
30796
30797 #
30798 tst_links_closesocket="unknown"
30799 tst_proto_closesocket="unknown"
30800 tst_compi_closesocket="unknown"
30801 tst_allow_closesocket="unknown"
30802 #
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30804$as_echo_n "checking if closesocket can be linked... " >&6; }
30805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30806/* end confdefs.h. */
30807
30808
30809 $curl_includes_winsock2
30810 $curl_includes_socket
30811
30812int main (void)
30813{
30814
30815 if(0 != closesocket(0))
30816 return 1;
30817
30818 ;
30819 return 0;
30820}
30821
30822_ACEOF
30823if ac_fn_c_try_link "$LINENO"; then :
30824
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30826$as_echo "yes" >&6; }
30827 tst_links_closesocket="yes"
30828
30829else
30830
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30832$as_echo "no" >&6; }
30833 tst_links_closesocket="no"
30834
30835fi
30836rm -f core conftest.err conftest.$ac_objext \
30837 conftest$ac_exeext conftest.$ac_ext
30838 #
30839 if test "$tst_links_closesocket" = "yes"; then
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30841$as_echo_n "checking if closesocket is prototyped... " >&6; }
30842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30843/* end confdefs.h. */
30844
30845 $curl_includes_winsock2
30846 $curl_includes_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="yes"
30855
30856else
30857
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859$as_echo "no" >&6; }
30860 tst_proto_closesocket="no"
30861
30862fi
30863rm -f conftest*
30864
30865 fi
30866 #
30867 if test "$tst_proto_closesocket" = "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_winsock2
30875 $curl_includes_socket
30876
30877int main (void)
30878{
30879
30880 if(0 != closesocket(0))
30881 return 1;
30882
30883 ;
30884 return 0;
30885}
30886
30887_ACEOF
30888if ac_fn_c_try_compile "$LINENO"; then :
30889
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30891$as_echo "yes" >&6; }
30892 tst_compi_closesocket="yes"
30893
30894else
30895
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30897$as_echo "no" >&6; }
30898 tst_compi_closesocket="no"
30899
30900fi
30901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30902 fi
30903 #
30904 if test "$tst_compi_closesocket" = "yes"; then
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30906$as_echo_n "checking if closesocket usage allowed... " >&6; }
30907 if test "x$curl_disallow_closesocket" != "xyes"; then
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30909$as_echo "yes" >&6; }
30910 tst_allow_closesocket="yes"
30911 else
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30913$as_echo "no" >&6; }
30914 tst_allow_closesocket="no"
30915 fi
30916 fi
30917 #
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30919$as_echo_n "checking if closesocket might be used... " >&6; }
30920 if test "$tst_links_closesocket" = "yes" &&
30921 test "$tst_proto_closesocket" = "yes" &&
30922 test "$tst_compi_closesocket" = "yes" &&
30923 test "$tst_allow_closesocket" = "yes"; then
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925$as_echo "yes" >&6; }
30926
30927cat >>confdefs.h <<_ACEOF
30928#define HAVE_CLOSESOCKET 1
30929_ACEOF
30930
30931 curl_cv_func_closesocket="yes"
30932 else
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30934$as_echo "no" >&6; }
30935 curl_cv_func_closesocket="no"
30936 fi
30937
30938
30939 #
30940 tst_links_closesocket_camel="unknown"
30941 tst_proto_closesocket_camel="unknown"
30942 tst_compi_closesocket_camel="unknown"
30943 tst_allow_closesocket_camel="unknown"
30944 #
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30946$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30948/* end confdefs.h. */
30949
30950
30951 $curl_includes_sys_socket
30952
30953int main (void)
30954{
30955
30956 if(0 != CloseSocket(0))
30957 return 1;
30958
30959 ;
30960 return 0;
30961}
30962
30963_ACEOF
30964if ac_fn_c_try_link "$LINENO"; then :
30965
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30967$as_echo "yes" >&6; }
30968 tst_links_closesocket_camel="yes"
30969
30970else
30971
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30973$as_echo "no" >&6; }
30974 tst_links_closesocket_camel="no"
30975
30976fi
30977rm -f core conftest.err conftest.$ac_objext \
30978 conftest$ac_exeext conftest.$ac_ext
30979 #
30980 if test "$tst_links_closesocket_camel" = "yes"; then
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30982$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984/* end confdefs.h. */
30985
30986 $curl_includes_sys_socket
30987
30988_ACEOF
30989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30990 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30991
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30993$as_echo "yes" >&6; }
30994 tst_proto_closesocket_camel="yes"
30995
30996else
30997
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999$as_echo "no" >&6; }
31000 tst_proto_closesocket_camel="no"
31001
31002fi
31003rm -f conftest*
31004
31005 fi
31006 #
31007 if test "$tst_proto_closesocket_camel" = "yes"; then
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31009$as_echo_n "checking if CloseSocket is compilable... " >&6; }
31010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011/* end confdefs.h. */
31012
31013
31014 $curl_includes_sys_socket
31015
31016int main (void)
31017{
31018
31019 if(0 != CloseSocket(0))
31020 return 1;
31021
31022 ;
31023 return 0;
31024}
31025
31026_ACEOF
31027if ac_fn_c_try_compile "$LINENO"; then :
31028
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31030$as_echo "yes" >&6; }
31031 tst_compi_closesocket_camel="yes"
31032
31033else
31034
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31036$as_echo "no" >&6; }
31037 tst_compi_closesocket_camel="no"
31038
31039fi
31040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31041 fi
31042 #
31043 if test "$tst_compi_closesocket_camel" = "yes"; then
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31045$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31046 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31048$as_echo "yes" >&6; }
31049 tst_allow_closesocket_camel="yes"
31050 else
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31052$as_echo "no" >&6; }
31053 tst_allow_closesocket_camel="no"
31054 fi
31055 fi
31056 #
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31058$as_echo_n "checking if CloseSocket might be used... " >&6; }
31059 if test "$tst_links_closesocket_camel" = "yes" &&
31060 test "$tst_proto_closesocket_camel" = "yes" &&
31061 test "$tst_compi_closesocket_camel" = "yes" &&
31062 test "$tst_allow_closesocket_camel" = "yes"; then
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064$as_echo "yes" >&6; }
31065
31066cat >>confdefs.h <<_ACEOF
31067#define HAVE_CLOSESOCKET_CAMEL 1
31068_ACEOF
31069
31070 curl_cv_func_closesocket_camel="yes"
31071 else
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31073$as_echo "no" >&6; }
31074 curl_cv_func_closesocket_camel="no"
31075 fi
31076
31077
31078 #
31079 tst_links_connect="unknown"
31080 tst_proto_connect="unknown"
31081 tst_compi_connect="unknown"
31082 tst_allow_connect="unknown"
31083 #
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31085$as_echo_n "checking if connect can be linked... " >&6; }
31086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31087/* end confdefs.h. */
31088
31089
31090 $curl_includes_winsock2
31091 $curl_includes_sys_socket
31092 $curl_includes_socket
31093
31094int main (void)
31095{
31096
31097 if(0 != connect(0, 0, 0))
31098 return 1;
31099
31100 ;
31101 return 0;
31102}
31103
31104_ACEOF
31105if ac_fn_c_try_link "$LINENO"; then :
31106
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31108$as_echo "yes" >&6; }
31109 tst_links_connect="yes"
31110
31111else
31112
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31114$as_echo "no" >&6; }
31115 tst_links_connect="no"
31116
31117fi
31118rm -f core conftest.err conftest.$ac_objext \
31119 conftest$ac_exeext conftest.$ac_ext
31120 #
31121 if test "$tst_links_connect" = "yes"; then
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31123$as_echo_n "checking if connect is prototyped... " >&6; }
31124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31125/* end confdefs.h. */
31126
31127 $curl_includes_winsock2
31128 $curl_includes_sys_socket
31129 $curl_includes_socket
31130
31131_ACEOF
31132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31133 $EGREP "connect" >/dev/null 2>&1; then :
31134
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31136$as_echo "yes" >&6; }
31137 tst_proto_connect="yes"
31138
31139else
31140
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142$as_echo "no" >&6; }
31143 tst_proto_connect="no"
31144
31145fi
31146rm -f conftest*
31147
31148 fi
31149 #
31150 if test "$tst_proto_connect" = "yes"; then
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31152$as_echo_n "checking if connect is compilable... " >&6; }
31153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31154/* end confdefs.h. */
31155
31156
31157 $curl_includes_winsock2
31158 $curl_includes_sys_socket
31159 $curl_includes_socket
31160
31161int main (void)
31162{
31163
31164 if(0 != connect(0, 0, 0))
31165 return 1;
31166
31167 ;
31168 return 0;
31169}
31170
31171_ACEOF
31172if ac_fn_c_try_compile "$LINENO"; then :
31173
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31175$as_echo "yes" >&6; }
31176 tst_compi_connect="yes"
31177
31178else
31179
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181$as_echo "no" >&6; }
31182 tst_compi_connect="no"
31183
31184fi
31185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31186 fi
31187 #
31188 if test "$tst_compi_connect" = "yes"; then
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31190$as_echo_n "checking if connect usage allowed... " >&6; }
31191 if test "x$curl_disallow_connect" != "xyes"; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31193$as_echo "yes" >&6; }
31194 tst_allow_connect="yes"
31195 else
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197$as_echo "no" >&6; }
31198 tst_allow_connect="no"
31199 fi
31200 fi
31201 #
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31203$as_echo_n "checking if connect might be used... " >&6; }
31204 if test "$tst_links_connect" = "yes" &&
31205 test "$tst_proto_connect" = "yes" &&
31206 test "$tst_compi_connect" = "yes" &&
31207 test "$tst_allow_connect" = "yes"; then
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209$as_echo "yes" >&6; }
31210
31211cat >>confdefs.h <<_ACEOF
31212#define HAVE_CONNECT 1
31213_ACEOF
31214
31215 curl_cv_func_connect="yes"
31216 else
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31218$as_echo "no" >&6; }
31219 curl_cv_func_connect="no"
31220 fi
31221
31222
31223curl_includes_fcntl="\
31224/* includes start */
31225#ifdef HAVE_SYS_TYPES_H
31226# include <sys/types.h>
31227#endif
31228#ifdef HAVE_UNISTD_H
31229# include <unistd.h>
31230#endif
31231#ifdef HAVE_FCNTL_H
31232# include <fcntl.h>
31233#endif
31234/* includes end */"
31235 for ac_header in sys/types.h unistd.h fcntl.h
31236do :
31237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31239"
31240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31241 cat >>confdefs.h <<_ACEOF
31242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31243_ACEOF
31244
31245fi
31246
31247done
31248
31249
31250
31251 #
31252 tst_links_fcntl="unknown"
31253 tst_proto_fcntl="unknown"
31254 tst_compi_fcntl="unknown"
31255 tst_allow_fcntl="unknown"
31256 #
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31258$as_echo_n "checking if fcntl can be linked... " >&6; }
31259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31260/* end confdefs.h. */
31261
31262
31263#define fcntl innocuous_fcntl
31264#ifdef __STDC__
31265# include <limits.h>
31266#else
31267# include <assert.h>
31268#endif
31269#undef fcntl
31270#ifdef __cplusplus
31271extern "C"
31272#endif
31273char fcntl ();
31274#if defined __stub_fcntl || defined __stub___fcntl
31275choke me
31276#endif
31277
31278int main (void)
31279{
31280return fcntl ();
31281 ;
31282 return 0;
31283}
31284
31285_ACEOF
31286if ac_fn_c_try_link "$LINENO"; then :
31287
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31289$as_echo "yes" >&6; }
31290 tst_links_fcntl="yes"
31291
31292else
31293
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31295$as_echo "no" >&6; }
31296 tst_links_fcntl="no"
31297
31298fi
31299rm -f core conftest.err conftest.$ac_objext \
31300 conftest$ac_exeext conftest.$ac_ext
31301 #
31302 if test "$tst_links_fcntl" = "yes"; then
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31304$as_echo_n "checking if fcntl is prototyped... " >&6; }
31305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31306/* end confdefs.h. */
31307
31308 $curl_includes_fcntl
31309
31310_ACEOF
31311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31312 $EGREP "fcntl" >/dev/null 2>&1; then :
31313
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31315$as_echo "yes" >&6; }
31316 tst_proto_fcntl="yes"
31317
31318else
31319
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31321$as_echo "no" >&6; }
31322 tst_proto_fcntl="no"
31323
31324fi
31325rm -f conftest*
31326
31327 fi
31328 #
31329 if test "$tst_proto_fcntl" = "yes"; then
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31331$as_echo_n "checking if fcntl is compilable... " >&6; }
31332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333/* end confdefs.h. */
31334
31335
31336 $curl_includes_fcntl
31337
31338int main (void)
31339{
31340
31341 if(0 != fcntl(0, 0, 0))
31342 return 1;
31343
31344 ;
31345 return 0;
31346}
31347
31348_ACEOF
31349if ac_fn_c_try_compile "$LINENO"; then :
31350
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31352$as_echo "yes" >&6; }
31353 tst_compi_fcntl="yes"
31354
31355else
31356
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31358$as_echo "no" >&6; }
31359 tst_compi_fcntl="no"
31360
31361fi
31362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31363 fi
31364 #
31365 if test "$tst_compi_fcntl" = "yes"; then
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31367$as_echo_n "checking if fcntl usage allowed... " >&6; }
31368 if test "x$curl_disallow_fcntl" != "xyes"; then
31369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31370$as_echo "yes" >&6; }
31371 tst_allow_fcntl="yes"
31372 else
31373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31374$as_echo "no" >&6; }
31375 tst_allow_fcntl="no"
31376 fi
31377 fi
31378 #
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31380$as_echo_n "checking if fcntl might be used... " >&6; }
31381 if test "$tst_links_fcntl" = "yes" &&
31382 test "$tst_proto_fcntl" = "yes" &&
31383 test "$tst_compi_fcntl" = "yes" &&
31384 test "$tst_allow_fcntl" = "yes"; then
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31386$as_echo "yes" >&6; }
31387
31388cat >>confdefs.h <<_ACEOF
31389#define HAVE_FCNTL 1
31390_ACEOF
31391
31392 curl_cv_func_fcntl="yes"
31393
31394 #
31395 tst_compi_fcntl_o_nonblock="unknown"
31396 tst_allow_fcntl_o_nonblock="unknown"
31397 #
31398 case $host_os in
31399 sunos4* | aix3* | beos*)
31400 curl_disallow_fcntl_o_nonblock="yes"
31401 ;;
31402 esac
31403 #
31404 if test "$curl_cv_func_fcntl" = "yes"; then
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31406$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31408/* end confdefs.h. */
31409
31410
31411 $curl_includes_fcntl
31412
31413int main (void)
31414{
31415
31416 int flags = 0;
31417 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31418 return 1;
31419
31420 ;
31421 return 0;
31422}
31423
31424_ACEOF
31425if ac_fn_c_try_compile "$LINENO"; then :
31426
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31428$as_echo "yes" >&6; }
31429 tst_compi_fcntl_o_nonblock="yes"
31430
31431else
31432
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31434$as_echo "no" >&6; }
31435 tst_compi_fcntl_o_nonblock="no"
31436
31437fi
31438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31439 fi
31440 #
31441 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31443$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31444 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31446$as_echo "yes" >&6; }
31447 tst_allow_fcntl_o_nonblock="yes"
31448 else
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31450$as_echo "no" >&6; }
31451 tst_allow_fcntl_o_nonblock="no"
31452 fi
31453 fi
31454 #
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31456$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31457 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31458 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31460$as_echo "yes" >&6; }
31461
31462cat >>confdefs.h <<_ACEOF
31463#define HAVE_FCNTL_O_NONBLOCK 1
31464_ACEOF
31465
31466 curl_cv_func_fcntl_o_nonblock="yes"
31467 else
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31469$as_echo "no" >&6; }
31470 curl_cv_func_fcntl_o_nonblock="no"
31471 fi
31472
31473 else
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31475$as_echo "no" >&6; }
31476 curl_cv_func_fcntl="no"
31477 fi
31478
31479
31480curl_includes_stdio="\
31481/* includes start */
31482#ifdef HAVE_SYS_TYPES_H
31483# include <sys/types.h>
31484#endif
31485#ifdef HAVE_STDIO_H
31486# include <stdio.h>
31487#endif
31488/* includes end */"
31489 for ac_header in sys/types.h stdio.h
31490do :
31491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31492ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31493"
31494if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31495 cat >>confdefs.h <<_ACEOF
31496#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31497_ACEOF
31498
31499fi
31500
31501done
31502
31503
31504
31505 #
31506 tst_links_fdopen="unknown"
31507 tst_proto_fdopen="unknown"
31508 tst_compi_fdopen="unknown"
31509 tst_allow_fdopen="unknown"
31510 #
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31512$as_echo_n "checking if fdopen can be linked... " >&6; }
31513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31514/* end confdefs.h. */
31515
31516
31517#define fdopen innocuous_fdopen
31518#ifdef __STDC__
31519# include <limits.h>
31520#else
31521# include <assert.h>
31522#endif
31523#undef fdopen
31524#ifdef __cplusplus
31525extern "C"
31526#endif
31527char fdopen ();
31528#if defined __stub_fdopen || defined __stub___fdopen
31529choke me
31530#endif
31531
31532int main (void)
31533{
31534return fdopen ();
31535 ;
31536 return 0;
31537}
31538
31539_ACEOF
31540if ac_fn_c_try_link "$LINENO"; then :
31541
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31543$as_echo "yes" >&6; }
31544 tst_links_fdopen="yes"
31545
31546else
31547
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31549$as_echo "no" >&6; }
31550 tst_links_fdopen="no"
31551
31552fi
31553rm -f core conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31555 #
31556 if test "$tst_links_fdopen" = "yes"; then
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31558$as_echo_n "checking if fdopen is prototyped... " >&6; }
31559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31560/* end confdefs.h. */
31561
31562 $curl_includes_stdio
31563
31564_ACEOF
31565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31566 $EGREP "fdopen" >/dev/null 2>&1; then :
31567
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31569$as_echo "yes" >&6; }
31570 tst_proto_fdopen="yes"
31571
31572else
31573
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31575$as_echo "no" >&6; }
31576 tst_proto_fdopen="no"
31577
31578fi
31579rm -f conftest*
31580
31581 fi
31582 #
31583 if test "$tst_proto_fdopen" = "yes"; then
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31585$as_echo_n "checking if fdopen is compilable... " >&6; }
31586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31587/* end confdefs.h. */
31588
31589
31590 $curl_includes_stdio
31591
31592int main (void)
31593{
31594
31595 if(0 != fdopen(0, 0))
31596 return 1;
31597
31598 ;
31599 return 0;
31600}
31601
31602_ACEOF
31603if ac_fn_c_try_compile "$LINENO"; then :
31604
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31606$as_echo "yes" >&6; }
31607 tst_compi_fdopen="yes"
31608
31609else
31610
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31612$as_echo "no" >&6; }
31613 tst_compi_fdopen="no"
31614
31615fi
31616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31617 fi
31618 #
31619 if test "$tst_compi_fdopen" = "yes"; then
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31621$as_echo_n "checking if fdopen usage allowed... " >&6; }
31622 if test "x$curl_disallow_fdopen" != "xyes"; then
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31624$as_echo "yes" >&6; }
31625 tst_allow_fdopen="yes"
31626 else
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31628$as_echo "no" >&6; }
31629 tst_allow_fdopen="no"
31630 fi
31631 fi
31632 #
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31634$as_echo_n "checking if fdopen might be used... " >&6; }
31635 if test "$tst_links_fdopen" = "yes" &&
31636 test "$tst_proto_fdopen" = "yes" &&
31637 test "$tst_compi_fdopen" = "yes" &&
31638 test "$tst_allow_fdopen" = "yes"; then
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31640$as_echo "yes" >&6; }
31641
31642cat >>confdefs.h <<_ACEOF
31643#define HAVE_FDOPEN 1
31644_ACEOF
31645
31646 curl_cv_func_fdopen="yes"
31647 else
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31649$as_echo "no" >&6; }
31650 curl_cv_func_fdopen="no"
31651 fi
31652
31653
31654curl_includes_netdb="\
31655/* includes start */
31656#ifdef HAVE_SYS_TYPES_H
31657# include <sys/types.h>
31658#endif
31659#ifdef HAVE_NETDB_H
31660# include <netdb.h>
31661#endif
31662/* includes end */"
31663 for ac_header in sys/types.h netdb.h
31664do :
31665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31666ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31667"
31668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31669 cat >>confdefs.h <<_ACEOF
31670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31671_ACEOF
31672
31673fi
31674
31675done
31676
31677
31678
31679 #
31680 tst_links_freeaddrinfo="unknown"
31681 tst_proto_freeaddrinfo="unknown"
31682 tst_compi_freeaddrinfo="unknown"
31683 tst_allow_freeaddrinfo="unknown"
31684 #
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31686$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688/* end confdefs.h. */
31689
31690
31691 $curl_includes_ws2tcpip
31692 $curl_includes_sys_socket
31693 $curl_includes_netdb
31694
31695int main (void)
31696{
31697
31698 freeaddrinfo(0);
31699
31700 ;
31701 return 0;
31702}
31703
31704_ACEOF
31705if ac_fn_c_try_link "$LINENO"; then :
31706
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31708$as_echo "yes" >&6; }
31709 tst_links_freeaddrinfo="yes"
31710
31711else
31712
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714$as_echo "no" >&6; }
31715 tst_links_freeaddrinfo="no"
31716
31717fi
31718rm -f core conftest.err conftest.$ac_objext \
31719 conftest$ac_exeext conftest.$ac_ext
31720 #
31721 if test "$tst_links_freeaddrinfo" = "yes"; then
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31723$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31725/* end confdefs.h. */
31726
31727 $curl_includes_ws2tcpip
31728 $curl_includes_sys_socket
31729 $curl_includes_netdb
31730
31731_ACEOF
31732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31733 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31734
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31736$as_echo "yes" >&6; }
31737 tst_proto_freeaddrinfo="yes"
31738
31739else
31740
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31742$as_echo "no" >&6; }
31743 tst_proto_freeaddrinfo="no"
31744
31745fi
31746rm -f conftest*
31747
31748 fi
31749 #
31750 if test "$tst_proto_freeaddrinfo" = "yes"; then
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31752$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31754/* end confdefs.h. */
31755
31756
31757 $curl_includes_ws2tcpip
31758 $curl_includes_sys_socket
31759 $curl_includes_netdb
31760
31761int main (void)
31762{
31763
31764 freeaddrinfo(0);
31765
31766 ;
31767 return 0;
31768}
31769
31770_ACEOF
31771if ac_fn_c_try_compile "$LINENO"; then :
31772
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31774$as_echo "yes" >&6; }
31775 tst_compi_freeaddrinfo="yes"
31776
31777else
31778
31779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31780$as_echo "no" >&6; }
31781 tst_compi_freeaddrinfo="no"
31782
31783fi
31784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31785 fi
31786 #
31787 if test "$tst_compi_freeaddrinfo" = "yes"; then
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31789$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31790 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31792$as_echo "yes" >&6; }
31793 tst_allow_freeaddrinfo="yes"
31794 else
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31796$as_echo "no" >&6; }
31797 tst_allow_freeaddrinfo="no"
31798 fi
31799 fi
31800 #
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31802$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31803 if test "$tst_links_freeaddrinfo" = "yes" &&
31804 test "$tst_proto_freeaddrinfo" = "yes" &&
31805 test "$tst_compi_freeaddrinfo" = "yes" &&
31806 test "$tst_allow_freeaddrinfo" = "yes"; then
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31808$as_echo "yes" >&6; }
31809
31810cat >>confdefs.h <<_ACEOF
31811#define HAVE_FREEADDRINFO 1
31812_ACEOF
31813
31814 curl_cv_func_freeaddrinfo="yes"
31815 else
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31817$as_echo "no" >&6; }
31818 curl_cv_func_freeaddrinfo="no"
31819 fi
31820
31821
31822curl_includes_ifaddrs="\
31823/* includes start */
31824#ifdef HAVE_SYS_TYPES_H
31825# include <sys/types.h>
31826#endif
31827#ifdef HAVE_SYS_SOCKET_H
31828# include <sys/socket.h>
31829#endif
31830#ifdef HAVE_NETINET_IN_H
31831# include <netinet/in.h>
31832#endif
31833#ifdef HAVE_IFADDRS_H
31834# include <ifaddrs.h>
31835#endif
31836/* includes end */"
31837 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31838do :
31839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31840ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31841"
31842if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31843 cat >>confdefs.h <<_ACEOF
31844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31845_ACEOF
31846
31847fi
31848
31849done
31850
31851
31852
31853 #
31854 tst_links_freeifaddrs="unknown"
31855 tst_proto_freeifaddrs="unknown"
31856 tst_compi_freeifaddrs="unknown"
31857 tst_allow_freeifaddrs="unknown"
31858 #
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31860$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31862/* end confdefs.h. */
31863
31864
31865#define freeifaddrs innocuous_freeifaddrs
31866#ifdef __STDC__
31867# include <limits.h>
31868#else
31869# include <assert.h>
31870#endif
31871#undef freeifaddrs
31872#ifdef __cplusplus
31873extern "C"
31874#endif
31875char freeifaddrs ();
31876#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31877choke me
31878#endif
31879
31880int main (void)
31881{
31882return freeifaddrs ();
31883 ;
31884 return 0;
31885}
31886
31887_ACEOF
31888if ac_fn_c_try_link "$LINENO"; then :
31889
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31891$as_echo "yes" >&6; }
31892 tst_links_freeifaddrs="yes"
31893
31894else
31895
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897$as_echo "no" >&6; }
31898 tst_links_freeifaddrs="no"
31899
31900fi
31901rm -f core conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
31903 #
31904 if test "$tst_links_freeifaddrs" = "yes"; then
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31906$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31908/* end confdefs.h. */
31909
31910 $curl_includes_ifaddrs
31911
31912_ACEOF
31913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31914 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31915
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31917$as_echo "yes" >&6; }
31918 tst_proto_freeifaddrs="yes"
31919
31920else
31921
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31923$as_echo "no" >&6; }
31924 tst_proto_freeifaddrs="no"
31925
31926fi
31927rm -f conftest*
31928
31929 fi
31930 #
31931 if test "$tst_proto_freeifaddrs" = "yes"; then
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31933$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31935/* end confdefs.h. */
31936
31937
31938 $curl_includes_ifaddrs
31939
31940int main (void)
31941{
31942
31943 freeifaddrs(0);
31944
31945 ;
31946 return 0;
31947}
31948
31949_ACEOF
31950if ac_fn_c_try_compile "$LINENO"; then :
31951
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31953$as_echo "yes" >&6; }
31954 tst_compi_freeifaddrs="yes"
31955
31956else
31957
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31959$as_echo "no" >&6; }
31960 tst_compi_freeifaddrs="no"
31961
31962fi
31963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964 fi
31965 #
31966 if test "$tst_compi_freeifaddrs" = "yes"; then
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31968$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31969 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31971$as_echo "yes" >&6; }
31972 tst_allow_freeifaddrs="yes"
31973 else
31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31975$as_echo "no" >&6; }
31976 tst_allow_freeifaddrs="no"
31977 fi
31978 fi
31979 #
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31981$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31982 if test "$tst_links_freeifaddrs" = "yes" &&
31983 test "$tst_proto_freeifaddrs" = "yes" &&
31984 test "$tst_compi_freeifaddrs" = "yes" &&
31985 test "$tst_allow_freeifaddrs" = "yes"; then
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31987$as_echo "yes" >&6; }
31988
31989cat >>confdefs.h <<_ACEOF
31990#define HAVE_FREEIFADDRS 1
31991_ACEOF
31992
31993 curl_cv_func_freeifaddrs="yes"
31994 else
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996$as_echo "no" >&6; }
31997 curl_cv_func_freeifaddrs="no"
31998 fi
31999
32000
32001curl_includes_sys_xattr="\
32002/* includes start */
32003#ifdef HAVE_SYS_TYPES_H
32004# include <sys/types.h>
32005#endif
32006#ifdef HAVE_SYS_XATTR_H
32007# include <sys/xattr.h>
32008#endif
32009/* includes end */"
32010 for ac_header in sys/types.h sys/xattr.h
32011do :
32012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32013ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32014"
32015if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32016 cat >>confdefs.h <<_ACEOF
32017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32018_ACEOF
32019
32020fi
32021
32022done
32023
32024
32025
32026 #
32027 tst_links_fsetxattr="unknown"
32028 tst_proto_fsetxattr="unknown"
32029 tst_compi_fsetxattr="unknown"
32030 tst_allow_fsetxattr="unknown"
32031 tst_nargs_fsetxattr="unknown"
32032 #
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32034$as_echo_n "checking if fsetxattr can be linked... " >&6; }
32035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32036/* end confdefs.h. */
32037
32038
32039#define fsetxattr innocuous_fsetxattr
32040#ifdef __STDC__
32041# include <limits.h>
32042#else
32043# include <assert.h>
32044#endif
32045#undef fsetxattr
32046#ifdef __cplusplus
32047extern "C"
32048#endif
32049char fsetxattr ();
32050#if defined __stub_fsetxattr || defined __stub___fsetxattr
32051choke me
32052#endif
32053
32054int main (void)
32055{
32056return fsetxattr ();
32057 ;
32058 return 0;
32059}
32060
32061_ACEOF
32062if ac_fn_c_try_link "$LINENO"; then :
32063
32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32065$as_echo "yes" >&6; }
32066 tst_links_fsetxattr="yes"
32067
32068else
32069
32070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32071$as_echo "no" >&6; }
32072 tst_links_fsetxattr="no"
32073
32074fi
32075rm -f core conftest.err conftest.$ac_objext \
32076 conftest$ac_exeext conftest.$ac_ext
32077 #
32078 if test "$tst_links_fsetxattr" = "yes"; then
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32080$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32082/* end confdefs.h. */
32083
32084 $curl_includes_sys_xattr
32085
32086_ACEOF
32087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32088 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32089
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091$as_echo "yes" >&6; }
32092 tst_proto_fsetxattr="yes"
32093
32094else
32095
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32097$as_echo "no" >&6; }
32098 tst_proto_fsetxattr="no"
32099
32100fi
32101rm -f conftest*
32102
32103 fi
32104 #
32105 if test "$tst_proto_fsetxattr" = "yes"; then
32106 if test "$tst_nargs_fsetxattr" = "unknown"; then
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32108$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32110/* end confdefs.h. */
32111
32112
32113 $curl_includes_sys_xattr
32114
32115int main (void)
32116{
32117
32118 if(0 != fsetxattr(0, 0, 0, 0, 0))
32119 return 1;
32120
32121 ;
32122 return 0;
32123}
32124
32125_ACEOF
32126if ac_fn_c_try_compile "$LINENO"; then :
32127
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32129$as_echo "yes" >&6; }
32130 tst_compi_fsetxattr="yes"
32131 tst_nargs_fsetxattr="5"
32132
32133else
32134
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32136$as_echo "no" >&6; }
32137 tst_compi_fsetxattr="no"
32138
32139fi
32140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32141 fi
32142 if test "$tst_nargs_fsetxattr" = "unknown"; then
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32144$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32146/* end confdefs.h. */
32147
32148
32149 $curl_includes_sys_xattr
32150
32151int main (void)
32152{
32153
32154 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32155 return 1;
32156
32157 ;
32158 return 0;
32159}
32160
32161_ACEOF
32162if ac_fn_c_try_compile "$LINENO"; then :
32163
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32165$as_echo "yes" >&6; }
32166 tst_compi_fsetxattr="yes"
32167 tst_nargs_fsetxattr="6"
32168
32169else
32170
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32172$as_echo "no" >&6; }
32173 tst_compi_fsetxattr="no"
32174
32175fi
32176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 fi
32178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32179$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32180 if test "$tst_compi_fsetxattr" = "yes"; then
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32182$as_echo "yes" >&6; }
32183 else
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32185$as_echo "no" >&6; }
32186 fi
32187 fi
32188 #
32189 if test "$tst_compi_fsetxattr" = "yes"; then
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32191$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32192 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32194$as_echo "yes" >&6; }
32195 tst_allow_fsetxattr="yes"
32196 else
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32198$as_echo "no" >&6; }
32199 tst_allow_fsetxattr="no"
32200 fi
32201 fi
32202 #
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32204$as_echo_n "checking if fsetxattr might be used... " >&6; }
32205 if test "$tst_links_fsetxattr" = "yes" &&
32206 test "$tst_proto_fsetxattr" = "yes" &&
32207 test "$tst_compi_fsetxattr" = "yes" &&
32208 test "$tst_allow_fsetxattr" = "yes"; then
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32210$as_echo "yes" >&6; }
32211
32212cat >>confdefs.h <<_ACEOF
32213#define HAVE_FSETXATTR 1
32214_ACEOF
32215
32216 #
32217 if test "$tst_nargs_fsetxattr" -eq "5"; then
32218
32219$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32220
32221 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32222
32223$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32224
32225 fi
32226 #
32227 curl_cv_func_fsetxattr="yes"
32228 else
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32230$as_echo "no" >&6; }
32231 curl_cv_func_fsetxattr="no"
32232 fi
32233
32234
32235 #
32236 tst_links_ftruncate="unknown"
32237 tst_proto_ftruncate="unknown"
32238 tst_compi_ftruncate="unknown"
32239 tst_allow_ftruncate="unknown"
32240 #
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32242$as_echo_n "checking if ftruncate can be linked... " >&6; }
32243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32244/* end confdefs.h. */
32245
32246
32247#define ftruncate innocuous_ftruncate
32248#ifdef __STDC__
32249# include <limits.h>
32250#else
32251# include <assert.h>
32252#endif
32253#undef ftruncate
32254#ifdef __cplusplus
32255extern "C"
32256#endif
32257char ftruncate ();
32258#if defined __stub_ftruncate || defined __stub___ftruncate
32259choke me
32260#endif
32261
32262int main (void)
32263{
32264return ftruncate ();
32265 ;
32266 return 0;
32267}
32268
32269_ACEOF
32270if ac_fn_c_try_link "$LINENO"; then :
32271
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32273$as_echo "yes" >&6; }
32274 tst_links_ftruncate="yes"
32275
32276else
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32279$as_echo "no" >&6; }
32280 tst_links_ftruncate="no"
32281
32282fi
32283rm -f core conftest.err conftest.$ac_objext \
32284 conftest$ac_exeext conftest.$ac_ext
32285 #
32286 if test "$tst_links_ftruncate" = "yes"; then
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32288$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32290/* end confdefs.h. */
32291
32292 $curl_includes_unistd
32293
32294_ACEOF
32295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32296 $EGREP "ftruncate" >/dev/null 2>&1; then :
32297
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32299$as_echo "yes" >&6; }
32300 tst_proto_ftruncate="yes"
32301
32302else
32303
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32305$as_echo "no" >&6; }
32306 tst_proto_ftruncate="no"
32307
32308fi
32309rm -f conftest*
32310
32311 fi
32312 #
32313 if test "$tst_proto_ftruncate" = "yes"; then
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32315$as_echo_n "checking if ftruncate is compilable... " >&6; }
32316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32317/* end confdefs.h. */
32318
32319
32320 $curl_includes_unistd
32321
32322int main (void)
32323{
32324
32325 if(0 != ftruncate(0, 0))
32326 return 1;
32327
32328 ;
32329 return 0;
32330}
32331
32332_ACEOF
32333if ac_fn_c_try_compile "$LINENO"; then :
32334
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32336$as_echo "yes" >&6; }
32337 tst_compi_ftruncate="yes"
32338
32339else
32340
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32342$as_echo "no" >&6; }
32343 tst_compi_ftruncate="no"
32344
32345fi
32346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347 fi
32348 #
32349 if test "$tst_compi_ftruncate" = "yes"; then
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32351$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32352 if test "x$curl_disallow_ftruncate" != "xyes"; then
32353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32354$as_echo "yes" >&6; }
32355 tst_allow_ftruncate="yes"
32356 else
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358$as_echo "no" >&6; }
32359 tst_allow_ftruncate="no"
32360 fi
32361 fi
32362 #
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32364$as_echo_n "checking if ftruncate might be used... " >&6; }
32365 if test "$tst_links_ftruncate" = "yes" &&
32366 test "$tst_proto_ftruncate" = "yes" &&
32367 test "$tst_compi_ftruncate" = "yes" &&
32368 test "$tst_allow_ftruncate" = "yes"; then
32369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32370$as_echo "yes" >&6; }
32371
32372cat >>confdefs.h <<_ACEOF
32373#define HAVE_FTRUNCATE 1
32374_ACEOF
32375
32376 curl_cv_func_ftruncate="yes"
32377 else
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32379$as_echo "no" >&6; }
32380 curl_cv_func_ftruncate="no"
32381 fi
32382
32383
32384curl_includes_stdlib="\
32385/* includes start */
32386#ifdef HAVE_SYS_TYPES_H
32387# include <sys/types.h>
32388#endif
32389#ifdef HAVE_STDLIB_H
32390# include <stdlib.h>
32391#endif
32392/* includes end */"
32393 for ac_header in sys/types.h stdlib.h
32394do :
32395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32397"
32398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32399 cat >>confdefs.h <<_ACEOF
32400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32401_ACEOF
32402
32403fi
32404
32405done
32406
32407
32408
32409 #
32410 tst_links_getaddrinfo="unknown"
32411 tst_proto_getaddrinfo="unknown"
32412 tst_compi_getaddrinfo="unknown"
32413 tst_works_getaddrinfo="unknown"
32414 tst_allow_getaddrinfo="unknown"
32415 tst_tsafe_getaddrinfo="unknown"
32416 #
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32418$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32420/* end confdefs.h. */
32421
32422
32423 $curl_includes_ws2tcpip
32424 $curl_includes_sys_socket
32425 $curl_includes_netdb
32426
32427int main (void)
32428{
32429
32430 if(0 != getaddrinfo(0, 0, 0, 0))
32431 return 1;
32432
32433 ;
32434 return 0;
32435}
32436
32437_ACEOF
32438if ac_fn_c_try_link "$LINENO"; then :
32439
32440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32441$as_echo "yes" >&6; }
32442 tst_links_getaddrinfo="yes"
32443
32444else
32445
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32447$as_echo "no" >&6; }
32448 tst_links_getaddrinfo="no"
32449
32450fi
32451rm -f core conftest.err conftest.$ac_objext \
32452 conftest$ac_exeext conftest.$ac_ext
32453 #
32454 if test "$tst_links_getaddrinfo" = "yes"; then
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32456$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32458/* end confdefs.h. */
32459
32460 $curl_includes_ws2tcpip
32461 $curl_includes_sys_socket
32462 $curl_includes_netdb
32463
32464_ACEOF
32465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32466 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32467
32468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32469$as_echo "yes" >&6; }
32470 tst_proto_getaddrinfo="yes"
32471
32472else
32473
32474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32475$as_echo "no" >&6; }
32476 tst_proto_getaddrinfo="no"
32477
32478fi
32479rm -f conftest*
32480
32481 fi
32482 #
32483 if test "$tst_proto_getaddrinfo" = "yes"; then
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32485$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32487/* end confdefs.h. */
32488
32489
32490 $curl_includes_ws2tcpip
32491 $curl_includes_sys_socket
32492 $curl_includes_netdb
32493
32494int main (void)
32495{
32496
32497 if(0 != getaddrinfo(0, 0, 0, 0))
32498 return 1;
32499
32500 ;
32501 return 0;
32502}
32503
32504_ACEOF
32505if ac_fn_c_try_compile "$LINENO"; then :
32506
32507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32508$as_echo "yes" >&6; }
32509 tst_compi_getaddrinfo="yes"
32510
32511else
32512
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32514$as_echo "no" >&6; }
32515 tst_compi_getaddrinfo="no"
32516
32517fi
32518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32519 fi
32520 #
32521 if test "x$cross_compiling" != "xyes" &&
32522 test "$tst_compi_getaddrinfo" = "yes"; then
32523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32524$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32525 if test "$cross_compiling" = yes; then :
32526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32528as_fn_error $? "cannot run test program while cross compiling
32529See \`config.log' for more details" "$LINENO" 5; }
32530else
32531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32532/* end confdefs.h. */
32533
32534
32535 $curl_includes_ws2tcpip
32536 $curl_includes_stdlib
32537 $curl_includes_string
32538 $curl_includes_sys_socket
32539 $curl_includes_netdb
32540
32541int main (void)
32542{
32543
32544 struct addrinfo hints;
32545 struct addrinfo *ai = 0;
32546 int error;
32547
32548 #ifdef HAVE_WINSOCK2_H
32549 WSADATA wsa;
32550 if (WSAStartup(MAKEWORD(2,2), &wsa))
32551 exit(2);
32552 #endif
32553
32554 memset(&hints, 0, sizeof(hints));
32555 hints.ai_flags = AI_NUMERICHOST;
32556 hints.ai_family = AF_UNSPEC;
32557 hints.ai_socktype = SOCK_STREAM;
32558 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32559 if(error || !ai)
32560 exit(1); /* fail */
32561 else
32562 exit(0);
32563
32564 ;
32565 return 0;
32566}
32567
32568_ACEOF
32569if ac_fn_c_try_run "$LINENO"; then :
32570
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32572$as_echo "yes" >&6; }
32573 tst_works_getaddrinfo="yes"
32574
32575else
32576
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32578$as_echo "no" >&6; }
32579 tst_works_getaddrinfo="no"
32580
32581fi
32582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32583 conftest.$ac_objext conftest.beam conftest.$ac_ext
32584fi
32585
32586 fi
32587 #
32588 if test "$tst_compi_getaddrinfo" = "yes" &&
32589 test "$tst_works_getaddrinfo" != "no"; then
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32591$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32592 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32594$as_echo "yes" >&6; }
32595 tst_allow_getaddrinfo="yes"
32596 else
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32598$as_echo "no" >&6; }
32599 tst_allow_getaddrinfo="no"
32600 fi
32601 fi
32602 #
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32604$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32605 if test "$tst_links_getaddrinfo" = "yes" &&
32606 test "$tst_proto_getaddrinfo" = "yes" &&
32607 test "$tst_compi_getaddrinfo" = "yes" &&
32608 test "$tst_allow_getaddrinfo" = "yes" &&
32609 test "$tst_works_getaddrinfo" != "no"; then
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32611$as_echo "yes" >&6; }
32612
32613cat >>confdefs.h <<_ACEOF
32614#define HAVE_GETADDRINFO 1
32615_ACEOF
32616
32617 curl_cv_func_getaddrinfo="yes"
32618 else
32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32620$as_echo "no" >&6; }
32621 curl_cv_func_getaddrinfo="no"
32622 curl_cv_func_getaddrinfo_threadsafe="no"
32623 fi
32624 #
32625 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32627$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32628 case $host_os in
32629 aix[1234].* | aix5.[01].*)
32630 tst_tsafe_getaddrinfo="no"
32631 ;;
32632 aix*)
32633 tst_tsafe_getaddrinfo="yes"
32634 ;;
32635 darwin[12345].*)
32636 tst_tsafe_getaddrinfo="no"
32637 ;;
32638 darwin*)
32639 tst_tsafe_getaddrinfo="yes"
32640 ;;
32641 freebsd[1234].* | freebsd5.[1234]*)
32642 tst_tsafe_getaddrinfo="no"
32643 ;;
32644 freebsd*)
32645 tst_tsafe_getaddrinfo="yes"
32646 ;;
32647 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32648 tst_tsafe_getaddrinfo="no"
32649 ;;
32650 hpux*)
32651 tst_tsafe_getaddrinfo="yes"
32652 ;;
32653 netbsd[123].*)
32654 tst_tsafe_getaddrinfo="no"
32655 ;;
32656 netbsd*)
32657 tst_tsafe_getaddrinfo="yes"
32658 ;;
32659 *bsd*)
32660 tst_tsafe_getaddrinfo="no"
32661 ;;
32662 solaris2*)
32663 tst_tsafe_getaddrinfo="yes"
32664 ;;
32665 esac
32666 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32667 test "$curl_cv_native_windows" = "yes"; then
32668 tst_tsafe_getaddrinfo="yes"
32669 fi
32670 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32671
32672
32673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32674/* end confdefs.h. */
32675
32676
32677 $curl_includes_sys_socket
32678 $curl_includes_netdb
32679
32680int main (void)
32681{
32682#ifdef h_errno
32683 return 0;
32684#else
32685 force compilation error
32686#endif
32687}
32688
32689
32690_ACEOF
32691if ac_fn_c_try_compile "$LINENO"; then :
32692
32693 tst_symbol_defined="yes"
32694
32695else
32696
32697 tst_symbol_defined="no"
32698
32699fi
32700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32701 if test "$tst_symbol_defined" = "yes"; then
32702 curl_cv_have_def_h_errno=yes
32703
32704 else
32705 curl_cv_have_def_h_errno=no
32706
32707 fi
32708
32709 if test "$curl_cv_have_def_h_errno" = "yes"; then
32710 tst_h_errno_macro="yes"
32711 else
32712 tst_h_errno_macro="no"
32713 fi
32714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32715/* end confdefs.h. */
32716
32717
32718 $curl_includes_sys_socket
32719 $curl_includes_netdb
32720
32721int main (void)
32722{
32723
32724 h_errno = 2;
32725 if(0 != h_errno)
32726 return 1;
32727
32728 ;
32729 return 0;
32730}
32731
32732_ACEOF
32733if ac_fn_c_try_compile "$LINENO"; then :
32734
32735 tst_h_errno_modifiable_lvalue="yes"
32736
32737else
32738
32739 tst_h_errno_modifiable_lvalue="no"
32740
32741fi
32742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32744/* end confdefs.h. */
32745
32746
32747
32748int main (void)
32749{
32750
32751#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32752 return 0;
32753#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32754 return 0;
32755#else
32756 force compilation error
32757#endif
32758
32759 ;
32760 return 0;
32761}
32762
32763_ACEOF
32764if ac_fn_c_try_compile "$LINENO"; then :
32765
32766 tst_h_errno_sbs_issue_7="yes"
32767
32768else
32769
32770 tst_h_errno_sbs_issue_7="no"
32771
32772fi
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774 if test "$tst_h_errno_macro" = "no" &&
32775 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32776 test "$tst_h_errno_sbs_issue_7" = "no"; then
32777 tst_tsafe_getaddrinfo="no"
32778 else
32779 tst_tsafe_getaddrinfo="yes"
32780 fi
32781 fi
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32783$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32784 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32785
32786cat >>confdefs.h <<_ACEOF
32787#define HAVE_GETADDRINFO_THREADSAFE 1
32788_ACEOF
32789
32790 curl_cv_func_getaddrinfo_threadsafe="yes"
32791 else
32792 curl_cv_func_getaddrinfo_threadsafe="no"
32793 fi
32794 fi
32795
32796
32797 #
32798 tst_links_gai_strerror="unknown"
32799 tst_proto_gai_strerror="unknown"
32800 tst_compi_gai_strerror="unknown"
32801 tst_allow_gai_strerror="unknown"
32802 #
32803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32804$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32806/* end confdefs.h. */
32807
32808
32809 $curl_includes_winsock2
32810 $curl_includes_netdb
32811
32812int main (void)
32813{
32814
32815 if(0 != gai_strerror(0))
32816 return 1;
32817
32818 ;
32819 return 0;
32820}
32821
32822_ACEOF
32823if ac_fn_c_try_link "$LINENO"; then :
32824
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32826$as_echo "yes" >&6; }
32827 tst_links_gai_strerror="yes"
32828
32829else
32830
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32832$as_echo "no" >&6; }
32833 tst_links_gai_strerror="no"
32834
32835fi
32836rm -f core conftest.err conftest.$ac_objext \
32837 conftest$ac_exeext conftest.$ac_ext
32838 #
32839 if test "$tst_links_gai_strerror" = "yes"; then
32840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32841$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32843/* end confdefs.h. */
32844
32845 $curl_includes_winsock2
32846 $curl_includes_netdb
32847
32848_ACEOF
32849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32850 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32851
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32853$as_echo "yes" >&6; }
32854 tst_proto_gai_strerror="yes"
32855
32856else
32857
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32859$as_echo "no" >&6; }
32860 tst_proto_gai_strerror="no"
32861
32862fi
32863rm -f conftest*
32864
32865 fi
32866 #
32867 if test "$tst_proto_gai_strerror" = "yes"; then
32868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32869$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32871/* end confdefs.h. */
32872
32873
32874 $curl_includes_winsock2
32875 $curl_includes_netdb
32876
32877int main (void)
32878{
32879
32880 if(0 != gai_strerror(0))
32881 return 1;
32882
32883 ;
32884 return 0;
32885}
32886
32887_ACEOF
32888if ac_fn_c_try_compile "$LINENO"; then :
32889
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32891$as_echo "yes" >&6; }
32892 tst_compi_gai_strerror="yes"
32893
32894else
32895
32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32897$as_echo "no" >&6; }
32898 tst_compi_gai_strerror="no"
32899
32900fi
32901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32902 fi
32903 #
32904 if test "$tst_compi_gai_strerror" = "yes"; then
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32906$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32907 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32909$as_echo "yes" >&6; }
32910 tst_allow_gai_strerror="yes"
32911 else
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32913$as_echo "no" >&6; }
32914 tst_allow_gai_strerror="no"
32915 fi
32916 fi
32917 #
32918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32919$as_echo_n "checking if gai_strerror might be used... " >&6; }
32920 if test "$tst_links_gai_strerror" = "yes" &&
32921 test "$tst_proto_gai_strerror" = "yes" &&
32922 test "$tst_compi_gai_strerror" = "yes" &&
32923 test "$tst_allow_gai_strerror" = "yes"; then
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32925$as_echo "yes" >&6; }
32926
32927cat >>confdefs.h <<_ACEOF
32928#define HAVE_GAI_STRERROR 1
32929_ACEOF
32930
32931 curl_cv_func_gai_strerror="yes"
32932 else
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32934$as_echo "no" >&6; }
32935 curl_cv_func_gai_strerror="no"
32936 fi
32937
32938
32939 #
32940 tst_links_gethostbyaddr="unknown"
32941 tst_proto_gethostbyaddr="unknown"
32942 tst_compi_gethostbyaddr="unknown"
32943 tst_allow_gethostbyaddr="unknown"
32944 #
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32946$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32948/* end confdefs.h. */
32949
32950
32951 $curl_includes_winsock2
32952 $curl_includes_netdb
32953
32954int main (void)
32955{
32956
32957 if(0 != gethostbyaddr(0, 0, 0))
32958 return 1;
32959
32960 ;
32961 return 0;
32962}
32963
32964_ACEOF
32965if ac_fn_c_try_link "$LINENO"; then :
32966
32967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32968$as_echo "yes" >&6; }
32969 tst_links_gethostbyaddr="yes"
32970
32971else
32972
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974$as_echo "no" >&6; }
32975 tst_links_gethostbyaddr="no"
32976
32977fi
32978rm -f core conftest.err conftest.$ac_objext \
32979 conftest$ac_exeext conftest.$ac_ext
32980 #
32981 if test "$tst_links_gethostbyaddr" = "yes"; then
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32983$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32985/* end confdefs.h. */
32986
32987 $curl_includes_winsock2
32988 $curl_includes_netdb
32989
32990_ACEOF
32991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32992 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32993
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32995$as_echo "yes" >&6; }
32996 tst_proto_gethostbyaddr="yes"
32997
32998else
32999
33000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33001$as_echo "no" >&6; }
33002 tst_proto_gethostbyaddr="no"
33003
33004fi
33005rm -f conftest*
33006
33007 fi
33008 #
33009 if test "$tst_proto_gethostbyaddr" = "yes"; then
33010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33011$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33013/* end confdefs.h. */
33014
33015
33016 $curl_includes_winsock2
33017 $curl_includes_netdb
33018
33019int main (void)
33020{
33021
33022 if(0 != gethostbyaddr(0, 0, 0))
33023 return 1;
33024
33025 ;
33026 return 0;
33027}
33028
33029_ACEOF
33030if ac_fn_c_try_compile "$LINENO"; then :
33031
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33033$as_echo "yes" >&6; }
33034 tst_compi_gethostbyaddr="yes"
33035
33036else
33037
33038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33039$as_echo "no" >&6; }
33040 tst_compi_gethostbyaddr="no"
33041
33042fi
33043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33044 fi
33045 #
33046 if test "$tst_compi_gethostbyaddr" = "yes"; then
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33048$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33049 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33051$as_echo "yes" >&6; }
33052 tst_allow_gethostbyaddr="yes"
33053 else
33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33055$as_echo "no" >&6; }
33056 tst_allow_gethostbyaddr="no"
33057 fi
33058 fi
33059 #
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33061$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33062 if test "$tst_links_gethostbyaddr" = "yes" &&
33063 test "$tst_proto_gethostbyaddr" = "yes" &&
33064 test "$tst_compi_gethostbyaddr" = "yes" &&
33065 test "$tst_allow_gethostbyaddr" = "yes"; then
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33067$as_echo "yes" >&6; }
33068
33069cat >>confdefs.h <<_ACEOF
33070#define HAVE_GETHOSTBYADDR 1
33071_ACEOF
33072
33073 curl_cv_func_gethostbyaddr="yes"
33074 else
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33076$as_echo "no" >&6; }
33077 curl_cv_func_gethostbyaddr="no"
33078 fi
33079
33080
33081 #
33082 tst_links_gethostbyaddr_r="unknown"
33083 tst_proto_gethostbyaddr_r="unknown"
33084 tst_compi_gethostbyaddr_r="unknown"
33085 tst_allow_gethostbyaddr_r="unknown"
33086 tst_nargs_gethostbyaddr_r="unknown"
33087 #
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33089$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33091/* end confdefs.h. */
33092
33093
33094#define gethostbyaddr_r innocuous_gethostbyaddr_r
33095#ifdef __STDC__
33096# include <limits.h>
33097#else
33098# include <assert.h>
33099#endif
33100#undef gethostbyaddr_r
33101#ifdef __cplusplus
33102extern "C"
33103#endif
33104char gethostbyaddr_r ();
33105#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33106choke me
33107#endif
33108
33109int main (void)
33110{
33111return gethostbyaddr_r ();
33112 ;
33113 return 0;
33114}
33115
33116_ACEOF
33117if ac_fn_c_try_link "$LINENO"; then :
33118
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33120$as_echo "yes" >&6; }
33121 tst_links_gethostbyaddr_r="yes"
33122
33123else
33124
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33126$as_echo "no" >&6; }
33127 tst_links_gethostbyaddr_r="no"
33128
33129fi
33130rm -f core conftest.err conftest.$ac_objext \
33131 conftest$ac_exeext conftest.$ac_ext
33132 #
33133 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33135$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33137/* end confdefs.h. */
33138
33139 $curl_includes_netdb
33140
33141_ACEOF
33142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33143 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33144
33145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33146$as_echo "yes" >&6; }
33147 tst_proto_gethostbyaddr_r="yes"
33148
33149else
33150
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33152$as_echo "no" >&6; }
33153 tst_proto_gethostbyaddr_r="no"
33154
33155fi
33156rm -f conftest*
33157
33158 fi
33159 #
33160 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33161 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33163$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33165/* end confdefs.h. */
33166
33167
33168 $curl_includes_netdb
33169
33170int main (void)
33171{
33172
33173 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33174 return 1;
33175
33176 ;
33177 return 0;
33178}
33179
33180_ACEOF
33181if ac_fn_c_try_compile "$LINENO"; then :
33182
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33184$as_echo "yes" >&6; }
33185 tst_compi_gethostbyaddr_r="yes"
33186 tst_nargs_gethostbyaddr_r="5"
33187
33188else
33189
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33191$as_echo "no" >&6; }
33192 tst_compi_gethostbyaddr_r="no"
33193
33194fi
33195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33196 fi
33197 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33199$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33201/* end confdefs.h. */
33202
33203
33204 $curl_includes_netdb
33205
33206int main (void)
33207{
33208
33209 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33210 return 1;
33211
33212 ;
33213 return 0;
33214}
33215
33216_ACEOF
33217if ac_fn_c_try_compile "$LINENO"; then :
33218
33219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33220$as_echo "yes" >&6; }
33221 tst_compi_gethostbyaddr_r="yes"
33222 tst_nargs_gethostbyaddr_r="7"
33223
33224else
33225
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33227$as_echo "no" >&6; }
33228 tst_compi_gethostbyaddr_r="no"
33229
33230fi
33231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232 fi
33233 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33235$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33237/* end confdefs.h. */
33238
33239
33240 $curl_includes_netdb
33241
33242int main (void)
33243{
33244
33245 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33246 return 1;
33247
33248 ;
33249 return 0;
33250}
33251
33252_ACEOF
33253if ac_fn_c_try_compile "$LINENO"; then :
33254
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33256$as_echo "yes" >&6; }
33257 tst_compi_gethostbyaddr_r="yes"
33258 tst_nargs_gethostbyaddr_r="8"
33259
33260else
33261
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33263$as_echo "no" >&6; }
33264 tst_compi_gethostbyaddr_r="no"
33265
33266fi
33267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 fi
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33270$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33271 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33273$as_echo "yes" >&6; }
33274 else
33275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33276$as_echo "no" >&6; }
33277 fi
33278 fi
33279 #
33280 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33282$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33283 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33285$as_echo "yes" >&6; }
33286 tst_allow_gethostbyaddr_r="yes"
33287 else
33288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33289$as_echo "no" >&6; }
33290 tst_allow_gethostbyaddr_r="no"
33291 fi
33292 fi
33293 #
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33295$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33296 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33297 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33298 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33299 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33301$as_echo "yes" >&6; }
33302
33303cat >>confdefs.h <<_ACEOF
33304#define HAVE_GETHOSTBYADDR_R 1
33305_ACEOF
33306
33307 #
33308 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33309
33310$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33311
33312 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33313
33314$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33315
33316 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33317
33318$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33319
33320 fi
33321 #
33322 curl_cv_func_gethostbyaddr_r="yes"
33323 else
33324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33325$as_echo "no" >&6; }
33326 curl_cv_func_gethostbyaddr_r="no"
33327 fi
33328
33329
33330 #
33331 tst_links_gethostbyname="unknown"
33332 tst_proto_gethostbyname="unknown"
33333 tst_compi_gethostbyname="unknown"
33334 tst_allow_gethostbyname="unknown"
33335 #
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33337$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33339/* end confdefs.h. */
33340
33341
33342 $curl_includes_winsock2
33343 $curl_includes_netdb
33344
33345int main (void)
33346{
33347
33348 if(0 != gethostbyname(0))
33349 return 1;
33350
33351 ;
33352 return 0;
33353}
33354
33355_ACEOF
33356if ac_fn_c_try_link "$LINENO"; then :
33357
33358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33359$as_echo "yes" >&6; }
33360 tst_links_gethostbyname="yes"
33361
33362else
33363
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33365$as_echo "no" >&6; }
33366 tst_links_gethostbyname="no"
33367
33368fi
33369rm -f core conftest.err conftest.$ac_objext \
33370 conftest$ac_exeext conftest.$ac_ext
33371 #
33372 if test "$tst_links_gethostbyname" = "yes"; then
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33374$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33376/* end confdefs.h. */
33377
33378 $curl_includes_winsock2
33379 $curl_includes_netdb
33380
33381_ACEOF
33382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33383 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33384
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33386$as_echo "yes" >&6; }
33387 tst_proto_gethostbyname="yes"
33388
33389else
33390
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392$as_echo "no" >&6; }
33393 tst_proto_gethostbyname="no"
33394
33395fi
33396rm -f conftest*
33397
33398 fi
33399 #
33400 if test "$tst_proto_gethostbyname" = "yes"; then
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33402$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33404/* end confdefs.h. */
33405
33406
33407 $curl_includes_winsock2
33408 $curl_includes_netdb
33409
33410int main (void)
33411{
33412
33413 if(0 != gethostbyname(0))
33414 return 1;
33415
33416 ;
33417 return 0;
33418}
33419
33420_ACEOF
33421if ac_fn_c_try_compile "$LINENO"; then :
33422
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33424$as_echo "yes" >&6; }
33425 tst_compi_gethostbyname="yes"
33426
33427else
33428
33429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33430$as_echo "no" >&6; }
33431 tst_compi_gethostbyname="no"
33432
33433fi
33434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33435 fi
33436 #
33437 if test "$tst_compi_gethostbyname" = "yes"; then
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33439$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33440 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33442$as_echo "yes" >&6; }
33443 tst_allow_gethostbyname="yes"
33444 else
33445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33446$as_echo "no" >&6; }
33447 tst_allow_gethostbyname="no"
33448 fi
33449 fi
33450 #
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33452$as_echo_n "checking if gethostbyname might be used... " >&6; }
33453 if test "$tst_links_gethostbyname" = "yes" &&
33454 test "$tst_proto_gethostbyname" = "yes" &&
33455 test "$tst_compi_gethostbyname" = "yes" &&
33456 test "$tst_allow_gethostbyname" = "yes"; then
33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33458$as_echo "yes" >&6; }
33459
33460cat >>confdefs.h <<_ACEOF
33461#define HAVE_GETHOSTBYNAME 1
33462_ACEOF
33463
33464 curl_cv_func_gethostbyname="yes"
33465 else
33466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33467$as_echo "no" >&6; }
33468 curl_cv_func_gethostbyname="no"
33469 fi
33470
33471
33472 #
33473 tst_links_gethostbyname_r="unknown"
33474 tst_proto_gethostbyname_r="unknown"
33475 tst_compi_gethostbyname_r="unknown"
33476 tst_allow_gethostbyname_r="unknown"
33477 tst_nargs_gethostbyname_r="unknown"
33478 #
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33480$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33482/* end confdefs.h. */
33483
33484
33485#define gethostbyname_r innocuous_gethostbyname_r
33486#ifdef __STDC__
33487# include <limits.h>
33488#else
33489# include <assert.h>
33490#endif
33491#undef gethostbyname_r
33492#ifdef __cplusplus
33493extern "C"
33494#endif
33495char gethostbyname_r ();
33496#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33497choke me
33498#endif
33499
33500int main (void)
33501{
33502return gethostbyname_r ();
33503 ;
33504 return 0;
33505}
33506
33507_ACEOF
33508if ac_fn_c_try_link "$LINENO"; then :
33509
33510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33511$as_echo "yes" >&6; }
33512 tst_links_gethostbyname_r="yes"
33513
33514else
33515
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33517$as_echo "no" >&6; }
33518 tst_links_gethostbyname_r="no"
33519
33520fi
33521rm -f core conftest.err conftest.$ac_objext \
33522 conftest$ac_exeext conftest.$ac_ext
33523 #
33524 if test "$tst_links_gethostbyname_r" = "yes"; then
33525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33526$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33528/* end confdefs.h. */
33529
33530 $curl_includes_netdb
33531
33532_ACEOF
33533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33534 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33535
33536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33537$as_echo "yes" >&6; }
33538 tst_proto_gethostbyname_r="yes"
33539
33540else
33541
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33543$as_echo "no" >&6; }
33544 tst_proto_gethostbyname_r="no"
33545
33546fi
33547rm -f conftest*
33548
33549 fi
33550 #
33551 if test "$tst_proto_gethostbyname_r" = "yes"; then
33552 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33554$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33556/* end confdefs.h. */
33557
33558
33559 $curl_includes_netdb
33560
33561int main (void)
33562{
33563
33564 if(0 != gethostbyname_r(0, 0, 0))
33565 return 1;
33566
33567 ;
33568 return 0;
33569}
33570
33571_ACEOF
33572if ac_fn_c_try_compile "$LINENO"; then :
33573
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33575$as_echo "yes" >&6; }
33576 tst_compi_gethostbyname_r="yes"
33577 tst_nargs_gethostbyname_r="3"
33578
33579else
33580
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33582$as_echo "no" >&6; }
33583 tst_compi_gethostbyname_r="no"
33584
33585fi
33586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587 fi
33588 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33590$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33592/* end confdefs.h. */
33593
33594
33595 $curl_includes_netdb
33596
33597int main (void)
33598{
33599
33600 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33601 return 1;
33602
33603 ;
33604 return 0;
33605}
33606
33607_ACEOF
33608if ac_fn_c_try_compile "$LINENO"; then :
33609
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33611$as_echo "yes" >&6; }
33612 tst_compi_gethostbyname_r="yes"
33613 tst_nargs_gethostbyname_r="5"
33614
33615else
33616
33617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33618$as_echo "no" >&6; }
33619 tst_compi_gethostbyname_r="no"
33620
33621fi
33622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33623 fi
33624 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33626$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33628/* end confdefs.h. */
33629
33630
33631 $curl_includes_netdb
33632
33633int main (void)
33634{
33635
33636 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33637 return 1;
33638
33639 ;
33640 return 0;
33641}
33642
33643_ACEOF
33644if ac_fn_c_try_compile "$LINENO"; then :
33645
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33647$as_echo "yes" >&6; }
33648 tst_compi_gethostbyname_r="yes"
33649 tst_nargs_gethostbyname_r="6"
33650
33651else
33652
33653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33654$as_echo "no" >&6; }
33655 tst_compi_gethostbyname_r="no"
33656
33657fi
33658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33659 fi
33660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33661$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33662 if test "$tst_compi_gethostbyname_r" = "yes"; then
33663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33664$as_echo "yes" >&6; }
33665 else
33666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33667$as_echo "no" >&6; }
33668 fi
33669 fi
33670 #
33671 if test "$tst_compi_gethostbyname_r" = "yes"; then
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33673$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33674 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33676$as_echo "yes" >&6; }
33677 tst_allow_gethostbyname_r="yes"
33678 else
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33680$as_echo "no" >&6; }
33681 tst_allow_gethostbyname_r="no"
33682 fi
33683 fi
33684 #
33685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33686$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33687 if test "$tst_links_gethostbyname_r" = "yes" &&
33688 test "$tst_proto_gethostbyname_r" = "yes" &&
33689 test "$tst_compi_gethostbyname_r" = "yes" &&
33690 test "$tst_allow_gethostbyname_r" = "yes"; then
33691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33692$as_echo "yes" >&6; }
33693
33694cat >>confdefs.h <<_ACEOF
33695#define HAVE_GETHOSTBYNAME_R 1
33696_ACEOF
33697
33698 #
33699 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33700
33701$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33702
33703 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33704
33705$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33706
33707 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33708
33709$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33710
33711 fi
33712 #
33713 curl_cv_func_gethostbyname_r="yes"
33714 else
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33716$as_echo "no" >&6; }
33717 curl_cv_func_gethostbyname_r="no"
33718 fi
33719
33720
33721 #
33722 tst_links_gethostname="unknown"
33723 tst_proto_gethostname="unknown"
33724 tst_compi_gethostname="unknown"
33725 tst_allow_gethostname="unknown"
33726 #
33727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33728$as_echo_n "checking if gethostname can be linked... " >&6; }
33729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33730/* end confdefs.h. */
33731
33732
33733 $curl_includes_winsock2
33734 $curl_includes_unistd
33735
33736int main (void)
33737{
33738
33739 if(0 != gethostname(0, 0))
33740 return 1;
33741
33742 ;
33743 return 0;
33744}
33745
33746_ACEOF
33747if ac_fn_c_try_link "$LINENO"; then :
33748
33749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33750$as_echo "yes" >&6; }
33751 tst_links_gethostname="yes"
33752
33753else
33754
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33756$as_echo "no" >&6; }
33757 tst_links_gethostname="no"
33758
33759fi
33760rm -f core conftest.err conftest.$ac_objext \
33761 conftest$ac_exeext conftest.$ac_ext
33762 #
33763 if test "$tst_links_gethostname" = "yes"; then
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33765$as_echo_n "checking if gethostname is prototyped... " >&6; }
33766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33767/* end confdefs.h. */
33768
33769 $curl_includes_winsock2
33770 $curl_includes_unistd
33771
33772_ACEOF
33773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33774 $EGREP "gethostname" >/dev/null 2>&1; then :
33775
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33777$as_echo "yes" >&6; }
33778 tst_proto_gethostname="yes"
33779
33780else
33781
33782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33783$as_echo "no" >&6; }
33784 tst_proto_gethostname="no"
33785
33786fi
33787rm -f conftest*
33788
33789 fi
33790 #
33791 if test "$tst_proto_gethostname" = "yes"; then
33792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33793$as_echo_n "checking if gethostname is compilable... " >&6; }
33794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33795/* end confdefs.h. */
33796
33797
33798 $curl_includes_winsock2
33799 $curl_includes_unistd
33800
33801int main (void)
33802{
33803
33804 if(0 != gethostname(0, 0))
33805 return 1;
33806
33807 ;
33808 return 0;
33809}
33810
33811_ACEOF
33812if ac_fn_c_try_compile "$LINENO"; then :
33813
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33815$as_echo "yes" >&6; }
33816 tst_compi_gethostname="yes"
33817
33818else
33819
33820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33821$as_echo "no" >&6; }
33822 tst_compi_gethostname="no"
33823
33824fi
33825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33826 fi
33827 #
33828 if test "$tst_compi_gethostname" = "yes"; then
33829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33830$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33831 tst_gethostname_type_arg2="unknown"
33832 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33833 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33834 if test "$tst_gethostname_type_arg2" = "unknown"; then
33835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33836/* end confdefs.h. */
33837
33838
33839 $curl_includes_winsock2
33840 $curl_includes_unistd
33841 $curl_preprocess_callconv
33842 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33843
33844int main (void)
33845{
33846
33847 if(0 != gethostname(0, 0))
33848 return 1;
33849
33850 ;
33851 return 0;
33852}
33853
33854_ACEOF
33855if ac_fn_c_try_compile "$LINENO"; then :
33856
33857 tst_gethostname_type_arg2="$tst_arg2"
33858
33859fi
33860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33861 fi
33862 done
33863 done
33864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33865$as_echo "$tst_gethostname_type_arg2" >&6; }
33866 if test "$tst_gethostname_type_arg2" != "unknown"; then
33867
33868cat >>confdefs.h <<_ACEOF
33869#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33870_ACEOF
33871
33872 fi
33873 fi
33874 #
33875 if test "$tst_compi_gethostname" = "yes"; then
33876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33877$as_echo_n "checking if gethostname usage allowed... " >&6; }
33878 if test "x$curl_disallow_gethostname" != "xyes"; then
33879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33880$as_echo "yes" >&6; }
33881 tst_allow_gethostname="yes"
33882 else
33883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33884$as_echo "no" >&6; }
33885 tst_allow_gethostname="no"
33886 fi
33887 fi
33888 #
33889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33890$as_echo_n "checking if gethostname might be used... " >&6; }
33891 if test "$tst_links_gethostname" = "yes" &&
33892 test "$tst_proto_gethostname" = "yes" &&
33893 test "$tst_compi_gethostname" = "yes" &&
33894 test "$tst_allow_gethostname" = "yes"; then
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33896$as_echo "yes" >&6; }
33897
33898cat >>confdefs.h <<_ACEOF
33899#define HAVE_GETHOSTNAME 1
33900_ACEOF
33901
33902 curl_cv_func_gethostname="yes"
33903 else
33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33905$as_echo "no" >&6; }
33906 curl_cv_func_gethostname="no"
33907 fi
33908
33909
33910 #
33911 tst_links_getifaddrs="unknown"
33912 tst_proto_getifaddrs="unknown"
33913 tst_compi_getifaddrs="unknown"
33914 tst_works_getifaddrs="unknown"
33915 tst_allow_getifaddrs="unknown"
33916 #
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33918$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33920/* end confdefs.h. */
33921
33922
33923#define getifaddrs innocuous_getifaddrs
33924#ifdef __STDC__
33925# include <limits.h>
33926#else
33927# include <assert.h>
33928#endif
33929#undef getifaddrs
33930#ifdef __cplusplus
33931extern "C"
33932#endif
33933char getifaddrs ();
33934#if defined __stub_getifaddrs || defined __stub___getifaddrs
33935choke me
33936#endif
33937
33938int main (void)
33939{
33940return getifaddrs ();
33941 ;
33942 return 0;
33943}
33944
33945_ACEOF
33946if ac_fn_c_try_link "$LINENO"; then :
33947
33948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33949$as_echo "yes" >&6; }
33950 tst_links_getifaddrs="yes"
33951
33952else
33953
33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33955$as_echo "no" >&6; }
33956 tst_links_getifaddrs="no"
33957
33958fi
33959rm -f core conftest.err conftest.$ac_objext \
33960 conftest$ac_exeext conftest.$ac_ext
33961 #
33962 if test "$tst_links_getifaddrs" = "yes"; then
33963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33964$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33966/* end confdefs.h. */
33967
33968 $curl_includes_ifaddrs
33969
33970_ACEOF
33971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33972 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33973
33974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33975$as_echo "yes" >&6; }
33976 tst_proto_getifaddrs="yes"
33977
33978else
33979
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33981$as_echo "no" >&6; }
33982 tst_proto_getifaddrs="no"
33983
33984fi
33985rm -f conftest*
33986
33987 fi
33988 #
33989 if test "$tst_proto_getifaddrs" = "yes"; then
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33991$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33993/* end confdefs.h. */
33994
33995
33996 $curl_includes_ifaddrs
33997
33998int main (void)
33999{
34000
34001 if(0 != getifaddrs(0))
34002 return 1;
34003
34004 ;
34005 return 0;
34006}
34007
34008_ACEOF
34009if ac_fn_c_try_compile "$LINENO"; then :
34010
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34012$as_echo "yes" >&6; }
34013 tst_compi_getifaddrs="yes"
34014
34015else
34016
34017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34018$as_echo "no" >&6; }
34019 tst_compi_getifaddrs="no"
34020
34021fi
34022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34023 fi
34024 #
34025 if test "x$cross_compiling" != "xyes" &&
34026 test "$tst_compi_getifaddrs" = "yes"; then
34027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34028$as_echo_n "checking if getifaddrs seems to work... " >&6; }
34029 if test "$cross_compiling" = yes; then :
34030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34032as_fn_error $? "cannot run test program while cross compiling
34033See \`config.log' for more details" "$LINENO" 5; }
34034else
34035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34036/* end confdefs.h. */
34037
34038
34039 $curl_includes_stdlib
34040 $curl_includes_ifaddrs
34041
34042int main (void)
34043{
34044
34045 struct ifaddrs *ifa = 0;
34046 int error;
34047
34048 error = getifaddrs(&ifa);
34049 if(error || !ifa)
34050 exit(1); /* fail */
34051 else
34052 exit(0);
34053
34054 ;
34055 return 0;
34056}
34057
34058_ACEOF
34059if ac_fn_c_try_run "$LINENO"; then :
34060
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34062$as_echo "yes" >&6; }
34063 tst_works_getifaddrs="yes"
34064
34065else
34066
34067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34068$as_echo "no" >&6; }
34069 tst_works_getifaddrs="no"
34070
34071fi
34072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34073 conftest.$ac_objext conftest.beam conftest.$ac_ext
34074fi
34075
34076 fi
34077 #
34078 if test "$tst_compi_getifaddrs" = "yes" &&
34079 test "$tst_works_getifaddrs" != "no"; then
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34081$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34082 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34084$as_echo "yes" >&6; }
34085 tst_allow_getifaddrs="yes"
34086 else
34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34088$as_echo "no" >&6; }
34089 tst_allow_getifaddrs="no"
34090 fi
34091 fi
34092 #
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34094$as_echo_n "checking if getifaddrs might be used... " >&6; }
34095 if test "$tst_links_getifaddrs" = "yes" &&
34096 test "$tst_proto_getifaddrs" = "yes" &&
34097 test "$tst_compi_getifaddrs" = "yes" &&
34098 test "$tst_allow_getifaddrs" = "yes" &&
34099 test "$tst_works_getifaddrs" != "no"; then
34100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34101$as_echo "yes" >&6; }
34102
34103cat >>confdefs.h <<_ACEOF
34104#define HAVE_GETIFADDRS 1
34105_ACEOF
34106
34107 curl_cv_func_getifaddrs="yes"
34108 else
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34110$as_echo "no" >&6; }
34111 curl_cv_func_getifaddrs="no"
34112 fi
34113
34114
34115 #
34116 tst_links_getservbyport_r="unknown"
34117 tst_proto_getservbyport_r="unknown"
34118 tst_compi_getservbyport_r="unknown"
34119 tst_allow_getservbyport_r="unknown"
34120 tst_nargs_getservbyport_r="unknown"
34121 #
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34123$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34125/* end confdefs.h. */
34126
34127
34128#define getservbyport_r innocuous_getservbyport_r
34129#ifdef __STDC__
34130# include <limits.h>
34131#else
34132# include <assert.h>
34133#endif
34134#undef getservbyport_r
34135#ifdef __cplusplus
34136extern "C"
34137#endif
34138char getservbyport_r ();
34139#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34140choke me
34141#endif
34142
34143int main (void)
34144{
34145return getservbyport_r ();
34146 ;
34147 return 0;
34148}
34149
34150_ACEOF
34151if ac_fn_c_try_link "$LINENO"; then :
34152
34153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34154$as_echo "yes" >&6; }
34155 tst_links_getservbyport_r="yes"
34156
34157else
34158
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34160$as_echo "no" >&6; }
34161 tst_links_getservbyport_r="no"
34162
34163fi
34164rm -f core conftest.err conftest.$ac_objext \
34165 conftest$ac_exeext conftest.$ac_ext
34166 #
34167 if test "$tst_links_getservbyport_r" = "yes"; then
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34169$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34171/* end confdefs.h. */
34172
34173 $curl_includes_netdb
34174
34175_ACEOF
34176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34177 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34178
34179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180$as_echo "yes" >&6; }
34181 tst_proto_getservbyport_r="yes"
34182
34183else
34184
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34186$as_echo "no" >&6; }
34187 tst_proto_getservbyport_r="no"
34188
34189fi
34190rm -f conftest*
34191
34192 fi
34193 #
34194 if test "$tst_proto_getservbyport_r" = "yes"; then
34195 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34197$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34199/* end confdefs.h. */
34200
34201
34202 $curl_includes_netdb
34203
34204int main (void)
34205{
34206
34207 if(0 != getservbyport_r(0, 0, 0, 0))
34208 return 1;
34209
34210 ;
34211 return 0;
34212}
34213
34214_ACEOF
34215if ac_fn_c_try_compile "$LINENO"; then :
34216
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34218$as_echo "yes" >&6; }
34219 tst_compi_getservbyport_r="yes"
34220 tst_nargs_getservbyport_r="4"
34221
34222else
34223
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34225$as_echo "no" >&6; }
34226 tst_compi_getservbyport_r="no"
34227
34228fi
34229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34230 fi
34231 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34233$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34235/* end confdefs.h. */
34236
34237
34238 $curl_includes_netdb
34239
34240int main (void)
34241{
34242
34243 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34244 return 1;
34245
34246 ;
34247 return 0;
34248}
34249
34250_ACEOF
34251if ac_fn_c_try_compile "$LINENO"; then :
34252
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34254$as_echo "yes" >&6; }
34255 tst_compi_getservbyport_r="yes"
34256 tst_nargs_getservbyport_r="5"
34257
34258else
34259
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34261$as_echo "no" >&6; }
34262 tst_compi_getservbyport_r="no"
34263
34264fi
34265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34266 fi
34267 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34269$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34271/* end confdefs.h. */
34272
34273
34274 $curl_includes_netdb
34275
34276int main (void)
34277{
34278
34279 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34280 return 1;
34281
34282 ;
34283 return 0;
34284}
34285
34286_ACEOF
34287if ac_fn_c_try_compile "$LINENO"; then :
34288
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34290$as_echo "yes" >&6; }
34291 tst_compi_getservbyport_r="yes"
34292 tst_nargs_getservbyport_r="6"
34293
34294else
34295
34296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34297$as_echo "no" >&6; }
34298 tst_compi_getservbyport_r="no"
34299
34300fi
34301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 fi
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34304$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34305 if test "$tst_compi_getservbyport_r" = "yes"; then
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34307$as_echo "yes" >&6; }
34308 else
34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34310$as_echo "no" >&6; }
34311 fi
34312 fi
34313 #
34314 if test "$tst_compi_getservbyport_r" = "yes"; then
34315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34316$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34317 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34319$as_echo "yes" >&6; }
34320 tst_allow_getservbyport_r="yes"
34321 else
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34323$as_echo "no" >&6; }
34324 tst_allow_getservbyport_r="no"
34325 fi
34326 fi
34327 #
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34329$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34330 if test "$tst_links_getservbyport_r" = "yes" &&
34331 test "$tst_proto_getservbyport_r" = "yes" &&
34332 test "$tst_compi_getservbyport_r" = "yes" &&
34333 test "$tst_allow_getservbyport_r" = "yes"; then
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34335$as_echo "yes" >&6; }
34336
34337cat >>confdefs.h <<_ACEOF
34338#define HAVE_GETSERVBYPORT_R 1
34339_ACEOF
34340
34341
34342cat >>confdefs.h <<_ACEOF
34343#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34344_ACEOF
34345
34346 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34347
34348$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34349
34350 else
34351
34352$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34353
34354 fi
34355 curl_cv_func_getservbyport_r="yes"
34356 else
34357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34358$as_echo "no" >&6; }
34359 curl_cv_func_getservbyport_r="no"
34360 fi
34361
34362
34363curl_includes_time="\
34364/* includes start */
34365#ifdef HAVE_SYS_TYPES_H
34366# include <sys/types.h>
34367#endif
34368#ifdef HAVE_SYS_TIME_H
34369# include <sys/time.h>
34370# ifdef TIME_WITH_SYS_TIME
34371# include <time.h>
34372# endif
34373#else
34374# ifdef HAVE_TIME_H
34375# include <time.h>
34376# endif
34377#endif
34378/* includes end */"
34379 for ac_header in sys/types.h sys/time.h time.h
34380do :
34381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34382ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34383"
34384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34385 cat >>confdefs.h <<_ACEOF
34386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34387_ACEOF
34388
34389fi
34390
34391done
34392
34393
34394
34395 #
34396 tst_links_gmtime_r="unknown"
34397 tst_proto_gmtime_r="unknown"
34398 tst_compi_gmtime_r="unknown"
34399 tst_works_gmtime_r="unknown"
34400 tst_allow_gmtime_r="unknown"
34401 #
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34403$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34405/* end confdefs.h. */
34406
34407
34408#define gmtime_r innocuous_gmtime_r
34409#ifdef __STDC__
34410# include <limits.h>
34411#else
34412# include <assert.h>
34413#endif
34414#undef gmtime_r
34415#ifdef __cplusplus
34416extern "C"
34417#endif
34418char gmtime_r ();
34419#if defined __stub_gmtime_r || defined __stub___gmtime_r
34420choke me
34421#endif
34422
34423int main (void)
34424{
34425return gmtime_r ();
34426 ;
34427 return 0;
34428}
34429
34430_ACEOF
34431if ac_fn_c_try_link "$LINENO"; then :
34432
34433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34434$as_echo "yes" >&6; }
34435 tst_links_gmtime_r="yes"
34436
34437else
34438
34439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34440$as_echo "no" >&6; }
34441 tst_links_gmtime_r="no"
34442
34443fi
34444rm -f core conftest.err conftest.$ac_objext \
34445 conftest$ac_exeext conftest.$ac_ext
34446 #
34447 if test "$tst_links_gmtime_r" = "yes"; then
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34449$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34451/* end confdefs.h. */
34452
34453 $curl_includes_time
34454
34455_ACEOF
34456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34457 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34458
34459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34460$as_echo "yes" >&6; }
34461 tst_proto_gmtime_r="yes"
34462
34463else
34464
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34466$as_echo "no" >&6; }
34467 tst_proto_gmtime_r="no"
34468
34469fi
34470rm -f conftest*
34471
34472 fi
34473 #
34474 if test "$tst_proto_gmtime_r" = "yes"; then
34475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34476$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34478/* end confdefs.h. */
34479
34480
34481 $curl_includes_time
34482
34483int main (void)
34484{
34485
34486 if(0 != gmtime_r(0, 0))
34487 return 1;
34488
34489 ;
34490 return 0;
34491}
34492
34493_ACEOF
34494if ac_fn_c_try_compile "$LINENO"; then :
34495
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34497$as_echo "yes" >&6; }
34498 tst_compi_gmtime_r="yes"
34499
34500else
34501
34502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34503$as_echo "no" >&6; }
34504 tst_compi_gmtime_r="no"
34505
34506fi
34507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508 fi
34509 #
34510 if test "x$cross_compiling" != "xyes" &&
34511 test "$tst_compi_gmtime_r" = "yes"; then
34512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34513$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34514 if test "$cross_compiling" = yes; then :
34515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34517as_fn_error $? "cannot run test program while cross compiling
34518See \`config.log' for more details" "$LINENO" 5; }
34519else
34520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34521/* end confdefs.h. */
34522
34523
34524 $curl_includes_stdlib
34525 $curl_includes_time
34526
34527int main (void)
34528{
34529
34530 time_t local = 1170352587;
34531 struct tm *gmt = 0;
34532 struct tm result;
34533 gmt = gmtime_r(&local, &result);
34534 if(gmt)
34535 exit(0);
34536 else
34537 exit(1);
34538
34539 ;
34540 return 0;
34541}
34542
34543_ACEOF
34544if ac_fn_c_try_run "$LINENO"; then :
34545
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34547$as_echo "yes" >&6; }
34548 tst_works_gmtime_r="yes"
34549
34550else
34551
34552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34553$as_echo "no" >&6; }
34554 tst_works_gmtime_r="no"
34555
34556fi
34557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34558 conftest.$ac_objext conftest.beam conftest.$ac_ext
34559fi
34560
34561 fi
34562 #
34563 if test "$tst_compi_gmtime_r" = "yes" &&
34564 test "$tst_works_gmtime_r" != "no"; then
34565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34566$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34567 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34569$as_echo "yes" >&6; }
34570 tst_allow_gmtime_r="yes"
34571 else
34572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34573$as_echo "no" >&6; }
34574 tst_allow_gmtime_r="no"
34575 fi
34576 fi
34577 #
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34579$as_echo_n "checking if gmtime_r might be used... " >&6; }
34580 if test "$tst_links_gmtime_r" = "yes" &&
34581 test "$tst_proto_gmtime_r" = "yes" &&
34582 test "$tst_compi_gmtime_r" = "yes" &&
34583 test "$tst_allow_gmtime_r" = "yes" &&
34584 test "$tst_works_gmtime_r" != "no"; then
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34586$as_echo "yes" >&6; }
34587
34588cat >>confdefs.h <<_ACEOF
34589#define HAVE_GMTIME_R 1
34590_ACEOF
34591
34592 curl_cv_func_gmtime_r="yes"
34593 else
34594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34595$as_echo "no" >&6; }
34596 curl_cv_func_gmtime_r="no"
34597 fi
34598
34599
34600curl_includes_arpa_inet="\
34601/* includes start */
34602#ifdef HAVE_SYS_TYPES_H
34603# include <sys/types.h>
34604#endif
34605#ifdef HAVE_SYS_SOCKET_H
34606# include <sys/socket.h>
34607#endif
34608#ifdef HAVE_NETINET_IN_H
34609# include <netinet/in.h>
34610#endif
34611#ifdef HAVE_ARPA_INET_H
34612# include <arpa/inet.h>
34613#endif
34614#ifdef HAVE_WINSOCK2_H
34615#include <winsock2.h>
34616#include <ws2tcpip.h>
34617#endif
34618/* includes end */"
34619 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34620do :
34621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34622ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34623"
34624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34625 cat >>confdefs.h <<_ACEOF
34626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34627_ACEOF
34628
34629fi
34630
34631done
34632
34633
34634
34635 #
34636 tst_links_inet_ntoa_r="unknown"
34637 tst_proto_inet_ntoa_r="unknown"
34638 tst_compi_inet_ntoa_r="unknown"
34639 tst_allow_inet_ntoa_r="unknown"
34640 tst_nargs_inet_ntoa_r="unknown"
34641 #
34642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34643$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34645/* end confdefs.h. */
34646
34647
34648#define inet_ntoa_r innocuous_inet_ntoa_r
34649#ifdef __STDC__
34650# include <limits.h>
34651#else
34652# include <assert.h>
34653#endif
34654#undef inet_ntoa_r
34655#ifdef __cplusplus
34656extern "C"
34657#endif
34658char inet_ntoa_r ();
34659#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34660choke me
34661#endif
34662
34663int main (void)
34664{
34665return inet_ntoa_r ();
34666 ;
34667 return 0;
34668}
34669
34670_ACEOF
34671if ac_fn_c_try_link "$LINENO"; then :
34672
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34674$as_echo "yes" >&6; }
34675 tst_links_inet_ntoa_r="yes"
34676
34677else
34678
34679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34680$as_echo "no" >&6; }
34681 tst_links_inet_ntoa_r="no"
34682
34683fi
34684rm -f core conftest.err conftest.$ac_objext \
34685 conftest$ac_exeext conftest.$ac_ext
34686 #
34687 if test "$tst_links_inet_ntoa_r" = "yes"; then
34688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34689$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34691/* end confdefs.h. */
34692
34693 $curl_includes_arpa_inet
34694
34695_ACEOF
34696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34697 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34698
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34700$as_echo "yes" >&6; }
34701 tst_proto_inet_ntoa_r="yes"
34702
34703else
34704
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34706$as_echo "no" >&6; }
34707 tst_proto_inet_ntoa_r="no"
34708
34709fi
34710rm -f conftest*
34711
34712 fi
34713 #
34714 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34715 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34717$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34719/* end confdefs.h. */
34720
34721
34722 $curl_includes_arpa_inet
34723
34724int main (void)
34725{
34726
34727 struct in_addr addr;
34728 if(0 != inet_ntoa_r(addr, 0))
34729 return 1;
34730
34731 ;
34732 return 0;
34733}
34734
34735_ACEOF
34736if ac_fn_c_try_compile "$LINENO"; then :
34737
34738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34739$as_echo "yes" >&6; }
34740 tst_compi_inet_ntoa_r="yes"
34741 tst_nargs_inet_ntoa_r="2"
34742
34743else
34744
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34746$as_echo "no" >&6; }
34747 tst_compi_inet_ntoa_r="no"
34748
34749fi
34750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34751 fi
34752 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34754$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34756/* end confdefs.h. */
34757
34758
34759 $curl_includes_arpa_inet
34760
34761int main (void)
34762{
34763
34764 struct in_addr addr;
34765 if(0 != inet_ntoa_r(addr, 0, 0))
34766 return 1;
34767
34768 ;
34769 return 0;
34770}
34771
34772_ACEOF
34773if ac_fn_c_try_compile "$LINENO"; then :
34774
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34776$as_echo "yes" >&6; }
34777 tst_compi_inet_ntoa_r="yes"
34778 tst_nargs_inet_ntoa_r="3"
34779
34780else
34781
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34783$as_echo "no" >&6; }
34784 tst_compi_inet_ntoa_r="no"
34785
34786fi
34787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34788 fi
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34790$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34791 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34793$as_echo "yes" >&6; }
34794 else
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34796$as_echo "no" >&6; }
34797 fi
34798 fi
34799 #
34800 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34802$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34803 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34805$as_echo "yes" >&6; }
34806 tst_allow_inet_ntoa_r="yes"
34807 else
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809$as_echo "no" >&6; }
34810 tst_allow_inet_ntoa_r="no"
34811 fi
34812 fi
34813 #
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34815$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34816 if test "$tst_links_inet_ntoa_r" = "yes" &&
34817 test "$tst_proto_inet_ntoa_r" = "yes" &&
34818 test "$tst_compi_inet_ntoa_r" = "yes" &&
34819 test "$tst_allow_inet_ntoa_r" = "yes"; then
34820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34821$as_echo "yes" >&6; }
34822
34823cat >>confdefs.h <<_ACEOF
34824#define HAVE_INET_NTOA_R 1
34825_ACEOF
34826
34827 #
34828 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34829
34830$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34831
34832 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34833
34834$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34835
34836 fi
34837 #
34838 curl_cv_func_inet_ntoa_r="yes"
34839 else
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841$as_echo "no" >&6; }
34842 curl_cv_func_inet_ntoa_r="no"
34843 fi
34844
34845
34846 #
34847 tst_links_inet_ntop="unknown"
34848 tst_proto_inet_ntop="unknown"
34849 tst_compi_inet_ntop="unknown"
34850 tst_works_inet_ntop="unknown"
34851 tst_allow_inet_ntop="unknown"
34852 #
34853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34854$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34856/* end confdefs.h. */
34857
34858
34859#define inet_ntop innocuous_inet_ntop
34860#ifdef __STDC__
34861# include <limits.h>
34862#else
34863# include <assert.h>
34864#endif
34865#undef inet_ntop
34866#ifdef __cplusplus
34867extern "C"
34868#endif
34869char inet_ntop ();
34870#if defined __stub_inet_ntop || defined __stub___inet_ntop
34871choke me
34872#endif
34873
34874int main (void)
34875{
34876return inet_ntop ();
34877 ;
34878 return 0;
34879}
34880
34881_ACEOF
34882if ac_fn_c_try_link "$LINENO"; then :
34883
34884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34885$as_echo "yes" >&6; }
34886 tst_links_inet_ntop="yes"
34887
34888else
34889
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34891$as_echo "no" >&6; }
34892 tst_links_inet_ntop="no"
34893
34894fi
34895rm -f core conftest.err conftest.$ac_objext \
34896 conftest$ac_exeext conftest.$ac_ext
34897 #
34898 if test "$tst_links_inet_ntop" = "yes"; then
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34900$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34902/* end confdefs.h. */
34903
34904 $curl_includes_arpa_inet
34905
34906_ACEOF
34907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34908 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34909
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34911$as_echo "yes" >&6; }
34912 tst_proto_inet_ntop="yes"
34913
34914else
34915
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34917$as_echo "no" >&6; }
34918 tst_proto_inet_ntop="no"
34919
34920fi
34921rm -f conftest*
34922
34923 fi
34924 #
34925 if test "$tst_proto_inet_ntop" = "yes"; then
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34927$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34929/* end confdefs.h. */
34930
34931
34932 $curl_includes_arpa_inet
34933
34934int main (void)
34935{
34936
34937 if(0 != inet_ntop(0, 0, 0, 0))
34938 return 1;
34939
34940 ;
34941 return 0;
34942}
34943
34944_ACEOF
34945if ac_fn_c_try_compile "$LINENO"; then :
34946
34947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34948$as_echo "yes" >&6; }
34949 tst_compi_inet_ntop="yes"
34950
34951else
34952
34953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34954$as_echo "no" >&6; }
34955 tst_compi_inet_ntop="no"
34956
34957fi
34958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34959 fi
34960 #
34961 if test "x$cross_compiling" != "xyes" &&
34962 test "$tst_compi_inet_ntop" = "yes"; then
34963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34964$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34965 if test "$cross_compiling" = yes; then :
34966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34968as_fn_error $? "cannot run test program while cross compiling
34969See \`config.log' for more details" "$LINENO" 5; }
34970else
34971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34972/* end confdefs.h. */
34973
34974
34975 $curl_includes_stdlib
34976 $curl_includes_arpa_inet
34977 $curl_includes_string
34978
34979int main (void)
34980{
34981
34982 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34983 char ipv4res[sizeof "255.255.255.255"];
34984 unsigned char ipv6a[26];
34985 unsigned char ipv4a[5];
34986 char *ipv6ptr = 0;
34987 char *ipv4ptr = 0;
34988 /* - */
34989 ipv4res[0] = '\0';
34990 ipv4a[0] = 0xc0;
34991 ipv4a[1] = 0xa8;
34992 ipv4a[2] = 0x64;
34993 ipv4a[3] = 0x01;
34994 ipv4a[4] = 0x01;
34995 /* - */
34996 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34997 if(!ipv4ptr)
34998 exit(1); /* fail */
34999 if(ipv4ptr != ipv4res)
35000 exit(1); /* fail */
35001 if(!ipv4ptr[0])
35002 exit(1); /* fail */
35003 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35004 exit(1); /* fail */
35005 /* - */
35006 ipv6res[0] = '\0';
35007 memset(ipv6a, 0, sizeof(ipv6a));
35008 ipv6a[0] = 0xfe;
35009 ipv6a[1] = 0x80;
35010 ipv6a[8] = 0x02;
35011 ipv6a[9] = 0x14;
35012 ipv6a[10] = 0x4f;
35013 ipv6a[11] = 0xff;
35014 ipv6a[12] = 0xfe;
35015 ipv6a[13] = 0x0b;
35016 ipv6a[14] = 0x76;
35017 ipv6a[15] = 0xc8;
35018 ipv6a[25] = 0x01;
35019 /* - */
35020 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35021 if(!ipv6ptr)
35022 exit(1); /* fail */
35023 if(ipv6ptr != ipv6res)
35024 exit(1); /* fail */
35025 if(!ipv6ptr[0])
35026 exit(1); /* fail */
35027 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35028 exit(1); /* fail */
35029 /* - */
35030 exit(0);
35031
35032 ;
35033 return 0;
35034}
35035
35036_ACEOF
35037if ac_fn_c_try_run "$LINENO"; then :
35038
35039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35040$as_echo "yes" >&6; }
35041 tst_works_inet_ntop="yes"
35042
35043else
35044
35045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35046$as_echo "no" >&6; }
35047 tst_works_inet_ntop="no"
35048
35049fi
35050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35051 conftest.$ac_objext conftest.beam conftest.$ac_ext
35052fi
35053
35054 fi
35055 #
35056 if test "$tst_compi_inet_ntop" = "yes" &&
35057 test "$tst_works_inet_ntop" != "no"; then
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35059$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35060 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35062$as_echo "yes" >&6; }
35063 tst_allow_inet_ntop="yes"
35064 else
35065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35066$as_echo "no" >&6; }
35067 tst_allow_inet_ntop="no"
35068 fi
35069 fi
35070 #
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35072$as_echo_n "checking if inet_ntop might be used... " >&6; }
35073 if test "$tst_links_inet_ntop" = "yes" &&
35074 test "$tst_proto_inet_ntop" = "yes" &&
35075 test "$tst_compi_inet_ntop" = "yes" &&
35076 test "$tst_allow_inet_ntop" = "yes" &&
35077 test "$tst_works_inet_ntop" != "no"; then
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35079$as_echo "yes" >&6; }
35080
35081cat >>confdefs.h <<_ACEOF
35082#define HAVE_INET_NTOP 1
35083_ACEOF
35084
35085 curl_cv_func_inet_ntop="yes"
35086 else
35087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35088$as_echo "no" >&6; }
35089 curl_cv_func_inet_ntop="no"
35090 fi
35091
35092
35093 #
35094 tst_links_inet_pton="unknown"
35095 tst_proto_inet_pton="unknown"
35096 tst_compi_inet_pton="unknown"
35097 tst_works_inet_pton="unknown"
35098 tst_allow_inet_pton="unknown"
35099 #
35100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35101$as_echo_n "checking if inet_pton can be linked... " >&6; }
35102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35103/* end confdefs.h. */
35104
35105
35106#define inet_pton innocuous_inet_pton
35107#ifdef __STDC__
35108# include <limits.h>
35109#else
35110# include <assert.h>
35111#endif
35112#undef inet_pton
35113#ifdef __cplusplus
35114extern "C"
35115#endif
35116char inet_pton ();
35117#if defined __stub_inet_pton || defined __stub___inet_pton
35118choke me
35119#endif
35120
35121int main (void)
35122{
35123return inet_pton ();
35124 ;
35125 return 0;
35126}
35127
35128_ACEOF
35129if ac_fn_c_try_link "$LINENO"; then :
35130
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35132$as_echo "yes" >&6; }
35133 tst_links_inet_pton="yes"
35134
35135else
35136
35137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35138$as_echo "no" >&6; }
35139 tst_links_inet_pton="no"
35140
35141fi
35142rm -f core conftest.err conftest.$ac_objext \
35143 conftest$ac_exeext conftest.$ac_ext
35144 #
35145 if test "$tst_links_inet_pton" = "yes"; then
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35147$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35149/* end confdefs.h. */
35150
35151 $curl_includes_arpa_inet
35152
35153_ACEOF
35154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35155 $EGREP "inet_pton" >/dev/null 2>&1; then :
35156
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35158$as_echo "yes" >&6; }
35159 tst_proto_inet_pton="yes"
35160
35161else
35162
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35164$as_echo "no" >&6; }
35165 tst_proto_inet_pton="no"
35166
35167fi
35168rm -f conftest*
35169
35170 fi
35171 #
35172 if test "$tst_proto_inet_pton" = "yes"; then
35173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35174$as_echo_n "checking if inet_pton is compilable... " >&6; }
35175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35176/* end confdefs.h. */
35177
35178
35179 $curl_includes_arpa_inet
35180
35181int main (void)
35182{
35183
35184 if(0 != inet_pton(0, 0, 0))
35185 return 1;
35186
35187 ;
35188 return 0;
35189}
35190
35191_ACEOF
35192if ac_fn_c_try_compile "$LINENO"; then :
35193
35194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35195$as_echo "yes" >&6; }
35196 tst_compi_inet_pton="yes"
35197
35198else
35199
35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35201$as_echo "no" >&6; }
35202 tst_compi_inet_pton="no"
35203
35204fi
35205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35206 fi
35207 #
35208 if test "x$cross_compiling" != "xyes" &&
35209 test "$tst_compi_inet_pton" = "yes"; then
35210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35211$as_echo_n "checking if inet_pton seems to work... " >&6; }
35212 if test "$cross_compiling" = yes; then :
35213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35215as_fn_error $? "cannot run test program while cross compiling
35216See \`config.log' for more details" "$LINENO" 5; }
35217else
35218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35219/* end confdefs.h. */
35220
35221
35222 $curl_includes_stdlib
35223 $curl_includes_arpa_inet
35224 $curl_includes_string
35225
35226int main (void)
35227{
35228
35229 unsigned char ipv6a[16+1];
35230 unsigned char ipv4a[4+1];
35231 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35232 const char *ipv4src = "192.168.100.1";
35233 /* - */
35234 memset(ipv4a, 1, sizeof(ipv4a));
35235 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35236 exit(1); /* fail */
35237 /* - */
35238 if( (ipv4a[0] != 0xc0) ||
35239 (ipv4a[1] != 0xa8) ||
35240 (ipv4a[2] != 0x64) ||
35241 (ipv4a[3] != 0x01) ||
35242 (ipv4a[4] != 0x01) )
35243 exit(1); /* fail */
35244 /* - */
35245 memset(ipv6a, 1, sizeof(ipv6a));
35246 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35247 exit(1); /* fail */
35248 /* - */
35249 if( (ipv6a[0] != 0xfe) ||
35250 (ipv6a[1] != 0x80) ||
35251 (ipv6a[8] != 0x02) ||
35252 (ipv6a[9] != 0x14) ||
35253 (ipv6a[10] != 0x4f) ||
35254 (ipv6a[11] != 0xff) ||
35255 (ipv6a[12] != 0xfe) ||
35256 (ipv6a[13] != 0x0b) ||
35257 (ipv6a[14] != 0x76) ||
35258 (ipv6a[15] != 0xc8) ||
35259 (ipv6a[16] != 0x01) )
35260 exit(1); /* fail */
35261 /* - */
35262 if( (ipv6a[2] != 0x0) ||
35263 (ipv6a[3] != 0x0) ||
35264 (ipv6a[4] != 0x0) ||
35265 (ipv6a[5] != 0x0) ||
35266 (ipv6a[6] != 0x0) ||
35267 (ipv6a[7] != 0x0) )
35268 exit(1); /* fail */
35269 /* - */
35270 exit(0);
35271
35272 ;
35273 return 0;
35274}
35275
35276_ACEOF
35277if ac_fn_c_try_run "$LINENO"; then :
35278
35279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35280$as_echo "yes" >&6; }
35281 tst_works_inet_pton="yes"
35282
35283else
35284
35285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286$as_echo "no" >&6; }
35287 tst_works_inet_pton="no"
35288
35289fi
35290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35291 conftest.$ac_objext conftest.beam conftest.$ac_ext
35292fi
35293
35294 fi
35295 #
35296 if test "$tst_compi_inet_pton" = "yes" &&
35297 test "$tst_works_inet_pton" != "no"; then
35298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35299$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35300 if test "x$curl_disallow_inet_pton" != "xyes"; then
35301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35302$as_echo "yes" >&6; }
35303 tst_allow_inet_pton="yes"
35304 else
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306$as_echo "no" >&6; }
35307 tst_allow_inet_pton="no"
35308 fi
35309 fi
35310 #
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35312$as_echo_n "checking if inet_pton might be used... " >&6; }
35313 if test "$tst_links_inet_pton" = "yes" &&
35314 test "$tst_proto_inet_pton" = "yes" &&
35315 test "$tst_compi_inet_pton" = "yes" &&
35316 test "$tst_allow_inet_pton" = "yes" &&
35317 test "$tst_works_inet_pton" != "no"; then
35318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35319$as_echo "yes" >&6; }
35320
35321cat >>confdefs.h <<_ACEOF
35322#define HAVE_INET_PTON 1
35323_ACEOF
35324
35325 curl_cv_func_inet_pton="yes"
35326 else
35327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35328$as_echo "no" >&6; }
35329 curl_cv_func_inet_pton="no"
35330 fi
35331
35332
35333curl_includes_stropts="\
35334/* includes start */
35335#ifdef HAVE_SYS_TYPES_H
35336# include <sys/types.h>
35337#endif
35338#ifdef HAVE_UNISTD_H
35339# include <unistd.h>
35340#endif
35341#ifdef HAVE_SYS_SOCKET_H
35342# include <sys/socket.h>
35343#endif
35344#ifdef HAVE_SYS_IOCTL_H
35345# include <sys/ioctl.h>
35346#endif
35347#ifdef HAVE_STROPTS_H
35348# include <stropts.h>
35349#endif
35350/* includes end */"
35351 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35352do :
35353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35354ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35355"
35356if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35357 cat >>confdefs.h <<_ACEOF
35358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35359_ACEOF
35360
35361fi
35362
35363done
35364
35365
35366
35367 #
35368 tst_links_ioctl="unknown"
35369 tst_proto_ioctl="unknown"
35370 tst_compi_ioctl="unknown"
35371 tst_allow_ioctl="unknown"
35372 #
35373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35374$as_echo_n "checking if ioctl can be linked... " >&6; }
35375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35376/* end confdefs.h. */
35377
35378
35379#define ioctl innocuous_ioctl
35380#ifdef __STDC__
35381# include <limits.h>
35382#else
35383# include <assert.h>
35384#endif
35385#undef ioctl
35386#ifdef __cplusplus
35387extern "C"
35388#endif
35389char ioctl ();
35390#if defined __stub_ioctl || defined __stub___ioctl
35391choke me
35392#endif
35393
35394int main (void)
35395{
35396return ioctl ();
35397 ;
35398 return 0;
35399}
35400
35401_ACEOF
35402if ac_fn_c_try_link "$LINENO"; then :
35403
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35405$as_echo "yes" >&6; }
35406 tst_links_ioctl="yes"
35407
35408else
35409
35410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35411$as_echo "no" >&6; }
35412 tst_links_ioctl="no"
35413
35414fi
35415rm -f core conftest.err conftest.$ac_objext \
35416 conftest$ac_exeext conftest.$ac_ext
35417 #
35418 if test "$tst_links_ioctl" = "yes"; then
35419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35420$as_echo_n "checking if ioctl is prototyped... " >&6; }
35421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35422/* end confdefs.h. */
35423
35424 $curl_includes_stropts
35425
35426_ACEOF
35427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35428 $EGREP "ioctl" >/dev/null 2>&1; then :
35429
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35431$as_echo "yes" >&6; }
35432 tst_proto_ioctl="yes"
35433
35434else
35435
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35437$as_echo "no" >&6; }
35438 tst_proto_ioctl="no"
35439
35440fi
35441rm -f conftest*
35442
35443 fi
35444 #
35445 if test "$tst_proto_ioctl" = "yes"; then
35446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35447$as_echo_n "checking if ioctl is compilable... " >&6; }
35448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35449/* end confdefs.h. */
35450
35451
35452 $curl_includes_stropts
35453
35454int main (void)
35455{
35456
35457 if(0 != ioctl(0, 0, 0))
35458 return 1;
35459
35460 ;
35461 return 0;
35462}
35463
35464_ACEOF
35465if ac_fn_c_try_compile "$LINENO"; then :
35466
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35468$as_echo "yes" >&6; }
35469 tst_compi_ioctl="yes"
35470
35471else
35472
35473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35474$as_echo "no" >&6; }
35475 tst_compi_ioctl="no"
35476
35477fi
35478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35479 fi
35480 #
35481 if test "$tst_compi_ioctl" = "yes"; then
35482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35483$as_echo_n "checking if ioctl usage allowed... " >&6; }
35484 if test "x$curl_disallow_ioctl" != "xyes"; then
35485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35486$as_echo "yes" >&6; }
35487 tst_allow_ioctl="yes"
35488 else
35489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35490$as_echo "no" >&6; }
35491 tst_allow_ioctl="no"
35492 fi
35493 fi
35494 #
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35496$as_echo_n "checking if ioctl might be used... " >&6; }
35497 if test "$tst_links_ioctl" = "yes" &&
35498 test "$tst_proto_ioctl" = "yes" &&
35499 test "$tst_compi_ioctl" = "yes" &&
35500 test "$tst_allow_ioctl" = "yes"; then
35501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35502$as_echo "yes" >&6; }
35503
35504cat >>confdefs.h <<_ACEOF
35505#define HAVE_IOCTL 1
35506_ACEOF
35507
35508 curl_cv_func_ioctl="yes"
35509
35510 #
35511 tst_compi_ioctl_fionbio="unknown"
35512 tst_allow_ioctl_fionbio="unknown"
35513 #
35514 if test "$curl_cv_func_ioctl" = "yes"; then
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35516$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35518/* end confdefs.h. */
35519
35520
35521 $curl_includes_stropts
35522
35523int main (void)
35524{
35525
35526 int flags = 0;
35527 if(0 != ioctl(0, FIONBIO, &flags))
35528 return 1;
35529
35530 ;
35531 return 0;
35532}
35533
35534_ACEOF
35535if ac_fn_c_try_compile "$LINENO"; then :
35536
35537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35538$as_echo "yes" >&6; }
35539 tst_compi_ioctl_fionbio="yes"
35540
35541else
35542
35543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35544$as_echo "no" >&6; }
35545 tst_compi_ioctl_fionbio="no"
35546
35547fi
35548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35549 fi
35550 #
35551 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35553$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35554 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35556$as_echo "yes" >&6; }
35557 tst_allow_ioctl_fionbio="yes"
35558 else
35559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35560$as_echo "no" >&6; }
35561 tst_allow_ioctl_fionbio="no"
35562 fi
35563 fi
35564 #
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35566$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35567 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35568 test "$tst_allow_ioctl_fionbio" = "yes"; then
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570$as_echo "yes" >&6; }
35571
35572cat >>confdefs.h <<_ACEOF
35573#define HAVE_IOCTL_FIONBIO 1
35574_ACEOF
35575
35576 curl_cv_func_ioctl_fionbio="yes"
35577 else
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35579$as_echo "no" >&6; }
35580 curl_cv_func_ioctl_fionbio="no"
35581 fi
35582
35583
35584 #
35585 tst_compi_ioctl_siocgifaddr="unknown"
35586 tst_allow_ioctl_siocgifaddr="unknown"
35587 #
35588 if test "$curl_cv_func_ioctl" = "yes"; then
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35590$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35592/* end confdefs.h. */
35593
35594
35595 $curl_includes_stropts
35596 #include <net/if.h>
35597
35598int main (void)
35599{
35600
35601 struct ifreq ifr;
35602 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35603 return 1;
35604
35605 ;
35606 return 0;
35607}
35608
35609_ACEOF
35610if ac_fn_c_try_compile "$LINENO"; then :
35611
35612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35613$as_echo "yes" >&6; }
35614 tst_compi_ioctl_siocgifaddr="yes"
35615
35616else
35617
35618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35619$as_echo "no" >&6; }
35620 tst_compi_ioctl_siocgifaddr="no"
35621
35622fi
35623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624 fi
35625 #
35626 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35628$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35629 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35631$as_echo "yes" >&6; }
35632 tst_allow_ioctl_siocgifaddr="yes"
35633 else
35634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35635$as_echo "no" >&6; }
35636 tst_allow_ioctl_siocgifaddr="no"
35637 fi
35638 fi
35639 #
35640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35641$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35642 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35643 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645$as_echo "yes" >&6; }
35646
35647cat >>confdefs.h <<_ACEOF
35648#define HAVE_IOCTL_SIOCGIFADDR 1
35649_ACEOF
35650
35651 curl_cv_func_ioctl_siocgifaddr="yes"
35652 else
35653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35654$as_echo "no" >&6; }
35655 curl_cv_func_ioctl_siocgifaddr="no"
35656 fi
35657
35658 else
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35660$as_echo "no" >&6; }
35661 curl_cv_func_ioctl="no"
35662 fi
35663
35664
35665 #
35666 tst_links_ioctlsocket="unknown"
35667 tst_proto_ioctlsocket="unknown"
35668 tst_compi_ioctlsocket="unknown"
35669 tst_allow_ioctlsocket="unknown"
35670 #
35671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35672$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35674/* end confdefs.h. */
35675
35676
35677 $curl_includes_winsock2
35678
35679int main (void)
35680{
35681
35682 if(0 != ioctlsocket(0, 0, 0))
35683 return 1;
35684
35685 ;
35686 return 0;
35687}
35688
35689_ACEOF
35690if ac_fn_c_try_link "$LINENO"; then :
35691
35692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35693$as_echo "yes" >&6; }
35694 tst_links_ioctlsocket="yes"
35695
35696else
35697
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699$as_echo "no" >&6; }
35700 tst_links_ioctlsocket="no"
35701
35702fi
35703rm -f core conftest.err conftest.$ac_objext \
35704 conftest$ac_exeext conftest.$ac_ext
35705 #
35706 if test "$tst_links_ioctlsocket" = "yes"; then
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35708$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35710/* end confdefs.h. */
35711
35712 $curl_includes_winsock2
35713
35714_ACEOF
35715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35716 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35717
35718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35719$as_echo "yes" >&6; }
35720 tst_proto_ioctlsocket="yes"
35721
35722else
35723
35724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35725$as_echo "no" >&6; }
35726 tst_proto_ioctlsocket="no"
35727
35728fi
35729rm -f conftest*
35730
35731 fi
35732 #
35733 if test "$tst_proto_ioctlsocket" = "yes"; then
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35735$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35737/* end confdefs.h. */
35738
35739
35740 $curl_includes_winsock2
35741
35742int main (void)
35743{
35744
35745 if(0 != ioctlsocket(0, 0, 0))
35746 return 1;
35747
35748 ;
35749 return 0;
35750}
35751
35752_ACEOF
35753if ac_fn_c_try_compile "$LINENO"; then :
35754
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35756$as_echo "yes" >&6; }
35757 tst_compi_ioctlsocket="yes"
35758
35759else
35760
35761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35762$as_echo "no" >&6; }
35763 tst_compi_ioctlsocket="no"
35764
35765fi
35766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35767 fi
35768 #
35769 if test "$tst_compi_ioctlsocket" = "yes"; then
35770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35771$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35772 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35774$as_echo "yes" >&6; }
35775 tst_allow_ioctlsocket="yes"
35776 else
35777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35778$as_echo "no" >&6; }
35779 tst_allow_ioctlsocket="no"
35780 fi
35781 fi
35782 #
35783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35784$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35785 if test "$tst_links_ioctlsocket" = "yes" &&
35786 test "$tst_proto_ioctlsocket" = "yes" &&
35787 test "$tst_compi_ioctlsocket" = "yes" &&
35788 test "$tst_allow_ioctlsocket" = "yes"; then
35789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35790$as_echo "yes" >&6; }
35791
35792cat >>confdefs.h <<_ACEOF
35793#define HAVE_IOCTLSOCKET 1
35794_ACEOF
35795
35796 curl_cv_func_ioctlsocket="yes"
35797
35798 #
35799 tst_compi_ioctlsocket_fionbio="unknown"
35800 tst_allow_ioctlsocket_fionbio="unknown"
35801 #
35802 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35804$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35806/* end confdefs.h. */
35807
35808
35809 $curl_includes_winsock2
35810
35811int main (void)
35812{
35813
35814 int flags = 0;
35815 if(0 != ioctlsocket(0, FIONBIO, &flags))
35816 return 1;
35817
35818 ;
35819 return 0;
35820}
35821
35822_ACEOF
35823if ac_fn_c_try_compile "$LINENO"; then :
35824
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35826$as_echo "yes" >&6; }
35827 tst_compi_ioctlsocket_fionbio="yes"
35828
35829else
35830
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35832$as_echo "no" >&6; }
35833 tst_compi_ioctlsocket_fionbio="no"
35834
35835fi
35836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35837 fi
35838 #
35839 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35841$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35842 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35844$as_echo "yes" >&6; }
35845 tst_allow_ioctlsocket_fionbio="yes"
35846 else
35847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35848$as_echo "no" >&6; }
35849 tst_allow_ioctlsocket_fionbio="no"
35850 fi
35851 fi
35852 #
35853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35854$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35855 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35856 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35858$as_echo "yes" >&6; }
35859
35860cat >>confdefs.h <<_ACEOF
35861#define HAVE_IOCTLSOCKET_FIONBIO 1
35862_ACEOF
35863
35864 curl_cv_func_ioctlsocket_fionbio="yes"
35865 else
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35867$as_echo "no" >&6; }
35868 curl_cv_func_ioctlsocket_fionbio="no"
35869 fi
35870
35871 else
35872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35873$as_echo "no" >&6; }
35874 curl_cv_func_ioctlsocket="no"
35875 fi
35876
35877
35878 #
35879 tst_links_ioctlsocket_camel="unknown"
35880 tst_proto_ioctlsocket_camel="unknown"
35881 tst_compi_ioctlsocket_camel="unknown"
35882 tst_allow_ioctlsocket_camel="unknown"
35883 #
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35885$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35887/* end confdefs.h. */
35888
35889
35890#define IoctlSocket innocuous_IoctlSocket
35891#ifdef __STDC__
35892# include <limits.h>
35893#else
35894# include <assert.h>
35895#endif
35896#undef IoctlSocket
35897#ifdef __cplusplus
35898extern "C"
35899#endif
35900char IoctlSocket ();
35901#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35902choke me
35903#endif
35904
35905int main (void)
35906{
35907return IoctlSocket ();
35908 ;
35909 return 0;
35910}
35911
35912_ACEOF
35913if ac_fn_c_try_link "$LINENO"; then :
35914
35915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35916$as_echo "yes" >&6; }
35917 tst_links_ioctlsocket_camel="yes"
35918
35919else
35920
35921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35922$as_echo "no" >&6; }
35923 tst_links_ioctlsocket_camel="no"
35924
35925fi
35926rm -f core conftest.err conftest.$ac_objext \
35927 conftest$ac_exeext conftest.$ac_ext
35928 #
35929 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35931$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35933/* end confdefs.h. */
35934
35935 $curl_includes_stropts
35936
35937_ACEOF
35938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35939 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35940
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942$as_echo "yes" >&6; }
35943 tst_proto_ioctlsocket_camel="yes"
35944
35945else
35946
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35948$as_echo "no" >&6; }
35949 tst_proto_ioctlsocket_camel="no"
35950
35951fi
35952rm -f conftest*
35953
35954 fi
35955 #
35956 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35958$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35960/* end confdefs.h. */
35961
35962
35963 $curl_includes_stropts
35964
35965int main (void)
35966{
35967
35968 if(0 != IoctlSocket(0, 0, 0))
35969 return 1;
35970
35971 ;
35972 return 0;
35973}
35974
35975_ACEOF
35976if ac_fn_c_try_compile "$LINENO"; then :
35977
35978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35979$as_echo "yes" >&6; }
35980 tst_compi_ioctlsocket_camel="yes"
35981
35982else
35983
35984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35985$as_echo "no" >&6; }
35986 tst_compi_ioctlsocket_camel="no"
35987
35988fi
35989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35990 fi
35991 #
35992 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35994$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35995 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35997$as_echo "yes" >&6; }
35998 tst_allow_ioctlsocket_camel="yes"
35999 else
36000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36001$as_echo "no" >&6; }
36002 tst_allow_ioctlsocket_camel="no"
36003 fi
36004 fi
36005 #
36006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36007$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36008 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36009 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36010 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36011 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36013$as_echo "yes" >&6; }
36014
36015cat >>confdefs.h <<_ACEOF
36016#define HAVE_IOCTLSOCKET_CAMEL 1
36017_ACEOF
36018
36019 curl_cv_func_ioctlsocket_camel="yes"
36020
36021 #
36022 tst_compi_ioctlsocket_camel_fionbio="unknown"
36023 tst_allow_ioctlsocket_camel_fionbio="unknown"
36024 #
36025 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36027$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36029/* end confdefs.h. */
36030
36031
36032 $curl_includes_stropts
36033
36034int main (void)
36035{
36036
36037 long flags = 0;
36038 if(0 != ioctlsocket(0, FIONBIO, &flags))
36039 return 1;
36040
36041 ;
36042 return 0;
36043}
36044
36045_ACEOF
36046if ac_fn_c_try_compile "$LINENO"; then :
36047
36048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36049$as_echo "yes" >&6; }
36050 tst_compi_ioctlsocket_camel_fionbio="yes"
36051
36052else
36053
36054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36055$as_echo "no" >&6; }
36056 tst_compi_ioctlsocket_camel_fionbio="no"
36057
36058fi
36059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36060 fi
36061 #
36062 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36064$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36065 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36067$as_echo "yes" >&6; }
36068 tst_allow_ioctlsocket_camel_fionbio="yes"
36069 else
36070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36071$as_echo "no" >&6; }
36072 tst_allow_ioctlsocket_camel_fionbio="no"
36073 fi
36074 fi
36075 #
36076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36077$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36078 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36079 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081$as_echo "yes" >&6; }
36082
36083cat >>confdefs.h <<_ACEOF
36084#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36085_ACEOF
36086
36087 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36088 else
36089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36090$as_echo "no" >&6; }
36091 curl_cv_func_ioctlsocket_camel_fionbio="no"
36092 fi
36093
36094 else
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36096$as_echo "no" >&6; }
36097 curl_cv_func_ioctlsocket_camel="no"
36098 fi
36099
36100
36101 #
36102 tst_links_localtime_r="unknown"
36103 tst_proto_localtime_r="unknown"
36104 tst_compi_localtime_r="unknown"
36105 tst_works_localtime_r="unknown"
36106 tst_allow_localtime_r="unknown"
36107 #
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36109$as_echo_n "checking if localtime_r can be linked... " >&6; }
36110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36111/* end confdefs.h. */
36112
36113
36114#define localtime_r innocuous_localtime_r
36115#ifdef __STDC__
36116# include <limits.h>
36117#else
36118# include <assert.h>
36119#endif
36120#undef localtime_r
36121#ifdef __cplusplus
36122extern "C"
36123#endif
36124char localtime_r ();
36125#if defined __stub_localtime_r || defined __stub___localtime_r
36126choke me
36127#endif
36128
36129int main (void)
36130{
36131return localtime_r ();
36132 ;
36133 return 0;
36134}
36135
36136_ACEOF
36137if ac_fn_c_try_link "$LINENO"; then :
36138
36139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36140$as_echo "yes" >&6; }
36141 tst_links_localtime_r="yes"
36142
36143else
36144
36145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36146$as_echo "no" >&6; }
36147 tst_links_localtime_r="no"
36148
36149fi
36150rm -f core conftest.err conftest.$ac_objext \
36151 conftest$ac_exeext conftest.$ac_ext
36152 #
36153 if test "$tst_links_localtime_r" = "yes"; then
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36155$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36157/* end confdefs.h. */
36158
36159 $curl_includes_time
36160
36161_ACEOF
36162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36163 $EGREP "localtime_r" >/dev/null 2>&1; then :
36164
36165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36166$as_echo "yes" >&6; }
36167 tst_proto_localtime_r="yes"
36168
36169else
36170
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36172$as_echo "no" >&6; }
36173 tst_proto_localtime_r="no"
36174
36175fi
36176rm -f conftest*
36177
36178 fi
36179 #
36180 if test "$tst_proto_localtime_r" = "yes"; then
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36182$as_echo_n "checking if localtime_r is compilable... " >&6; }
36183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36184/* end confdefs.h. */
36185
36186
36187 $curl_includes_time
36188
36189int main (void)
36190{
36191
36192 if(0 != localtime_r(0, 0))
36193 return 1;
36194
36195 ;
36196 return 0;
36197}
36198
36199_ACEOF
36200if ac_fn_c_try_compile "$LINENO"; then :
36201
36202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36203$as_echo "yes" >&6; }
36204 tst_compi_localtime_r="yes"
36205
36206else
36207
36208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36209$as_echo "no" >&6; }
36210 tst_compi_localtime_r="no"
36211
36212fi
36213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36214 fi
36215 #
36216 if test "x$cross_compiling" != "xyes" &&
36217 test "$tst_compi_localtime_r" = "yes"; then
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36219$as_echo_n "checking if localtime_r seems to work... " >&6; }
36220 if test "$cross_compiling" = yes; then :
36221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36223as_fn_error $? "cannot run test program while cross compiling
36224See \`config.log' for more details" "$LINENO" 5; }
36225else
36226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36227/* end confdefs.h. */
36228
36229
36230 $curl_includes_stdlib
36231 $curl_includes_time
36232
36233int main (void)
36234{
36235
36236 time_t clock = 1170352587;
36237 struct tm *tmp = 0;
36238 struct tm result;
36239 tmp = localtime_r(&clock, &result);
36240 if(tmp)
36241 exit(0);
36242 else
36243 exit(1);
36244
36245 ;
36246 return 0;
36247}
36248
36249_ACEOF
36250if ac_fn_c_try_run "$LINENO"; then :
36251
36252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36253$as_echo "yes" >&6; }
36254 tst_works_localtime_r="yes"
36255
36256else
36257
36258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36259$as_echo "no" >&6; }
36260 tst_works_localtime_r="no"
36261
36262fi
36263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36264 conftest.$ac_objext conftest.beam conftest.$ac_ext
36265fi
36266
36267 fi
36268 #
36269 if test "$tst_compi_localtime_r" = "yes" &&
36270 test "$tst_works_localtime_r" != "no"; then
36271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36272$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36273 if test "x$curl_disallow_localtime_r" != "xyes"; then
36274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36275$as_echo "yes" >&6; }
36276 tst_allow_localtime_r="yes"
36277 else
36278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36279$as_echo "no" >&6; }
36280 tst_allow_localtime_r="no"
36281 fi
36282 fi
36283 #
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36285$as_echo_n "checking if localtime_r might be used... " >&6; }
36286 if test "$tst_links_localtime_r" = "yes" &&
36287 test "$tst_proto_localtime_r" = "yes" &&
36288 test "$tst_compi_localtime_r" = "yes" &&
36289 test "$tst_allow_localtime_r" = "yes" &&
36290 test "$tst_works_localtime_r" != "no"; then
36291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36292$as_echo "yes" >&6; }
36293
36294cat >>confdefs.h <<_ACEOF
36295#define HAVE_LOCALTIME_R 1
36296_ACEOF
36297
36298 curl_cv_func_localtime_r="yes"
36299 else
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36301$as_echo "no" >&6; }
36302 curl_cv_func_localtime_r="no"
36303 fi
36304
36305
36306 #
36307 tst_links_memrchr="unknown"
36308 tst_macro_memrchr="unknown"
36309 tst_proto_memrchr="unknown"
36310 tst_compi_memrchr="unknown"
36311 tst_allow_memrchr="unknown"
36312 #
36313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36314$as_echo_n "checking if memrchr can be linked... " >&6; }
36315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36316/* end confdefs.h. */
36317
36318
36319#define memrchr innocuous_memrchr
36320#ifdef __STDC__
36321# include <limits.h>
36322#else
36323# include <assert.h>
36324#endif
36325#undef memrchr
36326#ifdef __cplusplus
36327extern "C"
36328#endif
36329char memrchr ();
36330#if defined __stub_memrchr || defined __stub___memrchr
36331choke me
36332#endif
36333
36334int main (void)
36335{
36336return memrchr ();
36337 ;
36338 return 0;
36339}
36340
36341_ACEOF
36342if ac_fn_c_try_link "$LINENO"; then :
36343
36344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36345$as_echo "yes" >&6; }
36346 tst_links_memrchr="yes"
36347
36348else
36349
36350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36351$as_echo "no" >&6; }
36352 tst_links_memrchr="no"
36353
36354fi
36355rm -f core conftest.err conftest.$ac_objext \
36356 conftest$ac_exeext conftest.$ac_ext
36357 #
36358 if test "$tst_links_memrchr" = "no"; then
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36360$as_echo_n "checking if memrchr seems a macro... " >&6; }
36361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36362/* end confdefs.h. */
36363
36364
36365 $curl_includes_string
36366
36367int main (void)
36368{
36369
36370 if(0 != memrchr(0, 0, 0))
36371 return 1;
36372
36373 ;
36374 return 0;
36375}
36376
36377_ACEOF
36378if ac_fn_c_try_link "$LINENO"; then :
36379
36380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36381$as_echo "yes" >&6; }
36382 tst_macro_memrchr="yes"
36383
36384else
36385
36386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36387$as_echo "no" >&6; }
36388 tst_macro_memrchr="no"
36389
36390fi
36391rm -f core conftest.err conftest.$ac_objext \
36392 conftest$ac_exeext conftest.$ac_ext
36393 fi
36394 #
36395 if test "$tst_links_memrchr" = "yes"; then
36396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36397$as_echo_n "checking if memrchr is prototyped... " >&6; }
36398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36399/* end confdefs.h. */
36400
36401 $curl_includes_string
36402
36403_ACEOF
36404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36405 $EGREP "memrchr" >/dev/null 2>&1; then :
36406
36407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36408$as_echo "yes" >&6; }
36409 tst_proto_memrchr="yes"
36410
36411else
36412
36413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36414$as_echo "no" >&6; }
36415 tst_proto_memrchr="no"
36416
36417fi
36418rm -f conftest*
36419
36420 fi
36421 #
36422 if test "$tst_proto_memrchr" = "yes" ||
36423 test "$tst_macro_memrchr" = "yes"; then
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36425$as_echo_n "checking if memrchr is compilable... " >&6; }
36426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36427/* end confdefs.h. */
36428
36429
36430 $curl_includes_string
36431
36432int main (void)
36433{
36434
36435 if(0 != memrchr(0, 0, 0))
36436 return 1;
36437
36438 ;
36439 return 0;
36440}
36441
36442_ACEOF
36443if ac_fn_c_try_compile "$LINENO"; then :
36444
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36446$as_echo "yes" >&6; }
36447 tst_compi_memrchr="yes"
36448
36449else
36450
36451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36452$as_echo "no" >&6; }
36453 tst_compi_memrchr="no"
36454
36455fi
36456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36457 fi
36458 #
36459 if test "$tst_compi_memrchr" = "yes"; then
36460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36461$as_echo_n "checking if memrchr usage allowed... " >&6; }
36462 if test "x$curl_disallow_memrchr" != "xyes"; then
36463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36464$as_echo "yes" >&6; }
36465 tst_allow_memrchr="yes"
36466 else
36467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36468$as_echo "no" >&6; }
36469 tst_allow_memrchr="no"
36470 fi
36471 fi
36472 #
36473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36474$as_echo_n "checking if memrchr might be used... " >&6; }
36475 if (test "$tst_proto_memrchr" = "yes" ||
36476 test "$tst_macro_memrchr" = "yes") &&
36477 test "$tst_compi_memrchr" = "yes" &&
36478 test "$tst_allow_memrchr" = "yes"; then
36479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36480$as_echo "yes" >&6; }
36481
36482cat >>confdefs.h <<_ACEOF
36483#define HAVE_MEMRCHR 1
36484_ACEOF
36485
36486 curl_cv_func_memrchr="yes"
36487 else
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36489$as_echo "no" >&6; }
36490 curl_cv_func_memrchr="no"
36491 fi
36492
36493
36494 #
36495 tst_links_poll="unknown"
36496 tst_proto_poll="unknown"
36497 tst_compi_poll="unknown"
36498 tst_works_poll="unknown"
36499 tst_allow_poll="unknown"
36500 #
36501 case $host_os in
36502 darwin*|interix*)
36503 curl_disallow_poll="yes"
36504 tst_compi_poll="no"
36505 ;;
36506 esac
36507 #
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36509$as_echo_n "checking if poll can be linked... " >&6; }
36510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511/* end confdefs.h. */
36512
36513
36514 $curl_includes_poll
36515
36516int main (void)
36517{
36518
36519 if(0 != poll(0, 0, 0))
36520 return 1;
36521
36522 ;
36523 return 0;
36524}
36525
36526_ACEOF
36527if ac_fn_c_try_link "$LINENO"; then :
36528
36529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36530$as_echo "yes" >&6; }
36531 tst_links_poll="yes"
36532
36533else
36534
36535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36536$as_echo "no" >&6; }
36537 tst_links_poll="no"
36538
36539fi
36540rm -f core conftest.err conftest.$ac_objext \
36541 conftest$ac_exeext conftest.$ac_ext
36542 #
36543 if test "$tst_links_poll" = "yes"; then
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36545$as_echo_n "checking if poll is prototyped... " >&6; }
36546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36547/* end confdefs.h. */
36548
36549 $curl_includes_poll
36550
36551_ACEOF
36552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36553 $EGREP "poll" >/dev/null 2>&1; then :
36554
36555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36556$as_echo "yes" >&6; }
36557 tst_proto_poll="yes"
36558
36559else
36560
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36562$as_echo "no" >&6; }
36563 tst_proto_poll="no"
36564
36565fi
36566rm -f conftest*
36567
36568 fi
36569 #
36570 if test "$tst_proto_poll" = "yes"; then
36571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36572$as_echo_n "checking if poll is compilable... " >&6; }
36573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574/* end confdefs.h. */
36575
36576
36577 $curl_includes_poll
36578
36579int main (void)
36580{
36581
36582 if(0 != poll(0, 0, 0))
36583 return 1;
36584
36585 ;
36586 return 0;
36587}
36588
36589_ACEOF
36590if ac_fn_c_try_compile "$LINENO"; then :
36591
36592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36593$as_echo "yes" >&6; }
36594 tst_compi_poll="yes"
36595
36596else
36597
36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36599$as_echo "no" >&6; }
36600 tst_compi_poll="no"
36601
36602fi
36603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36604 fi
36605 #
36606 if test "x$cross_compiling" != "xyes" &&
36607 test "$tst_compi_poll" = "yes"; then
36608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36609$as_echo_n "checking if poll seems to work... " >&6; }
36610 if test "$cross_compiling" = yes; then :
36611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36613as_fn_error $? "cannot run test program while cross compiling
36614See \`config.log' for more details" "$LINENO" 5; }
36615else
36616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36617/* end confdefs.h. */
36618
36619
36620 $curl_includes_stdlib
36621 $curl_includes_poll
36622 $curl_includes_time
36623
36624int main (void)
36625{
36626
36627 /* detect the original poll() breakage */
36628 if(0 != poll(0, 0, 10))
36629 exit(1); /* fail */
36630 else {
36631 /* detect the 10.12 poll() breakage */
36632 struct timeval before, after;
36633 int rc;
36634 size_t us;
36635
36636 gettimeofday(&before, NULL);
36637 rc = poll(NULL, 0, 500);
36638 gettimeofday(&after, NULL);
36639
36640 us = (after.tv_sec - before.tv_sec) * 1000000 +
36641 (after.tv_usec - before.tv_usec);
36642
36643 if(us < 400000)
36644 exit(1);
36645 }
36646
36647 ;
36648 return 0;
36649}
36650
36651_ACEOF
36652if ac_fn_c_try_run "$LINENO"; then :
36653
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36655$as_echo "yes" >&6; }
36656 tst_works_poll="yes"
36657
36658else
36659
36660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36661$as_echo "no" >&6; }
36662 tst_works_poll="no"
36663
36664fi
36665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36666 conftest.$ac_objext conftest.beam conftest.$ac_ext
36667fi
36668
36669 fi
36670 #
36671 if test "$tst_compi_poll" = "yes" &&
36672 test "$tst_works_poll" != "no"; then
36673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36674$as_echo_n "checking if poll usage allowed... " >&6; }
36675 if test "x$curl_disallow_poll" != "xyes"; then
36676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36677$as_echo "yes" >&6; }
36678 tst_allow_poll="yes"
36679 else
36680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36681$as_echo "no" >&6; }
36682 tst_allow_poll="no"
36683 fi
36684 fi
36685 #
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36687$as_echo_n "checking if poll might be used... " >&6; }
36688 if test "$tst_links_poll" = "yes" &&
36689 test "$tst_proto_poll" = "yes" &&
36690 test "$tst_compi_poll" = "yes" &&
36691 test "$tst_allow_poll" = "yes" &&
36692 test "$tst_works_poll" != "no"; then
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36694$as_echo "yes" >&6; }
36695
36696cat >>confdefs.h <<_ACEOF
36697#define HAVE_POLL 1
36698_ACEOF
36699
36700
36701cat >>confdefs.h <<_ACEOF
36702#define HAVE_POLL_FINE 1
36703_ACEOF
36704
36705 curl_cv_func_poll="yes"
36706 else
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36708$as_echo "no" >&6; }
36709 curl_cv_func_poll="no"
36710 fi
36711
36712
36713 #
36714 tst_links_setsockopt="unknown"
36715 tst_proto_setsockopt="unknown"
36716 tst_compi_setsockopt="unknown"
36717 tst_allow_setsockopt="unknown"
36718 #
36719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36720$as_echo_n "checking if setsockopt can be linked... " >&6; }
36721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36722/* end confdefs.h. */
36723
36724
36725 $curl_includes_winsock2
36726 $curl_includes_sys_socket
36727
36728int main (void)
36729{
36730
36731 if(0 != setsockopt(0, 0, 0, 0, 0))
36732 return 1;
36733
36734 ;
36735 return 0;
36736}
36737
36738_ACEOF
36739if ac_fn_c_try_link "$LINENO"; then :
36740
36741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742$as_echo "yes" >&6; }
36743 tst_links_setsockopt="yes"
36744
36745else
36746
36747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36748$as_echo "no" >&6; }
36749 tst_links_setsockopt="no"
36750
36751fi
36752rm -f core conftest.err conftest.$ac_objext \
36753 conftest$ac_exeext conftest.$ac_ext
36754 #
36755 if test "$tst_links_setsockopt" = "yes"; then
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36757$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36759/* end confdefs.h. */
36760
36761 $curl_includes_winsock2
36762 $curl_includes_sys_socket
36763
36764_ACEOF
36765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36766 $EGREP "setsockopt" >/dev/null 2>&1; then :
36767
36768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36769$as_echo "yes" >&6; }
36770 tst_proto_setsockopt="yes"
36771
36772else
36773
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36775$as_echo "no" >&6; }
36776 tst_proto_setsockopt="no"
36777
36778fi
36779rm -f conftest*
36780
36781 fi
36782 #
36783 if test "$tst_proto_setsockopt" = "yes"; then
36784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36785$as_echo_n "checking if setsockopt is compilable... " >&6; }
36786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36787/* end confdefs.h. */
36788
36789
36790 $curl_includes_winsock2
36791 $curl_includes_sys_socket
36792
36793int main (void)
36794{
36795
36796 if(0 != setsockopt(0, 0, 0, 0, 0))
36797 return 1;
36798
36799 ;
36800 return 0;
36801}
36802
36803_ACEOF
36804if ac_fn_c_try_compile "$LINENO"; then :
36805
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36807$as_echo "yes" >&6; }
36808 tst_compi_setsockopt="yes"
36809
36810else
36811
36812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36813$as_echo "no" >&6; }
36814 tst_compi_setsockopt="no"
36815
36816fi
36817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36818 fi
36819 #
36820 if test "$tst_compi_setsockopt" = "yes"; then
36821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36822$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36823 if test "x$curl_disallow_setsockopt" != "xyes"; then
36824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36825$as_echo "yes" >&6; }
36826 tst_allow_setsockopt="yes"
36827 else
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36829$as_echo "no" >&6; }
36830 tst_allow_setsockopt="no"
36831 fi
36832 fi
36833 #
36834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36835$as_echo_n "checking if setsockopt might be used... " >&6; }
36836 if test "$tst_links_setsockopt" = "yes" &&
36837 test "$tst_proto_setsockopt" = "yes" &&
36838 test "$tst_compi_setsockopt" = "yes" &&
36839 test "$tst_allow_setsockopt" = "yes"; then
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36841$as_echo "yes" >&6; }
36842
36843cat >>confdefs.h <<_ACEOF
36844#define HAVE_SETSOCKOPT 1
36845_ACEOF
36846
36847 curl_cv_func_setsockopt="yes"
36848
36849 #
36850 tst_compi_setsockopt_so_nonblock="unknown"
36851 tst_allow_setsockopt_so_nonblock="unknown"
36852 #
36853 if test "$curl_cv_func_setsockopt" = "yes"; then
36854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36855$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36857/* end confdefs.h. */
36858
36859
36860 $curl_includes_winsock2
36861 $curl_includes_sys_socket
36862
36863int main (void)
36864{
36865
36866 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36867 return 1;
36868
36869 ;
36870 return 0;
36871}
36872
36873_ACEOF
36874if ac_fn_c_try_compile "$LINENO"; then :
36875
36876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36877$as_echo "yes" >&6; }
36878 tst_compi_setsockopt_so_nonblock="yes"
36879
36880else
36881
36882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36883$as_echo "no" >&6; }
36884 tst_compi_setsockopt_so_nonblock="no"
36885
36886fi
36887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36888 fi
36889 #
36890 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36892$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36893 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36895$as_echo "yes" >&6; }
36896 tst_allow_setsockopt_so_nonblock="yes"
36897 else
36898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36899$as_echo "no" >&6; }
36900 tst_allow_setsockopt_so_nonblock="no"
36901 fi
36902 fi
36903 #
36904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36905$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36906 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36907 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36909$as_echo "yes" >&6; }
36910
36911cat >>confdefs.h <<_ACEOF
36912#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36913_ACEOF
36914
36915 curl_cv_func_setsockopt_so_nonblock="yes"
36916 else
36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36918$as_echo "no" >&6; }
36919 curl_cv_func_setsockopt_so_nonblock="no"
36920 fi
36921
36922 else
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924$as_echo "no" >&6; }
36925 curl_cv_func_setsockopt="no"
36926 fi
36927
36928
36929curl_includes_signal="\
36930/* includes start */
36931#ifdef HAVE_SYS_TYPES_H
36932# include <sys/types.h>
36933#endif
36934#ifdef HAVE_SIGNAL_H
36935# include <signal.h>
36936#endif
36937/* includes end */"
36938 for ac_header in sys/types.h signal.h
36939do :
36940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36941ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36942"
36943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36944 cat >>confdefs.h <<_ACEOF
36945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36946_ACEOF
36947
36948fi
36949
36950done
36951
36952
36953
36954 #
36955 tst_links_sigaction="unknown"
36956 tst_proto_sigaction="unknown"
36957 tst_compi_sigaction="unknown"
36958 tst_allow_sigaction="unknown"
36959 #
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36961$as_echo_n "checking if sigaction can be linked... " >&6; }
36962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36963/* end confdefs.h. */
36964
36965
36966#define sigaction innocuous_sigaction
36967#ifdef __STDC__
36968# include <limits.h>
36969#else
36970# include <assert.h>
36971#endif
36972#undef sigaction
36973#ifdef __cplusplus
36974extern "C"
36975#endif
36976char sigaction ();
36977#if defined __stub_sigaction || defined __stub___sigaction
36978choke me
36979#endif
36980
36981int main (void)
36982{
36983return sigaction ();
36984 ;
36985 return 0;
36986}
36987
36988_ACEOF
36989if ac_fn_c_try_link "$LINENO"; then :
36990
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36992$as_echo "yes" >&6; }
36993 tst_links_sigaction="yes"
36994
36995else
36996
36997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36998$as_echo "no" >&6; }
36999 tst_links_sigaction="no"
37000
37001fi
37002rm -f core conftest.err conftest.$ac_objext \
37003 conftest$ac_exeext conftest.$ac_ext
37004 #
37005 if test "$tst_links_sigaction" = "yes"; then
37006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37007$as_echo_n "checking if sigaction is prototyped... " >&6; }
37008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37009/* end confdefs.h. */
37010
37011 $curl_includes_signal
37012
37013_ACEOF
37014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37015 $EGREP "sigaction" >/dev/null 2>&1; then :
37016
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37018$as_echo "yes" >&6; }
37019 tst_proto_sigaction="yes"
37020
37021else
37022
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37024$as_echo "no" >&6; }
37025 tst_proto_sigaction="no"
37026
37027fi
37028rm -f conftest*
37029
37030 fi
37031 #
37032 if test "$tst_proto_sigaction" = "yes"; then
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37034$as_echo_n "checking if sigaction is compilable... " >&6; }
37035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37036/* end confdefs.h. */
37037
37038
37039 $curl_includes_signal
37040
37041int main (void)
37042{
37043
37044 if(0 != sigaction(0, 0, 0))
37045 return 1;
37046
37047 ;
37048 return 0;
37049}
37050
37051_ACEOF
37052if ac_fn_c_try_compile "$LINENO"; then :
37053
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37055$as_echo "yes" >&6; }
37056 tst_compi_sigaction="yes"
37057
37058else
37059
37060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37061$as_echo "no" >&6; }
37062 tst_compi_sigaction="no"
37063
37064fi
37065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37066 fi
37067 #
37068 if test "$tst_compi_sigaction" = "yes"; then
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37070$as_echo_n "checking if sigaction usage allowed... " >&6; }
37071 if test "x$curl_disallow_sigaction" != "xyes"; then
37072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37073$as_echo "yes" >&6; }
37074 tst_allow_sigaction="yes"
37075 else
37076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37077$as_echo "no" >&6; }
37078 tst_allow_sigaction="no"
37079 fi
37080 fi
37081 #
37082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37083$as_echo_n "checking if sigaction might be used... " >&6; }
37084 if test "$tst_links_sigaction" = "yes" &&
37085 test "$tst_proto_sigaction" = "yes" &&
37086 test "$tst_compi_sigaction" = "yes" &&
37087 test "$tst_allow_sigaction" = "yes"; then
37088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37089$as_echo "yes" >&6; }
37090
37091cat >>confdefs.h <<_ACEOF
37092#define HAVE_SIGACTION 1
37093_ACEOF
37094
37095 curl_cv_func_sigaction="yes"
37096 else
37097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37098$as_echo "no" >&6; }
37099 curl_cv_func_sigaction="no"
37100 fi
37101
37102
37103 #
37104 tst_links_siginterrupt="unknown"
37105 tst_proto_siginterrupt="unknown"
37106 tst_compi_siginterrupt="unknown"
37107 tst_allow_siginterrupt="unknown"
37108 #
37109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37110$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37112/* end confdefs.h. */
37113
37114
37115#define siginterrupt innocuous_siginterrupt
37116#ifdef __STDC__
37117# include <limits.h>
37118#else
37119# include <assert.h>
37120#endif
37121#undef siginterrupt
37122#ifdef __cplusplus
37123extern "C"
37124#endif
37125char siginterrupt ();
37126#if defined __stub_siginterrupt || defined __stub___siginterrupt
37127choke me
37128#endif
37129
37130int main (void)
37131{
37132return siginterrupt ();
37133 ;
37134 return 0;
37135}
37136
37137_ACEOF
37138if ac_fn_c_try_link "$LINENO"; then :
37139
37140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37141$as_echo "yes" >&6; }
37142 tst_links_siginterrupt="yes"
37143
37144else
37145
37146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37147$as_echo "no" >&6; }
37148 tst_links_siginterrupt="no"
37149
37150fi
37151rm -f core conftest.err conftest.$ac_objext \
37152 conftest$ac_exeext conftest.$ac_ext
37153 #
37154 if test "$tst_links_siginterrupt" = "yes"; then
37155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37156$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37158/* end confdefs.h. */
37159
37160 $curl_includes_signal
37161
37162_ACEOF
37163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37164 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37165
37166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37167$as_echo "yes" >&6; }
37168 tst_proto_siginterrupt="yes"
37169
37170else
37171
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37173$as_echo "no" >&6; }
37174 tst_proto_siginterrupt="no"
37175
37176fi
37177rm -f conftest*
37178
37179 fi
37180 #
37181 if test "$tst_proto_siginterrupt" = "yes"; then
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37183$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37185/* end confdefs.h. */
37186
37187
37188 $curl_includes_signal
37189
37190int main (void)
37191{
37192
37193 if(0 != siginterrupt(0, 0))
37194 return 1;
37195
37196 ;
37197 return 0;
37198}
37199
37200_ACEOF
37201if ac_fn_c_try_compile "$LINENO"; then :
37202
37203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37204$as_echo "yes" >&6; }
37205 tst_compi_siginterrupt="yes"
37206
37207else
37208
37209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37210$as_echo "no" >&6; }
37211 tst_compi_siginterrupt="no"
37212
37213fi
37214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37215 fi
37216 #
37217 if test "$tst_compi_siginterrupt" = "yes"; then
37218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37219$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37220 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37222$as_echo "yes" >&6; }
37223 tst_allow_siginterrupt="yes"
37224 else
37225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37226$as_echo "no" >&6; }
37227 tst_allow_siginterrupt="no"
37228 fi
37229 fi
37230 #
37231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37232$as_echo_n "checking if siginterrupt might be used... " >&6; }
37233 if test "$tst_links_siginterrupt" = "yes" &&
37234 test "$tst_proto_siginterrupt" = "yes" &&
37235 test "$tst_compi_siginterrupt" = "yes" &&
37236 test "$tst_allow_siginterrupt" = "yes"; then
37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37238$as_echo "yes" >&6; }
37239
37240cat >>confdefs.h <<_ACEOF
37241#define HAVE_SIGINTERRUPT 1
37242_ACEOF
37243
37244 curl_cv_func_siginterrupt="yes"
37245 else
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247$as_echo "no" >&6; }
37248 curl_cv_func_siginterrupt="no"
37249 fi
37250
37251
37252 #
37253 tst_links_signal="unknown"
37254 tst_proto_signal="unknown"
37255 tst_compi_signal="unknown"
37256 tst_allow_signal="unknown"
37257 #
37258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37259$as_echo_n "checking if signal can be linked... " >&6; }
37260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37261/* end confdefs.h. */
37262
37263
37264#define signal innocuous_signal
37265#ifdef __STDC__
37266# include <limits.h>
37267#else
37268# include <assert.h>
37269#endif
37270#undef signal
37271#ifdef __cplusplus
37272extern "C"
37273#endif
37274char signal ();
37275#if defined __stub_signal || defined __stub___signal
37276choke me
37277#endif
37278
37279int main (void)
37280{
37281return signal ();
37282 ;
37283 return 0;
37284}
37285
37286_ACEOF
37287if ac_fn_c_try_link "$LINENO"; then :
37288
37289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37290$as_echo "yes" >&6; }
37291 tst_links_signal="yes"
37292
37293else
37294
37295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37296$as_echo "no" >&6; }
37297 tst_links_signal="no"
37298
37299fi
37300rm -f core conftest.err conftest.$ac_objext \
37301 conftest$ac_exeext conftest.$ac_ext
37302 #
37303 if test "$tst_links_signal" = "yes"; then
37304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37305$as_echo_n "checking if signal is prototyped... " >&6; }
37306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37307/* end confdefs.h. */
37308
37309 $curl_includes_signal
37310
37311_ACEOF
37312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37313 $EGREP "signal" >/dev/null 2>&1; then :
37314
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37316$as_echo "yes" >&6; }
37317 tst_proto_signal="yes"
37318
37319else
37320
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37322$as_echo "no" >&6; }
37323 tst_proto_signal="no"
37324
37325fi
37326rm -f conftest*
37327
37328 fi
37329 #
37330 if test "$tst_proto_signal" = "yes"; then
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37332$as_echo_n "checking if signal is compilable... " >&6; }
37333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37334/* end confdefs.h. */
37335
37336
37337 $curl_includes_signal
37338
37339int main (void)
37340{
37341
37342 if(0 != signal(0, 0))
37343 return 1;
37344
37345 ;
37346 return 0;
37347}
37348
37349_ACEOF
37350if ac_fn_c_try_compile "$LINENO"; then :
37351
37352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37353$as_echo "yes" >&6; }
37354 tst_compi_signal="yes"
37355
37356else
37357
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37359$as_echo "no" >&6; }
37360 tst_compi_signal="no"
37361
37362fi
37363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364 fi
37365 #
37366 if test "$tst_compi_signal" = "yes"; then
37367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37368$as_echo_n "checking if signal usage allowed... " >&6; }
37369 if test "x$curl_disallow_signal" != "xyes"; then
37370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37371$as_echo "yes" >&6; }
37372 tst_allow_signal="yes"
37373 else
37374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37375$as_echo "no" >&6; }
37376 tst_allow_signal="no"
37377 fi
37378 fi
37379 #
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37381$as_echo_n "checking if signal might be used... " >&6; }
37382 if test "$tst_links_signal" = "yes" &&
37383 test "$tst_proto_signal" = "yes" &&
37384 test "$tst_compi_signal" = "yes" &&
37385 test "$tst_allow_signal" = "yes"; then
37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37387$as_echo "yes" >&6; }
37388
37389cat >>confdefs.h <<_ACEOF
37390#define HAVE_SIGNAL 1
37391_ACEOF
37392
37393 curl_cv_func_signal="yes"
37394 else
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396$as_echo "no" >&6; }
37397 curl_cv_func_signal="no"
37398 fi
37399
37400
37401curl_includes_setjmp="\
37402/* includes start */
37403#ifdef HAVE_SYS_TYPES_H
37404# include <sys/types.h>
37405#endif
37406#ifdef HAVE_SETJMP_H
37407# include <setjmp.h>
37408#endif
37409/* includes end */"
37410 for ac_header in sys/types.h setjmp.h
37411do :
37412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37413ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37414"
37415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37416 cat >>confdefs.h <<_ACEOF
37417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37418_ACEOF
37419
37420fi
37421
37422done
37423
37424
37425
37426 #
37427 tst_links_sigsetjmp="unknown"
37428 tst_macro_sigsetjmp="unknown"
37429 tst_proto_sigsetjmp="unknown"
37430 tst_compi_sigsetjmp="unknown"
37431 tst_allow_sigsetjmp="unknown"
37432 #
37433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37434$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37436/* end confdefs.h. */
37437
37438
37439#define sigsetjmp innocuous_sigsetjmp
37440#ifdef __STDC__
37441# include <limits.h>
37442#else
37443# include <assert.h>
37444#endif
37445#undef sigsetjmp
37446#ifdef __cplusplus
37447extern "C"
37448#endif
37449char sigsetjmp ();
37450#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37451choke me
37452#endif
37453
37454int main (void)
37455{
37456return sigsetjmp ();
37457 ;
37458 return 0;
37459}
37460
37461_ACEOF
37462if ac_fn_c_try_link "$LINENO"; then :
37463
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37465$as_echo "yes" >&6; }
37466 tst_links_sigsetjmp="yes"
37467
37468else
37469
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37471$as_echo "no" >&6; }
37472 tst_links_sigsetjmp="no"
37473
37474fi
37475rm -f core conftest.err conftest.$ac_objext \
37476 conftest$ac_exeext conftest.$ac_ext
37477 #
37478 if test "$tst_links_sigsetjmp" = "no"; then
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37480$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37482/* end confdefs.h. */
37483
37484
37485 $curl_includes_setjmp
37486
37487int main (void)
37488{
37489
37490 sigjmp_buf env;
37491 if(0 != sigsetjmp(env, 0))
37492 return 1;
37493
37494 ;
37495 return 0;
37496}
37497
37498_ACEOF
37499if ac_fn_c_try_link "$LINENO"; then :
37500
37501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37502$as_echo "yes" >&6; }
37503 tst_macro_sigsetjmp="yes"
37504
37505else
37506
37507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37508$as_echo "no" >&6; }
37509 tst_macro_sigsetjmp="no"
37510
37511fi
37512rm -f core conftest.err conftest.$ac_objext \
37513 conftest$ac_exeext conftest.$ac_ext
37514 fi
37515 #
37516 if test "$tst_links_sigsetjmp" = "yes"; then
37517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37518$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37520/* end confdefs.h. */
37521
37522 $curl_includes_setjmp
37523
37524_ACEOF
37525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37526 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37527
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37529$as_echo "yes" >&6; }
37530 tst_proto_sigsetjmp="yes"
37531
37532else
37533
37534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37535$as_echo "no" >&6; }
37536 tst_proto_sigsetjmp="no"
37537
37538fi
37539rm -f conftest*
37540
37541 fi
37542 #
37543 if test "$tst_proto_sigsetjmp" = "yes" ||
37544 test "$tst_macro_sigsetjmp" = "yes"; then
37545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37546$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37548/* end confdefs.h. */
37549
37550
37551 $curl_includes_setjmp
37552
37553int main (void)
37554{
37555
37556 sigjmp_buf env;
37557 if(0 != sigsetjmp(env, 0))
37558 return 1;
37559
37560 ;
37561 return 0;
37562}
37563
37564_ACEOF
37565if ac_fn_c_try_compile "$LINENO"; then :
37566
37567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37568$as_echo "yes" >&6; }
37569 tst_compi_sigsetjmp="yes"
37570
37571else
37572
37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37574$as_echo "no" >&6; }
37575 tst_compi_sigsetjmp="no"
37576
37577fi
37578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37579 fi
37580 #
37581 if test "$tst_compi_sigsetjmp" = "yes"; then
37582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37583$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37584 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37586$as_echo "yes" >&6; }
37587 tst_allow_sigsetjmp="yes"
37588 else
37589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37590$as_echo "no" >&6; }
37591 tst_allow_sigsetjmp="no"
37592 fi
37593 fi
37594 #
37595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37596$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37597 if (test "$tst_proto_sigsetjmp" = "yes" ||
37598 test "$tst_macro_sigsetjmp" = "yes") &&
37599 test "$tst_compi_sigsetjmp" = "yes" &&
37600 test "$tst_allow_sigsetjmp" = "yes"; then
37601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37602$as_echo "yes" >&6; }
37603
37604cat >>confdefs.h <<_ACEOF
37605#define HAVE_SIGSETJMP 1
37606_ACEOF
37607
37608 curl_cv_func_sigsetjmp="yes"
37609 else
37610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37611$as_echo "no" >&6; }
37612 curl_cv_func_sigsetjmp="no"
37613 fi
37614
37615
37616 #
37617 tst_links_socket="unknown"
37618 tst_proto_socket="unknown"
37619 tst_compi_socket="unknown"
37620 tst_allow_socket="unknown"
37621 #
37622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37623$as_echo_n "checking if socket can be linked... " >&6; }
37624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37625/* end confdefs.h. */
37626
37627
37628 $curl_includes_winsock2
37629 $curl_includes_sys_socket
37630 $curl_includes_socket
37631
37632int main (void)
37633{
37634
37635 if(0 != socket(0, 0, 0))
37636 return 1;
37637
37638 ;
37639 return 0;
37640}
37641
37642_ACEOF
37643if ac_fn_c_try_link "$LINENO"; then :
37644
37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37646$as_echo "yes" >&6; }
37647 tst_links_socket="yes"
37648
37649else
37650
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37652$as_echo "no" >&6; }
37653 tst_links_socket="no"
37654
37655fi
37656rm -f core conftest.err conftest.$ac_objext \
37657 conftest$ac_exeext conftest.$ac_ext
37658 #
37659 if test "$tst_links_socket" = "yes"; then
37660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37661$as_echo_n "checking if socket is prototyped... " >&6; }
37662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37663/* end confdefs.h. */
37664
37665 $curl_includes_winsock2
37666 $curl_includes_sys_socket
37667 $curl_includes_socket
37668
37669_ACEOF
37670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37671 $EGREP "socket" >/dev/null 2>&1; then :
37672
37673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37674$as_echo "yes" >&6; }
37675 tst_proto_socket="yes"
37676
37677else
37678
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37680$as_echo "no" >&6; }
37681 tst_proto_socket="no"
37682
37683fi
37684rm -f conftest*
37685
37686 fi
37687 #
37688 if test "$tst_proto_socket" = "yes"; then
37689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37690$as_echo_n "checking if socket is compilable... " >&6; }
37691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37692/* end confdefs.h. */
37693
37694
37695 $curl_includes_winsock2
37696 $curl_includes_sys_socket
37697 $curl_includes_socket
37698
37699int main (void)
37700{
37701
37702 if(0 != socket(0, 0, 0))
37703 return 1;
37704
37705 ;
37706 return 0;
37707}
37708
37709_ACEOF
37710if ac_fn_c_try_compile "$LINENO"; then :
37711
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37713$as_echo "yes" >&6; }
37714 tst_compi_socket="yes"
37715
37716else
37717
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37719$as_echo "no" >&6; }
37720 tst_compi_socket="no"
37721
37722fi
37723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37724 fi
37725 #
37726 if test "$tst_compi_socket" = "yes"; then
37727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37728$as_echo_n "checking if socket usage allowed... " >&6; }
37729 if test "x$curl_disallow_socket" != "xyes"; then
37730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37731$as_echo "yes" >&6; }
37732 tst_allow_socket="yes"
37733 else
37734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37735$as_echo "no" >&6; }
37736 tst_allow_socket="no"
37737 fi
37738 fi
37739 #
37740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37741$as_echo_n "checking if socket might be used... " >&6; }
37742 if test "$tst_links_socket" = "yes" &&
37743 test "$tst_proto_socket" = "yes" &&
37744 test "$tst_compi_socket" = "yes" &&
37745 test "$tst_allow_socket" = "yes"; then
37746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37747$as_echo "yes" >&6; }
37748
37749cat >>confdefs.h <<_ACEOF
37750#define HAVE_SOCKET 1
37751_ACEOF
37752
37753 curl_cv_func_socket="yes"
37754 else
37755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37756$as_echo "no" >&6; }
37757 curl_cv_func_socket="no"
37758 fi
37759
37760
37761 #
37762 tst_links_socketpair="unknown"
37763 tst_proto_socketpair="unknown"
37764 tst_compi_socketpair="unknown"
37765 tst_allow_socketpair="unknown"
37766 #
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37768$as_echo_n "checking if socketpair can be linked... " >&6; }
37769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37770/* end confdefs.h. */
37771
37772
37773#define socketpair innocuous_socketpair
37774#ifdef __STDC__
37775# include <limits.h>
37776#else
37777# include <assert.h>
37778#endif
37779#undef socketpair
37780#ifdef __cplusplus
37781extern "C"
37782#endif
37783char socketpair ();
37784#if defined __stub_socketpair || defined __stub___socketpair
37785choke me
37786#endif
37787
37788int main (void)
37789{
37790return socketpair ();
37791 ;
37792 return 0;
37793}
37794
37795_ACEOF
37796if ac_fn_c_try_link "$LINENO"; then :
37797
37798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37799$as_echo "yes" >&6; }
37800 tst_links_socketpair="yes"
37801
37802else
37803
37804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37805$as_echo "no" >&6; }
37806 tst_links_socketpair="no"
37807
37808fi
37809rm -f core conftest.err conftest.$ac_objext \
37810 conftest$ac_exeext conftest.$ac_ext
37811 #
37812 if test "$tst_links_socketpair" = "yes"; then
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37814$as_echo_n "checking if socketpair is prototyped... " >&6; }
37815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37816/* end confdefs.h. */
37817
37818 $curl_includes_sys_socket
37819 $curl_includes_socket
37820
37821_ACEOF
37822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37823 $EGREP "socketpair" >/dev/null 2>&1; then :
37824
37825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37826$as_echo "yes" >&6; }
37827 tst_proto_socketpair="yes"
37828
37829else
37830
37831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37832$as_echo "no" >&6; }
37833 tst_proto_socketpair="no"
37834
37835fi
37836rm -f conftest*
37837
37838 fi
37839 #
37840 if test "$tst_proto_socketpair" = "yes"; then
37841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37842$as_echo_n "checking if socketpair is compilable... " >&6; }
37843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37844/* end confdefs.h. */
37845
37846
37847 $curl_includes_sys_socket
37848 $curl_includes_socket
37849
37850int main (void)
37851{
37852
37853 int sv[2];
37854 if(0 != socketpair(0, 0, 0, sv))
37855 return 1;
37856
37857 ;
37858 return 0;
37859}
37860
37861_ACEOF
37862if ac_fn_c_try_compile "$LINENO"; then :
37863
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37865$as_echo "yes" >&6; }
37866 tst_compi_socketpair="yes"
37867
37868else
37869
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37871$as_echo "no" >&6; }
37872 tst_compi_socketpair="no"
37873
37874fi
37875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37876 fi
37877 #
37878 if test "$tst_compi_socketpair" = "yes"; then
37879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37880$as_echo_n "checking if socketpair usage allowed... " >&6; }
37881 if test "x$curl_disallow_socketpair" != "xyes"; then
37882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37883$as_echo "yes" >&6; }
37884 tst_allow_socketpair="yes"
37885 else
37886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37887$as_echo "no" >&6; }
37888 tst_allow_socketpair="no"
37889 fi
37890 fi
37891 #
37892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37893$as_echo_n "checking if socketpair might be used... " >&6; }
37894 if test "$tst_links_socketpair" = "yes" &&
37895 test "$tst_proto_socketpair" = "yes" &&
37896 test "$tst_compi_socketpair" = "yes" &&
37897 test "$tst_allow_socketpair" = "yes"; then
37898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37899$as_echo "yes" >&6; }
37900
37901cat >>confdefs.h <<_ACEOF
37902#define HAVE_SOCKETPAIR 1
37903_ACEOF
37904
37905 curl_cv_func_socketpair="yes"
37906 else
37907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37908$as_echo "no" >&6; }
37909 curl_cv_func_socketpair="no"
37910 fi
37911
37912
37913 #
37914 tst_links_strcasecmp="unknown"
37915 tst_proto_strcasecmp="unknown"
37916 tst_compi_strcasecmp="unknown"
37917 tst_allow_strcasecmp="unknown"
37918 #
37919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37920$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37922/* end confdefs.h. */
37923
37924
37925#define strcasecmp innocuous_strcasecmp
37926#ifdef __STDC__
37927# include <limits.h>
37928#else
37929# include <assert.h>
37930#endif
37931#undef strcasecmp
37932#ifdef __cplusplus
37933extern "C"
37934#endif
37935char strcasecmp ();
37936#if defined __stub_strcasecmp || defined __stub___strcasecmp
37937choke me
37938#endif
37939
37940int main (void)
37941{
37942return strcasecmp ();
37943 ;
37944 return 0;
37945}
37946
37947_ACEOF
37948if ac_fn_c_try_link "$LINENO"; then :
37949
37950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37951$as_echo "yes" >&6; }
37952 tst_links_strcasecmp="yes"
37953
37954else
37955
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37957$as_echo "no" >&6; }
37958 tst_links_strcasecmp="no"
37959
37960fi
37961rm -f core conftest.err conftest.$ac_objext \
37962 conftest$ac_exeext conftest.$ac_ext
37963 #
37964 if test "$tst_links_strcasecmp" = "yes"; then
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37966$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37968/* end confdefs.h. */
37969
37970 $curl_includes_string
37971
37972_ACEOF
37973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37974 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37975
37976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37977$as_echo "yes" >&6; }
37978 tst_proto_strcasecmp="yes"
37979
37980else
37981
37982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37983$as_echo "no" >&6; }
37984 tst_proto_strcasecmp="no"
37985
37986fi
37987rm -f conftest*
37988
37989 fi
37990 #
37991 if test "$tst_proto_strcasecmp" = "yes"; then
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37993$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37995/* end confdefs.h. */
37996
37997
37998 $curl_includes_string
37999
38000int main (void)
38001{
38002
38003 if(0 != strcasecmp(0, 0))
38004 return 1;
38005
38006 ;
38007 return 0;
38008}
38009
38010_ACEOF
38011if ac_fn_c_try_compile "$LINENO"; then :
38012
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38014$as_echo "yes" >&6; }
38015 tst_compi_strcasecmp="yes"
38016
38017else
38018
38019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38020$as_echo "no" >&6; }
38021 tst_compi_strcasecmp="no"
38022
38023fi
38024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38025 fi
38026 #
38027 if test "$tst_compi_strcasecmp" = "yes"; then
38028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38029$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38030 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38032$as_echo "yes" >&6; }
38033 tst_allow_strcasecmp="yes"
38034 else
38035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38036$as_echo "no" >&6; }
38037 tst_allow_strcasecmp="no"
38038 fi
38039 fi
38040 #
38041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38042$as_echo_n "checking if strcasecmp might be used... " >&6; }
38043 if test "$tst_links_strcasecmp" = "yes" &&
38044 test "$tst_proto_strcasecmp" = "yes" &&
38045 test "$tst_compi_strcasecmp" = "yes" &&
38046 test "$tst_allow_strcasecmp" = "yes"; then
38047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38048$as_echo "yes" >&6; }
38049
38050cat >>confdefs.h <<_ACEOF
38051#define HAVE_STRCASECMP 1
38052_ACEOF
38053
38054 curl_cv_func_strcasecmp="yes"
38055 else
38056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38057$as_echo "no" >&6; }
38058 curl_cv_func_strcasecmp="no"
38059 fi
38060
38061
38062 #
38063 tst_links_strcmpi="unknown"
38064 tst_proto_strcmpi="unknown"
38065 tst_compi_strcmpi="unknown"
38066 tst_allow_strcmpi="unknown"
38067 #
38068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38069$as_echo_n "checking if strcmpi can be linked... " >&6; }
38070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38071/* end confdefs.h. */
38072
38073
38074#define strcmpi innocuous_strcmpi
38075#ifdef __STDC__
38076# include <limits.h>
38077#else
38078# include <assert.h>
38079#endif
38080#undef strcmpi
38081#ifdef __cplusplus
38082extern "C"
38083#endif
38084char strcmpi ();
38085#if defined __stub_strcmpi || defined __stub___strcmpi
38086choke me
38087#endif
38088
38089int main (void)
38090{
38091return strcmpi ();
38092 ;
38093 return 0;
38094}
38095
38096_ACEOF
38097if ac_fn_c_try_link "$LINENO"; then :
38098
38099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38100$as_echo "yes" >&6; }
38101 tst_links_strcmpi="yes"
38102
38103else
38104
38105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38106$as_echo "no" >&6; }
38107 tst_links_strcmpi="no"
38108
38109fi
38110rm -f core conftest.err conftest.$ac_objext \
38111 conftest$ac_exeext conftest.$ac_ext
38112 #
38113 if test "$tst_links_strcmpi" = "yes"; then
38114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38115$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38117/* end confdefs.h. */
38118
38119 $curl_includes_string
38120
38121_ACEOF
38122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38123 $EGREP "strcmpi" >/dev/null 2>&1; then :
38124
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126$as_echo "yes" >&6; }
38127 tst_proto_strcmpi="yes"
38128
38129else
38130
38131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38132$as_echo "no" >&6; }
38133 tst_proto_strcmpi="no"
38134
38135fi
38136rm -f conftest*
38137
38138 fi
38139 #
38140 if test "$tst_proto_strcmpi" = "yes"; then
38141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38142$as_echo_n "checking if strcmpi is compilable... " >&6; }
38143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38144/* end confdefs.h. */
38145
38146
38147 $curl_includes_string
38148
38149int main (void)
38150{
38151
38152 if(0 != strcmpi(0, 0))
38153 return 1;
38154
38155 ;
38156 return 0;
38157}
38158
38159_ACEOF
38160if ac_fn_c_try_compile "$LINENO"; then :
38161
38162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38163$as_echo "yes" >&6; }
38164 tst_compi_strcmpi="yes"
38165
38166else
38167
38168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38169$as_echo "no" >&6; }
38170 tst_compi_strcmpi="no"
38171
38172fi
38173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38174 fi
38175 #
38176 if test "$tst_compi_strcmpi" = "yes"; then
38177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38178$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38179 if test "x$curl_disallow_strcmpi" != "xyes"; then
38180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38181$as_echo "yes" >&6; }
38182 tst_allow_strcmpi="yes"
38183 else
38184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38185$as_echo "no" >&6; }
38186 tst_allow_strcmpi="no"
38187 fi
38188 fi
38189 #
38190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38191$as_echo_n "checking if strcmpi might be used... " >&6; }
38192 if test "$tst_links_strcmpi" = "yes" &&
38193 test "$tst_proto_strcmpi" = "yes" &&
38194 test "$tst_compi_strcmpi" = "yes" &&
38195 test "$tst_allow_strcmpi" = "yes"; then
38196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38197$as_echo "yes" >&6; }
38198
38199cat >>confdefs.h <<_ACEOF
38200#define HAVE_STRCMPI 1
38201_ACEOF
38202
38203 curl_cv_func_strcmpi="yes"
38204 else
38205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38206$as_echo "no" >&6; }
38207 curl_cv_func_strcmpi="no"
38208 fi
38209
38210
38211 #
38212 tst_links_strdup="unknown"
38213 tst_proto_strdup="unknown"
38214 tst_compi_strdup="unknown"
38215 tst_allow_strdup="unknown"
38216 #
38217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38218$as_echo_n "checking if strdup can be linked... " >&6; }
38219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38220/* end confdefs.h. */
38221
38222
38223#define strdup innocuous_strdup
38224#ifdef __STDC__
38225# include <limits.h>
38226#else
38227# include <assert.h>
38228#endif
38229#undef strdup
38230#ifdef __cplusplus
38231extern "C"
38232#endif
38233char strdup ();
38234#if defined __stub_strdup || defined __stub___strdup
38235choke me
38236#endif
38237
38238int main (void)
38239{
38240return strdup ();
38241 ;
38242 return 0;
38243}
38244
38245_ACEOF
38246if ac_fn_c_try_link "$LINENO"; then :
38247
38248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38249$as_echo "yes" >&6; }
38250 tst_links_strdup="yes"
38251
38252else
38253
38254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38255$as_echo "no" >&6; }
38256 tst_links_strdup="no"
38257
38258fi
38259rm -f core conftest.err conftest.$ac_objext \
38260 conftest$ac_exeext conftest.$ac_ext
38261 #
38262 if test "$tst_links_strdup" = "yes"; then
38263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38264$as_echo_n "checking if strdup is prototyped... " >&6; }
38265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38266/* end confdefs.h. */
38267
38268 $curl_includes_string
38269
38270_ACEOF
38271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38272 $EGREP "strdup" >/dev/null 2>&1; then :
38273
38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38275$as_echo "yes" >&6; }
38276 tst_proto_strdup="yes"
38277
38278else
38279
38280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38281$as_echo "no" >&6; }
38282 tst_proto_strdup="no"
38283
38284fi
38285rm -f conftest*
38286
38287 fi
38288 #
38289 if test "$tst_proto_strdup" = "yes"; then
38290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38291$as_echo_n "checking if strdup is compilable... " >&6; }
38292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38293/* end confdefs.h. */
38294
38295
38296 $curl_includes_string
38297
38298int main (void)
38299{
38300
38301 if(0 != strdup(0))
38302 return 1;
38303
38304 ;
38305 return 0;
38306}
38307
38308_ACEOF
38309if ac_fn_c_try_compile "$LINENO"; then :
38310
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38312$as_echo "yes" >&6; }
38313 tst_compi_strdup="yes"
38314
38315else
38316
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38318$as_echo "no" >&6; }
38319 tst_compi_strdup="no"
38320
38321fi
38322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38323 fi
38324 #
38325 if test "$tst_compi_strdup" = "yes"; then
38326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38327$as_echo_n "checking if strdup usage allowed... " >&6; }
38328 if test "x$curl_disallow_strdup" != "xyes"; then
38329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38330$as_echo "yes" >&6; }
38331 tst_allow_strdup="yes"
38332 else
38333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38334$as_echo "no" >&6; }
38335 tst_allow_strdup="no"
38336 fi
38337 fi
38338 #
38339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38340$as_echo_n "checking if strdup might be used... " >&6; }
38341 if test "$tst_links_strdup" = "yes" &&
38342 test "$tst_proto_strdup" = "yes" &&
38343 test "$tst_compi_strdup" = "yes" &&
38344 test "$tst_allow_strdup" = "yes"; then
38345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38346$as_echo "yes" >&6; }
38347
38348cat >>confdefs.h <<_ACEOF
38349#define HAVE_STRDUP 1
38350_ACEOF
38351
38352 curl_cv_func_strdup="yes"
38353 else
38354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38355$as_echo "no" >&6; }
38356 curl_cv_func_strdup="no"
38357 fi
38358
38359
38360 #
38361 tst_links_strerror_r="unknown"
38362 tst_proto_strerror_r="unknown"
38363 tst_compi_strerror_r="unknown"
38364 tst_glibc_strerror_r="unknown"
38365 tst_posix_strerror_r="unknown"
38366 tst_allow_strerror_r="unknown"
38367 tst_works_glibc_strerror_r="unknown"
38368 tst_works_posix_strerror_r="unknown"
38369 tst_glibc_strerror_r_type_arg3="unknown"
38370 tst_posix_strerror_r_type_arg3="unknown"
38371 #
38372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38373$as_echo_n "checking if strerror_r can be linked... " >&6; }
38374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38375/* end confdefs.h. */
38376
38377
38378#define strerror_r innocuous_strerror_r
38379#ifdef __STDC__
38380# include <limits.h>
38381#else
38382# include <assert.h>
38383#endif
38384#undef strerror_r
38385#ifdef __cplusplus
38386extern "C"
38387#endif
38388char strerror_r ();
38389#if defined __stub_strerror_r || defined __stub___strerror_r
38390choke me
38391#endif
38392
38393int main (void)
38394{
38395return strerror_r ();
38396 ;
38397 return 0;
38398}
38399
38400_ACEOF
38401if ac_fn_c_try_link "$LINENO"; then :
38402
38403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38404$as_echo "yes" >&6; }
38405 tst_links_strerror_r="yes"
38406
38407else
38408
38409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38410$as_echo "no" >&6; }
38411 tst_links_strerror_r="no"
38412
38413fi
38414rm -f core conftest.err conftest.$ac_objext \
38415 conftest$ac_exeext conftest.$ac_ext
38416 #
38417 if test "$tst_links_strerror_r" = "yes"; then
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38419$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38421/* end confdefs.h. */
38422
38423 $curl_includes_string
38424
38425_ACEOF
38426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38427 $EGREP "strerror_r" >/dev/null 2>&1; then :
38428
38429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38430$as_echo "yes" >&6; }
38431 tst_proto_strerror_r="yes"
38432
38433else
38434
38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38436$as_echo "no" >&6; }
38437 tst_proto_strerror_r="no"
38438
38439fi
38440rm -f conftest*
38441
38442 fi
38443 #
38444 if test "$tst_proto_strerror_r" = "yes"; then
38445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38446$as_echo_n "checking if strerror_r is compilable... " >&6; }
38447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38448/* end confdefs.h. */
38449
38450
38451 $curl_includes_string
38452
38453int main (void)
38454{
38455
38456 if(0 != strerror_r(0, 0, 0))
38457 return 1;
38458
38459 ;
38460 return 0;
38461}
38462
38463_ACEOF
38464if ac_fn_c_try_compile "$LINENO"; then :
38465
38466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38467$as_echo "yes" >&6; }
38468 tst_compi_strerror_r="yes"
38469
38470else
38471
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38473$as_echo "no" >&6; }
38474 tst_compi_strerror_r="no"
38475
38476fi
38477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38478 fi
38479 #
38480 if test "$tst_compi_strerror_r" = "yes"; then
38481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38482$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38483 tst_glibc_strerror_r_type_arg3="unknown"
38484 for arg3 in 'size_t' 'int' 'unsigned int'; do
38485 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38487/* end confdefs.h. */
38488
38489
38490 $curl_includes_string
38491 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38492
38493int main (void)
38494{
38495
38496 if(0 != strerror_r(0, 0, 0))
38497 return 1;
38498
38499 ;
38500 return 0;
38501}
38502
38503_ACEOF
38504if ac_fn_c_try_compile "$LINENO"; then :
38505
38506 tst_glibc_strerror_r_type_arg3="$arg3"
38507
38508fi
38509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38510 fi
38511 done
38512 case "$tst_glibc_strerror_r_type_arg3" in
38513 unknown)
38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38515$as_echo "no" >&6; }
38516 tst_glibc_strerror_r="no"
38517 ;;
38518 *)
38519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38520$as_echo "yes" >&6; }
38521 tst_glibc_strerror_r="yes"
38522 ;;
38523 esac
38524 fi
38525 #
38526 if test "x$cross_compiling" != "xyes" &&
38527 test "$tst_glibc_strerror_r" = "yes"; then
38528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38529$as_echo_n "checking if strerror_r seems to work... " >&6; }
38530 if test "$cross_compiling" = yes; then :
38531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38533as_fn_error $? "cannot run test program while cross compiling
38534See \`config.log' for more details" "$LINENO" 5; }
38535else
38536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38537/* end confdefs.h. */
38538
38539
38540 $curl_includes_stdlib
38541 $curl_includes_string
38542# include <errno.h>
38543
38544int main (void)
38545{
38546
38547 char buffer[1024];
38548 char *string = 0;
38549 buffer[0] = '\0';
38550 string = strerror_r(EACCES, buffer, sizeof(buffer));
38551 if(!string)
38552 exit(1); /* fail */
38553 if(!string[0])
38554 exit(1); /* fail */
38555 else
38556 exit(0);
38557
38558 ;
38559 return 0;
38560}
38561
38562_ACEOF
38563if ac_fn_c_try_run "$LINENO"; then :
38564
38565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38566$as_echo "yes" >&6; }
38567 tst_works_glibc_strerror_r="yes"
38568
38569else
38570
38571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38572$as_echo "no" >&6; }
38573 tst_works_glibc_strerror_r="no"
38574
38575fi
38576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38577 conftest.$ac_objext conftest.beam conftest.$ac_ext
38578fi
38579
38580 fi
38581 #
38582 if test "$tst_compi_strerror_r" = "yes" &&
38583 test "$tst_works_glibc_strerror_r" != "yes"; then
38584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38585$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38586 tst_posix_strerror_r_type_arg3="unknown"
38587 for arg3 in 'size_t' 'int' 'unsigned int'; do
38588 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38590/* end confdefs.h. */
38591
38592
38593 $curl_includes_string
38594 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38595
38596int main (void)
38597{
38598
38599 if(0 != strerror_r(0, 0, 0))
38600 return 1;
38601
38602 ;
38603 return 0;
38604}
38605
38606_ACEOF
38607if ac_fn_c_try_compile "$LINENO"; then :
38608
38609 tst_posix_strerror_r_type_arg3="$arg3"
38610
38611fi
38612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38613 fi
38614 done
38615 case "$tst_posix_strerror_r_type_arg3" in
38616 unknown)
38617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38618$as_echo "no" >&6; }
38619 tst_posix_strerror_r="no"
38620 ;;
38621 *)
38622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38623$as_echo "yes" >&6; }
38624 tst_posix_strerror_r="yes"
38625 ;;
38626 esac
38627 fi
38628 #
38629 if test "x$cross_compiling" != "xyes" &&
38630 test "$tst_posix_strerror_r" = "yes"; then
38631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38632$as_echo_n "checking if strerror_r seems to work... " >&6; }
38633 if test "$cross_compiling" = yes; then :
38634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38636as_fn_error $? "cannot run test program while cross compiling
38637See \`config.log' for more details" "$LINENO" 5; }
38638else
38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640/* end confdefs.h. */
38641
38642
38643 $curl_includes_stdlib
38644 $curl_includes_string
38645# include <errno.h>
38646
38647int main (void)
38648{
38649
38650 char buffer[1024];
38651 int error = 1;
38652 buffer[0] = '\0';
38653 error = strerror_r(EACCES, buffer, sizeof(buffer));
38654 if(error)
38655 exit(1); /* fail */
38656 if(buffer[0] == '\0')
38657 exit(1); /* fail */
38658 else
38659 exit(0);
38660
38661 ;
38662 return 0;
38663}
38664
38665_ACEOF
38666if ac_fn_c_try_run "$LINENO"; then :
38667
38668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38669$as_echo "yes" >&6; }
38670 tst_works_posix_strerror_r="yes"
38671
38672else
38673
38674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38675$as_echo "no" >&6; }
38676 tst_works_posix_strerror_r="no"
38677
38678fi
38679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38680 conftest.$ac_objext conftest.beam conftest.$ac_ext
38681fi
38682
38683 fi
38684 #
38685 if test "$tst_works_glibc_strerror_r" = "yes"; then
38686 tst_posix_strerror_r="no"
38687 fi
38688 if test "$tst_works_posix_strerror_r" = "yes"; then
38689 tst_glibc_strerror_r="no"
38690 fi
38691 if test "$tst_glibc_strerror_r" = "yes" &&
38692 test "$tst_works_glibc_strerror_r" != "no" &&
38693 test "$tst_posix_strerror_r" != "yes"; then
38694 tst_allow_strerror_r="check"
38695 fi
38696 if test "$tst_posix_strerror_r" = "yes" &&
38697 test "$tst_works_posix_strerror_r" != "no" &&
38698 test "$tst_glibc_strerror_r" != "yes"; then
38699 tst_allow_strerror_r="check"
38700 fi
38701 if test "$tst_allow_strerror_r" = "check"; then
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38703$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38704 if test "x$curl_disallow_strerror_r" != "xyes"; then
38705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38706$as_echo "yes" >&6; }
38707 tst_allow_strerror_r="yes"
38708 else
38709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38710$as_echo "no" >&6; }
38711 tst_allow_strerror_r="no"
38712 fi
38713 fi
38714 #
38715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38716$as_echo_n "checking if strerror_r might be used... " >&6; }
38717 if test "$tst_links_strerror_r" = "yes" &&
38718 test "$tst_proto_strerror_r" = "yes" &&
38719 test "$tst_compi_strerror_r" = "yes" &&
38720 test "$tst_allow_strerror_r" = "yes"; then
38721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722$as_echo "yes" >&6; }
38723 if test "$tst_glibc_strerror_r" = "yes"; then
38724
38725cat >>confdefs.h <<_ACEOF
38726#define HAVE_STRERROR_R 1
38727_ACEOF
38728
38729
38730cat >>confdefs.h <<_ACEOF
38731#define HAVE_GLIBC_STRERROR_R 1
38732_ACEOF
38733
38734
38735cat >>confdefs.h <<_ACEOF
38736#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38737_ACEOF
38738
38739 fi
38740 if test "$tst_posix_strerror_r" = "yes"; then
38741
38742cat >>confdefs.h <<_ACEOF
38743#define HAVE_STRERROR_R 1
38744_ACEOF
38745
38746
38747cat >>confdefs.h <<_ACEOF
38748#define HAVE_POSIX_STRERROR_R 1
38749_ACEOF
38750
38751
38752cat >>confdefs.h <<_ACEOF
38753#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38754_ACEOF
38755
38756 fi
38757 curl_cv_func_strerror_r="yes"
38758 else
38759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38760$as_echo "no" >&6; }
38761 curl_cv_func_strerror_r="no"
38762 fi
38763 #
38764 if test "$tst_compi_strerror_r" = "yes" &&
38765 test "$tst_allow_strerror_r" = "unknown"; then
38766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38767$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38768 fi
38769 #
38770
38771
38772 #
38773 tst_links_stricmp="unknown"
38774 tst_proto_stricmp="unknown"
38775 tst_compi_stricmp="unknown"
38776 tst_allow_stricmp="unknown"
38777 #
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38779$as_echo_n "checking if stricmp can be linked... " >&6; }
38780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38781/* end confdefs.h. */
38782
38783
38784#define stricmp innocuous_stricmp
38785#ifdef __STDC__
38786# include <limits.h>
38787#else
38788# include <assert.h>
38789#endif
38790#undef stricmp
38791#ifdef __cplusplus
38792extern "C"
38793#endif
38794char stricmp ();
38795#if defined __stub_stricmp || defined __stub___stricmp
38796choke me
38797#endif
38798
38799int main (void)
38800{
38801return stricmp ();
38802 ;
38803 return 0;
38804}
38805
38806_ACEOF
38807if ac_fn_c_try_link "$LINENO"; then :
38808
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38810$as_echo "yes" >&6; }
38811 tst_links_stricmp="yes"
38812
38813else
38814
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38816$as_echo "no" >&6; }
38817 tst_links_stricmp="no"
38818
38819fi
38820rm -f core conftest.err conftest.$ac_objext \
38821 conftest$ac_exeext conftest.$ac_ext
38822 #
38823 if test "$tst_links_stricmp" = "yes"; then
38824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38825$as_echo_n "checking if stricmp is prototyped... " >&6; }
38826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38827/* end confdefs.h. */
38828
38829 $curl_includes_string
38830
38831_ACEOF
38832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38833 $EGREP "stricmp" >/dev/null 2>&1; then :
38834
38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38836$as_echo "yes" >&6; }
38837 tst_proto_stricmp="yes"
38838
38839else
38840
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38842$as_echo "no" >&6; }
38843 tst_proto_stricmp="no"
38844
38845fi
38846rm -f conftest*
38847
38848 fi
38849 #
38850 if test "$tst_proto_stricmp" = "yes"; then
38851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38852$as_echo_n "checking if stricmp is compilable... " >&6; }
38853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38854/* end confdefs.h. */
38855
38856
38857 $curl_includes_string
38858
38859int main (void)
38860{
38861
38862 if(0 != stricmp(0, 0))
38863 return 1;
38864
38865 ;
38866 return 0;
38867}
38868
38869_ACEOF
38870if ac_fn_c_try_compile "$LINENO"; then :
38871
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873$as_echo "yes" >&6; }
38874 tst_compi_stricmp="yes"
38875
38876else
38877
38878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38879$as_echo "no" >&6; }
38880 tst_compi_stricmp="no"
38881
38882fi
38883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38884 fi
38885 #
38886 if test "$tst_compi_stricmp" = "yes"; then
38887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38888$as_echo_n "checking if stricmp usage allowed... " >&6; }
38889 if test "x$curl_disallow_stricmp" != "xyes"; then
38890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38891$as_echo "yes" >&6; }
38892 tst_allow_stricmp="yes"
38893 else
38894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38895$as_echo "no" >&6; }
38896 tst_allow_stricmp="no"
38897 fi
38898 fi
38899 #
38900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38901$as_echo_n "checking if stricmp might be used... " >&6; }
38902 if test "$tst_links_stricmp" = "yes" &&
38903 test "$tst_proto_stricmp" = "yes" &&
38904 test "$tst_compi_stricmp" = "yes" &&
38905 test "$tst_allow_stricmp" = "yes"; then
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38907$as_echo "yes" >&6; }
38908
38909cat >>confdefs.h <<_ACEOF
38910#define HAVE_STRICMP 1
38911_ACEOF
38912
38913 curl_cv_func_stricmp="yes"
38914 else
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38916$as_echo "no" >&6; }
38917 curl_cv_func_stricmp="no"
38918 fi
38919
38920
38921 #
38922 tst_links_strncasecmp="unknown"
38923 tst_proto_strncasecmp="unknown"
38924 tst_compi_strncasecmp="unknown"
38925 tst_allow_strncasecmp="unknown"
38926 #
38927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38928$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38930/* end confdefs.h. */
38931
38932
38933#define strncasecmp innocuous_strncasecmp
38934#ifdef __STDC__
38935# include <limits.h>
38936#else
38937# include <assert.h>
38938#endif
38939#undef strncasecmp
38940#ifdef __cplusplus
38941extern "C"
38942#endif
38943char strncasecmp ();
38944#if defined __stub_strncasecmp || defined __stub___strncasecmp
38945choke me
38946#endif
38947
38948int main (void)
38949{
38950return strncasecmp ();
38951 ;
38952 return 0;
38953}
38954
38955_ACEOF
38956if ac_fn_c_try_link "$LINENO"; then :
38957
38958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38959$as_echo "yes" >&6; }
38960 tst_links_strncasecmp="yes"
38961
38962else
38963
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965$as_echo "no" >&6; }
38966 tst_links_strncasecmp="no"
38967
38968fi
38969rm -f core conftest.err conftest.$ac_objext \
38970 conftest$ac_exeext conftest.$ac_ext
38971 #
38972 if test "$tst_links_strncasecmp" = "yes"; then
38973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38974$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38976/* end confdefs.h. */
38977
38978 $curl_includes_string
38979
38980_ACEOF
38981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38982 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38983
38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38985$as_echo "yes" >&6; }
38986 tst_proto_strncasecmp="yes"
38987
38988else
38989
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38991$as_echo "no" >&6; }
38992 tst_proto_strncasecmp="no"
38993
38994fi
38995rm -f conftest*
38996
38997 fi
38998 #
38999 if test "$tst_proto_strncasecmp" = "yes"; then
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39001$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39003/* end confdefs.h. */
39004
39005
39006 $curl_includes_string
39007
39008int main (void)
39009{
39010
39011 if(0 != strncasecmp(0, 0, 0))
39012 return 1;
39013
39014 ;
39015 return 0;
39016}
39017
39018_ACEOF
39019if ac_fn_c_try_compile "$LINENO"; then :
39020
39021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39022$as_echo "yes" >&6; }
39023 tst_compi_strncasecmp="yes"
39024
39025else
39026
39027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39028$as_echo "no" >&6; }
39029 tst_compi_strncasecmp="no"
39030
39031fi
39032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39033 fi
39034 #
39035 if test "$tst_compi_strncasecmp" = "yes"; then
39036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39037$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39038 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39040$as_echo "yes" >&6; }
39041 tst_allow_strncasecmp="yes"
39042 else
39043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39044$as_echo "no" >&6; }
39045 tst_allow_strncasecmp="no"
39046 fi
39047 fi
39048 #
39049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39050$as_echo_n "checking if strncasecmp might be used... " >&6; }
39051 if test "$tst_links_strncasecmp" = "yes" &&
39052 test "$tst_proto_strncasecmp" = "yes" &&
39053 test "$tst_compi_strncasecmp" = "yes" &&
39054 test "$tst_allow_strncasecmp" = "yes"; then
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39056$as_echo "yes" >&6; }
39057
39058cat >>confdefs.h <<_ACEOF
39059#define HAVE_STRNCASECMP 1
39060_ACEOF
39061
39062 curl_cv_func_strncasecmp="yes"
39063 else
39064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39065$as_echo "no" >&6; }
39066 curl_cv_func_strncasecmp="no"
39067 fi
39068
39069
39070 #
39071 tst_links_strncmpi="unknown"
39072 tst_proto_strncmpi="unknown"
39073 tst_compi_strncmpi="unknown"
39074 tst_allow_strncmpi="unknown"
39075 #
39076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39077$as_echo_n "checking if strncmpi can be linked... " >&6; }
39078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39079/* end confdefs.h. */
39080
39081
39082#define strncmpi innocuous_strncmpi
39083#ifdef __STDC__
39084# include <limits.h>
39085#else
39086# include <assert.h>
39087#endif
39088#undef strncmpi
39089#ifdef __cplusplus
39090extern "C"
39091#endif
39092char strncmpi ();
39093#if defined __stub_strncmpi || defined __stub___strncmpi
39094choke me
39095#endif
39096
39097int main (void)
39098{
39099return strncmpi ();
39100 ;
39101 return 0;
39102}
39103
39104_ACEOF
39105if ac_fn_c_try_link "$LINENO"; then :
39106
39107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39108$as_echo "yes" >&6; }
39109 tst_links_strncmpi="yes"
39110
39111else
39112
39113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39114$as_echo "no" >&6; }
39115 tst_links_strncmpi="no"
39116
39117fi
39118rm -f core conftest.err conftest.$ac_objext \
39119 conftest$ac_exeext conftest.$ac_ext
39120 #
39121 if test "$tst_links_strncmpi" = "yes"; then
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39123$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39125/* end confdefs.h. */
39126
39127 $curl_includes_string
39128
39129_ACEOF
39130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39131 $EGREP "strncmpi" >/dev/null 2>&1; then :
39132
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39134$as_echo "yes" >&6; }
39135 tst_proto_strncmpi="yes"
39136
39137else
39138
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39140$as_echo "no" >&6; }
39141 tst_proto_strncmpi="no"
39142
39143fi
39144rm -f conftest*
39145
39146 fi
39147 #
39148 if test "$tst_proto_strncmpi" = "yes"; then
39149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39150$as_echo_n "checking if strncmpi is compilable... " >&6; }
39151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39152/* end confdefs.h. */
39153
39154
39155 $curl_includes_string
39156
39157int main (void)
39158{
39159
39160 if(0 != strncmpi(0, 0))
39161 return 1;
39162
39163 ;
39164 return 0;
39165}
39166
39167_ACEOF
39168if ac_fn_c_try_compile "$LINENO"; then :
39169
39170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39171$as_echo "yes" >&6; }
39172 tst_compi_strncmpi="yes"
39173
39174else
39175
39176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39177$as_echo "no" >&6; }
39178 tst_compi_strncmpi="no"
39179
39180fi
39181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39182 fi
39183 #
39184 if test "$tst_compi_strncmpi" = "yes"; then
39185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39186$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39187 if test "x$curl_disallow_strncmpi" != "xyes"; then
39188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39189$as_echo "yes" >&6; }
39190 tst_allow_strncmpi="yes"
39191 else
39192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39193$as_echo "no" >&6; }
39194 tst_allow_strncmpi="no"
39195 fi
39196 fi
39197 #
39198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39199$as_echo_n "checking if strncmpi might be used... " >&6; }
39200 if test "$tst_links_strncmpi" = "yes" &&
39201 test "$tst_proto_strncmpi" = "yes" &&
39202 test "$tst_compi_strncmpi" = "yes" &&
39203 test "$tst_allow_strncmpi" = "yes"; then
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205$as_echo "yes" >&6; }
39206
39207cat >>confdefs.h <<_ACEOF
39208#define HAVE_STRNCMPI 1
39209_ACEOF
39210
39211 curl_cv_func_strncmpi="yes"
39212 else
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214$as_echo "no" >&6; }
39215 curl_cv_func_strncmpi="no"
39216 fi
39217
39218
39219 #
39220 tst_links_strnicmp="unknown"
39221 tst_proto_strnicmp="unknown"
39222 tst_compi_strnicmp="unknown"
39223 tst_allow_strnicmp="unknown"
39224 #
39225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39226$as_echo_n "checking if strnicmp can be linked... " >&6; }
39227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39228/* end confdefs.h. */
39229
39230
39231#define strnicmp innocuous_strnicmp
39232#ifdef __STDC__
39233# include <limits.h>
39234#else
39235# include <assert.h>
39236#endif
39237#undef strnicmp
39238#ifdef __cplusplus
39239extern "C"
39240#endif
39241char strnicmp ();
39242#if defined __stub_strnicmp || defined __stub___strnicmp
39243choke me
39244#endif
39245
39246int main (void)
39247{
39248return strnicmp ();
39249 ;
39250 return 0;
39251}
39252
39253_ACEOF
39254if ac_fn_c_try_link "$LINENO"; then :
39255
39256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39257$as_echo "yes" >&6; }
39258 tst_links_strnicmp="yes"
39259
39260else
39261
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39263$as_echo "no" >&6; }
39264 tst_links_strnicmp="no"
39265
39266fi
39267rm -f core conftest.err conftest.$ac_objext \
39268 conftest$ac_exeext conftest.$ac_ext
39269 #
39270 if test "$tst_links_strnicmp" = "yes"; then
39271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39272$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39274/* end confdefs.h. */
39275
39276 $curl_includes_string
39277
39278_ACEOF
39279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39280 $EGREP "strnicmp" >/dev/null 2>&1; then :
39281
39282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39283$as_echo "yes" >&6; }
39284 tst_proto_strnicmp="yes"
39285
39286else
39287
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39289$as_echo "no" >&6; }
39290 tst_proto_strnicmp="no"
39291
39292fi
39293rm -f conftest*
39294
39295 fi
39296 #
39297 if test "$tst_proto_strnicmp" = "yes"; then
39298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39299$as_echo_n "checking if strnicmp is compilable... " >&6; }
39300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39301/* end confdefs.h. */
39302
39303
39304 $curl_includes_string
39305
39306int main (void)
39307{
39308
39309 if(0 != strnicmp(0, 0))
39310 return 1;
39311
39312 ;
39313 return 0;
39314}
39315
39316_ACEOF
39317if ac_fn_c_try_compile "$LINENO"; then :
39318
39319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39320$as_echo "yes" >&6; }
39321 tst_compi_strnicmp="yes"
39322
39323else
39324
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39326$as_echo "no" >&6; }
39327 tst_compi_strnicmp="no"
39328
39329fi
39330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39331 fi
39332 #
39333 if test "$tst_compi_strnicmp" = "yes"; then
39334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39335$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39336 if test "x$curl_disallow_strnicmp" != "xyes"; then
39337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39338$as_echo "yes" >&6; }
39339 tst_allow_strnicmp="yes"
39340 else
39341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39342$as_echo "no" >&6; }
39343 tst_allow_strnicmp="no"
39344 fi
39345 fi
39346 #
39347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39348$as_echo_n "checking if strnicmp might be used... " >&6; }
39349 if test "$tst_links_strnicmp" = "yes" &&
39350 test "$tst_proto_strnicmp" = "yes" &&
39351 test "$tst_compi_strnicmp" = "yes" &&
39352 test "$tst_allow_strnicmp" = "yes"; then
39353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39354$as_echo "yes" >&6; }
39355
39356cat >>confdefs.h <<_ACEOF
39357#define HAVE_STRNICMP 1
39358_ACEOF
39359
39360 curl_cv_func_strnicmp="yes"
39361 else
39362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39363$as_echo "no" >&6; }
39364 curl_cv_func_strnicmp="no"
39365 fi
39366
39367
39368 #
39369 tst_links_strstr="unknown"
39370 tst_proto_strstr="unknown"
39371 tst_compi_strstr="unknown"
39372 tst_allow_strstr="unknown"
39373 #
39374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39375$as_echo_n "checking if strstr can be linked... " >&6; }
39376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39377/* end confdefs.h. */
39378
39379
39380#define strstr innocuous_strstr
39381#ifdef __STDC__
39382# include <limits.h>
39383#else
39384# include <assert.h>
39385#endif
39386#undef strstr
39387#ifdef __cplusplus
39388extern "C"
39389#endif
39390char strstr ();
39391#if defined __stub_strstr || defined __stub___strstr
39392choke me
39393#endif
39394
39395int main (void)
39396{
39397return strstr ();
39398 ;
39399 return 0;
39400}
39401
39402_ACEOF
39403if ac_fn_c_try_link "$LINENO"; then :
39404
39405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39406$as_echo "yes" >&6; }
39407 tst_links_strstr="yes"
39408
39409else
39410
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39412$as_echo "no" >&6; }
39413 tst_links_strstr="no"
39414
39415fi
39416rm -f core conftest.err conftest.$ac_objext \
39417 conftest$ac_exeext conftest.$ac_ext
39418 #
39419 if test "$tst_links_strstr" = "yes"; then
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39421$as_echo_n "checking if strstr is prototyped... " >&6; }
39422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39423/* end confdefs.h. */
39424
39425 $curl_includes_string
39426
39427_ACEOF
39428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39429 $EGREP "strstr" >/dev/null 2>&1; then :
39430
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39432$as_echo "yes" >&6; }
39433 tst_proto_strstr="yes"
39434
39435else
39436
39437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39438$as_echo "no" >&6; }
39439 tst_proto_strstr="no"
39440
39441fi
39442rm -f conftest*
39443
39444 fi
39445 #
39446 if test "$tst_proto_strstr" = "yes"; then
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39448$as_echo_n "checking if strstr is compilable... " >&6; }
39449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39450/* end confdefs.h. */
39451
39452
39453 $curl_includes_string
39454
39455int main (void)
39456{
39457
39458 if(0 != strstr(0, 0))
39459 return 1;
39460
39461 ;
39462 return 0;
39463}
39464
39465_ACEOF
39466if ac_fn_c_try_compile "$LINENO"; then :
39467
39468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39469$as_echo "yes" >&6; }
39470 tst_compi_strstr="yes"
39471
39472else
39473
39474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39475$as_echo "no" >&6; }
39476 tst_compi_strstr="no"
39477
39478fi
39479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39480 fi
39481 #
39482 if test "$tst_compi_strstr" = "yes"; then
39483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39484$as_echo_n "checking if strstr usage allowed... " >&6; }
39485 if test "x$curl_disallow_strstr" != "xyes"; then
39486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39487$as_echo "yes" >&6; }
39488 tst_allow_strstr="yes"
39489 else
39490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39491$as_echo "no" >&6; }
39492 tst_allow_strstr="no"
39493 fi
39494 fi
39495 #
39496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39497$as_echo_n "checking if strstr might be used... " >&6; }
39498 if test "$tst_links_strstr" = "yes" &&
39499 test "$tst_proto_strstr" = "yes" &&
39500 test "$tst_compi_strstr" = "yes" &&
39501 test "$tst_allow_strstr" = "yes"; then
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39503$as_echo "yes" >&6; }
39504
39505cat >>confdefs.h <<_ACEOF
39506#define HAVE_STRSTR 1
39507_ACEOF
39508
39509 curl_cv_func_strstr="yes"
39510 else
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512$as_echo "no" >&6; }
39513 curl_cv_func_strstr="no"
39514 fi
39515
39516
39517 #
39518 tst_links_strtok_r="unknown"
39519 tst_proto_strtok_r="unknown"
39520 tst_compi_strtok_r="unknown"
39521 tst_allow_strtok_r="unknown"
39522 #
39523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39524$as_echo_n "checking if strtok_r can be linked... " >&6; }
39525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39526/* end confdefs.h. */
39527
39528
39529#define strtok_r innocuous_strtok_r
39530#ifdef __STDC__
39531# include <limits.h>
39532#else
39533# include <assert.h>
39534#endif
39535#undef strtok_r
39536#ifdef __cplusplus
39537extern "C"
39538#endif
39539char strtok_r ();
39540#if defined __stub_strtok_r || defined __stub___strtok_r
39541choke me
39542#endif
39543
39544int main (void)
39545{
39546return strtok_r ();
39547 ;
39548 return 0;
39549}
39550
39551_ACEOF
39552if ac_fn_c_try_link "$LINENO"; then :
39553
39554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39555$as_echo "yes" >&6; }
39556 tst_links_strtok_r="yes"
39557
39558else
39559
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561$as_echo "no" >&6; }
39562 tst_links_strtok_r="no"
39563
39564fi
39565rm -f core conftest.err conftest.$ac_objext \
39566 conftest$ac_exeext conftest.$ac_ext
39567 #
39568 if test "$tst_links_strtok_r" = "yes"; then
39569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39570$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39572/* end confdefs.h. */
39573
39574 $curl_includes_string
39575
39576_ACEOF
39577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39578 $EGREP "strtok_r" >/dev/null 2>&1; then :
39579
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39581$as_echo "yes" >&6; }
39582 tst_proto_strtok_r="yes"
39583
39584else
39585
39586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39587$as_echo "no" >&6; }
39588 tst_proto_strtok_r="no"
39589
39590fi
39591rm -f conftest*
39592
39593 fi
39594 #
39595 if test "$tst_proto_strtok_r" = "yes"; then
39596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39597$as_echo_n "checking if strtok_r is compilable... " >&6; }
39598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39599/* end confdefs.h. */
39600
39601
39602 $curl_includes_string
39603
39604int main (void)
39605{
39606
39607 if(0 != strtok_r(0, 0, 0))
39608 return 1;
39609
39610 ;
39611 return 0;
39612}
39613
39614_ACEOF
39615if ac_fn_c_try_compile "$LINENO"; then :
39616
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39618$as_echo "yes" >&6; }
39619 tst_compi_strtok_r="yes"
39620
39621else
39622
39623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39624$as_echo "no" >&6; }
39625 tst_compi_strtok_r="no"
39626
39627fi
39628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39629 fi
39630 #
39631 if test "$tst_compi_strtok_r" = "yes"; then
39632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39633$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39634 if test "x$curl_disallow_strtok_r" != "xyes"; then
39635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39636$as_echo "yes" >&6; }
39637 tst_allow_strtok_r="yes"
39638 else
39639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39640$as_echo "no" >&6; }
39641 tst_allow_strtok_r="no"
39642 fi
39643 fi
39644 #
39645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39646$as_echo_n "checking if strtok_r might be used... " >&6; }
39647 if test "$tst_links_strtok_r" = "yes" &&
39648 test "$tst_proto_strtok_r" = "yes" &&
39649 test "$tst_compi_strtok_r" = "yes" &&
39650 test "$tst_allow_strtok_r" = "yes"; then
39651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39652$as_echo "yes" >&6; }
39653
39654cat >>confdefs.h <<_ACEOF
39655#define HAVE_STRTOK_R 1
39656_ACEOF
39657
39658 curl_cv_func_strtok_r="yes"
39659 else
39660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39661$as_echo "no" >&6; }
39662 curl_cv_func_strtok_r="no"
39663 fi
39664
39665
39666 #
39667 tst_links_strtoll="unknown"
39668 tst_proto_strtoll="unknown"
39669 tst_compi_strtoll="unknown"
39670 tst_allow_strtoll="unknown"
39671 #
39672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39673$as_echo_n "checking if strtoll can be linked... " >&6; }
39674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39675/* end confdefs.h. */
39676
39677
39678#define strtoll innocuous_strtoll
39679#ifdef __STDC__
39680# include <limits.h>
39681#else
39682# include <assert.h>
39683#endif
39684#undef strtoll
39685#ifdef __cplusplus
39686extern "C"
39687#endif
39688char strtoll ();
39689#if defined __stub_strtoll || defined __stub___strtoll
39690choke me
39691#endif
39692
39693int main (void)
39694{
39695return strtoll ();
39696 ;
39697 return 0;
39698}
39699
39700_ACEOF
39701if ac_fn_c_try_link "$LINENO"; then :
39702
39703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39704$as_echo "yes" >&6; }
39705 tst_links_strtoll="yes"
39706
39707else
39708
39709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39710$as_echo "no" >&6; }
39711 tst_links_strtoll="no"
39712
39713fi
39714rm -f core conftest.err conftest.$ac_objext \
39715 conftest$ac_exeext conftest.$ac_ext
39716 #
39717 if test "$tst_links_strtoll" = "yes"; then
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39719$as_echo_n "checking if strtoll is prototyped... " >&6; }
39720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39721/* end confdefs.h. */
39722
39723 $curl_includes_stdlib
39724
39725_ACEOF
39726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39727 $EGREP "strtoll" >/dev/null 2>&1; then :
39728
39729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39730$as_echo "yes" >&6; }
39731 tst_proto_strtoll="yes"
39732
39733else
39734
39735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39736$as_echo "no" >&6; }
39737 tst_proto_strtoll="no"
39738
39739fi
39740rm -f conftest*
39741
39742 fi
39743 #
39744 if test "$tst_proto_strtoll" = "yes"; then
39745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39746$as_echo_n "checking if strtoll is compilable... " >&6; }
39747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39748/* end confdefs.h. */
39749
39750
39751 $curl_includes_stdlib
39752
39753int main (void)
39754{
39755
39756 if(0 != strtoll(0, 0, 0))
39757 return 1;
39758
39759 ;
39760 return 0;
39761}
39762
39763_ACEOF
39764if ac_fn_c_try_compile "$LINENO"; then :
39765
39766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39767$as_echo "yes" >&6; }
39768 tst_compi_strtoll="yes"
39769
39770else
39771
39772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39773$as_echo "no" >&6; }
39774 tst_compi_strtoll="no"
39775
39776fi
39777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39778 fi
39779 #
39780 if test "$tst_compi_strtoll" = "yes"; then
39781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39782$as_echo_n "checking if strtoll usage allowed... " >&6; }
39783 if test "x$curl_disallow_strtoll" != "xyes"; then
39784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39785$as_echo "yes" >&6; }
39786 tst_allow_strtoll="yes"
39787 else
39788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39789$as_echo "no" >&6; }
39790 tst_allow_strtoll="no"
39791 fi
39792 fi
39793 #
39794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39795$as_echo_n "checking if strtoll might be used... " >&6; }
39796 if test "$tst_links_strtoll" = "yes" &&
39797 test "$tst_proto_strtoll" = "yes" &&
39798 test "$tst_compi_strtoll" = "yes" &&
39799 test "$tst_allow_strtoll" = "yes"; then
39800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39801$as_echo "yes" >&6; }
39802
39803cat >>confdefs.h <<_ACEOF
39804#define HAVE_STRTOLL 1
39805_ACEOF
39806
39807 curl_cv_func_strtoll="yes"
39808 else
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39810$as_echo "no" >&6; }
39811 curl_cv_func_strtoll="no"
39812 fi
39813
39814
39815curl_includes_sys_uio="\
39816/* includes start */
39817#ifdef HAVE_SYS_TYPES_H
39818# include <sys/types.h>
39819#endif
39820#ifdef HAVE_SYS_UIO_H
39821# include <sys/uio.h>
39822#endif
39823/* includes end */"
39824 for ac_header in sys/types.h sys/uio.h
39825do :
39826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39827ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39828"
39829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39830 cat >>confdefs.h <<_ACEOF
39831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39832_ACEOF
39833
39834fi
39835
39836done
39837
39838
39839
39840 #
39841 tst_links_writev="unknown"
39842 tst_proto_writev="unknown"
39843 tst_compi_writev="unknown"
39844 tst_allow_writev="unknown"
39845 #
39846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39847$as_echo_n "checking if writev can be linked... " >&6; }
39848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39849/* end confdefs.h. */
39850
39851
39852#define writev innocuous_writev
39853#ifdef __STDC__
39854# include <limits.h>
39855#else
39856# include <assert.h>
39857#endif
39858#undef writev
39859#ifdef __cplusplus
39860extern "C"
39861#endif
39862char writev ();
39863#if defined __stub_writev || defined __stub___writev
39864choke me
39865#endif
39866
39867int main (void)
39868{
39869return writev ();
39870 ;
39871 return 0;
39872}
39873
39874_ACEOF
39875if ac_fn_c_try_link "$LINENO"; then :
39876
39877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39878$as_echo "yes" >&6; }
39879 tst_links_writev="yes"
39880
39881else
39882
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39884$as_echo "no" >&6; }
39885 tst_links_writev="no"
39886
39887fi
39888rm -f core conftest.err conftest.$ac_objext \
39889 conftest$ac_exeext conftest.$ac_ext
39890 #
39891 if test "$tst_links_writev" = "yes"; then
39892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39893$as_echo_n "checking if writev is prototyped... " >&6; }
39894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39895/* end confdefs.h. */
39896
39897 $curl_includes_sys_uio
39898
39899_ACEOF
39900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39901 $EGREP "writev" >/dev/null 2>&1; then :
39902
39903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39904$as_echo "yes" >&6; }
39905 tst_proto_writev="yes"
39906
39907else
39908
39909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39910$as_echo "no" >&6; }
39911 tst_proto_writev="no"
39912
39913fi
39914rm -f conftest*
39915
39916 fi
39917 #
39918 if test "$tst_proto_writev" = "yes"; then
39919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39920$as_echo_n "checking if writev is compilable... " >&6; }
39921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39922/* end confdefs.h. */
39923
39924
39925 $curl_includes_sys_uio
39926
39927int main (void)
39928{
39929
39930 if(0 != writev(0, 0, 0))
39931 return 1;
39932
39933 ;
39934 return 0;
39935}
39936
39937_ACEOF
39938if ac_fn_c_try_compile "$LINENO"; then :
39939
39940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39941$as_echo "yes" >&6; }
39942 tst_compi_writev="yes"
39943
39944else
39945
39946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39947$as_echo "no" >&6; }
39948 tst_compi_writev="no"
39949
39950fi
39951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39952 fi
39953 #
39954 if test "$tst_compi_writev" = "yes"; then
39955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39956$as_echo_n "checking if writev usage allowed... " >&6; }
39957 if test "x$curl_disallow_writev" != "xyes"; then
39958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39959$as_echo "yes" >&6; }
39960 tst_allow_writev="yes"
39961 else
39962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39963$as_echo "no" >&6; }
39964 tst_allow_writev="no"
39965 fi
39966 fi
39967 #
39968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39969$as_echo_n "checking if writev might be used... " >&6; }
39970 if test "$tst_links_writev" = "yes" &&
39971 test "$tst_proto_writev" = "yes" &&
39972 test "$tst_compi_writev" = "yes" &&
39973 test "$tst_allow_writev" = "yes"; then
39974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39975$as_echo "yes" >&6; }
39976
39977cat >>confdefs.h <<_ACEOF
39978#define HAVE_WRITEV 1
39979_ACEOF
39980
39981 curl_cv_func_writev="yes"
39982 else
39983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39984$as_echo "no" >&6; }
39985 curl_cv_func_writev="no"
39986 fi
39987
39988
39989case $host in
39990 *msdosdjgpp)
39991 ac_cv_func_pipe=no
39992 skipcheck_pipe=yes
39993 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39994$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39995 ;;
39996esac
39997
Elliott Hughes72d948d2018-08-03 14:37:21 -070039998ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
39999 #include <sys/types.h>
40000"
40001if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40002 ac_have_decl=1
40003else
40004 ac_have_decl=0
40005fi
40006
40007cat >>confdefs.h <<_ACEOF
40008#define HAVE_DECL_GETPWUID_R $ac_have_decl
40009_ACEOF
40010if test $ac_have_decl = 1; then :
40011
40012else
40013
40014$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40015
40016fi
40017
40018
40019
40020for ac_func in fnmatch \
40021 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040022 getpass_r \
40023 getppid \
40024 getpwuid \
40025 getpwuid_r \
40026 getrlimit \
40027 gettimeofday \
40028 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040029 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040030 pipe \
40031 setlocale \
40032 setmode \
40033 setrlimit \
40034 utime \
40035 utimes
40036
40037do :
40038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40039ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40040if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40041 cat >>confdefs.h <<_ACEOF
40042#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40043_ACEOF
40044
40045
40046else
40047
40048 func="$ac_func"
40049 eval skipcheck=\$skipcheck_$func
40050 if test "x$skipcheck" != "xyes"; then
40051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40052$as_echo_n "checking deeper for $func... " >&6; }
40053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40054/* end confdefs.h. */
40055
40056
40057
40058int main (void)
40059{
40060
40061 $func ();
40062
40063 ;
40064 return 0;
40065}
40066
40067_ACEOF
40068if ac_fn_c_try_link "$LINENO"; then :
40069
40070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40071$as_echo "yes" >&6; }
40072 eval "ac_cv_func_$func=yes"
40073
40074cat >>confdefs.h <<_ACEOF
40075#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40076_ACEOF
40077
40078
40079else
40080
40081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40082$as_echo "but still no" >&6; }
40083
40084fi
40085rm -f core conftest.err conftest.$ac_objext \
40086 conftest$ac_exeext conftest.$ac_ext
40087 fi
40088
40089fi
40090done
40091
40092
Elliott Hughes82be86d2017-09-20 17:00:17 -070040093if test "$ipv6" = "yes"; then
40094 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40095
40096$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40097
40098 IPV6_ENABLED=1
40099
40100 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040101fi
40102
40103
40104 #
40105 tst_method="unknown"
40106
40107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40108$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40109 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40110 tst_method="fcntl O_NONBLOCK"
40111 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40112 tst_method="ioctl FIONBIO"
40113 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40114 tst_method="ioctlsocket FIONBIO"
40115 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40116 tst_method="IoctlSocket FIONBIO"
40117 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40118 tst_method="setsockopt SO_NONBLOCK"
40119 fi
40120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40121$as_echo "$tst_method" >&6; }
40122 if test "$tst_method" = "unknown"; then
40123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40124$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40125 fi
40126
40127
40128
40129# Extract the first word of "perl", so it can be a program name with args.
40130set dummy perl; ac_word=$2
40131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40132$as_echo_n "checking for $ac_word... " >&6; }
40133if ${ac_cv_path_PERL+:} false; then :
40134 $as_echo_n "(cached) " >&6
40135else
40136 case $PERL in
40137 [\\/]* | ?:[\\/]*)
40138 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40139 ;;
40140 *)
40141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40142as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40143for as_dir in $as_dummy
40144do
40145 IFS=$as_save_IFS
40146 test -z "$as_dir" && as_dir=.
40147 for ac_exec_ext in '' $ac_executable_extensions; do
40148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40149 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40151 break 2
40152 fi
40153done
40154 done
40155IFS=$as_save_IFS
40156
40157 ;;
40158esac
40159fi
40160PERL=$ac_cv_path_PERL
40161if test -n "$PERL"; then
40162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40163$as_echo "$PERL" >&6; }
40164else
40165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40166$as_echo "no" >&6; }
40167fi
40168
40169
40170
40171
40172for ac_prog in gnroff nroff
40173do
40174 # Extract the first word of "$ac_prog", so it can be a program name with args.
40175set dummy $ac_prog; ac_word=$2
40176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40177$as_echo_n "checking for $ac_word... " >&6; }
40178if ${ac_cv_path_NROFF+:} false; then :
40179 $as_echo_n "(cached) " >&6
40180else
40181 case $NROFF in
40182 [\\/]* | ?:[\\/]*)
40183 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40184 ;;
40185 *)
40186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40187as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40188for as_dir in $as_dummy
40189do
40190 IFS=$as_save_IFS
40191 test -z "$as_dir" && as_dir=.
40192 for ac_exec_ext in '' $ac_executable_extensions; do
40193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40194 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40196 break 2
40197 fi
40198done
40199 done
40200IFS=$as_save_IFS
40201
40202 ;;
40203esac
40204fi
40205NROFF=$ac_cv_path_NROFF
40206if test -n "$NROFF"; then
40207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40208$as_echo "$NROFF" >&6; }
40209else
40210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40211$as_echo "no" >&6; }
40212fi
40213
40214
40215 test -n "$NROFF" && break
40216done
40217
40218
40219
40220if test -n "$NROFF"; then
40221
40222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40223$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40224 MANOPT="-man"
40225 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40226 if test -z "$mancheck"; then
40227 MANOPT="-mandoc"
40228 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40229 if test -z "$mancheck"; then
40230 MANOPT=""
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40232$as_echo "failed" >&6; }
40233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40234$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40235 else
40236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40237$as_echo "$MANOPT" >&6; }
40238 fi
40239 else
40240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40241$as_echo "$MANOPT" >&6; }
40242 fi
40243
40244fi
40245
40246if test -z "$MANOPT"
40247then
40248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40249$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40250 USE_MANUAL="no";
40251fi
40252
40253
40254if test "$USE_MANUAL" = "1"; then
40255
40256$as_echo "#define USE_MANUAL 1" >>confdefs.h
40257
40258 curl_manual_msg="enabled"
40259fi
40260
40261 if test x"$USE_MANUAL" = x1; then
40262 USE_MANUAL_TRUE=
40263 USE_MANUAL_FALSE='#'
40264else
40265 USE_MANUAL_TRUE='#'
40266 USE_MANUAL_FALSE=
40267fi
40268
40269
40270
40271
40272
40273 #
40274 if test "$want_ares" = "yes"; then
40275 clean_CPPFLAGS="$CPPFLAGS"
40276 clean_LDFLAGS="$LDFLAGS"
40277 clean_LIBS="$LIBS"
40278 embedded_ares="unknown"
40279 configure_runpath=`pwd`
40280 embedded_ares_builddir="$configure_runpath/ares"
40281 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040282 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40283
40284 if test -n "$PKG_CONFIG"; then
40285 PKGCONFIG="$PKG_CONFIG"
40286 else
40287 if test -n "$ac_tool_prefix"; then
40288 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40289set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40291$as_echo_n "checking for $ac_word... " >&6; }
40292if ${ac_cv_path_PKGCONFIG+:} false; then :
40293 $as_echo_n "(cached) " >&6
40294else
40295 case $PKGCONFIG in
40296 [\\/]* | ?:[\\/]*)
40297 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40298 ;;
40299 *)
40300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40301as_dummy="$PATH:/usr/bin:/usr/local/bin"
40302for as_dir in $as_dummy
40303do
40304 IFS=$as_save_IFS
40305 test -z "$as_dir" && as_dir=.
40306 for ac_exec_ext in '' $ac_executable_extensions; do
40307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40308 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40310 break 2
40311 fi
40312done
40313 done
40314IFS=$as_save_IFS
40315
40316 ;;
40317esac
40318fi
40319PKGCONFIG=$ac_cv_path_PKGCONFIG
40320if test -n "$PKGCONFIG"; then
40321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40322$as_echo "$PKGCONFIG" >&6; }
40323else
40324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40325$as_echo "no" >&6; }
40326fi
40327
40328
40329fi
40330if test -z "$ac_cv_path_PKGCONFIG"; then
40331 ac_pt_PKGCONFIG=$PKGCONFIG
40332 # Extract the first word of "pkg-config", so it can be a program name with args.
40333set dummy pkg-config; ac_word=$2
40334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40335$as_echo_n "checking for $ac_word... " >&6; }
40336if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40337 $as_echo_n "(cached) " >&6
40338else
40339 case $ac_pt_PKGCONFIG in
40340 [\\/]* | ?:[\\/]*)
40341 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40342 ;;
40343 *)
40344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40345as_dummy="$PATH:/usr/bin:/usr/local/bin"
40346for as_dir in $as_dummy
40347do
40348 IFS=$as_save_IFS
40349 test -z "$as_dir" && as_dir=.
40350 for ac_exec_ext in '' $ac_executable_extensions; do
40351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40352 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40354 break 2
40355 fi
40356done
40357 done
40358IFS=$as_save_IFS
40359
40360 ;;
40361esac
40362fi
40363ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40364if test -n "$ac_pt_PKGCONFIG"; then
40365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40366$as_echo "$ac_pt_PKGCONFIG" >&6; }
40367else
40368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40369$as_echo "no" >&6; }
40370fi
40371
40372 if test "x$ac_pt_PKGCONFIG" = x; then
40373 PKGCONFIG="no"
40374 else
40375 case $cross_compiling:$ac_tool_warned in
40376yes:)
40377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40379ac_tool_warned=yes ;;
40380esac
40381 PKGCONFIG=$ac_pt_PKGCONFIG
40382 fi
40383else
40384 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40385fi
40386
40387 fi
40388
40389 if test "x$PKGCONFIG" != "xno"; then
40390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40391$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40392 itexists=`
40393 if test -n "$ARES_PCDIR"; then
40394 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40395 export PKG_CONFIG_LIBDIR
40396 fi
40397 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40398
40399 if test -z "$itexists"; then
40400 PKGCONFIG="no"
40401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40402$as_echo "no" >&6; }
40403 else
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40405$as_echo "found" >&6; }
40406 fi
40407 fi
40408
40409 if test "$PKGCONFIG" != "no" ; then
40410 ares_LIBS=`
40411 if test -n "$ARES_PCDIR"; then
40412 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40413 export PKG_CONFIG_LIBDIR
40414 fi
40415
40416 $PKGCONFIG --libs-only-l libcares`
40417 ares_LDFLAGS=`
40418 if test -n "$ARES_PCDIR"; then
40419 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40420 export PKG_CONFIG_LIBDIR
40421 fi
40422
40423 $PKGCONFIG --libs-only-L libcares`
40424 ares_CPPFLAGS=`
40425 if test -n "$ARES_PCDIR"; then
40426 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40427 export PKG_CONFIG_LIBDIR
40428 fi
40429
40430 $PKGCONFIG --cflags-only-I libcares`
40431 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40432$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40433 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40434$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40435 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40436$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40437 else
40438 ares_CPPFLAGS="-I$want_ares_path/include"
40439 ares_LDFLAGS="-L$want_ares_path/lib"
40440 ares_LIBS="-lcares"
40441 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040442 else
40443 if test -d "$srcdir/ares"; then
40444 embedded_ares="yes"
40445 subdirs="$subdirs ares"
40446
40447 ares_CPPFLAGS=""
40448 ares_LDFLAGS="-L$embedded_ares_builddir"
40449 ares_LIBS="-lcares"
40450 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040451
40452 if test -n "$PKG_CONFIG"; then
40453 PKGCONFIG="$PKG_CONFIG"
40454 else
40455 if test -n "$ac_tool_prefix"; then
40456 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40457set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40459$as_echo_n "checking for $ac_word... " >&6; }
40460if ${ac_cv_path_PKGCONFIG+:} false; then :
40461 $as_echo_n "(cached) " >&6
40462else
40463 case $PKGCONFIG in
40464 [\\/]* | ?:[\\/]*)
40465 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40466 ;;
40467 *)
40468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40469as_dummy="$PATH:/usr/bin:/usr/local/bin"
40470for as_dir in $as_dummy
40471do
40472 IFS=$as_save_IFS
40473 test -z "$as_dir" && as_dir=.
40474 for ac_exec_ext in '' $ac_executable_extensions; do
40475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40476 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40478 break 2
40479 fi
40480done
40481 done
40482IFS=$as_save_IFS
40483
40484 ;;
40485esac
40486fi
40487PKGCONFIG=$ac_cv_path_PKGCONFIG
40488if test -n "$PKGCONFIG"; then
40489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40490$as_echo "$PKGCONFIG" >&6; }
40491else
40492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40493$as_echo "no" >&6; }
40494fi
40495
40496
40497fi
40498if test -z "$ac_cv_path_PKGCONFIG"; then
40499 ac_pt_PKGCONFIG=$PKGCONFIG
40500 # Extract the first word of "pkg-config", so it can be a program name with args.
40501set dummy pkg-config; ac_word=$2
40502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40503$as_echo_n "checking for $ac_word... " >&6; }
40504if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40505 $as_echo_n "(cached) " >&6
40506else
40507 case $ac_pt_PKGCONFIG in
40508 [\\/]* | ?:[\\/]*)
40509 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40510 ;;
40511 *)
40512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40513as_dummy="$PATH:/usr/bin:/usr/local/bin"
40514for as_dir in $as_dummy
40515do
40516 IFS=$as_save_IFS
40517 test -z "$as_dir" && as_dir=.
40518 for ac_exec_ext in '' $ac_executable_extensions; do
40519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40520 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40522 break 2
40523 fi
40524done
40525 done
40526IFS=$as_save_IFS
40527
40528 ;;
40529esac
40530fi
40531ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40532if test -n "$ac_pt_PKGCONFIG"; then
40533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40534$as_echo "$ac_pt_PKGCONFIG" >&6; }
40535else
40536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40537$as_echo "no" >&6; }
40538fi
40539
40540 if test "x$ac_pt_PKGCONFIG" = x; then
40541 PKGCONFIG="no"
40542 else
40543 case $cross_compiling:$ac_tool_warned in
40544yes:)
40545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40547ac_tool_warned=yes ;;
40548esac
40549 PKGCONFIG=$ac_pt_PKGCONFIG
40550 fi
40551else
40552 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40553fi
40554
40555 fi
40556
40557 if test "x$PKGCONFIG" != "xno"; then
40558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40559$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40560 itexists=`
40561 if test -n ""; then
40562 PKG_CONFIG_LIBDIR=""
40563 export PKG_CONFIG_LIBDIR
40564 fi
40565 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40566
40567 if test -z "$itexists"; then
40568 PKGCONFIG="no"
40569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40570$as_echo "no" >&6; }
40571 else
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40573$as_echo "found" >&6; }
40574 fi
40575 fi
40576
40577 if test "$PKGCONFIG" != "no" ; then
40578 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40579 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40580 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40581 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40582$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40583 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40584$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40585 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40586$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40587 else
40588 ares_CPPFLAGS=""
40589 ares_LDFLAGS=""
40590 ares_LIBS="-lcares"
40591 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040592 fi
40593 fi
40594 #
40595 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40596 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40597 LIBS="$ares_LIBS $clean_LIBS"
40598 #
40599 if test "$embedded_ares" != "yes"; then
40600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40601$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40603/* end confdefs.h. */
40604
40605
40606#include <ares.h>
40607 /* set of dummy functions in case c-ares was built with debug */
40608 void curl_dofree() { }
40609 void curl_sclose() { }
40610 void curl_domalloc() { }
40611 void curl_docalloc() { }
40612 void curl_socket() { }
40613
40614int main (void)
40615{
40616
40617 ares_channel channel;
40618 ares_cancel(channel); /* added in 1.2.0 */
40619 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40620 ares_dup(&channel, channel); /* added in 1.6.0 */
40621
40622 ;
40623 return 0;
40624}
40625
40626_ACEOF
40627if ac_fn_c_try_link "$LINENO"; then :
40628
40629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40630$as_echo "yes" >&6; }
40631
40632else
40633
40634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40635$as_echo "no" >&6; }
40636 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40637 CPPFLAGS="$clean_CPPFLAGS"
40638 LDFLAGS="$clean_LDFLAGS"
40639 LIBS="$clean_LIBS"
40640 # prevent usage
40641 want_ares="no"
40642
40643fi
40644rm -f core conftest.err conftest.$ac_objext \
40645 conftest$ac_exeext conftest.$ac_ext
40646 fi
40647 if test "$want_ares" = "yes"; then
40648
40649$as_echo "#define USE_ARES 1" >>confdefs.h
40650
40651 USE_ARES=1
40652
40653 curl_res_msg="c-ares"
40654 fi
40655 fi
40656
40657 if test x$embedded_ares = xyes; then
40658 USE_EMBEDDED_ARES_TRUE=
40659 USE_EMBEDDED_ARES_FALSE='#'
40660else
40661 USE_EMBEDDED_ARES_TRUE='#'
40662 USE_EMBEDDED_ARES_FALSE=
40663fi
40664
40665
40666if test "x$curl_cv_native_windows" != "xyes" &&
40667 test "x$enable_shared" = "xyes"; then
40668 build_libhostname=yes
40669else
40670 build_libhostname=no
40671fi
40672 if test x$build_libhostname = xyes; then
40673 BUILD_LIBHOSTNAME_TRUE=
40674 BUILD_LIBHOSTNAME_FALSE='#'
40675else
40676 BUILD_LIBHOSTNAME_TRUE='#'
40677 BUILD_LIBHOSTNAME_FALSE=
40678fi
40679
40680
40681if test "x$want_ares" != xyes; then
40682
40683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40684$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40685 OPT_THRES="default"
40686 # Check whether --enable-threaded_resolver was given.
40687if test "${enable_threaded_resolver+set}" = set; then :
40688 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40689fi
40690
40691 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040692 no)
40693 want_thres="no"
40694 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040695 *)
40696 want_thres="yes"
40697 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040698 esac
40699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40700$as_echo "$want_thres" >&6; }
40701
40702fi
40703
40704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40705$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40706# Check whether --enable-pthreads was given.
40707if test "${enable_pthreads+set}" = set; then :
40708 enableval=$enable_pthreads; case "$enableval" in
40709 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40710$as_echo "no" >&6; }
40711 want_pthreads=no
40712 ;;
40713 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40714$as_echo "yes" >&6; }
40715 want_pthreads=yes
40716 ;;
40717 esac
40718else
40719
40720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40721$as_echo "auto" >&6; }
40722 want_pthreads=auto
40723
40724
40725fi
40726
40727
40728if test "$want_pthreads" != "no"; then
40729 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40730 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40731 fi
40732 if test "$dontwant_rt" != "no"; then
40733 if test "$want_pthreads" = "yes"; then
40734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40735$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40736 fi
40737 want_pthreads=no
40738 fi
40739fi
40740
40741if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40742 want_pthreads=no
40743fi
40744
40745if test "$want_pthreads" != "no"; then
40746 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40747if test "x$ac_cv_header_pthread_h" = xyes; then :
40748
40749$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40750
40751 save_CFLAGS="$CFLAGS"
40752
40753 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40754if test "x$ac_cv_func_pthread_create" = xyes; then :
40755 USE_THREADS_POSIX=1
40756fi
40757
40758
40759 if test "$USE_THREADS_POSIX" != "1"
40760 then
40761 CFLAGS="$CFLAGS -pthread"
40762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40763$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40764if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40765 $as_echo_n "(cached) " >&6
40766else
40767 ac_check_lib_save_LIBS=$LIBS
40768LIBS="-lpthread $LIBS"
40769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40770/* end confdefs.h. */
40771
40772
40773#ifdef __cplusplus
40774extern "C"
40775#endif
40776char pthread_create ();
40777int main (void)
40778{
40779return pthread_create ();
40780 ;
40781 return 0;
40782}
40783_ACEOF
40784if ac_fn_c_try_link "$LINENO"; then :
40785 ac_cv_lib_pthread_pthread_create=yes
40786else
40787 ac_cv_lib_pthread_pthread_create=no
40788fi
40789rm -f core conftest.err conftest.$ac_objext \
40790 conftest$ac_exeext conftest.$ac_ext
40791LIBS=$ac_check_lib_save_LIBS
40792fi
40793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40794$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40795if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40796 USE_THREADS_POSIX=1
40797else
40798 CFLAGS="$save_CFLAGS"
40799fi
40800
40801 fi
40802
40803 if test "x$USE_THREADS_POSIX" = "x1"
40804 then
40805
40806$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40807
40808 curl_res_msg="POSIX threaded"
40809 fi
40810
40811fi
40812
40813
40814fi
40815
40816if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40817 if test "$want_pthreads" = "yes"; then
40818 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40819 fi
40820 if test "$curl_cv_native_windows" = "yes"; then
40821 USE_THREADS_WIN32=1
40822
40823$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40824
40825 curl_res_msg="Win32 threaded"
40826 else
40827 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40828 fi
40829fi
40830
40831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40832$as_echo_n "checking whether to enable verbose strings... " >&6; }
40833# Check whether --enable-verbose was given.
40834if test "${enable_verbose+set}" = set; then :
40835 enableval=$enable_verbose; case "$enableval" in
40836 no)
40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40838$as_echo "no" >&6; }
40839
40840$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40841
40842 curl_verbose_msg="no"
40843 ;;
40844 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40845$as_echo "yes" >&6; }
40846 ;;
40847 esac
40848else
40849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40850$as_echo "yes" >&6; }
40851
40852fi
40853
40854
40855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40856$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40857# Check whether --enable-sspi was given.
40858if test "${enable_sspi+set}" = set; then :
40859 enableval=$enable_sspi; case "$enableval" in
40860 yes)
40861 if test "$curl_cv_native_windows" = "yes"; then
40862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40863$as_echo "yes" >&6; }
40864
40865$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40866
40867 USE_WINDOWS_SSPI=1
40868
40869 curl_sspi_msg="enabled"
40870 else
40871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40872$as_echo "no" >&6; }
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40874$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40875 fi
40876 ;;
40877 *)
40878 if test "x$WINSSL_ENABLED" = "x1"; then
40879 # --with-winssl implies --enable-sspi
40880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40881$as_echo "yes" >&6; }
40882 else
40883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40884$as_echo "no" >&6; }
40885 fi
40886 ;;
40887 esac
40888else
40889 if test "x$WINSSL_ENABLED" = "x1"; then
40890 # --with-winssl implies --enable-sspi
40891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40892$as_echo "yes" >&6; }
40893 else
40894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40895$as_echo "no" >&6; }
40896 fi
40897
40898fi
40899
40900
40901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40902$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40903# Check whether --enable-crypto-auth was given.
40904if test "${enable_crypto_auth+set}" = set; then :
40905 enableval=$enable_crypto_auth; case "$enableval" in
40906 no)
40907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40908$as_echo "no" >&6; }
40909
40910$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40911
40912 CURL_DISABLE_CRYPTO_AUTH=1
40913 ;;
40914 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40915$as_echo "yes" >&6; }
40916 ;;
40917 esac
40918else
40919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40920$as_echo "yes" >&6; }
40921
40922fi
40923
40924
40925
40926 OPT_NTLM_WB="default"
40927 # Check whether --enable-ntlm-wb was given.
40928if test "${enable_ntlm_wb+set}" = set; then :
40929 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40930fi
40931
40932 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40933 case "$OPT_NTLM_WB" in
40934 no)
40935 want_ntlm_wb="no"
40936 ;;
40937 default)
40938 want_ntlm_wb="yes"
40939 ;;
40940 *)
40941 want_ntlm_wb="yes"
40942 if test -n "$enableval" && test "$enableval" != "yes"; then
40943 want_ntlm_wb_file="$enableval"
40944 fi
40945 ;;
40946 esac
40947
40948
40949
40950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40951$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40952 if test "$curl_cv_native_windows" = "yes" ||
40953 test "x$SSL_ENABLED" = "x"; then
40954 want_ntlm_wb_file=""
40955 want_ntlm_wb="no"
40956 fi
40957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40958$as_echo "$want_ntlm_wb" >&6; }
40959 if test "$want_ntlm_wb" = "yes"; then
40960
40961$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40962
40963
40964cat >>confdefs.h <<_ACEOF
40965#define NTLM_WB_FILE "$want_ntlm_wb_file"
40966_ACEOF
40967
40968 NTLM_WB_ENABLED=1
40969 fi
40970
40971
40972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40973$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40974# Check whether --enable-tls-srp was given.
40975if test "${enable_tls_srp+set}" = set; then :
40976 enableval=$enable_tls_srp; case "$enableval" in
40977 no)
40978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40979$as_echo "no" >&6; }
40980
40981$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40982
40983 want_tls_srp=no
40984 ;;
40985 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986$as_echo "yes" >&6; }
40987 want_tls_srp=yes
40988 ;;
40989 esac
40990else
40991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40992$as_echo "yes" >&6; }
40993 want_tls_srp=yes
40994
40995fi
40996
40997
40998if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40999
41000$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41001
41002 USE_TLS_SRP=1
41003 curl_tls_srp_msg="enabled"
41004fi
41005
41006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41007$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41008# Check whether --enable-unix-sockets was given.
41009if test "${enable_unix_sockets+set}" = set; then :
41010 enableval=$enable_unix_sockets; case "$enableval" in
41011 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41012$as_echo "no" >&6; }
41013 want_unix_sockets=no
41014 ;;
41015 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41016$as_echo "yes" >&6; }
41017 want_unix_sockets=yes
41018 ;;
41019 esac
41020else
41021
41022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41023$as_echo "auto" >&6; }
41024 want_unix_sockets=auto
41025
41026
41027fi
41028
41029if test "x$want_unix_sockets" != "xno"; then
41030 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41031 #include <sys/un.h>
41032
41033"
41034if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41035
41036
41037$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41038
41039 USE_UNIX_SOCKETS=1
41040
41041 curl_unix_sockets_msg="enabled"
41042
41043else
41044
41045 if test "x$want_unix_sockets" = "xyes"; then
41046 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41047 fi
41048
41049fi
41050
41051fi
41052
41053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41054$as_echo_n "checking whether to enable support for cookies... " >&6; }
41055# Check whether --enable-cookies was given.
41056if test "${enable_cookies+set}" = set; then :
41057 enableval=$enable_cookies; case "$enableval" in
41058 no)
41059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41060$as_echo "no" >&6; }
41061
41062$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41063
41064 ;;
41065 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41066$as_echo "yes" >&6; }
41067 ;;
41068 esac
41069else
41070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41071$as_echo "yes" >&6; }
41072
41073fi
41074
41075
41076
41077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41078$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41079 CFLAG_CURL_SYMBOL_HIDING=""
41080 doing_symbol_hiding="no"
41081 if test x"$curl_cv_native_windows" != "xyes" &&
41082 test "$want_symbol_hiding" = "yes" &&
41083 test "$supports_symbol_hiding" = "yes"; then
41084 doing_symbol_hiding="yes"
41085 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41086
41087cat >>confdefs.h <<_ACEOF
41088#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41089_ACEOF
41090
41091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41092$as_echo "yes" >&6; }
41093 else
41094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41095$as_echo "no" >&6; }
41096 fi
41097 if test x$doing_symbol_hiding = xyes; then
41098 DOING_CURL_SYMBOL_HIDING_TRUE=
41099 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41100else
41101 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41102 DOING_CURL_SYMBOL_HIDING_FALSE=
41103fi
41104
41105
41106
41107
Elliott Hughes82be86d2017-09-20 17:00:17 -070041108LIBCURL_LIBS=$LIBS
41109
41110
41111
41112
41113
41114BLANK_AT_MAKETIME=
41115
41116
41117 if test x$cross_compiling = xyes; then
41118 CROSSCOMPILING_TRUE=
41119 CROSSCOMPILING_FALSE='#'
41120else
41121 CROSSCOMPILING_TRUE='#'
41122 CROSSCOMPILING_FALSE=
41123fi
41124
41125
41126ENABLE_SHARED="$enable_shared"
41127
41128
41129ENABLE_STATIC="$enable_static"
41130
41131
41132
41133
41134if test "x$OPENSSL_ENABLED" = "x1"; then
41135 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41136elif test -n "$SSL_ENABLED"; then
41137 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41138fi
41139if test "x$IPV6_ENABLED" = "x1"; then
41140 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41141fi
41142if test "x$USE_UNIX_SOCKETS" = "x1"; then
41143 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41144fi
41145if test "x$HAVE_LIBZ" = "x1"; then
41146 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41147fi
Alex Deymo486467e2017-12-19 19:04:07 +010041148if test "x$HAVE_BROTLI" = "x1"; then
41149 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41150fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041151if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41152 -o "x$USE_THREADS_WIN32" = "x1"; then
41153 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41154fi
41155if test "x$IDN_ENABLED" = "x1"; then
41156 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41157fi
41158if test "x$USE_WINDOWS_SSPI" = "x1"; then
41159 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41160fi
41161
41162if test "x$HAVE_GSSAPI" = "x1"; then
41163 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41164fi
41165
41166if test "x$curl_psl_msg" = "xyes"; then
41167 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41168fi
41169
41170if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41171 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41172 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41173fi
41174
41175if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41176 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41177 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41178fi
41179
41180if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41181 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41182 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41183 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41184 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41185
41186 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41187 "x$NTLM_WB_ENABLED" = "x1"; then
41188 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41189 fi
41190 fi
41191fi
41192
41193if test "x$USE_TLS_SRP" = "x1"; then
41194 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41195fi
41196
41197if test "x$USE_NGHTTP2" = "x1"; then
41198 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41199fi
41200
Alex Deymo486467e2017-12-19 19:04:07 +010041201if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41202 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41203fi
41204
Elliott Hughes82be86d2017-09-20 17:00:17 -070041205if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41206 -o "x$NSS_ENABLED" = "x1"; then
41207 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41208fi
41209
41210
41211
41212if test "x$CURL_DISABLE_HTTP" != "x1"; then
41213 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41214 if test "x$SSL_ENABLED" = "x1"; then
41215 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41216 fi
41217fi
41218if test "x$CURL_DISABLE_FTP" != "x1"; then
41219 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41220 if test "x$SSL_ENABLED" = "x1"; then
41221 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41222 fi
41223fi
41224if test "x$CURL_DISABLE_FILE" != "x1"; then
41225 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41226fi
41227if test "x$CURL_DISABLE_TELNET" != "x1"; then
41228 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41229fi
41230if test "x$CURL_DISABLE_LDAP" != "x1"; then
41231 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41232 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41233 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41234 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41235 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41236 fi
41237 fi
41238fi
41239if test "x$CURL_DISABLE_DICT" != "x1"; then
41240 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41241fi
41242if test "x$CURL_DISABLE_TFTP" != "x1"; then
41243 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41244fi
41245if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41246 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41247fi
41248if test "x$CURL_DISABLE_POP3" != "x1"; then
41249 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41250 if test "x$SSL_ENABLED" = "x1"; then
41251 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41252 fi
41253fi
41254if test "x$CURL_DISABLE_IMAP" != "x1"; then
41255 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41256 if test "x$SSL_ENABLED" = "x1"; then
41257 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41258 fi
41259fi
41260if test "x$CURL_DISABLE_SMB" != "x1" \
41261 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41262 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41263 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41264 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41265 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41266 if test "x$SSL_ENABLED" = "x1"; then
41267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41268 fi
41269fi
41270if test "x$CURL_DISABLE_SMTP" != "x1"; then
41271 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41272 if test "x$SSL_ENABLED" = "x1"; then
41273 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41274 fi
41275fi
41276if test "x$USE_LIBSSH2" = "x1"; then
41277 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41278 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41279fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041280if test "x$USE_LIBSSH" = "x1"; then
41281 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41282 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41283fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041284if test "x$CURL_DISABLE_RTSP" != "x1"; then
41285 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41286fi
41287if test "x$USE_LIBRTMP" = "x1"; then
41288 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41289fi
41290
41291SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41292
41293
41294
41295
41296squeeze CFLAGS
41297squeeze CPPFLAGS
41298squeeze DEFS
41299squeeze LDFLAGS
41300squeeze LIBS
41301
41302squeeze LIBCURL_LIBS
41303squeeze CURL_NETWORK_LIBS
41304squeeze CURL_NETWORK_AND_TIME_LIBS
41305
41306squeeze SUPPORT_FEATURES
41307squeeze SUPPORT_PROTOCOLS
41308
41309
41310
41311 xc_bad_var_libs=no
41312 for xc_word in $LIBS; do
41313 case "$xc_word" in
41314 -l* | --library=*)
41315 :
41316 ;;
41317 *)
41318 xc_bad_var_libs=yes
41319 ;;
41320 esac
41321 done
41322 if test $xc_bad_var_libs = yes; then
41323 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41324$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41325 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41326$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41327 fi
41328
41329
41330 xc_bad_var_ldflags=no
41331 for xc_word in $LDFLAGS; do
41332 case "$xc_word" in
41333 -D*)
41334 xc_bad_var_ldflags=yes
41335 ;;
41336 -U*)
41337 xc_bad_var_ldflags=yes
41338 ;;
41339 -I*)
41340 xc_bad_var_ldflags=yes
41341 ;;
41342 -l* | --library=*)
41343 xc_bad_var_ldflags=yes
41344 ;;
41345 esac
41346 done
41347 if test $xc_bad_var_ldflags = yes; then
41348 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41349$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41350 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41351 for xc_word in $LDFLAGS; do
41352 case "$xc_word" in
41353 -D*)
41354 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41355$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41356 ;;
41357 -U*)
41358 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41359$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41360 ;;
41361 -I*)
41362 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41363$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41364 ;;
41365 -l* | --library=*)
41366 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41367$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41368 ;;
41369 esac
41370 done
41371 fi
41372
41373
41374 xc_bad_var_cppflags=no
41375 for xc_word in $CPPFLAGS; do
41376 case "$xc_word" in
41377 -rpath*)
41378 xc_bad_var_cppflags=yes
41379 ;;
41380 -L* | --library-path=*)
41381 xc_bad_var_cppflags=yes
41382 ;;
41383 -l* | --library=*)
41384 xc_bad_var_cppflags=yes
41385 ;;
41386 esac
41387 done
41388 if test $xc_bad_var_cppflags = yes; then
41389 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41390$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41391 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41392 for xc_word in $CPPFLAGS; do
41393 case "$xc_word" in
41394 -rpath*)
41395 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41396$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41397 ;;
41398 -L* | --library-path=*)
41399 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41400$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41401 ;;
41402 -l* | --library=*)
41403 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41404$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41405 ;;
41406 esac
41407 done
41408 fi
41409
41410
41411 xc_bad_var_cflags=no
41412 for xc_word in $CFLAGS; do
41413 case "$xc_word" in
41414 -D*)
41415 xc_bad_var_cflags=yes
41416 ;;
41417 -U*)
41418 xc_bad_var_cflags=yes
41419 ;;
41420 -I*)
41421 xc_bad_var_cflags=yes
41422 ;;
41423 -rpath*)
41424 xc_bad_var_cflags=yes
41425 ;;
41426 -L* | --library-path=*)
41427 xc_bad_var_cflags=yes
41428 ;;
41429 -l* | --library=*)
41430 xc_bad_var_cflags=yes
41431 ;;
41432 esac
41433 done
41434 if test $xc_bad_var_cflags = yes; then
41435 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41436$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41437 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41438 for xc_word in $CFLAGS; do
41439 case "$xc_word" in
41440 -D*)
41441 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41442$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41443 ;;
41444 -U*)
41445 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41446$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41447 ;;
41448 -I*)
41449 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41450$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41451 ;;
41452 -rpath*)
41453 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41454$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41455 ;;
41456 -L* | --library-path=*)
41457 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41458$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41459 ;;
41460 -l* | --library=*)
41461 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41462$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41463 ;;
41464 esac
41465 done
41466 fi
41467
41468 if test $xc_bad_var_libs = yes ||
41469 test $xc_bad_var_cflags = yes ||
41470 test $xc_bad_var_ldflags = yes ||
41471 test $xc_bad_var_cppflags = yes; then
41472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41473$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41474 fi
41475
41476
Elliott Hughes0128fe42018-02-27 14:57:55 -080041477SSL_BACKENDS=${ssl_backends}
41478
41479
Elliott Hughes82be86d2017-09-20 17:00:17 -070041480if test "x$want_curldebug_assumed" = "xyes" &&
41481 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41482 ac_configure_args="$ac_configure_args --enable-curldebug"
41483fi
41484
Alex Deymo486467e2017-12-19 19:04:07 +010041485ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041486
41487cat >confcache <<\_ACEOF
41488# This file is a shell script that caches the results of configure
41489# tests run on this system so they can be shared between configure
41490# scripts and configure runs, see configure's option --config-cache.
41491# It is not useful on other systems. If it contains results you don't
41492# want to keep, you may remove or edit it.
41493#
41494# config.status only pays attention to the cache file if you give it
41495# the --recheck option to rerun configure.
41496#
41497# `ac_cv_env_foo' variables (set or unset) will be overridden when
41498# loading this file, other *unset* `ac_cv_foo' will be assigned the
41499# following values.
41500
41501_ACEOF
41502
41503# The following way of writing the cache mishandles newlines in values,
41504# but we know of no workaround that is simple, portable, and efficient.
41505# So, we kill variables containing newlines.
41506# Ultrix sh set writes to stderr and can't be redirected directly,
41507# and sets the high bit in the cache file unless we assign to the vars.
41508(
41509 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41510 eval ac_val=\$$ac_var
41511 case $ac_val in #(
41512 *${as_nl}*)
41513 case $ac_var in #(
41514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41515$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41516 esac
41517 case $ac_var in #(
41518 _ | IFS | as_nl) ;; #(
41519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41520 *) { eval $ac_var=; unset $ac_var;} ;;
41521 esac ;;
41522 esac
41523 done
41524
41525 (set) 2>&1 |
41526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41527 *${as_nl}ac_space=\ *)
41528 # `set' does not quote correctly, so add quotes: double-quote
41529 # substitution turns \\\\ into \\, and sed turns \\ into \.
41530 sed -n \
41531 "s/'/'\\\\''/g;
41532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41533 ;; #(
41534 *)
41535 # `set' quotes correctly as required by POSIX, so do not add quotes.
41536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41537 ;;
41538 esac |
41539 sort
41540) |
41541 sed '
41542 /^ac_cv_env_/b end
41543 t clear
41544 :clear
41545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41546 t end
41547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41548 :end' >>confcache
41549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41550 if test -w "$cache_file"; then
41551 if test "x$cache_file" != "x/dev/null"; then
41552 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41553$as_echo "$as_me: updating cache $cache_file" >&6;}
41554 if test ! -f "$cache_file" || test -h "$cache_file"; then
41555 cat confcache >"$cache_file"
41556 else
41557 case $cache_file in #(
41558 */* | ?:*)
41559 mv -f confcache "$cache_file"$$ &&
41560 mv -f "$cache_file"$$ "$cache_file" ;; #(
41561 *)
41562 mv -f confcache "$cache_file" ;;
41563 esac
41564 fi
41565 fi
41566 else
41567 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41568$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41569 fi
41570fi
41571rm -f confcache
41572
41573test "x$prefix" = xNONE && prefix=$ac_default_prefix
41574# Let make expand exec_prefix.
41575test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41576
41577DEFS=-DHAVE_CONFIG_H
41578
41579ac_libobjs=
41580ac_ltlibobjs=
41581U=
41582for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41583 # 1. Remove the extension, and $U if already installed.
41584 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41585 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41586 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41587 # will be set to the directory where LIBOBJS objects are built.
41588 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41589 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41590done
41591LIBOBJS=$ac_libobjs
41592
41593LTLIBOBJS=$ac_ltlibobjs
41594
41595
41596if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41597 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41598Usually this means the macro was only invoked conditionally." "$LINENO" 5
41599fi
41600if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41601 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41602Usually this means the macro was only invoked conditionally." "$LINENO" 5
41603fi
41604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41605$as_echo_n "checking that generated files are newer than configure... " >&6; }
41606 if test -n "$am_sleep_pid"; then
41607 # Hide warnings about reused PIDs.
41608 wait $am_sleep_pid 2>/dev/null
41609 fi
41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41611$as_echo "done" >&6; }
41612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41613 as_fn_error $? "conditional \"AMDEP\" was never defined.
41614Usually this means the macro was only invoked conditionally." "$LINENO" 5
41615fi
41616if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41617 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41618Usually this means the macro was only invoked conditionally." "$LINENO" 5
41619fi
41620 if test -n "$EXEEXT"; then
41621 am__EXEEXT_TRUE=
41622 am__EXEEXT_FALSE='#'
41623else
41624 am__EXEEXT_TRUE='#'
41625 am__EXEEXT_FALSE=
41626fi
41627
41628if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41629 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41630Usually this means the macro was only invoked conditionally." "$LINENO" 5
41631fi
41632if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41633 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41634Usually this means the macro was only invoked conditionally." "$LINENO" 5
41635fi
41636if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41637 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41638Usually this means the macro was only invoked conditionally." "$LINENO" 5
41639fi
41640if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41641 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41642Usually this means the macro was only invoked conditionally." "$LINENO" 5
41643fi
41644if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41645 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41646Usually this means the macro was only invoked conditionally." "$LINENO" 5
41647fi
41648if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41649 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41650Usually this means the macro was only invoked conditionally." "$LINENO" 5
41651fi
41652if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41653 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41654Usually this means the macro was only invoked conditionally." "$LINENO" 5
41655fi
41656if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41657 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41658Usually this means the macro was only invoked conditionally." "$LINENO" 5
41659fi
41660if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41661 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41662Usually this means the macro was only invoked conditionally." "$LINENO" 5
41663fi
Alex Deymo486467e2017-12-19 19:04:07 +010041664if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41665 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41666Usually this means the macro was only invoked conditionally." "$LINENO" 5
41667fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041668if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41669 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41670Usually this means the macro was only invoked conditionally." "$LINENO" 5
41671fi
41672if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41673 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41674Usually this means the macro was only invoked conditionally." "$LINENO" 5
41675fi
41676if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41677 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41678Usually this means the macro was only invoked conditionally." "$LINENO" 5
41679fi
41680if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41681 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41682Usually this means the macro was only invoked conditionally." "$LINENO" 5
41683fi
41684if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41685 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41686Usually this means the macro was only invoked conditionally." "$LINENO" 5
41687fi
41688if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41689 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41690Usually this means the macro was only invoked conditionally." "$LINENO" 5
41691fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041692if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41693 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41694Usually this means the macro was only invoked conditionally." "$LINENO" 5
41695fi
41696
41697: "${CONFIG_STATUS=./config.status}"
41698ac_write_fail=0
41699ac_clean_files_save=$ac_clean_files
41700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41701{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41702$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41703as_write_fail=0
41704cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41705#! $SHELL
41706# Generated by $as_me.
41707# Run this file to recreate the current configuration.
41708# Compiler output produced by configure, useful for debugging
41709# configure, is in config.log if it exists.
41710
41711debug=false
41712ac_cs_recheck=false
41713ac_cs_silent=false
41714
41715SHELL=\${CONFIG_SHELL-$SHELL}
41716export SHELL
41717_ASEOF
41718cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41719## -------------------- ##
41720## M4sh Initialization. ##
41721## -------------------- ##
41722
41723# Be more Bourne compatible
41724DUALCASE=1; export DUALCASE # for MKS sh
41725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41726 emulate sh
41727 NULLCMD=:
41728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41729 # is contrary to our usage. Disable this feature.
41730 alias -g '${1+"$@"}'='"$@"'
41731 setopt NO_GLOB_SUBST
41732else
41733 case `(set -o) 2>/dev/null` in #(
41734 *posix*) :
41735 set -o posix ;; #(
41736 *) :
41737 ;;
41738esac
41739fi
41740
41741
41742as_nl='
41743'
41744export as_nl
41745# Printing a long string crashes Solaris 7 /usr/bin/printf.
41746as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41749# Prefer a ksh shell builtin over an external printf program on Solaris,
41750# but without wasting forks for bash or zsh.
41751if test -z "$BASH_VERSION$ZSH_VERSION" \
41752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41753 as_echo='print -r --'
41754 as_echo_n='print -rn --'
41755elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41756 as_echo='printf %s\n'
41757 as_echo_n='printf %s'
41758else
41759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41761 as_echo_n='/usr/ucb/echo -n'
41762 else
41763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41764 as_echo_n_body='eval
41765 arg=$1;
41766 case $arg in #(
41767 *"$as_nl"*)
41768 expr "X$arg" : "X\\(.*\\)$as_nl";
41769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41770 esac;
41771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41772 '
41773 export as_echo_n_body
41774 as_echo_n='sh -c $as_echo_n_body as_echo'
41775 fi
41776 export as_echo_body
41777 as_echo='sh -c $as_echo_body as_echo'
41778fi
41779
41780
41781
41782# IFS
41783# We need space, tab and new line, in precisely that order. Quoting is
41784# there to prevent editors from complaining about space-tab.
41785# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41786# splitting by setting IFS to empty value.)
41787IFS=" "" $as_nl"
41788
41789# Find who we are. Look in the path if we contain no directory separator.
41790as_myself=
41791case $0 in #((
41792 *[\\/]* ) as_myself=$0 ;;
41793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41794for as_dir in $PATH
41795do
41796 IFS=$as_save_IFS
41797 test -z "$as_dir" && as_dir=.
41798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41799 done
41800IFS=$as_save_IFS
41801
41802 ;;
41803esac
41804# We did not find ourselves, most probably we were run as `sh COMMAND'
41805# in which case we are not to be found in the path.
41806if test "x$as_myself" = x; then
41807 as_myself=$0
41808fi
41809if test ! -f "$as_myself"; then
41810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41811 exit 1
41812fi
41813
41814# Unset variables that we do not need and which cause bugs (e.g. in
41815# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41816# suppresses any "Segmentation fault" message there. '((' could
41817# trigger a bug in pdksh 5.2.14.
41818for as_var in BASH_ENV ENV MAIL MAILPATH
41819do eval test x\${$as_var+set} = xset \
41820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41821done
41822PS1='$ '
41823PS2='> '
41824PS4='+ '
41825
41826# NLS nuisances.
41827LC_ALL=C
41828export LC_ALL
41829LANGUAGE=C
41830export LANGUAGE
41831
41832# CDPATH.
41833(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41834
41835
41836# as_fn_error STATUS ERROR [LINENO LOG_FD]
41837# ----------------------------------------
41838# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41839# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41840# script with STATUS, using 1 if that was 0.
41841as_fn_error ()
41842{
41843 as_status=$1; test $as_status -eq 0 && as_status=1
41844 if test "$4"; then
41845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41847 fi
41848 $as_echo "$as_me: error: $2" >&2
41849 as_fn_exit $as_status
41850} # as_fn_error
41851
41852
41853# as_fn_set_status STATUS
41854# -----------------------
41855# Set $? to STATUS, without forking.
41856as_fn_set_status ()
41857{
41858 return $1
41859} # as_fn_set_status
41860
41861# as_fn_exit STATUS
41862# -----------------
41863# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41864as_fn_exit ()
41865{
41866 set +e
41867 as_fn_set_status $1
41868 exit $1
41869} # as_fn_exit
41870
41871# as_fn_unset VAR
41872# ---------------
41873# Portably unset VAR.
41874as_fn_unset ()
41875{
41876 { eval $1=; unset $1;}
41877}
41878as_unset=as_fn_unset
41879# as_fn_append VAR VALUE
41880# ----------------------
41881# Append the text in VALUE to the end of the definition contained in VAR. Take
41882# advantage of any shell optimizations that allow amortized linear growth over
41883# repeated appends, instead of the typical quadratic growth present in naive
41884# implementations.
41885if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41886 eval 'as_fn_append ()
41887 {
41888 eval $1+=\$2
41889 }'
41890else
41891 as_fn_append ()
41892 {
41893 eval $1=\$$1\$2
41894 }
41895fi # as_fn_append
41896
41897# as_fn_arith ARG...
41898# ------------------
41899# Perform arithmetic evaluation on the ARGs, and store the result in the
41900# global $as_val. Take advantage of shells that can avoid forks. The arguments
41901# must be portable across $(()) and expr.
41902if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41903 eval 'as_fn_arith ()
41904 {
41905 as_val=$(( $* ))
41906 }'
41907else
41908 as_fn_arith ()
41909 {
41910 as_val=`expr "$@" || test $? -eq 1`
41911 }
41912fi # as_fn_arith
41913
41914
41915if expr a : '\(a\)' >/dev/null 2>&1 &&
41916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41917 as_expr=expr
41918else
41919 as_expr=false
41920fi
41921
41922if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41923 as_basename=basename
41924else
41925 as_basename=false
41926fi
41927
41928if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41929 as_dirname=dirname
41930else
41931 as_dirname=false
41932fi
41933
41934as_me=`$as_basename -- "$0" ||
41935$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41936 X"$0" : 'X\(//\)$' \| \
41937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41938$as_echo X/"$0" |
41939 sed '/^.*\/\([^/][^/]*\)\/*$/{
41940 s//\1/
41941 q
41942 }
41943 /^X\/\(\/\/\)$/{
41944 s//\1/
41945 q
41946 }
41947 /^X\/\(\/\).*/{
41948 s//\1/
41949 q
41950 }
41951 s/.*/./; q'`
41952
41953# Avoid depending upon Character Ranges.
41954as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41955as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41956as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41957as_cr_digits='0123456789'
41958as_cr_alnum=$as_cr_Letters$as_cr_digits
41959
41960ECHO_C= ECHO_N= ECHO_T=
41961case `echo -n x` in #(((((
41962-n*)
41963 case `echo 'xy\c'` in
41964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41965 xy) ECHO_C='\c';;
41966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41967 ECHO_T=' ';;
41968 esac;;
41969*)
41970 ECHO_N='-n';;
41971esac
41972
41973rm -f conf$$ conf$$.exe conf$$.file
41974if test -d conf$$.dir; then
41975 rm -f conf$$.dir/conf$$.file
41976else
41977 rm -f conf$$.dir
41978 mkdir conf$$.dir 2>/dev/null
41979fi
41980if (echo >conf$$.file) 2>/dev/null; then
41981 if ln -s conf$$.file conf$$ 2>/dev/null; then
41982 as_ln_s='ln -s'
41983 # ... but there are two gotchas:
41984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41986 # In both cases, we have to default to `cp -pR'.
41987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41988 as_ln_s='cp -pR'
41989 elif ln conf$$.file conf$$ 2>/dev/null; then
41990 as_ln_s=ln
41991 else
41992 as_ln_s='cp -pR'
41993 fi
41994else
41995 as_ln_s='cp -pR'
41996fi
41997rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41998rmdir conf$$.dir 2>/dev/null
41999
42000
42001# as_fn_mkdir_p
42002# -------------
42003# Create "$as_dir" as a directory, including parents if necessary.
42004as_fn_mkdir_p ()
42005{
42006
42007 case $as_dir in #(
42008 -*) as_dir=./$as_dir;;
42009 esac
42010 test -d "$as_dir" || eval $as_mkdir_p || {
42011 as_dirs=
42012 while :; do
42013 case $as_dir in #(
42014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42015 *) as_qdir=$as_dir;;
42016 esac
42017 as_dirs="'$as_qdir' $as_dirs"
42018 as_dir=`$as_dirname -- "$as_dir" ||
42019$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42020 X"$as_dir" : 'X\(//\)[^/]' \| \
42021 X"$as_dir" : 'X\(//\)$' \| \
42022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42023$as_echo X"$as_dir" |
42024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42025 s//\1/
42026 q
42027 }
42028 /^X\(\/\/\)[^/].*/{
42029 s//\1/
42030 q
42031 }
42032 /^X\(\/\/\)$/{
42033 s//\1/
42034 q
42035 }
42036 /^X\(\/\).*/{
42037 s//\1/
42038 q
42039 }
42040 s/.*/./; q'`
42041 test -d "$as_dir" && break
42042 done
42043 test -z "$as_dirs" || eval "mkdir $as_dirs"
42044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42045
42046
42047} # as_fn_mkdir_p
42048if mkdir -p . 2>/dev/null; then
42049 as_mkdir_p='mkdir -p "$as_dir"'
42050else
42051 test -d ./-p && rmdir ./-p
42052 as_mkdir_p=false
42053fi
42054
42055
42056# as_fn_executable_p FILE
42057# -----------------------
42058# Test if FILE is an executable regular file.
42059as_fn_executable_p ()
42060{
42061 test -f "$1" && test -x "$1"
42062} # as_fn_executable_p
42063as_test_x='test -x'
42064as_executable_p=as_fn_executable_p
42065
42066# Sed expression to map a string onto a valid CPP name.
42067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42068
42069# Sed expression to map a string onto a valid variable name.
42070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42071
42072
42073exec 6>&1
42074## ----------------------------------- ##
42075## Main body of $CONFIG_STATUS script. ##
42076## ----------------------------------- ##
42077_ASEOF
42078test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42079
42080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42081# Save the log message, to keep $0 and so on meaningful, and to
42082# report actual input values of CONFIG_FILES etc. instead of their
42083# values after options handling.
42084ac_log="
42085This file was extended by curl $as_me -, which was
42086generated by GNU Autoconf 2.69. Invocation command line was
42087
42088 CONFIG_FILES = $CONFIG_FILES
42089 CONFIG_HEADERS = $CONFIG_HEADERS
42090 CONFIG_LINKS = $CONFIG_LINKS
42091 CONFIG_COMMANDS = $CONFIG_COMMANDS
42092 $ $0 $@
42093
42094on `(hostname || uname -n) 2>/dev/null | sed 1q`
42095"
42096
42097_ACEOF
42098
42099case $ac_config_files in *"
42100"*) set x $ac_config_files; shift; ac_config_files=$*;;
42101esac
42102
42103case $ac_config_headers in *"
42104"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42105esac
42106
42107
42108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42109# Files that config.status was made for.
42110config_files="$ac_config_files"
42111config_headers="$ac_config_headers"
42112config_commands="$ac_config_commands"
42113
42114_ACEOF
42115
42116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42117ac_cs_usage="\
42118\`$as_me' instantiates files and other configuration actions
42119from templates according to the current configuration. Unless the files
42120and actions are specified as TAGs, all are instantiated by default.
42121
42122Usage: $0 [OPTION]... [TAG]...
42123
42124 -h, --help print this help, then exit
42125 -V, --version print version number and configuration settings, then exit
42126 --config print configuration, then exit
42127 -q, --quiet, --silent
42128 do not print progress messages
42129 -d, --debug don't remove temporary files
42130 --recheck update $as_me by reconfiguring in the same conditions
42131 --file=FILE[:TEMPLATE]
42132 instantiate the configuration file FILE
42133 --header=FILE[:TEMPLATE]
42134 instantiate the configuration header FILE
42135
42136Configuration files:
42137$config_files
42138
42139Configuration headers:
42140$config_headers
42141
42142Configuration commands:
42143$config_commands
42144
42145Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42146
42147_ACEOF
42148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42149ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42150ac_cs_version="\\
42151curl config.status -
42152configured by $0, generated by GNU Autoconf 2.69,
42153 with options \\"\$ac_cs_config\\"
42154
42155Copyright (C) 2012 Free Software Foundation, Inc.
42156This config.status script is free software; the Free Software Foundation
42157gives unlimited permission to copy, distribute and modify it."
42158
42159ac_pwd='$ac_pwd'
42160srcdir='$srcdir'
42161INSTALL='$INSTALL'
42162MKDIR_P='$MKDIR_P'
42163AWK='$AWK'
42164test -n "\$AWK" || AWK=awk
42165_ACEOF
42166
42167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42168# The default lists apply if the user does not specify any file.
42169ac_need_defaults=:
42170while test $# != 0
42171do
42172 case $1 in
42173 --*=?*)
42174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42176 ac_shift=:
42177 ;;
42178 --*=)
42179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42180 ac_optarg=
42181 ac_shift=:
42182 ;;
42183 *)
42184 ac_option=$1
42185 ac_optarg=$2
42186 ac_shift=shift
42187 ;;
42188 esac
42189
42190 case $ac_option in
42191 # Handling of the options.
42192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42193 ac_cs_recheck=: ;;
42194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42195 $as_echo "$ac_cs_version"; exit ;;
42196 --config | --confi | --conf | --con | --co | --c )
42197 $as_echo "$ac_cs_config"; exit ;;
42198 --debug | --debu | --deb | --de | --d | -d )
42199 debug=: ;;
42200 --file | --fil | --fi | --f )
42201 $ac_shift
42202 case $ac_optarg in
42203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42204 '') as_fn_error $? "missing file argument" ;;
42205 esac
42206 as_fn_append CONFIG_FILES " '$ac_optarg'"
42207 ac_need_defaults=false;;
42208 --header | --heade | --head | --hea )
42209 $ac_shift
42210 case $ac_optarg in
42211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42212 esac
42213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42214 ac_need_defaults=false;;
42215 --he | --h)
42216 # Conflict between --help and --header
42217 as_fn_error $? "ambiguous option: \`$1'
42218Try \`$0 --help' for more information.";;
42219 --help | --hel | -h )
42220 $as_echo "$ac_cs_usage"; exit ;;
42221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42223 ac_cs_silent=: ;;
42224
42225 # This is an error.
42226 -*) as_fn_error $? "unrecognized option: \`$1'
42227Try \`$0 --help' for more information." ;;
42228
42229 *) as_fn_append ac_config_targets " $1"
42230 ac_need_defaults=false ;;
42231
42232 esac
42233 shift
42234done
42235
42236ac_configure_extra_args=
42237
42238if $ac_cs_silent; then
42239 exec 6>/dev/null
42240 ac_configure_extra_args="$ac_configure_extra_args --silent"
42241fi
42242
42243_ACEOF
42244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42245if \$ac_cs_recheck; then
42246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42247 shift
42248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42249 CONFIG_SHELL='$SHELL'
42250 export CONFIG_SHELL
42251 exec "\$@"
42252fi
42253
42254_ACEOF
42255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42256exec 5>>config.log
42257{
42258 echo
42259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42260## Running $as_me. ##
42261_ASBOX
42262 $as_echo "$ac_log"
42263} >&5
42264
42265_ACEOF
42266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42267#
42268# INIT-COMMANDS
42269#
42270AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42271
42272
42273# The HP-UX ksh and POSIX shell print the target directory to stdout
42274# if CDPATH is set.
42275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42276
42277sed_quote_subst='$sed_quote_subst'
42278double_quote_subst='$double_quote_subst'
42279delay_variable_subst='$delay_variable_subst'
42280macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42281macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42282AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42283DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42284OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42285enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42286enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42287pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42288enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42289shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42290SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42291ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42292PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42293host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42294host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42295host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42296build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42297build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42298build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42299SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42300Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42301GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42302EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42303FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42304LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42305NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42306LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42307max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42308ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42309exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42310lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42311lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42312lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42313lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42314lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42315reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42316reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42317deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42318file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42319file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42320want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42321sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42322AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42323AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42324archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42325STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42326RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42327old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42328old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42329old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42330lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42331CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42332CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42333compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42334GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42335lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42336lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42337lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42338lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42339lt_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"`'
42340lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42341nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42342lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42343lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42344objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42345MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42346lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42347lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42348lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42349lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42350lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42351need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42352MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42353DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42354NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42355LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42356OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42357OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42358libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42359shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42360extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42361archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42362enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42363export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42364whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42365compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42366old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42367old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42368archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42369archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42370module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42371module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42372with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42373allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42374no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42375hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42376hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42377hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42378hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42379hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42380hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42381hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42382inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42383link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42384always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42385export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42386exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42387include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42388prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42389postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42390file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42391variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42392need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42393need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42394version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42395runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42396shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42397shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42398libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42399library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42400soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42401install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42402postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42403postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42404finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42405finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42406hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42407sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42408configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42409configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42410hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42411enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42412enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42413enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42414old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42415striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42416
42417LTCC='$LTCC'
42418LTCFLAGS='$LTCFLAGS'
42419compiler='$compiler_DEFAULT'
42420
42421# A function that is used when there is no print builtin or printf.
42422func_fallback_echo ()
42423{
42424 eval 'cat <<_LTECHO_EOF
42425\$1
42426_LTECHO_EOF'
42427}
42428
42429# Quote evaled strings.
42430for var in AS \
42431DLLTOOL \
42432OBJDUMP \
42433SHELL \
42434ECHO \
42435PATH_SEPARATOR \
42436SED \
42437GREP \
42438EGREP \
42439FGREP \
42440LD \
42441NM \
42442LN_S \
42443lt_SP2NL \
42444lt_NL2SP \
42445reload_flag \
42446deplibs_check_method \
42447file_magic_cmd \
42448file_magic_glob \
42449want_nocaseglob \
42450sharedlib_from_linklib_cmd \
42451AR \
42452AR_FLAGS \
42453archiver_list_spec \
42454STRIP \
42455RANLIB \
42456CC \
42457CFLAGS \
42458compiler \
42459lt_cv_sys_global_symbol_pipe \
42460lt_cv_sys_global_symbol_to_cdecl \
42461lt_cv_sys_global_symbol_to_import \
42462lt_cv_sys_global_symbol_to_c_name_address \
42463lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42464lt_cv_nm_interface \
42465nm_file_list_spec \
42466lt_cv_truncate_bin \
42467lt_prog_compiler_no_builtin_flag \
42468lt_prog_compiler_pic \
42469lt_prog_compiler_wl \
42470lt_prog_compiler_static \
42471lt_cv_prog_compiler_c_o \
42472need_locks \
42473MANIFEST_TOOL \
42474DSYMUTIL \
42475NMEDIT \
42476LIPO \
42477OTOOL \
42478OTOOL64 \
42479shrext_cmds \
42480export_dynamic_flag_spec \
42481whole_archive_flag_spec \
42482compiler_needs_object \
42483with_gnu_ld \
42484allow_undefined_flag \
42485no_undefined_flag \
42486hardcode_libdir_flag_spec \
42487hardcode_libdir_separator \
42488exclude_expsyms \
42489include_expsyms \
42490file_list_spec \
42491variables_saved_for_relink \
42492libname_spec \
42493library_names_spec \
42494soname_spec \
42495install_override_mode \
42496finish_eval \
42497old_striplib \
42498striplib; do
42499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42500 *[\\\\\\\`\\"\\\$]*)
42501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42502 ;;
42503 *)
42504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42505 ;;
42506 esac
42507done
42508
42509# Double-quote double-evaled strings.
42510for var in reload_cmds \
42511old_postinstall_cmds \
42512old_postuninstall_cmds \
42513old_archive_cmds \
42514extract_expsyms_cmds \
42515old_archive_from_new_cmds \
42516old_archive_from_expsyms_cmds \
42517archive_cmds \
42518archive_expsym_cmds \
42519module_cmds \
42520module_expsym_cmds \
42521export_symbols_cmds \
42522prelink_cmds \
42523postlink_cmds \
42524postinstall_cmds \
42525postuninstall_cmds \
42526finish_cmds \
42527sys_lib_search_path_spec \
42528configure_time_dlsearch_path \
42529configure_time_lt_sys_library_path; do
42530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42531 *[\\\\\\\`\\"\\\$]*)
42532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42533 ;;
42534 *)
42535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42536 ;;
42537 esac
42538done
42539
42540ac_aux_dir='$ac_aux_dir'
42541
42542# See if we are running on zsh, and set the options that allow our
42543# commands through without removal of \ escapes INIT.
42544if test -n "\${ZSH_VERSION+set}"; then
42545 setopt NO_GLOB_SUBST
42546fi
42547
42548
42549 PACKAGE='$PACKAGE'
42550 VERSION='$VERSION'
42551 RM='$RM'
42552 ofile='$ofile'
42553
42554
42555
42556
42557_ACEOF
42558
42559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42560
42561# Handling of arguments.
42562for ac_config_target in $ac_config_targets
42563do
42564 case $ac_config_target in
42565 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42566 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42567 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42568 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42569 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42570 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42571 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42572 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42573 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42574 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42575 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42576 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42577 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42578 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42579 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42580 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42581 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42582 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42583 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42584 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42585 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42586 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042587 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42588 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42589 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42590 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42591 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42592 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42593 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42594 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42595 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42596 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42597 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42598 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42599 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42600 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42601 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42602 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42603
42604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42605 esac
42606done
42607
42608
42609# If the user did not use the arguments to specify the items to instantiate,
42610# then the envvar interface is used. Set only those that are not.
42611# We use the long form for the default assignment because of an extremely
42612# bizarre bug on SunOS 4.1.3.
42613if $ac_need_defaults; then
42614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42617fi
42618
42619# Have a temporary directory for convenience. Make it in the build tree
42620# simply because there is no reason against having it here, and in addition,
42621# creating and moving files from /tmp can sometimes cause problems.
42622# Hook for its removal unless debugging.
42623# Note that there is a small window in which the directory will not be cleaned:
42624# after its creation but before its name has been assigned to `$tmp'.
42625$debug ||
42626{
42627 tmp= ac_tmp=
42628 trap 'exit_status=$?
42629 : "${ac_tmp:=$tmp}"
42630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42631' 0
42632 trap 'as_fn_exit 1' 1 2 13 15
42633}
42634# Create a (secure) tmp directory for tmp files.
42635
42636{
42637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42638 test -d "$tmp"
42639} ||
42640{
42641 tmp=./conf$$-$RANDOM
42642 (umask 077 && mkdir "$tmp")
42643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42644ac_tmp=$tmp
42645
42646# Set up the scripts for CONFIG_FILES section.
42647# No need to generate them if there are no CONFIG_FILES.
42648# This happens for instance with `./config.status config.h'.
42649if test -n "$CONFIG_FILES"; then
42650
42651
42652ac_cr=`echo X | tr X '\015'`
42653# On cygwin, bash can eat \r inside `` if the user requested igncr.
42654# But we know of no other shell where ac_cr would be empty at this
42655# point, so we can use a bashism as a fallback.
42656if test "x$ac_cr" = x; then
42657 eval ac_cr=\$\'\\r\'
42658fi
42659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42661 ac_cs_awk_cr='\\r'
42662else
42663 ac_cs_awk_cr=$ac_cr
42664fi
42665
42666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42667_ACEOF
42668
42669
42670{
42671 echo "cat >conf$$subs.awk <<_ACEOF" &&
42672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42673 echo "_ACEOF"
42674} >conf$$subs.sh ||
42675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42677ac_delim='%!_!# '
42678for ac_last_try in false false false false false :; do
42679 . ./conf$$subs.sh ||
42680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42681
42682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42683 if test $ac_delim_n = $ac_delim_num; then
42684 break
42685 elif $ac_last_try; then
42686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42687 else
42688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42689 fi
42690done
42691rm -f conf$$subs.sh
42692
42693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42695_ACEOF
42696sed -n '
42697h
42698s/^/S["/; s/!.*/"]=/
42699p
42700g
42701s/^[^!]*!//
42702:repl
42703t repl
42704s/'"$ac_delim"'$//
42705t delim
42706:nl
42707h
42708s/\(.\{148\}\)..*/\1/
42709t more1
42710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42711p
42712n
42713b repl
42714:more1
42715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42716p
42717g
42718s/.\{148\}//
42719t nl
42720:delim
42721h
42722s/\(.\{148\}\)..*/\1/
42723t more2
42724s/["\\]/\\&/g; s/^/"/; s/$/"/
42725p
42726b
42727:more2
42728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42729p
42730g
42731s/.\{148\}//
42732t delim
42733' <conf$$subs.awk | sed '
42734/^[^""]/{
42735 N
42736 s/\n//
42737}
42738' >>$CONFIG_STATUS || ac_write_fail=1
42739rm -f conf$$subs.awk
42740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42741_ACAWK
42742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42743 for (key in S) S_is_set[key] = 1
42744 FS = ""
42745
42746}
42747{
42748 line = $ 0
42749 nfields = split(line, field, "@")
42750 substed = 0
42751 len = length(field[1])
42752 for (i = 2; i < nfields; i++) {
42753 key = field[i]
42754 keylen = length(key)
42755 if (S_is_set[key]) {
42756 value = S[key]
42757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42758 len += length(value) + length(field[++i])
42759 substed = 1
42760 } else
42761 len += 1 + keylen
42762 }
42763
42764 print line
42765}
42766
42767_ACAWK
42768_ACEOF
42769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42772else
42773 cat
42774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42776_ACEOF
42777
42778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42780# trailing colons and then remove the whole line if VPATH becomes empty
42781# (actually we leave an empty line to preserve line numbers).
42782if test "x$srcdir" = x.; then
42783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42784h
42785s///
42786s/^/:/
42787s/[ ]*$/:/
42788s/:\$(srcdir):/:/g
42789s/:\${srcdir}:/:/g
42790s/:@srcdir@:/:/g
42791s/^:*//
42792s/:*$//
42793x
42794s/\(=[ ]*\).*/\1/
42795G
42796s/\n//
42797s/^[^=]*=[ ]*$//
42798}'
42799fi
42800
42801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42802fi # test -n "$CONFIG_FILES"
42803
42804# Set up the scripts for CONFIG_HEADERS section.
42805# No need to generate them if there are no CONFIG_HEADERS.
42806# This happens for instance with `./config.status Makefile'.
42807if test -n "$CONFIG_HEADERS"; then
42808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42809BEGIN {
42810_ACEOF
42811
42812# Transform confdefs.h into an awk script `defines.awk', embedded as
42813# here-document in config.status, that substitutes the proper values into
42814# config.h.in to produce config.h.
42815
42816# Create a delimiter string that does not exist in confdefs.h, to ease
42817# handling of long lines.
42818ac_delim='%!_!# '
42819for ac_last_try in false false :; do
42820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42821 if test -z "$ac_tt"; then
42822 break
42823 elif $ac_last_try; then
42824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42825 else
42826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42827 fi
42828done
42829
42830# For the awk script, D is an array of macro values keyed by name,
42831# likewise P contains macro parameters if any. Preserve backslash
42832# newline sequences.
42833
42834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42835sed -n '
42836s/.\{148\}/&'"$ac_delim"'/g
42837t rset
42838:rset
42839s/^[ ]*#[ ]*define[ ][ ]*/ /
42840t def
42841d
42842:def
42843s/\\$//
42844t bsnl
42845s/["\\]/\\&/g
42846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42847D["\1"]=" \3"/p
42848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42849d
42850:bsnl
42851s/["\\]/\\&/g
42852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42853D["\1"]=" \3\\\\\\n"\\/p
42854t cont
42855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42856t cont
42857d
42858:cont
42859n
42860s/.\{148\}/&'"$ac_delim"'/g
42861t clear
42862:clear
42863s/\\$//
42864t bsnlc
42865s/["\\]/\\&/g; s/^/"/; s/$/"/p
42866d
42867:bsnlc
42868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42869b cont
42870' <confdefs.h | sed '
42871s/'"$ac_delim"'/"\\\
42872"/g' >>$CONFIG_STATUS || ac_write_fail=1
42873
42874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42875 for (key in D) D_is_set[key] = 1
42876 FS = ""
42877}
42878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42879 line = \$ 0
42880 split(line, arg, " ")
42881 if (arg[1] == "#") {
42882 defundef = arg[2]
42883 mac1 = arg[3]
42884 } else {
42885 defundef = substr(arg[1], 2)
42886 mac1 = arg[2]
42887 }
42888 split(mac1, mac2, "(") #)
42889 macro = mac2[1]
42890 prefix = substr(line, 1, index(line, defundef) - 1)
42891 if (D_is_set[macro]) {
42892 # Preserve the white space surrounding the "#".
42893 print prefix "define", macro P[macro] D[macro]
42894 next
42895 } else {
42896 # Replace #undef with comments. This is necessary, for example,
42897 # in the case of _POSIX_SOURCE, which is predefined and required
42898 # on some systems where configure will not decide to define it.
42899 if (defundef == "undef") {
42900 print "/*", prefix defundef, macro, "*/"
42901 next
42902 }
42903 }
42904}
42905{ print }
42906_ACAWK
42907_ACEOF
42908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42910fi # test -n "$CONFIG_HEADERS"
42911
42912
42913eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42914shift
42915for ac_tag
42916do
42917 case $ac_tag in
42918 :[FHLC]) ac_mode=$ac_tag; continue;;
42919 esac
42920 case $ac_mode$ac_tag in
42921 :[FHL]*:*);;
42922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42923 :[FH]-) ac_tag=-:-;;
42924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42925 esac
42926 ac_save_IFS=$IFS
42927 IFS=:
42928 set x $ac_tag
42929 IFS=$ac_save_IFS
42930 shift
42931 ac_file=$1
42932 shift
42933
42934 case $ac_mode in
42935 :L) ac_source=$1;;
42936 :[FH])
42937 ac_file_inputs=
42938 for ac_f
42939 do
42940 case $ac_f in
42941 -) ac_f="$ac_tmp/stdin";;
42942 *) # Look for the file first in the build tree, then in the source tree
42943 # (if the path is not absolute). The absolute path cannot be DOS-style,
42944 # because $ac_f cannot contain `:'.
42945 test -f "$ac_f" ||
42946 case $ac_f in
42947 [\\/$]*) false;;
42948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42949 esac ||
42950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42951 esac
42952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42953 as_fn_append ac_file_inputs " '$ac_f'"
42954 done
42955
42956 # Let's still pretend it is `configure' which instantiates (i.e., don't
42957 # use $as_me), people would be surprised to read:
42958 # /* config.h. Generated by config.status. */
42959 configure_input='Generated from '`
42960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42961 `' by configure.'
42962 if test x"$ac_file" != x-; then
42963 configure_input="$ac_file. $configure_input"
42964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42965$as_echo "$as_me: creating $ac_file" >&6;}
42966 fi
42967 # Neutralize special characters interpreted by sed in replacement strings.
42968 case $configure_input in #(
42969 *\&* | *\|* | *\\* )
42970 ac_sed_conf_input=`$as_echo "$configure_input" |
42971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42972 *) ac_sed_conf_input=$configure_input;;
42973 esac
42974
42975 case $ac_tag in
42976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42978 esac
42979 ;;
42980 esac
42981
42982 ac_dir=`$as_dirname -- "$ac_file" ||
42983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42984 X"$ac_file" : 'X\(//\)[^/]' \| \
42985 X"$ac_file" : 'X\(//\)$' \| \
42986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42987$as_echo X"$ac_file" |
42988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42989 s//\1/
42990 q
42991 }
42992 /^X\(\/\/\)[^/].*/{
42993 s//\1/
42994 q
42995 }
42996 /^X\(\/\/\)$/{
42997 s//\1/
42998 q
42999 }
43000 /^X\(\/\).*/{
43001 s//\1/
43002 q
43003 }
43004 s/.*/./; q'`
43005 as_dir="$ac_dir"; as_fn_mkdir_p
43006 ac_builddir=.
43007
43008case "$ac_dir" in
43009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43010*)
43011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43012 # A ".." for each directory in $ac_dir_suffix.
43013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43014 case $ac_top_builddir_sub in
43015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43017 esac ;;
43018esac
43019ac_abs_top_builddir=$ac_pwd
43020ac_abs_builddir=$ac_pwd$ac_dir_suffix
43021# for backward compatibility:
43022ac_top_builddir=$ac_top_build_prefix
43023
43024case $srcdir in
43025 .) # We are building in place.
43026 ac_srcdir=.
43027 ac_top_srcdir=$ac_top_builddir_sub
43028 ac_abs_top_srcdir=$ac_pwd ;;
43029 [\\/]* | ?:[\\/]* ) # Absolute name.
43030 ac_srcdir=$srcdir$ac_dir_suffix;
43031 ac_top_srcdir=$srcdir
43032 ac_abs_top_srcdir=$srcdir ;;
43033 *) # Relative name.
43034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43035 ac_top_srcdir=$ac_top_build_prefix$srcdir
43036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43037esac
43038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43039
43040
43041 case $ac_mode in
43042 :F)
43043 #
43044 # CONFIG_FILE
43045 #
43046
43047 case $INSTALL in
43048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43050 esac
43051 ac_MKDIR_P=$MKDIR_P
43052 case $MKDIR_P in
43053 [\\/$]* | ?:[\\/]* ) ;;
43054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43055 esac
43056_ACEOF
43057
43058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43059# If the template does not know about datarootdir, expand it.
43060# FIXME: This hack should be removed a few years after 2.60.
43061ac_datarootdir_hack=; ac_datarootdir_seen=
43062ac_sed_dataroot='
43063/datarootdir/ {
43064 p
43065 q
43066}
43067/@datadir@/p
43068/@docdir@/p
43069/@infodir@/p
43070/@localedir@/p
43071/@mandir@/p'
43072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43073*datarootdir*) ac_datarootdir_seen=yes;;
43074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43077_ACEOF
43078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43079 ac_datarootdir_hack='
43080 s&@datadir@&$datadir&g
43081 s&@docdir@&$docdir&g
43082 s&@infodir@&$infodir&g
43083 s&@localedir@&$localedir&g
43084 s&@mandir@&$mandir&g
43085 s&\\\${datarootdir}&$datarootdir&g' ;;
43086esac
43087_ACEOF
43088
43089# Neutralize VPATH when `$srcdir' = `.'.
43090# Shell code in configure.ac might set extrasub.
43091# FIXME: do we really want to maintain this feature?
43092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43093ac_sed_extra="$ac_vpsub
43094$extrasub
43095_ACEOF
43096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43097:t
43098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43099s|@configure_input@|$ac_sed_conf_input|;t t
43100s&@top_builddir@&$ac_top_builddir_sub&;t t
43101s&@top_build_prefix@&$ac_top_build_prefix&;t t
43102s&@srcdir@&$ac_srcdir&;t t
43103s&@abs_srcdir@&$ac_abs_srcdir&;t t
43104s&@top_srcdir@&$ac_top_srcdir&;t t
43105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43106s&@builddir@&$ac_builddir&;t t
43107s&@abs_builddir@&$ac_abs_builddir&;t t
43108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43109s&@INSTALL@&$ac_INSTALL&;t t
43110s&@MKDIR_P@&$ac_MKDIR_P&;t t
43111$ac_datarootdir_hack
43112"
43113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43115
43116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43119 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43121which seems to be undefined. Please make sure it is defined" >&5
43122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43123which seems to be undefined. Please make sure it is defined" >&2;}
43124
43125 rm -f "$ac_tmp/stdin"
43126 case $ac_file in
43127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43129 esac \
43130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43131 ;;
43132 :H)
43133 #
43134 # CONFIG_HEADER
43135 #
43136 if test x"$ac_file" != x-; then
43137 {
43138 $as_echo "/* $configure_input */" \
43139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43140 } >"$ac_tmp/config.h" \
43141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43144$as_echo "$as_me: $ac_file is unchanged" >&6;}
43145 else
43146 rm -f "$ac_file"
43147 mv "$ac_tmp/config.h" "$ac_file" \
43148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43149 fi
43150 else
43151 $as_echo "/* $configure_input */" \
43152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43153 || as_fn_error $? "could not create -" "$LINENO" 5
43154 fi
43155# Compute "$ac_file"'s index in $config_headers.
43156_am_arg="$ac_file"
43157_am_stamp_count=1
43158for _am_header in $config_headers :; do
43159 case $_am_header in
43160 $_am_arg | $_am_arg:* )
43161 break ;;
43162 * )
43163 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43164 esac
43165done
43166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43168 X"$_am_arg" : 'X\(//\)[^/]' \| \
43169 X"$_am_arg" : 'X\(//\)$' \| \
43170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43171$as_echo X"$_am_arg" |
43172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43173 s//\1/
43174 q
43175 }
43176 /^X\(\/\/\)[^/].*/{
43177 s//\1/
43178 q
43179 }
43180 /^X\(\/\/\)$/{
43181 s//\1/
43182 q
43183 }
43184 /^X\(\/\).*/{
43185 s//\1/
43186 q
43187 }
43188 s/.*/./; q'`/stamp-h$_am_stamp_count
43189 ;;
43190
43191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43192$as_echo "$as_me: executing $ac_file commands" >&6;}
43193 ;;
43194 esac
43195
43196
43197 case $ac_file$ac_mode in
43198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43199 # Older Autoconf quotes --file arguments for eval, but not when files
43200 # are listed without --file. Let's play safe and only enable the eval
43201 # if we detect the quoting.
43202 case $CONFIG_FILES in
43203 *\'*) eval set x "$CONFIG_FILES" ;;
43204 *) set x $CONFIG_FILES ;;
43205 esac
43206 shift
43207 for mf
43208 do
43209 # Strip MF so we end up with the name of the file.
43210 mf=`echo "$mf" | sed -e 's/:.*$//'`
43211 # Check whether this is an Automake generated Makefile or not.
43212 # We used to match only the files named 'Makefile.in', but
43213 # some people rename them; so instead we look at the file content.
43214 # Grep'ing the first line is not enough: some people post-process
43215 # each Makefile.in and add a new line on top of each file to say so.
43216 # Grep'ing the whole file is not good either: AIX grep has a line
43217 # limit of 2048, but all sed's we know have understand at least 4000.
43218 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43219 dirpart=`$as_dirname -- "$mf" ||
43220$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43221 X"$mf" : 'X\(//\)[^/]' \| \
43222 X"$mf" : 'X\(//\)$' \| \
43223 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43224$as_echo X"$mf" |
43225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43226 s//\1/
43227 q
43228 }
43229 /^X\(\/\/\)[^/].*/{
43230 s//\1/
43231 q
43232 }
43233 /^X\(\/\/\)$/{
43234 s//\1/
43235 q
43236 }
43237 /^X\(\/\).*/{
43238 s//\1/
43239 q
43240 }
43241 s/.*/./; q'`
43242 else
43243 continue
43244 fi
43245 # Extract the definition of DEPDIR, am__include, and am__quote
43246 # from the Makefile without running 'make'.
43247 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43248 test -z "$DEPDIR" && continue
43249 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43250 test -z "$am__include" && continue
43251 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43252 # Find all dependency output files, they are included files with
43253 # $(DEPDIR) in their names. We invoke sed twice because it is the
43254 # simplest approach to changing $(DEPDIR) to its actual value in the
43255 # expansion.
43256 for file in `sed -n "
43257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43259 # Make sure the directory exists.
43260 test -f "$dirpart/$file" && continue
43261 fdir=`$as_dirname -- "$file" ||
43262$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43263 X"$file" : 'X\(//\)[^/]' \| \
43264 X"$file" : 'X\(//\)$' \| \
43265 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43266$as_echo X"$file" |
43267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43268 s//\1/
43269 q
43270 }
43271 /^X\(\/\/\)[^/].*/{
43272 s//\1/
43273 q
43274 }
43275 /^X\(\/\/\)$/{
43276 s//\1/
43277 q
43278 }
43279 /^X\(\/\).*/{
43280 s//\1/
43281 q
43282 }
43283 s/.*/./; q'`
43284 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43285 # echo "creating $dirpart/$file"
43286 echo '# dummy' > "$dirpart/$file"
43287 done
43288 done
43289}
43290 ;;
43291 "libtool":C)
43292
43293 # See if we are running on zsh, and set the options that allow our
43294 # commands through without removal of \ escapes.
43295 if test -n "${ZSH_VERSION+set}"; then
43296 setopt NO_GLOB_SUBST
43297 fi
43298
43299 cfgfile=${ofile}T
43300 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43301 $RM "$cfgfile"
43302
43303 cat <<_LT_EOF >> "$cfgfile"
43304#! $SHELL
43305# Generated automatically by $as_me ($PACKAGE) $VERSION
43306# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43307
43308# Provide generalized library-building support services.
43309# Written by Gordon Matzigkeit, 1996
43310
43311# Copyright (C) 2014 Free Software Foundation, Inc.
43312# This is free software; see the source for copying conditions. There is NO
43313# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43314
43315# GNU Libtool is free software; you can redistribute it and/or modify
43316# it under the terms of the GNU General Public License as published by
43317# the Free Software Foundation; either version 2 of of the License, or
43318# (at your option) any later version.
43319#
43320# As a special exception to the GNU General Public License, if you
43321# distribute this file as part of a program or library that is built
43322# using GNU Libtool, you may include this file under the same
43323# distribution terms that you use for the rest of that program.
43324#
43325# GNU Libtool is distributed in the hope that it will be useful, but
43326# WITHOUT ANY WARRANTY; without even the implied warranty of
43327# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43328# GNU General Public License for more details.
43329#
43330# You should have received a copy of the GNU General Public License
43331# along with this program. If not, see <http://www.gnu.org/licenses/>.
43332
43333
43334# The names of the tagged configurations supported by this script.
43335available_tags=''
43336
43337# Configured defaults for sys_lib_dlsearch_path munging.
43338: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43339
43340# ### BEGIN LIBTOOL CONFIG
43341
43342# Which release of libtool.m4 was used?
43343macro_version=$macro_version
43344macro_revision=$macro_revision
43345
43346# Assembler program.
43347AS=$lt_AS
43348
43349# DLL creation program.
43350DLLTOOL=$lt_DLLTOOL
43351
43352# Object dumper program.
43353OBJDUMP=$lt_OBJDUMP
43354
43355# Whether or not to build shared libraries.
43356build_libtool_libs=$enable_shared
43357
43358# Whether or not to build static libraries.
43359build_old_libs=$enable_static
43360
43361# What type of objects to build.
43362pic_mode=$pic_mode
43363
43364# Whether or not to optimize for fast installation.
43365fast_install=$enable_fast_install
43366
43367# Shared archive member basename,for filename based shared library versioning on AIX.
43368shared_archive_member_spec=$shared_archive_member_spec
43369
43370# Shell to use when invoking shell scripts.
43371SHELL=$lt_SHELL
43372
43373# An echo program that protects backslashes.
43374ECHO=$lt_ECHO
43375
43376# The PATH separator for the build system.
43377PATH_SEPARATOR=$lt_PATH_SEPARATOR
43378
43379# The host system.
43380host_alias=$host_alias
43381host=$host
43382host_os=$host_os
43383
43384# The build system.
43385build_alias=$build_alias
43386build=$build
43387build_os=$build_os
43388
43389# A sed program that does not truncate output.
43390SED=$lt_SED
43391
43392# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43393Xsed="\$SED -e 1s/^X//"
43394
43395# A grep program that handles long lines.
43396GREP=$lt_GREP
43397
43398# An ERE matcher.
43399EGREP=$lt_EGREP
43400
43401# A literal string matcher.
43402FGREP=$lt_FGREP
43403
43404# A BSD- or MS-compatible name lister.
43405NM=$lt_NM
43406
43407# Whether we need soft or hard links.
43408LN_S=$lt_LN_S
43409
43410# What is the maximum length of a command?
43411max_cmd_len=$max_cmd_len
43412
43413# Object file suffix (normally "o").
43414objext=$ac_objext
43415
43416# Executable file suffix (normally "").
43417exeext=$exeext
43418
43419# whether the shell understands "unset".
43420lt_unset=$lt_unset
43421
43422# turn spaces into newlines.
43423SP2NL=$lt_lt_SP2NL
43424
43425# turn newlines into spaces.
43426NL2SP=$lt_lt_NL2SP
43427
43428# convert \$build file names to \$host format.
43429to_host_file_cmd=$lt_cv_to_host_file_cmd
43430
43431# convert \$build files to toolchain format.
43432to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43433
43434# Method to check whether dependent libraries are shared objects.
43435deplibs_check_method=$lt_deplibs_check_method
43436
43437# Command to use when deplibs_check_method = "file_magic".
43438file_magic_cmd=$lt_file_magic_cmd
43439
43440# How to find potential files when deplibs_check_method = "file_magic".
43441file_magic_glob=$lt_file_magic_glob
43442
43443# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43444want_nocaseglob=$lt_want_nocaseglob
43445
43446# Command to associate shared and link libraries.
43447sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43448
43449# The archiver.
43450AR=$lt_AR
43451
43452# Flags to create an archive.
43453AR_FLAGS=$lt_AR_FLAGS
43454
43455# How to feed a file listing to the archiver.
43456archiver_list_spec=$lt_archiver_list_spec
43457
43458# A symbol stripping program.
43459STRIP=$lt_STRIP
43460
43461# Commands used to install an old-style archive.
43462RANLIB=$lt_RANLIB
43463old_postinstall_cmds=$lt_old_postinstall_cmds
43464old_postuninstall_cmds=$lt_old_postuninstall_cmds
43465
43466# Whether to use a lock for old archive extraction.
43467lock_old_archive_extraction=$lock_old_archive_extraction
43468
43469# A C compiler.
43470LTCC=$lt_CC
43471
43472# LTCC compiler flags.
43473LTCFLAGS=$lt_CFLAGS
43474
43475# Take the output of nm and produce a listing of raw symbols and C names.
43476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43477
43478# Transform the output of nm in a proper C declaration.
43479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43480
43481# Transform the output of nm into a list of symbols to manually relocate.
43482global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43483
43484# Transform the output of nm in a C name address pair.
43485global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43486
43487# Transform the output of nm in a C name address pair when lib prefix is needed.
43488global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43489
43490# The name lister interface.
43491nm_interface=$lt_lt_cv_nm_interface
43492
43493# Specify filename containing input files for \$NM.
43494nm_file_list_spec=$lt_nm_file_list_spec
43495
43496# The root where to search for dependent libraries,and where our libraries should be installed.
43497lt_sysroot=$lt_sysroot
43498
43499# Command to truncate a binary pipe.
43500lt_truncate_bin=$lt_lt_cv_truncate_bin
43501
43502# The name of the directory that contains temporary libtool files.
43503objdir=$objdir
43504
43505# Used to examine libraries when file_magic_cmd begins with "file".
43506MAGIC_CMD=$MAGIC_CMD
43507
43508# Must we lock files when doing compilation?
43509need_locks=$lt_need_locks
43510
43511# Manifest tool.
43512MANIFEST_TOOL=$lt_MANIFEST_TOOL
43513
43514# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43515DSYMUTIL=$lt_DSYMUTIL
43516
43517# Tool to change global to local symbols on Mac OS X.
43518NMEDIT=$lt_NMEDIT
43519
43520# Tool to manipulate fat objects and archives on Mac OS X.
43521LIPO=$lt_LIPO
43522
43523# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43524OTOOL=$lt_OTOOL
43525
43526# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43527OTOOL64=$lt_OTOOL64
43528
43529# Old archive suffix (normally "a").
43530libext=$libext
43531
43532# Shared library suffix (normally ".so").
43533shrext_cmds=$lt_shrext_cmds
43534
43535# The commands to extract the exported symbol list from a shared archive.
43536extract_expsyms_cmds=$lt_extract_expsyms_cmds
43537
43538# Variables whose values should be saved in libtool wrapper scripts and
43539# restored at link time.
43540variables_saved_for_relink=$lt_variables_saved_for_relink
43541
43542# Do we need the "lib" prefix for modules?
43543need_lib_prefix=$need_lib_prefix
43544
43545# Do we need a version for libraries?
43546need_version=$need_version
43547
43548# Library versioning type.
43549version_type=$version_type
43550
43551# Shared library runtime path variable.
43552runpath_var=$runpath_var
43553
43554# Shared library path variable.
43555shlibpath_var=$shlibpath_var
43556
43557# Is shlibpath searched before the hard-coded library search path?
43558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43559
43560# Format of library name prefix.
43561libname_spec=$lt_libname_spec
43562
43563# List of archive names. First name is the real one, the rest are links.
43564# The last name is the one that the linker finds with -lNAME
43565library_names_spec=$lt_library_names_spec
43566
43567# The coded name of the library, if different from the real name.
43568soname_spec=$lt_soname_spec
43569
43570# Permission mode override for installation of shared libraries.
43571install_override_mode=$lt_install_override_mode
43572
43573# Command to use after installation of a shared archive.
43574postinstall_cmds=$lt_postinstall_cmds
43575
43576# Command to use after uninstallation of a shared archive.
43577postuninstall_cmds=$lt_postuninstall_cmds
43578
43579# Commands used to finish a libtool library installation in a directory.
43580finish_cmds=$lt_finish_cmds
43581
43582# As "finish_cmds", except a single script fragment to be evaled but
43583# not shown.
43584finish_eval=$lt_finish_eval
43585
43586# Whether we should hardcode library paths into libraries.
43587hardcode_into_libs=$hardcode_into_libs
43588
43589# Compile-time system search path for libraries.
43590sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43591
43592# Detected run-time system search path for libraries.
43593sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43594
43595# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43596configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43597
43598# Whether dlopen is supported.
43599dlopen_support=$enable_dlopen
43600
43601# Whether dlopen of programs is supported.
43602dlopen_self=$enable_dlopen_self
43603
43604# Whether dlopen of statically linked programs is supported.
43605dlopen_self_static=$enable_dlopen_self_static
43606
43607# Commands to strip libraries.
43608old_striplib=$lt_old_striplib
43609striplib=$lt_striplib
43610
43611
43612# The linker used to build libraries.
43613LD=$lt_LD
43614
43615# How to create reloadable object files.
43616reload_flag=$lt_reload_flag
43617reload_cmds=$lt_reload_cmds
43618
43619# Commands used to build an old-style archive.
43620old_archive_cmds=$lt_old_archive_cmds
43621
43622# A language specific compiler.
43623CC=$lt_compiler
43624
43625# Is the compiler the GNU compiler?
43626with_gcc=$GCC
43627
43628# Compiler flag to turn off builtin functions.
43629no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43630
43631# Additional compiler flags for building library objects.
43632pic_flag=$lt_lt_prog_compiler_pic
43633
43634# How to pass a linker flag through the compiler.
43635wl=$lt_lt_prog_compiler_wl
43636
43637# Compiler flag to prevent dynamic linking.
43638link_static_flag=$lt_lt_prog_compiler_static
43639
43640# Does compiler simultaneously support -c and -o options?
43641compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43642
43643# Whether or not to add -lc for building shared libraries.
43644build_libtool_need_lc=$archive_cmds_need_lc
43645
43646# Whether or not to disallow shared libs when runtime libs are static.
43647allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43648
43649# Compiler flag to allow reflexive dlopens.
43650export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43651
43652# Compiler flag to generate shared objects directly from archives.
43653whole_archive_flag_spec=$lt_whole_archive_flag_spec
43654
43655# Whether the compiler copes with passing no objects directly.
43656compiler_needs_object=$lt_compiler_needs_object
43657
43658# Create an old-style archive from a shared archive.
43659old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43660
43661# Create a temporary old-style archive to link instead of a shared archive.
43662old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43663
43664# Commands used to build a shared archive.
43665archive_cmds=$lt_archive_cmds
43666archive_expsym_cmds=$lt_archive_expsym_cmds
43667
43668# Commands used to build a loadable module if different from building
43669# a shared archive.
43670module_cmds=$lt_module_cmds
43671module_expsym_cmds=$lt_module_expsym_cmds
43672
43673# Whether we are building with GNU ld or not.
43674with_gnu_ld=$lt_with_gnu_ld
43675
43676# Flag that allows shared libraries with undefined symbols to be built.
43677allow_undefined_flag=$lt_allow_undefined_flag
43678
43679# Flag that enforces no undefined symbols.
43680no_undefined_flag=$lt_no_undefined_flag
43681
43682# Flag to hardcode \$libdir into a binary during linking.
43683# This must work even if \$libdir does not exist
43684hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43685
43686# Whether we need a single "-rpath" flag with a separated argument.
43687hardcode_libdir_separator=$lt_hardcode_libdir_separator
43688
43689# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43690# DIR into the resulting binary.
43691hardcode_direct=$hardcode_direct
43692
43693# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43694# DIR into the resulting binary and the resulting library dependency is
43695# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43696# library is relocated.
43697hardcode_direct_absolute=$hardcode_direct_absolute
43698
43699# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43700# into the resulting binary.
43701hardcode_minus_L=$hardcode_minus_L
43702
43703# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43704# into the resulting binary.
43705hardcode_shlibpath_var=$hardcode_shlibpath_var
43706
43707# Set to "yes" if building a shared library automatically hardcodes DIR
43708# into the library and all subsequent libraries and executables linked
43709# against it.
43710hardcode_automatic=$hardcode_automatic
43711
43712# Set to yes if linker adds runtime paths of dependent libraries
43713# to runtime path list.
43714inherit_rpath=$inherit_rpath
43715
43716# Whether libtool must link a program against all its dependency libraries.
43717link_all_deplibs=$link_all_deplibs
43718
43719# Set to "yes" if exported symbols are required.
43720always_export_symbols=$always_export_symbols
43721
43722# The commands to list exported symbols.
43723export_symbols_cmds=$lt_export_symbols_cmds
43724
43725# Symbols that should not be listed in the preloaded symbols.
43726exclude_expsyms=$lt_exclude_expsyms
43727
43728# Symbols that must always be exported.
43729include_expsyms=$lt_include_expsyms
43730
43731# Commands necessary for linking programs (against libraries) with templates.
43732prelink_cmds=$lt_prelink_cmds
43733
43734# Commands necessary for finishing linking programs.
43735postlink_cmds=$lt_postlink_cmds
43736
43737# Specify filename containing input files.
43738file_list_spec=$lt_file_list_spec
43739
43740# How to hardcode a shared library path into an executable.
43741hardcode_action=$hardcode_action
43742
43743# ### END LIBTOOL CONFIG
43744
43745_LT_EOF
43746
43747 cat <<'_LT_EOF' >> "$cfgfile"
43748
43749# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43750
43751# func_munge_path_list VARIABLE PATH
43752# -----------------------------------
43753# VARIABLE is name of variable containing _space_ separated list of
43754# directories to be munged by the contents of PATH, which is string
43755# having a format:
43756# "DIR[:DIR]:"
43757# string "DIR[ DIR]" will be prepended to VARIABLE
43758# ":DIR[:DIR]"
43759# string "DIR[ DIR]" will be appended to VARIABLE
43760# "DIRP[:DIRP]::[DIRA:]DIRA"
43761# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43762# "DIRA[ DIRA]" will be appended to VARIABLE
43763# "DIR[:DIR]"
43764# VARIABLE will be replaced by "DIR[ DIR]"
43765func_munge_path_list ()
43766{
43767 case x$2 in
43768 x)
43769 ;;
43770 *:)
43771 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43772 ;;
43773 x:*)
43774 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43775 ;;
43776 *::*)
43777 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43778 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43779 ;;
43780 *)
43781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43782 ;;
43783 esac
43784}
43785
43786
43787# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43788func_cc_basename ()
43789{
43790 for cc_temp in $*""; do
43791 case $cc_temp in
43792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43794 \-*) ;;
43795 *) break;;
43796 esac
43797 done
43798 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43799}
43800
43801
43802# ### END FUNCTIONS SHARED WITH CONFIGURE
43803
43804_LT_EOF
43805
43806 case $host_os in
43807 aix3*)
43808 cat <<\_LT_EOF >> "$cfgfile"
43809# AIX sometimes has problems with the GCC collect2 program. For some
43810# reason, if we set the COLLECT_NAMES environment variable, the problems
43811# vanish in a puff of smoke.
43812if test set != "${COLLECT_NAMES+set}"; then
43813 COLLECT_NAMES=
43814 export COLLECT_NAMES
43815fi
43816_LT_EOF
43817 ;;
43818 esac
43819
43820
43821ltmain=$ac_aux_dir/ltmain.sh
43822
43823
43824 # We use sed instead of cat because bash on DJGPP gets confused if
43825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43826 # text mode, it properly converts lines to CR/LF. This bash problem
43827 # is reportedly fixed, but why not run on old versions too?
43828 sed '$q' "$ltmain" >> "$cfgfile" \
43829 || (rm -f "$cfgfile"; exit 1)
43830
43831 mv -f "$cfgfile" "$ofile" ||
43832 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43833 chmod +x "$ofile"
43834
43835 ;;
43836
43837 esac
43838done # for ac_tag
43839
43840
43841as_fn_exit 0
43842_ACEOF
43843ac_clean_files=$ac_clean_files_save
43844
43845test $ac_write_fail = 0 ||
43846 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43847
43848
43849# configure is writing to config.log, and then calls config.status.
43850# config.status does its own redirection, appending to config.log.
43851# Unfortunately, on DOS this fails, as config.log is still kept open
43852# by configure, so config.status won't be able to write to it; its
43853# output is simply discarded. So we exec the FD to /dev/null,
43854# effectively closing config.log, so it can be properly (re)opened and
43855# appended to by config.status. When coming back to configure, we
43856# need to make the FD available again.
43857if test "$no_create" != yes; then
43858 ac_cs_success=:
43859 ac_config_status_args=
43860 test "$silent" = yes &&
43861 ac_config_status_args="$ac_config_status_args --quiet"
43862 exec 5>/dev/null
43863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43864 exec 5>>config.log
43865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43866 # would make configure fail if this is the last instruction.
43867 $ac_cs_success || as_fn_exit 1
43868fi
43869
43870#
43871# CONFIG_SUBDIRS section.
43872#
43873if test "$no_recursion" != yes; then
43874
43875 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43876 # so they do not pile up.
43877 ac_sub_configure_args=
43878 ac_prev=
43879 eval "set x $ac_configure_args"
43880 shift
43881 for ac_arg
43882 do
43883 if test -n "$ac_prev"; then
43884 ac_prev=
43885 continue
43886 fi
43887 case $ac_arg in
43888 -cache-file | --cache-file | --cache-fil | --cache-fi \
43889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43890 ac_prev=cache_file ;;
43891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43893 | --c=*)
43894 ;;
43895 --config-cache | -C)
43896 ;;
43897 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43898 ac_prev=srcdir ;;
43899 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43900 ;;
43901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43902 ac_prev=prefix ;;
43903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43904 ;;
43905 --disable-option-checking)
43906 ;;
43907 *)
43908 case $ac_arg in
43909 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43910 esac
43911 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43912 esac
43913 done
43914
43915 # Always prepend --prefix to ensure using the same prefix
43916 # in subdir configurations.
43917 ac_arg="--prefix=$prefix"
43918 case $ac_arg in
43919 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43920 esac
43921 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43922
43923 # Pass --silent
43924 if test "$silent" = yes; then
43925 ac_sub_configure_args="--silent $ac_sub_configure_args"
43926 fi
43927
43928 # Always prepend --disable-option-checking to silence warnings, since
43929 # different subdirs can have different --enable and --with options.
43930 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43931
43932 ac_popdir=`pwd`
43933 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43934
43935 # Do not complain, so a configure script can configure whichever
43936 # parts of a large source tree are present.
43937 test -d "$srcdir/$ac_dir" || continue
43938
43939 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43940 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43941 $as_echo "$ac_msg" >&6
43942 as_dir="$ac_dir"; as_fn_mkdir_p
43943 ac_builddir=.
43944
43945case "$ac_dir" in
43946.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43947*)
43948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43949 # A ".." for each directory in $ac_dir_suffix.
43950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43951 case $ac_top_builddir_sub in
43952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43954 esac ;;
43955esac
43956ac_abs_top_builddir=$ac_pwd
43957ac_abs_builddir=$ac_pwd$ac_dir_suffix
43958# for backward compatibility:
43959ac_top_builddir=$ac_top_build_prefix
43960
43961case $srcdir in
43962 .) # We are building in place.
43963 ac_srcdir=.
43964 ac_top_srcdir=$ac_top_builddir_sub
43965 ac_abs_top_srcdir=$ac_pwd ;;
43966 [\\/]* | ?:[\\/]* ) # Absolute name.
43967 ac_srcdir=$srcdir$ac_dir_suffix;
43968 ac_top_srcdir=$srcdir
43969 ac_abs_top_srcdir=$srcdir ;;
43970 *) # Relative name.
43971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43972 ac_top_srcdir=$ac_top_build_prefix$srcdir
43973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43974esac
43975ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43976
43977
43978 cd "$ac_dir"
43979
43980 # Check for guested configure; otherwise get Cygnus style configure.
43981 if test -f "$ac_srcdir/configure.gnu"; then
43982 ac_sub_configure=$ac_srcdir/configure.gnu
43983 elif test -f "$ac_srcdir/configure"; then
43984 ac_sub_configure=$ac_srcdir/configure
43985 elif test -f "$ac_srcdir/configure.in"; then
43986 # This should be Cygnus configure.
43987 ac_sub_configure=$ac_aux_dir/configure
43988 else
43989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43990$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43991 ac_sub_configure=
43992 fi
43993
43994 # The recursion is here.
43995 if test -n "$ac_sub_configure"; then
43996 # Make the cache file name correct relative to the subdirectory.
43997 case $cache_file in
43998 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43999 *) # Relative name.
44000 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44001 esac
44002
44003 { $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
44004$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44005 # The eval makes quoting arguments work.
44006 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44007 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44008 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44009 fi
44010
44011 cd "$ac_popdir"
44012 done
44013fi
44014if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44016$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44017fi
44018
44019
44020
44021 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44022 if test -z "$tmp_cpp"; then
44023 tmp_cpp='cpp'
44024 fi
44025 cat >./tests/configurehelp.pm <<_EOF
44026# This is a generated file. Do not edit.
44027
44028package configurehelp;
44029
44030use strict;
44031use warnings;
44032use Exporter;
44033
44034use vars qw(
44035 @ISA
44036 @EXPORT_OK
44037 \$Cpreprocessor
44038 );
44039
44040@ISA = qw(Exporter);
44041
44042@EXPORT_OK = qw(
44043 \$Cpreprocessor
44044 );
44045
44046\$Cpreprocessor = '$tmp_cpp';
44047
440481;
44049_EOF
44050
44051
44052
44053## ---------------------------------- ##
44054## Start of distclean amending code ##
44055## ---------------------------------- ##
44056
44057for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44058do
44059
44060if test ! -f "$xc_subdir/Makefile"; then
44061 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44062 exit 1
44063fi
44064
44065# Fetch dependency tracking file list from Makefile include lines.
44066
44067xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44068xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44069
44070# --disable-dependency-tracking might have been used, consequently
44071# there is nothing to amend without a dependency tracking file list.
44072
44073if test $xc_cnt_words -gt 0; then
44074
44075{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44076$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44077
44078# Build Makefile specific patch hunk.
44079
44080xc_p="$xc_subdir/xc_patch.tmp"
44081
44082xc_rm_depfiles=`echo "$xc_inc_lines" \
44083 | $SED 's%include% -rm -f%' 2>/dev/null`
44084
44085xc_dep_subdirs=`echo "$xc_inc_lines" \
44086 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44087 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44088 | sort | uniq`
44089
44090echo "$xc_rm_depfiles" >$xc_p
44091
44092for xc_dep_dir in $xc_dep_subdirs; do
44093 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44094 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44095 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44096 echo "${xc_tab}fi" >>$xc_p
44097done
44098
44099# Build Makefile patching sed scripts.
44100
44101xc_s1="$xc_subdir/xc_script_1.tmp"
44102xc_s2="$xc_subdir/xc_script_2.tmp"
44103xc_s3="$xc_subdir/xc_script_3.tmp"
44104
44105cat >$xc_s1 <<\_EOT
44106/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44107 s/^.*(DEPDIR)/___xc_depdir_line___/
44108}
44109/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44110 s/^.*(DEPDIR)/___xc_depdir_line___/
44111}
44112_EOT
44113
44114cat >$xc_s2 <<\_EOT
44115/___xc_depdir_line___$/{
44116 N
44117 /___xc_depdir_line___$/D
44118}
44119_EOT
44120
44121cat >$xc_s3 <<_EOT
44122/^___xc_depdir_line___/{
44123 r $xc_p
44124 d
44125}
44126_EOT
44127
44128# Apply patch to Makefile and cleanup.
44129
44130$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44131$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44132$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44133
44134if test -f "$xc_subdir/Makefile.tmp3"; then
44135 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44136fi
44137
44138test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44139test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44140test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44141
44142test -f "$xc_p" && rm -f "$xc_p"
44143test -f "$xc_s1" && rm -f "$xc_s1"
44144test -f "$xc_s2" && rm -f "$xc_s2"
44145test -f "$xc_s3" && rm -f "$xc_s3"
44146
44147fi
44148
44149done
44150
44151## -------------------------------- ##
44152## End of distclean amending code ##
44153## -------------------------------- ##
44154
44155
44156
44157{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44158
44159 curl version: ${CURLVERSION}
44160 Host setup: ${host}
44161 Install prefix: ${prefix}
44162 Compiler: ${CC}
44163 SSL support: ${curl_ssl_msg}
44164 SSH support: ${curl_ssh_msg}
44165 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044166 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044167 GSS-API support: ${curl_gss_msg}
44168 TLS-SRP support: ${curl_tls_srp_msg}
44169 resolver: ${curl_res_msg}
44170 IPv6 support: ${curl_ipv6_msg}
44171 Unix sockets support: ${curl_unix_sockets_msg}
44172 IDN support: ${curl_idn_msg}
44173 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44174 Built-in manual: ${curl_manual_msg}
44175 --libcurl option: ${curl_libcurl_msg}
44176 Verbose errors: ${curl_verbose_msg}
44177 SSPI support: ${curl_sspi_msg}
44178 ca cert bundle: ${ca}${ca_warning}
44179 ca cert path: ${capath}${capath_warning}
44180 ca fallback: ${with_ca_fallback}
44181 LDAP support: ${curl_ldap_msg}
44182 LDAPS support: ${curl_ldaps_msg}
44183 RTSP support: ${curl_rtsp_msg}
44184 RTMP support: ${curl_rtmp_msg}
44185 metalink support: ${curl_mtlnk_msg}
44186 PSL support: ${curl_psl_msg}
44187 HTTP2 support: ${curl_h2_msg}
44188 Protocols: ${SUPPORT_PROTOCOLS}
44189" >&5
44190$as_echo "$as_me: Configured to build curl/libcurl:
44191
44192 curl version: ${CURLVERSION}
44193 Host setup: ${host}
44194 Install prefix: ${prefix}
44195 Compiler: ${CC}
44196 SSL support: ${curl_ssl_msg}
44197 SSH support: ${curl_ssh_msg}
44198 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044199 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044200 GSS-API support: ${curl_gss_msg}
44201 TLS-SRP support: ${curl_tls_srp_msg}
44202 resolver: ${curl_res_msg}
44203 IPv6 support: ${curl_ipv6_msg}
44204 Unix sockets support: ${curl_unix_sockets_msg}
44205 IDN support: ${curl_idn_msg}
44206 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44207 Built-in manual: ${curl_manual_msg}
44208 --libcurl option: ${curl_libcurl_msg}
44209 Verbose errors: ${curl_verbose_msg}
44210 SSPI support: ${curl_sspi_msg}
44211 ca cert bundle: ${ca}${ca_warning}
44212 ca cert path: ${capath}${capath_warning}
44213 ca fallback: ${with_ca_fallback}
44214 LDAP support: ${curl_ldap_msg}
44215 LDAPS support: ${curl_ldaps_msg}
44216 RTSP support: ${curl_rtsp_msg}
44217 RTMP support: ${curl_rtmp_msg}
44218 metalink support: ${curl_mtlnk_msg}
44219 PSL support: ${curl_psl_msg}
44220 HTTP2 support: ${curl_h2_msg}
44221 Protocols: ${SUPPORT_PROTOCOLS}
44222" >&6;}