blob: 3d811efdf4b989b8274858b217cd6e8c44e12fe4 [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"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003332 if test "$compiler_id" = "GNU_C"; then
3333 if test "$compiler_num" -ge "500"; then
3334 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3335 fi
3336 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003337fi
3338
3339
3340if test -z "$SED"; then
3341 # Extract the first word of "sed", so it can be a program name with args.
3342set dummy sed; ac_word=$2
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344$as_echo_n "checking for $ac_word... " >&6; }
3345if ${ac_cv_path_SED+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347else
3348 case $SED in
3349 [\\/]* | ?:[\\/]*)
3350 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3351 ;;
3352 *)
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354as_dummy="$PATH:/usr/bin:/usr/local/bin"
3355for as_dir in $as_dummy
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366 done
3367IFS=$as_save_IFS
3368
3369 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3370 ;;
3371esac
3372fi
3373SED=$ac_cv_path_SED
3374if test -n "$SED"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3376$as_echo "$SED" >&6; }
3377else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379$as_echo "no" >&6; }
3380fi
3381
3382
3383 if test -z "$SED" || test "$SED" = "not_found"; then
3384 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3385 fi
3386fi
3387
3388
3389if test -z "$GREP"; then
3390 # Extract the first word of "grep", so it can be a program name with args.
3391set dummy grep; ac_word=$2
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393$as_echo_n "checking for $ac_word... " >&6; }
3394if ${ac_cv_path_GREP+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396else
3397 case $GREP in
3398 [\\/]* | ?:[\\/]*)
3399 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3400 ;;
3401 *)
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403as_dummy="$PATH:/usr/bin:/usr/local/bin"
3404for as_dir in $as_dummy
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415 done
3416IFS=$as_save_IFS
3417
3418 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3419 ;;
3420esac
3421fi
3422GREP=$ac_cv_path_GREP
3423if test -n "$GREP"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3425$as_echo "$GREP" >&6; }
3426else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432 if test -z "$GREP" || test "$GREP" = "not_found"; then
3433 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3434 fi
3435fi
3436
3437
3438if test -z "$EGREP"; then
3439 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3441$as_echo_n "checking for egrep... " >&6; }
3442 EGREP="$GREP -E"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3444$as_echo "$EGREP" >&6; }
3445 else
3446 # Extract the first word of "egrep", so it can be a program name with args.
3447set dummy egrep; ac_word=$2
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449$as_echo_n "checking for $ac_word... " >&6; }
3450if ${ac_cv_path_EGREP+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452else
3453 case $EGREP in
3454 [\\/]* | ?:[\\/]*)
3455 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3456 ;;
3457 *)
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459as_dummy="$PATH:/usr/bin:/usr/local/bin"
3460for as_dir in $as_dummy
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470done
3471 done
3472IFS=$as_save_IFS
3473
3474 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3475 ;;
3476esac
3477fi
3478EGREP=$ac_cv_path_EGREP
3479if test -n "$EGREP"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3481$as_echo "$EGREP" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488 fi
3489fi
3490if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3491 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3492fi
3493
3494
3495if test -z "$AR"; then
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3498set dummy ${ac_tool_prefix}ar; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if ${ac_cv_path_AR+:} false; then :
3502 $as_echo_n "(cached) " >&6
3503else
3504 case $AR in
3505 [\\/]* | ?:[\\/]*)
3506 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3507 ;;
3508 *)
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510as_dummy="$PATH:/usr/bin:/usr/local/bin"
3511for as_dir in $as_dummy
3512do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521done
3522 done
3523IFS=$as_save_IFS
3524
3525 ;;
3526esac
3527fi
3528AR=$ac_cv_path_AR
3529if test -n "$AR"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3531$as_echo "$AR" >&6; }
3532else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534$as_echo "no" >&6; }
3535fi
3536
3537
3538fi
3539if test -z "$ac_cv_path_AR"; then
3540 ac_pt_AR=$AR
3541 # Extract the first word of "ar", so it can be a program name with args.
3542set dummy ar; ac_word=$2
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544$as_echo_n "checking for $ac_word... " >&6; }
3545if ${ac_cv_path_ac_pt_AR+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547else
3548 case $ac_pt_AR in
3549 [\\/]* | ?:[\\/]*)
3550 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3551 ;;
3552 *)
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554as_dummy="$PATH:/usr/bin:/usr/local/bin"
3555for as_dir in $as_dummy
3556do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565done
3566 done
3567IFS=$as_save_IFS
3568
3569 ;;
3570esac
3571fi
3572ac_pt_AR=$ac_cv_path_ac_pt_AR
3573if test -n "$ac_pt_AR"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3575$as_echo "$ac_pt_AR" >&6; }
3576else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579fi
3580
3581 if test "x$ac_pt_AR" = x; then
3582 AR="not_found"
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585yes:)
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588ac_tool_warned=yes ;;
3589esac
3590 AR=$ac_pt_AR
3591 fi
3592else
3593 AR="$ac_cv_path_AR"
3594fi
3595
3596 if test -z "$AR" || test "$AR" = "not_found"; then
3597 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3598 fi
3599fi
3600
3601
3602
3603
3604CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3605
3606 xc_prog_cc_prev_IFS=$IFS
3607 xc_prog_cc_prev_LIBS=$LIBS
3608 xc_prog_cc_prev_CFLAGS=$CFLAGS
3609 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3610 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3611
3612
3613
3614 xc_bad_var_libs=no
3615 for xc_word in $LIBS; do
3616 case "$xc_word" in
3617 -l* | --library=*)
3618 :
3619 ;;
3620 *)
3621 xc_bad_var_libs=yes
3622 ;;
3623 esac
3624 done
3625 if test $xc_bad_var_libs = yes; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3627$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3629$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3630 fi
3631
3632
3633 xc_bad_var_ldflags=no
3634 for xc_word in $LDFLAGS; do
3635 case "$xc_word" in
3636 -D*)
3637 xc_bad_var_ldflags=yes
3638 ;;
3639 -U*)
3640 xc_bad_var_ldflags=yes
3641 ;;
3642 -I*)
3643 xc_bad_var_ldflags=yes
3644 ;;
3645 -l* | --library=*)
3646 xc_bad_var_ldflags=yes
3647 ;;
3648 esac
3649 done
3650 if test $xc_bad_var_ldflags = yes; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3652$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3653 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3654 for xc_word in $LDFLAGS; do
3655 case "$xc_word" in
3656 -D*)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3658$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3659 ;;
3660 -U*)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3662$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3663 ;;
3664 -I*)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3666$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3667 ;;
3668 -l* | --library=*)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3670$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3671 ;;
3672 esac
3673 done
3674 fi
3675
3676
3677 xc_bad_var_cppflags=no
3678 for xc_word in $CPPFLAGS; do
3679 case "$xc_word" in
3680 -rpath*)
3681 xc_bad_var_cppflags=yes
3682 ;;
3683 -L* | --library-path=*)
3684 xc_bad_var_cppflags=yes
3685 ;;
3686 -l* | --library=*)
3687 xc_bad_var_cppflags=yes
3688 ;;
3689 esac
3690 done
3691 if test $xc_bad_var_cppflags = yes; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3693$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3694 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3695 for xc_word in $CPPFLAGS; do
3696 case "$xc_word" in
3697 -rpath*)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3699$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3700 ;;
3701 -L* | --library-path=*)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3703$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3704 ;;
3705 -l* | --library=*)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3707$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3708 ;;
3709 esac
3710 done
3711 fi
3712
3713
3714 xc_bad_var_cflags=no
3715 for xc_word in $CFLAGS; do
3716 case "$xc_word" in
3717 -D*)
3718 xc_bad_var_cflags=yes
3719 ;;
3720 -U*)
3721 xc_bad_var_cflags=yes
3722 ;;
3723 -I*)
3724 xc_bad_var_cflags=yes
3725 ;;
3726 -rpath*)
3727 xc_bad_var_cflags=yes
3728 ;;
3729 -L* | --library-path=*)
3730 xc_bad_var_cflags=yes
3731 ;;
3732 -l* | --library=*)
3733 xc_bad_var_cflags=yes
3734 ;;
3735 esac
3736 done
3737 if test $xc_bad_var_cflags = yes; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3739$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3740 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3741 for xc_word in $CFLAGS; do
3742 case "$xc_word" in
3743 -D*)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3745$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3746 ;;
3747 -U*)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3749$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3750 ;;
3751 -I*)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3753$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3754 ;;
3755 -rpath*)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3757$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3758 ;;
3759 -L* | --library-path=*)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3761$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3762 ;;
3763 -l* | --library=*)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3765$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3766 ;;
3767 esac
3768 done
3769 fi
3770
3771 if test $xc_bad_var_libs = yes ||
3772 test $xc_bad_var_cflags = yes ||
3773 test $xc_bad_var_ldflags = yes ||
3774 test $xc_bad_var_cppflags = yes; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3776$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3777 fi
3778
3779ac_aux_dir=
3780for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3781 if test -f "$ac_dir/install-sh"; then
3782 ac_aux_dir=$ac_dir
3783 ac_install_sh="$ac_aux_dir/install-sh -c"
3784 break
3785 elif test -f "$ac_dir/install.sh"; then
3786 ac_aux_dir=$ac_dir
3787 ac_install_sh="$ac_aux_dir/install.sh -c"
3788 break
3789 elif test -f "$ac_dir/shtool"; then
3790 ac_aux_dir=$ac_dir
3791 ac_install_sh="$ac_aux_dir/shtool install -c"
3792 break
3793 fi
3794done
3795if test -z "$ac_aux_dir"; then
3796 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3797fi
3798
3799# These three variables are undocumented and unsupported,
3800# and are intended to be withdrawn in a future Autoconf release.
3801# They can cause serious problems if a builder's source tree is in a directory
3802# whose full name contains unusual characters.
3803ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3804ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3805ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3806
3807
3808# Find a good install program. We prefer a C program (faster),
3809# so one script is as good as another. But avoid the broken or
3810# incompatible versions:
3811# SysV /etc/install, /usr/sbin/install
3812# SunOS /usr/etc/install
3813# IRIX /sbin/install
3814# AIX /bin/install
3815# AmigaOS /C/install, which installs bootblocks on floppy discs
3816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3819# OS/2's system install, which has a completely different semantic
3820# ./install, which can be erroneously created by make from ./install.sh.
3821# Reject install programs that cannot install multiple files.
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3823$as_echo_n "checking for a BSD-compatible install... " >&6; }
3824if test -z "$INSTALL"; then
3825if ${ac_cv_path_install+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 # Account for people who put trailing slashes in PATH elements.
3834case $as_dir/ in #((
3835 ./ | .// | /[cC]/* | \
3836 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3837 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3838 /usr/ucb/* ) ;;
3839 *)
3840 # OSF1 and SCO ODT 3.0 have their own names for install.
3841 # Don't use installbsd from OSF since it installs stuff as root
3842 # by default.
3843 for ac_prog in ginstall scoinst install; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3846 if test $ac_prog = install &&
3847 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3848 # AIX install. It has an incompatible calling convention.
3849 :
3850 elif test $ac_prog = install &&
3851 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852 # program-specific install script used by HP pwplus--don't use.
3853 :
3854 else
3855 rm -rf conftest.one conftest.two conftest.dir
3856 echo one > conftest.one
3857 echo two > conftest.two
3858 mkdir conftest.dir
3859 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3860 test -s conftest.one && test -s conftest.two &&
3861 test -s conftest.dir/conftest.one &&
3862 test -s conftest.dir/conftest.two
3863 then
3864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3865 break 3
3866 fi
3867 fi
3868 fi
3869 done
3870 done
3871 ;;
3872esac
3873
3874 done
3875IFS=$as_save_IFS
3876
3877rm -rf conftest.one conftest.two conftest.dir
3878
3879fi
3880 if test "${ac_cv_path_install+set}" = set; then
3881 INSTALL=$ac_cv_path_install
3882 else
3883 # As a last resort, use the slow shell script. Don't cache a
3884 # value for INSTALL within a source directory, because that will
3885 # break other packages using the cache if that directory is
3886 # removed, or if the value is a relative name.
3887 INSTALL=$ac_install_sh
3888 fi
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3891$as_echo "$INSTALL" >&6; }
3892
3893# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3894# It thinks the first close brace ends the variable substitution.
3895test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3896
3897test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3898
3899test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3900
3901# Expand $ac_aux_dir to an absolute path.
3902am_aux_dir=`cd "$ac_aux_dir" && pwd`
3903
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}gcc; ac_word=$2
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if ${ac_cv_prog_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916else
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931done
3932 done
3933IFS=$as_save_IFS
3934
3935fi
3936fi
3937CC=$ac_cv_prog_CC
3938if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940$as_echo "$CC" >&6; }
3941else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
3944fi
3945
3946
3947fi
3948if test -z "$ac_cv_prog_CC"; then
3949 ac_ct_CC=$CC
3950 # Extract the first word of "gcc", so it can be a program name with args.
3951set dummy gcc; ac_word=$2
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
3954if ${ac_cv_prog_ac_ct_CC+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956else
3957 if test -n "$ac_ct_CC"; then
3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_CC="gcc"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972 done
3973IFS=$as_save_IFS
3974
3975fi
3976fi
3977ac_ct_CC=$ac_cv_prog_ac_ct_CC
3978if test -n "$ac_ct_CC"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3980$as_echo "$ac_ct_CC" >&6; }
3981else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984fi
3985
3986 if test "x$ac_ct_CC" = x; then
3987 CC=""
3988 else
3989 case $cross_compiling:$ac_tool_warned in
3990yes:)
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993ac_tool_warned=yes ;;
3994esac
3995 CC=$ac_ct_CC
3996 fi
3997else
3998 CC="$ac_cv_prog_CC"
3999fi
4000
4001if test -z "$CC"; then
4002 if test -n "$ac_tool_prefix"; then
4003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4004set dummy ${ac_tool_prefix}cc; ac_word=$2
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006$as_echo_n "checking for $ac_word... " >&6; }
4007if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4012else
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_CC="${ac_tool_prefix}cc"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024done
4025 done
4026IFS=$as_save_IFS
4027
4028fi
4029fi
4030CC=$ac_cv_prog_CC
4031if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033$as_echo "$CC" >&6; }
4034else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036$as_echo "no" >&6; }
4037fi
4038
4039
4040 fi
4041fi
4042if test -z "$CC"; then
4043 # Extract the first word of "cc", so it can be a program name with args.
4044set dummy cc; ac_word=$2
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046$as_echo_n "checking for $ac_word... " >&6; }
4047if ${ac_cv_prog_CC+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049else
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4052else
4053 ac_prog_rejected=no
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4062 ac_prog_rejected=yes
4063 continue
4064 fi
4065 ac_cv_prog_CC="cc"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069done
4070 done
4071IFS=$as_save_IFS
4072
4073if test $ac_prog_rejected = yes; then
4074 # We found a bogon in the path, so make sure we never use it.
4075 set dummy $ac_cv_prog_CC
4076 shift
4077 if test $# != 0; then
4078 # We chose a different compiler from the bogus one.
4079 # However, it has the same basename, so the bogon will be chosen
4080 # first if we set CC to just the basename; use the full file name.
4081 shift
4082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4083 fi
4084fi
4085fi
4086fi
4087CC=$ac_cv_prog_CC
4088if test -n "$CC"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090$as_echo "$CC" >&6; }
4091else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097fi
4098if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 for ac_prog in cl.exe
4101 do
4102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; }
4106if ${ac_cv_prog_CC+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108else
4109 if test -n "$CC"; then
4110 ac_cv_prog_CC="$CC" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123done
4124 done
4125IFS=$as_save_IFS
4126
4127fi
4128fi
4129CC=$ac_cv_prog_CC
4130if test -n "$CC"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132$as_echo "$CC" >&6; }
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136fi
4137
4138
4139 test -n "$CC" && break
4140 done
4141fi
4142if test -z "$CC"; then
4143 ac_ct_CC=$CC
4144 for ac_prog in cl.exe
4145do
4146 # Extract the first word of "$ac_prog", so it can be a program name with args.
4147set dummy $ac_prog; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_prog_ac_ct_CC+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 if test -n "$ac_ct_CC"; then
4154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_ac_ct_CC="$ac_prog"
4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167done
4168 done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173ac_ct_CC=$ac_cv_prog_ac_ct_CC
4174if test -n "$ac_ct_CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4176$as_echo "$ac_ct_CC" >&6; }
4177else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
4180fi
4181
4182
4183 test -n "$ac_ct_CC" && break
4184done
4185
4186 if test "x$ac_ct_CC" = x; then
4187 CC=""
4188 else
4189 case $cross_compiling:$ac_tool_warned in
4190yes:)
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4193ac_tool_warned=yes ;;
4194esac
4195 CC=$ac_ct_CC
4196 fi
4197fi
4198
4199fi
4200
4201
4202test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204as_fn_error $? "no acceptable C compiler found in \$PATH
4205See \`config.log' for more details" "$LINENO" 5; }
4206
4207# Provide some information about the compiler.
4208$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4209set X $ac_compile
4210ac_compiler=$2
4211for ac_option in --version -v -V -qversion; do
4212 { { ac_try="$ac_compiler $ac_option >&5"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218$as_echo "$ac_try_echo"; } >&5
4219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4220 ac_status=$?
4221 if test -s conftest.err; then
4222 sed '10a\
4223... rest of stderr output deleted ...
4224 10q' conftest.err >conftest.er1
4225 cat conftest.er1 >&5
4226 fi
4227 rm -f conftest.er1 conftest.err
4228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229 test $ac_status = 0; }
4230done
4231
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
4234
4235int main (void)
4236{
4237
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242ac_clean_files_save=$ac_clean_files
4243ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4244# Try to create an executable without -o first, disregard a.out.
4245# It will help us diagnose broken compilers, and finding out an intuition
4246# of exeext.
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4248$as_echo_n "checking whether the C compiler works... " >&6; }
4249ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4250
4251# The possible output files:
4252ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4253
4254ac_rmfiles=
4255for ac_file in $ac_files
4256do
4257 case $ac_file in
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4260 esac
4261done
4262rm -f $ac_rmfiles
4263
4264if { { ac_try="$ac_link_default"
4265case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270$as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_link_default") 2>&5
4272 ac_status=$?
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }; then :
4275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4276# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4277# in a Makefile. We should not override ac_cv_exeext if it was cached,
4278# so that the user can short-circuit this test for compilers unknown to
4279# Autoconf.
4280for ac_file in $ac_files ''
4281do
4282 test -f "$ac_file" || continue
4283 case $ac_file in
4284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4285 ;;
4286 [ab].out )
4287 # We found the default executable, but exeext='' is most
4288 # certainly right.
4289 break;;
4290 *.* )
4291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4292 then :; else
4293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4294 fi
4295 # We set ac_cv_exeext here because the later test for it is not
4296 # safe: cross compilers may not add the suffix if given an `-o'
4297 # argument, so we may need to know it at that point already.
4298 # Even if this section looks crufty: it has the advantage of
4299 # actually working.
4300 break;;
4301 * )
4302 break;;
4303 esac
4304done
4305test "$ac_cv_exeext" = no && ac_cv_exeext=
4306
4307else
4308 ac_file=''
4309fi
4310if test -z "$ac_file"; then :
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
4313$as_echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318as_fn_error 77 "C compiler cannot create executables
4319See \`config.log' for more details" "$LINENO" 5; }
4320else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4322$as_echo "yes" >&6; }
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4325$as_echo_n "checking for C compiler default output file name... " >&6; }
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4327$as_echo "$ac_file" >&6; }
4328ac_exeext=$ac_cv_exeext
4329
4330rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4331ac_clean_files=$ac_clean_files_save
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4333$as_echo_n "checking for suffix of executables... " >&6; }
4334if { { ac_try="$ac_link"
4335case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340$as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_link") 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }; then :
4345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4346# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4347# work properly (i.e., refer to `conftest.exe'), while it won't with
4348# `rm'.
4349for ac_file in conftest.exe conftest conftest.*; do
4350 test -f "$ac_file" || continue
4351 case $ac_file in
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354 break;;
4355 * ) break;;
4356 esac
4357done
4358else
4359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4361as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4362See \`config.log' for more details" "$LINENO" 5; }
4363fi
4364rm -f conftest conftest$ac_cv_exeext
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4366$as_echo "$ac_cv_exeext" >&6; }
4367
4368rm -f conftest.$ac_ext
4369EXEEXT=$ac_cv_exeext
4370ac_exeext=$EXEEXT
4371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372/* end confdefs.h. */
4373#include <stdio.h>
4374int main (void)
4375{
4376FILE *f = fopen ("conftest.out", "w");
4377 return ferror (f) || fclose (f) != 0;
4378
4379 ;
4380 return 0;
4381}
4382_ACEOF
4383ac_clean_files="$ac_clean_files conftest.out"
4384# Check that the compiler produces executables we can run. If not, either
4385# the compiler is broken, or we cross compile.
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4387$as_echo_n "checking whether we are cross compiling... " >&6; }
4388if test "$cross_compiling" != yes; then
4389 { { ac_try="$ac_link"
4390case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
4394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395$as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_link") 2>&5
4397 ac_status=$?
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }
4400 if { ac_try='./conftest$ac_cv_exeext'
4401 { { case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406$as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }; }; then
4411 cross_compiling=no
4412 else
4413 if test "$cross_compiling" = maybe; then
4414 cross_compiling=yes
4415 else
4416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4418as_fn_error $? "cannot run C compiled programs.
4419If you meant to cross compile, use \`--host'.
4420See \`config.log' for more details" "$LINENO" 5; }
4421 fi
4422 fi
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4425$as_echo "$cross_compiling" >&6; }
4426
4427rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4428ac_clean_files=$ac_clean_files_save
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4430$as_echo_n "checking for suffix of object files... " >&6; }
4431if ${ac_cv_objext+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */
4436
4437int main (void)
4438{
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.o conftest.obj
4445if { { ac_try="$ac_compile"
4446case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449esac
4450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451$as_echo "$ac_try_echo"; } >&5
4452 (eval "$ac_compile") 2>&5
4453 ac_status=$?
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }; then :
4456 for ac_file in conftest.o conftest.obj conftest.*; do
4457 test -f "$ac_file" || continue;
4458 case $ac_file in
4459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4461 break;;
4462 esac
4463done
4464else
4465 $as_echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470as_fn_error $? "cannot compute suffix of object files: cannot compile
4471See \`config.log' for more details" "$LINENO" 5; }
4472fi
4473rm -f conftest.$ac_cv_objext conftest.$ac_ext
4474fi
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4476$as_echo "$ac_cv_objext" >&6; }
4477OBJEXT=$ac_cv_objext
4478ac_objext=$OBJEXT
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4480$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4481if ${ac_cv_c_compiler_gnu+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483else
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h. */
4486
4487int main (void)
4488{
4489#ifndef __GNUC__
4490 choke me
4491#endif
4492
4493 ;
4494 return 0;
4495}
4496_ACEOF
4497if ac_fn_c_try_compile "$LINENO"; then :
4498 ac_compiler_gnu=yes
4499else
4500 ac_compiler_gnu=no
4501fi
4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503ac_cv_c_compiler_gnu=$ac_compiler_gnu
4504
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4507$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4508if test $ac_compiler_gnu = yes; then
4509 GCC=yes
4510else
4511 GCC=
4512fi
4513ac_test_CFLAGS=${CFLAGS+set}
4514ac_save_CFLAGS=$CFLAGS
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4516$as_echo_n "checking whether $CC accepts -g... " >&6; }
4517if ${ac_cv_prog_cc_g+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519else
4520 ac_save_c_werror_flag=$ac_c_werror_flag
4521 ac_c_werror_flag=yes
4522 ac_cv_prog_cc_g=no
4523 CFLAGS="-g"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h. */
4526
4527int main (void)
4528{
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_compile "$LINENO"; then :
4535 ac_cv_prog_cc_g=yes
4536else
4537 CFLAGS=""
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539/* end confdefs.h. */
4540
4541int main (void)
4542{
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549
4550else
4551 ac_c_werror_flag=$ac_save_c_werror_flag
4552 CFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */
4555
4556int main (void)
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"; then :
4564 ac_cv_prog_cc_g=yes
4565fi
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567fi
4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569fi
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 ac_c_werror_flag=$ac_save_c_werror_flag
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4574$as_echo "$ac_cv_prog_cc_g" >&6; }
4575if test "$ac_test_CFLAGS" = set; then
4576 CFLAGS=$ac_save_CFLAGS
4577elif test $ac_cv_prog_cc_g = yes; then
4578 if test "$GCC" = yes; then
4579 CFLAGS="-g -O2"
4580 else
4581 CFLAGS="-g"
4582 fi
4583else
4584 if test "$GCC" = yes; then
4585 CFLAGS="-O2"
4586 else
4587 CFLAGS=
4588 fi
4589fi
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4591$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4592if ${ac_cv_prog_cc_c89+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594else
4595 ac_cv_prog_cc_c89=no
4596ac_save_CC=$CC
4597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h. */
4599#include <stdarg.h>
4600#include <stdio.h>
4601struct stat;
4602/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4603struct buf { int x; };
4604FILE * (*rcsopen) (struct buf *, struct stat *, int);
4605static char *e (p, i)
4606 char **p;
4607 int i;
4608{
4609 return p[i];
4610}
4611static char *f (char * (*g) (char **, int), char **p, ...)
4612{
4613 char *s;
4614 va_list v;
4615 va_start (v,p);
4616 s = g (p, va_arg (v,int));
4617 va_end (v);
4618 return s;
4619}
4620
4621/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4622 function prototypes and stuff, but not '\xHH' hex character constants.
4623 These don't provoke an error unfortunately, instead are silently treated
4624 as 'x'. The following induces an error, until -std is added to get
4625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4626 array size at least. It's necessary to write '\x00'==0 to get something
4627 that's true only with -std. */
4628int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4629
4630/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4631 inside strings and character constants. */
4632#define FOO(x) 'x'
4633int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4634
4635int test (int i, double x);
4636struct s1 {int (*f) (int a);};
4637struct s2 {int (*f) (double a);};
4638int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4639int argc;
4640char **argv;
4641int main (void)
4642{
4643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4650do
4651 CC="$ac_save_CC $ac_arg"
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_c89=$ac_arg
4654fi
4655rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c89" != "xno" && break
4657done
4658rm -f conftest.$ac_ext
4659CC=$ac_save_CC
4660
4661fi
4662# AC_CACHE_VAL
4663case "x$ac_cv_prog_cc_c89" in
4664 x)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666$as_echo "none needed" >&6; } ;;
4667 xno)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669$as_echo "unsupported" >&6; } ;;
4670 *)
4671 CC="$CC $ac_cv_prog_cc_c89"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4674esac
4675if test "x$ac_cv_prog_cc_c89" != xno; then :
4676
4677fi
4678
4679ac_ext=c
4680ac_cpp='$CPP $CPPFLAGS'
4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685ac_ext=c
4686ac_cpp='$CPP $CPPFLAGS'
4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4691$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4692if ${am_cv_prog_cc_c_o+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697
4698int main (void)
4699{
4700
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705 # Make sure it works both with $CC and with simple cc.
4706 # Following AC_PROG_CC_C_O, we do the test twice because some
4707 # compilers refuse to overwrite an existing .o file with -o,
4708 # though they will create one.
4709 am_cv_prog_cc_c_o=yes
4710 for am_i in 1 2; do
4711 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4712 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } \
4716 && test -f conftest2.$ac_objext; then
4717 : OK
4718 else
4719 am_cv_prog_cc_c_o=no
4720 break
4721 fi
4722 done
4723 rm -f core conftest*
4724 unset am_i
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4727$as_echo "$am_cv_prog_cc_c_o" >&6; }
4728if test "$am_cv_prog_cc_c_o" != yes; then
4729 # Losing compiler, so override with the script.
4730 # FIXME: It is wrong to rewrite CC.
4731 # But if we don't then we get into trouble of one sort or another.
4732 # A longer-term fix would be to have automake use am__CC in this case,
4733 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4734 CC="$am_aux_dir/compile $CC"
4735fi
4736ac_ext=c
4737ac_cpp='$CPP $CPPFLAGS'
4738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742
4743
4744ac_ext=c
4745ac_cpp='$CPP $CPPFLAGS'
4746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4748ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4750$as_echo_n "checking how to run the C preprocessor... " >&6; }
4751# On Suns, sometimes $CPP names a directory.
4752if test -n "$CPP" && test -d "$CPP"; then
4753 CPP=
4754fi
4755if test -z "$CPP"; then
4756 if ${ac_cv_prog_CPP+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758else
4759 # Double quotes because CPP needs to be expanded
4760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4761 do
4762 ac_preproc_ok=false
4763for ac_c_preproc_warn_flag in '' yes
4764do
4765 # Use a header file that comes with gcc, so configuring glibc
4766 # with a fresh cross-compiler works.
4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768 # <limits.h> exists even on freestanding compilers.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#ifdef __STDC__
4774# include <limits.h>
4775#else
4776# include <assert.h>
4777#endif
4778 Syntax error
4779_ACEOF
4780if ac_fn_c_try_cpp "$LINENO"; then :
4781
4782else
4783 # Broken: fails on valid input.
4784continue
4785fi
4786rm -f conftest.err conftest.i conftest.$ac_ext
4787
4788 # OK, works on sane cases. Now check whether nonexistent headers
4789 # can be detected and how.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792#include <ac_nonexistent.h>
4793_ACEOF
4794if ac_fn_c_try_cpp "$LINENO"; then :
4795 # Broken: success on invalid input.
4796continue
4797else
4798 # Passes both tests.
4799ac_preproc_ok=:
4800break
4801fi
4802rm -f conftest.err conftest.i conftest.$ac_ext
4803
4804done
4805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4806rm -f conftest.i conftest.err conftest.$ac_ext
4807if $ac_preproc_ok; then :
4808 break
4809fi
4810
4811 done
4812 ac_cv_prog_CPP=$CPP
4813
4814fi
4815 CPP=$ac_cv_prog_CPP
4816else
4817 ac_cv_prog_CPP=$CPP
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4820$as_echo "$CPP" >&6; }
4821ac_preproc_ok=false
4822for ac_c_preproc_warn_flag in '' yes
4823do
4824 # Use a header file that comes with gcc, so configuring glibc
4825 # with a fresh cross-compiler works.
4826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827 # <limits.h> exists even on freestanding compilers.
4828 # On the NeXT, cc -E runs the code through the compiler's parser,
4829 # not just through cpp. "Syntax error" is here to catch this case.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h. */
4832#ifdef __STDC__
4833# include <limits.h>
4834#else
4835# include <assert.h>
4836#endif
4837 Syntax error
4838_ACEOF
4839if ac_fn_c_try_cpp "$LINENO"; then :
4840
4841else
4842 # Broken: fails on valid input.
4843continue
4844fi
4845rm -f conftest.err conftest.i conftest.$ac_ext
4846
4847 # OK, works on sane cases. Now check whether nonexistent headers
4848 # can be detected and how.
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851#include <ac_nonexistent.h>
4852_ACEOF
4853if ac_fn_c_try_cpp "$LINENO"; then :
4854 # Broken: success on invalid input.
4855continue
4856else
4857 # Passes both tests.
4858ac_preproc_ok=:
4859break
4860fi
4861rm -f conftest.err conftest.i conftest.$ac_ext
4862
4863done
4864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4865rm -f conftest.i conftest.err conftest.$ac_ext
4866if $ac_preproc_ok; then :
4867
4868else
4869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4871as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4872See \`config.log' for more details" "$LINENO" 5; }
4873fi
4874
4875ac_ext=c
4876ac_cpp='$CPP $CPPFLAGS'
4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880
4881
4882 IFS=$xc_prog_cc_prev_IFS
4883 LIBS=$xc_prog_cc_prev_LIBS
4884 CFLAGS=$xc_prog_cc_prev_CFLAGS
4885 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4886 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4887
4888
4889
4890
4891
Elliott Hughes0128fe42018-02-27 14:57:55 -08004892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4894$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4895if ${ac_cv_path_SED+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897else
4898 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4899 for ac_i in 1 2 3 4 5 6 7; do
4900 ac_script="$ac_script$as_nl$ac_script"
4901 done
4902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4903 { ac_script=; unset ac_script;}
4904 if test -z "$SED"; then
4905 ac_path_SED_found=false
4906 # Loop through the user's path and test for each of PROGNAME-LIST
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_prog in sed gsed; do
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4915 as_fn_executable_p "$ac_path_SED" || continue
4916# Check for GNU ac_path_SED and select it if it is found.
4917 # Check for GNU $ac_path_SED
4918case `"$ac_path_SED" --version 2>&1` in
4919*GNU*)
4920 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4921*)
4922 ac_count=0
4923 $as_echo_n 0123456789 >"conftest.in"
4924 while :
4925 do
4926 cat "conftest.in" "conftest.in" >"conftest.tmp"
4927 mv "conftest.tmp" "conftest.in"
4928 cp "conftest.in" "conftest.nl"
4929 $as_echo '' >> "conftest.nl"
4930 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4932 as_fn_arith $ac_count + 1 && ac_count=$as_val
4933 if test $ac_count -gt ${ac_path_SED_max-0}; then
4934 # Best one so far, save it but keep looking for a better one
4935 ac_cv_path_SED="$ac_path_SED"
4936 ac_path_SED_max=$ac_count
4937 fi
4938 # 10*(2^10) chars as input seems more than enough
4939 test $ac_count -gt 10 && break
4940 done
4941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942esac
4943
4944 $ac_path_SED_found && break 3
4945 done
4946 done
4947 done
4948IFS=$as_save_IFS
4949 if test -z "$ac_cv_path_SED"; then
4950 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4951 fi
4952else
4953 ac_cv_path_SED=$SED
4954fi
4955
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4958$as_echo "$ac_cv_path_SED" >&6; }
4959 SED="$ac_cv_path_SED"
4960 rm -f conftest.sed
4961
4962if test "$GCC" = "yes" ; then :
4963
4964
4965
4966 # allow to override gcov location
4967
4968# Check whether --with-gcov was given.
4969if test "${with_gcov+set}" = set; then :
4970 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4971else
4972 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4973fi
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4977$as_echo_n "checking whether to build with code coverage support... " >&6; }
4978 # Check whether --enable-code-coverage was given.
4979if test "${enable_code_coverage+set}" = set; then :
4980 enableval=$enable_code_coverage;
4981else
4982 enable_code_coverage=no
4983fi
4984
4985
4986 if test x$enable_code_coverage = xyes; then
4987 CODE_COVERAGE_ENABLED_TRUE=
4988 CODE_COVERAGE_ENABLED_FALSE='#'
4989else
4990 CODE_COVERAGE_ENABLED_TRUE='#'
4991 CODE_COVERAGE_ENABLED_FALSE=
4992fi
4993
4994 CODE_COVERAGE_ENABLED=$enable_code_coverage
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
4997$as_echo "$enable_code_coverage" >&6; }
4998
4999 if test "$enable_code_coverage" = "yes" ; then :
5000
5001 # check for gcov
5002 if test -n "$ac_tool_prefix"; then
5003 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5004set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006$as_echo_n "checking for $ac_word... " >&6; }
5007if ${ac_cv_prog_GCOV+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009else
5010 if test -n "$GCOV"; then
5011 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025 done
5026IFS=$as_save_IFS
5027
5028fi
5029fi
5030GCOV=$ac_cv_prog_GCOV
5031if test -n "$GCOV"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5033$as_echo "$GCOV" >&6; }
5034else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038
5039
5040fi
5041if test -z "$ac_cv_prog_GCOV"; then
5042 ac_ct_GCOV=$GCOV
5043 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5044set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046$as_echo_n "checking for $ac_word... " >&6; }
5047if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049else
5050 if test -n "$ac_ct_GCOV"; then
5051 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5052else
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064done
5065 done
5066IFS=$as_save_IFS
5067
5068fi
5069fi
5070ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5071if test -n "$ac_ct_GCOV"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5073$as_echo "$ac_ct_GCOV" >&6; }
5074else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076$as_echo "no" >&6; }
5077fi
5078
5079 if test "x$ac_ct_GCOV" = x; then
5080 GCOV=":"
5081 else
5082 case $cross_compiling:$ac_tool_warned in
5083yes:)
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5086ac_tool_warned=yes ;;
5087esac
5088 GCOV=$ac_ct_GCOV
5089 fi
5090else
5091 GCOV="$ac_cv_prog_GCOV"
5092fi
5093
5094 if test "X$GCOV" = "X:"; then :
5095 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5096fi
5097
5098
5099 if test "$GCC" = "no" ; then :
5100
5101 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5102
5103fi
5104
5105 # Extract the first word of "lcov", so it can be a program name with args.
5106set dummy lcov; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_LCOV+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 if test -n "$LCOV"; then
5113 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_LCOV="lcov"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127 done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132LCOV=$ac_cv_prog_LCOV
5133if test -n "$LCOV"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5135$as_echo "$LCOV" >&6; }
5136else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141
5142 # Extract the first word of "genhtml", so it can be a program name with args.
5143set dummy genhtml; ac_word=$2
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
5146if ${ac_cv_prog_GENHTML+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148else
5149 if test -n "$GENHTML"; then
5150 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_GENHTML="genhtml"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164 done
5165IFS=$as_save_IFS
5166
5167fi
5168fi
5169GENHTML=$ac_cv_prog_GENHTML
5170if test -n "$GENHTML"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5172$as_echo "$GENHTML" >&6; }
5173else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175$as_echo "no" >&6; }
5176fi
5177
5178
5179
5180 if test -z "$LCOV" ; then :
5181
5182 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5183
5184fi
5185
5186 if test -z "$GENHTML" ; then :
5187
5188 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5189
5190fi
5191
5192 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5193 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5194 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5195 CODE_COVERAGE_LIBS="-lgcov"
5196 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5197
5198
5199
5200
5201
5202
5203
5204 CODE_COVERAGE_RULES_CHECK='
5205 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5206 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5207'
5208 CODE_COVERAGE_RULES_CAPTURE='
5209 $(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)
5210 $(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)
5211 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5212 $(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)
5213 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5214'
5215 CODE_COVERAGE_RULES_CLEAN='
5216clean: code-coverage-clean
5217distclean: code-coverage-clean
5218code-coverage-clean:
5219 -$(LCOV) --directory $(top_builddir) -z
5220 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5221 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5222'
5223
5224else
5225
5226 CODE_COVERAGE_RULES_CHECK='
5227 @echo "Need to reconfigure with --enable-code-coverage"
5228'
5229 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5230 CODE_COVERAGE_RULES_CLEAN=''
5231
5232fi
5233
5234CODE_COVERAGE_RULES='
5235# Code coverage
5236#
5237# Optional:
5238# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5239# Multiple directories may be specified, separated by whitespace.
5240# (Default: $(top_builddir))
5241# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5242# by lcov for code coverage. (Default:
5243# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5244# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5245# reports to be created. (Default:
5246# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5247# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5248# set to 0 to disable it and leave empty to stay with the default.
5249# (Default: empty)
5250# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5251# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5252# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5253# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5254# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5255# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5256# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5257# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5258# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5259# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5260# lcov instance. (Default: empty)
5261# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5262# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5263# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5264# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5265# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5266# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5267# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5268#
5269# The generated report will be titled using the $(PACKAGE_NAME) and
5270# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5271# use the git-version-gen script, available online.
5272
5273# Optional variables
5274CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5275CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5276CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5277CODE_COVERAGE_BRANCH_COVERAGE ?=
5278CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5279--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5280CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5281CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5282CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5283CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5284CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5285CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5286CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5287$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5288--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5289CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5290CODE_COVERAGE_IGNORE_PATTERN ?=
5291
5292GITIGNOREFILES ?=
5293GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5294
5295code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5296code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5297code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5298 $(CODE_COVERAGE_OUTPUT_FILE);
5299code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5300code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5301code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5302 $(CODE_COVERAGE_IGNORE_PATTERN);
5303code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5304code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5305code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5306code_coverage_quiet = $(code_coverage_quiet_$(V))
5307code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5308code_coverage_quiet_0 = --quiet
5309
5310# sanitizes the test-name: replaces with underscores: dashes and dots
5311code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5312
5313# Use recursive makes in order to ignore errors during check
5314check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5315
5316# Capture code coverage data
5317code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5318
5319# Hook rule executed before code-coverage-capture, overridable by the user
5320code-coverage-capture-hook:
5321
5322'"$CODE_COVERAGE_RULES_CLEAN"'
5323
5324A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5325A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5326
5327.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5328'
5329
5330
5331
5332
5333else
5334 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5335 CODE_COVERAGE_ENABLED_TRUE='#'
5336
5337fi
5338
Elliott Hughes82be86d2017-09-20 17:00:17 -07005339am__api_version='1.15'
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5342$as_echo_n "checking whether build environment is sane... " >&6; }
5343# Reject unsafe characters in $srcdir or the absolute working directory
5344# name. Accept space and tab only in the latter.
5345am_lf='
5346'
5347case `pwd` in
5348 *[\\\"\#\$\&\'\`$am_lf]*)
5349 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5350esac
5351case $srcdir in
5352 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5353 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5354esac
5355
5356# Do 'set' in a subshell so we don't clobber the current shell's
5357# arguments. Must try -L first in case configure is actually a
5358# symlink; some systems play weird games with the mod time of symlinks
5359# (eg FreeBSD returns the mod time of the symlink's containing
5360# directory).
5361if (
5362 am_has_slept=no
5363 for am_try in 1 2; do
5364 echo "timestamp, slept: $am_has_slept" > conftest.file
5365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5366 if test "$*" = "X"; then
5367 # -L didn't work.
5368 set X `ls -t "$srcdir/configure" conftest.file`
5369 fi
5370 if test "$*" != "X $srcdir/configure conftest.file" \
5371 && test "$*" != "X conftest.file $srcdir/configure"; then
5372
5373 # If neither matched, then we have a broken ls. This can happen
5374 # if, for instance, CONFIG_SHELL is bash and it inherits a
5375 # broken ls alias from the environment. This has actually
5376 # happened. Such a system could not be considered "sane".
5377 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5378 alias in your environment" "$LINENO" 5
5379 fi
5380 if test "$2" = conftest.file || test $am_try -eq 2; then
5381 break
5382 fi
5383 # Just in case.
5384 sleep 1
5385 am_has_slept=yes
5386 done
5387 test "$2" = conftest.file
5388 )
5389then
5390 # Ok.
5391 :
5392else
5393 as_fn_error $? "newly created file is older than distributed files!
5394Check your system clock" "$LINENO" 5
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397$as_echo "yes" >&6; }
5398# If we didn't sleep, we still need to ensure time stamps of config.status and
5399# generated files are strictly newer.
5400am_sleep_pid=
5401if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5402 ( sleep 1 ) &
5403 am_sleep_pid=$!
5404fi
5405
5406rm -f conftest.file
5407
5408test "$program_prefix" != NONE &&
5409 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5410# Use a double $ so make ignores it.
5411test "$program_suffix" != NONE &&
5412 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5413# Double any \ or $.
5414# By default was `s,x,x', remove it if useless.
5415ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5416program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5417
5418if test x"${MISSING+set}" != xset; then
5419 case $am_aux_dir in
5420 *\ * | *\ *)
5421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5422 *)
5423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5424 esac
5425fi
5426# Use eval to expand $SHELL
5427if eval "$MISSING --is-lightweight"; then
5428 am_missing_run="$MISSING "
5429else
5430 am_missing_run=
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5432$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5433fi
5434
5435if test x"${install_sh+set}" != xset; then
5436 case $am_aux_dir in
5437 *\ * | *\ *)
5438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5439 *)
5440 install_sh="\${SHELL} $am_aux_dir/install-sh"
5441 esac
5442fi
5443
5444# Installed binaries are usually stripped using 'strip' when the user
5445# run "make install-strip". However 'strip' might not be the right
5446# tool to use in cross-compilation environments, therefore Automake
5447# will honor the 'STRIP' environment variable to overrule this program.
5448if test "$cross_compiling" != no; then
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5451set dummy ${ac_tool_prefix}strip; ac_word=$2
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
5454if ${ac_cv_prog_STRIP+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456else
5457 if test -n "$STRIP"; then
5458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471done
5472 done
5473IFS=$as_save_IFS
5474
5475fi
5476fi
5477STRIP=$ac_cv_prog_STRIP
5478if test -n "$STRIP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5480$as_echo "$STRIP" >&6; }
5481else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483$as_echo "no" >&6; }
5484fi
5485
5486
5487fi
5488if test -z "$ac_cv_prog_STRIP"; then
5489 ac_ct_STRIP=$STRIP
5490 # Extract the first word of "strip", so it can be a program name with args.
5491set dummy strip; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 if test -n "$ac_ct_STRIP"; then
5498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_STRIP="strip"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511done
5512 done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5518if test -n "$ac_ct_STRIP"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5520$as_echo "$ac_ct_STRIP" >&6; }
5521else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526 if test "x$ac_ct_STRIP" = x; then
5527 STRIP=":"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530yes:)
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533ac_tool_warned=yes ;;
5534esac
5535 STRIP=$ac_ct_STRIP
5536 fi
5537else
5538 STRIP="$ac_cv_prog_STRIP"
5539fi
5540
5541fi
5542INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5543
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5545$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5546if test -z "$MKDIR_P"; then
5547 if ${ac_cv_path_mkdir+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_prog in mkdir gmkdir; do
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5559 'mkdir (GNU coreutils) '* | \
5560 'mkdir (coreutils) '* | \
5561 'mkdir (fileutils) '4.1*)
5562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5563 break 3;;
5564 esac
5565 done
5566 done
5567 done
5568IFS=$as_save_IFS
5569
5570fi
5571
5572 test -d ./--version && rmdir ./--version
5573 if test "${ac_cv_path_mkdir+set}" = set; then
5574 MKDIR_P="$ac_cv_path_mkdir -p"
5575 else
5576 # As a last resort, use the slow shell script. Don't cache a
5577 # value for MKDIR_P within a source directory, because that will
5578 # break other packages using the cache if that directory is
5579 # removed, or if the value is a relative name.
5580 MKDIR_P="$ac_install_sh -d"
5581 fi
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5584$as_echo "$MKDIR_P" >&6; }
5585
5586for ac_prog in gawk mawk nawk awk
5587do
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589set dummy $ac_prog; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if ${ac_cv_prog_AWK+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594else
5595 if test -n "$AWK"; then
5596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_AWK="$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609done
5610 done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615AWK=$ac_cv_prog_AWK
5616if test -n "$AWK"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5618$as_echo "$AWK" >&6; }
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624
5625 test -n "$AWK" && break
5626done
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5629$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5630set x ${MAKE-make}
5631ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5632if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634else
5635 cat >conftest.make <<\_ACEOF
5636SHELL = /bin/sh
5637all:
5638 @echo '@@@%%%=$(MAKE)=@@@%%%'
5639_ACEOF
5640# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5641case `${MAKE-make} -f conftest.make 2>/dev/null` in
5642 *@@@%%%=?*=@@@%%%*)
5643 eval ac_cv_prog_make_${ac_make}_set=yes;;
5644 *)
5645 eval ac_cv_prog_make_${ac_make}_set=no;;
5646esac
5647rm -f conftest.make
5648fi
5649if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651$as_echo "yes" >&6; }
5652 SET_MAKE=
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656 SET_MAKE="MAKE=${MAKE-make}"
5657fi
5658
5659rm -rf .tst 2>/dev/null
5660mkdir .tst 2>/dev/null
5661if test -d .tst; then
5662 am__leading_dot=.
5663else
5664 am__leading_dot=_
5665fi
5666rmdir .tst 2>/dev/null
5667
5668DEPDIR="${am__leading_dot}deps"
5669
5670ac_config_commands="$ac_config_commands depfiles"
5671
5672
5673am_make=${MAKE-make}
5674cat > confinc << 'END'
5675am__doit:
5676 @echo this is the am__doit target
5677.PHONY: am__doit
5678END
5679# If we don't find an include directive, just comment out the code.
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5681$as_echo_n "checking for style of include used by $am_make... " >&6; }
5682am__include="#"
5683am__quote=
5684_am_result=none
5685# First try GNU make style include.
5686echo "include confinc" > confmf
5687# Ignore all kinds of additional output from 'make'.
5688case `$am_make -s -f confmf 2> /dev/null` in #(
5689*the\ am__doit\ target*)
5690 am__include=include
5691 am__quote=
5692 _am_result=GNU
5693 ;;
5694esac
5695# Now try BSD make style include.
5696if test "$am__include" = "#"; then
5697 echo '.include "confinc"' > confmf
5698 case `$am_make -s -f confmf 2> /dev/null` in #(
5699 *the\ am__doit\ target*)
5700 am__include=.include
5701 am__quote="\""
5702 _am_result=BSD
5703 ;;
5704 esac
5705fi
5706
5707
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5709$as_echo "$_am_result" >&6; }
5710rm -f confinc confmf
5711
5712# Check whether --enable-dependency-tracking was given.
5713if test "${enable_dependency_tracking+set}" = set; then :
5714 enableval=$enable_dependency_tracking;
5715fi
5716
5717if test "x$enable_dependency_tracking" != xno; then
5718 am_depcomp="$ac_aux_dir/depcomp"
5719 AMDEPBACKSLASH='\'
5720 am__nodep='_no'
5721fi
5722 if test "x$enable_dependency_tracking" != xno; then
5723 AMDEP_TRUE=
5724 AMDEP_FALSE='#'
5725else
5726 AMDEP_TRUE='#'
5727 AMDEP_FALSE=
5728fi
5729
5730
5731## --------------------------------------- ##
5732## Start of automake initialization code ##
5733## --------------------------------------- ##
5734
5735if test "`cd $srcdir && pwd`" != "`pwd`"; then
5736 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5737 # is not polluted with repeated "-I."
5738 am__isrc=' -I$(srcdir)'
5739 # test to see if srcdir already configured
5740 if test -f $srcdir/config.status; then
5741 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5742 fi
5743fi
5744
5745# test whether we have cygpath
5746if test -z "$CYGPATH_W"; then
5747 if (cygpath --version) >/dev/null 2>/dev/null; then
5748 CYGPATH_W='cygpath -w'
5749 else
5750 CYGPATH_W=echo
5751 fi
5752fi
5753
5754
5755# Define the identity of the package.
5756 PACKAGE='curl'
5757 VERSION='-'
5758
5759
5760cat >>confdefs.h <<_ACEOF
5761#define PACKAGE "$PACKAGE"
5762_ACEOF
5763
5764
5765cat >>confdefs.h <<_ACEOF
5766#define VERSION "$VERSION"
5767_ACEOF
5768
5769# Some tools Automake needs.
5770
5771ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5772
5773
5774AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5775
5776
5777AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5778
5779
5780AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5781
5782
5783MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5784
5785# For better backward compatibility. To be removed once Automake 1.9.x
5786# dies out for good. For more background, see:
5787# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5788# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5789mkdir_p='$(MKDIR_P)'
5790
5791# We need awk for the "check" target (and possibly the TAP driver). The
5792# system "awk" is bad on some platforms.
5793# Always define AMTAR for backward compatibility. Yes, it's still used
5794# in the wild :-( We should find a proper way to deprecate it ...
5795AMTAR='$${TAR-tar}'
5796
5797
5798# We'll loop over all known methods to create a tar archive until one works.
5799_am_tools='gnutar pax cpio none'
5800
5801am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5802
5803
5804
5805
5806
5807depcc="$CC" am_compiler_list=
5808
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5810$as_echo_n "checking dependency style of $depcc... " >&6; }
5811if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5815 # We make a subdir and do the tests there. Otherwise we can end up
5816 # making bogus files that we don't know about and never remove. For
5817 # instance it was reported that on HP-UX the gcc test will end up
5818 # making a dummy file named 'D' -- because '-MD' means "put the output
5819 # in D".
5820 rm -rf conftest.dir
5821 mkdir conftest.dir
5822 # Copy depcomp to subdir because otherwise we won't find it if we're
5823 # using a relative directory.
5824 cp "$am_depcomp" conftest.dir
5825 cd conftest.dir
5826 # We will build objects and dependencies in a subdirectory because
5827 # it helps to detect inapplicable dependency modes. For instance
5828 # both Tru64's cc and ICC support -MD to output dependencies as a
5829 # side effect of compilation, but ICC will put the dependencies in
5830 # the current directory while Tru64 will put them in the object
5831 # directory.
5832 mkdir sub
5833
5834 am_cv_CC_dependencies_compiler_type=none
5835 if test "$am_compiler_list" = ""; then
5836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5837 fi
5838 am__universal=false
5839 case " $depcc " in #(
5840 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5841 esac
5842
5843 for depmode in $am_compiler_list; do
5844 # Setup a source with many dependencies, because some compilers
5845 # like to wrap large dependency lists on column 80 (with \), and
5846 # we should not choose a depcomp mode which is confused by this.
5847 #
5848 # We need to recreate these files for each test, as the compiler may
5849 # overwrite some of them when testing with obscure command lines.
5850 # This happens at least with the AIX C compiler.
5851 : > sub/conftest.c
5852 for i in 1 2 3 4 5 6; do
5853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5854 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5855 # Solaris 10 /bin/sh.
5856 echo '/* dummy */' > sub/conftst$i.h
5857 done
5858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859
5860 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5861 # mode. It turns out that the SunPro C++ compiler does not properly
5862 # handle '-M -o', and we need to detect this. Also, some Intel
5863 # versions had trouble with output in subdirs.
5864 am__obj=sub/conftest.${OBJEXT-o}
5865 am__minus_obj="-o $am__obj"
5866 case $depmode in
5867 gcc)
5868 # This depmode causes a compiler race in universal mode.
5869 test "$am__universal" = false || continue
5870 ;;
5871 nosideeffect)
5872 # After this tag, mechanisms are not by side-effect, so they'll
5873 # only be used when explicitly requested.
5874 if test "x$enable_dependency_tracking" = xyes; then
5875 continue
5876 else
5877 break
5878 fi
5879 ;;
5880 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5881 # This compiler won't grok '-c -o', but also, the minuso test has
5882 # not run yet. These depmodes are late enough in the game, and
5883 # so weak that their functioning should not be impacted.
5884 am__obj=conftest.${OBJEXT-o}
5885 am__minus_obj=
5886 ;;
5887 none) break ;;
5888 esac
5889 if depmode=$depmode \
5890 source=sub/conftest.c object=$am__obj \
5891 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5892 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5893 >/dev/null 2>conftest.err &&
5894 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5895 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5897 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898 # icc doesn't choke on unknown options, it will just issue warnings
5899 # or remarks (even with -Werror). So we grep stderr for any message
5900 # that says an option was ignored or not supported.
5901 # When given -MP, icc 7.0 and 7.1 complain thusly:
5902 # icc: Command line warning: ignoring option '-M'; no argument required
5903 # The diagnosis changed in icc 8.0:
5904 # icc: Command line remark: option '-MP' not supported
5905 if (grep 'ignoring option' conftest.err ||
5906 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907 am_cv_CC_dependencies_compiler_type=$depmode
5908 break
5909 fi
5910 fi
5911 done
5912
5913 cd ..
5914 rm -rf conftest.dir
5915else
5916 am_cv_CC_dependencies_compiler_type=none
5917fi
5918
5919fi
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5921$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5922CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5923
5924 if
5925 test "x$enable_dependency_tracking" != xno \
5926 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5927 am__fastdepCC_TRUE=
5928 am__fastdepCC_FALSE='#'
5929else
5930 am__fastdepCC_TRUE='#'
5931 am__fastdepCC_FALSE=
5932fi
5933
5934
5935
5936# POSIX will say in a future version that running "rm -f" with no argument
5937# is OK; and we want to be able to make that assumption in our Makefile
5938# recipes. So use an aggressive probe to check that the usage we want is
5939# actually supported "in the wild" to an acceptable degree.
5940# See automake bug#10828.
5941# To make any issue more visible, cause the running configure to be aborted
5942# by default if the 'rm' program in use doesn't match our expectations; the
5943# user can still override this though.
5944if rm -f && rm -fr && rm -rf; then : OK; else
5945 cat >&2 <<'END'
5946Oops!
5947
5948Your 'rm' program seems unable to run without file operands specified
5949on the command line, even when the '-f' option is present. This is contrary
5950to the behaviour of most rm programs out there, and not conforming with
5951the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5952
5953Please tell bug-automake@gnu.org about your system, including the value
5954of your $PATH and any error possibly output before this message. This
5955can help us improve future automake versions.
5956
5957END
5958 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5959 echo 'Configuration will proceed anyway, since you have set the' >&2
5960 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5961 echo >&2
5962 else
5963 cat >&2 <<'END'
5964Aborting the configuration process, to ensure you take notice of the issue.
5965
5966You can download and install GNU coreutils to get an 'rm' implementation
5967that behaves properly: <http://www.gnu.org/software/coreutils/>.
5968
5969If you want to complete the configuration process using your problematic
5970'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5971to "yes", and re-run configure.
5972
5973END
5974 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5975 fi
5976fi
5977
5978## ------------------------------------- ##
5979## End of automake initialization code ##
5980## ------------------------------------- ##
5981
5982
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5984$as_echo_n "checking curl version... " >&6; }
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5986$as_echo "$CURLVERSION" >&6; }
5987
5988
5989
5990VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5991
5992
5993PKGADD_PKG="HAXXcurl"
5994PKGADD_NAME="curl - a client that groks URLs"
5995PKGADD_VENDOR="curl.haxx.se"
5996
5997
5998
5999
6000 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6001 curl_ssh_msg="no (--with-libssh2)"
6002 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006003 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006004 curl_gss_msg="no (--with-gssapi)"
6005curl_tls_srp_msg="no (--enable-tls-srp)"
6006 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6007 curl_ipv6_msg="no (--enable-ipv6)"
6008curl_unix_sockets_msg="no (--enable-unix-sockets)"
6009 curl_idn_msg="no (--with-{libidn2,winidn})"
6010 curl_manual_msg="no (--enable-manual)"
6011curl_libcurl_msg="enabled (--disable-libcurl-option)"
6012curl_verbose_msg="enabled (--disable-verbose)"
6013 curl_sspi_msg="no (--enable-sspi)"
6014 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6015 curl_ldaps_msg="no (--enable-ldaps)"
6016 curl_rtsp_msg="no (--enable-rtsp)"
6017 curl_rtmp_msg="no (--with-librtmp)"
6018 curl_mtlnk_msg="no (--with-libmetalink)"
6019 curl_psl_msg="no (--with-libpsl)"
6020
Alex Deymo486467e2017-12-19 19:04:07 +01006021 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006022
6023INITIAL_LDFLAGS=$LDFLAGS
6024INITIAL_LIBS=$LIBS
6025
6026
6027# Make sure we can run config.sub.
6028$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6029 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6030
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6032$as_echo_n "checking build system type... " >&6; }
6033if ${ac_cv_build+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 ac_build_alias=$build_alias
6037test "x$ac_build_alias" = x &&
6038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6039test "x$ac_build_alias" = x &&
6040 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6041ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6042 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6043
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6046$as_echo "$ac_cv_build" >&6; }
6047case $ac_cv_build in
6048*-*-*) ;;
6049*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6050esac
6051build=$ac_cv_build
6052ac_save_IFS=$IFS; IFS='-'
6053set x $ac_cv_build
6054shift
6055build_cpu=$1
6056build_vendor=$2
6057shift; shift
6058# Remember, the first character of IFS is used to create $*,
6059# except with old shells:
6060build_os=$*
6061IFS=$ac_save_IFS
6062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6063
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6066$as_echo_n "checking host system type... " >&6; }
6067if ${ac_cv_host+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test "x$host_alias" = x; then
6071 ac_cv_host=$ac_cv_build
6072else
6073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6075fi
6076
6077fi
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6079$as_echo "$ac_cv_host" >&6; }
6080case $ac_cv_host in
6081*-*-*) ;;
6082*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6083esac
6084host=$ac_cv_host
6085ac_save_IFS=$IFS; IFS='-'
6086set x $ac_cv_host
6087shift
6088host_cpu=$1
6089host_vendor=$2
6090shift; shift
6091# Remember, the first character of IFS is used to create $*,
6092# except with old shells:
6093host_os=$*
6094IFS=$ac_save_IFS
6095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6096
6097
6098
6099cat >>confdefs.h <<_ACEOF
6100#define OS "${host}"
6101_ACEOF
6102
6103
Elliott Hughes72d948d2018-08-03 14:37:21 -07006104# Silence warning: ar: 'u' modifier ignored since 'D' is the default
6105AR_FLAGS=cr
6106
Elliott Hughes82be86d2017-09-20 17:00:17 -07006107
6108
6109
Elliott Hughes82be86d2017-09-20 17:00:17 -07006110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6112if ${ac_cv_path_GREP+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 if test -z "$GREP"; then
6116 ac_path_GREP_found=false
6117 # Loop through the user's path and test for each of PROGNAME-LIST
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_prog in grep ggrep; do
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6126 as_fn_executable_p "$ac_path_GREP" || continue
6127# Check for GNU ac_path_GREP and select it if it is found.
6128 # Check for GNU $ac_path_GREP
6129case `"$ac_path_GREP" --version 2>&1` in
6130*GNU*)
6131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6132*)
6133 ac_count=0
6134 $as_echo_n 0123456789 >"conftest.in"
6135 while :
6136 do
6137 cat "conftest.in" "conftest.in" >"conftest.tmp"
6138 mv "conftest.tmp" "conftest.in"
6139 cp "conftest.in" "conftest.nl"
6140 $as_echo 'GREP' >> "conftest.nl"
6141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6143 as_fn_arith $ac_count + 1 && ac_count=$as_val
6144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6145 # Best one so far, save it but keep looking for a better one
6146 ac_cv_path_GREP="$ac_path_GREP"
6147 ac_path_GREP_max=$ac_count
6148 fi
6149 # 10*(2^10) chars as input seems more than enough
6150 test $ac_count -gt 10 && break
6151 done
6152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6153esac
6154
6155 $ac_path_GREP_found && break 3
6156 done
6157 done
6158 done
6159IFS=$as_save_IFS
6160 if test -z "$ac_cv_path_GREP"; then
6161 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6162 fi
6163else
6164 ac_cv_path_GREP=$GREP
6165fi
6166
6167fi
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6169$as_echo "$ac_cv_path_GREP" >&6; }
6170 GREP="$ac_cv_path_GREP"
6171
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6174$as_echo_n "checking for egrep... " >&6; }
6175if ${ac_cv_path_EGREP+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6179 then ac_cv_path_EGREP="$GREP -E"
6180 else
6181 if test -z "$EGREP"; then
6182 ac_path_EGREP_found=false
6183 # Loop through the user's path and test for each of PROGNAME-LIST
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_prog in egrep; do
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6192 as_fn_executable_p "$ac_path_EGREP" || continue
6193# Check for GNU ac_path_EGREP and select it if it is found.
6194 # Check for GNU $ac_path_EGREP
6195case `"$ac_path_EGREP" --version 2>&1` in
6196*GNU*)
6197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6198*)
6199 ac_count=0
6200 $as_echo_n 0123456789 >"conftest.in"
6201 while :
6202 do
6203 cat "conftest.in" "conftest.in" >"conftest.tmp"
6204 mv "conftest.tmp" "conftest.in"
6205 cp "conftest.in" "conftest.nl"
6206 $as_echo 'EGREP' >> "conftest.nl"
6207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209 as_fn_arith $ac_count + 1 && ac_count=$as_val
6210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6211 # Best one so far, save it but keep looking for a better one
6212 ac_cv_path_EGREP="$ac_path_EGREP"
6213 ac_path_EGREP_max=$ac_count
6214 fi
6215 # 10*(2^10) chars as input seems more than enough
6216 test $ac_count -gt 10 && break
6217 done
6218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219esac
6220
6221 $ac_path_EGREP_found && break 3
6222 done
6223 done
6224 done
6225IFS=$as_save_IFS
6226 if test -z "$ac_cv_path_EGREP"; then
6227 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6228 fi
6229else
6230 ac_cv_path_EGREP=$EGREP
6231fi
6232
6233 fi
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6236$as_echo "$ac_cv_path_EGREP" >&6; }
6237 EGREP="$ac_cv_path_EGREP"
6238
6239
Elliott Hughes82be86d2017-09-20 17:00:17 -07006240
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6243$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h. */
6246
6247#ifdef _AIX
6248 yes_this_is_aix
6249#endif
6250
6251_ACEOF
6252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6253 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6254
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6256$as_echo "yes" >&6; }
6257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6258
6259
6260else
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263$as_echo "no" >&6; }
6264
6265fi
6266rm -f conftest*
6267
6268
6269
6270
6271 #
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6273$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276
6277
6278
6279int main (void)
6280{
6281
6282#ifdef _THREAD_SAFE
6283 int dummy=1;
6284#else
6285 force compilation error
6286#endif
6287
6288 ;
6289 return 0;
6290}
6291
6292_ACEOF
6293if ac_fn_c_try_compile "$LINENO"; then :
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296$as_echo "yes" >&6; }
6297 tmp_thread_safe_initially_defined="yes"
6298
6299else
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303 tmp_thread_safe_initially_defined="no"
6304
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 #
6308 if test "$tmp_thread_safe_initially_defined" = "no"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6310$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6311
6312 case $host_os in
6313 aix[123].* | aix4.[012].*)
6314 tmp_need_thread_safe="no"
6315 ;;
6316 aix*)
6317 tmp_need_thread_safe="yes"
6318 ;;
6319 *)
6320 tmp_need_thread_safe="no"
6321 ;;
6322 esac
6323
6324 if test "$tmp_need_thread_safe" = "yes"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6326$as_echo "yes" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329$as_echo "no" >&6; }
6330 fi
6331 fi
6332 #
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6334$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6335 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6336 test "$tmp_need_thread_safe" = "yes"; then
6337
6338
6339$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6340
6341cat >>confdefs.h <<_EOF
6342#ifndef _THREAD_SAFE
6343# define _THREAD_SAFE
6344#endif
6345_EOF
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6348$as_echo "yes" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352 fi
6353 #
6354
6355
6356 #
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6358$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h. */
6361
6362
6363
6364int main (void)
6365{
6366
6367#ifdef _REENTRANT
6368 int dummy=1;
6369#else
6370 force compilation error
6371#endif
6372
6373 ;
6374 return 0;
6375}
6376
6377_ACEOF
6378if ac_fn_c_try_compile "$LINENO"; then :
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6381$as_echo "yes" >&6; }
6382 tmp_reentrant_initially_defined="yes"
6383
6384else
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
6388 tmp_reentrant_initially_defined="no"
6389
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 #
6393 if test "$tmp_reentrant_initially_defined" = "no"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6395$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6396
6397 case $host_os in
6398 solaris*)
6399 tmp_need_reentrant="yes"
6400 ;;
6401 *)
6402 tmp_need_reentrant="no"
6403 ;;
6404 esac
6405
6406 if test "$tmp_need_reentrant" = "no"; then
6407
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h. */
6410
6411
6412#include <errno.h>
6413
6414int main (void)
6415{
6416
6417 if(0 != errno)
6418 return 1;
6419
6420 ;
6421 return 0;
6422}
6423
6424_ACEOF
6425if ac_fn_c_try_compile "$LINENO"; then :
6426
6427 tmp_errno="yes"
6428
6429else
6430
6431 tmp_errno="no"
6432
6433fi
6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 if test "$tmp_errno" = "yes"; then
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h. */
6438
6439
6440#include <errno.h>
6441
6442int main (void)
6443{
6444
6445#ifdef errno
6446 int dummy=1;
6447#else
6448 force compilation error
6449#endif
6450
6451 ;
6452 return 0;
6453}
6454
6455_ACEOF
6456if ac_fn_c_try_compile "$LINENO"; then :
6457
6458 tmp_errno="errno_macro_defined"
6459
6460else
6461
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h. */
6464
6465
6466#define _REENTRANT
6467#include <errno.h>
6468
6469int main (void)
6470{
6471
6472#ifdef errno
6473 int dummy=1;
6474#else
6475 force compilation error
6476#endif
6477
6478 ;
6479 return 0;
6480}
6481
6482_ACEOF
6483if ac_fn_c_try_compile "$LINENO"; then :
6484
6485 tmp_errno="errno_macro_needs_reentrant"
6486 tmp_need_reentrant="yes"
6487
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 fi
6494
6495 fi
6496 if test "$tmp_need_reentrant" = "no"; then
6497
6498 if test "$tmp_need_reentrant" = "no"; then
6499
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h. */
6502
6503
6504#define gmtime_r innocuous_gmtime_r
6505#ifdef __STDC__
6506# include <limits.h>
6507#else
6508# include <assert.h>
6509#endif
6510#undef gmtime_r
6511#ifdef __cplusplus
6512extern "C"
6513#endif
6514char gmtime_r ();
6515#if defined __stub_gmtime_r || defined __stub___gmtime_r
6516choke me
6517#endif
6518
6519int main (void)
6520{
6521return gmtime_r ();
6522 ;
6523 return 0;
6524}
6525
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528
6529 tmp_gmtime_r="yes"
6530
6531else
6532
6533 tmp_gmtime_r="no"
6534
6535fi
6536rm -f core conftest.err conftest.$ac_objext \
6537 conftest$ac_exeext conftest.$ac_ext
6538 if test "$tmp_gmtime_r" = "yes"; then
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h. */
6541
6542#include <sys/types.h>
6543#include <time.h>
6544
6545_ACEOF
6546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6548
6549 tmp_gmtime_r="proto_declared"
6550
6551else
6552
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h. */
6555
6556#define _REENTRANT
6557#include <sys/types.h>
6558#include <time.h>
6559
6560_ACEOF
6561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6563
6564 tmp_gmtime_r="proto_needs_reentrant"
6565 tmp_need_reentrant="yes"
6566
6567fi
6568rm -f conftest*
6569
6570
6571fi
6572rm -f conftest*
6573
6574 fi
6575
6576 fi
6577 if test "$tmp_need_reentrant" = "no"; then
6578
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h. */
6581
6582
6583#define localtime_r innocuous_localtime_r
6584#ifdef __STDC__
6585# include <limits.h>
6586#else
6587# include <assert.h>
6588#endif
6589#undef localtime_r
6590#ifdef __cplusplus
6591extern "C"
6592#endif
6593char localtime_r ();
6594#if defined __stub_localtime_r || defined __stub___localtime_r
6595choke me
6596#endif
6597
6598int main (void)
6599{
6600return localtime_r ();
6601 ;
6602 return 0;
6603}
6604
6605_ACEOF
6606if ac_fn_c_try_link "$LINENO"; then :
6607
6608 tmp_localtime_r="yes"
6609
6610else
6611
6612 tmp_localtime_r="no"
6613
6614fi
6615rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 if test "$tmp_localtime_r" = "yes"; then
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
6620
6621#include <sys/types.h>
6622#include <time.h>
6623
6624_ACEOF
6625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626 $EGREP "localtime_r" >/dev/null 2>&1; then :
6627
6628 tmp_localtime_r="proto_declared"
6629
6630else
6631
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634
6635#define _REENTRANT
6636#include <sys/types.h>
6637#include <time.h>
6638
6639_ACEOF
6640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "localtime_r" >/dev/null 2>&1; then :
6642
6643 tmp_localtime_r="proto_needs_reentrant"
6644 tmp_need_reentrant="yes"
6645
6646fi
6647rm -f conftest*
6648
6649
6650fi
6651rm -f conftest*
6652
6653 fi
6654
6655 fi
6656 if test "$tmp_need_reentrant" = "no"; then
6657
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661
6662#define strerror_r innocuous_strerror_r
6663#ifdef __STDC__
6664# include <limits.h>
6665#else
6666# include <assert.h>
6667#endif
6668#undef strerror_r
6669#ifdef __cplusplus
6670extern "C"
6671#endif
6672char strerror_r ();
6673#if defined __stub_strerror_r || defined __stub___strerror_r
6674choke me
6675#endif
6676
6677int main (void)
6678{
6679return strerror_r ();
6680 ;
6681 return 0;
6682}
6683
6684_ACEOF
6685if ac_fn_c_try_link "$LINENO"; then :
6686
6687 tmp_strerror_r="yes"
6688
6689else
6690
6691 tmp_strerror_r="no"
6692
6693fi
6694rm -f core conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 if test "$tmp_strerror_r" = "yes"; then
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698/* end confdefs.h. */
6699
6700#include <sys/types.h>
6701#include <string.h>
6702
6703_ACEOF
6704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6705 $EGREP "strerror_r" >/dev/null 2>&1; then :
6706
6707 tmp_strerror_r="proto_declared"
6708
6709else
6710
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h. */
6713
6714#define _REENTRANT
6715#include <sys/types.h>
6716#include <string.h>
6717
6718_ACEOF
6719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "strerror_r" >/dev/null 2>&1; then :
6721
6722 tmp_strerror_r="proto_needs_reentrant"
6723 tmp_need_reentrant="yes"
6724
6725fi
6726rm -f conftest*
6727
6728
6729fi
6730rm -f conftest*
6731
6732 fi
6733
6734 fi
6735 if test "$tmp_need_reentrant" = "no"; then
6736
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h. */
6739
6740
6741#define strtok_r innocuous_strtok_r
6742#ifdef __STDC__
6743# include <limits.h>
6744#else
6745# include <assert.h>
6746#endif
6747#undef strtok_r
6748#ifdef __cplusplus
6749extern "C"
6750#endif
6751char strtok_r ();
6752#if defined __stub_strtok_r || defined __stub___strtok_r
6753choke me
6754#endif
6755
6756int main (void)
6757{
6758return strtok_r ();
6759 ;
6760 return 0;
6761}
6762
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"; then :
6765
6766 tmp_strtok_r="yes"
6767
6768else
6769
6770 tmp_strtok_r="no"
6771
6772fi
6773rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6775 if test "$tmp_strtok_r" = "yes"; then
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h. */
6778
6779#include <sys/types.h>
6780#include <string.h>
6781
6782_ACEOF
6783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 $EGREP "strtok_r" >/dev/null 2>&1; then :
6785
6786 tmp_strtok_r="proto_declared"
6787
6788else
6789
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h. */
6792
6793#define _REENTRANT
6794#include <sys/types.h>
6795#include <string.h>
6796
6797_ACEOF
6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "strtok_r" >/dev/null 2>&1; then :
6800
6801 tmp_strtok_r="proto_needs_reentrant"
6802 tmp_need_reentrant="yes"
6803
6804fi
6805rm -f conftest*
6806
6807
6808fi
6809rm -f conftest*
6810
6811 fi
6812
6813 fi
6814 if test "$tmp_need_reentrant" = "no"; then
6815
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h. */
6818
6819
6820#define inet_ntoa_r innocuous_inet_ntoa_r
6821#ifdef __STDC__
6822# include <limits.h>
6823#else
6824# include <assert.h>
6825#endif
6826#undef inet_ntoa_r
6827#ifdef __cplusplus
6828extern "C"
6829#endif
6830char inet_ntoa_r ();
6831#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6832choke me
6833#endif
6834
6835int main (void)
6836{
6837return inet_ntoa_r ();
6838 ;
6839 return 0;
6840}
6841
6842_ACEOF
6843if ac_fn_c_try_link "$LINENO"; then :
6844
6845 tmp_inet_ntoa_r="yes"
6846
6847else
6848
6849 tmp_inet_ntoa_r="no"
6850
6851fi
6852rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 if test "$tmp_inet_ntoa_r" = "yes"; then
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h. */
6857
6858#include <sys/types.h>
6859#include <sys/socket.h>
6860#include <netinet/in.h>
6861#include <arpa/inet.h>
6862
6863_ACEOF
6864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6866
6867 tmp_inet_ntoa_r="proto_declared"
6868
6869else
6870
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h. */
6873
6874#define _REENTRANT
6875#include <sys/types.h>
6876#include <sys/socket.h>
6877#include <netinet/in.h>
6878#include <arpa/inet.h>
6879
6880_ACEOF
6881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6883
6884 tmp_inet_ntoa_r="proto_needs_reentrant"
6885 tmp_need_reentrant="yes"
6886
6887fi
6888rm -f conftest*
6889
6890
6891fi
6892rm -f conftest*
6893
6894 fi
6895
6896 fi
6897 if test "$tmp_need_reentrant" = "no"; then
6898
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h. */
6901
6902
6903#define gethostbyaddr_r innocuous_gethostbyaddr_r
6904#ifdef __STDC__
6905# include <limits.h>
6906#else
6907# include <assert.h>
6908#endif
6909#undef gethostbyaddr_r
6910#ifdef __cplusplus
6911extern "C"
6912#endif
6913char gethostbyaddr_r ();
6914#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6915choke me
6916#endif
6917
6918int main (void)
6919{
6920return gethostbyaddr_r ();
6921 ;
6922 return 0;
6923}
6924
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"; then :
6927
6928 tmp_gethostbyaddr_r="yes"
6929
6930else
6931
6932 tmp_gethostbyaddr_r="no"
6933
6934fi
6935rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 if test "$tmp_gethostbyaddr_r" = "yes"; then
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h. */
6940
6941#include <sys/types.h>
6942#include <netdb.h>
6943
6944_ACEOF
6945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6947
6948 tmp_gethostbyaddr_r="proto_declared"
6949
6950else
6951
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h. */
6954
6955#define _REENTRANT
6956#include <sys/types.h>
6957#include <netdb.h>
6958
6959_ACEOF
6960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6962
6963 tmp_gethostbyaddr_r="proto_needs_reentrant"
6964 tmp_need_reentrant="yes"
6965
6966fi
6967rm -f conftest*
6968
6969
6970fi
6971rm -f conftest*
6972
6973 fi
6974
6975 fi
6976 if test "$tmp_need_reentrant" = "no"; then
6977
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h. */
6980
6981
6982#define gethostbyname_r innocuous_gethostbyname_r
6983#ifdef __STDC__
6984# include <limits.h>
6985#else
6986# include <assert.h>
6987#endif
6988#undef gethostbyname_r
6989#ifdef __cplusplus
6990extern "C"
6991#endif
6992char gethostbyname_r ();
6993#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6994choke me
6995#endif
6996
6997int main (void)
6998{
6999return gethostbyname_r ();
7000 ;
7001 return 0;
7002}
7003
7004_ACEOF
7005if ac_fn_c_try_link "$LINENO"; then :
7006
7007 tmp_gethostbyname_r="yes"
7008
7009else
7010
7011 tmp_gethostbyname_r="no"
7012
7013fi
7014rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 if test "$tmp_gethostbyname_r" = "yes"; then
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h. */
7019
7020#include <sys/types.h>
7021#include <netdb.h>
7022
7023_ACEOF
7024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7026
7027 tmp_gethostbyname_r="proto_declared"
7028
7029else
7030
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h. */
7033
7034#define _REENTRANT
7035#include <sys/types.h>
7036#include <netdb.h>
7037
7038_ACEOF
7039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7041
7042 tmp_gethostbyname_r="proto_needs_reentrant"
7043 tmp_need_reentrant="yes"
7044
7045fi
7046rm -f conftest*
7047
7048
7049fi
7050rm -f conftest*
7051
7052 fi
7053
7054 fi
7055 if test "$tmp_need_reentrant" = "no"; then
7056
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h. */
7059
7060
7061#define getprotobyname_r innocuous_getprotobyname_r
7062#ifdef __STDC__
7063# include <limits.h>
7064#else
7065# include <assert.h>
7066#endif
7067#undef getprotobyname_r
7068#ifdef __cplusplus
7069extern "C"
7070#endif
7071char getprotobyname_r ();
7072#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7073choke me
7074#endif
7075
7076int main (void)
7077{
7078return getprotobyname_r ();
7079 ;
7080 return 0;
7081}
7082
7083_ACEOF
7084if ac_fn_c_try_link "$LINENO"; then :
7085
7086 tmp_getprotobyname_r="yes"
7087
7088else
7089
7090 tmp_getprotobyname_r="no"
7091
7092fi
7093rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 if test "$tmp_getprotobyname_r" = "yes"; then
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h. */
7098
7099#include <sys/types.h>
7100#include <netdb.h>
7101
7102_ACEOF
7103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7105
7106 tmp_getprotobyname_r="proto_declared"
7107
7108else
7109
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h. */
7112
7113#define _REENTRANT
7114#include <sys/types.h>
7115#include <netdb.h>
7116
7117_ACEOF
7118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7120
7121 tmp_getprotobyname_r="proto_needs_reentrant"
7122 tmp_need_reentrant="yes"
7123
7124fi
7125rm -f conftest*
7126
7127
7128fi
7129rm -f conftest*
7130
7131 fi
7132
7133 fi
7134 if test "$tmp_need_reentrant" = "no"; then
7135
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h. */
7138
7139
7140#define getservbyport_r innocuous_getservbyport_r
7141#ifdef __STDC__
7142# include <limits.h>
7143#else
7144# include <assert.h>
7145#endif
7146#undef getservbyport_r
7147#ifdef __cplusplus
7148extern "C"
7149#endif
7150char getservbyport_r ();
7151#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7152choke me
7153#endif
7154
7155int main (void)
7156{
7157return getservbyport_r ();
7158 ;
7159 return 0;
7160}
7161
7162_ACEOF
7163if ac_fn_c_try_link "$LINENO"; then :
7164
7165 tmp_getservbyport_r="yes"
7166
7167else
7168
7169 tmp_getservbyport_r="no"
7170
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 if test "$tmp_getservbyport_r" = "yes"; then
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h. */
7177
7178#include <sys/types.h>
7179#include <netdb.h>
7180
7181_ACEOF
7182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7183 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7184
7185 tmp_getservbyport_r="proto_declared"
7186
7187else
7188
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h. */
7191
7192#define _REENTRANT
7193#include <sys/types.h>
7194#include <netdb.h>
7195
7196_ACEOF
7197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7198 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7199
7200 tmp_getservbyport_r="proto_needs_reentrant"
7201 tmp_need_reentrant="yes"
7202
7203fi
7204rm -f conftest*
7205
7206
7207fi
7208rm -f conftest*
7209
7210 fi
7211
7212 fi
7213
7214 fi
7215 if test "$tmp_need_reentrant" = "yes"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7217$as_echo "yes" >&6; }
7218 else
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220$as_echo "no" >&6; }
7221 fi
7222 fi
7223 #
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7225$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7226 if test "$tmp_reentrant_initially_defined" = "yes" ||
7227 test "$tmp_need_reentrant" = "yes"; then
7228
7229
7230$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7231
7232cat >>confdefs.h <<_EOF
7233#ifndef _REENTRANT
7234# define _REENTRANT
7235#endif
7236_EOF
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7239$as_echo "yes" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243 fi
7244 #
7245
7246
7247# Check whether --enable-largefile was given.
7248if test "${enable_largefile+set}" = set; then :
7249 enableval=$enable_largefile;
7250fi
7251
7252if test "$enable_largefile" != no; then
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7255$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7256if ${ac_cv_sys_largefile_CC+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258else
7259 ac_cv_sys_largefile_CC=no
7260 if test "$GCC" != yes; then
7261 ac_save_CC=$CC
7262 while :; do
7263 # IRIX 6.2 and later do not support large files by default,
7264 # so use the C compiler's -n32 option if that helps.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h. */
7267#include <sys/types.h>
7268 /* Check that off_t can represent 2**63 - 1 correctly.
7269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7270 since some C++ compilers masquerading as C compilers
7271 incorrectly reject 9223372036854775807. */
7272#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7274 && LARGE_OFF_T % 2147483647 == 1)
7275 ? 1 : -1];
7276int main (void)
7277{
7278
7279 ;
7280 return 0;
7281}
7282_ACEOF
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 break
7285fi
7286rm -f core conftest.err conftest.$ac_objext
7287 CC="$CC -n32"
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 ac_cv_sys_largefile_CC=' -n32'; break
7290fi
7291rm -f core conftest.err conftest.$ac_objext
7292 break
7293 done
7294 CC=$ac_save_CC
7295 rm -f conftest.$ac_ext
7296 fi
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7299$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7300 if test "$ac_cv_sys_largefile_CC" != no; then
7301 CC=$CC$ac_cv_sys_largefile_CC
7302 fi
7303
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7305$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7306if ${ac_cv_sys_file_offset_bits+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308else
7309 while :; do
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <sys/types.h>
7313 /* Check that off_t can represent 2**63 - 1 correctly.
7314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7315 since some C++ compilers masquerading as C compilers
7316 incorrectly reject 9223372036854775807. */
7317#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7319 && LARGE_OFF_T % 2147483647 == 1)
7320 ? 1 : -1];
7321int main (void)
7322{
7323
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_compile "$LINENO"; then :
7329 ac_cv_sys_file_offset_bits=no; break
7330fi
7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h. */
7334#define _FILE_OFFSET_BITS 64
7335#include <sys/types.h>
7336 /* Check that off_t can represent 2**63 - 1 correctly.
7337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7338 since some C++ compilers masquerading as C compilers
7339 incorrectly reject 9223372036854775807. */
7340#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7342 && LARGE_OFF_T % 2147483647 == 1)
7343 ? 1 : -1];
7344int main (void)
7345{
7346
7347 ;
7348 return 0;
7349}
7350_ACEOF
7351if ac_fn_c_try_compile "$LINENO"; then :
7352 ac_cv_sys_file_offset_bits=64; break
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 ac_cv_sys_file_offset_bits=unknown
7356 break
7357done
7358fi
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7360$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7361case $ac_cv_sys_file_offset_bits in #(
7362 no | unknown) ;;
7363 *)
7364cat >>confdefs.h <<_ACEOF
7365#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7366_ACEOF
7367;;
7368esac
7369rm -rf conftest*
7370 if test $ac_cv_sys_file_offset_bits = unknown; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7372$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7373if ${ac_cv_sys_large_files+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375else
7376 while :; do
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h. */
7379#include <sys/types.h>
7380 /* Check that off_t can represent 2**63 - 1 correctly.
7381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7382 since some C++ compilers masquerading as C compilers
7383 incorrectly reject 9223372036854775807. */
7384#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7386 && LARGE_OFF_T % 2147483647 == 1)
7387 ? 1 : -1];
7388int main (void)
7389{
7390
7391 ;
7392 return 0;
7393}
7394_ACEOF
7395if ac_fn_c_try_compile "$LINENO"; then :
7396 ac_cv_sys_large_files=no; break
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h. */
7401#define _LARGE_FILES 1
7402#include <sys/types.h>
7403 /* Check that off_t can represent 2**63 - 1 correctly.
7404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7405 since some C++ compilers masquerading as C compilers
7406 incorrectly reject 9223372036854775807. */
7407#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7409 && LARGE_OFF_T % 2147483647 == 1)
7410 ? 1 : -1];
7411int main (void)
7412{
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419 ac_cv_sys_large_files=1; break
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 ac_cv_sys_large_files=unknown
7423 break
7424done
7425fi
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7427$as_echo "$ac_cv_sys_large_files" >&6; }
7428case $ac_cv_sys_large_files in #(
7429 no | unknown) ;;
7430 *)
7431cat >>confdefs.h <<_ACEOF
7432#define _LARGE_FILES $ac_cv_sys_large_files
7433_ACEOF
7434;;
7435esac
7436rm -rf conftest*
7437 fi
7438
7439
7440fi
7441
7442
7443case `pwd` in
7444 *\ * | *\ *)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7447esac
7448
7449
7450
7451macro_version='2.4.6'
7452macro_revision='2.4.6'
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466ltmain=$ac_aux_dir/ltmain.sh
7467
7468# Backslashify metacharacters that are still active within
7469# double-quoted strings.
7470sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7471
7472# Same as above, but do not quote variable references.
7473double_quote_subst='s/\(["`\\]\)/\\\1/g'
7474
7475# Sed substitution to delay expansion of an escaped shell variable in a
7476# double_quote_subst'ed string.
7477delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7478
7479# Sed substitution to delay expansion of an escaped single quote.
7480delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7481
7482# Sed substitution to avoid accidental globbing in evaled expressions
7483no_glob_subst='s/\*/\\\*/g'
7484
7485ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7486ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7487ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7488
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7490$as_echo_n "checking how to print strings... " >&6; }
7491# Test print first, because it will be a builtin if present.
7492if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7493 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7494 ECHO='print -r --'
7495elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7496 ECHO='printf %s\n'
7497else
7498 # Use this function as a fallback that always works.
7499 func_fallback_echo ()
7500 {
7501 eval 'cat <<_LTECHO_EOF
7502$1
7503_LTECHO_EOF'
7504 }
7505 ECHO='func_fallback_echo'
7506fi
7507
7508# func_echo_all arg...
7509# Invoke $ECHO with all args, space-separated.
7510func_echo_all ()
7511{
7512 $ECHO ""
7513}
7514
7515case $ECHO in
7516 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7517$as_echo "printf" >&6; } ;;
7518 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7519$as_echo "print -r" >&6; } ;;
7520 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7521$as_echo "cat" >&6; } ;;
7522esac
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7538$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7539if ${ac_cv_path_SED+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541else
7542 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7543 for ac_i in 1 2 3 4 5 6 7; do
7544 ac_script="$ac_script$as_nl$ac_script"
7545 done
7546 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7547 { ac_script=; unset ac_script;}
7548 if test -z "$SED"; then
7549 ac_path_SED_found=false
7550 # Loop through the user's path and test for each of PROGNAME-LIST
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_prog in sed gsed; do
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7559 as_fn_executable_p "$ac_path_SED" || continue
7560# Check for GNU ac_path_SED and select it if it is found.
7561 # Check for GNU $ac_path_SED
7562case `"$ac_path_SED" --version 2>&1` in
7563*GNU*)
7564 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7565*)
7566 ac_count=0
7567 $as_echo_n 0123456789 >"conftest.in"
7568 while :
7569 do
7570 cat "conftest.in" "conftest.in" >"conftest.tmp"
7571 mv "conftest.tmp" "conftest.in"
7572 cp "conftest.in" "conftest.nl"
7573 $as_echo '' >> "conftest.nl"
7574 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7576 as_fn_arith $ac_count + 1 && ac_count=$as_val
7577 if test $ac_count -gt ${ac_path_SED_max-0}; then
7578 # Best one so far, save it but keep looking for a better one
7579 ac_cv_path_SED="$ac_path_SED"
7580 ac_path_SED_max=$ac_count
7581 fi
7582 # 10*(2^10) chars as input seems more than enough
7583 test $ac_count -gt 10 && break
7584 done
7585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7586esac
7587
7588 $ac_path_SED_found && break 3
7589 done
7590 done
7591 done
7592IFS=$as_save_IFS
7593 if test -z "$ac_cv_path_SED"; then
7594 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7595 fi
7596else
7597 ac_cv_path_SED=$SED
7598fi
7599
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7602$as_echo "$ac_cv_path_SED" >&6; }
7603 SED="$ac_cv_path_SED"
7604 rm -f conftest.sed
7605
7606test -z "$SED" && SED=sed
7607Xsed="$SED -e 1s/^X//"
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7620$as_echo_n "checking for fgrep... " >&6; }
7621if ${ac_cv_path_FGREP+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7625 then ac_cv_path_FGREP="$GREP -F"
7626 else
7627 if test -z "$FGREP"; then
7628 ac_path_FGREP_found=false
7629 # Loop through the user's path and test for each of PROGNAME-LIST
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_prog in fgrep; do
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7638 as_fn_executable_p "$ac_path_FGREP" || continue
7639# Check for GNU ac_path_FGREP and select it if it is found.
7640 # Check for GNU $ac_path_FGREP
7641case `"$ac_path_FGREP" --version 2>&1` in
7642*GNU*)
7643 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7644*)
7645 ac_count=0
7646 $as_echo_n 0123456789 >"conftest.in"
7647 while :
7648 do
7649 cat "conftest.in" "conftest.in" >"conftest.tmp"
7650 mv "conftest.tmp" "conftest.in"
7651 cp "conftest.in" "conftest.nl"
7652 $as_echo 'FGREP' >> "conftest.nl"
7653 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7655 as_fn_arith $ac_count + 1 && ac_count=$as_val
7656 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7657 # Best one so far, save it but keep looking for a better one
7658 ac_cv_path_FGREP="$ac_path_FGREP"
7659 ac_path_FGREP_max=$ac_count
7660 fi
7661 # 10*(2^10) chars as input seems more than enough
7662 test $ac_count -gt 10 && break
7663 done
7664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7665esac
7666
7667 $ac_path_FGREP_found && break 3
7668 done
7669 done
7670 done
7671IFS=$as_save_IFS
7672 if test -z "$ac_cv_path_FGREP"; then
7673 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7674 fi
7675else
7676 ac_cv_path_FGREP=$FGREP
7677fi
7678
7679 fi
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7682$as_echo "$ac_cv_path_FGREP" >&6; }
7683 FGREP="$ac_cv_path_FGREP"
7684
7685
7686test -z "$GREP" && GREP=grep
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706# Check whether --with-gnu-ld was given.
7707if test "${with_gnu_ld+set}" = set; then :
7708 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7709else
7710 with_gnu_ld=no
7711fi
7712
7713ac_prog=ld
7714if test yes = "$GCC"; then
7715 # Check if gcc -print-prog-name=ld gives a path.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7717$as_echo_n "checking for ld used by $CC... " >&6; }
7718 case $host in
7719 *-*-mingw*)
7720 # gcc leaves a trailing carriage return, which upsets mingw
7721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7722 *)
7723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7724 esac
7725 case $ac_prog in
7726 # Accept absolute paths.
7727 [\\/]* | ?:[\\/]*)
7728 re_direlt='/[^/][^/]*/\.\./'
7729 # Canonicalize the pathname of ld
7730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7733 done
7734 test -z "$LD" && LD=$ac_prog
7735 ;;
7736 "")
7737 # If it fails, then pretend we aren't using GCC.
7738 ac_prog=ld
7739 ;;
7740 *)
7741 # If it is relative, then search for the first ld in PATH.
7742 with_gnu_ld=unknown
7743 ;;
7744 esac
7745elif test yes = "$with_gnu_ld"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7747$as_echo_n "checking for GNU ld... " >&6; }
7748else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7750$as_echo_n "checking for non-GNU ld... " >&6; }
7751fi
7752if ${lt_cv_path_LD+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754else
7755 if test -z "$LD"; then
7756 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7757 for ac_dir in $PATH; do
7758 IFS=$lt_save_ifs
7759 test -z "$ac_dir" && ac_dir=.
7760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7761 lt_cv_path_LD=$ac_dir/$ac_prog
7762 # Check to see if the program is GNU ld. I'd rather use --version,
7763 # but apparently some variants of GNU ld only accept -v.
7764 # Break only if it was the GNU/non-GNU ld that we prefer.
7765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7766 *GNU* | *'with BFD'*)
7767 test no != "$with_gnu_ld" && break
7768 ;;
7769 *)
7770 test yes != "$with_gnu_ld" && break
7771 ;;
7772 esac
7773 fi
7774 done
7775 IFS=$lt_save_ifs
7776else
7777 lt_cv_path_LD=$LD # Let the user override the test with a path.
7778fi
7779fi
7780
7781LD=$lt_cv_path_LD
7782if test -n "$LD"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7784$as_echo "$LD" >&6; }
7785else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
7788fi
7789test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7791$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7792if ${lt_cv_prog_gnu_ld+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794else
7795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7796case `$LD -v 2>&1 </dev/null` in
7797*GNU* | *'with BFD'*)
7798 lt_cv_prog_gnu_ld=yes
7799 ;;
7800*)
7801 lt_cv_prog_gnu_ld=no
7802 ;;
7803esac
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7806$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7807with_gnu_ld=$lt_cv_prog_gnu_ld
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7818$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7819if ${lt_cv_path_NM+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821else
7822 if test -n "$NM"; then
7823 # Let the user override the test.
7824 lt_cv_path_NM=$NM
7825else
7826 lt_nm_to_check=${ac_tool_prefix}nm
7827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7828 lt_nm_to_check="$lt_nm_to_check nm"
7829 fi
7830 for lt_tmp_nm in $lt_nm_to_check; do
7831 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7833 IFS=$lt_save_ifs
7834 test -z "$ac_dir" && ac_dir=.
7835 tmp_nm=$ac_dir/$lt_tmp_nm
7836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7837 # Check to see if the nm accepts a BSD-compat flag.
7838 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7839 # nm: unknown option "B" ignored
7840 # Tru64's nm complains that /dev/null is an invalid object file
7841 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7842 case $build_os in
7843 mingw*) lt_bad_file=conftest.nm/nofile ;;
7844 *) lt_bad_file=/dev/null ;;
7845 esac
7846 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7847 *$lt_bad_file* | *'Invalid file or object type'*)
7848 lt_cv_path_NM="$tmp_nm -B"
7849 break 2
7850 ;;
7851 *)
7852 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7853 */dev/null*)
7854 lt_cv_path_NM="$tmp_nm -p"
7855 break 2
7856 ;;
7857 *)
7858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7859 continue # so that we can try to find one that supports BSD flags
7860 ;;
7861 esac
7862 ;;
7863 esac
7864 fi
7865 done
7866 IFS=$lt_save_ifs
7867 done
7868 : ${lt_cv_path_NM=no}
7869fi
7870fi
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7872$as_echo "$lt_cv_path_NM" >&6; }
7873if test no != "$lt_cv_path_NM"; then
7874 NM=$lt_cv_path_NM
7875else
7876 # Didn't find any BSD compatible name lister, look for dumpbin.
7877 if test -n "$DUMPBIN"; then :
7878 # Let the user override the test.
7879 else
7880 if test -n "$ac_tool_prefix"; then
7881 for ac_prog in dumpbin "link -dump"
7882 do
7883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_DUMPBIN+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889else
7890 if test -n "$DUMPBIN"; then
7891 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905 done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910DUMPBIN=$ac_cv_prog_DUMPBIN
7911if test -n "$DUMPBIN"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7913$as_echo "$DUMPBIN" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920 test -n "$DUMPBIN" && break
7921 done
7922fi
7923if test -z "$DUMPBIN"; then
7924 ac_ct_DUMPBIN=$DUMPBIN
7925 for ac_prog in dumpbin "link -dump"
7926do
7927 # Extract the first word of "$ac_prog", so it can be a program name with args.
7928set dummy $ac_prog; ac_word=$2
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930$as_echo_n "checking for $ac_word... " >&6; }
7931if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933else
7934 if test -n "$ac_ct_DUMPBIN"; then
7935 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7936else
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948done
7949 done
7950IFS=$as_save_IFS
7951
7952fi
7953fi
7954ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7955if test -n "$ac_ct_DUMPBIN"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7957$as_echo "$ac_ct_DUMPBIN" >&6; }
7958else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
7961fi
7962
7963
7964 test -n "$ac_ct_DUMPBIN" && break
7965done
7966
7967 if test "x$ac_ct_DUMPBIN" = x; then
7968 DUMPBIN=":"
7969 else
7970 case $cross_compiling:$ac_tool_warned in
7971yes:)
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974ac_tool_warned=yes ;;
7975esac
7976 DUMPBIN=$ac_ct_DUMPBIN
7977 fi
7978fi
7979
7980 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7981 *COFF*)
7982 DUMPBIN="$DUMPBIN -symbols -headers"
7983 ;;
7984 *)
7985 DUMPBIN=:
7986 ;;
7987 esac
7988 fi
7989
7990 if test : != "$DUMPBIN"; then
7991 NM=$DUMPBIN
7992 fi
7993fi
7994test -z "$NM" && NM=nm
7995
7996
7997
7998
7999
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8002$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8003if ${lt_cv_nm_interface+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005else
8006 lt_cv_nm_interface="BSD nm"
8007 echo "int some_variable = 0;" > conftest.$ac_ext
8008 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8009 (eval "$ac_compile" 2>conftest.err)
8010 cat conftest.err >&5
8011 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8012 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8013 cat conftest.err >&5
8014 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8015 cat conftest.out >&5
8016 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8017 lt_cv_nm_interface="MS dumpbin"
8018 fi
8019 rm -f conftest*
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8022$as_echo "$lt_cv_nm_interface" >&6; }
8023
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8025$as_echo_n "checking whether ln -s works... " >&6; }
8026LN_S=$as_ln_s
8027if test "$LN_S" = "ln -s"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8029$as_echo "yes" >&6; }
8030else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8032$as_echo "no, using $LN_S" >&6; }
8033fi
8034
8035# find the maximum length of command line arguments
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8037$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8038if ${lt_cv_sys_max_cmd_len+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040else
8041 i=0
8042 teststring=ABCD
8043
8044 case $build_os in
8045 msdosdjgpp*)
8046 # On DJGPP, this test can blow up pretty badly due to problems in libc
8047 # (any single argument exceeding 2000 bytes causes a buffer overrun
8048 # during glob expansion). Even if it were fixed, the result of this
8049 # check would be larger than it should be.
8050 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8051 ;;
8052
8053 gnu*)
8054 # Under GNU Hurd, this test is not required because there is
8055 # no limit to the length of command line arguments.
8056 # Libtool will interpret -1 as no limit whatsoever
8057 lt_cv_sys_max_cmd_len=-1;
8058 ;;
8059
8060 cygwin* | mingw* | cegcc*)
8061 # On Win9x/ME, this test blows up -- it succeeds, but takes
8062 # about 5 minutes as the teststring grows exponentially.
8063 # Worse, since 9x/ME are not pre-emptively multitasking,
8064 # you end up with a "frozen" computer, even though with patience
8065 # the test eventually succeeds (with a max line length of 256k).
8066 # Instead, let's just punt: use the minimum linelength reported by
8067 # all of the supported platforms: 8192 (on NT/2K/XP).
8068 lt_cv_sys_max_cmd_len=8192;
8069 ;;
8070
8071 mint*)
8072 # On MiNT this can take a long time and run out of memory.
8073 lt_cv_sys_max_cmd_len=8192;
8074 ;;
8075
8076 amigaos*)
8077 # On AmigaOS with pdksh, this test takes hours, literally.
8078 # So we just punt and use a minimum line length of 8192.
8079 lt_cv_sys_max_cmd_len=8192;
8080 ;;
8081
8082 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8083 # This has been around since 386BSD, at least. Likely further.
8084 if test -x /sbin/sysctl; then
8085 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8086 elif test -x /usr/sbin/sysctl; then
8087 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8088 else
8089 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8090 fi
8091 # And add a safety zone
8092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8094 ;;
8095
8096 interix*)
8097 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8098 lt_cv_sys_max_cmd_len=196608
8099 ;;
8100
8101 os2*)
8102 # The test takes a long time on OS/2.
8103 lt_cv_sys_max_cmd_len=8192
8104 ;;
8105
8106 osf*)
8107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8109 # nice to cause kernel panics so lets avoid the loop below.
8110 # First set a reasonable default.
8111 lt_cv_sys_max_cmd_len=16384
8112 #
8113 if test -x /sbin/sysconfig; then
8114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8116 esac
8117 fi
8118 ;;
8119 sco3.2v5*)
8120 lt_cv_sys_max_cmd_len=102400
8121 ;;
8122 sysv5* | sco5v6* | sysv4.2uw2*)
8123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8124 if test -n "$kargmax"; then
8125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8126 else
8127 lt_cv_sys_max_cmd_len=32768
8128 fi
8129 ;;
8130 *)
8131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8132 if test -n "$lt_cv_sys_max_cmd_len" && \
8133 test undefined != "$lt_cv_sys_max_cmd_len"; then
8134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8136 else
8137 # Make teststring a little bigger before we do anything with it.
8138 # a 1K string should be a reasonable start.
8139 for i in 1 2 3 4 5 6 7 8; do
8140 teststring=$teststring$teststring
8141 done
8142 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8143 # If test is not a shell built-in, we'll probably end up computing a
8144 # maximum length that is only half of the actual maximum length, but
8145 # we can't tell.
8146 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8147 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8148 test 17 != "$i" # 1/2 MB should be enough
8149 do
8150 i=`expr $i + 1`
8151 teststring=$teststring$teststring
8152 done
8153 # Only check the string length outside the loop.
8154 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8155 teststring=
8156 # Add a significant safety factor because C++ compilers can tack on
8157 # massive amounts of additional arguments before passing them to the
8158 # linker. It appears as though 1/2 is a usable value.
8159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8160 fi
8161 ;;
8162 esac
8163
8164fi
8165
8166if test -n "$lt_cv_sys_max_cmd_len"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8168$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8169else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8171$as_echo "none" >&6; }
8172fi
8173max_cmd_len=$lt_cv_sys_max_cmd_len
8174
8175
8176
8177
8178
8179
8180: ${CP="cp -f"}
8181: ${MV="mv -f"}
8182: ${RM="rm -f"}
8183
8184if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8185 lt_unset=unset
8186else
8187 lt_unset=false
8188fi
8189
8190
8191
8192
8193
8194# test EBCDIC or ASCII
8195case `echo X|tr X '\101'` in
8196 A) # ASCII based system
8197 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8198 lt_SP2NL='tr \040 \012'
8199 lt_NL2SP='tr \015\012 \040\040'
8200 ;;
8201 *) # EBCDIC based system
8202 lt_SP2NL='tr \100 \n'
8203 lt_NL2SP='tr \r\n \100\100'
8204 ;;
8205esac
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8216$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8217if ${lt_cv_to_host_file_cmd+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219else
8220 case $host in
8221 *-*-mingw* )
8222 case $build in
8223 *-*-mingw* ) # actually msys
8224 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8225 ;;
8226 *-*-cygwin* )
8227 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8228 ;;
8229 * ) # otherwise, assume *nix
8230 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8231 ;;
8232 esac
8233 ;;
8234 *-*-cygwin* )
8235 case $build in
8236 *-*-mingw* ) # actually msys
8237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8238 ;;
8239 *-*-cygwin* )
8240 lt_cv_to_host_file_cmd=func_convert_file_noop
8241 ;;
8242 * ) # otherwise, assume *nix
8243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8244 ;;
8245 esac
8246 ;;
8247 * ) # unhandled hosts (and "normal" native builds)
8248 lt_cv_to_host_file_cmd=func_convert_file_noop
8249 ;;
8250esac
8251
8252fi
8253
8254to_host_file_cmd=$lt_cv_to_host_file_cmd
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8256$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8257
8258
8259
8260
8261
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8263$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8264if ${lt_cv_to_tool_file_cmd+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266else
8267 #assume ordinary cross tools, or native build.
8268lt_cv_to_tool_file_cmd=func_convert_file_noop
8269case $host in
8270 *-*-mingw* )
8271 case $build in
8272 *-*-mingw* ) # actually msys
8273 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8274 ;;
8275 esac
8276 ;;
8277esac
8278
8279fi
8280
8281to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8283$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8284
8285
8286
8287
8288
8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8290$as_echo_n "checking for $LD option to reload object files... " >&6; }
8291if ${lt_cv_ld_reload_flag+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293else
8294 lt_cv_ld_reload_flag='-r'
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8297$as_echo "$lt_cv_ld_reload_flag" >&6; }
8298reload_flag=$lt_cv_ld_reload_flag
8299case $reload_flag in
8300"" | " "*) ;;
8301*) reload_flag=" $reload_flag" ;;
8302esac
8303reload_cmds='$LD$reload_flag -o $output$reload_objs'
8304case $host_os in
8305 cygwin* | mingw* | pw32* | cegcc*)
8306 if test yes != "$GCC"; then
8307 reload_cmds=false
8308 fi
8309 ;;
8310 darwin*)
8311 if test yes = "$GCC"; then
8312 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8313 else
8314 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8315 fi
8316 ;;
8317esac
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8329set dummy ${ac_tool_prefix}objdump; ac_word=$2
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331$as_echo_n "checking for $ac_word... " >&6; }
8332if ${ac_cv_prog_OBJDUMP+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334else
8335 if test -n "$OBJDUMP"; then
8336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8337else
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349done
8350 done
8351IFS=$as_save_IFS
8352
8353fi
8354fi
8355OBJDUMP=$ac_cv_prog_OBJDUMP
8356if test -n "$OBJDUMP"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8358$as_echo "$OBJDUMP" >&6; }
8359else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361$as_echo "no" >&6; }
8362fi
8363
8364
8365fi
8366if test -z "$ac_cv_prog_OBJDUMP"; then
8367 ac_ct_OBJDUMP=$OBJDUMP
8368 # Extract the first word of "objdump", so it can be a program name with args.
8369set dummy objdump; ac_word=$2
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371$as_echo_n "checking for $ac_word... " >&6; }
8372if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374else
8375 if test -n "$ac_ct_OBJDUMP"; then
8376 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389done
8390 done
8391IFS=$as_save_IFS
8392
8393fi
8394fi
8395ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8396if test -n "$ac_ct_OBJDUMP"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8398$as_echo "$ac_ct_OBJDUMP" >&6; }
8399else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401$as_echo "no" >&6; }
8402fi
8403
8404 if test "x$ac_ct_OBJDUMP" = x; then
8405 OBJDUMP="false"
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408yes:)
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411ac_tool_warned=yes ;;
8412esac
8413 OBJDUMP=$ac_ct_OBJDUMP
8414 fi
8415else
8416 OBJDUMP="$ac_cv_prog_OBJDUMP"
8417fi
8418
8419test -z "$OBJDUMP" && OBJDUMP=objdump
8420
8421
8422
8423
8424
8425
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8427$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8428if ${lt_cv_deplibs_check_method+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430else
8431 lt_cv_file_magic_cmd='$MAGIC_CMD'
8432lt_cv_file_magic_test_file=
8433lt_cv_deplibs_check_method='unknown'
8434# Need to set the preceding variable on all platforms that support
8435# interlibrary dependencies.
8436# 'none' -- dependencies not supported.
8437# 'unknown' -- same as none, but documents that we really don't know.
8438# 'pass_all' -- all dependencies passed with no checks.
8439# 'test_compile' -- check by making test program.
8440# 'file_magic [[regex]]' -- check by looking for files in library path
8441# that responds to the $file_magic_cmd with a given extended regex.
8442# If you have 'file' or equivalent on your system and you're not sure
8443# whether 'pass_all' will *always* work, you probably want this one.
8444
8445case $host_os in
8446aix[4-9]*)
8447 lt_cv_deplibs_check_method=pass_all
8448 ;;
8449
8450beos*)
8451 lt_cv_deplibs_check_method=pass_all
8452 ;;
8453
8454bsdi[45]*)
8455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8456 lt_cv_file_magic_cmd='/usr/bin/file -L'
8457 lt_cv_file_magic_test_file=/shlib/libc.so
8458 ;;
8459
8460cygwin*)
8461 # func_win32_libid is a shell function defined in ltmain.sh
8462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8463 lt_cv_file_magic_cmd='func_win32_libid'
8464 ;;
8465
8466mingw* | pw32*)
8467 # Base MSYS/MinGW do not provide the 'file' command needed by
8468 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8469 # unless we find 'file', for example because we are cross-compiling.
8470 if ( file / ) >/dev/null 2>&1; then
8471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8472 lt_cv_file_magic_cmd='func_win32_libid'
8473 else
8474 # Keep this pattern in sync with the one in func_win32_libid.
8475 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8476 lt_cv_file_magic_cmd='$OBJDUMP -f'
8477 fi
8478 ;;
8479
8480cegcc*)
8481 # use the weaker test based on 'objdump'. See mingw*.
8482 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8483 lt_cv_file_magic_cmd='$OBJDUMP -f'
8484 ;;
8485
8486darwin* | rhapsody*)
8487 lt_cv_deplibs_check_method=pass_all
8488 ;;
8489
8490freebsd* | dragonfly*)
8491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8492 case $host_cpu in
8493 i*86 )
8494 # Not sure whether the presence of OpenBSD here was a mistake.
8495 # Let's accept both of them until this is cleared up.
8496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8497 lt_cv_file_magic_cmd=/usr/bin/file
8498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8499 ;;
8500 esac
8501 else
8502 lt_cv_deplibs_check_method=pass_all
8503 fi
8504 ;;
8505
8506haiku*)
8507 lt_cv_deplibs_check_method=pass_all
8508 ;;
8509
8510hpux10.20* | hpux11*)
8511 lt_cv_file_magic_cmd=/usr/bin/file
8512 case $host_cpu in
8513 ia64*)
8514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8516 ;;
8517 hppa*64*)
8518 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]'
8519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8520 ;;
8521 *)
8522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8524 ;;
8525 esac
8526 ;;
8527
8528interix[3-9]*)
8529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8531 ;;
8532
8533irix5* | irix6* | nonstopux*)
8534 case $LD in
8535 *-32|*"-32 ") libmagic=32-bit;;
8536 *-n32|*"-n32 ") libmagic=N32;;
8537 *-64|*"-64 ") libmagic=64-bit;;
8538 *) libmagic=never-match;;
8539 esac
8540 lt_cv_deplibs_check_method=pass_all
8541 ;;
8542
8543# This must be glibc/ELF.
8544linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8545 lt_cv_deplibs_check_method=pass_all
8546 ;;
8547
8548netbsd* | netbsdelf*-gnu)
8549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8551 else
8552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8553 fi
8554 ;;
8555
8556newos6*)
8557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8558 lt_cv_file_magic_cmd=/usr/bin/file
8559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8560 ;;
8561
8562*nto* | *qnx*)
8563 lt_cv_deplibs_check_method=pass_all
8564 ;;
8565
8566openbsd* | bitrig*)
8567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8569 else
8570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8571 fi
8572 ;;
8573
8574osf3* | osf4* | osf5*)
8575 lt_cv_deplibs_check_method=pass_all
8576 ;;
8577
8578rdos*)
8579 lt_cv_deplibs_check_method=pass_all
8580 ;;
8581
8582solaris*)
8583 lt_cv_deplibs_check_method=pass_all
8584 ;;
8585
8586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8587 lt_cv_deplibs_check_method=pass_all
8588 ;;
8589
8590sysv4 | sysv4.3*)
8591 case $host_vendor in
8592 motorola)
8593 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]'
8594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8595 ;;
8596 ncr)
8597 lt_cv_deplibs_check_method=pass_all
8598 ;;
8599 sequent)
8600 lt_cv_file_magic_cmd='/bin/file'
8601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8602 ;;
8603 sni)
8604 lt_cv_file_magic_cmd='/bin/file'
8605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8606 lt_cv_file_magic_test_file=/lib/libc.so
8607 ;;
8608 siemens)
8609 lt_cv_deplibs_check_method=pass_all
8610 ;;
8611 pc)
8612 lt_cv_deplibs_check_method=pass_all
8613 ;;
8614 esac
8615 ;;
8616
8617tpf*)
8618 lt_cv_deplibs_check_method=pass_all
8619 ;;
8620os2*)
8621 lt_cv_deplibs_check_method=pass_all
8622 ;;
8623esac
8624
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8627$as_echo "$lt_cv_deplibs_check_method" >&6; }
8628
8629file_magic_glob=
8630want_nocaseglob=no
8631if test "$build" = "$host"; then
8632 case $host_os in
8633 mingw* | pw32*)
8634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8635 want_nocaseglob=yes
8636 else
8637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8638 fi
8639 ;;
8640 esac
8641fi
8642
8643file_magic_cmd=$lt_cv_file_magic_cmd
8644deplibs_check_method=$lt_cv_deplibs_check_method
8645test -z "$deplibs_check_method" && deplibs_check_method=unknown
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668if test -n "$ac_tool_prefix"; then
8669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8670set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672$as_echo_n "checking for $ac_word... " >&6; }
8673if ${ac_cv_prog_DLLTOOL+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675else
8676 if test -n "$DLLTOOL"; then
8677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691 done
8692IFS=$as_save_IFS
8693
8694fi
8695fi
8696DLLTOOL=$ac_cv_prog_DLLTOOL
8697if test -n "$DLLTOOL"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8699$as_echo "$DLLTOOL" >&6; }
8700else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705
8706fi
8707if test -z "$ac_cv_prog_DLLTOOL"; then
8708 ac_ct_DLLTOOL=$DLLTOOL
8709 # Extract the first word of "dlltool", so it can be a program name with args.
8710set dummy dlltool; ac_word=$2
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712$as_echo_n "checking for $ac_word... " >&6; }
8713if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715else
8716 if test -n "$ac_ct_DLLTOOL"; then
8717 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8718else
8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8729 fi
8730done
8731 done
8732IFS=$as_save_IFS
8733
8734fi
8735fi
8736ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8737if test -n "$ac_ct_DLLTOOL"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8739$as_echo "$ac_ct_DLLTOOL" >&6; }
8740else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
8743fi
8744
8745 if test "x$ac_ct_DLLTOOL" = x; then
8746 DLLTOOL="false"
8747 else
8748 case $cross_compiling:$ac_tool_warned in
8749yes:)
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752ac_tool_warned=yes ;;
8753esac
8754 DLLTOOL=$ac_ct_DLLTOOL
8755 fi
8756else
8757 DLLTOOL="$ac_cv_prog_DLLTOOL"
8758fi
8759
8760test -z "$DLLTOOL" && DLLTOOL=dlltool
8761
8762
8763
8764
8765
8766
8767
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8769$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8770if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772else
8773 lt_cv_sharedlib_from_linklib_cmd='unknown'
8774
8775case $host_os in
8776cygwin* | mingw* | pw32* | cegcc*)
8777 # two different shell functions defined in ltmain.sh;
8778 # decide which one to use based on capabilities of $DLLTOOL
8779 case `$DLLTOOL --help 2>&1` in
8780 *--identify-strict*)
8781 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8782 ;;
8783 *)
8784 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8785 ;;
8786 esac
8787 ;;
8788*)
8789 # fallback: assume linklib IS sharedlib
8790 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8791 ;;
8792esac
8793
8794fi
8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8796$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8797sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8798test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8799
8800
8801
8802
8803
8804
8805
8806if test -n "$ac_tool_prefix"; then
8807 for ac_prog in ar
8808 do
8809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812$as_echo_n "checking for $ac_word... " >&6; }
8813if ${ac_cv_prog_AR+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 if test -n "$AR"; then
8817 ac_cv_prog_AR="$AR" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830done
8831 done
8832IFS=$as_save_IFS
8833
8834fi
8835fi
8836AR=$ac_cv_prog_AR
8837if test -n "$AR"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8839$as_echo "$AR" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846 test -n "$AR" && break
8847 done
8848fi
8849if test -z "$AR"; then
8850 ac_ct_AR=$AR
8851 for ac_prog in ar
8852do
8853 # Extract the first word of "$ac_prog", so it can be a program name with args.
8854set dummy $ac_prog; ac_word=$2
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856$as_echo_n "checking for $ac_word... " >&6; }
8857if ${ac_cv_prog_ac_ct_AR+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859else
8860 if test -n "$ac_ct_AR"; then
8861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8862else
8863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864for as_dir in $PATH
8865do
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_prog_ac_ct_AR="$ac_prog"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 break 2
8873 fi
8874done
8875 done
8876IFS=$as_save_IFS
8877
8878fi
8879fi
8880ac_ct_AR=$ac_cv_prog_ac_ct_AR
8881if test -n "$ac_ct_AR"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8883$as_echo "$ac_ct_AR" >&6; }
8884else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886$as_echo "no" >&6; }
8887fi
8888
8889
8890 test -n "$ac_ct_AR" && break
8891done
8892
8893 if test "x$ac_ct_AR" = x; then
8894 AR="false"
8895 else
8896 case $cross_compiling:$ac_tool_warned in
8897yes:)
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8900ac_tool_warned=yes ;;
8901esac
8902 AR=$ac_ct_AR
8903 fi
8904fi
8905
8906: ${AR=ar}
8907: ${AR_FLAGS=cru}
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8920$as_echo_n "checking for archiver @FILE support... " >&6; }
8921if ${lt_cv_ar_at_file+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923else
8924 lt_cv_ar_at_file=no
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926/* end confdefs.h. */
8927
8928int main (void)
8929{
8930
8931 ;
8932 return 0;
8933}
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"; then :
8936 echo conftest.$ac_objext > conftest.lst
8937 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8939 (eval $lt_ar_try) 2>&5
8940 ac_status=$?
8941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942 test $ac_status = 0; }
8943 if test 0 -eq "$ac_status"; then
8944 # Ensure the archiver fails upon bogus file names.
8945 rm -f conftest.$ac_objext libconftest.a
8946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8947 (eval $lt_ar_try) 2>&5
8948 ac_status=$?
8949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8950 test $ac_status = 0; }
8951 if test 0 -ne "$ac_status"; then
8952 lt_cv_ar_at_file=@
8953 fi
8954 fi
8955 rm -f conftest.* libconftest.a
8956
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8962$as_echo "$lt_cv_ar_at_file" >&6; }
8963
8964if test no = "$lt_cv_ar_at_file"; then
8965 archiver_list_spec=
8966else
8967 archiver_list_spec=$lt_cv_ar_at_file
8968fi
8969
8970
8971
8972
8973
8974
8975
8976if test -n "$ac_tool_prefix"; then
8977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8978set dummy ${ac_tool_prefix}strip; ac_word=$2
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
8981if ${ac_cv_prog_STRIP+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983else
8984 if test -n "$STRIP"; then
8985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8997 fi
8998done
8999 done
9000IFS=$as_save_IFS
9001
9002fi
9003fi
9004STRIP=$ac_cv_prog_STRIP
9005if test -n "$STRIP"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9007$as_echo "$STRIP" >&6; }
9008else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9011fi
9012
9013
9014fi
9015if test -z "$ac_cv_prog_STRIP"; then
9016 ac_ct_STRIP=$STRIP
9017 # Extract the first word of "strip", so it can be a program name with args.
9018set dummy strip; ac_word=$2
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020$as_echo_n "checking for $ac_word... " >&6; }
9021if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023else
9024 if test -n "$ac_ct_STRIP"; then
9025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_ac_ct_STRIP="strip"
9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038done
9039 done
9040IFS=$as_save_IFS
9041
9042fi
9043fi
9044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9045if test -n "$ac_ct_STRIP"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9047$as_echo "$ac_ct_STRIP" >&6; }
9048else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050$as_echo "no" >&6; }
9051fi
9052
9053 if test "x$ac_ct_STRIP" = x; then
9054 STRIP=":"
9055 else
9056 case $cross_compiling:$ac_tool_warned in
9057yes:)
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060ac_tool_warned=yes ;;
9061esac
9062 STRIP=$ac_ct_STRIP
9063 fi
9064else
9065 STRIP="$ac_cv_prog_STRIP"
9066fi
9067
9068test -z "$STRIP" && STRIP=:
9069
9070
9071
9072
9073
9074
9075if test -n "$ac_tool_prefix"; then
9076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079$as_echo_n "checking for $ac_word... " >&6; }
9080if ${ac_cv_prog_RANLIB+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082else
9083 if test -n "$RANLIB"; then
9084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097done
9098 done
9099IFS=$as_save_IFS
9100
9101fi
9102fi
9103RANLIB=$ac_cv_prog_RANLIB
9104if test -n "$RANLIB"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9106$as_echo "$RANLIB" >&6; }
9107else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
9110fi
9111
9112
9113fi
9114if test -z "$ac_cv_prog_RANLIB"; then
9115 ac_ct_RANLIB=$RANLIB
9116 # Extract the first word of "ranlib", so it can be a program name with args.
9117set dummy ranlib; ac_word=$2
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119$as_echo_n "checking for $ac_word... " >&6; }
9120if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122else
9123 if test -n "$ac_ct_RANLIB"; then
9124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9125else
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_ac_ct_RANLIB="ranlib"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138 done
9139IFS=$as_save_IFS
9140
9141fi
9142fi
9143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9144if test -n "$ac_ct_RANLIB"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9146$as_echo "$ac_ct_RANLIB" >&6; }
9147else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149$as_echo "no" >&6; }
9150fi
9151
9152 if test "x$ac_ct_RANLIB" = x; then
9153 RANLIB=":"
9154 else
9155 case $cross_compiling:$ac_tool_warned in
9156yes:)
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9159ac_tool_warned=yes ;;
9160esac
9161 RANLIB=$ac_ct_RANLIB
9162 fi
9163else
9164 RANLIB="$ac_cv_prog_RANLIB"
9165fi
9166
9167test -z "$RANLIB" && RANLIB=:
9168
9169
9170
9171
9172
9173
9174# Determine commands to create old-style static archives.
9175old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9176old_postinstall_cmds='chmod 644 $oldlib'
9177old_postuninstall_cmds=
9178
9179if test -n "$RANLIB"; then
9180 case $host_os in
9181 bitrig* | openbsd*)
9182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9183 ;;
9184 *)
9185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9186 ;;
9187 esac
9188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9189fi
9190
9191case $host_os in
9192 darwin*)
9193 lock_old_archive_extraction=yes ;;
9194 *)
9195 lock_old_archive_extraction=no ;;
9196esac
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
9232
9233
9234
9235
9236# If no C compiler was specified, use CC.
9237LTCC=${LTCC-"$CC"}
9238
9239# If no C compiler flags were specified, use CFLAGS.
9240LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9241
9242# Allow CC to be a program name with arguments.
9243compiler=$CC
9244
9245
9246# Check for command to grab the raw symbol name followed by C symbol from nm.
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9248$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9249if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9250 $as_echo_n "(cached) " >&6
9251else
9252
9253# These are sane defaults that work on at least a few old systems.
9254# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9255
9256# Character class describing NM global symbol codes.
9257symcode='[BCDEGRST]'
9258
9259# Regexp to match symbols that can be accessed directly from C.
9260sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9261
9262# Define system-specific variables.
9263case $host_os in
9264aix*)
9265 symcode='[BCDT]'
9266 ;;
9267cygwin* | mingw* | pw32* | cegcc*)
9268 symcode='[ABCDGISTW]'
9269 ;;
9270hpux*)
9271 if test ia64 = "$host_cpu"; then
9272 symcode='[ABCDEGRST]'
9273 fi
9274 ;;
9275irix* | nonstopux*)
9276 symcode='[BCDEGRST]'
9277 ;;
9278osf*)
9279 symcode='[BCDEGQRST]'
9280 ;;
9281solaris*)
9282 symcode='[BDRT]'
9283 ;;
9284sco3.2v5*)
9285 symcode='[DT]'
9286 ;;
9287sysv4.2uw2*)
9288 symcode='[DT]'
9289 ;;
9290sysv5* | sco5v6* | unixware* | OpenUNIX*)
9291 symcode='[ABDT]'
9292 ;;
9293sysv4)
9294 symcode='[DFNSTU]'
9295 ;;
9296esac
9297
9298# If we're using GNU nm, then use its standard symbol codes.
9299case `$NM -V 2>&1` in
9300*GNU* | *'with BFD'*)
9301 symcode='[ABCDGIRSTW]' ;;
9302esac
9303
9304if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9305 # Gets list of data symbols to import.
9306 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9307 # Adjust the below global symbol transforms to fixup imported variables.
9308 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9309 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9310 lt_c_name_lib_hook="\
9311 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9312 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9313else
9314 # Disable hooks by default.
9315 lt_cv_sys_global_symbol_to_import=
9316 lt_cdecl_hook=
9317 lt_c_name_hook=
9318 lt_c_name_lib_hook=
9319fi
9320
9321# Transform an extracted symbol line into a proper C declaration.
9322# Some systems (esp. on ia64) link data and code symbols differently,
9323# so use this general approach.
9324lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9325$lt_cdecl_hook\
9326" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9327" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9328
9329# Transform an extracted symbol line into symbol name and symbol address
9330lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9331$lt_c_name_hook\
9332" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9333" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9334
9335# Transform an extracted symbol line into symbol name with lib prefix and
9336# symbol address.
9337lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9338$lt_c_name_lib_hook\
9339" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9340" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9341" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9342
9343# Handle CRLF in mingw tool chain
9344opt_cr=
9345case $build_os in
9346mingw*)
9347 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9348 ;;
9349esac
9350
9351# Try without a prefix underscore, then with it.
9352for ac_symprfx in "" "_"; do
9353
9354 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9355 symxfrm="\\1 $ac_symprfx\\2 \\2"
9356
9357 # Write the raw and C identifiers.
9358 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9359 # Fake it for dumpbin and say T for any non-static function,
9360 # D for any global variable and I for any imported variable.
9361 # Also find C++ and __fastcall symbols from MSVC++,
9362 # which start with @ or ?.
9363 lt_cv_sys_global_symbol_pipe="$AWK '"\
9364" {last_section=section; section=\$ 3};"\
9365" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9366" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9367" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9368" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9369" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9370" \$ 0!~/External *\|/{next};"\
9371" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9372" {if(hide[section]) next};"\
9373" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9374" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9375" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9376" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9377" ' prfx=^$ac_symprfx"
9378 else
9379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9380 fi
9381 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9382
9383 # Check to see that the pipe works correctly.
9384 pipe_works=no
9385
9386 rm -f conftest*
9387 cat > conftest.$ac_ext <<_LT_EOF
9388#ifdef __cplusplus
9389extern "C" {
9390#endif
9391char nm_test_var;
9392void nm_test_func(void);
9393void nm_test_func(void){}
9394#ifdef __cplusplus
9395}
9396#endif
9397int main(){nm_test_var='a';nm_test_func();return(0);}
9398_LT_EOF
9399
9400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9401 (eval $ac_compile) 2>&5
9402 ac_status=$?
9403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9404 test $ac_status = 0; }; then
9405 # Now try to grab the symbols.
9406 nlist=conftest.nm
9407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9408 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9409 ac_status=$?
9410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411 test $ac_status = 0; } && test -s "$nlist"; then
9412 # Try sorting and uniquifying the output.
9413 if sort "$nlist" | uniq > "$nlist"T; then
9414 mv -f "$nlist"T "$nlist"
9415 else
9416 rm -f "$nlist"T
9417 fi
9418
9419 # Make sure that we snagged all the symbols we need.
9420 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9421 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9422 cat <<_LT_EOF > conftest.$ac_ext
9423/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9424#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9425/* DATA imports from DLLs on WIN32 can't be const, because runtime
9426 relocations are performed -- see ld's documentation on pseudo-relocs. */
9427# define LT_DLSYM_CONST
9428#elif defined __osf__
9429/* This system does not cope well with relocations in const data. */
9430# define LT_DLSYM_CONST
9431#else
9432# define LT_DLSYM_CONST const
9433#endif
9434
9435#ifdef __cplusplus
9436extern "C" {
9437#endif
9438
9439_LT_EOF
9440 # Now generate the symbol file.
9441 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9442
9443 cat <<_LT_EOF >> conftest.$ac_ext
9444
9445/* The mapping between symbol names and symbols. */
9446LT_DLSYM_CONST struct {
9447 const char *name;
9448 void *address;
9449}
9450lt__PROGRAM__LTX_preloaded_symbols[] =
9451{
9452 { "@PROGRAM@", (void *) 0 },
9453_LT_EOF
9454 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9455 cat <<\_LT_EOF >> conftest.$ac_ext
9456 {0, (void *) 0}
9457};
9458
9459/* This works around a problem in FreeBSD linker */
9460#ifdef FREEBSD_WORKAROUND
9461static const void *lt_preloaded_setup() {
9462 return lt__PROGRAM__LTX_preloaded_symbols;
9463}
9464#endif
9465
9466#ifdef __cplusplus
9467}
9468#endif
9469_LT_EOF
9470 # Now try linking the two files.
9471 mv -f conftest.$ac_objext conftstm.$ac_objext
9472 lt_globsym_save_LIBS=$LIBS
9473 lt_globsym_save_CFLAGS=$CFLAGS
9474 LIBS=conftstm.$ac_objext
9475 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9477 (eval $ac_link) 2>&5
9478 ac_status=$?
9479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9480 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9481 pipe_works=yes
9482 fi
9483 LIBS=$lt_globsym_save_LIBS
9484 CFLAGS=$lt_globsym_save_CFLAGS
9485 else
9486 echo "cannot find nm_test_func in $nlist" >&5
9487 fi
9488 else
9489 echo "cannot find nm_test_var in $nlist" >&5
9490 fi
9491 else
9492 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9493 fi
9494 else
9495 echo "$progname: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 fi
9498 rm -rf conftest* conftst*
9499
9500 # Do not use the global_symbol_pipe unless it works.
9501 if test yes = "$pipe_works"; then
9502 break
9503 else
9504 lt_cv_sys_global_symbol_pipe=
9505 fi
9506done
9507
9508fi
9509
9510if test -z "$lt_cv_sys_global_symbol_pipe"; then
9511 lt_cv_sys_global_symbol_to_cdecl=
9512fi
9513if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9515$as_echo "failed" >&6; }
9516else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9518$as_echo "ok" >&6; }
9519fi
9520
9521# Response file support.
9522if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9523 nm_file_list_spec='@'
9524elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9525 nm_file_list_spec='@'
9526fi
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
9560
9561
9562
9563
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9565$as_echo_n "checking for sysroot... " >&6; }
9566
9567# Check whether --with-sysroot was given.
9568if test "${with_sysroot+set}" = set; then :
9569 withval=$with_sysroot;
9570else
9571 with_sysroot=no
9572fi
9573
9574
9575lt_sysroot=
9576case $with_sysroot in #(
9577 yes)
9578 if test yes = "$GCC"; then
9579 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9580 fi
9581 ;; #(
9582 /*)
9583 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9584 ;; #(
9585 no|'')
9586 ;; #(
9587 *)
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9589$as_echo "$with_sysroot" >&6; }
9590 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9591 ;;
9592esac
9593
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9595$as_echo "${lt_sysroot:-no}" >&6; }
9596
9597
9598
9599
9600
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9602$as_echo_n "checking for a working dd... " >&6; }
9603if ${ac_cv_path_lt_DD+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605else
9606 printf 0123456789abcdef0123456789abcdef >conftest.i
9607cat conftest.i conftest.i >conftest2.i
9608: ${lt_DD:=$DD}
9609if test -z "$lt_DD"; then
9610 ac_path_lt_DD_found=false
9611 # Loop through the user's path and test for each of PROGNAME-LIST
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_prog in dd; do
9618 for ac_exec_ext in '' $ac_executable_extensions; do
9619 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9620 as_fn_executable_p "$ac_path_lt_DD" || continue
9621if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9622 cmp -s conftest.i conftest.out \
9623 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9624fi
9625 $ac_path_lt_DD_found && break 3
9626 done
9627 done
9628 done
9629IFS=$as_save_IFS
9630 if test -z "$ac_cv_path_lt_DD"; then
9631 :
9632 fi
9633else
9634 ac_cv_path_lt_DD=$lt_DD
9635fi
9636
9637rm -f conftest.i conftest2.i conftest.out
9638fi
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9640$as_echo "$ac_cv_path_lt_DD" >&6; }
9641
9642
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9644$as_echo_n "checking how to truncate binary pipes... " >&6; }
9645if ${lt_cv_truncate_bin+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647else
9648 printf 0123456789abcdef0123456789abcdef >conftest.i
9649cat conftest.i conftest.i >conftest2.i
9650lt_cv_truncate_bin=
9651if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9652 cmp -s conftest.i conftest.out \
9653 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9654fi
9655rm -f conftest.i conftest2.i conftest.out
9656test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9657fi
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9659$as_echo "$lt_cv_truncate_bin" >&6; }
9660
9661
9662
9663
9664
9665
9666
9667# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9668func_cc_basename ()
9669{
9670 for cc_temp in $*""; do
9671 case $cc_temp in
9672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9674 \-*) ;;
9675 *) break;;
9676 esac
9677 done
9678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9679}
9680
9681# Check whether --enable-libtool-lock was given.
9682if test "${enable_libtool_lock+set}" = set; then :
9683 enableval=$enable_libtool_lock;
9684fi
9685
9686test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9687
9688# Some flags need to be propagated to the compiler or linker for good
9689# libtool support.
9690case $host in
9691ia64-*-hpux*)
9692 # Find out what ABI is being produced by ac_compile, and set mode
9693 # options accordingly.
9694 echo 'int i;' > conftest.$ac_ext
9695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9696 (eval $ac_compile) 2>&5
9697 ac_status=$?
9698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9699 test $ac_status = 0; }; then
9700 case `/usr/bin/file conftest.$ac_objext` in
9701 *ELF-32*)
9702 HPUX_IA64_MODE=32
9703 ;;
9704 *ELF-64*)
9705 HPUX_IA64_MODE=64
9706 ;;
9707 esac
9708 fi
9709 rm -rf conftest*
9710 ;;
9711*-*-irix6*)
9712 # Find out what ABI is being produced by ac_compile, and set linker
9713 # options accordingly.
9714 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9716 (eval $ac_compile) 2>&5
9717 ac_status=$?
9718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9719 test $ac_status = 0; }; then
9720 if test yes = "$lt_cv_prog_gnu_ld"; then
9721 case `/usr/bin/file conftest.$ac_objext` in
9722 *32-bit*)
9723 LD="${LD-ld} -melf32bsmip"
9724 ;;
9725 *N32*)
9726 LD="${LD-ld} -melf32bmipn32"
9727 ;;
9728 *64-bit*)
9729 LD="${LD-ld} -melf64bmip"
9730 ;;
9731 esac
9732 else
9733 case `/usr/bin/file conftest.$ac_objext` in
9734 *32-bit*)
9735 LD="${LD-ld} -32"
9736 ;;
9737 *N32*)
9738 LD="${LD-ld} -n32"
9739 ;;
9740 *64-bit*)
9741 LD="${LD-ld} -64"
9742 ;;
9743 esac
9744 fi
9745 fi
9746 rm -rf conftest*
9747 ;;
9748
9749mips64*-*linux*)
9750 # Find out what ABI is being produced by ac_compile, and set linker
9751 # options accordingly.
9752 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9754 (eval $ac_compile) 2>&5
9755 ac_status=$?
9756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9757 test $ac_status = 0; }; then
9758 emul=elf
9759 case `/usr/bin/file conftest.$ac_objext` in
9760 *32-bit*)
9761 emul="${emul}32"
9762 ;;
9763 *64-bit*)
9764 emul="${emul}64"
9765 ;;
9766 esac
9767 case `/usr/bin/file conftest.$ac_objext` in
9768 *MSB*)
9769 emul="${emul}btsmip"
9770 ;;
9771 *LSB*)
9772 emul="${emul}ltsmip"
9773 ;;
9774 esac
9775 case `/usr/bin/file conftest.$ac_objext` in
9776 *N32*)
9777 emul="${emul}n32"
9778 ;;
9779 esac
9780 LD="${LD-ld} -m $emul"
9781 fi
9782 rm -rf conftest*
9783 ;;
9784
9785x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9786s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9787 # Find out what ABI is being produced by ac_compile, and set linker
9788 # options accordingly. Note that the listed cases only cover the
9789 # situations where additional linker options are needed (such as when
9790 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9791 # vice versa); the common cases where no linker options are needed do
9792 # not appear in the list.
9793 echo 'int i;' > conftest.$ac_ext
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9796 ac_status=$?
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; }; then
9799 case `/usr/bin/file conftest.o` in
9800 *32-bit*)
9801 case $host in
9802 x86_64-*kfreebsd*-gnu)
9803 LD="${LD-ld} -m elf_i386_fbsd"
9804 ;;
9805 x86_64-*linux*)
9806 case `/usr/bin/file conftest.o` in
9807 *x86-64*)
9808 LD="${LD-ld} -m elf32_x86_64"
9809 ;;
9810 *)
9811 LD="${LD-ld} -m elf_i386"
9812 ;;
9813 esac
9814 ;;
9815 powerpc64le-*linux*)
9816 LD="${LD-ld} -m elf32lppclinux"
9817 ;;
9818 powerpc64-*linux*)
9819 LD="${LD-ld} -m elf32ppclinux"
9820 ;;
9821 s390x-*linux*)
9822 LD="${LD-ld} -m elf_s390"
9823 ;;
9824 sparc64-*linux*)
9825 LD="${LD-ld} -m elf32_sparc"
9826 ;;
9827 esac
9828 ;;
9829 *64-bit*)
9830 case $host in
9831 x86_64-*kfreebsd*-gnu)
9832 LD="${LD-ld} -m elf_x86_64_fbsd"
9833 ;;
9834 x86_64-*linux*)
9835 LD="${LD-ld} -m elf_x86_64"
9836 ;;
9837 powerpcle-*linux*)
9838 LD="${LD-ld} -m elf64lppc"
9839 ;;
9840 powerpc-*linux*)
9841 LD="${LD-ld} -m elf64ppc"
9842 ;;
9843 s390*-*linux*|s390*-*tpf*)
9844 LD="${LD-ld} -m elf64_s390"
9845 ;;
9846 sparc*-*linux*)
9847 LD="${LD-ld} -m elf64_sparc"
9848 ;;
9849 esac
9850 ;;
9851 esac
9852 fi
9853 rm -rf conftest*
9854 ;;
9855
9856*-*-sco3.2v5*)
9857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9858 SAVE_CFLAGS=$CFLAGS
9859 CFLAGS="$CFLAGS -belf"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9861$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9862if ${lt_cv_cc_needs_belf+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864else
9865 ac_ext=c
9866ac_cpp='$CPP $CPPFLAGS'
9867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9869ac_compiler_gnu=$ac_cv_c_compiler_gnu
9870
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h. */
9873
9874int main (void)
9875{
9876
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881if ac_fn_c_try_link "$LINENO"; then :
9882 lt_cv_cc_needs_belf=yes
9883else
9884 lt_cv_cc_needs_belf=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 ac_ext=c
9889ac_cpp='$CPP $CPPFLAGS'
9890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892ac_compiler_gnu=$ac_cv_c_compiler_gnu
9893
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9896$as_echo "$lt_cv_cc_needs_belf" >&6; }
9897 if test yes != "$lt_cv_cc_needs_belf"; then
9898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9899 CFLAGS=$SAVE_CFLAGS
9900 fi
9901 ;;
9902*-*solaris*)
9903 # Find out what ABI is being produced by ac_compile, and set linker
9904 # options accordingly.
9905 echo 'int i;' > conftest.$ac_ext
9906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9907 (eval $ac_compile) 2>&5
9908 ac_status=$?
9909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910 test $ac_status = 0; }; then
9911 case `/usr/bin/file conftest.o` in
9912 *64-bit*)
9913 case $lt_cv_prog_gnu_ld in
9914 yes*)
9915 case $host in
9916 i?86-*-solaris*|x86_64-*-solaris*)
9917 LD="${LD-ld} -m elf_x86_64"
9918 ;;
9919 sparc*-*-solaris*)
9920 LD="${LD-ld} -m elf64_sparc"
9921 ;;
9922 esac
9923 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9924 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9925 LD=${LD-ld}_sol2
9926 fi
9927 ;;
9928 *)
9929 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9930 LD="${LD-ld} -64"
9931 fi
9932 ;;
9933 esac
9934 ;;
9935 esac
9936 fi
9937 rm -rf conftest*
9938 ;;
9939esac
9940
9941need_locks=$enable_libtool_lock
9942
9943if test -n "$ac_tool_prefix"; then
9944 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9945set dummy ${ac_tool_prefix}mt; ac_word=$2
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947$as_echo_n "checking for $ac_word... " >&6; }
9948if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950else
9951 if test -n "$MANIFEST_TOOL"; then
9952 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9953else
9954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955for as_dir in $PATH
9956do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965done
9966 done
9967IFS=$as_save_IFS
9968
9969fi
9970fi
9971MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9972if test -n "$MANIFEST_TOOL"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9974$as_echo "$MANIFEST_TOOL" >&6; }
9975else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
9978fi
9979
9980
9981fi
9982if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9983 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9984 # Extract the first word of "mt", so it can be a program name with args.
9985set dummy mt; ac_word=$2
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987$as_echo_n "checking for $ac_word... " >&6; }
9988if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990else
9991 if test -n "$ac_ct_MANIFEST_TOOL"; then
9992 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9993else
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005done
10006 done
10007IFS=$as_save_IFS
10008
10009fi
10010fi
10011ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10012if test -n "$ac_ct_MANIFEST_TOOL"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10014$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10015else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
10018fi
10019
10020 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10021 MANIFEST_TOOL=":"
10022 else
10023 case $cross_compiling:$ac_tool_warned in
10024yes:)
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10027ac_tool_warned=yes ;;
10028esac
10029 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10030 fi
10031else
10032 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10033fi
10034
10035test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10037$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10038if ${lt_cv_path_mainfest_tool+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040else
10041 lt_cv_path_mainfest_tool=no
10042 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10043 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10044 cat conftest.err >&5
10045 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10046 lt_cv_path_mainfest_tool=yes
10047 fi
10048 rm -f conftest*
10049fi
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10051$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10052if test yes != "$lt_cv_path_mainfest_tool"; then
10053 MANIFEST_TOOL=:
10054fi
10055
10056
10057
10058
10059
10060
10061 case $host_os in
10062 rhapsody* | darwin*)
10063 if test -n "$ac_tool_prefix"; then
10064 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10065set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067$as_echo_n "checking for $ac_word... " >&6; }
10068if ${ac_cv_prog_DSYMUTIL+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070else
10071 if test -n "$DSYMUTIL"; then
10072 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10073else
10074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $PATH
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085done
10086 done
10087IFS=$as_save_IFS
10088
10089fi
10090fi
10091DSYMUTIL=$ac_cv_prog_DSYMUTIL
10092if test -n "$DSYMUTIL"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10094$as_echo "$DSYMUTIL" >&6; }
10095else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097$as_echo "no" >&6; }
10098fi
10099
10100
10101fi
10102if test -z "$ac_cv_prog_DSYMUTIL"; then
10103 ac_ct_DSYMUTIL=$DSYMUTIL
10104 # Extract the first word of "dsymutil", so it can be a program name with args.
10105set dummy dsymutil; ac_word=$2
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107$as_echo_n "checking for $ac_word... " >&6; }
10108if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110else
10111 if test -n "$ac_ct_DSYMUTIL"; then
10112 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10113else
10114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115for as_dir in $PATH
10116do
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 break 2
10124 fi
10125done
10126 done
10127IFS=$as_save_IFS
10128
10129fi
10130fi
10131ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10132if test -n "$ac_ct_DSYMUTIL"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10134$as_echo "$ac_ct_DSYMUTIL" >&6; }
10135else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
10138fi
10139
10140 if test "x$ac_ct_DSYMUTIL" = x; then
10141 DSYMUTIL=":"
10142 else
10143 case $cross_compiling:$ac_tool_warned in
10144yes:)
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10147ac_tool_warned=yes ;;
10148esac
10149 DSYMUTIL=$ac_ct_DSYMUTIL
10150 fi
10151else
10152 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10153fi
10154
10155 if test -n "$ac_tool_prefix"; then
10156 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10157set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159$as_echo_n "checking for $ac_word... " >&6; }
10160if ${ac_cv_prog_NMEDIT+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162else
10163 if test -n "$NMEDIT"; then
10164 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10165else
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177done
10178 done
10179IFS=$as_save_IFS
10180
10181fi
10182fi
10183NMEDIT=$ac_cv_prog_NMEDIT
10184if test -n "$NMEDIT"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10186$as_echo "$NMEDIT" >&6; }
10187else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189$as_echo "no" >&6; }
10190fi
10191
10192
10193fi
10194if test -z "$ac_cv_prog_NMEDIT"; then
10195 ac_ct_NMEDIT=$NMEDIT
10196 # Extract the first word of "nmedit", so it can be a program name with args.
10197set dummy nmedit; ac_word=$2
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199$as_echo_n "checking for $ac_word... " >&6; }
10200if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10201 $as_echo_n "(cached) " >&6
10202else
10203 if test -n "$ac_ct_NMEDIT"; then
10204 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10205else
10206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207for as_dir in $PATH
10208do
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10213 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10216 fi
10217done
10218 done
10219IFS=$as_save_IFS
10220
10221fi
10222fi
10223ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10224if test -n "$ac_ct_NMEDIT"; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10226$as_echo "$ac_ct_NMEDIT" >&6; }
10227else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229$as_echo "no" >&6; }
10230fi
10231
10232 if test "x$ac_ct_NMEDIT" = x; then
10233 NMEDIT=":"
10234 else
10235 case $cross_compiling:$ac_tool_warned in
10236yes:)
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10239ac_tool_warned=yes ;;
10240esac
10241 NMEDIT=$ac_ct_NMEDIT
10242 fi
10243else
10244 NMEDIT="$ac_cv_prog_NMEDIT"
10245fi
10246
10247 if test -n "$ac_tool_prefix"; then
10248 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10249set dummy ${ac_tool_prefix}lipo; ac_word=$2
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251$as_echo_n "checking for $ac_word... " >&6; }
10252if ${ac_cv_prog_LIPO+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 if test -n "$LIPO"; then
10256 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10257else
10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
10270 done
10271IFS=$as_save_IFS
10272
10273fi
10274fi
10275LIPO=$ac_cv_prog_LIPO
10276if test -n "$LIPO"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10278$as_echo "$LIPO" >&6; }
10279else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
10282fi
10283
10284
10285fi
10286if test -z "$ac_cv_prog_LIPO"; then
10287 ac_ct_LIPO=$LIPO
10288 # Extract the first word of "lipo", so it can be a program name with args.
10289set dummy lipo; ac_word=$2
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
10292if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294else
10295 if test -n "$ac_ct_LIPO"; then
10296 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10297else
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_prog_ac_ct_LIPO="lipo"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309done
10310 done
10311IFS=$as_save_IFS
10312
10313fi
10314fi
10315ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10316if test -n "$ac_ct_LIPO"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10318$as_echo "$ac_ct_LIPO" >&6; }
10319else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
10322fi
10323
10324 if test "x$ac_ct_LIPO" = x; then
10325 LIPO=":"
10326 else
10327 case $cross_compiling:$ac_tool_warned in
10328yes:)
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10331ac_tool_warned=yes ;;
10332esac
10333 LIPO=$ac_ct_LIPO
10334 fi
10335else
10336 LIPO="$ac_cv_prog_LIPO"
10337fi
10338
10339 if test -n "$ac_tool_prefix"; then
10340 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10341set dummy ${ac_tool_prefix}otool; ac_word=$2
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
10344if ${ac_cv_prog_OTOOL+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346else
10347 if test -n "$OTOOL"; then
10348 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10349else
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10360 fi
10361done
10362 done
10363IFS=$as_save_IFS
10364
10365fi
10366fi
10367OTOOL=$ac_cv_prog_OTOOL
10368if test -n "$OTOOL"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10370$as_echo "$OTOOL" >&6; }
10371else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
10374fi
10375
10376
10377fi
10378if test -z "$ac_cv_prog_OTOOL"; then
10379 ac_ct_OTOOL=$OTOOL
10380 # Extract the first word of "otool", so it can be a program name with args.
10381set dummy otool; ac_word=$2
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383$as_echo_n "checking for $ac_word... " >&6; }
10384if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387 if test -n "$ac_ct_OTOOL"; then
10388 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10389else
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10397 ac_cv_prog_ac_ct_OTOOL="otool"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401done
10402 done
10403IFS=$as_save_IFS
10404
10405fi
10406fi
10407ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10408if test -n "$ac_ct_OTOOL"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10410$as_echo "$ac_ct_OTOOL" >&6; }
10411else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413$as_echo "no" >&6; }
10414fi
10415
10416 if test "x$ac_ct_OTOOL" = x; then
10417 OTOOL=":"
10418 else
10419 case $cross_compiling:$ac_tool_warned in
10420yes:)
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10423ac_tool_warned=yes ;;
10424esac
10425 OTOOL=$ac_ct_OTOOL
10426 fi
10427else
10428 OTOOL="$ac_cv_prog_OTOOL"
10429fi
10430
10431 if test -n "$ac_tool_prefix"; then
10432 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10433set dummy ${ac_tool_prefix}otool64; ac_word=$2
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435$as_echo_n "checking for $ac_word... " >&6; }
10436if ${ac_cv_prog_OTOOL64+:} false; then :
10437 $as_echo_n "(cached) " >&6
10438else
10439 if test -n "$OTOOL64"; then
10440 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10441else
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10449 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10452 fi
10453done
10454 done
10455IFS=$as_save_IFS
10456
10457fi
10458fi
10459OTOOL64=$ac_cv_prog_OTOOL64
10460if test -n "$OTOOL64"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10462$as_echo "$OTOOL64" >&6; }
10463else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
10466fi
10467
10468
10469fi
10470if test -z "$ac_cv_prog_OTOOL64"; then
10471 ac_ct_OTOOL64=$OTOOL64
10472 # Extract the first word of "otool64", so it can be a program name with args.
10473set dummy otool64; ac_word=$2
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475$as_echo_n "checking for $ac_word... " >&6; }
10476if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478else
10479 if test -n "$ac_ct_OTOOL64"; then
10480 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10481else
10482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in $PATH
10484do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489 ac_cv_prog_ac_ct_OTOOL64="otool64"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10492 fi
10493done
10494 done
10495IFS=$as_save_IFS
10496
10497fi
10498fi
10499ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10500if test -n "$ac_ct_OTOOL64"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10502$as_echo "$ac_ct_OTOOL64" >&6; }
10503else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506fi
10507
10508 if test "x$ac_ct_OTOOL64" = x; then
10509 OTOOL64=":"
10510 else
10511 case $cross_compiling:$ac_tool_warned in
10512yes:)
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10515ac_tool_warned=yes ;;
10516esac
10517 OTOOL64=$ac_ct_OTOOL64
10518 fi
10519else
10520 OTOOL64="$ac_cv_prog_OTOOL64"
10521fi
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10550$as_echo_n "checking for -single_module linker flag... " >&6; }
10551if ${lt_cv_apple_cc_single_mod+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553else
10554 lt_cv_apple_cc_single_mod=no
10555 if test -z "$LT_MULTI_MODULE"; then
10556 # By default we will add the -single_module flag. You can override
10557 # by either setting the environment variable LT_MULTI_MODULE
10558 # non-empty at configure time, or by adding -multi_module to the
10559 # link flags.
10560 rm -rf libconftest.dylib*
10561 echo "int foo(void){return 1;}" > conftest.c
10562 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10563-dynamiclib -Wl,-single_module conftest.c" >&5
10564 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10565 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10566 _lt_result=$?
10567 # If there is a non-empty error log, and "single_module"
10568 # appears in it, assume the flag caused a linker warning
10569 if test -s conftest.err && $GREP single_module conftest.err; then
10570 cat conftest.err >&5
10571 # Otherwise, if the output was created with a 0 exit code from
10572 # the compiler, it worked.
10573 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10574 lt_cv_apple_cc_single_mod=yes
10575 else
10576 cat conftest.err >&5
10577 fi
10578 rm -rf libconftest.dylib*
10579 rm -f conftest.*
10580 fi
10581fi
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10583$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10584
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10586$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10587if ${lt_cv_ld_exported_symbols_list+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589else
10590 lt_cv_ld_exported_symbols_list=no
10591 save_LDFLAGS=$LDFLAGS
10592 echo "_main" > conftest.sym
10593 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h. */
10596
10597int main (void)
10598{
10599
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604if ac_fn_c_try_link "$LINENO"; then :
10605 lt_cv_ld_exported_symbols_list=yes
10606else
10607 lt_cv_ld_exported_symbols_list=no
10608fi
10609rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LDFLAGS=$save_LDFLAGS
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10615$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10616
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10618$as_echo_n "checking for -force_load linker flag... " >&6; }
10619if ${lt_cv_ld_force_load+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621else
10622 lt_cv_ld_force_load=no
10623 cat > conftest.c << _LT_EOF
10624int forced_loaded() { return 2;}
10625_LT_EOF
10626 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10627 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10628 echo "$AR cru libconftest.a conftest.o" >&5
10629 $AR cru libconftest.a conftest.o 2>&5
10630 echo "$RANLIB libconftest.a" >&5
10631 $RANLIB libconftest.a 2>&5
10632 cat > conftest.c << _LT_EOF
10633int main() { return 0;}
10634_LT_EOF
10635 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10636 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10637 _lt_result=$?
10638 if test -s conftest.err && $GREP force_load conftest.err; then
10639 cat conftest.err >&5
10640 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10641 lt_cv_ld_force_load=yes
10642 else
10643 cat conftest.err >&5
10644 fi
10645 rm -f conftest.err libconftest.a conftest conftest.c
10646 rm -rf conftest.dSYM
10647
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10650$as_echo "$lt_cv_ld_force_load" >&6; }
10651 case $host_os in
10652 rhapsody* | darwin1.[012])
10653 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10654 darwin1.*)
10655 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10656 darwin*) # darwin 5.x on
10657 # if running on 10.5 or later, the deployment target defaults
10658 # to the OS version, if on x86, and 10.4, the deployment
10659 # target defaults to 10.4. Don't you love it?
10660 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10661 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10662 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10663 10.[012][,.]*)
10664 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10665 10.*)
10666 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10667 esac
10668 ;;
10669 esac
10670 if test yes = "$lt_cv_apple_cc_single_mod"; then
10671 _lt_dar_single_mod='$single_module'
10672 fi
10673 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10674 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10675 else
10676 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10677 fi
10678 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10679 _lt_dsymutil='~$DSYMUTIL $lib || :'
10680 else
10681 _lt_dsymutil=
10682 fi
10683 ;;
10684 esac
10685
10686# func_munge_path_list VARIABLE PATH
10687# -----------------------------------
10688# VARIABLE is name of variable containing _space_ separated list of
10689# directories to be munged by the contents of PATH, which is string
10690# having a format:
10691# "DIR[:DIR]:"
10692# string "DIR[ DIR]" will be prepended to VARIABLE
10693# ":DIR[:DIR]"
10694# string "DIR[ DIR]" will be appended to VARIABLE
10695# "DIRP[:DIRP]::[DIRA:]DIRA"
10696# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10697# "DIRA[ DIRA]" will be appended to VARIABLE
10698# "DIR[:DIR]"
10699# VARIABLE will be replaced by "DIR[ DIR]"
10700func_munge_path_list ()
10701{
10702 case x$2 in
10703 x)
10704 ;;
10705 *:)
10706 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10707 ;;
10708 x:*)
10709 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10710 ;;
10711 *::*)
10712 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10713 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10714 ;;
10715 *)
10716 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10717 ;;
10718 esac
10719}
10720
Alex Deymo486467e2017-12-19 19:04:07 +010010721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10722$as_echo_n "checking for ANSI C header files... " >&6; }
10723if ${ac_cv_header_stdc+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725else
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727/* end confdefs.h. */
10728#include <stdlib.h>
10729#include <stdarg.h>
10730#include <string.h>
10731#include <float.h>
10732
10733int main (void)
10734{
10735
10736 ;
10737 return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_compile "$LINENO"; then :
10741 ac_cv_header_stdc=yes
10742else
10743 ac_cv_header_stdc=no
10744fi
10745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746
10747if test $ac_cv_header_stdc = yes; then
10748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750/* end confdefs.h. */
10751#include <string.h>
10752
10753_ACEOF
10754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "memchr" >/dev/null 2>&1; then :
10756
10757else
10758 ac_cv_header_stdc=no
10759fi
10760rm -f conftest*
10761
10762fi
10763
10764if test $ac_cv_header_stdc = yes; then
10765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h. */
10768#include <stdlib.h>
10769
10770_ACEOF
10771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10772 $EGREP "free" >/dev/null 2>&1; then :
10773
10774else
10775 ac_cv_header_stdc=no
10776fi
10777rm -f conftest*
10778
10779fi
10780
10781if test $ac_cv_header_stdc = yes; then
10782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10783 if test "$cross_compiling" = yes; then :
10784 :
10785else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h. */
10788#include <ctype.h>
10789#include <stdlib.h>
10790#if ((' ' & 0x0FF) == 0x020)
10791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10793#else
10794# define ISLOWER(c) \
10795 (('a' <= (c) && (c) <= 'i') \
10796 || ('j' <= (c) && (c) <= 'r') \
10797 || ('s' <= (c) && (c) <= 'z'))
10798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10799#endif
10800
10801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10802int
10803main ()
10804{
10805 int i;
10806 for (i = 0; i < 256; i++)
10807 if (XOR (islower (i), ISLOWER (i))
10808 || toupper (i) != TOUPPER (i))
10809 return 2;
10810 return 0;
10811}
10812_ACEOF
10813if ac_fn_c_try_run "$LINENO"; then :
10814
10815else
10816 ac_cv_header_stdc=no
10817fi
10818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10819 conftest.$ac_objext conftest.beam conftest.$ac_ext
10820fi
10821
10822fi
10823fi
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10825$as_echo "$ac_cv_header_stdc" >&6; }
10826if test $ac_cv_header_stdc = yes; then
10827
10828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10829
10830fi
10831
10832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10834 inttypes.h stdint.h unistd.h
10835do :
10836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10838"
10839if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10840 cat >>confdefs.h <<_ACEOF
10841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10842_ACEOF
10843
10844fi
10845
10846done
10847
10848
Elliott Hughes82be86d2017-09-20 17:00:17 -070010849for ac_header in dlfcn.h
10850do :
10851 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10852"
10853if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10854 cat >>confdefs.h <<_ACEOF
10855#define HAVE_DLFCN_H 1
10856_ACEOF
10857
10858fi
10859
10860done
10861
10862# ------------------------------------ #
10863# Determine libtool default behavior #
10864# ------------------------------------ #
10865
10866#
10867# Default behavior is to enable shared and static libraries on systems
10868# where libtool knows how to build both library versions, and does not
10869# require separate configuration and build runs for each flavor.
10870#
10871
10872xc_lt_want_enable_shared='yes'
10873xc_lt_want_enable_static='yes'
10874
10875#
10876# User may have disabled shared or static libraries.
10877#
10878case "x$enable_shared" in # (
10879 xno)
10880 xc_lt_want_enable_shared='no'
10881 ;;
10882esac
10883case "x$enable_static" in # (
10884 xno)
10885 xc_lt_want_enable_static='no'
10886 ;;
10887esac
10888if test "x$xc_lt_want_enable_shared" = 'xno' &&
10889 test "x$xc_lt_want_enable_static" = 'xno'; then
10890 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10891fi
10892
10893#
10894# Default behavior on systems that require independent configuration
10895# and build runs for shared and static is to enable shared libraries
10896# and disable static ones. On these systems option '--disable-shared'
10897# must be used in order to build a proper static library.
10898#
10899
10900if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10901 test "x$xc_lt_want_enable_static" = 'xyes'; then
10902 case $host_os in # (
10903 pw32* | cegcc* | os2* | aix*)
10904 xc_lt_want_enable_static='no'
10905 ;;
10906 esac
10907fi
10908
10909#
10910# Make libtool aware of current shared and static library preferences
10911# taking in account that, depending on host characteristics, libtool
10912# may modify these option preferences later in this configure script.
10913#
10914
10915enable_shared=$xc_lt_want_enable_shared
10916enable_static=$xc_lt_want_enable_static
10917
10918#
10919# Default behavior is to build PIC objects for shared libraries and
10920# non-PIC objects for static libraries.
10921#
10922
10923xc_lt_want_with_pic='default'
10924
10925#
10926# User may have specified PIC preference.
10927#
10928
10929case "x$with_pic" in # ((
10930 xno)
10931 xc_lt_want_with_pic='no'
10932 ;;
10933 xyes)
10934 xc_lt_want_with_pic='yes'
10935 ;;
10936esac
10937
10938#
10939# Default behavior on some systems where building a shared library out
10940# of non-PIC compiled objects will fail with following linker error
10941# "relocation R_X86_64_32 can not be used when making a shared object"
10942# is to build PIC objects even for static libraries. This behavior may
10943# be overridden using 'configure --disable-shared --without-pic'.
10944#
10945
10946if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10947 case $host_cpu in # (
10948 x86_64 | amd64 | ia64)
10949 case $host_os in # (
10950 linux* | freebsd*)
10951 xc_lt_want_with_pic='yes'
10952 ;;
10953 esac
10954 ;;
10955 esac
10956fi
10957
10958#
10959# Make libtool aware of current PIC preference taking in account that,
10960# depending on host characteristics, libtool may modify PIC default
10961# behavior to fit host system idiosyncrasies later in this script.
10962#
10963
10964with_pic=$xc_lt_want_with_pic
10965
10966## ----------------------- ##
10967## Start of libtool code ##
10968## ----------------------- ##
10969
10970
10971
10972
10973# Set options
10974enable_win32_dll=yes
10975
10976case $host in
10977*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10978 if test -n "$ac_tool_prefix"; then
10979 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10980set dummy ${ac_tool_prefix}as; ac_word=$2
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982$as_echo_n "checking for $ac_word... " >&6; }
10983if ${ac_cv_prog_AS+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985else
10986 if test -n "$AS"; then
10987 ac_cv_prog_AS="$AS" # Let the user override the test.
10988else
10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_prog_AS="${ac_tool_prefix}as"
10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000done
11001 done
11002IFS=$as_save_IFS
11003
11004fi
11005fi
11006AS=$ac_cv_prog_AS
11007if test -n "$AS"; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11009$as_echo "$AS" >&6; }
11010else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012$as_echo "no" >&6; }
11013fi
11014
11015
11016fi
11017if test -z "$ac_cv_prog_AS"; then
11018 ac_ct_AS=$AS
11019 # Extract the first word of "as", so it can be a program name with args.
11020set dummy as; ac_word=$2
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
11023if ${ac_cv_prog_ac_ct_AS+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025else
11026 if test -n "$ac_ct_AS"; then
11027 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11028else
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036 ac_cv_prog_ac_ct_AS="as"
11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 break 2
11039 fi
11040done
11041 done
11042IFS=$as_save_IFS
11043
11044fi
11045fi
11046ac_ct_AS=$ac_cv_prog_ac_ct_AS
11047if test -n "$ac_ct_AS"; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11049$as_echo "$ac_ct_AS" >&6; }
11050else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
11053fi
11054
11055 if test "x$ac_ct_AS" = x; then
11056 AS="false"
11057 else
11058 case $cross_compiling:$ac_tool_warned in
11059yes:)
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11062ac_tool_warned=yes ;;
11063esac
11064 AS=$ac_ct_AS
11065 fi
11066else
11067 AS="$ac_cv_prog_AS"
11068fi
11069
11070 if test -n "$ac_tool_prefix"; then
11071 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11072set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
11075if ${ac_cv_prog_DLLTOOL+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077else
11078 if test -n "$DLLTOOL"; then
11079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11080else
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092done
11093 done
11094IFS=$as_save_IFS
11095
11096fi
11097fi
11098DLLTOOL=$ac_cv_prog_DLLTOOL
11099if test -n "$DLLTOOL"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11101$as_echo "$DLLTOOL" >&6; }
11102else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
11105fi
11106
11107
11108fi
11109if test -z "$ac_cv_prog_DLLTOOL"; then
11110 ac_ct_DLLTOOL=$DLLTOOL
11111 # Extract the first word of "dlltool", so it can be a program name with args.
11112set dummy dlltool; ac_word=$2
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114$as_echo_n "checking for $ac_word... " >&6; }
11115if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117else
11118 if test -n "$ac_ct_DLLTOOL"; then
11119 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11120else
11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132done
11133 done
11134IFS=$as_save_IFS
11135
11136fi
11137fi
11138ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11139if test -n "$ac_ct_DLLTOOL"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11141$as_echo "$ac_ct_DLLTOOL" >&6; }
11142else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145fi
11146
11147 if test "x$ac_ct_DLLTOOL" = x; then
11148 DLLTOOL="false"
11149 else
11150 case $cross_compiling:$ac_tool_warned in
11151yes:)
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11154ac_tool_warned=yes ;;
11155esac
11156 DLLTOOL=$ac_ct_DLLTOOL
11157 fi
11158else
11159 DLLTOOL="$ac_cv_prog_DLLTOOL"
11160fi
11161
11162 if test -n "$ac_tool_prefix"; then
11163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11164set dummy ${ac_tool_prefix}objdump; ac_word=$2
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
11167if ${ac_cv_prog_OBJDUMP+:} false; then :
11168 $as_echo_n "(cached) " >&6
11169else
11170 if test -n "$OBJDUMP"; then
11171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185 done
11186IFS=$as_save_IFS
11187
11188fi
11189fi
11190OBJDUMP=$ac_cv_prog_OBJDUMP
11191if test -n "$OBJDUMP"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11193$as_echo "$OBJDUMP" >&6; }
11194else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
11197fi
11198
11199
11200fi
11201if test -z "$ac_cv_prog_OBJDUMP"; then
11202 ac_ct_OBJDUMP=$OBJDUMP
11203 # Extract the first word of "objdump", so it can be a program name with args.
11204set dummy objdump; ac_word=$2
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
11207if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209else
11210 if test -n "$ac_ct_OBJDUMP"; then
11211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225 done
11226IFS=$as_save_IFS
11227
11228fi
11229fi
11230ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11231if test -n "$ac_ct_OBJDUMP"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11233$as_echo "$ac_ct_OBJDUMP" >&6; }
11234else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
11237fi
11238
11239 if test "x$ac_ct_OBJDUMP" = x; then
11240 OBJDUMP="false"
11241 else
11242 case $cross_compiling:$ac_tool_warned in
11243yes:)
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11246ac_tool_warned=yes ;;
11247esac
11248 OBJDUMP=$ac_ct_OBJDUMP
11249 fi
11250else
11251 OBJDUMP="$ac_cv_prog_OBJDUMP"
11252fi
11253
11254 ;;
11255esac
11256
11257test -z "$AS" && AS=as
11258
11259
11260
11261
11262
11263test -z "$DLLTOOL" && DLLTOOL=dlltool
11264
11265
11266
11267
11268
11269test -z "$OBJDUMP" && OBJDUMP=objdump
11270
11271
11272
11273
11274
11275
11276
11277 enable_dlopen=no
11278
11279
11280
11281 # Check whether --enable-shared was given.
11282if test "${enable_shared+set}" = set; then :
11283 enableval=$enable_shared; p=${PACKAGE-default}
11284 case $enableval in
11285 yes) enable_shared=yes ;;
11286 no) enable_shared=no ;;
11287 *)
11288 enable_shared=no
11289 # Look at the argument we got. We use all the common list separators.
11290 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11291 for pkg in $enableval; do
11292 IFS=$lt_save_ifs
11293 if test "X$pkg" = "X$p"; then
11294 enable_shared=yes
11295 fi
11296 done
11297 IFS=$lt_save_ifs
11298 ;;
11299 esac
11300else
11301 enable_shared=yes
11302fi
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 # Check whether --enable-static was given.
11313if test "${enable_static+set}" = set; then :
11314 enableval=$enable_static; p=${PACKAGE-default}
11315 case $enableval in
11316 yes) enable_static=yes ;;
11317 no) enable_static=no ;;
11318 *)
11319 enable_static=no
11320 # Look at the argument we got. We use all the common list separators.
11321 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11322 for pkg in $enableval; do
11323 IFS=$lt_save_ifs
11324 if test "X$pkg" = "X$p"; then
11325 enable_static=yes
11326 fi
11327 done
11328 IFS=$lt_save_ifs
11329 ;;
11330 esac
11331else
11332 enable_static=yes
11333fi
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344# Check whether --with-pic was given.
11345if test "${with_pic+set}" = set; then :
11346 withval=$with_pic; lt_p=${PACKAGE-default}
11347 case $withval in
11348 yes|no) pic_mode=$withval ;;
11349 *)
11350 pic_mode=default
11351 # Look at the argument we got. We use all the common list separators.
11352 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11353 for lt_pkg in $withval; do
11354 IFS=$lt_save_ifs
11355 if test "X$lt_pkg" = "X$lt_p"; then
11356 pic_mode=yes
11357 fi
11358 done
11359 IFS=$lt_save_ifs
11360 ;;
11361 esac
11362else
11363 pic_mode=default
11364fi
11365
11366
11367
11368
11369
11370
11371
11372
11373 # Check whether --enable-fast-install was given.
11374if test "${enable_fast_install+set}" = set; then :
11375 enableval=$enable_fast_install; p=${PACKAGE-default}
11376 case $enableval in
11377 yes) enable_fast_install=yes ;;
11378 no) enable_fast_install=no ;;
11379 *)
11380 enable_fast_install=no
11381 # Look at the argument we got. We use all the common list separators.
11382 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11383 for pkg in $enableval; do
11384 IFS=$lt_save_ifs
11385 if test "X$pkg" = "X$p"; then
11386 enable_fast_install=yes
11387 fi
11388 done
11389 IFS=$lt_save_ifs
11390 ;;
11391 esac
11392else
11393 enable_fast_install=yes
11394fi
11395
11396
11397
11398
11399
11400
11401
11402
11403 shared_archive_member_spec=
11404case $host,$enable_shared in
11405power*-*-aix[5-9]*,yes)
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11407$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11408
11409# Check whether --with-aix-soname was given.
11410if test "${with_aix_soname+set}" = set; then :
11411 withval=$with_aix_soname; case $withval in
11412 aix|svr4|both)
11413 ;;
11414 *)
11415 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11416 ;;
11417 esac
11418 lt_cv_with_aix_soname=$with_aix_soname
11419else
11420 if ${lt_cv_with_aix_soname+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422else
11423 lt_cv_with_aix_soname=aix
11424fi
11425
11426 with_aix_soname=$lt_cv_with_aix_soname
11427fi
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11430$as_echo "$with_aix_soname" >&6; }
11431 if test aix != "$with_aix_soname"; then
11432 # For the AIX way of multilib, we name the shared archive member
11433 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11434 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11435 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11436 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11437 if test 64 = "${OBJECT_MODE-32}"; then
11438 shared_archive_member_spec=shr_64
11439 else
11440 shared_archive_member_spec=shr
11441 fi
11442 fi
11443 ;;
11444*)
11445 with_aix_soname=aix
11446 ;;
11447esac
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458# This can be used to rebuild libtool when needed
11459LIBTOOL_DEPS=$ltmain
11460
11461# Always use our own libtool.
11462LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
11488
11489
11490
11491
11492
11493test -z "$LN_S" && LN_S="ln -s"
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508if test -n "${ZSH_VERSION+set}"; then
11509 setopt NO_GLOB_SUBST
11510fi
11511
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11513$as_echo_n "checking for objdir... " >&6; }
11514if ${lt_cv_objdir+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516else
11517 rm -f .libs 2>/dev/null
11518mkdir .libs 2>/dev/null
11519if test -d .libs; then
11520 lt_cv_objdir=.libs
11521else
11522 # MS-DOS does not allow filenames that begin with a dot.
11523 lt_cv_objdir=_libs
11524fi
11525rmdir .libs 2>/dev/null
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11528$as_echo "$lt_cv_objdir" >&6; }
11529objdir=$lt_cv_objdir
11530
11531
11532
11533
11534
11535cat >>confdefs.h <<_ACEOF
11536#define LT_OBJDIR "$lt_cv_objdir/"
11537_ACEOF
11538
11539
11540
11541
11542case $host_os in
11543aix3*)
11544 # AIX sometimes has problems with the GCC collect2 program. For some
11545 # reason, if we set the COLLECT_NAMES environment variable, the problems
11546 # vanish in a puff of smoke.
11547 if test set != "${COLLECT_NAMES+set}"; then
11548 COLLECT_NAMES=
11549 export COLLECT_NAMES
11550 fi
11551 ;;
11552esac
11553
11554# Global variables:
11555ofile=libtool
11556can_build_shared=yes
11557
11558# All known linkers require a '.a' archive for static linking (except MSVC,
11559# which needs '.lib').
11560libext=a
11561
11562with_gnu_ld=$lt_cv_prog_gnu_ld
11563
11564old_CC=$CC
11565old_CFLAGS=$CFLAGS
11566
11567# Set sane defaults for various variables
11568test -z "$CC" && CC=cc
11569test -z "$LTCC" && LTCC=$CC
11570test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11571test -z "$LD" && LD=ld
11572test -z "$ac_objext" && ac_objext=o
11573
11574func_cc_basename $compiler
11575cc_basename=$func_cc_basename_result
11576
11577
11578# Only perform the check for file, if the check method requires it
11579test -z "$MAGIC_CMD" && MAGIC_CMD=file
11580case $deplibs_check_method in
11581file_magic*)
11582 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11584$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11585if ${lt_cv_path_MAGIC_CMD+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587else
11588 case $MAGIC_CMD in
11589[\\/*] | ?:[\\/]*)
11590 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11591 ;;
11592*)
11593 lt_save_MAGIC_CMD=$MAGIC_CMD
11594 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11596 for ac_dir in $ac_dummy; do
11597 IFS=$lt_save_ifs
11598 test -z "$ac_dir" && ac_dir=.
11599 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11600 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11601 if test -n "$file_magic_test_file"; then
11602 case $deplibs_check_method in
11603 "file_magic "*)
11604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11605 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11607 $EGREP "$file_magic_regex" > /dev/null; then
11608 :
11609 else
11610 cat <<_LT_EOF 1>&2
11611
11612*** Warning: the command libtool uses to detect shared libraries,
11613*** $file_magic_cmd, produces output that libtool cannot recognize.
11614*** The result is that libtool may fail to recognize shared libraries
11615*** as such. This will affect the creation of libtool libraries that
11616*** depend on shared libraries, but programs linked with such libtool
11617*** libraries will work regardless of this problem. Nevertheless, you
11618*** may want to report the problem to your system manager and/or to
11619*** bug-libtool@gnu.org
11620
11621_LT_EOF
11622 fi ;;
11623 esac
11624 fi
11625 break
11626 fi
11627 done
11628 IFS=$lt_save_ifs
11629 MAGIC_CMD=$lt_save_MAGIC_CMD
11630 ;;
11631esac
11632fi
11633
11634MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11635if test -n "$MAGIC_CMD"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11637$as_echo "$MAGIC_CMD" >&6; }
11638else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
11641fi
11642
11643
11644
11645
11646
11647if test -z "$lt_cv_path_MAGIC_CMD"; then
11648 if test -n "$ac_tool_prefix"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11650$as_echo_n "checking for file... " >&6; }
11651if ${lt_cv_path_MAGIC_CMD+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653else
11654 case $MAGIC_CMD in
11655[\\/*] | ?:[\\/]*)
11656 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11657 ;;
11658*)
11659 lt_save_MAGIC_CMD=$MAGIC_CMD
11660 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11662 for ac_dir in $ac_dummy; do
11663 IFS=$lt_save_ifs
11664 test -z "$ac_dir" && ac_dir=.
11665 if test -f "$ac_dir/file"; then
11666 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11667 if test -n "$file_magic_test_file"; then
11668 case $deplibs_check_method in
11669 "file_magic "*)
11670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11671 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11673 $EGREP "$file_magic_regex" > /dev/null; then
11674 :
11675 else
11676 cat <<_LT_EOF 1>&2
11677
11678*** Warning: the command libtool uses to detect shared libraries,
11679*** $file_magic_cmd, produces output that libtool cannot recognize.
11680*** The result is that libtool may fail to recognize shared libraries
11681*** as such. This will affect the creation of libtool libraries that
11682*** depend on shared libraries, but programs linked with such libtool
11683*** libraries will work regardless of this problem. Nevertheless, you
11684*** may want to report the problem to your system manager and/or to
11685*** bug-libtool@gnu.org
11686
11687_LT_EOF
11688 fi ;;
11689 esac
11690 fi
11691 break
11692 fi
11693 done
11694 IFS=$lt_save_ifs
11695 MAGIC_CMD=$lt_save_MAGIC_CMD
11696 ;;
11697esac
11698fi
11699
11700MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11701if test -n "$MAGIC_CMD"; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11703$as_echo "$MAGIC_CMD" >&6; }
11704else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
11707fi
11708
11709
11710 else
11711 MAGIC_CMD=:
11712 fi
11713fi
11714
11715 fi
11716 ;;
11717esac
11718
11719# Use C for the default configuration in the libtool script
11720
11721lt_save_CC=$CC
11722ac_ext=c
11723ac_cpp='$CPP $CPPFLAGS'
11724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11726ac_compiler_gnu=$ac_cv_c_compiler_gnu
11727
11728
11729# Source file extension for C test sources.
11730ac_ext=c
11731
11732# Object file extension for compiled C test sources.
11733objext=o
11734objext=$objext
11735
11736# Code to be used in simple compile tests
11737lt_simple_compile_test_code="int some_variable = 0;"
11738
11739# Code to be used in simple link tests
11740lt_simple_link_test_code='int main(){return(0);}'
11741
11742
11743
11744
11745
11746
11747
11748# If no C compiler was specified, use CC.
11749LTCC=${LTCC-"$CC"}
11750
11751# If no C compiler flags were specified, use CFLAGS.
11752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11753
11754# Allow CC to be a program name with arguments.
11755compiler=$CC
11756
11757# Save the default compiler, since it gets overwritten when the other
11758# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11759compiler_DEFAULT=$CC
11760
11761# save warnings/boilerplate of simple test code
11762ac_outfile=conftest.$ac_objext
11763echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11764eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11765_lt_compiler_boilerplate=`cat conftest.err`
11766$RM conftest*
11767
11768ac_outfile=conftest.$ac_objext
11769echo "$lt_simple_link_test_code" >conftest.$ac_ext
11770eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11771_lt_linker_boilerplate=`cat conftest.err`
11772$RM -r conftest*
11773
11774
11775## CAVEAT EMPTOR:
11776## There is no encapsulation within the following macros, do not change
11777## the running order or otherwise move them around unless you know exactly
11778## what you are doing...
11779if test -n "$compiler"; then
11780
11781lt_prog_compiler_no_builtin_flag=
11782
11783if test yes = "$GCC"; then
11784 case $cc_basename in
11785 nvcc*)
11786 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11787 *)
11788 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11789 esac
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11792$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11793if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795else
11796 lt_cv_prog_compiler_rtti_exceptions=no
11797 ac_outfile=conftest.$ac_objext
11798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11799 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11800 # Insert the option either (1) after the last *FLAGS variable, or
11801 # (2) before a word containing "conftest.", or (3) at the end.
11802 # Note that $ac_compile itself does not contain backslashes and begins
11803 # with a dollar sign (not a hyphen), so the echo should work correctly.
11804 # The option is referenced via a variable to avoid confusing sed.
11805 lt_compile=`echo "$ac_compile" | $SED \
11806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11808 -e 's:$: $lt_compiler_flag:'`
11809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11810 (eval "$lt_compile" 2>conftest.err)
11811 ac_status=$?
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 if (exit $ac_status) && test -s "$ac_outfile"; then
11815 # The compiler can only warn and ignore the option if not recognized
11816 # So say no if there are warnings other than the usual output.
11817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11820 lt_cv_prog_compiler_rtti_exceptions=yes
11821 fi
11822 fi
11823 $RM conftest*
11824
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11827$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11828
11829if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11830 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11831else
11832 :
11833fi
11834
11835fi
11836
11837
11838
11839
11840
11841
11842 lt_prog_compiler_wl=
11843lt_prog_compiler_pic=
11844lt_prog_compiler_static=
11845
11846
11847 if test yes = "$GCC"; then
11848 lt_prog_compiler_wl='-Wl,'
11849 lt_prog_compiler_static='-static'
11850
11851 case $host_os in
11852 aix*)
11853 # All AIX code is PIC.
11854 if test ia64 = "$host_cpu"; then
11855 # AIX 5 now supports IA64 processor
11856 lt_prog_compiler_static='-Bstatic'
11857 fi
11858 lt_prog_compiler_pic='-fPIC'
11859 ;;
11860
11861 amigaos*)
11862 case $host_cpu in
11863 powerpc)
11864 # see comment about AmigaOS4 .so support
11865 lt_prog_compiler_pic='-fPIC'
11866 ;;
11867 m68k)
11868 # FIXME: we need at least 68020 code to build shared libraries, but
11869 # adding the '-m68020' flag to GCC prevents building anything better,
11870 # like '-m68040'.
11871 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11872 ;;
11873 esac
11874 ;;
11875
11876 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11877 # PIC is the default for these OSes.
11878 ;;
11879
11880 mingw* | cygwin* | pw32* | os2* | cegcc*)
11881 # This hack is so that the source file can tell whether it is being
11882 # built for inclusion in a dll (and should export symbols for example).
11883 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11884 # (--disable-auto-import) libraries
11885 lt_prog_compiler_pic='-DDLL_EXPORT'
11886 case $host_os in
11887 os2*)
11888 lt_prog_compiler_static='$wl-static'
11889 ;;
11890 esac
11891 ;;
11892
11893 darwin* | rhapsody*)
11894 # PIC is the default on this platform
11895 # Common symbols not allowed in MH_DYLIB files
11896 lt_prog_compiler_pic='-fno-common'
11897 ;;
11898
11899 haiku*)
11900 # PIC is the default for Haiku.
11901 # The "-static" flag exists, but is broken.
11902 lt_prog_compiler_static=
11903 ;;
11904
11905 hpux*)
11906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11908 # sets the default TLS model and affects inlining.
11909 case $host_cpu in
11910 hppa*64*)
11911 # +Z the default
11912 ;;
11913 *)
11914 lt_prog_compiler_pic='-fPIC'
11915 ;;
11916 esac
11917 ;;
11918
11919 interix[3-9]*)
11920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11921 # Instead, we relocate shared libraries at runtime.
11922 ;;
11923
11924 msdosdjgpp*)
11925 # Just because we use GCC doesn't mean we suddenly get shared libraries
11926 # on systems that don't support them.
11927 lt_prog_compiler_can_build_shared=no
11928 enable_shared=no
11929 ;;
11930
11931 *nto* | *qnx*)
11932 # QNX uses GNU C++, but need to define -shared option too, otherwise
11933 # it will coredump.
11934 lt_prog_compiler_pic='-fPIC -shared'
11935 ;;
11936
11937 sysv4*MP*)
11938 if test -d /usr/nec; then
11939 lt_prog_compiler_pic=-Kconform_pic
11940 fi
11941 ;;
11942
11943 *)
11944 lt_prog_compiler_pic='-fPIC'
11945 ;;
11946 esac
11947
11948 case $cc_basename in
11949 nvcc*) # Cuda Compiler Driver 2.2
11950 lt_prog_compiler_wl='-Xlinker '
11951 if test -n "$lt_prog_compiler_pic"; then
11952 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11953 fi
11954 ;;
11955 esac
11956 else
11957 # PORTME Check for flag to pass linker flags through the system compiler.
11958 case $host_os in
11959 aix*)
11960 lt_prog_compiler_wl='-Wl,'
11961 if test ia64 = "$host_cpu"; then
11962 # AIX 5 now supports IA64 processor
11963 lt_prog_compiler_static='-Bstatic'
11964 else
11965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11966 fi
11967 ;;
11968
11969 darwin* | rhapsody*)
11970 # PIC is the default on this platform
11971 # Common symbols not allowed in MH_DYLIB files
11972 lt_prog_compiler_pic='-fno-common'
11973 case $cc_basename in
11974 nagfor*)
11975 # NAG Fortran compiler
11976 lt_prog_compiler_wl='-Wl,-Wl,,'
11977 lt_prog_compiler_pic='-PIC'
11978 lt_prog_compiler_static='-Bstatic'
11979 ;;
11980 esac
11981 ;;
11982
11983 mingw* | cygwin* | pw32* | os2* | cegcc*)
11984 # This hack is so that the source file can tell whether it is being
11985 # built for inclusion in a dll (and should export symbols for example).
11986 lt_prog_compiler_pic='-DDLL_EXPORT'
11987 case $host_os in
11988 os2*)
11989 lt_prog_compiler_static='$wl-static'
11990 ;;
11991 esac
11992 ;;
11993
11994 hpux9* | hpux10* | hpux11*)
11995 lt_prog_compiler_wl='-Wl,'
11996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997 # not for PA HP-UX.
11998 case $host_cpu in
11999 hppa*64*|ia64*)
12000 # +Z the default
12001 ;;
12002 *)
12003 lt_prog_compiler_pic='+Z'
12004 ;;
12005 esac
12006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12007 lt_prog_compiler_static='$wl-a ${wl}archive'
12008 ;;
12009
12010 irix5* | irix6* | nonstopux*)
12011 lt_prog_compiler_wl='-Wl,'
12012 # PIC (with -KPIC) is the default.
12013 lt_prog_compiler_static='-non_shared'
12014 ;;
12015
12016 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12017 case $cc_basename in
12018 # old Intel for x86_64, which still supported -KPIC.
12019 ecc*)
12020 lt_prog_compiler_wl='-Wl,'
12021 lt_prog_compiler_pic='-KPIC'
12022 lt_prog_compiler_static='-static'
12023 ;;
12024 # icc used to be incompatible with GCC.
12025 # ICC 10 doesn't accept -KPIC any more.
12026 icc* | ifort*)
12027 lt_prog_compiler_wl='-Wl,'
12028 lt_prog_compiler_pic='-fPIC'
12029 lt_prog_compiler_static='-static'
12030 ;;
12031 # Lahey Fortran 8.1.
12032 lf95*)
12033 lt_prog_compiler_wl='-Wl,'
12034 lt_prog_compiler_pic='--shared'
12035 lt_prog_compiler_static='--static'
12036 ;;
12037 nagfor*)
12038 # NAG Fortran compiler
12039 lt_prog_compiler_wl='-Wl,-Wl,,'
12040 lt_prog_compiler_pic='-PIC'
12041 lt_prog_compiler_static='-Bstatic'
12042 ;;
12043 tcc*)
12044 # Fabrice Bellard et al's Tiny C Compiler
12045 lt_prog_compiler_wl='-Wl,'
12046 lt_prog_compiler_pic='-fPIC'
12047 lt_prog_compiler_static='-static'
12048 ;;
12049 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12050 # Portland Group compilers (*not* the Pentium gcc compiler,
12051 # which looks to be a dead project)
12052 lt_prog_compiler_wl='-Wl,'
12053 lt_prog_compiler_pic='-fpic'
12054 lt_prog_compiler_static='-Bstatic'
12055 ;;
12056 ccc*)
12057 lt_prog_compiler_wl='-Wl,'
12058 # All Alpha code is PIC.
12059 lt_prog_compiler_static='-non_shared'
12060 ;;
12061 xl* | bgxl* | bgf* | mpixl*)
12062 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12063 lt_prog_compiler_wl='-Wl,'
12064 lt_prog_compiler_pic='-qpic'
12065 lt_prog_compiler_static='-qstaticlink'
12066 ;;
12067 *)
12068 case `$CC -V 2>&1 | sed 5q` in
12069 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12071 lt_prog_compiler_pic='-KPIC'
12072 lt_prog_compiler_static='-Bstatic'
12073 lt_prog_compiler_wl=''
12074 ;;
12075 *Sun\ F* | *Sun*Fortran*)
12076 lt_prog_compiler_pic='-KPIC'
12077 lt_prog_compiler_static='-Bstatic'
12078 lt_prog_compiler_wl='-Qoption ld '
12079 ;;
12080 *Sun\ C*)
12081 # Sun C 5.9
12082 lt_prog_compiler_pic='-KPIC'
12083 lt_prog_compiler_static='-Bstatic'
12084 lt_prog_compiler_wl='-Wl,'
12085 ;;
12086 *Intel*\ [CF]*Compiler*)
12087 lt_prog_compiler_wl='-Wl,'
12088 lt_prog_compiler_pic='-fPIC'
12089 lt_prog_compiler_static='-static'
12090 ;;
12091 *Portland\ Group*)
12092 lt_prog_compiler_wl='-Wl,'
12093 lt_prog_compiler_pic='-fpic'
12094 lt_prog_compiler_static='-Bstatic'
12095 ;;
12096 esac
12097 ;;
12098 esac
12099 ;;
12100
12101 newsos6)
12102 lt_prog_compiler_pic='-KPIC'
12103 lt_prog_compiler_static='-Bstatic'
12104 ;;
12105
12106 *nto* | *qnx*)
12107 # QNX uses GNU C++, but need to define -shared option too, otherwise
12108 # it will coredump.
12109 lt_prog_compiler_pic='-fPIC -shared'
12110 ;;
12111
12112 osf3* | osf4* | osf5*)
12113 lt_prog_compiler_wl='-Wl,'
12114 # All OSF/1 code is PIC.
12115 lt_prog_compiler_static='-non_shared'
12116 ;;
12117
12118 rdos*)
12119 lt_prog_compiler_static='-non_shared'
12120 ;;
12121
12122 solaris*)
12123 lt_prog_compiler_pic='-KPIC'
12124 lt_prog_compiler_static='-Bstatic'
12125 case $cc_basename in
12126 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12127 lt_prog_compiler_wl='-Qoption ld ';;
12128 *)
12129 lt_prog_compiler_wl='-Wl,';;
12130 esac
12131 ;;
12132
12133 sunos4*)
12134 lt_prog_compiler_wl='-Qoption ld '
12135 lt_prog_compiler_pic='-PIC'
12136 lt_prog_compiler_static='-Bstatic'
12137 ;;
12138
12139 sysv4 | sysv4.2uw2* | sysv4.3*)
12140 lt_prog_compiler_wl='-Wl,'
12141 lt_prog_compiler_pic='-KPIC'
12142 lt_prog_compiler_static='-Bstatic'
12143 ;;
12144
12145 sysv4*MP*)
12146 if test -d /usr/nec; then
12147 lt_prog_compiler_pic='-Kconform_pic'
12148 lt_prog_compiler_static='-Bstatic'
12149 fi
12150 ;;
12151
12152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12153 lt_prog_compiler_wl='-Wl,'
12154 lt_prog_compiler_pic='-KPIC'
12155 lt_prog_compiler_static='-Bstatic'
12156 ;;
12157
12158 unicos*)
12159 lt_prog_compiler_wl='-Wl,'
12160 lt_prog_compiler_can_build_shared=no
12161 ;;
12162
12163 uts4*)
12164 lt_prog_compiler_pic='-pic'
12165 lt_prog_compiler_static='-Bstatic'
12166 ;;
12167
12168 *)
12169 lt_prog_compiler_can_build_shared=no
12170 ;;
12171 esac
12172 fi
12173
12174case $host_os in
12175 # For platforms that do not support PIC, -DPIC is meaningless:
12176 *djgpp*)
12177 lt_prog_compiler_pic=
12178 ;;
12179 *)
12180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12181 ;;
12182esac
12183
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12185$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12186if ${lt_cv_prog_compiler_pic+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188else
12189 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12192$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12193lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12194
12195#
12196# Check to make sure the PIC flag actually works.
12197#
12198if test -n "$lt_prog_compiler_pic"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12200$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12201if ${lt_cv_prog_compiler_pic_works+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203else
12204 lt_cv_prog_compiler_pic_works=no
12205 ac_outfile=conftest.$ac_objext
12206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12207 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12208 # Insert the option either (1) after the last *FLAGS variable, or
12209 # (2) before a word containing "conftest.", or (3) at the end.
12210 # Note that $ac_compile itself does not contain backslashes and begins
12211 # with a dollar sign (not a hyphen), so the echo should work correctly.
12212 # The option is referenced via a variable to avoid confusing sed.
12213 lt_compile=`echo "$ac_compile" | $SED \
12214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12216 -e 's:$: $lt_compiler_flag:'`
12217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12218 (eval "$lt_compile" 2>conftest.err)
12219 ac_status=$?
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 if (exit $ac_status) && test -s "$ac_outfile"; then
12223 # The compiler can only warn and ignore the option if not recognized
12224 # So say no if there are warnings other than the usual output.
12225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12228 lt_cv_prog_compiler_pic_works=yes
12229 fi
12230 fi
12231 $RM conftest*
12232
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12235$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12236
12237if test yes = "$lt_cv_prog_compiler_pic_works"; then
12238 case $lt_prog_compiler_pic in
12239 "" | " "*) ;;
12240 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12241 esac
12242else
12243 lt_prog_compiler_pic=
12244 lt_prog_compiler_can_build_shared=no
12245fi
12246
12247fi
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259#
12260# Check to make sure the static flag actually works.
12261#
12262wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12264$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12265if ${lt_cv_prog_compiler_static_works+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267else
12268 lt_cv_prog_compiler_static_works=no
12269 save_LDFLAGS=$LDFLAGS
12270 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12271 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12272 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12273 # The linker can only warn and ignore the option if not recognized
12274 # So say no if there are warnings
12275 if test -s conftest.err; then
12276 # Append any errors to the config.log.
12277 cat conftest.err 1>&5
12278 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12280 if diff conftest.exp conftest.er2 >/dev/null; then
12281 lt_cv_prog_compiler_static_works=yes
12282 fi
12283 else
12284 lt_cv_prog_compiler_static_works=yes
12285 fi
12286 fi
12287 $RM -r conftest*
12288 LDFLAGS=$save_LDFLAGS
12289
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12292$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12293
12294if test yes = "$lt_cv_prog_compiler_static_works"; then
12295 :
12296else
12297 lt_prog_compiler_static=
12298fi
12299
12300
12301
12302
12303
12304
12305
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12307$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12308if ${lt_cv_prog_compiler_c_o+:} false; then :
12309 $as_echo_n "(cached) " >&6
12310else
12311 lt_cv_prog_compiler_c_o=no
12312 $RM -r conftest 2>/dev/null
12313 mkdir conftest
12314 cd conftest
12315 mkdir out
12316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12317
12318 lt_compiler_flag="-o out/conftest2.$ac_objext"
12319 # Insert the option either (1) after the last *FLAGS variable, or
12320 # (2) before a word containing "conftest.", or (3) at the end.
12321 # Note that $ac_compile itself does not contain backslashes and begins
12322 # with a dollar sign (not a hyphen), so the echo should work correctly.
12323 lt_compile=`echo "$ac_compile" | $SED \
12324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326 -e 's:$: $lt_compiler_flag:'`
12327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12328 (eval "$lt_compile" 2>out/conftest.err)
12329 ac_status=$?
12330 cat out/conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12333 then
12334 # The compiler can only warn and ignore the option if not recognized
12335 # So say no if there are warnings
12336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12339 lt_cv_prog_compiler_c_o=yes
12340 fi
12341 fi
12342 chmod u+w . 2>&5
12343 $RM conftest*
12344 # SGI C++ compiler will create directory out/ii_files/ for
12345 # template instantiation
12346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12347 $RM out/* && rmdir out
12348 cd ..
12349 $RM -r conftest
12350 $RM conftest*
12351
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12354$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12355
12356
12357
12358
12359
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12362$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12363if ${lt_cv_prog_compiler_c_o+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365else
12366 lt_cv_prog_compiler_c_o=no
12367 $RM -r conftest 2>/dev/null
12368 mkdir conftest
12369 cd conftest
12370 mkdir out
12371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12372
12373 lt_compiler_flag="-o out/conftest2.$ac_objext"
12374 # Insert the option either (1) after the last *FLAGS variable, or
12375 # (2) before a word containing "conftest.", or (3) at the end.
12376 # Note that $ac_compile itself does not contain backslashes and begins
12377 # with a dollar sign (not a hyphen), so the echo should work correctly.
12378 lt_compile=`echo "$ac_compile" | $SED \
12379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12381 -e 's:$: $lt_compiler_flag:'`
12382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12383 (eval "$lt_compile" 2>out/conftest.err)
12384 ac_status=$?
12385 cat out/conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12388 then
12389 # The compiler can only warn and ignore the option if not recognized
12390 # So say no if there are warnings
12391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12394 lt_cv_prog_compiler_c_o=yes
12395 fi
12396 fi
12397 chmod u+w . 2>&5
12398 $RM conftest*
12399 # SGI C++ compiler will create directory out/ii_files/ for
12400 # template instantiation
12401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12402 $RM out/* && rmdir out
12403 cd ..
12404 $RM -r conftest
12405 $RM conftest*
12406
12407fi
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12409$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12410
12411
12412
12413
12414hard_links=nottested
12415if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12416 # do not overwrite the value of need_locks provided by the user
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12418$as_echo_n "checking if we can lock with hard links... " >&6; }
12419 hard_links=yes
12420 $RM conftest*
12421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12422 touch conftest.a
12423 ln conftest.a conftest.b 2>&5 || hard_links=no
12424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12426$as_echo "$hard_links" >&6; }
12427 if test no = "$hard_links"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12429$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12430 need_locks=warn
12431 fi
12432else
12433 need_locks=no
12434fi
12435
12436
12437
12438
12439
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12443
12444 runpath_var=
12445 allow_undefined_flag=
12446 always_export_symbols=no
12447 archive_cmds=
12448 archive_expsym_cmds=
12449 compiler_needs_object=no
12450 enable_shared_with_static_runtimes=no
12451 export_dynamic_flag_spec=
12452 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12453 hardcode_automatic=no
12454 hardcode_direct=no
12455 hardcode_direct_absolute=no
12456 hardcode_libdir_flag_spec=
12457 hardcode_libdir_separator=
12458 hardcode_minus_L=no
12459 hardcode_shlibpath_var=unsupported
12460 inherit_rpath=no
12461 link_all_deplibs=unknown
12462 module_cmds=
12463 module_expsym_cmds=
12464 old_archive_from_new_cmds=
12465 old_archive_from_expsyms_cmds=
12466 thread_safe_flag_spec=
12467 whole_archive_flag_spec=
12468 # include_expsyms should be a list of space-separated symbols to be *always*
12469 # included in the symbol list
12470 include_expsyms=
12471 # exclude_expsyms can be an extended regexp of symbols to exclude
12472 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12473 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12474 # as well as any symbol that contains 'd'.
12475 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12476 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12477 # platforms (ab)use it in PIC code, but their linkers get confused if
12478 # the symbol is explicitly referenced. Since portable code cannot
12479 # rely on this symbol name, it's probably fine to never include it in
12480 # preloaded symbol tables.
12481 # Exclude shared library initialization/finalization symbols.
12482 extract_expsyms_cmds=
12483
12484 case $host_os in
12485 cygwin* | mingw* | pw32* | cegcc*)
12486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12487 # When not using gcc, we currently assume that we are using
12488 # Microsoft Visual C++.
12489 if test yes != "$GCC"; then
12490 with_gnu_ld=no
12491 fi
12492 ;;
12493 interix*)
12494 # we just hope/assume this is gcc and not c89 (= MSVC++)
12495 with_gnu_ld=yes
12496 ;;
12497 openbsd* | bitrig*)
12498 with_gnu_ld=no
12499 ;;
12500 linux* | k*bsd*-gnu | gnu*)
12501 link_all_deplibs=no
12502 ;;
12503 esac
12504
12505 ld_shlibs=yes
12506
12507 # On some targets, GNU ld is compatible enough with the native linker
12508 # that we're better off using the native interface for both.
12509 lt_use_gnu_ld_interface=no
12510 if test yes = "$with_gnu_ld"; then
12511 case $host_os in
12512 aix*)
12513 # The AIX port of GNU ld has always aspired to compatibility
12514 # with the native linker. However, as the warning in the GNU ld
12515 # block says, versions before 2.19.5* couldn't really create working
12516 # shared libraries, regardless of the interface used.
12517 case `$LD -v 2>&1` in
12518 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12519 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12520 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12521 *)
12522 lt_use_gnu_ld_interface=yes
12523 ;;
12524 esac
12525 ;;
12526 *)
12527 lt_use_gnu_ld_interface=yes
12528 ;;
12529 esac
12530 fi
12531
12532 if test yes = "$lt_use_gnu_ld_interface"; then
12533 # If archive_cmds runs LD, not CC, wlarc should be empty
12534 wlarc='$wl'
12535
12536 # Set some defaults for GNU ld with shared library support. These
12537 # are reset later if shared libraries are not supported. Putting them
12538 # here allows them to be overridden if necessary.
12539 runpath_var=LD_RUN_PATH
12540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12541 export_dynamic_flag_spec='$wl--export-dynamic'
12542 # ancient GNU ld didn't support --whole-archive et. al.
12543 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12544 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12545 else
12546 whole_archive_flag_spec=
12547 fi
12548 supports_anon_versioning=no
12549 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12550 *GNU\ gold*) supports_anon_versioning=yes ;;
12551 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12552 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12553 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12554 *\ 2.11.*) ;; # other 2.11 versions
12555 *) supports_anon_versioning=yes ;;
12556 esac
12557
12558 # See if GNU ld supports shared libraries.
12559 case $host_os in
12560 aix[3-9]*)
12561 # On AIX/PPC, the GNU linker is very broken
12562 if test ia64 != "$host_cpu"; then
12563 ld_shlibs=no
12564 cat <<_LT_EOF 1>&2
12565
12566*** Warning: the GNU linker, at least up to release 2.19, is reported
12567*** to be unable to reliably create shared libraries on AIX.
12568*** Therefore, libtool is disabling shared libraries support. If you
12569*** really care for shared libraries, you may want to install binutils
12570*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12571*** You will then need to restart the configuration process.
12572
12573_LT_EOF
12574 fi
12575 ;;
12576
12577 amigaos*)
12578 case $host_cpu in
12579 powerpc)
12580 # see comment about AmigaOS4 .so support
12581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12582 archive_expsym_cmds=''
12583 ;;
12584 m68k)
12585 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)'
12586 hardcode_libdir_flag_spec='-L$libdir'
12587 hardcode_minus_L=yes
12588 ;;
12589 esac
12590 ;;
12591
12592 beos*)
12593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12594 allow_undefined_flag=unsupported
12595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12596 # support --undefined. This deserves some investigation. FIXME
12597 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12598 else
12599 ld_shlibs=no
12600 fi
12601 ;;
12602
12603 cygwin* | mingw* | pw32* | cegcc*)
12604 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12605 # as there is no search path for DLLs.
12606 hardcode_libdir_flag_spec='-L$libdir'
12607 export_dynamic_flag_spec='$wl--export-all-symbols'
12608 allow_undefined_flag=unsupported
12609 always_export_symbols=no
12610 enable_shared_with_static_runtimes=yes
12611 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'
12612 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12613
12614 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12616 # If the export-symbols file already is a .def file, use it as
12617 # is; otherwise, prepend EXPORTS...
12618 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12619 cp $export_symbols $output_objdir/$soname.def;
12620 else
12621 echo EXPORTS > $output_objdir/$soname.def;
12622 cat $export_symbols >> $output_objdir/$soname.def;
12623 fi~
12624 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12625 else
12626 ld_shlibs=no
12627 fi
12628 ;;
12629
12630 haiku*)
12631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12632 link_all_deplibs=yes
12633 ;;
12634
12635 os2*)
12636 hardcode_libdir_flag_spec='-L$libdir'
12637 hardcode_minus_L=yes
12638 allow_undefined_flag=unsupported
12639 shrext_cmds=.dll
12640 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12641 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12642 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12643 $ECHO EXPORTS >> $output_objdir/$libname.def~
12644 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12645 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12646 emximp -o $lib $output_objdir/$libname.def'
12647 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12650 $ECHO EXPORTS >> $output_objdir/$libname.def~
12651 prefix_cmds="$SED"~
12652 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12653 prefix_cmds="$prefix_cmds -e 1d";
12654 fi~
12655 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12656 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12657 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12658 emximp -o $lib $output_objdir/$libname.def'
12659 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12660 enable_shared_with_static_runtimes=yes
12661 ;;
12662
12663 interix[3-9]*)
12664 hardcode_direct=no
12665 hardcode_shlibpath_var=no
12666 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12667 export_dynamic_flag_spec='$wl-E'
12668 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12669 # Instead, shared libraries are loaded at an image base (0x10000000 by
12670 # default) and relocated if they conflict, which is a slow very memory
12671 # consuming and fragmenting process. To avoid this, we pick a random,
12672 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12673 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12675 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'
12676 ;;
12677
12678 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12679 tmp_diet=no
12680 if test linux-dietlibc = "$host_os"; then
12681 case $cc_basename in
12682 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12683 esac
12684 fi
12685 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12686 && test no = "$tmp_diet"
12687 then
12688 tmp_addflag=' $pic_flag'
12689 tmp_sharedflag='-shared'
12690 case $cc_basename,$host_cpu in
12691 pgcc*) # Portland Group C compiler
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'
12694 ;;
12695 pgf77* | pgf90* | pgf95* | pgfortran*)
12696 # Portland Group f77 and f90 compilers
12697 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'
12698 tmp_addflag=' $pic_flag -Mnomain' ;;
12699 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12700 tmp_addflag=' -i_dynamic' ;;
12701 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12702 tmp_addflag=' -i_dynamic -nofor_main' ;;
12703 ifc* | ifort*) # Intel Fortran compiler
12704 tmp_addflag=' -nofor_main' ;;
12705 lf95*) # Lahey Fortran 8.1
12706 whole_archive_flag_spec=
12707 tmp_sharedflag='--shared' ;;
12708 nagfor*) # NAGFOR 5.3
12709 tmp_sharedflag='-Wl,-shared' ;;
12710 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12711 tmp_sharedflag='-qmkshrobj'
12712 tmp_addflag= ;;
12713 nvcc*) # Cuda Compiler Driver 2.2
12714 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'
12715 compiler_needs_object=yes
12716 ;;
12717 esac
12718 case `$CC -V 2>&1 | sed 5q` in
12719 *Sun\ C*) # Sun C 5.9
12720 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'
12721 compiler_needs_object=yes
12722 tmp_sharedflag='-G' ;;
12723 *Sun\ F*) # Sun Fortran 8.3
12724 tmp_sharedflag='-G' ;;
12725 esac
12726 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12727
12728 if test yes = "$supports_anon_versioning"; then
12729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12731 echo "local: *; };" >> $output_objdir/$libname.ver~
12732 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12733 fi
12734
12735 case $cc_basename in
12736 tcc*)
12737 export_dynamic_flag_spec='-rdynamic'
12738 ;;
12739 xlf* | bgf* | bgxlf* | mpixlf*)
12740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12741 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12742 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12744 if test yes = "$supports_anon_versioning"; then
12745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12747 echo "local: *; };" >> $output_objdir/$libname.ver~
12748 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12749 fi
12750 ;;
12751 esac
12752 else
12753 ld_shlibs=no
12754 fi
12755 ;;
12756
12757 netbsd* | netbsdelf*-gnu)
12758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12760 wlarc=
12761 else
12762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12764 fi
12765 ;;
12766
12767 solaris*)
12768 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12769 ld_shlibs=no
12770 cat <<_LT_EOF 1>&2
12771
12772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12773*** create shared libraries on Solaris systems. Therefore, libtool
12774*** is disabling shared libraries support. We urge you to upgrade GNU
12775*** binutils to release 2.9.1 or newer. Another option is to modify
12776*** your PATH or compiler configuration so that the native linker is
12777*** used, and then restart.
12778
12779_LT_EOF
12780 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12782 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12783 else
12784 ld_shlibs=no
12785 fi
12786 ;;
12787
12788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12789 case `$LD -v 2>&1` in
12790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12791 ld_shlibs=no
12792 cat <<_LT_EOF 1>&2
12793
12794*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12795*** reliably create shared libraries on SCO systems. Therefore, libtool
12796*** is disabling shared libraries support. We urge you to upgrade GNU
12797*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12798*** your PATH or compiler configuration so that the native linker is
12799*** used, and then restart.
12800
12801_LT_EOF
12802 ;;
12803 *)
12804 # For security reasons, it is highly recommended that you always
12805 # use absolute paths for naming shared libraries, and exclude the
12806 # DT_RUNPATH tag from executables and libraries. But doing so
12807 # requires that you compile everything twice, which is a pain.
12808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12812 else
12813 ld_shlibs=no
12814 fi
12815 ;;
12816 esac
12817 ;;
12818
12819 sunos4*)
12820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12821 wlarc=
12822 hardcode_direct=yes
12823 hardcode_shlibpath_var=no
12824 ;;
12825
12826 *)
12827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12830 else
12831 ld_shlibs=no
12832 fi
12833 ;;
12834 esac
12835
12836 if test no = "$ld_shlibs"; then
12837 runpath_var=
12838 hardcode_libdir_flag_spec=
12839 export_dynamic_flag_spec=
12840 whole_archive_flag_spec=
12841 fi
12842 else
12843 # PORTME fill in a description of your system's linker (not GNU ld)
12844 case $host_os in
12845 aix3*)
12846 allow_undefined_flag=unsupported
12847 always_export_symbols=yes
12848 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'
12849 # Note: this linker hardcodes the directories in LIBPATH if there
12850 # are no directories specified by -L.
12851 hardcode_minus_L=yes
12852 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12853 # Neither direct hardcoding nor static linking is supported with a
12854 # broken collect2.
12855 hardcode_direct=unsupported
12856 fi
12857 ;;
12858
12859 aix[4-9]*)
12860 if test ia64 = "$host_cpu"; then
12861 # On IA64, the linker does run time linking by default, so we don't
12862 # have to do anything special.
12863 aix_use_runtimelinking=no
12864 exp_sym_flag='-Bexport'
12865 no_entry_flag=
12866 else
12867 # If we're using GNU nm, then we don't want the "-C" option.
12868 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12869 # Without the "-l" option, or with the "-B" option, AIX nm treats
12870 # weak defined symbols like other global defined symbols, whereas
12871 # GNU nm marks them as "W".
12872 # While the 'weak' keyword is ignored in the Export File, we need
12873 # it in the Import File for the 'aix-soname' feature, so we have
12874 # to replace the "-B" option with "-P" for AIX nm.
12875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12876 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'
12877 else
12878 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'
12879 fi
12880 aix_use_runtimelinking=no
12881
12882 # Test if we are trying to use run time linking or normal
12883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12884 # have runtime linking enabled, and use it for executables.
12885 # For shared libraries, we enable/disable runtime linking
12886 # depending on the kind of the shared library created -
12887 # when "with_aix_soname,aix_use_runtimelinking" is:
12888 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12889 # "aix,yes" lib.so shared, rtl:yes, for executables
12890 # lib.a static archive
12891 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12892 # lib.a(lib.so.V) shared, rtl:no, for executables
12893 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12894 # lib.a(lib.so.V) shared, rtl:no
12895 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12896 # lib.a static archive
12897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12898 for ld_flag in $LDFLAGS; do
12899 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12900 aix_use_runtimelinking=yes
12901 break
12902 fi
12903 done
12904 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12905 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12906 # so we don't have lib.a shared libs to link our executables.
12907 # We have to force runtime linking in this case.
12908 aix_use_runtimelinking=yes
12909 LDFLAGS="$LDFLAGS -Wl,-brtl"
12910 fi
12911 ;;
12912 esac
12913
12914 exp_sym_flag='-bexport'
12915 no_entry_flag='-bnoentry'
12916 fi
12917
12918 # When large executables or shared objects are built, AIX ld can
12919 # have problems creating the table of contents. If linking a library
12920 # or program results in "error TOC overflow" add -mminimal-toc to
12921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12923
12924 archive_cmds=''
12925 hardcode_direct=yes
12926 hardcode_direct_absolute=yes
12927 hardcode_libdir_separator=':'
12928 link_all_deplibs=yes
12929 file_list_spec='$wl-f,'
12930 case $with_aix_soname,$aix_use_runtimelinking in
12931 aix,*) ;; # traditional, no import file
12932 svr4,* | *,yes) # use import file
12933 # The Import File defines what to hardcode.
12934 hardcode_direct=no
12935 hardcode_direct_absolute=no
12936 ;;
12937 esac
12938
12939 if test yes = "$GCC"; then
12940 case $host_os in aix4.[012]|aix4.[012].*)
12941 # We only want to do this on AIX 4.2 and lower, the check
12942 # below for broken collect2 doesn't work under 4.3+
12943 collect2name=`$CC -print-prog-name=collect2`
12944 if test -f "$collect2name" &&
12945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12946 then
12947 # We have reworked collect2
12948 :
12949 else
12950 # We have old collect2
12951 hardcode_direct=unsupported
12952 # It fails to find uninstalled libraries when the uninstalled
12953 # path is not listed in the libpath. Setting hardcode_minus_L
12954 # to unsupported forces relinking
12955 hardcode_minus_L=yes
12956 hardcode_libdir_flag_spec='-L$libdir'
12957 hardcode_libdir_separator=
12958 fi
12959 ;;
12960 esac
12961 shared_flag='-shared'
12962 if test yes = "$aix_use_runtimelinking"; then
12963 shared_flag="$shared_flag "'$wl-G'
12964 fi
12965 # Need to ensure runtime linking is disabled for the traditional
12966 # shared library, or the linker may eventually find shared libraries
12967 # /with/ Import File - we do not want to mix them.
12968 shared_flag_aix='-shared'
12969 shared_flag_svr4='-shared $wl-G'
12970 else
12971 # not using gcc
12972 if test ia64 = "$host_cpu"; then
12973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12974 # chokes on -Wl,-G. The following line is correct:
12975 shared_flag='-G'
12976 else
12977 if test yes = "$aix_use_runtimelinking"; then
12978 shared_flag='$wl-G'
12979 else
12980 shared_flag='$wl-bM:SRE'
12981 fi
12982 shared_flag_aix='$wl-bM:SRE'
12983 shared_flag_svr4='$wl-G'
12984 fi
12985 fi
12986
12987 export_dynamic_flag_spec='$wl-bexpall'
12988 # It seems that -bexpall does not export symbols beginning with
12989 # underscore (_), so it is better to generate a list of symbols to export.
12990 always_export_symbols=yes
12991 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12992 # Warning - without using the other runtime loading flags (-brtl),
12993 # -berok will link without error, but may produce a broken library.
12994 allow_undefined_flag='-berok'
12995 # Determine the default libpath from the value encoded in an
12996 # empty executable.
12997 if test set = "${lt_cv_aix_libpath+set}"; then
12998 aix_libpath=$lt_cv_aix_libpath
12999else
13000 if ${lt_cv_aix_libpath_+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002else
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h. */
13005
13006int main (void)
13007{
13008
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013if ac_fn_c_try_link "$LINENO"; then :
13014
13015 lt_aix_libpath_sed='
13016 /Import File Strings/,/^$/ {
13017 /^0/ {
13018 s/^0 *\([^ ]*\) *$/\1/
13019 p
13020 }
13021 }'
13022 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13023 # Check for a 64-bit object if we didn't find anything.
13024 if test -z "$lt_cv_aix_libpath_"; then
13025 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13026 fi
13027fi
13028rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13030 if test -z "$lt_cv_aix_libpath_"; then
13031 lt_cv_aix_libpath_=/usr/lib:/lib
13032 fi
13033
13034fi
13035
13036 aix_libpath=$lt_cv_aix_libpath_
13037fi
13038
13039 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13040 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
13041 else
13042 if test ia64 = "$host_cpu"; then
13043 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13044 allow_undefined_flag="-z nodefs"
13045 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"
13046 else
13047 # Determine the default libpath from the value encoded in an
13048 # empty executable.
13049 if test set = "${lt_cv_aix_libpath+set}"; then
13050 aix_libpath=$lt_cv_aix_libpath
13051else
13052 if ${lt_cv_aix_libpath_+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054else
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056/* end confdefs.h. */
13057
13058int main (void)
13059{
13060
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065if ac_fn_c_try_link "$LINENO"; then :
13066
13067 lt_aix_libpath_sed='
13068 /Import File Strings/,/^$/ {
13069 /^0/ {
13070 s/^0 *\([^ ]*\) *$/\1/
13071 p
13072 }
13073 }'
13074 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13075 # Check for a 64-bit object if we didn't find anything.
13076 if test -z "$lt_cv_aix_libpath_"; then
13077 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13078 fi
13079fi
13080rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 if test -z "$lt_cv_aix_libpath_"; then
13083 lt_cv_aix_libpath_=/usr/lib:/lib
13084 fi
13085
13086fi
13087
13088 aix_libpath=$lt_cv_aix_libpath_
13089fi
13090
13091 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13092 # Warning - without using the other run time loading flags,
13093 # -berok will link without error, but may produce a broken library.
13094 no_undefined_flag=' $wl-bernotok'
13095 allow_undefined_flag=' $wl-berok'
13096 if test yes = "$with_gnu_ld"; then
13097 # We only use this code for GNU lds that support --whole-archive.
13098 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13099 else
13100 # Exported symbols can be pulled into shared objects from archives
13101 whole_archive_flag_spec='$convenience'
13102 fi
13103 archive_cmds_need_lc=yes
13104 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13105 # -brtl affects multiple linker settings, -berok does not and is overridden later
13106 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13107 if test svr4 != "$with_aix_soname"; then
13108 # This is similar to how AIX traditionally builds its shared libraries.
13109 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'
13110 fi
13111 if test aix != "$with_aix_soname"; then
13112 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'
13113 else
13114 # used by -dlpreopen to get the symbols
13115 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13116 fi
13117 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13118 fi
13119 fi
13120 ;;
13121
13122 amigaos*)
13123 case $host_cpu in
13124 powerpc)
13125 # see comment about AmigaOS4 .so support
13126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13127 archive_expsym_cmds=''
13128 ;;
13129 m68k)
13130 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)'
13131 hardcode_libdir_flag_spec='-L$libdir'
13132 hardcode_minus_L=yes
13133 ;;
13134 esac
13135 ;;
13136
13137 bsdi[45]*)
13138 export_dynamic_flag_spec=-rdynamic
13139 ;;
13140
13141 cygwin* | mingw* | pw32* | cegcc*)
13142 # When not using gcc, we currently assume that we are using
13143 # Microsoft Visual C++.
13144 # hardcode_libdir_flag_spec is actually meaningless, as there is
13145 # no search path for DLLs.
13146 case $cc_basename in
13147 cl*)
13148 # Native MSVC
13149 hardcode_libdir_flag_spec=' '
13150 allow_undefined_flag=unsupported
13151 always_export_symbols=yes
13152 file_list_spec='@'
13153 # Tell ltmain to make .lib files, not .a files.
13154 libext=lib
13155 # Tell ltmain to make .dll files, not .so files.
13156 shrext_cmds=.dll
13157 # FIXME: Setting linknames here is a bad hack.
13158 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13159 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13160 cp "$export_symbols" "$output_objdir/$soname.def";
13161 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13162 else
13163 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13164 fi~
13165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13166 linknames='
13167 # The linker will not automatically build a static lib if we build a DLL.
13168 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13169 enable_shared_with_static_runtimes=yes
13170 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13172 # Don't use ranlib
13173 old_postinstall_cmds='chmod 644 $oldlib'
13174 postlink_cmds='lt_outputfile="@OUTPUT@"~
13175 lt_tool_outputfile="@TOOL_OUTPUT@"~
13176 case $lt_outputfile in
13177 *.exe|*.EXE) ;;
13178 *)
13179 lt_outputfile=$lt_outputfile.exe
13180 lt_tool_outputfile=$lt_tool_outputfile.exe
13181 ;;
13182 esac~
13183 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13185 $RM "$lt_outputfile.manifest";
13186 fi'
13187 ;;
13188 *)
13189 # Assume MSVC wrapper
13190 hardcode_libdir_flag_spec=' '
13191 allow_undefined_flag=unsupported
13192 # Tell ltmain to make .lib files, not .a files.
13193 libext=lib
13194 # Tell ltmain to make .dll files, not .so files.
13195 shrext_cmds=.dll
13196 # FIXME: Setting linknames here is a bad hack.
13197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13198 # The linker will automatically build a .lib file if we build a DLL.
13199 old_archive_from_new_cmds='true'
13200 # FIXME: Should let the user specify the lib program.
13201 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13202 enable_shared_with_static_runtimes=yes
13203 ;;
13204 esac
13205 ;;
13206
13207 darwin* | rhapsody*)
13208
13209
13210 archive_cmds_need_lc=no
13211 hardcode_direct=no
13212 hardcode_automatic=yes
13213 hardcode_shlibpath_var=unsupported
13214 if test yes = "$lt_cv_ld_force_load"; then
13215 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\"`'
13216
13217 else
13218 whole_archive_flag_spec=''
13219 fi
13220 link_all_deplibs=yes
13221 allow_undefined_flag=$_lt_dar_allow_undefined
13222 case $cc_basename in
13223 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13224 *) _lt_dar_can_shared=$GCC ;;
13225 esac
13226 if test yes = "$_lt_dar_can_shared"; then
13227 output_verbose_link_cmd=func_echo_all
13228 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13229 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13230 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"
13231 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"
13232
13233 else
13234 ld_shlibs=no
13235 fi
13236
13237 ;;
13238
13239 dgux*)
13240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241 hardcode_libdir_flag_spec='-L$libdir'
13242 hardcode_shlibpath_var=no
13243 ;;
13244
13245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13246 # support. Future versions do this automatically, but an explicit c++rt0.o
13247 # does not break anything, and helps significantly (at the cost of a little
13248 # extra space).
13249 freebsd2.2*)
13250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13251 hardcode_libdir_flag_spec='-R$libdir'
13252 hardcode_direct=yes
13253 hardcode_shlibpath_var=no
13254 ;;
13255
13256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13257 freebsd2.*)
13258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259 hardcode_direct=yes
13260 hardcode_minus_L=yes
13261 hardcode_shlibpath_var=no
13262 ;;
13263
13264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13265 freebsd* | dragonfly*)
13266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13267 hardcode_libdir_flag_spec='-R$libdir'
13268 hardcode_direct=yes
13269 hardcode_shlibpath_var=no
13270 ;;
13271
13272 hpux9*)
13273 if test yes = "$GCC"; then
13274 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'
13275 else
13276 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'
13277 fi
13278 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13279 hardcode_libdir_separator=:
13280 hardcode_direct=yes
13281
13282 # hardcode_minus_L: Not really in the search PATH,
13283 # but as the default location of the library.
13284 hardcode_minus_L=yes
13285 export_dynamic_flag_spec='$wl-E'
13286 ;;
13287
13288 hpux10*)
13289 if test yes,no = "$GCC,$with_gnu_ld"; then
13290 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13291 else
13292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13293 fi
13294 if test no = "$with_gnu_ld"; then
13295 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13296 hardcode_libdir_separator=:
13297 hardcode_direct=yes
13298 hardcode_direct_absolute=yes
13299 export_dynamic_flag_spec='$wl-E'
13300 # hardcode_minus_L: Not really in the search PATH,
13301 # but as the default location of the library.
13302 hardcode_minus_L=yes
13303 fi
13304 ;;
13305
13306 hpux11*)
13307 if test yes,no = "$GCC,$with_gnu_ld"; then
13308 case $host_cpu in
13309 hppa*64*)
13310 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 ;;
13312 ia64*)
13313 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13314 ;;
13315 *)
13316 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13317 ;;
13318 esac
13319 else
13320 case $host_cpu in
13321 hppa*64*)
13322 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13323 ;;
13324 ia64*)
13325 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13326 ;;
13327 *)
13328
13329 # Older versions of the 11.00 compiler do not understand -b yet
13330 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13332$as_echo_n "checking if $CC understands -b... " >&6; }
13333if ${lt_cv_prog_compiler__b+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335else
13336 lt_cv_prog_compiler__b=no
13337 save_LDFLAGS=$LDFLAGS
13338 LDFLAGS="$LDFLAGS -b"
13339 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13340 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13341 # The linker can only warn and ignore the option if not recognized
13342 # So say no if there are warnings
13343 if test -s conftest.err; then
13344 # Append any errors to the config.log.
13345 cat conftest.err 1>&5
13346 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13348 if diff conftest.exp conftest.er2 >/dev/null; then
13349 lt_cv_prog_compiler__b=yes
13350 fi
13351 else
13352 lt_cv_prog_compiler__b=yes
13353 fi
13354 fi
13355 $RM -r conftest*
13356 LDFLAGS=$save_LDFLAGS
13357
13358fi
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13360$as_echo "$lt_cv_prog_compiler__b" >&6; }
13361
13362if test yes = "$lt_cv_prog_compiler__b"; then
13363 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13364else
13365 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13366fi
13367
13368 ;;
13369 esac
13370 fi
13371 if test no = "$with_gnu_ld"; then
13372 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13373 hardcode_libdir_separator=:
13374
13375 case $host_cpu in
13376 hppa*64*|ia64*)
13377 hardcode_direct=no
13378 hardcode_shlibpath_var=no
13379 ;;
13380 *)
13381 hardcode_direct=yes
13382 hardcode_direct_absolute=yes
13383 export_dynamic_flag_spec='$wl-E'
13384
13385 # hardcode_minus_L: Not really in the search PATH,
13386 # but as the default location of the library.
13387 hardcode_minus_L=yes
13388 ;;
13389 esac
13390 fi
13391 ;;
13392
13393 irix5* | irix6* | nonstopux*)
13394 if test yes = "$GCC"; then
13395 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'
13396 # Try to use the -exported_symbol ld option, if it does not
13397 # work, assume that -exports_file does not work either and
13398 # implicitly export all symbols.
13399 # This should be the same for all languages, so no per-tag cache variable.
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13401$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13402if ${lt_cv_irix_exported_symbol+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404else
13405 save_LDFLAGS=$LDFLAGS
13406 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h. */
13409int foo (void) { return 0; }
13410_ACEOF
13411if ac_fn_c_try_link "$LINENO"; then :
13412 lt_cv_irix_exported_symbol=yes
13413else
13414 lt_cv_irix_exported_symbol=no
13415fi
13416rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LDFLAGS=$save_LDFLAGS
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13421$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13422 if test yes = "$lt_cv_irix_exported_symbol"; then
13423 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'
13424 fi
13425 link_all_deplibs=no
13426 else
13427 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'
13428 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'
13429 fi
13430 archive_cmds_need_lc='no'
13431 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13432 hardcode_libdir_separator=:
13433 inherit_rpath=yes
13434 link_all_deplibs=yes
13435 ;;
13436
13437 linux*)
13438 case $cc_basename in
13439 tcc*)
13440 # Fabrice Bellard et al's Tiny C Compiler
13441 ld_shlibs=yes
13442 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13443 ;;
13444 esac
13445 ;;
13446
13447 netbsd* | netbsdelf*-gnu)
13448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13450 else
13451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13452 fi
13453 hardcode_libdir_flag_spec='-R$libdir'
13454 hardcode_direct=yes
13455 hardcode_shlibpath_var=no
13456 ;;
13457
13458 newsos6)
13459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_direct=yes
13461 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13462 hardcode_libdir_separator=:
13463 hardcode_shlibpath_var=no
13464 ;;
13465
13466 *nto* | *qnx*)
13467 ;;
13468
13469 openbsd* | bitrig*)
13470 if test -f /usr/libexec/ld.so; then
13471 hardcode_direct=yes
13472 hardcode_shlibpath_var=no
13473 hardcode_direct_absolute=yes
13474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13477 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13478 export_dynamic_flag_spec='$wl-E'
13479 else
13480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13481 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13482 fi
13483 else
13484 ld_shlibs=no
13485 fi
13486 ;;
13487
13488 os2*)
13489 hardcode_libdir_flag_spec='-L$libdir'
13490 hardcode_minus_L=yes
13491 allow_undefined_flag=unsupported
13492 shrext_cmds=.dll
13493 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13494 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13495 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13496 $ECHO EXPORTS >> $output_objdir/$libname.def~
13497 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13498 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13499 emximp -o $lib $output_objdir/$libname.def'
13500 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13501 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13502 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13503 $ECHO EXPORTS >> $output_objdir/$libname.def~
13504 prefix_cmds="$SED"~
13505 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13506 prefix_cmds="$prefix_cmds -e 1d";
13507 fi~
13508 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13509 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13510 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13511 emximp -o $lib $output_objdir/$libname.def'
13512 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13513 enable_shared_with_static_runtimes=yes
13514 ;;
13515
13516 osf3*)
13517 if test yes = "$GCC"; then
13518 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13519 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'
13520 else
13521 allow_undefined_flag=' -expect_unresolved \*'
13522 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'
13523 fi
13524 archive_cmds_need_lc='no'
13525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13526 hardcode_libdir_separator=:
13527 ;;
13528
13529 osf4* | osf5*) # as osf3* with the addition of -msym flag
13530 if test yes = "$GCC"; then
13531 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13532 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'
13533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13534 else
13535 allow_undefined_flag=' -expect_unresolved \*'
13536 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'
13537 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~
13538 $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'
13539
13540 # Both c and cxx compiler support -rpath directly
13541 hardcode_libdir_flag_spec='-rpath $libdir'
13542 fi
13543 archive_cmds_need_lc='no'
13544 hardcode_libdir_separator=:
13545 ;;
13546
13547 solaris*)
13548 no_undefined_flag=' -z defs'
13549 if test yes = "$GCC"; then
13550 wlarc='$wl'
13551 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $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'
13554 else
13555 case `$CC -V 2>&1` in
13556 *"Compilers 5.0"*)
13557 wlarc=''
13558 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13561 ;;
13562 *)
13563 wlarc='$wl'
13564 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13567 ;;
13568 esac
13569 fi
13570 hardcode_libdir_flag_spec='-R$libdir'
13571 hardcode_shlibpath_var=no
13572 case $host_os in
13573 solaris2.[0-5] | solaris2.[0-5].*) ;;
13574 *)
13575 # The compiler driver will combine and reorder linker options,
13576 # but understands '-z linker_flag'. GCC discards it without '$wl',
13577 # but is careful enough not to reorder.
13578 # Supported since Solaris 2.6 (maybe 2.5.1?)
13579 if test yes = "$GCC"; then
13580 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13581 else
13582 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13583 fi
13584 ;;
13585 esac
13586 link_all_deplibs=yes
13587 ;;
13588
13589 sunos4*)
13590 if test sequent = "$host_vendor"; then
13591 # Use $CC to link under sequent, because it throws in some extra .o
13592 # files that make .init and .fini sections work.
13593 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13594 else
13595 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13596 fi
13597 hardcode_libdir_flag_spec='-L$libdir'
13598 hardcode_direct=yes
13599 hardcode_minus_L=yes
13600 hardcode_shlibpath_var=no
13601 ;;
13602
13603 sysv4)
13604 case $host_vendor in
13605 sni)
13606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_direct=yes # is this really true???
13608 ;;
13609 siemens)
13610 ## LD is ld it makes a PLAMLIB
13611 ## CC just makes a GrossModule.
13612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13613 reload_cmds='$CC -r -o $output$reload_objs'
13614 hardcode_direct=no
13615 ;;
13616 motorola)
13617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13619 ;;
13620 esac
13621 runpath_var='LD_RUN_PATH'
13622 hardcode_shlibpath_var=no
13623 ;;
13624
13625 sysv4.3*)
13626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_shlibpath_var=no
13628 export_dynamic_flag_spec='-Bexport'
13629 ;;
13630
13631 sysv4*MP*)
13632 if test -d /usr/nec; then
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_shlibpath_var=no
13635 runpath_var=LD_RUN_PATH
13636 hardcode_runpath_var=yes
13637 ld_shlibs=yes
13638 fi
13639 ;;
13640
13641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13642 no_undefined_flag='$wl-z,text'
13643 archive_cmds_need_lc=no
13644 hardcode_shlibpath_var=no
13645 runpath_var='LD_RUN_PATH'
13646
13647 if test yes = "$GCC"; then
13648 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 else
13651 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653 fi
13654 ;;
13655
13656 sysv5* | sco3.2v5* | sco5v6*)
13657 # Note: We CANNOT use -z defs as we might desire, because we do not
13658 # link with -lc, and that would cause any symbols used from libc to
13659 # always be unresolved, which means just about no library would
13660 # ever link correctly. If we're not using GNU ld we use -z text
13661 # though, which does catch some bad symbols but isn't as heavy-handed
13662 # as -z defs.
13663 no_undefined_flag='$wl-z,text'
13664 allow_undefined_flag='$wl-z,nodefs'
13665 archive_cmds_need_lc=no
13666 hardcode_shlibpath_var=no
13667 hardcode_libdir_flag_spec='$wl-R,$libdir'
13668 hardcode_libdir_separator=':'
13669 link_all_deplibs=yes
13670 export_dynamic_flag_spec='$wl-Bexport'
13671 runpath_var='LD_RUN_PATH'
13672
13673 if test yes = "$GCC"; then
13674 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 else
13677 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 fi
13680 ;;
13681
13682 uts4*)
13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_shlibpath_var=no
13686 ;;
13687
13688 *)
13689 ld_shlibs=no
13690 ;;
13691 esac
13692
13693 if test sni = "$host_vendor"; then
13694 case $host in
13695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13696 export_dynamic_flag_spec='$wl-Blargedynsym'
13697 ;;
13698 esac
13699 fi
13700 fi
13701
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13703$as_echo "$ld_shlibs" >&6; }
13704test no = "$ld_shlibs" && can_build_shared=no
13705
13706with_gnu_ld=$with_gnu_ld
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722#
13723# Do we need to explicitly link libc?
13724#
13725case "x$archive_cmds_need_lc" in
13726x|xyes)
13727 # Assume -lc should be added
13728 archive_cmds_need_lc=yes
13729
13730 if test yes,yes = "$GCC,$enable_shared"; then
13731 case $archive_cmds in
13732 *'~'*)
13733 # FIXME: we may have to deal with multi-command sequences.
13734 ;;
13735 '$CC '*)
13736 # Test whether the compiler implicitly links with -lc since on some
13737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13738 # to ld, don't add -lc before -lgcc.
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13740$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13741if ${lt_cv_archive_cmds_need_lc+:} false; then :
13742 $as_echo_n "(cached) " >&6
13743else
13744 $RM conftest*
13745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13746
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13749 ac_status=$?
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; } 2>conftest.err; then
13752 soname=conftest
13753 lib=conftest
13754 libobjs=conftest.$ac_objext
13755 deplibs=
13756 wl=$lt_prog_compiler_wl
13757 pic_flag=$lt_prog_compiler_pic
13758 compiler_flags=-v
13759 linker_flags=-v
13760 verstring=
13761 output_objdir=.
13762 libname=conftest
13763 lt_save_allow_undefined_flag=$allow_undefined_flag
13764 allow_undefined_flag=
13765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13767 ac_status=$?
13768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769 test $ac_status = 0; }
13770 then
13771 lt_cv_archive_cmds_need_lc=no
13772 else
13773 lt_cv_archive_cmds_need_lc=yes
13774 fi
13775 allow_undefined_flag=$lt_save_allow_undefined_flag
13776 else
13777 cat conftest.err 1>&5
13778 fi
13779 $RM conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13783$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13784 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13785 ;;
13786 esac
13787 fi
13788 ;;
13789esac
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
13938
13939
13940
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13943$as_echo_n "checking dynamic linker characteristics... " >&6; }
13944
13945if test yes = "$GCC"; then
13946 case $host_os in
13947 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13948 *) lt_awk_arg='/^libraries:/' ;;
13949 esac
13950 case $host_os in
13951 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13952 *) lt_sed_strip_eq='s|=/|/|g' ;;
13953 esac
13954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13955 case $lt_search_path_spec in
13956 *\;*)
13957 # if the path contains ";" then we assume it to be the separator
13958 # otherwise default to the standard path separator (i.e. ":") - it is
13959 # assumed that no part of a normal pathname contains ";" but that should
13960 # okay in the real world where ";" in dirpaths is itself problematic.
13961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13962 ;;
13963 *)
13964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13965 ;;
13966 esac
13967 # Ok, now we have the path, separated by spaces, we can step through it
13968 # and add multilib dir if necessary...
13969 lt_tmp_lt_search_path_spec=
13970 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13971 # ...but if some path component already ends with the multilib dir we assume
13972 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13973 case "$lt_multi_os_dir; $lt_search_path_spec " in
13974 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13975 lt_multi_os_dir=
13976 ;;
13977 esac
13978 for lt_sys_path in $lt_search_path_spec; do
13979 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13980 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13981 elif test -n "$lt_multi_os_dir"; then
13982 test -d "$lt_sys_path" && \
13983 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13984 fi
13985 done
13986 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13987BEGIN {RS = " "; FS = "/|\n";} {
13988 lt_foo = "";
13989 lt_count = 0;
13990 for (lt_i = NF; lt_i > 0; lt_i--) {
13991 if ($lt_i != "" && $lt_i != ".") {
13992 if ($lt_i == "..") {
13993 lt_count++;
13994 } else {
13995 if (lt_count == 0) {
13996 lt_foo = "/" $lt_i lt_foo;
13997 } else {
13998 lt_count--;
13999 }
14000 }
14001 }
14002 }
14003 if (lt_foo != "") { lt_freq[lt_foo]++; }
14004 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14005}'`
14006 # AWK program above erroneously prepends '/' to C:/dos/paths
14007 # for these hosts.
14008 case $host_os in
14009 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14010 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14011 esac
14012 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14013else
14014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14015fi
14016library_names_spec=
14017libname_spec='lib$name'
14018soname_spec=
14019shrext_cmds=.so
14020postinstall_cmds=
14021postuninstall_cmds=
14022finish_cmds=
14023finish_eval=
14024shlibpath_var=
14025shlibpath_overrides_runpath=unknown
14026version_type=none
14027dynamic_linker="$host_os ld.so"
14028sys_lib_dlsearch_path_spec="/lib /usr/lib"
14029need_lib_prefix=unknown
14030hardcode_into_libs=no
14031
14032# when you set need_version to no, make sure it does not cause -set_version
14033# flags to be left without arguments
14034need_version=unknown
14035
14036
14037
14038case $host_os in
14039aix3*)
14040 version_type=linux # correct to gnu/linux during the next big refactor
14041 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14042 shlibpath_var=LIBPATH
14043
14044 # AIX 3 has no versioning support, so we append a major version to the name.
14045 soname_spec='$libname$release$shared_ext$major'
14046 ;;
14047
14048aix[4-9]*)
14049 version_type=linux # correct to gnu/linux during the next big refactor
14050 need_lib_prefix=no
14051 need_version=no
14052 hardcode_into_libs=yes
14053 if test ia64 = "$host_cpu"; then
14054 # AIX 5 supports IA64
14055 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14056 shlibpath_var=LD_LIBRARY_PATH
14057 else
14058 # With GCC up to 2.95.x, collect2 would create an import file
14059 # for dependence libraries. The import file would start with
14060 # the line '#! .'. This would cause the generated library to
14061 # depend on '.', always an invalid library. This was fixed in
14062 # development snapshots of GCC prior to 3.0.
14063 case $host_os in
14064 aix4 | aix4.[01] | aix4.[01].*)
14065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14066 echo ' yes '
14067 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14068 :
14069 else
14070 can_build_shared=no
14071 fi
14072 ;;
14073 esac
14074 # Using Import Files as archive members, it is possible to support
14075 # filename-based versioning of shared library archives on AIX. While
14076 # this would work for both with and without runtime linking, it will
14077 # prevent static linking of such archives. So we do filename-based
14078 # shared library versioning with .so extension only, which is used
14079 # when both runtime linking and shared linking is enabled.
14080 # Unfortunately, runtime linking may impact performance, so we do
14081 # not want this to be the default eventually. Also, we use the
14082 # versioned .so libs for executables only if there is the -brtl
14083 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14084 # To allow for filename-based versioning support, we need to create
14085 # libNAME.so.V as an archive file, containing:
14086 # *) an Import File, referring to the versioned filename of the
14087 # archive as well as the shared archive member, telling the
14088 # bitwidth (32 or 64) of that shared object, and providing the
14089 # list of exported symbols of that shared object, eventually
14090 # decorated with the 'weak' keyword
14091 # *) the shared object with the F_LOADONLY flag set, to really avoid
14092 # it being seen by the linker.
14093 # At run time we better use the real file rather than another symlink,
14094 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14095
14096 case $with_aix_soname,$aix_use_runtimelinking in
14097 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14098 # soname into executable. Probably we can add versioning support to
14099 # collect2, so additional links can be useful in future.
14100 aix,yes) # traditional libtool
14101 dynamic_linker='AIX unversionable lib.so'
14102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14103 # instead of lib<name>.a to let people know that these are not
14104 # typical AIX shared libraries.
14105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14106 ;;
14107 aix,no) # traditional AIX only
14108 dynamic_linker='AIX lib.a(lib.so.V)'
14109 # We preserve .a as extension for shared libraries through AIX4.2
14110 # and later when we are not doing run time linking.
14111 library_names_spec='$libname$release.a $libname.a'
14112 soname_spec='$libname$release$shared_ext$major'
14113 ;;
14114 svr4,*) # full svr4 only
14115 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14116 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14117 # We do not specify a path in Import Files, so LIBPATH fires.
14118 shlibpath_overrides_runpath=yes
14119 ;;
14120 *,yes) # both, prefer svr4
14121 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14122 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14123 # unpreferred sharedlib libNAME.a needs extra handling
14124 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"'
14125 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"'
14126 # We do not specify a path in Import Files, so LIBPATH fires.
14127 shlibpath_overrides_runpath=yes
14128 ;;
14129 *,no) # both, prefer aix
14130 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14131 library_names_spec='$libname$release.a $libname.a'
14132 soname_spec='$libname$release$shared_ext$major'
14133 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14134 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)'
14135 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"'
14136 ;;
14137 esac
14138 shlibpath_var=LIBPATH
14139 fi
14140 ;;
14141
14142amigaos*)
14143 case $host_cpu in
14144 powerpc)
14145 # Since July 2007 AmigaOS4 officially supports .so libraries.
14146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14148 ;;
14149 m68k)
14150 library_names_spec='$libname.ixlibrary $libname.a'
14151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14152 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'
14153 ;;
14154 esac
14155 ;;
14156
14157beos*)
14158 library_names_spec='$libname$shared_ext'
14159 dynamic_linker="$host_os ld.so"
14160 shlibpath_var=LIBRARY_PATH
14161 ;;
14162
14163bsdi[45]*)
14164 version_type=linux # correct to gnu/linux during the next big refactor
14165 need_version=no
14166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14167 soname_spec='$libname$release$shared_ext$major'
14168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14172 # the default ld.so.conf also contains /usr/contrib/lib and
14173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14174 # libtool to hard-code these into programs
14175 ;;
14176
14177cygwin* | mingw* | pw32* | cegcc*)
14178 version_type=windows
14179 shrext_cmds=.dll
14180 need_version=no
14181 need_lib_prefix=no
14182
14183 case $GCC,$cc_basename in
14184 yes,*)
14185 # gcc
14186 library_names_spec='$libname.dll.a'
14187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14188 postinstall_cmds='base_file=`basename \$file`~
14189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14190 dldir=$destdir/`dirname \$dlpath`~
14191 test -d \$dldir || mkdir -p \$dldir~
14192 $install_prog $dir/$dlname \$dldir/$dlname~
14193 chmod a+x \$dldir/$dlname~
14194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14196 fi'
14197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14198 dlpath=$dir/\$dldll~
14199 $RM \$dlpath'
14200 shlibpath_overrides_runpath=yes
14201
14202 case $host_os in
14203 cygwin*)
14204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14205 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14206
14207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14208 ;;
14209 mingw* | cegcc*)
14210 # MinGW DLLs use traditional 'lib' prefix
14211 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14212 ;;
14213 pw32*)
14214 # pw32 DLLs use 'pw' prefix rather than 'lib'
14215 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14216 ;;
14217 esac
14218 dynamic_linker='Win32 ld.exe'
14219 ;;
14220
14221 *,cl*)
14222 # Native MSVC
14223 libname_spec='$name'
14224 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14225 library_names_spec='$libname.dll.lib'
14226
14227 case $build_os in
14228 mingw*)
14229 sys_lib_search_path_spec=
14230 lt_save_ifs=$IFS
14231 IFS=';'
14232 for lt_path in $LIB
14233 do
14234 IFS=$lt_save_ifs
14235 # Let DOS variable expansion print the short 8.3 style file name.
14236 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14237 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14238 done
14239 IFS=$lt_save_ifs
14240 # Convert to MSYS style.
14241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14242 ;;
14243 cygwin*)
14244 # Convert to unix form, then to dos form, then back to unix form
14245 # but this time dos style (no spaces!) so that the unix form looks
14246 # like /cygdrive/c/PROGRA~1:/cygdr...
14247 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14248 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14249 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14250 ;;
14251 *)
14252 sys_lib_search_path_spec=$LIB
14253 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14254 # It is most probably a Windows format PATH.
14255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14256 else
14257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14258 fi
14259 # FIXME: find the short name or the path components, as spaces are
14260 # common. (e.g. "Program Files" -> "PROGRA~1")
14261 ;;
14262 esac
14263
14264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14265 postinstall_cmds='base_file=`basename \$file`~
14266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14267 dldir=$destdir/`dirname \$dlpath`~
14268 test -d \$dldir || mkdir -p \$dldir~
14269 $install_prog $dir/$dlname \$dldir/$dlname'
14270 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14271 dlpath=$dir/\$dldll~
14272 $RM \$dlpath'
14273 shlibpath_overrides_runpath=yes
14274 dynamic_linker='Win32 link.exe'
14275 ;;
14276
14277 *)
14278 # Assume MSVC wrapper
14279 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14280 dynamic_linker='Win32 ld.exe'
14281 ;;
14282 esac
14283 # FIXME: first we should search . and the directory the executable is in
14284 shlibpath_var=PATH
14285 ;;
14286
14287darwin* | rhapsody*)
14288 dynamic_linker="$host_os dyld"
14289 version_type=darwin
14290 need_lib_prefix=no
14291 need_version=no
14292 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14293 soname_spec='$libname$release$major$shared_ext'
14294 shlibpath_overrides_runpath=yes
14295 shlibpath_var=DYLD_LIBRARY_PATH
14296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14297
14298 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14300 ;;
14301
14302dgux*)
14303 version_type=linux # correct to gnu/linux during the next big refactor
14304 need_lib_prefix=no
14305 need_version=no
14306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14307 soname_spec='$libname$release$shared_ext$major'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 ;;
14310
14311freebsd* | dragonfly*)
14312 # DragonFly does not have aout. When/if they implement a new
14313 # versioning mechanism, adjust this.
14314 if test -x /usr/bin/objformat; then
14315 objformat=`/usr/bin/objformat`
14316 else
14317 case $host_os in
14318 freebsd[23].*) objformat=aout ;;
14319 *) objformat=elf ;;
14320 esac
14321 fi
14322 version_type=freebsd-$objformat
14323 case $version_type in
14324 freebsd-elf*)
14325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14326 soname_spec='$libname$release$shared_ext$major'
14327 need_version=no
14328 need_lib_prefix=no
14329 ;;
14330 freebsd-*)
14331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14332 need_version=yes
14333 ;;
14334 esac
14335 shlibpath_var=LD_LIBRARY_PATH
14336 case $host_os in
14337 freebsd2.*)
14338 shlibpath_overrides_runpath=yes
14339 ;;
14340 freebsd3.[01]* | freebsdelf3.[01]*)
14341 shlibpath_overrides_runpath=yes
14342 hardcode_into_libs=yes
14343 ;;
14344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14346 shlibpath_overrides_runpath=no
14347 hardcode_into_libs=yes
14348 ;;
14349 *) # from 4.6 on, and DragonFly
14350 shlibpath_overrides_runpath=yes
14351 hardcode_into_libs=yes
14352 ;;
14353 esac
14354 ;;
14355
14356haiku*)
14357 version_type=linux # correct to gnu/linux during the next big refactor
14358 need_lib_prefix=no
14359 need_version=no
14360 dynamic_linker="$host_os runtime_loader"
14361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14362 soname_spec='$libname$release$shared_ext$major'
14363 shlibpath_var=LIBRARY_PATH
14364 shlibpath_overrides_runpath=no
14365 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14366 hardcode_into_libs=yes
14367 ;;
14368
14369hpux9* | hpux10* | hpux11*)
14370 # Give a soname corresponding to the major version so that dld.sl refuses to
14371 # link against other versions.
14372 version_type=sunos
14373 need_lib_prefix=no
14374 need_version=no
14375 case $host_cpu in
14376 ia64*)
14377 shrext_cmds='.so'
14378 hardcode_into_libs=yes
14379 dynamic_linker="$host_os dld.so"
14380 shlibpath_var=LD_LIBRARY_PATH
14381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14383 soname_spec='$libname$release$shared_ext$major'
14384 if test 32 = "$HPUX_IA64_MODE"; then
14385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14386 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14387 else
14388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14389 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14390 fi
14391 ;;
14392 hppa*64*)
14393 shrext_cmds='.sl'
14394 hardcode_into_libs=yes
14395 dynamic_linker="$host_os dld.sl"
14396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14399 soname_spec='$libname$release$shared_ext$major'
14400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14402 ;;
14403 *)
14404 shrext_cmds='.sl'
14405 dynamic_linker="$host_os dld.sl"
14406 shlibpath_var=SHLIB_PATH
14407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14409 soname_spec='$libname$release$shared_ext$major'
14410 ;;
14411 esac
14412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14413 postinstall_cmds='chmod 555 $lib'
14414 # or fails outright, so override atomically:
14415 install_override_mode=555
14416 ;;
14417
14418interix[3-9]*)
14419 version_type=linux # correct to gnu/linux during the next big refactor
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14423 soname_spec='$libname$release$shared_ext$major'
14424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 shlibpath_overrides_runpath=no
14427 hardcode_into_libs=yes
14428 ;;
14429
14430irix5* | irix6* | nonstopux*)
14431 case $host_os in
14432 nonstopux*) version_type=nonstopux ;;
14433 *)
14434 if test yes = "$lt_cv_prog_gnu_ld"; then
14435 version_type=linux # correct to gnu/linux during the next big refactor
14436 else
14437 version_type=irix
14438 fi ;;
14439 esac
14440 need_lib_prefix=no
14441 need_version=no
14442 soname_spec='$libname$release$shared_ext$major'
14443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14444 case $host_os in
14445 irix5* | nonstopux*)
14446 libsuff= shlibsuff=
14447 ;;
14448 *)
14449 case $LD in # libtool.m4 will add one of these switches to LD
14450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14451 libsuff= shlibsuff= libmagic=32-bit;;
14452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14453 libsuff=32 shlibsuff=N32 libmagic=N32;;
14454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14456 *) libsuff= shlibsuff= libmagic=never-match;;
14457 esac
14458 ;;
14459 esac
14460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14461 shlibpath_overrides_runpath=no
14462 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14463 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14464 hardcode_into_libs=yes
14465 ;;
14466
14467# No shared lib support for Linux oldld, aout, or coff.
14468linux*oldld* | linux*aout* | linux*coff*)
14469 dynamic_linker=no
14470 ;;
14471
14472linux*android*)
14473 version_type=none # Android doesn't support versioned libraries.
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='$libname$release$shared_ext'
14477 soname_spec='$libname$release$shared_ext'
14478 finish_cmds=
14479 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=yes
14481
14482 # This implies no fast_install, which is unacceptable.
14483 # Some rework will be needed to allow for fast_install
14484 # before this can be enabled.
14485 hardcode_into_libs=yes
14486
14487 dynamic_linker='Android linker'
14488 # Don't embed -rpath directories since the linker doesn't support them.
14489 hardcode_libdir_flag_spec='-L$libdir'
14490 ;;
14491
14492# This must be glibc/ELF.
14493linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14494 version_type=linux # correct to gnu/linux during the next big refactor
14495 need_lib_prefix=no
14496 need_version=no
14497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14498 soname_spec='$libname$release$shared_ext$major'
14499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 shlibpath_overrides_runpath=no
14502
14503 # Some binutils ld are patched to set DT_RUNPATH
14504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506else
14507 lt_cv_shlibpath_overrides_runpath=no
14508 save_LDFLAGS=$LDFLAGS
14509 save_libdir=$libdir
14510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h. */
14514
14515int main (void)
14516{
14517
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14524 lt_cv_shlibpath_overrides_runpath=yes
14525fi
14526fi
14527rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LDFLAGS=$save_LDFLAGS
14530 libdir=$save_libdir
14531
14532fi
14533
14534 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14535
14536 # This implies no fast_install, which is unacceptable.
14537 # Some rework will be needed to allow for fast_install
14538 # before this can be enabled.
14539 hardcode_into_libs=yes
14540
14541 # Ideally, we could use ldconfig to report *all* directores which are
14542 # searched for libraries, however this is still not possible. Aside from not
14543 # being certain /sbin/ldconfig is available, command
14544 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14545 # even though it is searched at run-time. Try to do the best guess by
14546 # appending ld.so.conf contents (and includes) to the search path.
14547 if test -f /etc/ld.so.conf; then
14548 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' ' '`
14549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14550 fi
14551
14552 # We used to test for /lib/ld.so.1 and disable shared libraries on
14553 # powerpc, because MkLinux only supported shared libraries with the
14554 # GNU dynamic linker. Since this was broken with cross compilers,
14555 # most powerpc-linux boxes support dynamic linking these days and
14556 # people can always --disable-shared, the test was removed, and we
14557 # assume the GNU/Linux dynamic linker is in use.
14558 dynamic_linker='GNU/Linux ld.so'
14559 ;;
14560
14561netbsdelf*-gnu)
14562 version_type=linux
14563 need_lib_prefix=no
14564 need_version=no
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=no
14569 hardcode_into_libs=yes
14570 dynamic_linker='NetBSD ld.elf_so'
14571 ;;
14572
14573netbsd*)
14574 version_type=sunos
14575 need_lib_prefix=no
14576 need_version=no
14577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14578 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14580 dynamic_linker='NetBSD (a.out) ld.so'
14581 else
14582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14583 soname_spec='$libname$release$shared_ext$major'
14584 dynamic_linker='NetBSD ld.elf_so'
14585 fi
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 hardcode_into_libs=yes
14589 ;;
14590
14591newsos6)
14592 version_type=linux # correct to gnu/linux during the next big refactor
14593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 ;;
14597
14598*nto* | *qnx*)
14599 version_type=qnx
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14603 soname_spec='$libname$release$shared_ext$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath=no
14606 hardcode_into_libs=yes
14607 dynamic_linker='ldqnx.so'
14608 ;;
14609
14610openbsd* | bitrig*)
14611 version_type=sunos
14612 sys_lib_dlsearch_path_spec=/usr/lib
14613 need_lib_prefix=no
14614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14615 need_version=no
14616 else
14617 need_version=yes
14618 fi
14619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14623 ;;
14624
14625os2*)
14626 libname_spec='$name'
14627 version_type=windows
14628 shrext_cmds=.dll
14629 need_version=no
14630 need_lib_prefix=no
14631 # OS/2 can only load a DLL with a base name of 8 characters or less.
14632 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14633 v=$($ECHO $release$versuffix | tr -d .-);
14634 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14635 $ECHO $n$v`$shared_ext'
14636 library_names_spec='${libname}_dll.$libext'
14637 dynamic_linker='OS/2 ld.exe'
14638 shlibpath_var=BEGINLIBPATH
14639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14641 postinstall_cmds='base_file=`basename \$file`~
14642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14643 dldir=$destdir/`dirname \$dlpath`~
14644 test -d \$dldir || mkdir -p \$dldir~
14645 $install_prog $dir/$dlname \$dldir/$dlname~
14646 chmod a+x \$dldir/$dlname~
14647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14649 fi'
14650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14651 dlpath=$dir/\$dldll~
14652 $RM \$dlpath'
14653 ;;
14654
14655osf3* | osf4* | osf5*)
14656 version_type=osf
14657 need_lib_prefix=no
14658 need_version=no
14659 soname_spec='$libname$release$shared_ext$major'
14660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14664 ;;
14665
14666rdos*)
14667 dynamic_linker=no
14668 ;;
14669
14670solaris*)
14671 version_type=linux # correct to gnu/linux during the next big refactor
14672 need_lib_prefix=no
14673 need_version=no
14674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14675 soname_spec='$libname$release$shared_ext$major'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 shlibpath_overrides_runpath=yes
14678 hardcode_into_libs=yes
14679 # ldd complains unless libraries are executable
14680 postinstall_cmds='chmod +x $lib'
14681 ;;
14682
14683sunos4*)
14684 version_type=sunos
14685 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 shlibpath_overrides_runpath=yes
14689 if test yes = "$with_gnu_ld"; then
14690 need_lib_prefix=no
14691 fi
14692 need_version=yes
14693 ;;
14694
14695sysv4 | sysv4.3*)
14696 version_type=linux # correct to gnu/linux during the next big refactor
14697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14698 soname_spec='$libname$release$shared_ext$major'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 case $host_vendor in
14701 sni)
14702 shlibpath_overrides_runpath=no
14703 need_lib_prefix=no
14704 runpath_var=LD_RUN_PATH
14705 ;;
14706 siemens)
14707 need_lib_prefix=no
14708 ;;
14709 motorola)
14710 need_lib_prefix=no
14711 need_version=no
14712 shlibpath_overrides_runpath=no
14713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14714 ;;
14715 esac
14716 ;;
14717
14718sysv4*MP*)
14719 if test -d /usr/nec; then
14720 version_type=linux # correct to gnu/linux during the next big refactor
14721 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14722 soname_spec='$libname$shared_ext.$major'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 fi
14725 ;;
14726
14727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14728 version_type=sco
14729 need_lib_prefix=no
14730 need_version=no
14731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14732 soname_spec='$libname$release$shared_ext$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes
14735 hardcode_into_libs=yes
14736 if test yes = "$with_gnu_ld"; then
14737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14738 else
14739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14740 case $host_os in
14741 sco3.2v5*)
14742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14743 ;;
14744 esac
14745 fi
14746 sys_lib_dlsearch_path_spec='/usr/lib'
14747 ;;
14748
14749tpf*)
14750 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14751 version_type=linux # correct to gnu/linux during the next big refactor
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=no
14757 hardcode_into_libs=yes
14758 ;;
14759
14760uts4*)
14761 version_type=linux # correct to gnu/linux during the next big refactor
14762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14763 soname_spec='$libname$release$shared_ext$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 ;;
14766
14767*)
14768 dynamic_linker=no
14769 ;;
14770esac
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14772$as_echo "$dynamic_linker" >&6; }
14773test no = "$dynamic_linker" && can_build_shared=no
14774
14775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14776if test yes = "$GCC"; then
14777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14778fi
14779
14780if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14781 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14782fi
14783
14784if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14785 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14786fi
14787
14788# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14789configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14790
14791# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14792func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14793
14794# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14795configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14889
14890
14891
14892
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14894$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14895hardcode_action=
14896if test -n "$hardcode_libdir_flag_spec" ||
14897 test -n "$runpath_var" ||
14898 test yes = "$hardcode_automatic"; then
14899
14900 # We can hardcode non-existent directories.
14901 if test no != "$hardcode_direct" &&
14902 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14903 # have to relink, otherwise we might link with an installed library
14904 # when we should be linking with a yet-to-be-installed one
14905 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14906 test no != "$hardcode_minus_L"; then
14907 # Linking always hardcodes the temporary library directory.
14908 hardcode_action=relink
14909 else
14910 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14911 hardcode_action=immediate
14912 fi
14913else
14914 # We cannot hardcode anything, or else we can only hardcode existing
14915 # directories.
14916 hardcode_action=unsupported
14917fi
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14919$as_echo "$hardcode_action" >&6; }
14920
14921if test relink = "$hardcode_action" ||
14922 test yes = "$inherit_rpath"; then
14923 # Fast installation is not supported
14924 enable_fast_install=no
14925elif test yes = "$shlibpath_overrides_runpath" ||
14926 test no = "$enable_shared"; then
14927 # Fast installation is not necessary
14928 enable_fast_install=needless
14929fi
14930
14931
14932
14933
14934
14935
14936 if test yes != "$enable_dlopen"; then
14937 enable_dlopen=unknown
14938 enable_dlopen_self=unknown
14939 enable_dlopen_self_static=unknown
14940else
14941 lt_cv_dlopen=no
14942 lt_cv_dlopen_libs=
14943
14944 case $host_os in
14945 beos*)
14946 lt_cv_dlopen=load_add_on
14947 lt_cv_dlopen_libs=
14948 lt_cv_dlopen_self=yes
14949 ;;
14950
14951 mingw* | pw32* | cegcc*)
14952 lt_cv_dlopen=LoadLibrary
14953 lt_cv_dlopen_libs=
14954 ;;
14955
14956 cygwin*)
14957 lt_cv_dlopen=dlopen
14958 lt_cv_dlopen_libs=
14959 ;;
14960
14961 darwin*)
14962 # if libdl is installed we need to link against it
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14964$as_echo_n "checking for dlopen in -ldl... " >&6; }
14965if ${ac_cv_lib_dl_dlopen+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967else
14968 ac_check_lib_save_LIBS=$LIBS
14969LIBS="-ldl $LIBS"
14970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971/* end confdefs.h. */
14972
14973
14974#ifdef __cplusplus
14975extern "C"
14976#endif
14977char dlopen ();
14978int main (void)
14979{
14980return dlopen ();
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985if ac_fn_c_try_link "$LINENO"; then :
14986 ac_cv_lib_dl_dlopen=yes
14987else
14988 ac_cv_lib_dl_dlopen=no
14989fi
14990rm -f core conftest.err conftest.$ac_objext \
14991 conftest$ac_exeext conftest.$ac_ext
14992LIBS=$ac_check_lib_save_LIBS
14993fi
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14995$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14996if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14997 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14998else
14999
15000 lt_cv_dlopen=dyld
15001 lt_cv_dlopen_libs=
15002 lt_cv_dlopen_self=yes
15003
15004fi
15005
15006 ;;
15007
15008 tpf*)
15009 # Don't try to run any link tests for TPF. We know it's impossible
15010 # because TPF is a cross-compiler, and we know how we open DSOs.
15011 lt_cv_dlopen=dlopen
15012 lt_cv_dlopen_libs=
15013 lt_cv_dlopen_self=no
15014 ;;
15015
15016 *)
15017 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15018if test "x$ac_cv_func_shl_load" = xyes; then :
15019 lt_cv_dlopen=shl_load
15020else
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15022$as_echo_n "checking for shl_load in -ldld... " >&6; }
15023if ${ac_cv_lib_dld_shl_load+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025else
15026 ac_check_lib_save_LIBS=$LIBS
15027LIBS="-ldld $LIBS"
15028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h. */
15030
15031
15032#ifdef __cplusplus
15033extern "C"
15034#endif
15035char shl_load ();
15036int main (void)
15037{
15038return shl_load ();
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_lib_dld_shl_load=yes
15045else
15046 ac_cv_lib_dld_shl_load=no
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050LIBS=$ac_check_lib_save_LIBS
15051fi
15052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15053$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15054if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15055 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15056else
15057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15058if test "x$ac_cv_func_dlopen" = xyes; then :
15059 lt_cv_dlopen=dlopen
15060else
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15062$as_echo_n "checking for dlopen in -ldl... " >&6; }
15063if ${ac_cv_lib_dl_dlopen+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065else
15066 ac_check_lib_save_LIBS=$LIBS
15067LIBS="-ldl $LIBS"
15068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069/* end confdefs.h. */
15070
15071
15072#ifdef __cplusplus
15073extern "C"
15074#endif
15075char dlopen ();
15076int main (void)
15077{
15078return dlopen ();
15079 ;
15080 return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_link "$LINENO"; then :
15084 ac_cv_lib_dl_dlopen=yes
15085else
15086 ac_cv_lib_dl_dlopen=no
15087fi
15088rm -f core conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15090LIBS=$ac_check_lib_save_LIBS
15091fi
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15093$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15094if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15095 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15096else
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15098$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15099if ${ac_cv_lib_svld_dlopen+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101else
15102 ac_check_lib_save_LIBS=$LIBS
15103LIBS="-lsvld $LIBS"
15104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105/* end confdefs.h. */
15106
15107
15108#ifdef __cplusplus
15109extern "C"
15110#endif
15111char dlopen ();
15112int main (void)
15113{
15114return dlopen ();
15115 ;
15116 return 0;
15117}
15118_ACEOF
15119if ac_fn_c_try_link "$LINENO"; then :
15120 ac_cv_lib_svld_dlopen=yes
15121else
15122 ac_cv_lib_svld_dlopen=no
15123fi
15124rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15126LIBS=$ac_check_lib_save_LIBS
15127fi
15128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15129$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15130if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15132else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15134$as_echo_n "checking for dld_link in -ldld... " >&6; }
15135if ${ac_cv_lib_dld_dld_link+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137else
15138 ac_check_lib_save_LIBS=$LIBS
15139LIBS="-ldld $LIBS"
15140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141/* end confdefs.h. */
15142
15143
15144#ifdef __cplusplus
15145extern "C"
15146#endif
15147char dld_link ();
15148int main (void)
15149{
15150return dld_link ();
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155if ac_fn_c_try_link "$LINENO"; then :
15156 ac_cv_lib_dld_dld_link=yes
15157else
15158 ac_cv_lib_dld_dld_link=no
15159fi
15160rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
15162LIBS=$ac_check_lib_save_LIBS
15163fi
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15165$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15166if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15167 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15168fi
15169
15170
15171fi
15172
15173
15174fi
15175
15176
15177fi
15178
15179
15180fi
15181
15182
15183fi
15184
15185 ;;
15186 esac
15187
15188 if test no = "$lt_cv_dlopen"; then
15189 enable_dlopen=no
15190 else
15191 enable_dlopen=yes
15192 fi
15193
15194 case $lt_cv_dlopen in
15195 dlopen)
15196 save_CPPFLAGS=$CPPFLAGS
15197 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15198
15199 save_LDFLAGS=$LDFLAGS
15200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15201
15202 save_LIBS=$LIBS
15203 LIBS="$lt_cv_dlopen_libs $LIBS"
15204
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15206$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15207if ${lt_cv_dlopen_self+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209else
15210 if test yes = "$cross_compiling"; then :
15211 lt_cv_dlopen_self=cross
15212else
15213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15214 lt_status=$lt_dlunknown
15215 cat > conftest.$ac_ext <<_LT_EOF
15216#line $LINENO "configure"
15217#include "confdefs.h"
15218
15219#if HAVE_DLFCN_H
15220#include <dlfcn.h>
15221#endif
15222
15223#include <stdio.h>
15224
15225#ifdef RTLD_GLOBAL
15226# define LT_DLGLOBAL RTLD_GLOBAL
15227#else
15228# ifdef DL_GLOBAL
15229# define LT_DLGLOBAL DL_GLOBAL
15230# else
15231# define LT_DLGLOBAL 0
15232# endif
15233#endif
15234
15235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15236 find out it does not work in some platform. */
15237#ifndef LT_DLLAZY_OR_NOW
15238# ifdef RTLD_LAZY
15239# define LT_DLLAZY_OR_NOW RTLD_LAZY
15240# else
15241# ifdef DL_LAZY
15242# define LT_DLLAZY_OR_NOW DL_LAZY
15243# else
15244# ifdef RTLD_NOW
15245# define LT_DLLAZY_OR_NOW RTLD_NOW
15246# else
15247# ifdef DL_NOW
15248# define LT_DLLAZY_OR_NOW DL_NOW
15249# else
15250# define LT_DLLAZY_OR_NOW 0
15251# endif
15252# endif
15253# endif
15254# endif
15255#endif
15256
15257/* When -fvisibility=hidden is used, assume the code has been annotated
15258 correspondingly for the symbols needed. */
15259#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15260int fnord () __attribute__((visibility("default")));
15261#endif
15262
15263int fnord () { return 42; }
15264int main ()
15265{
15266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15267 int status = $lt_dlunknown;
15268
15269 if (self)
15270 {
15271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15272 else
15273 {
15274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15275 else puts (dlerror ());
15276 }
15277 /* dlclose (self); */
15278 }
15279 else
15280 puts (dlerror ());
15281
15282 return status;
15283}
15284_LT_EOF
15285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15286 (eval $ac_link) 2>&5
15287 ac_status=$?
15288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15289 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15290 (./conftest; exit; ) >&5 2>/dev/null
15291 lt_status=$?
15292 case x$lt_status in
15293 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15294 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15295 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15296 esac
15297 else :
15298 # compilation failed
15299 lt_cv_dlopen_self=no
15300 fi
15301fi
15302rm -fr conftest*
15303
15304
15305fi
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15307$as_echo "$lt_cv_dlopen_self" >&6; }
15308
15309 if test yes = "$lt_cv_dlopen_self"; then
15310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15312$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15313if ${lt_cv_dlopen_self_static+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315else
15316 if test yes = "$cross_compiling"; then :
15317 lt_cv_dlopen_self_static=cross
15318else
15319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15320 lt_status=$lt_dlunknown
15321 cat > conftest.$ac_ext <<_LT_EOF
15322#line $LINENO "configure"
15323#include "confdefs.h"
15324
15325#if HAVE_DLFCN_H
15326#include <dlfcn.h>
15327#endif
15328
15329#include <stdio.h>
15330
15331#ifdef RTLD_GLOBAL
15332# define LT_DLGLOBAL RTLD_GLOBAL
15333#else
15334# ifdef DL_GLOBAL
15335# define LT_DLGLOBAL DL_GLOBAL
15336# else
15337# define LT_DLGLOBAL 0
15338# endif
15339#endif
15340
15341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15342 find out it does not work in some platform. */
15343#ifndef LT_DLLAZY_OR_NOW
15344# ifdef RTLD_LAZY
15345# define LT_DLLAZY_OR_NOW RTLD_LAZY
15346# else
15347# ifdef DL_LAZY
15348# define LT_DLLAZY_OR_NOW DL_LAZY
15349# else
15350# ifdef RTLD_NOW
15351# define LT_DLLAZY_OR_NOW RTLD_NOW
15352# else
15353# ifdef DL_NOW
15354# define LT_DLLAZY_OR_NOW DL_NOW
15355# else
15356# define LT_DLLAZY_OR_NOW 0
15357# endif
15358# endif
15359# endif
15360# endif
15361#endif
15362
15363/* When -fvisibility=hidden is used, assume the code has been annotated
15364 correspondingly for the symbols needed. */
15365#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15366int fnord () __attribute__((visibility("default")));
15367#endif
15368
15369int fnord () { return 42; }
15370int main ()
15371{
15372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15373 int status = $lt_dlunknown;
15374
15375 if (self)
15376 {
15377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15378 else
15379 {
15380 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15381 else puts (dlerror ());
15382 }
15383 /* dlclose (self); */
15384 }
15385 else
15386 puts (dlerror ());
15387
15388 return status;
15389}
15390_LT_EOF
15391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15392 (eval $ac_link) 2>&5
15393 ac_status=$?
15394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15395 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15396 (./conftest; exit; ) >&5 2>/dev/null
15397 lt_status=$?
15398 case x$lt_status in
15399 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15400 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15401 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15402 esac
15403 else :
15404 # compilation failed
15405 lt_cv_dlopen_self_static=no
15406 fi
15407fi
15408rm -fr conftest*
15409
15410
15411fi
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15413$as_echo "$lt_cv_dlopen_self_static" >&6; }
15414 fi
15415
15416 CPPFLAGS=$save_CPPFLAGS
15417 LDFLAGS=$save_LDFLAGS
15418 LIBS=$save_LIBS
15419 ;;
15420 esac
15421
15422 case $lt_cv_dlopen_self in
15423 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15424 *) enable_dlopen_self=unknown ;;
15425 esac
15426
15427 case $lt_cv_dlopen_self_static in
15428 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15429 *) enable_dlopen_self_static=unknown ;;
15430 esac
15431fi
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449striplib=
15450old_striplib=
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15452$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15453if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15454 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15455 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15457$as_echo "yes" >&6; }
15458else
15459# FIXME - insert some real tests, host_os isn't really good enough
15460 case $host_os in
15461 darwin*)
15462 if test -n "$STRIP"; then
15463 striplib="$STRIP -x"
15464 old_striplib="$STRIP -S"
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466$as_echo "yes" >&6; }
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470 fi
15471 ;;
15472 *)
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474$as_echo "no" >&6; }
15475 ;;
15476 esac
15477fi
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490 # Report what library types will actually be built
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15492$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15494$as_echo "$can_build_shared" >&6; }
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15497$as_echo_n "checking whether to build shared libraries... " >&6; }
15498 test no = "$can_build_shared" && enable_shared=no
15499
15500 # On AIX, shared libraries and static libraries use the same namespace, and
15501 # are all built from PIC.
15502 case $host_os in
15503 aix3*)
15504 test yes = "$enable_shared" && enable_static=no
15505 if test -n "$RANLIB"; then
15506 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15507 postinstall_cmds='$RANLIB $lib'
15508 fi
15509 ;;
15510
15511 aix[4-9]*)
15512 if test ia64 != "$host_cpu"; then
15513 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15514 yes,aix,yes) ;; # shared object as lib.so file only
15515 yes,svr4,*) ;; # shared object as lib.so archive member only
15516 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15517 esac
15518 fi
15519 ;;
15520 esac
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15522$as_echo "$enable_shared" >&6; }
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15525$as_echo_n "checking whether to build static libraries... " >&6; }
15526 # Make sure either enable_shared or enable_static is yes.
15527 test yes = "$enable_shared" || enable_static=yes
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15529$as_echo "$enable_static" >&6; }
15530
15531
15532
15533
15534fi
15535ac_ext=c
15536ac_cpp='$CPP $CPPFLAGS'
15537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15539ac_compiler_gnu=$ac_cv_c_compiler_gnu
15540
15541CC=$lt_save_CC
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557 ac_config_commands="$ac_config_commands libtool"
15558
15559
15560
15561
15562# Only expand once:
15563
15564
15565## --------------------- ##
15566## End of libtool code ##
15567## --------------------- ##
15568
15569#
15570# Verify if finally libtool shared libraries will be built
15571#
15572
15573case "x$enable_shared" in # ((
15574 xyes | xno)
15575 xc_lt_build_shared=$enable_shared
15576 ;;
15577 *)
15578 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15579 ;;
15580esac
15581
15582#
15583# Verify if finally libtool static libraries will be built
15584#
15585
15586case "x$enable_static" in # ((
15587 xyes | xno)
15588 xc_lt_build_static=$enable_static
15589 ;;
15590 *)
15591 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15592 ;;
15593esac
15594
15595#
15596# Verify if libtool shared libraries should be linked using flag -version-info
15597#
15598
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15600$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15601xc_lt_shlib_use_version_info='yes'
15602if test "x$version_type" = 'xnone'; then
15603 xc_lt_shlib_use_version_info='no'
15604fi
15605case $host_os in # (
15606 amigaos*)
15607 xc_lt_shlib_use_version_info='yes'
15608 ;;
15609esac
15610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15611$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15612
15613#
15614# Verify if libtool shared libraries should be linked using flag -no-undefined
15615#
15616
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15618$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15619xc_lt_shlib_use_no_undefined='no'
15620if test "x$allow_undefined" = 'xno'; then
15621 xc_lt_shlib_use_no_undefined='yes'
15622elif test "x$allow_undefined_flag" = 'xunsupported'; then
15623 xc_lt_shlib_use_no_undefined='yes'
15624fi
15625case $host_os in # (
15626 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15627 xc_lt_shlib_use_no_undefined='yes'
15628 ;;
15629esac
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15631$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15632
15633#
15634# Verify if libtool shared libraries should be linked using flag -mimpure-text
15635#
15636
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15638$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15639xc_lt_shlib_use_mimpure_text='no'
15640case $host_os in # (
15641 solaris2*)
15642 if test "x$GCC" = 'xyes'; then
15643 xc_lt_shlib_use_mimpure_text='yes'
15644 fi
15645 ;;
15646esac
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15648$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15649
15650#
15651# Find out whether libtool libraries would be built wit PIC
15652#
15653
15654case "x$pic_mode" in # ((((
15655 xdefault)
15656 xc_lt_build_shared_with_pic='yes'
15657 xc_lt_build_static_with_pic='no'
15658 ;;
15659 xyes)
15660 xc_lt_build_shared_with_pic='yes'
15661 xc_lt_build_static_with_pic='yes'
15662 ;;
15663 xno)
15664 xc_lt_build_shared_with_pic='no'
15665 xc_lt_build_static_with_pic='no'
15666 ;;
15667 *)
15668 xc_lt_build_shared_with_pic='unknown'
15669 xc_lt_build_static_with_pic='unknown'
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15671$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15672 ;;
15673esac
15674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15675$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15677$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15679$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15681$as_echo "$xc_lt_build_static_with_pic" >&6; }
15682
15683#
15684# Verify if libtool shared libraries will be built while static not built
15685#
15686
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15688$as_echo_n "checking whether to build shared libraries only... " >&6; }
15689if test "$xc_lt_build_shared" = 'yes' &&
15690 test "$xc_lt_build_static" = 'no'; then
15691 xc_lt_build_shared_only='yes'
15692else
15693 xc_lt_build_shared_only='no'
15694fi
15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15696$as_echo "$xc_lt_build_shared_only" >&6; }
15697
15698#
15699# Verify if libtool static libraries will be built while shared not built
15700#
15701
15702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15703$as_echo_n "checking whether to build static libraries only... " >&6; }
15704if test "$xc_lt_build_static" = 'yes' &&
15705 test "$xc_lt_build_shared" = 'no'; then
15706 xc_lt_build_static_only='yes'
15707else
15708 xc_lt_build_static_only='no'
15709fi
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15711$as_echo "$xc_lt_build_static_only" >&6; }
15712
15713
15714
15715
15716#
15717# Automake conditionals based on libtool related checks
15718#
15719
15720 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15721 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15722 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15723else
15724 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15725 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15726fi
15727
15728 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15729 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15730 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15731else
15732 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15733 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15734fi
15735
15736 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15737 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15738 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15739else
15740 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15741 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15742fi
15743
15744
15745#
15746# Due to libtool and automake machinery limitations of not allowing
15747# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15748# inclusion of these in shared or static libraries, we are forced to
15749# build using separate configure runs for shared and static libraries
15750# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15751# to compile objects for each kind of library. Notice that relying on
15752# the '-DPIC' CFLAG that libtool provides is not valid given that the
15753# user might for example choose to build static libraries with PIC.
15754#
15755
15756#
15757# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15758# targeting a static library and not building its shared counterpart.
15759#
15760
15761 if test "x$xc_lt_build_static_only" = 'xyes'; then
15762 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15763 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15764else
15765 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15766 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15767fi
15768
15769
15770#
15771# Make staticlib CPPFLAG variable and its definition visible in output
15772# files unconditionally, providing an empty definition unless strictly
15773# targeting a static library and not building its shared counterpart.
15774#
15775
15776CPPFLAG_CURL_STATICLIB=
15777if test "x$xc_lt_build_static_only" = 'xyes'; then
15778 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15779fi
15780
15781
15782
15783# Determine whether all dependent libraries must be specified when linking
15784if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15785then
15786 REQUIRE_LIB_DEPS=no
15787else
15788 REQUIRE_LIB_DEPS=yes
15789fi
15790
15791 if test x$REQUIRE_LIB_DEPS = xyes; then
15792 USE_EXPLICIT_LIB_DEPS_TRUE=
15793 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15794else
15795 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15796 USE_EXPLICIT_LIB_DEPS_FALSE=
15797fi
15798
15799
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15801$as_echo_n "checking for inline... " >&6; }
15802if ${ac_cv_c_inline+:} false; then :
15803 $as_echo_n "(cached) " >&6
15804else
15805 ac_cv_c_inline=no
15806for ac_kw in inline __inline__ __inline; do
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808/* end confdefs.h. */
15809#ifndef __cplusplus
15810typedef int foo_t;
15811static $ac_kw foo_t static_foo () {return 0; }
15812$ac_kw foo_t foo () {return 0; }
15813#endif
15814
15815_ACEOF
15816if ac_fn_c_try_compile "$LINENO"; then :
15817 ac_cv_c_inline=$ac_kw
15818fi
15819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 test "$ac_cv_c_inline" != no && break
15821done
15822
15823fi
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15825$as_echo "$ac_cv_c_inline" >&6; }
15826
15827case $ac_cv_c_inline in
15828 inline | yes) ;;
15829 *)
15830 case $ac_cv_c_inline in
15831 no) ac_val=;;
15832 *) ac_val=$ac_cv_c_inline;;
15833 esac
15834 cat >>confdefs.h <<_ACEOF
15835#ifndef __cplusplus
15836#define inline $ac_val
15837#endif
15838_ACEOF
15839 ;;
15840esac
15841
15842
15843
15844
Alex Deymo486467e2017-12-19 19:04:07 +010015845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15846$as_echo_n "checking if cpp -P is needed... " >&6; }
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848/* end confdefs.h. */
15849
15850 #include <errno.h>
15851TEST EINVAL TEST
15852
15853_ACEOF
15854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15855 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15856 cpp=no
15857else
15858 cpp=yes
15859fi
15860rm -f conftest*
15861
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15863$as_echo "$cpp" >&6; }
15864
15865 if test "x$cpp" = "xyes"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15867$as_echo_n "checking if cpp -P works... " >&6; }
15868 OLDCPPFLAGS=$CPPFLAGS
15869 CPPFLAGS="$CPPFLAGS -P"
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871/* end confdefs.h. */
15872
15873 #include <errno.h>
15874TEST EINVAL TEST
15875
15876_ACEOF
15877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15878 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15879 cpp_p=yes
15880else
15881 cpp_p=no
15882fi
15883rm -f conftest*
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15886$as_echo "$cpp_p" >&6; }
15887
15888 if test "x$cpp_p" = "xno"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15890$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15891 # without -P
15892 CPPPFLAG=""
15893 else
15894 # with -P
15895 CPPPFLAG="-P"
15896 fi
15897 CPPFLAGS=$OLDCPPFLAGS
15898 else
15899 # without -P
15900 CPPPFLAG=""
15901 fi
15902
15903
Elliott Hughes82be86d2017-09-20 17:00:17 -070015904 #
15905 compiler_id="unknown"
15906 compiler_num="0"
15907 #
15908 flags_dbg_all="unknown"
15909 flags_dbg_yes="unknown"
15910 flags_dbg_off="unknown"
15911 flags_opt_all="unknown"
15912 flags_opt_yes="unknown"
15913 flags_opt_off="unknown"
15914 #
15915 flags_prefer_cppflags="no"
15916 #
15917
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15919$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15920
15921 OLDCPPFLAGS=$CPPFLAGS
15922 # CPPPFLAG comes from CURL_CPP_P
15923 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15924 if test -z "$SED"; then
15925 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15926 fi
15927 if test -z "$GREP"; then
15928 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15929 fi
15930
15931 tmp_exp=""
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933/* end confdefs.h. */
15934
15935
15936#ifdef __DECC
15937CURL_DEF_TOKEN __DECC
15938#endif
15939
15940
15941_ACEOF
15942if ac_fn_c_try_cpp "$LINENO"; then :
15943
15944 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15945 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15946 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15947 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15948 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15949 tmp_exp=""
15950 fi
15951
15952fi
15953rm -f conftest.err conftest.i conftest.$ac_ext
15954 if test -z "$tmp_exp"; then
15955 curl_cv_have_def___DECC=no
15956
15957 else
15958 curl_cv_have_def___DECC=yes
15959 curl_cv_def___DECC=$tmp_exp
15960
15961 fi
15962 CPPFLAGS=$OLDCPPFLAGS
15963
15964
15965 OLDCPPFLAGS=$CPPFLAGS
15966 # CPPPFLAG comes from CURL_CPP_P
15967 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15968 if test -z "$SED"; then
15969 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15970 fi
15971 if test -z "$GREP"; then
15972 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15973 fi
15974
15975 tmp_exp=""
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h. */
15978
15979
15980#ifdef __DECC_VER
15981CURL_DEF_TOKEN __DECC_VER
15982#endif
15983
15984
15985_ACEOF
15986if ac_fn_c_try_cpp "$LINENO"; then :
15987
15988 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15989 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15990 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15991 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15992 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15993 tmp_exp=""
15994 fi
15995
15996fi
15997rm -f conftest.err conftest.i conftest.$ac_ext
15998 if test -z "$tmp_exp"; then
15999 curl_cv_have_def___DECC_VER=no
16000
16001 else
16002 curl_cv_have_def___DECC_VER=yes
16003 curl_cv_def___DECC_VER=$tmp_exp
16004
16005 fi
16006 CPPFLAGS=$OLDCPPFLAGS
16007
16008 if test "$curl_cv_have_def___DECC" = "yes" &&
16009 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16011$as_echo "yes" >&6; }
16012 compiler_id="DEC_C"
16013 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16014 flags_dbg_yes="-g2"
16015 flags_dbg_off=""
16016 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16017 flags_opt_yes="-O1"
16018 flags_opt_off="-O0"
16019 else
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021$as_echo "no" >&6; }
16022 fi
16023
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16026$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16027
16028 OLDCPPFLAGS=$CPPFLAGS
16029 # CPPPFLAG comes from CURL_CPP_P
16030 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16031 if test -z "$SED"; then
16032 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16033 fi
16034 if test -z "$GREP"; then
16035 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16036 fi
16037
16038 tmp_exp=""
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041
16042
16043#ifdef __HP_cc
16044CURL_DEF_TOKEN __HP_cc
16045#endif
16046
16047
16048_ACEOF
16049if ac_fn_c_try_cpp "$LINENO"; then :
16050
16051 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16052 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16053 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16054 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16055 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16056 tmp_exp=""
16057 fi
16058
16059fi
16060rm -f conftest.err conftest.i conftest.$ac_ext
16061 if test -z "$tmp_exp"; then
16062 curl_cv_have_def___HP_cc=no
16063
16064 else
16065 curl_cv_have_def___HP_cc=yes
16066 curl_cv_def___HP_cc=$tmp_exp
16067
16068 fi
16069 CPPFLAGS=$OLDCPPFLAGS
16070
16071 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073$as_echo "yes" >&6; }
16074 compiler_id="HP_UX_C"
16075 flags_dbg_all="-g -s"
16076 flags_dbg_yes="-g"
16077 flags_dbg_off="-s"
16078 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16079 flags_opt_yes="+O2"
16080 flags_opt_off="+O0"
16081 else
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16083$as_echo "no" >&6; }
16084 fi
16085
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16088$as_echo_n "checking if compiler is IBM C... " >&6; }
16089
16090 OLDCPPFLAGS=$CPPFLAGS
16091 # CPPPFLAG comes from CURL_CPP_P
16092 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16093 if test -z "$SED"; then
16094 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16095 fi
16096 if test -z "$GREP"; then
16097 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16098 fi
16099
16100 tmp_exp=""
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102/* end confdefs.h. */
16103
16104
16105#ifdef __IBMC__
16106CURL_DEF_TOKEN __IBMC__
16107#endif
16108
16109
16110_ACEOF
16111if ac_fn_c_try_cpp "$LINENO"; then :
16112
16113 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16114 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16115 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16116 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16117 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16118 tmp_exp=""
16119 fi
16120
16121fi
16122rm -f conftest.err conftest.i conftest.$ac_ext
16123 if test -z "$tmp_exp"; then
16124 curl_cv_have_def___IBMC__=no
16125
16126 else
16127 curl_cv_have_def___IBMC__=yes
16128 curl_cv_def___IBMC__=$tmp_exp
16129
16130 fi
16131 CPPFLAGS=$OLDCPPFLAGS
16132
16133 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16135$as_echo "yes" >&6; }
16136 compiler_id="IBM_C"
16137 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16138 flags_dbg_yes="-g"
16139 flags_dbg_off=""
16140 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16141 flags_opt_all="$flags_opt_all -qnooptimize"
16142 flags_opt_all="$flags_opt_all -qoptimize=0"
16143 flags_opt_all="$flags_opt_all -qoptimize=1"
16144 flags_opt_all="$flags_opt_all -qoptimize=2"
16145 flags_opt_all="$flags_opt_all -qoptimize=3"
16146 flags_opt_all="$flags_opt_all -qoptimize=4"
16147 flags_opt_all="$flags_opt_all -qoptimize=5"
16148 flags_opt_yes="-O2"
16149 flags_opt_off="-qnooptimize"
16150 flags_prefer_cppflags="yes"
16151 else
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153$as_echo "no" >&6; }
16154 fi
16155
16156
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16158$as_echo_n "checking if compiler is Intel C... " >&6; }
16159
16160 OLDCPPFLAGS=$CPPFLAGS
16161 # CPPPFLAG comes from CURL_CPP_P
16162 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16163 if test -z "$SED"; then
16164 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16165 fi
16166 if test -z "$GREP"; then
16167 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16168 fi
16169
16170 tmp_exp=""
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172/* end confdefs.h. */
16173
16174
16175#ifdef __INTEL_COMPILER
16176CURL_DEF_TOKEN __INTEL_COMPILER
16177#endif
16178
16179
16180_ACEOF
16181if ac_fn_c_try_cpp "$LINENO"; then :
16182
16183 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16184 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16185 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16186 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16187 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16188 tmp_exp=""
16189 fi
16190
16191fi
16192rm -f conftest.err conftest.i conftest.$ac_ext
16193 if test -z "$tmp_exp"; then
16194 curl_cv_have_def___INTEL_COMPILER=no
16195
16196 else
16197 curl_cv_have_def___INTEL_COMPILER=yes
16198 curl_cv_def___INTEL_COMPILER=$tmp_exp
16199
16200 fi
16201 CPPFLAGS=$OLDCPPFLAGS
16202
16203 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16205$as_echo "yes" >&6; }
16206 compiler_num="$curl_cv_def___INTEL_COMPILER"
16207
16208 OLDCPPFLAGS=$CPPFLAGS
16209 # CPPPFLAG comes from CURL_CPP_P
16210 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16211 if test -z "$SED"; then
16212 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16213 fi
16214 if test -z "$GREP"; then
16215 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16216 fi
16217
16218 tmp_exp=""
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h. */
16221
16222
16223#ifdef __unix__
16224CURL_DEF_TOKEN __unix__
16225#endif
16226
16227
16228_ACEOF
16229if ac_fn_c_try_cpp "$LINENO"; then :
16230
16231 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16232 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16233 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16234 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16235 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16236 tmp_exp=""
16237 fi
16238
16239fi
16240rm -f conftest.err conftest.i conftest.$ac_ext
16241 if test -z "$tmp_exp"; then
16242 curl_cv_have_def___unix__=no
16243
16244 else
16245 curl_cv_have_def___unix__=yes
16246 curl_cv_def___unix__=$tmp_exp
16247
16248 fi
16249 CPPFLAGS=$OLDCPPFLAGS
16250
16251 if test "$curl_cv_have_def___unix__" = "yes"; then
16252 compiler_id="INTEL_UNIX_C"
16253 flags_dbg_all="-g -g0"
16254 flags_dbg_yes="-g"
16255 flags_dbg_off=""
16256 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16257 flags_opt_yes="-O2"
16258 flags_opt_off="-O0"
16259 else
16260 compiler_id="INTEL_WINDOWS_C"
16261 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16262 flags_dbg_all="$flags_dbg_all /debug"
16263 flags_dbg_all="$flags_dbg_all /debug:none"
16264 flags_dbg_all="$flags_dbg_all /debug:minimal"
16265 flags_dbg_all="$flags_dbg_all /debug:partial"
16266 flags_dbg_all="$flags_dbg_all /debug:full"
16267 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16268 flags_dbg_all="$flags_dbg_all /debug:extended"
16269 flags_dbg_yes="/Zi /Oy-"
16270 flags_dbg_off="/debug:none /Oy-"
16271 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16272 flags_opt_yes="/O2"
16273 flags_opt_off="/Od"
16274 fi
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277$as_echo "no" >&6; }
16278 fi
16279
16280
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16282$as_echo_n "checking if compiler is clang... " >&6; }
16283
16284 OLDCPPFLAGS=$CPPFLAGS
16285 # CPPPFLAG comes from CURL_CPP_P
16286 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16287 if test -z "$SED"; then
16288 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16289 fi
16290 if test -z "$GREP"; then
16291 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16292 fi
16293
16294 tmp_exp=""
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296/* end confdefs.h. */
16297
16298
16299#ifdef __clang__
16300CURL_DEF_TOKEN __clang__
16301#endif
16302
16303
16304_ACEOF
16305if ac_fn_c_try_cpp "$LINENO"; then :
16306
16307 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16308 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16309 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16310 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16311 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16312 tmp_exp=""
16313 fi
16314
16315fi
16316rm -f conftest.err conftest.i conftest.$ac_ext
16317 if test -z "$tmp_exp"; then
16318 curl_cv_have_def___clang__=no
16319
16320 else
16321 curl_cv_have_def___clang__=yes
16322 curl_cv_def___clang__=$tmp_exp
16323
16324 fi
16325 CPPFLAGS=$OLDCPPFLAGS
16326
16327 if test "$curl_cv_have_def___clang__" = "yes"; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16329$as_echo "yes" >&6; }
16330 compiler_id="CLANG"
16331 fullclangver=`$CC -v 2>&1 | grep version`
16332 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16333 if test -z "$clangver"; then
16334 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016335 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016336 else
16337 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16338 fi
16339 fi
16340 clangvhi=`echo $clangver | cut -d . -f1`
16341 clangvlo=`echo $clangver | cut -d . -f2`
16342 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16343 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16344 flags_dbg_all="$flags_dbg_all -ggdb"
16345 flags_dbg_all="$flags_dbg_all -gstabs"
16346 flags_dbg_all="$flags_dbg_all -gstabs+"
16347 flags_dbg_all="$flags_dbg_all -gcoff"
16348 flags_dbg_all="$flags_dbg_all -gxcoff"
16349 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16350 flags_dbg_all="$flags_dbg_all -gvms"
16351 flags_dbg_yes="-g"
16352 flags_dbg_off=""
16353 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16354 flags_opt_yes="-Os"
16355 flags_opt_off="-O0"
16356 else
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358$as_echo "no" >&6; }
16359 fi
16360
16361
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16363$as_echo_n "checking if compiler is GNU C... " >&6; }
16364
16365 OLDCPPFLAGS=$CPPFLAGS
16366 # CPPPFLAG comes from CURL_CPP_P
16367 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16368 if test -z "$SED"; then
16369 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16370 fi
16371 if test -z "$GREP"; then
16372 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16373 fi
16374
16375 tmp_exp=""
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377/* end confdefs.h. */
16378
16379
16380#ifdef __GNUC__
16381CURL_DEF_TOKEN __GNUC__
16382#endif
16383
16384
16385_ACEOF
16386if ac_fn_c_try_cpp "$LINENO"; then :
16387
16388 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16389 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16390 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16391 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16392 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16393 tmp_exp=""
16394 fi
16395
16396fi
16397rm -f conftest.err conftest.i conftest.$ac_ext
16398 if test -z "$tmp_exp"; then
16399 curl_cv_have_def___GNUC__=no
16400
16401 else
16402 curl_cv_have_def___GNUC__=yes
16403 curl_cv_def___GNUC__=$tmp_exp
16404
16405 fi
16406 CPPFLAGS=$OLDCPPFLAGS
16407
16408 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16409 test "$compiler_id" = "unknown"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16411$as_echo "yes" >&6; }
16412 compiler_id="GNU_C"
16413 gccver=`$CC -dumpversion`
16414 gccvhi=`echo $gccver | cut -d . -f1`
16415 gccvlo=`echo $gccver | cut -d . -f2`
16416 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16417 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16418 flags_dbg_all="$flags_dbg_all -ggdb"
16419 flags_dbg_all="$flags_dbg_all -gstabs"
16420 flags_dbg_all="$flags_dbg_all -gstabs+"
16421 flags_dbg_all="$flags_dbg_all -gcoff"
16422 flags_dbg_all="$flags_dbg_all -gxcoff"
16423 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16424 flags_dbg_all="$flags_dbg_all -gvms"
16425 flags_dbg_yes="-g"
16426 flags_dbg_off=""
16427 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16428 flags_opt_yes="-O2"
16429 flags_opt_off="-O0"
16430
16431 OLDCPPFLAGS=$CPPFLAGS
16432 # CPPPFLAG comes from CURL_CPP_P
16433 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16434 if test -z "$SED"; then
16435 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16436 fi
16437 if test -z "$GREP"; then
16438 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16439 fi
16440
16441 tmp_exp=""
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443/* end confdefs.h. */
16444
16445
16446#ifdef _WIN32
16447CURL_DEF_TOKEN _WIN32
16448#endif
16449
16450
16451_ACEOF
16452if ac_fn_c_try_cpp "$LINENO"; then :
16453
16454 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16455 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16456 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16457 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16458 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16459 tmp_exp=""
16460 fi
16461
16462fi
16463rm -f conftest.err conftest.i conftest.$ac_ext
16464 if test -z "$tmp_exp"; then
16465 curl_cv_have_def__WIN32=no
16466
16467 else
16468 curl_cv_have_def__WIN32=yes
16469 curl_cv_def__WIN32=$tmp_exp
16470
16471 fi
16472 CPPFLAGS=$OLDCPPFLAGS
16473
16474 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476$as_echo "no" >&6; }
16477 fi
16478
16479
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16481$as_echo_n "checking if compiler is LCC... " >&6; }
16482
16483 OLDCPPFLAGS=$CPPFLAGS
16484 # CPPPFLAG comes from CURL_CPP_P
16485 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16486 if test -z "$SED"; then
16487 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16488 fi
16489 if test -z "$GREP"; then
16490 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16491 fi
16492
16493 tmp_exp=""
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h. */
16496
16497
16498#ifdef __LCC__
16499CURL_DEF_TOKEN __LCC__
16500#endif
16501
16502
16503_ACEOF
16504if ac_fn_c_try_cpp "$LINENO"; then :
16505
16506 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16507 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16508 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16509 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16510 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16511 tmp_exp=""
16512 fi
16513
16514fi
16515rm -f conftest.err conftest.i conftest.$ac_ext
16516 if test -z "$tmp_exp"; then
16517 curl_cv_have_def___LCC__=no
16518
16519 else
16520 curl_cv_have_def___LCC__=yes
16521 curl_cv_def___LCC__=$tmp_exp
16522
16523 fi
16524 CPPFLAGS=$OLDCPPFLAGS
16525
16526 if test "$curl_cv_have_def___LCC__" = "yes"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16528$as_echo "yes" >&6; }
16529 compiler_id="LCC"
16530 flags_dbg_all="-g"
16531 flags_dbg_yes="-g"
16532 flags_dbg_off=""
16533 flags_opt_all=""
16534 flags_opt_yes=""
16535 flags_opt_off=""
16536 else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538$as_echo "no" >&6; }
16539 fi
16540
16541
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16543$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16544
16545 OLDCPPFLAGS=$CPPFLAGS
16546 # CPPPFLAG comes from CURL_CPP_P
16547 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16548 if test -z "$SED"; then
16549 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16550 fi
16551 if test -z "$GREP"; then
16552 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16553 fi
16554
16555 tmp_exp=""
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h. */
16558
16559
16560#ifdef __GNUC__
16561CURL_DEF_TOKEN __GNUC__
16562#endif
16563
16564
16565_ACEOF
16566if ac_fn_c_try_cpp "$LINENO"; then :
16567
16568 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16569 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16570 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16571 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16572 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16573 tmp_exp=""
16574 fi
16575
16576fi
16577rm -f conftest.err conftest.i conftest.$ac_ext
16578 if test -z "$tmp_exp"; then
16579 curl_cv_have_def___GNUC__=no
16580
16581 else
16582 curl_cv_have_def___GNUC__=yes
16583 curl_cv_def___GNUC__=$tmp_exp
16584
16585 fi
16586 CPPFLAGS=$OLDCPPFLAGS
16587
16588
16589 OLDCPPFLAGS=$CPPFLAGS
16590 # CPPPFLAG comes from CURL_CPP_P
16591 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16592 if test -z "$SED"; then
16593 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16594 fi
16595 if test -z "$GREP"; then
16596 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16597 fi
16598
16599 tmp_exp=""
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h. */
16602
16603
16604#ifdef _COMPILER_VERSION
16605CURL_DEF_TOKEN _COMPILER_VERSION
16606#endif
16607
16608
16609_ACEOF
16610if ac_fn_c_try_cpp "$LINENO"; then :
16611
16612 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16613 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16614 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16615 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16616 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16617 tmp_exp=""
16618 fi
16619
16620fi
16621rm -f conftest.err conftest.i conftest.$ac_ext
16622 if test -z "$tmp_exp"; then
16623 curl_cv_have_def__COMPILER_VERSION=no
16624
16625 else
16626 curl_cv_have_def__COMPILER_VERSION=yes
16627 curl_cv_def__COMPILER_VERSION=$tmp_exp
16628
16629 fi
16630 CPPFLAGS=$OLDCPPFLAGS
16631
16632
16633 OLDCPPFLAGS=$CPPFLAGS
16634 # CPPPFLAG comes from CURL_CPP_P
16635 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16636 if test -z "$SED"; then
16637 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16638 fi
16639 if test -z "$GREP"; then
16640 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16641 fi
16642
16643 tmp_exp=""
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h. */
16646
16647
16648#ifdef _SGI_COMPILER_VERSION
16649CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16650#endif
16651
16652
16653_ACEOF
16654if ac_fn_c_try_cpp "$LINENO"; then :
16655
16656 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16657 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16658 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16659 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16660 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16661 tmp_exp=""
16662 fi
16663
16664fi
16665rm -f conftest.err conftest.i conftest.$ac_ext
16666 if test -z "$tmp_exp"; then
16667 curl_cv_have_def__SGI_COMPILER_VERSION=no
16668
16669 else
16670 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16671 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16672
16673 fi
16674 CPPFLAGS=$OLDCPPFLAGS
16675
16676 if test "$curl_cv_have_def___GNUC__" = "no" &&
16677 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16678 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16680$as_echo "yes" >&6; }
16681 compiler_id="SGI_MIPSPRO_C"
16682 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16683 flags_dbg_yes="-g"
16684 flags_dbg_off=""
16685 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16686 flags_opt_yes="-O2"
16687 flags_opt_off="-O0"
16688 else
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16690$as_echo "no" >&6; }
16691 fi
16692
16693
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16695$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16696
16697 OLDCPPFLAGS=$CPPFLAGS
16698 # CPPPFLAG comes from CURL_CPP_P
16699 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16700 if test -z "$SED"; then
16701 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16702 fi
16703 if test -z "$GREP"; then
16704 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16705 fi
16706
16707 tmp_exp=""
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709/* end confdefs.h. */
16710
16711
16712#ifdef __GNUC__
16713CURL_DEF_TOKEN __GNUC__
16714#endif
16715
16716
16717_ACEOF
16718if ac_fn_c_try_cpp "$LINENO"; then :
16719
16720 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16721 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16722 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16723 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16724 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16725 tmp_exp=""
16726 fi
16727
16728fi
16729rm -f conftest.err conftest.i conftest.$ac_ext
16730 if test -z "$tmp_exp"; then
16731 curl_cv_have_def___GNUC__=no
16732
16733 else
16734 curl_cv_have_def___GNUC__=yes
16735 curl_cv_def___GNUC__=$tmp_exp
16736
16737 fi
16738 CPPFLAGS=$OLDCPPFLAGS
16739
16740
16741 OLDCPPFLAGS=$CPPFLAGS
16742 # CPPPFLAG comes from CURL_CPP_P
16743 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16744 if test -z "$SED"; then
16745 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16746 fi
16747 if test -z "$GREP"; then
16748 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16749 fi
16750
16751 tmp_exp=""
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753/* end confdefs.h. */
16754
16755
16756#ifdef __sgi
16757CURL_DEF_TOKEN __sgi
16758#endif
16759
16760
16761_ACEOF
16762if ac_fn_c_try_cpp "$LINENO"; then :
16763
16764 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16765 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16766 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16767 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16768 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16769 tmp_exp=""
16770 fi
16771
16772fi
16773rm -f conftest.err conftest.i conftest.$ac_ext
16774 if test -z "$tmp_exp"; then
16775 curl_cv_have_def___sgi=no
16776
16777 else
16778 curl_cv_have_def___sgi=yes
16779 curl_cv_def___sgi=$tmp_exp
16780
16781 fi
16782 CPPFLAGS=$OLDCPPFLAGS
16783
16784 if test "$curl_cv_have_def___GNUC__" = "no" &&
16785 test "$curl_cv_have_def___sgi" = "yes" &&
16786 test "$compiler_id" = "unknown"; then
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16788$as_echo "yes" >&6; }
16789 compiler_id="SGI_MIPS_C"
16790 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16791 flags_dbg_yes="-g"
16792 flags_dbg_off=""
16793 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16794 flags_opt_yes="-O2"
16795 flags_opt_off="-O0"
16796 else
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798$as_echo "no" >&6; }
16799 fi
16800
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16803$as_echo_n "checking if compiler is SunPro C... " >&6; }
16804
16805 OLDCPPFLAGS=$CPPFLAGS
16806 # CPPPFLAG comes from CURL_CPP_P
16807 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16808 if test -z "$SED"; then
16809 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16810 fi
16811 if test -z "$GREP"; then
16812 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16813 fi
16814
16815 tmp_exp=""
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h. */
16818
16819
16820#ifdef __SUNPRO_C
16821CURL_DEF_TOKEN __SUNPRO_C
16822#endif
16823
16824
16825_ACEOF
16826if ac_fn_c_try_cpp "$LINENO"; then :
16827
16828 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16829 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16830 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16831 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16832 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16833 tmp_exp=""
16834 fi
16835
16836fi
16837rm -f conftest.err conftest.i conftest.$ac_ext
16838 if test -z "$tmp_exp"; then
16839 curl_cv_have_def___SUNPRO_C=no
16840
16841 else
16842 curl_cv_have_def___SUNPRO_C=yes
16843 curl_cv_def___SUNPRO_C=$tmp_exp
16844
16845 fi
16846 CPPFLAGS=$OLDCPPFLAGS
16847
16848 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16850$as_echo "yes" >&6; }
16851 compiler_id="SUNPRO_C"
16852 flags_dbg_all="-g -s"
16853 flags_dbg_yes="-g"
16854 flags_dbg_off="-s"
16855 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16856 flags_opt_yes="-xO2"
16857 flags_opt_off=""
16858 else
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860$as_echo "no" >&6; }
16861 fi
16862
16863
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16865$as_echo_n "checking if compiler is Tiny C... " >&6; }
16866
16867 OLDCPPFLAGS=$CPPFLAGS
16868 # CPPPFLAG comes from CURL_CPP_P
16869 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16870 if test -z "$SED"; then
16871 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16872 fi
16873 if test -z "$GREP"; then
16874 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16875 fi
16876
16877 tmp_exp=""
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879/* end confdefs.h. */
16880
16881
16882#ifdef __TINYC__
16883CURL_DEF_TOKEN __TINYC__
16884#endif
16885
16886
16887_ACEOF
16888if ac_fn_c_try_cpp "$LINENO"; then :
16889
16890 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16891 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16892 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16893 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16894 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16895 tmp_exp=""
16896 fi
16897
16898fi
16899rm -f conftest.err conftest.i conftest.$ac_ext
16900 if test -z "$tmp_exp"; then
16901 curl_cv_have_def___TINYC__=no
16902
16903 else
16904 curl_cv_have_def___TINYC__=yes
16905 curl_cv_def___TINYC__=$tmp_exp
16906
16907 fi
16908 CPPFLAGS=$OLDCPPFLAGS
16909
16910 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16912$as_echo "yes" >&6; }
16913 compiler_id="TINY_C"
16914 flags_dbg_all="-g -b"
16915 flags_dbg_yes="-g"
16916 flags_dbg_off=""
16917 flags_opt_all=""
16918 flags_opt_yes=""
16919 flags_opt_off=""
16920 else
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922$as_echo "no" >&6; }
16923 fi
16924
16925
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16927$as_echo_n "checking if compiler is Watcom C... " >&6; }
16928
16929 OLDCPPFLAGS=$CPPFLAGS
16930 # CPPPFLAG comes from CURL_CPP_P
16931 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16932 if test -z "$SED"; then
16933 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16934 fi
16935 if test -z "$GREP"; then
16936 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16937 fi
16938
16939 tmp_exp=""
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941/* end confdefs.h. */
16942
16943
16944#ifdef __WATCOMC__
16945CURL_DEF_TOKEN __WATCOMC__
16946#endif
16947
16948
16949_ACEOF
16950if ac_fn_c_try_cpp "$LINENO"; then :
16951
16952 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16953 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16954 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16955 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16956 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16957 tmp_exp=""
16958 fi
16959
16960fi
16961rm -f conftest.err conftest.i conftest.$ac_ext
16962 if test -z "$tmp_exp"; then
16963 curl_cv_have_def___WATCOMC__=no
16964
16965 else
16966 curl_cv_have_def___WATCOMC__=yes
16967 curl_cv_def___WATCOMC__=$tmp_exp
16968
16969 fi
16970 CPPFLAGS=$OLDCPPFLAGS
16971
16972 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16974$as_echo "yes" >&6; }
16975
16976 OLDCPPFLAGS=$CPPFLAGS
16977 # CPPPFLAG comes from CURL_CPP_P
16978 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16979 if test -z "$SED"; then
16980 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16981 fi
16982 if test -z "$GREP"; then
16983 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16984 fi
16985
16986 tmp_exp=""
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h. */
16989
16990
16991#ifdef __UNIX__
16992CURL_DEF_TOKEN __UNIX__
16993#endif
16994
16995
16996_ACEOF
16997if ac_fn_c_try_cpp "$LINENO"; then :
16998
16999 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17000 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17001 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17002 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17003 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17004 tmp_exp=""
17005 fi
17006
17007fi
17008rm -f conftest.err conftest.i conftest.$ac_ext
17009 if test -z "$tmp_exp"; then
17010 curl_cv_have_def___UNIX__=no
17011
17012 else
17013 curl_cv_have_def___UNIX__=yes
17014 curl_cv_def___UNIX__=$tmp_exp
17015
17016 fi
17017 CPPFLAGS=$OLDCPPFLAGS
17018
17019 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17020 compiler_id="WATCOM_UNIX_C"
17021 flags_dbg_all="-g1 -g1+ -g2 -g3"
17022 flags_dbg_yes="-g2"
17023 flags_dbg_off=""
17024 flags_opt_all="-O0 -O1 -O2 -O3"
17025 flags_opt_yes="-O2"
17026 flags_opt_off="-O0"
17027 else
17028 compiler_id="WATCOM_WINDOWS_C"
17029 flags_dbg_all=""
17030 flags_dbg_yes=""
17031 flags_dbg_off=""
17032 flags_opt_all=""
17033 flags_opt_yes=""
17034 flags_opt_off=""
17035 fi
17036 else
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17038$as_echo "no" >&6; }
17039 fi
17040
17041 #
17042 if test "$compiler_id" = "unknown"; then
17043 cat <<_EOF 1>&2
17044***
17045*** Warning: This configure script does not have information about the
17046*** compiler you are using, relative to the flags required to enable or
17047*** disable generation of debug info, optimization options or warnings.
17048***
17049*** Whatever settings are present in CFLAGS will be used for this run.
17050***
17051*** If you wish to help the curl project to better support your compiler
17052*** you can report this and the required info on the libcurl development
17053*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17054***
17055_EOF
17056 fi
17057
17058
17059squeeze() {
17060 _sqz_result=""
17061 eval _sqz_input=\$$1
17062 for _sqz_token in $_sqz_input; do
17063 if test -z "$_sqz_result"; then
17064 _sqz_result="$_sqz_token"
17065 else
17066 _sqz_result="$_sqz_result $_sqz_token"
17067 fi
17068 done
17069 eval $1=\$_sqz_result
17070 return 0
17071}
17072
17073
17074 #
17075 if test "$compiler_id" != "unknown"; then
17076 #
17077 if test "$compiler_id" = "GNU_C" ||
17078 test "$compiler_id" = "CLANG"; then
17079
17080 if test "$compiler_id" = "GNU_C" ||
17081 test "$compiler_id" = "CLANG"; then
17082 tmp_has_include="no"
17083 tmp_chg_FLAGS="$CFLAGS"
17084 for word1 in $tmp_chg_FLAGS; do
17085 case "$word1" in
17086 -I*)
17087 tmp_has_include="yes"
17088 ;;
17089 esac
17090 done
17091 if test "$tmp_has_include" = "yes"; then
17092 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17093 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17094 CFLAGS="$tmp_chg_FLAGS"
17095 squeeze CFLAGS
17096 fi
17097 tmp_has_include="no"
17098 tmp_chg_FLAGS="$CPPFLAGS"
17099 for word1 in $tmp_chg_FLAGS; do
17100 case "$word1" in
17101 -I*)
17102 tmp_has_include="yes"
17103 ;;
17104 esac
17105 done
17106 if test "$tmp_has_include" = "yes"; then
17107 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17108 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17109 CPPFLAGS="$tmp_chg_FLAGS"
17110 squeeze CPPFLAGS
17111 fi
17112 fi
17113
17114 fi
17115 #
17116 tmp_save_CPPFLAGS="$CPPFLAGS"
17117 tmp_save_CFLAGS="$CFLAGS"
17118 tmp_CPPFLAGS=""
17119 tmp_CFLAGS=""
17120 #
17121 case "$compiler_id" in
17122 #
17123 CLANG)
17124 #
17125 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17126 ;;
17127 #
17128 DEC_C)
17129 #
17130 tmp_CFLAGS="$tmp_CFLAGS -std1"
17131 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17132 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17133 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17134 ;;
17135 #
17136 GNU_C)
17137 #
17138 if test "$compiler_num" -ge "295"; then
17139 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17140 fi
17141 ;;
17142 #
17143 HP_UX_C)
17144 #
17145 tmp_CFLAGS="$tmp_CFLAGS -z"
17146 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17147 ;;
17148 #
17149 IBM_C)
17150 #
17151 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17152 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17153 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17154 ;;
17155 #
17156 INTEL_UNIX_C)
17157 #
17158 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17159 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17160 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17161 ;;
17162 #
17163 INTEL_WINDOWS_C)
17164 #
17165 tmp_CFLAGS="$tmp_CFLAGS"
17166 ;;
17167 #
17168 LCC)
17169 #
17170 tmp_CFLAGS="$tmp_CFLAGS -n"
17171 ;;
17172 #
17173 SGI_MIPS_C)
17174 #
17175 tmp_CFLAGS="$tmp_CFLAGS"
17176 ;;
17177 #
17178 SGI_MIPSPRO_C)
17179 #
17180 tmp_CFLAGS="$tmp_CFLAGS"
17181 ;;
17182 #
17183 SUNPRO_C)
17184 #
17185 tmp_CFLAGS="$tmp_CFLAGS"
17186 ;;
17187 #
17188 TINY_C)
17189 #
17190 tmp_CFLAGS="$tmp_CFLAGS"
17191 ;;
17192 #
17193 WATCOM_UNIX_C)
17194 #
17195 tmp_CFLAGS="$tmp_CFLAGS"
17196 ;;
17197 #
17198 WATCOM_WINDOWS_C)
17199 #
17200 tmp_CFLAGS="$tmp_CFLAGS"
17201 ;;
17202 #
17203 esac
17204 #
17205 squeeze tmp_CPPFLAGS
17206 squeeze tmp_CFLAGS
17207 #
17208 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17210$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17211 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17212 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17213 squeeze CPPFLAGS
17214 squeeze CFLAGS
17215
17216 tmp_compiler_works="unknown"
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218/* end confdefs.h. */
17219
17220
17221
17222int main (void)
17223{
17224
17225 int i = 1;
17226 return i;
17227
17228 ;
17229 return 0;
17230}
17231
17232_ACEOF
17233if ac_fn_c_try_compile "$LINENO"; then :
17234
17235 tmp_compiler_works="yes"
17236
17237else
17238
17239 tmp_compiler_works="no"
17240 echo " " >&6
17241 sed 's/^/cc-fail: /' conftest.err >&6
17242 echo " " >&6
17243
17244fi
17245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 if test "$tmp_compiler_works" = "yes"; then
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248/* end confdefs.h. */
17249
17250
17251
17252int main (void)
17253{
17254
17255 int i = 1;
17256 return i;
17257
17258 ;
17259 return 0;
17260}
17261
17262_ACEOF
17263if ac_fn_c_try_link "$LINENO"; then :
17264
17265 tmp_compiler_works="yes"
17266
17267else
17268
17269 tmp_compiler_works="no"
17270 echo " " >&6
17271 sed 's/^/link-fail: /' conftest.err >&6
17272 echo " " >&6
17273
17274fi
17275rm -f core conftest.err conftest.$ac_objext \
17276 conftest$ac_exeext conftest.$ac_ext
17277 fi
17278 if test "x$cross_compiling" != "xyes" &&
17279 test "$tmp_compiler_works" = "yes"; then
17280 if test "$cross_compiling" = yes; then :
17281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17283as_fn_error $? "cannot run test program while cross compiling
17284See \`config.log' for more details" "$LINENO" 5; }
17285else
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287/* end confdefs.h. */
17288
17289
17290# ifdef __STDC__
17291# include <stdlib.h>
17292# endif
17293
17294int main (void)
17295{
17296
17297 int i = 0;
17298 exit(i);
17299
17300 ;
17301 return 0;
17302}
17303
17304_ACEOF
17305if ac_fn_c_try_run "$LINENO"; then :
17306
17307 tmp_compiler_works="yes"
17308
17309else
17310
17311 tmp_compiler_works="no"
17312 echo " " >&6
17313 echo "run-fail: test program exited with status $ac_status" >&6
17314 echo " " >&6
17315
17316fi
17317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17318 conftest.$ac_objext conftest.beam conftest.$ac_ext
17319fi
17320
17321 fi
17322 if test "$tmp_compiler_works" = "yes"; then
17323
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17325$as_echo "yes" >&6; }
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17327$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17328
17329 else
17330
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17332$as_echo "no" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17334$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17335 CPPFLAGS="$tmp_save_CPPFLAGS"
17336 CFLAGS="$tmp_save_CFLAGS"
17337
17338 fi
17339
17340 fi
17341 #
17342 fi
17343
17344
17345 #
17346 if test "$compiler_id" != "unknown"; then
17347 #
17348 tmp_save_CFLAGS="$CFLAGS"
17349 tmp_save_CPPFLAGS="$CPPFLAGS"
17350 #
17351 tmp_options=""
17352 tmp_CFLAGS="$CFLAGS"
17353 tmp_CPPFLAGS="$CPPFLAGS"
17354
17355 ac_var_stripped=""
17356 for word1 in $tmp_CFLAGS; do
17357 ac_var_strip_word="no"
17358 for word2 in $flags_dbg_all; do
17359 if test "$word1" = "$word2"; then
17360 ac_var_strip_word="yes"
17361 fi
17362 done
17363 if test "$ac_var_strip_word" = "no"; then
17364 ac_var_stripped="$ac_var_stripped $word1"
17365 fi
17366 done
17367 tmp_CFLAGS="$ac_var_stripped"
17368 squeeze tmp_CFLAGS
17369
17370
17371 ac_var_stripped=""
17372 for word1 in $tmp_CPPFLAGS; do
17373 ac_var_strip_word="no"
17374 for word2 in $flags_dbg_all; do
17375 if test "$word1" = "$word2"; then
17376 ac_var_strip_word="yes"
17377 fi
17378 done
17379 if test "$ac_var_strip_word" = "no"; then
17380 ac_var_stripped="$ac_var_stripped $word1"
17381 fi
17382 done
17383 tmp_CPPFLAGS="$ac_var_stripped"
17384 squeeze tmp_CPPFLAGS
17385
17386 #
17387 if test "$want_debug" = "yes"; then
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17389$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17390 tmp_options="$flags_dbg_yes"
17391 fi
17392 if test "$want_debug" = "no"; then
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17394$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17395 tmp_options="$flags_dbg_off"
17396 fi
17397 #
17398 if test "$flags_prefer_cppflags" = "yes"; then
17399 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17400 CFLAGS="$tmp_CFLAGS"
17401 else
17402 CPPFLAGS="$tmp_CPPFLAGS"
17403 CFLAGS="$tmp_CFLAGS $tmp_options"
17404 fi
17405 squeeze CPPFLAGS
17406 squeeze CFLAGS
17407
17408 tmp_compiler_works="unknown"
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h. */
17411
17412
17413
17414int main (void)
17415{
17416
17417 int i = 1;
17418 return i;
17419
17420 ;
17421 return 0;
17422}
17423
17424_ACEOF
17425if ac_fn_c_try_compile "$LINENO"; then :
17426
17427 tmp_compiler_works="yes"
17428
17429else
17430
17431 tmp_compiler_works="no"
17432 echo " " >&6
17433 sed 's/^/cc-fail: /' conftest.err >&6
17434 echo " " >&6
17435
17436fi
17437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 if test "$tmp_compiler_works" = "yes"; then
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h. */
17441
17442
17443
17444int main (void)
17445{
17446
17447 int i = 1;
17448 return i;
17449
17450 ;
17451 return 0;
17452}
17453
17454_ACEOF
17455if ac_fn_c_try_link "$LINENO"; then :
17456
17457 tmp_compiler_works="yes"
17458
17459else
17460
17461 tmp_compiler_works="no"
17462 echo " " >&6
17463 sed 's/^/link-fail: /' conftest.err >&6
17464 echo " " >&6
17465
17466fi
17467rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469 fi
17470 if test "x$cross_compiling" != "xyes" &&
17471 test "$tmp_compiler_works" = "yes"; then
17472 if test "$cross_compiling" = yes; then :
17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17475as_fn_error $? "cannot run test program while cross compiling
17476See \`config.log' for more details" "$LINENO" 5; }
17477else
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479/* end confdefs.h. */
17480
17481
17482# ifdef __STDC__
17483# include <stdlib.h>
17484# endif
17485
17486int main (void)
17487{
17488
17489 int i = 0;
17490 exit(i);
17491
17492 ;
17493 return 0;
17494}
17495
17496_ACEOF
17497if ac_fn_c_try_run "$LINENO"; then :
17498
17499 tmp_compiler_works="yes"
17500
17501else
17502
17503 tmp_compiler_works="no"
17504 echo " " >&6
17505 echo "run-fail: test program exited with status $ac_status" >&6
17506 echo " " >&6
17507
17508fi
17509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17510 conftest.$ac_objext conftest.beam conftest.$ac_ext
17511fi
17512
17513 fi
17514 if test "$tmp_compiler_works" = "yes"; then
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17517$as_echo "yes" >&6; }
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17519$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17520
17521 else
17522
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17524$as_echo "no" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17526$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17527 CPPFLAGS="$tmp_save_CPPFLAGS"
17528 CFLAGS="$tmp_save_CFLAGS"
17529
17530 fi
17531
17532 #
17533 fi
17534
17535
17536 #
17537 if test "$compiler_id" != "unknown"; then
17538 #
17539 tmp_save_CFLAGS="$CFLAGS"
17540 tmp_save_CPPFLAGS="$CPPFLAGS"
17541 #
17542 tmp_options=""
17543 tmp_CFLAGS="$CFLAGS"
17544 tmp_CPPFLAGS="$CPPFLAGS"
17545 honor_optimize_option="yes"
17546 #
17547 #
17548 if test "$want_optimize" = "assume_no" ||
17549 test "$want_optimize" = "assume_yes"; then
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17551$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17552
17553
17554 ac_var_match_word="no"
17555 for word1 in $tmp_CFLAGS; do
17556 for word2 in $flags_opt_all; do
17557 if test "$word1" = "$word2"; then
17558 ac_var_match_word="yes"
17559 fi
17560 done
17561 done
17562
17563 if test "$ac_var_match_word" = "yes"; then
17564
17565 honor_optimize_option="no"
17566
17567
17568 fi
17569
17570
17571
17572 ac_var_match_word="no"
17573 for word1 in $tmp_CPPFLAGS; do
17574 for word2 in $flags_opt_all; do
17575 if test "$word1" = "$word2"; then
17576 ac_var_match_word="yes"
17577 fi
17578 done
17579 done
17580
17581 if test "$ac_var_match_word" = "yes"; then
17582
17583 honor_optimize_option="no"
17584
17585
17586 fi
17587
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17589$as_echo "$honor_optimize_option" >&6; }
17590 if test "$honor_optimize_option" = "yes"; then
17591 if test "$want_optimize" = "assume_yes"; then
17592 want_optimize="yes"
17593 fi
17594 if test "$want_optimize" = "assume_no"; then
17595 want_optimize="no"
17596 fi
17597 fi
17598 fi
17599 #
17600 if test "$honor_optimize_option" = "yes"; then
17601
17602 ac_var_stripped=""
17603 for word1 in $tmp_CFLAGS; do
17604 ac_var_strip_word="no"
17605 for word2 in $flags_opt_all; do
17606 if test "$word1" = "$word2"; then
17607 ac_var_strip_word="yes"
17608 fi
17609 done
17610 if test "$ac_var_strip_word" = "no"; then
17611 ac_var_stripped="$ac_var_stripped $word1"
17612 fi
17613 done
17614 tmp_CFLAGS="$ac_var_stripped"
17615 squeeze tmp_CFLAGS
17616
17617
17618 ac_var_stripped=""
17619 for word1 in $tmp_CPPFLAGS; do
17620 ac_var_strip_word="no"
17621 for word2 in $flags_opt_all; do
17622 if test "$word1" = "$word2"; then
17623 ac_var_strip_word="yes"
17624 fi
17625 done
17626 if test "$ac_var_strip_word" = "no"; then
17627 ac_var_stripped="$ac_var_stripped $word1"
17628 fi
17629 done
17630 tmp_CPPFLAGS="$ac_var_stripped"
17631 squeeze tmp_CPPFLAGS
17632
17633 if test "$want_optimize" = "yes"; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17635$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17636 tmp_options="$flags_opt_yes"
17637 fi
17638 if test "$want_optimize" = "no"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17640$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17641 tmp_options="$flags_opt_off"
17642 fi
17643 if test "$flags_prefer_cppflags" = "yes"; then
17644 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17645 CFLAGS="$tmp_CFLAGS"
17646 else
17647 CPPFLAGS="$tmp_CPPFLAGS"
17648 CFLAGS="$tmp_CFLAGS $tmp_options"
17649 fi
17650 squeeze CPPFLAGS
17651 squeeze CFLAGS
17652
17653 tmp_compiler_works="unknown"
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655/* end confdefs.h. */
17656
17657
17658
17659int main (void)
17660{
17661
17662 int i = 1;
17663 return i;
17664
17665 ;
17666 return 0;
17667}
17668
17669_ACEOF
17670if ac_fn_c_try_compile "$LINENO"; then :
17671
17672 tmp_compiler_works="yes"
17673
17674else
17675
17676 tmp_compiler_works="no"
17677 echo " " >&6
17678 sed 's/^/cc-fail: /' conftest.err >&6
17679 echo " " >&6
17680
17681fi
17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 if test "$tmp_compiler_works" = "yes"; then
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685/* end confdefs.h. */
17686
17687
17688
17689int main (void)
17690{
17691
17692 int i = 1;
17693 return i;
17694
17695 ;
17696 return 0;
17697}
17698
17699_ACEOF
17700if ac_fn_c_try_link "$LINENO"; then :
17701
17702 tmp_compiler_works="yes"
17703
17704else
17705
17706 tmp_compiler_works="no"
17707 echo " " >&6
17708 sed 's/^/link-fail: /' conftest.err >&6
17709 echo " " >&6
17710
17711fi
17712rm -f core conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17714 fi
17715 if test "x$cross_compiling" != "xyes" &&
17716 test "$tmp_compiler_works" = "yes"; then
17717 if test "$cross_compiling" = yes; then :
17718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17720as_fn_error $? "cannot run test program while cross compiling
17721See \`config.log' for more details" "$LINENO" 5; }
17722else
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724/* end confdefs.h. */
17725
17726
17727# ifdef __STDC__
17728# include <stdlib.h>
17729# endif
17730
17731int main (void)
17732{
17733
17734 int i = 0;
17735 exit(i);
17736
17737 ;
17738 return 0;
17739}
17740
17741_ACEOF
17742if ac_fn_c_try_run "$LINENO"; then :
17743
17744 tmp_compiler_works="yes"
17745
17746else
17747
17748 tmp_compiler_works="no"
17749 echo " " >&6
17750 echo "run-fail: test program exited with status $ac_status" >&6
17751 echo " " >&6
17752
17753fi
17754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17755 conftest.$ac_objext conftest.beam conftest.$ac_ext
17756fi
17757
17758 fi
17759 if test "$tmp_compiler_works" = "yes"; then
17760
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762$as_echo "yes" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17764$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17765
17766 else
17767
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17771$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17772 CPPFLAGS="$tmp_save_CPPFLAGS"
17773 CFLAGS="$tmp_save_CFLAGS"
17774
17775 fi
17776
17777 fi
17778 #
17779 fi
17780
17781
17782 #
17783 if test "$compiler_id" != "unknown"; then
17784 #
17785 tmp_save_CPPFLAGS="$CPPFLAGS"
17786 tmp_save_CFLAGS="$CFLAGS"
17787 tmp_CPPFLAGS=""
17788 tmp_CFLAGS=""
17789 #
17790 case "$compiler_id" in
17791 #
17792 CLANG)
17793 #
17794 if test "$want_warnings" = "yes"; then
17795 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17796 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17797 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17798 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17799 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17800 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17801 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17802 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17803 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17804 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17805 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17806 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17807 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17808 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17809 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17810 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17811 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17812 #
17813 if test "$compiler_num" -ge "101"; then
17814 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17815 fi
17816 #
17817 if test "$compiler_num" -ge "208"; then
17818 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17819 fi
17820 #
17821 if test "$compiler_num" -ge "209"; then
17822 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17823 fi
17824 #
17825 if test "$compiler_num" -ge "302"; then
17826 case $host_os in
17827 cygwin* | mingw*)
17828 ;;
17829 *)
17830 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17831 ;;
17832 esac
17833 fi
17834 #
17835 if test "$compiler_num" -ge "306"; then
17836 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17837 fi
17838 #
17839 if test "$compiler_num" -ge "309"; then
17840 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017841 # avoid the varargs warning, fixed in 4.0
17842 # https://bugs.llvm.org/show_bug.cgi?id=29140
17843 if test "$compiler_num" -lt "400"; then
17844 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17845 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017846 fi
17847 fi
17848 ;;
17849 #
17850 DEC_C)
17851 #
17852 if test "$want_warnings" = "yes"; then
17853 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17854 fi
17855 ;;
17856 #
17857 GNU_C)
17858 #
17859 if test "$want_warnings" = "yes"; then
17860 #
17861 if test "x$cross_compiling" != "xyes" ||
17862 test "$compiler_num" -ge "300"; then
17863 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17864 fi
17865 #
17866 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17867 #
17868 if test "$compiler_num" -ge "104"; then
17869 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17870 if test "x$cross_compiling" != "xyes" ||
17871 test "$compiler_num" -ge "300"; then
17872 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17873 fi
17874 fi
17875 #
17876 if test "$compiler_num" -ge "207"; then
17877 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17878 if test "x$cross_compiling" != "xyes" ||
17879 test "$compiler_num" -ge "300"; then
17880 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17881 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17882 fi
17883 fi
17884 #
17885 if test "$compiler_num" -ge "295"; then
17886 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017887 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017888 fi
17889 #
17890 if test "$compiler_num" -ge "296"; then
17891 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17892 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17893 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17894 fi
17895 #
17896 if test "$compiler_num" -ge "297"; then
17897 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17898 fi
17899 #
17900 if test "$compiler_num" -ge "300"; then
17901 tmp_CFLAGS="$tmp_CFLAGS"
17902 fi
17903 #
17904 if test "$compiler_num" -ge "303"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17906 fi
17907 #
17908 if test "$compiler_num" -ge "304"; then
17909 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017910 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017911 fi
17912 #
17913 if test "$compiler_num" -ge "400"; then
17914 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17915 fi
17916 #
17917 if test "$compiler_num" -ge "402"; then
17918 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17919 fi
17920 #
17921 if test "$compiler_num" -ge "403"; then
17922 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17923 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17924 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17925 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017926 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017927 fi
17928 #
17929 if test "$compiler_num" -ge "405"; then
17930 if test "$curl_cv_have_def__WIN32" = "yes"; then
17931 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17932 fi
17933 fi
17934 #
17935 if test "$compiler_num" -ge "406"; then
17936 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17937 fi
17938 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017939 if test "$compiler_num" -ge "408"; then
17940 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17941 fi
17942 #
17943 if test "$compiler_num" -ge "500"; then
17944 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17945 fi
17946 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017947 if test "$compiler_num" -ge "600"; then
17948 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17949 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017950 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017951 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017952 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017953 fi
17954 #
17955 if test "$compiler_num" -ge "700"; then
17956 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17957 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17958 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17959 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17960 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017961 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017962 fi
17963 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017964 fi
17965 #
17966 if test "$compiler_num" -ge "300"; then
17967 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17968 else
17969 if test "x$cross_compiling" = "xyes"; then
17970 if test "$compiler_num" -ge "104"; then
17971 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17972 fi
17973 if test "$compiler_num" -ge "207"; then
17974 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17975 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17976 fi
17977 fi
17978 fi
17979 ;;
17980 #
17981 HP_UX_C)
17982 #
17983 if test "$want_warnings" = "yes"; then
17984 tmp_CFLAGS="$tmp_CFLAGS +w1"
17985 fi
17986 ;;
17987 #
17988 IBM_C)
17989 #
17990 tmp_CFLAGS="$tmp_CFLAGS"
17991 ;;
17992 #
17993 INTEL_UNIX_C)
17994 #
17995 if test "$want_warnings" = "yes"; then
17996 if test "$compiler_num" -gt "600"; then
17997 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17998 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17999 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18000 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18001 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18002 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18003 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18004 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18005 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18006 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18007 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18008 fi
18009 fi
18010 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18011 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18012 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18013 if test "$compiler_num" -ge "1000"; then
18014 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18015 fi
18016 ;;
18017 #
18018 INTEL_WINDOWS_C)
18019 #
18020 tmp_CFLAGS="$tmp_CFLAGS"
18021 ;;
18022 #
18023 LCC)
18024 #
18025 if test "$want_warnings" = "yes"; then
18026 tmp_CFLAGS="$tmp_CFLAGS"
18027 fi
18028 ;;
18029 #
18030 SGI_MIPS_C)
18031 #
18032 if test "$want_warnings" = "yes"; then
18033 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18034 fi
18035 ;;
18036 #
18037 SGI_MIPSPRO_C)
18038 #
18039 if test "$want_warnings" = "yes"; then
18040 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18041 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18042 fi
18043 ;;
18044 #
18045 SUNPRO_C)
18046 #
18047 if test "$want_warnings" = "yes"; then
18048 tmp_CFLAGS="$tmp_CFLAGS -v"
18049 fi
18050 ;;
18051 #
18052 TINY_C)
18053 #
18054 if test "$want_warnings" = "yes"; then
18055 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18056 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18057 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18058 fi
18059 ;;
18060 #
18061 WATCOM_UNIX_C)
18062 #
18063 if test "$want_warnings" = "yes"; then
18064 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18065 fi
18066 ;;
18067 #
18068 WATCOM_WINDOWS_C)
18069 #
18070 tmp_CFLAGS="$tmp_CFLAGS"
18071 ;;
18072 #
18073 esac
18074 #
18075 squeeze tmp_CPPFLAGS
18076 squeeze tmp_CFLAGS
18077 #
18078 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18080$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18081 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18082 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18083 squeeze CPPFLAGS
18084 squeeze CFLAGS
18085
18086 tmp_compiler_works="unknown"
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h. */
18089
18090
18091
18092int main (void)
18093{
18094
18095 int i = 1;
18096 return i;
18097
18098 ;
18099 return 0;
18100}
18101
18102_ACEOF
18103if ac_fn_c_try_compile "$LINENO"; then :
18104
18105 tmp_compiler_works="yes"
18106
18107else
18108
18109 tmp_compiler_works="no"
18110 echo " " >&6
18111 sed 's/^/cc-fail: /' conftest.err >&6
18112 echo " " >&6
18113
18114fi
18115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116 if test "$tmp_compiler_works" = "yes"; then
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118/* end confdefs.h. */
18119
18120
18121
18122int main (void)
18123{
18124
18125 int i = 1;
18126 return i;
18127
18128 ;
18129 return 0;
18130}
18131
18132_ACEOF
18133if ac_fn_c_try_link "$LINENO"; then :
18134
18135 tmp_compiler_works="yes"
18136
18137else
18138
18139 tmp_compiler_works="no"
18140 echo " " >&6
18141 sed 's/^/link-fail: /' conftest.err >&6
18142 echo " " >&6
18143
18144fi
18145rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 fi
18148 if test "x$cross_compiling" != "xyes" &&
18149 test "$tmp_compiler_works" = "yes"; then
18150 if test "$cross_compiling" = yes; then :
18151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18153as_fn_error $? "cannot run test program while cross compiling
18154See \`config.log' for more details" "$LINENO" 5; }
18155else
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157/* end confdefs.h. */
18158
18159
18160# ifdef __STDC__
18161# include <stdlib.h>
18162# endif
18163
18164int main (void)
18165{
18166
18167 int i = 0;
18168 exit(i);
18169
18170 ;
18171 return 0;
18172}
18173
18174_ACEOF
18175if ac_fn_c_try_run "$LINENO"; then :
18176
18177 tmp_compiler_works="yes"
18178
18179else
18180
18181 tmp_compiler_works="no"
18182 echo " " >&6
18183 echo "run-fail: test program exited with status $ac_status" >&6
18184 echo " " >&6
18185
18186fi
18187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18188 conftest.$ac_objext conftest.beam conftest.$ac_ext
18189fi
18190
18191 fi
18192 if test "$tmp_compiler_works" = "yes"; then
18193
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18195$as_echo "yes" >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18197$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18198
18199 else
18200
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202$as_echo "no" >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18204$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18205 CPPFLAGS="$tmp_save_CPPFLAGS"
18206 CFLAGS="$tmp_save_CFLAGS"
18207
18208 fi
18209
18210 fi
18211 #
18212 fi
18213
18214
18215if test "$compiler_id" = "INTEL_UNIX_C"; then
18216 #
18217 if test "$compiler_num" -ge "1000"; then
18218 CFLAGS="$CFLAGS -shared-intel"
18219 elif test "$compiler_num" -ge "900"; then
18220 CFLAGS="$CFLAGS -i-dynamic"
18221 fi
18222 #
18223fi
18224
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18227$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229/* end confdefs.h. */
18230
18231
18232
18233int main (void)
18234{
18235
18236 force compilation error
18237
18238 ;
18239 return 0;
18240}
18241
18242_ACEOF
18243if ac_fn_c_try_compile "$LINENO"; then :
18244
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246$as_echo "no" >&6; }
18247 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18248
18249else
18250
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18252$as_echo "yes" >&6; }
18253
18254fi
18255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256
18257
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18259$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261/* end confdefs.h. */
18262
18263
18264 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18265
18266int main (void)
18267{
18268
18269 bad_t dummy;
18270
18271 ;
18272 return 0;
18273}
18274
18275_ACEOF
18276if ac_fn_c_try_compile "$LINENO"; then :
18277
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279$as_echo "no" >&6; }
18280 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18281
18282else
18283
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18285$as_echo "yes" >&6; }
18286
18287fi
18288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18292$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294/* end confdefs.h. */
18295
18296
18297# include <stdlib.h>
18298 int rand(int n);
18299 int rand(int n)
18300 {
18301 if(n)
18302 return ++n;
18303 else
18304 return n;
18305 }
18306
18307int main (void)
18308{
18309
18310 int i[2]={0,0};
18311 int j = rand(i[0]);
18312 if(j)
18313 return j;
18314
18315 ;
18316 return 0;
18317}
18318
18319_ACEOF
18320if ac_fn_c_try_compile "$LINENO"; then :
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323$as_echo "no" >&6; }
18324 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18325
18326else
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18329$as_echo "yes" >&6; }
18330
18331fi
18332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333
18334
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18336$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18337 supports_symbol_hiding="no"
18338 symbol_hiding_CFLAGS=""
18339 symbol_hiding_EXTERN=""
18340 tmp_CFLAGS=""
18341 tmp_EXTERN=""
18342 case "$compiler_id" in
18343 CLANG)
18344 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18345 tmp_CFLAGS="-fvisibility=hidden"
18346 supports_symbol_hiding="yes"
18347 ;;
18348 GNU_C)
18349 if test "$compiler_num" -ge "304"; then
18350 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18351 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18352 tmp_CFLAGS="-fvisibility=hidden"
18353 supports_symbol_hiding="yes"
18354 fi
18355 fi
18356 ;;
18357 INTEL_UNIX_C)
18358 if test "$compiler_num" -ge "900"; then
18359 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18360 tmp_save_CFLAGS="$CFLAGS"
18361 CFLAGS="$CFLAGS -fvisibility=hidden"
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363/* end confdefs.h. */
18364
18365
18366# include <stdio.h>
18367
18368int main (void)
18369{
18370
18371 printf("icc fvisibility bug test");
18372
18373 ;
18374 return 0;
18375}
18376
18377_ACEOF
18378if ac_fn_c_try_link "$LINENO"; then :
18379
18380 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18381 tmp_CFLAGS="-fvisibility=hidden"
18382 supports_symbol_hiding="yes"
18383
18384fi
18385rm -f core conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387 CFLAGS="$tmp_save_CFLAGS"
18388 fi
18389 fi
18390 ;;
18391 SUNPRO_C)
18392 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18393 tmp_EXTERN="__global"
18394 tmp_CFLAGS="-xldscope=hidden"
18395 supports_symbol_hiding="yes"
18396 fi
18397 ;;
18398 esac
18399 if test "$supports_symbol_hiding" = "yes"; then
18400 tmp_save_CFLAGS="$CFLAGS"
18401 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18402 squeeze CFLAGS
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404/* end confdefs.h. */
18405
18406
18407 $tmp_EXTERN char *dummy(char *buff);
18408 char *dummy(char *buff)
18409 {
18410 if(buff)
18411 return ++buff;
18412 else
18413 return buff;
18414 }
18415
18416int main (void)
18417{
18418
18419 char b[16];
18420 char *r = dummy(&b[0]);
18421 if(r)
18422 return (int)*r;
18423
18424 ;
18425 return 0;
18426}
18427
18428_ACEOF
18429if ac_fn_c_try_compile "$LINENO"; then :
18430
18431 supports_symbol_hiding="yes"
18432 if test -f conftest.err; then
18433 grep 'visibility' conftest.err >/dev/null
18434 if test "$?" -eq "0"; then
18435 supports_symbol_hiding="no"
18436 fi
18437 fi
18438
18439else
18440
18441 supports_symbol_hiding="no"
18442 echo " " >&6
18443 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18444 sed 's/^/cc-err: /' conftest.err >&6
18445 echo " " >&6
18446
18447fi
18448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449 CFLAGS="$tmp_save_CFLAGS"
18450 fi
18451 if test "$supports_symbol_hiding" = "yes"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453$as_echo "yes" >&6; }
18454 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18455 symbol_hiding_EXTERN="$tmp_EXTERN"
18456 else
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18458$as_echo "no" >&6; }
18459 fi
18460
18461
18462
18463 supports_curldebug="unknown"
18464 if test "$want_curldebug" = "yes"; then
18465 if test "x$enable_shared" != "xno" &&
18466 test "x$enable_shared" != "xyes"; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18468$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18469 supports_curldebug="no"
18470 fi
18471 if test "x$enable_static" != "xno" &&
18472 test "x$enable_static" != "xyes"; then
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18474$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18475 supports_curldebug="no"
18476 fi
18477 if test "$supports_curldebug" != "no"; then
18478 if test "$enable_shared" = "yes" &&
18479 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18480 supports_curldebug="no"
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18482$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18483 fi
18484 fi
18485 fi
18486 #
18487 if test "$want_curldebug" = "yes"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18489$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18490 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18492$as_echo "$supports_curldebug" >&6; }
18493 if test "$supports_curldebug" = "no"; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18495$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18496 want_curldebug="no"
18497 fi
18498 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018499
18500 if test x$want_curldebug = xyes; then
18501 CURLDEBUG_TRUE=
18502 CURLDEBUG_FALSE='#'
18503else
18504 CURLDEBUG_TRUE='#'
18505 CURLDEBUG_FALSE=
18506fi
18507
18508
18509supports_unittests=yes
18510# cross-compilation of unit tests static library/programs fails when
18511# libcurl shared library is built. This might be due to a libtool or
18512# automake issue. In this case we disable unit tests.
18513if test "x$cross_compiling" != "xno" &&
18514 test "x$enable_shared" != "xno"; then
18515 supports_unittests=no
18516fi
18517
18518# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18519# a problem related with OpenSSL headers and library versions not matching.
18520# Disable unit tests while time to further investigate this is found.
18521case $host in
18522 mips-sgi-irix6.5)
18523 if test "$compiler_id" = "GNU_C"; then
18524 supports_unittests=no
18525 fi
18526 ;;
18527esac
18528
18529# All AIX autobuilds fails unit tests linking against unittests library
18530# due to unittests library being built with no symbols or members. Libtool ?
18531# Disable unit tests while time to further investigate this is found.
18532case $host_os in
18533 aix*)
18534 supports_unittests=no
18535 ;;
18536esac
18537
18538if test "x$want_debug" = "xyes" &&
18539 test "x$supports_unittests" = "xyes"; then
18540 want_unittests=yes
18541else
18542 want_unittests=no
18543fi
18544 if test x$want_unittests = xyes; then
18545 BUILD_UNITTESTS_TRUE=
18546 BUILD_UNITTESTS_FALSE='#'
18547else
18548 BUILD_UNITTESTS_TRUE='#'
18549 BUILD_UNITTESTS_FALSE=
18550fi
18551
18552
18553
18554
18555
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18557$as_echo_n "checking for windows.h... " >&6; }
18558if ${curl_cv_header_windows_h+:} false; then :
18559 $as_echo_n "(cached) " >&6
18560else
18561
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563/* end confdefs.h. */
18564
18565
18566#undef inline
18567#ifndef WIN32_LEAN_AND_MEAN
18568#define WIN32_LEAN_AND_MEAN
18569#endif
18570#include <windows.h>
18571
18572int main (void)
18573{
18574
18575#if defined(__CYGWIN__) || defined(__CEGCC__)
18576 HAVE_WINDOWS_H shall not be defined.
18577#else
18578 int dummy=2*WINVER;
18579#endif
18580
18581 ;
18582 return 0;
18583}
18584
18585_ACEOF
18586if ac_fn_c_try_compile "$LINENO"; then :
18587
18588 curl_cv_header_windows_h="yes"
18589
18590else
18591
18592 curl_cv_header_windows_h="no"
18593
18594fi
18595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18596
18597fi
18598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18599$as_echo "$curl_cv_header_windows_h" >&6; }
18600 case "$curl_cv_header_windows_h" in
18601 yes)
18602
18603cat >>confdefs.h <<_ACEOF
18604#define HAVE_WINDOWS_H 1
18605_ACEOF
18606
18607 ;;
18608 esac
18609
18610
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18612$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18613if ${curl_cv_native_windows+:} false; then :
18614 $as_echo_n "(cached) " >&6
18615else
18616
18617 if test "$curl_cv_header_windows_h" = "no"; then
18618 curl_cv_native_windows="no"
18619 else
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621/* end confdefs.h. */
18622
18623
18624
18625int main (void)
18626{
18627
18628#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18629 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18630 int dummy=1;
18631#else
18632 Not a native Windows build target.
18633#endif
18634
18635 ;
18636 return 0;
18637}
18638
18639_ACEOF
18640if ac_fn_c_try_compile "$LINENO"; then :
18641
18642 curl_cv_native_windows="yes"
18643
18644else
18645
18646 curl_cv_native_windows="no"
18647
18648fi
18649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650 fi
18651
18652fi
18653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18654$as_echo "$curl_cv_native_windows" >&6; }
18655 if test "x$curl_cv_native_windows" = xyes; then
18656 DOING_NATIVE_WINDOWS_TRUE=
18657 DOING_NATIVE_WINDOWS_FALSE='#'
18658else
18659 DOING_NATIVE_WINDOWS_TRUE='#'
18660 DOING_NATIVE_WINDOWS_FALSE=
18661fi
18662
18663
18664case X-"$curl_cv_native_windows" in
18665 X-yes)
18666
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18668$as_echo_n "checking for winsock.h... " >&6; }
18669if ${curl_cv_header_winsock_h+:} false; then :
18670 $as_echo_n "(cached) " >&6
18671else
18672
18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674/* end confdefs.h. */
18675
18676
18677#undef inline
18678#ifndef WIN32_LEAN_AND_MEAN
18679#define WIN32_LEAN_AND_MEAN
18680#endif
18681#include <windows.h>
18682#include <winsock.h>
18683
18684int main (void)
18685{
18686
18687#if defined(__CYGWIN__) || defined(__CEGCC__)
18688 HAVE_WINSOCK_H shall not be defined.
18689#else
18690 int dummy=WSACleanup();
18691#endif
18692
18693 ;
18694 return 0;
18695}
18696
18697_ACEOF
18698if ac_fn_c_try_compile "$LINENO"; then :
18699
18700 curl_cv_header_winsock_h="yes"
18701
18702else
18703
18704 curl_cv_header_winsock_h="no"
18705
18706fi
18707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708
18709fi
18710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18711$as_echo "$curl_cv_header_winsock_h" >&6; }
18712 case "$curl_cv_header_winsock_h" in
18713 yes)
18714
18715cat >>confdefs.h <<_ACEOF
18716#define HAVE_WINSOCK_H 1
18717_ACEOF
18718
18719 ;;
18720 esac
18721
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18724$as_echo_n "checking for winsock2.h... " >&6; }
18725if ${curl_cv_header_winsock2_h+:} false; then :
18726 $as_echo_n "(cached) " >&6
18727else
18728
18729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730/* end confdefs.h. */
18731
18732
18733#undef inline
18734#ifndef WIN32_LEAN_AND_MEAN
18735#define WIN32_LEAN_AND_MEAN
18736#endif
18737#include <windows.h>
18738#include <winsock2.h>
18739
18740int main (void)
18741{
18742
18743#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18744 HAVE_WINSOCK2_H shall not be defined.
18745#else
18746 int dummy=2*IPPROTO_ESP;
18747#endif
18748
18749 ;
18750 return 0;
18751}
18752
18753_ACEOF
18754if ac_fn_c_try_compile "$LINENO"; then :
18755
18756 curl_cv_header_winsock2_h="yes"
18757
18758else
18759
18760 curl_cv_header_winsock2_h="no"
18761
18762fi
18763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764
18765fi
18766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18767$as_echo "$curl_cv_header_winsock2_h" >&6; }
18768 case "$curl_cv_header_winsock2_h" in
18769 yes)
18770
18771cat >>confdefs.h <<_ACEOF
18772#define HAVE_WINSOCK2_H 1
18773_ACEOF
18774
18775 ;;
18776 esac
18777
18778
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18780$as_echo_n "checking for ws2tcpip.h... " >&6; }
18781if ${curl_cv_header_ws2tcpip_h+:} false; then :
18782 $as_echo_n "(cached) " >&6
18783else
18784
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786/* end confdefs.h. */
18787
18788
18789#undef inline
18790#ifndef WIN32_LEAN_AND_MEAN
18791#define WIN32_LEAN_AND_MEAN
18792#endif
18793#include <windows.h>
18794#include <winsock2.h>
18795#include <ws2tcpip.h>
18796
18797int main (void)
18798{
18799
18800#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18801 HAVE_WS2TCPIP_H shall not be defined.
18802#else
18803 int dummy=2*IP_PKTINFO;
18804#endif
18805
18806 ;
18807 return 0;
18808}
18809
18810_ACEOF
18811if ac_fn_c_try_compile "$LINENO"; then :
18812
18813 curl_cv_header_ws2tcpip_h="yes"
18814
18815else
18816
18817 curl_cv_header_ws2tcpip_h="no"
18818
18819fi
18820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821
18822fi
18823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18824$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18825 case "$curl_cv_header_ws2tcpip_h" in
18826 yes)
18827
18828cat >>confdefs.h <<_ACEOF
18829#define HAVE_WS2TCPIP_H 1
18830_ACEOF
18831
18832 ;;
18833 esac
18834
18835
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18837$as_echo_n "checking for winldap.h... " >&6; }
18838if ${curl_cv_header_winldap_h+:} false; then :
18839 $as_echo_n "(cached) " >&6
18840else
18841
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843/* end confdefs.h. */
18844
18845
18846#undef inline
18847#ifdef HAVE_WINDOWS_H
18848#ifndef WIN32_LEAN_AND_MEAN
18849#define WIN32_LEAN_AND_MEAN
18850#endif
18851#include <windows.h>
18852#endif
18853#include <winldap.h>
18854
18855int main (void)
18856{
18857
18858#if defined(__CYGWIN__) || defined(__CEGCC__)
18859 HAVE_WINLDAP_H shall not be defined.
18860#else
18861 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18862 ULONG res = ldap_unbind(ldp);
18863#endif
18864
18865 ;
18866 return 0;
18867}
18868
18869_ACEOF
18870if ac_fn_c_try_compile "$LINENO"; then :
18871
18872 curl_cv_header_winldap_h="yes"
18873
18874else
18875
18876 curl_cv_header_winldap_h="no"
18877
18878fi
18879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18880
18881fi
18882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18883$as_echo "$curl_cv_header_winldap_h" >&6; }
18884 case "$curl_cv_header_winldap_h" in
18885 yes)
18886
18887cat >>confdefs.h <<_ACEOF
18888#define HAVE_WINLDAP_H 1
18889_ACEOF
18890
18891 ;;
18892 esac
18893
18894
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18896$as_echo_n "checking for winber.h... " >&6; }
18897if ${curl_cv_header_winber_h+:} false; then :
18898 $as_echo_n "(cached) " >&6
18899else
18900
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902/* end confdefs.h. */
18903
18904
18905#undef inline
18906#ifdef HAVE_WINDOWS_H
18907#ifndef WIN32_LEAN_AND_MEAN
18908#define WIN32_LEAN_AND_MEAN
18909#endif
18910#include <windows.h>
18911#endif
18912#include <winldap.h>
18913#include <winber.h>
18914
18915int main (void)
18916{
18917
18918#if defined(__CYGWIN__) || defined(__CEGCC__)
18919 HAVE_WINBER_H shall not be defined.
18920#else
18921 BERVAL *bvp = NULL;
18922 BerElement *bep = ber_init(bvp);
18923 ber_free(bep, 1);
18924#endif
18925
18926 ;
18927 return 0;
18928}
18929
18930_ACEOF
18931if ac_fn_c_try_compile "$LINENO"; then :
18932
18933 curl_cv_header_winber_h="yes"
18934
18935else
18936
18937 curl_cv_header_winber_h="no"
18938
18939fi
18940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18941
18942fi
18943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18944$as_echo "$curl_cv_header_winber_h" >&6; }
18945 case "$curl_cv_header_winber_h" in
18946 yes)
18947
18948cat >>confdefs.h <<_ACEOF
18949#define HAVE_WINBER_H 1
18950_ACEOF
18951
18952 ;;
18953 esac
18954
18955 ;;
18956 *)
18957 curl_cv_header_winsock_h="no"
18958 curl_cv_header_winsock2_h="no"
18959 curl_cv_header_ws2tcpip_h="no"
18960 curl_cv_header_winldap_h="no"
18961 curl_cv_header_winber_h="no"
18962 ;;
18963esac
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18966$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18967 curl_win32_file_api="no"
18968 if test "$curl_cv_header_windows_h" = "yes"; then
18969 if test x"$enable_largefile" != "xno"; then
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971/* end confdefs.h. */
18972
18973
18974
18975int main (void)
18976{
18977
18978#if !defined(_WIN32_WCE) && \
18979 (defined(__MINGW32__) || \
18980 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18981 int dummy=1;
18982#else
18983 WIN32 large file API not supported.
18984#endif
18985
18986 ;
18987 return 0;
18988}
18989
18990_ACEOF
18991if ac_fn_c_try_compile "$LINENO"; then :
18992
18993 curl_win32_file_api="win32_large_files"
18994
18995fi
18996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 fi
18998 if test "$curl_win32_file_api" = "no"; then
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000/* end confdefs.h. */
19001
19002
19003
19004int main (void)
19005{
19006
19007#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19008 int dummy=1;
19009#else
19010 WIN32 small file API not supported.
19011#endif
19012
19013 ;
19014 return 0;
19015}
19016
19017_ACEOF
19018if ac_fn_c_try_compile "$LINENO"; then :
19019
19020 curl_win32_file_api="win32_small_files"
19021
19022fi
19023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 fi
19025 fi
19026 case "$curl_win32_file_api" in
19027 win32_large_files)
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19029$as_echo "yes (large file enabled)" >&6; }
19030
19031cat >>confdefs.h <<_ACEOF
19032#define USE_WIN32_LARGE_FILES 1
19033_ACEOF
19034
19035 ;;
19036 win32_small_files)
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19038$as_echo "yes (large file disabled)" >&6; }
19039
19040cat >>confdefs.h <<_ACEOF
19041#define USE_WIN32_SMALL_FILES 1
19042_ACEOF
19043
19044 ;;
19045 *)
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19047$as_echo "no" >&6; }
19048 ;;
19049 esac
19050
19051
19052
19053
19054 tst_cflags="no"
19055 case $host_os in
19056 darwin*)
19057 tst_cflags="yes"
19058 ;;
19059 esac
19060
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19062$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19064$as_echo "$tst_cflags" >&6; };
19065
19066 if test "$tst_cflags" = "yes"; then
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19068$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19069 min=""
19070 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19071 min="-mmacosx-version-min=10.8"
19072 CFLAGS="$CFLAGS $min"
19073 fi
19074 if test -z "$min"; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19076$as_echo "set by user" >&6; }
19077 else
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19079$as_echo "$min set" >&6; }
19080 fi
19081
19082 old_CFLAGS=$CFLAGS
19083 CFLAGS="$CFLAGS -Werror=partial-availability"
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19085$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087/* end confdefs.h. */
19088
19089int main (void)
19090{
19091
19092 ;
19093 return 0;
19094}
19095_ACEOF
19096if ac_fn_c_try_compile "$LINENO"; then :
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19098$as_echo "yes" >&6; }
19099else
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19101$as_echo "no" >&6; }
19102 CFLAGS=$old_CFLAGS
19103fi
19104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105 fi
19106
19107
19108
Alex Deymo486467e2017-12-19 19:04:07 +010019109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19110$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112/* end confdefs.h. */
19113
19114
19115#include <stdlib.h>
19116
19117int main (void)
19118{
19119
19120 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19121
19122 ;
19123 return 0;
19124}
19125
19126_ACEOF
19127if ac_fn_c_try_compile "$LINENO"; then :
19128
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19130$as_echo "yes" >&6; }
19131
19132cat >>confdefs.h <<_ACEOF
19133#define HAVE_BUILTIN_AVAILABLE 1
19134_ACEOF
19135
19136
19137else
19138
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19140$as_echo "no" >&6; }
19141
19142fi
19143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19144
19145
Elliott Hughes82be86d2017-09-20 17:00:17 -070019146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19147$as_echo_n "checking whether to support http... " >&6; }
19148# Check whether --enable-http was given.
19149if test "${enable_http+set}" = set; then :
19150 enableval=$enable_http; case "$enableval" in
19151 no)
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19153$as_echo "no" >&6; }
19154
19155$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19156
19157 disable_http="yes"
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19159$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19160 CURL_DISABLE_HTTP=1
19161
19162
19163$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19164
19165 CURL_DISABLE_RTSP=1
19166
19167 ;;
19168 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19169$as_echo "yes" >&6; }
19170 ;;
19171 esac
19172else
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174$as_echo "yes" >&6; }
19175
19176fi
19177
19178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19179$as_echo_n "checking whether to support ftp... " >&6; }
19180# Check whether --enable-ftp was given.
19181if test "${enable_ftp+set}" = set; then :
19182 enableval=$enable_ftp; case "$enableval" in
19183 no)
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185$as_echo "no" >&6; }
19186
19187$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19188
19189 CURL_DISABLE_FTP=1
19190
19191 ;;
19192 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193$as_echo "yes" >&6; }
19194 ;;
19195 esac
19196else
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198$as_echo "yes" >&6; }
19199
19200fi
19201
19202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19203$as_echo_n "checking whether to support file... " >&6; }
19204# Check whether --enable-file was given.
19205if test "${enable_file+set}" = set; then :
19206 enableval=$enable_file; case "$enableval" in
19207 no)
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209$as_echo "no" >&6; }
19210
19211$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19212
19213 CURL_DISABLE_FILE=1
19214
19215 ;;
19216 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19217$as_echo "yes" >&6; }
19218 ;;
19219 esac
19220else
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222$as_echo "yes" >&6; }
19223
19224fi
19225
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19227$as_echo_n "checking whether to support ldap... " >&6; }
19228# Check whether --enable-ldap was given.
19229if test "${enable_ldap+set}" = set; then :
19230 enableval=$enable_ldap; case "$enableval" in
19231 no)
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233$as_echo "no" >&6; }
19234
19235$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19236
19237 CURL_DISABLE_LDAP=1
19238
19239 ;;
19240 *)
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242$as_echo "yes" >&6; }
19243 ;;
19244 esac
19245else
19246
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248$as_echo "yes" >&6; }
19249
19250fi
19251
19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19253$as_echo_n "checking whether to support ldaps... " >&6; }
19254# Check whether --enable-ldaps was given.
19255if test "${enable_ldaps+set}" = set; then :
19256 enableval=$enable_ldaps; case "$enableval" in
19257 no)
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260
19261$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19262
19263 CURL_DISABLE_LDAPS=1
19264
19265 ;;
19266 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19268$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19269
19270$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19271
19272 CURL_DISABLE_LDAPS=1
19273
19274 else
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19276$as_echo "yes" >&6; }
19277
19278$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19279
19280 HAVE_LDAP_SSL=1
19281
19282 fi
19283 ;;
19284 esac
19285else
19286
19287 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289$as_echo "no" >&6; }
19290
19291$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19292
19293 CURL_DISABLE_LDAPS=1
19294
19295 else
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19297$as_echo "yes" >&6; }
19298
19299$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19300
19301 HAVE_LDAP_SSL=1
19302
19303 fi
19304
19305fi
19306
19307
19308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19309$as_echo_n "checking whether to support rtsp... " >&6; }
19310# Check whether --enable-rtsp was given.
19311if test "${enable_rtsp+set}" = set; then :
19312 enableval=$enable_rtsp; case "$enableval" in
19313 no)
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19315$as_echo "no" >&6; }
19316
19317$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19318
19319 CURL_DISABLE_RTSP=1
19320
19321 ;;
19322 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19323 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19324 else
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19326$as_echo "yes" >&6; }
19327 curl_rtsp_msg="enabled"
19328 fi
19329 ;;
19330 esac
19331else
19332 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334$as_echo "yes" >&6; }
19335 curl_rtsp_msg="enabled"
19336 else
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338$as_echo "no" >&6; }
19339 fi
19340
19341fi
19342
19343
19344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19345$as_echo_n "checking whether to support proxies... " >&6; }
19346# Check whether --enable-proxy was given.
19347if test "${enable_proxy+set}" = set; then :
19348 enableval=$enable_proxy; case "$enableval" in
19349 no)
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19351$as_echo "no" >&6; }
19352
19353$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19354
19355 CURL_DISABLE_PROXY=1
19356
19357 ;;
19358 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19359$as_echo "yes" >&6; }
19360 ;;
19361 esac
19362else
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19364$as_echo "yes" >&6; }
19365
19366fi
19367
19368
19369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19370$as_echo_n "checking whether to support dict... " >&6; }
19371# Check whether --enable-dict was given.
19372if test "${enable_dict+set}" = set; then :
19373 enableval=$enable_dict; case "$enableval" in
19374 no)
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19376$as_echo "no" >&6; }
19377
19378$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19379
19380 CURL_DISABLE_DICT=1
19381
19382 ;;
19383 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19384$as_echo "yes" >&6; }
19385 ;;
19386 esac
19387else
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19389$as_echo "yes" >&6; }
19390
19391fi
19392
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19394$as_echo_n "checking whether to support telnet... " >&6; }
19395# Check whether --enable-telnet was given.
19396if test "${enable_telnet+set}" = set; then :
19397 enableval=$enable_telnet; case "$enableval" in
19398 no)
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19400$as_echo "no" >&6; }
19401
19402$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19403
19404 CURL_DISABLE_TELNET=1
19405
19406 ;;
19407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408$as_echo "yes" >&6; }
19409 ;;
19410 esac
19411else
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19413$as_echo "yes" >&6; }
19414
19415fi
19416
19417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19418$as_echo_n "checking whether to support tftp... " >&6; }
19419# Check whether --enable-tftp was given.
19420if test "${enable_tftp+set}" = set; then :
19421 enableval=$enable_tftp; case "$enableval" in
19422 no)
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19424$as_echo "no" >&6; }
19425
19426$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19427
19428 CURL_DISABLE_TFTP=1
19429
19430 ;;
19431 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19432$as_echo "yes" >&6; }
19433 ;;
19434 esac
19435else
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437$as_echo "yes" >&6; }
19438
19439fi
19440
19441
19442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19443$as_echo_n "checking whether to support pop3... " >&6; }
19444# Check whether --enable-pop3 was given.
19445if test "${enable_pop3+set}" = set; then :
19446 enableval=$enable_pop3; case "$enableval" in
19447 no)
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19449$as_echo "no" >&6; }
19450
19451$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19452
19453 CURL_DISABLE_POP3=1
19454
19455 ;;
19456 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19457$as_echo "yes" >&6; }
19458 ;;
19459 esac
19460else
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19462$as_echo "yes" >&6; }
19463
19464fi
19465
19466
19467
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19469$as_echo_n "checking whether to support imap... " >&6; }
19470# Check whether --enable-imap was given.
19471if test "${enable_imap+set}" = set; then :
19472 enableval=$enable_imap; case "$enableval" in
19473 no)
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475$as_echo "no" >&6; }
19476
19477$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19478
19479 CURL_DISABLE_IMAP=1
19480
19481 ;;
19482 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19483$as_echo "yes" >&6; }
19484 ;;
19485 esac
19486else
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19488$as_echo "yes" >&6; }
19489
19490fi
19491
19492
19493
19494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19495$as_echo_n "checking whether to support smb... " >&6; }
19496# Check whether --enable-smb was given.
19497if test "${enable_smb+set}" = set; then :
19498 enableval=$enable_smb; case "$enableval" in
19499 no)
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19501$as_echo "no" >&6; }
19502
19503$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19504
19505 CURL_DISABLE_SMB=1
19506
19507 ;;
19508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19509$as_echo "yes" >&6; }
19510 ;;
19511 esac
19512else
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514$as_echo "yes" >&6; }
19515
19516fi
19517
19518
19519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19520$as_echo_n "checking whether to support smtp... " >&6; }
19521# Check whether --enable-smtp was given.
19522if test "${enable_smtp+set}" = set; then :
19523 enableval=$enable_smtp; case "$enableval" in
19524 no)
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526$as_echo "no" >&6; }
19527
19528$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19529
19530 CURL_DISABLE_SMTP=1
19531
19532 ;;
19533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19534$as_echo "yes" >&6; }
19535 ;;
19536 esac
19537else
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19539$as_echo "yes" >&6; }
19540
19541fi
19542
19543
19544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19545$as_echo_n "checking whether to support gopher... " >&6; }
19546# Check whether --enable-gopher was given.
19547if test "${enable_gopher+set}" = set; then :
19548 enableval=$enable_gopher; case "$enableval" in
19549 no)
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551$as_echo "no" >&6; }
19552
19553$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19554
19555 CURL_DISABLE_GOPHER=1
19556
19557 ;;
19558 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19559$as_echo "yes" >&6; }
19560 ;;
19561 esac
19562else
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19564$as_echo "yes" >&6; }
19565
19566fi
19567
19568
19569
19570
19571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19572$as_echo_n "checking whether to provide built-in manual... " >&6; }
19573# Check whether --enable-manual was given.
19574if test "${enable_manual+set}" = set; then :
19575 enableval=$enable_manual; case "$enableval" in
19576 no)
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578$as_echo "no" >&6; }
19579 ;;
19580 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19581$as_echo "yes" >&6; }
19582 USE_MANUAL="1"
19583 ;;
19584 esac
19585else
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19587$as_echo "yes" >&6; }
19588 USE_MANUAL="1"
19589
19590fi
19591
19592
19593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19594$as_echo_n "checking whether to enable generation of C code... " >&6; }
19595# Check whether --enable-libcurl_option was given.
19596if test "${enable_libcurl_option+set}" = set; then :
19597 enableval=$enable_libcurl_option; case "$enableval" in
19598 no)
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19600$as_echo "no" >&6; }
19601
19602$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19603
19604 curl_libcurl_msg="no"
19605 ;;
19606 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19607$as_echo "yes" >&6; }
19608 ;;
19609 esac
19610else
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19612$as_echo "yes" >&6; }
19613
19614fi
19615
19616
19617
19618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19619$as_echo_n "checking whether to use libgcc... " >&6; }
19620# Check whether --enable-libgcc was given.
19621if test "${enable_libgcc+set}" = set; then :
19622 enableval=$enable_libgcc; case "$enableval" in
19623 yes)
19624 LIBS="-lgcc $LIBS"
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19626$as_echo "yes" >&6; }
19627 ;;
19628 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19629$as_echo "no" >&6; }
19630 ;;
19631 esac
19632else
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19634$as_echo "no" >&6; }
19635
19636fi
19637
19638
19639
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19641$as_echo_n "checking if X/Open network library is required... " >&6; }
19642 tst_lib_xnet_required="no"
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644/* end confdefs.h. */
19645
19646
19647int main (void)
19648{
19649#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19650 return 0;
19651#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19652 return 0;
19653#else
19654 force compilation error
19655#endif
19656}
19657
19658
19659_ACEOF
19660if ac_fn_c_try_compile "$LINENO"; then :
19661
19662 tst_lib_xnet_required="yes"
19663 LIBS="-lxnet $LIBS"
19664
19665fi
19666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19668$as_echo "$tst_lib_xnet_required" >&6; }
19669
19670
19671ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19672if test "x$ac_cv_func_gethostbyname" = xyes; then :
19673 HAVE_GETHOSTBYNAME="1"
19674
19675else
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19677$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19678if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19679 $as_echo_n "(cached) " >&6
19680else
19681 ac_check_lib_save_LIBS=$LIBS
19682LIBS="-lnsl $LIBS"
19683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684/* end confdefs.h. */
19685
19686
19687#ifdef __cplusplus
19688extern "C"
19689#endif
19690char gethostbyname ();
19691int main (void)
19692{
19693return gethostbyname ();
19694 ;
19695 return 0;
19696}
19697_ACEOF
19698if ac_fn_c_try_link "$LINENO"; then :
19699 ac_cv_lib_nsl_gethostbyname=yes
19700else
19701 ac_cv_lib_nsl_gethostbyname=no
19702fi
19703rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705LIBS=$ac_check_lib_save_LIBS
19706fi
19707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19708$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19709if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19710 HAVE_GETHOSTBYNAME="1"
19711 LIBS="-lnsl $LIBS"
19712
19713fi
19714
19715
19716fi
19717
19718
19719if test "$HAVE_GETHOSTBYNAME" != "1"
19720then
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19722$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19723if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19724 $as_echo_n "(cached) " >&6
19725else
19726 ac_check_lib_save_LIBS=$LIBS
19727LIBS="-lsocket $LIBS"
19728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729/* end confdefs.h. */
19730
19731
19732#ifdef __cplusplus
19733extern "C"
19734#endif
19735char gethostbyname ();
19736int main (void)
19737{
19738return gethostbyname ();
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743if ac_fn_c_try_link "$LINENO"; then :
19744 ac_cv_lib_socket_gethostbyname=yes
19745else
19746 ac_cv_lib_socket_gethostbyname=no
19747fi
19748rm -f core conftest.err conftest.$ac_objext \
19749 conftest$ac_exeext conftest.$ac_ext
19750LIBS=$ac_check_lib_save_LIBS
19751fi
19752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19753$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19754if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19755 HAVE_GETHOSTBYNAME="1"
19756 LIBS="-lsocket $LIBS"
19757
19758fi
19759
19760fi
19761
19762if test "$HAVE_GETHOSTBYNAME" != "1"
19763then
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19765$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19766if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768else
19769 ac_check_lib_save_LIBS=$LIBS
19770LIBS="-lwatt $LIBS"
19771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772/* end confdefs.h. */
19773
19774
19775#ifdef __cplusplus
19776extern "C"
19777#endif
19778char gethostbyname ();
19779int main (void)
19780{
19781return gethostbyname ();
19782 ;
19783 return 0;
19784}
19785_ACEOF
19786if ac_fn_c_try_link "$LINENO"; then :
19787 ac_cv_lib_watt_gethostbyname=yes
19788else
19789 ac_cv_lib_watt_gethostbyname=no
19790fi
19791rm -f core conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793LIBS=$ac_check_lib_save_LIBS
19794fi
19795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19796$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19797if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19798 HAVE_GETHOSTBYNAME="1"
19799 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19800 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19801 LIBS="-lwatt $LIBS"
19802
19803fi
19804
19805fi
19806
19807if test "$HAVE_GETHOSTBYNAME" != "1"
19808then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19810$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19811 my_ac_save_LIBS=$LIBS
19812 LIBS="-lnsl -lsocket $LIBS"
19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814/* end confdefs.h. */
19815
19816
19817
19818int main (void)
19819{
19820
19821 gethostbyname();
19822
19823 ;
19824 return 0;
19825}
19826
19827_ACEOF
19828if ac_fn_c_try_link "$LINENO"; then :
19829
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19831$as_echo "yes" >&6; }
19832 HAVE_GETHOSTBYNAME="1"
19833
19834else
19835
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19837$as_echo "no" >&6; }
19838 LIBS=$my_ac_save_LIBS
19839
19840fi
19841rm -f core conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext conftest.$ac_ext
19843fi
19844
19845if test "$HAVE_GETHOSTBYNAME" != "1"
19846then
19847 if test "$curl_cv_header_windows_h" = "yes"; then
19848 if test "$curl_cv_header_winsock_h" = "yes"; then
19849 case $host in
19850 *-*-mingw32ce*)
19851 winsock_LIB="-lwinsock"
19852 ;;
19853 *)
19854 winsock_LIB="-lwsock32"
19855 ;;
19856 esac
19857 fi
19858 if test "$curl_cv_header_winsock2_h" = "yes"; then
19859 winsock_LIB="-lws2_32"
19860 fi
19861 if test ! -z "$winsock_LIB"; then
19862 my_ac_save_LIBS=$LIBS
19863 LIBS="$winsock_LIB $LIBS"
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19865$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867/* end confdefs.h. */
19868
19869
19870#ifdef HAVE_WINDOWS_H
19871#ifndef WIN32_LEAN_AND_MEAN
19872#define WIN32_LEAN_AND_MEAN
19873#endif
19874#include <windows.h>
19875#ifdef HAVE_WINSOCK2_H
19876#include <winsock2.h>
19877#else
19878#ifdef HAVE_WINSOCK_H
19879#include <winsock.h>
19880#endif
19881#endif
19882#endif
19883
19884int main (void)
19885{
19886
19887 gethostbyname("www.dummysite.com");
19888
19889 ;
19890 return 0;
19891}
19892
19893_ACEOF
19894if ac_fn_c_try_link "$LINENO"; then :
19895
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19897$as_echo "yes" >&6; }
19898 HAVE_GETHOSTBYNAME="1"
19899
19900else
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903$as_echo "no" >&6; }
19904 winsock_LIB=""
19905 LIBS=$my_ac_save_LIBS
19906
19907fi
19908rm -f core conftest.err conftest.$ac_objext \
19909 conftest$ac_exeext conftest.$ac_ext
19910 fi
19911 fi
19912fi
19913
19914if test "$HAVE_GETHOSTBYNAME" != "1"
19915then
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19917$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919/* end confdefs.h. */
19920
19921
19922/* Older Minix versions may need <net/gen/netdb.h> here instead */
19923#include <netdb.h>
19924
19925int main (void)
19926{
19927
19928 gethostbyname("www.dummysite.com");
19929
19930 ;
19931 return 0;
19932}
19933
19934_ACEOF
19935if ac_fn_c_try_link "$LINENO"; then :
19936
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19938$as_echo "yes" >&6; }
19939 HAVE_GETHOSTBYNAME="1"
19940
19941else
19942
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19944$as_echo "no" >&6; }
19945
19946fi
19947rm -f core conftest.err conftest.$ac_objext \
19948 conftest$ac_exeext conftest.$ac_ext
19949fi
19950
19951if test "$HAVE_GETHOSTBYNAME" != "1"
19952then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19954$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956/* end confdefs.h. */
19957
19958
19959#include <stdio.h>
19960#include <netdb.h>
19961
19962int main (void)
19963{
19964
19965 gethostbyname("www.dummysite.com");
19966
19967 ;
19968 return 0;
19969}
19970
19971_ACEOF
19972if ac_fn_c_try_link "$LINENO"; then :
19973
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19975$as_echo "yes" >&6; }
19976 HAVE_GETHOSTBYNAME="1"
19977
19978else
19979
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19981$as_echo "no" >&6; }
19982
19983fi
19984rm -f core conftest.err conftest.$ac_objext \
19985 conftest$ac_exeext conftest.$ac_ext
19986fi
19987
19988if test "$HAVE_GETHOSTBYNAME" != "1"
19989then
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19991$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19992if ${ac_cv_lib_network_gethostbyname+:} false; then :
19993 $as_echo_n "(cached) " >&6
19994else
19995 ac_check_lib_save_LIBS=$LIBS
19996LIBS="-lnetwork $LIBS"
19997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19998/* end confdefs.h. */
19999
20000
20001#ifdef __cplusplus
20002extern "C"
20003#endif
20004char gethostbyname ();
20005int main (void)
20006{
20007return gethostbyname ();
20008 ;
20009 return 0;
20010}
20011_ACEOF
20012if ac_fn_c_try_link "$LINENO"; then :
20013 ac_cv_lib_network_gethostbyname=yes
20014else
20015 ac_cv_lib_network_gethostbyname=no
20016fi
20017rm -f core conftest.err conftest.$ac_objext \
20018 conftest$ac_exeext conftest.$ac_ext
20019LIBS=$ac_check_lib_save_LIBS
20020fi
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20022$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20023if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20024 HAVE_GETHOSTBYNAME="1"
20025 LIBS="-lnetwork $LIBS"
20026
20027fi
20028
20029fi
20030
20031if test "$HAVE_GETHOSTBYNAME" != "1"
20032then
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20034$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20035if ${ac_cv_lib_net_gethostbyname+:} false; then :
20036 $as_echo_n "(cached) " >&6
20037else
20038 ac_check_lib_save_LIBS=$LIBS
20039LIBS="-lnet $LIBS"
20040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041/* end confdefs.h. */
20042
20043
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char gethostbyname ();
20048int main (void)
20049{
20050return gethostbyname ();
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055if ac_fn_c_try_link "$LINENO"; then :
20056 ac_cv_lib_net_gethostbyname=yes
20057else
20058 ac_cv_lib_net_gethostbyname=no
20059fi
20060rm -f core conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20062LIBS=$ac_check_lib_save_LIBS
20063fi
20064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20065$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20066if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20067 HAVE_GETHOSTBYNAME="1"
20068 LIBS="-lnet $LIBS"
20069
20070fi
20071
20072fi
20073
20074
20075if test "$HAVE_GETHOSTBYNAME" != "1"; then
20076 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20077fi
20078
20079
20080curl_includes_winsock2="\
20081/* includes start */
20082#ifdef HAVE_WINDOWS_H
20083# ifndef WIN32_LEAN_AND_MEAN
20084# define WIN32_LEAN_AND_MEAN
20085# endif
20086# include <windows.h>
20087# ifdef HAVE_WINSOCK2_H
20088# include <winsock2.h>
20089# else
20090# ifdef HAVE_WINSOCK_H
20091# include <winsock.h>
20092# endif
20093# endif
20094#endif
20095/* includes end */"
20096
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20098$as_echo_n "checking for windows.h... " >&6; }
20099if ${curl_cv_header_windows_h+:} false; then :
20100 $as_echo_n "(cached) " >&6
20101else
20102
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104/* end confdefs.h. */
20105
20106
20107#undef inline
20108#ifndef WIN32_LEAN_AND_MEAN
20109#define WIN32_LEAN_AND_MEAN
20110#endif
20111#include <windows.h>
20112
20113int main (void)
20114{
20115
20116#if defined(__CYGWIN__) || defined(__CEGCC__)
20117 HAVE_WINDOWS_H shall not be defined.
20118#else
20119 int dummy=2*WINVER;
20120#endif
20121
20122 ;
20123 return 0;
20124}
20125
20126_ACEOF
20127if ac_fn_c_try_compile "$LINENO"; then :
20128
20129 curl_cv_header_windows_h="yes"
20130
20131else
20132
20133 curl_cv_header_windows_h="no"
20134
20135fi
20136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137
20138fi
20139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20140$as_echo "$curl_cv_header_windows_h" >&6; }
20141 case "$curl_cv_header_windows_h" in
20142 yes)
20143
20144cat >>confdefs.h <<_ACEOF
20145#define HAVE_WINDOWS_H 1
20146_ACEOF
20147
20148 ;;
20149 esac
20150
20151
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20153$as_echo_n "checking for winsock.h... " >&6; }
20154if ${curl_cv_header_winsock_h+:} false; then :
20155 $as_echo_n "(cached) " >&6
20156else
20157
20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159/* end confdefs.h. */
20160
20161
20162#undef inline
20163#ifndef WIN32_LEAN_AND_MEAN
20164#define WIN32_LEAN_AND_MEAN
20165#endif
20166#include <windows.h>
20167#include <winsock.h>
20168
20169int main (void)
20170{
20171
20172#if defined(__CYGWIN__) || defined(__CEGCC__)
20173 HAVE_WINSOCK_H shall not be defined.
20174#else
20175 int dummy=WSACleanup();
20176#endif
20177
20178 ;
20179 return 0;
20180}
20181
20182_ACEOF
20183if ac_fn_c_try_compile "$LINENO"; then :
20184
20185 curl_cv_header_winsock_h="yes"
20186
20187else
20188
20189 curl_cv_header_winsock_h="no"
20190
20191fi
20192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193
20194fi
20195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20196$as_echo "$curl_cv_header_winsock_h" >&6; }
20197 case "$curl_cv_header_winsock_h" in
20198 yes)
20199
20200cat >>confdefs.h <<_ACEOF
20201#define HAVE_WINSOCK_H 1
20202_ACEOF
20203
20204 ;;
20205 esac
20206
20207
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20209$as_echo_n "checking for winsock2.h... " >&6; }
20210if ${curl_cv_header_winsock2_h+:} false; then :
20211 $as_echo_n "(cached) " >&6
20212else
20213
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215/* end confdefs.h. */
20216
20217
20218#undef inline
20219#ifndef WIN32_LEAN_AND_MEAN
20220#define WIN32_LEAN_AND_MEAN
20221#endif
20222#include <windows.h>
20223#include <winsock2.h>
20224
20225int main (void)
20226{
20227
20228#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20229 HAVE_WINSOCK2_H shall not be defined.
20230#else
20231 int dummy=2*IPPROTO_ESP;
20232#endif
20233
20234 ;
20235 return 0;
20236}
20237
20238_ACEOF
20239if ac_fn_c_try_compile "$LINENO"; then :
20240
20241 curl_cv_header_winsock2_h="yes"
20242
20243else
20244
20245 curl_cv_header_winsock2_h="no"
20246
20247fi
20248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20249
20250fi
20251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20252$as_echo "$curl_cv_header_winsock2_h" >&6; }
20253 case "$curl_cv_header_winsock2_h" in
20254 yes)
20255
20256cat >>confdefs.h <<_ACEOF
20257#define HAVE_WINSOCK2_H 1
20258_ACEOF
20259
20260 ;;
20261 esac
20262
20263
20264
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20266$as_echo_n "checking for connect in libraries... " >&6; }
20267 tst_connect_save_LIBS="$LIBS"
20268 tst_connect_need_LIBS="unknown"
20269 for tst_lib in '' '-lsocket' ; do
20270 if test "$tst_connect_need_LIBS" = "unknown"; then
20271 LIBS="$tst_lib $tst_connect_save_LIBS"
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273/* end confdefs.h. */
20274
20275
20276 $curl_includes_winsock2
20277 #ifndef HAVE_WINDOWS_H
20278 int connect(int, void*, int);
20279 #endif
20280
20281int main (void)
20282{
20283
20284 if(0 != connect(0, 0, 0))
20285 return 1;
20286
20287 ;
20288 return 0;
20289}
20290
20291_ACEOF
20292if ac_fn_c_try_link "$LINENO"; then :
20293
20294 tst_connect_need_LIBS="$tst_lib"
20295
20296fi
20297rm -f core conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
20299 fi
20300 done
20301 LIBS="$tst_connect_save_LIBS"
20302 #
20303 case X-"$tst_connect_need_LIBS" in
20304 X-unknown)
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20306$as_echo "cannot find connect" >&6; }
20307 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20308 ;;
20309 X-)
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20311$as_echo "yes" >&6; }
20312 ;;
20313 *)
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20315$as_echo "$tst_connect_need_LIBS" >&6; }
20316 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20317 ;;
20318 esac
20319
20320
20321CURL_NETWORK_LIBS=$LIBS
20322
20323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20324$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20325if ${ac_cv_header_time+:} false; then :
20326 $as_echo_n "(cached) " >&6
20327else
20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329/* end confdefs.h. */
20330#include <sys/types.h>
20331#include <sys/time.h>
20332#include <time.h>
20333
20334int main (void)
20335{
20336if ((struct tm *) 0)
20337return 0;
20338 ;
20339 return 0;
20340}
20341_ACEOF
20342if ac_fn_c_try_compile "$LINENO"; then :
20343 ac_cv_header_time=yes
20344else
20345 ac_cv_header_time=no
20346fi
20347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20348fi
20349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20350$as_echo "$ac_cv_header_time" >&6; }
20351if test $ac_cv_header_time = yes; then
20352
20353$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20354
20355fi
20356
20357
20358 for ac_header in sys/types.h sys/time.h time.h
20359do :
20360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20363 cat >>confdefs.h <<_ACEOF
20364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20365_ACEOF
20366
20367fi
20368
20369done
20370
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20372$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20373 #
20374 if test "x$dontwant_rt" = "xno" ; then
20375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376/* end confdefs.h. */
20377
20378
20379#ifdef HAVE_SYS_TYPES_H
20380#include <sys/types.h>
20381#endif
20382#ifdef HAVE_SYS_TIME_H
20383#include <sys/time.h>
20384#ifdef TIME_WITH_SYS_TIME
20385#include <time.h>
20386#endif
20387#else
20388#ifdef HAVE_TIME_H
20389#include <time.h>
20390#endif
20391#endif
20392
20393int main (void)
20394{
20395
20396 struct timespec ts;
20397 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20398
20399 ;
20400 return 0;
20401}
20402
20403_ACEOF
20404if ac_fn_c_try_compile "$LINENO"; then :
20405
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20407$as_echo "yes" >&6; }
20408 curl_func_clock_gettime="yes"
20409
20410else
20411
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20413$as_echo "no" >&6; }
20414 curl_func_clock_gettime="no"
20415
20416fi
20417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418 fi
20419
20420
20421 #
20422 if test "$curl_func_clock_gettime" = "yes"; then
20423 #
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20425$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20426 #
20427 curl_cv_save_LIBS="$LIBS"
20428 curl_cv_gclk_LIBS="unknown"
20429 #
20430 for x_xlibs in '' '-lrt' '-lposix4' ; do
20431 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20432 if test -z "$x_xlibs"; then
20433 LIBS="$curl_cv_save_LIBS"
20434 else
20435 LIBS="$x_xlibs $curl_cv_save_LIBS"
20436 fi
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438/* end confdefs.h. */
20439
20440
20441#ifdef HAVE_SYS_TYPES_H
20442#include <sys/types.h>
20443#endif
20444#ifdef HAVE_SYS_TIME_H
20445#include <sys/time.h>
20446#ifdef TIME_WITH_SYS_TIME
20447#include <time.h>
20448#endif
20449#else
20450#ifdef HAVE_TIME_H
20451#include <time.h>
20452#endif
20453#endif
20454
20455int main (void)
20456{
20457
20458 struct timespec ts;
20459 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20460
20461 ;
20462 return 0;
20463}
20464
20465_ACEOF
20466if ac_fn_c_try_link "$LINENO"; then :
20467
20468 curl_cv_gclk_LIBS="$x_xlibs"
20469
20470fi
20471rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20473 fi
20474 done
20475 #
20476 LIBS="$curl_cv_save_LIBS"
20477 #
20478 case X-"$curl_cv_gclk_LIBS" in
20479 X-unknown)
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20481$as_echo "cannot find clock_gettime" >&6; }
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20483$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20484 curl_func_clock_gettime="no"
20485 ;;
20486 X-)
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20488$as_echo "no additional lib required" >&6; }
20489 curl_func_clock_gettime="yes"
20490 ;;
20491 *)
20492 if test -z "$curl_cv_save_LIBS"; then
20493 LIBS="$curl_cv_gclk_LIBS"
20494 else
20495 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20496 fi
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20498$as_echo "$curl_cv_gclk_LIBS" >&6; }
20499 curl_func_clock_gettime="yes"
20500 ;;
20501 esac
20502 #
20503 if test "x$cross_compiling" != "xyes" &&
20504 test "$curl_func_clock_gettime" = "yes"; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20506$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20507 if test "$cross_compiling" = yes; then :
20508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20510as_fn_error $? "cannot run test program while cross compiling
20511See \`config.log' for more details" "$LINENO" 5; }
20512else
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514/* end confdefs.h. */
20515
20516
20517#ifdef HAVE_STDLIB_H
20518#include <stdlib.h>
20519#endif
20520#ifdef HAVE_SYS_TYPES_H
20521#include <sys/types.h>
20522#endif
20523#ifdef HAVE_SYS_TIME_H
20524#include <sys/time.h>
20525#ifdef TIME_WITH_SYS_TIME
20526#include <time.h>
20527#endif
20528#else
20529#ifdef HAVE_TIME_H
20530#include <time.h>
20531#endif
20532#endif
20533
20534int main (void)
20535{
20536
20537 struct timespec ts;
20538 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20539 exit(0);
20540 else
20541 exit(1);
20542
20543 ;
20544 return 0;
20545}
20546
20547_ACEOF
20548if ac_fn_c_try_run "$LINENO"; then :
20549
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20551$as_echo "yes" >&6; }
20552
20553else
20554
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20556$as_echo "no" >&6; }
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20558$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20559 curl_func_clock_gettime="no"
20560 LIBS="$curl_cv_save_LIBS"
20561
20562fi
20563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20564 conftest.$ac_objext conftest.beam conftest.$ac_ext
20565fi
20566
20567 fi
20568 #
20569 case "$curl_func_clock_gettime" in
20570 yes)
20571
20572cat >>confdefs.h <<_ACEOF
20573#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20574_ACEOF
20575
20576 ;;
20577 esac
20578 #
20579 fi
20580 #
20581
20582
20583CURL_NETWORK_AND_TIME_LIBS=$LIBS
20584
20585
20586
20587clean_CPPFLAGS=$CPPFLAGS
20588clean_LDFLAGS=$LDFLAGS
20589clean_LIBS=$LIBS
20590ZLIB_LIBS=""
20591
20592# Check whether --with-zlib was given.
20593if test "${with_zlib+set}" = set; then :
20594 withval=$with_zlib; OPT_ZLIB="$withval"
20595fi
20596
20597
20598if test "$OPT_ZLIB" = "no" ; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20600$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20601else
20602 if test "$OPT_ZLIB" = "yes" ; then
20603 OPT_ZLIB=""
20604 fi
20605
20606 if test -z "$OPT_ZLIB" ; then
20607
20608 if test -n "$PKG_CONFIG"; then
20609 PKGCONFIG="$PKG_CONFIG"
20610 else
20611 if test -n "$ac_tool_prefix"; then
20612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20613set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20615$as_echo_n "checking for $ac_word... " >&6; }
20616if ${ac_cv_path_PKGCONFIG+:} false; then :
20617 $as_echo_n "(cached) " >&6
20618else
20619 case $PKGCONFIG in
20620 [\\/]* | ?:[\\/]*)
20621 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20622 ;;
20623 *)
20624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20625as_dummy="$PATH:/usr/bin:/usr/local/bin"
20626for as_dir in $as_dummy
20627do
20628 IFS=$as_save_IFS
20629 test -z "$as_dir" && as_dir=.
20630 for ac_exec_ext in '' $ac_executable_extensions; do
20631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20632 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20634 break 2
20635 fi
20636done
20637 done
20638IFS=$as_save_IFS
20639
20640 ;;
20641esac
20642fi
20643PKGCONFIG=$ac_cv_path_PKGCONFIG
20644if test -n "$PKGCONFIG"; then
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20646$as_echo "$PKGCONFIG" >&6; }
20647else
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20649$as_echo "no" >&6; }
20650fi
20651
20652
20653fi
20654if test -z "$ac_cv_path_PKGCONFIG"; then
20655 ac_pt_PKGCONFIG=$PKGCONFIG
20656 # Extract the first word of "pkg-config", so it can be a program name with args.
20657set dummy pkg-config; ac_word=$2
20658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20659$as_echo_n "checking for $ac_word... " >&6; }
20660if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20661 $as_echo_n "(cached) " >&6
20662else
20663 case $ac_pt_PKGCONFIG in
20664 [\\/]* | ?:[\\/]*)
20665 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20666 ;;
20667 *)
20668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20669as_dummy="$PATH:/usr/bin:/usr/local/bin"
20670for as_dir in $as_dummy
20671do
20672 IFS=$as_save_IFS
20673 test -z "$as_dir" && as_dir=.
20674 for ac_exec_ext in '' $ac_executable_extensions; do
20675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20676 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20678 break 2
20679 fi
20680done
20681 done
20682IFS=$as_save_IFS
20683
20684 ;;
20685esac
20686fi
20687ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20688if test -n "$ac_pt_PKGCONFIG"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20690$as_echo "$ac_pt_PKGCONFIG" >&6; }
20691else
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20693$as_echo "no" >&6; }
20694fi
20695
20696 if test "x$ac_pt_PKGCONFIG" = x; then
20697 PKGCONFIG="no"
20698 else
20699 case $cross_compiling:$ac_tool_warned in
20700yes:)
20701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20703ac_tool_warned=yes ;;
20704esac
20705 PKGCONFIG=$ac_pt_PKGCONFIG
20706 fi
20707else
20708 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20709fi
20710
20711 fi
20712
20713 if test "x$PKGCONFIG" != "xno"; then
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20715$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20716 itexists=`
20717 if test -n ""; then
20718 PKG_CONFIG_LIBDIR=""
20719 export PKG_CONFIG_LIBDIR
20720 fi
20721 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20722
20723 if test -z "$itexists"; then
20724 PKGCONFIG="no"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726$as_echo "no" >&6; }
20727 else
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20729$as_echo "found" >&6; }
20730 fi
20731 fi
20732
20733
20734 if test "$PKGCONFIG" != "no" ; then
20735 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20736 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20737 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20738 OPT_ZLIB=""
20739 HAVE_LIBZ="1"
20740 fi
20741
20742 if test -z "$HAVE_LIBZ"; then
20743
20744
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20746$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20747if ${ac_cv_lib_z_inflateEnd+:} false; then :
20748 $as_echo_n "(cached) " >&6
20749else
20750 ac_check_lib_save_LIBS=$LIBS
20751LIBS="-lz $LIBS"
20752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753/* end confdefs.h. */
20754
20755
20756#ifdef __cplusplus
20757extern "C"
20758#endif
20759char inflateEnd ();
20760int main (void)
20761{
20762return inflateEnd ();
20763 ;
20764 return 0;
20765}
20766_ACEOF
20767if ac_fn_c_try_link "$LINENO"; then :
20768 ac_cv_lib_z_inflateEnd=yes
20769else
20770 ac_cv_lib_z_inflateEnd=no
20771fi
20772rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20774LIBS=$ac_check_lib_save_LIBS
20775fi
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20777$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20778if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20779 HAVE_LIBZ="1"
20780 LIBS="-lz $LIBS"
20781else
20782 OPT_ZLIB="/usr/local"
20783fi
20784
20785 fi
20786 fi
20787
20788 if test -n "$OPT_ZLIB"; then
20789 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20790 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20791 fi
20792
20793 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20794if test "x$ac_cv_header_zlib_h" = xyes; then :
20795
20796 HAVE_ZLIB_H="1"
20797 if test "$HAVE_LIBZ" != "1"; then
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20799$as_echo_n "checking for gzread in -lz... " >&6; }
20800if ${ac_cv_lib_z_gzread+:} false; then :
20801 $as_echo_n "(cached) " >&6
20802else
20803 ac_check_lib_save_LIBS=$LIBS
20804LIBS="-lz $LIBS"
20805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806/* end confdefs.h. */
20807
20808
20809#ifdef __cplusplus
20810extern "C"
20811#endif
20812char gzread ();
20813int main (void)
20814{
20815return gzread ();
20816 ;
20817 return 0;
20818}
20819_ACEOF
20820if ac_fn_c_try_link "$LINENO"; then :
20821 ac_cv_lib_z_gzread=yes
20822else
20823 ac_cv_lib_z_gzread=no
20824fi
20825rm -f core conftest.err conftest.$ac_objext \
20826 conftest$ac_exeext conftest.$ac_ext
20827LIBS=$ac_check_lib_save_LIBS
20828fi
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20830$as_echo "$ac_cv_lib_z_gzread" >&6; }
20831if test "x$ac_cv_lib_z_gzread" = xyes; then :
20832
20833 HAVE_LIBZ="1"
20834 LIBS="-lz $LIBS"
20835
20836else
20837 CPPFLAGS=$clean_CPPFLAGS
20838 LDFLAGS=$clean_LDFLAGS
20839fi
20840
20841 fi
20842
20843else
20844
20845 CPPFLAGS=$clean_CPPFLAGS
20846 LDFLAGS=$clean_LDFLAGS
20847
20848fi
20849
20850
20851
20852 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20853 then
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20855$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20856 HAVE_LIBZ=""
20857 CPPFLAGS=$clean_CPPFLAGS
20858 LDFLAGS=$clean_LDFLAGS
20859 LIBS=$clean_LIBS
20860 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20861 then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20863$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20864 CPPFLAGS=$clean_CPPFLAGS
20865 LDFLAGS=$clean_LDFLAGS
20866 LIBS=$clean_LIBS
20867 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20868 then
20869
20870
20871$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20872
20873
20874$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20875
20876
20877 ZLIB_LIBS="-lz"
20878 LIBS="-lz $clean_LIBS"
20879
20880 AMFIXLIB="1"
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20882$as_echo "$as_me: found both libz and libz.h header" >&6;}
20883 curl_zlib_msg="enabled"
20884 fi
20885fi
20886
20887 if test x"$AMFIXLIB" = x1; then
20888 HAVE_LIBZ_TRUE=
20889 HAVE_LIBZ_FALSE='#'
20890else
20891 HAVE_LIBZ_TRUE='#'
20892 HAVE_LIBZ_FALSE=
20893fi
20894
20895
20896
20897
Alex Deymo486467e2017-12-19 19:04:07 +010020898
20899OPT_BROTLI=off
20900
20901# Check whether --with-brotli was given.
20902if test "${with_brotli+set}" = set; then :
20903 withval=$with_brotli; OPT_BROTLI=$withval
20904fi
20905
20906
20907if test X"$OPT_BROTLI" != Xno; then
20908 CLEANLDFLAGS="$LDFLAGS"
20909 CLEANCPPFLAGS="$CPPFLAGS"
20910 CLEANLIBS="$LIBS"
20911
20912 case "$OPT_BROTLI" in
20913 yes)
20914
20915 if test -n "$PKG_CONFIG"; then
20916 PKGCONFIG="$PKG_CONFIG"
20917 else
20918 if test -n "$ac_tool_prefix"; then
20919 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20920set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20922$as_echo_n "checking for $ac_word... " >&6; }
20923if ${ac_cv_path_PKGCONFIG+:} false; then :
20924 $as_echo_n "(cached) " >&6
20925else
20926 case $PKGCONFIG in
20927 [\\/]* | ?:[\\/]*)
20928 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20929 ;;
20930 *)
20931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20932as_dummy="$PATH:/usr/bin:/usr/local/bin"
20933for as_dir in $as_dummy
20934do
20935 IFS=$as_save_IFS
20936 test -z "$as_dir" && as_dir=.
20937 for ac_exec_ext in '' $ac_executable_extensions; do
20938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20939 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20941 break 2
20942 fi
20943done
20944 done
20945IFS=$as_save_IFS
20946
20947 ;;
20948esac
20949fi
20950PKGCONFIG=$ac_cv_path_PKGCONFIG
20951if test -n "$PKGCONFIG"; then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20953$as_echo "$PKGCONFIG" >&6; }
20954else
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20956$as_echo "no" >&6; }
20957fi
20958
20959
20960fi
20961if test -z "$ac_cv_path_PKGCONFIG"; then
20962 ac_pt_PKGCONFIG=$PKGCONFIG
20963 # Extract the first word of "pkg-config", so it can be a program name with args.
20964set dummy pkg-config; ac_word=$2
20965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20966$as_echo_n "checking for $ac_word... " >&6; }
20967if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20968 $as_echo_n "(cached) " >&6
20969else
20970 case $ac_pt_PKGCONFIG in
20971 [\\/]* | ?:[\\/]*)
20972 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20973 ;;
20974 *)
20975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20976as_dummy="$PATH:/usr/bin:/usr/local/bin"
20977for as_dir in $as_dummy
20978do
20979 IFS=$as_save_IFS
20980 test -z "$as_dir" && as_dir=.
20981 for ac_exec_ext in '' $ac_executable_extensions; do
20982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20983 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20985 break 2
20986 fi
20987done
20988 done
20989IFS=$as_save_IFS
20990
20991 ;;
20992esac
20993fi
20994ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20995if test -n "$ac_pt_PKGCONFIG"; then
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20997$as_echo "$ac_pt_PKGCONFIG" >&6; }
20998else
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21000$as_echo "no" >&6; }
21001fi
21002
21003 if test "x$ac_pt_PKGCONFIG" = x; then
21004 PKGCONFIG="no"
21005 else
21006 case $cross_compiling:$ac_tool_warned in
21007yes:)
21008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21010ac_tool_warned=yes ;;
21011esac
21012 PKGCONFIG=$ac_pt_PKGCONFIG
21013 fi
21014else
21015 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21016fi
21017
21018 fi
21019
21020 if test "x$PKGCONFIG" != "xno"; then
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21022$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21023 itexists=`
21024 if test -n ""; then
21025 PKG_CONFIG_LIBDIR=""
21026 export PKG_CONFIG_LIBDIR
21027 fi
21028 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21029
21030 if test -z "$itexists"; then
21031 PKGCONFIG="no"
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21033$as_echo "no" >&6; }
21034 else
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21036$as_echo "found" >&6; }
21037 fi
21038 fi
21039
21040
21041 if test "$PKGCONFIG" != "no" ; then
21042 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21043 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21044 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21045 version=`$PKGCONFIG --modversion libbrotlidec`
21046 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21047 fi
21048
21049 ;;
21050 off)
21051 ;;
21052 *)
21053 PREFIX_BROTLI=$OPT_BROTLI
21054 ;;
21055 esac
21056
21057 if test -n "$PREFIX_BROTLI"; then
21058 LIB_BROTLI="-lbrotlidec"
21059 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21060 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21061 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21062 fi
21063
21064 LDFLAGS="$LDFLAGS $LD_BROTLI"
21065 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21066 LIBS="$LIB_BROTLI $LIBS"
21067
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21069$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21070if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21071 $as_echo_n "(cached) " >&6
21072else
21073 ac_check_lib_save_LIBS=$LIBS
21074LIBS="-lbrotlidec $LIBS"
21075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076/* end confdefs.h. */
21077
21078
21079#ifdef __cplusplus
21080extern "C"
21081#endif
21082char BrotliDecoderDecompress ();
21083int main (void)
21084{
21085return BrotliDecoderDecompress ();
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090if ac_fn_c_try_link "$LINENO"; then :
21091 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21092else
21093 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21094fi
21095rm -f core conftest.err conftest.$ac_objext \
21096 conftest$ac_exeext conftest.$ac_ext
21097LIBS=$ac_check_lib_save_LIBS
21098fi
21099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21100$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21101if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21102 cat >>confdefs.h <<_ACEOF
21103#define HAVE_LIBBROTLIDEC 1
21104_ACEOF
21105
21106 LIBS="-lbrotlidec $LIBS"
21107
21108fi
21109
21110
21111 for ac_header in brotli/decode.h
21112do :
21113 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21114if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21115 cat >>confdefs.h <<_ACEOF
21116#define HAVE_BROTLI_DECODE_H 1
21117_ACEOF
21118 curl_brotli_msg="enabled (libbrotlidec)"
21119 HAVE_BROTLI=1
21120
21121$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21122
21123 HAVE_BROTLI=1
21124
21125
21126fi
21127
21128done
21129
21130
21131 if test X"$OPT_BROTLI" != Xoff &&
21132 test "$HAVE_BROTLI" != "1"; then
21133 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21134 fi
21135
21136 if test "$HAVE_BROTLI" = "1"; then
21137 if test -n "$DIR_BROTLI"; then
21138
21139 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021140 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21141 export CURL_LIBRARY_PATH
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21143$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021144 fi
21145 fi
21146 else
21147 LDFLAGS=$CLEANLDFLAGS
21148 CPPFLAGS=$CLEANCPPFLAGS
21149 LIBS=$CLEANLIBS
21150 fi
21151fi
21152
21153
Elliott Hughes82be86d2017-09-20 17:00:17 -070021154LDAPLIBNAME=""
21155
21156# Check whether --with-ldap-lib was given.
21157if test "${with_ldap_lib+set}" = set; then :
21158 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21159fi
21160
21161
21162LBERLIBNAME=""
21163
21164# Check whether --with-lber-lib was given.
21165if test "${with_lber_lib+set}" = set; then :
21166 withval=$with_lber_lib; LBERLIBNAME="$withval"
21167fi
21168
21169
21170if test x$CURL_DISABLE_LDAP != x1 ; then
21171
21172
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21174$as_echo_n "checking for lber.h... " >&6; }
21175if ${curl_cv_header_lber_h+:} false; then :
21176 $as_echo_n "(cached) " >&6
21177else
21178
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180/* end confdefs.h. */
21181
21182
21183#undef inline
21184#ifdef HAVE_WINDOWS_H
21185#ifndef WIN32_LEAN_AND_MEAN
21186#define WIN32_LEAN_AND_MEAN
21187#endif
21188#include <windows.h>
21189#else
21190#ifdef HAVE_SYS_TYPES_H
21191#include <sys/types.h>
21192#endif
21193#endif
21194#ifndef NULL
21195#define NULL (void *)0
21196#endif
21197#include <lber.h>
21198
21199int main (void)
21200{
21201
21202 BerValue *bvp = NULL;
21203 BerElement *bep = ber_init(bvp);
21204 ber_free(bep, 1);
21205
21206 ;
21207 return 0;
21208}
21209
21210_ACEOF
21211if ac_fn_c_try_compile "$LINENO"; then :
21212
21213 curl_cv_header_lber_h="yes"
21214
21215else
21216
21217 curl_cv_header_lber_h="no"
21218
21219fi
21220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221
21222fi
21223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21224$as_echo "$curl_cv_header_lber_h" >&6; }
21225 if test "$curl_cv_header_lber_h" = "yes"; then
21226
21227cat >>confdefs.h <<_ACEOF
21228#define HAVE_LBER_H 1
21229_ACEOF
21230
21231 #
21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233/* end confdefs.h. */
21234
21235
21236#undef inline
21237#ifdef HAVE_WINDOWS_H
21238#ifndef WIN32_LEAN_AND_MEAN
21239#define WIN32_LEAN_AND_MEAN
21240#endif
21241#include <windows.h>
21242#else
21243#ifdef HAVE_SYS_TYPES_H
21244#include <sys/types.h>
21245#endif
21246#endif
21247#ifndef NULL
21248#define NULL (void *)0
21249#endif
21250#ifndef LDAP_DEPRECATED
21251#define LDAP_DEPRECATED 1
21252#endif
21253#include <ldap.h>
21254
21255int main (void)
21256{
21257
21258 BerValue *bvp = NULL;
21259 BerElement *bep = ber_init(bvp);
21260 ber_free(bep, 1);
21261
21262 ;
21263 return 0;
21264}
21265
21266_ACEOF
21267if ac_fn_c_try_compile "$LINENO"; then :
21268
21269 curl_cv_need_header_lber_h="no"
21270
21271else
21272
21273 curl_cv_need_header_lber_h="yes"
21274
21275fi
21276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 #
21278 case "$curl_cv_need_header_lber_h" in
21279 yes)
21280
21281cat >>confdefs.h <<_ACEOF
21282#define NEED_LBER_H 1
21283_ACEOF
21284
21285 ;;
21286 esac
21287 fi
21288
21289
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21291$as_echo_n "checking for ldap.h... " >&6; }
21292if ${curl_cv_header_ldap_h+:} false; then :
21293 $as_echo_n "(cached) " >&6
21294else
21295
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297/* end confdefs.h. */
21298
21299
21300#undef inline
21301#ifdef HAVE_WINDOWS_H
21302#ifndef WIN32_LEAN_AND_MEAN
21303#define WIN32_LEAN_AND_MEAN
21304#endif
21305#include <windows.h>
21306#else
21307#ifdef HAVE_SYS_TYPES_H
21308#include <sys/types.h>
21309#endif
21310#endif
21311#ifndef LDAP_DEPRECATED
21312#define LDAP_DEPRECATED 1
21313#endif
21314#ifdef NEED_LBER_H
21315#include <lber.h>
21316#endif
21317#include <ldap.h>
21318
21319int main (void)
21320{
21321
21322 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21323 int res = ldap_unbind(ldp);
21324
21325 ;
21326 return 0;
21327}
21328
21329_ACEOF
21330if ac_fn_c_try_compile "$LINENO"; then :
21331
21332 curl_cv_header_ldap_h="yes"
21333
21334else
21335
21336 curl_cv_header_ldap_h="no"
21337
21338fi
21339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340
21341fi
21342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21343$as_echo "$curl_cv_header_ldap_h" >&6; }
21344 case "$curl_cv_header_ldap_h" in
21345 yes)
21346
21347cat >>confdefs.h <<_ACEOF
21348#define HAVE_LDAP_H 1
21349_ACEOF
21350
21351 ;;
21352 esac
21353
21354
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21356$as_echo_n "checking for ldapssl.h... " >&6; }
21357if ${curl_cv_header_ldapssl_h+:} false; then :
21358 $as_echo_n "(cached) " >&6
21359else
21360
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362/* end confdefs.h. */
21363
21364
21365#undef inline
21366#ifdef HAVE_WINDOWS_H
21367#ifndef WIN32_LEAN_AND_MEAN
21368#define WIN32_LEAN_AND_MEAN
21369#endif
21370#include <windows.h>
21371#else
21372#ifdef HAVE_SYS_TYPES_H
21373#include <sys/types.h>
21374#endif
21375#endif
21376#ifndef NULL
21377#define NULL (void *)0
21378#endif
21379#ifndef LDAP_DEPRECATED
21380#define LDAP_DEPRECATED 1
21381#endif
21382#ifdef NEED_LBER_H
21383#include <lber.h>
21384#endif
21385#ifdef HAVE_LDAP_H
21386#include <ldap.h>
21387#endif
21388#include <ldapssl.h>
21389
21390int main (void)
21391{
21392
21393 char *cert_label = NULL;
21394 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21395
21396 ;
21397 return 0;
21398}
21399
21400_ACEOF
21401if ac_fn_c_try_compile "$LINENO"; then :
21402
21403 curl_cv_header_ldapssl_h="yes"
21404
21405else
21406
21407 curl_cv_header_ldapssl_h="no"
21408
21409fi
21410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411
21412fi
21413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21414$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21415 case "$curl_cv_header_ldapssl_h" in
21416 yes)
21417
21418cat >>confdefs.h <<_ACEOF
21419#define HAVE_LDAPSSL_H 1
21420_ACEOF
21421
21422 ;;
21423 esac
21424
21425
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21427$as_echo_n "checking for ldap_ssl.h... " >&6; }
21428if ${curl_cv_header_ldap_ssl_h+:} false; then :
21429 $as_echo_n "(cached) " >&6
21430else
21431
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433/* end confdefs.h. */
21434
21435
21436#undef inline
21437#ifdef HAVE_WINDOWS_H
21438#ifndef WIN32_LEAN_AND_MEAN
21439#define WIN32_LEAN_AND_MEAN
21440#endif
21441#include <windows.h>
21442#else
21443#ifdef HAVE_SYS_TYPES_H
21444#include <sys/types.h>
21445#endif
21446#endif
21447#ifndef LDAP_DEPRECATED
21448#define LDAP_DEPRECATED 1
21449#endif
21450#ifdef NEED_LBER_H
21451#include <lber.h>
21452#endif
21453#ifdef HAVE_LDAP_H
21454#include <ldap.h>
21455#endif
21456#include <ldap_ssl.h>
21457
21458int main (void)
21459{
21460
21461 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21462
21463 ;
21464 return 0;
21465}
21466
21467_ACEOF
21468if ac_fn_c_try_compile "$LINENO"; then :
21469
21470 curl_cv_header_ldap_ssl_h="yes"
21471
21472else
21473
21474 curl_cv_header_ldap_ssl_h="no"
21475
21476fi
21477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478
21479fi
21480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21481$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21482 case "$curl_cv_header_ldap_ssl_h" in
21483 yes)
21484
21485cat >>confdefs.h <<_ACEOF
21486#define HAVE_LDAP_SSL_H 1
21487_ACEOF
21488
21489 ;;
21490 esac
21491
21492
21493 if test -z "$LDAPLIBNAME" ; then
21494 if test "$curl_cv_native_windows" = "yes"; then
21495 LDAPLIBNAME="wldap32"
21496 LBERLIBNAME="no"
21497 fi
21498 fi
21499
21500 if test "$LDAPLIBNAME" ; then
21501 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21503$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21504if eval \${$as_ac_Lib+:} false; then :
21505 $as_echo_n "(cached) " >&6
21506else
21507 ac_check_lib_save_LIBS=$LIBS
21508LIBS="-l"$LDAPLIBNAME" $LIBS"
21509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21510/* end confdefs.h. */
21511
21512
21513#ifdef __cplusplus
21514extern "C"
21515#endif
21516char ldap_init ();
21517int main (void)
21518{
21519return ldap_init ();
21520 ;
21521 return 0;
21522}
21523_ACEOF
21524if ac_fn_c_try_link "$LINENO"; then :
21525 eval "$as_ac_Lib=yes"
21526else
21527 eval "$as_ac_Lib=no"
21528fi
21529rm -f core conftest.err conftest.$ac_objext \
21530 conftest$ac_exeext conftest.$ac_ext
21531LIBS=$ac_check_lib_save_LIBS
21532fi
21533eval ac_res=\$$as_ac_Lib
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21535$as_echo "$ac_res" >&6; }
21536if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21537 cat >>confdefs.h <<_ACEOF
21538#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21539_ACEOF
21540
21541 LIBS="-l"$LDAPLIBNAME" $LIBS"
21542
21543else
21544
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21546$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21547
21548$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21549
21550 CURL_DISABLE_LDAP=1
21551
21552
21553$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21554
21555 CURL_DISABLE_LDAPS=1
21556
21557fi
21558
21559 else
21560
21561 #
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21563$as_echo_n "checking for LDAP libraries... " >&6; }
21564 #
21565 u_libs=""
21566 #
21567
21568 #
21569 curl_cv_save_LIBS="$LIBS"
21570 curl_cv_ldap_LIBS="unknown"
21571 #
21572 for x_nlibs in '' "$u_libs" \
21573 '-lldap' \
21574 '-lldap -llber' \
21575 '-llber -lldap' \
21576 '-lldapssl -lldapx -lldapsdk' \
21577 '-lldapsdk -lldapx -lldapssl' ; do
21578 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21579 if test -z "$x_nlibs"; then
21580 LIBS="$curl_cv_save_LIBS"
21581 else
21582 LIBS="$x_nlibs $curl_cv_save_LIBS"
21583 fi
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585/* end confdefs.h. */
21586
21587
21588#undef inline
21589#ifdef HAVE_WINDOWS_H
21590#ifndef WIN32_LEAN_AND_MEAN
21591#define WIN32_LEAN_AND_MEAN
21592#endif
21593#include <windows.h>
21594#else
21595#ifdef HAVE_SYS_TYPES_H
21596#include <sys/types.h>
21597#endif
21598#endif
21599#ifndef NULL
21600#define NULL (void *)0
21601#endif
21602#ifndef LDAP_DEPRECATED
21603#define LDAP_DEPRECATED 1
21604#endif
21605#ifdef NEED_LBER_H
21606#include <lber.h>
21607#endif
21608#ifdef HAVE_LDAP_H
21609#include <ldap.h>
21610#endif
21611
21612int main (void)
21613{
21614
21615 BerValue *bvp = NULL;
21616 BerElement *bep = ber_init(bvp);
21617 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21618 int res = ldap_unbind(ldp);
21619 ber_free(bep, 1);
21620
21621 ;
21622 return 0;
21623}
21624
21625_ACEOF
21626if ac_fn_c_try_link "$LINENO"; then :
21627
21628 curl_cv_ldap_LIBS="$x_nlibs"
21629
21630fi
21631rm -f core conftest.err conftest.$ac_objext \
21632 conftest$ac_exeext conftest.$ac_ext
21633 fi
21634 done
21635 #
21636 LIBS="$curl_cv_save_LIBS"
21637 #
21638 case X-"$curl_cv_ldap_LIBS" in
21639 X-unknown)
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21641$as_echo "cannot find LDAP libraries" >&6; }
21642 ;;
21643 X-)
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21645$as_echo "no additional lib required" >&6; }
21646 ;;
21647 *)
21648 if test -z "$curl_cv_save_LIBS"; then
21649 LIBS="$curl_cv_ldap_LIBS"
21650 else
21651 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21652 fi
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21654$as_echo "$curl_cv_ldap_LIBS" >&6; }
21655 ;;
21656 esac
21657 #
21658
21659 case X-"$curl_cv_ldap_LIBS" in
21660 X-unknown)
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21662$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21663
21664$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21665
21666 CURL_DISABLE_LDAP=1
21667
21668
21669$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21670
21671 CURL_DISABLE_LDAPS=1
21672
21673 ;;
21674 esac
21675 fi
21676fi
21677
21678if test x$CURL_DISABLE_LDAP != x1 ; then
21679
21680 if test "$LBERLIBNAME" ; then
21681 if test "$LBERLIBNAME" != "no" ; then
21682 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21684$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21685if eval \${$as_ac_Lib+:} false; then :
21686 $as_echo_n "(cached) " >&6
21687else
21688 ac_check_lib_save_LIBS=$LIBS
21689LIBS="-l"$LBERLIBNAME" $LIBS"
21690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21691/* end confdefs.h. */
21692
21693
21694#ifdef __cplusplus
21695extern "C"
21696#endif
21697char ber_free ();
21698int main (void)
21699{
21700return ber_free ();
21701 ;
21702 return 0;
21703}
21704_ACEOF
21705if ac_fn_c_try_link "$LINENO"; then :
21706 eval "$as_ac_Lib=yes"
21707else
21708 eval "$as_ac_Lib=no"
21709fi
21710rm -f core conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
21712LIBS=$ac_check_lib_save_LIBS
21713fi
21714eval ac_res=\$$as_ac_Lib
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21716$as_echo "$ac_res" >&6; }
21717if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21718 cat >>confdefs.h <<_ACEOF
21719#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21720_ACEOF
21721
21722 LIBS="-l"$LBERLIBNAME" $LIBS"
21723
21724else
21725
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21727$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21728
21729$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21730
21731 CURL_DISABLE_LDAP=1
21732
21733
21734$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21735
21736 CURL_DISABLE_LDAPS=1
21737
21738fi
21739
21740 fi
21741 fi
21742fi
21743
21744if test x$CURL_DISABLE_LDAP != x1 ; then
21745 for ac_func in ldap_url_parse ldap_init_fd
21746do :
21747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21750 cat >>confdefs.h <<_ACEOF
21751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21752_ACEOF
21753
21754fi
21755done
21756
21757
21758 if test "$LDAPLIBNAME" = "wldap32"; then
21759 curl_ldap_msg="enabled (winldap)"
21760
21761$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21762
21763 else
21764 curl_ldap_msg="enabled (OpenLDAP)"
21765 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21766
21767$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21768
21769 USE_OPENLDAP=1
21770
21771 fi
21772 fi
21773fi
21774
21775if test x$CURL_DISABLE_LDAPS != x1 ; then
21776 curl_ldaps_msg="enabled"
21777fi
21778
21779
21780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21781$as_echo_n "checking whether to enable IPv6... " >&6; }
21782# Check whether --enable-ipv6 was given.
21783if test "${enable_ipv6+set}" = set; then :
21784 enableval=$enable_ipv6; case "$enableval" in
21785 no)
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21787$as_echo "no" >&6; }
21788 ipv6=no
21789 ;;
21790 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21791$as_echo "yes" >&6; }
21792 ipv6=yes
21793 ;;
21794 esac
21795else
21796 if test "$cross_compiling" = yes; then :
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21798$as_echo "yes" >&6; }
21799 ipv6=yes
21800
21801else
21802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803/* end confdefs.h. */
21804 /* is AF_INET6 available? */
21805#include <sys/types.h>
21806#ifdef HAVE_WINSOCK2_H
21807#include <winsock2.h>
21808#else
21809#include <sys/socket.h>
21810#endif
21811#include <stdlib.h> /* for exit() */
21812main()
21813{
21814 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21815 exit(1);
21816 else
21817 exit(0);
21818}
21819
21820_ACEOF
21821if ac_fn_c_try_run "$LINENO"; then :
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21823$as_echo "yes" >&6; }
21824 ipv6=yes
21825else
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21827$as_echo "no" >&6; }
21828 ipv6=no
21829fi
21830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21831 conftest.$ac_objext conftest.beam conftest.$ac_ext
21832fi
21833
21834fi
21835
21836
21837if test "$ipv6" = "yes"; then
21838 curl_ipv6_msg="enabled"
21839fi
21840
21841# Check if struct sockaddr_in6 have sin6_scope_id member
21842if test "$ipv6" = yes; then
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21844$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846/* end confdefs.h. */
21847
21848#include <sys/types.h>
21849#ifdef HAVE_WINSOCK2_H
21850#include <winsock2.h>
21851#include <ws2tcpip.h>
21852#else
21853#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021854#if defined (__TANDEM)
21855# include <netinet/in6.h>
21856#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021857#endif
21858int main (void)
21859{
21860struct sockaddr_in6 s; s.sin6_scope_id = 0;
21861 ;
21862 return 0;
21863}
21864_ACEOF
21865if ac_fn_c_try_compile "$LINENO"; then :
21866 have_sin6_scope_id=yes
21867fi
21868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 if test "$have_sin6_scope_id" = yes; then
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21871$as_echo "yes" >&6; }
21872
21873$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21874
21875 else
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21877$as_echo "no" >&6; }
21878 fi
21879fi
21880
21881
21882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21883$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021884
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021885
21886 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021887 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21888 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021889 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021890 curl_cv_writable_argv=cross
21891
21892else
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894/* end confdefs.h. */
21895
Elliott Hughes82be86d2017-09-20 17:00:17 -070021896int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021897 argv00 = ' ';
21898 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021899}
21900
Elliott Hughes82be86d2017-09-20 17:00:17 -070021901_ACEOF
21902if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021903 curl_cv_writable_argv=yes
21904
21905else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021906 curl_cv_writable_argv=no
21907
21908fi
21909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21910 conftest.$ac_objext conftest.beam conftest.$ac_ext
21911fi
21912
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021913 LD_LIBRARY_PATH=$old # restore
21914
Elliott Hughes82be86d2017-09-20 17:00:17 -070021915case $curl_cv_writable_argv in
21916yes)
21917
21918$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21919
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21921$as_echo "yes" >&6; }
21922 ;;
21923no)
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21925$as_echo "no" >&6; }
21926 ;;
21927*)
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21929$as_echo "no" >&6; }
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21931$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21932 ;;
21933esac
21934
21935
21936
21937GSSAPI_ROOT="/usr"
21938
21939# Check whether --with-gssapi-includes was given.
21940if test "${with_gssapi_includes+set}" = set; then :
21941 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21942 want_gss="yes"
21943
21944fi
21945
21946
21947
21948# Check whether --with-gssapi-libs was given.
21949if test "${with_gssapi_libs+set}" = set; then :
21950 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21951 want_gss="yes"
21952
21953fi
21954
21955
21956
21957# Check whether --with-gssapi was given.
21958if test "${with_gssapi+set}" = set; then :
21959 withval=$with_gssapi;
21960 GSSAPI_ROOT="$withval"
21961 if test x"$GSSAPI_ROOT" != xno; then
21962 want_gss="yes"
21963 if test x"$GSSAPI_ROOT" = xyes; then
21964 GSSAPI_ROOT="/usr"
21965 fi
21966 fi
21967
21968fi
21969
21970
21971: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21972
21973save_CPPFLAGS="$CPPFLAGS"
21974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21975$as_echo_n "checking if GSS-API support is requested... " >&6; }
21976if test x"$want_gss" = xyes; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21978$as_echo "yes" >&6; }
21979
21980 if test -z "$GSSAPI_INCS"; then
21981 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21982 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21983 elif test -f "$KRB5CONFIG"; then
21984 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21985 elif test "$GSSAPI_ROOT" != "yes"; then
21986 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21987 fi
21988 fi
21989
21990 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21991
21992 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21993if test "x$ac_cv_header_gss_h" = xyes; then :
21994
21995
21996$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21997
21998 gnu_gss=yes
21999
22000else
22001
22002 for ac_header in gssapi/gssapi.h
22003do :
22004 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22005if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22006 cat >>confdefs.h <<_ACEOF
22007#define HAVE_GSSAPI_GSSAPI_H 1
22008_ACEOF
22009
22010else
22011 not_mit=1
22012fi
22013
22014done
22015
22016 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22017do :
22018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22019ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22020$ac_includes_default
22021#ifdef HAVE_GSSAPI_GSSAPI_H
22022#include <gssapi/gssapi.h>
22023#endif
22024
22025"
22026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22027 cat >>confdefs.h <<_ACEOF
22028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22029_ACEOF
22030
22031else
22032 not_mit=1
22033fi
22034
22035done
22036
22037 if test "x$not_mit" = "x1"; then
22038 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22039if test "x$ac_cv_header_gssapi_h" = xyes; then :
22040
22041
22042$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22043
22044
22045else
22046
22047 want_gss=no
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22049$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22050
22051
22052fi
22053
22054
22055 else
22056
22057$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22058
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22060$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062/* end confdefs.h. */
22063
22064
22065#include <gssapi/gssapi.h>
22066#include <gssapi/gssapi_generic.h>
22067#include <gssapi/gssapi_krb5.h>
22068
22069int main (void)
22070{
22071
22072 gss_import_name(
22073 (OM_uint32 *)0,
22074 (gss_buffer_t)0,
22075 GSS_C_NT_HOSTBASED_SERVICE,
22076 (gss_name_t *)0);
22077
22078 ;
22079 return 0;
22080}
22081
22082_ACEOF
22083if ac_fn_c_try_compile "$LINENO"; then :
22084
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22086$as_echo "yes" >&6; }
22087
22088else
22089
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22091$as_echo "no" >&6; }
22092
22093$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22094
22095
22096fi
22097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098 fi
22099
22100
22101fi
22102
22103
22104else
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22106$as_echo "no" >&6; }
22107fi
22108if test x"$want_gss" = xyes; then
22109
22110$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22111
22112 HAVE_GSSAPI=1
22113 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22114
22115 if test -n "$gnu_gss"; then
22116 curl_gss_msg="enabled (GNU GSS)"
22117 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22118 LIBS="-lgss $LIBS"
22119 elif test -z "$GSSAPI_LIB_DIR"; then
22120 case $host in
22121 *-*-darwin*)
22122 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22123 ;;
22124 *)
22125 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22126 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22127 LIBS="$gss_libs $LIBS"
22128 elif test -f "$KRB5CONFIG"; then
22129 gss_libs=`$KRB5CONFIG --libs gssapi`
22130 LIBS="$gss_libs $LIBS"
22131 else
22132 case $host in
22133 *-hp-hpux*)
22134 gss_libname="gss"
22135 ;;
22136 *)
22137 gss_libname="gssapi"
22138 ;;
22139 esac
22140
22141 if test "$GSSAPI_ROOT" != "yes"; then
22142 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22143 LIBS="-l$gss_libname $LIBS"
22144 else
22145 LIBS="-l$gss_libname $LIBS"
22146 fi
22147 fi
22148 ;;
22149 esac
22150 else
22151 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22152 case $host in
22153 *-hp-hpux*)
22154 LIBS="-lgss $LIBS"
22155 ;;
22156 *)
22157 LIBS="-lgssapi $LIBS"
22158 ;;
22159 esac
22160 fi
22161else
22162 CPPFLAGS="$save_CPPFLAGS"
22163fi
22164
Alex Deymo486467e2017-12-19 19:04:07 +010022165build_libstubgss=no
22166if test x"$want_gss" = "xyes"; then
22167 build_libstubgss=yes
22168fi
22169
22170 if test "x$build_libstubgss" = "xyes"; then
22171 BUILD_STUB_GSS_TRUE=
22172 BUILD_STUB_GSS_FALSE='#'
22173else
22174 BUILD_STUB_GSS_TRUE='#'
22175 BUILD_STUB_GSS_FALSE=
22176fi
22177
22178
22179
22180DEFAULT_SSL_BACKEND=no
22181VALID_DEFAULT_SSL_BACKEND=
22182
22183# Check whether --with-default-ssl-backend was given.
22184if test "${with_default_ssl_backend+set}" = set; then :
22185 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22186fi
22187
22188case "$DEFAULT_SSL_BACKEND" in
22189 no)
22190 ;;
22191 default|yes)
22192 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22193 ;;
22194 *)
22195
22196 VALID_DEFAULT_SSL_BACKEND=no
22197 ;;
22198esac
22199
22200
Elliott Hughes82be86d2017-09-20 17:00:17 -070022201
22202OPT_WINSSL=no
22203
22204# Check whether --with-winssl was given.
22205if test "${with_winssl+set}" = set; then :
22206 withval=$with_winssl; OPT_WINSSL=$withval
22207fi
22208
22209
22210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22211$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022212if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22213 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022214 if test "x$OPT_WINSSL" != "xno" &&
22215 test "x$curl_cv_native_windows" = "xyes"; then
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22217$as_echo "yes" >&6; }
22218
22219$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22220
22221 USE_SCHANNEL=1
22222
Alex Deymo486467e2017-12-19 19:04:07 +010022223 ssl_msg="Windows-native"
22224 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022225 WINSSL_ENABLED=1
22226 # --with-winssl implies --enable-sspi
22227
22228$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22229
22230 USE_WINDOWS_SSPI=1
22231
22232 curl_sspi_msg="enabled"
22233 LIBS="-lcrypt32 $LIBS"
22234 else
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236$as_echo "no" >&6; }
22237 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022238 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022239else
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22241$as_echo "no" >&6; }
22242fi
22243
22244OPT_DARWINSSL=no
22245
22246# Check whether --with-darwinssl was given.
22247if test "${with_darwinssl+set}" = set; then :
22248 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22249fi
22250
22251
22252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22253$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022254if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022255 if test "x$OPT_DARWINSSL" != "xno" &&
22256 test -d "/System/Library/Frameworks/Security.framework"; then
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22258$as_echo "yes" >&6; }
22259
22260$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22261
22262 USE_DARWINSSL=1
22263
Alex Deymo486467e2017-12-19 19:04:07 +010022264 ssl_msg="Apple OS-native"
22265 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022266 DARWINSSL_ENABLED=1
22267 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22268 else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270$as_echo "no" >&6; }
22271 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022272 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022273else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275$as_echo "no" >&6; }
22276fi
22277
22278
22279OPT_SSL=off
22280ca="no"
22281
22282# Check whether --with-ssl was given.
22283if test "${with_ssl+set}" = set; then :
22284 withval=$with_ssl; OPT_SSL=$withval
22285fi
22286
22287
Alex Deymo486467e2017-12-19 19:04:07 +010022288if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22289 test X"$OPT_SSL" != Xno; then
22290 ssl_msg=
22291
Elliott Hughes82be86d2017-09-20 17:00:17 -070022292 CLEANLDFLAGS="$LDFLAGS"
22293 CLEANCPPFLAGS="$CPPFLAGS"
22294 CLEANLIBS="$LIBS"
22295
22296 case $host in
22297 *-*-msys* | *-*-mingw*)
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22299$as_echo_n "checking for gdi32... " >&6; }
22300 my_ac_save_LIBS=$LIBS
22301 LIBS="-lgdi32 $LIBS"
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303/* end confdefs.h. */
22304#include <windef.h>
22305 #include <wingdi.h>
22306int main (void)
22307{
22308GdiFlush();
22309 ;
22310 return 0;
22311}
22312_ACEOF
22313if ac_fn_c_try_link "$LINENO"; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22315$as_echo "yes" >&6; }
22316else
22317 LIBS=$my_ac_save_LIBS
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319$as_echo "no" >&6; }
22320
22321fi
22322rm -f core conftest.err conftest.$ac_objext \
22323 conftest$ac_exeext conftest.$ac_ext
22324 ;;
22325 esac
22326
22327 case "$OPT_SSL" in
22328 yes)
22329 if test x$cross_compiling != xyes; then
22330 PKGTEST="yes"
22331 fi
22332 PREFIX_OPENSSL=/usr/local/ssl
22333 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22334 ;;
22335 off)
22336 if test x$cross_compiling != xyes; then
22337 PKGTEST="yes"
22338 fi
22339 PREFIX_OPENSSL=
22340 ;;
22341 *)
22342 PKGTEST="no"
22343 PREFIX_OPENSSL=$OPT_SSL
22344
22345 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022346 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022347 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22348$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022349 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022350 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22351 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022352 fi
22353
22354 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22355 if test "$PREFIX_OPENSSL" != "/usr" ; then
22356 SSL_LDFLAGS="-L$LIB_OPENSSL"
22357 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22358 fi
22359 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22360 ;;
22361 esac
22362
22363 if test "$PKGTEST" = "yes"; then
22364
22365
22366 if test -n "$PKG_CONFIG"; then
22367 PKGCONFIG="$PKG_CONFIG"
22368 else
22369 if test -n "$ac_tool_prefix"; then
22370 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22371set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22373$as_echo_n "checking for $ac_word... " >&6; }
22374if ${ac_cv_path_PKGCONFIG+:} false; then :
22375 $as_echo_n "(cached) " >&6
22376else
22377 case $PKGCONFIG in
22378 [\\/]* | ?:[\\/]*)
22379 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22380 ;;
22381 *)
22382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22383as_dummy="$PATH:/usr/bin:/usr/local/bin"
22384for as_dir in $as_dummy
22385do
22386 IFS=$as_save_IFS
22387 test -z "$as_dir" && as_dir=.
22388 for ac_exec_ext in '' $ac_executable_extensions; do
22389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22390 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22392 break 2
22393 fi
22394done
22395 done
22396IFS=$as_save_IFS
22397
22398 ;;
22399esac
22400fi
22401PKGCONFIG=$ac_cv_path_PKGCONFIG
22402if test -n "$PKGCONFIG"; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22404$as_echo "$PKGCONFIG" >&6; }
22405else
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407$as_echo "no" >&6; }
22408fi
22409
22410
22411fi
22412if test -z "$ac_cv_path_PKGCONFIG"; then
22413 ac_pt_PKGCONFIG=$PKGCONFIG
22414 # Extract the first word of "pkg-config", so it can be a program name with args.
22415set dummy pkg-config; ac_word=$2
22416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22417$as_echo_n "checking for $ac_word... " >&6; }
22418if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22419 $as_echo_n "(cached) " >&6
22420else
22421 case $ac_pt_PKGCONFIG in
22422 [\\/]* | ?:[\\/]*)
22423 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22424 ;;
22425 *)
22426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22427as_dummy="$PATH:/usr/bin:/usr/local/bin"
22428for as_dir in $as_dummy
22429do
22430 IFS=$as_save_IFS
22431 test -z "$as_dir" && as_dir=.
22432 for ac_exec_ext in '' $ac_executable_extensions; do
22433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22434 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22436 break 2
22437 fi
22438done
22439 done
22440IFS=$as_save_IFS
22441
22442 ;;
22443esac
22444fi
22445ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22446if test -n "$ac_pt_PKGCONFIG"; then
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22448$as_echo "$ac_pt_PKGCONFIG" >&6; }
22449else
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22451$as_echo "no" >&6; }
22452fi
22453
22454 if test "x$ac_pt_PKGCONFIG" = x; then
22455 PKGCONFIG="no"
22456 else
22457 case $cross_compiling:$ac_tool_warned in
22458yes:)
22459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22461ac_tool_warned=yes ;;
22462esac
22463 PKGCONFIG=$ac_pt_PKGCONFIG
22464 fi
22465else
22466 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22467fi
22468
22469 fi
22470
22471 if test "x$PKGCONFIG" != "xno"; then
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22473$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22474 itexists=`
22475 if test -n "$OPENSSL_PCDIR"; then
22476 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22477 export PKG_CONFIG_LIBDIR
22478 fi
22479 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22480
22481 if test -z "$itexists"; then
22482 PKGCONFIG="no"
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22484$as_echo "no" >&6; }
22485 else
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22487$as_echo "found" >&6; }
22488 fi
22489 fi
22490
22491
22492 if test "$PKGCONFIG" != "no" ; then
22493 SSL_LIBS=`
22494 if test -n "$OPENSSL_PCDIR"; then
22495 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22496 export PKG_CONFIG_LIBDIR
22497 fi
22498 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22499
22500 SSL_LDFLAGS=`
22501 if test -n "$OPENSSL_PCDIR"; then
22502 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22503 export PKG_CONFIG_LIBDIR
22504 fi
22505 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22506
22507 SSL_CPPFLAGS=`
22508 if test -n "$OPENSSL_PCDIR"; then
22509 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22510 export PKG_CONFIG_LIBDIR
22511 fi
22512 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22513
22514
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22516$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22518$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22520$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22521
22522 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22523
22524 LIBS="$SSL_LIBS $LIBS"
22525 fi
22526 fi
22527
22528 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22529 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22530
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22532$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22533if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22534 $as_echo_n "(cached) " >&6
22535else
22536 ac_check_lib_save_LIBS=$LIBS
22537LIBS="-lcrypto $LIBS"
22538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22539/* end confdefs.h. */
22540
22541
22542#ifdef __cplusplus
22543extern "C"
22544#endif
22545char HMAC_Update ();
22546int main (void)
22547{
22548return HMAC_Update ();
22549 ;
22550 return 0;
22551}
22552_ACEOF
22553if ac_fn_c_try_link "$LINENO"; then :
22554 ac_cv_lib_crypto_HMAC_Update=yes
22555else
22556 ac_cv_lib_crypto_HMAC_Update=no
22557fi
22558rm -f core conftest.err conftest.$ac_objext \
22559 conftest$ac_exeext conftest.$ac_ext
22560LIBS=$ac_check_lib_save_LIBS
22561fi
22562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22563$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22564if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22565
22566 HAVECRYPTO="yes"
22567 LIBS="-lcrypto $LIBS"
22568
22569else
22570
22571 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022572 if test "$PKGCONFIG" = "no" ; then
22573 # only set this if pkg-config wasn't used
22574 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22575 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22577$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22578if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22579 $as_echo_n "(cached) " >&6
22580else
22581 ac_check_lib_save_LIBS=$LIBS
22582LIBS="-lcrypto $LIBS"
22583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584/* end confdefs.h. */
22585
22586
22587#ifdef __cplusplus
22588extern "C"
22589#endif
22590char HMAC_Init_ex ();
22591int main (void)
22592{
22593return HMAC_Init_ex ();
22594 ;
22595 return 0;
22596}
22597_ACEOF
22598if ac_fn_c_try_link "$LINENO"; then :
22599 ac_cv_lib_crypto_HMAC_Init_ex=yes
22600else
22601 ac_cv_lib_crypto_HMAC_Init_ex=no
22602fi
22603rm -f core conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22605LIBS=$ac_check_lib_save_LIBS
22606fi
22607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22608$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22609if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22610
22611 HAVECRYPTO="yes"
22612 LIBS="-lcrypto $LIBS"
22613else
22614
22615
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22617$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022618 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620/* end confdefs.h. */
22621
22622 #include <openssl/err.h>
22623
22624int main (void)
22625{
22626
22627 ERR_clear_error();
22628
22629 ;
22630 return 0;
22631}
22632_ACEOF
22633if ac_fn_c_try_link "$LINENO"; then :
22634
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22636$as_echo "yes" >&6; }
22637 HAVECRYPTO="yes"
22638
22639else
22640
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642$as_echo "no" >&6; }
22643
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22645$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022646 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22648/* end confdefs.h. */
22649
22650 #include <openssl/err.h>
22651
22652int main (void)
22653{
22654
22655 ERR_clear_error();
22656
22657 ;
22658 return 0;
22659}
22660_ACEOF
22661if ac_fn_c_try_link "$LINENO"; then :
22662
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22664$as_echo "yes" >&6; }
22665 HAVECRYPTO="yes"
22666
22667else
22668
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670$as_echo "no" >&6; }
22671 LDFLAGS="$CLEANLDFLAGS"
22672 CPPFLAGS="$CLEANCPPFLAGS"
22673 LIBS="$CLEANLIBS"
22674
22675
22676fi
22677rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22679
22680
22681fi
22682rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
22684
22685
22686fi
22687
22688
22689fi
22690
22691
22692 if test X"$HAVECRYPTO" = X"yes"; then
22693
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22695$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22696if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22697 $as_echo_n "(cached) " >&6
22698else
22699 ac_check_lib_save_LIBS=$LIBS
22700LIBS="-lssl $LIBS"
22701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22702/* end confdefs.h. */
22703
22704
22705#ifdef __cplusplus
22706extern "C"
22707#endif
22708char SSL_connect ();
22709int main (void)
22710{
22711return SSL_connect ();
22712 ;
22713 return 0;
22714}
22715_ACEOF
22716if ac_fn_c_try_link "$LINENO"; then :
22717 ac_cv_lib_ssl_SSL_connect=yes
22718else
22719 ac_cv_lib_ssl_SSL_connect=no
22720fi
22721rm -f core conftest.err conftest.$ac_objext \
22722 conftest$ac_exeext conftest.$ac_ext
22723LIBS=$ac_check_lib_save_LIBS
22724fi
22725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22726$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22727if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22728 cat >>confdefs.h <<_ACEOF
22729#define HAVE_LIBSSL 1
22730_ACEOF
22731
22732 LIBS="-lssl $LIBS"
22733
22734fi
22735
22736
22737 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22739$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22740 OLIBS=$LIBS
22741 LIBS="-lRSAglue -lrsaref $LIBS"
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22743$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22744if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22745 $as_echo_n "(cached) " >&6
22746else
22747 ac_check_lib_save_LIBS=$LIBS
22748LIBS="-lssl $LIBS"
22749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750/* end confdefs.h. */
22751
22752
22753#ifdef __cplusplus
22754extern "C"
22755#endif
22756char SSL_connect ();
22757int main (void)
22758{
22759return SSL_connect ();
22760 ;
22761 return 0;
22762}
22763_ACEOF
22764if ac_fn_c_try_link "$LINENO"; then :
22765 ac_cv_lib_ssl_SSL_connect=yes
22766else
22767 ac_cv_lib_ssl_SSL_connect=no
22768fi
22769rm -f core conftest.err conftest.$ac_objext \
22770 conftest$ac_exeext conftest.$ac_ext
22771LIBS=$ac_check_lib_save_LIBS
22772fi
22773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22774$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22775if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22776 cat >>confdefs.h <<_ACEOF
22777#define HAVE_LIBSSL 1
22778_ACEOF
22779
22780 LIBS="-lssl $LIBS"
22781
22782fi
22783
22784 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22786$as_echo "no" >&6; }
22787 LIBS=$OLIBS
22788 else
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790$as_echo "yes" >&6; }
22791 fi
22792
22793 else
22794
22795 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22796 openssl/pem.h openssl/ssl.h openssl/err.h
22797do :
22798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22799ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22800if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22801 cat >>confdefs.h <<_ACEOF
22802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22803_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022804 ssl_msg="OpenSSL"
22805 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022806 OPENSSL_ENABLED=1
22807
22808$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22809
22810fi
22811
22812done
22813
22814
22815 if test $ac_cv_header_openssl_x509_h = no; then
22816 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22817do :
22818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22819ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22821 cat >>confdefs.h <<_ACEOF
22822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22823_ACEOF
22824
22825fi
22826
22827done
22828
22829
22830 if test $ac_cv_header_x509_h = yes &&
22831 test $ac_cv_header_crypto_h = yes &&
22832 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022833 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022834 OPENSSL_ENABLED=1
22835 fi
22836 fi
22837 fi
22838
Alex Deymo486467e2017-12-19 19:04:07 +010022839 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022840 LIBS="$CLEANLIBS"
22841 fi
22842
22843 if test X"$OPT_SSL" != Xoff &&
22844 test "$OPENSSL_ENABLED" != "1"; then
22845 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22846 fi
22847 fi
22848
22849 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022850
22851 for ac_func in RAND_egd \
22852 ENGINE_cleanup \
22853 SSL_get_shutdown \
22854 SSLv2_client_method
22855do :
22856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22857ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22858if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22859 cat >>confdefs.h <<_ACEOF
22860#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22861_ACEOF
22862
22863fi
22864done
22865
22866
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22868$as_echo_n "checking for BoringSSL... " >&6; }
22869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870/* end confdefs.h. */
22871
22872
22873 #include <openssl/base.h>
22874
22875int main (void)
22876{
22877
22878 #ifndef OPENSSL_IS_BORINGSSL
22879 #error not boringssl
22880 #endif
22881
22882 ;
22883 return 0;
22884}
22885
22886_ACEOF
22887if ac_fn_c_try_compile "$LINENO"; then :
22888
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22890$as_echo "yes" >&6; }
22891
22892cat >>confdefs.h <<_ACEOF
22893#define HAVE_BORINGSSL 1
22894_ACEOF
22895
Alex Deymo486467e2017-12-19 19:04:07 +010022896 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022897
22898else
22899
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22901$as_echo "no" >&6; }
22902
22903fi
22904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22907$as_echo_n "checking for libressl... " >&6; }
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909/* end confdefs.h. */
22910
22911
22912#include <openssl/opensslv.h>
22913
22914int main (void)
22915{
22916
22917 int dummy = LIBRESSL_VERSION_NUMBER;
22918
22919 ;
22920 return 0;
22921}
22922
22923_ACEOF
22924if ac_fn_c_try_compile "$LINENO"; then :
22925
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22927$as_echo "yes" >&6; }
22928
22929cat >>confdefs.h <<_ACEOF
22930#define HAVE_LIBRESSL 1
22931_ACEOF
22932
Alex Deymo486467e2017-12-19 19:04:07 +010022933 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022934
22935else
22936
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22938$as_echo "no" >&6; }
22939
22940fi
22941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 fi
22943
22944 if test "$OPENSSL_ENABLED" = "1"; then
22945 if test -n "$LIB_OPENSSL"; then
22946 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022947 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22948 export CURL_LIBRARY_PATH
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22950$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022951 fi
22952 fi
22953
22954 #
22955
22956 #
22957 tst_api="unknown"
22958 #
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22960$as_echo_n "checking for OpenSSL headers version... " >&6; }
22961
22962 OLDCPPFLAGS=$CPPFLAGS
22963 # CPPPFLAG comes from CURL_CPP_P
22964 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22965 if test -z "$SED"; then
22966 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22967 fi
22968 if test -z "$GREP"; then
22969 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22970 fi
22971
22972 tmp_exp=""
22973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22974/* end confdefs.h. */
22975
22976
22977# ifdef USE_OPENSSL
22978# include <openssl/crypto.h>
22979# else
22980# include <crypto.h>
22981# endif
22982
22983#ifdef OPENSSL_VERSION_NUMBER
22984CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22985#endif
22986
22987
22988_ACEOF
22989if ac_fn_c_try_cpp "$LINENO"; then :
22990
22991 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22992 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22993 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22994 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22995 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22996 tmp_exp=""
22997 fi
22998
22999fi
23000rm -f conftest.err conftest.i conftest.$ac_ext
23001 if test -z "$tmp_exp"; then
23002 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23003
23004 else
23005 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23006 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23007
23008 fi
23009 CPPFLAGS=$OLDCPPFLAGS
23010
23011 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23012 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23013 case "x$tst_verlen" in
23014 x6)
23015 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23016 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23017 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23018 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23019 ;;
23020 x11|x10)
23021 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23022 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23023 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23024 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23025 ;;
23026 *)
23027 tst_api="unknown"
23028 ;;
23029 esac
23030 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023031 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023032 0x110) tst_show="1.1.0" ;;
23033 0x102) tst_show="1.0.2" ;;
23034 0x101) tst_show="1.0.1" ;;
23035 0x100) tst_show="1.0.0" ;;
23036 0x099) tst_show="0.9.9" ;;
23037 0x098) tst_show="0.9.8" ;;
23038 0x097) tst_show="0.9.7" ;;
23039 0x096) tst_show="0.9.6" ;;
23040 0x095) tst_show="0.9.5" ;;
23041 0x094) tst_show="0.9.4" ;;
23042 0x093) tst_show="0.9.3" ;;
23043 0x092) tst_show="0.9.2" ;;
23044 0x091) tst_show="0.9.1" ;;
23045 *) tst_show="unknown" ;;
23046 esac
23047 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23048 else
23049 tst_show="unknown"
23050 fi
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23052$as_echo "$tst_show" >&6; }
23053 #
23054 curl_openssl_api_headers=$tst_api
23055
23056
23057 #
23058 tst_api="unknown"
23059 #
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23061$as_echo_n "checking for OpenSSL library version... " >&6; }
23062 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23064/* end confdefs.h. */
23065
23066
23067#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23068#ifdef __STDC__
23069# include <limits.h>
23070#else
23071# include <assert.h>
23072#endif
23073#undef ERR_clear_last_mark
23074#ifdef __cplusplus
23075extern "C"
23076#endif
23077char ERR_clear_last_mark ();
23078#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23079choke me
23080#endif
23081
23082int main (void)
23083{
23084return ERR_clear_last_mark ();
23085 ;
23086 return 0;
23087}
23088
23089_ACEOF
23090if ac_fn_c_try_link "$LINENO"; then :
23091
23092 tst_api="0x111"
23093
23094fi
23095rm -f core conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23097 fi
23098 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023099 case $host in
23100 *-*-vms*)
23101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23102/* end confdefs.h. */
23103
23104
23105#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23106#ifdef __STDC__
23107# include <limits.h>
23108#else
23109# include <assert.h>
23110#endif
23111#undef SSL_CTX_set_not_resumbl_sess_cb
23112#ifdef __cplusplus
23113extern "C"
23114#endif
23115char SSL_CTX_set_not_resumbl_sess_cb ();
23116#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23117choke me
23118#endif
23119
23120int main (void)
23121{
23122return SSL_CTX_set_not_resumbl_sess_cb ();
23123 ;
23124 return 0;
23125}
23126
23127_ACEOF
23128if ac_fn_c_try_link "$LINENO"; then :
23129
23130 tst_api="0x110"
23131
23132fi
23133rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
23135 ;;
23136 *)
23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23138/* end confdefs.h. */
23139
23140
23141#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23142#ifdef __STDC__
23143# include <limits.h>
23144#else
23145# include <assert.h>
23146#endif
23147#undef SSL_CTX_set_not_resumable_session_callback
23148#ifdef __cplusplus
23149extern "C"
23150#endif
23151char SSL_CTX_set_not_resumable_session_callback ();
23152#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23153choke me
23154#endif
23155
23156int main (void)
23157{
23158return SSL_CTX_set_not_resumable_session_callback ();
23159 ;
23160 return 0;
23161}
23162
23163_ACEOF
23164if ac_fn_c_try_link "$LINENO"; then :
23165
23166 tst_api="0x110"
23167
23168fi
23169rm -f core conftest.err conftest.$ac_objext \
23170 conftest$ac_exeext conftest.$ac_ext
23171 ;;
23172 esac
23173 fi
23174 if test "$tst_api" = "unknown"; then
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176/* end confdefs.h. */
23177
23178
23179#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23180#ifdef __STDC__
23181# include <limits.h>
23182#else
23183# include <assert.h>
23184#endif
23185#undef SSL_CONF_CTX_new
23186#ifdef __cplusplus
23187extern "C"
23188#endif
23189char SSL_CONF_CTX_new ();
23190#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23191choke me
23192#endif
23193
23194int main (void)
23195{
23196return SSL_CONF_CTX_new ();
23197 ;
23198 return 0;
23199}
23200
23201_ACEOF
23202if ac_fn_c_try_link "$LINENO"; then :
23203
23204 tst_api="0x102"
23205
23206fi
23207rm -f core conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
23209 fi
23210 if test "$tst_api" = "unknown"; then
23211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23212/* end confdefs.h. */
23213
23214
23215#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23216#ifdef __STDC__
23217# include <limits.h>
23218#else
23219# include <assert.h>
23220#endif
23221#undef SSL_renegotiate_abbreviated
23222#ifdef __cplusplus
23223extern "C"
23224#endif
23225char SSL_renegotiate_abbreviated ();
23226#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23227choke me
23228#endif
23229
23230int main (void)
23231{
23232return SSL_renegotiate_abbreviated ();
23233 ;
23234 return 0;
23235}
23236
23237_ACEOF
23238if ac_fn_c_try_link "$LINENO"; then :
23239
23240 tst_api="0x101"
23241
23242fi
23243rm -f core conftest.err conftest.$ac_objext \
23244 conftest$ac_exeext conftest.$ac_ext
23245 fi
23246 if test "$tst_api" = "unknown"; then
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248/* end confdefs.h. */
23249
23250
23251#define OBJ_add_sigid innocuous_OBJ_add_sigid
23252#ifdef __STDC__
23253# include <limits.h>
23254#else
23255# include <assert.h>
23256#endif
23257#undef OBJ_add_sigid
23258#ifdef __cplusplus
23259extern "C"
23260#endif
23261char OBJ_add_sigid ();
23262#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23263choke me
23264#endif
23265
23266int main (void)
23267{
23268return OBJ_add_sigid ();
23269 ;
23270 return 0;
23271}
23272
23273_ACEOF
23274if ac_fn_c_try_link "$LINENO"; then :
23275
23276 tst_api="0x100"
23277
23278fi
23279rm -f core conftest.err conftest.$ac_objext \
23280 conftest$ac_exeext conftest.$ac_ext
23281 fi
23282 if test "$tst_api" = "unknown"; then
23283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284/* end confdefs.h. */
23285
23286
23287#define ERR_set_mark innocuous_ERR_set_mark
23288#ifdef __STDC__
23289# include <limits.h>
23290#else
23291# include <assert.h>
23292#endif
23293#undef ERR_set_mark
23294#ifdef __cplusplus
23295extern "C"
23296#endif
23297char ERR_set_mark ();
23298#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23299choke me
23300#endif
23301
23302int main (void)
23303{
23304return ERR_set_mark ();
23305 ;
23306 return 0;
23307}
23308
23309_ACEOF
23310if ac_fn_c_try_link "$LINENO"; then :
23311
23312 tst_api="0x098"
23313
23314fi
23315rm -f core conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
23317 fi
23318 if test "$tst_api" = "unknown"; then
23319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23320/* end confdefs.h. */
23321
23322
23323#define ERR_peek_last_error innocuous_ERR_peek_last_error
23324#ifdef __STDC__
23325# include <limits.h>
23326#else
23327# include <assert.h>
23328#endif
23329#undef ERR_peek_last_error
23330#ifdef __cplusplus
23331extern "C"
23332#endif
23333char ERR_peek_last_error ();
23334#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23335choke me
23336#endif
23337
23338int main (void)
23339{
23340return ERR_peek_last_error ();
23341 ;
23342 return 0;
23343}
23344
23345_ACEOF
23346if ac_fn_c_try_link "$LINENO"; then :
23347
23348 tst_api="0x097"
23349
23350fi
23351rm -f core conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
23353 fi
23354 if test "$tst_api" = "unknown"; then
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356/* end confdefs.h. */
23357
23358
23359#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23360#ifdef __STDC__
23361# include <limits.h>
23362#else
23363# include <assert.h>
23364#endif
23365#undef c2i_ASN1_OBJECT
23366#ifdef __cplusplus
23367extern "C"
23368#endif
23369char c2i_ASN1_OBJECT ();
23370#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23371choke me
23372#endif
23373
23374int main (void)
23375{
23376return c2i_ASN1_OBJECT ();
23377 ;
23378 return 0;
23379}
23380
23381_ACEOF
23382if ac_fn_c_try_link "$LINENO"; then :
23383
23384 tst_api="0x096"
23385
23386fi
23387rm -f core conftest.err conftest.$ac_objext \
23388 conftest$ac_exeext conftest.$ac_ext
23389 fi
23390 if test "$tst_api" = "unknown"; then
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392/* end confdefs.h. */
23393
23394
23395#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23396#ifdef __STDC__
23397# include <limits.h>
23398#else
23399# include <assert.h>
23400#endif
23401#undef SSL_CTX_set_purpose
23402#ifdef __cplusplus
23403extern "C"
23404#endif
23405char SSL_CTX_set_purpose ();
23406#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23407choke me
23408#endif
23409
23410int main (void)
23411{
23412return SSL_CTX_set_purpose ();
23413 ;
23414 return 0;
23415}
23416
23417_ACEOF
23418if ac_fn_c_try_link "$LINENO"; then :
23419
23420 tst_api="0x095"
23421
23422fi
23423rm -f core conftest.err conftest.$ac_objext \
23424 conftest$ac_exeext conftest.$ac_ext
23425 fi
23426 if test "$tst_api" = "unknown"; then
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428/* end confdefs.h. */
23429
23430
23431#define OBJ_obj2txt innocuous_OBJ_obj2txt
23432#ifdef __STDC__
23433# include <limits.h>
23434#else
23435# include <assert.h>
23436#endif
23437#undef OBJ_obj2txt
23438#ifdef __cplusplus
23439extern "C"
23440#endif
23441char OBJ_obj2txt ();
23442#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23443choke me
23444#endif
23445
23446int main (void)
23447{
23448return OBJ_obj2txt ();
23449 ;
23450 return 0;
23451}
23452
23453_ACEOF
23454if ac_fn_c_try_link "$LINENO"; then :
23455
23456 tst_api="0x094"
23457
23458fi
23459rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23461 fi
23462 if test "$tst_api" = "unknown"; then
23463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464/* end confdefs.h. */
23465
23466
23467#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23468#ifdef __STDC__
23469# include <limits.h>
23470#else
23471# include <assert.h>
23472#endif
23473#undef SSL_get_verify_depth
23474#ifdef __cplusplus
23475extern "C"
23476#endif
23477char SSL_get_verify_depth ();
23478#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23479choke me
23480#endif
23481
23482int main (void)
23483{
23484return SSL_get_verify_depth ();
23485 ;
23486 return 0;
23487}
23488
23489_ACEOF
23490if ac_fn_c_try_link "$LINENO"; then :
23491
23492 tst_api="0x093"
23493
23494fi
23495rm -f core conftest.err conftest.$ac_objext \
23496 conftest$ac_exeext conftest.$ac_ext
23497 fi
23498 if test "$tst_api" = "unknown"; then
23499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23500/* end confdefs.h. */
23501
23502
23503#define SSL_library_init innocuous_SSL_library_init
23504#ifdef __STDC__
23505# include <limits.h>
23506#else
23507# include <assert.h>
23508#endif
23509#undef SSL_library_init
23510#ifdef __cplusplus
23511extern "C"
23512#endif
23513char SSL_library_init ();
23514#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23515choke me
23516#endif
23517
23518int main (void)
23519{
23520return SSL_library_init ();
23521 ;
23522 return 0;
23523}
23524
23525_ACEOF
23526if ac_fn_c_try_link "$LINENO"; then :
23527
23528 tst_api="0x092"
23529
23530fi
23531rm -f core conftest.err conftest.$ac_objext \
23532 conftest$ac_exeext conftest.$ac_ext
23533 fi
23534 if test "$tst_api" = "unknown"; then
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536/* end confdefs.h. */
23537
23538
23539#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23540#ifdef __STDC__
23541# include <limits.h>
23542#else
23543# include <assert.h>
23544#endif
23545#undef SSL_CTX_set_cipher_list
23546#ifdef __cplusplus
23547extern "C"
23548#endif
23549char SSL_CTX_set_cipher_list ();
23550#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23551choke me
23552#endif
23553
23554int main (void)
23555{
23556return SSL_CTX_set_cipher_list ();
23557 ;
23558 return 0;
23559}
23560
23561_ACEOF
23562if ac_fn_c_try_link "$LINENO"; then :
23563
23564 tst_api="0x091"
23565
23566fi
23567rm -f core conftest.err conftest.$ac_objext \
23568 conftest$ac_exeext conftest.$ac_ext
23569 fi
23570 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023571 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023572 0x110) tst_show="1.1.0" ;;
23573 0x102) tst_show="1.0.2" ;;
23574 0x101) tst_show="1.0.1" ;;
23575 0x100) tst_show="1.0.0" ;;
23576 0x099) tst_show="0.9.9" ;;
23577 0x098) tst_show="0.9.8" ;;
23578 0x097) tst_show="0.9.7" ;;
23579 0x096) tst_show="0.9.6" ;;
23580 0x095) tst_show="0.9.5" ;;
23581 0x094) tst_show="0.9.4" ;;
23582 0x093) tst_show="0.9.3" ;;
23583 0x092) tst_show="0.9.2" ;;
23584 0x091) tst_show="0.9.1" ;;
23585 *) tst_show="unknown" ;;
23586 esac
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23588$as_echo "$tst_show" >&6; }
23589 #
23590 curl_openssl_api_library=$tst_api
23591
23592 #
23593 tst_match="yes"
23594 #
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23596$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23597 if test "$curl_openssl_api_headers" = "unknown" ||
23598 test "$curl_openssl_api_library" = "unknown"; then
23599 tst_match="fail"
23600 tst_warns="Can not compare OpenSSL headers and library versions."
23601 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23602 tst_match="no"
23603 tst_warns="OpenSSL headers and library versions do not match."
23604 fi
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23606$as_echo "$tst_match" >&6; }
23607 if test "$tst_match" != "yes"; then
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23609$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23610 fi
23611
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023612 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023613 fi
23614
Alex Deymo486467e2017-12-19 19:04:07 +010023615 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023616fi
23617
23618
23619if test X"$OPENSSL_ENABLED" = X"1"; then
23620
23621# Check whether --with-egd-socket was given.
23622if test "${with_egd_socket+set}" = set; then :
23623 withval=$with_egd_socket; EGD_SOCKET="$withval"
23624
23625fi
23626
23627 if test -n "$EGD_SOCKET" ; then
23628
23629cat >>confdefs.h <<_ACEOF
23630#define EGD_SOCKET "$EGD_SOCKET"
23631_ACEOF
23632
23633 fi
23634
23635
23636# Check whether --with-random was given.
23637if test "${with_random+set}" = set; then :
23638 withval=$with_random; RANDOM_FILE="$withval"
23639else
23640
23641 if test x$cross_compiling != xyes; then
23642 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23644$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23645if eval \${$as_ac_File+:} false; then :
23646 $as_echo_n "(cached) " >&6
23647else
23648 test "$cross_compiling" = yes &&
23649 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23650if test -r ""/dev/urandom""; then
23651 eval "$as_ac_File=yes"
23652else
23653 eval "$as_ac_File=no"
23654fi
23655fi
23656eval ac_res=\$$as_ac_File
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23658$as_echo "$ac_res" >&6; }
23659if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23660 RANDOM_FILE="/dev/urandom"
23661fi
23662
23663 else
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23665$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23666 fi
23667
23668
23669fi
23670
23671 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23672
23673
23674cat >>confdefs.h <<_ACEOF
23675#define RANDOM_FILE "$RANDOM_FILE"
23676_ACEOF
23677
23678 fi
23679fi
23680
23681if test "$OPENSSL_ENABLED" = "1"; then
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23683$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23684if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23685 $as_echo_n "(cached) " >&6
23686else
23687 ac_check_lib_save_LIBS=$LIBS
23688LIBS="-lcrypto $LIBS"
23689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23690/* end confdefs.h. */
23691
23692
23693#ifdef __cplusplus
23694extern "C"
23695#endif
23696char SRP_Calc_client_key ();
23697int main (void)
23698{
23699return SRP_Calc_client_key ();
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704if ac_fn_c_try_link "$LINENO"; then :
23705 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23706else
23707 ac_cv_lib_crypto_SRP_Calc_client_key=no
23708fi
23709rm -f core conftest.err conftest.$ac_objext \
23710 conftest$ac_exeext conftest.$ac_ext
23711LIBS=$ac_check_lib_save_LIBS
23712fi
23713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23714$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23715if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23716
23717
23718$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23719
23720 HAVE_OPENSSL_SRP=1
23721
23722
23723fi
23724
23725fi
23726
23727
23728OPT_GNUTLS=no
23729
23730
23731# Check whether --with-gnutls was given.
23732if test "${with_gnutls+set}" = set; then :
23733 withval=$with_gnutls; OPT_GNUTLS=$withval
23734fi
23735
23736
Alex Deymo486467e2017-12-19 19:04:07 +010023737if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23738 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023739
23740 if test X"$OPT_GNUTLS" != Xno; then
23741
23742 addld=""
23743 addlib=""
23744 gtlslib=""
23745 version=""
23746 addcflags=""
23747
23748 if test "x$OPT_GNUTLS" = "xyes"; then
23749
23750 if test -n "$PKG_CONFIG"; then
23751 PKGCONFIG="$PKG_CONFIG"
23752 else
23753 if test -n "$ac_tool_prefix"; then
23754 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23755set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23757$as_echo_n "checking for $ac_word... " >&6; }
23758if ${ac_cv_path_PKGCONFIG+:} false; then :
23759 $as_echo_n "(cached) " >&6
23760else
23761 case $PKGCONFIG in
23762 [\\/]* | ?:[\\/]*)
23763 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23764 ;;
23765 *)
23766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23767as_dummy="$PATH:/usr/bin:/usr/local/bin"
23768for as_dir in $as_dummy
23769do
23770 IFS=$as_save_IFS
23771 test -z "$as_dir" && as_dir=.
23772 for ac_exec_ext in '' $ac_executable_extensions; do
23773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23774 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23776 break 2
23777 fi
23778done
23779 done
23780IFS=$as_save_IFS
23781
23782 ;;
23783esac
23784fi
23785PKGCONFIG=$ac_cv_path_PKGCONFIG
23786if test -n "$PKGCONFIG"; then
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23788$as_echo "$PKGCONFIG" >&6; }
23789else
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23791$as_echo "no" >&6; }
23792fi
23793
23794
23795fi
23796if test -z "$ac_cv_path_PKGCONFIG"; then
23797 ac_pt_PKGCONFIG=$PKGCONFIG
23798 # Extract the first word of "pkg-config", so it can be a program name with args.
23799set dummy pkg-config; ac_word=$2
23800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23801$as_echo_n "checking for $ac_word... " >&6; }
23802if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23803 $as_echo_n "(cached) " >&6
23804else
23805 case $ac_pt_PKGCONFIG in
23806 [\\/]* | ?:[\\/]*)
23807 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23808 ;;
23809 *)
23810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23811as_dummy="$PATH:/usr/bin:/usr/local/bin"
23812for as_dir in $as_dummy
23813do
23814 IFS=$as_save_IFS
23815 test -z "$as_dir" && as_dir=.
23816 for ac_exec_ext in '' $ac_executable_extensions; do
23817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23818 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23820 break 2
23821 fi
23822done
23823 done
23824IFS=$as_save_IFS
23825
23826 ;;
23827esac
23828fi
23829ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23830if test -n "$ac_pt_PKGCONFIG"; then
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23832$as_echo "$ac_pt_PKGCONFIG" >&6; }
23833else
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23835$as_echo "no" >&6; }
23836fi
23837
23838 if test "x$ac_pt_PKGCONFIG" = x; then
23839 PKGCONFIG="no"
23840 else
23841 case $cross_compiling:$ac_tool_warned in
23842yes:)
23843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23845ac_tool_warned=yes ;;
23846esac
23847 PKGCONFIG=$ac_pt_PKGCONFIG
23848 fi
23849else
23850 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23851fi
23852
23853 fi
23854
23855 if test "x$PKGCONFIG" != "xno"; then
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23857$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23858 itexists=`
23859 if test -n ""; then
23860 PKG_CONFIG_LIBDIR=""
23861 export PKG_CONFIG_LIBDIR
23862 fi
23863 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23864
23865 if test -z "$itexists"; then
23866 PKGCONFIG="no"
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23868$as_echo "no" >&6; }
23869 else
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23871$as_echo "found" >&6; }
23872 fi
23873 fi
23874
23875
23876 if test "$PKGCONFIG" != "no" ; then
23877 addlib=`$PKGCONFIG --libs-only-l gnutls`
23878 addld=`$PKGCONFIG --libs-only-L gnutls`
23879 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23880 version=`$PKGCONFIG --modversion gnutls`
23881 gtlslib=`echo $addld | $SED -e 's/-L//'`
23882 else
23883 check=`libgnutls-config --version 2>/dev/null`
23884 if test -n "$check"; then
23885 addlib=`libgnutls-config --libs`
23886 addcflags=`libgnutls-config --cflags`
23887 version=`libgnutls-config --version`
23888 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23889 fi
23890 fi
23891 else
23892 cfg=$OPT_GNUTLS/bin/libgnutls-config
23893 check=`$cfg --version 2>/dev/null`
23894 if test -n "$check"; then
23895 addlib=`$cfg --libs`
23896 addcflags=`$cfg --cflags`
23897 version=`$cfg --version`
23898 gtlslib=`$cfg --prefix`/lib$libsuff
23899 else
23900 addlib=-lgnutls
23901 addld=-L$OPT_GNUTLS/lib$libsuff
23902 addcflags=-I$OPT_GNUTLS/include
23903 version="" # we just don't know
23904 gtlslib=$OPT_GNUTLS/lib$libsuff
23905 fi
23906 fi
23907
23908 if test -z "$version"; then
23909 version="unknown"
23910 fi
23911
23912 if test -n "$addlib"; then
23913
23914 CLEANLIBS="$LIBS"
23915 CLEANCPPFLAGS="$CPPFLAGS"
23916 CLEANLDFLAGS="$LDFLAGS"
23917
23918 LIBS="$addlib $LIBS"
23919 LDFLAGS="$LDFLAGS $addld"
23920 if test "$addcflags" != "-I/usr/include"; then
23921 CPPFLAGS="$CPPFLAGS $addcflags"
23922 fi
23923
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23925$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23926if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23927 $as_echo_n "(cached) " >&6
23928else
23929 ac_check_lib_save_LIBS=$LIBS
23930LIBS="-lgnutls $LIBS"
23931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932/* end confdefs.h. */
23933
23934
23935#ifdef __cplusplus
23936extern "C"
23937#endif
23938char gnutls_check_version ();
23939int main (void)
23940{
23941return gnutls_check_version ();
23942 ;
23943 return 0;
23944}
23945_ACEOF
23946if ac_fn_c_try_link "$LINENO"; then :
23947 ac_cv_lib_gnutls_gnutls_check_version=yes
23948else
23949 ac_cv_lib_gnutls_gnutls_check_version=no
23950fi
23951rm -f core conftest.err conftest.$ac_objext \
23952 conftest$ac_exeext conftest.$ac_ext
23953LIBS=$ac_check_lib_save_LIBS
23954fi
23955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23956$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23957if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23958
23959
23960$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23961
23962 USE_GNUTLS=1
23963
23964 GNUTLS_ENABLED=1
23965 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023966 ssl_msg="GnuTLS"
23967 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023968
23969else
23970
23971 LIBS="$CLEANLIBS"
23972 CPPFLAGS="$CLEANCPPFLAGS"
23973
23974fi
23975
23976
23977 if test "x$USE_GNUTLS" = "xyes"; then
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23979$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023980 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023981 if test -n "$gtlslib"; then
23982 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023983 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
23984 export CURL_LIBRARY_PATH
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
23986$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070023987 fi
23988 fi
23989 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23990do :
23991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23993if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23994 cat >>confdefs.h <<_ACEOF
23995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23996_ACEOF
23997
23998fi
23999done
24000
24001 fi
24002
24003 fi
24004
24005 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024006 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024007fi
24008
24009
24010if test "$GNUTLS_ENABLED" = "1"; then
24011 USE_GNUTLS_NETTLE=
24012 # First check if we can detect either crypto library via transitive linking
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24014$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24015if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24016 $as_echo_n "(cached) " >&6
24017else
24018 ac_check_lib_save_LIBS=$LIBS
24019LIBS="-lgnutls $LIBS"
24020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021/* end confdefs.h. */
24022
24023
24024#ifdef __cplusplus
24025extern "C"
24026#endif
24027char nettle_MD5Init ();
24028int main (void)
24029{
24030return nettle_MD5Init ();
24031 ;
24032 return 0;
24033}
24034_ACEOF
24035if ac_fn_c_try_link "$LINENO"; then :
24036 ac_cv_lib_gnutls_nettle_MD5Init=yes
24037else
24038 ac_cv_lib_gnutls_nettle_MD5Init=no
24039fi
24040rm -f core conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
24042LIBS=$ac_check_lib_save_LIBS
24043fi
24044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24045$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24046if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24047 USE_GNUTLS_NETTLE=1
24048fi
24049
24050 if test "$USE_GNUTLS_NETTLE" = ""; then
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24052$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24053if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24054 $as_echo_n "(cached) " >&6
24055else
24056 ac_check_lib_save_LIBS=$LIBS
24057LIBS="-lgnutls $LIBS"
24058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059/* end confdefs.h. */
24060
24061
24062#ifdef __cplusplus
24063extern "C"
24064#endif
24065char gcry_control ();
24066int main (void)
24067{
24068return gcry_control ();
24069 ;
24070 return 0;
24071}
24072_ACEOF
24073if ac_fn_c_try_link "$LINENO"; then :
24074 ac_cv_lib_gnutls_gcry_control=yes
24075else
24076 ac_cv_lib_gnutls_gcry_control=no
24077fi
24078rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24080LIBS=$ac_check_lib_save_LIBS
24081fi
24082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24083$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24084if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24085 USE_GNUTLS_NETTLE=0
24086fi
24087
24088 fi
24089 # If not, try linking directly to both of them to see if they are available
24090 if test "$USE_GNUTLS_NETTLE" = ""; then
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24092$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24093if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24094 $as_echo_n "(cached) " >&6
24095else
24096 ac_check_lib_save_LIBS=$LIBS
24097LIBS="-lnettle $LIBS"
24098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099/* end confdefs.h. */
24100
24101
24102#ifdef __cplusplus
24103extern "C"
24104#endif
24105char nettle_MD5Init ();
24106int main (void)
24107{
24108return nettle_MD5Init ();
24109 ;
24110 return 0;
24111}
24112_ACEOF
24113if ac_fn_c_try_link "$LINENO"; then :
24114 ac_cv_lib_nettle_nettle_MD5Init=yes
24115else
24116 ac_cv_lib_nettle_nettle_MD5Init=no
24117fi
24118rm -f core conftest.err conftest.$ac_objext \
24119 conftest$ac_exeext conftest.$ac_ext
24120LIBS=$ac_check_lib_save_LIBS
24121fi
24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24123$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24124if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24125 USE_GNUTLS_NETTLE=1
24126fi
24127
24128 fi
24129 if test "$USE_GNUTLS_NETTLE" = ""; then
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24131$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24132if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24133 $as_echo_n "(cached) " >&6
24134else
24135 ac_check_lib_save_LIBS=$LIBS
24136LIBS="-lgcrypt $LIBS"
24137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138/* end confdefs.h. */
24139
24140
24141#ifdef __cplusplus
24142extern "C"
24143#endif
24144char gcry_control ();
24145int main (void)
24146{
24147return gcry_control ();
24148 ;
24149 return 0;
24150}
24151_ACEOF
24152if ac_fn_c_try_link "$LINENO"; then :
24153 ac_cv_lib_gcrypt_gcry_control=yes
24154else
24155 ac_cv_lib_gcrypt_gcry_control=no
24156fi
24157rm -f core conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24159LIBS=$ac_check_lib_save_LIBS
24160fi
24161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24162$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24163if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24164 USE_GNUTLS_NETTLE=0
24165fi
24166
24167 fi
24168 if test "$USE_GNUTLS_NETTLE" = ""; then
24169 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24170 fi
24171 if test "$USE_GNUTLS_NETTLE" = "1"; then
24172
24173$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24174
24175 USE_GNUTLS_NETTLE=1
24176
24177 LIBS="-lnettle $LIBS"
24178 else
24179 LIBS="-lgcrypt $LIBS"
24180 fi
24181fi
24182
24183if test "$GNUTLS_ENABLED" = "1"; then
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24185$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24186if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24187 $as_echo_n "(cached) " >&6
24188else
24189 ac_check_lib_save_LIBS=$LIBS
24190LIBS="-lgnutls $LIBS"
24191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192/* end confdefs.h. */
24193
24194
24195#ifdef __cplusplus
24196extern "C"
24197#endif
24198char gnutls_srp_verifier ();
24199int main (void)
24200{
24201return gnutls_srp_verifier ();
24202 ;
24203 return 0;
24204}
24205_ACEOF
24206if ac_fn_c_try_link "$LINENO"; then :
24207 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24208else
24209 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24210fi
24211rm -f core conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
24213LIBS=$ac_check_lib_save_LIBS
24214fi
24215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24216$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24217if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24218
24219
24220$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24221
24222 HAVE_GNUTLS_SRP=1
24223
24224
24225fi
24226
24227fi
24228
24229
24230OPT_POLARSSL=no
24231
24232_cppflags=$CPPFLAGS
24233_ldflags=$LDFLAGS
24234
24235# Check whether --with-polarssl was given.
24236if test "${with_polarssl+set}" = set; then :
24237 withval=$with_polarssl; OPT_POLARSSL=$withval
24238fi
24239
24240
Alex Deymo486467e2017-12-19 19:04:07 +010024241if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24242 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024243
24244 if test X"$OPT_POLARSSL" != Xno; then
24245
24246 if test "$OPT_POLARSSL" = "yes"; then
24247 OPT_POLARSSL=""
24248 fi
24249
24250 if test -z "$OPT_POLARSSL" ; then
24251
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24253$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24254if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24255 $as_echo_n "(cached) " >&6
24256else
24257 ac_check_lib_save_LIBS=$LIBS
24258LIBS="-lpolarssl $LIBS"
24259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24260/* end confdefs.h. */
24261
24262
24263#ifdef __cplusplus
24264extern "C"
24265#endif
24266char havege_init ();
24267int main (void)
24268{
24269return havege_init ();
24270 ;
24271 return 0;
24272}
24273_ACEOF
24274if ac_fn_c_try_link "$LINENO"; then :
24275 ac_cv_lib_polarssl_havege_init=yes
24276else
24277 ac_cv_lib_polarssl_havege_init=no
24278fi
24279rm -f core conftest.err conftest.$ac_objext \
24280 conftest$ac_exeext conftest.$ac_ext
24281LIBS=$ac_check_lib_save_LIBS
24282fi
24283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24284$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24285if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24286
24287
24288$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24289
24290 USE_POLARSSL=1
24291
24292 POLARSSL_ENABLED=1
24293 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024294 ssl_msg="PolarSSL"
24295 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024296
24297fi
24298
24299 fi
24300
24301 addld=""
24302 addlib=""
24303 addcflags=""
24304 polarssllib=""
24305
24306 if test "x$USE_POLARSSL" != "xyes"; then
24307 addld=-L$OPT_POLARSSL/lib$libsuff
24308 addcflags=-I$OPT_POLARSSL/include
24309 polarssllib=$OPT_POLARSSL/lib$libsuff
24310
24311 LDFLAGS="$LDFLAGS $addld"
24312 if test "$addcflags" != "-I/usr/include"; then
24313 CPPFLAGS="$CPPFLAGS $addcflags"
24314 fi
24315
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24317$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24318if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24319 $as_echo_n "(cached) " >&6
24320else
24321 ac_check_lib_save_LIBS=$LIBS
24322LIBS="-lpolarssl $LIBS"
24323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24324/* end confdefs.h. */
24325
24326
24327#ifdef __cplusplus
24328extern "C"
24329#endif
24330char ssl_init ();
24331int main (void)
24332{
24333return ssl_init ();
24334 ;
24335 return 0;
24336}
24337_ACEOF
24338if ac_fn_c_try_link "$LINENO"; then :
24339 ac_cv_lib_polarssl_ssl_init=yes
24340else
24341 ac_cv_lib_polarssl_ssl_init=no
24342fi
24343rm -f core conftest.err conftest.$ac_objext \
24344 conftest$ac_exeext conftest.$ac_ext
24345LIBS=$ac_check_lib_save_LIBS
24346fi
24347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24348$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24349if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24350
24351
24352$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24353
24354 USE_POLARSSL=1
24355
24356 POLARSSL_ENABLED=1
24357 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024358 ssl_msg="PolarSSL"
24359 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024360
24361else
24362
24363 CPPFLAGS=$_cppflags
24364 LDFLAGS=$_ldflags
24365
24366fi
24367
24368 fi
24369
24370 if test "x$USE_POLARSSL" = "xyes"; then
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24372$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024373 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024374 LIBS="-lpolarssl $LIBS"
24375
24376 if test -n "$polarssllib"; then
24377 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024378 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24379 export CURL_LIBRARY_PATH
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24381$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024382 fi
24383 fi
24384 fi
24385
24386 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024387 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024388fi
24389
24390
24391OPT_MBEDTLS=no
24392
24393_cppflags=$CPPFLAGS
24394_ldflags=$LDFLAGS
24395
24396# Check whether --with-mbedtls was given.
24397if test "${with_mbedtls+set}" = set; then :
24398 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24399fi
24400
24401
Alex Deymo486467e2017-12-19 19:04:07 +010024402if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24403 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024404
24405 if test X"$OPT_MBEDTLS" != Xno; then
24406
24407 if test "$OPT_MBEDTLS" = "yes"; then
24408 OPT_MBEDTLS=""
24409 fi
24410
24411 if test -z "$OPT_MBEDTLS" ; then
24412
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24414$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24415if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24416 $as_echo_n "(cached) " >&6
24417else
24418 ac_check_lib_save_LIBS=$LIBS
24419LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421/* end confdefs.h. */
24422
24423
24424#ifdef __cplusplus
24425extern "C"
24426#endif
24427char mbedtls_havege_init ();
24428int main (void)
24429{
24430return mbedtls_havege_init ();
24431 ;
24432 return 0;
24433}
24434_ACEOF
24435if ac_fn_c_try_link "$LINENO"; then :
24436 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24437else
24438 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24439fi
24440rm -f core conftest.err conftest.$ac_objext \
24441 conftest$ac_exeext conftest.$ac_ext
24442LIBS=$ac_check_lib_save_LIBS
24443fi
24444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24445$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24446if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24447
24448
24449$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24450
24451 USE_MBEDTLS=1
24452
24453 MBEDTLS_ENABLED=1
24454 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024455 ssl_msg="mbedTLS"
24456 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024457
24458fi
24459
24460 fi
24461
24462 addld=""
24463 addlib=""
24464 addcflags=""
24465 mbedtlslib=""
24466
24467 if test "x$USE_MBEDTLS" != "xyes"; then
24468 addld=-L$OPT_MBEDTLS/lib$libsuff
24469 addcflags=-I$OPT_MBEDTLS/include
24470 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24471
24472 LDFLAGS="$LDFLAGS $addld"
24473 if test "$addcflags" != "-I/usr/include"; then
24474 CPPFLAGS="$CPPFLAGS $addcflags"
24475 fi
24476
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24478$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24479if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24480 $as_echo_n "(cached) " >&6
24481else
24482 ac_check_lib_save_LIBS=$LIBS
24483LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24485/* end confdefs.h. */
24486
24487
24488#ifdef __cplusplus
24489extern "C"
24490#endif
24491char mbedtls_ssl_init ();
24492int main (void)
24493{
24494return mbedtls_ssl_init ();
24495 ;
24496 return 0;
24497}
24498_ACEOF
24499if ac_fn_c_try_link "$LINENO"; then :
24500 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24501else
24502 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24503fi
24504rm -f core conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
24506LIBS=$ac_check_lib_save_LIBS
24507fi
24508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24509$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24510if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24511
24512
24513$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24514
24515 USE_MBEDTLS=1
24516
24517 MBEDTLS_ENABLED=1
24518 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024519 ssl_msg="mbedTLS"
24520 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024521
24522else
24523
24524 CPPFLAGS=$_cppflags
24525 LDFLAGS=$_ldflags
24526
24527fi
24528
24529 fi
24530
24531 if test "x$USE_MBEDTLS" = "xyes"; then
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24533$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024534 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024535
24536 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24537
24538 if test -n "$mbedtlslib"; then
24539 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024540 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24541 export CURL_LIBRARY_PATH
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24543$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024544 fi
24545 fi
24546 fi
24547
24548 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024549 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024550fi
24551
24552
24553OPT_CYASSL=no
24554
24555_cppflags=$CPPFLAGS
24556_ldflags=$LDFLAGS
24557
24558# Check whether --with-cyassl was given.
24559if test "${with_cyassl+set}" = set; then :
24560 withval=$with_cyassl; OPT_CYASSL=$withval
24561fi
24562
24563
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024564
24565# Check whether --with-wolfssl was given.
24566if test "${with_wolfssl+set}" = set; then :
24567 withval=$with_wolfssl; OPT_CYASSL=$withval
24568fi
24569
24570
Alex Deymo486467e2017-12-19 19:04:07 +010024571if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24572 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024573
24574 if test X"$OPT_CYASSL" != Xno; then
24575
24576 if test "$OPT_CYASSL" = "yes"; then
24577 OPT_CYASSL=""
24578 fi
24579
24580
24581 cyassllibname=cyassl
24582
24583 if test -z "$OPT_CYASSL" ; then
24584
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24586$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24587if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24588 $as_echo_n "(cached) " >&6
24589else
24590 ac_check_lib_save_LIBS=$LIBS
24591LIBS="-lcyassl $LIBS"
24592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593/* end confdefs.h. */
24594
24595
24596#ifdef __cplusplus
24597extern "C"
24598#endif
24599char CyaSSL_Init ();
24600int main (void)
24601{
24602return CyaSSL_Init ();
24603 ;
24604 return 0;
24605}
24606_ACEOF
24607if ac_fn_c_try_link "$LINENO"; then :
24608 ac_cv_lib_cyassl_CyaSSL_Init=yes
24609else
24610 ac_cv_lib_cyassl_CyaSSL_Init=no
24611fi
24612rm -f core conftest.err conftest.$ac_objext \
24613 conftest$ac_exeext conftest.$ac_ext
24614LIBS=$ac_check_lib_save_LIBS
24615fi
24616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24617$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24618if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24619
24620
24621$as_echo "#define USE_CYASSL 1" >>confdefs.h
24622
24623 USE_CYASSL=1
24624
24625 CYASSL_ENABLED=1
24626 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024627 ssl_msg="CyaSSL"
24628 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024629
24630fi
24631
24632 fi
24633
24634 addld=""
24635 addlib=""
24636 addcflags=""
24637 cyassllib=""
24638
24639 if test "x$USE_CYASSL" != "xyes"; then
24640 addld=-L$OPT_CYASSL/lib$libsuff
24641 addcflags=-I$OPT_CYASSL/include
24642 cyassllib=$OPT_CYASSL/lib$libsuff
24643
24644 LDFLAGS="$LDFLAGS $addld"
24645 if test "$addcflags" != "-I/usr/include"; then
24646 CPPFLAGS="$CPPFLAGS $addcflags"
24647 fi
24648
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24650$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24651if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24652 $as_echo_n "(cached) " >&6
24653else
24654 ac_check_lib_save_LIBS=$LIBS
24655LIBS="-lcyassl $LIBS"
24656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24657/* end confdefs.h. */
24658
24659
24660#ifdef __cplusplus
24661extern "C"
24662#endif
24663char CyaSSL_Init ();
24664int main (void)
24665{
24666return CyaSSL_Init ();
24667 ;
24668 return 0;
24669}
24670_ACEOF
24671if ac_fn_c_try_link "$LINENO"; then :
24672 ac_cv_lib_cyassl_CyaSSL_Init=yes
24673else
24674 ac_cv_lib_cyassl_CyaSSL_Init=no
24675fi
24676rm -f core conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
24678LIBS=$ac_check_lib_save_LIBS
24679fi
24680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24681$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24682if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24683
24684
24685$as_echo "#define USE_CYASSL 1" >>confdefs.h
24686
24687 USE_CYASSL=1
24688
24689 CYASSL_ENABLED=1
24690 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024691 ssl_msg="CyaSSL"
24692 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024693
24694else
24695
24696 CPPFLAGS=$_cppflags
24697 LDFLAGS=$_ldflags
24698 cyassllib=""
24699
24700fi
24701
24702 fi
24703
24704 addld=""
24705 addlib=""
24706 addcflags=""
24707
24708 if test "x$USE_CYASSL" != "xyes"; then
24709 addld=-L$OPT_CYASSL/lib$libsuff
24710 addcflags=-I$OPT_CYASSL/include
24711 cyassllib=$OPT_CYASSL/lib$libsuff
24712
24713 LDFLAGS="$LDFLAGS $addld"
24714 if test "$addcflags" != "-I/usr/include"; then
24715 CPPFLAGS="$CPPFLAGS $addcflags"
24716 fi
24717
24718 cyassllibname=wolfssl
24719 my_ac_save_LIBS="$LIBS"
24720 LIBS="-l$cyassllibname -lm $LIBS"
24721
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24723$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24725/* end confdefs.h. */
24726
24727
24728/* These aren't needed for detection and confuse WolfSSL.
24729 They are set up properly later if it is detected. */
24730#undef SIZEOF_LONG
24731#undef SIZEOF_LONG_LONG
24732#include <cyassl/ssl.h>
24733
24734int main (void)
24735{
24736
24737 return CyaSSL_Init();
24738
24739 ;
24740 return 0;
24741}
24742
24743_ACEOF
24744if ac_fn_c_try_link "$LINENO"; then :
24745
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24747$as_echo "yes" >&6; }
24748
24749$as_echo "#define USE_CYASSL 1" >>confdefs.h
24750
24751 USE_CYASSL=1
24752
24753 CYASSL_ENABLED=1
24754 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024755 ssl_msg="WolfSSL"
24756 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024757
24758else
24759
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24761$as_echo "no" >&6; }
24762 CPPFLAGS=$_cppflags
24763 LDFLAGS=$_ldflags
24764 cyassllib=""
24765
24766fi
24767rm -f core conftest.err conftest.$ac_objext \
24768 conftest$ac_exeext conftest.$ac_ext
24769 LIBS="$my_ac_save_LIBS"
24770 fi
24771
24772 if test "x$USE_CYASSL" = "xyes"; then
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24774$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024775 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024776
Elliott Hughes72d948d2018-08-03 14:37:21 -070024777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024778$as_echo_n "checking size of long long... " >&6; }
24779if ${ac_cv_sizeof_long_long+:} false; then :
24780 $as_echo_n "(cached) " >&6
24781else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024782 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24784/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024785
Elliott Hughes72d948d2018-08-03 14:37:21 -070024786#include <sys/types.h>
24787
24788
24789int main (void)
24790{
24791switch (0) case 0: case (sizeof (long long) == $ac_size):;
24792 ;
24793 return 0;
24794}
24795_ACEOF
24796if ac_fn_c_try_compile "$LINENO"; then :
24797 ac_cv_sizeof_long_long=$ac_size
24798fi
24799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24801done
24802
Elliott Hughes82be86d2017-09-20 17:00:17 -070024803fi
24804
Elliott Hughes72d948d2018-08-03 14:37:21 -070024805if test x$ac_cv_sizeof_long_long = x ; then
24806 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024807fi
24808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24809$as_echo "$ac_cv_sizeof_long_long" >&6; }
24810
Elliott Hughes82be86d2017-09-20 17:00:17 -070024811cat >>confdefs.h <<_ACEOF
24812#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24813_ACEOF
24814
24815
24816
24817 for ac_header in cyassl/options.h
24818do :
24819 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24820if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24821 cat >>confdefs.h <<_ACEOF
24822#define HAVE_CYASSL_OPTIONS_H 1
24823_ACEOF
24824
24825fi
24826
24827done
24828
24829
24830 for ac_header in cyassl/error-ssl.h
24831do :
24832 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24833if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24834 cat >>confdefs.h <<_ACEOF
24835#define HAVE_CYASSL_ERROR_SSL_H 1
24836_ACEOF
24837
24838fi
24839
24840done
24841
24842
24843 LIBS="-l$cyassllibname -lm $LIBS"
24844
24845 if test "x$cyassllibname" = "xwolfssl"; then
24846 for ac_func in wolfSSLv3_client_method \
24847 wolfSSL_CTX_UseSupportedCurve \
24848 wolfSSL_get_peer_certificate \
24849 wolfSSL_UseALPN
24850do :
24851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24854 cat >>confdefs.h <<_ACEOF
24855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24856_ACEOF
24857
24858fi
24859done
24860
24861 else
24862 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24863 CyaSSL_get_peer_certificate
24864do :
24865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24866ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24867if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24868 cat >>confdefs.h <<_ACEOF
24869#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24870_ACEOF
24871
24872fi
24873done
24874
24875 fi
24876
24877 if test -n "$cyassllib"; then
24878 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024879 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24880 export CURL_LIBRARY_PATH
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24882$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024883 fi
24884 fi
24885
24886 fi
24887
24888 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024889 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024890fi
24891
24892
24893OPT_NSS=no
24894
24895
24896# Check whether --with-nss was given.
24897if test "${with_nss+set}" = set; then :
24898 withval=$with_nss; OPT_NSS=$withval
24899fi
24900
24901
Alex Deymo486467e2017-12-19 19:04:07 +010024902if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24903 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024904
24905 if test X"$OPT_NSS" != Xno; then
24906
24907 addld=""
24908 addlib=""
24909 addcflags=""
24910 nssprefix=""
24911 version=""
24912
24913 if test "x$OPT_NSS" = "xyes"; then
24914
24915
24916 if test -n "$PKG_CONFIG"; then
24917 PKGCONFIG="$PKG_CONFIG"
24918 else
24919 if test -n "$ac_tool_prefix"; then
24920 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24921set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24923$as_echo_n "checking for $ac_word... " >&6; }
24924if ${ac_cv_path_PKGCONFIG+:} false; then :
24925 $as_echo_n "(cached) " >&6
24926else
24927 case $PKGCONFIG in
24928 [\\/]* | ?:[\\/]*)
24929 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24930 ;;
24931 *)
24932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24933as_dummy="$PATH:/usr/bin:/usr/local/bin"
24934for as_dir in $as_dummy
24935do
24936 IFS=$as_save_IFS
24937 test -z "$as_dir" && as_dir=.
24938 for ac_exec_ext in '' $ac_executable_extensions; do
24939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24940 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24942 break 2
24943 fi
24944done
24945 done
24946IFS=$as_save_IFS
24947
24948 ;;
24949esac
24950fi
24951PKGCONFIG=$ac_cv_path_PKGCONFIG
24952if test -n "$PKGCONFIG"; then
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24954$as_echo "$PKGCONFIG" >&6; }
24955else
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24957$as_echo "no" >&6; }
24958fi
24959
24960
24961fi
24962if test -z "$ac_cv_path_PKGCONFIG"; then
24963 ac_pt_PKGCONFIG=$PKGCONFIG
24964 # Extract the first word of "pkg-config", so it can be a program name with args.
24965set dummy pkg-config; ac_word=$2
24966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24967$as_echo_n "checking for $ac_word... " >&6; }
24968if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24969 $as_echo_n "(cached) " >&6
24970else
24971 case $ac_pt_PKGCONFIG in
24972 [\\/]* | ?:[\\/]*)
24973 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24974 ;;
24975 *)
24976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24977as_dummy="$PATH:/usr/bin:/usr/local/bin"
24978for as_dir in $as_dummy
24979do
24980 IFS=$as_save_IFS
24981 test -z "$as_dir" && as_dir=.
24982 for ac_exec_ext in '' $ac_executable_extensions; do
24983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24984 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24986 break 2
24987 fi
24988done
24989 done
24990IFS=$as_save_IFS
24991
24992 ;;
24993esac
24994fi
24995ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24996if test -n "$ac_pt_PKGCONFIG"; then
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24998$as_echo "$ac_pt_PKGCONFIG" >&6; }
24999else
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001$as_echo "no" >&6; }
25002fi
25003
25004 if test "x$ac_pt_PKGCONFIG" = x; then
25005 PKGCONFIG="no"
25006 else
25007 case $cross_compiling:$ac_tool_warned in
25008yes:)
25009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25011ac_tool_warned=yes ;;
25012esac
25013 PKGCONFIG=$ac_pt_PKGCONFIG
25014 fi
25015else
25016 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25017fi
25018
25019 fi
25020
25021 if test "x$PKGCONFIG" != "xno"; then
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25023$as_echo_n "checking for nss options with pkg-config... " >&6; }
25024 itexists=`
25025 if test -n ""; then
25026 PKG_CONFIG_LIBDIR=""
25027 export PKG_CONFIG_LIBDIR
25028 fi
25029 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25030
25031 if test -z "$itexists"; then
25032 PKGCONFIG="no"
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25034$as_echo "no" >&6; }
25035 else
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25037$as_echo "found" >&6; }
25038 fi
25039 fi
25040
25041
25042 if test "$PKGCONFIG" != "no" ; then
25043 addlib=`$PKGCONFIG --libs nss`
25044 addcflags=`$PKGCONFIG --cflags nss`
25045 version=`$PKGCONFIG --modversion nss`
25046 nssprefix=`$PKGCONFIG --variable=prefix nss`
25047 else
25048
25049 check=`nss-config --version 2>/dev/null`
25050 if test -n "$check"; then
25051 addlib=`nss-config --libs`
25052 addcflags=`nss-config --cflags`
25053 version=`nss-config --version`
25054 nssprefix=`nss-config --prefix`
25055 else
25056 addlib="-lnss3"
25057 addcflags=""
25058 version="unknown"
25059 fi
25060 fi
25061 else
25062 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25063 if test -f "$NSS_PCDIR/nss.pc"; then
25064
25065 if test -n "$PKG_CONFIG"; then
25066 PKGCONFIG="$PKG_CONFIG"
25067 else
25068 if test -n "$ac_tool_prefix"; then
25069 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25070set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25072$as_echo_n "checking for $ac_word... " >&6; }
25073if ${ac_cv_path_PKGCONFIG+:} false; then :
25074 $as_echo_n "(cached) " >&6
25075else
25076 case $PKGCONFIG in
25077 [\\/]* | ?:[\\/]*)
25078 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25079 ;;
25080 *)
25081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25082as_dummy="$PATH:/usr/bin:/usr/local/bin"
25083for as_dir in $as_dummy
25084do
25085 IFS=$as_save_IFS
25086 test -z "$as_dir" && as_dir=.
25087 for ac_exec_ext in '' $ac_executable_extensions; do
25088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25089 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25091 break 2
25092 fi
25093done
25094 done
25095IFS=$as_save_IFS
25096
25097 ;;
25098esac
25099fi
25100PKGCONFIG=$ac_cv_path_PKGCONFIG
25101if test -n "$PKGCONFIG"; then
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25103$as_echo "$PKGCONFIG" >&6; }
25104else
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106$as_echo "no" >&6; }
25107fi
25108
25109
25110fi
25111if test -z "$ac_cv_path_PKGCONFIG"; then
25112 ac_pt_PKGCONFIG=$PKGCONFIG
25113 # Extract the first word of "pkg-config", so it can be a program name with args.
25114set dummy pkg-config; ac_word=$2
25115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25116$as_echo_n "checking for $ac_word... " >&6; }
25117if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25118 $as_echo_n "(cached) " >&6
25119else
25120 case $ac_pt_PKGCONFIG in
25121 [\\/]* | ?:[\\/]*)
25122 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25123 ;;
25124 *)
25125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25126as_dummy="$PATH:/usr/bin:/usr/local/bin"
25127for as_dir in $as_dummy
25128do
25129 IFS=$as_save_IFS
25130 test -z "$as_dir" && as_dir=.
25131 for ac_exec_ext in '' $ac_executable_extensions; do
25132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25133 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25135 break 2
25136 fi
25137done
25138 done
25139IFS=$as_save_IFS
25140
25141 ;;
25142esac
25143fi
25144ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25145if test -n "$ac_pt_PKGCONFIG"; then
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25147$as_echo "$ac_pt_PKGCONFIG" >&6; }
25148else
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150$as_echo "no" >&6; }
25151fi
25152
25153 if test "x$ac_pt_PKGCONFIG" = x; then
25154 PKGCONFIG="no"
25155 else
25156 case $cross_compiling:$ac_tool_warned in
25157yes:)
25158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25160ac_tool_warned=yes ;;
25161esac
25162 PKGCONFIG=$ac_pt_PKGCONFIG
25163 fi
25164else
25165 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25166fi
25167
25168 fi
25169
25170 if test "x$PKGCONFIG" != "xno"; then
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25172$as_echo_n "checking for nss options with pkg-config... " >&6; }
25173 itexists=`
25174 if test -n "$NSS_PCDIR"; then
25175 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25176 export PKG_CONFIG_LIBDIR
25177 fi
25178 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25179
25180 if test -z "$itexists"; then
25181 PKGCONFIG="no"
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25183$as_echo "no" >&6; }
25184 else
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25186$as_echo "found" >&6; }
25187 fi
25188 fi
25189
25190 if test "$PKGCONFIG" != "no" ; then
25191 addld=`
25192 if test -n "$NSS_PCDIR"; then
25193 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25194 export PKG_CONFIG_LIBDIR
25195 fi
25196 $PKGCONFIG --libs-only-L nss`
25197 addlib=`
25198 if test -n "$NSS_PCDIR"; then
25199 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25200 export PKG_CONFIG_LIBDIR
25201 fi
25202 $PKGCONFIG --libs-only-l nss`
25203 addcflags=`
25204 if test -n "$NSS_PCDIR"; then
25205 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25206 export PKG_CONFIG_LIBDIR
25207 fi
25208 $PKGCONFIG --cflags nss`
25209 version=`
25210 if test -n "$NSS_PCDIR"; then
25211 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25212 export PKG_CONFIG_LIBDIR
25213 fi
25214 $PKGCONFIG --modversion nss`
25215 nssprefix=`
25216 if test -n "$NSS_PCDIR"; then
25217 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25218 export PKG_CONFIG_LIBDIR
25219 fi
25220 $PKGCONFIG --variable=prefix nss`
25221 fi
25222 fi
25223 fi
25224
25225 if test -z "$addlib"; then
25226 # Without pkg-config, we'll kludge in some defaults
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25228$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25229 addld="-L$OPT_NSS/lib"
25230 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25231 addcflags="-I$OPT_NSS/include"
25232 version="unknown"
25233 nssprefix=$OPT_NSS
25234 fi
25235
25236 CLEANLDFLAGS="$LDFLAGS"
25237 CLEANLIBS="$LIBS"
25238 CLEANCPPFLAGS="$CPPFLAGS"
25239
25240 LDFLAGS="$addld $LDFLAGS"
25241 LIBS="$addlib $LIBS"
25242 if test "$addcflags" != "-I/usr/include"; then
25243 CPPFLAGS="$CPPFLAGS $addcflags"
25244 fi
25245
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25247$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25248if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25249 $as_echo_n "(cached) " >&6
25250else
25251 ac_check_lib_save_LIBS=$LIBS
25252LIBS="-lnss3 $LIBS"
25253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254/* end confdefs.h. */
25255
25256
25257#ifdef __cplusplus
25258extern "C"
25259#endif
25260char SSL_VersionRangeSet ();
25261int main (void)
25262{
25263return SSL_VersionRangeSet ();
25264 ;
25265 return 0;
25266}
25267_ACEOF
25268if ac_fn_c_try_link "$LINENO"; then :
25269 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25270else
25271 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25272fi
25273rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
25275LIBS=$ac_check_lib_save_LIBS
25276fi
25277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25278$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25279if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25280
25281
25282$as_echo "#define USE_NSS 1" >>confdefs.h
25283
25284 USE_NSS=1
25285
25286 USE_NSS="yes"
25287 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025288 ssl_msg="NSS"
25289 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025290
25291else
25292
25293 LDFLAGS="$CLEANLDFLAGS"
25294 LIBS="$CLEANLIBS"
25295 CPPFLAGS="$CLEANCPPFLAGS"
25296
25297fi
25298
25299
25300 if test "x$USE_NSS" = "xyes"; then
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25302$as_echo "$as_me: detected NSS version $version" >&6;}
25303
Elliott Hughescac39802018-04-27 16:19:43 -070025304 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25305if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25306
25307
25308$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25309
25310
25311fi
25312
25313
Elliott Hughes82be86d2017-09-20 17:00:17 -070025314 NSS_LIBS=$addlib
25315
25316
25317 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025318 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25319 export CURL_LIBRARY_PATH
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25321$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025322 fi
25323
25324 fi
25325 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025326 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025327fi
Alex Deymo486467e2017-12-19 19:04:07 +010025328
Elliott Hughes82be86d2017-09-20 17:00:17 -070025329OPT_AXTLS=off
25330
25331
25332# Check whether --with-axtls was given.
25333if test "${with_axtls+set}" = set; then :
25334 withval=$with_axtls; OPT_AXTLS=$withval
25335fi
25336
25337
Alex Deymo486467e2017-12-19 19:04:07 +010025338if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25339 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025340 if test X"$OPT_AXTLS" != Xno; then
25341 CLEANLDFLAGS="$LDFLAGS"
25342 CLEANCPPFLAGS="$CPPFLAGS"
25343 CLEANLIBS="$LIBS"
25344
25345 case "$OPT_AXTLS" in
25346 yes)
25347 PREFIX_AXTLS=/usr/local
25348 LIB_AXTLS="$PREFIX_AXTLS/lib"
25349 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25350 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25351 ;;
25352 off)
25353 PREFIX_AXTLS=
25354 ;;
25355 *)
25356 PREFIX_AXTLS=$OPT_AXTLS
25357 LIB_AXTLS="$PREFIX_AXTLS/lib"
25358 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25359 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25360 ;;
25361 esac
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25364$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25365if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25366 $as_echo_n "(cached) " >&6
25367else
25368 ac_check_lib_save_LIBS=$LIBS
25369LIBS="-laxtls $LIBS"
25370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371/* end confdefs.h. */
25372
25373
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377char ssl_version ();
25378int main (void)
25379{
25380return ssl_version ();
25381 ;
25382 return 0;
25383}
25384_ACEOF
25385if ac_fn_c_try_link "$LINENO"; then :
25386 ac_cv_lib_axtls_ssl_version=yes
25387else
25388 ac_cv_lib_axtls_ssl_version=no
25389fi
25390rm -f core conftest.err conftest.$ac_objext \
25391 conftest$ac_exeext conftest.$ac_ext
25392LIBS=$ac_check_lib_save_LIBS
25393fi
25394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25395$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25396if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25397
25398 LIBS="-laxtls $LIBS"
25399
25400$as_echo "#define USE_AXTLS 1" >>confdefs.h
25401
25402 USE_AXTLS=1
25403
25404 AXTLS_ENABLED=1
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025405 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070025406 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025407 ssl_msg="axTLS"
25408 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025409
25410 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025411 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25412 export CURL_LIBRARY_PATH
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25414$as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025415 fi
25416
25417else
25418
25419 LDFLAGS="$CLEANLDFLAGS"
25420 CPPFLAGS="$CLEANCPPFLAGS"
25421 LIBS="$CLEANLIBS"
25422
25423fi
25424
25425 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025426 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025427fi
25428
Alex Deymo486467e2017-12-19 19:04:07 +010025429case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25430x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25432$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25433 { $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
25434$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 +010025435 ;;
25436x1)
25437 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025438
25439 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025440 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25441$as_echo "$as_me: built with one SSL backend" >&6;}
25442 ;;
25443*)
25444 # more than one SSL backend is enabled
25445
25446 SSL_ENABLED="1"
25447
25448 CURL_WITH_MULTI_SSL="1"
25449
25450$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25451
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25453$as_echo "$as_me: built with multiple SSL backends" >&6;}
25454 ;;
25455esac
25456
25457if test -n "$ssl_backends"; then
25458 curl_ssl_msg="enabled ($ssl_backends)"
25459fi
25460
25461if test no = "$VALID_DEFAULT_SSL_BACKEND"
25462then
25463 if test -n "$SSL_ENABLED"
25464 then
25465 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25466 else
25467 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25468 fi
25469elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25470then
25471
25472cat >>confdefs.h <<_ACEOF
25473#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25474_ACEOF
25475
Elliott Hughes82be86d2017-09-20 17:00:17 -070025476fi
25477
25478
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025479if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025480
25481
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25483$as_echo_n "checking default CA cert bundle/path... " >&6; }
25484
25485
25486# Check whether --with-ca-bundle was given.
25487if test "${with_ca_bundle+set}" = set; then :
25488 withval=$with_ca_bundle;
25489 want_ca="$withval"
25490 if test "x$want_ca" = "xyes"; then
25491 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25492 fi
25493
25494else
25495 want_ca="unset"
25496fi
25497
25498
25499# Check whether --with-ca-path was given.
25500if test "${with_ca_path+set}" = set; then :
25501 withval=$with_ca_path;
25502 want_capath="$withval"
25503 if test "x$want_capath" = "xyes"; then
25504 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25505 fi
25506
25507else
25508 want_capath="unset"
25509fi
25510
25511
25512 ca_warning=" (warning: certs not found)"
25513 capath_warning=" (warning: certs not found)"
25514 check_capath=""
25515
25516 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25517 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25518 ca="$want_ca"
25519 capath="$want_capath"
25520 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25521 ca="$want_ca"
25522 capath="no"
25523 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25524 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25525 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25526 fi
25527 capath="$want_capath"
25528 ca="no"
25529 else
25530 ca="no"
25531 capath="no"
25532 if test "x$cross_compiling" != "xyes"; then
25533 if test "x$want_ca" = "xunset"; then
25534 if test "x$prefix" != xNONE; then
25535 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25536 else
25537 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25538 fi
25539
25540 for a in /etc/ssl/certs/ca-certificates.crt \
25541 /etc/pki/tls/certs/ca-bundle.crt \
25542 /usr/share/ssl/certs/ca-bundle.crt \
25543 /usr/local/share/certs/ca-root-nss.crt \
25544 /etc/ssl/cert.pem \
25545 "$cac"; do
25546 if test -f "$a"; then
25547 ca="$a"
25548 break
25549 fi
25550 done
25551 fi
25552 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25553 "x$OPENSSL_ENABLED" = "x1"; then
25554 check_capath="/etc/ssl/certs/"
25555 fi
25556 else
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25558$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25559 fi
25560 fi
25561
25562 if test "x$ca" = "xno" || test -f "$ca"; then
25563 ca_warning=""
25564 fi
25565
25566 if test "x$capath" != "xno"; then
25567 check_capath="$capath"
25568 fi
25569
25570 if test ! -z "$check_capath"; then
25571 for a in "$check_capath"; do
25572 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
25573 if test "x$capath" = "xno"; then
25574 capath="$a"
25575 fi
25576 capath_warning=""
25577 break
25578 fi
25579 done
25580 fi
25581
25582 if test "x$capath" = "xno"; then
25583 capath_warning=""
25584 fi
25585
25586 if test "x$ca" != "xno"; then
25587 CURL_CA_BUNDLE='"'$ca'"'
25588
25589cat >>confdefs.h <<_ACEOF
25590#define CURL_CA_BUNDLE "$ca"
25591_ACEOF
25592
25593
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25595$as_echo "$ca" >&6; }
25596 fi
25597 if test "x$capath" != "xno"; then
25598 CURL_CA_PATH="\"$capath\""
25599
25600cat >>confdefs.h <<_ACEOF
25601#define CURL_CA_PATH "$capath"
25602_ACEOF
25603
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25605$as_echo "$capath (capath)" >&6; }
25606 fi
25607 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25609$as_echo "no" >&6; }
25610 fi
25611
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25613$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25614
25615# Check whether --with-ca-fallback was given.
25616if test "${with_ca_fallback+set}" = set; then :
25617 withval=$with_ca_fallback;
25618 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25619 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25620 fi
25621
25622else
25623 with_ca_fallback="no"
25624fi
25625
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25627$as_echo "$with_ca_fallback" >&6; }
25628 if test "x$with_ca_fallback" = "xyes"; then
25629 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25630 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25631 fi
25632
25633cat >>confdefs.h <<_ACEOF
25634#define CURL_CA_FALLBACK 1
25635_ACEOF
25636
25637 fi
25638
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025639fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025640
25641
25642
25643# Check whether --with-libpsl was given.
25644if test "${with_libpsl+set}" = set; then :
25645 withval=$with_libpsl; with_libpsl=$withval
25646else
25647 with_libpsl=yes
25648fi
25649
25650if test $with_libpsl != "no"; then
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25652$as_echo_n "checking for library containing psl_builtin... " >&6; }
25653if ${ac_cv_search_psl_builtin+:} false; then :
25654 $as_echo_n "(cached) " >&6
25655else
25656 ac_func_search_save_LIBS=$LIBS
25657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25658/* end confdefs.h. */
25659
25660
25661#ifdef __cplusplus
25662extern "C"
25663#endif
25664char psl_builtin ();
25665int main (void)
25666{
25667return psl_builtin ();
25668 ;
25669 return 0;
25670}
25671_ACEOF
25672for ac_lib in '' psl; do
25673 if test -z "$ac_lib"; then
25674 ac_res="none required"
25675 else
25676 ac_res=-l$ac_lib
25677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25678 fi
25679 if ac_fn_c_try_link "$LINENO"; then :
25680 ac_cv_search_psl_builtin=$ac_res
25681fi
25682rm -f core conftest.err conftest.$ac_objext \
25683 conftest$ac_exeext
25684 if ${ac_cv_search_psl_builtin+:} false; then :
25685 break
25686fi
25687done
25688if ${ac_cv_search_psl_builtin+:} false; then :
25689
25690else
25691 ac_cv_search_psl_builtin=no
25692fi
25693rm conftest.$ac_ext
25694LIBS=$ac_func_search_save_LIBS
25695fi
25696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25697$as_echo "$ac_cv_search_psl_builtin" >&6; }
25698ac_res=$ac_cv_search_psl_builtin
25699if test "$ac_res" != no; then :
25700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25701 curl_psl_msg="yes";
25702
25703$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25704
25705
25706else
25707 curl_psl_msg="no (libpsl not found)";
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25709$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25710
25711
25712fi
25713
25714fi
25715 if test "$curl_psl_msg" = "yes"; then
25716 USE_LIBPSL_TRUE=
25717 USE_LIBPSL_FALSE='#'
25718else
25719 USE_LIBPSL_TRUE='#'
25720 USE_LIBPSL_FALSE=
25721fi
25722
25723
25724
25725OPT_LIBMETALINK=no
25726
25727
25728# Check whether --with-libmetalink was given.
25729if test "${with_libmetalink+set}" = set; then :
25730 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25731fi
25732
25733
25734if test X"$OPT_LIBMETALINK" != Xno; then
25735
25736 addld=""
25737 addlib=""
25738 addcflags=""
25739 version=""
25740 libmetalinklib=""
25741
25742 PKGTEST="no"
25743 if test "x$OPT_LIBMETALINK" = "xyes"; then
25744 PKGTEST="yes"
25745
25746 if test -n "$PKG_CONFIG"; then
25747 PKGCONFIG="$PKG_CONFIG"
25748 else
25749 if test -n "$ac_tool_prefix"; then
25750 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25751set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25753$as_echo_n "checking for $ac_word... " >&6; }
25754if ${ac_cv_path_PKGCONFIG+:} false; then :
25755 $as_echo_n "(cached) " >&6
25756else
25757 case $PKGCONFIG in
25758 [\\/]* | ?:[\\/]*)
25759 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25760 ;;
25761 *)
25762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25763as_dummy="$PATH:/usr/bin:/usr/local/bin"
25764for as_dir in $as_dummy
25765do
25766 IFS=$as_save_IFS
25767 test -z "$as_dir" && as_dir=.
25768 for ac_exec_ext in '' $ac_executable_extensions; do
25769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25770 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25772 break 2
25773 fi
25774done
25775 done
25776IFS=$as_save_IFS
25777
25778 ;;
25779esac
25780fi
25781PKGCONFIG=$ac_cv_path_PKGCONFIG
25782if test -n "$PKGCONFIG"; then
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25784$as_echo "$PKGCONFIG" >&6; }
25785else
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25787$as_echo "no" >&6; }
25788fi
25789
25790
25791fi
25792if test -z "$ac_cv_path_PKGCONFIG"; then
25793 ac_pt_PKGCONFIG=$PKGCONFIG
25794 # Extract the first word of "pkg-config", so it can be a program name with args.
25795set dummy pkg-config; ac_word=$2
25796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25797$as_echo_n "checking for $ac_word... " >&6; }
25798if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25799 $as_echo_n "(cached) " >&6
25800else
25801 case $ac_pt_PKGCONFIG in
25802 [\\/]* | ?:[\\/]*)
25803 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25804 ;;
25805 *)
25806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807as_dummy="$PATH:/usr/bin:/usr/local/bin"
25808for as_dir in $as_dummy
25809do
25810 IFS=$as_save_IFS
25811 test -z "$as_dir" && as_dir=.
25812 for ac_exec_ext in '' $ac_executable_extensions; do
25813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25814 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25816 break 2
25817 fi
25818done
25819 done
25820IFS=$as_save_IFS
25821
25822 ;;
25823esac
25824fi
25825ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25826if test -n "$ac_pt_PKGCONFIG"; then
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25828$as_echo "$ac_pt_PKGCONFIG" >&6; }
25829else
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25831$as_echo "no" >&6; }
25832fi
25833
25834 if test "x$ac_pt_PKGCONFIG" = x; then
25835 PKGCONFIG="no"
25836 else
25837 case $cross_compiling:$ac_tool_warned in
25838yes:)
25839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25841ac_tool_warned=yes ;;
25842esac
25843 PKGCONFIG=$ac_pt_PKGCONFIG
25844 fi
25845else
25846 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25847fi
25848
25849 fi
25850
25851 if test "x$PKGCONFIG" != "xno"; then
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25853$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25854 itexists=`
25855 if test -n ""; then
25856 PKG_CONFIG_LIBDIR=""
25857 export PKG_CONFIG_LIBDIR
25858 fi
25859 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25860
25861 if test -z "$itexists"; then
25862 PKGCONFIG="no"
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864$as_echo "no" >&6; }
25865 else
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25867$as_echo "found" >&6; }
25868 fi
25869 fi
25870
25871 else
25872 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25874$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25875 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25876 PKGTEST="yes"
25877 fi
25878 if test "$PKGTEST" = "yes"; then
25879
25880 if test -n "$PKG_CONFIG"; then
25881 PKGCONFIG="$PKG_CONFIG"
25882 else
25883 if test -n "$ac_tool_prefix"; then
25884 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25885set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25887$as_echo_n "checking for $ac_word... " >&6; }
25888if ${ac_cv_path_PKGCONFIG+:} false; then :
25889 $as_echo_n "(cached) " >&6
25890else
25891 case $PKGCONFIG in
25892 [\\/]* | ?:[\\/]*)
25893 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25894 ;;
25895 *)
25896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25897as_dummy="$PATH:/usr/bin:/usr/local/bin"
25898for as_dir in $as_dummy
25899do
25900 IFS=$as_save_IFS
25901 test -z "$as_dir" && as_dir=.
25902 for ac_exec_ext in '' $ac_executable_extensions; do
25903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25904 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25906 break 2
25907 fi
25908done
25909 done
25910IFS=$as_save_IFS
25911
25912 ;;
25913esac
25914fi
25915PKGCONFIG=$ac_cv_path_PKGCONFIG
25916if test -n "$PKGCONFIG"; then
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25918$as_echo "$PKGCONFIG" >&6; }
25919else
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921$as_echo "no" >&6; }
25922fi
25923
25924
25925fi
25926if test -z "$ac_cv_path_PKGCONFIG"; then
25927 ac_pt_PKGCONFIG=$PKGCONFIG
25928 # Extract the first word of "pkg-config", so it can be a program name with args.
25929set dummy pkg-config; ac_word=$2
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25931$as_echo_n "checking for $ac_word... " >&6; }
25932if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25933 $as_echo_n "(cached) " >&6
25934else
25935 case $ac_pt_PKGCONFIG in
25936 [\\/]* | ?:[\\/]*)
25937 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25938 ;;
25939 *)
25940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941as_dummy="$PATH:/usr/bin:/usr/local/bin"
25942for as_dir in $as_dummy
25943do
25944 IFS=$as_save_IFS
25945 test -z "$as_dir" && as_dir=.
25946 for ac_exec_ext in '' $ac_executable_extensions; do
25947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25948 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25950 break 2
25951 fi
25952done
25953 done
25954IFS=$as_save_IFS
25955
25956 ;;
25957esac
25958fi
25959ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25960if test -n "$ac_pt_PKGCONFIG"; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25962$as_echo "$ac_pt_PKGCONFIG" >&6; }
25963else
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965$as_echo "no" >&6; }
25966fi
25967
25968 if test "x$ac_pt_PKGCONFIG" = x; then
25969 PKGCONFIG="no"
25970 else
25971 case $cross_compiling:$ac_tool_warned in
25972yes:)
25973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25975ac_tool_warned=yes ;;
25976esac
25977 PKGCONFIG=$ac_pt_PKGCONFIG
25978 fi
25979else
25980 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25981fi
25982
25983 fi
25984
25985 if test "x$PKGCONFIG" != "xno"; then
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25987$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25988 itexists=`
25989 if test -n "$LIBMETALINK_PCDIR"; then
25990 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25991 export PKG_CONFIG_LIBDIR
25992 fi
25993 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25994
25995 if test -z "$itexists"; then
25996 PKGCONFIG="no"
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998$as_echo "no" >&6; }
25999 else
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26001$as_echo "found" >&6; }
26002 fi
26003 fi
26004
26005 fi
26006 fi
26007 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26008 addlib=`
26009 if test -n "$LIBMETALINK_PCDIR"; then
26010 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26011 export PKG_CONFIG_LIBDIR
26012 fi
26013 $PKGCONFIG --libs-only-l libmetalink`
26014 addld=`
26015 if test -n "$LIBMETALINK_PCDIR"; then
26016 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26017 export PKG_CONFIG_LIBDIR
26018 fi
26019 $PKGCONFIG --libs-only-L libmetalink`
26020 addcflags=`
26021 if test -n "$LIBMETALINK_PCDIR"; then
26022 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26023 export PKG_CONFIG_LIBDIR
26024 fi
26025 $PKGCONFIG --cflags-only-I libmetalink`
26026 version=`
26027 if test -n "$LIBMETALINK_PCDIR"; then
26028 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26029 export PKG_CONFIG_LIBDIR
26030 fi
26031 $PKGCONFIG --modversion libmetalink`
26032 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26033 fi
26034 if test -n "$addlib"; then
26035
26036 clean_CPPFLAGS="$CPPFLAGS"
26037 clean_LDFLAGS="$LDFLAGS"
26038 clean_LIBS="$LIBS"
26039 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26040 LDFLAGS="$clean_LDFLAGS $addld"
26041 LIBS="$addlib $clean_LIBS"
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26043$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26045/* end confdefs.h. */
26046
26047
26048# include <metalink/metalink.h>
26049
26050int main (void)
26051{
26052
26053 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26054 return 1;
26055
26056 ;
26057 return 0;
26058}
26059
26060_ACEOF
26061if ac_fn_c_try_link "$LINENO"; then :
26062
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26064$as_echo "yes ($version)" >&6; }
26065 want_metalink="yes"
26066
26067else
26068
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26070$as_echo "no ($version)" >&6; }
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26072$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26073 want_metalink="no"
26074
26075fi
26076rm -f core conftest.err conftest.$ac_objext \
26077 conftest$ac_exeext conftest.$ac_ext
26078 CPPFLAGS="$clean_CPPFLAGS"
26079 LDFLAGS="$clean_LDFLAGS"
26080 LIBS="$clean_LIBS"
26081 if test "$want_metalink" = "yes"; then
26082
26083$as_echo "#define USE_METALINK 1" >>confdefs.h
26084
26085 LIBMETALINK_LIBS=$addlib
26086 LIBMETALINK_LDFLAGS=$addld
26087 LIBMETALINK_CPPFLAGS=$addcflags
26088
26089
26090
26091 curl_mtlnk_msg="enabled"
26092 fi
26093
26094 fi
26095fi
26096
26097
26098OPT_LIBSSH2=off
26099
26100# Check whether --with-libssh2 was given.
26101if test "${with_libssh2+set}" = set; then :
26102 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026103else
26104 OPT_LIBSSH2=no
26105fi
26106
26107
26108
26109OPT_LIBSSH=off
26110
26111# Check whether --with-libssh was given.
26112if test "${with_libssh+set}" = set; then :
26113 withval=$with_libssh; OPT_LIBSSH=$withval
26114else
26115 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026116fi
26117
26118
26119if test X"$OPT_LIBSSH2" != Xno; then
26120 CLEANLDFLAGS="$LDFLAGS"
26121 CLEANCPPFLAGS="$CPPFLAGS"
26122 CLEANLIBS="$LIBS"
26123
26124 case "$OPT_LIBSSH2" in
26125 yes)
26126
26127 if test -n "$PKG_CONFIG"; then
26128 PKGCONFIG="$PKG_CONFIG"
26129 else
26130 if test -n "$ac_tool_prefix"; then
26131 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26132set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26134$as_echo_n "checking for $ac_word... " >&6; }
26135if ${ac_cv_path_PKGCONFIG+:} false; then :
26136 $as_echo_n "(cached) " >&6
26137else
26138 case $PKGCONFIG in
26139 [\\/]* | ?:[\\/]*)
26140 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26141 ;;
26142 *)
26143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26144as_dummy="$PATH:/usr/bin:/usr/local/bin"
26145for as_dir in $as_dummy
26146do
26147 IFS=$as_save_IFS
26148 test -z "$as_dir" && as_dir=.
26149 for ac_exec_ext in '' $ac_executable_extensions; do
26150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26151 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26153 break 2
26154 fi
26155done
26156 done
26157IFS=$as_save_IFS
26158
26159 ;;
26160esac
26161fi
26162PKGCONFIG=$ac_cv_path_PKGCONFIG
26163if test -n "$PKGCONFIG"; then
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26165$as_echo "$PKGCONFIG" >&6; }
26166else
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26168$as_echo "no" >&6; }
26169fi
26170
26171
26172fi
26173if test -z "$ac_cv_path_PKGCONFIG"; then
26174 ac_pt_PKGCONFIG=$PKGCONFIG
26175 # Extract the first word of "pkg-config", so it can be a program name with args.
26176set dummy pkg-config; ac_word=$2
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26178$as_echo_n "checking for $ac_word... " >&6; }
26179if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26180 $as_echo_n "(cached) " >&6
26181else
26182 case $ac_pt_PKGCONFIG in
26183 [\\/]* | ?:[\\/]*)
26184 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26185 ;;
26186 *)
26187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26188as_dummy="$PATH:/usr/bin:/usr/local/bin"
26189for as_dir in $as_dummy
26190do
26191 IFS=$as_save_IFS
26192 test -z "$as_dir" && as_dir=.
26193 for ac_exec_ext in '' $ac_executable_extensions; do
26194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26195 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26197 break 2
26198 fi
26199done
26200 done
26201IFS=$as_save_IFS
26202
26203 ;;
26204esac
26205fi
26206ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26207if test -n "$ac_pt_PKGCONFIG"; then
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26209$as_echo "$ac_pt_PKGCONFIG" >&6; }
26210else
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26212$as_echo "no" >&6; }
26213fi
26214
26215 if test "x$ac_pt_PKGCONFIG" = x; then
26216 PKGCONFIG="no"
26217 else
26218 case $cross_compiling:$ac_tool_warned in
26219yes:)
26220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26222ac_tool_warned=yes ;;
26223esac
26224 PKGCONFIG=$ac_pt_PKGCONFIG
26225 fi
26226else
26227 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26228fi
26229
26230 fi
26231
26232 if test "x$PKGCONFIG" != "xno"; then
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26234$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26235 itexists=`
26236 if test -n ""; then
26237 PKG_CONFIG_LIBDIR=""
26238 export PKG_CONFIG_LIBDIR
26239 fi
26240 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26241
26242 if test -z "$itexists"; then
26243 PKGCONFIG="no"
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26245$as_echo "no" >&6; }
26246 else
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26248$as_echo "found" >&6; }
26249 fi
26250 fi
26251
26252
26253 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026254 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026255 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26256 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26257 version=`$PKGCONFIG --modversion libssh2`
26258 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26259 fi
26260
26261 ;;
26262 off)
26263 ;;
26264 *)
26265 PREFIX_SSH2=$OPT_LIBSSH2
26266 ;;
26267 esac
26268
26269 if test -n "$PREFIX_SSH2"; then
26270 LIB_SSH2="-lssh2"
26271 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26272 CPP_SSH2=-I${PREFIX_SSH2}/include
26273 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26274 fi
26275
26276 LDFLAGS="$LDFLAGS $LD_SSH2"
26277 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26278 LIBS="$LIB_SSH2 $LIBS"
26279
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26281$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26282if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26283 $as_echo_n "(cached) " >&6
26284else
26285 ac_check_lib_save_LIBS=$LIBS
26286LIBS="-lssh2 $LIBS"
26287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26288/* end confdefs.h. */
26289
26290
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294char libssh2_channel_open_ex ();
26295int main (void)
26296{
26297return libssh2_channel_open_ex ();
26298 ;
26299 return 0;
26300}
26301_ACEOF
26302if ac_fn_c_try_link "$LINENO"; then :
26303 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26304else
26305 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26306fi
26307rm -f core conftest.err conftest.$ac_objext \
26308 conftest$ac_exeext conftest.$ac_ext
26309LIBS=$ac_check_lib_save_LIBS
26310fi
26311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26312$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26313if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26314 cat >>confdefs.h <<_ACEOF
26315#define HAVE_LIBSSH2 1
26316_ACEOF
26317
26318 LIBS="-lssh2 $LIBS"
26319
26320fi
26321
26322
26323 for ac_header in libssh2.h
26324do :
26325 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26326if test "x$ac_cv_header_libssh2_h" = xyes; then :
26327 cat >>confdefs.h <<_ACEOF
26328#define HAVE_LIBSSH2_H 1
26329_ACEOF
26330 curl_ssh_msg="enabled (libSSH2)"
26331 LIBSSH2_ENABLED=1
26332
26333$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26334
26335 USE_LIBSSH2=1
26336
26337
26338fi
26339
26340done
26341
26342
26343 if test X"$OPT_LIBSSH2" != Xoff &&
26344 test "$LIBSSH2_ENABLED" != "1"; then
26345 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26346 fi
26347
26348 if test "$LIBSSH2_ENABLED" = "1"; then
26349 if test -n "$DIR_SSH2"; then
26350
26351 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026352 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26353 export CURL_LIBRARY_PATH
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26355$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026356 fi
26357 fi
26358 else
26359 LDFLAGS=$CLEANLDFLAGS
26360 CPPFLAGS=$CLEANCPPFLAGS
26361 LIBS=$CLEANLIBS
26362 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026363elif test X"$OPT_LIBSSH" != Xno; then
26364 CLEANLDFLAGS="$LDFLAGS"
26365 CLEANCPPFLAGS="$CPPFLAGS"
26366 CLEANLIBS="$LIBS"
26367
26368 case "$OPT_LIBSSH" in
26369 yes)
26370
26371 if test -n "$PKG_CONFIG"; then
26372 PKGCONFIG="$PKG_CONFIG"
26373 else
26374 if test -n "$ac_tool_prefix"; then
26375 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26376set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26378$as_echo_n "checking for $ac_word... " >&6; }
26379if ${ac_cv_path_PKGCONFIG+:} false; then :
26380 $as_echo_n "(cached) " >&6
26381else
26382 case $PKGCONFIG in
26383 [\\/]* | ?:[\\/]*)
26384 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26385 ;;
26386 *)
26387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26388as_dummy="$PATH:/usr/bin:/usr/local/bin"
26389for as_dir in $as_dummy
26390do
26391 IFS=$as_save_IFS
26392 test -z "$as_dir" && as_dir=.
26393 for ac_exec_ext in '' $ac_executable_extensions; do
26394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26395 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26397 break 2
26398 fi
26399done
26400 done
26401IFS=$as_save_IFS
26402
26403 ;;
26404esac
26405fi
26406PKGCONFIG=$ac_cv_path_PKGCONFIG
26407if test -n "$PKGCONFIG"; then
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26409$as_echo "$PKGCONFIG" >&6; }
26410else
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26412$as_echo "no" >&6; }
26413fi
26414
26415
26416fi
26417if test -z "$ac_cv_path_PKGCONFIG"; then
26418 ac_pt_PKGCONFIG=$PKGCONFIG
26419 # Extract the first word of "pkg-config", so it can be a program name with args.
26420set dummy pkg-config; ac_word=$2
26421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26422$as_echo_n "checking for $ac_word... " >&6; }
26423if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26424 $as_echo_n "(cached) " >&6
26425else
26426 case $ac_pt_PKGCONFIG in
26427 [\\/]* | ?:[\\/]*)
26428 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26429 ;;
26430 *)
26431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26432as_dummy="$PATH:/usr/bin:/usr/local/bin"
26433for as_dir in $as_dummy
26434do
26435 IFS=$as_save_IFS
26436 test -z "$as_dir" && as_dir=.
26437 for ac_exec_ext in '' $ac_executable_extensions; do
26438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26439 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26441 break 2
26442 fi
26443done
26444 done
26445IFS=$as_save_IFS
26446
26447 ;;
26448esac
26449fi
26450ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26451if test -n "$ac_pt_PKGCONFIG"; then
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26453$as_echo "$ac_pt_PKGCONFIG" >&6; }
26454else
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26456$as_echo "no" >&6; }
26457fi
26458
26459 if test "x$ac_pt_PKGCONFIG" = x; then
26460 PKGCONFIG="no"
26461 else
26462 case $cross_compiling:$ac_tool_warned in
26463yes:)
26464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26466ac_tool_warned=yes ;;
26467esac
26468 PKGCONFIG=$ac_pt_PKGCONFIG
26469 fi
26470else
26471 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26472fi
26473
26474 fi
26475
26476 if test "x$PKGCONFIG" != "xno"; then
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26478$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26479 itexists=`
26480 if test -n ""; then
26481 PKG_CONFIG_LIBDIR=""
26482 export PKG_CONFIG_LIBDIR
26483 fi
26484 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26485
26486 if test -z "$itexists"; then
26487 PKGCONFIG="no"
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26489$as_echo "no" >&6; }
26490 else
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26492$as_echo "found" >&6; }
26493 fi
26494 fi
26495
26496
26497 if test "$PKGCONFIG" != "no" ; then
26498 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26499 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26500 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26501 version=`$PKGCONFIG --modversion libssh`
26502 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26503 fi
26504
26505 ;;
26506 off)
26507 ;;
26508 *)
26509 PREFIX_SSH=$OPT_LIBSSH
26510 ;;
26511 esac
26512
26513 if test -n "$PREFIX_SSH"; then
26514 LIB_SSH="-lssh"
26515 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26516 CPP_SSH=-I${PREFIX_SSH}/include
26517 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26518 fi
26519
26520 LDFLAGS="$LDFLAGS $LD_SSH"
26521 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26522 LIBS="$LIB_SSH $LIBS"
26523
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26525$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26526if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26527 $as_echo_n "(cached) " >&6
26528else
26529 ac_check_lib_save_LIBS=$LIBS
26530LIBS="-lssh $LIBS"
26531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h. */
26533
26534
26535#ifdef __cplusplus
26536extern "C"
26537#endif
26538char ssh_new ();
26539int main (void)
26540{
26541return ssh_new ();
26542 ;
26543 return 0;
26544}
26545_ACEOF
26546if ac_fn_c_try_link "$LINENO"; then :
26547 ac_cv_lib_ssh_ssh_new=yes
26548else
26549 ac_cv_lib_ssh_ssh_new=no
26550fi
26551rm -f core conftest.err conftest.$ac_objext \
26552 conftest$ac_exeext conftest.$ac_ext
26553LIBS=$ac_check_lib_save_LIBS
26554fi
26555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26556$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26557if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26558 cat >>confdefs.h <<_ACEOF
26559#define HAVE_LIBSSH 1
26560_ACEOF
26561
26562 LIBS="-lssh $LIBS"
26563
26564fi
26565
26566
26567 for ac_header in libssh/libssh.h
26568do :
26569 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26570if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26571 cat >>confdefs.h <<_ACEOF
26572#define HAVE_LIBSSH_LIBSSH_H 1
26573_ACEOF
26574 curl_ssh_msg="enabled (libSSH)"
26575 LIBSSH_ENABLED=1
26576
26577$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26578
26579 USE_LIBSSH=1
26580
26581
26582fi
26583
26584done
26585
26586
26587 if test X"$OPT_LIBSSH" != Xoff &&
26588 test "$LIBSSH_ENABLED" != "1"; then
26589 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26590 fi
26591
26592 if test "$LIBSSH_ENABLED" = "1"; then
26593 if test -n "$DIR_SSH"; then
26594
26595 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026596 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26597 export CURL_LIBRARY_PATH
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26599$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026600 fi
26601 fi
26602 else
26603 LDFLAGS=$CLEANLDFLAGS
26604 CPPFLAGS=$CLEANCPPFLAGS
26605 LIBS=$CLEANLIBS
26606 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026607fi
26608
26609
26610OPT_LIBRTMP=off
26611
26612# Check whether --with-librtmp was given.
26613if test "${with_librtmp+set}" = set; then :
26614 withval=$with_librtmp; OPT_LIBRTMP=$withval
26615fi
26616
26617
26618if test X"$OPT_LIBRTMP" != Xno; then
26619 CLEANLDFLAGS="$LDFLAGS"
26620 CLEANCPPFLAGS="$CPPFLAGS"
26621 CLEANLIBS="$LIBS"
26622
26623 case "$OPT_LIBRTMP" in
26624 yes)
26625
26626 if test -n "$PKG_CONFIG"; then
26627 PKGCONFIG="$PKG_CONFIG"
26628 else
26629 if test -n "$ac_tool_prefix"; then
26630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26631set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26633$as_echo_n "checking for $ac_word... " >&6; }
26634if ${ac_cv_path_PKGCONFIG+:} false; then :
26635 $as_echo_n "(cached) " >&6
26636else
26637 case $PKGCONFIG in
26638 [\\/]* | ?:[\\/]*)
26639 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26640 ;;
26641 *)
26642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26643as_dummy="$PATH:/usr/bin:/usr/local/bin"
26644for as_dir in $as_dummy
26645do
26646 IFS=$as_save_IFS
26647 test -z "$as_dir" && as_dir=.
26648 for ac_exec_ext in '' $ac_executable_extensions; do
26649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26650 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26652 break 2
26653 fi
26654done
26655 done
26656IFS=$as_save_IFS
26657
26658 ;;
26659esac
26660fi
26661PKGCONFIG=$ac_cv_path_PKGCONFIG
26662if test -n "$PKGCONFIG"; then
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26664$as_echo "$PKGCONFIG" >&6; }
26665else
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26667$as_echo "no" >&6; }
26668fi
26669
26670
26671fi
26672if test -z "$ac_cv_path_PKGCONFIG"; then
26673 ac_pt_PKGCONFIG=$PKGCONFIG
26674 # Extract the first word of "pkg-config", so it can be a program name with args.
26675set dummy pkg-config; ac_word=$2
26676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26677$as_echo_n "checking for $ac_word... " >&6; }
26678if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26679 $as_echo_n "(cached) " >&6
26680else
26681 case $ac_pt_PKGCONFIG in
26682 [\\/]* | ?:[\\/]*)
26683 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26684 ;;
26685 *)
26686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26687as_dummy="$PATH:/usr/bin:/usr/local/bin"
26688for as_dir in $as_dummy
26689do
26690 IFS=$as_save_IFS
26691 test -z "$as_dir" && as_dir=.
26692 for ac_exec_ext in '' $ac_executable_extensions; do
26693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26694 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26696 break 2
26697 fi
26698done
26699 done
26700IFS=$as_save_IFS
26701
26702 ;;
26703esac
26704fi
26705ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26706if test -n "$ac_pt_PKGCONFIG"; then
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26708$as_echo "$ac_pt_PKGCONFIG" >&6; }
26709else
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26711$as_echo "no" >&6; }
26712fi
26713
26714 if test "x$ac_pt_PKGCONFIG" = x; then
26715 PKGCONFIG="no"
26716 else
26717 case $cross_compiling:$ac_tool_warned in
26718yes:)
26719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26721ac_tool_warned=yes ;;
26722esac
26723 PKGCONFIG=$ac_pt_PKGCONFIG
26724 fi
26725else
26726 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26727fi
26728
26729 fi
26730
26731 if test "x$PKGCONFIG" != "xno"; then
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26733$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26734 itexists=`
26735 if test -n ""; then
26736 PKG_CONFIG_LIBDIR=""
26737 export PKG_CONFIG_LIBDIR
26738 fi
26739 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26740
26741 if test -z "$itexists"; then
26742 PKGCONFIG="no"
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26744$as_echo "no" >&6; }
26745 else
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26747$as_echo "found" >&6; }
26748 fi
26749 fi
26750
26751
26752 if test "$PKGCONFIG" != "no" ; then
26753 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26754 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26755 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26756 version=`$PKGCONFIG --modversion librtmp`
26757 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26758 else
26759 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26760 fi
26761
26762 ;;
26763 off)
26764 LIB_RTMP="-lrtmp"
26765 ;;
26766 *)
26767 LIB_RTMP="-lrtmp"
26768 PREFIX_RTMP=$OPT_LIBRTMP
26769 ;;
26770 esac
26771
26772 if test -n "$PREFIX_RTMP"; then
26773 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26774 CPP_RTMP=-I${PREFIX_RTMP}/include
26775 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26776 fi
26777
26778 LDFLAGS="$LDFLAGS $LD_RTMP"
26779 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26780 LIBS="$LIB_RTMP $LIBS"
26781
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26783$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26784if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26785 $as_echo_n "(cached) " >&6
26786else
26787 ac_check_lib_save_LIBS=$LIBS
26788LIBS="-lrtmp $LIBS"
26789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790/* end confdefs.h. */
26791
26792
26793#ifdef __cplusplus
26794extern "C"
26795#endif
26796char RTMP_Init ();
26797int main (void)
26798{
26799return RTMP_Init ();
26800 ;
26801 return 0;
26802}
26803_ACEOF
26804if ac_fn_c_try_link "$LINENO"; then :
26805 ac_cv_lib_rtmp_RTMP_Init=yes
26806else
26807 ac_cv_lib_rtmp_RTMP_Init=no
26808fi
26809rm -f core conftest.err conftest.$ac_objext \
26810 conftest$ac_exeext conftest.$ac_ext
26811LIBS=$ac_check_lib_save_LIBS
26812fi
26813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26814$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26815if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26816
26817 for ac_header in librtmp/rtmp.h
26818do :
26819 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26820if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26821 cat >>confdefs.h <<_ACEOF
26822#define HAVE_LIBRTMP_RTMP_H 1
26823_ACEOF
26824 curl_rtmp_msg="enabled (librtmp)"
26825 LIBRTMP_ENABLED=1
26826
26827$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26828
26829 USE_LIBRTMP=1
26830
26831
26832fi
26833
26834done
26835
26836
26837else
26838 LDFLAGS=$CLEANLDFLAGS
26839 CPPFLAGS=$CLEANCPPFLAGS
26840 LIBS=$CLEANLIBS
26841
26842fi
26843
26844
26845 if test X"$OPT_LIBRTMP" != Xoff &&
26846 test "$LIBRTMP_ENABLED" != "1"; then
26847 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26848 fi
26849
26850fi
26851
26852
26853versioned_symbols_flavour=
26854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26855$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26856# Check whether --enable-versioned-symbols was given.
26857if test "${enable_versioned_symbols+set}" = set; then :
26858 enableval=$enable_versioned_symbols; case "$enableval" in
26859 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26860$as_echo "yes" >&6; }
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26862$as_echo_n "checking if libraries can be versioned... " >&6; }
26863 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26864 if test -z "$GLD"; then
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866$as_echo "no" >&6; }
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26868$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26869 else
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26871$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026872 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26873 versioned_symbols_flavour="MULTISSL_"
26874 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026875 versioned_symbols_flavour="OPENSSL_"
26876 elif test "x$GNUTLS_ENABLED" = "x1"; then
26877 versioned_symbols_flavour="GNUTLS_"
26878 elif test "x$NSS_ENABLED" = "x1"; then
26879 versioned_symbols_flavour="NSS_"
26880 elif test "x$POLARSSL_ENABLED" = "x1"; then
26881 versioned_symbols_flavour="POLARSSL_"
26882 elif test "x$CYASSL_ENABLED" = "x1"; then
26883 versioned_symbols_flavour="CYASSL_"
26884 elif test "x$AXTLS_ENABLED" = "x1"; then
26885 versioned_symbols_flavour="AXTLS_"
26886 elif test "x$WINSSL_ENABLED" = "x1"; then
26887 versioned_symbols_flavour="WINSSL_"
26888 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26889 versioned_symbols_flavour="DARWINSSL_"
26890 else
26891 versioned_symbols_flavour=""
26892 fi
26893 versioned_symbols="yes"
26894 fi
26895 ;;
26896
26897 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26898$as_echo "no" >&6; }
26899 ;;
26900 esac
26901
26902else
26903
26904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905$as_echo "no" >&6; }
26906
26907
26908fi
26909
26910
26911CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26912
26913 if test "x$versioned_symbols" = 'xyes'; then
26914 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26915 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26916else
26917 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26918 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26919fi
26920
26921
26922
26923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26924$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26925OPT_WINIDN="default"
26926
26927# Check whether --with-winidn was given.
26928if test "${with_winidn+set}" = set; then :
26929 withval=$with_winidn; OPT_WINIDN=$withval
26930fi
26931
26932case "$OPT_WINIDN" in
26933 no|default)
26934 want_winidn="no"
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26936$as_echo "no" >&6; }
26937 ;;
26938 yes)
26939 want_winidn="yes"
26940 want_winidn_path="default"
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26942$as_echo "yes" >&6; }
26943 ;;
26944 *)
26945 want_winidn="yes"
26946 want_winidn_path="$withval"
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26948$as_echo "yes ($withval)" >&6; }
26949 ;;
26950esac
26951
26952if test "$want_winidn" = "yes"; then
26953 clean_CPPFLAGS="$CPPFLAGS"
26954 clean_LDFLAGS="$LDFLAGS"
26955 clean_LIBS="$LIBS"
26956 WINIDN_LIBS="-lnormaliz"
26957 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26958 #
26959 if test "$want_winidn_path" != "default"; then
26960 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26961 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26962 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26963 fi
26964 #
26965 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26966 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26967 LIBS="$WINIDN_LIBS $LIBS"
26968 #
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26970$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26972/* end confdefs.h. */
26973
26974
26975 #include <windows.h>
26976
26977int main (void)
26978{
26979
26980 IdnToUnicode(0, NULL, 0, NULL, 0);
26981
26982 ;
26983 return 0;
26984}
26985
26986_ACEOF
26987if ac_fn_c_try_link "$LINENO"; then :
26988
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26990$as_echo "yes" >&6; }
26991 tst_links_winidn="yes"
26992
26993else
26994
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26996$as_echo "no" >&6; }
26997 tst_links_winidn="no"
26998
26999fi
27000rm -f core conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27002 #
27003 if test "$tst_links_winidn" = "yes"; then
27004
27005$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27006
27007
27008$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27009
27010 IDN_ENABLED=1
27011
27012 curl_idn_msg="enabled (Windows-native)"
27013 else
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27015$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27016 CPPFLAGS="$clean_CPPFLAGS"
27017 LDFLAGS="$clean_LDFLAGS"
27018 LIBS="$clean_LIBS"
27019 fi
27020fi
27021
27022
27023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27024$as_echo_n "checking whether to build with libidn2... " >&6; }
27025OPT_IDN="default"
27026
27027# Check whether --with-libidn2 was given.
27028if test "${with_libidn2+set}" = set; then :
27029 withval=$with_libidn2; OPT_IDN=$withval
27030fi
27031
27032case "$OPT_IDN" in
27033 no)
27034 want_idn="no"
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27036$as_echo "no" >&6; }
27037 ;;
27038 default)
27039 want_idn="yes"
27040 want_idn_path="default"
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27042$as_echo "(assumed) yes" >&6; }
27043 ;;
27044 yes)
27045 want_idn="yes"
27046 want_idn_path="default"
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27048$as_echo "yes" >&6; }
27049 ;;
27050 *)
27051 want_idn="yes"
27052 want_idn_path="$withval"
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27054$as_echo "yes ($withval)" >&6; }
27055 ;;
27056esac
27057
27058if test "$want_idn" = "yes"; then
27059 clean_CPPFLAGS="$CPPFLAGS"
27060 clean_LDFLAGS="$LDFLAGS"
27061 clean_LIBS="$LIBS"
27062 PKGCONFIG="no"
27063 #
27064 if test "$want_idn_path" != "default"; then
27065 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27066
27067 if test -n "$PKG_CONFIG"; then
27068 PKGCONFIG="$PKG_CONFIG"
27069 else
27070 if test -n "$ac_tool_prefix"; then
27071 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27072set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27074$as_echo_n "checking for $ac_word... " >&6; }
27075if ${ac_cv_path_PKGCONFIG+:} false; then :
27076 $as_echo_n "(cached) " >&6
27077else
27078 case $PKGCONFIG in
27079 [\\/]* | ?:[\\/]*)
27080 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27081 ;;
27082 *)
27083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27084as_dummy="$PATH:/usr/bin:/usr/local/bin"
27085for as_dir in $as_dummy
27086do
27087 IFS=$as_save_IFS
27088 test -z "$as_dir" && as_dir=.
27089 for ac_exec_ext in '' $ac_executable_extensions; do
27090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27091 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27093 break 2
27094 fi
27095done
27096 done
27097IFS=$as_save_IFS
27098
27099 ;;
27100esac
27101fi
27102PKGCONFIG=$ac_cv_path_PKGCONFIG
27103if test -n "$PKGCONFIG"; then
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27105$as_echo "$PKGCONFIG" >&6; }
27106else
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108$as_echo "no" >&6; }
27109fi
27110
27111
27112fi
27113if test -z "$ac_cv_path_PKGCONFIG"; then
27114 ac_pt_PKGCONFIG=$PKGCONFIG
27115 # Extract the first word of "pkg-config", so it can be a program name with args.
27116set dummy pkg-config; ac_word=$2
27117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27118$as_echo_n "checking for $ac_word... " >&6; }
27119if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27120 $as_echo_n "(cached) " >&6
27121else
27122 case $ac_pt_PKGCONFIG in
27123 [\\/]* | ?:[\\/]*)
27124 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27125 ;;
27126 *)
27127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128as_dummy="$PATH:/usr/bin:/usr/local/bin"
27129for as_dir in $as_dummy
27130do
27131 IFS=$as_save_IFS
27132 test -z "$as_dir" && as_dir=.
27133 for ac_exec_ext in '' $ac_executable_extensions; do
27134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27135 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27137 break 2
27138 fi
27139done
27140 done
27141IFS=$as_save_IFS
27142
27143 ;;
27144esac
27145fi
27146ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27147if test -n "$ac_pt_PKGCONFIG"; then
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27149$as_echo "$ac_pt_PKGCONFIG" >&6; }
27150else
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27152$as_echo "no" >&6; }
27153fi
27154
27155 if test "x$ac_pt_PKGCONFIG" = x; then
27156 PKGCONFIG="no"
27157 else
27158 case $cross_compiling:$ac_tool_warned in
27159yes:)
27160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27162ac_tool_warned=yes ;;
27163esac
27164 PKGCONFIG=$ac_pt_PKGCONFIG
27165 fi
27166else
27167 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27168fi
27169
27170 fi
27171
27172 if test "x$PKGCONFIG" != "xno"; then
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27174$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27175 itexists=`
27176 if test -n "$IDN_PCDIR"; then
27177 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27178 export PKG_CONFIG_LIBDIR
27179 fi
27180 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27181
27182 if test -z "$itexists"; then
27183 PKGCONFIG="no"
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185$as_echo "no" >&6; }
27186 else
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27188$as_echo "found" >&6; }
27189 fi
27190 fi
27191
27192 if test "$PKGCONFIG" != "no"; then
27193 IDN_LIBS=`
27194 if test -n "$IDN_PCDIR"; then
27195 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27196 export PKG_CONFIG_LIBDIR
27197 fi
27198 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27199 IDN_LDFLAGS=`
27200 if test -n "$IDN_PCDIR"; then
27201 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27202 export PKG_CONFIG_LIBDIR
27203 fi
27204 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27205 IDN_CPPFLAGS=`
27206 if test -n "$IDN_PCDIR"; then
27207 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27208 export PKG_CONFIG_LIBDIR
27209 fi
27210 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27211 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27212 else
27213 IDN_LIBS="-lidn2"
27214 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27215 IDN_CPPFLAGS="-I$want_idn_path/include"
27216 IDN_DIR="$want_idn_path/lib$libsuff"
27217 fi
27218 else
27219
27220 if test -n "$PKG_CONFIG"; then
27221 PKGCONFIG="$PKG_CONFIG"
27222 else
27223 if test -n "$ac_tool_prefix"; then
27224 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27225set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27227$as_echo_n "checking for $ac_word... " >&6; }
27228if ${ac_cv_path_PKGCONFIG+:} false; then :
27229 $as_echo_n "(cached) " >&6
27230else
27231 case $PKGCONFIG in
27232 [\\/]* | ?:[\\/]*)
27233 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27234 ;;
27235 *)
27236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27237as_dummy="$PATH:/usr/bin:/usr/local/bin"
27238for as_dir in $as_dummy
27239do
27240 IFS=$as_save_IFS
27241 test -z "$as_dir" && as_dir=.
27242 for ac_exec_ext in '' $ac_executable_extensions; do
27243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27244 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27246 break 2
27247 fi
27248done
27249 done
27250IFS=$as_save_IFS
27251
27252 ;;
27253esac
27254fi
27255PKGCONFIG=$ac_cv_path_PKGCONFIG
27256if test -n "$PKGCONFIG"; then
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27258$as_echo "$PKGCONFIG" >&6; }
27259else
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27261$as_echo "no" >&6; }
27262fi
27263
27264
27265fi
27266if test -z "$ac_cv_path_PKGCONFIG"; then
27267 ac_pt_PKGCONFIG=$PKGCONFIG
27268 # Extract the first word of "pkg-config", so it can be a program name with args.
27269set dummy pkg-config; ac_word=$2
27270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27271$as_echo_n "checking for $ac_word... " >&6; }
27272if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27273 $as_echo_n "(cached) " >&6
27274else
27275 case $ac_pt_PKGCONFIG in
27276 [\\/]* | ?:[\\/]*)
27277 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27278 ;;
27279 *)
27280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27281as_dummy="$PATH:/usr/bin:/usr/local/bin"
27282for as_dir in $as_dummy
27283do
27284 IFS=$as_save_IFS
27285 test -z "$as_dir" && as_dir=.
27286 for ac_exec_ext in '' $ac_executable_extensions; do
27287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27288 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27290 break 2
27291 fi
27292done
27293 done
27294IFS=$as_save_IFS
27295
27296 ;;
27297esac
27298fi
27299ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27300if test -n "$ac_pt_PKGCONFIG"; then
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27302$as_echo "$ac_pt_PKGCONFIG" >&6; }
27303else
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27305$as_echo "no" >&6; }
27306fi
27307
27308 if test "x$ac_pt_PKGCONFIG" = x; then
27309 PKGCONFIG="no"
27310 else
27311 case $cross_compiling:$ac_tool_warned in
27312yes:)
27313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27315ac_tool_warned=yes ;;
27316esac
27317 PKGCONFIG=$ac_pt_PKGCONFIG
27318 fi
27319else
27320 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27321fi
27322
27323 fi
27324
27325 if test "x$PKGCONFIG" != "xno"; then
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27327$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27328 itexists=`
27329 if test -n ""; then
27330 PKG_CONFIG_LIBDIR=""
27331 export PKG_CONFIG_LIBDIR
27332 fi
27333 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27334
27335 if test -z "$itexists"; then
27336 PKGCONFIG="no"
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27338$as_echo "no" >&6; }
27339 else
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27341$as_echo "found" >&6; }
27342 fi
27343 fi
27344
27345 if test "$PKGCONFIG" != "no"; then
27346 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27347 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27348 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27349 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27350 else
27351 IDN_LIBS="-lidn2"
27352 fi
27353 fi
27354 #
27355 if test "$PKGCONFIG" != "no"; then
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27357$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27359$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27361$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27363$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27364 else
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27366$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27368$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27370$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27372$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27373 fi
27374 #
27375 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27376 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27377 LIBS="$IDN_LIBS $LIBS"
27378 #
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27380$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27382/* end confdefs.h. */
27383
27384
27385#define idn2_lookup_ul innocuous_idn2_lookup_ul
27386#ifdef __STDC__
27387# include <limits.h>
27388#else
27389# include <assert.h>
27390#endif
27391#undef idn2_lookup_ul
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char idn2_lookup_ul ();
27396#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27397choke me
27398#endif
27399
27400int main (void)
27401{
27402return idn2_lookup_ul ();
27403 ;
27404 return 0;
27405}
27406
27407_ACEOF
27408if ac_fn_c_try_link "$LINENO"; then :
27409
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27411$as_echo "yes" >&6; }
27412 tst_links_libidn="yes"
27413
27414else
27415
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27417$as_echo "no" >&6; }
27418 tst_links_libidn="no"
27419
27420fi
27421rm -f core conftest.err conftest.$ac_objext \
27422 conftest$ac_exeext conftest.$ac_ext
27423 #
27424 for ac_header in idn2.h
27425do :
27426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27429 cat >>confdefs.h <<_ACEOF
27430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27431_ACEOF
27432
27433fi
27434
27435done
27436
27437
27438 if test "$tst_links_libidn" = "yes"; then
27439
27440$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27441
27442
27443 IDN_ENABLED=1
27444
27445 curl_idn_msg="enabled (libidn2)"
27446 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027447 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27448 export CURL_LIBRARY_PATH
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27450$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027451 fi
27452 else
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27454$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27455 CPPFLAGS="$clean_CPPFLAGS"
27456 LDFLAGS="$clean_LDFLAGS"
27457 LIBS="$clean_LIBS"
27458 fi
27459fi
27460
27461
27462
27463
27464
27465OPT_H2="yes"
27466
27467if test "x$disable_http" = "xyes"; then
27468 # without HTTP, nghttp2 is no use
27469 OPT_H2="no"
27470fi
27471
27472
27473# Check whether --with-nghttp2 was given.
27474if test "${with_nghttp2+set}" = set; then :
27475 withval=$with_nghttp2; OPT_H2=$withval
27476fi
27477
27478case "$OPT_H2" in
27479 no)
27480 want_h2="no"
27481 ;;
27482 yes)
27483 want_h2="default"
27484 want_h2_path=""
27485 ;;
27486 *)
27487 want_h2="yes"
27488 want_h2_path="$withval/lib/pkgconfig"
27489 ;;
27490esac
27491
27492curl_h2_msg="disabled (--with-nghttp2)"
27493if test X"$want_h2" != Xno; then
27494 CLEANLDFLAGS="$LDFLAGS"
27495 CLEANCPPFLAGS="$CPPFLAGS"
27496 CLEANLIBS="$LIBS"
27497
27498
27499 if test -n "$PKG_CONFIG"; then
27500 PKGCONFIG="$PKG_CONFIG"
27501 else
27502 if test -n "$ac_tool_prefix"; then
27503 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27504set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27506$as_echo_n "checking for $ac_word... " >&6; }
27507if ${ac_cv_path_PKGCONFIG+:} false; then :
27508 $as_echo_n "(cached) " >&6
27509else
27510 case $PKGCONFIG in
27511 [\\/]* | ?:[\\/]*)
27512 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27513 ;;
27514 *)
27515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27516as_dummy="$PATH:/usr/bin:/usr/local/bin"
27517for as_dir in $as_dummy
27518do
27519 IFS=$as_save_IFS
27520 test -z "$as_dir" && as_dir=.
27521 for ac_exec_ext in '' $ac_executable_extensions; do
27522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27523 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27525 break 2
27526 fi
27527done
27528 done
27529IFS=$as_save_IFS
27530
27531 ;;
27532esac
27533fi
27534PKGCONFIG=$ac_cv_path_PKGCONFIG
27535if test -n "$PKGCONFIG"; then
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27537$as_echo "$PKGCONFIG" >&6; }
27538else
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27540$as_echo "no" >&6; }
27541fi
27542
27543
27544fi
27545if test -z "$ac_cv_path_PKGCONFIG"; then
27546 ac_pt_PKGCONFIG=$PKGCONFIG
27547 # Extract the first word of "pkg-config", so it can be a program name with args.
27548set dummy pkg-config; ac_word=$2
27549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27550$as_echo_n "checking for $ac_word... " >&6; }
27551if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27552 $as_echo_n "(cached) " >&6
27553else
27554 case $ac_pt_PKGCONFIG in
27555 [\\/]* | ?:[\\/]*)
27556 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27557 ;;
27558 *)
27559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27560as_dummy="$PATH:/usr/bin:/usr/local/bin"
27561for as_dir in $as_dummy
27562do
27563 IFS=$as_save_IFS
27564 test -z "$as_dir" && as_dir=.
27565 for ac_exec_ext in '' $ac_executable_extensions; do
27566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27567 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27569 break 2
27570 fi
27571done
27572 done
27573IFS=$as_save_IFS
27574
27575 ;;
27576esac
27577fi
27578ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27579if test -n "$ac_pt_PKGCONFIG"; then
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27581$as_echo "$ac_pt_PKGCONFIG" >&6; }
27582else
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27584$as_echo "no" >&6; }
27585fi
27586
27587 if test "x$ac_pt_PKGCONFIG" = x; then
27588 PKGCONFIG="no"
27589 else
27590 case $cross_compiling:$ac_tool_warned in
27591yes:)
27592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27594ac_tool_warned=yes ;;
27595esac
27596 PKGCONFIG=$ac_pt_PKGCONFIG
27597 fi
27598else
27599 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27600fi
27601
27602 fi
27603
27604 if test "x$PKGCONFIG" != "xno"; then
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27606$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27607 itexists=`
27608 if test -n "$want_h2_path"; then
27609 PKG_CONFIG_LIBDIR="$want_h2_path"
27610 export PKG_CONFIG_LIBDIR
27611 fi
27612 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27613
27614 if test -z "$itexists"; then
27615 PKGCONFIG="no"
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27617$as_echo "no" >&6; }
27618 else
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27620$as_echo "found" >&6; }
27621 fi
27622 fi
27623
27624
27625 if test "$PKGCONFIG" != "no" ; then
27626 LIB_H2=`
27627 if test -n "$want_h2_path"; then
27628 PKG_CONFIG_LIBDIR="$want_h2_path"
27629 export PKG_CONFIG_LIBDIR
27630 fi
27631
27632 $PKGCONFIG --libs-only-l libnghttp2`
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27634$as_echo "$as_me: -l is $LIB_H2" >&6;}
27635
27636 CPP_H2=`
27637 if test -n "$want_h2_path"; then
27638 PKG_CONFIG_LIBDIR="$want_h2_path"
27639 export PKG_CONFIG_LIBDIR
27640 fi
27641 $PKGCONFIG --cflags-only-I libnghttp2`
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27643$as_echo "$as_me: -I is $CPP_H2" >&6;}
27644
27645 LD_H2=`
27646 if test -n "$want_h2_path"; then
27647 PKG_CONFIG_LIBDIR="$want_h2_path"
27648 export PKG_CONFIG_LIBDIR
27649 fi
27650
27651 $PKGCONFIG --libs-only-L libnghttp2`
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27653$as_echo "$as_me: -L is $LD_H2" >&6;}
27654
27655 LDFLAGS="$LDFLAGS $LD_H2"
27656 CPPFLAGS="$CPPFLAGS $CPP_H2"
27657 LIBS="$LIB_H2 $LIBS"
27658
27659 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27660 # >= 1.0.0
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27662$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27663if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27664 $as_echo_n "(cached) " >&6
27665else
27666 ac_check_lib_save_LIBS=$LIBS
27667LIBS="-lnghttp2 $LIBS"
27668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669/* end confdefs.h. */
27670
27671
27672#ifdef __cplusplus
27673extern "C"
27674#endif
27675char nghttp2_option_set_no_recv_client_magic ();
27676int main (void)
27677{
27678return nghttp2_option_set_no_recv_client_magic ();
27679 ;
27680 return 0;
27681}
27682_ACEOF
27683if ac_fn_c_try_link "$LINENO"; then :
27684 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27685else
27686 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27687fi
27688rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
27690LIBS=$ac_check_lib_save_LIBS
27691fi
27692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27693$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27694if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27695
27696 for ac_header in nghttp2/nghttp2.h
27697do :
27698 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27699if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27700 cat >>confdefs.h <<_ACEOF
27701#define HAVE_NGHTTP2_NGHTTP2_H 1
27702_ACEOF
27703 curl_h2_msg="enabled (nghttp2)"
27704 NGHTTP2_ENABLED=1
27705
27706$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27707
27708 USE_NGHTTP2=1
27709
27710
27711fi
27712
27713done
27714
27715
27716else
27717 LDFLAGS=$CLEANLDFLAGS
27718 CPPFLAGS=$CLEANCPPFLAGS
27719 LIBS=$CLEANLIBS
27720
27721fi
27722
27723
27724 else
27725 if test X"$want_h2" != Xdefault; then
27726 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27727 fi
27728 fi
27729
27730fi
27731
27732
27733OPT_ZSH_FPATH=default
27734
27735# Check whether --with-zsh-functions-dir was given.
27736if test "${with_zsh_functions_dir+set}" = set; then :
27737 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27738fi
27739
27740case "$OPT_ZSH_FPATH" in
27741 no)
27742 ;;
27743 default|yes)
27744 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27745
27746 ;;
27747 *)
27748 ZSH_FUNCTIONS_DIR="$withval"
27749
27750 ;;
27751esac
27752
27753
27754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27755$as_echo_n "checking for ANSI C header files... " >&6; }
27756if ${ac_cv_header_stdc+:} false; then :
27757 $as_echo_n "(cached) " >&6
27758else
27759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27760/* end confdefs.h. */
27761#include <stdlib.h>
27762#include <stdarg.h>
27763#include <string.h>
27764#include <float.h>
27765
27766int main (void)
27767{
27768
27769 ;
27770 return 0;
27771}
27772_ACEOF
27773if ac_fn_c_try_compile "$LINENO"; then :
27774 ac_cv_header_stdc=yes
27775else
27776 ac_cv_header_stdc=no
27777fi
27778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779
27780if test $ac_cv_header_stdc = yes; then
27781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27783/* end confdefs.h. */
27784#include <string.h>
27785
27786_ACEOF
27787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27788 $EGREP "memchr" >/dev/null 2>&1; then :
27789
27790else
27791 ac_cv_header_stdc=no
27792fi
27793rm -f conftest*
27794
27795fi
27796
27797if test $ac_cv_header_stdc = yes; then
27798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800/* end confdefs.h. */
27801#include <stdlib.h>
27802
27803_ACEOF
27804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27805 $EGREP "free" >/dev/null 2>&1; then :
27806
27807else
27808 ac_cv_header_stdc=no
27809fi
27810rm -f conftest*
27811
27812fi
27813
27814if test $ac_cv_header_stdc = yes; then
27815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27816 if test "$cross_compiling" = yes; then :
27817 :
27818else
27819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27820/* end confdefs.h. */
27821#include <ctype.h>
27822#include <stdlib.h>
27823#if ((' ' & 0x0FF) == 0x020)
27824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27826#else
27827# define ISLOWER(c) \
27828 (('a' <= (c) && (c) <= 'i') \
27829 || ('j' <= (c) && (c) <= 'r') \
27830 || ('s' <= (c) && (c) <= 'z'))
27831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27832#endif
27833
27834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27835int
27836main ()
27837{
27838 int i;
27839 for (i = 0; i < 256; i++)
27840 if (XOR (islower (i), ISLOWER (i))
27841 || toupper (i) != TOUPPER (i))
27842 return 2;
27843 return 0;
27844}
27845_ACEOF
27846if ac_fn_c_try_run "$LINENO"; then :
27847
27848else
27849 ac_cv_header_stdc=no
27850fi
27851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27852 conftest.$ac_objext conftest.beam conftest.$ac_ext
27853fi
27854
27855fi
27856fi
27857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27858$as_echo "$ac_cv_header_stdc" >&6; }
27859if test $ac_cv_header_stdc = yes; then
27860
27861$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27862
27863fi
27864
27865
27866
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27868$as_echo_n "checking for malloc.h... " >&6; }
27869if ${curl_cv_header_malloc_h+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871else
27872
27873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27874/* end confdefs.h. */
27875
27876
27877#include <malloc.h>
27878
27879int main (void)
27880{
27881
27882 void *p = malloc(10);
27883 void *q = calloc(10,10);
27884 free(p);
27885 free(q);
27886
27887 ;
27888 return 0;
27889}
27890
27891_ACEOF
27892if ac_fn_c_try_compile "$LINENO"; then :
27893
27894 curl_cv_header_malloc_h="yes"
27895
27896else
27897
27898 curl_cv_header_malloc_h="no"
27899
27900fi
27901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27902
27903fi
27904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27905$as_echo "$curl_cv_header_malloc_h" >&6; }
27906 if test "$curl_cv_header_malloc_h" = "yes"; then
27907
27908cat >>confdefs.h <<_ACEOF
27909#define HAVE_MALLOC_H 1
27910_ACEOF
27911
27912 #
27913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27914/* end confdefs.h. */
27915
27916
27917#include <stdlib.h>
27918
27919int main (void)
27920{
27921
27922 void *p = malloc(10);
27923 void *q = calloc(10,10);
27924 free(p);
27925 free(q);
27926
27927 ;
27928 return 0;
27929}
27930
27931_ACEOF
27932if ac_fn_c_try_compile "$LINENO"; then :
27933
27934 curl_cv_need_header_malloc_h="no"
27935
27936else
27937
27938 curl_cv_need_header_malloc_h="yes"
27939
27940fi
27941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942 #
27943 case "$curl_cv_need_header_malloc_h" in
27944 yes)
27945
27946cat >>confdefs.h <<_ACEOF
27947#define NEED_MALLOC_H 1
27948_ACEOF
27949
27950 ;;
27951 esac
27952 fi
27953
27954
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27956$as_echo_n "checking for memory.h... " >&6; }
27957if ${curl_cv_header_memory_h+:} false; then :
27958 $as_echo_n "(cached) " >&6
27959else
27960
27961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27962/* end confdefs.h. */
27963
27964
27965#include <memory.h>
27966
27967int main (void)
27968{
27969
27970 void *p = malloc(10);
27971 void *q = calloc(10,10);
27972 free(p);
27973 free(q);
27974
27975 ;
27976 return 0;
27977}
27978
27979_ACEOF
27980if ac_fn_c_try_compile "$LINENO"; then :
27981
27982 curl_cv_header_memory_h="yes"
27983
27984else
27985
27986 curl_cv_header_memory_h="no"
27987
27988fi
27989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990
27991fi
27992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27993$as_echo "$curl_cv_header_memory_h" >&6; }
27994 if test "$curl_cv_header_memory_h" = "yes"; then
27995
27996cat >>confdefs.h <<_ACEOF
27997#define HAVE_MEMORY_H 1
27998_ACEOF
27999
28000 #
28001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002/* end confdefs.h. */
28003
28004
28005#include <stdlib.h>
28006
28007int main (void)
28008{
28009
28010 void *p = malloc(10);
28011 void *q = calloc(10,10);
28012 free(p);
28013 free(q);
28014
28015 ;
28016 return 0;
28017}
28018
28019_ACEOF
28020if ac_fn_c_try_compile "$LINENO"; then :
28021
28022 curl_cv_need_header_memory_h="no"
28023
28024else
28025
28026 curl_cv_need_header_memory_h="yes"
28027
28028fi
28029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030 #
28031 case "$curl_cv_need_header_memory_h" in
28032 yes)
28033
28034cat >>confdefs.h <<_ACEOF
28035#define NEED_MEMORY_H 1
28036_ACEOF
28037
28038 ;;
28039 esac
28040 fi
28041
28042
28043for ac_header in sys/types.h \
28044 sys/time.h \
28045 sys/select.h \
28046 sys/socket.h \
28047 sys/ioctl.h \
28048 sys/uio.h \
28049 assert.h \
28050 unistd.h \
28051 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028052 arpa/inet.h \
28053 net/if.h \
28054 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028055 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028056 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028057 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028058 netinet/tcp.h \
28059 netdb.h \
28060 sys/sockio.h \
28061 sys/stat.h \
28062 sys/param.h \
28063 termios.h \
28064 termio.h \
28065 sgtty.h \
28066 fcntl.h \
28067 alloca.h \
28068 time.h \
28069 io.h \
28070 pwd.h \
28071 utime.h \
28072 sys/utime.h \
28073 sys/poll.h \
28074 poll.h \
28075 socket.h \
28076 sys/resource.h \
28077 libgen.h \
28078 locale.h \
28079 errno.h \
28080 stdbool.h \
28081 arpa/tftp.h \
28082 sys/filio.h \
28083 sys/wait.h \
28084 setjmp.h
28085do :
28086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28087ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28088#ifdef HAVE_SYS_TYPES_H
28089#include <sys/types.h>
28090#endif
28091#ifdef HAVE_SYS_TIME_H
28092#include <sys/time.h>
28093#endif
28094#ifdef HAVE_SYS_SELECT_H
28095#include <sys/select.h>
28096#endif
28097#ifdef HAVE_SYS_SOCKET_H
28098#include <sys/socket.h>
28099#endif
28100#ifdef HAVE_NETINET_IN_H
28101#include <netinet/in.h>
28102#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028103#ifdef HAVE_NETINET_IN6_H
28104#include <netinet/in6.h>
28105#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028106#ifdef HAVE_SYS_UN_H
28107#include <sys/un.h>
28108#endif
28109
28110
28111"
28112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28113 cat >>confdefs.h <<_ACEOF
28114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28115_ACEOF
28116
28117fi
28118
28119done
28120
28121
28122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28123$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28124if ${ac_cv_c_const+:} false; then :
28125 $as_echo_n "(cached) " >&6
28126else
28127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28128/* end confdefs.h. */
28129
28130int main (void)
28131{
28132
28133#ifndef __cplusplus
28134 /* Ultrix mips cc rejects this sort of thing. */
28135 typedef int charset[2];
28136 const charset cs = { 0, 0 };
28137 /* SunOS 4.1.1 cc rejects this. */
28138 char const *const *pcpcc;
28139 char **ppc;
28140 /* NEC SVR4.0.2 mips cc rejects this. */
28141 struct point {int x, y;};
28142 static struct point const zero = {0,0};
28143 /* AIX XL C 1.02.0.0 rejects this.
28144 It does not let you subtract one const X* pointer from another in
28145 an arm of an if-expression whose if-part is not a constant
28146 expression */
28147 const char *g = "string";
28148 pcpcc = &g + (g ? g-g : 0);
28149 /* HPUX 7.0 cc rejects these. */
28150 ++pcpcc;
28151 ppc = (char**) pcpcc;
28152 pcpcc = (char const *const *) ppc;
28153 { /* SCO 3.2v4 cc rejects this sort of thing. */
28154 char tx;
28155 char *t = &tx;
28156 char const *s = 0 ? (char *) 0 : (char const *) 0;
28157
28158 *t++ = 0;
28159 if (s) return 0;
28160 }
28161 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28162 int x[] = {25, 17};
28163 const int *foo = &x[0];
28164 ++foo;
28165 }
28166 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28167 typedef const int *iptr;
28168 iptr p = 0;
28169 ++p;
28170 }
28171 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28172 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28173 struct s { int j; const int *ap[3]; } bx;
28174 struct s *b = &bx; b->j = 5;
28175 }
28176 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28177 const int foo = 10;
28178 if (!foo) return 0;
28179 }
28180 return !cs[0] && !zero.x;
28181#endif
28182
28183 ;
28184 return 0;
28185}
28186_ACEOF
28187if ac_fn_c_try_compile "$LINENO"; then :
28188 ac_cv_c_const=yes
28189else
28190 ac_cv_c_const=no
28191fi
28192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28193fi
28194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28195$as_echo "$ac_cv_c_const" >&6; }
28196if test $ac_cv_c_const = no; then
28197
28198$as_echo "#define const /**/" >>confdefs.h
28199
28200fi
28201
28202
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28204$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28205if ${curl_cv_variadic_macros_c99+:} false; then :
28206 $as_echo_n "(cached) " >&6
28207else
28208
28209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28210/* end confdefs.h. */
28211
28212
28213#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28214#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28215 int fun3(int arg1, int arg2, int arg3);
28216 int fun2(int arg1, int arg2);
28217 int fun3(int arg1, int arg2, int arg3)
28218 { return arg1 + arg2 + arg3; }
28219 int fun2(int arg1, int arg2)
28220 { return arg1 + arg2; }
28221
28222int main (void)
28223{
28224
28225 int res3 = c99_vmacro3(1, 2, 3);
28226 int res2 = c99_vmacro2(1, 2);
28227
28228 ;
28229 return 0;
28230}
28231
28232_ACEOF
28233if ac_fn_c_try_compile "$LINENO"; then :
28234
28235 curl_cv_variadic_macros_c99="yes"
28236
28237else
28238
28239 curl_cv_variadic_macros_c99="no"
28240
28241fi
28242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28243
28244fi
28245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28246$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28247 case "$curl_cv_variadic_macros_c99" in
28248 yes)
28249
28250cat >>confdefs.h <<_ACEOF
28251#define HAVE_VARIADIC_MACROS_C99 1
28252_ACEOF
28253
28254 ;;
28255 esac
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28257$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28258if ${curl_cv_variadic_macros_gcc+:} false; then :
28259 $as_echo_n "(cached) " >&6
28260else
28261
28262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28263/* end confdefs.h. */
28264
28265
28266#define gcc_vmacro3(first, args...) fun3(first, args)
28267#define gcc_vmacro2(first, args...) fun2(first, args)
28268 int fun3(int arg1, int arg2, int arg3);
28269 int fun2(int arg1, int arg2);
28270 int fun3(int arg1, int arg2, int arg3)
28271 { return arg1 + arg2 + arg3; }
28272 int fun2(int arg1, int arg2)
28273 { return arg1 + arg2; }
28274
28275int main (void)
28276{
28277
28278 int res3 = gcc_vmacro3(1, 2, 3);
28279 int res2 = gcc_vmacro2(1, 2);
28280
28281 ;
28282 return 0;
28283}
28284
28285_ACEOF
28286if ac_fn_c_try_compile "$LINENO"; then :
28287
28288 curl_cv_variadic_macros_gcc="yes"
28289
28290else
28291
28292 curl_cv_variadic_macros_gcc="no"
28293
28294fi
28295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28296
28297fi
28298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28299$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28300 case "$curl_cv_variadic_macros_gcc" in
28301 yes)
28302
28303cat >>confdefs.h <<_ACEOF
28304#define HAVE_VARIADIC_MACROS_GCC 1
28305_ACEOF
28306
28307 ;;
28308 esac
28309
28310ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28311if test "x$ac_cv_type_size_t" = xyes; then :
28312
28313else
28314
28315cat >>confdefs.h <<_ACEOF
28316#define size_t unsigned int
28317_ACEOF
28318
28319fi
28320
28321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28322$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28323if ${ac_cv_header_time+:} false; then :
28324 $as_echo_n "(cached) " >&6
28325else
28326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28327/* end confdefs.h. */
28328#include <sys/types.h>
28329#include <sys/time.h>
28330#include <time.h>
28331
28332int main (void)
28333{
28334if ((struct tm *) 0)
28335return 0;
28336 ;
28337 return 0;
28338}
28339_ACEOF
28340if ac_fn_c_try_compile "$LINENO"; then :
28341 ac_cv_header_time=yes
28342else
28343 ac_cv_header_time=no
28344fi
28345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28346fi
28347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28348$as_echo "$ac_cv_header_time" >&6; }
28349if test $ac_cv_header_time = yes; then
28350
28351$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28352
28353fi
28354
28355
28356 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28357do :
28358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28359ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28360if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28361 cat >>confdefs.h <<_ACEOF
28362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28363_ACEOF
28364
28365fi
28366
28367done
28368
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28370$as_echo_n "checking for struct timeval... " >&6; }
28371if ${curl_cv_struct_timeval+:} false; then :
28372 $as_echo_n "(cached) " >&6
28373else
28374
28375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28376/* end confdefs.h. */
28377
28378
28379#undef inline
28380#ifdef HAVE_WINDOWS_H
28381#ifndef WIN32_LEAN_AND_MEAN
28382#define WIN32_LEAN_AND_MEAN
28383#endif
28384#include <windows.h>
28385#ifdef HAVE_WINSOCK2_H
28386#include <winsock2.h>
28387#else
28388#ifdef HAVE_WINSOCK_H
28389#include <winsock.h>
28390#endif
28391#endif
28392#endif
28393#ifdef HAVE_SYS_TYPES_H
28394#include <sys/types.h>
28395#endif
28396#ifdef HAVE_SYS_TIME_H
28397#include <sys/time.h>
28398#ifdef TIME_WITH_SYS_TIME
28399#include <time.h>
28400#endif
28401#else
28402#ifdef HAVE_TIME_H
28403#include <time.h>
28404#endif
28405#endif
28406#ifdef HAVE_SYS_SOCKET_H
28407#include <sys/socket.h>
28408#endif
28409
28410int main (void)
28411{
28412
28413 struct timeval ts;
28414 ts.tv_sec = 0;
28415 ts.tv_usec = 0;
28416
28417 ;
28418 return 0;
28419}
28420
28421_ACEOF
28422if ac_fn_c_try_compile "$LINENO"; then :
28423
28424 curl_cv_struct_timeval="yes"
28425
28426else
28427
28428 curl_cv_struct_timeval="no"
28429
28430fi
28431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432
28433fi
28434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28435$as_echo "$curl_cv_struct_timeval" >&6; }
28436 case "$curl_cv_struct_timeval" in
28437 yes)
28438
28439cat >>confdefs.h <<_ACEOF
28440#define HAVE_STRUCT_TIMEVAL 1
28441_ACEOF
28442
28443 ;;
28444 esac
28445
28446
28447
28448 if test "x$cross_compiling" != xyes; then
28449
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28451$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028452
28453
28454 old=$LD_LIBRARY_PATH
28455 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28456 export LD_LIBRARY_PATH
28457 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28460as_fn_error $? "cannot run test program while cross compiling
28461See \`config.log' for more details" "$LINENO" 5; }
28462else
28463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28464/* end confdefs.h. */
28465
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028466int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028467{
28468 return 0;
28469}
28470
28471_ACEOF
28472if ac_fn_c_try_run "$LINENO"; then :
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28474$as_echo "fine" >&6; }
28475else
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28477$as_echo "failed" >&6; }
28478 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28479
28480fi
28481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28482 conftest.$ac_objext conftest.beam conftest.$ac_ext
28483fi
28484
Elliott Hughes72d948d2018-08-03 14:37:21 -070028485 LD_LIBRARY_PATH=$old # restore
28486
Elliott Hughes82be86d2017-09-20 17:00:17 -070028487
28488 fi
28489
28490
Elliott Hughes82be86d2017-09-20 17:00:17 -070028491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28492$as_echo_n "checking size of size_t... " >&6; }
28493if ${ac_cv_sizeof_size_t+:} false; then :
28494 $as_echo_n "(cached) " >&6
28495else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028496 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28498/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028499
Elliott Hughes72d948d2018-08-03 14:37:21 -070028500#include <sys/types.h>
28501
28502
28503int main (void)
28504{
28505switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28506 ;
28507 return 0;
28508}
28509_ACEOF
28510if ac_fn_c_try_compile "$LINENO"; then :
28511 ac_cv_sizeof_size_t=$ac_size
28512fi
28513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28515done
28516
Elliott Hughes82be86d2017-09-20 17:00:17 -070028517fi
28518
Elliott Hughes72d948d2018-08-03 14:37:21 -070028519if test x$ac_cv_sizeof_size_t = x ; then
28520 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028521fi
28522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28523$as_echo "$ac_cv_sizeof_size_t" >&6; }
28524
Elliott Hughes82be86d2017-09-20 17:00:17 -070028525cat >>confdefs.h <<_ACEOF
28526#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28527_ACEOF
28528
28529
Elliott Hughes82be86d2017-09-20 17:00:17 -070028530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28531$as_echo_n "checking size of long... " >&6; }
28532if ${ac_cv_sizeof_long+:} false; then :
28533 $as_echo_n "(cached) " >&6
28534else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028535 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28537/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028538
Elliott Hughes72d948d2018-08-03 14:37:21 -070028539#include <sys/types.h>
28540
28541
28542int main (void)
28543{
28544switch (0) case 0: case (sizeof (long) == $ac_size):;
28545 ;
28546 return 0;
28547}
28548_ACEOF
28549if ac_fn_c_try_compile "$LINENO"; then :
28550 ac_cv_sizeof_long=$ac_size
28551fi
28552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28553 if test x$ac_cv_sizeof_long != x ; then break; fi
28554done
28555
Elliott Hughes82be86d2017-09-20 17:00:17 -070028556fi
28557
Elliott Hughes72d948d2018-08-03 14:37:21 -070028558if test x$ac_cv_sizeof_long = x ; then
28559 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028560fi
28561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28562$as_echo "$ac_cv_sizeof_long" >&6; }
28563
Elliott Hughes82be86d2017-09-20 17:00:17 -070028564cat >>confdefs.h <<_ACEOF
28565#define SIZEOF_LONG $ac_cv_sizeof_long
28566_ACEOF
28567
28568
Elliott Hughes82be86d2017-09-20 17:00:17 -070028569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28570$as_echo_n "checking size of int... " >&6; }
28571if ${ac_cv_sizeof_int+:} false; then :
28572 $as_echo_n "(cached) " >&6
28573else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028574 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28576/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028577
Elliott Hughes72d948d2018-08-03 14:37:21 -070028578#include <sys/types.h>
28579
28580
28581int main (void)
28582{
28583switch (0) case 0: case (sizeof (int) == $ac_size):;
28584 ;
28585 return 0;
28586}
28587_ACEOF
28588if ac_fn_c_try_compile "$LINENO"; then :
28589 ac_cv_sizeof_int=$ac_size
28590fi
28591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 if test x$ac_cv_sizeof_int != x ; then break; fi
28593done
28594
Elliott Hughes82be86d2017-09-20 17:00:17 -070028595fi
28596
Elliott Hughes72d948d2018-08-03 14:37:21 -070028597if test x$ac_cv_sizeof_int = x ; then
28598 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028599fi
28600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28601$as_echo "$ac_cv_sizeof_int" >&6; }
28602
Elliott Hughes82be86d2017-09-20 17:00:17 -070028603cat >>confdefs.h <<_ACEOF
28604#define SIZEOF_INT $ac_cv_sizeof_int
28605_ACEOF
28606
28607
Elliott Hughes82be86d2017-09-20 17:00:17 -070028608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28609$as_echo_n "checking size of short... " >&6; }
28610if ${ac_cv_sizeof_short+:} false; then :
28611 $as_echo_n "(cached) " >&6
28612else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028613 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28615/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028616
Elliott Hughes72d948d2018-08-03 14:37:21 -070028617#include <sys/types.h>
28618
28619
28620int main (void)
28621{
28622switch (0) case 0: case (sizeof (short) == $ac_size):;
28623 ;
28624 return 0;
28625}
28626_ACEOF
28627if ac_fn_c_try_compile "$LINENO"; then :
28628 ac_cv_sizeof_short=$ac_size
28629fi
28630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28631 if test x$ac_cv_sizeof_short != x ; then break; fi
28632done
28633
Elliott Hughes82be86d2017-09-20 17:00:17 -070028634fi
28635
Elliott Hughes72d948d2018-08-03 14:37:21 -070028636if test x$ac_cv_sizeof_short = x ; then
28637 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028638fi
28639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28640$as_echo "$ac_cv_sizeof_short" >&6; }
28641
Elliott Hughes82be86d2017-09-20 17:00:17 -070028642cat >>confdefs.h <<_ACEOF
28643#define SIZEOF_SHORT $ac_cv_sizeof_short
28644_ACEOF
28645
28646
Elliott Hughes82be86d2017-09-20 17:00:17 -070028647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28648$as_echo_n "checking size of time_t... " >&6; }
28649if ${ac_cv_sizeof_time_t+:} false; then :
28650 $as_echo_n "(cached) " >&6
28651else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028652 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28654/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028655
Elliott Hughes72d948d2018-08-03 14:37:21 -070028656#include <sys/types.h>
28657
28658
28659int main (void)
28660{
28661switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28662 ;
28663 return 0;
28664}
28665_ACEOF
28666if ac_fn_c_try_compile "$LINENO"; then :
28667 ac_cv_sizeof_time_t=$ac_size
28668fi
28669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28670 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28671done
28672
Elliott Hughes82be86d2017-09-20 17:00:17 -070028673fi
28674
Elliott Hughes72d948d2018-08-03 14:37:21 -070028675if test x$ac_cv_sizeof_time_t = x ; then
28676 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028677fi
28678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28679$as_echo "$ac_cv_sizeof_time_t" >&6; }
28680
Elliott Hughes82be86d2017-09-20 17:00:17 -070028681cat >>confdefs.h <<_ACEOF
28682#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28683_ACEOF
28684
28685
Elliott Hughes82be86d2017-09-20 17:00:17 -070028686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28687$as_echo_n "checking size of off_t... " >&6; }
28688if ${ac_cv_sizeof_off_t+:} false; then :
28689 $as_echo_n "(cached) " >&6
28690else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028691 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28693/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028694
Elliott Hughes72d948d2018-08-03 14:37:21 -070028695#include <sys/types.h>
28696
28697
28698int main (void)
28699{
28700switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28701 ;
28702 return 0;
28703}
28704_ACEOF
28705if ac_fn_c_try_compile "$LINENO"; then :
28706 ac_cv_sizeof_off_t=$ac_size
28707fi
28708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28709 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28710done
28711
Elliott Hughes82be86d2017-09-20 17:00:17 -070028712fi
28713
Elliott Hughes72d948d2018-08-03 14:37:21 -070028714if test x$ac_cv_sizeof_off_t = x ; then
28715 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028716fi
28717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28718$as_echo "$ac_cv_sizeof_off_t" >&6; }
28719
Elliott Hughes82be86d2017-09-20 17:00:17 -070028720cat >>confdefs.h <<_ACEOF
28721#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28722_ACEOF
28723
28724
28725
Alex Deymo486467e2017-12-19 19:04:07 +010028726o=$CPPFLAGS
28727CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28729$as_echo_n "checking size of curl_off_t... " >&6; }
28730if ${ac_cv_sizeof_curl_off_t+:} false; then :
28731 $as_echo_n "(cached) " >&6
28732else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028733 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28735/* end confdefs.h. */
28736
28737#include <sys/types.h>
28738
Alex Deymo486467e2017-12-19 19:04:07 +010028739#include <curl/system.h>
28740
Alex Deymo486467e2017-12-19 19:04:07 +010028741
Elliott Hughes72d948d2018-08-03 14:37:21 -070028742int main (void)
28743{
28744switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28745 ;
28746 return 0;
28747}
28748_ACEOF
28749if ac_fn_c_try_compile "$LINENO"; then :
28750 ac_cv_sizeof_curl_off_t=$ac_size
28751fi
28752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28753 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28754done
28755
Elliott Hughes82be86d2017-09-20 17:00:17 -070028756fi
28757
Elliott Hughes72d948d2018-08-03 14:37:21 -070028758if test x$ac_cv_sizeof_curl_off_t = x ; then
28759 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028760fi
28761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28762$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28763
Alex Deymo486467e2017-12-19 19:04:07 +010028764cat >>confdefs.h <<_ACEOF
28765#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28766_ACEOF
28767
28768
28769CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028770
28771ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28772if test "x$ac_cv_type_long_long" = xyes; then :
28773
28774$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28775
28776 longlong="yes"
28777
28778fi
28779
28780
28781if test "xyes" = "x$longlong"; then
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28783$as_echo_n "checking if numberLL works... " >&6; }
28784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28785/* end confdefs.h. */
28786
28787
28788
28789int main (void)
28790{
28791
28792 long long val = 1000LL;
28793
28794 ;
28795 return 0;
28796}
28797
28798_ACEOF
28799if ac_fn_c_try_compile "$LINENO"; then :
28800
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28802$as_echo "yes" >&6; }
28803
28804$as_echo "#define HAVE_LL 1" >>confdefs.h
28805
28806
28807else
28808
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28810$as_echo "no" >&6; }
28811
28812fi
28813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28814fi
28815
28816
28817# check for ssize_t
28818ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28819if test "x$ac_cv_type_ssize_t" = xyes; then :
28820
28821else
28822
28823$as_echo "#define ssize_t int" >>confdefs.h
28824
28825fi
28826
28827
28828# check for bool type
28829ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28830#ifdef HAVE_SYS_TYPES_H
28831#include <sys/types.h>
28832#endif
28833#ifdef HAVE_STDBOOL_H
28834#include <stdbool.h>
28835#endif
28836
28837"
28838if test "x$ac_cv_type_bool" = xyes; then :
28839
28840
28841$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28842
28843
28844fi
28845
28846
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028847# check for sa_family_t
28848ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28849#ifdef HAVE_SYS_SOCKET_H
28850#include <sys/socket.h>
28851#endif
28852
28853"
28854if test "x$ac_cv_type_sa_family_t" = xyes; then :
28855
28856$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28857
28858else
28859
28860 # The windows name?
28861 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28862#ifdef HAVE_SYS_SOCKET_H
28863#include <sys/socket.h>
28864#endif
28865
28866"
28867if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28868
28869$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28870
28871else
28872
28873$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28874
28875fi
28876
28877
28878fi
28879
28880
Elliott Hughescac39802018-04-27 16:19:43 -070028881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28882$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028883
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028884
28885 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028886 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28887 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028888 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28890$as_echo "no" >&6; }
28891
28892else
28893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28894/* end confdefs.h. */
28895
Elliott Hughescac39802018-04-27 16:19:43 -070028896 #include <time.h>
28897 #include <limits.h>
28898 time_t t = -1;
28899 return (t > 0);
28900
28901_ACEOF
28902if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904$as_echo "yes" >&6; }
28905
28906$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28907
28908
28909else
Elliott Hughescac39802018-04-27 16:19:43 -070028910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28911$as_echo "no" >&6; }
28912
28913fi
28914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28915 conftest.$ac_objext conftest.beam conftest.$ac_ext
28916fi
28917
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028918 LD_LIBRARY_PATH=$old # restore
28919
Elliott Hughescac39802018-04-27 16:19:43 -070028920
Elliott Hughes82be86d2017-09-20 17:00:17 -070028921
28922curl_includes_ws2tcpip="\
28923/* includes start */
28924#ifdef HAVE_WINDOWS_H
28925# ifndef WIN32_LEAN_AND_MEAN
28926# define WIN32_LEAN_AND_MEAN
28927# endif
28928# include <windows.h>
28929# ifdef HAVE_WINSOCK2_H
28930# include <winsock2.h>
28931# ifdef HAVE_WS2TCPIP_H
28932# include <ws2tcpip.h>
28933# endif
28934# endif
28935#endif
28936/* includes end */"
28937
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28939$as_echo_n "checking for windows.h... " >&6; }
28940if ${curl_cv_header_windows_h+:} false; then :
28941 $as_echo_n "(cached) " >&6
28942else
28943
28944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945/* end confdefs.h. */
28946
28947
28948#undef inline
28949#ifndef WIN32_LEAN_AND_MEAN
28950#define WIN32_LEAN_AND_MEAN
28951#endif
28952#include <windows.h>
28953
28954int main (void)
28955{
28956
28957#if defined(__CYGWIN__) || defined(__CEGCC__)
28958 HAVE_WINDOWS_H shall not be defined.
28959#else
28960 int dummy=2*WINVER;
28961#endif
28962
28963 ;
28964 return 0;
28965}
28966
28967_ACEOF
28968if ac_fn_c_try_compile "$LINENO"; then :
28969
28970 curl_cv_header_windows_h="yes"
28971
28972else
28973
28974 curl_cv_header_windows_h="no"
28975
28976fi
28977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978
28979fi
28980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28981$as_echo "$curl_cv_header_windows_h" >&6; }
28982 case "$curl_cv_header_windows_h" in
28983 yes)
28984
28985cat >>confdefs.h <<_ACEOF
28986#define HAVE_WINDOWS_H 1
28987_ACEOF
28988
28989 ;;
28990 esac
28991
28992
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28994$as_echo_n "checking for winsock2.h... " >&6; }
28995if ${curl_cv_header_winsock2_h+:} false; then :
28996 $as_echo_n "(cached) " >&6
28997else
28998
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000/* end confdefs.h. */
29001
29002
29003#undef inline
29004#ifndef WIN32_LEAN_AND_MEAN
29005#define WIN32_LEAN_AND_MEAN
29006#endif
29007#include <windows.h>
29008#include <winsock2.h>
29009
29010int main (void)
29011{
29012
29013#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29014 HAVE_WINSOCK2_H shall not be defined.
29015#else
29016 int dummy=2*IPPROTO_ESP;
29017#endif
29018
29019 ;
29020 return 0;
29021}
29022
29023_ACEOF
29024if ac_fn_c_try_compile "$LINENO"; then :
29025
29026 curl_cv_header_winsock2_h="yes"
29027
29028else
29029
29030 curl_cv_header_winsock2_h="no"
29031
29032fi
29033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034
29035fi
29036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29037$as_echo "$curl_cv_header_winsock2_h" >&6; }
29038 case "$curl_cv_header_winsock2_h" in
29039 yes)
29040
29041cat >>confdefs.h <<_ACEOF
29042#define HAVE_WINSOCK2_H 1
29043_ACEOF
29044
29045 ;;
29046 esac
29047
29048
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29050$as_echo_n "checking for ws2tcpip.h... " >&6; }
29051if ${curl_cv_header_ws2tcpip_h+:} false; then :
29052 $as_echo_n "(cached) " >&6
29053else
29054
29055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29056/* end confdefs.h. */
29057
29058
29059#undef inline
29060#ifndef WIN32_LEAN_AND_MEAN
29061#define WIN32_LEAN_AND_MEAN
29062#endif
29063#include <windows.h>
29064#include <winsock2.h>
29065#include <ws2tcpip.h>
29066
29067int main (void)
29068{
29069
29070#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29071 HAVE_WS2TCPIP_H shall not be defined.
29072#else
29073 int dummy=2*IP_PKTINFO;
29074#endif
29075
29076 ;
29077 return 0;
29078}
29079
29080_ACEOF
29081if ac_fn_c_try_compile "$LINENO"; then :
29082
29083 curl_cv_header_ws2tcpip_h="yes"
29084
29085else
29086
29087 curl_cv_header_ws2tcpip_h="no"
29088
29089fi
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091
29092fi
29093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29094$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29095 case "$curl_cv_header_ws2tcpip_h" in
29096 yes)
29097
29098cat >>confdefs.h <<_ACEOF
29099#define HAVE_WS2TCPIP_H 1
29100_ACEOF
29101
29102 ;;
29103 esac
29104
29105
29106
29107curl_includes_sys_socket="\
29108/* includes start */
29109#ifdef HAVE_SYS_TYPES_H
29110# include <sys/types.h>
29111#endif
29112#ifdef HAVE_SYS_SOCKET_H
29113# include <sys/socket.h>
29114#endif
29115/* includes end */"
29116 for ac_header in sys/types.h sys/socket.h
29117do :
29118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29119ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29120"
29121if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29122 cat >>confdefs.h <<_ACEOF
29123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29124_ACEOF
29125
29126fi
29127
29128done
29129
29130
29131
29132curl_preprocess_callconv="\
29133/* preprocess start */
29134#ifdef HAVE_WINDOWS_H
29135# define FUNCALLCONV __stdcall
29136#else
29137# define FUNCALLCONV
29138#endif
29139/* preprocess end */"
29140
29141
29142 #
29143 #
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29145$as_echo_n "checking for curl_socklen_t data type... " >&6; }
29146 curl_typeof_curl_socklen_t="unknown"
29147 for arg1 in int SOCKET; do
29148 for arg2 in 'struct sockaddr' void; do
29149 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29150 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152/* end confdefs.h. */
29153
29154
29155 $curl_includes_ws2tcpip
29156 $curl_includes_sys_socket
29157 $curl_preprocess_callconv
29158 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29159
29160int main (void)
29161{
29162
29163 $t *lenptr = 0;
29164 if(0 != getpeername(0, 0, lenptr))
29165 return 1;
29166
29167 ;
29168 return 0;
29169}
29170
29171_ACEOF
29172if ac_fn_c_try_compile "$LINENO"; then :
29173
29174 curl_typeof_curl_socklen_t="$t"
29175
29176fi
29177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29178 fi
29179 done
29180 done
29181 done
29182 for t in socklen_t int; do
29183 if test "$curl_typeof_curl_socklen_t" = "void"; then
29184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29185/* end confdefs.h. */
29186
29187
29188 $curl_includes_sys_socket
29189 typedef $t curl_socklen_t;
29190
29191int main (void)
29192{
29193
29194 curl_socklen_t dummy;
29195
29196 ;
29197 return 0;
29198}
29199
29200_ACEOF
29201if ac_fn_c_try_compile "$LINENO"; then :
29202
29203 curl_typeof_curl_socklen_t="$t"
29204
29205fi
29206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207 fi
29208 done
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29210$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29211 if test "$curl_typeof_curl_socklen_t" = "void" ||
29212 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29213 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29214 fi
29215 #
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29217$as_echo_n "checking size of curl_socklen_t... " >&6; }
29218 curl_sizeof_curl_socklen_t="unknown"
29219 curl_pull_headers_socklen_t="unknown"
29220 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29221 tst_pull_header_checks='none ws2tcpip'
29222 tst_size_checks='4'
29223 else
29224 tst_pull_header_checks='none systypes syssocket'
29225 tst_size_checks='4 8 2'
29226 fi
29227 for tst_size in $tst_size_checks; do
29228 for tst_pull_headers in $tst_pull_header_checks; do
29229 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29230 case $tst_pull_headers in
29231 ws2tcpip)
29232 tmp_includes="$curl_includes_ws2tcpip"
29233 ;;
29234 systypes)
29235 tmp_includes="$curl_includes_sys_types"
29236 ;;
29237 syssocket)
29238 tmp_includes="$curl_includes_sys_socket"
29239 ;;
29240 *)
29241 tmp_includes=""
29242 ;;
29243 esac
29244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29245/* end confdefs.h. */
29246
29247
29248 $tmp_includes
29249 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29250 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29251
29252int main (void)
29253{
29254
29255 curl_socklen_t dummy;
29256
29257 ;
29258 return 0;
29259}
29260
29261_ACEOF
29262if ac_fn_c_try_compile "$LINENO"; then :
29263
29264 curl_sizeof_curl_socklen_t="$tst_size"
29265 curl_pull_headers_socklen_t="$tst_pull_headers"
29266
29267fi
29268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29269 fi
29270 done
29271 done
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29273$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29274 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29275 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29276 fi
29277 #
29278 case $curl_pull_headers_socklen_t in
29279 ws2tcpip)
29280
29281cat >>confdefs.h <<_EOF
29282#define CURL_PULL_WS2TCPIP_H 1
29283_EOF
29284
29285 ;;
29286 systypes)
29287
29288cat >>confdefs.h <<_EOF
29289#define CURL_PULL_SYS_TYPES_H 1
29290_EOF
29291
29292 ;;
29293 syssocket)
29294
29295cat >>confdefs.h <<_EOF
29296#define CURL_PULL_SYS_TYPES_H 1
29297_EOF
29298
29299
29300cat >>confdefs.h <<_EOF
29301#define CURL_PULL_SYS_SOCKET_H 1
29302_EOF
29303
29304 ;;
29305 esac
29306
29307cat >>confdefs.h <<_EOF
29308#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29309_EOF
29310
29311
29312cat >>confdefs.h <<_EOF
29313#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29314_EOF
29315
29316
29317
29318
29319curl_includes_poll="\
29320/* includes start */
29321#ifdef HAVE_SYS_TYPES_H
29322# include <sys/types.h>
29323#endif
29324#ifdef HAVE_POLL_H
29325# include <poll.h>
29326#endif
29327#ifdef HAVE_SYS_POLL_H
29328# include <sys/poll.h>
29329#endif
29330/* includes end */"
29331 for ac_header in sys/types.h poll.h sys/poll.h
29332do :
29333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29335"
29336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29337 cat >>confdefs.h <<_ACEOF
29338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29339_ACEOF
29340
29341fi
29342
29343done
29344
29345
29346
29347 #
29348 tst_poll_events_macro_defined="unknown"
29349 #
29350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29351/* end confdefs.h. */
29352
29353
29354 $curl_includes_poll
29355
29356int main (void)
29357{
29358
29359#if defined(events) || defined(revents)
29360 return 0;
29361#else
29362 force compilation error
29363#endif
29364
29365 ;
29366 return 0;
29367}
29368
29369_ACEOF
29370if ac_fn_c_try_compile "$LINENO"; then :
29371
29372 tst_poll_events_macro_defined="yes"
29373
29374else
29375
29376 tst_poll_events_macro_defined="no"
29377
29378fi
29379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29380 #
29381 if test "$tst_poll_events_macro_defined" = "yes"; then
29382 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29383
29384cat >>confdefs.h <<_EOF
29385#define CURL_PULL_SYS_POLL_H 1
29386_EOF
29387
29388 fi
29389 fi
29390 #
29391
29392
29393
29394 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29395#undef inline
29396#ifdef HAVE_WINDOWS_H
29397#ifndef WIN32_LEAN_AND_MEAN
29398#define WIN32_LEAN_AND_MEAN
29399#endif
29400#include <windows.h>
29401#ifdef HAVE_WINSOCK2_H
29402#include <winsock2.h>
29403#else
29404#ifdef HAVE_WINSOCK_H
29405#include <winsock.h>
29406#endif
29407#endif
29408#else
29409#ifdef HAVE_SYS_TYPES_H
29410#include <sys/types.h>
29411#endif
29412#ifdef HAVE_SYS_SOCKET_H
29413#include <sys/socket.h>
29414#endif
29415#ifdef HAVE_NETINET_IN_H
29416#include <netinet/in.h>
29417#endif
29418#ifdef HAVE_ARPA_INET_H
29419#include <arpa/inet.h>
29420#endif
29421#endif
29422
29423"
29424if test "x$ac_cv_type_in_addr_t" = xyes; then :
29425
29426else
29427
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29429$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29430if ${curl_cv_in_addr_t_equiv+:} false; then :
29431 $as_echo_n "(cached) " >&6
29432else
29433
29434 curl_cv_in_addr_t_equiv="unknown"
29435 for t in "unsigned long" int size_t unsigned long; do
29436 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438/* end confdefs.h. */
29439
29440
29441#undef inline
29442#ifdef HAVE_WINDOWS_H
29443#ifndef WIN32_LEAN_AND_MEAN
29444#define WIN32_LEAN_AND_MEAN
29445#endif
29446#include <windows.h>
29447#ifdef HAVE_WINSOCK2_H
29448#include <winsock2.h>
29449#else
29450#ifdef HAVE_WINSOCK_H
29451#include <winsock.h>
29452#endif
29453#endif
29454#else
29455#ifdef HAVE_SYS_TYPES_H
29456#include <sys/types.h>
29457#endif
29458#ifdef HAVE_SYS_SOCKET_H
29459#include <sys/socket.h>
29460#endif
29461#ifdef HAVE_NETINET_IN_H
29462#include <netinet/in.h>
29463#endif
29464#ifdef HAVE_ARPA_INET_H
29465#include <arpa/inet.h>
29466#endif
29467#endif
29468
29469int main (void)
29470{
29471
29472 $t data = inet_addr ("1.2.3.4");
29473
29474 ;
29475 return 0;
29476}
29477
29478_ACEOF
29479if ac_fn_c_try_link "$LINENO"; then :
29480
29481 curl_cv_in_addr_t_equiv="$t"
29482
29483fi
29484rm -f core conftest.err conftest.$ac_objext \
29485 conftest$ac_exeext conftest.$ac_ext
29486 fi
29487 done
29488
29489fi
29490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29491$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29492 case "$curl_cv_in_addr_t_equiv" in
29493 unknown)
29494 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29495 ;;
29496 *)
29497
29498cat >>confdefs.h <<_ACEOF
29499#define in_addr_t $curl_cv_in_addr_t_equiv
29500_ACEOF
29501
29502 ;;
29503 esac
29504
29505fi
29506
29507
29508
29509
29510 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29511#undef inline
29512#ifdef HAVE_WINDOWS_H
29513#ifndef WIN32_LEAN_AND_MEAN
29514#define WIN32_LEAN_AND_MEAN
29515#endif
29516#include <windows.h>
29517#ifdef HAVE_WINSOCK2_H
29518#include <winsock2.h>
29519#endif
29520#else
29521#ifdef HAVE_SYS_TYPES_H
29522#include <sys/types.h>
29523#endif
29524#ifdef HAVE_SYS_SOCKET_H
29525#include <sys/socket.h>
29526#endif
29527#ifdef HAVE_NETINET_IN_H
29528#include <netinet/in.h>
29529#endif
29530#ifdef HAVE_ARPA_INET_H
29531#include <arpa/inet.h>
29532#endif
29533#endif
29534
29535"
29536if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29537
29538$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29539
29540fi
29541
29542
29543
29544
29545 for ac_header in signal.h
29546do :
29547 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29548if test "x$ac_cv_header_signal_h" = xyes; then :
29549 cat >>confdefs.h <<_ACEOF
29550#define HAVE_SIGNAL_H 1
29551_ACEOF
29552
29553fi
29554
29555done
29556
29557 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29558#ifdef HAVE_SIGNAL_H
29559#include <signal.h>
29560#endif
29561
29562"
29563if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29564
29565
29566$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29567
29568
29569fi
29570
29571 case "$ac_cv_type_sig_atomic_t" in
29572 yes)
29573 #
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29575$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29577/* end confdefs.h. */
29578
29579
29580#ifdef HAVE_SIGNAL_H
29581#include <signal.h>
29582#endif
29583
29584int main (void)
29585{
29586
29587 static volatile sig_atomic_t dummy = 0;
29588
29589 ;
29590 return 0;
29591}
29592
29593_ACEOF
29594if ac_fn_c_try_link "$LINENO"; then :
29595
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29597$as_echo "no" >&6; }
29598 curl_cv_sig_atomic_t_volatile="no"
29599
29600else
29601
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29603$as_echo "yes" >&6; }
29604 curl_cv_sig_atomic_t_volatile="yes"
29605
29606fi
29607rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext conftest.$ac_ext
29609 #
29610 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29611
29612$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29613
29614 fi
29615 ;;
29616 esac
29617
29618
29619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29620$as_echo_n "checking return type of signal handlers... " >&6; }
29621if ${ac_cv_type_signal+:} false; then :
29622 $as_echo_n "(cached) " >&6
29623else
29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625/* end confdefs.h. */
29626#include <sys/types.h>
29627#include <signal.h>
29628
29629int main (void)
29630{
29631return *(signal (0, 0)) (0) == 1;
29632 ;
29633 return 0;
29634}
29635_ACEOF
29636if ac_fn_c_try_compile "$LINENO"; then :
29637 ac_cv_type_signal=int
29638else
29639 ac_cv_type_signal=void
29640fi
29641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642fi
29643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29644$as_echo "$ac_cv_type_signal" >&6; }
29645
29646cat >>confdefs.h <<_ACEOF
29647#define RETSIGTYPE $ac_cv_type_signal
29648_ACEOF
29649
29650
29651
29652
29653 for ac_header in sys/select.h sys/socket.h
29654do :
29655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29656ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29658 cat >>confdefs.h <<_ACEOF
29659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29660_ACEOF
29661
29662fi
29663
29664done
29665
29666 #
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29668$as_echo_n "checking for select... " >&6; }
29669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29670/* end confdefs.h. */
29671
29672
29673#undef inline
29674#ifdef HAVE_WINDOWS_H
29675#ifndef WIN32_LEAN_AND_MEAN
29676#define WIN32_LEAN_AND_MEAN
29677#endif
29678#include <windows.h>
29679#ifdef HAVE_WINSOCK2_H
29680#include <winsock2.h>
29681#else
29682#ifdef HAVE_WINSOCK_H
29683#include <winsock.h>
29684#endif
29685#endif
29686#endif
29687#ifdef HAVE_SYS_TYPES_H
29688#include <sys/types.h>
29689#endif
29690#ifdef HAVE_SYS_TIME_H
29691#include <sys/time.h>
29692#ifdef TIME_WITH_SYS_TIME
29693#include <time.h>
29694#endif
29695#else
29696#ifdef HAVE_TIME_H
29697#include <time.h>
29698#endif
29699#endif
29700#ifndef HAVE_WINDOWS_H
29701#ifdef HAVE_SYS_SELECT_H
29702#include <sys/select.h>
29703#endif
29704#ifdef HAVE_SYS_SOCKET_H
29705#include <sys/socket.h>
29706#endif
29707#endif
29708
29709int main (void)
29710{
29711
29712 select(0, 0, 0, 0, 0);
29713
29714 ;
29715 return 0;
29716}
29717
29718_ACEOF
29719if ac_fn_c_try_link "$LINENO"; then :
29720
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29722$as_echo "yes" >&6; }
29723 curl_cv_select="yes"
29724
29725else
29726
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29728$as_echo "no" >&6; }
29729 curl_cv_select="no"
29730
29731fi
29732rm -f core conftest.err conftest.$ac_objext \
29733 conftest$ac_exeext conftest.$ac_ext
29734 #
29735 if test "$curl_cv_select" = "yes"; then
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29737$as_echo_n "checking types of args and return type for select... " >&6; }
29738if ${curl_cv_func_select_args+:} false; then :
29739 $as_echo_n "(cached) " >&6
29740else
29741
29742 curl_cv_func_select_args="unknown"
29743 for sel_retv in 'int' 'ssize_t'; do
29744 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29745 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29746 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29747 if test "$curl_cv_func_select_args" = "unknown"; then
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749/* end confdefs.h. */
29750
29751
29752#undef inline
29753#ifdef HAVE_WINDOWS_H
29754#ifndef WIN32_LEAN_AND_MEAN
29755#define WIN32_LEAN_AND_MEAN
29756#endif
29757#include <windows.h>
29758#ifdef HAVE_WINSOCK2_H
29759#include <winsock2.h>
29760#else
29761#ifdef HAVE_WINSOCK_H
29762#include <winsock.h>
29763#endif
29764#endif
29765#define SELECTCALLCONV PASCAL
29766#endif
29767#ifdef HAVE_SYS_TYPES_H
29768#include <sys/types.h>
29769#endif
29770#ifdef HAVE_SYS_TIME_H
29771#include <sys/time.h>
29772#ifdef TIME_WITH_SYS_TIME
29773#include <time.h>
29774#endif
29775#else
29776#ifdef HAVE_TIME_H
29777#include <time.h>
29778#endif
29779#endif
29780#ifndef HAVE_WINDOWS_H
29781#ifdef HAVE_SYS_SELECT_H
29782#include <sys/select.h>
29783#endif
29784#ifdef HAVE_SYS_SOCKET_H
29785#include <sys/socket.h>
29786#endif
29787#define SELECTCALLCONV
29788#endif
29789#ifndef HAVE_STRUCT_TIMEVAL
29790 struct timeval {
29791 long tv_sec;
29792 long tv_usec;
29793 };
29794#endif
29795 extern $sel_retv SELECTCALLCONV
29796#ifdef __ANDROID__
29797__attribute__((overloadable))
29798#endif
29799 select($sel_arg1,
29800 $sel_arg234,
29801 $sel_arg234,
29802 $sel_arg234,
29803 $sel_arg5);
29804
29805int main (void)
29806{
29807
29808 $sel_arg1 nfds=0;
29809 $sel_arg234 rfds=0;
29810 $sel_arg234 wfds=0;
29811 $sel_arg234 efds=0;
29812 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29813
29814 ;
29815 return 0;
29816}
29817
29818_ACEOF
29819if ac_fn_c_try_compile "$LINENO"; then :
29820
29821 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29822
29823fi
29824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29825 fi
29826 done
29827 done
29828 done
29829 done
29830
29831fi
29832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29833$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29834 if test "$curl_cv_func_select_args" = "unknown"; then
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29836$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29838$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29839 else
29840 select_prev_IFS=$IFS; IFS=','
29841 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29842 IFS=$select_prev_IFS
29843 shift
29844 #
29845 sel_qual_type_arg5=$3
29846 #
29847
29848cat >>confdefs.h <<_ACEOF
29849#define SELECT_TYPE_ARG1 $1
29850_ACEOF
29851
29852
29853cat >>confdefs.h <<_ACEOF
29854#define SELECT_TYPE_ARG234 $2
29855_ACEOF
29856
29857
29858cat >>confdefs.h <<_ACEOF
29859#define SELECT_TYPE_RETV $4
29860_ACEOF
29861
29862 #
29863 prev_sh_opts=$-
29864 #
29865 case $prev_sh_opts in
29866 *f*)
29867 ;;
29868 *)
29869 set -f
29870 ;;
29871 esac
29872 #
29873 case "$sel_qual_type_arg5" in
29874 const*)
29875 sel_qual_arg5=const
29876 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29877 ;;
29878 *)
29879 sel_qual_arg5=
29880 sel_type_arg5=$sel_qual_type_arg5
29881 ;;
29882 esac
29883 #
29884
29885cat >>confdefs.h <<_ACEOF
29886#define SELECT_QUAL_ARG5 $sel_qual_arg5
29887_ACEOF
29888
29889
29890cat >>confdefs.h <<_ACEOF
29891#define SELECT_TYPE_ARG5 $sel_type_arg5
29892_ACEOF
29893
29894 #
29895 case $prev_sh_opts in
29896 *f*)
29897 ;;
29898 *)
29899 set +f
29900 ;;
29901 esac
29902 #
29903
29904cat >>confdefs.h <<_ACEOF
29905#define HAVE_SELECT 1
29906_ACEOF
29907
29908 curl_cv_func_select="yes"
29909 fi
29910 fi
29911
29912
29913
29914 for ac_header in sys/types.h sys/socket.h
29915do :
29916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29917ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29919 cat >>confdefs.h <<_ACEOF
29920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29921_ACEOF
29922
29923fi
29924
29925done
29926
29927 #
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29929$as_echo_n "checking for recv... " >&6; }
29930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29931/* end confdefs.h. */
29932
29933
29934#undef inline
29935#ifdef HAVE_WINDOWS_H
29936#ifndef WIN32_LEAN_AND_MEAN
29937#define WIN32_LEAN_AND_MEAN
29938#endif
29939#include <windows.h>
29940#ifdef HAVE_WINSOCK2_H
29941#include <winsock2.h>
29942#else
29943#ifdef HAVE_WINSOCK_H
29944#include <winsock.h>
29945#endif
29946#endif
29947#else
29948#ifdef HAVE_SYS_TYPES_H
29949#include <sys/types.h>
29950#endif
29951#ifdef HAVE_SYS_SOCKET_H
29952#include <sys/socket.h>
29953#endif
29954#endif
29955
29956int main (void)
29957{
29958
29959 recv(0, 0, 0, 0);
29960
29961 ;
29962 return 0;
29963}
29964
29965_ACEOF
29966if ac_fn_c_try_link "$LINENO"; then :
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29969$as_echo "yes" >&6; }
29970 curl_cv_recv="yes"
29971
29972else
29973
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29975$as_echo "no" >&6; }
29976 curl_cv_recv="no"
29977
29978fi
29979rm -f core conftest.err conftest.$ac_objext \
29980 conftest$ac_exeext conftest.$ac_ext
29981 #
29982 if test "$curl_cv_recv" = "yes"; then
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29984$as_echo_n "checking types of args and return type for recv... " >&6; }
29985if ${curl_cv_func_recv_args+:} false; then :
29986 $as_echo_n "(cached) " >&6
29987else
29988
29989 curl_cv_func_recv_args="unknown"
29990 for recv_retv in 'int' 'ssize_t'; do
29991 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29992 for recv_arg2 in 'char *' 'void *'; do
29993 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29994 for recv_arg4 in 'int' 'unsigned int'; do
29995 if test "$curl_cv_func_recv_args" = "unknown"; then
29996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29997/* end confdefs.h. */
29998
29999
30000#undef inline
30001#ifdef HAVE_WINDOWS_H
30002#ifndef WIN32_LEAN_AND_MEAN
30003#define WIN32_LEAN_AND_MEAN
30004#endif
30005#include <windows.h>
30006#ifdef HAVE_WINSOCK2_H
30007#include <winsock2.h>
30008#else
30009#ifdef HAVE_WINSOCK_H
30010#include <winsock.h>
30011#endif
30012#endif
30013#define RECVCALLCONV PASCAL
30014#else
30015#ifdef HAVE_SYS_TYPES_H
30016#include <sys/types.h>
30017#endif
30018#ifdef HAVE_SYS_SOCKET_H
30019#include <sys/socket.h>
30020#endif
30021#define RECVCALLCONV
30022#endif
30023 extern $recv_retv RECVCALLCONV
30024#ifdef __ANDROID__
30025__attribute__((overloadable))
30026#endif
30027 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30028
30029int main (void)
30030{
30031
30032 $recv_arg1 s=0;
30033 $recv_arg2 buf=0;
30034 $recv_arg3 len=0;
30035 $recv_arg4 flags=0;
30036 $recv_retv res = recv(s, buf, len, flags);
30037
30038 ;
30039 return 0;
30040}
30041
30042_ACEOF
30043if ac_fn_c_try_compile "$LINENO"; then :
30044
30045 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30046
30047fi
30048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30049 fi
30050 done
30051 done
30052 done
30053 done
30054 done
30055
30056fi
30057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30058$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30059 if test "$curl_cv_func_recv_args" = "unknown"; then
30060 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30061 else
30062 recv_prev_IFS=$IFS; IFS=','
30063 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30064 IFS=$recv_prev_IFS
30065 shift
30066 #
30067
30068cat >>confdefs.h <<_ACEOF
30069#define RECV_TYPE_ARG1 $1
30070_ACEOF
30071
30072
30073cat >>confdefs.h <<_ACEOF
30074#define RECV_TYPE_ARG2 $2
30075_ACEOF
30076
30077
30078cat >>confdefs.h <<_ACEOF
30079#define RECV_TYPE_ARG3 $3
30080_ACEOF
30081
30082
30083cat >>confdefs.h <<_ACEOF
30084#define RECV_TYPE_ARG4 $4
30085_ACEOF
30086
30087
30088cat >>confdefs.h <<_ACEOF
30089#define RECV_TYPE_RETV $5
30090_ACEOF
30091
30092 #
30093
30094cat >>confdefs.h <<_ACEOF
30095#define HAVE_RECV 1
30096_ACEOF
30097
30098 curl_cv_func_recv="yes"
30099 fi
30100 else
30101 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30102 fi
30103
30104
30105 for ac_header in sys/types.h sys/socket.h
30106do :
30107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30108ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30109if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30110 cat >>confdefs.h <<_ACEOF
30111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30112_ACEOF
30113
30114fi
30115
30116done
30117
30118 #
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30120$as_echo_n "checking for send... " >&6; }
30121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30122/* end confdefs.h. */
30123
30124
30125#undef inline
30126#ifdef HAVE_WINDOWS_H
30127#ifndef WIN32_LEAN_AND_MEAN
30128#define WIN32_LEAN_AND_MEAN
30129#endif
30130#include <windows.h>
30131#ifdef HAVE_WINSOCK2_H
30132#include <winsock2.h>
30133#else
30134#ifdef HAVE_WINSOCK_H
30135#include <winsock.h>
30136#endif
30137#endif
30138#else
30139#ifdef HAVE_SYS_TYPES_H
30140#include <sys/types.h>
30141#endif
30142#ifdef HAVE_SYS_SOCKET_H
30143#include <sys/socket.h>
30144#endif
30145#endif
30146
30147int main (void)
30148{
30149
30150 send(0, 0, 0, 0);
30151
30152 ;
30153 return 0;
30154}
30155
30156_ACEOF
30157if ac_fn_c_try_link "$LINENO"; then :
30158
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30160$as_echo "yes" >&6; }
30161 curl_cv_send="yes"
30162
30163else
30164
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166$as_echo "no" >&6; }
30167 curl_cv_send="no"
30168
30169fi
30170rm -f core conftest.err conftest.$ac_objext \
30171 conftest$ac_exeext conftest.$ac_ext
30172 #
30173 if test "$curl_cv_send" = "yes"; then
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30175$as_echo_n "checking types of args and return type for send... " >&6; }
30176if ${curl_cv_func_send_args+:} false; then :
30177 $as_echo_n "(cached) " >&6
30178else
30179
30180 curl_cv_func_send_args="unknown"
30181 for send_retv in 'int' 'ssize_t'; do
30182 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30183 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30184 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30185 for send_arg4 in 'int' 'unsigned int'; do
30186 if test "$curl_cv_func_send_args" = "unknown"; then
30187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30188/* end confdefs.h. */
30189
30190
30191#undef inline
30192#ifdef HAVE_WINDOWS_H
30193#ifndef WIN32_LEAN_AND_MEAN
30194#define WIN32_LEAN_AND_MEAN
30195#endif
30196#include <windows.h>
30197#ifdef HAVE_WINSOCK2_H
30198#include <winsock2.h>
30199#else
30200#ifdef HAVE_WINSOCK_H
30201#include <winsock.h>
30202#endif
30203#endif
30204#define SENDCALLCONV PASCAL
30205#else
30206#ifdef HAVE_SYS_TYPES_H
30207#include <sys/types.h>
30208#endif
30209#ifdef HAVE_SYS_SOCKET_H
30210#include <sys/socket.h>
30211#endif
30212#define SENDCALLCONV
30213#endif
30214 extern $send_retv SENDCALLCONV
30215#ifdef __ANDROID__
30216__attribute__((overloadable))
30217#endif
30218 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30219
30220int main (void)
30221{
30222
30223 $send_arg1 s=0;
30224 $send_arg3 len=0;
30225 $send_arg4 flags=0;
30226 $send_retv res = send(s, 0, len, flags);
30227
30228 ;
30229 return 0;
30230}
30231
30232_ACEOF
30233if ac_fn_c_try_compile "$LINENO"; then :
30234
30235 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30236
30237fi
30238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30239 fi
30240 done
30241 done
30242 done
30243 done
30244 done
30245
30246fi
30247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30248$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30249 if test "$curl_cv_func_send_args" = "unknown"; then
30250 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30251 else
30252 send_prev_IFS=$IFS; IFS=','
30253 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30254 IFS=$send_prev_IFS
30255 shift
30256 #
30257 send_qual_type_arg2=$2
30258 #
30259
30260cat >>confdefs.h <<_ACEOF
30261#define SEND_TYPE_ARG1 $1
30262_ACEOF
30263
30264
30265cat >>confdefs.h <<_ACEOF
30266#define SEND_TYPE_ARG3 $3
30267_ACEOF
30268
30269
30270cat >>confdefs.h <<_ACEOF
30271#define SEND_TYPE_ARG4 $4
30272_ACEOF
30273
30274
30275cat >>confdefs.h <<_ACEOF
30276#define SEND_TYPE_RETV $5
30277_ACEOF
30278
30279 #
30280 prev_sh_opts=$-
30281 #
30282 case $prev_sh_opts in
30283 *f*)
30284 ;;
30285 *)
30286 set -f
30287 ;;
30288 esac
30289 #
30290 case "$send_qual_type_arg2" in
30291 const*)
30292 send_qual_arg2=const
30293 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30294 ;;
30295 *)
30296 send_qual_arg2=
30297 send_type_arg2=$send_qual_type_arg2
30298 ;;
30299 esac
30300 #
30301
30302cat >>confdefs.h <<_ACEOF
30303#define SEND_QUAL_ARG2 $send_qual_arg2
30304_ACEOF
30305
30306
30307cat >>confdefs.h <<_ACEOF
30308#define SEND_TYPE_ARG2 $send_type_arg2
30309_ACEOF
30310
30311 #
30312 case $prev_sh_opts in
30313 *f*)
30314 ;;
30315 *)
30316 set +f
30317 ;;
30318 esac
30319 #
30320
30321cat >>confdefs.h <<_ACEOF
30322#define HAVE_SEND 1
30323_ACEOF
30324
30325 curl_cv_func_send="yes"
30326 fi
30327 else
30328 as_fn_error $? "Unable to link function send" "$LINENO" 5
30329 fi
30330
30331
30332 for ac_header in sys/types.h sys/socket.h
30333do :
30334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30337 cat >>confdefs.h <<_ACEOF
30338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30339_ACEOF
30340
30341fi
30342
30343done
30344
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30346$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30347if ${curl_cv_msg_nosignal+:} false; then :
30348 $as_echo_n "(cached) " >&6
30349else
30350
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352/* end confdefs.h. */
30353
30354
30355#undef inline
30356#ifdef HAVE_WINDOWS_H
30357#ifndef WIN32_LEAN_AND_MEAN
30358#define WIN32_LEAN_AND_MEAN
30359#endif
30360#include <windows.h>
30361#ifdef HAVE_WINSOCK2_H
30362#include <winsock2.h>
30363#else
30364#ifdef HAVE_WINSOCK_H
30365#include <winsock.h>
30366#endif
30367#endif
30368#else
30369#ifdef HAVE_SYS_TYPES_H
30370#include <sys/types.h>
30371#endif
30372#ifdef HAVE_SYS_SOCKET_H
30373#include <sys/socket.h>
30374#endif
30375#endif
30376
30377int main (void)
30378{
30379
30380 int flag=MSG_NOSIGNAL;
30381
30382 ;
30383 return 0;
30384}
30385
30386_ACEOF
30387if ac_fn_c_try_compile "$LINENO"; then :
30388
30389 curl_cv_msg_nosignal="yes"
30390
30391else
30392
30393 curl_cv_msg_nosignal="no"
30394
30395fi
30396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30397
30398fi
30399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30400$as_echo "$curl_cv_msg_nosignal" >&6; }
30401 case "$curl_cv_msg_nosignal" in
30402 yes)
30403
30404cat >>confdefs.h <<_ACEOF
30405#define HAVE_MSG_NOSIGNAL 1
30406_ACEOF
30407
30408 ;;
30409 esac
30410
30411
30412
30413curl_includes_unistd="\
30414/* includes start */
30415#ifdef HAVE_SYS_TYPES_H
30416# include <sys/types.h>
30417#endif
30418#ifdef HAVE_UNISTD_H
30419# include <unistd.h>
30420#endif
30421/* includes end */"
30422 for ac_header in sys/types.h unistd.h
30423do :
30424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30425ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30426"
30427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30428 cat >>confdefs.h <<_ACEOF
30429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30430_ACEOF
30431
30432fi
30433
30434done
30435
30436
30437
30438 #
30439 tst_links_alarm="unknown"
30440 tst_proto_alarm="unknown"
30441 tst_compi_alarm="unknown"
30442 tst_allow_alarm="unknown"
30443 #
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30445$as_echo_n "checking if alarm can be linked... " >&6; }
30446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30447/* end confdefs.h. */
30448
30449
30450#define alarm innocuous_alarm
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
30456#undef alarm
30457#ifdef __cplusplus
30458extern "C"
30459#endif
30460char alarm ();
30461#if defined __stub_alarm || defined __stub___alarm
30462choke me
30463#endif
30464
30465int main (void)
30466{
30467return alarm ();
30468 ;
30469 return 0;
30470}
30471
30472_ACEOF
30473if ac_fn_c_try_link "$LINENO"; then :
30474
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30476$as_echo "yes" >&6; }
30477 tst_links_alarm="yes"
30478
30479else
30480
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30482$as_echo "no" >&6; }
30483 tst_links_alarm="no"
30484
30485fi
30486rm -f core conftest.err conftest.$ac_objext \
30487 conftest$ac_exeext conftest.$ac_ext
30488 #
30489 if test "$tst_links_alarm" = "yes"; then
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30491$as_echo_n "checking if alarm is prototyped... " >&6; }
30492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30493/* end confdefs.h. */
30494
30495 $curl_includes_unistd
30496
30497_ACEOF
30498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30499 $EGREP "alarm" >/dev/null 2>&1; then :
30500
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30502$as_echo "yes" >&6; }
30503 tst_proto_alarm="yes"
30504
30505else
30506
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30508$as_echo "no" >&6; }
30509 tst_proto_alarm="no"
30510
30511fi
30512rm -f conftest*
30513
30514 fi
30515 #
30516 if test "$tst_proto_alarm" = "yes"; then
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30518$as_echo_n "checking if alarm is compilable... " >&6; }
30519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30520/* end confdefs.h. */
30521
30522
30523 $curl_includes_unistd
30524
30525int main (void)
30526{
30527
30528 if(0 != alarm(0))
30529 return 1;
30530
30531 ;
30532 return 0;
30533}
30534
30535_ACEOF
30536if ac_fn_c_try_compile "$LINENO"; then :
30537
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30539$as_echo "yes" >&6; }
30540 tst_compi_alarm="yes"
30541
30542else
30543
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30545$as_echo "no" >&6; }
30546 tst_compi_alarm="no"
30547
30548fi
30549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30550 fi
30551 #
30552 if test "$tst_compi_alarm" = "yes"; then
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30554$as_echo_n "checking if alarm usage allowed... " >&6; }
30555 if test "x$curl_disallow_alarm" != "xyes"; then
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30557$as_echo "yes" >&6; }
30558 tst_allow_alarm="yes"
30559 else
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561$as_echo "no" >&6; }
30562 tst_allow_alarm="no"
30563 fi
30564 fi
30565 #
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30567$as_echo_n "checking if alarm might be used... " >&6; }
30568 if test "$tst_links_alarm" = "yes" &&
30569 test "$tst_proto_alarm" = "yes" &&
30570 test "$tst_compi_alarm" = "yes" &&
30571 test "$tst_allow_alarm" = "yes"; then
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30573$as_echo "yes" >&6; }
30574
30575cat >>confdefs.h <<_ACEOF
30576#define HAVE_ALARM 1
30577_ACEOF
30578
30579 curl_cv_func_alarm="yes"
30580 else
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30582$as_echo "no" >&6; }
30583 curl_cv_func_alarm="no"
30584 fi
30585
30586
30587curl_includes_string="\
30588/* includes start */
30589#ifdef HAVE_SYS_TYPES_H
30590# include <sys/types.h>
30591#endif
30592#ifdef HAVE_STRING_H
30593# include <string.h>
30594#endif
30595#ifdef HAVE_STRINGS_H
30596# include <strings.h>
30597#endif
30598/* includes end */"
30599 for ac_header in sys/types.h string.h strings.h
30600do :
30601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30602ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30603"
30604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30605 cat >>confdefs.h <<_ACEOF
30606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30607_ACEOF
30608
30609fi
30610
30611done
30612
30613
30614
30615curl_includes_libgen="\
30616/* includes start */
30617#ifdef HAVE_SYS_TYPES_H
30618# include <sys/types.h>
30619#endif
30620#ifdef HAVE_LIBGEN_H
30621# include <libgen.h>
30622#endif
30623/* includes end */"
30624 for ac_header in sys/types.h libgen.h
30625do :
30626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30627ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30628"
30629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30630 cat >>confdefs.h <<_ACEOF
30631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30632_ACEOF
30633
30634fi
30635
30636done
30637
30638
30639
30640 #
30641 tst_links_basename="unknown"
30642 tst_proto_basename="unknown"
30643 tst_compi_basename="unknown"
30644 tst_allow_basename="unknown"
30645 #
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30647$as_echo_n "checking if basename can be linked... " >&6; }
30648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30649/* end confdefs.h. */
30650
30651
30652#define basename innocuous_basename
30653#ifdef __STDC__
30654# include <limits.h>
30655#else
30656# include <assert.h>
30657#endif
30658#undef basename
30659#ifdef __cplusplus
30660extern "C"
30661#endif
30662char basename ();
30663#if defined __stub_basename || defined __stub___basename
30664choke me
30665#endif
30666
30667int main (void)
30668{
30669return basename ();
30670 ;
30671 return 0;
30672}
30673
30674_ACEOF
30675if ac_fn_c_try_link "$LINENO"; then :
30676
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30678$as_echo "yes" >&6; }
30679 tst_links_basename="yes"
30680
30681else
30682
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30684$as_echo "no" >&6; }
30685 tst_links_basename="no"
30686
30687fi
30688rm -f core conftest.err conftest.$ac_objext \
30689 conftest$ac_exeext conftest.$ac_ext
30690 #
30691 if test "$tst_links_basename" = "yes"; then
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30693$as_echo_n "checking if basename is prototyped... " >&6; }
30694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30695/* end confdefs.h. */
30696
30697 $curl_includes_string
30698 $curl_includes_libgen
30699 $curl_includes_unistd
30700
30701_ACEOF
30702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30703 $EGREP "basename" >/dev/null 2>&1; then :
30704
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30706$as_echo "yes" >&6; }
30707 tst_proto_basename="yes"
30708
30709else
30710
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30712$as_echo "no" >&6; }
30713 tst_proto_basename="no"
30714
30715fi
30716rm -f conftest*
30717
30718 fi
30719 #
30720 if test "$tst_proto_basename" = "yes"; then
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30722$as_echo_n "checking if basename is compilable... " >&6; }
30723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30724/* end confdefs.h. */
30725
30726
30727 $curl_includes_string
30728 $curl_includes_libgen
30729 $curl_includes_unistd
30730
30731int main (void)
30732{
30733
30734 if(0 != basename(0))
30735 return 1;
30736
30737 ;
30738 return 0;
30739}
30740
30741_ACEOF
30742if ac_fn_c_try_compile "$LINENO"; then :
30743
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
30746 tst_compi_basename="yes"
30747
30748else
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30751$as_echo "no" >&6; }
30752 tst_compi_basename="no"
30753
30754fi
30755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30756 fi
30757 #
30758 if test "$tst_compi_basename" = "yes"; then
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30760$as_echo_n "checking if basename usage allowed... " >&6; }
30761 if test "x$curl_disallow_basename" != "xyes"; then
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30763$as_echo "yes" >&6; }
30764 tst_allow_basename="yes"
30765 else
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30767$as_echo "no" >&6; }
30768 tst_allow_basename="no"
30769 fi
30770 fi
30771 #
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30773$as_echo_n "checking if basename might be used... " >&6; }
30774 if test "$tst_links_basename" = "yes" &&
30775 test "$tst_proto_basename" = "yes" &&
30776 test "$tst_compi_basename" = "yes" &&
30777 test "$tst_allow_basename" = "yes"; then
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30779$as_echo "yes" >&6; }
30780
30781cat >>confdefs.h <<_ACEOF
30782#define HAVE_BASENAME 1
30783_ACEOF
30784
30785 curl_cv_func_basename="yes"
30786 else
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30788$as_echo "no" >&6; }
30789 curl_cv_func_basename="no"
30790 fi
30791
30792
30793curl_includes_socket="\
30794/* includes start */
30795#ifdef HAVE_SYS_TYPES_H
30796# include <sys/types.h>
30797#endif
30798#ifdef HAVE_SOCKET_H
30799# include <socket.h>
30800#endif
30801/* includes end */"
30802 for ac_header in sys/types.h socket.h
30803do :
30804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30805ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30806"
30807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30808 cat >>confdefs.h <<_ACEOF
30809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30810_ACEOF
30811
30812fi
30813
30814done
30815
30816
30817
30818 #
30819 tst_links_closesocket="unknown"
30820 tst_proto_closesocket="unknown"
30821 tst_compi_closesocket="unknown"
30822 tst_allow_closesocket="unknown"
30823 #
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30825$as_echo_n "checking if closesocket can be linked... " >&6; }
30826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30827/* end confdefs.h. */
30828
30829
30830 $curl_includes_winsock2
30831 $curl_includes_socket
30832
30833int main (void)
30834{
30835
30836 if(0 != closesocket(0))
30837 return 1;
30838
30839 ;
30840 return 0;
30841}
30842
30843_ACEOF
30844if ac_fn_c_try_link "$LINENO"; then :
30845
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847$as_echo "yes" >&6; }
30848 tst_links_closesocket="yes"
30849
30850else
30851
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30853$as_echo "no" >&6; }
30854 tst_links_closesocket="no"
30855
30856fi
30857rm -f core conftest.err conftest.$ac_objext \
30858 conftest$ac_exeext conftest.$ac_ext
30859 #
30860 if test "$tst_links_closesocket" = "yes"; then
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30862$as_echo_n "checking if closesocket is prototyped... " >&6; }
30863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864/* end confdefs.h. */
30865
30866 $curl_includes_winsock2
30867 $curl_includes_socket
30868
30869_ACEOF
30870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30871 $EGREP "closesocket" >/dev/null 2>&1; then :
30872
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30874$as_echo "yes" >&6; }
30875 tst_proto_closesocket="yes"
30876
30877else
30878
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30880$as_echo "no" >&6; }
30881 tst_proto_closesocket="no"
30882
30883fi
30884rm -f conftest*
30885
30886 fi
30887 #
30888 if test "$tst_proto_closesocket" = "yes"; then
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30890$as_echo_n "checking if closesocket is compilable... " >&6; }
30891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30892/* end confdefs.h. */
30893
30894
30895 $curl_includes_winsock2
30896 $curl_includes_socket
30897
30898int main (void)
30899{
30900
30901 if(0 != closesocket(0))
30902 return 1;
30903
30904 ;
30905 return 0;
30906}
30907
30908_ACEOF
30909if ac_fn_c_try_compile "$LINENO"; then :
30910
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30912$as_echo "yes" >&6; }
30913 tst_compi_closesocket="yes"
30914
30915else
30916
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30918$as_echo "no" >&6; }
30919 tst_compi_closesocket="no"
30920
30921fi
30922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30923 fi
30924 #
30925 if test "$tst_compi_closesocket" = "yes"; then
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30927$as_echo_n "checking if closesocket usage allowed... " >&6; }
30928 if test "x$curl_disallow_closesocket" != "xyes"; then
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30930$as_echo "yes" >&6; }
30931 tst_allow_closesocket="yes"
30932 else
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30934$as_echo "no" >&6; }
30935 tst_allow_closesocket="no"
30936 fi
30937 fi
30938 #
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30940$as_echo_n "checking if closesocket might be used... " >&6; }
30941 if test "$tst_links_closesocket" = "yes" &&
30942 test "$tst_proto_closesocket" = "yes" &&
30943 test "$tst_compi_closesocket" = "yes" &&
30944 test "$tst_allow_closesocket" = "yes"; then
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30946$as_echo "yes" >&6; }
30947
30948cat >>confdefs.h <<_ACEOF
30949#define HAVE_CLOSESOCKET 1
30950_ACEOF
30951
30952 curl_cv_func_closesocket="yes"
30953 else
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30955$as_echo "no" >&6; }
30956 curl_cv_func_closesocket="no"
30957 fi
30958
30959
30960 #
30961 tst_links_closesocket_camel="unknown"
30962 tst_proto_closesocket_camel="unknown"
30963 tst_compi_closesocket_camel="unknown"
30964 tst_allow_closesocket_camel="unknown"
30965 #
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30967$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30969/* end confdefs.h. */
30970
30971
30972 $curl_includes_sys_socket
30973
30974int main (void)
30975{
30976
30977 if(0 != CloseSocket(0))
30978 return 1;
30979
30980 ;
30981 return 0;
30982}
30983
30984_ACEOF
30985if ac_fn_c_try_link "$LINENO"; then :
30986
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30988$as_echo "yes" >&6; }
30989 tst_links_closesocket_camel="yes"
30990
30991else
30992
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30994$as_echo "no" >&6; }
30995 tst_links_closesocket_camel="no"
30996
30997fi
30998rm -f core conftest.err conftest.$ac_objext \
30999 conftest$ac_exeext conftest.$ac_ext
31000 #
31001 if test "$tst_links_closesocket_camel" = "yes"; then
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31003$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31005/* end confdefs.h. */
31006
31007 $curl_includes_sys_socket
31008
31009_ACEOF
31010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31011 $EGREP "CloseSocket" >/dev/null 2>&1; then :
31012
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31014$as_echo "yes" >&6; }
31015 tst_proto_closesocket_camel="yes"
31016
31017else
31018
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31020$as_echo "no" >&6; }
31021 tst_proto_closesocket_camel="no"
31022
31023fi
31024rm -f conftest*
31025
31026 fi
31027 #
31028 if test "$tst_proto_closesocket_camel" = "yes"; then
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31030$as_echo_n "checking if CloseSocket is compilable... " >&6; }
31031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31032/* end confdefs.h. */
31033
31034
31035 $curl_includes_sys_socket
31036
31037int main (void)
31038{
31039
31040 if(0 != CloseSocket(0))
31041 return 1;
31042
31043 ;
31044 return 0;
31045}
31046
31047_ACEOF
31048if ac_fn_c_try_compile "$LINENO"; then :
31049
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31051$as_echo "yes" >&6; }
31052 tst_compi_closesocket_camel="yes"
31053
31054else
31055
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057$as_echo "no" >&6; }
31058 tst_compi_closesocket_camel="no"
31059
31060fi
31061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31062 fi
31063 #
31064 if test "$tst_compi_closesocket_camel" = "yes"; then
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31066$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31067 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31069$as_echo "yes" >&6; }
31070 tst_allow_closesocket_camel="yes"
31071 else
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31073$as_echo "no" >&6; }
31074 tst_allow_closesocket_camel="no"
31075 fi
31076 fi
31077 #
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31079$as_echo_n "checking if CloseSocket might be used... " >&6; }
31080 if test "$tst_links_closesocket_camel" = "yes" &&
31081 test "$tst_proto_closesocket_camel" = "yes" &&
31082 test "$tst_compi_closesocket_camel" = "yes" &&
31083 test "$tst_allow_closesocket_camel" = "yes"; then
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31085$as_echo "yes" >&6; }
31086
31087cat >>confdefs.h <<_ACEOF
31088#define HAVE_CLOSESOCKET_CAMEL 1
31089_ACEOF
31090
31091 curl_cv_func_closesocket_camel="yes"
31092 else
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31094$as_echo "no" >&6; }
31095 curl_cv_func_closesocket_camel="no"
31096 fi
31097
31098
31099 #
31100 tst_links_connect="unknown"
31101 tst_proto_connect="unknown"
31102 tst_compi_connect="unknown"
31103 tst_allow_connect="unknown"
31104 #
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31106$as_echo_n "checking if connect can be linked... " >&6; }
31107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31108/* end confdefs.h. */
31109
31110
31111 $curl_includes_winsock2
31112 $curl_includes_sys_socket
31113 $curl_includes_socket
31114
31115int main (void)
31116{
31117
31118 if(0 != connect(0, 0, 0))
31119 return 1;
31120
31121 ;
31122 return 0;
31123}
31124
31125_ACEOF
31126if ac_fn_c_try_link "$LINENO"; then :
31127
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31129$as_echo "yes" >&6; }
31130 tst_links_connect="yes"
31131
31132else
31133
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31135$as_echo "no" >&6; }
31136 tst_links_connect="no"
31137
31138fi
31139rm -f core conftest.err conftest.$ac_objext \
31140 conftest$ac_exeext conftest.$ac_ext
31141 #
31142 if test "$tst_links_connect" = "yes"; then
31143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31144$as_echo_n "checking if connect is prototyped... " >&6; }
31145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31146/* end confdefs.h. */
31147
31148 $curl_includes_winsock2
31149 $curl_includes_sys_socket
31150 $curl_includes_socket
31151
31152_ACEOF
31153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31154 $EGREP "connect" >/dev/null 2>&1; then :
31155
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31157$as_echo "yes" >&6; }
31158 tst_proto_connect="yes"
31159
31160else
31161
31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31163$as_echo "no" >&6; }
31164 tst_proto_connect="no"
31165
31166fi
31167rm -f conftest*
31168
31169 fi
31170 #
31171 if test "$tst_proto_connect" = "yes"; then
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31173$as_echo_n "checking if connect is compilable... " >&6; }
31174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31175/* end confdefs.h. */
31176
31177
31178 $curl_includes_winsock2
31179 $curl_includes_sys_socket
31180 $curl_includes_socket
31181
31182int main (void)
31183{
31184
31185 if(0 != connect(0, 0, 0))
31186 return 1;
31187
31188 ;
31189 return 0;
31190}
31191
31192_ACEOF
31193if ac_fn_c_try_compile "$LINENO"; then :
31194
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196$as_echo "yes" >&6; }
31197 tst_compi_connect="yes"
31198
31199else
31200
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31202$as_echo "no" >&6; }
31203 tst_compi_connect="no"
31204
31205fi
31206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31207 fi
31208 #
31209 if test "$tst_compi_connect" = "yes"; then
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31211$as_echo_n "checking if connect usage allowed... " >&6; }
31212 if test "x$curl_disallow_connect" != "xyes"; then
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31214$as_echo "yes" >&6; }
31215 tst_allow_connect="yes"
31216 else
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31218$as_echo "no" >&6; }
31219 tst_allow_connect="no"
31220 fi
31221 fi
31222 #
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31224$as_echo_n "checking if connect might be used... " >&6; }
31225 if test "$tst_links_connect" = "yes" &&
31226 test "$tst_proto_connect" = "yes" &&
31227 test "$tst_compi_connect" = "yes" &&
31228 test "$tst_allow_connect" = "yes"; then
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31230$as_echo "yes" >&6; }
31231
31232cat >>confdefs.h <<_ACEOF
31233#define HAVE_CONNECT 1
31234_ACEOF
31235
31236 curl_cv_func_connect="yes"
31237 else
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31239$as_echo "no" >&6; }
31240 curl_cv_func_connect="no"
31241 fi
31242
31243
31244curl_includes_fcntl="\
31245/* includes start */
31246#ifdef HAVE_SYS_TYPES_H
31247# include <sys/types.h>
31248#endif
31249#ifdef HAVE_UNISTD_H
31250# include <unistd.h>
31251#endif
31252#ifdef HAVE_FCNTL_H
31253# include <fcntl.h>
31254#endif
31255/* includes end */"
31256 for ac_header in sys/types.h unistd.h fcntl.h
31257do :
31258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31259ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31260"
31261if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31262 cat >>confdefs.h <<_ACEOF
31263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31264_ACEOF
31265
31266fi
31267
31268done
31269
31270
31271
31272 #
31273 tst_links_fcntl="unknown"
31274 tst_proto_fcntl="unknown"
31275 tst_compi_fcntl="unknown"
31276 tst_allow_fcntl="unknown"
31277 #
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31279$as_echo_n "checking if fcntl can be linked... " >&6; }
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281/* end confdefs.h. */
31282
31283
31284#define fcntl innocuous_fcntl
31285#ifdef __STDC__
31286# include <limits.h>
31287#else
31288# include <assert.h>
31289#endif
31290#undef fcntl
31291#ifdef __cplusplus
31292extern "C"
31293#endif
31294char fcntl ();
31295#if defined __stub_fcntl || defined __stub___fcntl
31296choke me
31297#endif
31298
31299int main (void)
31300{
31301return fcntl ();
31302 ;
31303 return 0;
31304}
31305
31306_ACEOF
31307if ac_fn_c_try_link "$LINENO"; then :
31308
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31310$as_echo "yes" >&6; }
31311 tst_links_fcntl="yes"
31312
31313else
31314
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31316$as_echo "no" >&6; }
31317 tst_links_fcntl="no"
31318
31319fi
31320rm -f core conftest.err conftest.$ac_objext \
31321 conftest$ac_exeext conftest.$ac_ext
31322 #
31323 if test "$tst_links_fcntl" = "yes"; then
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31325$as_echo_n "checking if fcntl is prototyped... " >&6; }
31326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31327/* end confdefs.h. */
31328
31329 $curl_includes_fcntl
31330
31331_ACEOF
31332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31333 $EGREP "fcntl" >/dev/null 2>&1; then :
31334
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31336$as_echo "yes" >&6; }
31337 tst_proto_fcntl="yes"
31338
31339else
31340
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31342$as_echo "no" >&6; }
31343 tst_proto_fcntl="no"
31344
31345fi
31346rm -f conftest*
31347
31348 fi
31349 #
31350 if test "$tst_proto_fcntl" = "yes"; then
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31352$as_echo_n "checking if fcntl is compilable... " >&6; }
31353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31354/* end confdefs.h. */
31355
31356
31357 $curl_includes_fcntl
31358
31359int main (void)
31360{
31361
31362 if(0 != fcntl(0, 0, 0))
31363 return 1;
31364
31365 ;
31366 return 0;
31367}
31368
31369_ACEOF
31370if ac_fn_c_try_compile "$LINENO"; then :
31371
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31373$as_echo "yes" >&6; }
31374 tst_compi_fcntl="yes"
31375
31376else
31377
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379$as_echo "no" >&6; }
31380 tst_compi_fcntl="no"
31381
31382fi
31383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31384 fi
31385 #
31386 if test "$tst_compi_fcntl" = "yes"; then
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31388$as_echo_n "checking if fcntl usage allowed... " >&6; }
31389 if test "x$curl_disallow_fcntl" != "xyes"; then
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391$as_echo "yes" >&6; }
31392 tst_allow_fcntl="yes"
31393 else
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31395$as_echo "no" >&6; }
31396 tst_allow_fcntl="no"
31397 fi
31398 fi
31399 #
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31401$as_echo_n "checking if fcntl might be used... " >&6; }
31402 if test "$tst_links_fcntl" = "yes" &&
31403 test "$tst_proto_fcntl" = "yes" &&
31404 test "$tst_compi_fcntl" = "yes" &&
31405 test "$tst_allow_fcntl" = "yes"; then
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31407$as_echo "yes" >&6; }
31408
31409cat >>confdefs.h <<_ACEOF
31410#define HAVE_FCNTL 1
31411_ACEOF
31412
31413 curl_cv_func_fcntl="yes"
31414
31415 #
31416 tst_compi_fcntl_o_nonblock="unknown"
31417 tst_allow_fcntl_o_nonblock="unknown"
31418 #
31419 case $host_os in
31420 sunos4* | aix3* | beos*)
31421 curl_disallow_fcntl_o_nonblock="yes"
31422 ;;
31423 esac
31424 #
31425 if test "$curl_cv_func_fcntl" = "yes"; then
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31427$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31429/* end confdefs.h. */
31430
31431
31432 $curl_includes_fcntl
31433
31434int main (void)
31435{
31436
31437 int flags = 0;
31438 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31439 return 1;
31440
31441 ;
31442 return 0;
31443}
31444
31445_ACEOF
31446if ac_fn_c_try_compile "$LINENO"; then :
31447
31448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31449$as_echo "yes" >&6; }
31450 tst_compi_fcntl_o_nonblock="yes"
31451
31452else
31453
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31455$as_echo "no" >&6; }
31456 tst_compi_fcntl_o_nonblock="no"
31457
31458fi
31459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31460 fi
31461 #
31462 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31464$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31465 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31467$as_echo "yes" >&6; }
31468 tst_allow_fcntl_o_nonblock="yes"
31469 else
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31471$as_echo "no" >&6; }
31472 tst_allow_fcntl_o_nonblock="no"
31473 fi
31474 fi
31475 #
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31477$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31478 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31479 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31481$as_echo "yes" >&6; }
31482
31483cat >>confdefs.h <<_ACEOF
31484#define HAVE_FCNTL_O_NONBLOCK 1
31485_ACEOF
31486
31487 curl_cv_func_fcntl_o_nonblock="yes"
31488 else
31489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31490$as_echo "no" >&6; }
31491 curl_cv_func_fcntl_o_nonblock="no"
31492 fi
31493
31494 else
31495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31496$as_echo "no" >&6; }
31497 curl_cv_func_fcntl="no"
31498 fi
31499
31500
31501curl_includes_stdio="\
31502/* includes start */
31503#ifdef HAVE_SYS_TYPES_H
31504# include <sys/types.h>
31505#endif
31506#ifdef HAVE_STDIO_H
31507# include <stdio.h>
31508#endif
31509/* includes end */"
31510 for ac_header in sys/types.h stdio.h
31511do :
31512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31513ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31514"
31515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31516 cat >>confdefs.h <<_ACEOF
31517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31518_ACEOF
31519
31520fi
31521
31522done
31523
31524
31525
31526 #
31527 tst_links_fdopen="unknown"
31528 tst_proto_fdopen="unknown"
31529 tst_compi_fdopen="unknown"
31530 tst_allow_fdopen="unknown"
31531 #
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31533$as_echo_n "checking if fdopen can be linked... " >&6; }
31534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31535/* end confdefs.h. */
31536
31537
31538#define fdopen innocuous_fdopen
31539#ifdef __STDC__
31540# include <limits.h>
31541#else
31542# include <assert.h>
31543#endif
31544#undef fdopen
31545#ifdef __cplusplus
31546extern "C"
31547#endif
31548char fdopen ();
31549#if defined __stub_fdopen || defined __stub___fdopen
31550choke me
31551#endif
31552
31553int main (void)
31554{
31555return fdopen ();
31556 ;
31557 return 0;
31558}
31559
31560_ACEOF
31561if ac_fn_c_try_link "$LINENO"; then :
31562
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31564$as_echo "yes" >&6; }
31565 tst_links_fdopen="yes"
31566
31567else
31568
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31570$as_echo "no" >&6; }
31571 tst_links_fdopen="no"
31572
31573fi
31574rm -f core conftest.err conftest.$ac_objext \
31575 conftest$ac_exeext conftest.$ac_ext
31576 #
31577 if test "$tst_links_fdopen" = "yes"; then
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31579$as_echo_n "checking if fdopen is prototyped... " >&6; }
31580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31581/* end confdefs.h. */
31582
31583 $curl_includes_stdio
31584
31585_ACEOF
31586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31587 $EGREP "fdopen" >/dev/null 2>&1; then :
31588
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31590$as_echo "yes" >&6; }
31591 tst_proto_fdopen="yes"
31592
31593else
31594
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31596$as_echo "no" >&6; }
31597 tst_proto_fdopen="no"
31598
31599fi
31600rm -f conftest*
31601
31602 fi
31603 #
31604 if test "$tst_proto_fdopen" = "yes"; then
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31606$as_echo_n "checking if fdopen is compilable... " >&6; }
31607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608/* end confdefs.h. */
31609
31610
31611 $curl_includes_stdio
31612
31613int main (void)
31614{
31615
31616 if(0 != fdopen(0, 0))
31617 return 1;
31618
31619 ;
31620 return 0;
31621}
31622
31623_ACEOF
31624if ac_fn_c_try_compile "$LINENO"; then :
31625
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31627$as_echo "yes" >&6; }
31628 tst_compi_fdopen="yes"
31629
31630else
31631
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31633$as_echo "no" >&6; }
31634 tst_compi_fdopen="no"
31635
31636fi
31637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31638 fi
31639 #
31640 if test "$tst_compi_fdopen" = "yes"; then
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31642$as_echo_n "checking if fdopen usage allowed... " >&6; }
31643 if test "x$curl_disallow_fdopen" != "xyes"; then
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31645$as_echo "yes" >&6; }
31646 tst_allow_fdopen="yes"
31647 else
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31649$as_echo "no" >&6; }
31650 tst_allow_fdopen="no"
31651 fi
31652 fi
31653 #
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31655$as_echo_n "checking if fdopen might be used... " >&6; }
31656 if test "$tst_links_fdopen" = "yes" &&
31657 test "$tst_proto_fdopen" = "yes" &&
31658 test "$tst_compi_fdopen" = "yes" &&
31659 test "$tst_allow_fdopen" = "yes"; then
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31661$as_echo "yes" >&6; }
31662
31663cat >>confdefs.h <<_ACEOF
31664#define HAVE_FDOPEN 1
31665_ACEOF
31666
31667 curl_cv_func_fdopen="yes"
31668 else
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31670$as_echo "no" >&6; }
31671 curl_cv_func_fdopen="no"
31672 fi
31673
31674
31675curl_includes_netdb="\
31676/* includes start */
31677#ifdef HAVE_SYS_TYPES_H
31678# include <sys/types.h>
31679#endif
31680#ifdef HAVE_NETDB_H
31681# include <netdb.h>
31682#endif
31683/* includes end */"
31684 for ac_header in sys/types.h netdb.h
31685do :
31686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31687ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31688"
31689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31690 cat >>confdefs.h <<_ACEOF
31691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31692_ACEOF
31693
31694fi
31695
31696done
31697
31698
31699
31700 #
31701 tst_links_freeaddrinfo="unknown"
31702 tst_proto_freeaddrinfo="unknown"
31703 tst_compi_freeaddrinfo="unknown"
31704 tst_allow_freeaddrinfo="unknown"
31705 #
31706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31707$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31709/* end confdefs.h. */
31710
31711
31712 $curl_includes_ws2tcpip
31713 $curl_includes_sys_socket
31714 $curl_includes_netdb
31715
31716int main (void)
31717{
31718
31719 freeaddrinfo(0);
31720
31721 ;
31722 return 0;
31723}
31724
31725_ACEOF
31726if ac_fn_c_try_link "$LINENO"; then :
31727
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31729$as_echo "yes" >&6; }
31730 tst_links_freeaddrinfo="yes"
31731
31732else
31733
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735$as_echo "no" >&6; }
31736 tst_links_freeaddrinfo="no"
31737
31738fi
31739rm -f core conftest.err conftest.$ac_objext \
31740 conftest$ac_exeext conftest.$ac_ext
31741 #
31742 if test "$tst_links_freeaddrinfo" = "yes"; then
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31744$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31746/* end confdefs.h. */
31747
31748 $curl_includes_ws2tcpip
31749 $curl_includes_sys_socket
31750 $curl_includes_netdb
31751
31752_ACEOF
31753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31754 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31755
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31757$as_echo "yes" >&6; }
31758 tst_proto_freeaddrinfo="yes"
31759
31760else
31761
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31763$as_echo "no" >&6; }
31764 tst_proto_freeaddrinfo="no"
31765
31766fi
31767rm -f conftest*
31768
31769 fi
31770 #
31771 if test "$tst_proto_freeaddrinfo" = "yes"; then
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31773$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31775/* end confdefs.h. */
31776
31777
31778 $curl_includes_ws2tcpip
31779 $curl_includes_sys_socket
31780 $curl_includes_netdb
31781
31782int main (void)
31783{
31784
31785 freeaddrinfo(0);
31786
31787 ;
31788 return 0;
31789}
31790
31791_ACEOF
31792if ac_fn_c_try_compile "$LINENO"; then :
31793
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31795$as_echo "yes" >&6; }
31796 tst_compi_freeaddrinfo="yes"
31797
31798else
31799
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31801$as_echo "no" >&6; }
31802 tst_compi_freeaddrinfo="no"
31803
31804fi
31805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31806 fi
31807 #
31808 if test "$tst_compi_freeaddrinfo" = "yes"; then
31809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31810$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31811 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31813$as_echo "yes" >&6; }
31814 tst_allow_freeaddrinfo="yes"
31815 else
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31817$as_echo "no" >&6; }
31818 tst_allow_freeaddrinfo="no"
31819 fi
31820 fi
31821 #
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31823$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31824 if test "$tst_links_freeaddrinfo" = "yes" &&
31825 test "$tst_proto_freeaddrinfo" = "yes" &&
31826 test "$tst_compi_freeaddrinfo" = "yes" &&
31827 test "$tst_allow_freeaddrinfo" = "yes"; then
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31829$as_echo "yes" >&6; }
31830
31831cat >>confdefs.h <<_ACEOF
31832#define HAVE_FREEADDRINFO 1
31833_ACEOF
31834
31835 curl_cv_func_freeaddrinfo="yes"
31836 else
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31838$as_echo "no" >&6; }
31839 curl_cv_func_freeaddrinfo="no"
31840 fi
31841
31842
31843curl_includes_ifaddrs="\
31844/* includes start */
31845#ifdef HAVE_SYS_TYPES_H
31846# include <sys/types.h>
31847#endif
31848#ifdef HAVE_SYS_SOCKET_H
31849# include <sys/socket.h>
31850#endif
31851#ifdef HAVE_NETINET_IN_H
31852# include <netinet/in.h>
31853#endif
31854#ifdef HAVE_IFADDRS_H
31855# include <ifaddrs.h>
31856#endif
31857/* includes end */"
31858 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31859do :
31860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31862"
31863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31864 cat >>confdefs.h <<_ACEOF
31865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31866_ACEOF
31867
31868fi
31869
31870done
31871
31872
31873
31874 #
31875 tst_links_freeifaddrs="unknown"
31876 tst_proto_freeifaddrs="unknown"
31877 tst_compi_freeifaddrs="unknown"
31878 tst_allow_freeifaddrs="unknown"
31879 #
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31881$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31883/* end confdefs.h. */
31884
31885
31886#define freeifaddrs innocuous_freeifaddrs
31887#ifdef __STDC__
31888# include <limits.h>
31889#else
31890# include <assert.h>
31891#endif
31892#undef freeifaddrs
31893#ifdef __cplusplus
31894extern "C"
31895#endif
31896char freeifaddrs ();
31897#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31898choke me
31899#endif
31900
31901int main (void)
31902{
31903return freeifaddrs ();
31904 ;
31905 return 0;
31906}
31907
31908_ACEOF
31909if ac_fn_c_try_link "$LINENO"; then :
31910
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31912$as_echo "yes" >&6; }
31913 tst_links_freeifaddrs="yes"
31914
31915else
31916
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918$as_echo "no" >&6; }
31919 tst_links_freeifaddrs="no"
31920
31921fi
31922rm -f core conftest.err conftest.$ac_objext \
31923 conftest$ac_exeext conftest.$ac_ext
31924 #
31925 if test "$tst_links_freeifaddrs" = "yes"; then
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31927$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31929/* end confdefs.h. */
31930
31931 $curl_includes_ifaddrs
31932
31933_ACEOF
31934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31935 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31936
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31938$as_echo "yes" >&6; }
31939 tst_proto_freeifaddrs="yes"
31940
31941else
31942
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31944$as_echo "no" >&6; }
31945 tst_proto_freeifaddrs="no"
31946
31947fi
31948rm -f conftest*
31949
31950 fi
31951 #
31952 if test "$tst_proto_freeifaddrs" = "yes"; then
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31954$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31956/* end confdefs.h. */
31957
31958
31959 $curl_includes_ifaddrs
31960
31961int main (void)
31962{
31963
31964 freeifaddrs(0);
31965
31966 ;
31967 return 0;
31968}
31969
31970_ACEOF
31971if ac_fn_c_try_compile "$LINENO"; then :
31972
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31974$as_echo "yes" >&6; }
31975 tst_compi_freeifaddrs="yes"
31976
31977else
31978
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31980$as_echo "no" >&6; }
31981 tst_compi_freeifaddrs="no"
31982
31983fi
31984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31985 fi
31986 #
31987 if test "$tst_compi_freeifaddrs" = "yes"; then
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31989$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31990 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992$as_echo "yes" >&6; }
31993 tst_allow_freeifaddrs="yes"
31994 else
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996$as_echo "no" >&6; }
31997 tst_allow_freeifaddrs="no"
31998 fi
31999 fi
32000 #
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32002$as_echo_n "checking if freeifaddrs might be used... " >&6; }
32003 if test "$tst_links_freeifaddrs" = "yes" &&
32004 test "$tst_proto_freeifaddrs" = "yes" &&
32005 test "$tst_compi_freeifaddrs" = "yes" &&
32006 test "$tst_allow_freeifaddrs" = "yes"; then
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32008$as_echo "yes" >&6; }
32009
32010cat >>confdefs.h <<_ACEOF
32011#define HAVE_FREEIFADDRS 1
32012_ACEOF
32013
32014 curl_cv_func_freeifaddrs="yes"
32015 else
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32017$as_echo "no" >&6; }
32018 curl_cv_func_freeifaddrs="no"
32019 fi
32020
32021
32022curl_includes_sys_xattr="\
32023/* includes start */
32024#ifdef HAVE_SYS_TYPES_H
32025# include <sys/types.h>
32026#endif
32027#ifdef HAVE_SYS_XATTR_H
32028# include <sys/xattr.h>
32029#endif
32030/* includes end */"
32031 for ac_header in sys/types.h sys/xattr.h
32032do :
32033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32035"
32036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32037 cat >>confdefs.h <<_ACEOF
32038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32039_ACEOF
32040
32041fi
32042
32043done
32044
32045
32046
32047 #
32048 tst_links_fsetxattr="unknown"
32049 tst_proto_fsetxattr="unknown"
32050 tst_compi_fsetxattr="unknown"
32051 tst_allow_fsetxattr="unknown"
32052 tst_nargs_fsetxattr="unknown"
32053 #
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32055$as_echo_n "checking if fsetxattr can be linked... " >&6; }
32056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32057/* end confdefs.h. */
32058
32059
32060#define fsetxattr innocuous_fsetxattr
32061#ifdef __STDC__
32062# include <limits.h>
32063#else
32064# include <assert.h>
32065#endif
32066#undef fsetxattr
32067#ifdef __cplusplus
32068extern "C"
32069#endif
32070char fsetxattr ();
32071#if defined __stub_fsetxattr || defined __stub___fsetxattr
32072choke me
32073#endif
32074
32075int main (void)
32076{
32077return fsetxattr ();
32078 ;
32079 return 0;
32080}
32081
32082_ACEOF
32083if ac_fn_c_try_link "$LINENO"; then :
32084
32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32086$as_echo "yes" >&6; }
32087 tst_links_fsetxattr="yes"
32088
32089else
32090
32091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32092$as_echo "no" >&6; }
32093 tst_links_fsetxattr="no"
32094
32095fi
32096rm -f core conftest.err conftest.$ac_objext \
32097 conftest$ac_exeext conftest.$ac_ext
32098 #
32099 if test "$tst_links_fsetxattr" = "yes"; then
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32101$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32103/* end confdefs.h. */
32104
32105 $curl_includes_sys_xattr
32106
32107_ACEOF
32108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32109 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32110
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32112$as_echo "yes" >&6; }
32113 tst_proto_fsetxattr="yes"
32114
32115else
32116
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32118$as_echo "no" >&6; }
32119 tst_proto_fsetxattr="no"
32120
32121fi
32122rm -f conftest*
32123
32124 fi
32125 #
32126 if test "$tst_proto_fsetxattr" = "yes"; then
32127 if test "$tst_nargs_fsetxattr" = "unknown"; then
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32129$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32131/* end confdefs.h. */
32132
32133
32134 $curl_includes_sys_xattr
32135
32136int main (void)
32137{
32138
32139 if(0 != fsetxattr(0, 0, 0, 0, 0))
32140 return 1;
32141
32142 ;
32143 return 0;
32144}
32145
32146_ACEOF
32147if ac_fn_c_try_compile "$LINENO"; then :
32148
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32150$as_echo "yes" >&6; }
32151 tst_compi_fsetxattr="yes"
32152 tst_nargs_fsetxattr="5"
32153
32154else
32155
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32157$as_echo "no" >&6; }
32158 tst_compi_fsetxattr="no"
32159
32160fi
32161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32162 fi
32163 if test "$tst_nargs_fsetxattr" = "unknown"; then
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32165$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32167/* end confdefs.h. */
32168
32169
32170 $curl_includes_sys_xattr
32171
32172int main (void)
32173{
32174
32175 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32176 return 1;
32177
32178 ;
32179 return 0;
32180}
32181
32182_ACEOF
32183if ac_fn_c_try_compile "$LINENO"; then :
32184
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32186$as_echo "yes" >&6; }
32187 tst_compi_fsetxattr="yes"
32188 tst_nargs_fsetxattr="6"
32189
32190else
32191
32192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32193$as_echo "no" >&6; }
32194 tst_compi_fsetxattr="no"
32195
32196fi
32197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32198 fi
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32200$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32201 if test "$tst_compi_fsetxattr" = "yes"; then
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32203$as_echo "yes" >&6; }
32204 else
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32206$as_echo "no" >&6; }
32207 fi
32208 fi
32209 #
32210 if test "$tst_compi_fsetxattr" = "yes"; then
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32212$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32213 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32215$as_echo "yes" >&6; }
32216 tst_allow_fsetxattr="yes"
32217 else
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32219$as_echo "no" >&6; }
32220 tst_allow_fsetxattr="no"
32221 fi
32222 fi
32223 #
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32225$as_echo_n "checking if fsetxattr might be used... " >&6; }
32226 if test "$tst_links_fsetxattr" = "yes" &&
32227 test "$tst_proto_fsetxattr" = "yes" &&
32228 test "$tst_compi_fsetxattr" = "yes" &&
32229 test "$tst_allow_fsetxattr" = "yes"; then
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32231$as_echo "yes" >&6; }
32232
32233cat >>confdefs.h <<_ACEOF
32234#define HAVE_FSETXATTR 1
32235_ACEOF
32236
32237 #
32238 if test "$tst_nargs_fsetxattr" -eq "5"; then
32239
32240$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32241
32242 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32243
32244$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32245
32246 fi
32247 #
32248 curl_cv_func_fsetxattr="yes"
32249 else
32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32251$as_echo "no" >&6; }
32252 curl_cv_func_fsetxattr="no"
32253 fi
32254
32255
32256 #
32257 tst_links_ftruncate="unknown"
32258 tst_proto_ftruncate="unknown"
32259 tst_compi_ftruncate="unknown"
32260 tst_allow_ftruncate="unknown"
32261 #
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32263$as_echo_n "checking if ftruncate can be linked... " >&6; }
32264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32265/* end confdefs.h. */
32266
32267
32268#define ftruncate innocuous_ftruncate
32269#ifdef __STDC__
32270# include <limits.h>
32271#else
32272# include <assert.h>
32273#endif
32274#undef ftruncate
32275#ifdef __cplusplus
32276extern "C"
32277#endif
32278char ftruncate ();
32279#if defined __stub_ftruncate || defined __stub___ftruncate
32280choke me
32281#endif
32282
32283int main (void)
32284{
32285return ftruncate ();
32286 ;
32287 return 0;
32288}
32289
32290_ACEOF
32291if ac_fn_c_try_link "$LINENO"; then :
32292
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32294$as_echo "yes" >&6; }
32295 tst_links_ftruncate="yes"
32296
32297else
32298
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32300$as_echo "no" >&6; }
32301 tst_links_ftruncate="no"
32302
32303fi
32304rm -f core conftest.err conftest.$ac_objext \
32305 conftest$ac_exeext conftest.$ac_ext
32306 #
32307 if test "$tst_links_ftruncate" = "yes"; then
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32309$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32311/* end confdefs.h. */
32312
32313 $curl_includes_unistd
32314
32315_ACEOF
32316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32317 $EGREP "ftruncate" >/dev/null 2>&1; then :
32318
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32320$as_echo "yes" >&6; }
32321 tst_proto_ftruncate="yes"
32322
32323else
32324
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326$as_echo "no" >&6; }
32327 tst_proto_ftruncate="no"
32328
32329fi
32330rm -f conftest*
32331
32332 fi
32333 #
32334 if test "$tst_proto_ftruncate" = "yes"; then
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32336$as_echo_n "checking if ftruncate is compilable... " >&6; }
32337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32338/* end confdefs.h. */
32339
32340
32341 $curl_includes_unistd
32342
32343int main (void)
32344{
32345
32346 if(0 != ftruncate(0, 0))
32347 return 1;
32348
32349 ;
32350 return 0;
32351}
32352
32353_ACEOF
32354if ac_fn_c_try_compile "$LINENO"; then :
32355
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32357$as_echo "yes" >&6; }
32358 tst_compi_ftruncate="yes"
32359
32360else
32361
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32363$as_echo "no" >&6; }
32364 tst_compi_ftruncate="no"
32365
32366fi
32367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32368 fi
32369 #
32370 if test "$tst_compi_ftruncate" = "yes"; then
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32372$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32373 if test "x$curl_disallow_ftruncate" != "xyes"; then
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32375$as_echo "yes" >&6; }
32376 tst_allow_ftruncate="yes"
32377 else
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32379$as_echo "no" >&6; }
32380 tst_allow_ftruncate="no"
32381 fi
32382 fi
32383 #
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32385$as_echo_n "checking if ftruncate might be used... " >&6; }
32386 if test "$tst_links_ftruncate" = "yes" &&
32387 test "$tst_proto_ftruncate" = "yes" &&
32388 test "$tst_compi_ftruncate" = "yes" &&
32389 test "$tst_allow_ftruncate" = "yes"; then
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32391$as_echo "yes" >&6; }
32392
32393cat >>confdefs.h <<_ACEOF
32394#define HAVE_FTRUNCATE 1
32395_ACEOF
32396
32397 curl_cv_func_ftruncate="yes"
32398 else
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400$as_echo "no" >&6; }
32401 curl_cv_func_ftruncate="no"
32402 fi
32403
32404
32405curl_includes_stdlib="\
32406/* includes start */
32407#ifdef HAVE_SYS_TYPES_H
32408# include <sys/types.h>
32409#endif
32410#ifdef HAVE_STDLIB_H
32411# include <stdlib.h>
32412#endif
32413/* includes end */"
32414 for ac_header in sys/types.h stdlib.h
32415do :
32416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32418"
32419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32420 cat >>confdefs.h <<_ACEOF
32421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32422_ACEOF
32423
32424fi
32425
32426done
32427
32428
32429
32430 #
32431 tst_links_getaddrinfo="unknown"
32432 tst_proto_getaddrinfo="unknown"
32433 tst_compi_getaddrinfo="unknown"
32434 tst_works_getaddrinfo="unknown"
32435 tst_allow_getaddrinfo="unknown"
32436 tst_tsafe_getaddrinfo="unknown"
32437 #
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32439$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441/* end confdefs.h. */
32442
32443
32444 $curl_includes_ws2tcpip
32445 $curl_includes_sys_socket
32446 $curl_includes_netdb
32447
32448int main (void)
32449{
32450
32451 if(0 != getaddrinfo(0, 0, 0, 0))
32452 return 1;
32453
32454 ;
32455 return 0;
32456}
32457
32458_ACEOF
32459if ac_fn_c_try_link "$LINENO"; then :
32460
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32462$as_echo "yes" >&6; }
32463 tst_links_getaddrinfo="yes"
32464
32465else
32466
32467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32468$as_echo "no" >&6; }
32469 tst_links_getaddrinfo="no"
32470
32471fi
32472rm -f core conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
32474 #
32475 if test "$tst_links_getaddrinfo" = "yes"; then
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32477$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32479/* end confdefs.h. */
32480
32481 $curl_includes_ws2tcpip
32482 $curl_includes_sys_socket
32483 $curl_includes_netdb
32484
32485_ACEOF
32486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32487 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32488
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32490$as_echo "yes" >&6; }
32491 tst_proto_getaddrinfo="yes"
32492
32493else
32494
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32496$as_echo "no" >&6; }
32497 tst_proto_getaddrinfo="no"
32498
32499fi
32500rm -f conftest*
32501
32502 fi
32503 #
32504 if test "$tst_proto_getaddrinfo" = "yes"; then
32505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32506$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32508/* end confdefs.h. */
32509
32510
32511 $curl_includes_ws2tcpip
32512 $curl_includes_sys_socket
32513 $curl_includes_netdb
32514
32515int main (void)
32516{
32517
32518 if(0 != getaddrinfo(0, 0, 0, 0))
32519 return 1;
32520
32521 ;
32522 return 0;
32523}
32524
32525_ACEOF
32526if ac_fn_c_try_compile "$LINENO"; then :
32527
32528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32529$as_echo "yes" >&6; }
32530 tst_compi_getaddrinfo="yes"
32531
32532else
32533
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32535$as_echo "no" >&6; }
32536 tst_compi_getaddrinfo="no"
32537
32538fi
32539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32540 fi
32541 #
32542 if test "x$cross_compiling" != "xyes" &&
32543 test "$tst_compi_getaddrinfo" = "yes"; then
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32545$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32546 if test "$cross_compiling" = yes; then :
32547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32549as_fn_error $? "cannot run test program while cross compiling
32550See \`config.log' for more details" "$LINENO" 5; }
32551else
32552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32553/* end confdefs.h. */
32554
32555
32556 $curl_includes_ws2tcpip
32557 $curl_includes_stdlib
32558 $curl_includes_string
32559 $curl_includes_sys_socket
32560 $curl_includes_netdb
32561
32562int main (void)
32563{
32564
32565 struct addrinfo hints;
32566 struct addrinfo *ai = 0;
32567 int error;
32568
32569 #ifdef HAVE_WINSOCK2_H
32570 WSADATA wsa;
32571 if (WSAStartup(MAKEWORD(2,2), &wsa))
32572 exit(2);
32573 #endif
32574
32575 memset(&hints, 0, sizeof(hints));
32576 hints.ai_flags = AI_NUMERICHOST;
32577 hints.ai_family = AF_UNSPEC;
32578 hints.ai_socktype = SOCK_STREAM;
32579 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32580 if(error || !ai)
32581 exit(1); /* fail */
32582 else
32583 exit(0);
32584
32585 ;
32586 return 0;
32587}
32588
32589_ACEOF
32590if ac_fn_c_try_run "$LINENO"; then :
32591
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32593$as_echo "yes" >&6; }
32594 tst_works_getaddrinfo="yes"
32595
32596else
32597
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32599$as_echo "no" >&6; }
32600 tst_works_getaddrinfo="no"
32601
32602fi
32603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32604 conftest.$ac_objext conftest.beam conftest.$ac_ext
32605fi
32606
32607 fi
32608 #
32609 if test "$tst_compi_getaddrinfo" = "yes" &&
32610 test "$tst_works_getaddrinfo" != "no"; then
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32612$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32613 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32615$as_echo "yes" >&6; }
32616 tst_allow_getaddrinfo="yes"
32617 else
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32619$as_echo "no" >&6; }
32620 tst_allow_getaddrinfo="no"
32621 fi
32622 fi
32623 #
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32625$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32626 if test "$tst_links_getaddrinfo" = "yes" &&
32627 test "$tst_proto_getaddrinfo" = "yes" &&
32628 test "$tst_compi_getaddrinfo" = "yes" &&
32629 test "$tst_allow_getaddrinfo" = "yes" &&
32630 test "$tst_works_getaddrinfo" != "no"; then
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32632$as_echo "yes" >&6; }
32633
32634cat >>confdefs.h <<_ACEOF
32635#define HAVE_GETADDRINFO 1
32636_ACEOF
32637
32638 curl_cv_func_getaddrinfo="yes"
32639 else
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32641$as_echo "no" >&6; }
32642 curl_cv_func_getaddrinfo="no"
32643 curl_cv_func_getaddrinfo_threadsafe="no"
32644 fi
32645 #
32646 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32648$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32649 case $host_os in
32650 aix[1234].* | aix5.[01].*)
32651 tst_tsafe_getaddrinfo="no"
32652 ;;
32653 aix*)
32654 tst_tsafe_getaddrinfo="yes"
32655 ;;
32656 darwin[12345].*)
32657 tst_tsafe_getaddrinfo="no"
32658 ;;
32659 darwin*)
32660 tst_tsafe_getaddrinfo="yes"
32661 ;;
32662 freebsd[1234].* | freebsd5.[1234]*)
32663 tst_tsafe_getaddrinfo="no"
32664 ;;
32665 freebsd*)
32666 tst_tsafe_getaddrinfo="yes"
32667 ;;
32668 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32669 tst_tsafe_getaddrinfo="no"
32670 ;;
32671 hpux*)
32672 tst_tsafe_getaddrinfo="yes"
32673 ;;
32674 netbsd[123].*)
32675 tst_tsafe_getaddrinfo="no"
32676 ;;
32677 netbsd*)
32678 tst_tsafe_getaddrinfo="yes"
32679 ;;
32680 *bsd*)
32681 tst_tsafe_getaddrinfo="no"
32682 ;;
32683 solaris2*)
32684 tst_tsafe_getaddrinfo="yes"
32685 ;;
32686 esac
32687 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32688 test "$curl_cv_native_windows" = "yes"; then
32689 tst_tsafe_getaddrinfo="yes"
32690 fi
32691 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32692
32693
32694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32695/* end confdefs.h. */
32696
32697
32698 $curl_includes_sys_socket
32699 $curl_includes_netdb
32700
32701int main (void)
32702{
32703#ifdef h_errno
32704 return 0;
32705#else
32706 force compilation error
32707#endif
32708}
32709
32710
32711_ACEOF
32712if ac_fn_c_try_compile "$LINENO"; then :
32713
32714 tst_symbol_defined="yes"
32715
32716else
32717
32718 tst_symbol_defined="no"
32719
32720fi
32721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 if test "$tst_symbol_defined" = "yes"; then
32723 curl_cv_have_def_h_errno=yes
32724
32725 else
32726 curl_cv_have_def_h_errno=no
32727
32728 fi
32729
32730 if test "$curl_cv_have_def_h_errno" = "yes"; then
32731 tst_h_errno_macro="yes"
32732 else
32733 tst_h_errno_macro="no"
32734 fi
32735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32736/* end confdefs.h. */
32737
32738
32739 $curl_includes_sys_socket
32740 $curl_includes_netdb
32741
32742int main (void)
32743{
32744
32745 h_errno = 2;
32746 if(0 != h_errno)
32747 return 1;
32748
32749 ;
32750 return 0;
32751}
32752
32753_ACEOF
32754if ac_fn_c_try_compile "$LINENO"; then :
32755
32756 tst_h_errno_modifiable_lvalue="yes"
32757
32758else
32759
32760 tst_h_errno_modifiable_lvalue="no"
32761
32762fi
32763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32765/* end confdefs.h. */
32766
32767
32768
32769int main (void)
32770{
32771
32772#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32773 return 0;
32774#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32775 return 0;
32776#else
32777 force compilation error
32778#endif
32779
32780 ;
32781 return 0;
32782}
32783
32784_ACEOF
32785if ac_fn_c_try_compile "$LINENO"; then :
32786
32787 tst_h_errno_sbs_issue_7="yes"
32788
32789else
32790
32791 tst_h_errno_sbs_issue_7="no"
32792
32793fi
32794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 if test "$tst_h_errno_macro" = "no" &&
32796 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32797 test "$tst_h_errno_sbs_issue_7" = "no"; then
32798 tst_tsafe_getaddrinfo="no"
32799 else
32800 tst_tsafe_getaddrinfo="yes"
32801 fi
32802 fi
32803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32804$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32805 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32806
32807cat >>confdefs.h <<_ACEOF
32808#define HAVE_GETADDRINFO_THREADSAFE 1
32809_ACEOF
32810
32811 curl_cv_func_getaddrinfo_threadsafe="yes"
32812 else
32813 curl_cv_func_getaddrinfo_threadsafe="no"
32814 fi
32815 fi
32816
32817
32818 #
32819 tst_links_gai_strerror="unknown"
32820 tst_proto_gai_strerror="unknown"
32821 tst_compi_gai_strerror="unknown"
32822 tst_allow_gai_strerror="unknown"
32823 #
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32825$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32827/* end confdefs.h. */
32828
32829
32830 $curl_includes_winsock2
32831 $curl_includes_netdb
32832
32833int main (void)
32834{
32835
32836 if(0 != gai_strerror(0))
32837 return 1;
32838
32839 ;
32840 return 0;
32841}
32842
32843_ACEOF
32844if ac_fn_c_try_link "$LINENO"; then :
32845
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32847$as_echo "yes" >&6; }
32848 tst_links_gai_strerror="yes"
32849
32850else
32851
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32853$as_echo "no" >&6; }
32854 tst_links_gai_strerror="no"
32855
32856fi
32857rm -f core conftest.err conftest.$ac_objext \
32858 conftest$ac_exeext conftest.$ac_ext
32859 #
32860 if test "$tst_links_gai_strerror" = "yes"; then
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32862$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32864/* end confdefs.h. */
32865
32866 $curl_includes_winsock2
32867 $curl_includes_netdb
32868
32869_ACEOF
32870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32871 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32872
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32874$as_echo "yes" >&6; }
32875 tst_proto_gai_strerror="yes"
32876
32877else
32878
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32880$as_echo "no" >&6; }
32881 tst_proto_gai_strerror="no"
32882
32883fi
32884rm -f conftest*
32885
32886 fi
32887 #
32888 if test "$tst_proto_gai_strerror" = "yes"; then
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32890$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32892/* end confdefs.h. */
32893
32894
32895 $curl_includes_winsock2
32896 $curl_includes_netdb
32897
32898int main (void)
32899{
32900
32901 if(0 != gai_strerror(0))
32902 return 1;
32903
32904 ;
32905 return 0;
32906}
32907
32908_ACEOF
32909if ac_fn_c_try_compile "$LINENO"; then :
32910
32911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32912$as_echo "yes" >&6; }
32913 tst_compi_gai_strerror="yes"
32914
32915else
32916
32917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918$as_echo "no" >&6; }
32919 tst_compi_gai_strerror="no"
32920
32921fi
32922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32923 fi
32924 #
32925 if test "$tst_compi_gai_strerror" = "yes"; then
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32927$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32928 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32930$as_echo "yes" >&6; }
32931 tst_allow_gai_strerror="yes"
32932 else
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32934$as_echo "no" >&6; }
32935 tst_allow_gai_strerror="no"
32936 fi
32937 fi
32938 #
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32940$as_echo_n "checking if gai_strerror might be used... " >&6; }
32941 if test "$tst_links_gai_strerror" = "yes" &&
32942 test "$tst_proto_gai_strerror" = "yes" &&
32943 test "$tst_compi_gai_strerror" = "yes" &&
32944 test "$tst_allow_gai_strerror" = "yes"; then
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32946$as_echo "yes" >&6; }
32947
32948cat >>confdefs.h <<_ACEOF
32949#define HAVE_GAI_STRERROR 1
32950_ACEOF
32951
32952 curl_cv_func_gai_strerror="yes"
32953 else
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32955$as_echo "no" >&6; }
32956 curl_cv_func_gai_strerror="no"
32957 fi
32958
32959
32960 #
32961 tst_links_gethostbyaddr="unknown"
32962 tst_proto_gethostbyaddr="unknown"
32963 tst_compi_gethostbyaddr="unknown"
32964 tst_allow_gethostbyaddr="unknown"
32965 #
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32967$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32969/* end confdefs.h. */
32970
32971
32972 $curl_includes_winsock2
32973 $curl_includes_netdb
32974
32975int main (void)
32976{
32977
32978 if(0 != gethostbyaddr(0, 0, 0))
32979 return 1;
32980
32981 ;
32982 return 0;
32983}
32984
32985_ACEOF
32986if ac_fn_c_try_link "$LINENO"; then :
32987
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32989$as_echo "yes" >&6; }
32990 tst_links_gethostbyaddr="yes"
32991
32992else
32993
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32995$as_echo "no" >&6; }
32996 tst_links_gethostbyaddr="no"
32997
32998fi
32999rm -f core conftest.err conftest.$ac_objext \
33000 conftest$ac_exeext conftest.$ac_ext
33001 #
33002 if test "$tst_links_gethostbyaddr" = "yes"; then
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33004$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33006/* end confdefs.h. */
33007
33008 $curl_includes_winsock2
33009 $curl_includes_netdb
33010
33011_ACEOF
33012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33013 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33014
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33016$as_echo "yes" >&6; }
33017 tst_proto_gethostbyaddr="yes"
33018
33019else
33020
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022$as_echo "no" >&6; }
33023 tst_proto_gethostbyaddr="no"
33024
33025fi
33026rm -f conftest*
33027
33028 fi
33029 #
33030 if test "$tst_proto_gethostbyaddr" = "yes"; then
33031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33032$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33034/* end confdefs.h. */
33035
33036
33037 $curl_includes_winsock2
33038 $curl_includes_netdb
33039
33040int main (void)
33041{
33042
33043 if(0 != gethostbyaddr(0, 0, 0))
33044 return 1;
33045
33046 ;
33047 return 0;
33048}
33049
33050_ACEOF
33051if ac_fn_c_try_compile "$LINENO"; then :
33052
33053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33054$as_echo "yes" >&6; }
33055 tst_compi_gethostbyaddr="yes"
33056
33057else
33058
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33060$as_echo "no" >&6; }
33061 tst_compi_gethostbyaddr="no"
33062
33063fi
33064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33065 fi
33066 #
33067 if test "$tst_compi_gethostbyaddr" = "yes"; then
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33069$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33070 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33072$as_echo "yes" >&6; }
33073 tst_allow_gethostbyaddr="yes"
33074 else
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33076$as_echo "no" >&6; }
33077 tst_allow_gethostbyaddr="no"
33078 fi
33079 fi
33080 #
33081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33082$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33083 if test "$tst_links_gethostbyaddr" = "yes" &&
33084 test "$tst_proto_gethostbyaddr" = "yes" &&
33085 test "$tst_compi_gethostbyaddr" = "yes" &&
33086 test "$tst_allow_gethostbyaddr" = "yes"; then
33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33088$as_echo "yes" >&6; }
33089
33090cat >>confdefs.h <<_ACEOF
33091#define HAVE_GETHOSTBYADDR 1
33092_ACEOF
33093
33094 curl_cv_func_gethostbyaddr="yes"
33095 else
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33097$as_echo "no" >&6; }
33098 curl_cv_func_gethostbyaddr="no"
33099 fi
33100
33101
33102 #
33103 tst_links_gethostbyaddr_r="unknown"
33104 tst_proto_gethostbyaddr_r="unknown"
33105 tst_compi_gethostbyaddr_r="unknown"
33106 tst_allow_gethostbyaddr_r="unknown"
33107 tst_nargs_gethostbyaddr_r="unknown"
33108 #
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33110$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33112/* end confdefs.h. */
33113
33114
33115#define gethostbyaddr_r innocuous_gethostbyaddr_r
33116#ifdef __STDC__
33117# include <limits.h>
33118#else
33119# include <assert.h>
33120#endif
33121#undef gethostbyaddr_r
33122#ifdef __cplusplus
33123extern "C"
33124#endif
33125char gethostbyaddr_r ();
33126#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33127choke me
33128#endif
33129
33130int main (void)
33131{
33132return gethostbyaddr_r ();
33133 ;
33134 return 0;
33135}
33136
33137_ACEOF
33138if ac_fn_c_try_link "$LINENO"; then :
33139
33140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33141$as_echo "yes" >&6; }
33142 tst_links_gethostbyaddr_r="yes"
33143
33144else
33145
33146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33147$as_echo "no" >&6; }
33148 tst_links_gethostbyaddr_r="no"
33149
33150fi
33151rm -f core conftest.err conftest.$ac_objext \
33152 conftest$ac_exeext conftest.$ac_ext
33153 #
33154 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33156$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33158/* end confdefs.h. */
33159
33160 $curl_includes_netdb
33161
33162_ACEOF
33163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33164 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33165
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33167$as_echo "yes" >&6; }
33168 tst_proto_gethostbyaddr_r="yes"
33169
33170else
33171
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173$as_echo "no" >&6; }
33174 tst_proto_gethostbyaddr_r="no"
33175
33176fi
33177rm -f conftest*
33178
33179 fi
33180 #
33181 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33182 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33184$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33186/* end confdefs.h. */
33187
33188
33189 $curl_includes_netdb
33190
33191int main (void)
33192{
33193
33194 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33195 return 1;
33196
33197 ;
33198 return 0;
33199}
33200
33201_ACEOF
33202if ac_fn_c_try_compile "$LINENO"; then :
33203
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33205$as_echo "yes" >&6; }
33206 tst_compi_gethostbyaddr_r="yes"
33207 tst_nargs_gethostbyaddr_r="5"
33208
33209else
33210
33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33212$as_echo "no" >&6; }
33213 tst_compi_gethostbyaddr_r="no"
33214
33215fi
33216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33217 fi
33218 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33220$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33222/* end confdefs.h. */
33223
33224
33225 $curl_includes_netdb
33226
33227int main (void)
33228{
33229
33230 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33231 return 1;
33232
33233 ;
33234 return 0;
33235}
33236
33237_ACEOF
33238if ac_fn_c_try_compile "$LINENO"; then :
33239
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33241$as_echo "yes" >&6; }
33242 tst_compi_gethostbyaddr_r="yes"
33243 tst_nargs_gethostbyaddr_r="7"
33244
33245else
33246
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33248$as_echo "no" >&6; }
33249 tst_compi_gethostbyaddr_r="no"
33250
33251fi
33252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33253 fi
33254 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33256$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33258/* end confdefs.h. */
33259
33260
33261 $curl_includes_netdb
33262
33263int main (void)
33264{
33265
33266 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33267 return 1;
33268
33269 ;
33270 return 0;
33271}
33272
33273_ACEOF
33274if ac_fn_c_try_compile "$LINENO"; then :
33275
33276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33277$as_echo "yes" >&6; }
33278 tst_compi_gethostbyaddr_r="yes"
33279 tst_nargs_gethostbyaddr_r="8"
33280
33281else
33282
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33284$as_echo "no" >&6; }
33285 tst_compi_gethostbyaddr_r="no"
33286
33287fi
33288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33289 fi
33290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33291$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33292 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33294$as_echo "yes" >&6; }
33295 else
33296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33297$as_echo "no" >&6; }
33298 fi
33299 fi
33300 #
33301 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33303$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33304 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33306$as_echo "yes" >&6; }
33307 tst_allow_gethostbyaddr_r="yes"
33308 else
33309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33310$as_echo "no" >&6; }
33311 tst_allow_gethostbyaddr_r="no"
33312 fi
33313 fi
33314 #
33315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33316$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33317 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33318 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33319 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33320 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33322$as_echo "yes" >&6; }
33323
33324cat >>confdefs.h <<_ACEOF
33325#define HAVE_GETHOSTBYADDR_R 1
33326_ACEOF
33327
33328 #
33329 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33330
33331$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33332
33333 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33334
33335$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33336
33337 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33338
33339$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33340
33341 fi
33342 #
33343 curl_cv_func_gethostbyaddr_r="yes"
33344 else
33345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33346$as_echo "no" >&6; }
33347 curl_cv_func_gethostbyaddr_r="no"
33348 fi
33349
33350
33351 #
33352 tst_links_gethostbyname="unknown"
33353 tst_proto_gethostbyname="unknown"
33354 tst_compi_gethostbyname="unknown"
33355 tst_allow_gethostbyname="unknown"
33356 #
33357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33358$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33360/* end confdefs.h. */
33361
33362
33363 $curl_includes_winsock2
33364 $curl_includes_netdb
33365
33366int main (void)
33367{
33368
33369 if(0 != gethostbyname(0))
33370 return 1;
33371
33372 ;
33373 return 0;
33374}
33375
33376_ACEOF
33377if ac_fn_c_try_link "$LINENO"; then :
33378
33379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33380$as_echo "yes" >&6; }
33381 tst_links_gethostbyname="yes"
33382
33383else
33384
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33386$as_echo "no" >&6; }
33387 tst_links_gethostbyname="no"
33388
33389fi
33390rm -f core conftest.err conftest.$ac_objext \
33391 conftest$ac_exeext conftest.$ac_ext
33392 #
33393 if test "$tst_links_gethostbyname" = "yes"; then
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33395$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33397/* end confdefs.h. */
33398
33399 $curl_includes_winsock2
33400 $curl_includes_netdb
33401
33402_ACEOF
33403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33404 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33405
33406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33407$as_echo "yes" >&6; }
33408 tst_proto_gethostbyname="yes"
33409
33410else
33411
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33413$as_echo "no" >&6; }
33414 tst_proto_gethostbyname="no"
33415
33416fi
33417rm -f conftest*
33418
33419 fi
33420 #
33421 if test "$tst_proto_gethostbyname" = "yes"; then
33422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33423$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33425/* end confdefs.h. */
33426
33427
33428 $curl_includes_winsock2
33429 $curl_includes_netdb
33430
33431int main (void)
33432{
33433
33434 if(0 != gethostbyname(0))
33435 return 1;
33436
33437 ;
33438 return 0;
33439}
33440
33441_ACEOF
33442if ac_fn_c_try_compile "$LINENO"; then :
33443
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33445$as_echo "yes" >&6; }
33446 tst_compi_gethostbyname="yes"
33447
33448else
33449
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33451$as_echo "no" >&6; }
33452 tst_compi_gethostbyname="no"
33453
33454fi
33455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33456 fi
33457 #
33458 if test "$tst_compi_gethostbyname" = "yes"; then
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33460$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33461 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33463$as_echo "yes" >&6; }
33464 tst_allow_gethostbyname="yes"
33465 else
33466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33467$as_echo "no" >&6; }
33468 tst_allow_gethostbyname="no"
33469 fi
33470 fi
33471 #
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33473$as_echo_n "checking if gethostbyname might be used... " >&6; }
33474 if test "$tst_links_gethostbyname" = "yes" &&
33475 test "$tst_proto_gethostbyname" = "yes" &&
33476 test "$tst_compi_gethostbyname" = "yes" &&
33477 test "$tst_allow_gethostbyname" = "yes"; then
33478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33479$as_echo "yes" >&6; }
33480
33481cat >>confdefs.h <<_ACEOF
33482#define HAVE_GETHOSTBYNAME 1
33483_ACEOF
33484
33485 curl_cv_func_gethostbyname="yes"
33486 else
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33488$as_echo "no" >&6; }
33489 curl_cv_func_gethostbyname="no"
33490 fi
33491
33492
33493 #
33494 tst_links_gethostbyname_r="unknown"
33495 tst_proto_gethostbyname_r="unknown"
33496 tst_compi_gethostbyname_r="unknown"
33497 tst_allow_gethostbyname_r="unknown"
33498 tst_nargs_gethostbyname_r="unknown"
33499 #
33500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33501$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33503/* end confdefs.h. */
33504
33505
33506#define gethostbyname_r innocuous_gethostbyname_r
33507#ifdef __STDC__
33508# include <limits.h>
33509#else
33510# include <assert.h>
33511#endif
33512#undef gethostbyname_r
33513#ifdef __cplusplus
33514extern "C"
33515#endif
33516char gethostbyname_r ();
33517#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33518choke me
33519#endif
33520
33521int main (void)
33522{
33523return gethostbyname_r ();
33524 ;
33525 return 0;
33526}
33527
33528_ACEOF
33529if ac_fn_c_try_link "$LINENO"; then :
33530
33531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33532$as_echo "yes" >&6; }
33533 tst_links_gethostbyname_r="yes"
33534
33535else
33536
33537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33538$as_echo "no" >&6; }
33539 tst_links_gethostbyname_r="no"
33540
33541fi
33542rm -f core conftest.err conftest.$ac_objext \
33543 conftest$ac_exeext conftest.$ac_ext
33544 #
33545 if test "$tst_links_gethostbyname_r" = "yes"; then
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33547$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33549/* end confdefs.h. */
33550
33551 $curl_includes_netdb
33552
33553_ACEOF
33554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33555 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33556
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558$as_echo "yes" >&6; }
33559 tst_proto_gethostbyname_r="yes"
33560
33561else
33562
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564$as_echo "no" >&6; }
33565 tst_proto_gethostbyname_r="no"
33566
33567fi
33568rm -f conftest*
33569
33570 fi
33571 #
33572 if test "$tst_proto_gethostbyname_r" = "yes"; then
33573 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33575$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33577/* end confdefs.h. */
33578
33579
33580 $curl_includes_netdb
33581
33582int main (void)
33583{
33584
33585 if(0 != gethostbyname_r(0, 0, 0))
33586 return 1;
33587
33588 ;
33589 return 0;
33590}
33591
33592_ACEOF
33593if ac_fn_c_try_compile "$LINENO"; then :
33594
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33596$as_echo "yes" >&6; }
33597 tst_compi_gethostbyname_r="yes"
33598 tst_nargs_gethostbyname_r="3"
33599
33600else
33601
33602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33603$as_echo "no" >&6; }
33604 tst_compi_gethostbyname_r="no"
33605
33606fi
33607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608 fi
33609 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33611$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33613/* end confdefs.h. */
33614
33615
33616 $curl_includes_netdb
33617
33618int main (void)
33619{
33620
33621 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33622 return 1;
33623
33624 ;
33625 return 0;
33626}
33627
33628_ACEOF
33629if ac_fn_c_try_compile "$LINENO"; then :
33630
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33632$as_echo "yes" >&6; }
33633 tst_compi_gethostbyname_r="yes"
33634 tst_nargs_gethostbyname_r="5"
33635
33636else
33637
33638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33639$as_echo "no" >&6; }
33640 tst_compi_gethostbyname_r="no"
33641
33642fi
33643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33644 fi
33645 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33647$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33649/* end confdefs.h. */
33650
33651
33652 $curl_includes_netdb
33653
33654int main (void)
33655{
33656
33657 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33658 return 1;
33659
33660 ;
33661 return 0;
33662}
33663
33664_ACEOF
33665if ac_fn_c_try_compile "$LINENO"; then :
33666
33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33668$as_echo "yes" >&6; }
33669 tst_compi_gethostbyname_r="yes"
33670 tst_nargs_gethostbyname_r="6"
33671
33672else
33673
33674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33675$as_echo "no" >&6; }
33676 tst_compi_gethostbyname_r="no"
33677
33678fi
33679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33680 fi
33681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33682$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33683 if test "$tst_compi_gethostbyname_r" = "yes"; then
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33685$as_echo "yes" >&6; }
33686 else
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33688$as_echo "no" >&6; }
33689 fi
33690 fi
33691 #
33692 if test "$tst_compi_gethostbyname_r" = "yes"; then
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33694$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33695 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33697$as_echo "yes" >&6; }
33698 tst_allow_gethostbyname_r="yes"
33699 else
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33701$as_echo "no" >&6; }
33702 tst_allow_gethostbyname_r="no"
33703 fi
33704 fi
33705 #
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33707$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33708 if test "$tst_links_gethostbyname_r" = "yes" &&
33709 test "$tst_proto_gethostbyname_r" = "yes" &&
33710 test "$tst_compi_gethostbyname_r" = "yes" &&
33711 test "$tst_allow_gethostbyname_r" = "yes"; then
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33713$as_echo "yes" >&6; }
33714
33715cat >>confdefs.h <<_ACEOF
33716#define HAVE_GETHOSTBYNAME_R 1
33717_ACEOF
33718
33719 #
33720 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33721
33722$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33723
33724 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33725
33726$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33727
33728 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33729
33730$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33731
33732 fi
33733 #
33734 curl_cv_func_gethostbyname_r="yes"
33735 else
33736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33737$as_echo "no" >&6; }
33738 curl_cv_func_gethostbyname_r="no"
33739 fi
33740
33741
33742 #
33743 tst_links_gethostname="unknown"
33744 tst_proto_gethostname="unknown"
33745 tst_compi_gethostname="unknown"
33746 tst_allow_gethostname="unknown"
33747 #
33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33749$as_echo_n "checking if gethostname can be linked... " >&6; }
33750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33751/* end confdefs.h. */
33752
33753
33754 $curl_includes_winsock2
33755 $curl_includes_unistd
33756
33757int main (void)
33758{
33759
33760 if(0 != gethostname(0, 0))
33761 return 1;
33762
33763 ;
33764 return 0;
33765}
33766
33767_ACEOF
33768if ac_fn_c_try_link "$LINENO"; then :
33769
33770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33771$as_echo "yes" >&6; }
33772 tst_links_gethostname="yes"
33773
33774else
33775
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33777$as_echo "no" >&6; }
33778 tst_links_gethostname="no"
33779
33780fi
33781rm -f core conftest.err conftest.$ac_objext \
33782 conftest$ac_exeext conftest.$ac_ext
33783 #
33784 if test "$tst_links_gethostname" = "yes"; then
33785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33786$as_echo_n "checking if gethostname is prototyped... " >&6; }
33787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33788/* end confdefs.h. */
33789
33790 $curl_includes_winsock2
33791 $curl_includes_unistd
33792
33793_ACEOF
33794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33795 $EGREP "gethostname" >/dev/null 2>&1; then :
33796
33797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33798$as_echo "yes" >&6; }
33799 tst_proto_gethostname="yes"
33800
33801else
33802
33803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33804$as_echo "no" >&6; }
33805 tst_proto_gethostname="no"
33806
33807fi
33808rm -f conftest*
33809
33810 fi
33811 #
33812 if test "$tst_proto_gethostname" = "yes"; then
33813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33814$as_echo_n "checking if gethostname is compilable... " >&6; }
33815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33816/* end confdefs.h. */
33817
33818
33819 $curl_includes_winsock2
33820 $curl_includes_unistd
33821
33822int main (void)
33823{
33824
33825 if(0 != gethostname(0, 0))
33826 return 1;
33827
33828 ;
33829 return 0;
33830}
33831
33832_ACEOF
33833if ac_fn_c_try_compile "$LINENO"; then :
33834
33835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33836$as_echo "yes" >&6; }
33837 tst_compi_gethostname="yes"
33838
33839else
33840
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33842$as_echo "no" >&6; }
33843 tst_compi_gethostname="no"
33844
33845fi
33846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33847 fi
33848 #
33849 if test "$tst_compi_gethostname" = "yes"; then
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33851$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33852 tst_gethostname_type_arg2="unknown"
33853 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33854 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33855 if test "$tst_gethostname_type_arg2" = "unknown"; then
33856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33857/* end confdefs.h. */
33858
33859
33860 $curl_includes_winsock2
33861 $curl_includes_unistd
33862 $curl_preprocess_callconv
33863 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33864
33865int main (void)
33866{
33867
33868 if(0 != gethostname(0, 0))
33869 return 1;
33870
33871 ;
33872 return 0;
33873}
33874
33875_ACEOF
33876if ac_fn_c_try_compile "$LINENO"; then :
33877
33878 tst_gethostname_type_arg2="$tst_arg2"
33879
33880fi
33881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33882 fi
33883 done
33884 done
33885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33886$as_echo "$tst_gethostname_type_arg2" >&6; }
33887 if test "$tst_gethostname_type_arg2" != "unknown"; then
33888
33889cat >>confdefs.h <<_ACEOF
33890#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33891_ACEOF
33892
33893 fi
33894 fi
33895 #
33896 if test "$tst_compi_gethostname" = "yes"; then
33897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33898$as_echo_n "checking if gethostname usage allowed... " >&6; }
33899 if test "x$curl_disallow_gethostname" != "xyes"; then
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901$as_echo "yes" >&6; }
33902 tst_allow_gethostname="yes"
33903 else
33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33905$as_echo "no" >&6; }
33906 tst_allow_gethostname="no"
33907 fi
33908 fi
33909 #
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33911$as_echo_n "checking if gethostname might be used... " >&6; }
33912 if test "$tst_links_gethostname" = "yes" &&
33913 test "$tst_proto_gethostname" = "yes" &&
33914 test "$tst_compi_gethostname" = "yes" &&
33915 test "$tst_allow_gethostname" = "yes"; then
33916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33917$as_echo "yes" >&6; }
33918
33919cat >>confdefs.h <<_ACEOF
33920#define HAVE_GETHOSTNAME 1
33921_ACEOF
33922
33923 curl_cv_func_gethostname="yes"
33924 else
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33926$as_echo "no" >&6; }
33927 curl_cv_func_gethostname="no"
33928 fi
33929
33930
33931 #
33932 tst_links_getifaddrs="unknown"
33933 tst_proto_getifaddrs="unknown"
33934 tst_compi_getifaddrs="unknown"
33935 tst_works_getifaddrs="unknown"
33936 tst_allow_getifaddrs="unknown"
33937 #
33938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33939$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33941/* end confdefs.h. */
33942
33943
33944#define getifaddrs innocuous_getifaddrs
33945#ifdef __STDC__
33946# include <limits.h>
33947#else
33948# include <assert.h>
33949#endif
33950#undef getifaddrs
33951#ifdef __cplusplus
33952extern "C"
33953#endif
33954char getifaddrs ();
33955#if defined __stub_getifaddrs || defined __stub___getifaddrs
33956choke me
33957#endif
33958
33959int main (void)
33960{
33961return getifaddrs ();
33962 ;
33963 return 0;
33964}
33965
33966_ACEOF
33967if ac_fn_c_try_link "$LINENO"; then :
33968
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33970$as_echo "yes" >&6; }
33971 tst_links_getifaddrs="yes"
33972
33973else
33974
33975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33976$as_echo "no" >&6; }
33977 tst_links_getifaddrs="no"
33978
33979fi
33980rm -f core conftest.err conftest.$ac_objext \
33981 conftest$ac_exeext conftest.$ac_ext
33982 #
33983 if test "$tst_links_getifaddrs" = "yes"; then
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33985$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33987/* end confdefs.h. */
33988
33989 $curl_includes_ifaddrs
33990
33991_ACEOF
33992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33993 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33994
33995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33996$as_echo "yes" >&6; }
33997 tst_proto_getifaddrs="yes"
33998
33999else
34000
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34002$as_echo "no" >&6; }
34003 tst_proto_getifaddrs="no"
34004
34005fi
34006rm -f conftest*
34007
34008 fi
34009 #
34010 if test "$tst_proto_getifaddrs" = "yes"; then
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34012$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34014/* end confdefs.h. */
34015
34016
34017 $curl_includes_ifaddrs
34018
34019int main (void)
34020{
34021
34022 if(0 != getifaddrs(0))
34023 return 1;
34024
34025 ;
34026 return 0;
34027}
34028
34029_ACEOF
34030if ac_fn_c_try_compile "$LINENO"; then :
34031
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34033$as_echo "yes" >&6; }
34034 tst_compi_getifaddrs="yes"
34035
34036else
34037
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34039$as_echo "no" >&6; }
34040 tst_compi_getifaddrs="no"
34041
34042fi
34043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34044 fi
34045 #
34046 if test "x$cross_compiling" != "xyes" &&
34047 test "$tst_compi_getifaddrs" = "yes"; then
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34049$as_echo_n "checking if getifaddrs seems to work... " >&6; }
34050 if test "$cross_compiling" = yes; then :
34051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34053as_fn_error $? "cannot run test program while cross compiling
34054See \`config.log' for more details" "$LINENO" 5; }
34055else
34056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34057/* end confdefs.h. */
34058
34059
34060 $curl_includes_stdlib
34061 $curl_includes_ifaddrs
34062
34063int main (void)
34064{
34065
34066 struct ifaddrs *ifa = 0;
34067 int error;
34068
34069 error = getifaddrs(&ifa);
34070 if(error || !ifa)
34071 exit(1); /* fail */
34072 else
34073 exit(0);
34074
34075 ;
34076 return 0;
34077}
34078
34079_ACEOF
34080if ac_fn_c_try_run "$LINENO"; then :
34081
34082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34083$as_echo "yes" >&6; }
34084 tst_works_getifaddrs="yes"
34085
34086else
34087
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34089$as_echo "no" >&6; }
34090 tst_works_getifaddrs="no"
34091
34092fi
34093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34094 conftest.$ac_objext conftest.beam conftest.$ac_ext
34095fi
34096
34097 fi
34098 #
34099 if test "$tst_compi_getifaddrs" = "yes" &&
34100 test "$tst_works_getifaddrs" != "no"; then
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34102$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34103 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34105$as_echo "yes" >&6; }
34106 tst_allow_getifaddrs="yes"
34107 else
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34109$as_echo "no" >&6; }
34110 tst_allow_getifaddrs="no"
34111 fi
34112 fi
34113 #
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34115$as_echo_n "checking if getifaddrs might be used... " >&6; }
34116 if test "$tst_links_getifaddrs" = "yes" &&
34117 test "$tst_proto_getifaddrs" = "yes" &&
34118 test "$tst_compi_getifaddrs" = "yes" &&
34119 test "$tst_allow_getifaddrs" = "yes" &&
34120 test "$tst_works_getifaddrs" != "no"; then
34121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34122$as_echo "yes" >&6; }
34123
34124cat >>confdefs.h <<_ACEOF
34125#define HAVE_GETIFADDRS 1
34126_ACEOF
34127
34128 curl_cv_func_getifaddrs="yes"
34129 else
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131$as_echo "no" >&6; }
34132 curl_cv_func_getifaddrs="no"
34133 fi
34134
34135
34136 #
34137 tst_links_getservbyport_r="unknown"
34138 tst_proto_getservbyport_r="unknown"
34139 tst_compi_getservbyport_r="unknown"
34140 tst_allow_getservbyport_r="unknown"
34141 tst_nargs_getservbyport_r="unknown"
34142 #
34143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34144$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34146/* end confdefs.h. */
34147
34148
34149#define getservbyport_r innocuous_getservbyport_r
34150#ifdef __STDC__
34151# include <limits.h>
34152#else
34153# include <assert.h>
34154#endif
34155#undef getservbyport_r
34156#ifdef __cplusplus
34157extern "C"
34158#endif
34159char getservbyport_r ();
34160#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34161choke me
34162#endif
34163
34164int main (void)
34165{
34166return getservbyport_r ();
34167 ;
34168 return 0;
34169}
34170
34171_ACEOF
34172if ac_fn_c_try_link "$LINENO"; then :
34173
34174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34175$as_echo "yes" >&6; }
34176 tst_links_getservbyport_r="yes"
34177
34178else
34179
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34181$as_echo "no" >&6; }
34182 tst_links_getservbyport_r="no"
34183
34184fi
34185rm -f core conftest.err conftest.$ac_objext \
34186 conftest$ac_exeext conftest.$ac_ext
34187 #
34188 if test "$tst_links_getservbyport_r" = "yes"; then
34189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34190$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34192/* end confdefs.h. */
34193
34194 $curl_includes_netdb
34195
34196_ACEOF
34197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34198 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34199
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34201$as_echo "yes" >&6; }
34202 tst_proto_getservbyport_r="yes"
34203
34204else
34205
34206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34207$as_echo "no" >&6; }
34208 tst_proto_getservbyport_r="no"
34209
34210fi
34211rm -f conftest*
34212
34213 fi
34214 #
34215 if test "$tst_proto_getservbyport_r" = "yes"; then
34216 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34218$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34220/* end confdefs.h. */
34221
34222
34223 $curl_includes_netdb
34224
34225int main (void)
34226{
34227
34228 if(0 != getservbyport_r(0, 0, 0, 0))
34229 return 1;
34230
34231 ;
34232 return 0;
34233}
34234
34235_ACEOF
34236if ac_fn_c_try_compile "$LINENO"; then :
34237
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34239$as_echo "yes" >&6; }
34240 tst_compi_getservbyport_r="yes"
34241 tst_nargs_getservbyport_r="4"
34242
34243else
34244
34245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34246$as_echo "no" >&6; }
34247 tst_compi_getservbyport_r="no"
34248
34249fi
34250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34251 fi
34252 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34254$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34256/* end confdefs.h. */
34257
34258
34259 $curl_includes_netdb
34260
34261int main (void)
34262{
34263
34264 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34265 return 1;
34266
34267 ;
34268 return 0;
34269}
34270
34271_ACEOF
34272if ac_fn_c_try_compile "$LINENO"; then :
34273
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34275$as_echo "yes" >&6; }
34276 tst_compi_getservbyport_r="yes"
34277 tst_nargs_getservbyport_r="5"
34278
34279else
34280
34281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34282$as_echo "no" >&6; }
34283 tst_compi_getservbyport_r="no"
34284
34285fi
34286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34287 fi
34288 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34290$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34292/* end confdefs.h. */
34293
34294
34295 $curl_includes_netdb
34296
34297int main (void)
34298{
34299
34300 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34301 return 1;
34302
34303 ;
34304 return 0;
34305}
34306
34307_ACEOF
34308if ac_fn_c_try_compile "$LINENO"; then :
34309
34310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34311$as_echo "yes" >&6; }
34312 tst_compi_getservbyport_r="yes"
34313 tst_nargs_getservbyport_r="6"
34314
34315else
34316
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34318$as_echo "no" >&6; }
34319 tst_compi_getservbyport_r="no"
34320
34321fi
34322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34323 fi
34324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34325$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34326 if test "$tst_compi_getservbyport_r" = "yes"; then
34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34328$as_echo "yes" >&6; }
34329 else
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34331$as_echo "no" >&6; }
34332 fi
34333 fi
34334 #
34335 if test "$tst_compi_getservbyport_r" = "yes"; then
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34337$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34338 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34340$as_echo "yes" >&6; }
34341 tst_allow_getservbyport_r="yes"
34342 else
34343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34344$as_echo "no" >&6; }
34345 tst_allow_getservbyport_r="no"
34346 fi
34347 fi
34348 #
34349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34350$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34351 if test "$tst_links_getservbyport_r" = "yes" &&
34352 test "$tst_proto_getservbyport_r" = "yes" &&
34353 test "$tst_compi_getservbyport_r" = "yes" &&
34354 test "$tst_allow_getservbyport_r" = "yes"; then
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34356$as_echo "yes" >&6; }
34357
34358cat >>confdefs.h <<_ACEOF
34359#define HAVE_GETSERVBYPORT_R 1
34360_ACEOF
34361
34362
34363cat >>confdefs.h <<_ACEOF
34364#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34365_ACEOF
34366
34367 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34368
34369$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34370
34371 else
34372
34373$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34374
34375 fi
34376 curl_cv_func_getservbyport_r="yes"
34377 else
34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34379$as_echo "no" >&6; }
34380 curl_cv_func_getservbyport_r="no"
34381 fi
34382
34383
34384curl_includes_time="\
34385/* includes start */
34386#ifdef HAVE_SYS_TYPES_H
34387# include <sys/types.h>
34388#endif
34389#ifdef HAVE_SYS_TIME_H
34390# include <sys/time.h>
34391# ifdef TIME_WITH_SYS_TIME
34392# include <time.h>
34393# endif
34394#else
34395# ifdef HAVE_TIME_H
34396# include <time.h>
34397# endif
34398#endif
34399/* includes end */"
34400 for ac_header in sys/types.h sys/time.h time.h
34401do :
34402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34403ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34404"
34405if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34406 cat >>confdefs.h <<_ACEOF
34407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34408_ACEOF
34409
34410fi
34411
34412done
34413
34414
34415
34416 #
34417 tst_links_gmtime_r="unknown"
34418 tst_proto_gmtime_r="unknown"
34419 tst_compi_gmtime_r="unknown"
34420 tst_works_gmtime_r="unknown"
34421 tst_allow_gmtime_r="unknown"
34422 #
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34424$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34426/* end confdefs.h. */
34427
34428
34429#define gmtime_r innocuous_gmtime_r
34430#ifdef __STDC__
34431# include <limits.h>
34432#else
34433# include <assert.h>
34434#endif
34435#undef gmtime_r
34436#ifdef __cplusplus
34437extern "C"
34438#endif
34439char gmtime_r ();
34440#if defined __stub_gmtime_r || defined __stub___gmtime_r
34441choke me
34442#endif
34443
34444int main (void)
34445{
34446return gmtime_r ();
34447 ;
34448 return 0;
34449}
34450
34451_ACEOF
34452if ac_fn_c_try_link "$LINENO"; then :
34453
34454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34455$as_echo "yes" >&6; }
34456 tst_links_gmtime_r="yes"
34457
34458else
34459
34460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34461$as_echo "no" >&6; }
34462 tst_links_gmtime_r="no"
34463
34464fi
34465rm -f core conftest.err conftest.$ac_objext \
34466 conftest$ac_exeext conftest.$ac_ext
34467 #
34468 if test "$tst_links_gmtime_r" = "yes"; then
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34470$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34472/* end confdefs.h. */
34473
34474 $curl_includes_time
34475
34476_ACEOF
34477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34478 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34479
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34481$as_echo "yes" >&6; }
34482 tst_proto_gmtime_r="yes"
34483
34484else
34485
34486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34487$as_echo "no" >&6; }
34488 tst_proto_gmtime_r="no"
34489
34490fi
34491rm -f conftest*
34492
34493 fi
34494 #
34495 if test "$tst_proto_gmtime_r" = "yes"; then
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34497$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34499/* end confdefs.h. */
34500
34501
34502 $curl_includes_time
34503
34504int main (void)
34505{
34506
34507 if(0 != gmtime_r(0, 0))
34508 return 1;
34509
34510 ;
34511 return 0;
34512}
34513
34514_ACEOF
34515if ac_fn_c_try_compile "$LINENO"; then :
34516
34517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34518$as_echo "yes" >&6; }
34519 tst_compi_gmtime_r="yes"
34520
34521else
34522
34523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34524$as_echo "no" >&6; }
34525 tst_compi_gmtime_r="no"
34526
34527fi
34528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34529 fi
34530 #
34531 if test "x$cross_compiling" != "xyes" &&
34532 test "$tst_compi_gmtime_r" = "yes"; then
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34534$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34535 if test "$cross_compiling" = yes; then :
34536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34538as_fn_error $? "cannot run test program while cross compiling
34539See \`config.log' for more details" "$LINENO" 5; }
34540else
34541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34542/* end confdefs.h. */
34543
34544
34545 $curl_includes_stdlib
34546 $curl_includes_time
34547
34548int main (void)
34549{
34550
34551 time_t local = 1170352587;
34552 struct tm *gmt = 0;
34553 struct tm result;
34554 gmt = gmtime_r(&local, &result);
34555 if(gmt)
34556 exit(0);
34557 else
34558 exit(1);
34559
34560 ;
34561 return 0;
34562}
34563
34564_ACEOF
34565if ac_fn_c_try_run "$LINENO"; then :
34566
34567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34568$as_echo "yes" >&6; }
34569 tst_works_gmtime_r="yes"
34570
34571else
34572
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574$as_echo "no" >&6; }
34575 tst_works_gmtime_r="no"
34576
34577fi
34578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34579 conftest.$ac_objext conftest.beam conftest.$ac_ext
34580fi
34581
34582 fi
34583 #
34584 if test "$tst_compi_gmtime_r" = "yes" &&
34585 test "$tst_works_gmtime_r" != "no"; then
34586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34587$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34588 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34590$as_echo "yes" >&6; }
34591 tst_allow_gmtime_r="yes"
34592 else
34593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34594$as_echo "no" >&6; }
34595 tst_allow_gmtime_r="no"
34596 fi
34597 fi
34598 #
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34600$as_echo_n "checking if gmtime_r might be used... " >&6; }
34601 if test "$tst_links_gmtime_r" = "yes" &&
34602 test "$tst_proto_gmtime_r" = "yes" &&
34603 test "$tst_compi_gmtime_r" = "yes" &&
34604 test "$tst_allow_gmtime_r" = "yes" &&
34605 test "$tst_works_gmtime_r" != "no"; then
34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34607$as_echo "yes" >&6; }
34608
34609cat >>confdefs.h <<_ACEOF
34610#define HAVE_GMTIME_R 1
34611_ACEOF
34612
34613 curl_cv_func_gmtime_r="yes"
34614 else
34615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34616$as_echo "no" >&6; }
34617 curl_cv_func_gmtime_r="no"
34618 fi
34619
34620
34621curl_includes_arpa_inet="\
34622/* includes start */
34623#ifdef HAVE_SYS_TYPES_H
34624# include <sys/types.h>
34625#endif
34626#ifdef HAVE_SYS_SOCKET_H
34627# include <sys/socket.h>
34628#endif
34629#ifdef HAVE_NETINET_IN_H
34630# include <netinet/in.h>
34631#endif
34632#ifdef HAVE_ARPA_INET_H
34633# include <arpa/inet.h>
34634#endif
34635#ifdef HAVE_WINSOCK2_H
34636#include <winsock2.h>
34637#include <ws2tcpip.h>
34638#endif
34639/* includes end */"
34640 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34641do :
34642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34643ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34644"
34645if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34646 cat >>confdefs.h <<_ACEOF
34647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34648_ACEOF
34649
34650fi
34651
34652done
34653
34654
34655
34656 #
34657 tst_links_inet_ntoa_r="unknown"
34658 tst_proto_inet_ntoa_r="unknown"
34659 tst_compi_inet_ntoa_r="unknown"
34660 tst_allow_inet_ntoa_r="unknown"
34661 tst_nargs_inet_ntoa_r="unknown"
34662 #
34663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34664$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34666/* end confdefs.h. */
34667
34668
34669#define inet_ntoa_r innocuous_inet_ntoa_r
34670#ifdef __STDC__
34671# include <limits.h>
34672#else
34673# include <assert.h>
34674#endif
34675#undef inet_ntoa_r
34676#ifdef __cplusplus
34677extern "C"
34678#endif
34679char inet_ntoa_r ();
34680#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34681choke me
34682#endif
34683
34684int main (void)
34685{
34686return inet_ntoa_r ();
34687 ;
34688 return 0;
34689}
34690
34691_ACEOF
34692if ac_fn_c_try_link "$LINENO"; then :
34693
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34695$as_echo "yes" >&6; }
34696 tst_links_inet_ntoa_r="yes"
34697
34698else
34699
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34701$as_echo "no" >&6; }
34702 tst_links_inet_ntoa_r="no"
34703
34704fi
34705rm -f core conftest.err conftest.$ac_objext \
34706 conftest$ac_exeext conftest.$ac_ext
34707 #
34708 if test "$tst_links_inet_ntoa_r" = "yes"; then
34709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34710$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34712/* end confdefs.h. */
34713
34714 $curl_includes_arpa_inet
34715
34716_ACEOF
34717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34718 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34719
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34721$as_echo "yes" >&6; }
34722 tst_proto_inet_ntoa_r="yes"
34723
34724else
34725
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34727$as_echo "no" >&6; }
34728 tst_proto_inet_ntoa_r="no"
34729
34730fi
34731rm -f conftest*
34732
34733 fi
34734 #
34735 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34736 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34738$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34740/* end confdefs.h. */
34741
34742
34743 $curl_includes_arpa_inet
34744
34745int main (void)
34746{
34747
34748 struct in_addr addr;
34749 if(0 != inet_ntoa_r(addr, 0))
34750 return 1;
34751
34752 ;
34753 return 0;
34754}
34755
34756_ACEOF
34757if ac_fn_c_try_compile "$LINENO"; then :
34758
34759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34760$as_echo "yes" >&6; }
34761 tst_compi_inet_ntoa_r="yes"
34762 tst_nargs_inet_ntoa_r="2"
34763
34764else
34765
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767$as_echo "no" >&6; }
34768 tst_compi_inet_ntoa_r="no"
34769
34770fi
34771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34772 fi
34773 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34775$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34777/* end confdefs.h. */
34778
34779
34780 $curl_includes_arpa_inet
34781
34782int main (void)
34783{
34784
34785 struct in_addr addr;
34786 if(0 != inet_ntoa_r(addr, 0, 0))
34787 return 1;
34788
34789 ;
34790 return 0;
34791}
34792
34793_ACEOF
34794if ac_fn_c_try_compile "$LINENO"; then :
34795
34796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34797$as_echo "yes" >&6; }
34798 tst_compi_inet_ntoa_r="yes"
34799 tst_nargs_inet_ntoa_r="3"
34800
34801else
34802
34803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34804$as_echo "no" >&6; }
34805 tst_compi_inet_ntoa_r="no"
34806
34807fi
34808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34809 fi
34810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34811$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34812 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34814$as_echo "yes" >&6; }
34815 else
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34817$as_echo "no" >&6; }
34818 fi
34819 fi
34820 #
34821 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34823$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34824 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34826$as_echo "yes" >&6; }
34827 tst_allow_inet_ntoa_r="yes"
34828 else
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830$as_echo "no" >&6; }
34831 tst_allow_inet_ntoa_r="no"
34832 fi
34833 fi
34834 #
34835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34836$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34837 if test "$tst_links_inet_ntoa_r" = "yes" &&
34838 test "$tst_proto_inet_ntoa_r" = "yes" &&
34839 test "$tst_compi_inet_ntoa_r" = "yes" &&
34840 test "$tst_allow_inet_ntoa_r" = "yes"; then
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34842$as_echo "yes" >&6; }
34843
34844cat >>confdefs.h <<_ACEOF
34845#define HAVE_INET_NTOA_R 1
34846_ACEOF
34847
34848 #
34849 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34850
34851$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34852
34853 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34854
34855$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34856
34857 fi
34858 #
34859 curl_cv_func_inet_ntoa_r="yes"
34860 else
34861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34862$as_echo "no" >&6; }
34863 curl_cv_func_inet_ntoa_r="no"
34864 fi
34865
34866
34867 #
34868 tst_links_inet_ntop="unknown"
34869 tst_proto_inet_ntop="unknown"
34870 tst_compi_inet_ntop="unknown"
34871 tst_works_inet_ntop="unknown"
34872 tst_allow_inet_ntop="unknown"
34873 #
34874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34875$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34877/* end confdefs.h. */
34878
34879
34880#define inet_ntop innocuous_inet_ntop
34881#ifdef __STDC__
34882# include <limits.h>
34883#else
34884# include <assert.h>
34885#endif
34886#undef inet_ntop
34887#ifdef __cplusplus
34888extern "C"
34889#endif
34890char inet_ntop ();
34891#if defined __stub_inet_ntop || defined __stub___inet_ntop
34892choke me
34893#endif
34894
34895int main (void)
34896{
34897return inet_ntop ();
34898 ;
34899 return 0;
34900}
34901
34902_ACEOF
34903if ac_fn_c_try_link "$LINENO"; then :
34904
34905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906$as_echo "yes" >&6; }
34907 tst_links_inet_ntop="yes"
34908
34909else
34910
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34912$as_echo "no" >&6; }
34913 tst_links_inet_ntop="no"
34914
34915fi
34916rm -f core conftest.err conftest.$ac_objext \
34917 conftest$ac_exeext conftest.$ac_ext
34918 #
34919 if test "$tst_links_inet_ntop" = "yes"; then
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34921$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34923/* end confdefs.h. */
34924
34925 $curl_includes_arpa_inet
34926
34927_ACEOF
34928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34929 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34930
34931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34932$as_echo "yes" >&6; }
34933 tst_proto_inet_ntop="yes"
34934
34935else
34936
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34938$as_echo "no" >&6; }
34939 tst_proto_inet_ntop="no"
34940
34941fi
34942rm -f conftest*
34943
34944 fi
34945 #
34946 if test "$tst_proto_inet_ntop" = "yes"; then
34947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34948$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34950/* end confdefs.h. */
34951
34952
34953 $curl_includes_arpa_inet
34954
34955int main (void)
34956{
34957
34958 if(0 != inet_ntop(0, 0, 0, 0))
34959 return 1;
34960
34961 ;
34962 return 0;
34963}
34964
34965_ACEOF
34966if ac_fn_c_try_compile "$LINENO"; then :
34967
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34969$as_echo "yes" >&6; }
34970 tst_compi_inet_ntop="yes"
34971
34972else
34973
34974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34975$as_echo "no" >&6; }
34976 tst_compi_inet_ntop="no"
34977
34978fi
34979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980 fi
34981 #
34982 if test "x$cross_compiling" != "xyes" &&
34983 test "$tst_compi_inet_ntop" = "yes"; then
34984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34985$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34986 if test "$cross_compiling" = yes; then :
34987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34989as_fn_error $? "cannot run test program while cross compiling
34990See \`config.log' for more details" "$LINENO" 5; }
34991else
34992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34993/* end confdefs.h. */
34994
34995
34996 $curl_includes_stdlib
34997 $curl_includes_arpa_inet
34998 $curl_includes_string
34999
35000int main (void)
35001{
35002
35003 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35004 char ipv4res[sizeof "255.255.255.255"];
35005 unsigned char ipv6a[26];
35006 unsigned char ipv4a[5];
35007 char *ipv6ptr = 0;
35008 char *ipv4ptr = 0;
35009 /* - */
35010 ipv4res[0] = '\0';
35011 ipv4a[0] = 0xc0;
35012 ipv4a[1] = 0xa8;
35013 ipv4a[2] = 0x64;
35014 ipv4a[3] = 0x01;
35015 ipv4a[4] = 0x01;
35016 /* - */
35017 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35018 if(!ipv4ptr)
35019 exit(1); /* fail */
35020 if(ipv4ptr != ipv4res)
35021 exit(1); /* fail */
35022 if(!ipv4ptr[0])
35023 exit(1); /* fail */
35024 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35025 exit(1); /* fail */
35026 /* - */
35027 ipv6res[0] = '\0';
35028 memset(ipv6a, 0, sizeof(ipv6a));
35029 ipv6a[0] = 0xfe;
35030 ipv6a[1] = 0x80;
35031 ipv6a[8] = 0x02;
35032 ipv6a[9] = 0x14;
35033 ipv6a[10] = 0x4f;
35034 ipv6a[11] = 0xff;
35035 ipv6a[12] = 0xfe;
35036 ipv6a[13] = 0x0b;
35037 ipv6a[14] = 0x76;
35038 ipv6a[15] = 0xc8;
35039 ipv6a[25] = 0x01;
35040 /* - */
35041 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35042 if(!ipv6ptr)
35043 exit(1); /* fail */
35044 if(ipv6ptr != ipv6res)
35045 exit(1); /* fail */
35046 if(!ipv6ptr[0])
35047 exit(1); /* fail */
35048 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35049 exit(1); /* fail */
35050 /* - */
35051 exit(0);
35052
35053 ;
35054 return 0;
35055}
35056
35057_ACEOF
35058if ac_fn_c_try_run "$LINENO"; then :
35059
35060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35061$as_echo "yes" >&6; }
35062 tst_works_inet_ntop="yes"
35063
35064else
35065
35066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35067$as_echo "no" >&6; }
35068 tst_works_inet_ntop="no"
35069
35070fi
35071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35072 conftest.$ac_objext conftest.beam conftest.$ac_ext
35073fi
35074
35075 fi
35076 #
35077 if test "$tst_compi_inet_ntop" = "yes" &&
35078 test "$tst_works_inet_ntop" != "no"; then
35079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35080$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35081 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35083$as_echo "yes" >&6; }
35084 tst_allow_inet_ntop="yes"
35085 else
35086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35087$as_echo "no" >&6; }
35088 tst_allow_inet_ntop="no"
35089 fi
35090 fi
35091 #
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35093$as_echo_n "checking if inet_ntop might be used... " >&6; }
35094 if test "$tst_links_inet_ntop" = "yes" &&
35095 test "$tst_proto_inet_ntop" = "yes" &&
35096 test "$tst_compi_inet_ntop" = "yes" &&
35097 test "$tst_allow_inet_ntop" = "yes" &&
35098 test "$tst_works_inet_ntop" != "no"; then
35099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35100$as_echo "yes" >&6; }
35101
35102cat >>confdefs.h <<_ACEOF
35103#define HAVE_INET_NTOP 1
35104_ACEOF
35105
35106 curl_cv_func_inet_ntop="yes"
35107 else
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35109$as_echo "no" >&6; }
35110 curl_cv_func_inet_ntop="no"
35111 fi
35112
35113
35114 #
35115 tst_links_inet_pton="unknown"
35116 tst_proto_inet_pton="unknown"
35117 tst_compi_inet_pton="unknown"
35118 tst_works_inet_pton="unknown"
35119 tst_allow_inet_pton="unknown"
35120 #
35121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35122$as_echo_n "checking if inet_pton can be linked... " >&6; }
35123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35124/* end confdefs.h. */
35125
35126
35127#define inet_pton innocuous_inet_pton
35128#ifdef __STDC__
35129# include <limits.h>
35130#else
35131# include <assert.h>
35132#endif
35133#undef inet_pton
35134#ifdef __cplusplus
35135extern "C"
35136#endif
35137char inet_pton ();
35138#if defined __stub_inet_pton || defined __stub___inet_pton
35139choke me
35140#endif
35141
35142int main (void)
35143{
35144return inet_pton ();
35145 ;
35146 return 0;
35147}
35148
35149_ACEOF
35150if ac_fn_c_try_link "$LINENO"; then :
35151
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35153$as_echo "yes" >&6; }
35154 tst_links_inet_pton="yes"
35155
35156else
35157
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35159$as_echo "no" >&6; }
35160 tst_links_inet_pton="no"
35161
35162fi
35163rm -f core conftest.err conftest.$ac_objext \
35164 conftest$ac_exeext conftest.$ac_ext
35165 #
35166 if test "$tst_links_inet_pton" = "yes"; then
35167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35168$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35170/* end confdefs.h. */
35171
35172 $curl_includes_arpa_inet
35173
35174_ACEOF
35175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35176 $EGREP "inet_pton" >/dev/null 2>&1; then :
35177
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35179$as_echo "yes" >&6; }
35180 tst_proto_inet_pton="yes"
35181
35182else
35183
35184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35185$as_echo "no" >&6; }
35186 tst_proto_inet_pton="no"
35187
35188fi
35189rm -f conftest*
35190
35191 fi
35192 #
35193 if test "$tst_proto_inet_pton" = "yes"; then
35194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35195$as_echo_n "checking if inet_pton is compilable... " >&6; }
35196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35197/* end confdefs.h. */
35198
35199
35200 $curl_includes_arpa_inet
35201
35202int main (void)
35203{
35204
35205 if(0 != inet_pton(0, 0, 0))
35206 return 1;
35207
35208 ;
35209 return 0;
35210}
35211
35212_ACEOF
35213if ac_fn_c_try_compile "$LINENO"; then :
35214
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35216$as_echo "yes" >&6; }
35217 tst_compi_inet_pton="yes"
35218
35219else
35220
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35222$as_echo "no" >&6; }
35223 tst_compi_inet_pton="no"
35224
35225fi
35226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35227 fi
35228 #
35229 if test "x$cross_compiling" != "xyes" &&
35230 test "$tst_compi_inet_pton" = "yes"; then
35231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35232$as_echo_n "checking if inet_pton seems to work... " >&6; }
35233 if test "$cross_compiling" = yes; then :
35234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35236as_fn_error $? "cannot run test program while cross compiling
35237See \`config.log' for more details" "$LINENO" 5; }
35238else
35239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35240/* end confdefs.h. */
35241
35242
35243 $curl_includes_stdlib
35244 $curl_includes_arpa_inet
35245 $curl_includes_string
35246
35247int main (void)
35248{
35249
35250 unsigned char ipv6a[16+1];
35251 unsigned char ipv4a[4+1];
35252 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35253 const char *ipv4src = "192.168.100.1";
35254 /* - */
35255 memset(ipv4a, 1, sizeof(ipv4a));
35256 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35257 exit(1); /* fail */
35258 /* - */
35259 if( (ipv4a[0] != 0xc0) ||
35260 (ipv4a[1] != 0xa8) ||
35261 (ipv4a[2] != 0x64) ||
35262 (ipv4a[3] != 0x01) ||
35263 (ipv4a[4] != 0x01) )
35264 exit(1); /* fail */
35265 /* - */
35266 memset(ipv6a, 1, sizeof(ipv6a));
35267 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35268 exit(1); /* fail */
35269 /* - */
35270 if( (ipv6a[0] != 0xfe) ||
35271 (ipv6a[1] != 0x80) ||
35272 (ipv6a[8] != 0x02) ||
35273 (ipv6a[9] != 0x14) ||
35274 (ipv6a[10] != 0x4f) ||
35275 (ipv6a[11] != 0xff) ||
35276 (ipv6a[12] != 0xfe) ||
35277 (ipv6a[13] != 0x0b) ||
35278 (ipv6a[14] != 0x76) ||
35279 (ipv6a[15] != 0xc8) ||
35280 (ipv6a[16] != 0x01) )
35281 exit(1); /* fail */
35282 /* - */
35283 if( (ipv6a[2] != 0x0) ||
35284 (ipv6a[3] != 0x0) ||
35285 (ipv6a[4] != 0x0) ||
35286 (ipv6a[5] != 0x0) ||
35287 (ipv6a[6] != 0x0) ||
35288 (ipv6a[7] != 0x0) )
35289 exit(1); /* fail */
35290 /* - */
35291 exit(0);
35292
35293 ;
35294 return 0;
35295}
35296
35297_ACEOF
35298if ac_fn_c_try_run "$LINENO"; then :
35299
35300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35301$as_echo "yes" >&6; }
35302 tst_works_inet_pton="yes"
35303
35304else
35305
35306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35307$as_echo "no" >&6; }
35308 tst_works_inet_pton="no"
35309
35310fi
35311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35312 conftest.$ac_objext conftest.beam conftest.$ac_ext
35313fi
35314
35315 fi
35316 #
35317 if test "$tst_compi_inet_pton" = "yes" &&
35318 test "$tst_works_inet_pton" != "no"; then
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35320$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35321 if test "x$curl_disallow_inet_pton" != "xyes"; then
35322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35323$as_echo "yes" >&6; }
35324 tst_allow_inet_pton="yes"
35325 else
35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35327$as_echo "no" >&6; }
35328 tst_allow_inet_pton="no"
35329 fi
35330 fi
35331 #
35332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35333$as_echo_n "checking if inet_pton might be used... " >&6; }
35334 if test "$tst_links_inet_pton" = "yes" &&
35335 test "$tst_proto_inet_pton" = "yes" &&
35336 test "$tst_compi_inet_pton" = "yes" &&
35337 test "$tst_allow_inet_pton" = "yes" &&
35338 test "$tst_works_inet_pton" != "no"; then
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35340$as_echo "yes" >&6; }
35341
35342cat >>confdefs.h <<_ACEOF
35343#define HAVE_INET_PTON 1
35344_ACEOF
35345
35346 curl_cv_func_inet_pton="yes"
35347 else
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35349$as_echo "no" >&6; }
35350 curl_cv_func_inet_pton="no"
35351 fi
35352
35353
35354curl_includes_stropts="\
35355/* includes start */
35356#ifdef HAVE_SYS_TYPES_H
35357# include <sys/types.h>
35358#endif
35359#ifdef HAVE_UNISTD_H
35360# include <unistd.h>
35361#endif
35362#ifdef HAVE_SYS_SOCKET_H
35363# include <sys/socket.h>
35364#endif
35365#ifdef HAVE_SYS_IOCTL_H
35366# include <sys/ioctl.h>
35367#endif
35368#ifdef HAVE_STROPTS_H
35369# include <stropts.h>
35370#endif
35371/* includes end */"
35372 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35373do :
35374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35375ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35376"
35377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35378 cat >>confdefs.h <<_ACEOF
35379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35380_ACEOF
35381
35382fi
35383
35384done
35385
35386
35387
35388 #
35389 tst_links_ioctl="unknown"
35390 tst_proto_ioctl="unknown"
35391 tst_compi_ioctl="unknown"
35392 tst_allow_ioctl="unknown"
35393 #
35394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35395$as_echo_n "checking if ioctl can be linked... " >&6; }
35396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397/* end confdefs.h. */
35398
35399
35400#define ioctl innocuous_ioctl
35401#ifdef __STDC__
35402# include <limits.h>
35403#else
35404# include <assert.h>
35405#endif
35406#undef ioctl
35407#ifdef __cplusplus
35408extern "C"
35409#endif
35410char ioctl ();
35411#if defined __stub_ioctl || defined __stub___ioctl
35412choke me
35413#endif
35414
35415int main (void)
35416{
35417return ioctl ();
35418 ;
35419 return 0;
35420}
35421
35422_ACEOF
35423if ac_fn_c_try_link "$LINENO"; then :
35424
35425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35426$as_echo "yes" >&6; }
35427 tst_links_ioctl="yes"
35428
35429else
35430
35431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35432$as_echo "no" >&6; }
35433 tst_links_ioctl="no"
35434
35435fi
35436rm -f core conftest.err conftest.$ac_objext \
35437 conftest$ac_exeext conftest.$ac_ext
35438 #
35439 if test "$tst_links_ioctl" = "yes"; then
35440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35441$as_echo_n "checking if ioctl is prototyped... " >&6; }
35442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35443/* end confdefs.h. */
35444
35445 $curl_includes_stropts
35446
35447_ACEOF
35448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35449 $EGREP "ioctl" >/dev/null 2>&1; then :
35450
35451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35452$as_echo "yes" >&6; }
35453 tst_proto_ioctl="yes"
35454
35455else
35456
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35458$as_echo "no" >&6; }
35459 tst_proto_ioctl="no"
35460
35461fi
35462rm -f conftest*
35463
35464 fi
35465 #
35466 if test "$tst_proto_ioctl" = "yes"; then
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35468$as_echo_n "checking if ioctl is compilable... " >&6; }
35469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35470/* end confdefs.h. */
35471
35472
35473 $curl_includes_stropts
35474
35475int main (void)
35476{
35477
35478 if(0 != ioctl(0, 0, 0))
35479 return 1;
35480
35481 ;
35482 return 0;
35483}
35484
35485_ACEOF
35486if ac_fn_c_try_compile "$LINENO"; then :
35487
35488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35489$as_echo "yes" >&6; }
35490 tst_compi_ioctl="yes"
35491
35492else
35493
35494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35495$as_echo "no" >&6; }
35496 tst_compi_ioctl="no"
35497
35498fi
35499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35500 fi
35501 #
35502 if test "$tst_compi_ioctl" = "yes"; then
35503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35504$as_echo_n "checking if ioctl usage allowed... " >&6; }
35505 if test "x$curl_disallow_ioctl" != "xyes"; then
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35507$as_echo "yes" >&6; }
35508 tst_allow_ioctl="yes"
35509 else
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35511$as_echo "no" >&6; }
35512 tst_allow_ioctl="no"
35513 fi
35514 fi
35515 #
35516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35517$as_echo_n "checking if ioctl might be used... " >&6; }
35518 if test "$tst_links_ioctl" = "yes" &&
35519 test "$tst_proto_ioctl" = "yes" &&
35520 test "$tst_compi_ioctl" = "yes" &&
35521 test "$tst_allow_ioctl" = "yes"; then
35522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35523$as_echo "yes" >&6; }
35524
35525cat >>confdefs.h <<_ACEOF
35526#define HAVE_IOCTL 1
35527_ACEOF
35528
35529 curl_cv_func_ioctl="yes"
35530
35531 #
35532 tst_compi_ioctl_fionbio="unknown"
35533 tst_allow_ioctl_fionbio="unknown"
35534 #
35535 if test "$curl_cv_func_ioctl" = "yes"; then
35536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35537$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35539/* end confdefs.h. */
35540
35541
35542 $curl_includes_stropts
35543
35544int main (void)
35545{
35546
35547 int flags = 0;
35548 if(0 != ioctl(0, FIONBIO, &flags))
35549 return 1;
35550
35551 ;
35552 return 0;
35553}
35554
35555_ACEOF
35556if ac_fn_c_try_compile "$LINENO"; then :
35557
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35559$as_echo "yes" >&6; }
35560 tst_compi_ioctl_fionbio="yes"
35561
35562else
35563
35564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35565$as_echo "no" >&6; }
35566 tst_compi_ioctl_fionbio="no"
35567
35568fi
35569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35570 fi
35571 #
35572 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35574$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35575 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35577$as_echo "yes" >&6; }
35578 tst_allow_ioctl_fionbio="yes"
35579 else
35580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35581$as_echo "no" >&6; }
35582 tst_allow_ioctl_fionbio="no"
35583 fi
35584 fi
35585 #
35586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35587$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35588 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35589 test "$tst_allow_ioctl_fionbio" = "yes"; then
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35591$as_echo "yes" >&6; }
35592
35593cat >>confdefs.h <<_ACEOF
35594#define HAVE_IOCTL_FIONBIO 1
35595_ACEOF
35596
35597 curl_cv_func_ioctl_fionbio="yes"
35598 else
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35600$as_echo "no" >&6; }
35601 curl_cv_func_ioctl_fionbio="no"
35602 fi
35603
35604
35605 #
35606 tst_compi_ioctl_siocgifaddr="unknown"
35607 tst_allow_ioctl_siocgifaddr="unknown"
35608 #
35609 if test "$curl_cv_func_ioctl" = "yes"; then
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35611$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35613/* end confdefs.h. */
35614
35615
35616 $curl_includes_stropts
35617 #include <net/if.h>
35618
35619int main (void)
35620{
35621
35622 struct ifreq ifr;
35623 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35624 return 1;
35625
35626 ;
35627 return 0;
35628}
35629
35630_ACEOF
35631if ac_fn_c_try_compile "$LINENO"; then :
35632
35633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35634$as_echo "yes" >&6; }
35635 tst_compi_ioctl_siocgifaddr="yes"
35636
35637else
35638
35639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35640$as_echo "no" >&6; }
35641 tst_compi_ioctl_siocgifaddr="no"
35642
35643fi
35644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35645 fi
35646 #
35647 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35649$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35650 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35652$as_echo "yes" >&6; }
35653 tst_allow_ioctl_siocgifaddr="yes"
35654 else
35655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35656$as_echo "no" >&6; }
35657 tst_allow_ioctl_siocgifaddr="no"
35658 fi
35659 fi
35660 #
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35662$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35663 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35664 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35666$as_echo "yes" >&6; }
35667
35668cat >>confdefs.h <<_ACEOF
35669#define HAVE_IOCTL_SIOCGIFADDR 1
35670_ACEOF
35671
35672 curl_cv_func_ioctl_siocgifaddr="yes"
35673 else
35674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35675$as_echo "no" >&6; }
35676 curl_cv_func_ioctl_siocgifaddr="no"
35677 fi
35678
35679 else
35680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35681$as_echo "no" >&6; }
35682 curl_cv_func_ioctl="no"
35683 fi
35684
35685
35686 #
35687 tst_links_ioctlsocket="unknown"
35688 tst_proto_ioctlsocket="unknown"
35689 tst_compi_ioctlsocket="unknown"
35690 tst_allow_ioctlsocket="unknown"
35691 #
35692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35693$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35695/* end confdefs.h. */
35696
35697
35698 $curl_includes_winsock2
35699
35700int main (void)
35701{
35702
35703 if(0 != ioctlsocket(0, 0, 0))
35704 return 1;
35705
35706 ;
35707 return 0;
35708}
35709
35710_ACEOF
35711if ac_fn_c_try_link "$LINENO"; then :
35712
35713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35714$as_echo "yes" >&6; }
35715 tst_links_ioctlsocket="yes"
35716
35717else
35718
35719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35720$as_echo "no" >&6; }
35721 tst_links_ioctlsocket="no"
35722
35723fi
35724rm -f core conftest.err conftest.$ac_objext \
35725 conftest$ac_exeext conftest.$ac_ext
35726 #
35727 if test "$tst_links_ioctlsocket" = "yes"; then
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35729$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35731/* end confdefs.h. */
35732
35733 $curl_includes_winsock2
35734
35735_ACEOF
35736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35737 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35738
35739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35740$as_echo "yes" >&6; }
35741 tst_proto_ioctlsocket="yes"
35742
35743else
35744
35745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35746$as_echo "no" >&6; }
35747 tst_proto_ioctlsocket="no"
35748
35749fi
35750rm -f conftest*
35751
35752 fi
35753 #
35754 if test "$tst_proto_ioctlsocket" = "yes"; then
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35756$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35758/* end confdefs.h. */
35759
35760
35761 $curl_includes_winsock2
35762
35763int main (void)
35764{
35765
35766 if(0 != ioctlsocket(0, 0, 0))
35767 return 1;
35768
35769 ;
35770 return 0;
35771}
35772
35773_ACEOF
35774if ac_fn_c_try_compile "$LINENO"; then :
35775
35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35777$as_echo "yes" >&6; }
35778 tst_compi_ioctlsocket="yes"
35779
35780else
35781
35782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35783$as_echo "no" >&6; }
35784 tst_compi_ioctlsocket="no"
35785
35786fi
35787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35788 fi
35789 #
35790 if test "$tst_compi_ioctlsocket" = "yes"; then
35791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35792$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35793 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35795$as_echo "yes" >&6; }
35796 tst_allow_ioctlsocket="yes"
35797 else
35798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35799$as_echo "no" >&6; }
35800 tst_allow_ioctlsocket="no"
35801 fi
35802 fi
35803 #
35804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35805$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35806 if test "$tst_links_ioctlsocket" = "yes" &&
35807 test "$tst_proto_ioctlsocket" = "yes" &&
35808 test "$tst_compi_ioctlsocket" = "yes" &&
35809 test "$tst_allow_ioctlsocket" = "yes"; then
35810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35811$as_echo "yes" >&6; }
35812
35813cat >>confdefs.h <<_ACEOF
35814#define HAVE_IOCTLSOCKET 1
35815_ACEOF
35816
35817 curl_cv_func_ioctlsocket="yes"
35818
35819 #
35820 tst_compi_ioctlsocket_fionbio="unknown"
35821 tst_allow_ioctlsocket_fionbio="unknown"
35822 #
35823 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35825$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35827/* end confdefs.h. */
35828
35829
35830 $curl_includes_winsock2
35831
35832int main (void)
35833{
35834
35835 int flags = 0;
35836 if(0 != ioctlsocket(0, FIONBIO, &flags))
35837 return 1;
35838
35839 ;
35840 return 0;
35841}
35842
35843_ACEOF
35844if ac_fn_c_try_compile "$LINENO"; then :
35845
35846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35847$as_echo "yes" >&6; }
35848 tst_compi_ioctlsocket_fionbio="yes"
35849
35850else
35851
35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35853$as_echo "no" >&6; }
35854 tst_compi_ioctlsocket_fionbio="no"
35855
35856fi
35857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35858 fi
35859 #
35860 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35862$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35863 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35865$as_echo "yes" >&6; }
35866 tst_allow_ioctlsocket_fionbio="yes"
35867 else
35868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35869$as_echo "no" >&6; }
35870 tst_allow_ioctlsocket_fionbio="no"
35871 fi
35872 fi
35873 #
35874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35875$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35876 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35877 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35879$as_echo "yes" >&6; }
35880
35881cat >>confdefs.h <<_ACEOF
35882#define HAVE_IOCTLSOCKET_FIONBIO 1
35883_ACEOF
35884
35885 curl_cv_func_ioctlsocket_fionbio="yes"
35886 else
35887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35888$as_echo "no" >&6; }
35889 curl_cv_func_ioctlsocket_fionbio="no"
35890 fi
35891
35892 else
35893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35894$as_echo "no" >&6; }
35895 curl_cv_func_ioctlsocket="no"
35896 fi
35897
35898
35899 #
35900 tst_links_ioctlsocket_camel="unknown"
35901 tst_proto_ioctlsocket_camel="unknown"
35902 tst_compi_ioctlsocket_camel="unknown"
35903 tst_allow_ioctlsocket_camel="unknown"
35904 #
35905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35906$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35908/* end confdefs.h. */
35909
35910
35911#define IoctlSocket innocuous_IoctlSocket
35912#ifdef __STDC__
35913# include <limits.h>
35914#else
35915# include <assert.h>
35916#endif
35917#undef IoctlSocket
35918#ifdef __cplusplus
35919extern "C"
35920#endif
35921char IoctlSocket ();
35922#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35923choke me
35924#endif
35925
35926int main (void)
35927{
35928return IoctlSocket ();
35929 ;
35930 return 0;
35931}
35932
35933_ACEOF
35934if ac_fn_c_try_link "$LINENO"; then :
35935
35936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35937$as_echo "yes" >&6; }
35938 tst_links_ioctlsocket_camel="yes"
35939
35940else
35941
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35943$as_echo "no" >&6; }
35944 tst_links_ioctlsocket_camel="no"
35945
35946fi
35947rm -f core conftest.err conftest.$ac_objext \
35948 conftest$ac_exeext conftest.$ac_ext
35949 #
35950 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35952$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35954/* end confdefs.h. */
35955
35956 $curl_includes_stropts
35957
35958_ACEOF
35959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35960 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35961
35962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35963$as_echo "yes" >&6; }
35964 tst_proto_ioctlsocket_camel="yes"
35965
35966else
35967
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35969$as_echo "no" >&6; }
35970 tst_proto_ioctlsocket_camel="no"
35971
35972fi
35973rm -f conftest*
35974
35975 fi
35976 #
35977 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35979$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981/* end confdefs.h. */
35982
35983
35984 $curl_includes_stropts
35985
35986int main (void)
35987{
35988
35989 if(0 != IoctlSocket(0, 0, 0))
35990 return 1;
35991
35992 ;
35993 return 0;
35994}
35995
35996_ACEOF
35997if ac_fn_c_try_compile "$LINENO"; then :
35998
35999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36000$as_echo "yes" >&6; }
36001 tst_compi_ioctlsocket_camel="yes"
36002
36003else
36004
36005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36006$as_echo "no" >&6; }
36007 tst_compi_ioctlsocket_camel="no"
36008
36009fi
36010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36011 fi
36012 #
36013 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36015$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36016 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36018$as_echo "yes" >&6; }
36019 tst_allow_ioctlsocket_camel="yes"
36020 else
36021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36022$as_echo "no" >&6; }
36023 tst_allow_ioctlsocket_camel="no"
36024 fi
36025 fi
36026 #
36027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36028$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36029 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36030 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36031 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36032 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36034$as_echo "yes" >&6; }
36035
36036cat >>confdefs.h <<_ACEOF
36037#define HAVE_IOCTLSOCKET_CAMEL 1
36038_ACEOF
36039
36040 curl_cv_func_ioctlsocket_camel="yes"
36041
36042 #
36043 tst_compi_ioctlsocket_camel_fionbio="unknown"
36044 tst_allow_ioctlsocket_camel_fionbio="unknown"
36045 #
36046 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36048$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36050/* end confdefs.h. */
36051
36052
36053 $curl_includes_stropts
36054
36055int main (void)
36056{
36057
36058 long flags = 0;
36059 if(0 != ioctlsocket(0, FIONBIO, &flags))
36060 return 1;
36061
36062 ;
36063 return 0;
36064}
36065
36066_ACEOF
36067if ac_fn_c_try_compile "$LINENO"; then :
36068
36069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36070$as_echo "yes" >&6; }
36071 tst_compi_ioctlsocket_camel_fionbio="yes"
36072
36073else
36074
36075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36076$as_echo "no" >&6; }
36077 tst_compi_ioctlsocket_camel_fionbio="no"
36078
36079fi
36080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081 fi
36082 #
36083 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36085$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36086 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36088$as_echo "yes" >&6; }
36089 tst_allow_ioctlsocket_camel_fionbio="yes"
36090 else
36091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36092$as_echo "no" >&6; }
36093 tst_allow_ioctlsocket_camel_fionbio="no"
36094 fi
36095 fi
36096 #
36097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36098$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36099 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36100 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36102$as_echo "yes" >&6; }
36103
36104cat >>confdefs.h <<_ACEOF
36105#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36106_ACEOF
36107
36108 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36109 else
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36111$as_echo "no" >&6; }
36112 curl_cv_func_ioctlsocket_camel_fionbio="no"
36113 fi
36114
36115 else
36116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36117$as_echo "no" >&6; }
36118 curl_cv_func_ioctlsocket_camel="no"
36119 fi
36120
36121
36122 #
36123 tst_links_localtime_r="unknown"
36124 tst_proto_localtime_r="unknown"
36125 tst_compi_localtime_r="unknown"
36126 tst_works_localtime_r="unknown"
36127 tst_allow_localtime_r="unknown"
36128 #
36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36130$as_echo_n "checking if localtime_r can be linked... " >&6; }
36131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36132/* end confdefs.h. */
36133
36134
36135#define localtime_r innocuous_localtime_r
36136#ifdef __STDC__
36137# include <limits.h>
36138#else
36139# include <assert.h>
36140#endif
36141#undef localtime_r
36142#ifdef __cplusplus
36143extern "C"
36144#endif
36145char localtime_r ();
36146#if defined __stub_localtime_r || defined __stub___localtime_r
36147choke me
36148#endif
36149
36150int main (void)
36151{
36152return localtime_r ();
36153 ;
36154 return 0;
36155}
36156
36157_ACEOF
36158if ac_fn_c_try_link "$LINENO"; then :
36159
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36161$as_echo "yes" >&6; }
36162 tst_links_localtime_r="yes"
36163
36164else
36165
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36167$as_echo "no" >&6; }
36168 tst_links_localtime_r="no"
36169
36170fi
36171rm -f core conftest.err conftest.$ac_objext \
36172 conftest$ac_exeext conftest.$ac_ext
36173 #
36174 if test "$tst_links_localtime_r" = "yes"; then
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36176$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36178/* end confdefs.h. */
36179
36180 $curl_includes_time
36181
36182_ACEOF
36183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36184 $EGREP "localtime_r" >/dev/null 2>&1; then :
36185
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36187$as_echo "yes" >&6; }
36188 tst_proto_localtime_r="yes"
36189
36190else
36191
36192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36193$as_echo "no" >&6; }
36194 tst_proto_localtime_r="no"
36195
36196fi
36197rm -f conftest*
36198
36199 fi
36200 #
36201 if test "$tst_proto_localtime_r" = "yes"; then
36202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36203$as_echo_n "checking if localtime_r is compilable... " >&6; }
36204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36205/* end confdefs.h. */
36206
36207
36208 $curl_includes_time
36209
36210int main (void)
36211{
36212
36213 if(0 != localtime_r(0, 0))
36214 return 1;
36215
36216 ;
36217 return 0;
36218}
36219
36220_ACEOF
36221if ac_fn_c_try_compile "$LINENO"; then :
36222
36223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36224$as_echo "yes" >&6; }
36225 tst_compi_localtime_r="yes"
36226
36227else
36228
36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36230$as_echo "no" >&6; }
36231 tst_compi_localtime_r="no"
36232
36233fi
36234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36235 fi
36236 #
36237 if test "x$cross_compiling" != "xyes" &&
36238 test "$tst_compi_localtime_r" = "yes"; then
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36240$as_echo_n "checking if localtime_r seems to work... " >&6; }
36241 if test "$cross_compiling" = yes; then :
36242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36244as_fn_error $? "cannot run test program while cross compiling
36245See \`config.log' for more details" "$LINENO" 5; }
36246else
36247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36248/* end confdefs.h. */
36249
36250
36251 $curl_includes_stdlib
36252 $curl_includes_time
36253
36254int main (void)
36255{
36256
36257 time_t clock = 1170352587;
36258 struct tm *tmp = 0;
36259 struct tm result;
36260 tmp = localtime_r(&clock, &result);
36261 if(tmp)
36262 exit(0);
36263 else
36264 exit(1);
36265
36266 ;
36267 return 0;
36268}
36269
36270_ACEOF
36271if ac_fn_c_try_run "$LINENO"; then :
36272
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36274$as_echo "yes" >&6; }
36275 tst_works_localtime_r="yes"
36276
36277else
36278
36279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36280$as_echo "no" >&6; }
36281 tst_works_localtime_r="no"
36282
36283fi
36284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36285 conftest.$ac_objext conftest.beam conftest.$ac_ext
36286fi
36287
36288 fi
36289 #
36290 if test "$tst_compi_localtime_r" = "yes" &&
36291 test "$tst_works_localtime_r" != "no"; then
36292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36293$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36294 if test "x$curl_disallow_localtime_r" != "xyes"; then
36295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36296$as_echo "yes" >&6; }
36297 tst_allow_localtime_r="yes"
36298 else
36299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36300$as_echo "no" >&6; }
36301 tst_allow_localtime_r="no"
36302 fi
36303 fi
36304 #
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36306$as_echo_n "checking if localtime_r might be used... " >&6; }
36307 if test "$tst_links_localtime_r" = "yes" &&
36308 test "$tst_proto_localtime_r" = "yes" &&
36309 test "$tst_compi_localtime_r" = "yes" &&
36310 test "$tst_allow_localtime_r" = "yes" &&
36311 test "$tst_works_localtime_r" != "no"; then
36312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36313$as_echo "yes" >&6; }
36314
36315cat >>confdefs.h <<_ACEOF
36316#define HAVE_LOCALTIME_R 1
36317_ACEOF
36318
36319 curl_cv_func_localtime_r="yes"
36320 else
36321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36322$as_echo "no" >&6; }
36323 curl_cv_func_localtime_r="no"
36324 fi
36325
36326
36327 #
36328 tst_links_memrchr="unknown"
36329 tst_macro_memrchr="unknown"
36330 tst_proto_memrchr="unknown"
36331 tst_compi_memrchr="unknown"
36332 tst_allow_memrchr="unknown"
36333 #
36334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36335$as_echo_n "checking if memrchr can be linked... " >&6; }
36336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36337/* end confdefs.h. */
36338
36339
36340#define memrchr innocuous_memrchr
36341#ifdef __STDC__
36342# include <limits.h>
36343#else
36344# include <assert.h>
36345#endif
36346#undef memrchr
36347#ifdef __cplusplus
36348extern "C"
36349#endif
36350char memrchr ();
36351#if defined __stub_memrchr || defined __stub___memrchr
36352choke me
36353#endif
36354
36355int main (void)
36356{
36357return memrchr ();
36358 ;
36359 return 0;
36360}
36361
36362_ACEOF
36363if ac_fn_c_try_link "$LINENO"; then :
36364
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36366$as_echo "yes" >&6; }
36367 tst_links_memrchr="yes"
36368
36369else
36370
36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36372$as_echo "no" >&6; }
36373 tst_links_memrchr="no"
36374
36375fi
36376rm -f core conftest.err conftest.$ac_objext \
36377 conftest$ac_exeext conftest.$ac_ext
36378 #
36379 if test "$tst_links_memrchr" = "no"; then
36380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36381$as_echo_n "checking if memrchr seems a macro... " >&6; }
36382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36383/* end confdefs.h. */
36384
36385
36386 $curl_includes_string
36387
36388int main (void)
36389{
36390
36391 if(0 != memrchr(0, 0, 0))
36392 return 1;
36393
36394 ;
36395 return 0;
36396}
36397
36398_ACEOF
36399if ac_fn_c_try_link "$LINENO"; then :
36400
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36402$as_echo "yes" >&6; }
36403 tst_macro_memrchr="yes"
36404
36405else
36406
36407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36408$as_echo "no" >&6; }
36409 tst_macro_memrchr="no"
36410
36411fi
36412rm -f core conftest.err conftest.$ac_objext \
36413 conftest$ac_exeext conftest.$ac_ext
36414 fi
36415 #
36416 if test "$tst_links_memrchr" = "yes"; then
36417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36418$as_echo_n "checking if memrchr is prototyped... " >&6; }
36419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36420/* end confdefs.h. */
36421
36422 $curl_includes_string
36423
36424_ACEOF
36425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36426 $EGREP "memrchr" >/dev/null 2>&1; then :
36427
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36429$as_echo "yes" >&6; }
36430 tst_proto_memrchr="yes"
36431
36432else
36433
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36435$as_echo "no" >&6; }
36436 tst_proto_memrchr="no"
36437
36438fi
36439rm -f conftest*
36440
36441 fi
36442 #
36443 if test "$tst_proto_memrchr" = "yes" ||
36444 test "$tst_macro_memrchr" = "yes"; then
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36446$as_echo_n "checking if memrchr is compilable... " >&6; }
36447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36448/* end confdefs.h. */
36449
36450
36451 $curl_includes_string
36452
36453int main (void)
36454{
36455
36456 if(0 != memrchr(0, 0, 0))
36457 return 1;
36458
36459 ;
36460 return 0;
36461}
36462
36463_ACEOF
36464if ac_fn_c_try_compile "$LINENO"; then :
36465
36466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36467$as_echo "yes" >&6; }
36468 tst_compi_memrchr="yes"
36469
36470else
36471
36472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36473$as_echo "no" >&6; }
36474 tst_compi_memrchr="no"
36475
36476fi
36477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 fi
36479 #
36480 if test "$tst_compi_memrchr" = "yes"; then
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36482$as_echo_n "checking if memrchr usage allowed... " >&6; }
36483 if test "x$curl_disallow_memrchr" != "xyes"; then
36484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36485$as_echo "yes" >&6; }
36486 tst_allow_memrchr="yes"
36487 else
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36489$as_echo "no" >&6; }
36490 tst_allow_memrchr="no"
36491 fi
36492 fi
36493 #
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36495$as_echo_n "checking if memrchr might be used... " >&6; }
36496 if (test "$tst_proto_memrchr" = "yes" ||
36497 test "$tst_macro_memrchr" = "yes") &&
36498 test "$tst_compi_memrchr" = "yes" &&
36499 test "$tst_allow_memrchr" = "yes"; then
36500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36501$as_echo "yes" >&6; }
36502
36503cat >>confdefs.h <<_ACEOF
36504#define HAVE_MEMRCHR 1
36505_ACEOF
36506
36507 curl_cv_func_memrchr="yes"
36508 else
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36510$as_echo "no" >&6; }
36511 curl_cv_func_memrchr="no"
36512 fi
36513
36514
36515 #
36516 tst_links_poll="unknown"
36517 tst_proto_poll="unknown"
36518 tst_compi_poll="unknown"
36519 tst_works_poll="unknown"
36520 tst_allow_poll="unknown"
36521 #
36522 case $host_os in
36523 darwin*|interix*)
36524 curl_disallow_poll="yes"
36525 tst_compi_poll="no"
36526 ;;
36527 esac
36528 #
36529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36530$as_echo_n "checking if poll can be linked... " >&6; }
36531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36532/* end confdefs.h. */
36533
36534
36535 $curl_includes_poll
36536
36537int main (void)
36538{
36539
36540 if(0 != poll(0, 0, 0))
36541 return 1;
36542
36543 ;
36544 return 0;
36545}
36546
36547_ACEOF
36548if ac_fn_c_try_link "$LINENO"; then :
36549
36550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36551$as_echo "yes" >&6; }
36552 tst_links_poll="yes"
36553
36554else
36555
36556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36557$as_echo "no" >&6; }
36558 tst_links_poll="no"
36559
36560fi
36561rm -f core conftest.err conftest.$ac_objext \
36562 conftest$ac_exeext conftest.$ac_ext
36563 #
36564 if test "$tst_links_poll" = "yes"; then
36565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36566$as_echo_n "checking if poll is prototyped... " >&6; }
36567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36568/* end confdefs.h. */
36569
36570 $curl_includes_poll
36571
36572_ACEOF
36573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36574 $EGREP "poll" >/dev/null 2>&1; then :
36575
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36577$as_echo "yes" >&6; }
36578 tst_proto_poll="yes"
36579
36580else
36581
36582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36583$as_echo "no" >&6; }
36584 tst_proto_poll="no"
36585
36586fi
36587rm -f conftest*
36588
36589 fi
36590 #
36591 if test "$tst_proto_poll" = "yes"; then
36592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36593$as_echo_n "checking if poll is compilable... " >&6; }
36594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36595/* end confdefs.h. */
36596
36597
36598 $curl_includes_poll
36599
36600int main (void)
36601{
36602
36603 if(0 != poll(0, 0, 0))
36604 return 1;
36605
36606 ;
36607 return 0;
36608}
36609
36610_ACEOF
36611if ac_fn_c_try_compile "$LINENO"; then :
36612
36613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36614$as_echo "yes" >&6; }
36615 tst_compi_poll="yes"
36616
36617else
36618
36619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36620$as_echo "no" >&6; }
36621 tst_compi_poll="no"
36622
36623fi
36624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36625 fi
36626 #
36627 if test "x$cross_compiling" != "xyes" &&
36628 test "$tst_compi_poll" = "yes"; then
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36630$as_echo_n "checking if poll seems to work... " >&6; }
36631 if test "$cross_compiling" = yes; then :
36632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36634as_fn_error $? "cannot run test program while cross compiling
36635See \`config.log' for more details" "$LINENO" 5; }
36636else
36637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36638/* end confdefs.h. */
36639
36640
36641 $curl_includes_stdlib
36642 $curl_includes_poll
36643 $curl_includes_time
36644
36645int main (void)
36646{
36647
36648 /* detect the original poll() breakage */
36649 if(0 != poll(0, 0, 10))
36650 exit(1); /* fail */
36651 else {
36652 /* detect the 10.12 poll() breakage */
36653 struct timeval before, after;
36654 int rc;
36655 size_t us;
36656
36657 gettimeofday(&before, NULL);
36658 rc = poll(NULL, 0, 500);
36659 gettimeofday(&after, NULL);
36660
36661 us = (after.tv_sec - before.tv_sec) * 1000000 +
36662 (after.tv_usec - before.tv_usec);
36663
36664 if(us < 400000)
36665 exit(1);
36666 }
36667
36668 ;
36669 return 0;
36670}
36671
36672_ACEOF
36673if ac_fn_c_try_run "$LINENO"; then :
36674
36675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36676$as_echo "yes" >&6; }
36677 tst_works_poll="yes"
36678
36679else
36680
36681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36682$as_echo "no" >&6; }
36683 tst_works_poll="no"
36684
36685fi
36686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36687 conftest.$ac_objext conftest.beam conftest.$ac_ext
36688fi
36689
36690 fi
36691 #
36692 if test "$tst_compi_poll" = "yes" &&
36693 test "$tst_works_poll" != "no"; then
36694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36695$as_echo_n "checking if poll usage allowed... " >&6; }
36696 if test "x$curl_disallow_poll" != "xyes"; then
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36698$as_echo "yes" >&6; }
36699 tst_allow_poll="yes"
36700 else
36701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36702$as_echo "no" >&6; }
36703 tst_allow_poll="no"
36704 fi
36705 fi
36706 #
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36708$as_echo_n "checking if poll might be used... " >&6; }
36709 if test "$tst_links_poll" = "yes" &&
36710 test "$tst_proto_poll" = "yes" &&
36711 test "$tst_compi_poll" = "yes" &&
36712 test "$tst_allow_poll" = "yes" &&
36713 test "$tst_works_poll" != "no"; then
36714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36715$as_echo "yes" >&6; }
36716
36717cat >>confdefs.h <<_ACEOF
36718#define HAVE_POLL 1
36719_ACEOF
36720
36721
36722cat >>confdefs.h <<_ACEOF
36723#define HAVE_POLL_FINE 1
36724_ACEOF
36725
36726 curl_cv_func_poll="yes"
36727 else
36728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36729$as_echo "no" >&6; }
36730 curl_cv_func_poll="no"
36731 fi
36732
36733
36734 #
36735 tst_links_setsockopt="unknown"
36736 tst_proto_setsockopt="unknown"
36737 tst_compi_setsockopt="unknown"
36738 tst_allow_setsockopt="unknown"
36739 #
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36741$as_echo_n "checking if setsockopt can be linked... " >&6; }
36742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36743/* end confdefs.h. */
36744
36745
36746 $curl_includes_winsock2
36747 $curl_includes_sys_socket
36748
36749int main (void)
36750{
36751
36752 if(0 != setsockopt(0, 0, 0, 0, 0))
36753 return 1;
36754
36755 ;
36756 return 0;
36757}
36758
36759_ACEOF
36760if ac_fn_c_try_link "$LINENO"; then :
36761
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36763$as_echo "yes" >&6; }
36764 tst_links_setsockopt="yes"
36765
36766else
36767
36768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36769$as_echo "no" >&6; }
36770 tst_links_setsockopt="no"
36771
36772fi
36773rm -f core conftest.err conftest.$ac_objext \
36774 conftest$ac_exeext conftest.$ac_ext
36775 #
36776 if test "$tst_links_setsockopt" = "yes"; then
36777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36778$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36780/* end confdefs.h. */
36781
36782 $curl_includes_winsock2
36783 $curl_includes_sys_socket
36784
36785_ACEOF
36786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36787 $EGREP "setsockopt" >/dev/null 2>&1; then :
36788
36789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36790$as_echo "yes" >&6; }
36791 tst_proto_setsockopt="yes"
36792
36793else
36794
36795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36796$as_echo "no" >&6; }
36797 tst_proto_setsockopt="no"
36798
36799fi
36800rm -f conftest*
36801
36802 fi
36803 #
36804 if test "$tst_proto_setsockopt" = "yes"; then
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36806$as_echo_n "checking if setsockopt is compilable... " >&6; }
36807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36808/* end confdefs.h. */
36809
36810
36811 $curl_includes_winsock2
36812 $curl_includes_sys_socket
36813
36814int main (void)
36815{
36816
36817 if(0 != setsockopt(0, 0, 0, 0, 0))
36818 return 1;
36819
36820 ;
36821 return 0;
36822}
36823
36824_ACEOF
36825if ac_fn_c_try_compile "$LINENO"; then :
36826
36827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36828$as_echo "yes" >&6; }
36829 tst_compi_setsockopt="yes"
36830
36831else
36832
36833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36834$as_echo "no" >&6; }
36835 tst_compi_setsockopt="no"
36836
36837fi
36838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36839 fi
36840 #
36841 if test "$tst_compi_setsockopt" = "yes"; then
36842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36843$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36844 if test "x$curl_disallow_setsockopt" != "xyes"; then
36845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36846$as_echo "yes" >&6; }
36847 tst_allow_setsockopt="yes"
36848 else
36849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36850$as_echo "no" >&6; }
36851 tst_allow_setsockopt="no"
36852 fi
36853 fi
36854 #
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36856$as_echo_n "checking if setsockopt might be used... " >&6; }
36857 if test "$tst_links_setsockopt" = "yes" &&
36858 test "$tst_proto_setsockopt" = "yes" &&
36859 test "$tst_compi_setsockopt" = "yes" &&
36860 test "$tst_allow_setsockopt" = "yes"; then
36861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36862$as_echo "yes" >&6; }
36863
36864cat >>confdefs.h <<_ACEOF
36865#define HAVE_SETSOCKOPT 1
36866_ACEOF
36867
36868 curl_cv_func_setsockopt="yes"
36869
36870 #
36871 tst_compi_setsockopt_so_nonblock="unknown"
36872 tst_allow_setsockopt_so_nonblock="unknown"
36873 #
36874 if test "$curl_cv_func_setsockopt" = "yes"; then
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36876$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36878/* end confdefs.h. */
36879
36880
36881 $curl_includes_winsock2
36882 $curl_includes_sys_socket
36883
36884int main (void)
36885{
36886
36887 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36888 return 1;
36889
36890 ;
36891 return 0;
36892}
36893
36894_ACEOF
36895if ac_fn_c_try_compile "$LINENO"; then :
36896
36897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36898$as_echo "yes" >&6; }
36899 tst_compi_setsockopt_so_nonblock="yes"
36900
36901else
36902
36903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36904$as_echo "no" >&6; }
36905 tst_compi_setsockopt_so_nonblock="no"
36906
36907fi
36908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36909 fi
36910 #
36911 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36913$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36914 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36916$as_echo "yes" >&6; }
36917 tst_allow_setsockopt_so_nonblock="yes"
36918 else
36919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36920$as_echo "no" >&6; }
36921 tst_allow_setsockopt_so_nonblock="no"
36922 fi
36923 fi
36924 #
36925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36926$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36927 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36928 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36930$as_echo "yes" >&6; }
36931
36932cat >>confdefs.h <<_ACEOF
36933#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36934_ACEOF
36935
36936 curl_cv_func_setsockopt_so_nonblock="yes"
36937 else
36938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36939$as_echo "no" >&6; }
36940 curl_cv_func_setsockopt_so_nonblock="no"
36941 fi
36942
36943 else
36944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36945$as_echo "no" >&6; }
36946 curl_cv_func_setsockopt="no"
36947 fi
36948
36949
36950curl_includes_signal="\
36951/* includes start */
36952#ifdef HAVE_SYS_TYPES_H
36953# include <sys/types.h>
36954#endif
36955#ifdef HAVE_SIGNAL_H
36956# include <signal.h>
36957#endif
36958/* includes end */"
36959 for ac_header in sys/types.h signal.h
36960do :
36961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36962ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36963"
36964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36965 cat >>confdefs.h <<_ACEOF
36966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36967_ACEOF
36968
36969fi
36970
36971done
36972
36973
36974
36975 #
36976 tst_links_sigaction="unknown"
36977 tst_proto_sigaction="unknown"
36978 tst_compi_sigaction="unknown"
36979 tst_allow_sigaction="unknown"
36980 #
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36982$as_echo_n "checking if sigaction can be linked... " >&6; }
36983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36984/* end confdefs.h. */
36985
36986
36987#define sigaction innocuous_sigaction
36988#ifdef __STDC__
36989# include <limits.h>
36990#else
36991# include <assert.h>
36992#endif
36993#undef sigaction
36994#ifdef __cplusplus
36995extern "C"
36996#endif
36997char sigaction ();
36998#if defined __stub_sigaction || defined __stub___sigaction
36999choke me
37000#endif
37001
37002int main (void)
37003{
37004return sigaction ();
37005 ;
37006 return 0;
37007}
37008
37009_ACEOF
37010if ac_fn_c_try_link "$LINENO"; then :
37011
37012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37013$as_echo "yes" >&6; }
37014 tst_links_sigaction="yes"
37015
37016else
37017
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019$as_echo "no" >&6; }
37020 tst_links_sigaction="no"
37021
37022fi
37023rm -f core conftest.err conftest.$ac_objext \
37024 conftest$ac_exeext conftest.$ac_ext
37025 #
37026 if test "$tst_links_sigaction" = "yes"; then
37027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37028$as_echo_n "checking if sigaction is prototyped... " >&6; }
37029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37030/* end confdefs.h. */
37031
37032 $curl_includes_signal
37033
37034_ACEOF
37035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37036 $EGREP "sigaction" >/dev/null 2>&1; then :
37037
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37039$as_echo "yes" >&6; }
37040 tst_proto_sigaction="yes"
37041
37042else
37043
37044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37045$as_echo "no" >&6; }
37046 tst_proto_sigaction="no"
37047
37048fi
37049rm -f conftest*
37050
37051 fi
37052 #
37053 if test "$tst_proto_sigaction" = "yes"; then
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37055$as_echo_n "checking if sigaction is compilable... " >&6; }
37056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37057/* end confdefs.h. */
37058
37059
37060 $curl_includes_signal
37061
37062int main (void)
37063{
37064
37065 if(0 != sigaction(0, 0, 0))
37066 return 1;
37067
37068 ;
37069 return 0;
37070}
37071
37072_ACEOF
37073if ac_fn_c_try_compile "$LINENO"; then :
37074
37075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37076$as_echo "yes" >&6; }
37077 tst_compi_sigaction="yes"
37078
37079else
37080
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37082$as_echo "no" >&6; }
37083 tst_compi_sigaction="no"
37084
37085fi
37086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37087 fi
37088 #
37089 if test "$tst_compi_sigaction" = "yes"; then
37090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37091$as_echo_n "checking if sigaction usage allowed... " >&6; }
37092 if test "x$curl_disallow_sigaction" != "xyes"; then
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37094$as_echo "yes" >&6; }
37095 tst_allow_sigaction="yes"
37096 else
37097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37098$as_echo "no" >&6; }
37099 tst_allow_sigaction="no"
37100 fi
37101 fi
37102 #
37103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37104$as_echo_n "checking if sigaction might be used... " >&6; }
37105 if test "$tst_links_sigaction" = "yes" &&
37106 test "$tst_proto_sigaction" = "yes" &&
37107 test "$tst_compi_sigaction" = "yes" &&
37108 test "$tst_allow_sigaction" = "yes"; then
37109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37110$as_echo "yes" >&6; }
37111
37112cat >>confdefs.h <<_ACEOF
37113#define HAVE_SIGACTION 1
37114_ACEOF
37115
37116 curl_cv_func_sigaction="yes"
37117 else
37118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37119$as_echo "no" >&6; }
37120 curl_cv_func_sigaction="no"
37121 fi
37122
37123
37124 #
37125 tst_links_siginterrupt="unknown"
37126 tst_proto_siginterrupt="unknown"
37127 tst_compi_siginterrupt="unknown"
37128 tst_allow_siginterrupt="unknown"
37129 #
37130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37131$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37133/* end confdefs.h. */
37134
37135
37136#define siginterrupt innocuous_siginterrupt
37137#ifdef __STDC__
37138# include <limits.h>
37139#else
37140# include <assert.h>
37141#endif
37142#undef siginterrupt
37143#ifdef __cplusplus
37144extern "C"
37145#endif
37146char siginterrupt ();
37147#if defined __stub_siginterrupt || defined __stub___siginterrupt
37148choke me
37149#endif
37150
37151int main (void)
37152{
37153return siginterrupt ();
37154 ;
37155 return 0;
37156}
37157
37158_ACEOF
37159if ac_fn_c_try_link "$LINENO"; then :
37160
37161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37162$as_echo "yes" >&6; }
37163 tst_links_siginterrupt="yes"
37164
37165else
37166
37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37168$as_echo "no" >&6; }
37169 tst_links_siginterrupt="no"
37170
37171fi
37172rm -f core conftest.err conftest.$ac_objext \
37173 conftest$ac_exeext conftest.$ac_ext
37174 #
37175 if test "$tst_links_siginterrupt" = "yes"; then
37176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37177$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37179/* end confdefs.h. */
37180
37181 $curl_includes_signal
37182
37183_ACEOF
37184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37185 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37186
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37188$as_echo "yes" >&6; }
37189 tst_proto_siginterrupt="yes"
37190
37191else
37192
37193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37194$as_echo "no" >&6; }
37195 tst_proto_siginterrupt="no"
37196
37197fi
37198rm -f conftest*
37199
37200 fi
37201 #
37202 if test "$tst_proto_siginterrupt" = "yes"; then
37203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37204$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37206/* end confdefs.h. */
37207
37208
37209 $curl_includes_signal
37210
37211int main (void)
37212{
37213
37214 if(0 != siginterrupt(0, 0))
37215 return 1;
37216
37217 ;
37218 return 0;
37219}
37220
37221_ACEOF
37222if ac_fn_c_try_compile "$LINENO"; then :
37223
37224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37225$as_echo "yes" >&6; }
37226 tst_compi_siginterrupt="yes"
37227
37228else
37229
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37231$as_echo "no" >&6; }
37232 tst_compi_siginterrupt="no"
37233
37234fi
37235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37236 fi
37237 #
37238 if test "$tst_compi_siginterrupt" = "yes"; then
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37240$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37241 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37243$as_echo "yes" >&6; }
37244 tst_allow_siginterrupt="yes"
37245 else
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247$as_echo "no" >&6; }
37248 tst_allow_siginterrupt="no"
37249 fi
37250 fi
37251 #
37252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37253$as_echo_n "checking if siginterrupt might be used... " >&6; }
37254 if test "$tst_links_siginterrupt" = "yes" &&
37255 test "$tst_proto_siginterrupt" = "yes" &&
37256 test "$tst_compi_siginterrupt" = "yes" &&
37257 test "$tst_allow_siginterrupt" = "yes"; then
37258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37259$as_echo "yes" >&6; }
37260
37261cat >>confdefs.h <<_ACEOF
37262#define HAVE_SIGINTERRUPT 1
37263_ACEOF
37264
37265 curl_cv_func_siginterrupt="yes"
37266 else
37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37268$as_echo "no" >&6; }
37269 curl_cv_func_siginterrupt="no"
37270 fi
37271
37272
37273 #
37274 tst_links_signal="unknown"
37275 tst_proto_signal="unknown"
37276 tst_compi_signal="unknown"
37277 tst_allow_signal="unknown"
37278 #
37279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37280$as_echo_n "checking if signal can be linked... " >&6; }
37281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37282/* end confdefs.h. */
37283
37284
37285#define signal innocuous_signal
37286#ifdef __STDC__
37287# include <limits.h>
37288#else
37289# include <assert.h>
37290#endif
37291#undef signal
37292#ifdef __cplusplus
37293extern "C"
37294#endif
37295char signal ();
37296#if defined __stub_signal || defined __stub___signal
37297choke me
37298#endif
37299
37300int main (void)
37301{
37302return signal ();
37303 ;
37304 return 0;
37305}
37306
37307_ACEOF
37308if ac_fn_c_try_link "$LINENO"; then :
37309
37310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37311$as_echo "yes" >&6; }
37312 tst_links_signal="yes"
37313
37314else
37315
37316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37317$as_echo "no" >&6; }
37318 tst_links_signal="no"
37319
37320fi
37321rm -f core conftest.err conftest.$ac_objext \
37322 conftest$ac_exeext conftest.$ac_ext
37323 #
37324 if test "$tst_links_signal" = "yes"; then
37325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37326$as_echo_n "checking if signal is prototyped... " >&6; }
37327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37328/* end confdefs.h. */
37329
37330 $curl_includes_signal
37331
37332_ACEOF
37333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37334 $EGREP "signal" >/dev/null 2>&1; then :
37335
37336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37337$as_echo "yes" >&6; }
37338 tst_proto_signal="yes"
37339
37340else
37341
37342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37343$as_echo "no" >&6; }
37344 tst_proto_signal="no"
37345
37346fi
37347rm -f conftest*
37348
37349 fi
37350 #
37351 if test "$tst_proto_signal" = "yes"; then
37352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37353$as_echo_n "checking if signal is compilable... " >&6; }
37354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37355/* end confdefs.h. */
37356
37357
37358 $curl_includes_signal
37359
37360int main (void)
37361{
37362
37363 if(0 != signal(0, 0))
37364 return 1;
37365
37366 ;
37367 return 0;
37368}
37369
37370_ACEOF
37371if ac_fn_c_try_compile "$LINENO"; then :
37372
37373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37374$as_echo "yes" >&6; }
37375 tst_compi_signal="yes"
37376
37377else
37378
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37380$as_echo "no" >&6; }
37381 tst_compi_signal="no"
37382
37383fi
37384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37385 fi
37386 #
37387 if test "$tst_compi_signal" = "yes"; then
37388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37389$as_echo_n "checking if signal usage allowed... " >&6; }
37390 if test "x$curl_disallow_signal" != "xyes"; then
37391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37392$as_echo "yes" >&6; }
37393 tst_allow_signal="yes"
37394 else
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396$as_echo "no" >&6; }
37397 tst_allow_signal="no"
37398 fi
37399 fi
37400 #
37401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37402$as_echo_n "checking if signal might be used... " >&6; }
37403 if test "$tst_links_signal" = "yes" &&
37404 test "$tst_proto_signal" = "yes" &&
37405 test "$tst_compi_signal" = "yes" &&
37406 test "$tst_allow_signal" = "yes"; then
37407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37408$as_echo "yes" >&6; }
37409
37410cat >>confdefs.h <<_ACEOF
37411#define HAVE_SIGNAL 1
37412_ACEOF
37413
37414 curl_cv_func_signal="yes"
37415 else
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37417$as_echo "no" >&6; }
37418 curl_cv_func_signal="no"
37419 fi
37420
37421
37422curl_includes_setjmp="\
37423/* includes start */
37424#ifdef HAVE_SYS_TYPES_H
37425# include <sys/types.h>
37426#endif
37427#ifdef HAVE_SETJMP_H
37428# include <setjmp.h>
37429#endif
37430/* includes end */"
37431 for ac_header in sys/types.h setjmp.h
37432do :
37433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37434ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37435"
37436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37437 cat >>confdefs.h <<_ACEOF
37438#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37439_ACEOF
37440
37441fi
37442
37443done
37444
37445
37446
37447 #
37448 tst_links_sigsetjmp="unknown"
37449 tst_macro_sigsetjmp="unknown"
37450 tst_proto_sigsetjmp="unknown"
37451 tst_compi_sigsetjmp="unknown"
37452 tst_allow_sigsetjmp="unknown"
37453 #
37454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37455$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37457/* end confdefs.h. */
37458
37459
37460#define sigsetjmp innocuous_sigsetjmp
37461#ifdef __STDC__
37462# include <limits.h>
37463#else
37464# include <assert.h>
37465#endif
37466#undef sigsetjmp
37467#ifdef __cplusplus
37468extern "C"
37469#endif
37470char sigsetjmp ();
37471#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37472choke me
37473#endif
37474
37475int main (void)
37476{
37477return sigsetjmp ();
37478 ;
37479 return 0;
37480}
37481
37482_ACEOF
37483if ac_fn_c_try_link "$LINENO"; then :
37484
37485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37486$as_echo "yes" >&6; }
37487 tst_links_sigsetjmp="yes"
37488
37489else
37490
37491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37492$as_echo "no" >&6; }
37493 tst_links_sigsetjmp="no"
37494
37495fi
37496rm -f core conftest.err conftest.$ac_objext \
37497 conftest$ac_exeext conftest.$ac_ext
37498 #
37499 if test "$tst_links_sigsetjmp" = "no"; then
37500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37501$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37503/* end confdefs.h. */
37504
37505
37506 $curl_includes_setjmp
37507
37508int main (void)
37509{
37510
37511 sigjmp_buf env;
37512 if(0 != sigsetjmp(env, 0))
37513 return 1;
37514
37515 ;
37516 return 0;
37517}
37518
37519_ACEOF
37520if ac_fn_c_try_link "$LINENO"; then :
37521
37522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37523$as_echo "yes" >&6; }
37524 tst_macro_sigsetjmp="yes"
37525
37526else
37527
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37529$as_echo "no" >&6; }
37530 tst_macro_sigsetjmp="no"
37531
37532fi
37533rm -f core conftest.err conftest.$ac_objext \
37534 conftest$ac_exeext conftest.$ac_ext
37535 fi
37536 #
37537 if test "$tst_links_sigsetjmp" = "yes"; then
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37539$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37541/* end confdefs.h. */
37542
37543 $curl_includes_setjmp
37544
37545_ACEOF
37546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37547 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37548
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37550$as_echo "yes" >&6; }
37551 tst_proto_sigsetjmp="yes"
37552
37553else
37554
37555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37556$as_echo "no" >&6; }
37557 tst_proto_sigsetjmp="no"
37558
37559fi
37560rm -f conftest*
37561
37562 fi
37563 #
37564 if test "$tst_proto_sigsetjmp" = "yes" ||
37565 test "$tst_macro_sigsetjmp" = "yes"; then
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37567$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37569/* end confdefs.h. */
37570
37571
37572 $curl_includes_setjmp
37573
37574int main (void)
37575{
37576
37577 sigjmp_buf env;
37578 if(0 != sigsetjmp(env, 0))
37579 return 1;
37580
37581 ;
37582 return 0;
37583}
37584
37585_ACEOF
37586if ac_fn_c_try_compile "$LINENO"; then :
37587
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37589$as_echo "yes" >&6; }
37590 tst_compi_sigsetjmp="yes"
37591
37592else
37593
37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37595$as_echo "no" >&6; }
37596 tst_compi_sigsetjmp="no"
37597
37598fi
37599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37600 fi
37601 #
37602 if test "$tst_compi_sigsetjmp" = "yes"; then
37603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37604$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37605 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37607$as_echo "yes" >&6; }
37608 tst_allow_sigsetjmp="yes"
37609 else
37610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37611$as_echo "no" >&6; }
37612 tst_allow_sigsetjmp="no"
37613 fi
37614 fi
37615 #
37616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37617$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37618 if (test "$tst_proto_sigsetjmp" = "yes" ||
37619 test "$tst_macro_sigsetjmp" = "yes") &&
37620 test "$tst_compi_sigsetjmp" = "yes" &&
37621 test "$tst_allow_sigsetjmp" = "yes"; then
37622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37623$as_echo "yes" >&6; }
37624
37625cat >>confdefs.h <<_ACEOF
37626#define HAVE_SIGSETJMP 1
37627_ACEOF
37628
37629 curl_cv_func_sigsetjmp="yes"
37630 else
37631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37632$as_echo "no" >&6; }
37633 curl_cv_func_sigsetjmp="no"
37634 fi
37635
37636
37637 #
37638 tst_links_socket="unknown"
37639 tst_proto_socket="unknown"
37640 tst_compi_socket="unknown"
37641 tst_allow_socket="unknown"
37642 #
37643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37644$as_echo_n "checking if socket can be linked... " >&6; }
37645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37646/* end confdefs.h. */
37647
37648
37649 $curl_includes_winsock2
37650 $curl_includes_sys_socket
37651 $curl_includes_socket
37652
37653int main (void)
37654{
37655
37656 if(0 != socket(0, 0, 0))
37657 return 1;
37658
37659 ;
37660 return 0;
37661}
37662
37663_ACEOF
37664if ac_fn_c_try_link "$LINENO"; then :
37665
37666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37667$as_echo "yes" >&6; }
37668 tst_links_socket="yes"
37669
37670else
37671
37672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37673$as_echo "no" >&6; }
37674 tst_links_socket="no"
37675
37676fi
37677rm -f core conftest.err conftest.$ac_objext \
37678 conftest$ac_exeext conftest.$ac_ext
37679 #
37680 if test "$tst_links_socket" = "yes"; then
37681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37682$as_echo_n "checking if socket is prototyped... " >&6; }
37683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684/* end confdefs.h. */
37685
37686 $curl_includes_winsock2
37687 $curl_includes_sys_socket
37688 $curl_includes_socket
37689
37690_ACEOF
37691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37692 $EGREP "socket" >/dev/null 2>&1; then :
37693
37694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37695$as_echo "yes" >&6; }
37696 tst_proto_socket="yes"
37697
37698else
37699
37700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37701$as_echo "no" >&6; }
37702 tst_proto_socket="no"
37703
37704fi
37705rm -f conftest*
37706
37707 fi
37708 #
37709 if test "$tst_proto_socket" = "yes"; then
37710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37711$as_echo_n "checking if socket is compilable... " >&6; }
37712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37713/* end confdefs.h. */
37714
37715
37716 $curl_includes_winsock2
37717 $curl_includes_sys_socket
37718 $curl_includes_socket
37719
37720int main (void)
37721{
37722
37723 if(0 != socket(0, 0, 0))
37724 return 1;
37725
37726 ;
37727 return 0;
37728}
37729
37730_ACEOF
37731if ac_fn_c_try_compile "$LINENO"; then :
37732
37733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37734$as_echo "yes" >&6; }
37735 tst_compi_socket="yes"
37736
37737else
37738
37739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37740$as_echo "no" >&6; }
37741 tst_compi_socket="no"
37742
37743fi
37744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37745 fi
37746 #
37747 if test "$tst_compi_socket" = "yes"; then
37748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37749$as_echo_n "checking if socket usage allowed... " >&6; }
37750 if test "x$curl_disallow_socket" != "xyes"; then
37751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37752$as_echo "yes" >&6; }
37753 tst_allow_socket="yes"
37754 else
37755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37756$as_echo "no" >&6; }
37757 tst_allow_socket="no"
37758 fi
37759 fi
37760 #
37761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37762$as_echo_n "checking if socket might be used... " >&6; }
37763 if test "$tst_links_socket" = "yes" &&
37764 test "$tst_proto_socket" = "yes" &&
37765 test "$tst_compi_socket" = "yes" &&
37766 test "$tst_allow_socket" = "yes"; then
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37768$as_echo "yes" >&6; }
37769
37770cat >>confdefs.h <<_ACEOF
37771#define HAVE_SOCKET 1
37772_ACEOF
37773
37774 curl_cv_func_socket="yes"
37775 else
37776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37777$as_echo "no" >&6; }
37778 curl_cv_func_socket="no"
37779 fi
37780
37781
37782 #
37783 tst_links_socketpair="unknown"
37784 tst_proto_socketpair="unknown"
37785 tst_compi_socketpair="unknown"
37786 tst_allow_socketpair="unknown"
37787 #
37788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37789$as_echo_n "checking if socketpair can be linked... " >&6; }
37790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37791/* end confdefs.h. */
37792
37793
37794#define socketpair innocuous_socketpair
37795#ifdef __STDC__
37796# include <limits.h>
37797#else
37798# include <assert.h>
37799#endif
37800#undef socketpair
37801#ifdef __cplusplus
37802extern "C"
37803#endif
37804char socketpair ();
37805#if defined __stub_socketpair || defined __stub___socketpair
37806choke me
37807#endif
37808
37809int main (void)
37810{
37811return socketpair ();
37812 ;
37813 return 0;
37814}
37815
37816_ACEOF
37817if ac_fn_c_try_link "$LINENO"; then :
37818
37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37820$as_echo "yes" >&6; }
37821 tst_links_socketpair="yes"
37822
37823else
37824
37825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37826$as_echo "no" >&6; }
37827 tst_links_socketpair="no"
37828
37829fi
37830rm -f core conftest.err conftest.$ac_objext \
37831 conftest$ac_exeext conftest.$ac_ext
37832 #
37833 if test "$tst_links_socketpair" = "yes"; then
37834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37835$as_echo_n "checking if socketpair is prototyped... " >&6; }
37836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37837/* end confdefs.h. */
37838
37839 $curl_includes_sys_socket
37840 $curl_includes_socket
37841
37842_ACEOF
37843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37844 $EGREP "socketpair" >/dev/null 2>&1; then :
37845
37846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37847$as_echo "yes" >&6; }
37848 tst_proto_socketpair="yes"
37849
37850else
37851
37852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37853$as_echo "no" >&6; }
37854 tst_proto_socketpair="no"
37855
37856fi
37857rm -f conftest*
37858
37859 fi
37860 #
37861 if test "$tst_proto_socketpair" = "yes"; then
37862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37863$as_echo_n "checking if socketpair is compilable... " >&6; }
37864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37865/* end confdefs.h. */
37866
37867
37868 $curl_includes_sys_socket
37869 $curl_includes_socket
37870
37871int main (void)
37872{
37873
37874 int sv[2];
37875 if(0 != socketpair(0, 0, 0, sv))
37876 return 1;
37877
37878 ;
37879 return 0;
37880}
37881
37882_ACEOF
37883if ac_fn_c_try_compile "$LINENO"; then :
37884
37885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886$as_echo "yes" >&6; }
37887 tst_compi_socketpair="yes"
37888
37889else
37890
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892$as_echo "no" >&6; }
37893 tst_compi_socketpair="no"
37894
37895fi
37896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37897 fi
37898 #
37899 if test "$tst_compi_socketpair" = "yes"; then
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37901$as_echo_n "checking if socketpair usage allowed... " >&6; }
37902 if test "x$curl_disallow_socketpair" != "xyes"; then
37903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37904$as_echo "yes" >&6; }
37905 tst_allow_socketpair="yes"
37906 else
37907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37908$as_echo "no" >&6; }
37909 tst_allow_socketpair="no"
37910 fi
37911 fi
37912 #
37913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37914$as_echo_n "checking if socketpair might be used... " >&6; }
37915 if test "$tst_links_socketpair" = "yes" &&
37916 test "$tst_proto_socketpair" = "yes" &&
37917 test "$tst_compi_socketpair" = "yes" &&
37918 test "$tst_allow_socketpair" = "yes"; then
37919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37920$as_echo "yes" >&6; }
37921
37922cat >>confdefs.h <<_ACEOF
37923#define HAVE_SOCKETPAIR 1
37924_ACEOF
37925
37926 curl_cv_func_socketpair="yes"
37927 else
37928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37929$as_echo "no" >&6; }
37930 curl_cv_func_socketpair="no"
37931 fi
37932
37933
37934 #
37935 tst_links_strcasecmp="unknown"
37936 tst_proto_strcasecmp="unknown"
37937 tst_compi_strcasecmp="unknown"
37938 tst_allow_strcasecmp="unknown"
37939 #
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37941$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37943/* end confdefs.h. */
37944
37945
37946#define strcasecmp innocuous_strcasecmp
37947#ifdef __STDC__
37948# include <limits.h>
37949#else
37950# include <assert.h>
37951#endif
37952#undef strcasecmp
37953#ifdef __cplusplus
37954extern "C"
37955#endif
37956char strcasecmp ();
37957#if defined __stub_strcasecmp || defined __stub___strcasecmp
37958choke me
37959#endif
37960
37961int main (void)
37962{
37963return strcasecmp ();
37964 ;
37965 return 0;
37966}
37967
37968_ACEOF
37969if ac_fn_c_try_link "$LINENO"; then :
37970
37971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37972$as_echo "yes" >&6; }
37973 tst_links_strcasecmp="yes"
37974
37975else
37976
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37978$as_echo "no" >&6; }
37979 tst_links_strcasecmp="no"
37980
37981fi
37982rm -f core conftest.err conftest.$ac_objext \
37983 conftest$ac_exeext conftest.$ac_ext
37984 #
37985 if test "$tst_links_strcasecmp" = "yes"; then
37986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37987$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37989/* end confdefs.h. */
37990
37991 $curl_includes_string
37992
37993_ACEOF
37994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37995 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37996
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37998$as_echo "yes" >&6; }
37999 tst_proto_strcasecmp="yes"
38000
38001else
38002
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38004$as_echo "no" >&6; }
38005 tst_proto_strcasecmp="no"
38006
38007fi
38008rm -f conftest*
38009
38010 fi
38011 #
38012 if test "$tst_proto_strcasecmp" = "yes"; then
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38014$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38016/* end confdefs.h. */
38017
38018
38019 $curl_includes_string
38020
38021int main (void)
38022{
38023
38024 if(0 != strcasecmp(0, 0))
38025 return 1;
38026
38027 ;
38028 return 0;
38029}
38030
38031_ACEOF
38032if ac_fn_c_try_compile "$LINENO"; then :
38033
38034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38035$as_echo "yes" >&6; }
38036 tst_compi_strcasecmp="yes"
38037
38038else
38039
38040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38041$as_echo "no" >&6; }
38042 tst_compi_strcasecmp="no"
38043
38044fi
38045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38046 fi
38047 #
38048 if test "$tst_compi_strcasecmp" = "yes"; then
38049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38050$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38051 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38053$as_echo "yes" >&6; }
38054 tst_allow_strcasecmp="yes"
38055 else
38056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38057$as_echo "no" >&6; }
38058 tst_allow_strcasecmp="no"
38059 fi
38060 fi
38061 #
38062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38063$as_echo_n "checking if strcasecmp might be used... " >&6; }
38064 if test "$tst_links_strcasecmp" = "yes" &&
38065 test "$tst_proto_strcasecmp" = "yes" &&
38066 test "$tst_compi_strcasecmp" = "yes" &&
38067 test "$tst_allow_strcasecmp" = "yes"; then
38068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38069$as_echo "yes" >&6; }
38070
38071cat >>confdefs.h <<_ACEOF
38072#define HAVE_STRCASECMP 1
38073_ACEOF
38074
38075 curl_cv_func_strcasecmp="yes"
38076 else
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38078$as_echo "no" >&6; }
38079 curl_cv_func_strcasecmp="no"
38080 fi
38081
38082
38083 #
38084 tst_links_strcmpi="unknown"
38085 tst_proto_strcmpi="unknown"
38086 tst_compi_strcmpi="unknown"
38087 tst_allow_strcmpi="unknown"
38088 #
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38090$as_echo_n "checking if strcmpi can be linked... " >&6; }
38091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38092/* end confdefs.h. */
38093
38094
38095#define strcmpi innocuous_strcmpi
38096#ifdef __STDC__
38097# include <limits.h>
38098#else
38099# include <assert.h>
38100#endif
38101#undef strcmpi
38102#ifdef __cplusplus
38103extern "C"
38104#endif
38105char strcmpi ();
38106#if defined __stub_strcmpi || defined __stub___strcmpi
38107choke me
38108#endif
38109
38110int main (void)
38111{
38112return strcmpi ();
38113 ;
38114 return 0;
38115}
38116
38117_ACEOF
38118if ac_fn_c_try_link "$LINENO"; then :
38119
38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38121$as_echo "yes" >&6; }
38122 tst_links_strcmpi="yes"
38123
38124else
38125
38126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38127$as_echo "no" >&6; }
38128 tst_links_strcmpi="no"
38129
38130fi
38131rm -f core conftest.err conftest.$ac_objext \
38132 conftest$ac_exeext conftest.$ac_ext
38133 #
38134 if test "$tst_links_strcmpi" = "yes"; then
38135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38136$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38138/* end confdefs.h. */
38139
38140 $curl_includes_string
38141
38142_ACEOF
38143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38144 $EGREP "strcmpi" >/dev/null 2>&1; then :
38145
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38147$as_echo "yes" >&6; }
38148 tst_proto_strcmpi="yes"
38149
38150else
38151
38152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38153$as_echo "no" >&6; }
38154 tst_proto_strcmpi="no"
38155
38156fi
38157rm -f conftest*
38158
38159 fi
38160 #
38161 if test "$tst_proto_strcmpi" = "yes"; then
38162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38163$as_echo_n "checking if strcmpi is compilable... " >&6; }
38164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38165/* end confdefs.h. */
38166
38167
38168 $curl_includes_string
38169
38170int main (void)
38171{
38172
38173 if(0 != strcmpi(0, 0))
38174 return 1;
38175
38176 ;
38177 return 0;
38178}
38179
38180_ACEOF
38181if ac_fn_c_try_compile "$LINENO"; then :
38182
38183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38184$as_echo "yes" >&6; }
38185 tst_compi_strcmpi="yes"
38186
38187else
38188
38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38190$as_echo "no" >&6; }
38191 tst_compi_strcmpi="no"
38192
38193fi
38194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38195 fi
38196 #
38197 if test "$tst_compi_strcmpi" = "yes"; then
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38199$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38200 if test "x$curl_disallow_strcmpi" != "xyes"; then
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38202$as_echo "yes" >&6; }
38203 tst_allow_strcmpi="yes"
38204 else
38205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38206$as_echo "no" >&6; }
38207 tst_allow_strcmpi="no"
38208 fi
38209 fi
38210 #
38211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38212$as_echo_n "checking if strcmpi might be used... " >&6; }
38213 if test "$tst_links_strcmpi" = "yes" &&
38214 test "$tst_proto_strcmpi" = "yes" &&
38215 test "$tst_compi_strcmpi" = "yes" &&
38216 test "$tst_allow_strcmpi" = "yes"; then
38217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38218$as_echo "yes" >&6; }
38219
38220cat >>confdefs.h <<_ACEOF
38221#define HAVE_STRCMPI 1
38222_ACEOF
38223
38224 curl_cv_func_strcmpi="yes"
38225 else
38226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38227$as_echo "no" >&6; }
38228 curl_cv_func_strcmpi="no"
38229 fi
38230
38231
38232 #
38233 tst_links_strdup="unknown"
38234 tst_proto_strdup="unknown"
38235 tst_compi_strdup="unknown"
38236 tst_allow_strdup="unknown"
38237 #
38238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38239$as_echo_n "checking if strdup can be linked... " >&6; }
38240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38241/* end confdefs.h. */
38242
38243
38244#define strdup innocuous_strdup
38245#ifdef __STDC__
38246# include <limits.h>
38247#else
38248# include <assert.h>
38249#endif
38250#undef strdup
38251#ifdef __cplusplus
38252extern "C"
38253#endif
38254char strdup ();
38255#if defined __stub_strdup || defined __stub___strdup
38256choke me
38257#endif
38258
38259int main (void)
38260{
38261return strdup ();
38262 ;
38263 return 0;
38264}
38265
38266_ACEOF
38267if ac_fn_c_try_link "$LINENO"; then :
38268
38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38270$as_echo "yes" >&6; }
38271 tst_links_strdup="yes"
38272
38273else
38274
38275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38276$as_echo "no" >&6; }
38277 tst_links_strdup="no"
38278
38279fi
38280rm -f core conftest.err conftest.$ac_objext \
38281 conftest$ac_exeext conftest.$ac_ext
38282 #
38283 if test "$tst_links_strdup" = "yes"; then
38284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38285$as_echo_n "checking if strdup is prototyped... " >&6; }
38286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38287/* end confdefs.h. */
38288
38289 $curl_includes_string
38290
38291_ACEOF
38292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38293 $EGREP "strdup" >/dev/null 2>&1; then :
38294
38295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38296$as_echo "yes" >&6; }
38297 tst_proto_strdup="yes"
38298
38299else
38300
38301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38302$as_echo "no" >&6; }
38303 tst_proto_strdup="no"
38304
38305fi
38306rm -f conftest*
38307
38308 fi
38309 #
38310 if test "$tst_proto_strdup" = "yes"; then
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38312$as_echo_n "checking if strdup is compilable... " >&6; }
38313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38314/* end confdefs.h. */
38315
38316
38317 $curl_includes_string
38318
38319int main (void)
38320{
38321
38322 if(0 != strdup(0))
38323 return 1;
38324
38325 ;
38326 return 0;
38327}
38328
38329_ACEOF
38330if ac_fn_c_try_compile "$LINENO"; then :
38331
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38333$as_echo "yes" >&6; }
38334 tst_compi_strdup="yes"
38335
38336else
38337
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38339$as_echo "no" >&6; }
38340 tst_compi_strdup="no"
38341
38342fi
38343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38344 fi
38345 #
38346 if test "$tst_compi_strdup" = "yes"; then
38347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38348$as_echo_n "checking if strdup usage allowed... " >&6; }
38349 if test "x$curl_disallow_strdup" != "xyes"; then
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38351$as_echo "yes" >&6; }
38352 tst_allow_strdup="yes"
38353 else
38354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38355$as_echo "no" >&6; }
38356 tst_allow_strdup="no"
38357 fi
38358 fi
38359 #
38360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38361$as_echo_n "checking if strdup might be used... " >&6; }
38362 if test "$tst_links_strdup" = "yes" &&
38363 test "$tst_proto_strdup" = "yes" &&
38364 test "$tst_compi_strdup" = "yes" &&
38365 test "$tst_allow_strdup" = "yes"; then
38366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38367$as_echo "yes" >&6; }
38368
38369cat >>confdefs.h <<_ACEOF
38370#define HAVE_STRDUP 1
38371_ACEOF
38372
38373 curl_cv_func_strdup="yes"
38374 else
38375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38376$as_echo "no" >&6; }
38377 curl_cv_func_strdup="no"
38378 fi
38379
38380
38381 #
38382 tst_links_strerror_r="unknown"
38383 tst_proto_strerror_r="unknown"
38384 tst_compi_strerror_r="unknown"
38385 tst_glibc_strerror_r="unknown"
38386 tst_posix_strerror_r="unknown"
38387 tst_allow_strerror_r="unknown"
38388 tst_works_glibc_strerror_r="unknown"
38389 tst_works_posix_strerror_r="unknown"
38390 tst_glibc_strerror_r_type_arg3="unknown"
38391 tst_posix_strerror_r_type_arg3="unknown"
38392 #
38393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38394$as_echo_n "checking if strerror_r can be linked... " >&6; }
38395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38396/* end confdefs.h. */
38397
38398
38399#define strerror_r innocuous_strerror_r
38400#ifdef __STDC__
38401# include <limits.h>
38402#else
38403# include <assert.h>
38404#endif
38405#undef strerror_r
38406#ifdef __cplusplus
38407extern "C"
38408#endif
38409char strerror_r ();
38410#if defined __stub_strerror_r || defined __stub___strerror_r
38411choke me
38412#endif
38413
38414int main (void)
38415{
38416return strerror_r ();
38417 ;
38418 return 0;
38419}
38420
38421_ACEOF
38422if ac_fn_c_try_link "$LINENO"; then :
38423
38424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38425$as_echo "yes" >&6; }
38426 tst_links_strerror_r="yes"
38427
38428else
38429
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38431$as_echo "no" >&6; }
38432 tst_links_strerror_r="no"
38433
38434fi
38435rm -f core conftest.err conftest.$ac_objext \
38436 conftest$ac_exeext conftest.$ac_ext
38437 #
38438 if test "$tst_links_strerror_r" = "yes"; then
38439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38440$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38442/* end confdefs.h. */
38443
38444 $curl_includes_string
38445
38446_ACEOF
38447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38448 $EGREP "strerror_r" >/dev/null 2>&1; then :
38449
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38451$as_echo "yes" >&6; }
38452 tst_proto_strerror_r="yes"
38453
38454else
38455
38456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38457$as_echo "no" >&6; }
38458 tst_proto_strerror_r="no"
38459
38460fi
38461rm -f conftest*
38462
38463 fi
38464 #
38465 if test "$tst_proto_strerror_r" = "yes"; then
38466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38467$as_echo_n "checking if strerror_r is compilable... " >&6; }
38468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38469/* end confdefs.h. */
38470
38471
38472 $curl_includes_string
38473
38474int main (void)
38475{
38476
38477 if(0 != strerror_r(0, 0, 0))
38478 return 1;
38479
38480 ;
38481 return 0;
38482}
38483
38484_ACEOF
38485if ac_fn_c_try_compile "$LINENO"; then :
38486
38487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38488$as_echo "yes" >&6; }
38489 tst_compi_strerror_r="yes"
38490
38491else
38492
38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38494$as_echo "no" >&6; }
38495 tst_compi_strerror_r="no"
38496
38497fi
38498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38499 fi
38500 #
38501 if test "$tst_compi_strerror_r" = "yes"; then
38502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38503$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38504 tst_glibc_strerror_r_type_arg3="unknown"
38505 for arg3 in 'size_t' 'int' 'unsigned int'; do
38506 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38508/* end confdefs.h. */
38509
38510
38511 $curl_includes_string
38512 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38513
38514int main (void)
38515{
38516
38517 if(0 != strerror_r(0, 0, 0))
38518 return 1;
38519
38520 ;
38521 return 0;
38522}
38523
38524_ACEOF
38525if ac_fn_c_try_compile "$LINENO"; then :
38526
38527 tst_glibc_strerror_r_type_arg3="$arg3"
38528
38529fi
38530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38531 fi
38532 done
38533 case "$tst_glibc_strerror_r_type_arg3" in
38534 unknown)
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38536$as_echo "no" >&6; }
38537 tst_glibc_strerror_r="no"
38538 ;;
38539 *)
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38541$as_echo "yes" >&6; }
38542 tst_glibc_strerror_r="yes"
38543 ;;
38544 esac
38545 fi
38546 #
38547 if test "x$cross_compiling" != "xyes" &&
38548 test "$tst_glibc_strerror_r" = "yes"; then
38549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38550$as_echo_n "checking if strerror_r seems to work... " >&6; }
38551 if test "$cross_compiling" = yes; then :
38552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38554as_fn_error $? "cannot run test program while cross compiling
38555See \`config.log' for more details" "$LINENO" 5; }
38556else
38557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38558/* end confdefs.h. */
38559
38560
38561 $curl_includes_stdlib
38562 $curl_includes_string
38563# include <errno.h>
38564
38565int main (void)
38566{
38567
38568 char buffer[1024];
38569 char *string = 0;
38570 buffer[0] = '\0';
38571 string = strerror_r(EACCES, buffer, sizeof(buffer));
38572 if(!string)
38573 exit(1); /* fail */
38574 if(!string[0])
38575 exit(1); /* fail */
38576 else
38577 exit(0);
38578
38579 ;
38580 return 0;
38581}
38582
38583_ACEOF
38584if ac_fn_c_try_run "$LINENO"; then :
38585
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38587$as_echo "yes" >&6; }
38588 tst_works_glibc_strerror_r="yes"
38589
38590else
38591
38592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38593$as_echo "no" >&6; }
38594 tst_works_glibc_strerror_r="no"
38595
38596fi
38597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38598 conftest.$ac_objext conftest.beam conftest.$ac_ext
38599fi
38600
38601 fi
38602 #
38603 if test "$tst_compi_strerror_r" = "yes" &&
38604 test "$tst_works_glibc_strerror_r" != "yes"; then
38605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38606$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38607 tst_posix_strerror_r_type_arg3="unknown"
38608 for arg3 in 'size_t' 'int' 'unsigned int'; do
38609 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38611/* end confdefs.h. */
38612
38613
38614 $curl_includes_string
38615 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38616
38617int main (void)
38618{
38619
38620 if(0 != strerror_r(0, 0, 0))
38621 return 1;
38622
38623 ;
38624 return 0;
38625}
38626
38627_ACEOF
38628if ac_fn_c_try_compile "$LINENO"; then :
38629
38630 tst_posix_strerror_r_type_arg3="$arg3"
38631
38632fi
38633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38634 fi
38635 done
38636 case "$tst_posix_strerror_r_type_arg3" in
38637 unknown)
38638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38639$as_echo "no" >&6; }
38640 tst_posix_strerror_r="no"
38641 ;;
38642 *)
38643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38644$as_echo "yes" >&6; }
38645 tst_posix_strerror_r="yes"
38646 ;;
38647 esac
38648 fi
38649 #
38650 if test "x$cross_compiling" != "xyes" &&
38651 test "$tst_posix_strerror_r" = "yes"; then
38652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38653$as_echo_n "checking if strerror_r seems to work... " >&6; }
38654 if test "$cross_compiling" = yes; then :
38655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38657as_fn_error $? "cannot run test program while cross compiling
38658See \`config.log' for more details" "$LINENO" 5; }
38659else
38660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38661/* end confdefs.h. */
38662
38663
38664 $curl_includes_stdlib
38665 $curl_includes_string
38666# include <errno.h>
38667
38668int main (void)
38669{
38670
38671 char buffer[1024];
38672 int error = 1;
38673 buffer[0] = '\0';
38674 error = strerror_r(EACCES, buffer, sizeof(buffer));
38675 if(error)
38676 exit(1); /* fail */
38677 if(buffer[0] == '\0')
38678 exit(1); /* fail */
38679 else
38680 exit(0);
38681
38682 ;
38683 return 0;
38684}
38685
38686_ACEOF
38687if ac_fn_c_try_run "$LINENO"; then :
38688
38689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38690$as_echo "yes" >&6; }
38691 tst_works_posix_strerror_r="yes"
38692
38693else
38694
38695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38696$as_echo "no" >&6; }
38697 tst_works_posix_strerror_r="no"
38698
38699fi
38700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38701 conftest.$ac_objext conftest.beam conftest.$ac_ext
38702fi
38703
38704 fi
38705 #
38706 if test "$tst_works_glibc_strerror_r" = "yes"; then
38707 tst_posix_strerror_r="no"
38708 fi
38709 if test "$tst_works_posix_strerror_r" = "yes"; then
38710 tst_glibc_strerror_r="no"
38711 fi
38712 if test "$tst_glibc_strerror_r" = "yes" &&
38713 test "$tst_works_glibc_strerror_r" != "no" &&
38714 test "$tst_posix_strerror_r" != "yes"; then
38715 tst_allow_strerror_r="check"
38716 fi
38717 if test "$tst_posix_strerror_r" = "yes" &&
38718 test "$tst_works_posix_strerror_r" != "no" &&
38719 test "$tst_glibc_strerror_r" != "yes"; then
38720 tst_allow_strerror_r="check"
38721 fi
38722 if test "$tst_allow_strerror_r" = "check"; then
38723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38724$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38725 if test "x$curl_disallow_strerror_r" != "xyes"; then
38726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38727$as_echo "yes" >&6; }
38728 tst_allow_strerror_r="yes"
38729 else
38730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38731$as_echo "no" >&6; }
38732 tst_allow_strerror_r="no"
38733 fi
38734 fi
38735 #
38736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38737$as_echo_n "checking if strerror_r might be used... " >&6; }
38738 if test "$tst_links_strerror_r" = "yes" &&
38739 test "$tst_proto_strerror_r" = "yes" &&
38740 test "$tst_compi_strerror_r" = "yes" &&
38741 test "$tst_allow_strerror_r" = "yes"; then
38742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38743$as_echo "yes" >&6; }
38744 if test "$tst_glibc_strerror_r" = "yes"; then
38745
38746cat >>confdefs.h <<_ACEOF
38747#define HAVE_STRERROR_R 1
38748_ACEOF
38749
38750
38751cat >>confdefs.h <<_ACEOF
38752#define HAVE_GLIBC_STRERROR_R 1
38753_ACEOF
38754
38755
38756cat >>confdefs.h <<_ACEOF
38757#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38758_ACEOF
38759
38760 fi
38761 if test "$tst_posix_strerror_r" = "yes"; then
38762
38763cat >>confdefs.h <<_ACEOF
38764#define HAVE_STRERROR_R 1
38765_ACEOF
38766
38767
38768cat >>confdefs.h <<_ACEOF
38769#define HAVE_POSIX_STRERROR_R 1
38770_ACEOF
38771
38772
38773cat >>confdefs.h <<_ACEOF
38774#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38775_ACEOF
38776
38777 fi
38778 curl_cv_func_strerror_r="yes"
38779 else
38780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38781$as_echo "no" >&6; }
38782 curl_cv_func_strerror_r="no"
38783 fi
38784 #
38785 if test "$tst_compi_strerror_r" = "yes" &&
38786 test "$tst_allow_strerror_r" = "unknown"; then
38787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38788$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38789 fi
38790 #
38791
38792
38793 #
38794 tst_links_stricmp="unknown"
38795 tst_proto_stricmp="unknown"
38796 tst_compi_stricmp="unknown"
38797 tst_allow_stricmp="unknown"
38798 #
38799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38800$as_echo_n "checking if stricmp can be linked... " >&6; }
38801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38802/* end confdefs.h. */
38803
38804
38805#define stricmp innocuous_stricmp
38806#ifdef __STDC__
38807# include <limits.h>
38808#else
38809# include <assert.h>
38810#endif
38811#undef stricmp
38812#ifdef __cplusplus
38813extern "C"
38814#endif
38815char stricmp ();
38816#if defined __stub_stricmp || defined __stub___stricmp
38817choke me
38818#endif
38819
38820int main (void)
38821{
38822return stricmp ();
38823 ;
38824 return 0;
38825}
38826
38827_ACEOF
38828if ac_fn_c_try_link "$LINENO"; then :
38829
38830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38831$as_echo "yes" >&6; }
38832 tst_links_stricmp="yes"
38833
38834else
38835
38836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38837$as_echo "no" >&6; }
38838 tst_links_stricmp="no"
38839
38840fi
38841rm -f core conftest.err conftest.$ac_objext \
38842 conftest$ac_exeext conftest.$ac_ext
38843 #
38844 if test "$tst_links_stricmp" = "yes"; then
38845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38846$as_echo_n "checking if stricmp is prototyped... " >&6; }
38847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38848/* end confdefs.h. */
38849
38850 $curl_includes_string
38851
38852_ACEOF
38853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38854 $EGREP "stricmp" >/dev/null 2>&1; then :
38855
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38857$as_echo "yes" >&6; }
38858 tst_proto_stricmp="yes"
38859
38860else
38861
38862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38863$as_echo "no" >&6; }
38864 tst_proto_stricmp="no"
38865
38866fi
38867rm -f conftest*
38868
38869 fi
38870 #
38871 if test "$tst_proto_stricmp" = "yes"; then
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38873$as_echo_n "checking if stricmp is compilable... " >&6; }
38874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38875/* end confdefs.h. */
38876
38877
38878 $curl_includes_string
38879
38880int main (void)
38881{
38882
38883 if(0 != stricmp(0, 0))
38884 return 1;
38885
38886 ;
38887 return 0;
38888}
38889
38890_ACEOF
38891if ac_fn_c_try_compile "$LINENO"; then :
38892
38893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38894$as_echo "yes" >&6; }
38895 tst_compi_stricmp="yes"
38896
38897else
38898
38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38900$as_echo "no" >&6; }
38901 tst_compi_stricmp="no"
38902
38903fi
38904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38905 fi
38906 #
38907 if test "$tst_compi_stricmp" = "yes"; then
38908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38909$as_echo_n "checking if stricmp usage allowed... " >&6; }
38910 if test "x$curl_disallow_stricmp" != "xyes"; then
38911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38912$as_echo "yes" >&6; }
38913 tst_allow_stricmp="yes"
38914 else
38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38916$as_echo "no" >&6; }
38917 tst_allow_stricmp="no"
38918 fi
38919 fi
38920 #
38921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38922$as_echo_n "checking if stricmp might be used... " >&6; }
38923 if test "$tst_links_stricmp" = "yes" &&
38924 test "$tst_proto_stricmp" = "yes" &&
38925 test "$tst_compi_stricmp" = "yes" &&
38926 test "$tst_allow_stricmp" = "yes"; then
38927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38928$as_echo "yes" >&6; }
38929
38930cat >>confdefs.h <<_ACEOF
38931#define HAVE_STRICMP 1
38932_ACEOF
38933
38934 curl_cv_func_stricmp="yes"
38935 else
38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38937$as_echo "no" >&6; }
38938 curl_cv_func_stricmp="no"
38939 fi
38940
38941
38942 #
38943 tst_links_strncasecmp="unknown"
38944 tst_proto_strncasecmp="unknown"
38945 tst_compi_strncasecmp="unknown"
38946 tst_allow_strncasecmp="unknown"
38947 #
38948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38949$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951/* end confdefs.h. */
38952
38953
38954#define strncasecmp innocuous_strncasecmp
38955#ifdef __STDC__
38956# include <limits.h>
38957#else
38958# include <assert.h>
38959#endif
38960#undef strncasecmp
38961#ifdef __cplusplus
38962extern "C"
38963#endif
38964char strncasecmp ();
38965#if defined __stub_strncasecmp || defined __stub___strncasecmp
38966choke me
38967#endif
38968
38969int main (void)
38970{
38971return strncasecmp ();
38972 ;
38973 return 0;
38974}
38975
38976_ACEOF
38977if ac_fn_c_try_link "$LINENO"; then :
38978
38979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38980$as_echo "yes" >&6; }
38981 tst_links_strncasecmp="yes"
38982
38983else
38984
38985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38986$as_echo "no" >&6; }
38987 tst_links_strncasecmp="no"
38988
38989fi
38990rm -f core conftest.err conftest.$ac_objext \
38991 conftest$ac_exeext conftest.$ac_ext
38992 #
38993 if test "$tst_links_strncasecmp" = "yes"; then
38994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38995$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38997/* end confdefs.h. */
38998
38999 $curl_includes_string
39000
39001_ACEOF
39002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39003 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39004
39005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39006$as_echo "yes" >&6; }
39007 tst_proto_strncasecmp="yes"
39008
39009else
39010
39011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39012$as_echo "no" >&6; }
39013 tst_proto_strncasecmp="no"
39014
39015fi
39016rm -f conftest*
39017
39018 fi
39019 #
39020 if test "$tst_proto_strncasecmp" = "yes"; then
39021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39022$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39024/* end confdefs.h. */
39025
39026
39027 $curl_includes_string
39028
39029int main (void)
39030{
39031
39032 if(0 != strncasecmp(0, 0, 0))
39033 return 1;
39034
39035 ;
39036 return 0;
39037}
39038
39039_ACEOF
39040if ac_fn_c_try_compile "$LINENO"; then :
39041
39042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39043$as_echo "yes" >&6; }
39044 tst_compi_strncasecmp="yes"
39045
39046else
39047
39048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39049$as_echo "no" >&6; }
39050 tst_compi_strncasecmp="no"
39051
39052fi
39053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39054 fi
39055 #
39056 if test "$tst_compi_strncasecmp" = "yes"; then
39057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39058$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39059 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39061$as_echo "yes" >&6; }
39062 tst_allow_strncasecmp="yes"
39063 else
39064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39065$as_echo "no" >&6; }
39066 tst_allow_strncasecmp="no"
39067 fi
39068 fi
39069 #
39070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39071$as_echo_n "checking if strncasecmp might be used... " >&6; }
39072 if test "$tst_links_strncasecmp" = "yes" &&
39073 test "$tst_proto_strncasecmp" = "yes" &&
39074 test "$tst_compi_strncasecmp" = "yes" &&
39075 test "$tst_allow_strncasecmp" = "yes"; then
39076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39077$as_echo "yes" >&6; }
39078
39079cat >>confdefs.h <<_ACEOF
39080#define HAVE_STRNCASECMP 1
39081_ACEOF
39082
39083 curl_cv_func_strncasecmp="yes"
39084 else
39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086$as_echo "no" >&6; }
39087 curl_cv_func_strncasecmp="no"
39088 fi
39089
39090
39091 #
39092 tst_links_strncmpi="unknown"
39093 tst_proto_strncmpi="unknown"
39094 tst_compi_strncmpi="unknown"
39095 tst_allow_strncmpi="unknown"
39096 #
39097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39098$as_echo_n "checking if strncmpi can be linked... " >&6; }
39099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39100/* end confdefs.h. */
39101
39102
39103#define strncmpi innocuous_strncmpi
39104#ifdef __STDC__
39105# include <limits.h>
39106#else
39107# include <assert.h>
39108#endif
39109#undef strncmpi
39110#ifdef __cplusplus
39111extern "C"
39112#endif
39113char strncmpi ();
39114#if defined __stub_strncmpi || defined __stub___strncmpi
39115choke me
39116#endif
39117
39118int main (void)
39119{
39120return strncmpi ();
39121 ;
39122 return 0;
39123}
39124
39125_ACEOF
39126if ac_fn_c_try_link "$LINENO"; then :
39127
39128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39129$as_echo "yes" >&6; }
39130 tst_links_strncmpi="yes"
39131
39132else
39133
39134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39135$as_echo "no" >&6; }
39136 tst_links_strncmpi="no"
39137
39138fi
39139rm -f core conftest.err conftest.$ac_objext \
39140 conftest$ac_exeext conftest.$ac_ext
39141 #
39142 if test "$tst_links_strncmpi" = "yes"; then
39143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39144$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39146/* end confdefs.h. */
39147
39148 $curl_includes_string
39149
39150_ACEOF
39151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39152 $EGREP "strncmpi" >/dev/null 2>&1; then :
39153
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39155$as_echo "yes" >&6; }
39156 tst_proto_strncmpi="yes"
39157
39158else
39159
39160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39161$as_echo "no" >&6; }
39162 tst_proto_strncmpi="no"
39163
39164fi
39165rm -f conftest*
39166
39167 fi
39168 #
39169 if test "$tst_proto_strncmpi" = "yes"; then
39170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39171$as_echo_n "checking if strncmpi is compilable... " >&6; }
39172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39173/* end confdefs.h. */
39174
39175
39176 $curl_includes_string
39177
39178int main (void)
39179{
39180
39181 if(0 != strncmpi(0, 0))
39182 return 1;
39183
39184 ;
39185 return 0;
39186}
39187
39188_ACEOF
39189if ac_fn_c_try_compile "$LINENO"; then :
39190
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39192$as_echo "yes" >&6; }
39193 tst_compi_strncmpi="yes"
39194
39195else
39196
39197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39198$as_echo "no" >&6; }
39199 tst_compi_strncmpi="no"
39200
39201fi
39202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39203 fi
39204 #
39205 if test "$tst_compi_strncmpi" = "yes"; then
39206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39207$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39208 if test "x$curl_disallow_strncmpi" != "xyes"; then
39209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39210$as_echo "yes" >&6; }
39211 tst_allow_strncmpi="yes"
39212 else
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214$as_echo "no" >&6; }
39215 tst_allow_strncmpi="no"
39216 fi
39217 fi
39218 #
39219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39220$as_echo_n "checking if strncmpi might be used... " >&6; }
39221 if test "$tst_links_strncmpi" = "yes" &&
39222 test "$tst_proto_strncmpi" = "yes" &&
39223 test "$tst_compi_strncmpi" = "yes" &&
39224 test "$tst_allow_strncmpi" = "yes"; then
39225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39226$as_echo "yes" >&6; }
39227
39228cat >>confdefs.h <<_ACEOF
39229#define HAVE_STRNCMPI 1
39230_ACEOF
39231
39232 curl_cv_func_strncmpi="yes"
39233 else
39234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39235$as_echo "no" >&6; }
39236 curl_cv_func_strncmpi="no"
39237 fi
39238
39239
39240 #
39241 tst_links_strnicmp="unknown"
39242 tst_proto_strnicmp="unknown"
39243 tst_compi_strnicmp="unknown"
39244 tst_allow_strnicmp="unknown"
39245 #
39246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39247$as_echo_n "checking if strnicmp can be linked... " >&6; }
39248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39249/* end confdefs.h. */
39250
39251
39252#define strnicmp innocuous_strnicmp
39253#ifdef __STDC__
39254# include <limits.h>
39255#else
39256# include <assert.h>
39257#endif
39258#undef strnicmp
39259#ifdef __cplusplus
39260extern "C"
39261#endif
39262char strnicmp ();
39263#if defined __stub_strnicmp || defined __stub___strnicmp
39264choke me
39265#endif
39266
39267int main (void)
39268{
39269return strnicmp ();
39270 ;
39271 return 0;
39272}
39273
39274_ACEOF
39275if ac_fn_c_try_link "$LINENO"; then :
39276
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39278$as_echo "yes" >&6; }
39279 tst_links_strnicmp="yes"
39280
39281else
39282
39283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39284$as_echo "no" >&6; }
39285 tst_links_strnicmp="no"
39286
39287fi
39288rm -f core conftest.err conftest.$ac_objext \
39289 conftest$ac_exeext conftest.$ac_ext
39290 #
39291 if test "$tst_links_strnicmp" = "yes"; then
39292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39293$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39295/* end confdefs.h. */
39296
39297 $curl_includes_string
39298
39299_ACEOF
39300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39301 $EGREP "strnicmp" >/dev/null 2>&1; then :
39302
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39304$as_echo "yes" >&6; }
39305 tst_proto_strnicmp="yes"
39306
39307else
39308
39309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39310$as_echo "no" >&6; }
39311 tst_proto_strnicmp="no"
39312
39313fi
39314rm -f conftest*
39315
39316 fi
39317 #
39318 if test "$tst_proto_strnicmp" = "yes"; then
39319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39320$as_echo_n "checking if strnicmp is compilable... " >&6; }
39321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39322/* end confdefs.h. */
39323
39324
39325 $curl_includes_string
39326
39327int main (void)
39328{
39329
39330 if(0 != strnicmp(0, 0))
39331 return 1;
39332
39333 ;
39334 return 0;
39335}
39336
39337_ACEOF
39338if ac_fn_c_try_compile "$LINENO"; then :
39339
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39341$as_echo "yes" >&6; }
39342 tst_compi_strnicmp="yes"
39343
39344else
39345
39346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39347$as_echo "no" >&6; }
39348 tst_compi_strnicmp="no"
39349
39350fi
39351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39352 fi
39353 #
39354 if test "$tst_compi_strnicmp" = "yes"; then
39355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39356$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39357 if test "x$curl_disallow_strnicmp" != "xyes"; then
39358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39359$as_echo "yes" >&6; }
39360 tst_allow_strnicmp="yes"
39361 else
39362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39363$as_echo "no" >&6; }
39364 tst_allow_strnicmp="no"
39365 fi
39366 fi
39367 #
39368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39369$as_echo_n "checking if strnicmp might be used... " >&6; }
39370 if test "$tst_links_strnicmp" = "yes" &&
39371 test "$tst_proto_strnicmp" = "yes" &&
39372 test "$tst_compi_strnicmp" = "yes" &&
39373 test "$tst_allow_strnicmp" = "yes"; then
39374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39375$as_echo "yes" >&6; }
39376
39377cat >>confdefs.h <<_ACEOF
39378#define HAVE_STRNICMP 1
39379_ACEOF
39380
39381 curl_cv_func_strnicmp="yes"
39382 else
39383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39384$as_echo "no" >&6; }
39385 curl_cv_func_strnicmp="no"
39386 fi
39387
39388
39389 #
39390 tst_links_strstr="unknown"
39391 tst_proto_strstr="unknown"
39392 tst_compi_strstr="unknown"
39393 tst_allow_strstr="unknown"
39394 #
39395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39396$as_echo_n "checking if strstr can be linked... " >&6; }
39397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39398/* end confdefs.h. */
39399
39400
39401#define strstr innocuous_strstr
39402#ifdef __STDC__
39403# include <limits.h>
39404#else
39405# include <assert.h>
39406#endif
39407#undef strstr
39408#ifdef __cplusplus
39409extern "C"
39410#endif
39411char strstr ();
39412#if defined __stub_strstr || defined __stub___strstr
39413choke me
39414#endif
39415
39416int main (void)
39417{
39418return strstr ();
39419 ;
39420 return 0;
39421}
39422
39423_ACEOF
39424if ac_fn_c_try_link "$LINENO"; then :
39425
39426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39427$as_echo "yes" >&6; }
39428 tst_links_strstr="yes"
39429
39430else
39431
39432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39433$as_echo "no" >&6; }
39434 tst_links_strstr="no"
39435
39436fi
39437rm -f core conftest.err conftest.$ac_objext \
39438 conftest$ac_exeext conftest.$ac_ext
39439 #
39440 if test "$tst_links_strstr" = "yes"; then
39441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39442$as_echo_n "checking if strstr is prototyped... " >&6; }
39443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39444/* end confdefs.h. */
39445
39446 $curl_includes_string
39447
39448_ACEOF
39449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39450 $EGREP "strstr" >/dev/null 2>&1; then :
39451
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39453$as_echo "yes" >&6; }
39454 tst_proto_strstr="yes"
39455
39456else
39457
39458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39459$as_echo "no" >&6; }
39460 tst_proto_strstr="no"
39461
39462fi
39463rm -f conftest*
39464
39465 fi
39466 #
39467 if test "$tst_proto_strstr" = "yes"; then
39468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39469$as_echo_n "checking if strstr is compilable... " >&6; }
39470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39471/* end confdefs.h. */
39472
39473
39474 $curl_includes_string
39475
39476int main (void)
39477{
39478
39479 if(0 != strstr(0, 0))
39480 return 1;
39481
39482 ;
39483 return 0;
39484}
39485
39486_ACEOF
39487if ac_fn_c_try_compile "$LINENO"; then :
39488
39489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39490$as_echo "yes" >&6; }
39491 tst_compi_strstr="yes"
39492
39493else
39494
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39496$as_echo "no" >&6; }
39497 tst_compi_strstr="no"
39498
39499fi
39500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39501 fi
39502 #
39503 if test "$tst_compi_strstr" = "yes"; then
39504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39505$as_echo_n "checking if strstr usage allowed... " >&6; }
39506 if test "x$curl_disallow_strstr" != "xyes"; then
39507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39508$as_echo "yes" >&6; }
39509 tst_allow_strstr="yes"
39510 else
39511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512$as_echo "no" >&6; }
39513 tst_allow_strstr="no"
39514 fi
39515 fi
39516 #
39517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39518$as_echo_n "checking if strstr might be used... " >&6; }
39519 if test "$tst_links_strstr" = "yes" &&
39520 test "$tst_proto_strstr" = "yes" &&
39521 test "$tst_compi_strstr" = "yes" &&
39522 test "$tst_allow_strstr" = "yes"; then
39523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39524$as_echo "yes" >&6; }
39525
39526cat >>confdefs.h <<_ACEOF
39527#define HAVE_STRSTR 1
39528_ACEOF
39529
39530 curl_cv_func_strstr="yes"
39531 else
39532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39533$as_echo "no" >&6; }
39534 curl_cv_func_strstr="no"
39535 fi
39536
39537
39538 #
39539 tst_links_strtok_r="unknown"
39540 tst_proto_strtok_r="unknown"
39541 tst_compi_strtok_r="unknown"
39542 tst_allow_strtok_r="unknown"
39543 #
39544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39545$as_echo_n "checking if strtok_r can be linked... " >&6; }
39546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39547/* end confdefs.h. */
39548
39549
39550#define strtok_r innocuous_strtok_r
39551#ifdef __STDC__
39552# include <limits.h>
39553#else
39554# include <assert.h>
39555#endif
39556#undef strtok_r
39557#ifdef __cplusplus
39558extern "C"
39559#endif
39560char strtok_r ();
39561#if defined __stub_strtok_r || defined __stub___strtok_r
39562choke me
39563#endif
39564
39565int main (void)
39566{
39567return strtok_r ();
39568 ;
39569 return 0;
39570}
39571
39572_ACEOF
39573if ac_fn_c_try_link "$LINENO"; then :
39574
39575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39576$as_echo "yes" >&6; }
39577 tst_links_strtok_r="yes"
39578
39579else
39580
39581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39582$as_echo "no" >&6; }
39583 tst_links_strtok_r="no"
39584
39585fi
39586rm -f core conftest.err conftest.$ac_objext \
39587 conftest$ac_exeext conftest.$ac_ext
39588 #
39589 if test "$tst_links_strtok_r" = "yes"; then
39590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39591$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39593/* end confdefs.h. */
39594
39595 $curl_includes_string
39596
39597_ACEOF
39598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39599 $EGREP "strtok_r" >/dev/null 2>&1; then :
39600
39601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39602$as_echo "yes" >&6; }
39603 tst_proto_strtok_r="yes"
39604
39605else
39606
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39608$as_echo "no" >&6; }
39609 tst_proto_strtok_r="no"
39610
39611fi
39612rm -f conftest*
39613
39614 fi
39615 #
39616 if test "$tst_proto_strtok_r" = "yes"; then
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39618$as_echo_n "checking if strtok_r is compilable... " >&6; }
39619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39620/* end confdefs.h. */
39621
39622
39623 $curl_includes_string
39624
39625int main (void)
39626{
39627
39628 if(0 != strtok_r(0, 0, 0))
39629 return 1;
39630
39631 ;
39632 return 0;
39633}
39634
39635_ACEOF
39636if ac_fn_c_try_compile "$LINENO"; then :
39637
39638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39639$as_echo "yes" >&6; }
39640 tst_compi_strtok_r="yes"
39641
39642else
39643
39644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39645$as_echo "no" >&6; }
39646 tst_compi_strtok_r="no"
39647
39648fi
39649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39650 fi
39651 #
39652 if test "$tst_compi_strtok_r" = "yes"; then
39653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39654$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39655 if test "x$curl_disallow_strtok_r" != "xyes"; then
39656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39657$as_echo "yes" >&6; }
39658 tst_allow_strtok_r="yes"
39659 else
39660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39661$as_echo "no" >&6; }
39662 tst_allow_strtok_r="no"
39663 fi
39664 fi
39665 #
39666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39667$as_echo_n "checking if strtok_r might be used... " >&6; }
39668 if test "$tst_links_strtok_r" = "yes" &&
39669 test "$tst_proto_strtok_r" = "yes" &&
39670 test "$tst_compi_strtok_r" = "yes" &&
39671 test "$tst_allow_strtok_r" = "yes"; then
39672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39673$as_echo "yes" >&6; }
39674
39675cat >>confdefs.h <<_ACEOF
39676#define HAVE_STRTOK_R 1
39677_ACEOF
39678
39679 curl_cv_func_strtok_r="yes"
39680 else
39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39682$as_echo "no" >&6; }
39683 curl_cv_func_strtok_r="no"
39684 fi
39685
39686
39687 #
39688 tst_links_strtoll="unknown"
39689 tst_proto_strtoll="unknown"
39690 tst_compi_strtoll="unknown"
39691 tst_allow_strtoll="unknown"
39692 #
39693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39694$as_echo_n "checking if strtoll can be linked... " >&6; }
39695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39696/* end confdefs.h. */
39697
39698
39699#define strtoll innocuous_strtoll
39700#ifdef __STDC__
39701# include <limits.h>
39702#else
39703# include <assert.h>
39704#endif
39705#undef strtoll
39706#ifdef __cplusplus
39707extern "C"
39708#endif
39709char strtoll ();
39710#if defined __stub_strtoll || defined __stub___strtoll
39711choke me
39712#endif
39713
39714int main (void)
39715{
39716return strtoll ();
39717 ;
39718 return 0;
39719}
39720
39721_ACEOF
39722if ac_fn_c_try_link "$LINENO"; then :
39723
39724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39725$as_echo "yes" >&6; }
39726 tst_links_strtoll="yes"
39727
39728else
39729
39730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39731$as_echo "no" >&6; }
39732 tst_links_strtoll="no"
39733
39734fi
39735rm -f core conftest.err conftest.$ac_objext \
39736 conftest$ac_exeext conftest.$ac_ext
39737 #
39738 if test "$tst_links_strtoll" = "yes"; then
39739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39740$as_echo_n "checking if strtoll is prototyped... " >&6; }
39741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39742/* end confdefs.h. */
39743
39744 $curl_includes_stdlib
39745
39746_ACEOF
39747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39748 $EGREP "strtoll" >/dev/null 2>&1; then :
39749
39750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39751$as_echo "yes" >&6; }
39752 tst_proto_strtoll="yes"
39753
39754else
39755
39756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39757$as_echo "no" >&6; }
39758 tst_proto_strtoll="no"
39759
39760fi
39761rm -f conftest*
39762
39763 fi
39764 #
39765 if test "$tst_proto_strtoll" = "yes"; then
39766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39767$as_echo_n "checking if strtoll is compilable... " >&6; }
39768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39769/* end confdefs.h. */
39770
39771
39772 $curl_includes_stdlib
39773
39774int main (void)
39775{
39776
39777 if(0 != strtoll(0, 0, 0))
39778 return 1;
39779
39780 ;
39781 return 0;
39782}
39783
39784_ACEOF
39785if ac_fn_c_try_compile "$LINENO"; then :
39786
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39788$as_echo "yes" >&6; }
39789 tst_compi_strtoll="yes"
39790
39791else
39792
39793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39794$as_echo "no" >&6; }
39795 tst_compi_strtoll="no"
39796
39797fi
39798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39799 fi
39800 #
39801 if test "$tst_compi_strtoll" = "yes"; then
39802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39803$as_echo_n "checking if strtoll usage allowed... " >&6; }
39804 if test "x$curl_disallow_strtoll" != "xyes"; then
39805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39806$as_echo "yes" >&6; }
39807 tst_allow_strtoll="yes"
39808 else
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39810$as_echo "no" >&6; }
39811 tst_allow_strtoll="no"
39812 fi
39813 fi
39814 #
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39816$as_echo_n "checking if strtoll might be used... " >&6; }
39817 if test "$tst_links_strtoll" = "yes" &&
39818 test "$tst_proto_strtoll" = "yes" &&
39819 test "$tst_compi_strtoll" = "yes" &&
39820 test "$tst_allow_strtoll" = "yes"; then
39821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39822$as_echo "yes" >&6; }
39823
39824cat >>confdefs.h <<_ACEOF
39825#define HAVE_STRTOLL 1
39826_ACEOF
39827
39828 curl_cv_func_strtoll="yes"
39829 else
39830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39831$as_echo "no" >&6; }
39832 curl_cv_func_strtoll="no"
39833 fi
39834
39835
39836curl_includes_sys_uio="\
39837/* includes start */
39838#ifdef HAVE_SYS_TYPES_H
39839# include <sys/types.h>
39840#endif
39841#ifdef HAVE_SYS_UIO_H
39842# include <sys/uio.h>
39843#endif
39844/* includes end */"
39845 for ac_header in sys/types.h sys/uio.h
39846do :
39847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39848ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39849"
39850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39851 cat >>confdefs.h <<_ACEOF
39852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39853_ACEOF
39854
39855fi
39856
39857done
39858
39859
39860
39861 #
39862 tst_links_writev="unknown"
39863 tst_proto_writev="unknown"
39864 tst_compi_writev="unknown"
39865 tst_allow_writev="unknown"
39866 #
39867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39868$as_echo_n "checking if writev can be linked... " >&6; }
39869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39870/* end confdefs.h. */
39871
39872
39873#define writev innocuous_writev
39874#ifdef __STDC__
39875# include <limits.h>
39876#else
39877# include <assert.h>
39878#endif
39879#undef writev
39880#ifdef __cplusplus
39881extern "C"
39882#endif
39883char writev ();
39884#if defined __stub_writev || defined __stub___writev
39885choke me
39886#endif
39887
39888int main (void)
39889{
39890return writev ();
39891 ;
39892 return 0;
39893}
39894
39895_ACEOF
39896if ac_fn_c_try_link "$LINENO"; then :
39897
39898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39899$as_echo "yes" >&6; }
39900 tst_links_writev="yes"
39901
39902else
39903
39904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39905$as_echo "no" >&6; }
39906 tst_links_writev="no"
39907
39908fi
39909rm -f core conftest.err conftest.$ac_objext \
39910 conftest$ac_exeext conftest.$ac_ext
39911 #
39912 if test "$tst_links_writev" = "yes"; then
39913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39914$as_echo_n "checking if writev is prototyped... " >&6; }
39915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39916/* end confdefs.h. */
39917
39918 $curl_includes_sys_uio
39919
39920_ACEOF
39921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39922 $EGREP "writev" >/dev/null 2>&1; then :
39923
39924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39925$as_echo "yes" >&6; }
39926 tst_proto_writev="yes"
39927
39928else
39929
39930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39931$as_echo "no" >&6; }
39932 tst_proto_writev="no"
39933
39934fi
39935rm -f conftest*
39936
39937 fi
39938 #
39939 if test "$tst_proto_writev" = "yes"; then
39940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39941$as_echo_n "checking if writev is compilable... " >&6; }
39942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39943/* end confdefs.h. */
39944
39945
39946 $curl_includes_sys_uio
39947
39948int main (void)
39949{
39950
39951 if(0 != writev(0, 0, 0))
39952 return 1;
39953
39954 ;
39955 return 0;
39956}
39957
39958_ACEOF
39959if ac_fn_c_try_compile "$LINENO"; then :
39960
39961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39962$as_echo "yes" >&6; }
39963 tst_compi_writev="yes"
39964
39965else
39966
39967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39968$as_echo "no" >&6; }
39969 tst_compi_writev="no"
39970
39971fi
39972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39973 fi
39974 #
39975 if test "$tst_compi_writev" = "yes"; then
39976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39977$as_echo_n "checking if writev usage allowed... " >&6; }
39978 if test "x$curl_disallow_writev" != "xyes"; then
39979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39980$as_echo "yes" >&6; }
39981 tst_allow_writev="yes"
39982 else
39983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39984$as_echo "no" >&6; }
39985 tst_allow_writev="no"
39986 fi
39987 fi
39988 #
39989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39990$as_echo_n "checking if writev might be used... " >&6; }
39991 if test "$tst_links_writev" = "yes" &&
39992 test "$tst_proto_writev" = "yes" &&
39993 test "$tst_compi_writev" = "yes" &&
39994 test "$tst_allow_writev" = "yes"; then
39995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39996$as_echo "yes" >&6; }
39997
39998cat >>confdefs.h <<_ACEOF
39999#define HAVE_WRITEV 1
40000_ACEOF
40001
40002 curl_cv_func_writev="yes"
40003 else
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40005$as_echo "no" >&6; }
40006 curl_cv_func_writev="no"
40007 fi
40008
40009
40010case $host in
40011 *msdosdjgpp)
40012 ac_cv_func_pipe=no
40013 skipcheck_pipe=yes
40014 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40015$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40016 ;;
40017esac
40018
Elliott Hughes72d948d2018-08-03 14:37:21 -070040019ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40020 #include <sys/types.h>
40021"
40022if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40023 ac_have_decl=1
40024else
40025 ac_have_decl=0
40026fi
40027
40028cat >>confdefs.h <<_ACEOF
40029#define HAVE_DECL_GETPWUID_R $ac_have_decl
40030_ACEOF
40031if test $ac_have_decl = 1; then :
40032
40033else
40034
40035$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40036
40037fi
40038
40039
40040
40041for ac_func in fnmatch \
40042 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040043 getpass_r \
40044 getppid \
40045 getpwuid \
40046 getpwuid_r \
40047 getrlimit \
40048 gettimeofday \
40049 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040050 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040051 pipe \
40052 setlocale \
40053 setmode \
40054 setrlimit \
40055 utime \
40056 utimes
40057
40058do :
40059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40061if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40062 cat >>confdefs.h <<_ACEOF
40063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40064_ACEOF
40065
40066
40067else
40068
40069 func="$ac_func"
40070 eval skipcheck=\$skipcheck_$func
40071 if test "x$skipcheck" != "xyes"; then
40072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40073$as_echo_n "checking deeper for $func... " >&6; }
40074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40075/* end confdefs.h. */
40076
40077
40078
40079int main (void)
40080{
40081
40082 $func ();
40083
40084 ;
40085 return 0;
40086}
40087
40088_ACEOF
40089if ac_fn_c_try_link "$LINENO"; then :
40090
40091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40092$as_echo "yes" >&6; }
40093 eval "ac_cv_func_$func=yes"
40094
40095cat >>confdefs.h <<_ACEOF
40096#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40097_ACEOF
40098
40099
40100else
40101
40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40103$as_echo "but still no" >&6; }
40104
40105fi
40106rm -f core conftest.err conftest.$ac_objext \
40107 conftest$ac_exeext conftest.$ac_ext
40108 fi
40109
40110fi
40111done
40112
40113
Elliott Hughes82be86d2017-09-20 17:00:17 -070040114if test "$ipv6" = "yes"; then
40115 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40116
40117$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40118
40119 IPV6_ENABLED=1
40120
40121 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040122fi
40123
40124
40125 #
40126 tst_method="unknown"
40127
40128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40129$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40130 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40131 tst_method="fcntl O_NONBLOCK"
40132 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40133 tst_method="ioctl FIONBIO"
40134 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40135 tst_method="ioctlsocket FIONBIO"
40136 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40137 tst_method="IoctlSocket FIONBIO"
40138 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40139 tst_method="setsockopt SO_NONBLOCK"
40140 fi
40141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40142$as_echo "$tst_method" >&6; }
40143 if test "$tst_method" = "unknown"; then
40144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40145$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40146 fi
40147
40148
40149
40150# Extract the first word of "perl", so it can be a program name with args.
40151set dummy perl; ac_word=$2
40152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40153$as_echo_n "checking for $ac_word... " >&6; }
40154if ${ac_cv_path_PERL+:} false; then :
40155 $as_echo_n "(cached) " >&6
40156else
40157 case $PERL in
40158 [\\/]* | ?:[\\/]*)
40159 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40160 ;;
40161 *)
40162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40163as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40164for as_dir in $as_dummy
40165do
40166 IFS=$as_save_IFS
40167 test -z "$as_dir" && as_dir=.
40168 for ac_exec_ext in '' $ac_executable_extensions; do
40169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40170 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40172 break 2
40173 fi
40174done
40175 done
40176IFS=$as_save_IFS
40177
40178 ;;
40179esac
40180fi
40181PERL=$ac_cv_path_PERL
40182if test -n "$PERL"; then
40183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40184$as_echo "$PERL" >&6; }
40185else
40186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40187$as_echo "no" >&6; }
40188fi
40189
40190
40191
40192
40193for ac_prog in gnroff nroff
40194do
40195 # Extract the first word of "$ac_prog", so it can be a program name with args.
40196set dummy $ac_prog; ac_word=$2
40197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40198$as_echo_n "checking for $ac_word... " >&6; }
40199if ${ac_cv_path_NROFF+:} false; then :
40200 $as_echo_n "(cached) " >&6
40201else
40202 case $NROFF in
40203 [\\/]* | ?:[\\/]*)
40204 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40205 ;;
40206 *)
40207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40208as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40209for as_dir in $as_dummy
40210do
40211 IFS=$as_save_IFS
40212 test -z "$as_dir" && as_dir=.
40213 for ac_exec_ext in '' $ac_executable_extensions; do
40214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40215 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40217 break 2
40218 fi
40219done
40220 done
40221IFS=$as_save_IFS
40222
40223 ;;
40224esac
40225fi
40226NROFF=$ac_cv_path_NROFF
40227if test -n "$NROFF"; then
40228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40229$as_echo "$NROFF" >&6; }
40230else
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40232$as_echo "no" >&6; }
40233fi
40234
40235
40236 test -n "$NROFF" && break
40237done
40238
40239
40240
40241if test -n "$NROFF"; then
40242
40243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40244$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40245 MANOPT="-man"
40246 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40247 if test -z "$mancheck"; then
40248 MANOPT="-mandoc"
40249 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40250 if test -z "$mancheck"; then
40251 MANOPT=""
40252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40253$as_echo "failed" >&6; }
40254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40255$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40256 else
40257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40258$as_echo "$MANOPT" >&6; }
40259 fi
40260 else
40261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40262$as_echo "$MANOPT" >&6; }
40263 fi
40264
40265fi
40266
40267if test -z "$MANOPT"
40268then
40269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40270$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40271 USE_MANUAL="no";
40272fi
40273
40274
40275if test "$USE_MANUAL" = "1"; then
40276
40277$as_echo "#define USE_MANUAL 1" >>confdefs.h
40278
40279 curl_manual_msg="enabled"
40280fi
40281
40282 if test x"$USE_MANUAL" = x1; then
40283 USE_MANUAL_TRUE=
40284 USE_MANUAL_FALSE='#'
40285else
40286 USE_MANUAL_TRUE='#'
40287 USE_MANUAL_FALSE=
40288fi
40289
40290
40291
40292
40293
40294 #
40295 if test "$want_ares" = "yes"; then
40296 clean_CPPFLAGS="$CPPFLAGS"
40297 clean_LDFLAGS="$LDFLAGS"
40298 clean_LIBS="$LIBS"
40299 embedded_ares="unknown"
40300 configure_runpath=`pwd`
40301 embedded_ares_builddir="$configure_runpath/ares"
40302 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040303 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40304
40305 if test -n "$PKG_CONFIG"; then
40306 PKGCONFIG="$PKG_CONFIG"
40307 else
40308 if test -n "$ac_tool_prefix"; then
40309 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40310set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40312$as_echo_n "checking for $ac_word... " >&6; }
40313if ${ac_cv_path_PKGCONFIG+:} false; then :
40314 $as_echo_n "(cached) " >&6
40315else
40316 case $PKGCONFIG in
40317 [\\/]* | ?:[\\/]*)
40318 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40319 ;;
40320 *)
40321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40322as_dummy="$PATH:/usr/bin:/usr/local/bin"
40323for as_dir in $as_dummy
40324do
40325 IFS=$as_save_IFS
40326 test -z "$as_dir" && as_dir=.
40327 for ac_exec_ext in '' $ac_executable_extensions; do
40328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40329 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40331 break 2
40332 fi
40333done
40334 done
40335IFS=$as_save_IFS
40336
40337 ;;
40338esac
40339fi
40340PKGCONFIG=$ac_cv_path_PKGCONFIG
40341if test -n "$PKGCONFIG"; then
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40343$as_echo "$PKGCONFIG" >&6; }
40344else
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40346$as_echo "no" >&6; }
40347fi
40348
40349
40350fi
40351if test -z "$ac_cv_path_PKGCONFIG"; then
40352 ac_pt_PKGCONFIG=$PKGCONFIG
40353 # Extract the first word of "pkg-config", so it can be a program name with args.
40354set dummy pkg-config; ac_word=$2
40355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40356$as_echo_n "checking for $ac_word... " >&6; }
40357if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40358 $as_echo_n "(cached) " >&6
40359else
40360 case $ac_pt_PKGCONFIG in
40361 [\\/]* | ?:[\\/]*)
40362 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40363 ;;
40364 *)
40365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40366as_dummy="$PATH:/usr/bin:/usr/local/bin"
40367for as_dir in $as_dummy
40368do
40369 IFS=$as_save_IFS
40370 test -z "$as_dir" && as_dir=.
40371 for ac_exec_ext in '' $ac_executable_extensions; do
40372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40373 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40375 break 2
40376 fi
40377done
40378 done
40379IFS=$as_save_IFS
40380
40381 ;;
40382esac
40383fi
40384ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40385if test -n "$ac_pt_PKGCONFIG"; then
40386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40387$as_echo "$ac_pt_PKGCONFIG" >&6; }
40388else
40389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40390$as_echo "no" >&6; }
40391fi
40392
40393 if test "x$ac_pt_PKGCONFIG" = x; then
40394 PKGCONFIG="no"
40395 else
40396 case $cross_compiling:$ac_tool_warned in
40397yes:)
40398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40400ac_tool_warned=yes ;;
40401esac
40402 PKGCONFIG=$ac_pt_PKGCONFIG
40403 fi
40404else
40405 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40406fi
40407
40408 fi
40409
40410 if test "x$PKGCONFIG" != "xno"; then
40411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40412$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40413 itexists=`
40414 if test -n "$ARES_PCDIR"; then
40415 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40416 export PKG_CONFIG_LIBDIR
40417 fi
40418 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40419
40420 if test -z "$itexists"; then
40421 PKGCONFIG="no"
40422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40423$as_echo "no" >&6; }
40424 else
40425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40426$as_echo "found" >&6; }
40427 fi
40428 fi
40429
40430 if test "$PKGCONFIG" != "no" ; then
40431 ares_LIBS=`
40432 if test -n "$ARES_PCDIR"; then
40433 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40434 export PKG_CONFIG_LIBDIR
40435 fi
40436
40437 $PKGCONFIG --libs-only-l libcares`
40438 ares_LDFLAGS=`
40439 if test -n "$ARES_PCDIR"; then
40440 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40441 export PKG_CONFIG_LIBDIR
40442 fi
40443
40444 $PKGCONFIG --libs-only-L libcares`
40445 ares_CPPFLAGS=`
40446 if test -n "$ARES_PCDIR"; then
40447 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40448 export PKG_CONFIG_LIBDIR
40449 fi
40450
40451 $PKGCONFIG --cflags-only-I libcares`
40452 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40453$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40455$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40456 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40457$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40458 else
40459 ares_CPPFLAGS="-I$want_ares_path/include"
40460 ares_LDFLAGS="-L$want_ares_path/lib"
40461 ares_LIBS="-lcares"
40462 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040463 else
40464 if test -d "$srcdir/ares"; then
40465 embedded_ares="yes"
40466 subdirs="$subdirs ares"
40467
40468 ares_CPPFLAGS=""
40469 ares_LDFLAGS="-L$embedded_ares_builddir"
40470 ares_LIBS="-lcares"
40471 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040472
40473 if test -n "$PKG_CONFIG"; then
40474 PKGCONFIG="$PKG_CONFIG"
40475 else
40476 if test -n "$ac_tool_prefix"; then
40477 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40478set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40480$as_echo_n "checking for $ac_word... " >&6; }
40481if ${ac_cv_path_PKGCONFIG+:} false; then :
40482 $as_echo_n "(cached) " >&6
40483else
40484 case $PKGCONFIG in
40485 [\\/]* | ?:[\\/]*)
40486 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40487 ;;
40488 *)
40489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40490as_dummy="$PATH:/usr/bin:/usr/local/bin"
40491for as_dir in $as_dummy
40492do
40493 IFS=$as_save_IFS
40494 test -z "$as_dir" && as_dir=.
40495 for ac_exec_ext in '' $ac_executable_extensions; do
40496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40497 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40499 break 2
40500 fi
40501done
40502 done
40503IFS=$as_save_IFS
40504
40505 ;;
40506esac
40507fi
40508PKGCONFIG=$ac_cv_path_PKGCONFIG
40509if test -n "$PKGCONFIG"; then
40510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40511$as_echo "$PKGCONFIG" >&6; }
40512else
40513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40514$as_echo "no" >&6; }
40515fi
40516
40517
40518fi
40519if test -z "$ac_cv_path_PKGCONFIG"; then
40520 ac_pt_PKGCONFIG=$PKGCONFIG
40521 # Extract the first word of "pkg-config", so it can be a program name with args.
40522set dummy pkg-config; ac_word=$2
40523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40524$as_echo_n "checking for $ac_word... " >&6; }
40525if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40526 $as_echo_n "(cached) " >&6
40527else
40528 case $ac_pt_PKGCONFIG in
40529 [\\/]* | ?:[\\/]*)
40530 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40531 ;;
40532 *)
40533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40534as_dummy="$PATH:/usr/bin:/usr/local/bin"
40535for as_dir in $as_dummy
40536do
40537 IFS=$as_save_IFS
40538 test -z "$as_dir" && as_dir=.
40539 for ac_exec_ext in '' $ac_executable_extensions; do
40540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40541 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40543 break 2
40544 fi
40545done
40546 done
40547IFS=$as_save_IFS
40548
40549 ;;
40550esac
40551fi
40552ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40553if test -n "$ac_pt_PKGCONFIG"; then
40554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40555$as_echo "$ac_pt_PKGCONFIG" >&6; }
40556else
40557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40558$as_echo "no" >&6; }
40559fi
40560
40561 if test "x$ac_pt_PKGCONFIG" = x; then
40562 PKGCONFIG="no"
40563 else
40564 case $cross_compiling:$ac_tool_warned in
40565yes:)
40566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40568ac_tool_warned=yes ;;
40569esac
40570 PKGCONFIG=$ac_pt_PKGCONFIG
40571 fi
40572else
40573 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40574fi
40575
40576 fi
40577
40578 if test "x$PKGCONFIG" != "xno"; then
40579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40580$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40581 itexists=`
40582 if test -n ""; then
40583 PKG_CONFIG_LIBDIR=""
40584 export PKG_CONFIG_LIBDIR
40585 fi
40586 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40587
40588 if test -z "$itexists"; then
40589 PKGCONFIG="no"
40590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40591$as_echo "no" >&6; }
40592 else
40593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40594$as_echo "found" >&6; }
40595 fi
40596 fi
40597
40598 if test "$PKGCONFIG" != "no" ; then
40599 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40600 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40601 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40602 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40603$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40605$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40606 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40607$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40608 else
40609 ares_CPPFLAGS=""
40610 ares_LDFLAGS=""
40611 ares_LIBS="-lcares"
40612 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040613 fi
40614 fi
40615 #
40616 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40617 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40618 LIBS="$ares_LIBS $clean_LIBS"
40619 #
40620 if test "$embedded_ares" != "yes"; then
40621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40622$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40624/* end confdefs.h. */
40625
40626
40627#include <ares.h>
40628 /* set of dummy functions in case c-ares was built with debug */
40629 void curl_dofree() { }
40630 void curl_sclose() { }
40631 void curl_domalloc() { }
40632 void curl_docalloc() { }
40633 void curl_socket() { }
40634
40635int main (void)
40636{
40637
40638 ares_channel channel;
40639 ares_cancel(channel); /* added in 1.2.0 */
40640 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40641 ares_dup(&channel, channel); /* added in 1.6.0 */
40642
40643 ;
40644 return 0;
40645}
40646
40647_ACEOF
40648if ac_fn_c_try_link "$LINENO"; then :
40649
40650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40651$as_echo "yes" >&6; }
40652
40653else
40654
40655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40656$as_echo "no" >&6; }
40657 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40658 CPPFLAGS="$clean_CPPFLAGS"
40659 LDFLAGS="$clean_LDFLAGS"
40660 LIBS="$clean_LIBS"
40661 # prevent usage
40662 want_ares="no"
40663
40664fi
40665rm -f core conftest.err conftest.$ac_objext \
40666 conftest$ac_exeext conftest.$ac_ext
40667 fi
40668 if test "$want_ares" = "yes"; then
40669
40670$as_echo "#define USE_ARES 1" >>confdefs.h
40671
40672 USE_ARES=1
40673
40674 curl_res_msg="c-ares"
40675 fi
40676 fi
40677
40678 if test x$embedded_ares = xyes; then
40679 USE_EMBEDDED_ARES_TRUE=
40680 USE_EMBEDDED_ARES_FALSE='#'
40681else
40682 USE_EMBEDDED_ARES_TRUE='#'
40683 USE_EMBEDDED_ARES_FALSE=
40684fi
40685
40686
40687if test "x$curl_cv_native_windows" != "xyes" &&
40688 test "x$enable_shared" = "xyes"; then
40689 build_libhostname=yes
40690else
40691 build_libhostname=no
40692fi
40693 if test x$build_libhostname = xyes; then
40694 BUILD_LIBHOSTNAME_TRUE=
40695 BUILD_LIBHOSTNAME_FALSE='#'
40696else
40697 BUILD_LIBHOSTNAME_TRUE='#'
40698 BUILD_LIBHOSTNAME_FALSE=
40699fi
40700
40701
40702if test "x$want_ares" != xyes; then
40703
40704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40705$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40706 OPT_THRES="default"
40707 # Check whether --enable-threaded_resolver was given.
40708if test "${enable_threaded_resolver+set}" = set; then :
40709 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40710fi
40711
40712 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040713 no)
40714 want_thres="no"
40715 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040716 *)
40717 want_thres="yes"
40718 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040719 esac
40720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40721$as_echo "$want_thres" >&6; }
40722
40723fi
40724
40725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40726$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40727# Check whether --enable-pthreads was given.
40728if test "${enable_pthreads+set}" = set; then :
40729 enableval=$enable_pthreads; case "$enableval" in
40730 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40731$as_echo "no" >&6; }
40732 want_pthreads=no
40733 ;;
40734 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40735$as_echo "yes" >&6; }
40736 want_pthreads=yes
40737 ;;
40738 esac
40739else
40740
40741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40742$as_echo "auto" >&6; }
40743 want_pthreads=auto
40744
40745
40746fi
40747
40748
40749if test "$want_pthreads" != "no"; then
40750 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40751 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40752 fi
40753 if test "$dontwant_rt" != "no"; then
40754 if test "$want_pthreads" = "yes"; then
40755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40756$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40757 fi
40758 want_pthreads=no
40759 fi
40760fi
40761
40762if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40763 want_pthreads=no
40764fi
40765
40766if test "$want_pthreads" != "no"; then
40767 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40768if test "x$ac_cv_header_pthread_h" = xyes; then :
40769
40770$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40771
40772 save_CFLAGS="$CFLAGS"
40773
40774 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40775if test "x$ac_cv_func_pthread_create" = xyes; then :
40776 USE_THREADS_POSIX=1
40777fi
40778
40779
40780 if test "$USE_THREADS_POSIX" != "1"
40781 then
40782 CFLAGS="$CFLAGS -pthread"
40783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40784$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40785if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40786 $as_echo_n "(cached) " >&6
40787else
40788 ac_check_lib_save_LIBS=$LIBS
40789LIBS="-lpthread $LIBS"
40790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40791/* end confdefs.h. */
40792
40793
40794#ifdef __cplusplus
40795extern "C"
40796#endif
40797char pthread_create ();
40798int main (void)
40799{
40800return pthread_create ();
40801 ;
40802 return 0;
40803}
40804_ACEOF
40805if ac_fn_c_try_link "$LINENO"; then :
40806 ac_cv_lib_pthread_pthread_create=yes
40807else
40808 ac_cv_lib_pthread_pthread_create=no
40809fi
40810rm -f core conftest.err conftest.$ac_objext \
40811 conftest$ac_exeext conftest.$ac_ext
40812LIBS=$ac_check_lib_save_LIBS
40813fi
40814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40815$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40816if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40817 USE_THREADS_POSIX=1
40818else
40819 CFLAGS="$save_CFLAGS"
40820fi
40821
40822 fi
40823
40824 if test "x$USE_THREADS_POSIX" = "x1"
40825 then
40826
40827$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40828
40829 curl_res_msg="POSIX threaded"
40830 fi
40831
40832fi
40833
40834
40835fi
40836
40837if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40838 if test "$want_pthreads" = "yes"; then
40839 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40840 fi
40841 if test "$curl_cv_native_windows" = "yes"; then
40842 USE_THREADS_WIN32=1
40843
40844$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40845
40846 curl_res_msg="Win32 threaded"
40847 else
40848 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40849 fi
40850fi
40851
40852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40853$as_echo_n "checking whether to enable verbose strings... " >&6; }
40854# Check whether --enable-verbose was given.
40855if test "${enable_verbose+set}" = set; then :
40856 enableval=$enable_verbose; case "$enableval" in
40857 no)
40858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40859$as_echo "no" >&6; }
40860
40861$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40862
40863 curl_verbose_msg="no"
40864 ;;
40865 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40866$as_echo "yes" >&6; }
40867 ;;
40868 esac
40869else
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40871$as_echo "yes" >&6; }
40872
40873fi
40874
40875
40876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40877$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40878# Check whether --enable-sspi was given.
40879if test "${enable_sspi+set}" = set; then :
40880 enableval=$enable_sspi; case "$enableval" in
40881 yes)
40882 if test "$curl_cv_native_windows" = "yes"; then
40883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40884$as_echo "yes" >&6; }
40885
40886$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40887
40888 USE_WINDOWS_SSPI=1
40889
40890 curl_sspi_msg="enabled"
40891 else
40892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40893$as_echo "no" >&6; }
40894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40895$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40896 fi
40897 ;;
40898 *)
40899 if test "x$WINSSL_ENABLED" = "x1"; then
40900 # --with-winssl implies --enable-sspi
40901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40902$as_echo "yes" >&6; }
40903 else
40904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905$as_echo "no" >&6; }
40906 fi
40907 ;;
40908 esac
40909else
40910 if test "x$WINSSL_ENABLED" = "x1"; then
40911 # --with-winssl implies --enable-sspi
40912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40913$as_echo "yes" >&6; }
40914 else
40915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40916$as_echo "no" >&6; }
40917 fi
40918
40919fi
40920
40921
40922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40923$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40924# Check whether --enable-crypto-auth was given.
40925if test "${enable_crypto_auth+set}" = set; then :
40926 enableval=$enable_crypto_auth; case "$enableval" in
40927 no)
40928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40929$as_echo "no" >&6; }
40930
40931$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40932
40933 CURL_DISABLE_CRYPTO_AUTH=1
40934 ;;
40935 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40936$as_echo "yes" >&6; }
40937 ;;
40938 esac
40939else
40940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40941$as_echo "yes" >&6; }
40942
40943fi
40944
40945
40946
40947 OPT_NTLM_WB="default"
40948 # Check whether --enable-ntlm-wb was given.
40949if test "${enable_ntlm_wb+set}" = set; then :
40950 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40951fi
40952
40953 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40954 case "$OPT_NTLM_WB" in
40955 no)
40956 want_ntlm_wb="no"
40957 ;;
40958 default)
40959 want_ntlm_wb="yes"
40960 ;;
40961 *)
40962 want_ntlm_wb="yes"
40963 if test -n "$enableval" && test "$enableval" != "yes"; then
40964 want_ntlm_wb_file="$enableval"
40965 fi
40966 ;;
40967 esac
40968
40969
40970
40971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40972$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40973 if test "$curl_cv_native_windows" = "yes" ||
40974 test "x$SSL_ENABLED" = "x"; then
40975 want_ntlm_wb_file=""
40976 want_ntlm_wb="no"
40977 fi
40978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40979$as_echo "$want_ntlm_wb" >&6; }
40980 if test "$want_ntlm_wb" = "yes"; then
40981
40982$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40983
40984
40985cat >>confdefs.h <<_ACEOF
40986#define NTLM_WB_FILE "$want_ntlm_wb_file"
40987_ACEOF
40988
40989 NTLM_WB_ENABLED=1
40990 fi
40991
40992
40993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40994$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40995# Check whether --enable-tls-srp was given.
40996if test "${enable_tls_srp+set}" = set; then :
40997 enableval=$enable_tls_srp; case "$enableval" in
40998 no)
40999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41000$as_echo "no" >&6; }
41001
41002$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41003
41004 want_tls_srp=no
41005 ;;
41006 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41007$as_echo "yes" >&6; }
41008 want_tls_srp=yes
41009 ;;
41010 esac
41011else
41012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41013$as_echo "yes" >&6; }
41014 want_tls_srp=yes
41015
41016fi
41017
41018
41019if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41020
41021$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41022
41023 USE_TLS_SRP=1
41024 curl_tls_srp_msg="enabled"
41025fi
41026
41027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41028$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41029# Check whether --enable-unix-sockets was given.
41030if test "${enable_unix_sockets+set}" = set; then :
41031 enableval=$enable_unix_sockets; case "$enableval" in
41032 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41033$as_echo "no" >&6; }
41034 want_unix_sockets=no
41035 ;;
41036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037$as_echo "yes" >&6; }
41038 want_unix_sockets=yes
41039 ;;
41040 esac
41041else
41042
41043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41044$as_echo "auto" >&6; }
41045 want_unix_sockets=auto
41046
41047
41048fi
41049
41050if test "x$want_unix_sockets" != "xno"; then
41051 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41052 #include <sys/un.h>
41053
41054"
41055if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41056
41057
41058$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41059
41060 USE_UNIX_SOCKETS=1
41061
41062 curl_unix_sockets_msg="enabled"
41063
41064else
41065
41066 if test "x$want_unix_sockets" = "xyes"; then
41067 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41068 fi
41069
41070fi
41071
41072fi
41073
41074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41075$as_echo_n "checking whether to enable support for cookies... " >&6; }
41076# Check whether --enable-cookies was given.
41077if test "${enable_cookies+set}" = set; then :
41078 enableval=$enable_cookies; case "$enableval" in
41079 no)
41080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41081$as_echo "no" >&6; }
41082
41083$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41084
41085 ;;
41086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41087$as_echo "yes" >&6; }
41088 ;;
41089 esac
41090else
41091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41092$as_echo "yes" >&6; }
41093
41094fi
41095
41096
41097
41098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41099$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41100 CFLAG_CURL_SYMBOL_HIDING=""
41101 doing_symbol_hiding="no"
41102 if test x"$curl_cv_native_windows" != "xyes" &&
41103 test "$want_symbol_hiding" = "yes" &&
41104 test "$supports_symbol_hiding" = "yes"; then
41105 doing_symbol_hiding="yes"
41106 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41107
41108cat >>confdefs.h <<_ACEOF
41109#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41110_ACEOF
41111
41112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41113$as_echo "yes" >&6; }
41114 else
41115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41116$as_echo "no" >&6; }
41117 fi
41118 if test x$doing_symbol_hiding = xyes; then
41119 DOING_CURL_SYMBOL_HIDING_TRUE=
41120 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41121else
41122 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41123 DOING_CURL_SYMBOL_HIDING_FALSE=
41124fi
41125
41126
41127
41128
Elliott Hughes82be86d2017-09-20 17:00:17 -070041129LIBCURL_LIBS=$LIBS
41130
41131
41132
41133
41134
41135BLANK_AT_MAKETIME=
41136
41137
41138 if test x$cross_compiling = xyes; then
41139 CROSSCOMPILING_TRUE=
41140 CROSSCOMPILING_FALSE='#'
41141else
41142 CROSSCOMPILING_TRUE='#'
41143 CROSSCOMPILING_FALSE=
41144fi
41145
41146
41147ENABLE_SHARED="$enable_shared"
41148
41149
41150ENABLE_STATIC="$enable_static"
41151
41152
41153
41154
41155if test "x$OPENSSL_ENABLED" = "x1"; then
41156 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41157elif test -n "$SSL_ENABLED"; then
41158 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41159fi
41160if test "x$IPV6_ENABLED" = "x1"; then
41161 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41162fi
41163if test "x$USE_UNIX_SOCKETS" = "x1"; then
41164 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41165fi
41166if test "x$HAVE_LIBZ" = "x1"; then
41167 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41168fi
Alex Deymo486467e2017-12-19 19:04:07 +010041169if test "x$HAVE_BROTLI" = "x1"; then
41170 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41171fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041172if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41173 -o "x$USE_THREADS_WIN32" = "x1"; then
41174 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41175fi
41176if test "x$IDN_ENABLED" = "x1"; then
41177 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41178fi
41179if test "x$USE_WINDOWS_SSPI" = "x1"; then
41180 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41181fi
41182
41183if test "x$HAVE_GSSAPI" = "x1"; then
41184 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41185fi
41186
41187if test "x$curl_psl_msg" = "xyes"; then
41188 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41189fi
41190
41191if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41192 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41193 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41194fi
41195
41196if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41197 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41198 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41199fi
41200
41201if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41202 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41203 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41204 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41205 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41206
41207 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41208 "x$NTLM_WB_ENABLED" = "x1"; then
41209 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41210 fi
41211 fi
41212fi
41213
41214if test "x$USE_TLS_SRP" = "x1"; then
41215 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41216fi
41217
41218if test "x$USE_NGHTTP2" = "x1"; then
41219 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41220fi
41221
Alex Deymo486467e2017-12-19 19:04:07 +010041222if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41223 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41224fi
41225
Elliott Hughes82be86d2017-09-20 17:00:17 -070041226if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41227 -o "x$NSS_ENABLED" = "x1"; then
41228 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41229fi
41230
41231
41232
41233if test "x$CURL_DISABLE_HTTP" != "x1"; then
41234 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41235 if test "x$SSL_ENABLED" = "x1"; then
41236 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41237 fi
41238fi
41239if test "x$CURL_DISABLE_FTP" != "x1"; then
41240 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41241 if test "x$SSL_ENABLED" = "x1"; then
41242 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41243 fi
41244fi
41245if test "x$CURL_DISABLE_FILE" != "x1"; then
41246 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41247fi
41248if test "x$CURL_DISABLE_TELNET" != "x1"; then
41249 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41250fi
41251if test "x$CURL_DISABLE_LDAP" != "x1"; then
41252 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41253 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41254 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41255 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41256 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41257 fi
41258 fi
41259fi
41260if test "x$CURL_DISABLE_DICT" != "x1"; then
41261 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41262fi
41263if test "x$CURL_DISABLE_TFTP" != "x1"; then
41264 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41265fi
41266if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41268fi
41269if test "x$CURL_DISABLE_POP3" != "x1"; then
41270 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41271 if test "x$SSL_ENABLED" = "x1"; then
41272 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41273 fi
41274fi
41275if test "x$CURL_DISABLE_IMAP" != "x1"; then
41276 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41277 if test "x$SSL_ENABLED" = "x1"; then
41278 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41279 fi
41280fi
41281if test "x$CURL_DISABLE_SMB" != "x1" \
41282 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41283 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41284 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41285 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41286 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41287 if test "x$SSL_ENABLED" = "x1"; then
41288 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41289 fi
41290fi
41291if test "x$CURL_DISABLE_SMTP" != "x1"; then
41292 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41293 if test "x$SSL_ENABLED" = "x1"; then
41294 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41295 fi
41296fi
41297if test "x$USE_LIBSSH2" = "x1"; then
41298 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41299 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41300fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041301if test "x$USE_LIBSSH" = "x1"; then
41302 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41303 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41304fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041305if test "x$CURL_DISABLE_RTSP" != "x1"; then
41306 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41307fi
41308if test "x$USE_LIBRTMP" = "x1"; then
41309 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41310fi
41311
41312SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41313
41314
41315
41316
41317squeeze CFLAGS
41318squeeze CPPFLAGS
41319squeeze DEFS
41320squeeze LDFLAGS
41321squeeze LIBS
41322
41323squeeze LIBCURL_LIBS
41324squeeze CURL_NETWORK_LIBS
41325squeeze CURL_NETWORK_AND_TIME_LIBS
41326
41327squeeze SUPPORT_FEATURES
41328squeeze SUPPORT_PROTOCOLS
41329
41330
41331
41332 xc_bad_var_libs=no
41333 for xc_word in $LIBS; do
41334 case "$xc_word" in
41335 -l* | --library=*)
41336 :
41337 ;;
41338 *)
41339 xc_bad_var_libs=yes
41340 ;;
41341 esac
41342 done
41343 if test $xc_bad_var_libs = yes; then
41344 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41345$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41346 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41347$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41348 fi
41349
41350
41351 xc_bad_var_ldflags=no
41352 for xc_word in $LDFLAGS; do
41353 case "$xc_word" in
41354 -D*)
41355 xc_bad_var_ldflags=yes
41356 ;;
41357 -U*)
41358 xc_bad_var_ldflags=yes
41359 ;;
41360 -I*)
41361 xc_bad_var_ldflags=yes
41362 ;;
41363 -l* | --library=*)
41364 xc_bad_var_ldflags=yes
41365 ;;
41366 esac
41367 done
41368 if test $xc_bad_var_ldflags = yes; then
41369 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41370$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41371 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41372 for xc_word in $LDFLAGS; do
41373 case "$xc_word" in
41374 -D*)
41375 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41376$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41377 ;;
41378 -U*)
41379 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41380$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41381 ;;
41382 -I*)
41383 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41384$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41385 ;;
41386 -l* | --library=*)
41387 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41388$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41389 ;;
41390 esac
41391 done
41392 fi
41393
41394
41395 xc_bad_var_cppflags=no
41396 for xc_word in $CPPFLAGS; do
41397 case "$xc_word" in
41398 -rpath*)
41399 xc_bad_var_cppflags=yes
41400 ;;
41401 -L* | --library-path=*)
41402 xc_bad_var_cppflags=yes
41403 ;;
41404 -l* | --library=*)
41405 xc_bad_var_cppflags=yes
41406 ;;
41407 esac
41408 done
41409 if test $xc_bad_var_cppflags = yes; then
41410 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41411$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41412 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41413 for xc_word in $CPPFLAGS; do
41414 case "$xc_word" in
41415 -rpath*)
41416 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41417$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41418 ;;
41419 -L* | --library-path=*)
41420 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41421$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41422 ;;
41423 -l* | --library=*)
41424 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41425$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41426 ;;
41427 esac
41428 done
41429 fi
41430
41431
41432 xc_bad_var_cflags=no
41433 for xc_word in $CFLAGS; do
41434 case "$xc_word" in
41435 -D*)
41436 xc_bad_var_cflags=yes
41437 ;;
41438 -U*)
41439 xc_bad_var_cflags=yes
41440 ;;
41441 -I*)
41442 xc_bad_var_cflags=yes
41443 ;;
41444 -rpath*)
41445 xc_bad_var_cflags=yes
41446 ;;
41447 -L* | --library-path=*)
41448 xc_bad_var_cflags=yes
41449 ;;
41450 -l* | --library=*)
41451 xc_bad_var_cflags=yes
41452 ;;
41453 esac
41454 done
41455 if test $xc_bad_var_cflags = yes; then
41456 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41457$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41458 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41459 for xc_word in $CFLAGS; do
41460 case "$xc_word" in
41461 -D*)
41462 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41463$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41464 ;;
41465 -U*)
41466 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41467$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41468 ;;
41469 -I*)
41470 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41471$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41472 ;;
41473 -rpath*)
41474 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41475$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41476 ;;
41477 -L* | --library-path=*)
41478 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41479$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41480 ;;
41481 -l* | --library=*)
41482 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41483$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41484 ;;
41485 esac
41486 done
41487 fi
41488
41489 if test $xc_bad_var_libs = yes ||
41490 test $xc_bad_var_cflags = yes ||
41491 test $xc_bad_var_ldflags = yes ||
41492 test $xc_bad_var_cppflags = yes; then
41493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41494$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41495 fi
41496
41497
Elliott Hughes0128fe42018-02-27 14:57:55 -080041498SSL_BACKENDS=${ssl_backends}
41499
41500
Elliott Hughes82be86d2017-09-20 17:00:17 -070041501if test "x$want_curldebug_assumed" = "xyes" &&
41502 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41503 ac_configure_args="$ac_configure_args --enable-curldebug"
41504fi
41505
Alex Deymo486467e2017-12-19 19:04:07 +010041506ac_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 -070041507
41508cat >confcache <<\_ACEOF
41509# This file is a shell script that caches the results of configure
41510# tests run on this system so they can be shared between configure
41511# scripts and configure runs, see configure's option --config-cache.
41512# It is not useful on other systems. If it contains results you don't
41513# want to keep, you may remove or edit it.
41514#
41515# config.status only pays attention to the cache file if you give it
41516# the --recheck option to rerun configure.
41517#
41518# `ac_cv_env_foo' variables (set or unset) will be overridden when
41519# loading this file, other *unset* `ac_cv_foo' will be assigned the
41520# following values.
41521
41522_ACEOF
41523
41524# The following way of writing the cache mishandles newlines in values,
41525# but we know of no workaround that is simple, portable, and efficient.
41526# So, we kill variables containing newlines.
41527# Ultrix sh set writes to stderr and can't be redirected directly,
41528# and sets the high bit in the cache file unless we assign to the vars.
41529(
41530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41531 eval ac_val=\$$ac_var
41532 case $ac_val in #(
41533 *${as_nl}*)
41534 case $ac_var in #(
41535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41536$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41537 esac
41538 case $ac_var in #(
41539 _ | IFS | as_nl) ;; #(
41540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41541 *) { eval $ac_var=; unset $ac_var;} ;;
41542 esac ;;
41543 esac
41544 done
41545
41546 (set) 2>&1 |
41547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41548 *${as_nl}ac_space=\ *)
41549 # `set' does not quote correctly, so add quotes: double-quote
41550 # substitution turns \\\\ into \\, and sed turns \\ into \.
41551 sed -n \
41552 "s/'/'\\\\''/g;
41553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41554 ;; #(
41555 *)
41556 # `set' quotes correctly as required by POSIX, so do not add quotes.
41557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41558 ;;
41559 esac |
41560 sort
41561) |
41562 sed '
41563 /^ac_cv_env_/b end
41564 t clear
41565 :clear
41566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41567 t end
41568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41569 :end' >>confcache
41570if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41571 if test -w "$cache_file"; then
41572 if test "x$cache_file" != "x/dev/null"; then
41573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41574$as_echo "$as_me: updating cache $cache_file" >&6;}
41575 if test ! -f "$cache_file" || test -h "$cache_file"; then
41576 cat confcache >"$cache_file"
41577 else
41578 case $cache_file in #(
41579 */* | ?:*)
41580 mv -f confcache "$cache_file"$$ &&
41581 mv -f "$cache_file"$$ "$cache_file" ;; #(
41582 *)
41583 mv -f confcache "$cache_file" ;;
41584 esac
41585 fi
41586 fi
41587 else
41588 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41589$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41590 fi
41591fi
41592rm -f confcache
41593
41594test "x$prefix" = xNONE && prefix=$ac_default_prefix
41595# Let make expand exec_prefix.
41596test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41597
41598DEFS=-DHAVE_CONFIG_H
41599
41600ac_libobjs=
41601ac_ltlibobjs=
41602U=
41603for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41604 # 1. Remove the extension, and $U if already installed.
41605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41608 # will be set to the directory where LIBOBJS objects are built.
41609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41611done
41612LIBOBJS=$ac_libobjs
41613
41614LTLIBOBJS=$ac_ltlibobjs
41615
41616
41617if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41618 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41619Usually this means the macro was only invoked conditionally." "$LINENO" 5
41620fi
41621if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41622 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41623Usually this means the macro was only invoked conditionally." "$LINENO" 5
41624fi
41625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41626$as_echo_n "checking that generated files are newer than configure... " >&6; }
41627 if test -n "$am_sleep_pid"; then
41628 # Hide warnings about reused PIDs.
41629 wait $am_sleep_pid 2>/dev/null
41630 fi
41631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41632$as_echo "done" >&6; }
41633if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41634 as_fn_error $? "conditional \"AMDEP\" was never defined.
41635Usually this means the macro was only invoked conditionally." "$LINENO" 5
41636fi
41637if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41638 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41639Usually this means the macro was only invoked conditionally." "$LINENO" 5
41640fi
41641 if test -n "$EXEEXT"; then
41642 am__EXEEXT_TRUE=
41643 am__EXEEXT_FALSE='#'
41644else
41645 am__EXEEXT_TRUE='#'
41646 am__EXEEXT_FALSE=
41647fi
41648
41649if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41650 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41651Usually this means the macro was only invoked conditionally." "$LINENO" 5
41652fi
41653if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41654 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41655Usually this means the macro was only invoked conditionally." "$LINENO" 5
41656fi
41657if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41658 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41659Usually this means the macro was only invoked conditionally." "$LINENO" 5
41660fi
41661if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41662 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41663Usually this means the macro was only invoked conditionally." "$LINENO" 5
41664fi
41665if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41666 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41667Usually this means the macro was only invoked conditionally." "$LINENO" 5
41668fi
41669if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41670 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41671Usually this means the macro was only invoked conditionally." "$LINENO" 5
41672fi
41673if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41674 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41675Usually this means the macro was only invoked conditionally." "$LINENO" 5
41676fi
41677if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41678 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41679Usually this means the macro was only invoked conditionally." "$LINENO" 5
41680fi
41681if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41682 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41683Usually this means the macro was only invoked conditionally." "$LINENO" 5
41684fi
Alex Deymo486467e2017-12-19 19:04:07 +010041685if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41686 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41687Usually this means the macro was only invoked conditionally." "$LINENO" 5
41688fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041689if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41690 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41691Usually this means the macro was only invoked conditionally." "$LINENO" 5
41692fi
41693if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41694 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41695Usually this means the macro was only invoked conditionally." "$LINENO" 5
41696fi
41697if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41698 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41699Usually this means the macro was only invoked conditionally." "$LINENO" 5
41700fi
41701if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41702 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41703Usually this means the macro was only invoked conditionally." "$LINENO" 5
41704fi
41705if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41706 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41707Usually this means the macro was only invoked conditionally." "$LINENO" 5
41708fi
41709if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41710 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41711Usually this means the macro was only invoked conditionally." "$LINENO" 5
41712fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041713if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41714 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41715Usually this means the macro was only invoked conditionally." "$LINENO" 5
41716fi
41717
41718: "${CONFIG_STATUS=./config.status}"
41719ac_write_fail=0
41720ac_clean_files_save=$ac_clean_files
41721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41722{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41723$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41724as_write_fail=0
41725cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41726#! $SHELL
41727# Generated by $as_me.
41728# Run this file to recreate the current configuration.
41729# Compiler output produced by configure, useful for debugging
41730# configure, is in config.log if it exists.
41731
41732debug=false
41733ac_cs_recheck=false
41734ac_cs_silent=false
41735
41736SHELL=\${CONFIG_SHELL-$SHELL}
41737export SHELL
41738_ASEOF
41739cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41740## -------------------- ##
41741## M4sh Initialization. ##
41742## -------------------- ##
41743
41744# Be more Bourne compatible
41745DUALCASE=1; export DUALCASE # for MKS sh
41746if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41747 emulate sh
41748 NULLCMD=:
41749 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41750 # is contrary to our usage. Disable this feature.
41751 alias -g '${1+"$@"}'='"$@"'
41752 setopt NO_GLOB_SUBST
41753else
41754 case `(set -o) 2>/dev/null` in #(
41755 *posix*) :
41756 set -o posix ;; #(
41757 *) :
41758 ;;
41759esac
41760fi
41761
41762
41763as_nl='
41764'
41765export as_nl
41766# Printing a long string crashes Solaris 7 /usr/bin/printf.
41767as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41768as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41770# Prefer a ksh shell builtin over an external printf program on Solaris,
41771# but without wasting forks for bash or zsh.
41772if test -z "$BASH_VERSION$ZSH_VERSION" \
41773 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41774 as_echo='print -r --'
41775 as_echo_n='print -rn --'
41776elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41777 as_echo='printf %s\n'
41778 as_echo_n='printf %s'
41779else
41780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41782 as_echo_n='/usr/ucb/echo -n'
41783 else
41784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41785 as_echo_n_body='eval
41786 arg=$1;
41787 case $arg in #(
41788 *"$as_nl"*)
41789 expr "X$arg" : "X\\(.*\\)$as_nl";
41790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41791 esac;
41792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41793 '
41794 export as_echo_n_body
41795 as_echo_n='sh -c $as_echo_n_body as_echo'
41796 fi
41797 export as_echo_body
41798 as_echo='sh -c $as_echo_body as_echo'
41799fi
41800
41801
41802
41803# IFS
41804# We need space, tab and new line, in precisely that order. Quoting is
41805# there to prevent editors from complaining about space-tab.
41806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41807# splitting by setting IFS to empty value.)
41808IFS=" "" $as_nl"
41809
41810# Find who we are. Look in the path if we contain no directory separator.
41811as_myself=
41812case $0 in #((
41813 *[\\/]* ) as_myself=$0 ;;
41814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41815for as_dir in $PATH
41816do
41817 IFS=$as_save_IFS
41818 test -z "$as_dir" && as_dir=.
41819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41820 done
41821IFS=$as_save_IFS
41822
41823 ;;
41824esac
41825# We did not find ourselves, most probably we were run as `sh COMMAND'
41826# in which case we are not to be found in the path.
41827if test "x$as_myself" = x; then
41828 as_myself=$0
41829fi
41830if test ! -f "$as_myself"; then
41831 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41832 exit 1
41833fi
41834
41835# Unset variables that we do not need and which cause bugs (e.g. in
41836# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41837# suppresses any "Segmentation fault" message there. '((' could
41838# trigger a bug in pdksh 5.2.14.
41839for as_var in BASH_ENV ENV MAIL MAILPATH
41840do eval test x\${$as_var+set} = xset \
41841 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41842done
41843PS1='$ '
41844PS2='> '
41845PS4='+ '
41846
41847# NLS nuisances.
41848LC_ALL=C
41849export LC_ALL
41850LANGUAGE=C
41851export LANGUAGE
41852
41853# CDPATH.
41854(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41855
41856
41857# as_fn_error STATUS ERROR [LINENO LOG_FD]
41858# ----------------------------------------
41859# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41860# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41861# script with STATUS, using 1 if that was 0.
41862as_fn_error ()
41863{
41864 as_status=$1; test $as_status -eq 0 && as_status=1
41865 if test "$4"; then
41866 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41867 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41868 fi
41869 $as_echo "$as_me: error: $2" >&2
41870 as_fn_exit $as_status
41871} # as_fn_error
41872
41873
41874# as_fn_set_status STATUS
41875# -----------------------
41876# Set $? to STATUS, without forking.
41877as_fn_set_status ()
41878{
41879 return $1
41880} # as_fn_set_status
41881
41882# as_fn_exit STATUS
41883# -----------------
41884# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41885as_fn_exit ()
41886{
41887 set +e
41888 as_fn_set_status $1
41889 exit $1
41890} # as_fn_exit
41891
41892# as_fn_unset VAR
41893# ---------------
41894# Portably unset VAR.
41895as_fn_unset ()
41896{
41897 { eval $1=; unset $1;}
41898}
41899as_unset=as_fn_unset
41900# as_fn_append VAR VALUE
41901# ----------------------
41902# Append the text in VALUE to the end of the definition contained in VAR. Take
41903# advantage of any shell optimizations that allow amortized linear growth over
41904# repeated appends, instead of the typical quadratic growth present in naive
41905# implementations.
41906if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41907 eval 'as_fn_append ()
41908 {
41909 eval $1+=\$2
41910 }'
41911else
41912 as_fn_append ()
41913 {
41914 eval $1=\$$1\$2
41915 }
41916fi # as_fn_append
41917
41918# as_fn_arith ARG...
41919# ------------------
41920# Perform arithmetic evaluation on the ARGs, and store the result in the
41921# global $as_val. Take advantage of shells that can avoid forks. The arguments
41922# must be portable across $(()) and expr.
41923if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41924 eval 'as_fn_arith ()
41925 {
41926 as_val=$(( $* ))
41927 }'
41928else
41929 as_fn_arith ()
41930 {
41931 as_val=`expr "$@" || test $? -eq 1`
41932 }
41933fi # as_fn_arith
41934
41935
41936if expr a : '\(a\)' >/dev/null 2>&1 &&
41937 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41938 as_expr=expr
41939else
41940 as_expr=false
41941fi
41942
41943if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41944 as_basename=basename
41945else
41946 as_basename=false
41947fi
41948
41949if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41950 as_dirname=dirname
41951else
41952 as_dirname=false
41953fi
41954
41955as_me=`$as_basename -- "$0" ||
41956$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41957 X"$0" : 'X\(//\)$' \| \
41958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41959$as_echo X/"$0" |
41960 sed '/^.*\/\([^/][^/]*\)\/*$/{
41961 s//\1/
41962 q
41963 }
41964 /^X\/\(\/\/\)$/{
41965 s//\1/
41966 q
41967 }
41968 /^X\/\(\/\).*/{
41969 s//\1/
41970 q
41971 }
41972 s/.*/./; q'`
41973
41974# Avoid depending upon Character Ranges.
41975as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41976as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41977as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41978as_cr_digits='0123456789'
41979as_cr_alnum=$as_cr_Letters$as_cr_digits
41980
41981ECHO_C= ECHO_N= ECHO_T=
41982case `echo -n x` in #(((((
41983-n*)
41984 case `echo 'xy\c'` in
41985 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41986 xy) ECHO_C='\c';;
41987 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41988 ECHO_T=' ';;
41989 esac;;
41990*)
41991 ECHO_N='-n';;
41992esac
41993
41994rm -f conf$$ conf$$.exe conf$$.file
41995if test -d conf$$.dir; then
41996 rm -f conf$$.dir/conf$$.file
41997else
41998 rm -f conf$$.dir
41999 mkdir conf$$.dir 2>/dev/null
42000fi
42001if (echo >conf$$.file) 2>/dev/null; then
42002 if ln -s conf$$.file conf$$ 2>/dev/null; then
42003 as_ln_s='ln -s'
42004 # ... but there are two gotchas:
42005 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42006 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42007 # In both cases, we have to default to `cp -pR'.
42008 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42009 as_ln_s='cp -pR'
42010 elif ln conf$$.file conf$$ 2>/dev/null; then
42011 as_ln_s=ln
42012 else
42013 as_ln_s='cp -pR'
42014 fi
42015else
42016 as_ln_s='cp -pR'
42017fi
42018rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42019rmdir conf$$.dir 2>/dev/null
42020
42021
42022# as_fn_mkdir_p
42023# -------------
42024# Create "$as_dir" as a directory, including parents if necessary.
42025as_fn_mkdir_p ()
42026{
42027
42028 case $as_dir in #(
42029 -*) as_dir=./$as_dir;;
42030 esac
42031 test -d "$as_dir" || eval $as_mkdir_p || {
42032 as_dirs=
42033 while :; do
42034 case $as_dir in #(
42035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42036 *) as_qdir=$as_dir;;
42037 esac
42038 as_dirs="'$as_qdir' $as_dirs"
42039 as_dir=`$as_dirname -- "$as_dir" ||
42040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42041 X"$as_dir" : 'X\(//\)[^/]' \| \
42042 X"$as_dir" : 'X\(//\)$' \| \
42043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42044$as_echo X"$as_dir" |
42045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42046 s//\1/
42047 q
42048 }
42049 /^X\(\/\/\)[^/].*/{
42050 s//\1/
42051 q
42052 }
42053 /^X\(\/\/\)$/{
42054 s//\1/
42055 q
42056 }
42057 /^X\(\/\).*/{
42058 s//\1/
42059 q
42060 }
42061 s/.*/./; q'`
42062 test -d "$as_dir" && break
42063 done
42064 test -z "$as_dirs" || eval "mkdir $as_dirs"
42065 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42066
42067
42068} # as_fn_mkdir_p
42069if mkdir -p . 2>/dev/null; then
42070 as_mkdir_p='mkdir -p "$as_dir"'
42071else
42072 test -d ./-p && rmdir ./-p
42073 as_mkdir_p=false
42074fi
42075
42076
42077# as_fn_executable_p FILE
42078# -----------------------
42079# Test if FILE is an executable regular file.
42080as_fn_executable_p ()
42081{
42082 test -f "$1" && test -x "$1"
42083} # as_fn_executable_p
42084as_test_x='test -x'
42085as_executable_p=as_fn_executable_p
42086
42087# Sed expression to map a string onto a valid CPP name.
42088as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42089
42090# Sed expression to map a string onto a valid variable name.
42091as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42092
42093
42094exec 6>&1
42095## ----------------------------------- ##
42096## Main body of $CONFIG_STATUS script. ##
42097## ----------------------------------- ##
42098_ASEOF
42099test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42100
42101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42102# Save the log message, to keep $0 and so on meaningful, and to
42103# report actual input values of CONFIG_FILES etc. instead of their
42104# values after options handling.
42105ac_log="
42106This file was extended by curl $as_me -, which was
42107generated by GNU Autoconf 2.69. Invocation command line was
42108
42109 CONFIG_FILES = $CONFIG_FILES
42110 CONFIG_HEADERS = $CONFIG_HEADERS
42111 CONFIG_LINKS = $CONFIG_LINKS
42112 CONFIG_COMMANDS = $CONFIG_COMMANDS
42113 $ $0 $@
42114
42115on `(hostname || uname -n) 2>/dev/null | sed 1q`
42116"
42117
42118_ACEOF
42119
42120case $ac_config_files in *"
42121"*) set x $ac_config_files; shift; ac_config_files=$*;;
42122esac
42123
42124case $ac_config_headers in *"
42125"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42126esac
42127
42128
42129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42130# Files that config.status was made for.
42131config_files="$ac_config_files"
42132config_headers="$ac_config_headers"
42133config_commands="$ac_config_commands"
42134
42135_ACEOF
42136
42137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42138ac_cs_usage="\
42139\`$as_me' instantiates files and other configuration actions
42140from templates according to the current configuration. Unless the files
42141and actions are specified as TAGs, all are instantiated by default.
42142
42143Usage: $0 [OPTION]... [TAG]...
42144
42145 -h, --help print this help, then exit
42146 -V, --version print version number and configuration settings, then exit
42147 --config print configuration, then exit
42148 -q, --quiet, --silent
42149 do not print progress messages
42150 -d, --debug don't remove temporary files
42151 --recheck update $as_me by reconfiguring in the same conditions
42152 --file=FILE[:TEMPLATE]
42153 instantiate the configuration file FILE
42154 --header=FILE[:TEMPLATE]
42155 instantiate the configuration header FILE
42156
42157Configuration files:
42158$config_files
42159
42160Configuration headers:
42161$config_headers
42162
42163Configuration commands:
42164$config_commands
42165
42166Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42167
42168_ACEOF
42169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42170ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42171ac_cs_version="\\
42172curl config.status -
42173configured by $0, generated by GNU Autoconf 2.69,
42174 with options \\"\$ac_cs_config\\"
42175
42176Copyright (C) 2012 Free Software Foundation, Inc.
42177This config.status script is free software; the Free Software Foundation
42178gives unlimited permission to copy, distribute and modify it."
42179
42180ac_pwd='$ac_pwd'
42181srcdir='$srcdir'
42182INSTALL='$INSTALL'
42183MKDIR_P='$MKDIR_P'
42184AWK='$AWK'
42185test -n "\$AWK" || AWK=awk
42186_ACEOF
42187
42188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42189# The default lists apply if the user does not specify any file.
42190ac_need_defaults=:
42191while test $# != 0
42192do
42193 case $1 in
42194 --*=?*)
42195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42197 ac_shift=:
42198 ;;
42199 --*=)
42200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42201 ac_optarg=
42202 ac_shift=:
42203 ;;
42204 *)
42205 ac_option=$1
42206 ac_optarg=$2
42207 ac_shift=shift
42208 ;;
42209 esac
42210
42211 case $ac_option in
42212 # Handling of the options.
42213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42214 ac_cs_recheck=: ;;
42215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42216 $as_echo "$ac_cs_version"; exit ;;
42217 --config | --confi | --conf | --con | --co | --c )
42218 $as_echo "$ac_cs_config"; exit ;;
42219 --debug | --debu | --deb | --de | --d | -d )
42220 debug=: ;;
42221 --file | --fil | --fi | --f )
42222 $ac_shift
42223 case $ac_optarg in
42224 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42225 '') as_fn_error $? "missing file argument" ;;
42226 esac
42227 as_fn_append CONFIG_FILES " '$ac_optarg'"
42228 ac_need_defaults=false;;
42229 --header | --heade | --head | --hea )
42230 $ac_shift
42231 case $ac_optarg in
42232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42233 esac
42234 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42235 ac_need_defaults=false;;
42236 --he | --h)
42237 # Conflict between --help and --header
42238 as_fn_error $? "ambiguous option: \`$1'
42239Try \`$0 --help' for more information.";;
42240 --help | --hel | -h )
42241 $as_echo "$ac_cs_usage"; exit ;;
42242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42243 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42244 ac_cs_silent=: ;;
42245
42246 # This is an error.
42247 -*) as_fn_error $? "unrecognized option: \`$1'
42248Try \`$0 --help' for more information." ;;
42249
42250 *) as_fn_append ac_config_targets " $1"
42251 ac_need_defaults=false ;;
42252
42253 esac
42254 shift
42255done
42256
42257ac_configure_extra_args=
42258
42259if $ac_cs_silent; then
42260 exec 6>/dev/null
42261 ac_configure_extra_args="$ac_configure_extra_args --silent"
42262fi
42263
42264_ACEOF
42265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42266if \$ac_cs_recheck; then
42267 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42268 shift
42269 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42270 CONFIG_SHELL='$SHELL'
42271 export CONFIG_SHELL
42272 exec "\$@"
42273fi
42274
42275_ACEOF
42276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42277exec 5>>config.log
42278{
42279 echo
42280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42281## Running $as_me. ##
42282_ASBOX
42283 $as_echo "$ac_log"
42284} >&5
42285
42286_ACEOF
42287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42288#
42289# INIT-COMMANDS
42290#
42291AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42292
42293
42294# The HP-UX ksh and POSIX shell print the target directory to stdout
42295# if CDPATH is set.
42296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42297
42298sed_quote_subst='$sed_quote_subst'
42299double_quote_subst='$double_quote_subst'
42300delay_variable_subst='$delay_variable_subst'
42301macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42302macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42303AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42304DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42305OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42306enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42307enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42308pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42309enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42310shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42311SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42312ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42313PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42314host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42315host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42316host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42317build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42318build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42319build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42320SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42321Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42322GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42323EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42324FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42325LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42326NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42327LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42328max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42329ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42330exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42331lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42332lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42333lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42334lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42335lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42336reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42337reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42338deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42339file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42340file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42341want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42342sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42343AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42344AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42345archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42346STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42347RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42348old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42349old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42350old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42351lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42352CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42353CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42354compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42355GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42356lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42357lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42358lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42359lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42360lt_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"`'
42361lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42362nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42363lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42364lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42365objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42366MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42367lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42368lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42369lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42370lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42371lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42372need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42373MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42374DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42375NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42376LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42377OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42378OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42379libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42380shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42381extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42382archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42383enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42384export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42385whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42386compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42387old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42388old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42389archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42390archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42391module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42392module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42393with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42394allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42395no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42396hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42397hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42398hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42399hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42400hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42401hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42402hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42403inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42404link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42405always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42406export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42407exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42408include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42409prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42410postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42411file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42412variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42413need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42414need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42415version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42416runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42417shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42418shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42419libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42420library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42421soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42422install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42423postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42424postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42425finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42426finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42427hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42428sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42429configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42430configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42431hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42432enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42433enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42434enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42435old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42436striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42437
42438LTCC='$LTCC'
42439LTCFLAGS='$LTCFLAGS'
42440compiler='$compiler_DEFAULT'
42441
42442# A function that is used when there is no print builtin or printf.
42443func_fallback_echo ()
42444{
42445 eval 'cat <<_LTECHO_EOF
42446\$1
42447_LTECHO_EOF'
42448}
42449
42450# Quote evaled strings.
42451for var in AS \
42452DLLTOOL \
42453OBJDUMP \
42454SHELL \
42455ECHO \
42456PATH_SEPARATOR \
42457SED \
42458GREP \
42459EGREP \
42460FGREP \
42461LD \
42462NM \
42463LN_S \
42464lt_SP2NL \
42465lt_NL2SP \
42466reload_flag \
42467deplibs_check_method \
42468file_magic_cmd \
42469file_magic_glob \
42470want_nocaseglob \
42471sharedlib_from_linklib_cmd \
42472AR \
42473AR_FLAGS \
42474archiver_list_spec \
42475STRIP \
42476RANLIB \
42477CC \
42478CFLAGS \
42479compiler \
42480lt_cv_sys_global_symbol_pipe \
42481lt_cv_sys_global_symbol_to_cdecl \
42482lt_cv_sys_global_symbol_to_import \
42483lt_cv_sys_global_symbol_to_c_name_address \
42484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42485lt_cv_nm_interface \
42486nm_file_list_spec \
42487lt_cv_truncate_bin \
42488lt_prog_compiler_no_builtin_flag \
42489lt_prog_compiler_pic \
42490lt_prog_compiler_wl \
42491lt_prog_compiler_static \
42492lt_cv_prog_compiler_c_o \
42493need_locks \
42494MANIFEST_TOOL \
42495DSYMUTIL \
42496NMEDIT \
42497LIPO \
42498OTOOL \
42499OTOOL64 \
42500shrext_cmds \
42501export_dynamic_flag_spec \
42502whole_archive_flag_spec \
42503compiler_needs_object \
42504with_gnu_ld \
42505allow_undefined_flag \
42506no_undefined_flag \
42507hardcode_libdir_flag_spec \
42508hardcode_libdir_separator \
42509exclude_expsyms \
42510include_expsyms \
42511file_list_spec \
42512variables_saved_for_relink \
42513libname_spec \
42514library_names_spec \
42515soname_spec \
42516install_override_mode \
42517finish_eval \
42518old_striplib \
42519striplib; do
42520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42521 *[\\\\\\\`\\"\\\$]*)
42522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42523 ;;
42524 *)
42525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42526 ;;
42527 esac
42528done
42529
42530# Double-quote double-evaled strings.
42531for var in reload_cmds \
42532old_postinstall_cmds \
42533old_postuninstall_cmds \
42534old_archive_cmds \
42535extract_expsyms_cmds \
42536old_archive_from_new_cmds \
42537old_archive_from_expsyms_cmds \
42538archive_cmds \
42539archive_expsym_cmds \
42540module_cmds \
42541module_expsym_cmds \
42542export_symbols_cmds \
42543prelink_cmds \
42544postlink_cmds \
42545postinstall_cmds \
42546postuninstall_cmds \
42547finish_cmds \
42548sys_lib_search_path_spec \
42549configure_time_dlsearch_path \
42550configure_time_lt_sys_library_path; do
42551 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42552 *[\\\\\\\`\\"\\\$]*)
42553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42554 ;;
42555 *)
42556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42557 ;;
42558 esac
42559done
42560
42561ac_aux_dir='$ac_aux_dir'
42562
42563# See if we are running on zsh, and set the options that allow our
42564# commands through without removal of \ escapes INIT.
42565if test -n "\${ZSH_VERSION+set}"; then
42566 setopt NO_GLOB_SUBST
42567fi
42568
42569
42570 PACKAGE='$PACKAGE'
42571 VERSION='$VERSION'
42572 RM='$RM'
42573 ofile='$ofile'
42574
42575
42576
42577
42578_ACEOF
42579
42580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42581
42582# Handling of arguments.
42583for ac_config_target in $ac_config_targets
42584do
42585 case $ac_config_target in
42586 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42587 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42588 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42589 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42590 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42591 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42592 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42593 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42594 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42595 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42596 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42597 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42598 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42599 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42600 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42601 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42602 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42603 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42604 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42605 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42606 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42607 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042608 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42609 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42610 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42611 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42612 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42613 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42614 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42615 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42616 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42617 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42618 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42619 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42620 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42621 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42622 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42623 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42624
42625 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42626 esac
42627done
42628
42629
42630# If the user did not use the arguments to specify the items to instantiate,
42631# then the envvar interface is used. Set only those that are not.
42632# We use the long form for the default assignment because of an extremely
42633# bizarre bug on SunOS 4.1.3.
42634if $ac_need_defaults; then
42635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42636 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42638fi
42639
42640# Have a temporary directory for convenience. Make it in the build tree
42641# simply because there is no reason against having it here, and in addition,
42642# creating and moving files from /tmp can sometimes cause problems.
42643# Hook for its removal unless debugging.
42644# Note that there is a small window in which the directory will not be cleaned:
42645# after its creation but before its name has been assigned to `$tmp'.
42646$debug ||
42647{
42648 tmp= ac_tmp=
42649 trap 'exit_status=$?
42650 : "${ac_tmp:=$tmp}"
42651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42652' 0
42653 trap 'as_fn_exit 1' 1 2 13 15
42654}
42655# Create a (secure) tmp directory for tmp files.
42656
42657{
42658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42659 test -d "$tmp"
42660} ||
42661{
42662 tmp=./conf$$-$RANDOM
42663 (umask 077 && mkdir "$tmp")
42664} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42665ac_tmp=$tmp
42666
42667# Set up the scripts for CONFIG_FILES section.
42668# No need to generate them if there are no CONFIG_FILES.
42669# This happens for instance with `./config.status config.h'.
42670if test -n "$CONFIG_FILES"; then
42671
42672
42673ac_cr=`echo X | tr X '\015'`
42674# On cygwin, bash can eat \r inside `` if the user requested igncr.
42675# But we know of no other shell where ac_cr would be empty at this
42676# point, so we can use a bashism as a fallback.
42677if test "x$ac_cr" = x; then
42678 eval ac_cr=\$\'\\r\'
42679fi
42680ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42681if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42682 ac_cs_awk_cr='\\r'
42683else
42684 ac_cs_awk_cr=$ac_cr
42685fi
42686
42687echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42688_ACEOF
42689
42690
42691{
42692 echo "cat >conf$$subs.awk <<_ACEOF" &&
42693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42694 echo "_ACEOF"
42695} >conf$$subs.sh ||
42696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42697ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42698ac_delim='%!_!# '
42699for ac_last_try in false false false false false :; do
42700 . ./conf$$subs.sh ||
42701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42702
42703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42704 if test $ac_delim_n = $ac_delim_num; then
42705 break
42706 elif $ac_last_try; then
42707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42708 else
42709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42710 fi
42711done
42712rm -f conf$$subs.sh
42713
42714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42715cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42716_ACEOF
42717sed -n '
42718h
42719s/^/S["/; s/!.*/"]=/
42720p
42721g
42722s/^[^!]*!//
42723:repl
42724t repl
42725s/'"$ac_delim"'$//
42726t delim
42727:nl
42728h
42729s/\(.\{148\}\)..*/\1/
42730t more1
42731s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42732p
42733n
42734b repl
42735:more1
42736s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42737p
42738g
42739s/.\{148\}//
42740t nl
42741:delim
42742h
42743s/\(.\{148\}\)..*/\1/
42744t more2
42745s/["\\]/\\&/g; s/^/"/; s/$/"/
42746p
42747b
42748:more2
42749s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42750p
42751g
42752s/.\{148\}//
42753t delim
42754' <conf$$subs.awk | sed '
42755/^[^""]/{
42756 N
42757 s/\n//
42758}
42759' >>$CONFIG_STATUS || ac_write_fail=1
42760rm -f conf$$subs.awk
42761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42762_ACAWK
42763cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42764 for (key in S) S_is_set[key] = 1
42765 FS = ""
42766
42767}
42768{
42769 line = $ 0
42770 nfields = split(line, field, "@")
42771 substed = 0
42772 len = length(field[1])
42773 for (i = 2; i < nfields; i++) {
42774 key = field[i]
42775 keylen = length(key)
42776 if (S_is_set[key]) {
42777 value = S[key]
42778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42779 len += length(value) + length(field[++i])
42780 substed = 1
42781 } else
42782 len += 1 + keylen
42783 }
42784
42785 print line
42786}
42787
42788_ACAWK
42789_ACEOF
42790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42791if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42793else
42794 cat
42795fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42797_ACEOF
42798
42799# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42800# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42801# trailing colons and then remove the whole line if VPATH becomes empty
42802# (actually we leave an empty line to preserve line numbers).
42803if test "x$srcdir" = x.; then
42804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42805h
42806s///
42807s/^/:/
42808s/[ ]*$/:/
42809s/:\$(srcdir):/:/g
42810s/:\${srcdir}:/:/g
42811s/:@srcdir@:/:/g
42812s/^:*//
42813s/:*$//
42814x
42815s/\(=[ ]*\).*/\1/
42816G
42817s/\n//
42818s/^[^=]*=[ ]*$//
42819}'
42820fi
42821
42822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42823fi # test -n "$CONFIG_FILES"
42824
42825# Set up the scripts for CONFIG_HEADERS section.
42826# No need to generate them if there are no CONFIG_HEADERS.
42827# This happens for instance with `./config.status Makefile'.
42828if test -n "$CONFIG_HEADERS"; then
42829cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42830BEGIN {
42831_ACEOF
42832
42833# Transform confdefs.h into an awk script `defines.awk', embedded as
42834# here-document in config.status, that substitutes the proper values into
42835# config.h.in to produce config.h.
42836
42837# Create a delimiter string that does not exist in confdefs.h, to ease
42838# handling of long lines.
42839ac_delim='%!_!# '
42840for ac_last_try in false false :; do
42841 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42842 if test -z "$ac_tt"; then
42843 break
42844 elif $ac_last_try; then
42845 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42846 else
42847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42848 fi
42849done
42850
42851# For the awk script, D is an array of macro values keyed by name,
42852# likewise P contains macro parameters if any. Preserve backslash
42853# newline sequences.
42854
42855ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42856sed -n '
42857s/.\{148\}/&'"$ac_delim"'/g
42858t rset
42859:rset
42860s/^[ ]*#[ ]*define[ ][ ]*/ /
42861t def
42862d
42863:def
42864s/\\$//
42865t bsnl
42866s/["\\]/\\&/g
42867s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42868D["\1"]=" \3"/p
42869s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42870d
42871:bsnl
42872s/["\\]/\\&/g
42873s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42874D["\1"]=" \3\\\\\\n"\\/p
42875t cont
42876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42877t cont
42878d
42879:cont
42880n
42881s/.\{148\}/&'"$ac_delim"'/g
42882t clear
42883:clear
42884s/\\$//
42885t bsnlc
42886s/["\\]/\\&/g; s/^/"/; s/$/"/p
42887d
42888:bsnlc
42889s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42890b cont
42891' <confdefs.h | sed '
42892s/'"$ac_delim"'/"\\\
42893"/g' >>$CONFIG_STATUS || ac_write_fail=1
42894
42895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42896 for (key in D) D_is_set[key] = 1
42897 FS = ""
42898}
42899/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42900 line = \$ 0
42901 split(line, arg, " ")
42902 if (arg[1] == "#") {
42903 defundef = arg[2]
42904 mac1 = arg[3]
42905 } else {
42906 defundef = substr(arg[1], 2)
42907 mac1 = arg[2]
42908 }
42909 split(mac1, mac2, "(") #)
42910 macro = mac2[1]
42911 prefix = substr(line, 1, index(line, defundef) - 1)
42912 if (D_is_set[macro]) {
42913 # Preserve the white space surrounding the "#".
42914 print prefix "define", macro P[macro] D[macro]
42915 next
42916 } else {
42917 # Replace #undef with comments. This is necessary, for example,
42918 # in the case of _POSIX_SOURCE, which is predefined and required
42919 # on some systems where configure will not decide to define it.
42920 if (defundef == "undef") {
42921 print "/*", prefix defundef, macro, "*/"
42922 next
42923 }
42924 }
42925}
42926{ print }
42927_ACAWK
42928_ACEOF
42929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42930 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42931fi # test -n "$CONFIG_HEADERS"
42932
42933
42934eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42935shift
42936for ac_tag
42937do
42938 case $ac_tag in
42939 :[FHLC]) ac_mode=$ac_tag; continue;;
42940 esac
42941 case $ac_mode$ac_tag in
42942 :[FHL]*:*);;
42943 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42944 :[FH]-) ac_tag=-:-;;
42945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42946 esac
42947 ac_save_IFS=$IFS
42948 IFS=:
42949 set x $ac_tag
42950 IFS=$ac_save_IFS
42951 shift
42952 ac_file=$1
42953 shift
42954
42955 case $ac_mode in
42956 :L) ac_source=$1;;
42957 :[FH])
42958 ac_file_inputs=
42959 for ac_f
42960 do
42961 case $ac_f in
42962 -) ac_f="$ac_tmp/stdin";;
42963 *) # Look for the file first in the build tree, then in the source tree
42964 # (if the path is not absolute). The absolute path cannot be DOS-style,
42965 # because $ac_f cannot contain `:'.
42966 test -f "$ac_f" ||
42967 case $ac_f in
42968 [\\/$]*) false;;
42969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42970 esac ||
42971 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42972 esac
42973 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42974 as_fn_append ac_file_inputs " '$ac_f'"
42975 done
42976
42977 # Let's still pretend it is `configure' which instantiates (i.e., don't
42978 # use $as_me), people would be surprised to read:
42979 # /* config.h. Generated by config.status. */
42980 configure_input='Generated from '`
42981 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42982 `' by configure.'
42983 if test x"$ac_file" != x-; then
42984 configure_input="$ac_file. $configure_input"
42985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42986$as_echo "$as_me: creating $ac_file" >&6;}
42987 fi
42988 # Neutralize special characters interpreted by sed in replacement strings.
42989 case $configure_input in #(
42990 *\&* | *\|* | *\\* )
42991 ac_sed_conf_input=`$as_echo "$configure_input" |
42992 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42993 *) ac_sed_conf_input=$configure_input;;
42994 esac
42995
42996 case $ac_tag in
42997 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42999 esac
43000 ;;
43001 esac
43002
43003 ac_dir=`$as_dirname -- "$ac_file" ||
43004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43005 X"$ac_file" : 'X\(//\)[^/]' \| \
43006 X"$ac_file" : 'X\(//\)$' \| \
43007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43008$as_echo X"$ac_file" |
43009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43010 s//\1/
43011 q
43012 }
43013 /^X\(\/\/\)[^/].*/{
43014 s//\1/
43015 q
43016 }
43017 /^X\(\/\/\)$/{
43018 s//\1/
43019 q
43020 }
43021 /^X\(\/\).*/{
43022 s//\1/
43023 q
43024 }
43025 s/.*/./; q'`
43026 as_dir="$ac_dir"; as_fn_mkdir_p
43027 ac_builddir=.
43028
43029case "$ac_dir" in
43030.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43031*)
43032 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43033 # A ".." for each directory in $ac_dir_suffix.
43034 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43035 case $ac_top_builddir_sub in
43036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43038 esac ;;
43039esac
43040ac_abs_top_builddir=$ac_pwd
43041ac_abs_builddir=$ac_pwd$ac_dir_suffix
43042# for backward compatibility:
43043ac_top_builddir=$ac_top_build_prefix
43044
43045case $srcdir in
43046 .) # We are building in place.
43047 ac_srcdir=.
43048 ac_top_srcdir=$ac_top_builddir_sub
43049 ac_abs_top_srcdir=$ac_pwd ;;
43050 [\\/]* | ?:[\\/]* ) # Absolute name.
43051 ac_srcdir=$srcdir$ac_dir_suffix;
43052 ac_top_srcdir=$srcdir
43053 ac_abs_top_srcdir=$srcdir ;;
43054 *) # Relative name.
43055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43056 ac_top_srcdir=$ac_top_build_prefix$srcdir
43057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43058esac
43059ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43060
43061
43062 case $ac_mode in
43063 :F)
43064 #
43065 # CONFIG_FILE
43066 #
43067
43068 case $INSTALL in
43069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43071 esac
43072 ac_MKDIR_P=$MKDIR_P
43073 case $MKDIR_P in
43074 [\\/$]* | ?:[\\/]* ) ;;
43075 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43076 esac
43077_ACEOF
43078
43079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43080# If the template does not know about datarootdir, expand it.
43081# FIXME: This hack should be removed a few years after 2.60.
43082ac_datarootdir_hack=; ac_datarootdir_seen=
43083ac_sed_dataroot='
43084/datarootdir/ {
43085 p
43086 q
43087}
43088/@datadir@/p
43089/@docdir@/p
43090/@infodir@/p
43091/@localedir@/p
43092/@mandir@/p'
43093case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43094*datarootdir*) ac_datarootdir_seen=yes;;
43095*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43097$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43098_ACEOF
43099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43100 ac_datarootdir_hack='
43101 s&@datadir@&$datadir&g
43102 s&@docdir@&$docdir&g
43103 s&@infodir@&$infodir&g
43104 s&@localedir@&$localedir&g
43105 s&@mandir@&$mandir&g
43106 s&\\\${datarootdir}&$datarootdir&g' ;;
43107esac
43108_ACEOF
43109
43110# Neutralize VPATH when `$srcdir' = `.'.
43111# Shell code in configure.ac might set extrasub.
43112# FIXME: do we really want to maintain this feature?
43113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43114ac_sed_extra="$ac_vpsub
43115$extrasub
43116_ACEOF
43117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43118:t
43119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43120s|@configure_input@|$ac_sed_conf_input|;t t
43121s&@top_builddir@&$ac_top_builddir_sub&;t t
43122s&@top_build_prefix@&$ac_top_build_prefix&;t t
43123s&@srcdir@&$ac_srcdir&;t t
43124s&@abs_srcdir@&$ac_abs_srcdir&;t t
43125s&@top_srcdir@&$ac_top_srcdir&;t t
43126s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43127s&@builddir@&$ac_builddir&;t t
43128s&@abs_builddir@&$ac_abs_builddir&;t t
43129s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43130s&@INSTALL@&$ac_INSTALL&;t t
43131s&@MKDIR_P@&$ac_MKDIR_P&;t t
43132$ac_datarootdir_hack
43133"
43134eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43135 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43136
43137test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43140 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43142which seems to be undefined. Please make sure it is defined" >&5
43143$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43144which seems to be undefined. Please make sure it is defined" >&2;}
43145
43146 rm -f "$ac_tmp/stdin"
43147 case $ac_file in
43148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43150 esac \
43151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43152 ;;
43153 :H)
43154 #
43155 # CONFIG_HEADER
43156 #
43157 if test x"$ac_file" != x-; then
43158 {
43159 $as_echo "/* $configure_input */" \
43160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43161 } >"$ac_tmp/config.h" \
43162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43164 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43165$as_echo "$as_me: $ac_file is unchanged" >&6;}
43166 else
43167 rm -f "$ac_file"
43168 mv "$ac_tmp/config.h" "$ac_file" \
43169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43170 fi
43171 else
43172 $as_echo "/* $configure_input */" \
43173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43174 || as_fn_error $? "could not create -" "$LINENO" 5
43175 fi
43176# Compute "$ac_file"'s index in $config_headers.
43177_am_arg="$ac_file"
43178_am_stamp_count=1
43179for _am_header in $config_headers :; do
43180 case $_am_header in
43181 $_am_arg | $_am_arg:* )
43182 break ;;
43183 * )
43184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43185 esac
43186done
43187echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43188$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43189 X"$_am_arg" : 'X\(//\)[^/]' \| \
43190 X"$_am_arg" : 'X\(//\)$' \| \
43191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43192$as_echo X"$_am_arg" |
43193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43194 s//\1/
43195 q
43196 }
43197 /^X\(\/\/\)[^/].*/{
43198 s//\1/
43199 q
43200 }
43201 /^X\(\/\/\)$/{
43202 s//\1/
43203 q
43204 }
43205 /^X\(\/\).*/{
43206 s//\1/
43207 q
43208 }
43209 s/.*/./; q'`/stamp-h$_am_stamp_count
43210 ;;
43211
43212 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43213$as_echo "$as_me: executing $ac_file commands" >&6;}
43214 ;;
43215 esac
43216
43217
43218 case $ac_file$ac_mode in
43219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43220 # Older Autoconf quotes --file arguments for eval, but not when files
43221 # are listed without --file. Let's play safe and only enable the eval
43222 # if we detect the quoting.
43223 case $CONFIG_FILES in
43224 *\'*) eval set x "$CONFIG_FILES" ;;
43225 *) set x $CONFIG_FILES ;;
43226 esac
43227 shift
43228 for mf
43229 do
43230 # Strip MF so we end up with the name of the file.
43231 mf=`echo "$mf" | sed -e 's/:.*$//'`
43232 # Check whether this is an Automake generated Makefile or not.
43233 # We used to match only the files named 'Makefile.in', but
43234 # some people rename them; so instead we look at the file content.
43235 # Grep'ing the first line is not enough: some people post-process
43236 # each Makefile.in and add a new line on top of each file to say so.
43237 # Grep'ing the whole file is not good either: AIX grep has a line
43238 # limit of 2048, but all sed's we know have understand at least 4000.
43239 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43240 dirpart=`$as_dirname -- "$mf" ||
43241$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43242 X"$mf" : 'X\(//\)[^/]' \| \
43243 X"$mf" : 'X\(//\)$' \| \
43244 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43245$as_echo X"$mf" |
43246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43247 s//\1/
43248 q
43249 }
43250 /^X\(\/\/\)[^/].*/{
43251 s//\1/
43252 q
43253 }
43254 /^X\(\/\/\)$/{
43255 s//\1/
43256 q
43257 }
43258 /^X\(\/\).*/{
43259 s//\1/
43260 q
43261 }
43262 s/.*/./; q'`
43263 else
43264 continue
43265 fi
43266 # Extract the definition of DEPDIR, am__include, and am__quote
43267 # from the Makefile without running 'make'.
43268 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43269 test -z "$DEPDIR" && continue
43270 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43271 test -z "$am__include" && continue
43272 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43273 # Find all dependency output files, they are included files with
43274 # $(DEPDIR) in their names. We invoke sed twice because it is the
43275 # simplest approach to changing $(DEPDIR) to its actual value in the
43276 # expansion.
43277 for file in `sed -n "
43278 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43279 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43280 # Make sure the directory exists.
43281 test -f "$dirpart/$file" && continue
43282 fdir=`$as_dirname -- "$file" ||
43283$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43284 X"$file" : 'X\(//\)[^/]' \| \
43285 X"$file" : 'X\(//\)$' \| \
43286 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43287$as_echo X"$file" |
43288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43289 s//\1/
43290 q
43291 }
43292 /^X\(\/\/\)[^/].*/{
43293 s//\1/
43294 q
43295 }
43296 /^X\(\/\/\)$/{
43297 s//\1/
43298 q
43299 }
43300 /^X\(\/\).*/{
43301 s//\1/
43302 q
43303 }
43304 s/.*/./; q'`
43305 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43306 # echo "creating $dirpart/$file"
43307 echo '# dummy' > "$dirpart/$file"
43308 done
43309 done
43310}
43311 ;;
43312 "libtool":C)
43313
43314 # See if we are running on zsh, and set the options that allow our
43315 # commands through without removal of \ escapes.
43316 if test -n "${ZSH_VERSION+set}"; then
43317 setopt NO_GLOB_SUBST
43318 fi
43319
43320 cfgfile=${ofile}T
43321 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43322 $RM "$cfgfile"
43323
43324 cat <<_LT_EOF >> "$cfgfile"
43325#! $SHELL
43326# Generated automatically by $as_me ($PACKAGE) $VERSION
43327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43328
43329# Provide generalized library-building support services.
43330# Written by Gordon Matzigkeit, 1996
43331
43332# Copyright (C) 2014 Free Software Foundation, Inc.
43333# This is free software; see the source for copying conditions. There is NO
43334# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43335
43336# GNU Libtool is free software; you can redistribute it and/or modify
43337# it under the terms of the GNU General Public License as published by
43338# the Free Software Foundation; either version 2 of of the License, or
43339# (at your option) any later version.
43340#
43341# As a special exception to the GNU General Public License, if you
43342# distribute this file as part of a program or library that is built
43343# using GNU Libtool, you may include this file under the same
43344# distribution terms that you use for the rest of that program.
43345#
43346# GNU Libtool is distributed in the hope that it will be useful, but
43347# WITHOUT ANY WARRANTY; without even the implied warranty of
43348# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43349# GNU General Public License for more details.
43350#
43351# You should have received a copy of the GNU General Public License
43352# along with this program. If not, see <http://www.gnu.org/licenses/>.
43353
43354
43355# The names of the tagged configurations supported by this script.
43356available_tags=''
43357
43358# Configured defaults for sys_lib_dlsearch_path munging.
43359: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43360
43361# ### BEGIN LIBTOOL CONFIG
43362
43363# Which release of libtool.m4 was used?
43364macro_version=$macro_version
43365macro_revision=$macro_revision
43366
43367# Assembler program.
43368AS=$lt_AS
43369
43370# DLL creation program.
43371DLLTOOL=$lt_DLLTOOL
43372
43373# Object dumper program.
43374OBJDUMP=$lt_OBJDUMP
43375
43376# Whether or not to build shared libraries.
43377build_libtool_libs=$enable_shared
43378
43379# Whether or not to build static libraries.
43380build_old_libs=$enable_static
43381
43382# What type of objects to build.
43383pic_mode=$pic_mode
43384
43385# Whether or not to optimize for fast installation.
43386fast_install=$enable_fast_install
43387
43388# Shared archive member basename,for filename based shared library versioning on AIX.
43389shared_archive_member_spec=$shared_archive_member_spec
43390
43391# Shell to use when invoking shell scripts.
43392SHELL=$lt_SHELL
43393
43394# An echo program that protects backslashes.
43395ECHO=$lt_ECHO
43396
43397# The PATH separator for the build system.
43398PATH_SEPARATOR=$lt_PATH_SEPARATOR
43399
43400# The host system.
43401host_alias=$host_alias
43402host=$host
43403host_os=$host_os
43404
43405# The build system.
43406build_alias=$build_alias
43407build=$build
43408build_os=$build_os
43409
43410# A sed program that does not truncate output.
43411SED=$lt_SED
43412
43413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43414Xsed="\$SED -e 1s/^X//"
43415
43416# A grep program that handles long lines.
43417GREP=$lt_GREP
43418
43419# An ERE matcher.
43420EGREP=$lt_EGREP
43421
43422# A literal string matcher.
43423FGREP=$lt_FGREP
43424
43425# A BSD- or MS-compatible name lister.
43426NM=$lt_NM
43427
43428# Whether we need soft or hard links.
43429LN_S=$lt_LN_S
43430
43431# What is the maximum length of a command?
43432max_cmd_len=$max_cmd_len
43433
43434# Object file suffix (normally "o").
43435objext=$ac_objext
43436
43437# Executable file suffix (normally "").
43438exeext=$exeext
43439
43440# whether the shell understands "unset".
43441lt_unset=$lt_unset
43442
43443# turn spaces into newlines.
43444SP2NL=$lt_lt_SP2NL
43445
43446# turn newlines into spaces.
43447NL2SP=$lt_lt_NL2SP
43448
43449# convert \$build file names to \$host format.
43450to_host_file_cmd=$lt_cv_to_host_file_cmd
43451
43452# convert \$build files to toolchain format.
43453to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43454
43455# Method to check whether dependent libraries are shared objects.
43456deplibs_check_method=$lt_deplibs_check_method
43457
43458# Command to use when deplibs_check_method = "file_magic".
43459file_magic_cmd=$lt_file_magic_cmd
43460
43461# How to find potential files when deplibs_check_method = "file_magic".
43462file_magic_glob=$lt_file_magic_glob
43463
43464# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43465want_nocaseglob=$lt_want_nocaseglob
43466
43467# Command to associate shared and link libraries.
43468sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43469
43470# The archiver.
43471AR=$lt_AR
43472
43473# Flags to create an archive.
43474AR_FLAGS=$lt_AR_FLAGS
43475
43476# How to feed a file listing to the archiver.
43477archiver_list_spec=$lt_archiver_list_spec
43478
43479# A symbol stripping program.
43480STRIP=$lt_STRIP
43481
43482# Commands used to install an old-style archive.
43483RANLIB=$lt_RANLIB
43484old_postinstall_cmds=$lt_old_postinstall_cmds
43485old_postuninstall_cmds=$lt_old_postuninstall_cmds
43486
43487# Whether to use a lock for old archive extraction.
43488lock_old_archive_extraction=$lock_old_archive_extraction
43489
43490# A C compiler.
43491LTCC=$lt_CC
43492
43493# LTCC compiler flags.
43494LTCFLAGS=$lt_CFLAGS
43495
43496# Take the output of nm and produce a listing of raw symbols and C names.
43497global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43498
43499# Transform the output of nm in a proper C declaration.
43500global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43501
43502# Transform the output of nm into a list of symbols to manually relocate.
43503global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43504
43505# Transform the output of nm in a C name address pair.
43506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43507
43508# Transform the output of nm in a C name address pair when lib prefix is needed.
43509global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43510
43511# The name lister interface.
43512nm_interface=$lt_lt_cv_nm_interface
43513
43514# Specify filename containing input files for \$NM.
43515nm_file_list_spec=$lt_nm_file_list_spec
43516
43517# The root where to search for dependent libraries,and where our libraries should be installed.
43518lt_sysroot=$lt_sysroot
43519
43520# Command to truncate a binary pipe.
43521lt_truncate_bin=$lt_lt_cv_truncate_bin
43522
43523# The name of the directory that contains temporary libtool files.
43524objdir=$objdir
43525
43526# Used to examine libraries when file_magic_cmd begins with "file".
43527MAGIC_CMD=$MAGIC_CMD
43528
43529# Must we lock files when doing compilation?
43530need_locks=$lt_need_locks
43531
43532# Manifest tool.
43533MANIFEST_TOOL=$lt_MANIFEST_TOOL
43534
43535# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43536DSYMUTIL=$lt_DSYMUTIL
43537
43538# Tool to change global to local symbols on Mac OS X.
43539NMEDIT=$lt_NMEDIT
43540
43541# Tool to manipulate fat objects and archives on Mac OS X.
43542LIPO=$lt_LIPO
43543
43544# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43545OTOOL=$lt_OTOOL
43546
43547# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43548OTOOL64=$lt_OTOOL64
43549
43550# Old archive suffix (normally "a").
43551libext=$libext
43552
43553# Shared library suffix (normally ".so").
43554shrext_cmds=$lt_shrext_cmds
43555
43556# The commands to extract the exported symbol list from a shared archive.
43557extract_expsyms_cmds=$lt_extract_expsyms_cmds
43558
43559# Variables whose values should be saved in libtool wrapper scripts and
43560# restored at link time.
43561variables_saved_for_relink=$lt_variables_saved_for_relink
43562
43563# Do we need the "lib" prefix for modules?
43564need_lib_prefix=$need_lib_prefix
43565
43566# Do we need a version for libraries?
43567need_version=$need_version
43568
43569# Library versioning type.
43570version_type=$version_type
43571
43572# Shared library runtime path variable.
43573runpath_var=$runpath_var
43574
43575# Shared library path variable.
43576shlibpath_var=$shlibpath_var
43577
43578# Is shlibpath searched before the hard-coded library search path?
43579shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43580
43581# Format of library name prefix.
43582libname_spec=$lt_libname_spec
43583
43584# List of archive names. First name is the real one, the rest are links.
43585# The last name is the one that the linker finds with -lNAME
43586library_names_spec=$lt_library_names_spec
43587
43588# The coded name of the library, if different from the real name.
43589soname_spec=$lt_soname_spec
43590
43591# Permission mode override for installation of shared libraries.
43592install_override_mode=$lt_install_override_mode
43593
43594# Command to use after installation of a shared archive.
43595postinstall_cmds=$lt_postinstall_cmds
43596
43597# Command to use after uninstallation of a shared archive.
43598postuninstall_cmds=$lt_postuninstall_cmds
43599
43600# Commands used to finish a libtool library installation in a directory.
43601finish_cmds=$lt_finish_cmds
43602
43603# As "finish_cmds", except a single script fragment to be evaled but
43604# not shown.
43605finish_eval=$lt_finish_eval
43606
43607# Whether we should hardcode library paths into libraries.
43608hardcode_into_libs=$hardcode_into_libs
43609
43610# Compile-time system search path for libraries.
43611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43612
43613# Detected run-time system search path for libraries.
43614sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43615
43616# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43617configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43618
43619# Whether dlopen is supported.
43620dlopen_support=$enable_dlopen
43621
43622# Whether dlopen of programs is supported.
43623dlopen_self=$enable_dlopen_self
43624
43625# Whether dlopen of statically linked programs is supported.
43626dlopen_self_static=$enable_dlopen_self_static
43627
43628# Commands to strip libraries.
43629old_striplib=$lt_old_striplib
43630striplib=$lt_striplib
43631
43632
43633# The linker used to build libraries.
43634LD=$lt_LD
43635
43636# How to create reloadable object files.
43637reload_flag=$lt_reload_flag
43638reload_cmds=$lt_reload_cmds
43639
43640# Commands used to build an old-style archive.
43641old_archive_cmds=$lt_old_archive_cmds
43642
43643# A language specific compiler.
43644CC=$lt_compiler
43645
43646# Is the compiler the GNU compiler?
43647with_gcc=$GCC
43648
43649# Compiler flag to turn off builtin functions.
43650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43651
43652# Additional compiler flags for building library objects.
43653pic_flag=$lt_lt_prog_compiler_pic
43654
43655# How to pass a linker flag through the compiler.
43656wl=$lt_lt_prog_compiler_wl
43657
43658# Compiler flag to prevent dynamic linking.
43659link_static_flag=$lt_lt_prog_compiler_static
43660
43661# Does compiler simultaneously support -c and -o options?
43662compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43663
43664# Whether or not to add -lc for building shared libraries.
43665build_libtool_need_lc=$archive_cmds_need_lc
43666
43667# Whether or not to disallow shared libs when runtime libs are static.
43668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43669
43670# Compiler flag to allow reflexive dlopens.
43671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43672
43673# Compiler flag to generate shared objects directly from archives.
43674whole_archive_flag_spec=$lt_whole_archive_flag_spec
43675
43676# Whether the compiler copes with passing no objects directly.
43677compiler_needs_object=$lt_compiler_needs_object
43678
43679# Create an old-style archive from a shared archive.
43680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43681
43682# Create a temporary old-style archive to link instead of a shared archive.
43683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43684
43685# Commands used to build a shared archive.
43686archive_cmds=$lt_archive_cmds
43687archive_expsym_cmds=$lt_archive_expsym_cmds
43688
43689# Commands used to build a loadable module if different from building
43690# a shared archive.
43691module_cmds=$lt_module_cmds
43692module_expsym_cmds=$lt_module_expsym_cmds
43693
43694# Whether we are building with GNU ld or not.
43695with_gnu_ld=$lt_with_gnu_ld
43696
43697# Flag that allows shared libraries with undefined symbols to be built.
43698allow_undefined_flag=$lt_allow_undefined_flag
43699
43700# Flag that enforces no undefined symbols.
43701no_undefined_flag=$lt_no_undefined_flag
43702
43703# Flag to hardcode \$libdir into a binary during linking.
43704# This must work even if \$libdir does not exist
43705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43706
43707# Whether we need a single "-rpath" flag with a separated argument.
43708hardcode_libdir_separator=$lt_hardcode_libdir_separator
43709
43710# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43711# DIR into the resulting binary.
43712hardcode_direct=$hardcode_direct
43713
43714# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43715# DIR into the resulting binary and the resulting library dependency is
43716# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43717# library is relocated.
43718hardcode_direct_absolute=$hardcode_direct_absolute
43719
43720# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43721# into the resulting binary.
43722hardcode_minus_L=$hardcode_minus_L
43723
43724# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43725# into the resulting binary.
43726hardcode_shlibpath_var=$hardcode_shlibpath_var
43727
43728# Set to "yes" if building a shared library automatically hardcodes DIR
43729# into the library and all subsequent libraries and executables linked
43730# against it.
43731hardcode_automatic=$hardcode_automatic
43732
43733# Set to yes if linker adds runtime paths of dependent libraries
43734# to runtime path list.
43735inherit_rpath=$inherit_rpath
43736
43737# Whether libtool must link a program against all its dependency libraries.
43738link_all_deplibs=$link_all_deplibs
43739
43740# Set to "yes" if exported symbols are required.
43741always_export_symbols=$always_export_symbols
43742
43743# The commands to list exported symbols.
43744export_symbols_cmds=$lt_export_symbols_cmds
43745
43746# Symbols that should not be listed in the preloaded symbols.
43747exclude_expsyms=$lt_exclude_expsyms
43748
43749# Symbols that must always be exported.
43750include_expsyms=$lt_include_expsyms
43751
43752# Commands necessary for linking programs (against libraries) with templates.
43753prelink_cmds=$lt_prelink_cmds
43754
43755# Commands necessary for finishing linking programs.
43756postlink_cmds=$lt_postlink_cmds
43757
43758# Specify filename containing input files.
43759file_list_spec=$lt_file_list_spec
43760
43761# How to hardcode a shared library path into an executable.
43762hardcode_action=$hardcode_action
43763
43764# ### END LIBTOOL CONFIG
43765
43766_LT_EOF
43767
43768 cat <<'_LT_EOF' >> "$cfgfile"
43769
43770# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43771
43772# func_munge_path_list VARIABLE PATH
43773# -----------------------------------
43774# VARIABLE is name of variable containing _space_ separated list of
43775# directories to be munged by the contents of PATH, which is string
43776# having a format:
43777# "DIR[:DIR]:"
43778# string "DIR[ DIR]" will be prepended to VARIABLE
43779# ":DIR[:DIR]"
43780# string "DIR[ DIR]" will be appended to VARIABLE
43781# "DIRP[:DIRP]::[DIRA:]DIRA"
43782# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43783# "DIRA[ DIRA]" will be appended to VARIABLE
43784# "DIR[:DIR]"
43785# VARIABLE will be replaced by "DIR[ DIR]"
43786func_munge_path_list ()
43787{
43788 case x$2 in
43789 x)
43790 ;;
43791 *:)
43792 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43793 ;;
43794 x:*)
43795 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43796 ;;
43797 *::*)
43798 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43799 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43800 ;;
43801 *)
43802 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43803 ;;
43804 esac
43805}
43806
43807
43808# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43809func_cc_basename ()
43810{
43811 for cc_temp in $*""; do
43812 case $cc_temp in
43813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43815 \-*) ;;
43816 *) break;;
43817 esac
43818 done
43819 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43820}
43821
43822
43823# ### END FUNCTIONS SHARED WITH CONFIGURE
43824
43825_LT_EOF
43826
43827 case $host_os in
43828 aix3*)
43829 cat <<\_LT_EOF >> "$cfgfile"
43830# AIX sometimes has problems with the GCC collect2 program. For some
43831# reason, if we set the COLLECT_NAMES environment variable, the problems
43832# vanish in a puff of smoke.
43833if test set != "${COLLECT_NAMES+set}"; then
43834 COLLECT_NAMES=
43835 export COLLECT_NAMES
43836fi
43837_LT_EOF
43838 ;;
43839 esac
43840
43841
43842ltmain=$ac_aux_dir/ltmain.sh
43843
43844
43845 # We use sed instead of cat because bash on DJGPP gets confused if
43846 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43847 # text mode, it properly converts lines to CR/LF. This bash problem
43848 # is reportedly fixed, but why not run on old versions too?
43849 sed '$q' "$ltmain" >> "$cfgfile" \
43850 || (rm -f "$cfgfile"; exit 1)
43851
43852 mv -f "$cfgfile" "$ofile" ||
43853 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43854 chmod +x "$ofile"
43855
43856 ;;
43857
43858 esac
43859done # for ac_tag
43860
43861
43862as_fn_exit 0
43863_ACEOF
43864ac_clean_files=$ac_clean_files_save
43865
43866test $ac_write_fail = 0 ||
43867 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43868
43869
43870# configure is writing to config.log, and then calls config.status.
43871# config.status does its own redirection, appending to config.log.
43872# Unfortunately, on DOS this fails, as config.log is still kept open
43873# by configure, so config.status won't be able to write to it; its
43874# output is simply discarded. So we exec the FD to /dev/null,
43875# effectively closing config.log, so it can be properly (re)opened and
43876# appended to by config.status. When coming back to configure, we
43877# need to make the FD available again.
43878if test "$no_create" != yes; then
43879 ac_cs_success=:
43880 ac_config_status_args=
43881 test "$silent" = yes &&
43882 ac_config_status_args="$ac_config_status_args --quiet"
43883 exec 5>/dev/null
43884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43885 exec 5>>config.log
43886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43887 # would make configure fail if this is the last instruction.
43888 $ac_cs_success || as_fn_exit 1
43889fi
43890
43891#
43892# CONFIG_SUBDIRS section.
43893#
43894if test "$no_recursion" != yes; then
43895
43896 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43897 # so they do not pile up.
43898 ac_sub_configure_args=
43899 ac_prev=
43900 eval "set x $ac_configure_args"
43901 shift
43902 for ac_arg
43903 do
43904 if test -n "$ac_prev"; then
43905 ac_prev=
43906 continue
43907 fi
43908 case $ac_arg in
43909 -cache-file | --cache-file | --cache-fil | --cache-fi \
43910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43911 ac_prev=cache_file ;;
43912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43914 | --c=*)
43915 ;;
43916 --config-cache | -C)
43917 ;;
43918 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43919 ac_prev=srcdir ;;
43920 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43921 ;;
43922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43923 ac_prev=prefix ;;
43924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43925 ;;
43926 --disable-option-checking)
43927 ;;
43928 *)
43929 case $ac_arg in
43930 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43931 esac
43932 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43933 esac
43934 done
43935
43936 # Always prepend --prefix to ensure using the same prefix
43937 # in subdir configurations.
43938 ac_arg="--prefix=$prefix"
43939 case $ac_arg in
43940 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43941 esac
43942 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43943
43944 # Pass --silent
43945 if test "$silent" = yes; then
43946 ac_sub_configure_args="--silent $ac_sub_configure_args"
43947 fi
43948
43949 # Always prepend --disable-option-checking to silence warnings, since
43950 # different subdirs can have different --enable and --with options.
43951 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43952
43953 ac_popdir=`pwd`
43954 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43955
43956 # Do not complain, so a configure script can configure whichever
43957 # parts of a large source tree are present.
43958 test -d "$srcdir/$ac_dir" || continue
43959
43960 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43961 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43962 $as_echo "$ac_msg" >&6
43963 as_dir="$ac_dir"; as_fn_mkdir_p
43964 ac_builddir=.
43965
43966case "$ac_dir" in
43967.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43968*)
43969 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43970 # A ".." for each directory in $ac_dir_suffix.
43971 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43972 case $ac_top_builddir_sub in
43973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43975 esac ;;
43976esac
43977ac_abs_top_builddir=$ac_pwd
43978ac_abs_builddir=$ac_pwd$ac_dir_suffix
43979# for backward compatibility:
43980ac_top_builddir=$ac_top_build_prefix
43981
43982case $srcdir in
43983 .) # We are building in place.
43984 ac_srcdir=.
43985 ac_top_srcdir=$ac_top_builddir_sub
43986 ac_abs_top_srcdir=$ac_pwd ;;
43987 [\\/]* | ?:[\\/]* ) # Absolute name.
43988 ac_srcdir=$srcdir$ac_dir_suffix;
43989 ac_top_srcdir=$srcdir
43990 ac_abs_top_srcdir=$srcdir ;;
43991 *) # Relative name.
43992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43993 ac_top_srcdir=$ac_top_build_prefix$srcdir
43994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43995esac
43996ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43997
43998
43999 cd "$ac_dir"
44000
44001 # Check for guested configure; otherwise get Cygnus style configure.
44002 if test -f "$ac_srcdir/configure.gnu"; then
44003 ac_sub_configure=$ac_srcdir/configure.gnu
44004 elif test -f "$ac_srcdir/configure"; then
44005 ac_sub_configure=$ac_srcdir/configure
44006 elif test -f "$ac_srcdir/configure.in"; then
44007 # This should be Cygnus configure.
44008 ac_sub_configure=$ac_aux_dir/configure
44009 else
44010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44011$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44012 ac_sub_configure=
44013 fi
44014
44015 # The recursion is here.
44016 if test -n "$ac_sub_configure"; then
44017 # Make the cache file name correct relative to the subdirectory.
44018 case $cache_file in
44019 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44020 *) # Relative name.
44021 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44022 esac
44023
44024 { $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
44025$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44026 # The eval makes quoting arguments work.
44027 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44028 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44029 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44030 fi
44031
44032 cd "$ac_popdir"
44033 done
44034fi
44035if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44037$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44038fi
44039
44040
44041
44042 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44043 if test -z "$tmp_cpp"; then
44044 tmp_cpp='cpp'
44045 fi
44046 cat >./tests/configurehelp.pm <<_EOF
44047# This is a generated file. Do not edit.
44048
44049package configurehelp;
44050
44051use strict;
44052use warnings;
44053use Exporter;
44054
44055use vars qw(
44056 @ISA
44057 @EXPORT_OK
44058 \$Cpreprocessor
44059 );
44060
44061@ISA = qw(Exporter);
44062
44063@EXPORT_OK = qw(
44064 \$Cpreprocessor
44065 );
44066
44067\$Cpreprocessor = '$tmp_cpp';
44068
440691;
44070_EOF
44071
44072
44073
44074## ---------------------------------- ##
44075## Start of distclean amending code ##
44076## ---------------------------------- ##
44077
44078for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44079do
44080
44081if test ! -f "$xc_subdir/Makefile"; then
44082 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44083 exit 1
44084fi
44085
44086# Fetch dependency tracking file list from Makefile include lines.
44087
44088xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44089xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44090
44091# --disable-dependency-tracking might have been used, consequently
44092# there is nothing to amend without a dependency tracking file list.
44093
44094if test $xc_cnt_words -gt 0; then
44095
44096{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44097$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44098
44099# Build Makefile specific patch hunk.
44100
44101xc_p="$xc_subdir/xc_patch.tmp"
44102
44103xc_rm_depfiles=`echo "$xc_inc_lines" \
44104 | $SED 's%include% -rm -f%' 2>/dev/null`
44105
44106xc_dep_subdirs=`echo "$xc_inc_lines" \
44107 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44108 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44109 | sort | uniq`
44110
44111echo "$xc_rm_depfiles" >$xc_p
44112
44113for xc_dep_dir in $xc_dep_subdirs; do
44114 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44115 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44116 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44117 echo "${xc_tab}fi" >>$xc_p
44118done
44119
44120# Build Makefile patching sed scripts.
44121
44122xc_s1="$xc_subdir/xc_script_1.tmp"
44123xc_s2="$xc_subdir/xc_script_2.tmp"
44124xc_s3="$xc_subdir/xc_script_3.tmp"
44125
44126cat >$xc_s1 <<\_EOT
44127/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44128 s/^.*(DEPDIR)/___xc_depdir_line___/
44129}
44130/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44131 s/^.*(DEPDIR)/___xc_depdir_line___/
44132}
44133_EOT
44134
44135cat >$xc_s2 <<\_EOT
44136/___xc_depdir_line___$/{
44137 N
44138 /___xc_depdir_line___$/D
44139}
44140_EOT
44141
44142cat >$xc_s3 <<_EOT
44143/^___xc_depdir_line___/{
44144 r $xc_p
44145 d
44146}
44147_EOT
44148
44149# Apply patch to Makefile and cleanup.
44150
44151$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44152$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44153$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44154
44155if test -f "$xc_subdir/Makefile.tmp3"; then
44156 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44157fi
44158
44159test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44160test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44161test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44162
44163test -f "$xc_p" && rm -f "$xc_p"
44164test -f "$xc_s1" && rm -f "$xc_s1"
44165test -f "$xc_s2" && rm -f "$xc_s2"
44166test -f "$xc_s3" && rm -f "$xc_s3"
44167
44168fi
44169
44170done
44171
44172## -------------------------------- ##
44173## End of distclean amending code ##
44174## -------------------------------- ##
44175
44176
44177
44178{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44179
44180 curl version: ${CURLVERSION}
44181 Host setup: ${host}
44182 Install prefix: ${prefix}
44183 Compiler: ${CC}
44184 SSL support: ${curl_ssl_msg}
44185 SSH support: ${curl_ssh_msg}
44186 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044187 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044188 GSS-API support: ${curl_gss_msg}
44189 TLS-SRP support: ${curl_tls_srp_msg}
44190 resolver: ${curl_res_msg}
44191 IPv6 support: ${curl_ipv6_msg}
44192 Unix sockets support: ${curl_unix_sockets_msg}
44193 IDN support: ${curl_idn_msg}
44194 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44195 Built-in manual: ${curl_manual_msg}
44196 --libcurl option: ${curl_libcurl_msg}
44197 Verbose errors: ${curl_verbose_msg}
44198 SSPI support: ${curl_sspi_msg}
44199 ca cert bundle: ${ca}${ca_warning}
44200 ca cert path: ${capath}${capath_warning}
44201 ca fallback: ${with_ca_fallback}
44202 LDAP support: ${curl_ldap_msg}
44203 LDAPS support: ${curl_ldaps_msg}
44204 RTSP support: ${curl_rtsp_msg}
44205 RTMP support: ${curl_rtmp_msg}
44206 metalink support: ${curl_mtlnk_msg}
44207 PSL support: ${curl_psl_msg}
44208 HTTP2 support: ${curl_h2_msg}
44209 Protocols: ${SUPPORT_PROTOCOLS}
44210" >&5
44211$as_echo "$as_me: Configured to build curl/libcurl:
44212
44213 curl version: ${CURLVERSION}
44214 Host setup: ${host}
44215 Install prefix: ${prefix}
44216 Compiler: ${CC}
44217 SSL support: ${curl_ssl_msg}
44218 SSH support: ${curl_ssh_msg}
44219 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044220 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044221 GSS-API support: ${curl_gss_msg}
44222 TLS-SRP support: ${curl_tls_srp_msg}
44223 resolver: ${curl_res_msg}
44224 IPv6 support: ${curl_ipv6_msg}
44225 Unix sockets support: ${curl_unix_sockets_msg}
44226 IDN support: ${curl_idn_msg}
44227 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44228 Built-in manual: ${curl_manual_msg}
44229 --libcurl option: ${curl_libcurl_msg}
44230 Verbose errors: ${curl_verbose_msg}
44231 SSPI support: ${curl_sspi_msg}
44232 ca cert bundle: ${ca}${ca_warning}
44233 ca cert path: ${capath}${capath_warning}
44234 ca fallback: ${with_ca_fallback}
44235 LDAP support: ${curl_ldap_msg}
44236 LDAPS support: ${curl_ldaps_msg}
44237 RTSP support: ${curl_rtsp_msg}
44238 RTMP support: ${curl_rtmp_msg}
44239 metalink support: ${curl_mtlnk_msg}
44240 PSL support: ${curl_psl_msg}
44241 HTTP2 support: ${curl_h2_msg}
44242 Protocols: ${SUPPORT_PROTOCOLS}
44243" >&6;}