blob: 8916fad4314611de89bed24fc7ded6e189638ccb [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
236 # Stop dead until user provides 'PATH_SEPARATOR' definition.
237 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238 exit 1
239 fi
240else
241 # Separator with the greater directory count is the auto-detected one.
242 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243 xc_tst_auto_separator=';'
244 else
245 xc_tst_auto_separator=':'
246 fi
247 if test -z "$PATH_SEPARATOR"; then
248 # Simply use the auto-detected one when not already set.
249 PATH_SEPARATOR=$xc_tst_auto_separator
250 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252 fi
253fi
254xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256xc_configure_preamble_result='yes'
257
258
259## -------------------- ##
260## M4sh Initialization. ##
261## -------------------- ##
262
263# Be more Bourne compatible
264DUALCASE=1; export DUALCASE # for MKS sh
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266 emulate sh
267 NULLCMD=:
268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
273 case `(set -o) 2>/dev/null` in #(
274 *posix*) :
275 set -o posix ;; #(
276 *) :
277 ;;
278esac
279fi
280
281
282as_nl='
283'
284export as_nl
285# Printing a long string crashes Solaris 7 /usr/bin/printf.
286as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289# Prefer a ksh shell builtin over an external printf program on Solaris,
290# but without wasting forks for bash or zsh.
291if test -z "$BASH_VERSION$ZSH_VERSION" \
292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293 as_echo='print -r --'
294 as_echo_n='print -rn --'
295elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296 as_echo='printf %s\n'
297 as_echo_n='printf %s'
298else
299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301 as_echo_n='/usr/ucb/echo -n'
302 else
303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304 as_echo_n_body='eval
305 arg=$1;
306 case $arg in #(
307 *"$as_nl"*)
308 expr "X$arg" : "X\\(.*\\)$as_nl";
309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310 esac;
311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312 '
313 export as_echo_n_body
314 as_echo_n='sh -c $as_echo_n_body as_echo'
315 fi
316 export as_echo_body
317 as_echo='sh -c $as_echo_body as_echo'
318fi
319
320
321
322# IFS
323# We need space, tab and new line, in precisely that order. Quoting is
324# there to prevent editors from complaining about space-tab.
325# (If _AS_PATH_WALK were called with IFS unset, it would disable word
326# splitting by setting IFS to empty value.)
327IFS=" "" $as_nl"
328
329# Find who we are. Look in the path if we contain no directory separator.
330as_myself=
331case $0 in #((
332 *[\\/]* ) as_myself=$0 ;;
333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334for as_dir in $PATH
335do
336 IFS=$as_save_IFS
337 test -z "$as_dir" && as_dir=.
338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339 done
340IFS=$as_save_IFS
341
342 ;;
343esac
344# We did not find ourselves, most probably we were run as `sh COMMAND'
345# in which case we are not to be found in the path.
346if test "x$as_myself" = x; then
347 as_myself=$0
348fi
349if test ! -f "$as_myself"; then
350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351 exit 1
352fi
353
354# Unset variables that we do not need and which cause bugs (e.g. in
355# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
356# suppresses any "Segmentation fault" message there. '((' could
357# trigger a bug in pdksh 5.2.14.
358for as_var in BASH_ENV ENV MAIL MAILPATH
359do eval test x\${$as_var+set} = xset \
360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361done
362PS1='$ '
363PS2='> '
364PS4='+ '
365
366# NLS nuisances.
367LC_ALL=C
368export LC_ALL
369LANGUAGE=C
370export LANGUAGE
371
372# CDPATH.
373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375# Use a proper internal environment variable to ensure we don't fall
376 # into an infinite loop, continuously re-executing ourselves.
377 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378 _as_can_reexec=no; export _as_can_reexec;
379 # We cannot yet assume a decent shell, so we have to provide a
380# neutralization value for shells without unset; and this also
381# works around shells that cannot unset nonexistent variables.
382# Preserve -v and -x to the replacement shell.
383BASH_ENV=/dev/null
384ENV=/dev/null
385(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386case $- in # ((((
387 *v*x* | *x*v* ) as_opts=-vx ;;
388 *v* ) as_opts=-v ;;
389 *x* ) as_opts=-x ;;
390 * ) as_opts= ;;
391esac
392exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393# Admittedly, this is quite paranoid, since all the known shells bail
394# out after a failed `exec'.
395$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396as_fn_exit 255
397 fi
398 # We don't want this to propagate to other subprocesses.
399 { _as_can_reexec=; unset _as_can_reexec;}
400if test "x$CONFIG_SHELL" = x; then
401 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402 emulate sh
403 NULLCMD=:
404 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405 # is contrary to our usage. Disable this feature.
406 alias -g '\${1+\"\$@\"}'='\"\$@\"'
407 setopt NO_GLOB_SUBST
408else
409 case \`(set -o) 2>/dev/null\` in #(
410 *posix*) :
411 set -o posix ;; #(
412 *) :
413 ;;
414esac
415fi
416"
417 as_required="as_fn_return () { (exit \$1); }
418as_fn_success () { as_fn_return 0; }
419as_fn_failure () { as_fn_return 1; }
420as_fn_ret_success () { return 0; }
421as_fn_ret_failure () { return 1; }
422
423exitcode=0
424as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430else
431 exitcode=1; echo positional parameters were not saved.
432fi
433test x\$exitcode = x0 || exit 1
434test -x / || exit 1"
435 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439test \$(( 1 + 1 )) = 2 || exit 1
440
441 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 PATH=/empty FPATH=/empty; export PATH FPATH
446 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448 if (eval "$as_required") 2>/dev/null; then :
449 as_have_required=yes
450else
451 as_have_required=no
452fi
453 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455else
456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457as_found=false
458for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459do
460 IFS=$as_save_IFS
461 test -z "$as_dir" && as_dir=.
462 as_found=:
463 case $as_dir in #(
464 /*)
465 for as_base in sh bash ksh sh5; do
466 # Try only shells that exist, to save several forks.
467 as_shell=$as_dir/$as_base
468 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470 CONFIG_SHELL=$as_shell as_have_required=yes
471 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472 break 2
473fi
474fi
475 done;;
476 esac
477 as_found=false
478done
479$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
482fi; }
483IFS=$as_save_IFS
484
485
486 if test "x$CONFIG_SHELL" != x; then :
487 export CONFIG_SHELL
488 # We cannot yet assume a decent shell, so we have to provide a
489# neutralization value for shells without unset; and this also
490# works around shells that cannot unset nonexistent variables.
491# Preserve -v and -x to the replacement shell.
492BASH_ENV=/dev/null
493ENV=/dev/null
494(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495case $- in # ((((
496 *v*x* | *x*v* ) as_opts=-vx ;;
497 *v* ) as_opts=-v ;;
498 *x* ) as_opts=-x ;;
499 * ) as_opts= ;;
500esac
501exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502# Admittedly, this is quite paranoid, since all the known shells bail
503# out after a failed `exec'.
504$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505exit 255
506fi
507
508 if test x$as_have_required = xno; then :
509 $as_echo "$0: This script requires a shell more modern than all"
510 $as_echo "$0: the shells that I found on your system."
511 if test x${ZSH_VERSION+set} = xset ; then
512 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514 else
515 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516$0: mailing list: https://curl.haxx.se/mail/ about your
517$0: system, including any error possibly output before this
518$0: message. Then install a modern shell, or manually run
519$0: the script under such a shell if you do have one."
520 fi
521 exit 1
522fi
523fi
524fi
525SHELL=${CONFIG_SHELL-/bin/sh}
526export SHELL
527# Unset more variables known to interfere with behavior of common tools.
528CLICOLOR_FORCE= GREP_OPTIONS=
529unset CLICOLOR_FORCE GREP_OPTIONS
530
531## --------------------- ##
532## M4sh Shell Functions. ##
533## --------------------- ##
534# as_fn_unset VAR
535# ---------------
536# Portably unset VAR.
537as_fn_unset ()
538{
539 { eval $1=; unset $1;}
540}
541as_unset=as_fn_unset
542
543# as_fn_set_status STATUS
544# -----------------------
545# Set $? to STATUS, without forking.
546as_fn_set_status ()
547{
548 return $1
549} # as_fn_set_status
550
551# as_fn_exit STATUS
552# -----------------
553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554as_fn_exit ()
555{
556 set +e
557 as_fn_set_status $1
558 exit $1
559} # as_fn_exit
560
561# as_fn_mkdir_p
562# -------------
563# Create "$as_dir" as a directory, including parents if necessary.
564as_fn_mkdir_p ()
565{
566
567 case $as_dir in #(
568 -*) as_dir=./$as_dir;;
569 esac
570 test -d "$as_dir" || eval $as_mkdir_p || {
571 as_dirs=
572 while :; do
573 case $as_dir in #(
574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575 *) as_qdir=$as_dir;;
576 esac
577 as_dirs="'$as_qdir' $as_dirs"
578 as_dir=`$as_dirname -- "$as_dir" ||
579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580 X"$as_dir" : 'X\(//\)[^/]' \| \
581 X"$as_dir" : 'X\(//\)$' \| \
582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583$as_echo X"$as_dir" |
584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585 s//\1/
586 q
587 }
588 /^X\(\/\/\)[^/].*/{
589 s//\1/
590 q
591 }
592 /^X\(\/\/\)$/{
593 s//\1/
594 q
595 }
596 /^X\(\/\).*/{
597 s//\1/
598 q
599 }
600 s/.*/./; q'`
601 test -d "$as_dir" && break
602 done
603 test -z "$as_dirs" || eval "mkdir $as_dirs"
604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607} # as_fn_mkdir_p
608
609# as_fn_executable_p FILE
610# -----------------------
611# Test if FILE is an executable regular file.
612as_fn_executable_p ()
613{
614 test -f "$1" && test -x "$1"
615} # as_fn_executable_p
616# as_fn_append VAR VALUE
617# ----------------------
618# Append the text in VALUE to the end of the definition contained in VAR. Take
619# advantage of any shell optimizations that allow amortized linear growth over
620# repeated appends, instead of the typical quadratic growth present in naive
621# implementations.
622if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623 eval 'as_fn_append ()
624 {
625 eval $1+=\$2
626 }'
627else
628 as_fn_append ()
629 {
630 eval $1=\$$1\$2
631 }
632fi # as_fn_append
633
634# as_fn_arith ARG...
635# ------------------
636# Perform arithmetic evaluation on the ARGs, and store the result in the
637# global $as_val. Take advantage of shells that can avoid forks. The arguments
638# must be portable across $(()) and expr.
639if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640 eval 'as_fn_arith ()
641 {
642 as_val=$(( $* ))
643 }'
644else
645 as_fn_arith ()
646 {
647 as_val=`expr "$@" || test $? -eq 1`
648 }
649fi # as_fn_arith
650
651
652# as_fn_error STATUS ERROR [LINENO LOG_FD]
653# ----------------------------------------
654# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656# script with STATUS, using 1 if that was 0.
657as_fn_error ()
658{
659 as_status=$1; test $as_status -eq 0 && as_status=1
660 if test "$4"; then
661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663 fi
664 $as_echo "$as_me: error: $2" >&2
665 as_fn_exit $as_status
666} # as_fn_error
667
668if expr a : '\(a\)' >/dev/null 2>&1 &&
669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
670 as_expr=expr
671else
672 as_expr=false
673fi
674
675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676 as_basename=basename
677else
678 as_basename=false
679fi
680
681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682 as_dirname=dirname
683else
684 as_dirname=false
685fi
686
687as_me=`$as_basename -- "$0" ||
688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691$as_echo X/"$0" |
692 sed '/^.*\/\([^/][^/]*\)\/*$/{
693 s//\1/
694 q
695 }
696 /^X\/\(\/\/\)$/{
697 s//\1/
698 q
699 }
700 /^X\/\(\/\).*/{
701 s//\1/
702 q
703 }
704 s/.*/./; q'`
705
706# Avoid depending upon Character Ranges.
707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710as_cr_digits='0123456789'
711as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714 as_lineno_1=$LINENO as_lineno_1a=$LINENO
715 as_lineno_2=$LINENO as_lineno_2a=$LINENO
716 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
719 sed -n '
720 p
721 /[$]LINENO/=
722 ' <$as_myself |
723 sed '
724 s/[$]LINENO.*/&-/
725 t lineno
726 b
727 :lineno
728 N
729 :loop
730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731 t loop
732 s/-\n.*//
733 ' >$as_me.lineno &&
734 chmod +x "$as_me.lineno" ||
735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738 # already done that, so ensure we don't try to do so again and fall
739 # in an infinite loop. This has already happened in practice.
740 _as_can_reexec=no; export _as_can_reexec
741 # Don't try to exec as it changes $[0], causing all sort of problems
742 # (the dirname of $[0] is not the place where we might find the
743 # original and so on. Autoconf is especially sensitive to this).
744 . "./$as_me.lineno"
745 # Exit status is that of the last command.
746 exit
747}
748
749ECHO_C= ECHO_N= ECHO_T=
750case `echo -n x` in #(((((
751-n*)
752 case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
754 xy) ECHO_C='\c';;
755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
756 ECHO_T=' ';;
757 esac;;
758*)
759 ECHO_N='-n';;
760esac
761
762rm -f conf$$ conf$$.exe conf$$.file
763if test -d conf$$.dir; then
764 rm -f conf$$.dir/conf$$.file
765else
766 rm -f conf$$.dir
767 mkdir conf$$.dir 2>/dev/null
768fi
769if (echo >conf$$.file) 2>/dev/null; then
770 if ln -s conf$$.file conf$$ 2>/dev/null; then
771 as_ln_s='ln -s'
772 # ... but there are two gotchas:
773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775 # In both cases, we have to default to `cp -pR'.
776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777 as_ln_s='cp -pR'
778 elif ln conf$$.file conf$$ 2>/dev/null; then
779 as_ln_s=ln
780 else
781 as_ln_s='cp -pR'
782 fi
783else
784 as_ln_s='cp -pR'
785fi
786rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787rmdir conf$$.dir 2>/dev/null
788
789if mkdir -p . 2>/dev/null; then
790 as_mkdir_p='mkdir -p "$as_dir"'
791else
792 test -d ./-p && rmdir ./-p
793 as_mkdir_p=false
794fi
795
796as_test_x='test -x'
797as_executable_p=as_fn_executable_p
798
799# Sed expression to map a string onto a valid CPP name.
800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802# Sed expression to map a string onto a valid variable name.
803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808test -n "$DJDIR" || exec 7<&0 </dev/null
809exec 6>&1
810
811# Name of the host.
812# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813# so uname gets run too.
814ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816#
817# Initializations.
818#
819ac_default_prefix=/usr/local
820ac_clean_files=
821ac_config_libobj_dir=.
822LIBOBJS=
823cross_compiling=no
824subdirs=
825MFLAGS=
826MAKEFLAGS=
827
828# Identity of this package.
829PACKAGE_NAME='curl'
830PACKAGE_TARNAME='curl'
831PACKAGE_VERSION='-'
832PACKAGE_STRING='curl -'
833PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
834PACKAGE_URL=''
835
836ac_unique_file="lib/urldata.h"
837# Factoring default headers for most tests.
838ac_includes_default="\
839#include <stdio.h>
840#ifdef HAVE_SYS_TYPES_H
841# include <sys/types.h>
842#endif
843#ifdef HAVE_SYS_STAT_H
844# include <sys/stat.h>
845#endif
846#ifdef STDC_HEADERS
847# include <stdlib.h>
848# include <stddef.h>
849#else
850# ifdef HAVE_STDLIB_H
851# include <stdlib.h>
852# endif
853#endif
854#ifdef HAVE_STRING_H
855# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856# include <memory.h>
857# endif
858# include <string.h>
859#endif
860#ifdef HAVE_STRINGS_H
861# include <strings.h>
862#endif
863#ifdef HAVE_INTTYPES_H
864# include <inttypes.h>
865#endif
866#ifdef HAVE_STDINT_H
867# include <stdint.h>
868#endif
869#ifdef HAVE_UNISTD_H
870# include <unistd.h>
871#endif"
872
873enable_option_checking=no
874ac_subst_vars='am__EXEEXT_FALSE
875am__EXEEXT_TRUE
876LTLIBOBJS
877LIBOBJS
878SUPPORT_PROTOCOLS
879SUPPORT_FEATURES
880ENABLE_STATIC
881ENABLE_SHARED
882CROSSCOMPILING_FALSE
883CROSSCOMPILING_TRUE
884BLANK_AT_MAKETIME
885CURL_NETWORK_AND_TIME_LIBS
886CURL_NETWORK_LIBS
887LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700888CFLAG_CURL_SYMBOL_HIDING
889DOING_CURL_SYMBOL_HIDING_FALSE
890DOING_CURL_SYMBOL_HIDING_TRUE
891USE_UNIX_SOCKETS
892BUILD_LIBHOSTNAME_FALSE
893BUILD_LIBHOSTNAME_TRUE
894USE_EMBEDDED_ARES_FALSE
895USE_EMBEDDED_ARES_TRUE
896USE_ARES
897subdirs
898USE_MANUAL_FALSE
899USE_MANUAL_TRUE
900MANOPT
901NROFF
902PERL
903IPV6_ENABLED
904ZSH_FUNCTIONS_DIR
905USE_NGHTTP2
906IDN_ENABLED
907CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
908CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
909CURL_LT_SHLIB_VERSIONED_FLAVOUR
910USE_LIBRTMP
911USE_LIBSSH2
912LIBMETALINK_CPPFLAGS
913LIBMETALINK_LDFLAGS
914LIBMETALINK_LIBS
915USE_LIBPSL_FALSE
916USE_LIBPSL_TRUE
917CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100918CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700919SSL_ENABLED
920USE_AXTLS
921NSS_LIBS
922USE_NSS
923USE_CYASSL
924USE_MBEDTLS
925USE_POLARSSL
926HAVE_GNUTLS_SRP
927USE_GNUTLS_NETTLE
928USE_GNUTLS
929HAVE_OPENSSL_SRP
930RANDOM_FILE
931SSL_LIBS
932USE_DARWINSSL
933USE_WINDOWS_SSPI
934USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100935DEFAULT_SSL_BACKEND
936BUILD_STUB_GSS_FALSE
937BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700938USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100939HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700940ZLIB_LIBS
941HAVE_LIBZ_FALSE
942HAVE_LIBZ_TRUE
943HAVE_LIBZ
944PKGCONFIG
945CURL_DISABLE_GOPHER
946CURL_DISABLE_SMTP
947CURL_DISABLE_SMB
948CURL_DISABLE_IMAP
949CURL_DISABLE_POP3
950CURL_DISABLE_TFTP
951CURL_DISABLE_TELNET
952CURL_DISABLE_DICT
953CURL_DISABLE_PROXY
954HAVE_LDAP_SSL
955CURL_DISABLE_LDAPS
956CURL_DISABLE_LDAP
957CURL_DISABLE_FILE
958CURL_DISABLE_FTP
959CURL_DISABLE_RTSP
960CURL_DISABLE_HTTP
961DOING_NATIVE_WINDOWS_FALSE
962DOING_NATIVE_WINDOWS_TRUE
963BUILD_UNITTESTS_FALSE
964BUILD_UNITTESTS_TRUE
965CURLDEBUG_FALSE
966CURLDEBUG_TRUE
967USE_EXPLICIT_LIB_DEPS_FALSE
968USE_EXPLICIT_LIB_DEPS_TRUE
969REQUIRE_LIB_DEPS
970CPPFLAG_CURL_STATICLIB
971USE_CPPFLAG_CURL_STATICLIB_FALSE
972USE_CPPFLAG_CURL_STATICLIB_TRUE
973CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
974CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
975CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
976CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
977CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
978CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
979LT_SYS_LIBRARY_PATH
980OTOOL64
981OTOOL
982LIPO
983NMEDIT
984DSYMUTIL
985MANIFEST_TOOL
986RANLIB
987ac_ct_AR
988LN_S
989NM
990ac_ct_DUMPBIN
991DUMPBIN
992LD
993FGREP
994LIBTOOL
995OBJDUMP
996DLLTOOL
997AS
998host_os
999host_vendor
1000host_cpu
1001host
1002build_os
1003build_vendor
1004build_cpu
1005build
1006PKGADD_VENDOR
1007PKGADD_NAME
1008PKGADD_PKG
1009VERSIONNUM
1010CURLVERSION
1011am__fastdepCC_FALSE
1012am__fastdepCC_TRUE
1013CCDEPMODE
1014am__nodep
1015AMDEPBACKSLASH
1016AMDEP_FALSE
1017AMDEP_TRUE
1018am__quote
1019am__include
1020DEPDIR
1021am__untar
1022am__tar
1023AMTAR
1024am__leading_dot
1025SET_MAKE
1026AWK
1027mkdir_p
1028MKDIR_P
1029INSTALL_STRIP_PROGRAM
1030STRIP
1031install_sh
1032MAKEINFO
1033AUTOHEADER
1034AUTOMAKE
1035AUTOCONF
1036ACLOCAL
1037VERSION
1038PACKAGE
1039CYGPATH_W
1040am__isrc
1041CPP
1042OBJEXT
1043EXEEXT
1044ac_ct_CC
1045CPPFLAGS
1046LDFLAGS
1047CFLAGS
1048CC
1049INSTALL_DATA
1050INSTALL_SCRIPT
1051INSTALL_PROGRAM
1052libext
1053AR
1054EGREP
1055GREP
1056CURL_CFLAG_EXTRAS
1057CONFIGURE_OPTIONS
1058CODE_COVERAGE_RULES
1059CODE_COVERAGE_LDFLAGS
1060CODE_COVERAGE_LIBS
1061CODE_COVERAGE_CXXFLAGS
1062CODE_COVERAGE_CFLAGS
1063CODE_COVERAGE_CPPFLAGS
1064GENHTML
1065LCOV
1066GCOV
1067CODE_COVERAGE_ENABLED
1068CODE_COVERAGE_ENABLED_FALSE
1069CODE_COVERAGE_ENABLED_TRUE
1070SED
1071AM_BACKSLASH
1072AM_DEFAULT_VERBOSITY
1073AM_DEFAULT_V
1074AM_V
1075MAINT
1076MAINTAINER_MODE_FALSE
1077MAINTAINER_MODE_TRUE
1078target_alias
1079host_alias
1080build_alias
1081LIBS
1082ECHO_T
1083ECHO_N
1084ECHO_C
1085DEFS
1086mandir
1087localedir
1088libdir
1089psdir
1090pdfdir
1091dvidir
1092htmldir
1093infodir
1094docdir
1095oldincludedir
1096includedir
1097runstatedir
1098localstatedir
1099sharedstatedir
1100sysconfdir
1101datadir
1102datarootdir
1103libexecdir
1104sbindir
1105bindir
1106program_transform_name
1107prefix
1108exec_prefix
1109PACKAGE_URL
1110PACKAGE_BUGREPORT
1111PACKAGE_STRING
1112PACKAGE_VERSION
1113PACKAGE_TARNAME
1114PACKAGE_NAME
1115SHELL
1116PATH_SEPARATOR'
1117ac_subst_files=''
1118ac_user_opts='
1119enable_option_checking
1120enable_maintainer_mode
1121enable_silent_rules
1122enable_debug
1123enable_optimize
1124enable_warnings
1125enable_werror
1126enable_curldebug
1127enable_symbol_hiding
1128enable_hidden_symbols
1129enable_ares
1130enable_rt
1131with_gcov
1132enable_code_coverage
1133enable_dependency_tracking
1134enable_largefile
1135enable_shared
1136enable_static
1137with_pic
1138enable_fast_install
1139with_aix_soname
1140with_gnu_ld
1141with_sysroot
1142enable_libtool_lock
1143enable_http
1144enable_ftp
1145enable_file
1146enable_ldap
1147enable_ldaps
1148enable_rtsp
1149enable_proxy
1150enable_dict
1151enable_telnet
1152enable_tftp
1153enable_pop3
1154enable_imap
1155enable_smb
1156enable_smtp
1157enable_gopher
1158enable_manual
1159enable_libcurl_option
1160enable_libgcc
1161with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001162with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001163with_ldap_lib
1164with_lber_lib
1165enable_ipv6
1166with_gssapi_includes
1167with_gssapi_libs
1168with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001169with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001170with_winssl
1171with_darwinssl
1172with_ssl
1173with_egd_socket
1174with_random
1175with_gnutls
1176with_polarssl
1177with_mbedtls
1178with_cyassl
1179with_nss
1180with_axtls
1181with_ca_bundle
1182with_ca_path
1183with_ca_fallback
1184with_libpsl
1185with_libmetalink
1186with_libssh2
1187with_librtmp
1188enable_versioned_symbols
1189with_winidn
1190with_libidn2
1191with_nghttp2
1192with_zsh_functions_dir
1193enable_threaded_resolver
1194enable_pthreads
1195enable_verbose
1196enable_sspi
1197enable_crypto_auth
1198enable_ntlm_wb
1199enable_tls_srp
1200enable_unix_sockets
1201enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001202'
1203 ac_precious_vars='build_alias
1204host_alias
1205target_alias
1206CC
1207CFLAGS
1208LDFLAGS
1209LIBS
1210CPPFLAGS
1211CPP
1212LT_SYS_LIBRARY_PATH'
1213ac_subdirs_all='ares'
1214
1215# Initialize some variables set by options.
1216ac_init_help=
1217ac_init_version=false
1218ac_unrecognized_opts=
1219ac_unrecognized_sep=
1220# The variables have the same names as the options, with
1221# dashes changed to underlines.
1222cache_file=/dev/null
1223exec_prefix=NONE
1224no_create=
1225no_recursion=
1226prefix=NONE
1227program_prefix=NONE
1228program_suffix=NONE
1229program_transform_name=s,x,x,
1230silent=
1231site=
1232srcdir=
1233verbose=
1234x_includes=NONE
1235x_libraries=NONE
1236
1237# Installation directory options.
1238# These are left unexpanded so users can "make install exec_prefix=/foo"
1239# and all the variables that are supposed to be based on exec_prefix
1240# by default will actually change.
1241# Use braces instead of parens because sh, perl, etc. also accept them.
1242# (The list follows the same order as the GNU Coding Standards.)
1243bindir='${exec_prefix}/bin'
1244sbindir='${exec_prefix}/sbin'
1245libexecdir='${exec_prefix}/libexec'
1246datarootdir='${prefix}/share'
1247datadir='${datarootdir}'
1248sysconfdir='${prefix}/etc'
1249sharedstatedir='${prefix}/com'
1250localstatedir='${prefix}/var'
1251runstatedir='${localstatedir}/run'
1252includedir='${prefix}/include'
1253oldincludedir='/usr/include'
1254docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1255infodir='${datarootdir}/info'
1256htmldir='${docdir}'
1257dvidir='${docdir}'
1258pdfdir='${docdir}'
1259psdir='${docdir}'
1260libdir='${exec_prefix}/lib'
1261localedir='${datarootdir}/locale'
1262mandir='${datarootdir}/man'
1263
1264ac_prev=
1265ac_dashdash=
1266for ac_option
1267do
1268 # If the previous option needs an argument, assign it.
1269 if test -n "$ac_prev"; then
1270 eval $ac_prev=\$ac_option
1271 ac_prev=
1272 continue
1273 fi
1274
1275 case $ac_option in
1276 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1277 *=) ac_optarg= ;;
1278 *) ac_optarg=yes ;;
1279 esac
1280
1281 # Accept the important Cygnus configure options, so we can diagnose typos.
1282
1283 case $ac_dashdash$ac_option in
1284 --)
1285 ac_dashdash=yes ;;
1286
1287 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1288 ac_prev=bindir ;;
1289 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1290 bindir=$ac_optarg ;;
1291
1292 -build | --build | --buil | --bui | --bu)
1293 ac_prev=build_alias ;;
1294 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1295 build_alias=$ac_optarg ;;
1296
1297 -cache-file | --cache-file | --cache-fil | --cache-fi \
1298 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1299 ac_prev=cache_file ;;
1300 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1301 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1302 cache_file=$ac_optarg ;;
1303
1304 --config-cache | -C)
1305 cache_file=config.cache ;;
1306
1307 -datadir | --datadir | --datadi | --datad)
1308 ac_prev=datadir ;;
1309 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1310 datadir=$ac_optarg ;;
1311
1312 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1313 | --dataroo | --dataro | --datar)
1314 ac_prev=datarootdir ;;
1315 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1316 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1317 datarootdir=$ac_optarg ;;
1318
1319 -disable-* | --disable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid feature name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"enable_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval enable_$ac_useropt=no ;;
1334
1335 -docdir | --docdir | --docdi | --doc | --do)
1336 ac_prev=docdir ;;
1337 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1338 docdir=$ac_optarg ;;
1339
1340 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1341 ac_prev=dvidir ;;
1342 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1343 dvidir=$ac_optarg ;;
1344
1345 -enable-* | --enable-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid feature name: $ac_useropt"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354"enable_$ac_useropt"
1355"*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval enable_$ac_useropt=\$ac_optarg ;;
1360
1361 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1362 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1363 | --exec | --exe | --ex)
1364 ac_prev=exec_prefix ;;
1365 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1366 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1367 | --exec=* | --exe=* | --ex=*)
1368 exec_prefix=$ac_optarg ;;
1369
1370 -gas | --gas | --ga | --g)
1371 # Obsolete; use --with-gas.
1372 with_gas=yes ;;
1373
1374 -help | --help | --hel | --he | -h)
1375 ac_init_help=long ;;
1376 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1377 ac_init_help=recursive ;;
1378 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1379 ac_init_help=short ;;
1380
1381 -host | --host | --hos | --ho)
1382 ac_prev=host_alias ;;
1383 -host=* | --host=* | --hos=* | --ho=*)
1384 host_alias=$ac_optarg ;;
1385
1386 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1387 ac_prev=htmldir ;;
1388 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1389 | --ht=*)
1390 htmldir=$ac_optarg ;;
1391
1392 -includedir | --includedir | --includedi | --included | --include \
1393 | --includ | --inclu | --incl | --inc)
1394 ac_prev=includedir ;;
1395 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1396 | --includ=* | --inclu=* | --incl=* | --inc=*)
1397 includedir=$ac_optarg ;;
1398
1399 -infodir | --infodir | --infodi | --infod | --info | --inf)
1400 ac_prev=infodir ;;
1401 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1402 infodir=$ac_optarg ;;
1403
1404 -libdir | --libdir | --libdi | --libd)
1405 ac_prev=libdir ;;
1406 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1407 libdir=$ac_optarg ;;
1408
1409 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1410 | --libexe | --libex | --libe)
1411 ac_prev=libexecdir ;;
1412 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1413 | --libexe=* | --libex=* | --libe=*)
1414 libexecdir=$ac_optarg ;;
1415
1416 -localedir | --localedir | --localedi | --localed | --locale)
1417 ac_prev=localedir ;;
1418 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1419 localedir=$ac_optarg ;;
1420
1421 -localstatedir | --localstatedir | --localstatedi | --localstated \
1422 | --localstate | --localstat | --localsta | --localst | --locals)
1423 ac_prev=localstatedir ;;
1424 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1425 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1426 localstatedir=$ac_optarg ;;
1427
1428 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1429 ac_prev=mandir ;;
1430 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1431 mandir=$ac_optarg ;;
1432
1433 -nfp | --nfp | --nf)
1434 # Obsolete; use --without-fp.
1435 with_fp=no ;;
1436
1437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1438 | --no-cr | --no-c | -n)
1439 no_create=yes ;;
1440
1441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 no_recursion=yes ;;
1444
1445 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1446 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1447 | --oldin | --oldi | --old | --ol | --o)
1448 ac_prev=oldincludedir ;;
1449 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1450 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1451 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1452 oldincludedir=$ac_optarg ;;
1453
1454 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1455 ac_prev=prefix ;;
1456 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1457 prefix=$ac_optarg ;;
1458
1459 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1460 | --program-pre | --program-pr | --program-p)
1461 ac_prev=program_prefix ;;
1462 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1463 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1464 program_prefix=$ac_optarg ;;
1465
1466 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1467 | --program-suf | --program-su | --program-s)
1468 ac_prev=program_suffix ;;
1469 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1470 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1471 program_suffix=$ac_optarg ;;
1472
1473 -program-transform-name | --program-transform-name \
1474 | --program-transform-nam | --program-transform-na \
1475 | --program-transform-n | --program-transform- \
1476 | --program-transform | --program-transfor \
1477 | --program-transfo | --program-transf \
1478 | --program-trans | --program-tran \
1479 | --progr-tra | --program-tr | --program-t)
1480 ac_prev=program_transform_name ;;
1481 -program-transform-name=* | --program-transform-name=* \
1482 | --program-transform-nam=* | --program-transform-na=* \
1483 | --program-transform-n=* | --program-transform-=* \
1484 | --program-transform=* | --program-transfor=* \
1485 | --program-transfo=* | --program-transf=* \
1486 | --program-trans=* | --program-tran=* \
1487 | --progr-tra=* | --program-tr=* | --program-t=*)
1488 program_transform_name=$ac_optarg ;;
1489
1490 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1491 ac_prev=pdfdir ;;
1492 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1493 pdfdir=$ac_optarg ;;
1494
1495 -psdir | --psdir | --psdi | --psd | --ps)
1496 ac_prev=psdir ;;
1497 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 psdir=$ac_optarg ;;
1499
1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1501 | -silent | --silent | --silen | --sile | --sil)
1502 silent=yes ;;
1503
1504 -runstatedir | --runstatedir | --runstatedi | --runstated \
1505 | --runstate | --runstat | --runsta | --runst | --runs \
1506 | --run | --ru | --r)
1507 ac_prev=runstatedir ;;
1508 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1509 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1510 | --run=* | --ru=* | --r=*)
1511 runstatedir=$ac_optarg ;;
1512
1513 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1514 ac_prev=sbindir ;;
1515 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1516 | --sbi=* | --sb=*)
1517 sbindir=$ac_optarg ;;
1518
1519 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1520 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1521 | --sharedst | --shareds | --shared | --share | --shar \
1522 | --sha | --sh)
1523 ac_prev=sharedstatedir ;;
1524 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1525 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1526 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1527 | --sha=* | --sh=*)
1528 sharedstatedir=$ac_optarg ;;
1529
1530 -site | --site | --sit)
1531 ac_prev=site ;;
1532 -site=* | --site=* | --sit=*)
1533 site=$ac_optarg ;;
1534
1535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1536 ac_prev=srcdir ;;
1537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1538 srcdir=$ac_optarg ;;
1539
1540 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1541 | --syscon | --sysco | --sysc | --sys | --sy)
1542 ac_prev=sysconfdir ;;
1543 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1544 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1545 sysconfdir=$ac_optarg ;;
1546
1547 -target | --target | --targe | --targ | --tar | --ta | --t)
1548 ac_prev=target_alias ;;
1549 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1550 target_alias=$ac_optarg ;;
1551
1552 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553 verbose=yes ;;
1554
1555 -version | --version | --versio | --versi | --vers | -V)
1556 ac_init_version=: ;;
1557
1558 -with-* | --with-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1562 as_fn_error $? "invalid package name: $ac_useropt"
1563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1566 *"
1567"with_$ac_useropt"
1568"*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval with_$ac_useropt=\$ac_optarg ;;
1573
1574 -without-* | --without-*)
1575 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1576 # Reject names that are not valid shell variable names.
1577 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1578 as_fn_error $? "invalid package name: $ac_useropt"
1579 ac_useropt_orig=$ac_useropt
1580 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1581 case $ac_user_opts in
1582 *"
1583"with_$ac_useropt"
1584"*) ;;
1585 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1586 ac_unrecognized_sep=', ';;
1587 esac
1588 eval with_$ac_useropt=no ;;
1589
1590 --x)
1591 # Obsolete; use --with-x.
1592 with_x=yes ;;
1593
1594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1595 | --x-incl | --x-inc | --x-in | --x-i)
1596 ac_prev=x_includes ;;
1597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1599 x_includes=$ac_optarg ;;
1600
1601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1603 ac_prev=x_libraries ;;
1604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1606 x_libraries=$ac_optarg ;;
1607
1608 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1609Try \`$0 --help' for more information"
1610 ;;
1611
1612 *=*)
1613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1614 # Reject names that are not valid shell variable names.
1615 case $ac_envvar in #(
1616 '' | [0-9]* | *[!_$as_cr_alnum]* )
1617 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1618 esac
1619 eval $ac_envvar=\$ac_optarg
1620 export $ac_envvar ;;
1621
1622 *)
1623 # FIXME: should be removed in autoconf 3.0.
1624 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1626 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1627 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1628 ;;
1629
1630 esac
1631done
1632
1633if test -n "$ac_prev"; then
1634 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1635 as_fn_error $? "missing argument to $ac_option"
1636fi
1637
1638if test -n "$ac_unrecognized_opts"; then
1639 case $enable_option_checking in
1640 no) ;;
1641 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1642 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643 esac
1644fi
1645
1646# Check all directory arguments for consistency.
1647for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1648 datadir sysconfdir sharedstatedir localstatedir includedir \
1649 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1650 libdir localedir mandir runstatedir
1651do
1652 eval ac_val=\$$ac_var
1653 # Remove trailing slashes.
1654 case $ac_val in
1655 */ )
1656 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1657 eval $ac_var=\$ac_val;;
1658 esac
1659 # Be sure to have absolute directory names.
1660 case $ac_val in
1661 [\\/$]* | ?:[\\/]* ) continue;;
1662 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1663 esac
1664 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1665done
1666
1667# There might be people who depend on the old broken behavior: `$host'
1668# used to hold the argument of --host etc.
1669# FIXME: To remove some day.
1670build=$build_alias
1671host=$host_alias
1672target=$target_alias
1673
1674# FIXME: To remove some day.
1675if test "x$host_alias" != x; then
1676 if test "x$build_alias" = x; then
1677 cross_compiling=maybe
1678 elif test "x$build_alias" != "x$host_alias"; then
1679 cross_compiling=yes
1680 fi
1681fi
1682
1683ac_tool_prefix=
1684test -n "$host_alias" && ac_tool_prefix=$host_alias-
1685
1686test "$silent" = yes && exec 6>/dev/null
1687
1688
1689ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690ac_ls_di=`ls -di .` &&
1691ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1692 as_fn_error $? "working directory cannot be determined"
1693test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1694 as_fn_error $? "pwd does not report name of working directory"
1695
1696
1697# Find the source files, if location was not specified.
1698if test -z "$srcdir"; then
1699 ac_srcdir_defaulted=yes
1700 # Try the directory containing this script, then the parent directory.
1701 ac_confdir=`$as_dirname -- "$as_myself" ||
1702$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703 X"$as_myself" : 'X\(//\)[^/]' \| \
1704 X"$as_myself" : 'X\(//\)$' \| \
1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706$as_echo X"$as_myself" |
1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708 s//\1/
1709 q
1710 }
1711 /^X\(\/\/\)[^/].*/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\/\)$/{
1716 s//\1/
1717 q
1718 }
1719 /^X\(\/\).*/{
1720 s//\1/
1721 q
1722 }
1723 s/.*/./; q'`
1724 srcdir=$ac_confdir
1725 if test ! -r "$srcdir/$ac_unique_file"; then
1726 srcdir=..
1727 fi
1728else
1729 ac_srcdir_defaulted=no
1730fi
1731if test ! -r "$srcdir/$ac_unique_file"; then
1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1733 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1734fi
1735ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1736ac_abs_confdir=`(
1737 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1738 pwd)`
1739# When building in place, set srcdir=.
1740if test "$ac_abs_confdir" = "$ac_pwd"; then
1741 srcdir=.
1742fi
1743# Remove unnecessary trailing slashes from srcdir.
1744# Double slashes in file names in object file debugging info
1745# mess up M-x gdb in Emacs.
1746case $srcdir in
1747*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1748esac
1749for ac_var in $ac_precious_vars; do
1750 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_env_${ac_var}_value=\$${ac_var}
1752 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754done
1755
1756#
1757# Report the --help message.
1758#
1759if test "$ac_init_help" = "long"; then
1760 # Omit some internal or obsolete options to make the list less imposing.
1761 # This message is too long to be a string in the A/UX 3.1 sh.
1762 cat <<_ACEOF
1763\`configure' configures curl - to adapt to many kinds of systems.
1764
1765Usage: $0 [OPTION]... [VAR=VALUE]...
1766
1767To assign environment variables (e.g., CC, CFLAGS...), specify them as
1768VAR=VALUE. See below for descriptions of some of the useful variables.
1769
1770Defaults for the options are specified in brackets.
1771
1772Configuration:
1773 -h, --help display this help and exit
1774 --help=short display options specific to this package
1775 --help=recursive display the short help of all the included packages
1776 -V, --version display version information and exit
1777 -q, --quiet, --silent do not print \`checking ...' messages
1778 --cache-file=FILE cache test results in FILE [disabled]
1779 -C, --config-cache alias for \`--cache-file=config.cache'
1780 -n, --no-create do not create output files
1781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1782
1783Installation directories:
1784 --prefix=PREFIX install architecture-independent files in PREFIX
1785 [$ac_default_prefix]
1786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1787 [PREFIX]
1788
1789By default, \`make install' will install all the files in
1790\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1791an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1792for instance \`--prefix=\$HOME'.
1793
1794For better control, use the options below.
1795
1796Fine tuning of the installation directories:
1797 --bindir=DIR user executables [EPREFIX/bin]
1798 --sbindir=DIR system admin executables [EPREFIX/sbin]
1799 --libexecdir=DIR program executables [EPREFIX/libexec]
1800 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1801 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1802 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1803 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
1812 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
1821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
1826System types:
1827 --build=BUILD configure for building on BUILD [guessed]
1828 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1829_ACEOF
1830fi
1831
1832if test -n "$ac_init_help"; then
1833 case $ac_init_help in
1834 short | recursive ) echo "Configuration of curl -:";;
1835 esac
1836 cat <<\_ACEOF
1837
1838Optional Features:
1839 --disable-option-checking ignore unrecognized --enable/--with options
1840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1842 --enable-maintainer-mode
1843 enable make rules and dependencies not useful (and
1844 sometimes confusing) to the casual installer
1845 --enable-silent-rules less verbose build output (undo: "make V=1")
1846 --disable-silent-rules verbose build output (undo: "make V=0")
1847 --enable-debug Enable debug build options
1848 --disable-debug Disable debug build options
1849 --enable-optimize Enable compiler optimizations
1850 --disable-optimize Disable compiler optimizations
1851 --enable-warnings Enable strict compiler warnings
1852 --disable-warnings Disable strict compiler warnings
1853 --enable-werror Enable compiler warnings as errors
1854 --disable-werror Disable compiler warnings as errors
1855 --enable-curldebug Enable curl debug memory tracking
1856 --disable-curldebug Disable curl debug memory tracking
1857 --enable-symbol-hiding Enable hiding of library internal symbols
1858 --disable-symbol-hiding Disable hiding of library internal symbols
1859 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1860 --disable-hidden-symbols
1861 To be deprecated, use --disable-symbol-hiding
1862 --enable-ares[=PATH] Enable c-ares for DNS lookups
1863 --disable-ares Disable c-ares for DNS lookups
1864 --disable-rt disable dependency on -lrt
1865 --enable-code-coverage Whether to enable code coverage support
1866 --enable-dependency-tracking
1867 do not reject slow dependency extractors
1868 --disable-dependency-tracking
1869 speeds up one-time build
1870 --disable-largefile omit support for large files
1871 --enable-shared[=PKGS] build shared libraries [default=yes]
1872 --enable-static[=PKGS] build static libraries [default=yes]
1873 --enable-fast-install[=PKGS]
1874 optimize for fast installation [default=yes]
1875 --disable-libtool-lock avoid locking (might break parallel builds)
1876 --enable-http Enable HTTP support
1877 --disable-http Disable HTTP support
1878 --enable-ftp Enable FTP support
1879 --disable-ftp Disable FTP support
1880 --enable-file Enable FILE support
1881 --disable-file Disable FILE support
1882 --enable-ldap Enable LDAP support
1883 --disable-ldap Disable LDAP support
1884 --enable-ldaps Enable LDAPS support
1885 --disable-ldaps Disable LDAPS support
1886 --enable-rtsp Enable RTSP support
1887 --disable-rtsp Disable RTSP support
1888 --enable-proxy Enable proxy support
1889 --disable-proxy Disable proxy support
1890 --enable-dict Enable DICT support
1891 --disable-dict Disable DICT support
1892 --enable-telnet Enable TELNET support
1893 --disable-telnet Disable TELNET support
1894 --enable-tftp Enable TFTP support
1895 --disable-tftp Disable TFTP support
1896 --enable-pop3 Enable POP3 support
1897 --disable-pop3 Disable POP3 support
1898 --enable-imap Enable IMAP support
1899 --disable-imap Disable IMAP support
1900 --enable-smb Enable SMB/CIFS support
1901 --disable-smb Disable SMB/CIFS support
1902 --enable-smtp Enable SMTP support
1903 --disable-smtp Disable SMTP support
1904 --enable-gopher Enable Gopher support
1905 --disable-gopher Disable Gopher support
1906 --enable-manual Enable built-in manual
1907 --disable-manual Disable built-in manual
1908 --enable-libcurl-option Enable --libcurl C code generation support
1909 --disable-libcurl-option
1910 Disable --libcurl C code generation support
1911 --enable-libgcc use libgcc when linking
1912 --enable-ipv6 Enable IPv6 (with IPv4) support
1913 --disable-ipv6 Disable IPv6 support
1914 --enable-versioned-symbols
1915 Enable versioned symbols in shared library
1916 --disable-versioned-symbols
1917 Disable versioned symbols in shared library
1918 --enable-threaded-resolver
1919 Enable threaded resolver
1920 --disable-threaded-resolver
1921 Disable threaded resolver
1922 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1923 --disable-pthreads Disable POSIX threads
1924 --enable-verbose Enable verbose strings
1925 --disable-verbose Disable verbose strings
1926 --enable-sspi Enable SSPI
1927 --disable-sspi Disable SSPI
1928 --enable-crypto-auth Enable cryptographic authentication
1929 --disable-crypto-auth Disable cryptographic authentication
1930 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1931 helper, where FILE is ntlm_auth's absolute filename
1932 (default: /usr/bin/ntlm_auth)
1933 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1934 helper
1935 --enable-tls-srp Enable TLS-SRP authentication
1936 --disable-tls-srp Disable TLS-SRP authentication
1937 --enable-unix-sockets Enable Unix domain sockets
1938 --disable-unix-sockets Disable Unix domain sockets
1939 --enable-cookies Enable cookies support
1940 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001941
1942Optional Packages:
1943 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1944 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1945 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1946 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1947 both]
1948 --with-aix-soname=aix|svr4|both
1949 shared library versioning (aka "SONAME") variant to
1950 provide on AIX, [default=aix].
1951 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1952 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1953 compiler's sysroot if not specified).
1954 --with-zlib=PATH search for zlib in PATH
1955 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001956 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1957 installation; when possible, set the PKG_CONFIG_PATH
1958 environment variable instead of using this option
1959 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001960 --with-ldap-lib=libname Specify name of ldap lib file
1961 --with-lber-lib=libname Specify name of lber lib file
1962 --with-gssapi-includes=DIR
1963 Specify location of GSS-API headers
1964 --with-gssapi-libs=DIR Specify location of GSS-API libs
1965 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001966 --with-default-ssl-backend=NAME
1967 Use NAME as default SSL backend
1968 --without-default-ssl-backend
1969 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001970 --with-winssl enable Windows native SSL/TLS
1971 --without-winssl disable Windows native SSL/TLS
1972 --with-darwinssl enable Apple OS native SSL/TLS
1973 --without-darwinssl disable Apple OS native SSL/TLS
1974 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1975 installation (default: /usr/local/ssl); when
1976 possible, set the PKG_CONFIG_PATH environment
1977 variable instead of using this option
1978 --without-ssl disable OpenSSL
1979 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1980 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1981 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1982 installation root
1983 --without-gnutls disable GnuTLS detection
1984 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1985 installation root
1986 --without-polarssl disable PolarSSL detection
1987 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1988 installation root
1989 --without-mbedtls disable mbedTLS detection
1990 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1991 installation root (default: system lib default)
1992 --without-cyassl disable CyaSSL detection
1993 --with-nss=PATH where to look for NSS, PATH points to the
1994 installation root
1995 --without-nss disable NSS detection
1996 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1997 installation prefix (default: /usr/local). Ignored
1998 if another SSL engine is selected.
1999 --without-axtls disable axTLS
2000 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2001 /etc/ca-bundle.crt)
2002 --without-ca-bundle Don't use a default CA bundle
2003 --with-ca-path=DIRECTORY
2004 Path to a directory containing CA certificates
2005 stored individually, with their filenames in a hash
2006 format. This option can be used with OpenSSL, GnuTLS
2007 and PolarSSL backends. Refer to OpenSSL c_rehash for
2008 details. (example: /etc/certificates)
2009 --without-ca-path Don't use a default CA path
2010 --with-ca-fallback Use the built in CA store of the SSL library
2011 --without-ca-fallback Don't use the built in CA store of the SSL library
2012 --without-libpsl disable support for libpsl cookie checking
2013 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2014 installation root
2015 --without-libmetalink disable libmetalink detection
2016 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2017 LIBSSH2 installation; when possible, set the
2018 PKG_CONFIG_PATH environment variable instead of
2019 using this option
2020 --without-libssh2 disable LIBSSH2
2021 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2022 LIBRTMP installation; when possible, set the
2023 PKG_CONFIG_PATH environment variable instead of
2024 using this option
2025 --without-librtmp disable LIBRTMP
2026 --with-winidn=PATH enable Windows native IDN
2027 --without-winidn disable Windows native IDN
2028 --with-libidn2=PATH Enable libidn2 usage
2029 --without-libidn2 Disable libidn2 usage
2030 --with-nghttp2=PATH Enable nghttp2 usage
2031 --without-nghttp2 Disable nghttp2 usage
2032 --with-zsh-functions-dir=PATH
2033 Install zsh completions to PATH
2034 --without-zsh-functions-dir
2035 Do not install zsh completions
2036
2037Some influential environment variables:
2038 CC C compiler command
2039 CFLAGS C compiler flags
2040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2041 nonstandard directory <lib dir>
2042 LIBS libraries to pass to the linker, e.g. -l<library>
2043 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2044 you have headers in a nonstandard directory <include dir>
2045 CPP C preprocessor
2046 LT_SYS_LIBRARY_PATH
2047 User-defined run-time library search path.
2048
2049Use these variables to override the choices made by `configure' or to help
2050it to find libraries and programs with nonstandard names/locations.
2051
2052Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2053_ACEOF
2054ac_status=$?
2055fi
2056
2057if test "$ac_init_help" = "recursive"; then
2058 # If there are subdirs, report their specific --help.
2059 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2060 test -d "$ac_dir" ||
2061 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2062 continue
2063 ac_builddir=.
2064
2065case "$ac_dir" in
2066.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067*)
2068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2069 # A ".." for each directory in $ac_dir_suffix.
2070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2071 case $ac_top_builddir_sub in
2072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2074 esac ;;
2075esac
2076ac_abs_top_builddir=$ac_pwd
2077ac_abs_builddir=$ac_pwd$ac_dir_suffix
2078# for backward compatibility:
2079ac_top_builddir=$ac_top_build_prefix
2080
2081case $srcdir in
2082 .) # We are building in place.
2083 ac_srcdir=.
2084 ac_top_srcdir=$ac_top_builddir_sub
2085 ac_abs_top_srcdir=$ac_pwd ;;
2086 [\\/]* | ?:[\\/]* ) # Absolute name.
2087 ac_srcdir=$srcdir$ac_dir_suffix;
2088 ac_top_srcdir=$srcdir
2089 ac_abs_top_srcdir=$srcdir ;;
2090 *) # Relative name.
2091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2092 ac_top_srcdir=$ac_top_build_prefix$srcdir
2093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2094esac
2095ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2096
2097 cd "$ac_dir" || { ac_status=$?; continue; }
2098 # Check for guested configure.
2099 if test -f "$ac_srcdir/configure.gnu"; then
2100 echo &&
2101 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2102 elif test -f "$ac_srcdir/configure"; then
2103 echo &&
2104 $SHELL "$ac_srcdir/configure" --help=recursive
2105 else
2106 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2107 fi || ac_status=$?
2108 cd "$ac_pwd" || { ac_status=$?; break; }
2109 done
2110fi
2111
2112test -n "$ac_init_help" && exit $ac_status
2113if $ac_init_version; then
2114 cat <<\_ACEOF
2115curl configure -
2116generated by GNU Autoconf 2.69
2117
2118Copyright (C) 2012 Free Software Foundation, Inc.
2119This configure script is free software; the Free Software Foundation
2120gives unlimited permission to copy, distribute and modify it.
2121
2122Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2123This configure script may be copied, distributed and modified under the
2124terms of the curl license; see COPYING for more details
2125_ACEOF
2126 exit
2127fi
2128
2129## ------------------------ ##
2130## Autoconf initialization. ##
2131## ------------------------ ##
2132
2133# ac_fn_c_try_compile LINENO
2134# --------------------------
2135# Try to compile conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_c_try_compile ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext
2140 if { { ac_try="$ac_compile"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146$as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_compile") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2153 fi
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest.$ac_objext; then :
2159 ac_retval=0
2160else
2161 $as_echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_retval=1
2165fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168
2169} # ac_fn_c_try_compile
2170
2171# ac_fn_c_try_cpp LINENO
2172# ----------------------
2173# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2174ac_fn_c_try_cpp ()
2175{
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_cpp conftest.$ac_ext"
2178case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181esac
2182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183$as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2185 ac_status=$?
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2190 fi
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } > conftest.i && {
2193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2194 test ! -s conftest.err
2195 }; then :
2196 ac_retval=0
2197else
2198 $as_echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 ac_retval=1
2202fi
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2205
2206} # ac_fn_c_try_cpp
2207
Alex Deymo486467e2017-12-19 19:04:07 +01002208# ac_fn_c_try_link LINENO
2209# -----------------------
2210# Try to link conftest.$ac_ext, and return whether this succeeded.
2211ac_fn_c_try_link ()
2212{
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext conftest$ac_exeext
2215 if { { ac_try="$ac_link"
2216case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219esac
2220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221$as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2228 fi
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest$ac_exeext
2236 }; then :
2237 ac_retval=0
2238else
2239 $as_echo "$as_me: failed program was:" >&5
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 ac_retval=1
2243fi
2244 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2245 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2246 # interfere with the next link command; also delete a directory that is
2247 # left behind by Apple's compiler. We do this before executing the actions.
2248 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2251
2252} # ac_fn_c_try_link
2253
Elliott Hughes82be86d2017-09-20 17:00:17 -07002254# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2255# -------------------------------------------------------
2256# Tests whether HEADER exists and can be compiled using the include files in
2257# INCLUDES, setting the cache variable VAR accordingly.
2258ac_fn_c_check_header_compile ()
2259{
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262$as_echo_n "checking for $2... " >&6; }
2263if eval \${$3+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h. */
2268$4
2269#include <$2>
2270_ACEOF
2271if ac_fn_c_try_compile "$LINENO"; then :
2272 eval "$3=yes"
2273else
2274 eval "$3=no"
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277fi
2278eval ac_res=\$$3
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280$as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282
2283} # ac_fn_c_check_header_compile
2284
2285# ac_fn_c_try_run LINENO
2286# ----------------------
2287# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2288# that executables *can* be run.
2289ac_fn_c_try_run ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if { { ac_try="$ac_link"
2293case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296esac
2297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298$as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_link") 2>&5
2300 ac_status=$?
2301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2302 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2303 { { case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_try") 2>&5
2310 ac_status=$?
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; }; }; then :
2313 ac_retval=0
2314else
2315 $as_echo "$as_me: program exited with status $ac_status" >&5
2316 $as_echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_retval=$ac_status
2320fi
2321 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
2324
2325} # ac_fn_c_try_run
2326
Alex Deymo486467e2017-12-19 19:04:07 +01002327# ac_fn_c_check_func LINENO FUNC VAR
2328# ----------------------------------
2329# Tests whether FUNC exists, setting the cache variable VAR accordingly
2330ac_fn_c_check_func ()
2331{
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334$as_echo_n "checking for $2... " >&6; }
2335if eval \${$3+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h. */
2340
2341#define $2 innocuous_$2
2342#ifdef __STDC__
2343# include <limits.h>
2344#else
2345# include <assert.h>
2346#endif
2347#undef $2
2348#ifdef __cplusplus
2349extern "C"
2350#endif
2351char $2 ();
2352#if defined __stub_$2 || defined __stub___$2
2353choke me
2354#endif
2355
2356int main (void)
2357{
2358return $2 ();
2359 ;
2360 return 0;
2361}
2362_ACEOF
2363if ac_fn_c_try_link "$LINENO"; then :
2364 eval "$3=yes"
2365else
2366 eval "$3=no"
2367fi
2368rm -f core conftest.err conftest.$ac_objext \
2369 conftest$ac_exeext conftest.$ac_ext
2370fi
2371eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373$as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375
2376} # ac_fn_c_check_func
2377
2378# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2379# -------------------------------------------------------
2380# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2381# the include files in INCLUDES and setting the cache variable VAR
2382# accordingly.
2383ac_fn_c_check_header_mongrel ()
2384{
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 if eval \${$3+:} false; then :
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388$as_echo_n "checking for $2... " >&6; }
2389if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391fi
2392eval ac_res=\$$3
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
2395else
2396 # Is the header compilable?
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2398$as_echo_n "checking $2 usability... " >&6; }
2399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400/* end confdefs.h. */
2401$4
2402#include <$2>
2403_ACEOF
2404if ac_fn_c_try_compile "$LINENO"; then :
2405 ac_header_compiler=yes
2406else
2407 ac_header_compiler=no
2408fi
2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2411$as_echo "$ac_header_compiler" >&6; }
2412
2413# Is the header present?
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2415$as_echo_n "checking $2 presence... " >&6; }
2416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417/* end confdefs.h. */
2418#include <$2>
2419_ACEOF
2420if ac_fn_c_try_cpp "$LINENO"; then :
2421 ac_header_preproc=yes
2422else
2423 ac_header_preproc=no
2424fi
2425rm -f conftest.err conftest.i conftest.$ac_ext
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2427$as_echo "$ac_header_preproc" >&6; }
2428
2429# So? What about this header?
2430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2431 yes:no: )
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2433$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2435$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2436 ;;
2437 no:yes:* )
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2439$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2441$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2443$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2445$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2447$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2448( $as_echo "## ----------------------------------------------------------------------- ##
2449## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2450## ----------------------------------------------------------------------- ##"
2451 ) | sed "s/^/$as_me: WARNING: /" >&2
2452 ;;
2453esac
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455$as_echo_n "checking for $2... " >&6; }
2456if eval \${$3+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458else
2459 eval "$3=\$ac_header_compiler"
2460fi
2461eval ac_res=\$$3
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463$as_echo "$ac_res" >&6; }
2464fi
2465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466
2467} # ac_fn_c_check_header_mongrel
2468
Elliott Hughes82be86d2017-09-20 17:00:17 -07002469# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2470# --------------------------------------------
2471# Tries to find the compile-time value of EXPR in a program that includes
2472# INCLUDES, setting VAR accordingly. Returns whether the value could be
2473# computed
2474ac_fn_c_compute_int ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 if test "$cross_compiling" = yes; then
2478 # Depending upon the size, compute the lo and hi bounds.
2479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480/* end confdefs.h. */
2481$4
2482int main (void)
2483{
2484static int test_array [1 - 2 * !(($2) >= 0)];
2485test_array [0] = 0;
2486return test_array [0];
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 ac_lo=0 ac_mid=0
2494 while :; do
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h. */
2497$4
2498int main (void)
2499{
2500static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2501test_array [0] = 0;
2502return test_array [0];
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508if ac_fn_c_try_compile "$LINENO"; then :
2509 ac_hi=$ac_mid; break
2510else
2511 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2512 if test $ac_lo -le $ac_mid; then
2513 ac_lo= ac_hi=
2514 break
2515 fi
2516 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 done
2520else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522/* end confdefs.h. */
2523$4
2524int main (void)
2525{
2526static int test_array [1 - 2 * !(($2) < 0)];
2527test_array [0] = 0;
2528return test_array [0];
2529
2530 ;
2531 return 0;
2532}
2533_ACEOF
2534if ac_fn_c_try_compile "$LINENO"; then :
2535 ac_hi=-1 ac_mid=-1
2536 while :; do
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h. */
2539$4
2540int main (void)
2541{
2542static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2543test_array [0] = 0;
2544return test_array [0];
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550if ac_fn_c_try_compile "$LINENO"; then :
2551 ac_lo=$ac_mid; break
2552else
2553 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2554 if test $ac_mid -le $ac_hi; then
2555 ac_lo= ac_hi=
2556 break
2557 fi
2558 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 done
2562else
2563 ac_lo= ac_hi=
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568# Binary search between lo and hi bounds.
2569while test "x$ac_lo" != "x$ac_hi"; do
2570 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$4
2574int main (void)
2575{
2576static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2577test_array [0] = 0;
2578return test_array [0];
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584if ac_fn_c_try_compile "$LINENO"; then :
2585 ac_hi=$ac_mid
2586else
2587 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590done
2591case $ac_lo in #((
2592?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2593'') ac_retval=1 ;;
2594esac
2595 else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599static long int longval () { return $2; }
2600static unsigned long int ulongval () { return $2; }
2601#include <stdio.h>
2602#include <stdlib.h>
2603int main (void)
2604{
2605
2606 FILE *f = fopen ("conftest.val", "w");
2607 if (! f)
2608 return 1;
2609 if (($2) < 0)
2610 {
2611 long int i = longval ();
2612 if (i != ($2))
2613 return 1;
2614 fprintf (f, "%ld", i);
2615 }
2616 else
2617 {
2618 unsigned long int i = ulongval ();
2619 if (i != ($2))
2620 return 1;
2621 fprintf (f, "%lu", i);
2622 }
2623 /* Do not output a trailing newline, as this causes \r\n confusion
2624 on some platforms. */
2625 return ferror (f) || fclose (f) != 0;
2626
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_run "$LINENO"; then :
2632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2633else
2634 ac_retval=1
2635fi
2636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637 conftest.$ac_objext conftest.beam conftest.$ac_ext
2638rm -f conftest.val
2639
2640 fi
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status $ac_retval
2643
2644} # ac_fn_c_compute_int
2645
Elliott Hughes82be86d2017-09-20 17:00:17 -07002646# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2647# -------------------------------------------
2648# Tests whether TYPE exists after having included INCLUDES, setting cache
2649# variable VAR accordingly.
2650ac_fn_c_check_type ()
2651{
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2654$as_echo_n "checking for $2... " >&6; }
2655if eval \${$3+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657else
2658 eval "$3=no"
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660/* end confdefs.h. */
2661$4
2662int main (void)
2663{
2664if (sizeof ($2))
2665 return 0;
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670if ac_fn_c_try_compile "$LINENO"; then :
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672/* end confdefs.h. */
2673$4
2674int main (void)
2675{
2676if (sizeof (($2)))
2677 return 0;
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683
2684else
2685 eval "$3=yes"
2686fi
2687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688fi
2689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690fi
2691eval ac_res=\$$3
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2693$as_echo "$ac_res" >&6; }
2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695
2696} # ac_fn_c_check_type
2697
2698# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2699# ----------------------------------------------------
2700# Tries to find if the field MEMBER exists in type AGGR, after including
2701# INCLUDES, setting cache variable VAR accordingly.
2702ac_fn_c_check_member ()
2703{
2704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2706$as_echo_n "checking for $2.$3... " >&6; }
2707if eval \${$4+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709else
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711/* end confdefs.h. */
2712$5
2713int main (void)
2714{
2715static $2 ac_aggr;
2716if (ac_aggr.$3)
2717return 0;
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722if ac_fn_c_try_compile "$LINENO"; then :
2723 eval "$4=yes"
2724else
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726/* end confdefs.h. */
2727$5
2728int main (void)
2729{
2730static $2 ac_aggr;
2731if (sizeof ac_aggr.$3)
2732return 0;
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737if ac_fn_c_try_compile "$LINENO"; then :
2738 eval "$4=yes"
2739else
2740 eval "$4=no"
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745fi
2746eval ac_res=\$$4
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748$as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2750
2751} # ac_fn_c_check_member
2752cat >config.log <<_ACEOF
2753This file contains any messages produced by compilers while
2754running configure, to aid debugging if configure makes a mistake.
2755
2756It was created by curl $as_me -, which was
2757generated by GNU Autoconf 2.69. Invocation command line was
2758
2759 $ $0 $@
2760
2761_ACEOF
2762exec 5>>config.log
2763{
2764cat <<_ASUNAME
2765## --------- ##
2766## Platform. ##
2767## --------- ##
2768
2769hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2770uname -m = `(uname -m) 2>/dev/null || echo unknown`
2771uname -r = `(uname -r) 2>/dev/null || echo unknown`
2772uname -s = `(uname -s) 2>/dev/null || echo unknown`
2773uname -v = `(uname -v) 2>/dev/null || echo unknown`
2774
2775/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2776/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2777
2778/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2779/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2780/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2781/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2782/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2783/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2784/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2785
2786_ASUNAME
2787
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 $as_echo "PATH: $as_dir"
2794 done
2795IFS=$as_save_IFS
2796
2797} >&5
2798
2799cat >&5 <<_ACEOF
2800
2801
2802## ----------- ##
2803## Core tests. ##
2804## ----------- ##
2805
2806_ACEOF
2807
2808
2809# Keep a trace of the command line.
2810# Strip out --no-create and --no-recursion so they do not pile up.
2811# Strip out --silent because we don't want to record it for future runs.
2812# Also quote any args containing shell meta-characters.
2813# Make two passes to allow for proper duplicate-argument suppression.
2814ac_configure_args=
2815ac_configure_args0=
2816ac_configure_args1=
2817ac_must_keep_next=false
2818for ac_pass in 1 2
2819do
2820 for ac_arg
2821 do
2822 case $ac_arg in
2823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2825 | -silent | --silent | --silen | --sile | --sil)
2826 continue ;;
2827 *\'*)
2828 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2829 esac
2830 case $ac_pass in
2831 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2832 2)
2833 as_fn_append ac_configure_args1 " '$ac_arg'"
2834 if test $ac_must_keep_next = true; then
2835 ac_must_keep_next=false # Got value, back to normal.
2836 else
2837 case $ac_arg in
2838 *=* | --config-cache | -C | -disable-* | --disable-* \
2839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2841 | -with-* | --with-* | -without-* | --without-* | --x)
2842 case "$ac_configure_args0 " in
2843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2844 esac
2845 ;;
2846 -* ) ac_must_keep_next=true ;;
2847 esac
2848 fi
2849 as_fn_append ac_configure_args " '$ac_arg'"
2850 ;;
2851 esac
2852 done
2853done
2854{ ac_configure_args0=; unset ac_configure_args0;}
2855{ ac_configure_args1=; unset ac_configure_args1;}
2856
2857# When interrupted or exit'd, cleanup temporary files, and complete
2858# config.log. We remove comments because anyway the quotes in there
2859# would cause problems or look ugly.
2860# WARNING: Use '\'' to represent an apostrophe within the trap.
2861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2862trap 'exit_status=$?
2863 # Save into config.log some information that might help in debugging.
2864 {
2865 echo
2866
2867 $as_echo "## ---------------- ##
2868## Cache variables. ##
2869## ---------------- ##"
2870 echo
2871 # The following way of writing the cache mishandles newlines in values,
2872(
2873 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2874 eval ac_val=\$$ac_var
2875 case $ac_val in #(
2876 *${as_nl}*)
2877 case $ac_var in #(
2878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2879$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2880 esac
2881 case $ac_var in #(
2882 _ | IFS | as_nl) ;; #(
2883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2884 *) { eval $ac_var=; unset $ac_var;} ;;
2885 esac ;;
2886 esac
2887 done
2888 (set) 2>&1 |
2889 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2890 *${as_nl}ac_space=\ *)
2891 sed -n \
2892 "s/'\''/'\''\\\\'\'''\''/g;
2893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2894 ;; #(
2895 *)
2896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2897 ;;
2898 esac |
2899 sort
2900)
2901 echo
2902
2903 $as_echo "## ----------------- ##
2904## Output variables. ##
2905## ----------------- ##"
2906 echo
2907 for ac_var in $ac_subst_vars
2908 do
2909 eval ac_val=\$$ac_var
2910 case $ac_val in
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912 esac
2913 $as_echo "$ac_var='\''$ac_val'\''"
2914 done | sort
2915 echo
2916
2917 if test -n "$ac_subst_files"; then
2918 $as_echo "## ------------------- ##
2919## File substitutions. ##
2920## ------------------- ##"
2921 echo
2922 for ac_var in $ac_subst_files
2923 do
2924 eval ac_val=\$$ac_var
2925 case $ac_val in
2926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2927 esac
2928 $as_echo "$ac_var='\''$ac_val'\''"
2929 done | sort
2930 echo
2931 fi
2932
2933 if test -s confdefs.h; then
2934 $as_echo "## ----------- ##
2935## confdefs.h. ##
2936## ----------- ##"
2937 echo
2938 cat confdefs.h
2939 echo
2940 fi
2941 test "$ac_signal" != 0 &&
2942 $as_echo "$as_me: caught signal $ac_signal"
2943 $as_echo "$as_me: exit $exit_status"
2944 } >&5
2945 rm -f core *.core core.conftest.* &&
2946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2947 exit $exit_status
2948' 0
2949for ac_signal in 1 2 13 15; do
2950 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2951done
2952ac_signal=0
2953
2954# confdefs.h avoids OS command line length limits that DEFS can exceed.
2955rm -f -r conftest* confdefs.h
2956
2957$as_echo "/* confdefs.h */" > confdefs.h
2958
2959# Predefined preprocessor variables.
2960
2961cat >>confdefs.h <<_ACEOF
2962#define PACKAGE_NAME "$PACKAGE_NAME"
2963_ACEOF
2964
2965cat >>confdefs.h <<_ACEOF
2966#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2967_ACEOF
2968
2969cat >>confdefs.h <<_ACEOF
2970#define PACKAGE_VERSION "$PACKAGE_VERSION"
2971_ACEOF
2972
2973cat >>confdefs.h <<_ACEOF
2974#define PACKAGE_STRING "$PACKAGE_STRING"
2975_ACEOF
2976
2977cat >>confdefs.h <<_ACEOF
2978#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2979_ACEOF
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE_URL "$PACKAGE_URL"
2983_ACEOF
2984
2985
2986# Let the site file select an alternate cache file if it wants to.
2987# Prefer an explicitly selected file to automatically selected ones.
2988ac_site_file1=NONE
2989ac_site_file2=NONE
2990if test -n "$CONFIG_SITE"; then
2991 # We do not want a PATH search for config.site.
2992 case $CONFIG_SITE in #((
2993 -*) ac_site_file1=./$CONFIG_SITE;;
2994 */*) ac_site_file1=$CONFIG_SITE;;
2995 *) ac_site_file1=./$CONFIG_SITE;;
2996 esac
2997elif test "x$prefix" != xNONE; then
2998 ac_site_file1=$prefix/share/config.site
2999 ac_site_file2=$prefix/etc/config.site
3000else
3001 ac_site_file1=$ac_default_prefix/share/config.site
3002 ac_site_file2=$ac_default_prefix/etc/config.site
3003fi
3004for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3005do
3006 test "x$ac_site_file" = xNONE && continue
3007 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3009$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3010 sed 's/^/| /' "$ac_site_file" >&5
3011 . "$ac_site_file" \
3012 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014as_fn_error $? "failed to load site script $ac_site_file
3015See \`config.log' for more details" "$LINENO" 5; }
3016 fi
3017done
3018
3019if test -r "$cache_file"; then
3020 # Some versions of bash will fail to source /dev/null (special files
3021 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3022 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3024$as_echo "$as_me: loading cache $cache_file" >&6;}
3025 case $cache_file in
3026 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3027 *) . "./$cache_file";;
3028 esac
3029 fi
3030else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3032$as_echo "$as_me: creating cache $cache_file" >&6;}
3033 >$cache_file
3034fi
3035
3036# Check that the precious variables saved in the cache have kept the same
3037# value.
3038ac_cache_corrupted=false
3039for ac_var in $ac_precious_vars; do
3040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3041 eval ac_new_set=\$ac_env_${ac_var}_set
3042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3043 eval ac_new_val=\$ac_env_${ac_var}_value
3044 case $ac_old_set,$ac_new_set in
3045 set,)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3047$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3048 ac_cache_corrupted=: ;;
3049 ,set)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3051$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3052 ac_cache_corrupted=: ;;
3053 ,);;
3054 *)
3055 if test "x$ac_old_val" != "x$ac_new_val"; then
3056 # differences in whitespace do not lead to failure.
3057 ac_old_val_w=`echo x $ac_old_val`
3058 ac_new_val_w=`echo x $ac_new_val`
3059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3061$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3062 ac_cache_corrupted=:
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3065$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3066 eval $ac_var=\$ac_old_val
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3069$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3071$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3072 fi;;
3073 esac
3074 # Pass precious variables to config.status.
3075 if test "$ac_new_set" = set; then
3076 case $ac_new_val in
3077 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3078 *) ac_arg=$ac_var=$ac_new_val ;;
3079 esac
3080 case " $ac_configure_args " in
3081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3083 esac
3084 fi
3085done
3086if $ac_cache_corrupted; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3090$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3091 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3092fi
3093## -------------------- ##
3094## Main body of script. ##
3095## -------------------- ##
3096
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103
3104
3105
3106
3107
3108
3109# using curl-override.m4
3110
3111
3112
3113
3114
3115ac_config_headers="$ac_config_headers lib/curl_config.h"
3116
3117
3118
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3120$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3121 # Check whether --enable-maintainer-mode was given.
3122if test "${enable_maintainer_mode+set}" = set; then :
3123 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3124else
3125 USE_MAINTAINER_MODE=no
3126fi
3127
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3129$as_echo "$USE_MAINTAINER_MODE" >&6; }
3130 if test $USE_MAINTAINER_MODE = yes; then
3131 MAINTAINER_MODE_TRUE=
3132 MAINTAINER_MODE_FALSE='#'
3133else
3134 MAINTAINER_MODE_TRUE='#'
3135 MAINTAINER_MODE_FALSE=
3136fi
3137
3138 MAINT=$MAINTAINER_MODE_TRUE
3139
3140
3141# Check whether --enable-silent-rules was given.
3142if test "${enable_silent_rules+set}" = set; then :
3143 enableval=$enable_silent_rules;
3144fi
3145
3146case $enable_silent_rules in # (((
3147 yes) AM_DEFAULT_VERBOSITY=0;;
3148 no) AM_DEFAULT_VERBOSITY=1;;
3149 *) AM_DEFAULT_VERBOSITY=0;;
3150esac
3151am_make=${MAKE-make}
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3153$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3154if ${am_cv_make_support_nested_variables+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156else
3157 if $as_echo 'TRUE=$(BAR$(V))
3158BAR0=false
3159BAR1=true
3160V=1
3161am__doit:
3162 @$(TRUE)
3163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3164 am_cv_make_support_nested_variables=yes
3165else
3166 am_cv_make_support_nested_variables=no
3167fi
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3170$as_echo "$am_cv_make_support_nested_variables" >&6; }
3171if test $am_cv_make_support_nested_variables = yes; then
3172 AM_V='$(V)'
3173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3174else
3175 AM_V=$AM_DEFAULT_VERBOSITY
3176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3177fi
3178AM_BACKSLASH='\'
3179
3180
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3183$as_echo_n "checking whether to enable debug build options... " >&6; }
3184 OPT_DEBUG_BUILD="default"
3185 # Check whether --enable-debug was given.
3186if test "${enable_debug+set}" = set; then :
3187 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3188fi
3189
3190 case "$OPT_DEBUG_BUILD" in
3191 no)
3192 want_debug="no"
3193 ;;
3194 default)
3195 want_debug="no"
3196 ;;
3197 *)
3198 want_debug="yes"
3199 ;;
3200 esac
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3202$as_echo "$want_debug" >&6; }
3203
3204
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3206$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3207 OPT_COMPILER_OPTIMIZE="default"
3208 # Check whether --enable-optimize was given.
3209if test "${enable_optimize+set}" = set; then :
3210 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3211fi
3212
3213 case "$OPT_COMPILER_OPTIMIZE" in
3214 no)
3215 want_optimize="no"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218 ;;
3219 default)
3220 if test "$want_debug" = "yes"; then
3221 want_optimize="assume_no"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3223$as_echo "(assumed) no" >&6; }
3224 else
3225 want_optimize="assume_yes"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3227$as_echo "(assumed) yes" >&6; }
3228 fi
3229 ;;
3230 *)
3231 want_optimize="yes"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234 ;;
3235 esac
3236
3237
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3239$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3240 OPT_COMPILER_WARNINGS="default"
3241 # Check whether --enable-warnings was given.
3242if test "${enable_warnings+set}" = set; then :
3243 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3244fi
3245
3246 case "$OPT_COMPILER_WARNINGS" in
3247 no)
3248 want_warnings="no"
3249 ;;
3250 default)
3251 want_warnings="$want_debug"
3252 ;;
3253 *)
3254 want_warnings="yes"
3255 ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3258$as_echo "$want_warnings" >&6; }
3259
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3262$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3263 OPT_COMPILER_WERROR="default"
3264 # Check whether --enable-werror was given.
3265if test "${enable_werror+set}" = set; then :
3266 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3267fi
3268
3269 case "$OPT_COMPILER_WERROR" in
3270 no)
3271 want_werror="no"
3272 ;;
3273 default)
3274 want_werror="no"
3275 ;;
3276 *)
3277 want_werror="yes"
3278 ;;
3279 esac
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3281$as_echo "$want_werror" >&6; }
3282
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3285$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3286 OPT_CURLDEBUG_BUILD="default"
3287 # Check whether --enable-curldebug was given.
3288if test "${enable_curldebug+set}" = set; then :
3289 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3290fi
3291
3292 case "$OPT_CURLDEBUG_BUILD" in
3293 no)
3294 want_curldebug="no"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297 ;;
3298 default)
3299 if test "$want_debug" = "yes"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3301$as_echo "(assumed) yes" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305 fi
3306 want_curldebug_assumed="yes"
3307 want_curldebug="$want_debug"
3308 ;;
3309 *)
3310 want_curldebug="yes"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312$as_echo "yes" >&6; }
3313 ;;
3314 esac
3315
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3318$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3319 OPT_SYMBOL_HIDING="default"
3320 # Check whether --enable-symbol-hiding was given.
3321if test "${enable_symbol_hiding+set}" = set; then :
3322 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3323fi
3324
3325 # Check whether --enable-hidden-symbols was given.
3326if test "${enable_hidden_symbols+set}" = set; then :
3327 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3328fi
3329
3330 case "$OPT_SYMBOL_HIDING" in
3331 no)
3332 want_symbol_hiding="no"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335 ;;
3336 default)
3337 want_symbol_hiding="yes"
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3339$as_echo "yes" >&6; }
3340 ;;
3341 *)
3342 want_symbol_hiding="yes"
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344$as_echo "yes" >&6; }
3345 ;;
3346 esac
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3350$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3351 OPT_ARES="default"
3352 # Check whether --enable-ares was given.
3353if test "${enable_ares+set}" = set; then :
3354 enableval=$enable_ares; OPT_ARES=$enableval
3355fi
3356
3357 case "$OPT_ARES" in
3358 no)
3359 want_ares="no"
3360 ;;
3361 default)
3362 want_ares="no"
3363 ;;
3364 *)
3365 want_ares="yes"
3366 if test -n "$enableval" && test "$enableval" != "yes"; then
3367 want_ares_path="$enableval"
3368 fi
3369 ;;
3370 esac
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3372$as_echo "$want_ares" >&6; }
3373
3374
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3376$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3377 OPT_RT="default"
3378 # Check whether --enable-rt was given.
3379if test "${enable_rt+set}" = set; then :
3380 enableval=$enable_rt; OPT_RT=$enableval
3381fi
3382
3383 case "$OPT_RT" in
3384 no)
3385 dontwant_rt="yes"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387$as_echo "yes" >&6; }
3388 ;;
3389 default)
3390 dontwant_rt="no"
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3392$as_echo "(assumed no)" >&6; }
3393 ;;
3394 *)
3395 dontwant_rt="no"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398 ;;
3399 esac
3400
3401
3402#
3403# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3404#
3405
3406if test -z "$xc_configure_preamble_result"; then
3407 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3408fi
3409
3410#
3411# Check that 'PATH_SEPARATOR' has already been set.
3412#
3413
3414if test -z "$xc_PATH_SEPARATOR"; then
3415 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3416fi
3417if test -z "$PATH_SEPARATOR"; then
3418 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3421$as_echo_n "checking for path separator... " >&6; }
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3423$as_echo "$PATH_SEPARATOR" >&6; }
3424if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3426$as_echo_n "checking for initial path separator... " >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3428$as_echo "$xc_PATH_SEPARATOR" >&6; }
3429 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3430fi
3431
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3433$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3434if ${ac_cv_path_SED+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436else
3437 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3438 for ac_i in 1 2 3 4 5 6 7; do
3439 ac_script="$ac_script$as_nl$ac_script"
3440 done
3441 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3442 { ac_script=; unset ac_script;}
3443 if test -z "$SED"; then
3444 ac_path_SED_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_prog in sed gsed; do
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3454 as_fn_executable_p "$ac_path_SED" || continue
3455# Check for GNU ac_path_SED and select it if it is found.
3456 # Check for GNU $ac_path_SED
3457case `"$ac_path_SED" --version 2>&1` in
3458*GNU*)
3459 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3460*)
3461 ac_count=0
3462 $as_echo_n 0123456789 >"conftest.in"
3463 while :
3464 do
3465 cat "conftest.in" "conftest.in" >"conftest.tmp"
3466 mv "conftest.tmp" "conftest.in"
3467 cp "conftest.in" "conftest.nl"
3468 $as_echo '' >> "conftest.nl"
3469 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471 as_fn_arith $ac_count + 1 && ac_count=$as_val
3472 if test $ac_count -gt ${ac_path_SED_max-0}; then
3473 # Best one so far, save it but keep looking for a better one
3474 ac_cv_path_SED="$ac_path_SED"
3475 ac_path_SED_max=$ac_count
3476 fi
3477 # 10*(2^10) chars as input seems more than enough
3478 test $ac_count -gt 10 && break
3479 done
3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481esac
3482
3483 $ac_path_SED_found && break 3
3484 done
3485 done
3486 done
3487IFS=$as_save_IFS
3488 if test -z "$ac_cv_path_SED"; then
3489 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3490 fi
3491else
3492 ac_cv_path_SED=$SED
3493fi
3494
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3497$as_echo "$ac_cv_path_SED" >&6; }
3498 SED="$ac_cv_path_SED"
3499 rm -f conftest.sed
3500
3501
3502
3503
3504 # allow to override gcov location
3505
3506# Check whether --with-gcov was given.
3507if test "${with_gcov+set}" = set; then :
3508 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3509else
3510 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3511fi
3512
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3515$as_echo_n "checking whether to build with code coverage support... " >&6; }
3516 # Check whether --enable-code-coverage was given.
3517if test "${enable_code_coverage+set}" = set; then :
3518 enableval=$enable_code_coverage;
3519else
3520 enable_code_coverage=no
3521fi
3522
3523
3524 if test x$enable_code_coverage = xyes; then
3525 CODE_COVERAGE_ENABLED_TRUE=
3526 CODE_COVERAGE_ENABLED_FALSE='#'
3527else
3528 CODE_COVERAGE_ENABLED_TRUE='#'
3529 CODE_COVERAGE_ENABLED_FALSE=
3530fi
3531
3532 CODE_COVERAGE_ENABLED=$enable_code_coverage
3533
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3535$as_echo "$enable_code_coverage" >&6; }
3536
3537 if test "$enable_code_coverage" = "yes" ; then :
3538
3539 # check for gcov
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3542set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; 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_prog_GCOV+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547else
3548 if test -n "$GCOV"; then
3549 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3550else
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562done
3563 done
3564IFS=$as_save_IFS
3565
3566fi
3567fi
3568GCOV=$ac_cv_prog_GCOV
3569if test -n "$GCOV"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3571$as_echo "$GCOV" >&6; }
3572else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574$as_echo "no" >&6; }
3575fi
3576
3577
3578fi
3579if test -z "$ac_cv_prog_GCOV"; then
3580 ac_ct_GCOV=$GCOV
3581 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3582set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584$as_echo_n "checking for $ac_word... " >&6; }
3585if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587else
3588 if test -n "$ac_ct_GCOV"; then
3589 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
3603 done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3609if test -n "$ac_ct_GCOV"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3611$as_echo "$ac_ct_GCOV" >&6; }
3612else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615fi
3616
3617 if test "x$ac_ct_GCOV" = x; then
3618 GCOV=":"
3619 else
3620 case $cross_compiling:$ac_tool_warned in
3621yes:)
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624ac_tool_warned=yes ;;
3625esac
3626 GCOV=$ac_ct_GCOV
3627 fi
3628else
3629 GCOV="$ac_cv_prog_GCOV"
3630fi
3631
3632 if test "X$GCOV" = "X:"; then :
3633 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3634fi
3635
3636
3637 if test "$GCC" = "no" ; then :
3638
3639 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3640
3641fi
3642
3643 # Extract the first word of "lcov", so it can be a program name with args.
3644set dummy lcov; ac_word=$2
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646$as_echo_n "checking for $ac_word... " >&6; }
3647if ${ac_cv_prog_LCOV+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649else
3650 if test -n "$LCOV"; then
3651 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_LCOV="lcov"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664done
3665 done
3666IFS=$as_save_IFS
3667
3668fi
3669fi
3670LCOV=$ac_cv_prog_LCOV
3671if test -n "$LCOV"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3673$as_echo "$LCOV" >&6; }
3674else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676$as_echo "no" >&6; }
3677fi
3678
3679
3680 # Extract the first word of "genhtml", so it can be a program name with args.
3681set dummy genhtml; ac_word=$2
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683$as_echo_n "checking for $ac_word... " >&6; }
3684if ${ac_cv_prog_GENHTML+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 if test -n "$GENHTML"; then
3688 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3689else
3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_GENHTML="genhtml"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701done
3702 done
3703IFS=$as_save_IFS
3704
3705fi
3706fi
3707GENHTML=$ac_cv_prog_GENHTML
3708if test -n "$GENHTML"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3710$as_echo "$GENHTML" >&6; }
3711else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713$as_echo "no" >&6; }
3714fi
3715
3716
3717
3718 if test -z "$LCOV" ; then :
3719
3720 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3721
3722fi
3723
3724 if test -z "$GENHTML" ; then :
3725
3726 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3727
3728fi
3729
3730 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3731 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3732 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3733 CODE_COVERAGE_LIBS="-lgcov"
3734 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3735
3736
3737
3738
3739
3740
3741
3742 CODE_COVERAGE_RULES_CHECK='
3743 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3744 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3745'
3746 CODE_COVERAGE_RULES_CAPTURE='
3747 $(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)
3748 $(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)
3749 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3750 $(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)
3751 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3752'
3753 CODE_COVERAGE_RULES_CLEAN='
3754clean: code-coverage-clean
3755distclean: code-coverage-clean
3756code-coverage-clean:
3757 -$(LCOV) --directory $(top_builddir) -z
3758 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3759 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3760'
3761
3762else
3763
3764 CODE_COVERAGE_RULES_CHECK='
3765 @echo "Need to reconfigure with --enable-code-coverage"
3766'
3767 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
3768 CODE_COVERAGE_RULES_CLEAN=''
3769
3770fi
3771
3772CODE_COVERAGE_RULES='
3773# Code coverage
3774#
3775# Optional:
3776# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3777# Multiple directories may be specified, separated by whitespace.
3778# (Default: $(top_builddir))
3779# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3780# by lcov for code coverage. (Default:
3781# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3782# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3783# reports to be created. (Default:
3784# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3785# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
3786# set to 0 to disable it and leave empty to stay with the default.
3787# (Default: empty)
3788# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
3789# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3790# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
3791# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3792# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3793# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
3794# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3795# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
3796# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3797# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
3798# lcov instance. (Default: empty)
3799# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
3800# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3801# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
3802# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3803# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3804# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3805# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3806#
3807# The generated report will be titled using the $(PACKAGE_NAME) and
3808# $(PACKAGE_VERSION). In order to add the current git hash to the title,
3809# use the git-version-gen script, available online.
3810
3811# Optional variables
3812CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3813CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3814CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3815CODE_COVERAGE_BRANCH_COVERAGE ?=
3816CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3817--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3818CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3819CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3820CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3821CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3822CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
3823CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3824CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
3825$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3826--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3827CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3828CODE_COVERAGE_IGNORE_PATTERN ?=
3829
3830GITIGNOREFILES ?=
3831GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3832
3833code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
3834code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
3835code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
3836 $(CODE_COVERAGE_OUTPUT_FILE);
3837code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
3838code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
3839code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
3840 $(CODE_COVERAGE_IGNORE_PATTERN);
3841code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
3842code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
3843code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
3844code_coverage_quiet = $(code_coverage_quiet_$(V))
3845code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
3846code_coverage_quiet_0 = --quiet
3847
3848# sanitizes the test-name: replaces with underscores: dashes and dots
3849code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
3850
3851# Use recursive makes in order to ignore errors during check
3852check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
3853
3854# Capture code coverage data
3855code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
3856
3857# Hook rule executed before code-coverage-capture, overridable by the user
3858code-coverage-capture-hook:
3859
3860'"$CODE_COVERAGE_RULES_CLEAN"'
3861
3862A''M_DISTCHECK_CONFIGURE_FLAGS ?=
3863A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3864
3865.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3866'
3867
3868
3869
3870
3871
3872#
3873# save the configure arguments
3874#
3875CONFIGURE_OPTIONS="\"$ac_configure_args\""
3876
3877
3878CURL_CFLAG_EXTRAS=""
3879if test X"$want_werror" = Xyes; then
3880 CURL_CFLAG_EXTRAS="-Werror"
3881fi
3882
3883
3884if test -z "$SED"; then
3885 # Extract the first word of "sed", so it can be a program name with args.
3886set dummy sed; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
3889if ${ac_cv_path_SED+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891else
3892 case $SED in
3893 [\\/]* | ?:[\\/]*)
3894 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3895 ;;
3896 *)
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898as_dummy="$PATH:/usr/bin:/usr/local/bin"
3899for as_dir in $as_dummy
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909done
3910 done
3911IFS=$as_save_IFS
3912
3913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3914 ;;
3915esac
3916fi
3917SED=$ac_cv_path_SED
3918if test -n "$SED"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3920$as_echo "$SED" >&6; }
3921else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924fi
3925
3926
3927 if test -z "$SED" || test "$SED" = "not_found"; then
3928 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3929 fi
3930fi
3931
3932
3933if test -z "$GREP"; then
3934 # Extract the first word of "grep", so it can be a program name with args.
3935set dummy grep; ac_word=$2
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937$as_echo_n "checking for $ac_word... " >&6; }
3938if ${ac_cv_path_GREP+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 case $GREP in
3942 [\\/]* | ?:[\\/]*)
3943 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3944 ;;
3945 *)
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947as_dummy="$PATH:/usr/bin:/usr/local/bin"
3948for as_dir in $as_dummy
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958done
3959 done
3960IFS=$as_save_IFS
3961
3962 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3963 ;;
3964esac
3965fi
3966GREP=$ac_cv_path_GREP
3967if test -n "$GREP"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3969$as_echo "$GREP" >&6; }
3970else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976 if test -z "$GREP" || test "$GREP" = "not_found"; then
3977 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3978 fi
3979fi
3980
3981
3982if test -z "$EGREP"; then
3983 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3985$as_echo_n "checking for egrep... " >&6; }
3986 EGREP="$GREP -E"
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3988$as_echo "$EGREP" >&6; }
3989 else
3990 # Extract the first word of "egrep", so it can be a program name with args.
3991set dummy egrep; ac_word=$2
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
3994if ${ac_cv_path_EGREP+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996else
3997 case $EGREP in
3998 [\\/]* | ?:[\\/]*)
3999 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4000 ;;
4001 *)
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003as_dummy="$PATH:/usr/bin:/usr/local/bin"
4004for as_dir in $as_dummy
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
4017
4018 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4019 ;;
4020esac
4021fi
4022EGREP=$ac_cv_path_EGREP
4023if test -n "$EGREP"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4025$as_echo "$EGREP" >&6; }
4026else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032 fi
4033fi
4034if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4035 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
4036fi
4037
4038
4039if test -z "$AR"; then
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4042set dummy ${ac_tool_prefix}ar; ac_word=$2
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044$as_echo_n "checking for $ac_word... " >&6; }
4045if ${ac_cv_path_AR+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047else
4048 case $AR in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4051 ;;
4052 *)
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054as_dummy="$PATH:/usr/bin:/usr/local/bin"
4055for as_dir in $as_dummy
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 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065done
4066 done
4067IFS=$as_save_IFS
4068
4069 ;;
4070esac
4071fi
4072AR=$ac_cv_path_AR
4073if test -n "$AR"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4075$as_echo "$AR" >&6; }
4076else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078$as_echo "no" >&6; }
4079fi
4080
4081
4082fi
4083if test -z "$ac_cv_path_AR"; then
4084 ac_pt_AR=$AR
4085 # Extract the first word of "ar", so it can be a program name with args.
4086set dummy ar; ac_word=$2
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if ${ac_cv_path_ac_pt_AR+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091else
4092 case $ac_pt_AR in
4093 [\\/]* | ?:[\\/]*)
4094 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4095 ;;
4096 *)
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098as_dummy="$PATH:/usr/bin:/usr/local/bin"
4099for as_dir in $as_dummy
4100do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109done
4110 done
4111IFS=$as_save_IFS
4112
4113 ;;
4114esac
4115fi
4116ac_pt_AR=$ac_cv_path_ac_pt_AR
4117if test -n "$ac_pt_AR"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4119$as_echo "$ac_pt_AR" >&6; }
4120else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
4123fi
4124
4125 if test "x$ac_pt_AR" = x; then
4126 AR="not_found"
4127 else
4128 case $cross_compiling:$ac_tool_warned in
4129yes:)
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4132ac_tool_warned=yes ;;
4133esac
4134 AR=$ac_pt_AR
4135 fi
4136else
4137 AR="$ac_cv_path_AR"
4138fi
4139
4140 if test -z "$AR" || test "$AR" = "not_found"; then
4141 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4142 fi
4143fi
4144
4145
4146
4147
4148CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4149
4150 xc_prog_cc_prev_IFS=$IFS
4151 xc_prog_cc_prev_LIBS=$LIBS
4152 xc_prog_cc_prev_CFLAGS=$CFLAGS
4153 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4154 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4155
4156
4157
4158 xc_bad_var_libs=no
4159 for xc_word in $LIBS; do
4160 case "$xc_word" in
4161 -l* | --library=*)
4162 :
4163 ;;
4164 *)
4165 xc_bad_var_libs=yes
4166 ;;
4167 esac
4168 done
4169 if test $xc_bad_var_libs = yes; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4171$as_echo "$as_me: using LIBS: $LIBS" >&6;}
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4173$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4174 fi
4175
4176
4177 xc_bad_var_ldflags=no
4178 for xc_word in $LDFLAGS; do
4179 case "$xc_word" in
4180 -D*)
4181 xc_bad_var_ldflags=yes
4182 ;;
4183 -U*)
4184 xc_bad_var_ldflags=yes
4185 ;;
4186 -I*)
4187 xc_bad_var_ldflags=yes
4188 ;;
4189 -l* | --library=*)
4190 xc_bad_var_ldflags=yes
4191 ;;
4192 esac
4193 done
4194 if test $xc_bad_var_ldflags = yes; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4196$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4197 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4198 for xc_word in $LDFLAGS; do
4199 case "$xc_word" in
4200 -D*)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4202$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4203 ;;
4204 -U*)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4206$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4207 ;;
4208 -I*)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4210$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4211 ;;
4212 -l* | --library=*)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4214$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4215 ;;
4216 esac
4217 done
4218 fi
4219
4220
4221 xc_bad_var_cppflags=no
4222 for xc_word in $CPPFLAGS; do
4223 case "$xc_word" in
4224 -rpath*)
4225 xc_bad_var_cppflags=yes
4226 ;;
4227 -L* | --library-path=*)
4228 xc_bad_var_cppflags=yes
4229 ;;
4230 -l* | --library=*)
4231 xc_bad_var_cppflags=yes
4232 ;;
4233 esac
4234 done
4235 if test $xc_bad_var_cppflags = yes; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4237$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4238 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4239 for xc_word in $CPPFLAGS; do
4240 case "$xc_word" in
4241 -rpath*)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4243$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4244 ;;
4245 -L* | --library-path=*)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4247$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4248 ;;
4249 -l* | --library=*)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4251$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4252 ;;
4253 esac
4254 done
4255 fi
4256
4257
4258 xc_bad_var_cflags=no
4259 for xc_word in $CFLAGS; do
4260 case "$xc_word" in
4261 -D*)
4262 xc_bad_var_cflags=yes
4263 ;;
4264 -U*)
4265 xc_bad_var_cflags=yes
4266 ;;
4267 -I*)
4268 xc_bad_var_cflags=yes
4269 ;;
4270 -rpath*)
4271 xc_bad_var_cflags=yes
4272 ;;
4273 -L* | --library-path=*)
4274 xc_bad_var_cflags=yes
4275 ;;
4276 -l* | --library=*)
4277 xc_bad_var_cflags=yes
4278 ;;
4279 esac
4280 done
4281 if test $xc_bad_var_cflags = yes; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4283$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4284 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4285 for xc_word in $CFLAGS; do
4286 case "$xc_word" in
4287 -D*)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4289$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4290 ;;
4291 -U*)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4293$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4294 ;;
4295 -I*)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4297$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4298 ;;
4299 -rpath*)
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4301$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4302 ;;
4303 -L* | --library-path=*)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4305$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4306 ;;
4307 -l* | --library=*)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4309$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4310 ;;
4311 esac
4312 done
4313 fi
4314
4315 if test $xc_bad_var_libs = yes ||
4316 test $xc_bad_var_cflags = yes ||
4317 test $xc_bad_var_ldflags = yes ||
4318 test $xc_bad_var_cppflags = yes; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4320$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4321 fi
4322
4323ac_aux_dir=
4324for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4325 if test -f "$ac_dir/install-sh"; then
4326 ac_aux_dir=$ac_dir
4327 ac_install_sh="$ac_aux_dir/install-sh -c"
4328 break
4329 elif test -f "$ac_dir/install.sh"; then
4330 ac_aux_dir=$ac_dir
4331 ac_install_sh="$ac_aux_dir/install.sh -c"
4332 break
4333 elif test -f "$ac_dir/shtool"; then
4334 ac_aux_dir=$ac_dir
4335 ac_install_sh="$ac_aux_dir/shtool install -c"
4336 break
4337 fi
4338done
4339if test -z "$ac_aux_dir"; then
4340 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4341fi
4342
4343# These three variables are undocumented and unsupported,
4344# and are intended to be withdrawn in a future Autoconf release.
4345# They can cause serious problems if a builder's source tree is in a directory
4346# whose full name contains unusual characters.
4347ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4348ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4349ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4350
4351
4352# Find a good install program. We prefer a C program (faster),
4353# so one script is as good as another. But avoid the broken or
4354# incompatible versions:
4355# SysV /etc/install, /usr/sbin/install
4356# SunOS /usr/etc/install
4357# IRIX /sbin/install
4358# AIX /bin/install
4359# AmigaOS /C/install, which installs bootblocks on floppy discs
4360# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4361# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4362# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4363# OS/2's system install, which has a completely different semantic
4364# ./install, which can be erroneously created by make from ./install.sh.
4365# Reject install programs that cannot install multiple files.
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4367$as_echo_n "checking for a BSD-compatible install... " >&6; }
4368if test -z "$INSTALL"; then
4369if ${ac_cv_path_install+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 # Account for people who put trailing slashes in PATH elements.
4378case $as_dir/ in #((
4379 ./ | .// | /[cC]/* | \
4380 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4381 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4382 /usr/ucb/* ) ;;
4383 *)
4384 # OSF1 and SCO ODT 3.0 have their own names for install.
4385 # Don't use installbsd from OSF since it installs stuff as root
4386 # by default.
4387 for ac_prog in ginstall scoinst install; do
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4390 if test $ac_prog = install &&
4391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392 # AIX install. It has an incompatible calling convention.
4393 :
4394 elif test $ac_prog = install &&
4395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4396 # program-specific install script used by HP pwplus--don't use.
4397 :
4398 else
4399 rm -rf conftest.one conftest.two conftest.dir
4400 echo one > conftest.one
4401 echo two > conftest.two
4402 mkdir conftest.dir
4403 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4404 test -s conftest.one && test -s conftest.two &&
4405 test -s conftest.dir/conftest.one &&
4406 test -s conftest.dir/conftest.two
4407 then
4408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4409 break 3
4410 fi
4411 fi
4412 fi
4413 done
4414 done
4415 ;;
4416esac
4417
4418 done
4419IFS=$as_save_IFS
4420
4421rm -rf conftest.one conftest.two conftest.dir
4422
4423fi
4424 if test "${ac_cv_path_install+set}" = set; then
4425 INSTALL=$ac_cv_path_install
4426 else
4427 # As a last resort, use the slow shell script. Don't cache a
4428 # value for INSTALL within a source directory, because that will
4429 # break other packages using the cache if that directory is
4430 # removed, or if the value is a relative name.
4431 INSTALL=$ac_install_sh
4432 fi
4433fi
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4435$as_echo "$INSTALL" >&6; }
4436
4437# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4438# It thinks the first close brace ends the variable substitution.
4439test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4440
4441test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4442
4443test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4444
4445# Expand $ac_aux_dir to an absolute path.
4446am_aux_dir=`cd "$ac_aux_dir" && pwd`
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453if test -n "$ac_tool_prefix"; then
4454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4455set dummy ${ac_tool_prefix}gcc; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if ${ac_cv_prog_CC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
4476 done
4477IFS=$as_save_IFS
4478
4479fi
4480fi
4481CC=$ac_cv_prog_CC
4482if test -n "$CC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4484$as_echo "$CC" >&6; }
4485else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
4489
4490
4491fi
4492if test -z "$ac_cv_prog_CC"; then
4493 ac_ct_CC=$CC
4494 # Extract the first word of "gcc", so it can be a program name with args.
4495set dummy gcc; ac_word=$2
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497$as_echo_n "checking for $ac_word... " >&6; }
4498if ${ac_cv_prog_ac_ct_CC+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500else
4501 if test -n "$ac_ct_CC"; then
4502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_ac_ct_CC="gcc"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516 done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521ac_ct_CC=$ac_cv_prog_ac_ct_CC
4522if test -n "$ac_ct_CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4524$as_echo "$ac_ct_CC" >&6; }
4525else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528fi
4529
4530 if test "x$ac_ct_CC" = x; then
4531 CC=""
4532 else
4533 case $cross_compiling:$ac_tool_warned in
4534yes:)
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4537ac_tool_warned=yes ;;
4538esac
4539 CC=$ac_ct_CC
4540 fi
4541else
4542 CC="$ac_cv_prog_CC"
4543fi
4544
4545if test -z "$CC"; then
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4548set dummy ${ac_tool_prefix}cc; ac_word=$2
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550$as_echo_n "checking for $ac_word... " >&6; }
4551if ${ac_cv_prog_CC+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553else
4554 if test -n "$CC"; then
4555 ac_cv_prog_CC="$CC" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_CC="${ac_tool_prefix}cc"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568done
4569 done
4570IFS=$as_save_IFS
4571
4572fi
4573fi
4574CC=$ac_cv_prog_CC
4575if test -n "$CC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4577$as_echo "$CC" >&6; }
4578else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581fi
4582
4583
4584 fi
4585fi
4586if test -z "$CC"; then
4587 # Extract the first word of "cc", so it can be a program name with args.
4588set dummy cc; ac_word=$2
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590$as_echo_n "checking for $ac_word... " >&6; }
4591if ${ac_cv_prog_CC+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593else
4594 if test -n "$CC"; then
4595 ac_cv_prog_CC="$CC" # Let the user override the test.
4596else
4597 ac_prog_rejected=no
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4606 ac_prog_rejected=yes
4607 continue
4608 fi
4609 ac_cv_prog_CC="cc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614 done
4615IFS=$as_save_IFS
4616
4617if test $ac_prog_rejected = yes; then
4618 # We found a bogon in the path, so make sure we never use it.
4619 set dummy $ac_cv_prog_CC
4620 shift
4621 if test $# != 0; then
4622 # We chose a different compiler from the bogus one.
4623 # However, it has the same basename, so the bogon will be chosen
4624 # first if we set CC to just the basename; use the full file name.
4625 shift
4626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4627 fi
4628fi
4629fi
4630fi
4631CC=$ac_cv_prog_CC
4632if test -n "$CC"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4634$as_echo "$CC" >&6; }
4635else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639
4640
4641fi
4642if test -z "$CC"; then
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in cl.exe
4645 do
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
4650if ${ac_cv_prog_CC+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
4670
4671fi
4672fi
4673CC=$ac_cv_prog_CC
4674if test -n "$CC"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4676$as_echo "$CC" >&6; }
4677else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
4681
4682
4683 test -n "$CC" && break
4684 done
4685fi
4686if test -z "$CC"; then
4687 ac_ct_CC=$CC
4688 for ac_prog in cl.exe
4689do
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691set dummy $ac_prog; ac_word=$2
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if ${ac_cv_prog_ac_ct_CC+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$ac_ct_CC"; then
4698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_ac_ct_CC="$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712 done
4713IFS=$as_save_IFS
4714
4715fi
4716fi
4717ac_ct_CC=$ac_cv_prog_ac_ct_CC
4718if test -n "$ac_ct_CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4720$as_echo "$ac_ct_CC" >&6; }
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726
4727 test -n "$ac_ct_CC" && break
4728done
4729
4730 if test "x$ac_ct_CC" = x; then
4731 CC=""
4732 else
4733 case $cross_compiling:$ac_tool_warned in
4734yes:)
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4737ac_tool_warned=yes ;;
4738esac
4739 CC=$ac_ct_CC
4740 fi
4741fi
4742
4743fi
4744
4745
4746test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4748as_fn_error $? "no acceptable C compiler found in \$PATH
4749See \`config.log' for more details" "$LINENO" 5; }
4750
4751# Provide some information about the compiler.
4752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4753set X $ac_compile
4754ac_compiler=$2
4755for ac_option in --version -v -V -qversion; do
4756 { { ac_try="$ac_compiler $ac_option >&5"
4757case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760esac
4761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4762$as_echo "$ac_try_echo"; } >&5
4763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4764 ac_status=$?
4765 if test -s conftest.err; then
4766 sed '10a\
4767... rest of stderr output deleted ...
4768 10q' conftest.err >conftest.er1
4769 cat conftest.er1 >&5
4770 fi
4771 rm -f conftest.er1 conftest.err
4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }
4774done
4775
4776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
4778
4779int main (void)
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786ac_clean_files_save=$ac_clean_files
4787ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4788# Try to create an executable without -o first, disregard a.out.
4789# It will help us diagnose broken compilers, and finding out an intuition
4790# of exeext.
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4792$as_echo_n "checking whether the C compiler works... " >&6; }
4793ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4794
4795# The possible output files:
4796ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4797
4798ac_rmfiles=
4799for ac_file in $ac_files
4800do
4801 case $ac_file in
4802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4804 esac
4805done
4806rm -f $ac_rmfiles
4807
4808if { { ac_try="$ac_link_default"
4809case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812esac
4813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4814$as_echo "$ac_try_echo"; } >&5
4815 (eval "$ac_link_default") 2>&5
4816 ac_status=$?
4817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818 test $ac_status = 0; }; then :
4819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4820# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4821# in a Makefile. We should not override ac_cv_exeext if it was cached,
4822# so that the user can short-circuit this test for compilers unknown to
4823# Autoconf.
4824for ac_file in $ac_files ''
4825do
4826 test -f "$ac_file" || continue
4827 case $ac_file in
4828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4829 ;;
4830 [ab].out )
4831 # We found the default executable, but exeext='' is most
4832 # certainly right.
4833 break;;
4834 *.* )
4835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4836 then :; else
4837 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4838 fi
4839 # We set ac_cv_exeext here because the later test for it is not
4840 # safe: cross compilers may not add the suffix if given an `-o'
4841 # argument, so we may need to know it at that point already.
4842 # Even if this section looks crufty: it has the advantage of
4843 # actually working.
4844 break;;
4845 * )
4846 break;;
4847 esac
4848done
4849test "$ac_cv_exeext" = no && ac_cv_exeext=
4850
4851else
4852 ac_file=''
4853fi
4854if test -z "$ac_file"; then :
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856$as_echo "no" >&6; }
4857$as_echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4862as_fn_error 77 "C compiler cannot create executables
4863See \`config.log' for more details" "$LINENO" 5; }
4864else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4866$as_echo "yes" >&6; }
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4869$as_echo_n "checking for C compiler default output file name... " >&6; }
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4871$as_echo "$ac_file" >&6; }
4872ac_exeext=$ac_cv_exeext
4873
4874rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4875ac_clean_files=$ac_clean_files_save
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4877$as_echo_n "checking for suffix of executables... " >&6; }
4878if { { ac_try="$ac_link"
4879case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
4883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4884$as_echo "$ac_try_echo"; } >&5
4885 (eval "$ac_link") 2>&5
4886 ac_status=$?
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }; then :
4889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4891# work properly (i.e., refer to `conftest.exe'), while it won't with
4892# `rm'.
4893for ac_file in conftest.exe conftest conftest.*; do
4894 test -f "$ac_file" || continue
4895 case $ac_file in
4896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4898 break;;
4899 * ) break;;
4900 esac
4901done
4902else
4903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4905as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4906See \`config.log' for more details" "$LINENO" 5; }
4907fi
4908rm -f conftest conftest$ac_cv_exeext
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4910$as_echo "$ac_cv_exeext" >&6; }
4911
4912rm -f conftest.$ac_ext
4913EXEEXT=$ac_cv_exeext
4914ac_exeext=$EXEEXT
4915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916/* end confdefs.h. */
4917#include <stdio.h>
4918int main (void)
4919{
4920FILE *f = fopen ("conftest.out", "w");
4921 return ferror (f) || fclose (f) != 0;
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927ac_clean_files="$ac_clean_files conftest.out"
4928# Check that the compiler produces executables we can run. If not, either
4929# the compiler is broken, or we cross compile.
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4931$as_echo_n "checking whether we are cross compiling... " >&6; }
4932if test "$cross_compiling" != yes; then
4933 { { ac_try="$ac_link"
4934case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937esac
4938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939$as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_link") 2>&5
4941 ac_status=$?
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }
4944 if { ac_try='./conftest$ac_cv_exeext'
4945 { { case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_try") 2>&5
4952 ac_status=$?
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; }; then
4955 cross_compiling=no
4956 else
4957 if test "$cross_compiling" = maybe; then
4958 cross_compiling=yes
4959 else
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962as_fn_error $? "cannot run C compiled programs.
4963If you meant to cross compile, use \`--host'.
4964See \`config.log' for more details" "$LINENO" 5; }
4965 fi
4966 fi
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4969$as_echo "$cross_compiling" >&6; }
4970
4971rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4972ac_clean_files=$ac_clean_files_save
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4974$as_echo_n "checking for suffix of object files... " >&6; }
4975if ${ac_cv_objext+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977else
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h. */
4980
4981int main (void)
4982{
4983
4984 ;
4985 return 0;
4986}
4987_ACEOF
4988rm -f conftest.o conftest.obj
4989if { { ac_try="$ac_compile"
4990case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993esac
4994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995$as_echo "$ac_try_echo"; } >&5
4996 (eval "$ac_compile") 2>&5
4997 ac_status=$?
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; then :
5000 for ac_file in conftest.o conftest.obj conftest.*; do
5001 test -f "$ac_file" || continue;
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005 break;;
5006 esac
5007done
5008else
5009 $as_echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014as_fn_error $? "cannot compute suffix of object files: cannot compile
5015See \`config.log' for more details" "$LINENO" 5; }
5016fi
5017rm -f conftest.$ac_cv_objext conftest.$ac_ext
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5020$as_echo "$ac_cv_objext" >&6; }
5021OBJEXT=$ac_cv_objext
5022ac_objext=$OBJEXT
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5024$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5025if ${ac_cv_c_compiler_gnu+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030
5031int main (void)
5032{
5033#ifndef __GNUC__
5034 choke me
5035#endif
5036
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042 ac_compiler_gnu=yes
5043else
5044 ac_compiler_gnu=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047ac_cv_c_compiler_gnu=$ac_compiler_gnu
5048
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5051$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5052if test $ac_compiler_gnu = yes; then
5053 GCC=yes
5054else
5055 GCC=
5056fi
5057ac_test_CFLAGS=${CFLAGS+set}
5058ac_save_CFLAGS=$CFLAGS
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5060$as_echo_n "checking whether $CC accepts -g... " >&6; }
5061if ${ac_cv_prog_cc_g+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 ac_save_c_werror_flag=$ac_c_werror_flag
5065 ac_c_werror_flag=yes
5066 ac_cv_prog_cc_g=no
5067 CFLAGS="-g"
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h. */
5070
5071int main (void)
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_prog_cc_g=yes
5080else
5081 CFLAGS=""
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h. */
5084
5085int main (void)
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092if ac_fn_c_try_compile "$LINENO"; then :
5093
5094else
5095 ac_c_werror_flag=$ac_save_c_werror_flag
5096 CFLAGS="-g"
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h. */
5099
5100int main (void)
5101{
5102
5103 ;
5104 return 0;
5105}
5106_ACEOF
5107if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_prog_cc_g=yes
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111fi
5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113fi
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5116fi
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5118$as_echo "$ac_cv_prog_cc_g" >&6; }
5119if test "$ac_test_CFLAGS" = set; then
5120 CFLAGS=$ac_save_CFLAGS
5121elif test $ac_cv_prog_cc_g = yes; then
5122 if test "$GCC" = yes; then
5123 CFLAGS="-g -O2"
5124 else
5125 CFLAGS="-g"
5126 fi
5127else
5128 if test "$GCC" = yes; then
5129 CFLAGS="-O2"
5130 else
5131 CFLAGS=
5132 fi
5133fi
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136if ${ac_cv_prog_cc_c89+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138else
5139 ac_cv_prog_cc_c89=no
5140ac_save_CC=$CC
5141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h. */
5143#include <stdarg.h>
5144#include <stdio.h>
5145struct stat;
5146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5147struct buf { int x; };
5148FILE * (*rcsopen) (struct buf *, struct stat *, int);
5149static char *e (p, i)
5150 char **p;
5151 int i;
5152{
5153 return p[i];
5154}
5155static char *f (char * (*g) (char **, int), char **p, ...)
5156{
5157 char *s;
5158 va_list v;
5159 va_start (v,p);
5160 s = g (p, va_arg (v,int));
5161 va_end (v);
5162 return s;
5163}
5164
5165/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5166 function prototypes and stuff, but not '\xHH' hex character constants.
5167 These don't provoke an error unfortunately, instead are silently treated
5168 as 'x'. The following induces an error, until -std is added to get
5169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5170 array size at least. It's necessary to write '\x00'==0 to get something
5171 that's true only with -std. */
5172int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5173
5174/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5175 inside strings and character constants. */
5176#define FOO(x) 'x'
5177int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5178
5179int test (int i, double x);
5180struct s1 {int (*f) (int a);};
5181struct s2 {int (*f) (double a);};
5182int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5183int argc;
5184char **argv;
5185int main (void)
5186{
5187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5194do
5195 CC="$ac_save_CC $ac_arg"
5196 if ac_fn_c_try_compile "$LINENO"; then :
5197 ac_cv_prog_cc_c89=$ac_arg
5198fi
5199rm -f core conftest.err conftest.$ac_objext
5200 test "x$ac_cv_prog_cc_c89" != "xno" && break
5201done
5202rm -f conftest.$ac_ext
5203CC=$ac_save_CC
5204
5205fi
5206# AC_CACHE_VAL
5207case "x$ac_cv_prog_cc_c89" in
5208 x)
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5210$as_echo "none needed" >&6; } ;;
5211 xno)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5213$as_echo "unsupported" >&6; } ;;
5214 *)
5215 CC="$CC $ac_cv_prog_cc_c89"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5217$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5218esac
5219if test "x$ac_cv_prog_cc_c89" != xno; then :
5220
5221fi
5222
5223ac_ext=c
5224ac_cpp='$CPP $CPPFLAGS'
5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228
5229ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5235$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5236if ${am_cv_prog_cc_c_o+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241
5242int main (void)
5243{
5244
5245 ;
5246 return 0;
5247}
5248_ACEOF
5249 # Make sure it works both with $CC and with simple cc.
5250 # Following AC_PROG_CC_C_O, we do the test twice because some
5251 # compilers refuse to overwrite an existing .o file with -o,
5252 # though they will create one.
5253 am_cv_prog_cc_c_o=yes
5254 for am_i in 1 2; do
5255 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5256 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } \
5260 && test -f conftest2.$ac_objext; then
5261 : OK
5262 else
5263 am_cv_prog_cc_c_o=no
5264 break
5265 fi
5266 done
5267 rm -f core conftest*
5268 unset am_i
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5271$as_echo "$am_cv_prog_cc_c_o" >&6; }
5272if test "$am_cv_prog_cc_c_o" != yes; then
5273 # Losing compiler, so override with the script.
5274 # FIXME: It is wrong to rewrite CC.
5275 # But if we don't then we get into trouble of one sort or another.
5276 # A longer-term fix would be to have automake use am__CC in this case,
5277 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5278 CC="$am_aux_dir/compile $CC"
5279fi
5280ac_ext=c
5281ac_cpp='$CPP $CPPFLAGS'
5282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285
5286
5287
5288ac_ext=c
5289ac_cpp='$CPP $CPPFLAGS'
5290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5294$as_echo_n "checking how to run the C preprocessor... " >&6; }
5295# On Suns, sometimes $CPP names a directory.
5296if test -n "$CPP" && test -d "$CPP"; then
5297 CPP=
5298fi
5299if test -z "$CPP"; then
5300 if ${ac_cv_prog_CPP+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302else
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5305 do
5306 ac_preproc_ok=false
5307for ac_c_preproc_warn_flag in '' yes
5308do
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#ifdef __STDC__
5318# include <limits.h>
5319#else
5320# include <assert.h>
5321#endif
5322 Syntax error
5323_ACEOF
5324if ac_fn_c_try_cpp "$LINENO"; then :
5325
5326else
5327 # Broken: fails on valid input.
5328continue
5329fi
5330rm -f conftest.err conftest.i conftest.$ac_ext
5331
5332 # OK, works on sane cases. Now check whether nonexistent headers
5333 # can be detected and how.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336#include <ac_nonexistent.h>
5337_ACEOF
5338if ac_fn_c_try_cpp "$LINENO"; then :
5339 # Broken: success on invalid input.
5340continue
5341else
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346rm -f conftest.err conftest.i conftest.$ac_ext
5347
5348done
5349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350rm -f conftest.i conftest.err conftest.$ac_ext
5351if $ac_preproc_ok; then :
5352 break
5353fi
5354
5355 done
5356 ac_cv_prog_CPP=$CPP
5357
5358fi
5359 CPP=$ac_cv_prog_CPP
5360else
5361 ac_cv_prog_CPP=$CPP
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5364$as_echo "$CPP" >&6; }
5365ac_preproc_ok=false
5366for ac_c_preproc_warn_flag in '' yes
5367do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h. */
5376#ifdef __STDC__
5377# include <limits.h>
5378#else
5379# include <assert.h>
5380#endif
5381 Syntax error
5382_ACEOF
5383if ac_fn_c_try_cpp "$LINENO"; then :
5384
5385else
5386 # Broken: fails on valid input.
5387continue
5388fi
5389rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <ac_nonexistent.h>
5396_ACEOF
5397if ac_fn_c_try_cpp "$LINENO"; then :
5398 # Broken: success on invalid input.
5399continue
5400else
5401 # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405rm -f conftest.err conftest.i conftest.$ac_ext
5406
5407done
5408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409rm -f conftest.i conftest.err conftest.$ac_ext
5410if $ac_preproc_ok; then :
5411
5412else
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5416See \`config.log' for more details" "$LINENO" 5; }
5417fi
5418
5419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426 IFS=$xc_prog_cc_prev_IFS
5427 LIBS=$xc_prog_cc_prev_LIBS
5428 CFLAGS=$xc_prog_cc_prev_CFLAGS
5429 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5430 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5431
5432
5433
5434
5435
5436am__api_version='1.15'
5437
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5439$as_echo_n "checking whether build environment is sane... " >&6; }
5440# Reject unsafe characters in $srcdir or the absolute working directory
5441# name. Accept space and tab only in the latter.
5442am_lf='
5443'
5444case `pwd` in
5445 *[\\\"\#\$\&\'\`$am_lf]*)
5446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5447esac
5448case $srcdir in
5449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5450 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5451esac
5452
5453# Do 'set' in a subshell so we don't clobber the current shell's
5454# arguments. Must try -L first in case configure is actually a
5455# symlink; some systems play weird games with the mod time of symlinks
5456# (eg FreeBSD returns the mod time of the symlink's containing
5457# directory).
5458if (
5459 am_has_slept=no
5460 for am_try in 1 2; do
5461 echo "timestamp, slept: $am_has_slept" > conftest.file
5462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5463 if test "$*" = "X"; then
5464 # -L didn't work.
5465 set X `ls -t "$srcdir/configure" conftest.file`
5466 fi
5467 if test "$*" != "X $srcdir/configure conftest.file" \
5468 && test "$*" != "X conftest.file $srcdir/configure"; then
5469
5470 # If neither matched, then we have a broken ls. This can happen
5471 # if, for instance, CONFIG_SHELL is bash and it inherits a
5472 # broken ls alias from the environment. This has actually
5473 # happened. Such a system could not be considered "sane".
5474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5475 alias in your environment" "$LINENO" 5
5476 fi
5477 if test "$2" = conftest.file || test $am_try -eq 2; then
5478 break
5479 fi
5480 # Just in case.
5481 sleep 1
5482 am_has_slept=yes
5483 done
5484 test "$2" = conftest.file
5485 )
5486then
5487 # Ok.
5488 :
5489else
5490 as_fn_error $? "newly created file is older than distributed files!
5491Check your system clock" "$LINENO" 5
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494$as_echo "yes" >&6; }
5495# If we didn't sleep, we still need to ensure time stamps of config.status and
5496# generated files are strictly newer.
5497am_sleep_pid=
5498if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5499 ( sleep 1 ) &
5500 am_sleep_pid=$!
5501fi
5502
5503rm -f conftest.file
5504
5505test "$program_prefix" != NONE &&
5506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5507# Use a double $ so make ignores it.
5508test "$program_suffix" != NONE &&
5509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5510# Double any \ or $.
5511# By default was `s,x,x', remove it if useless.
5512ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5513program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5514
5515if test x"${MISSING+set}" != xset; then
5516 case $am_aux_dir in
5517 *\ * | *\ *)
5518 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5519 *)
5520 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5521 esac
5522fi
5523# Use eval to expand $SHELL
5524if eval "$MISSING --is-lightweight"; then
5525 am_missing_run="$MISSING "
5526else
5527 am_missing_run=
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5529$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5530fi
5531
5532if test x"${install_sh+set}" != xset; then
5533 case $am_aux_dir in
5534 *\ * | *\ *)
5535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5536 *)
5537 install_sh="\${SHELL} $am_aux_dir/install-sh"
5538 esac
5539fi
5540
5541# Installed binaries are usually stripped using 'strip' when the user
5542# run "make install-strip". However 'strip' might not be the right
5543# tool to use in cross-compilation environments, therefore Automake
5544# will honor the 'STRIP' environment variable to overrule this program.
5545if test "$cross_compiling" != no; then
5546 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5548set dummy ${ac_tool_prefix}strip; ac_word=$2
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550$as_echo_n "checking for $ac_word... " >&6; }
5551if ${ac_cv_prog_STRIP+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 if test -n "$STRIP"; then
5555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5556else
5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568done
5569 done
5570IFS=$as_save_IFS
5571
5572fi
5573fi
5574STRIP=$ac_cv_prog_STRIP
5575if test -n "$STRIP"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5577$as_echo "$STRIP" >&6; }
5578else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }
5581fi
5582
5583
5584fi
5585if test -z "$ac_cv_prog_STRIP"; then
5586 ac_ct_STRIP=$STRIP
5587 # Extract the first word of "strip", so it can be a program name with args.
5588set dummy strip; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
5591if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 if test -n "$ac_ct_STRIP"; then
5595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604 ac_cv_prog_ac_ct_STRIP="strip"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609 done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5615if test -n "$ac_ct_STRIP"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5617$as_echo "$ac_ct_STRIP" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623 if test "x$ac_ct_STRIP" = x; then
5624 STRIP=":"
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627yes:)
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630ac_tool_warned=yes ;;
5631esac
5632 STRIP=$ac_ct_STRIP
5633 fi
5634else
5635 STRIP="$ac_cv_prog_STRIP"
5636fi
5637
5638fi
5639INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5642$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5643if test -z "$MKDIR_P"; then
5644 if ${ac_cv_path_mkdir+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_prog in mkdir gmkdir; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5655 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5656 'mkdir (GNU coreutils) '* | \
5657 'mkdir (coreutils) '* | \
5658 'mkdir (fileutils) '4.1*)
5659 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5660 break 3;;
5661 esac
5662 done
5663 done
5664 done
5665IFS=$as_save_IFS
5666
5667fi
5668
5669 test -d ./--version && rmdir ./--version
5670 if test "${ac_cv_path_mkdir+set}" = set; then
5671 MKDIR_P="$ac_cv_path_mkdir -p"
5672 else
5673 # As a last resort, use the slow shell script. Don't cache a
5674 # value for MKDIR_P within a source directory, because that will
5675 # break other packages using the cache if that directory is
5676 # removed, or if the value is a relative name.
5677 MKDIR_P="$ac_install_sh -d"
5678 fi
5679fi
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5681$as_echo "$MKDIR_P" >&6; }
5682
5683for ac_prog in gawk mawk nawk awk
5684do
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_AWK+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 if test -n "$AWK"; then
5693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_AWK="$ac_prog"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707 done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712AWK=$ac_cv_prog_AWK
5713if test -n "$AWK"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5715$as_echo "$AWK" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722 test -n "$AWK" && break
5723done
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5726$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5727set x ${MAKE-make}
5728ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5729if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731else
5732 cat >conftest.make <<\_ACEOF
5733SHELL = /bin/sh
5734all:
5735 @echo '@@@%%%=$(MAKE)=@@@%%%'
5736_ACEOF
5737# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5738case `${MAKE-make} -f conftest.make 2>/dev/null` in
5739 *@@@%%%=?*=@@@%%%*)
5740 eval ac_cv_prog_make_${ac_make}_set=yes;;
5741 *)
5742 eval ac_cv_prog_make_${ac_make}_set=no;;
5743esac
5744rm -f conftest.make
5745fi
5746if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748$as_echo "yes" >&6; }
5749 SET_MAKE=
5750else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753 SET_MAKE="MAKE=${MAKE-make}"
5754fi
5755
5756rm -rf .tst 2>/dev/null
5757mkdir .tst 2>/dev/null
5758if test -d .tst; then
5759 am__leading_dot=.
5760else
5761 am__leading_dot=_
5762fi
5763rmdir .tst 2>/dev/null
5764
5765DEPDIR="${am__leading_dot}deps"
5766
5767ac_config_commands="$ac_config_commands depfiles"
5768
5769
5770am_make=${MAKE-make}
5771cat > confinc << 'END'
5772am__doit:
5773 @echo this is the am__doit target
5774.PHONY: am__doit
5775END
5776# If we don't find an include directive, just comment out the code.
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5778$as_echo_n "checking for style of include used by $am_make... " >&6; }
5779am__include="#"
5780am__quote=
5781_am_result=none
5782# First try GNU make style include.
5783echo "include confinc" > confmf
5784# Ignore all kinds of additional output from 'make'.
5785case `$am_make -s -f confmf 2> /dev/null` in #(
5786*the\ am__doit\ target*)
5787 am__include=include
5788 am__quote=
5789 _am_result=GNU
5790 ;;
5791esac
5792# Now try BSD make style include.
5793if test "$am__include" = "#"; then
5794 echo '.include "confinc"' > confmf
5795 case `$am_make -s -f confmf 2> /dev/null` in #(
5796 *the\ am__doit\ target*)
5797 am__include=.include
5798 am__quote="\""
5799 _am_result=BSD
5800 ;;
5801 esac
5802fi
5803
5804
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5806$as_echo "$_am_result" >&6; }
5807rm -f confinc confmf
5808
5809# Check whether --enable-dependency-tracking was given.
5810if test "${enable_dependency_tracking+set}" = set; then :
5811 enableval=$enable_dependency_tracking;
5812fi
5813
5814if test "x$enable_dependency_tracking" != xno; then
5815 am_depcomp="$ac_aux_dir/depcomp"
5816 AMDEPBACKSLASH='\'
5817 am__nodep='_no'
5818fi
5819 if test "x$enable_dependency_tracking" != xno; then
5820 AMDEP_TRUE=
5821 AMDEP_FALSE='#'
5822else
5823 AMDEP_TRUE='#'
5824 AMDEP_FALSE=
5825fi
5826
5827
5828## --------------------------------------- ##
5829## Start of automake initialization code ##
5830## --------------------------------------- ##
5831
5832if test "`cd $srcdir && pwd`" != "`pwd`"; then
5833 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5834 # is not polluted with repeated "-I."
5835 am__isrc=' -I$(srcdir)'
5836 # test to see if srcdir already configured
5837 if test -f $srcdir/config.status; then
5838 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5839 fi
5840fi
5841
5842# test whether we have cygpath
5843if test -z "$CYGPATH_W"; then
5844 if (cygpath --version) >/dev/null 2>/dev/null; then
5845 CYGPATH_W='cygpath -w'
5846 else
5847 CYGPATH_W=echo
5848 fi
5849fi
5850
5851
5852# Define the identity of the package.
5853 PACKAGE='curl'
5854 VERSION='-'
5855
5856
5857cat >>confdefs.h <<_ACEOF
5858#define PACKAGE "$PACKAGE"
5859_ACEOF
5860
5861
5862cat >>confdefs.h <<_ACEOF
5863#define VERSION "$VERSION"
5864_ACEOF
5865
5866# Some tools Automake needs.
5867
5868ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5869
5870
5871AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5872
5873
5874AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5875
5876
5877AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5878
5879
5880MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5881
5882# For better backward compatibility. To be removed once Automake 1.9.x
5883# dies out for good. For more background, see:
5884# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5885# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5886mkdir_p='$(MKDIR_P)'
5887
5888# We need awk for the "check" target (and possibly the TAP driver). The
5889# system "awk" is bad on some platforms.
5890# Always define AMTAR for backward compatibility. Yes, it's still used
5891# in the wild :-( We should find a proper way to deprecate it ...
5892AMTAR='$${TAR-tar}'
5893
5894
5895# We'll loop over all known methods to create a tar archive until one works.
5896_am_tools='gnutar pax cpio none'
5897
5898am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5899
5900
5901
5902
5903
5904depcc="$CC" am_compiler_list=
5905
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5907$as_echo_n "checking dependency style of $depcc... " >&6; }
5908if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910else
5911 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5912 # We make a subdir and do the tests there. Otherwise we can end up
5913 # making bogus files that we don't know about and never remove. For
5914 # instance it was reported that on HP-UX the gcc test will end up
5915 # making a dummy file named 'D' -- because '-MD' means "put the output
5916 # in D".
5917 rm -rf conftest.dir
5918 mkdir conftest.dir
5919 # Copy depcomp to subdir because otherwise we won't find it if we're
5920 # using a relative directory.
5921 cp "$am_depcomp" conftest.dir
5922 cd conftest.dir
5923 # We will build objects and dependencies in a subdirectory because
5924 # it helps to detect inapplicable dependency modes. For instance
5925 # both Tru64's cc and ICC support -MD to output dependencies as a
5926 # side effect of compilation, but ICC will put the dependencies in
5927 # the current directory while Tru64 will put them in the object
5928 # directory.
5929 mkdir sub
5930
5931 am_cv_CC_dependencies_compiler_type=none
5932 if test "$am_compiler_list" = ""; then
5933 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5934 fi
5935 am__universal=false
5936 case " $depcc " in #(
5937 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5938 esac
5939
5940 for depmode in $am_compiler_list; do
5941 # Setup a source with many dependencies, because some compilers
5942 # like to wrap large dependency lists on column 80 (with \), and
5943 # we should not choose a depcomp mode which is confused by this.
5944 #
5945 # We need to recreate these files for each test, as the compiler may
5946 # overwrite some of them when testing with obscure command lines.
5947 # This happens at least with the AIX C compiler.
5948 : > sub/conftest.c
5949 for i in 1 2 3 4 5 6; do
5950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5951 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5952 # Solaris 10 /bin/sh.
5953 echo '/* dummy */' > sub/conftst$i.h
5954 done
5955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5956
5957 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5958 # mode. It turns out that the SunPro C++ compiler does not properly
5959 # handle '-M -o', and we need to detect this. Also, some Intel
5960 # versions had trouble with output in subdirs.
5961 am__obj=sub/conftest.${OBJEXT-o}
5962 am__minus_obj="-o $am__obj"
5963 case $depmode in
5964 gcc)
5965 # This depmode causes a compiler race in universal mode.
5966 test "$am__universal" = false || continue
5967 ;;
5968 nosideeffect)
5969 # After this tag, mechanisms are not by side-effect, so they'll
5970 # only be used when explicitly requested.
5971 if test "x$enable_dependency_tracking" = xyes; then
5972 continue
5973 else
5974 break
5975 fi
5976 ;;
5977 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5978 # This compiler won't grok '-c -o', but also, the minuso test has
5979 # not run yet. These depmodes are late enough in the game, and
5980 # so weak that their functioning should not be impacted.
5981 am__obj=conftest.${OBJEXT-o}
5982 am__minus_obj=
5983 ;;
5984 none) break ;;
5985 esac
5986 if depmode=$depmode \
5987 source=sub/conftest.c object=$am__obj \
5988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5989 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5990 >/dev/null 2>conftest.err &&
5991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5993 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5995 # icc doesn't choke on unknown options, it will just issue warnings
5996 # or remarks (even with -Werror). So we grep stderr for any message
5997 # that says an option was ignored or not supported.
5998 # When given -MP, icc 7.0 and 7.1 complain thusly:
5999 # icc: Command line warning: ignoring option '-M'; no argument required
6000 # The diagnosis changed in icc 8.0:
6001 # icc: Command line remark: option '-MP' not supported
6002 if (grep 'ignoring option' conftest.err ||
6003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6004 am_cv_CC_dependencies_compiler_type=$depmode
6005 break
6006 fi
6007 fi
6008 done
6009
6010 cd ..
6011 rm -rf conftest.dir
6012else
6013 am_cv_CC_dependencies_compiler_type=none
6014fi
6015
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6018$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6019CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6020
6021 if
6022 test "x$enable_dependency_tracking" != xno \
6023 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6024 am__fastdepCC_TRUE=
6025 am__fastdepCC_FALSE='#'
6026else
6027 am__fastdepCC_TRUE='#'
6028 am__fastdepCC_FALSE=
6029fi
6030
6031
6032
6033# POSIX will say in a future version that running "rm -f" with no argument
6034# is OK; and we want to be able to make that assumption in our Makefile
6035# recipes. So use an aggressive probe to check that the usage we want is
6036# actually supported "in the wild" to an acceptable degree.
6037# See automake bug#10828.
6038# To make any issue more visible, cause the running configure to be aborted
6039# by default if the 'rm' program in use doesn't match our expectations; the
6040# user can still override this though.
6041if rm -f && rm -fr && rm -rf; then : OK; else
6042 cat >&2 <<'END'
6043Oops!
6044
6045Your 'rm' program seems unable to run without file operands specified
6046on the command line, even when the '-f' option is present. This is contrary
6047to the behaviour of most rm programs out there, and not conforming with
6048the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6049
6050Please tell bug-automake@gnu.org about your system, including the value
6051of your $PATH and any error possibly output before this message. This
6052can help us improve future automake versions.
6053
6054END
6055 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6056 echo 'Configuration will proceed anyway, since you have set the' >&2
6057 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6058 echo >&2
6059 else
6060 cat >&2 <<'END'
6061Aborting the configuration process, to ensure you take notice of the issue.
6062
6063You can download and install GNU coreutils to get an 'rm' implementation
6064that behaves properly: <http://www.gnu.org/software/coreutils/>.
6065
6066If you want to complete the configuration process using your problematic
6067'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6068to "yes", and re-run configure.
6069
6070END
6071 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6072 fi
6073fi
6074
6075## ------------------------------------- ##
6076## End of automake initialization code ##
6077## ------------------------------------- ##
6078
6079
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6081$as_echo_n "checking curl version... " >&6; }
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6083$as_echo "$CURLVERSION" >&6; }
6084
6085
6086
6087VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6088
6089
6090PKGADD_PKG="HAXXcurl"
6091PKGADD_NAME="curl - a client that groks URLs"
6092PKGADD_VENDOR="curl.haxx.se"
6093
6094
6095
6096
6097 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6098 curl_ssh_msg="no (--with-libssh2)"
6099 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006100 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006101 curl_gss_msg="no (--with-gssapi)"
6102curl_tls_srp_msg="no (--enable-tls-srp)"
6103 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6104 curl_ipv6_msg="no (--enable-ipv6)"
6105curl_unix_sockets_msg="no (--enable-unix-sockets)"
6106 curl_idn_msg="no (--with-{libidn2,winidn})"
6107 curl_manual_msg="no (--enable-manual)"
6108curl_libcurl_msg="enabled (--disable-libcurl-option)"
6109curl_verbose_msg="enabled (--disable-verbose)"
6110 curl_sspi_msg="no (--enable-sspi)"
6111 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6112 curl_ldaps_msg="no (--enable-ldaps)"
6113 curl_rtsp_msg="no (--enable-rtsp)"
6114 curl_rtmp_msg="no (--with-librtmp)"
6115 curl_mtlnk_msg="no (--with-libmetalink)"
6116 curl_psl_msg="no (--with-libpsl)"
6117
Alex Deymo486467e2017-12-19 19:04:07 +01006118 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006119
6120INITIAL_LDFLAGS=$LDFLAGS
6121INITIAL_LIBS=$LIBS
6122
6123
6124# Make sure we can run config.sub.
6125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6126 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6127
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6129$as_echo_n "checking build system type... " >&6; }
6130if ${ac_cv_build+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 ac_build_alias=$build_alias
6134test "x$ac_build_alias" = x &&
6135 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6136test "x$ac_build_alias" = x &&
6137 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6140
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6143$as_echo "$ac_cv_build" >&6; }
6144case $ac_cv_build in
6145*-*-*) ;;
6146*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6147esac
6148build=$ac_cv_build
6149ac_save_IFS=$IFS; IFS='-'
6150set x $ac_cv_build
6151shift
6152build_cpu=$1
6153build_vendor=$2
6154shift; shift
6155# Remember, the first character of IFS is used to create $*,
6156# except with old shells:
6157build_os=$*
6158IFS=$ac_save_IFS
6159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6160
6161
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6163$as_echo_n "checking host system type... " >&6; }
6164if ${ac_cv_host+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166else
6167 if test "x$host_alias" = x; then
6168 ac_cv_host=$ac_cv_build
6169else
6170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6172fi
6173
6174fi
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6176$as_echo "$ac_cv_host" >&6; }
6177case $ac_cv_host in
6178*-*-*) ;;
6179*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6180esac
6181host=$ac_cv_host
6182ac_save_IFS=$IFS; IFS='-'
6183set x $ac_cv_host
6184shift
6185host_cpu=$1
6186host_vendor=$2
6187shift; shift
6188# Remember, the first character of IFS is used to create $*,
6189# except with old shells:
6190host_os=$*
6191IFS=$ac_save_IFS
6192case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6193
6194
6195
6196cat >>confdefs.h <<_ACEOF
6197#define OS "${host}"
6198_ACEOF
6199
6200
6201
6202
6203
Elliott Hughes82be86d2017-09-20 17:00:17 -07006204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6206if ${ac_cv_path_GREP+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208else
6209 if test -z "$GREP"; then
6210 ac_path_GREP_found=false
6211 # Loop through the user's path and test for each of PROGNAME-LIST
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_prog in grep ggrep; do
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6220 as_fn_executable_p "$ac_path_GREP" || continue
6221# Check for GNU ac_path_GREP and select it if it is found.
6222 # Check for GNU $ac_path_GREP
6223case `"$ac_path_GREP" --version 2>&1` in
6224*GNU*)
6225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6226*)
6227 ac_count=0
6228 $as_echo_n 0123456789 >"conftest.in"
6229 while :
6230 do
6231 cat "conftest.in" "conftest.in" >"conftest.tmp"
6232 mv "conftest.tmp" "conftest.in"
6233 cp "conftest.in" "conftest.nl"
6234 $as_echo 'GREP' >> "conftest.nl"
6235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6237 as_fn_arith $ac_count + 1 && ac_count=$as_val
6238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6239 # Best one so far, save it but keep looking for a better one
6240 ac_cv_path_GREP="$ac_path_GREP"
6241 ac_path_GREP_max=$ac_count
6242 fi
6243 # 10*(2^10) chars as input seems more than enough
6244 test $ac_count -gt 10 && break
6245 done
6246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6247esac
6248
6249 $ac_path_GREP_found && break 3
6250 done
6251 done
6252 done
6253IFS=$as_save_IFS
6254 if test -z "$ac_cv_path_GREP"; then
6255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6256 fi
6257else
6258 ac_cv_path_GREP=$GREP
6259fi
6260
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6263$as_echo "$ac_cv_path_GREP" >&6; }
6264 GREP="$ac_cv_path_GREP"
6265
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6268$as_echo_n "checking for egrep... " >&6; }
6269if ${ac_cv_path_EGREP+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271else
6272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6273 then ac_cv_path_EGREP="$GREP -E"
6274 else
6275 if test -z "$EGREP"; then
6276 ac_path_EGREP_found=false
6277 # Loop through the user's path and test for each of PROGNAME-LIST
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_prog in egrep; do
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6286 as_fn_executable_p "$ac_path_EGREP" || continue
6287# Check for GNU ac_path_EGREP and select it if it is found.
6288 # Check for GNU $ac_path_EGREP
6289case `"$ac_path_EGREP" --version 2>&1` in
6290*GNU*)
6291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6292*)
6293 ac_count=0
6294 $as_echo_n 0123456789 >"conftest.in"
6295 while :
6296 do
6297 cat "conftest.in" "conftest.in" >"conftest.tmp"
6298 mv "conftest.tmp" "conftest.in"
6299 cp "conftest.in" "conftest.nl"
6300 $as_echo 'EGREP' >> "conftest.nl"
6301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6303 as_fn_arith $ac_count + 1 && ac_count=$as_val
6304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6305 # Best one so far, save it but keep looking for a better one
6306 ac_cv_path_EGREP="$ac_path_EGREP"
6307 ac_path_EGREP_max=$ac_count
6308 fi
6309 # 10*(2^10) chars as input seems more than enough
6310 test $ac_count -gt 10 && break
6311 done
6312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6313esac
6314
6315 $ac_path_EGREP_found && break 3
6316 done
6317 done
6318 done
6319IFS=$as_save_IFS
6320 if test -z "$ac_cv_path_EGREP"; then
6321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6322 fi
6323else
6324 ac_cv_path_EGREP=$EGREP
6325fi
6326
6327 fi
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6330$as_echo "$ac_cv_path_EGREP" >&6; }
6331 EGREP="$ac_cv_path_EGREP"
6332
6333
Elliott Hughes82be86d2017-09-20 17:00:17 -07006334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6337$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341#ifdef _AIX
6342 yes_this_is_aix
6343#endif
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6350$as_echo "yes" >&6; }
6351 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6352
6353
6354else
6355
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358
6359fi
6360rm -f conftest*
6361
6362
6363
6364
6365 #
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6367$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370
6371
6372
6373int main (void)
6374{
6375
6376#ifdef _THREAD_SAFE
6377 int dummy=1;
6378#else
6379 force compilation error
6380#endif
6381
6382 ;
6383 return 0;
6384}
6385
6386_ACEOF
6387if ac_fn_c_try_compile "$LINENO"; then :
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6390$as_echo "yes" >&6; }
6391 tmp_thread_safe_initially_defined="yes"
6392
6393else
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397 tmp_thread_safe_initially_defined="no"
6398
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 #
6402 if test "$tmp_thread_safe_initially_defined" = "no"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6404$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6405
6406 case $host_os in
6407 aix[123].* | aix4.[012].*)
6408 tmp_need_thread_safe="no"
6409 ;;
6410 aix*)
6411 tmp_need_thread_safe="yes"
6412 ;;
6413 *)
6414 tmp_need_thread_safe="no"
6415 ;;
6416 esac
6417
6418 if test "$tmp_need_thread_safe" = "yes"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420$as_echo "yes" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424 fi
6425 fi
6426 #
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6428$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6429 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6430 test "$tmp_need_thread_safe" = "yes"; then
6431
6432
6433$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6434
6435cat >>confdefs.h <<_EOF
6436#ifndef _THREAD_SAFE
6437# define _THREAD_SAFE
6438#endif
6439_EOF
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6442$as_echo "yes" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446 fi
6447 #
6448
6449
6450 #
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6452$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455
6456
6457
6458int main (void)
6459{
6460
6461#ifdef _REENTRANT
6462 int dummy=1;
6463#else
6464 force compilation error
6465#endif
6466
6467 ;
6468 return 0;
6469}
6470
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"; then :
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475$as_echo "yes" >&6; }
6476 tmp_reentrant_initially_defined="yes"
6477
6478else
6479
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
6482 tmp_reentrant_initially_defined="no"
6483
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 #
6487 if test "$tmp_reentrant_initially_defined" = "no"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6489$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6490
6491 case $host_os in
6492 solaris*)
6493 tmp_need_reentrant="yes"
6494 ;;
6495 *)
6496 tmp_need_reentrant="no"
6497 ;;
6498 esac
6499
6500 if test "$tmp_need_reentrant" = "no"; then
6501
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h. */
6504
6505
6506#include <errno.h>
6507
6508int main (void)
6509{
6510
6511 if(0 != errno)
6512 return 1;
6513
6514 ;
6515 return 0;
6516}
6517
6518_ACEOF
6519if ac_fn_c_try_compile "$LINENO"; then :
6520
6521 tmp_errno="yes"
6522
6523else
6524
6525 tmp_errno="no"
6526
6527fi
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 if test "$tmp_errno" = "yes"; then
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h. */
6532
6533
6534#include <errno.h>
6535
6536int main (void)
6537{
6538
6539#ifdef errno
6540 int dummy=1;
6541#else
6542 force compilation error
6543#endif
6544
6545 ;
6546 return 0;
6547}
6548
6549_ACEOF
6550if ac_fn_c_try_compile "$LINENO"; then :
6551
6552 tmp_errno="errno_macro_defined"
6553
6554else
6555
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h. */
6558
6559
6560#define _REENTRANT
6561#include <errno.h>
6562
6563int main (void)
6564{
6565
6566#ifdef errno
6567 int dummy=1;
6568#else
6569 force compilation error
6570#endif
6571
6572 ;
6573 return 0;
6574}
6575
6576_ACEOF
6577if ac_fn_c_try_compile "$LINENO"; then :
6578
6579 tmp_errno="errno_macro_needs_reentrant"
6580 tmp_need_reentrant="yes"
6581
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 fi
6588
6589 fi
6590 if test "$tmp_need_reentrant" = "no"; then
6591
6592 if test "$tmp_need_reentrant" = "no"; then
6593
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h. */
6596
6597
6598#define gmtime_r innocuous_gmtime_r
6599#ifdef __STDC__
6600# include <limits.h>
6601#else
6602# include <assert.h>
6603#endif
6604#undef gmtime_r
6605#ifdef __cplusplus
6606extern "C"
6607#endif
6608char gmtime_r ();
6609#if defined __stub_gmtime_r || defined __stub___gmtime_r
6610choke me
6611#endif
6612
6613int main (void)
6614{
6615return gmtime_r ();
6616 ;
6617 return 0;
6618}
6619
6620_ACEOF
6621if ac_fn_c_try_link "$LINENO"; then :
6622
6623 tmp_gmtime_r="yes"
6624
6625else
6626
6627 tmp_gmtime_r="no"
6628
6629fi
6630rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 if test "$tmp_gmtime_r" = "yes"; then
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h. */
6635
6636#include <sys/types.h>
6637#include <time.h>
6638
6639_ACEOF
6640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6642
6643 tmp_gmtime_r="proto_declared"
6644
6645else
6646
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h. */
6649
6650#define _REENTRANT
6651#include <sys/types.h>
6652#include <time.h>
6653
6654_ACEOF
6655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6656 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6657
6658 tmp_gmtime_r="proto_needs_reentrant"
6659 tmp_need_reentrant="yes"
6660
6661fi
6662rm -f conftest*
6663
6664
6665fi
6666rm -f conftest*
6667
6668 fi
6669
6670 fi
6671 if test "$tmp_need_reentrant" = "no"; then
6672
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676
6677#define localtime_r innocuous_localtime_r
6678#ifdef __STDC__
6679# include <limits.h>
6680#else
6681# include <assert.h>
6682#endif
6683#undef localtime_r
6684#ifdef __cplusplus
6685extern "C"
6686#endif
6687char localtime_r ();
6688#if defined __stub_localtime_r || defined __stub___localtime_r
6689choke me
6690#endif
6691
6692int main (void)
6693{
6694return localtime_r ();
6695 ;
6696 return 0;
6697}
6698
6699_ACEOF
6700if ac_fn_c_try_link "$LINENO"; then :
6701
6702 tmp_localtime_r="yes"
6703
6704else
6705
6706 tmp_localtime_r="no"
6707
6708fi
6709rm -f core conftest.err conftest.$ac_objext \
6710 conftest$ac_exeext conftest.$ac_ext
6711 if test "$tmp_localtime_r" = "yes"; then
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713/* end confdefs.h. */
6714
6715#include <sys/types.h>
6716#include <time.h>
6717
6718_ACEOF
6719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "localtime_r" >/dev/null 2>&1; then :
6721
6722 tmp_localtime_r="proto_declared"
6723
6724else
6725
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h. */
6728
6729#define _REENTRANT
6730#include <sys/types.h>
6731#include <time.h>
6732
6733_ACEOF
6734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6735 $EGREP "localtime_r" >/dev/null 2>&1; then :
6736
6737 tmp_localtime_r="proto_needs_reentrant"
6738 tmp_need_reentrant="yes"
6739
6740fi
6741rm -f conftest*
6742
6743
6744fi
6745rm -f conftest*
6746
6747 fi
6748
6749 fi
6750 if test "$tmp_need_reentrant" = "no"; then
6751
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h. */
6754
6755
6756#define strerror_r innocuous_strerror_r
6757#ifdef __STDC__
6758# include <limits.h>
6759#else
6760# include <assert.h>
6761#endif
6762#undef strerror_r
6763#ifdef __cplusplus
6764extern "C"
6765#endif
6766char strerror_r ();
6767#if defined __stub_strerror_r || defined __stub___strerror_r
6768choke me
6769#endif
6770
6771int main (void)
6772{
6773return strerror_r ();
6774 ;
6775 return 0;
6776}
6777
6778_ACEOF
6779if ac_fn_c_try_link "$LINENO"; then :
6780
6781 tmp_strerror_r="yes"
6782
6783else
6784
6785 tmp_strerror_r="no"
6786
6787fi
6788rm -f core conftest.err conftest.$ac_objext \
6789 conftest$ac_exeext conftest.$ac_ext
6790 if test "$tmp_strerror_r" = "yes"; then
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h. */
6793
6794#include <sys/types.h>
6795#include <string.h>
6796
6797_ACEOF
6798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "strerror_r" >/dev/null 2>&1; then :
6800
6801 tmp_strerror_r="proto_declared"
6802
6803else
6804
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h. */
6807
6808#define _REENTRANT
6809#include <sys/types.h>
6810#include <string.h>
6811
6812_ACEOF
6813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6814 $EGREP "strerror_r" >/dev/null 2>&1; then :
6815
6816 tmp_strerror_r="proto_needs_reentrant"
6817 tmp_need_reentrant="yes"
6818
6819fi
6820rm -f conftest*
6821
6822
6823fi
6824rm -f conftest*
6825
6826 fi
6827
6828 fi
6829 if test "$tmp_need_reentrant" = "no"; then
6830
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h. */
6833
6834
6835#define strtok_r innocuous_strtok_r
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841#undef strtok_r
6842#ifdef __cplusplus
6843extern "C"
6844#endif
6845char strtok_r ();
6846#if defined __stub_strtok_r || defined __stub___strtok_r
6847choke me
6848#endif
6849
6850int main (void)
6851{
6852return strtok_r ();
6853 ;
6854 return 0;
6855}
6856
6857_ACEOF
6858if ac_fn_c_try_link "$LINENO"; then :
6859
6860 tmp_strtok_r="yes"
6861
6862else
6863
6864 tmp_strtok_r="no"
6865
6866fi
6867rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6869 if test "$tmp_strtok_r" = "yes"; then
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871/* end confdefs.h. */
6872
6873#include <sys/types.h>
6874#include <string.h>
6875
6876_ACEOF
6877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6878 $EGREP "strtok_r" >/dev/null 2>&1; then :
6879
6880 tmp_strtok_r="proto_declared"
6881
6882else
6883
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h. */
6886
6887#define _REENTRANT
6888#include <sys/types.h>
6889#include <string.h>
6890
6891_ACEOF
6892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 $EGREP "strtok_r" >/dev/null 2>&1; then :
6894
6895 tmp_strtok_r="proto_needs_reentrant"
6896 tmp_need_reentrant="yes"
6897
6898fi
6899rm -f conftest*
6900
6901
6902fi
6903rm -f conftest*
6904
6905 fi
6906
6907 fi
6908 if test "$tmp_need_reentrant" = "no"; then
6909
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h. */
6912
6913
6914#define inet_ntoa_r innocuous_inet_ntoa_r
6915#ifdef __STDC__
6916# include <limits.h>
6917#else
6918# include <assert.h>
6919#endif
6920#undef inet_ntoa_r
6921#ifdef __cplusplus
6922extern "C"
6923#endif
6924char inet_ntoa_r ();
6925#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6926choke me
6927#endif
6928
6929int main (void)
6930{
6931return inet_ntoa_r ();
6932 ;
6933 return 0;
6934}
6935
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"; then :
6938
6939 tmp_inet_ntoa_r="yes"
6940
6941else
6942
6943 tmp_inet_ntoa_r="no"
6944
6945fi
6946rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 if test "$tmp_inet_ntoa_r" = "yes"; then
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h. */
6951
6952#include <sys/types.h>
6953#include <sys/socket.h>
6954#include <netinet/in.h>
6955#include <arpa/inet.h>
6956
6957_ACEOF
6958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6960
6961 tmp_inet_ntoa_r="proto_declared"
6962
6963else
6964
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h. */
6967
6968#define _REENTRANT
6969#include <sys/types.h>
6970#include <sys/socket.h>
6971#include <netinet/in.h>
6972#include <arpa/inet.h>
6973
6974_ACEOF
6975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6976 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6977
6978 tmp_inet_ntoa_r="proto_needs_reentrant"
6979 tmp_need_reentrant="yes"
6980
6981fi
6982rm -f conftest*
6983
6984
6985fi
6986rm -f conftest*
6987
6988 fi
6989
6990 fi
6991 if test "$tmp_need_reentrant" = "no"; then
6992
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994/* end confdefs.h. */
6995
6996
6997#define gethostbyaddr_r innocuous_gethostbyaddr_r
6998#ifdef __STDC__
6999# include <limits.h>
7000#else
7001# include <assert.h>
7002#endif
7003#undef gethostbyaddr_r
7004#ifdef __cplusplus
7005extern "C"
7006#endif
7007char gethostbyaddr_r ();
7008#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7009choke me
7010#endif
7011
7012int main (void)
7013{
7014return gethostbyaddr_r ();
7015 ;
7016 return 0;
7017}
7018
7019_ACEOF
7020if ac_fn_c_try_link "$LINENO"; then :
7021
7022 tmp_gethostbyaddr_r="yes"
7023
7024else
7025
7026 tmp_gethostbyaddr_r="no"
7027
7028fi
7029rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 if test "$tmp_gethostbyaddr_r" = "yes"; then
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h. */
7034
7035#include <sys/types.h>
7036#include <netdb.h>
7037
7038_ACEOF
7039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7041
7042 tmp_gethostbyaddr_r="proto_declared"
7043
7044else
7045
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047/* end confdefs.h. */
7048
7049#define _REENTRANT
7050#include <sys/types.h>
7051#include <netdb.h>
7052
7053_ACEOF
7054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7056
7057 tmp_gethostbyaddr_r="proto_needs_reentrant"
7058 tmp_need_reentrant="yes"
7059
7060fi
7061rm -f conftest*
7062
7063
7064fi
7065rm -f conftest*
7066
7067 fi
7068
7069 fi
7070 if test "$tmp_need_reentrant" = "no"; then
7071
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h. */
7074
7075
7076#define gethostbyname_r innocuous_gethostbyname_r
7077#ifdef __STDC__
7078# include <limits.h>
7079#else
7080# include <assert.h>
7081#endif
7082#undef gethostbyname_r
7083#ifdef __cplusplus
7084extern "C"
7085#endif
7086char gethostbyname_r ();
7087#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7088choke me
7089#endif
7090
7091int main (void)
7092{
7093return gethostbyname_r ();
7094 ;
7095 return 0;
7096}
7097
7098_ACEOF
7099if ac_fn_c_try_link "$LINENO"; then :
7100
7101 tmp_gethostbyname_r="yes"
7102
7103else
7104
7105 tmp_gethostbyname_r="no"
7106
7107fi
7108rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 if test "$tmp_gethostbyname_r" = "yes"; then
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h. */
7113
7114#include <sys/types.h>
7115#include <netdb.h>
7116
7117_ACEOF
7118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7120
7121 tmp_gethostbyname_r="proto_declared"
7122
7123else
7124
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h. */
7127
7128#define _REENTRANT
7129#include <sys/types.h>
7130#include <netdb.h>
7131
7132_ACEOF
7133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7135
7136 tmp_gethostbyname_r="proto_needs_reentrant"
7137 tmp_need_reentrant="yes"
7138
7139fi
7140rm -f conftest*
7141
7142
7143fi
7144rm -f conftest*
7145
7146 fi
7147
7148 fi
7149 if test "$tmp_need_reentrant" = "no"; then
7150
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h. */
7153
7154
7155#define getprotobyname_r innocuous_getprotobyname_r
7156#ifdef __STDC__
7157# include <limits.h>
7158#else
7159# include <assert.h>
7160#endif
7161#undef getprotobyname_r
7162#ifdef __cplusplus
7163extern "C"
7164#endif
7165char getprotobyname_r ();
7166#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7167choke me
7168#endif
7169
7170int main (void)
7171{
7172return getprotobyname_r ();
7173 ;
7174 return 0;
7175}
7176
7177_ACEOF
7178if ac_fn_c_try_link "$LINENO"; then :
7179
7180 tmp_getprotobyname_r="yes"
7181
7182else
7183
7184 tmp_getprotobyname_r="no"
7185
7186fi
7187rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 if test "$tmp_getprotobyname_r" = "yes"; then
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h. */
7192
7193#include <sys/types.h>
7194#include <netdb.h>
7195
7196_ACEOF
7197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7198 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7199
7200 tmp_getprotobyname_r="proto_declared"
7201
7202else
7203
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h. */
7206
7207#define _REENTRANT
7208#include <sys/types.h>
7209#include <netdb.h>
7210
7211_ACEOF
7212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7214
7215 tmp_getprotobyname_r="proto_needs_reentrant"
7216 tmp_need_reentrant="yes"
7217
7218fi
7219rm -f conftest*
7220
7221
7222fi
7223rm -f conftest*
7224
7225 fi
7226
7227 fi
7228 if test "$tmp_need_reentrant" = "no"; then
7229
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h. */
7232
7233
7234#define getservbyport_r innocuous_getservbyport_r
7235#ifdef __STDC__
7236# include <limits.h>
7237#else
7238# include <assert.h>
7239#endif
7240#undef getservbyport_r
7241#ifdef __cplusplus
7242extern "C"
7243#endif
7244char getservbyport_r ();
7245#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7246choke me
7247#endif
7248
7249int main (void)
7250{
7251return getservbyport_r ();
7252 ;
7253 return 0;
7254}
7255
7256_ACEOF
7257if ac_fn_c_try_link "$LINENO"; then :
7258
7259 tmp_getservbyport_r="yes"
7260
7261else
7262
7263 tmp_getservbyport_r="no"
7264
7265fi
7266rm -f core conftest.err conftest.$ac_objext \
7267 conftest$ac_exeext conftest.$ac_ext
7268 if test "$tmp_getservbyport_r" = "yes"; then
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h. */
7271
7272#include <sys/types.h>
7273#include <netdb.h>
7274
7275_ACEOF
7276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7278
7279 tmp_getservbyport_r="proto_declared"
7280
7281else
7282
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h. */
7285
7286#define _REENTRANT
7287#include <sys/types.h>
7288#include <netdb.h>
7289
7290_ACEOF
7291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7293
7294 tmp_getservbyport_r="proto_needs_reentrant"
7295 tmp_need_reentrant="yes"
7296
7297fi
7298rm -f conftest*
7299
7300
7301fi
7302rm -f conftest*
7303
7304 fi
7305
7306 fi
7307
7308 fi
7309 if test "$tmp_need_reentrant" = "yes"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311$as_echo "yes" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315 fi
7316 fi
7317 #
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7319$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7320 if test "$tmp_reentrant_initially_defined" = "yes" ||
7321 test "$tmp_need_reentrant" = "yes"; then
7322
7323
7324$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7325
7326cat >>confdefs.h <<_EOF
7327#ifndef _REENTRANT
7328# define _REENTRANT
7329#endif
7330_EOF
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7333$as_echo "yes" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336$as_echo "no" >&6; }
7337 fi
7338 #
7339
7340
7341# Check whether --enable-largefile was given.
7342if test "${enable_largefile+set}" = set; then :
7343 enableval=$enable_largefile;
7344fi
7345
7346if test "$enable_largefile" != no; then
7347
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7349$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7350if ${ac_cv_sys_largefile_CC+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352else
7353 ac_cv_sys_largefile_CC=no
7354 if test "$GCC" != yes; then
7355 ac_save_CC=$CC
7356 while :; do
7357 # IRIX 6.2 and later do not support large files by default,
7358 # so use the C compiler's -n32 option if that helps.
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360/* end confdefs.h. */
7361#include <sys/types.h>
7362 /* Check that off_t can represent 2**63 - 1 correctly.
7363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7364 since some C++ compilers masquerading as C compilers
7365 incorrectly reject 9223372036854775807. */
7366#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7368 && LARGE_OFF_T % 2147483647 == 1)
7369 ? 1 : -1];
7370int main (void)
7371{
7372
7373 ;
7374 return 0;
7375}
7376_ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 break
7379fi
7380rm -f core conftest.err conftest.$ac_objext
7381 CC="$CC -n32"
7382 if ac_fn_c_try_compile "$LINENO"; then :
7383 ac_cv_sys_largefile_CC=' -n32'; break
7384fi
7385rm -f core conftest.err conftest.$ac_objext
7386 break
7387 done
7388 CC=$ac_save_CC
7389 rm -f conftest.$ac_ext
7390 fi
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7393$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7394 if test "$ac_cv_sys_largefile_CC" != no; then
7395 CC=$CC$ac_cv_sys_largefile_CC
7396 fi
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7399$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7400if ${ac_cv_sys_file_offset_bits+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402else
7403 while :; do
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h. */
7406#include <sys/types.h>
7407 /* Check that off_t can represent 2**63 - 1 correctly.
7408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7409 since some C++ compilers masquerading as C compilers
7410 incorrectly reject 9223372036854775807. */
7411#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7413 && LARGE_OFF_T % 2147483647 == 1)
7414 ? 1 : -1];
7415int main (void)
7416{
7417
7418 ;
7419 return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_compile "$LINENO"; then :
7423 ac_cv_sys_file_offset_bits=no; break
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h. */
7428#define _FILE_OFFSET_BITS 64
7429#include <sys/types.h>
7430 /* Check that off_t can represent 2**63 - 1 correctly.
7431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7432 since some C++ compilers masquerading as C compilers
7433 incorrectly reject 9223372036854775807. */
7434#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7436 && LARGE_OFF_T % 2147483647 == 1)
7437 ? 1 : -1];
7438int main (void)
7439{
7440
7441 ;
7442 return 0;
7443}
7444_ACEOF
7445if ac_fn_c_try_compile "$LINENO"; then :
7446 ac_cv_sys_file_offset_bits=64; break
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 ac_cv_sys_file_offset_bits=unknown
7450 break
7451done
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7454$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7455case $ac_cv_sys_file_offset_bits in #(
7456 no | unknown) ;;
7457 *)
7458cat >>confdefs.h <<_ACEOF
7459#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7460_ACEOF
7461;;
7462esac
7463rm -rf conftest*
7464 if test $ac_cv_sys_file_offset_bits = unknown; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7466$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7467if ${ac_cv_sys_large_files+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469else
7470 while :; do
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h. */
7473#include <sys/types.h>
7474 /* Check that off_t can represent 2**63 - 1 correctly.
7475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7476 since some C++ compilers masquerading as C compilers
7477 incorrectly reject 9223372036854775807. */
7478#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7480 && LARGE_OFF_T % 2147483647 == 1)
7481 ? 1 : -1];
7482int main (void)
7483{
7484
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490 ac_cv_sys_large_files=no; break
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h. */
7495#define _LARGE_FILES 1
7496#include <sys/types.h>
7497 /* Check that off_t can represent 2**63 - 1 correctly.
7498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7499 since some C++ compilers masquerading as C compilers
7500 incorrectly reject 9223372036854775807. */
7501#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7503 && LARGE_OFF_T % 2147483647 == 1)
7504 ? 1 : -1];
7505int main (void)
7506{
7507
7508 ;
7509 return 0;
7510}
7511_ACEOF
7512if ac_fn_c_try_compile "$LINENO"; then :
7513 ac_cv_sys_large_files=1; break
7514fi
7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 ac_cv_sys_large_files=unknown
7517 break
7518done
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7521$as_echo "$ac_cv_sys_large_files" >&6; }
7522case $ac_cv_sys_large_files in #(
7523 no | unknown) ;;
7524 *)
7525cat >>confdefs.h <<_ACEOF
7526#define _LARGE_FILES $ac_cv_sys_large_files
7527_ACEOF
7528;;
7529esac
7530rm -rf conftest*
7531 fi
7532
7533
7534fi
7535
7536
7537case `pwd` in
7538 *\ * | *\ *)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7540$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7541esac
7542
7543
7544
7545macro_version='2.4.6'
7546macro_revision='2.4.6'
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560ltmain=$ac_aux_dir/ltmain.sh
7561
7562# Backslashify metacharacters that are still active within
7563# double-quoted strings.
7564sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7565
7566# Same as above, but do not quote variable references.
7567double_quote_subst='s/\(["`\\]\)/\\\1/g'
7568
7569# Sed substitution to delay expansion of an escaped shell variable in a
7570# double_quote_subst'ed string.
7571delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7572
7573# Sed substitution to delay expansion of an escaped single quote.
7574delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7575
7576# Sed substitution to avoid accidental globbing in evaled expressions
7577no_glob_subst='s/\*/\\\*/g'
7578
7579ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7580ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7581ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7582
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7584$as_echo_n "checking how to print strings... " >&6; }
7585# Test print first, because it will be a builtin if present.
7586if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7587 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7588 ECHO='print -r --'
7589elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7590 ECHO='printf %s\n'
7591else
7592 # Use this function as a fallback that always works.
7593 func_fallback_echo ()
7594 {
7595 eval 'cat <<_LTECHO_EOF
7596$1
7597_LTECHO_EOF'
7598 }
7599 ECHO='func_fallback_echo'
7600fi
7601
7602# func_echo_all arg...
7603# Invoke $ECHO with all args, space-separated.
7604func_echo_all ()
7605{
7606 $ECHO ""
7607}
7608
7609case $ECHO in
7610 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7611$as_echo "printf" >&6; } ;;
7612 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7613$as_echo "print -r" >&6; } ;;
7614 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7615$as_echo "cat" >&6; } ;;
7616esac
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7632$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7633if ${ac_cv_path_SED+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635else
7636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7637 for ac_i in 1 2 3 4 5 6 7; do
7638 ac_script="$ac_script$as_nl$ac_script"
7639 done
7640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7641 { ac_script=; unset ac_script;}
7642 if test -z "$SED"; then
7643 ac_path_SED_found=false
7644 # Loop through the user's path and test for each of PROGNAME-LIST
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_prog in sed gsed; do
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7653 as_fn_executable_p "$ac_path_SED" || continue
7654# Check for GNU ac_path_SED and select it if it is found.
7655 # Check for GNU $ac_path_SED
7656case `"$ac_path_SED" --version 2>&1` in
7657*GNU*)
7658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7659*)
7660 ac_count=0
7661 $as_echo_n 0123456789 >"conftest.in"
7662 while :
7663 do
7664 cat "conftest.in" "conftest.in" >"conftest.tmp"
7665 mv "conftest.tmp" "conftest.in"
7666 cp "conftest.in" "conftest.nl"
7667 $as_echo '' >> "conftest.nl"
7668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7670 as_fn_arith $ac_count + 1 && ac_count=$as_val
7671 if test $ac_count -gt ${ac_path_SED_max-0}; then
7672 # Best one so far, save it but keep looking for a better one
7673 ac_cv_path_SED="$ac_path_SED"
7674 ac_path_SED_max=$ac_count
7675 fi
7676 # 10*(2^10) chars as input seems more than enough
7677 test $ac_count -gt 10 && break
7678 done
7679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7680esac
7681
7682 $ac_path_SED_found && break 3
7683 done
7684 done
7685 done
7686IFS=$as_save_IFS
7687 if test -z "$ac_cv_path_SED"; then
7688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7689 fi
7690else
7691 ac_cv_path_SED=$SED
7692fi
7693
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7696$as_echo "$ac_cv_path_SED" >&6; }
7697 SED="$ac_cv_path_SED"
7698 rm -f conftest.sed
7699
7700test -z "$SED" && SED=sed
7701Xsed="$SED -e 1s/^X//"
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7714$as_echo_n "checking for fgrep... " >&6; }
7715if ${ac_cv_path_FGREP+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717else
7718 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7719 then ac_cv_path_FGREP="$GREP -F"
7720 else
7721 if test -z "$FGREP"; then
7722 ac_path_FGREP_found=false
7723 # Loop through the user's path and test for each of PROGNAME-LIST
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_prog in fgrep; do
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7732 as_fn_executable_p "$ac_path_FGREP" || continue
7733# Check for GNU ac_path_FGREP and select it if it is found.
7734 # Check for GNU $ac_path_FGREP
7735case `"$ac_path_FGREP" --version 2>&1` in
7736*GNU*)
7737 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7738*)
7739 ac_count=0
7740 $as_echo_n 0123456789 >"conftest.in"
7741 while :
7742 do
7743 cat "conftest.in" "conftest.in" >"conftest.tmp"
7744 mv "conftest.tmp" "conftest.in"
7745 cp "conftest.in" "conftest.nl"
7746 $as_echo 'FGREP' >> "conftest.nl"
7747 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7749 as_fn_arith $ac_count + 1 && ac_count=$as_val
7750 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7751 # Best one so far, save it but keep looking for a better one
7752 ac_cv_path_FGREP="$ac_path_FGREP"
7753 ac_path_FGREP_max=$ac_count
7754 fi
7755 # 10*(2^10) chars as input seems more than enough
7756 test $ac_count -gt 10 && break
7757 done
7758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7759esac
7760
7761 $ac_path_FGREP_found && break 3
7762 done
7763 done
7764 done
7765IFS=$as_save_IFS
7766 if test -z "$ac_cv_path_FGREP"; then
7767 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7768 fi
7769else
7770 ac_cv_path_FGREP=$FGREP
7771fi
7772
7773 fi
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7776$as_echo "$ac_cv_path_FGREP" >&6; }
7777 FGREP="$ac_cv_path_FGREP"
7778
7779
7780test -z "$GREP" && GREP=grep
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800# Check whether --with-gnu-ld was given.
7801if test "${with_gnu_ld+set}" = set; then :
7802 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7803else
7804 with_gnu_ld=no
7805fi
7806
7807ac_prog=ld
7808if test yes = "$GCC"; then
7809 # Check if gcc -print-prog-name=ld gives a path.
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7811$as_echo_n "checking for ld used by $CC... " >&6; }
7812 case $host in
7813 *-*-mingw*)
7814 # gcc leaves a trailing carriage return, which upsets mingw
7815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7816 *)
7817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7818 esac
7819 case $ac_prog in
7820 # Accept absolute paths.
7821 [\\/]* | ?:[\\/]*)
7822 re_direlt='/[^/][^/]*/\.\./'
7823 # Canonicalize the pathname of ld
7824 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7825 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7826 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7827 done
7828 test -z "$LD" && LD=$ac_prog
7829 ;;
7830 "")
7831 # If it fails, then pretend we aren't using GCC.
7832 ac_prog=ld
7833 ;;
7834 *)
7835 # If it is relative, then search for the first ld in PATH.
7836 with_gnu_ld=unknown
7837 ;;
7838 esac
7839elif test yes = "$with_gnu_ld"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7841$as_echo_n "checking for GNU ld... " >&6; }
7842else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7844$as_echo_n "checking for non-GNU ld... " >&6; }
7845fi
7846if ${lt_cv_path_LD+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848else
7849 if test -z "$LD"; then
7850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7851 for ac_dir in $PATH; do
7852 IFS=$lt_save_ifs
7853 test -z "$ac_dir" && ac_dir=.
7854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7855 lt_cv_path_LD=$ac_dir/$ac_prog
7856 # Check to see if the program is GNU ld. I'd rather use --version,
7857 # but apparently some variants of GNU ld only accept -v.
7858 # Break only if it was the GNU/non-GNU ld that we prefer.
7859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7860 *GNU* | *'with BFD'*)
7861 test no != "$with_gnu_ld" && break
7862 ;;
7863 *)
7864 test yes != "$with_gnu_ld" && break
7865 ;;
7866 esac
7867 fi
7868 done
7869 IFS=$lt_save_ifs
7870else
7871 lt_cv_path_LD=$LD # Let the user override the test with a path.
7872fi
7873fi
7874
7875LD=$lt_cv_path_LD
7876if test -n "$LD"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7878$as_echo "$LD" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
7883test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7885$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7886if ${lt_cv_prog_gnu_ld+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888else
7889 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7890case `$LD -v 2>&1 </dev/null` in
7891*GNU* | *'with BFD'*)
7892 lt_cv_prog_gnu_ld=yes
7893 ;;
7894*)
7895 lt_cv_prog_gnu_ld=no
7896 ;;
7897esac
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7900$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7901with_gnu_ld=$lt_cv_prog_gnu_ld
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7912$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7913if ${lt_cv_path_NM+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915else
7916 if test -n "$NM"; then
7917 # Let the user override the test.
7918 lt_cv_path_NM=$NM
7919else
7920 lt_nm_to_check=${ac_tool_prefix}nm
7921 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7922 lt_nm_to_check="$lt_nm_to_check nm"
7923 fi
7924 for lt_tmp_nm in $lt_nm_to_check; do
7925 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7926 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7927 IFS=$lt_save_ifs
7928 test -z "$ac_dir" && ac_dir=.
7929 tmp_nm=$ac_dir/$lt_tmp_nm
7930 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7931 # Check to see if the nm accepts a BSD-compat flag.
7932 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7933 # nm: unknown option "B" ignored
7934 # Tru64's nm complains that /dev/null is an invalid object file
7935 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7936 case $build_os in
7937 mingw*) lt_bad_file=conftest.nm/nofile ;;
7938 *) lt_bad_file=/dev/null ;;
7939 esac
7940 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7941 *$lt_bad_file* | *'Invalid file or object type'*)
7942 lt_cv_path_NM="$tmp_nm -B"
7943 break 2
7944 ;;
7945 *)
7946 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7947 */dev/null*)
7948 lt_cv_path_NM="$tmp_nm -p"
7949 break 2
7950 ;;
7951 *)
7952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7953 continue # so that we can try to find one that supports BSD flags
7954 ;;
7955 esac
7956 ;;
7957 esac
7958 fi
7959 done
7960 IFS=$lt_save_ifs
7961 done
7962 : ${lt_cv_path_NM=no}
7963fi
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7966$as_echo "$lt_cv_path_NM" >&6; }
7967if test no != "$lt_cv_path_NM"; then
7968 NM=$lt_cv_path_NM
7969else
7970 # Didn't find any BSD compatible name lister, look for dumpbin.
7971 if test -n "$DUMPBIN"; then :
7972 # Let the user override the test.
7973 else
7974 if test -n "$ac_tool_prefix"; then
7975 for ac_prog in dumpbin "link -dump"
7976 do
7977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980$as_echo_n "checking for $ac_word... " >&6; }
7981if ${ac_cv_prog_DUMPBIN+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 if test -n "$DUMPBIN"; then
7985 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7986else
7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999 done
8000IFS=$as_save_IFS
8001
8002fi
8003fi
8004DUMPBIN=$ac_cv_prog_DUMPBIN
8005if test -n "$DUMPBIN"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8007$as_echo "$DUMPBIN" >&6; }
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012
8013
8014 test -n "$DUMPBIN" && break
8015 done
8016fi
8017if test -z "$DUMPBIN"; then
8018 ac_ct_DUMPBIN=$DUMPBIN
8019 for ac_prog in dumpbin "link -dump"
8020do
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022set dummy $ac_prog; ac_word=$2
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027else
8028 if test -n "$ac_ct_DUMPBIN"; then
8029 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042done
8043 done
8044IFS=$as_save_IFS
8045
8046fi
8047fi
8048ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8049if test -n "$ac_ct_DUMPBIN"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8051$as_echo "$ac_ct_DUMPBIN" >&6; }
8052else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
8055fi
8056
8057
8058 test -n "$ac_ct_DUMPBIN" && break
8059done
8060
8061 if test "x$ac_ct_DUMPBIN" = x; then
8062 DUMPBIN=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070 DUMPBIN=$ac_ct_DUMPBIN
8071 fi
8072fi
8073
8074 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8075 *COFF*)
8076 DUMPBIN="$DUMPBIN -symbols -headers"
8077 ;;
8078 *)
8079 DUMPBIN=:
8080 ;;
8081 esac
8082 fi
8083
8084 if test : != "$DUMPBIN"; then
8085 NM=$DUMPBIN
8086 fi
8087fi
8088test -z "$NM" && NM=nm
8089
8090
8091
8092
8093
8094
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8096$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8097if ${lt_cv_nm_interface+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099else
8100 lt_cv_nm_interface="BSD nm"
8101 echo "int some_variable = 0;" > conftest.$ac_ext
8102 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8103 (eval "$ac_compile" 2>conftest.err)
8104 cat conftest.err >&5
8105 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8106 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8107 cat conftest.err >&5
8108 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8109 cat conftest.out >&5
8110 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8111 lt_cv_nm_interface="MS dumpbin"
8112 fi
8113 rm -f conftest*
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8116$as_echo "$lt_cv_nm_interface" >&6; }
8117
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8119$as_echo_n "checking whether ln -s works... " >&6; }
8120LN_S=$as_ln_s
8121if test "$LN_S" = "ln -s"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123$as_echo "yes" >&6; }
8124else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8126$as_echo "no, using $LN_S" >&6; }
8127fi
8128
8129# find the maximum length of command line arguments
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8131$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8132if ${lt_cv_sys_max_cmd_len+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135 i=0
8136 teststring=ABCD
8137
8138 case $build_os in
8139 msdosdjgpp*)
8140 # On DJGPP, this test can blow up pretty badly due to problems in libc
8141 # (any single argument exceeding 2000 bytes causes a buffer overrun
8142 # during glob expansion). Even if it were fixed, the result of this
8143 # check would be larger than it should be.
8144 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8145 ;;
8146
8147 gnu*)
8148 # Under GNU Hurd, this test is not required because there is
8149 # no limit to the length of command line arguments.
8150 # Libtool will interpret -1 as no limit whatsoever
8151 lt_cv_sys_max_cmd_len=-1;
8152 ;;
8153
8154 cygwin* | mingw* | cegcc*)
8155 # On Win9x/ME, this test blows up -- it succeeds, but takes
8156 # about 5 minutes as the teststring grows exponentially.
8157 # Worse, since 9x/ME are not pre-emptively multitasking,
8158 # you end up with a "frozen" computer, even though with patience
8159 # the test eventually succeeds (with a max line length of 256k).
8160 # Instead, let's just punt: use the minimum linelength reported by
8161 # all of the supported platforms: 8192 (on NT/2K/XP).
8162 lt_cv_sys_max_cmd_len=8192;
8163 ;;
8164
8165 mint*)
8166 # On MiNT this can take a long time and run out of memory.
8167 lt_cv_sys_max_cmd_len=8192;
8168 ;;
8169
8170 amigaos*)
8171 # On AmigaOS with pdksh, this test takes hours, literally.
8172 # So we just punt and use a minimum line length of 8192.
8173 lt_cv_sys_max_cmd_len=8192;
8174 ;;
8175
8176 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8177 # This has been around since 386BSD, at least. Likely further.
8178 if test -x /sbin/sysctl; then
8179 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8180 elif test -x /usr/sbin/sysctl; then
8181 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8182 else
8183 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8184 fi
8185 # And add a safety zone
8186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8188 ;;
8189
8190 interix*)
8191 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8192 lt_cv_sys_max_cmd_len=196608
8193 ;;
8194
8195 os2*)
8196 # The test takes a long time on OS/2.
8197 lt_cv_sys_max_cmd_len=8192
8198 ;;
8199
8200 osf*)
8201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8203 # nice to cause kernel panics so lets avoid the loop below.
8204 # First set a reasonable default.
8205 lt_cv_sys_max_cmd_len=16384
8206 #
8207 if test -x /sbin/sysconfig; then
8208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8209 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8210 esac
8211 fi
8212 ;;
8213 sco3.2v5*)
8214 lt_cv_sys_max_cmd_len=102400
8215 ;;
8216 sysv5* | sco5v6* | sysv4.2uw2*)
8217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8218 if test -n "$kargmax"; then
8219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8220 else
8221 lt_cv_sys_max_cmd_len=32768
8222 fi
8223 ;;
8224 *)
8225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8226 if test -n "$lt_cv_sys_max_cmd_len" && \
8227 test undefined != "$lt_cv_sys_max_cmd_len"; then
8228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8230 else
8231 # Make teststring a little bigger before we do anything with it.
8232 # a 1K string should be a reasonable start.
8233 for i in 1 2 3 4 5 6 7 8; do
8234 teststring=$teststring$teststring
8235 done
8236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8237 # If test is not a shell built-in, we'll probably end up computing a
8238 # maximum length that is only half of the actual maximum length, but
8239 # we can't tell.
8240 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8241 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8242 test 17 != "$i" # 1/2 MB should be enough
8243 do
8244 i=`expr $i + 1`
8245 teststring=$teststring$teststring
8246 done
8247 # Only check the string length outside the loop.
8248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8249 teststring=
8250 # Add a significant safety factor because C++ compilers can tack on
8251 # massive amounts of additional arguments before passing them to the
8252 # linker. It appears as though 1/2 is a usable value.
8253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8254 fi
8255 ;;
8256 esac
8257
8258fi
8259
8260if test -n "$lt_cv_sys_max_cmd_len"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8262$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8263else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8265$as_echo "none" >&6; }
8266fi
8267max_cmd_len=$lt_cv_sys_max_cmd_len
8268
8269
8270
8271
8272
8273
8274: ${CP="cp -f"}
8275: ${MV="mv -f"}
8276: ${RM="rm -f"}
8277
8278if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8279 lt_unset=unset
8280else
8281 lt_unset=false
8282fi
8283
8284
8285
8286
8287
8288# test EBCDIC or ASCII
8289case `echo X|tr X '\101'` in
8290 A) # ASCII based system
8291 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8292 lt_SP2NL='tr \040 \012'
8293 lt_NL2SP='tr \015\012 \040\040'
8294 ;;
8295 *) # EBCDIC based system
8296 lt_SP2NL='tr \100 \n'
8297 lt_NL2SP='tr \r\n \100\100'
8298 ;;
8299esac
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8310$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8311if ${lt_cv_to_host_file_cmd+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313else
8314 case $host in
8315 *-*-mingw* )
8316 case $build in
8317 *-*-mingw* ) # actually msys
8318 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8319 ;;
8320 *-*-cygwin* )
8321 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8322 ;;
8323 * ) # otherwise, assume *nix
8324 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8325 ;;
8326 esac
8327 ;;
8328 *-*-cygwin* )
8329 case $build in
8330 *-*-mingw* ) # actually msys
8331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8332 ;;
8333 *-*-cygwin* )
8334 lt_cv_to_host_file_cmd=func_convert_file_noop
8335 ;;
8336 * ) # otherwise, assume *nix
8337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8338 ;;
8339 esac
8340 ;;
8341 * ) # unhandled hosts (and "normal" native builds)
8342 lt_cv_to_host_file_cmd=func_convert_file_noop
8343 ;;
8344esac
8345
8346fi
8347
8348to_host_file_cmd=$lt_cv_to_host_file_cmd
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8350$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8351
8352
8353
8354
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8357$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8358if ${lt_cv_to_tool_file_cmd+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 #assume ordinary cross tools, or native build.
8362lt_cv_to_tool_file_cmd=func_convert_file_noop
8363case $host in
8364 *-*-mingw* )
8365 case $build in
8366 *-*-mingw* ) # actually msys
8367 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8368 ;;
8369 esac
8370 ;;
8371esac
8372
8373fi
8374
8375to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8377$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8378
8379
8380
8381
8382
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8384$as_echo_n "checking for $LD option to reload object files... " >&6; }
8385if ${lt_cv_ld_reload_flag+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387else
8388 lt_cv_ld_reload_flag='-r'
8389fi
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8391$as_echo "$lt_cv_ld_reload_flag" >&6; }
8392reload_flag=$lt_cv_ld_reload_flag
8393case $reload_flag in
8394"" | " "*) ;;
8395*) reload_flag=" $reload_flag" ;;
8396esac
8397reload_cmds='$LD$reload_flag -o $output$reload_objs'
8398case $host_os in
8399 cygwin* | mingw* | pw32* | cegcc*)
8400 if test yes != "$GCC"; then
8401 reload_cmds=false
8402 fi
8403 ;;
8404 darwin*)
8405 if test yes = "$GCC"; then
8406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8407 else
8408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8409 fi
8410 ;;
8411esac
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421if test -n "$ac_tool_prefix"; then
8422 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8423set dummy ${ac_tool_prefix}objdump; ac_word=$2
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if ${ac_cv_prog_OBJDUMP+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428else
8429 if test -n "$OBJDUMP"; then
8430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443done
8444 done
8445IFS=$as_save_IFS
8446
8447fi
8448fi
8449OBJDUMP=$ac_cv_prog_OBJDUMP
8450if test -n "$OBJDUMP"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8452$as_echo "$OBJDUMP" >&6; }
8453else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456fi
8457
8458
8459fi
8460if test -z "$ac_cv_prog_OBJDUMP"; then
8461 ac_ct_OBJDUMP=$OBJDUMP
8462 # Extract the first word of "objdump", so it can be a program name with args.
8463set dummy objdump; ac_word=$2
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465$as_echo_n "checking for $ac_word... " >&6; }
8466if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468else
8469 if test -n "$ac_ct_OBJDUMP"; then
8470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8471else
8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473for as_dir in $PATH
8474do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483done
8484 done
8485IFS=$as_save_IFS
8486
8487fi
8488fi
8489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8490if test -n "$ac_ct_OBJDUMP"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8492$as_echo "$ac_ct_OBJDUMP" >&6; }
8493else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495$as_echo "no" >&6; }
8496fi
8497
8498 if test "x$ac_ct_OBJDUMP" = x; then
8499 OBJDUMP="false"
8500 else
8501 case $cross_compiling:$ac_tool_warned in
8502yes:)
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505ac_tool_warned=yes ;;
8506esac
8507 OBJDUMP=$ac_ct_OBJDUMP
8508 fi
8509else
8510 OBJDUMP="$ac_cv_prog_OBJDUMP"
8511fi
8512
8513test -z "$OBJDUMP" && OBJDUMP=objdump
8514
8515
8516
8517
8518
8519
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8521$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8522if ${lt_cv_deplibs_check_method+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524else
8525 lt_cv_file_magic_cmd='$MAGIC_CMD'
8526lt_cv_file_magic_test_file=
8527lt_cv_deplibs_check_method='unknown'
8528# Need to set the preceding variable on all platforms that support
8529# interlibrary dependencies.
8530# 'none' -- dependencies not supported.
8531# 'unknown' -- same as none, but documents that we really don't know.
8532# 'pass_all' -- all dependencies passed with no checks.
8533# 'test_compile' -- check by making test program.
8534# 'file_magic [[regex]]' -- check by looking for files in library path
8535# that responds to the $file_magic_cmd with a given extended regex.
8536# If you have 'file' or equivalent on your system and you're not sure
8537# whether 'pass_all' will *always* work, you probably want this one.
8538
8539case $host_os in
8540aix[4-9]*)
8541 lt_cv_deplibs_check_method=pass_all
8542 ;;
8543
8544beos*)
8545 lt_cv_deplibs_check_method=pass_all
8546 ;;
8547
8548bsdi[45]*)
8549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8550 lt_cv_file_magic_cmd='/usr/bin/file -L'
8551 lt_cv_file_magic_test_file=/shlib/libc.so
8552 ;;
8553
8554cygwin*)
8555 # func_win32_libid is a shell function defined in ltmain.sh
8556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8557 lt_cv_file_magic_cmd='func_win32_libid'
8558 ;;
8559
8560mingw* | pw32*)
8561 # Base MSYS/MinGW do not provide the 'file' command needed by
8562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8563 # unless we find 'file', for example because we are cross-compiling.
8564 if ( file / ) >/dev/null 2>&1; then
8565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8566 lt_cv_file_magic_cmd='func_win32_libid'
8567 else
8568 # Keep this pattern in sync with the one in func_win32_libid.
8569 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8570 lt_cv_file_magic_cmd='$OBJDUMP -f'
8571 fi
8572 ;;
8573
8574cegcc*)
8575 # use the weaker test based on 'objdump'. See mingw*.
8576 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8577 lt_cv_file_magic_cmd='$OBJDUMP -f'
8578 ;;
8579
8580darwin* | rhapsody*)
8581 lt_cv_deplibs_check_method=pass_all
8582 ;;
8583
8584freebsd* | dragonfly*)
8585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8586 case $host_cpu in
8587 i*86 )
8588 # Not sure whether the presence of OpenBSD here was a mistake.
8589 # Let's accept both of them until this is cleared up.
8590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8591 lt_cv_file_magic_cmd=/usr/bin/file
8592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8593 ;;
8594 esac
8595 else
8596 lt_cv_deplibs_check_method=pass_all
8597 fi
8598 ;;
8599
8600haiku*)
8601 lt_cv_deplibs_check_method=pass_all
8602 ;;
8603
8604hpux10.20* | hpux11*)
8605 lt_cv_file_magic_cmd=/usr/bin/file
8606 case $host_cpu in
8607 ia64*)
8608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8610 ;;
8611 hppa*64*)
8612 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]'
8613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8614 ;;
8615 *)
8616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8617 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8618 ;;
8619 esac
8620 ;;
8621
8622interix[3-9]*)
8623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8625 ;;
8626
8627irix5* | irix6* | nonstopux*)
8628 case $LD in
8629 *-32|*"-32 ") libmagic=32-bit;;
8630 *-n32|*"-n32 ") libmagic=N32;;
8631 *-64|*"-64 ") libmagic=64-bit;;
8632 *) libmagic=never-match;;
8633 esac
8634 lt_cv_deplibs_check_method=pass_all
8635 ;;
8636
8637# This must be glibc/ELF.
8638linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8639 lt_cv_deplibs_check_method=pass_all
8640 ;;
8641
8642netbsd* | netbsdelf*-gnu)
8643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8645 else
8646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8647 fi
8648 ;;
8649
8650newos6*)
8651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8652 lt_cv_file_magic_cmd=/usr/bin/file
8653 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8654 ;;
8655
8656*nto* | *qnx*)
8657 lt_cv_deplibs_check_method=pass_all
8658 ;;
8659
8660openbsd* | bitrig*)
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8663 else
8664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8665 fi
8666 ;;
8667
8668osf3* | osf4* | osf5*)
8669 lt_cv_deplibs_check_method=pass_all
8670 ;;
8671
8672rdos*)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675
8676solaris*)
8677 lt_cv_deplibs_check_method=pass_all
8678 ;;
8679
8680sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8681 lt_cv_deplibs_check_method=pass_all
8682 ;;
8683
8684sysv4 | sysv4.3*)
8685 case $host_vendor in
8686 motorola)
8687 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]'
8688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8689 ;;
8690 ncr)
8691 lt_cv_deplibs_check_method=pass_all
8692 ;;
8693 sequent)
8694 lt_cv_file_magic_cmd='/bin/file'
8695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8696 ;;
8697 sni)
8698 lt_cv_file_magic_cmd='/bin/file'
8699 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8700 lt_cv_file_magic_test_file=/lib/libc.so
8701 ;;
8702 siemens)
8703 lt_cv_deplibs_check_method=pass_all
8704 ;;
8705 pc)
8706 lt_cv_deplibs_check_method=pass_all
8707 ;;
8708 esac
8709 ;;
8710
8711tpf*)
8712 lt_cv_deplibs_check_method=pass_all
8713 ;;
8714os2*)
8715 lt_cv_deplibs_check_method=pass_all
8716 ;;
8717esac
8718
8719fi
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8721$as_echo "$lt_cv_deplibs_check_method" >&6; }
8722
8723file_magic_glob=
8724want_nocaseglob=no
8725if test "$build" = "$host"; then
8726 case $host_os in
8727 mingw* | pw32*)
8728 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8729 want_nocaseglob=yes
8730 else
8731 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8732 fi
8733 ;;
8734 esac
8735fi
8736
8737file_magic_cmd=$lt_cv_file_magic_cmd
8738deplibs_check_method=$lt_cv_deplibs_check_method
8739test -z "$deplibs_check_method" && deplibs_check_method=unknown
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762if test -n "$ac_tool_prefix"; then
8763 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8764set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766$as_echo_n "checking for $ac_word... " >&6; }
8767if ${ac_cv_prog_DLLTOOL+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769else
8770 if test -n "$DLLTOOL"; then
8771 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8772else
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784done
8785 done
8786IFS=$as_save_IFS
8787
8788fi
8789fi
8790DLLTOOL=$ac_cv_prog_DLLTOOL
8791if test -n "$DLLTOOL"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8793$as_echo "$DLLTOOL" >&6; }
8794else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796$as_echo "no" >&6; }
8797fi
8798
8799
8800fi
8801if test -z "$ac_cv_prog_DLLTOOL"; then
8802 ac_ct_DLLTOOL=$DLLTOOL
8803 # Extract the first word of "dlltool", so it can be a program name with args.
8804set dummy dlltool; ac_word=$2
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
8807if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809else
8810 if test -n "$ac_ct_DLLTOOL"; then
8811 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8823 fi
8824done
8825 done
8826IFS=$as_save_IFS
8827
8828fi
8829fi
8830ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8831if test -n "$ac_ct_DLLTOOL"; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8833$as_echo "$ac_ct_DLLTOOL" >&6; }
8834else
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
8837fi
8838
8839 if test "x$ac_ct_DLLTOOL" = x; then
8840 DLLTOOL="false"
8841 else
8842 case $cross_compiling:$ac_tool_warned in
8843yes:)
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8846ac_tool_warned=yes ;;
8847esac
8848 DLLTOOL=$ac_ct_DLLTOOL
8849 fi
8850else
8851 DLLTOOL="$ac_cv_prog_DLLTOOL"
8852fi
8853
8854test -z "$DLLTOOL" && DLLTOOL=dlltool
8855
8856
8857
8858
8859
8860
8861
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8863$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8864if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866else
8867 lt_cv_sharedlib_from_linklib_cmd='unknown'
8868
8869case $host_os in
8870cygwin* | mingw* | pw32* | cegcc*)
8871 # two different shell functions defined in ltmain.sh;
8872 # decide which one to use based on capabilities of $DLLTOOL
8873 case `$DLLTOOL --help 2>&1` in
8874 *--identify-strict*)
8875 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8876 ;;
8877 *)
8878 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8879 ;;
8880 esac
8881 ;;
8882*)
8883 # fallback: assume linklib IS sharedlib
8884 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8885 ;;
8886esac
8887
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8890$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8891sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8892test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8893
8894
8895
8896
8897
8898
8899
8900if test -n "$ac_tool_prefix"; then
8901 for ac_prog in ar
8902 do
8903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906$as_echo_n "checking for $ac_word... " >&6; }
8907if ${ac_cv_prog_AR+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909else
8910 if test -n "$AR"; then
8911 ac_cv_prog_AR="$AR" # Let the user override the test.
8912else
8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914for as_dir in $PATH
8915do
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8923 fi
8924done
8925 done
8926IFS=$as_save_IFS
8927
8928fi
8929fi
8930AR=$ac_cv_prog_AR
8931if test -n "$AR"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8933$as_echo "$AR" >&6; }
8934else
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936$as_echo "no" >&6; }
8937fi
8938
8939
8940 test -n "$AR" && break
8941 done
8942fi
8943if test -z "$AR"; then
8944 ac_ct_AR=$AR
8945 for ac_prog in ar
8946do
8947 # Extract the first word of "$ac_prog", so it can be a program name with args.
8948set dummy $ac_prog; ac_word=$2
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if ${ac_cv_prog_ac_ct_AR+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953else
8954 if test -n "$ac_ct_AR"; then
8955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_ac_ct_AR="$ac_prog"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8967 fi
8968done
8969 done
8970IFS=$as_save_IFS
8971
8972fi
8973fi
8974ac_ct_AR=$ac_cv_prog_ac_ct_AR
8975if test -n "$ac_ct_AR"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8977$as_echo "$ac_ct_AR" >&6; }
8978else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
8981fi
8982
8983
8984 test -n "$ac_ct_AR" && break
8985done
8986
8987 if test "x$ac_ct_AR" = x; then
8988 AR="false"
8989 else
8990 case $cross_compiling:$ac_tool_warned in
8991yes:)
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8994ac_tool_warned=yes ;;
8995esac
8996 AR=$ac_ct_AR
8997 fi
8998fi
8999
9000: ${AR=ar}
9001: ${AR_FLAGS=cru}
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9014$as_echo_n "checking for archiver @FILE support... " >&6; }
9015if ${lt_cv_ar_at_file+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018 lt_cv_ar_at_file=no
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h. */
9021
9022int main (void)
9023{
9024
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_compile "$LINENO"; then :
9030 echo conftest.$ac_objext > conftest.lst
9031 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9033 (eval $lt_ar_try) 2>&5
9034 ac_status=$?
9035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9036 test $ac_status = 0; }
9037 if test 0 -eq "$ac_status"; then
9038 # Ensure the archiver fails upon bogus file names.
9039 rm -f conftest.$ac_objext libconftest.a
9040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9041 (eval $lt_ar_try) 2>&5
9042 ac_status=$?
9043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044 test $ac_status = 0; }
9045 if test 0 -ne "$ac_status"; then
9046 lt_cv_ar_at_file=@
9047 fi
9048 fi
9049 rm -f conftest.* libconftest.a
9050
9051fi
9052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9056$as_echo "$lt_cv_ar_at_file" >&6; }
9057
9058if test no = "$lt_cv_ar_at_file"; then
9059 archiver_list_spec=
9060else
9061 archiver_list_spec=$lt_cv_ar_at_file
9062fi
9063
9064
9065
9066
9067
9068
9069
9070if test -n "$ac_tool_prefix"; then
9071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9072set dummy ${ac_tool_prefix}strip; ac_word=$2
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if ${ac_cv_prog_STRIP+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 if test -n "$STRIP"; then
9079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093 done
9094IFS=$as_save_IFS
9095
9096fi
9097fi
9098STRIP=$ac_cv_prog_STRIP
9099if test -n "$STRIP"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9101$as_echo "$STRIP" >&6; }
9102else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
9105fi
9106
9107
9108fi
9109if test -z "$ac_cv_prog_STRIP"; then
9110 ac_ct_STRIP=$STRIP
9111 # Extract the first word of "strip", so it can be a program name with args.
9112set dummy strip; ac_word=$2
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
9115if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117else
9118 if test -n "$ac_ct_STRIP"; then
9119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9120else
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9128 ac_cv_prog_ac_ct_STRIP="strip"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9131 fi
9132done
9133 done
9134IFS=$as_save_IFS
9135
9136fi
9137fi
9138ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9139if test -n "$ac_ct_STRIP"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9141$as_echo "$ac_ct_STRIP" >&6; }
9142else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
9145fi
9146
9147 if test "x$ac_ct_STRIP" = x; then
9148 STRIP=":"
9149 else
9150 case $cross_compiling:$ac_tool_warned in
9151yes:)
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9154ac_tool_warned=yes ;;
9155esac
9156 STRIP=$ac_ct_STRIP
9157 fi
9158else
9159 STRIP="$ac_cv_prog_STRIP"
9160fi
9161
9162test -z "$STRIP" && STRIP=:
9163
9164
9165
9166
9167
9168
9169if test -n "$ac_tool_prefix"; then
9170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9171set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173$as_echo_n "checking for $ac_word... " >&6; }
9174if ${ac_cv_prog_RANLIB+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176else
9177 if test -n "$RANLIB"; then
9178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9179else
9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181for as_dir in $PATH
9182do
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9190 fi
9191done
9192 done
9193IFS=$as_save_IFS
9194
9195fi
9196fi
9197RANLIB=$ac_cv_prog_RANLIB
9198if test -n "$RANLIB"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9200$as_echo "$RANLIB" >&6; }
9201else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
9204fi
9205
9206
9207fi
9208if test -z "$ac_cv_prog_RANLIB"; then
9209 ac_ct_RANLIB=$RANLIB
9210 # Extract the first word of "ranlib", so it can be a program name with args.
9211set dummy ranlib; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
9214if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 if test -n "$ac_ct_RANLIB"; then
9218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_ac_ct_RANLIB="ranlib"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9230 fi
9231done
9232 done
9233IFS=$as_save_IFS
9234
9235fi
9236fi
9237ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9238if test -n "$ac_ct_RANLIB"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9240$as_echo "$ac_ct_RANLIB" >&6; }
9241else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246 if test "x$ac_ct_RANLIB" = x; then
9247 RANLIB=":"
9248 else
9249 case $cross_compiling:$ac_tool_warned in
9250yes:)
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253ac_tool_warned=yes ;;
9254esac
9255 RANLIB=$ac_ct_RANLIB
9256 fi
9257else
9258 RANLIB="$ac_cv_prog_RANLIB"
9259fi
9260
9261test -z "$RANLIB" && RANLIB=:
9262
9263
9264
9265
9266
9267
9268# Determine commands to create old-style static archives.
9269old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9270old_postinstall_cmds='chmod 644 $oldlib'
9271old_postuninstall_cmds=
9272
9273if test -n "$RANLIB"; then
9274 case $host_os in
9275 bitrig* | openbsd*)
9276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9277 ;;
9278 *)
9279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9280 ;;
9281 esac
9282 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9283fi
9284
9285case $host_os in
9286 darwin*)
9287 lock_old_archive_extraction=yes ;;
9288 *)
9289 lock_old_archive_extraction=no ;;
9290esac
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330# If no C compiler was specified, use CC.
9331LTCC=${LTCC-"$CC"}
9332
9333# If no C compiler flags were specified, use CFLAGS.
9334LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9335
9336# Allow CC to be a program name with arguments.
9337compiler=$CC
9338
9339
9340# Check for command to grab the raw symbol name followed by C symbol from nm.
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9342$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9343if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345else
9346
9347# These are sane defaults that work on at least a few old systems.
9348# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9349
9350# Character class describing NM global symbol codes.
9351symcode='[BCDEGRST]'
9352
9353# Regexp to match symbols that can be accessed directly from C.
9354sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9355
9356# Define system-specific variables.
9357case $host_os in
9358aix*)
9359 symcode='[BCDT]'
9360 ;;
9361cygwin* | mingw* | pw32* | cegcc*)
9362 symcode='[ABCDGISTW]'
9363 ;;
9364hpux*)
9365 if test ia64 = "$host_cpu"; then
9366 symcode='[ABCDEGRST]'
9367 fi
9368 ;;
9369irix* | nonstopux*)
9370 symcode='[BCDEGRST]'
9371 ;;
9372osf*)
9373 symcode='[BCDEGQRST]'
9374 ;;
9375solaris*)
9376 symcode='[BDRT]'
9377 ;;
9378sco3.2v5*)
9379 symcode='[DT]'
9380 ;;
9381sysv4.2uw2*)
9382 symcode='[DT]'
9383 ;;
9384sysv5* | sco5v6* | unixware* | OpenUNIX*)
9385 symcode='[ABDT]'
9386 ;;
9387sysv4)
9388 symcode='[DFNSTU]'
9389 ;;
9390esac
9391
9392# If we're using GNU nm, then use its standard symbol codes.
9393case `$NM -V 2>&1` in
9394*GNU* | *'with BFD'*)
9395 symcode='[ABCDGIRSTW]' ;;
9396esac
9397
9398if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9399 # Gets list of data symbols to import.
9400 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9401 # Adjust the below global symbol transforms to fixup imported variables.
9402 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9403 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9404 lt_c_name_lib_hook="\
9405 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9406 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9407else
9408 # Disable hooks by default.
9409 lt_cv_sys_global_symbol_to_import=
9410 lt_cdecl_hook=
9411 lt_c_name_hook=
9412 lt_c_name_lib_hook=
9413fi
9414
9415# Transform an extracted symbol line into a proper C declaration.
9416# Some systems (esp. on ia64) link data and code symbols differently,
9417# so use this general approach.
9418lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9419$lt_cdecl_hook\
9420" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9421" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9422
9423# Transform an extracted symbol line into symbol name and symbol address
9424lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9425$lt_c_name_hook\
9426" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9427" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9428
9429# Transform an extracted symbol line into symbol name with lib prefix and
9430# symbol address.
9431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9432$lt_c_name_lib_hook\
9433" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9434" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9435" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9436
9437# Handle CRLF in mingw tool chain
9438opt_cr=
9439case $build_os in
9440mingw*)
9441 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9442 ;;
9443esac
9444
9445# Try without a prefix underscore, then with it.
9446for ac_symprfx in "" "_"; do
9447
9448 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9449 symxfrm="\\1 $ac_symprfx\\2 \\2"
9450
9451 # Write the raw and C identifiers.
9452 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9453 # Fake it for dumpbin and say T for any non-static function,
9454 # D for any global variable and I for any imported variable.
9455 # Also find C++ and __fastcall symbols from MSVC++,
9456 # which start with @ or ?.
9457 lt_cv_sys_global_symbol_pipe="$AWK '"\
9458" {last_section=section; section=\$ 3};"\
9459" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9460" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9461" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9462" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9463" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9464" \$ 0!~/External *\|/{next};"\
9465" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9466" {if(hide[section]) next};"\
9467" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9468" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9469" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9470" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9471" ' prfx=^$ac_symprfx"
9472 else
9473 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9474 fi
9475 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9476
9477 # Check to see that the pipe works correctly.
9478 pipe_works=no
9479
9480 rm -f conftest*
9481 cat > conftest.$ac_ext <<_LT_EOF
9482#ifdef __cplusplus
9483extern "C" {
9484#endif
9485char nm_test_var;
9486void nm_test_func(void);
9487void nm_test_func(void){}
9488#ifdef __cplusplus
9489}
9490#endif
9491int main(){nm_test_var='a';nm_test_func();return(0);}
9492_LT_EOF
9493
9494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9495 (eval $ac_compile) 2>&5
9496 ac_status=$?
9497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498 test $ac_status = 0; }; then
9499 # Now try to grab the symbols.
9500 nlist=conftest.nm
9501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9502 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9503 ac_status=$?
9504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9505 test $ac_status = 0; } && test -s "$nlist"; then
9506 # Try sorting and uniquifying the output.
9507 if sort "$nlist" | uniq > "$nlist"T; then
9508 mv -f "$nlist"T "$nlist"
9509 else
9510 rm -f "$nlist"T
9511 fi
9512
9513 # Make sure that we snagged all the symbols we need.
9514 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9515 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9516 cat <<_LT_EOF > conftest.$ac_ext
9517/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9518#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9519/* DATA imports from DLLs on WIN32 can't be const, because runtime
9520 relocations are performed -- see ld's documentation on pseudo-relocs. */
9521# define LT_DLSYM_CONST
9522#elif defined __osf__
9523/* This system does not cope well with relocations in const data. */
9524# define LT_DLSYM_CONST
9525#else
9526# define LT_DLSYM_CONST const
9527#endif
9528
9529#ifdef __cplusplus
9530extern "C" {
9531#endif
9532
9533_LT_EOF
9534 # Now generate the symbol file.
9535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9536
9537 cat <<_LT_EOF >> conftest.$ac_ext
9538
9539/* The mapping between symbol names and symbols. */
9540LT_DLSYM_CONST struct {
9541 const char *name;
9542 void *address;
9543}
9544lt__PROGRAM__LTX_preloaded_symbols[] =
9545{
9546 { "@PROGRAM@", (void *) 0 },
9547_LT_EOF
9548 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9549 cat <<\_LT_EOF >> conftest.$ac_ext
9550 {0, (void *) 0}
9551};
9552
9553/* This works around a problem in FreeBSD linker */
9554#ifdef FREEBSD_WORKAROUND
9555static const void *lt_preloaded_setup() {
9556 return lt__PROGRAM__LTX_preloaded_symbols;
9557}
9558#endif
9559
9560#ifdef __cplusplus
9561}
9562#endif
9563_LT_EOF
9564 # Now try linking the two files.
9565 mv -f conftest.$ac_objext conftstm.$ac_objext
9566 lt_globsym_save_LIBS=$LIBS
9567 lt_globsym_save_CFLAGS=$CFLAGS
9568 LIBS=conftstm.$ac_objext
9569 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9571 (eval $ac_link) 2>&5
9572 ac_status=$?
9573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9574 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9575 pipe_works=yes
9576 fi
9577 LIBS=$lt_globsym_save_LIBS
9578 CFLAGS=$lt_globsym_save_CFLAGS
9579 else
9580 echo "cannot find nm_test_func in $nlist" >&5
9581 fi
9582 else
9583 echo "cannot find nm_test_var in $nlist" >&5
9584 fi
9585 else
9586 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9587 fi
9588 else
9589 echo "$progname: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 fi
9592 rm -rf conftest* conftst*
9593
9594 # Do not use the global_symbol_pipe unless it works.
9595 if test yes = "$pipe_works"; then
9596 break
9597 else
9598 lt_cv_sys_global_symbol_pipe=
9599 fi
9600done
9601
9602fi
9603
9604if test -z "$lt_cv_sys_global_symbol_pipe"; then
9605 lt_cv_sys_global_symbol_to_cdecl=
9606fi
9607if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9609$as_echo "failed" >&6; }
9610else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9612$as_echo "ok" >&6; }
9613fi
9614
9615# Response file support.
9616if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9617 nm_file_list_spec='@'
9618elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9619 nm_file_list_spec='@'
9620fi
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9659$as_echo_n "checking for sysroot... " >&6; }
9660
9661# Check whether --with-sysroot was given.
9662if test "${with_sysroot+set}" = set; then :
9663 withval=$with_sysroot;
9664else
9665 with_sysroot=no
9666fi
9667
9668
9669lt_sysroot=
9670case $with_sysroot in #(
9671 yes)
9672 if test yes = "$GCC"; then
9673 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9674 fi
9675 ;; #(
9676 /*)
9677 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9678 ;; #(
9679 no|'')
9680 ;; #(
9681 *)
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9683$as_echo "$with_sysroot" >&6; }
9684 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9685 ;;
9686esac
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9689$as_echo "${lt_sysroot:-no}" >&6; }
9690
9691
9692
9693
9694
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9696$as_echo_n "checking for a working dd... " >&6; }
9697if ${ac_cv_path_lt_DD+:} false; then :
9698 $as_echo_n "(cached) " >&6
9699else
9700 printf 0123456789abcdef0123456789abcdef >conftest.i
9701cat conftest.i conftest.i >conftest2.i
9702: ${lt_DD:=$DD}
9703if test -z "$lt_DD"; then
9704 ac_path_lt_DD_found=false
9705 # Loop through the user's path and test for each of PROGNAME-LIST
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_prog in dd; do
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9714 as_fn_executable_p "$ac_path_lt_DD" || continue
9715if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9716 cmp -s conftest.i conftest.out \
9717 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9718fi
9719 $ac_path_lt_DD_found && break 3
9720 done
9721 done
9722 done
9723IFS=$as_save_IFS
9724 if test -z "$ac_cv_path_lt_DD"; then
9725 :
9726 fi
9727else
9728 ac_cv_path_lt_DD=$lt_DD
9729fi
9730
9731rm -f conftest.i conftest2.i conftest.out
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9734$as_echo "$ac_cv_path_lt_DD" >&6; }
9735
9736
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9738$as_echo_n "checking how to truncate binary pipes... " >&6; }
9739if ${lt_cv_truncate_bin+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741else
9742 printf 0123456789abcdef0123456789abcdef >conftest.i
9743cat conftest.i conftest.i >conftest2.i
9744lt_cv_truncate_bin=
9745if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9746 cmp -s conftest.i conftest.out \
9747 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9748fi
9749rm -f conftest.i conftest2.i conftest.out
9750test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9751fi
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9753$as_echo "$lt_cv_truncate_bin" >&6; }
9754
9755
9756
9757
9758
9759
9760
9761# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9762func_cc_basename ()
9763{
9764 for cc_temp in $*""; do
9765 case $cc_temp in
9766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9768 \-*) ;;
9769 *) break;;
9770 esac
9771 done
9772 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9773}
9774
9775# Check whether --enable-libtool-lock was given.
9776if test "${enable_libtool_lock+set}" = set; then :
9777 enableval=$enable_libtool_lock;
9778fi
9779
9780test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9781
9782# Some flags need to be propagated to the compiler or linker for good
9783# libtool support.
9784case $host in
9785ia64-*-hpux*)
9786 # Find out what ABI is being produced by ac_compile, and set mode
9787 # options accordingly.
9788 echo 'int i;' > conftest.$ac_ext
9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9790 (eval $ac_compile) 2>&5
9791 ac_status=$?
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }; then
9794 case `/usr/bin/file conftest.$ac_objext` in
9795 *ELF-32*)
9796 HPUX_IA64_MODE=32
9797 ;;
9798 *ELF-64*)
9799 HPUX_IA64_MODE=64
9800 ;;
9801 esac
9802 fi
9803 rm -rf conftest*
9804 ;;
9805*-*-irix6*)
9806 # Find out what ABI is being produced by ac_compile, and set linker
9807 # options accordingly.
9808 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9810 (eval $ac_compile) 2>&5
9811 ac_status=$?
9812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9813 test $ac_status = 0; }; then
9814 if test yes = "$lt_cv_prog_gnu_ld"; then
9815 case `/usr/bin/file conftest.$ac_objext` in
9816 *32-bit*)
9817 LD="${LD-ld} -melf32bsmip"
9818 ;;
9819 *N32*)
9820 LD="${LD-ld} -melf32bmipn32"
9821 ;;
9822 *64-bit*)
9823 LD="${LD-ld} -melf64bmip"
9824 ;;
9825 esac
9826 else
9827 case `/usr/bin/file conftest.$ac_objext` in
9828 *32-bit*)
9829 LD="${LD-ld} -32"
9830 ;;
9831 *N32*)
9832 LD="${LD-ld} -n32"
9833 ;;
9834 *64-bit*)
9835 LD="${LD-ld} -64"
9836 ;;
9837 esac
9838 fi
9839 fi
9840 rm -rf conftest*
9841 ;;
9842
9843mips64*-*linux*)
9844 # Find out what ABI is being produced by ac_compile, and set linker
9845 # options accordingly.
9846 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9848 (eval $ac_compile) 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851 test $ac_status = 0; }; then
9852 emul=elf
9853 case `/usr/bin/file conftest.$ac_objext` in
9854 *32-bit*)
9855 emul="${emul}32"
9856 ;;
9857 *64-bit*)
9858 emul="${emul}64"
9859 ;;
9860 esac
9861 case `/usr/bin/file conftest.$ac_objext` in
9862 *MSB*)
9863 emul="${emul}btsmip"
9864 ;;
9865 *LSB*)
9866 emul="${emul}ltsmip"
9867 ;;
9868 esac
9869 case `/usr/bin/file conftest.$ac_objext` in
9870 *N32*)
9871 emul="${emul}n32"
9872 ;;
9873 esac
9874 LD="${LD-ld} -m $emul"
9875 fi
9876 rm -rf conftest*
9877 ;;
9878
9879x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9880s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9881 # Find out what ABI is being produced by ac_compile, and set linker
9882 # options accordingly. Note that the listed cases only cover the
9883 # situations where additional linker options are needed (such as when
9884 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9885 # vice versa); the common cases where no linker options are needed do
9886 # not appear in the list.
9887 echo 'int i;' > conftest.$ac_ext
9888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9889 (eval $ac_compile) 2>&5
9890 ac_status=$?
9891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892 test $ac_status = 0; }; then
9893 case `/usr/bin/file conftest.o` in
9894 *32-bit*)
9895 case $host in
9896 x86_64-*kfreebsd*-gnu)
9897 LD="${LD-ld} -m elf_i386_fbsd"
9898 ;;
9899 x86_64-*linux*)
9900 case `/usr/bin/file conftest.o` in
9901 *x86-64*)
9902 LD="${LD-ld} -m elf32_x86_64"
9903 ;;
9904 *)
9905 LD="${LD-ld} -m elf_i386"
9906 ;;
9907 esac
9908 ;;
9909 powerpc64le-*linux*)
9910 LD="${LD-ld} -m elf32lppclinux"
9911 ;;
9912 powerpc64-*linux*)
9913 LD="${LD-ld} -m elf32ppclinux"
9914 ;;
9915 s390x-*linux*)
9916 LD="${LD-ld} -m elf_s390"
9917 ;;
9918 sparc64-*linux*)
9919 LD="${LD-ld} -m elf32_sparc"
9920 ;;
9921 esac
9922 ;;
9923 *64-bit*)
9924 case $host in
9925 x86_64-*kfreebsd*-gnu)
9926 LD="${LD-ld} -m elf_x86_64_fbsd"
9927 ;;
9928 x86_64-*linux*)
9929 LD="${LD-ld} -m elf_x86_64"
9930 ;;
9931 powerpcle-*linux*)
9932 LD="${LD-ld} -m elf64lppc"
9933 ;;
9934 powerpc-*linux*)
9935 LD="${LD-ld} -m elf64ppc"
9936 ;;
9937 s390*-*linux*|s390*-*tpf*)
9938 LD="${LD-ld} -m elf64_s390"
9939 ;;
9940 sparc*-*linux*)
9941 LD="${LD-ld} -m elf64_sparc"
9942 ;;
9943 esac
9944 ;;
9945 esac
9946 fi
9947 rm -rf conftest*
9948 ;;
9949
9950*-*-sco3.2v5*)
9951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9952 SAVE_CFLAGS=$CFLAGS
9953 CFLAGS="$CFLAGS -belf"
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9955$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9956if ${lt_cv_cc_needs_belf+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958else
9959 ac_ext=c
9960ac_cpp='$CPP $CPPFLAGS'
9961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963ac_compiler_gnu=$ac_cv_c_compiler_gnu
9964
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h. */
9967
9968int main (void)
9969{
9970
9971 ;
9972 return 0;
9973}
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976 lt_cv_cc_needs_belf=yes
9977else
9978 lt_cv_cc_needs_belf=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 ac_ext=c
9983ac_cpp='$CPP $CPPFLAGS'
9984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9986ac_compiler_gnu=$ac_cv_c_compiler_gnu
9987
9988fi
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9990$as_echo "$lt_cv_cc_needs_belf" >&6; }
9991 if test yes != "$lt_cv_cc_needs_belf"; then
9992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9993 CFLAGS=$SAVE_CFLAGS
9994 fi
9995 ;;
9996*-*solaris*)
9997 # Find out what ABI is being produced by ac_compile, and set linker
9998 # options accordingly.
9999 echo 'int i;' > conftest.$ac_ext
10000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10001 (eval $ac_compile) 2>&5
10002 ac_status=$?
10003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004 test $ac_status = 0; }; then
10005 case `/usr/bin/file conftest.o` in
10006 *64-bit*)
10007 case $lt_cv_prog_gnu_ld in
10008 yes*)
10009 case $host in
10010 i?86-*-solaris*|x86_64-*-solaris*)
10011 LD="${LD-ld} -m elf_x86_64"
10012 ;;
10013 sparc*-*-solaris*)
10014 LD="${LD-ld} -m elf64_sparc"
10015 ;;
10016 esac
10017 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10018 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10019 LD=${LD-ld}_sol2
10020 fi
10021 ;;
10022 *)
10023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10024 LD="${LD-ld} -64"
10025 fi
10026 ;;
10027 esac
10028 ;;
10029 esac
10030 fi
10031 rm -rf conftest*
10032 ;;
10033esac
10034
10035need_locks=$enable_libtool_lock
10036
10037if test -n "$ac_tool_prefix"; then
10038 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10039set dummy ${ac_tool_prefix}mt; ac_word=$2
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044else
10045 if test -n "$MANIFEST_TOOL"; then
10046 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060 done
10061IFS=$as_save_IFS
10062
10063fi
10064fi
10065MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10066if test -n "$MANIFEST_TOOL"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10068$as_echo "$MANIFEST_TOOL" >&6; }
10069else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074
10075fi
10076if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10077 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10078 # Extract the first word of "mt", so it can be a program name with args.
10079set dummy mt; ac_word=$2
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084else
10085 if test -n "$ac_ct_MANIFEST_TOOL"; then
10086 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099done
10100 done
10101IFS=$as_save_IFS
10102
10103fi
10104fi
10105ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10106if test -n "$ac_ct_MANIFEST_TOOL"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10108$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10109else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
10112fi
10113
10114 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10115 MANIFEST_TOOL=":"
10116 else
10117 case $cross_compiling:$ac_tool_warned in
10118yes:)
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121ac_tool_warned=yes ;;
10122esac
10123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10124 fi
10125else
10126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10127fi
10128
10129test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10131$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10132if ${lt_cv_path_mainfest_tool+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134else
10135 lt_cv_path_mainfest_tool=no
10136 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10137 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10138 cat conftest.err >&5
10139 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10140 lt_cv_path_mainfest_tool=yes
10141 fi
10142 rm -f conftest*
10143fi
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10145$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10146if test yes != "$lt_cv_path_mainfest_tool"; then
10147 MANIFEST_TOOL=:
10148fi
10149
10150
10151
10152
10153
10154
10155 case $host_os in
10156 rhapsody* | darwin*)
10157 if test -n "$ac_tool_prefix"; then
10158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10159set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161$as_echo_n "checking for $ac_word... " >&6; }
10162if ${ac_cv_prog_DSYMUTIL+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164else
10165 if test -n "$DSYMUTIL"; then
10166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10167else
10168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169for as_dir in $PATH
10170do
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10178 fi
10179done
10180 done
10181IFS=$as_save_IFS
10182
10183fi
10184fi
10185DSYMUTIL=$ac_cv_prog_DSYMUTIL
10186if test -n "$DSYMUTIL"; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10188$as_echo "$DSYMUTIL" >&6; }
10189else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10191$as_echo "no" >&6; }
10192fi
10193
10194
10195fi
10196if test -z "$ac_cv_prog_DSYMUTIL"; then
10197 ac_ct_DSYMUTIL=$DSYMUTIL
10198 # Extract the first word of "dsymutil", so it can be a program name with args.
10199set dummy dsymutil; ac_word=$2
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201$as_echo_n "checking for $ac_word... " >&6; }
10202if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204else
10205 if test -n "$ac_ct_DSYMUTIL"; then
10206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10207else
10208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219done
10220 done
10221IFS=$as_save_IFS
10222
10223fi
10224fi
10225ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10226if test -n "$ac_ct_DSYMUTIL"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10228$as_echo "$ac_ct_DSYMUTIL" >&6; }
10229else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
10232fi
10233
10234 if test "x$ac_ct_DSYMUTIL" = x; then
10235 DSYMUTIL=":"
10236 else
10237 case $cross_compiling:$ac_tool_warned in
10238yes:)
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10241ac_tool_warned=yes ;;
10242esac
10243 DSYMUTIL=$ac_ct_DSYMUTIL
10244 fi
10245else
10246 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10247fi
10248
10249 if test -n "$ac_tool_prefix"; then
10250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10251set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253$as_echo_n "checking for $ac_word... " >&6; }
10254if ${ac_cv_prog_NMEDIT+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256else
10257 if test -n "$NMEDIT"; then
10258 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10259else
10260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261for as_dir in $PATH
10262do
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10267 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 break 2
10270 fi
10271done
10272 done
10273IFS=$as_save_IFS
10274
10275fi
10276fi
10277NMEDIT=$ac_cv_prog_NMEDIT
10278if test -n "$NMEDIT"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10280$as_echo "$NMEDIT" >&6; }
10281else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283$as_echo "no" >&6; }
10284fi
10285
10286
10287fi
10288if test -z "$ac_cv_prog_NMEDIT"; then
10289 ac_ct_NMEDIT=$NMEDIT
10290 # Extract the first word of "nmedit", so it can be a program name with args.
10291set dummy nmedit; ac_word=$2
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293$as_echo_n "checking for $ac_word... " >&6; }
10294if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296else
10297 if test -n "$ac_ct_NMEDIT"; then
10298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10299else
10300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301for as_dir in $PATH
10302do
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10307 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10310 fi
10311done
10312 done
10313IFS=$as_save_IFS
10314
10315fi
10316fi
10317ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10318if test -n "$ac_ct_NMEDIT"; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10320$as_echo "$ac_ct_NMEDIT" >&6; }
10321else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
10324fi
10325
10326 if test "x$ac_ct_NMEDIT" = x; then
10327 NMEDIT=":"
10328 else
10329 case $cross_compiling:$ac_tool_warned in
10330yes:)
10331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10333ac_tool_warned=yes ;;
10334esac
10335 NMEDIT=$ac_ct_NMEDIT
10336 fi
10337else
10338 NMEDIT="$ac_cv_prog_NMEDIT"
10339fi
10340
10341 if test -n "$ac_tool_prefix"; then
10342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10343set dummy ${ac_tool_prefix}lipo; ac_word=$2
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if ${ac_cv_prog_LIPO+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348else
10349 if test -n "$LIPO"; then
10350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363done
10364 done
10365IFS=$as_save_IFS
10366
10367fi
10368fi
10369LIPO=$ac_cv_prog_LIPO
10370if test -n "$LIPO"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10372$as_echo "$LIPO" >&6; }
10373else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
10376fi
10377
10378
10379fi
10380if test -z "$ac_cv_prog_LIPO"; then
10381 ac_ct_LIPO=$LIPO
10382 # Extract the first word of "lipo", so it can be a program name with args.
10383set dummy lipo; ac_word=$2
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385$as_echo_n "checking for $ac_word... " >&6; }
10386if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388else
10389 if test -n "$ac_ct_LIPO"; then
10390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10391else
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_ac_ct_LIPO="lipo"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 break 2
10402 fi
10403done
10404 done
10405IFS=$as_save_IFS
10406
10407fi
10408fi
10409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10410if test -n "$ac_ct_LIPO"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10412$as_echo "$ac_ct_LIPO" >&6; }
10413else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415$as_echo "no" >&6; }
10416fi
10417
10418 if test "x$ac_ct_LIPO" = x; then
10419 LIPO=":"
10420 else
10421 case $cross_compiling:$ac_tool_warned in
10422yes:)
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10425ac_tool_warned=yes ;;
10426esac
10427 LIPO=$ac_ct_LIPO
10428 fi
10429else
10430 LIPO="$ac_cv_prog_LIPO"
10431fi
10432
10433 if test -n "$ac_tool_prefix"; then
10434 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10435set dummy ${ac_tool_prefix}otool; ac_word=$2
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
10438if ${ac_cv_prog_OTOOL+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440else
10441 if test -n "$OTOOL"; then
10442 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10443else
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10451 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10454 fi
10455done
10456 done
10457IFS=$as_save_IFS
10458
10459fi
10460fi
10461OTOOL=$ac_cv_prog_OTOOL
10462if test -n "$OTOOL"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10464$as_echo "$OTOOL" >&6; }
10465else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
10468fi
10469
10470
10471fi
10472if test -z "$ac_cv_prog_OTOOL"; then
10473 ac_ct_OTOOL=$OTOOL
10474 # Extract the first word of "otool", so it can be a program name with args.
10475set dummy otool; ac_word=$2
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477$as_echo_n "checking for $ac_word... " >&6; }
10478if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480else
10481 if test -n "$ac_ct_OTOOL"; then
10482 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10483else
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491 ac_cv_prog_ac_ct_OTOOL="otool"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10494 fi
10495done
10496 done
10497IFS=$as_save_IFS
10498
10499fi
10500fi
10501ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10502if test -n "$ac_ct_OTOOL"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10504$as_echo "$ac_ct_OTOOL" >&6; }
10505else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
10508fi
10509
10510 if test "x$ac_ct_OTOOL" = x; then
10511 OTOOL=":"
10512 else
10513 case $cross_compiling:$ac_tool_warned in
10514yes:)
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10517ac_tool_warned=yes ;;
10518esac
10519 OTOOL=$ac_ct_OTOOL
10520 fi
10521else
10522 OTOOL="$ac_cv_prog_OTOOL"
10523fi
10524
10525 if test -n "$ac_tool_prefix"; then
10526 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10527set dummy ${ac_tool_prefix}otool64; ac_word=$2
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
10530if ${ac_cv_prog_OTOOL64+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$OTOOL64"; then
10534 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548 done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553OTOOL64=$ac_cv_prog_OTOOL64
10554if test -n "$OTOOL64"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10556$as_echo "$OTOOL64" >&6; }
10557else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
10560fi
10561
10562
10563fi
10564if test -z "$ac_cv_prog_OTOOL64"; then
10565 ac_ct_OTOOL64=$OTOOL64
10566 # Extract the first word of "otool64", so it can be a program name with args.
10567set dummy otool64; ac_word=$2
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569$as_echo_n "checking for $ac_word... " >&6; }
10570if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10571 $as_echo_n "(cached) " >&6
10572else
10573 if test -n "$ac_ct_OTOOL64"; then
10574 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10575else
10576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577for as_dir in $PATH
10578do
10579 IFS=$as_save_IFS
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10583 ac_cv_prog_ac_ct_OTOOL64="otool64"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 break 2
10586 fi
10587done
10588 done
10589IFS=$as_save_IFS
10590
10591fi
10592fi
10593ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10594if test -n "$ac_ct_OTOOL64"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10596$as_echo "$ac_ct_OTOOL64" >&6; }
10597else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599$as_echo "no" >&6; }
10600fi
10601
10602 if test "x$ac_ct_OTOOL64" = x; then
10603 OTOOL64=":"
10604 else
10605 case $cross_compiling:$ac_tool_warned in
10606yes:)
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10609ac_tool_warned=yes ;;
10610esac
10611 OTOOL64=$ac_ct_OTOOL64
10612 fi
10613else
10614 OTOOL64="$ac_cv_prog_OTOOL64"
10615fi
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10644$as_echo_n "checking for -single_module linker flag... " >&6; }
10645if ${lt_cv_apple_cc_single_mod+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647else
10648 lt_cv_apple_cc_single_mod=no
10649 if test -z "$LT_MULTI_MODULE"; then
10650 # By default we will add the -single_module flag. You can override
10651 # by either setting the environment variable LT_MULTI_MODULE
10652 # non-empty at configure time, or by adding -multi_module to the
10653 # link flags.
10654 rm -rf libconftest.dylib*
10655 echo "int foo(void){return 1;}" > conftest.c
10656 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10657-dynamiclib -Wl,-single_module conftest.c" >&5
10658 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10659 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10660 _lt_result=$?
10661 # If there is a non-empty error log, and "single_module"
10662 # appears in it, assume the flag caused a linker warning
10663 if test -s conftest.err && $GREP single_module conftest.err; then
10664 cat conftest.err >&5
10665 # Otherwise, if the output was created with a 0 exit code from
10666 # the compiler, it worked.
10667 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10668 lt_cv_apple_cc_single_mod=yes
10669 else
10670 cat conftest.err >&5
10671 fi
10672 rm -rf libconftest.dylib*
10673 rm -f conftest.*
10674 fi
10675fi
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10677$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10678
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10680$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10681if ${lt_cv_ld_exported_symbols_list+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683else
10684 lt_cv_ld_exported_symbols_list=no
10685 save_LDFLAGS=$LDFLAGS
10686 echo "_main" > conftest.sym
10687 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689/* end confdefs.h. */
10690
10691int main (void)
10692{
10693
10694 ;
10695 return 0;
10696}
10697_ACEOF
10698if ac_fn_c_try_link "$LINENO"; then :
10699 lt_cv_ld_exported_symbols_list=yes
10700else
10701 lt_cv_ld_exported_symbols_list=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LDFLAGS=$save_LDFLAGS
10706
10707fi
10708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10709$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10710
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10712$as_echo_n "checking for -force_load linker flag... " >&6; }
10713if ${lt_cv_ld_force_load+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715else
10716 lt_cv_ld_force_load=no
10717 cat > conftest.c << _LT_EOF
10718int forced_loaded() { return 2;}
10719_LT_EOF
10720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10722 echo "$AR cru libconftest.a conftest.o" >&5
10723 $AR cru libconftest.a conftest.o 2>&5
10724 echo "$RANLIB libconftest.a" >&5
10725 $RANLIB libconftest.a 2>&5
10726 cat > conftest.c << _LT_EOF
10727int main() { return 0;}
10728_LT_EOF
10729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10731 _lt_result=$?
10732 if test -s conftest.err && $GREP force_load conftest.err; then
10733 cat conftest.err >&5
10734 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10735 lt_cv_ld_force_load=yes
10736 else
10737 cat conftest.err >&5
10738 fi
10739 rm -f conftest.err libconftest.a conftest conftest.c
10740 rm -rf conftest.dSYM
10741
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10744$as_echo "$lt_cv_ld_force_load" >&6; }
10745 case $host_os in
10746 rhapsody* | darwin1.[012])
10747 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10748 darwin1.*)
10749 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10750 darwin*) # darwin 5.x on
10751 # if running on 10.5 or later, the deployment target defaults
10752 # to the OS version, if on x86, and 10.4, the deployment
10753 # target defaults to 10.4. Don't you love it?
10754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10756 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10757 10.[012][,.]*)
10758 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10759 10.*)
10760 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10761 esac
10762 ;;
10763 esac
10764 if test yes = "$lt_cv_apple_cc_single_mod"; then
10765 _lt_dar_single_mod='$single_module'
10766 fi
10767 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10768 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10769 else
10770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10771 fi
10772 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10773 _lt_dsymutil='~$DSYMUTIL $lib || :'
10774 else
10775 _lt_dsymutil=
10776 fi
10777 ;;
10778 esac
10779
10780# func_munge_path_list VARIABLE PATH
10781# -----------------------------------
10782# VARIABLE is name of variable containing _space_ separated list of
10783# directories to be munged by the contents of PATH, which is string
10784# having a format:
10785# "DIR[:DIR]:"
10786# string "DIR[ DIR]" will be prepended to VARIABLE
10787# ":DIR[:DIR]"
10788# string "DIR[ DIR]" will be appended to VARIABLE
10789# "DIRP[:DIRP]::[DIRA:]DIRA"
10790# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10791# "DIRA[ DIRA]" will be appended to VARIABLE
10792# "DIR[:DIR]"
10793# VARIABLE will be replaced by "DIR[ DIR]"
10794func_munge_path_list ()
10795{
10796 case x$2 in
10797 x)
10798 ;;
10799 *:)
10800 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10801 ;;
10802 x:*)
10803 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10804 ;;
10805 *::*)
10806 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10807 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10808 ;;
10809 *)
10810 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10811 ;;
10812 esac
10813}
10814
Alex Deymo486467e2017-12-19 19:04:07 +010010815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10816$as_echo_n "checking for ANSI C header files... " >&6; }
10817if ${ac_cv_header_stdc+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819else
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821/* end confdefs.h. */
10822#include <stdlib.h>
10823#include <stdarg.h>
10824#include <string.h>
10825#include <float.h>
10826
10827int main (void)
10828{
10829
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834if ac_fn_c_try_compile "$LINENO"; then :
10835 ac_cv_header_stdc=yes
10836else
10837 ac_cv_header_stdc=no
10838fi
10839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840
10841if test $ac_cv_header_stdc = yes; then
10842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h. */
10845#include <string.h>
10846
10847_ACEOF
10848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10849 $EGREP "memchr" >/dev/null 2>&1; then :
10850
10851else
10852 ac_cv_header_stdc=no
10853fi
10854rm -f conftest*
10855
10856fi
10857
10858if test $ac_cv_header_stdc = yes; then
10859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h. */
10862#include <stdlib.h>
10863
10864_ACEOF
10865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866 $EGREP "free" >/dev/null 2>&1; then :
10867
10868else
10869 ac_cv_header_stdc=no
10870fi
10871rm -f conftest*
10872
10873fi
10874
10875if test $ac_cv_header_stdc = yes; then
10876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10877 if test "$cross_compiling" = yes; then :
10878 :
10879else
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h. */
10882#include <ctype.h>
10883#include <stdlib.h>
10884#if ((' ' & 0x0FF) == 0x020)
10885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10887#else
10888# define ISLOWER(c) \
10889 (('a' <= (c) && (c) <= 'i') \
10890 || ('j' <= (c) && (c) <= 'r') \
10891 || ('s' <= (c) && (c) <= 'z'))
10892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10893#endif
10894
10895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10896int
10897main ()
10898{
10899 int i;
10900 for (i = 0; i < 256; i++)
10901 if (XOR (islower (i), ISLOWER (i))
10902 || toupper (i) != TOUPPER (i))
10903 return 2;
10904 return 0;
10905}
10906_ACEOF
10907if ac_fn_c_try_run "$LINENO"; then :
10908
10909else
10910 ac_cv_header_stdc=no
10911fi
10912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10913 conftest.$ac_objext conftest.beam conftest.$ac_ext
10914fi
10915
10916fi
10917fi
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10919$as_echo "$ac_cv_header_stdc" >&6; }
10920if test $ac_cv_header_stdc = yes; then
10921
10922$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10923
10924fi
10925
10926# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10928 inttypes.h stdint.h unistd.h
10929do :
10930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10931ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10932"
10933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10934 cat >>confdefs.h <<_ACEOF
10935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10936_ACEOF
10937
10938fi
10939
10940done
10941
10942
Elliott Hughes82be86d2017-09-20 17:00:17 -070010943for ac_header in dlfcn.h
10944do :
10945 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10946"
10947if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10948 cat >>confdefs.h <<_ACEOF
10949#define HAVE_DLFCN_H 1
10950_ACEOF
10951
10952fi
10953
10954done
10955
10956# ------------------------------------ #
10957# Determine libtool default behavior #
10958# ------------------------------------ #
10959
10960#
10961# Default behavior is to enable shared and static libraries on systems
10962# where libtool knows how to build both library versions, and does not
10963# require separate configuration and build runs for each flavor.
10964#
10965
10966xc_lt_want_enable_shared='yes'
10967xc_lt_want_enable_static='yes'
10968
10969#
10970# User may have disabled shared or static libraries.
10971#
10972case "x$enable_shared" in # (
10973 xno)
10974 xc_lt_want_enable_shared='no'
10975 ;;
10976esac
10977case "x$enable_static" in # (
10978 xno)
10979 xc_lt_want_enable_static='no'
10980 ;;
10981esac
10982if test "x$xc_lt_want_enable_shared" = 'xno' &&
10983 test "x$xc_lt_want_enable_static" = 'xno'; then
10984 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10985fi
10986
10987#
10988# Default behavior on systems that require independent configuration
10989# and build runs for shared and static is to enable shared libraries
10990# and disable static ones. On these systems option '--disable-shared'
10991# must be used in order to build a proper static library.
10992#
10993
10994if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10995 test "x$xc_lt_want_enable_static" = 'xyes'; then
10996 case $host_os in # (
10997 pw32* | cegcc* | os2* | aix*)
10998 xc_lt_want_enable_static='no'
10999 ;;
11000 esac
11001fi
11002
11003#
11004# Make libtool aware of current shared and static library preferences
11005# taking in account that, depending on host characteristics, libtool
11006# may modify these option preferences later in this configure script.
11007#
11008
11009enable_shared=$xc_lt_want_enable_shared
11010enable_static=$xc_lt_want_enable_static
11011
11012#
11013# Default behavior is to build PIC objects for shared libraries and
11014# non-PIC objects for static libraries.
11015#
11016
11017xc_lt_want_with_pic='default'
11018
11019#
11020# User may have specified PIC preference.
11021#
11022
11023case "x$with_pic" in # ((
11024 xno)
11025 xc_lt_want_with_pic='no'
11026 ;;
11027 xyes)
11028 xc_lt_want_with_pic='yes'
11029 ;;
11030esac
11031
11032#
11033# Default behavior on some systems where building a shared library out
11034# of non-PIC compiled objects will fail with following linker error
11035# "relocation R_X86_64_32 can not be used when making a shared object"
11036# is to build PIC objects even for static libraries. This behavior may
11037# be overridden using 'configure --disable-shared --without-pic'.
11038#
11039
11040if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11041 case $host_cpu in # (
11042 x86_64 | amd64 | ia64)
11043 case $host_os in # (
11044 linux* | freebsd*)
11045 xc_lt_want_with_pic='yes'
11046 ;;
11047 esac
11048 ;;
11049 esac
11050fi
11051
11052#
11053# Make libtool aware of current PIC preference taking in account that,
11054# depending on host characteristics, libtool may modify PIC default
11055# behavior to fit host system idiosyncrasies later in this script.
11056#
11057
11058with_pic=$xc_lt_want_with_pic
11059
11060## ----------------------- ##
11061## Start of libtool code ##
11062## ----------------------- ##
11063
11064
11065
11066
11067# Set options
11068enable_win32_dll=yes
11069
11070case $host in
11071*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11072 if test -n "$ac_tool_prefix"; then
11073 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11074set dummy ${ac_tool_prefix}as; ac_word=$2
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076$as_echo_n "checking for $ac_word... " >&6; }
11077if ${ac_cv_prog_AS+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079else
11080 if test -n "$AS"; then
11081 ac_cv_prog_AS="$AS" # Let the user override the test.
11082else
11083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_AS="${ac_tool_prefix}as"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094done
11095 done
11096IFS=$as_save_IFS
11097
11098fi
11099fi
11100AS=$ac_cv_prog_AS
11101if test -n "$AS"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11103$as_echo "$AS" >&6; }
11104else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
11107fi
11108
11109
11110fi
11111if test -z "$ac_cv_prog_AS"; then
11112 ac_ct_AS=$AS
11113 # Extract the first word of "as", so it can be a program name with args.
11114set dummy as; ac_word=$2
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if ${ac_cv_prog_ac_ct_AS+:} false; then :
11118 $as_echo_n "(cached) " >&6
11119else
11120 if test -n "$ac_ct_AS"; then
11121 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_prog_ac_ct_AS="as"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134done
11135 done
11136IFS=$as_save_IFS
11137
11138fi
11139fi
11140ac_ct_AS=$ac_cv_prog_ac_ct_AS
11141if test -n "$ac_ct_AS"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11143$as_echo "$ac_ct_AS" >&6; }
11144else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148
11149 if test "x$ac_ct_AS" = x; then
11150 AS="false"
11151 else
11152 case $cross_compiling:$ac_tool_warned in
11153yes:)
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11156ac_tool_warned=yes ;;
11157esac
11158 AS=$ac_ct_AS
11159 fi
11160else
11161 AS="$ac_cv_prog_AS"
11162fi
11163
11164 if test -n "$ac_tool_prefix"; then
11165 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11166set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if ${ac_cv_prog_DLLTOOL+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171else
11172 if test -n "$DLLTOOL"; then
11173 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11174else
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186done
11187 done
11188IFS=$as_save_IFS
11189
11190fi
11191fi
11192DLLTOOL=$ac_cv_prog_DLLTOOL
11193if test -n "$DLLTOOL"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11195$as_echo "$DLLTOOL" >&6; }
11196else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
11199fi
11200
11201
11202fi
11203if test -z "$ac_cv_prog_DLLTOOL"; then
11204 ac_ct_DLLTOOL=$DLLTOOL
11205 # Extract the first word of "dlltool", so it can be a program name with args.
11206set dummy dlltool; ac_word=$2
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208$as_echo_n "checking for $ac_word... " >&6; }
11209if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211else
11212 if test -n "$ac_ct_DLLTOOL"; then
11213 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11214else
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227 done
11228IFS=$as_save_IFS
11229
11230fi
11231fi
11232ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11233if test -n "$ac_ct_DLLTOOL"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11235$as_echo "$ac_ct_DLLTOOL" >&6; }
11236else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
11239fi
11240
11241 if test "x$ac_ct_DLLTOOL" = x; then
11242 DLLTOOL="false"
11243 else
11244 case $cross_compiling:$ac_tool_warned in
11245yes:)
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11248ac_tool_warned=yes ;;
11249esac
11250 DLLTOOL=$ac_ct_DLLTOOL
11251 fi
11252else
11253 DLLTOOL="$ac_cv_prog_DLLTOOL"
11254fi
11255
11256 if test -n "$ac_tool_prefix"; then
11257 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11258set dummy ${ac_tool_prefix}objdump; ac_word=$2
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260$as_echo_n "checking for $ac_word... " >&6; }
11261if ${ac_cv_prog_OBJDUMP+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263else
11264 if test -n "$OBJDUMP"; then
11265 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11266else
11267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268for as_dir in $PATH
11269do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11277 fi
11278done
11279 done
11280IFS=$as_save_IFS
11281
11282fi
11283fi
11284OBJDUMP=$ac_cv_prog_OBJDUMP
11285if test -n "$OBJDUMP"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11287$as_echo "$OBJDUMP" >&6; }
11288else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
11291fi
11292
11293
11294fi
11295if test -z "$ac_cv_prog_OBJDUMP"; then
11296 ac_ct_OBJDUMP=$OBJDUMP
11297 # Extract the first word of "objdump", so it can be a program name with args.
11298set dummy objdump; ac_word=$2
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11300$as_echo_n "checking for $ac_word... " >&6; }
11301if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303else
11304 if test -n "$ac_ct_OBJDUMP"; then
11305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11306else
11307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308for as_dir in $PATH
11309do
11310 IFS=$as_save_IFS
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 break 2
11317 fi
11318done
11319 done
11320IFS=$as_save_IFS
11321
11322fi
11323fi
11324ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11325if test -n "$ac_ct_OBJDUMP"; then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11327$as_echo "$ac_ct_OBJDUMP" >&6; }
11328else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330$as_echo "no" >&6; }
11331fi
11332
11333 if test "x$ac_ct_OBJDUMP" = x; then
11334 OBJDUMP="false"
11335 else
11336 case $cross_compiling:$ac_tool_warned in
11337yes:)
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340ac_tool_warned=yes ;;
11341esac
11342 OBJDUMP=$ac_ct_OBJDUMP
11343 fi
11344else
11345 OBJDUMP="$ac_cv_prog_OBJDUMP"
11346fi
11347
11348 ;;
11349esac
11350
11351test -z "$AS" && AS=as
11352
11353
11354
11355
11356
11357test -z "$DLLTOOL" && DLLTOOL=dlltool
11358
11359
11360
11361
11362
11363test -z "$OBJDUMP" && OBJDUMP=objdump
11364
11365
11366
11367
11368
11369
11370
11371 enable_dlopen=no
11372
11373
11374
11375 # Check whether --enable-shared was given.
11376if test "${enable_shared+set}" = set; then :
11377 enableval=$enable_shared; p=${PACKAGE-default}
11378 case $enableval in
11379 yes) enable_shared=yes ;;
11380 no) enable_shared=no ;;
11381 *)
11382 enable_shared=no
11383 # Look at the argument we got. We use all the common list separators.
11384 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11385 for pkg in $enableval; do
11386 IFS=$lt_save_ifs
11387 if test "X$pkg" = "X$p"; then
11388 enable_shared=yes
11389 fi
11390 done
11391 IFS=$lt_save_ifs
11392 ;;
11393 esac
11394else
11395 enable_shared=yes
11396fi
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406 # Check whether --enable-static was given.
11407if test "${enable_static+set}" = set; then :
11408 enableval=$enable_static; p=${PACKAGE-default}
11409 case $enableval in
11410 yes) enable_static=yes ;;
11411 no) enable_static=no ;;
11412 *)
11413 enable_static=no
11414 # Look at the argument we got. We use all the common list separators.
11415 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11416 for pkg in $enableval; do
11417 IFS=$lt_save_ifs
11418 if test "X$pkg" = "X$p"; then
11419 enable_static=yes
11420 fi
11421 done
11422 IFS=$lt_save_ifs
11423 ;;
11424 esac
11425else
11426 enable_static=yes
11427fi
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438# Check whether --with-pic was given.
11439if test "${with_pic+set}" = set; then :
11440 withval=$with_pic; lt_p=${PACKAGE-default}
11441 case $withval in
11442 yes|no) pic_mode=$withval ;;
11443 *)
11444 pic_mode=default
11445 # Look at the argument we got. We use all the common list separators.
11446 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11447 for lt_pkg in $withval; do
11448 IFS=$lt_save_ifs
11449 if test "X$lt_pkg" = "X$lt_p"; then
11450 pic_mode=yes
11451 fi
11452 done
11453 IFS=$lt_save_ifs
11454 ;;
11455 esac
11456else
11457 pic_mode=default
11458fi
11459
11460
11461
11462
11463
11464
11465
11466
11467 # Check whether --enable-fast-install was given.
11468if test "${enable_fast_install+set}" = set; then :
11469 enableval=$enable_fast_install; p=${PACKAGE-default}
11470 case $enableval in
11471 yes) enable_fast_install=yes ;;
11472 no) enable_fast_install=no ;;
11473 *)
11474 enable_fast_install=no
11475 # Look at the argument we got. We use all the common list separators.
11476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11477 for pkg in $enableval; do
11478 IFS=$lt_save_ifs
11479 if test "X$pkg" = "X$p"; then
11480 enable_fast_install=yes
11481 fi
11482 done
11483 IFS=$lt_save_ifs
11484 ;;
11485 esac
11486else
11487 enable_fast_install=yes
11488fi
11489
11490
11491
11492
11493
11494
11495
11496
11497 shared_archive_member_spec=
11498case $host,$enable_shared in
11499power*-*-aix[5-9]*,yes)
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11501$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11502
11503# Check whether --with-aix-soname was given.
11504if test "${with_aix_soname+set}" = set; then :
11505 withval=$with_aix_soname; case $withval in
11506 aix|svr4|both)
11507 ;;
11508 *)
11509 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11510 ;;
11511 esac
11512 lt_cv_with_aix_soname=$with_aix_soname
11513else
11514 if ${lt_cv_with_aix_soname+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516else
11517 lt_cv_with_aix_soname=aix
11518fi
11519
11520 with_aix_soname=$lt_cv_with_aix_soname
11521fi
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11524$as_echo "$with_aix_soname" >&6; }
11525 if test aix != "$with_aix_soname"; then
11526 # For the AIX way of multilib, we name the shared archive member
11527 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11528 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11529 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11530 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11531 if test 64 = "${OBJECT_MODE-32}"; then
11532 shared_archive_member_spec=shr_64
11533 else
11534 shared_archive_member_spec=shr
11535 fi
11536 fi
11537 ;;
11538*)
11539 with_aix_soname=aix
11540 ;;
11541esac
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552# This can be used to rebuild libtool when needed
11553LIBTOOL_DEPS=$ltmain
11554
11555# Always use our own libtool.
11556LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587test -z "$LN_S" && LN_S="ln -s"
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602if test -n "${ZSH_VERSION+set}"; then
11603 setopt NO_GLOB_SUBST
11604fi
11605
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11607$as_echo_n "checking for objdir... " >&6; }
11608if ${lt_cv_objdir+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610else
11611 rm -f .libs 2>/dev/null
11612mkdir .libs 2>/dev/null
11613if test -d .libs; then
11614 lt_cv_objdir=.libs
11615else
11616 # MS-DOS does not allow filenames that begin with a dot.
11617 lt_cv_objdir=_libs
11618fi
11619rmdir .libs 2>/dev/null
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11622$as_echo "$lt_cv_objdir" >&6; }
11623objdir=$lt_cv_objdir
11624
11625
11626
11627
11628
11629cat >>confdefs.h <<_ACEOF
11630#define LT_OBJDIR "$lt_cv_objdir/"
11631_ACEOF
11632
11633
11634
11635
11636case $host_os in
11637aix3*)
11638 # AIX sometimes has problems with the GCC collect2 program. For some
11639 # reason, if we set the COLLECT_NAMES environment variable, the problems
11640 # vanish in a puff of smoke.
11641 if test set != "${COLLECT_NAMES+set}"; then
11642 COLLECT_NAMES=
11643 export COLLECT_NAMES
11644 fi
11645 ;;
11646esac
11647
11648# Global variables:
11649ofile=libtool
11650can_build_shared=yes
11651
11652# All known linkers require a '.a' archive for static linking (except MSVC,
11653# which needs '.lib').
11654libext=a
11655
11656with_gnu_ld=$lt_cv_prog_gnu_ld
11657
11658old_CC=$CC
11659old_CFLAGS=$CFLAGS
11660
11661# Set sane defaults for various variables
11662test -z "$CC" && CC=cc
11663test -z "$LTCC" && LTCC=$CC
11664test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11665test -z "$LD" && LD=ld
11666test -z "$ac_objext" && ac_objext=o
11667
11668func_cc_basename $compiler
11669cc_basename=$func_cc_basename_result
11670
11671
11672# Only perform the check for file, if the check method requires it
11673test -z "$MAGIC_CMD" && MAGIC_CMD=file
11674case $deplibs_check_method in
11675file_magic*)
11676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11678$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11679if ${lt_cv_path_MAGIC_CMD+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681else
11682 case $MAGIC_CMD in
11683[\\/*] | ?:[\\/]*)
11684 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11685 ;;
11686*)
11687 lt_save_MAGIC_CMD=$MAGIC_CMD
11688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11690 for ac_dir in $ac_dummy; do
11691 IFS=$lt_save_ifs
11692 test -z "$ac_dir" && ac_dir=.
11693 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11694 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11695 if test -n "$file_magic_test_file"; then
11696 case $deplibs_check_method in
11697 "file_magic "*)
11698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11699 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11701 $EGREP "$file_magic_regex" > /dev/null; then
11702 :
11703 else
11704 cat <<_LT_EOF 1>&2
11705
11706*** Warning: the command libtool uses to detect shared libraries,
11707*** $file_magic_cmd, produces output that libtool cannot recognize.
11708*** The result is that libtool may fail to recognize shared libraries
11709*** as such. This will affect the creation of libtool libraries that
11710*** depend on shared libraries, but programs linked with such libtool
11711*** libraries will work regardless of this problem. Nevertheless, you
11712*** may want to report the problem to your system manager and/or to
11713*** bug-libtool@gnu.org
11714
11715_LT_EOF
11716 fi ;;
11717 esac
11718 fi
11719 break
11720 fi
11721 done
11722 IFS=$lt_save_ifs
11723 MAGIC_CMD=$lt_save_MAGIC_CMD
11724 ;;
11725esac
11726fi
11727
11728MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11729if test -n "$MAGIC_CMD"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11731$as_echo "$MAGIC_CMD" >&6; }
11732else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
11735fi
11736
11737
11738
11739
11740
11741if test -z "$lt_cv_path_MAGIC_CMD"; then
11742 if test -n "$ac_tool_prefix"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11744$as_echo_n "checking for file... " >&6; }
11745if ${lt_cv_path_MAGIC_CMD+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747else
11748 case $MAGIC_CMD in
11749[\\/*] | ?:[\\/]*)
11750 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11751 ;;
11752*)
11753 lt_save_MAGIC_CMD=$MAGIC_CMD
11754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11756 for ac_dir in $ac_dummy; do
11757 IFS=$lt_save_ifs
11758 test -z "$ac_dir" && ac_dir=.
11759 if test -f "$ac_dir/file"; then
11760 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11761 if test -n "$file_magic_test_file"; then
11762 case $deplibs_check_method in
11763 "file_magic "*)
11764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11765 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11767 $EGREP "$file_magic_regex" > /dev/null; then
11768 :
11769 else
11770 cat <<_LT_EOF 1>&2
11771
11772*** Warning: the command libtool uses to detect shared libraries,
11773*** $file_magic_cmd, produces output that libtool cannot recognize.
11774*** The result is that libtool may fail to recognize shared libraries
11775*** as such. This will affect the creation of libtool libraries that
11776*** depend on shared libraries, but programs linked with such libtool
11777*** libraries will work regardless of this problem. Nevertheless, you
11778*** may want to report the problem to your system manager and/or to
11779*** bug-libtool@gnu.org
11780
11781_LT_EOF
11782 fi ;;
11783 esac
11784 fi
11785 break
11786 fi
11787 done
11788 IFS=$lt_save_ifs
11789 MAGIC_CMD=$lt_save_MAGIC_CMD
11790 ;;
11791esac
11792fi
11793
11794MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11795if test -n "$MAGIC_CMD"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11797$as_echo "$MAGIC_CMD" >&6; }
11798else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800$as_echo "no" >&6; }
11801fi
11802
11803
11804 else
11805 MAGIC_CMD=:
11806 fi
11807fi
11808
11809 fi
11810 ;;
11811esac
11812
11813# Use C for the default configuration in the libtool script
11814
11815lt_save_CC=$CC
11816ac_ext=c
11817ac_cpp='$CPP $CPPFLAGS'
11818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11820ac_compiler_gnu=$ac_cv_c_compiler_gnu
11821
11822
11823# Source file extension for C test sources.
11824ac_ext=c
11825
11826# Object file extension for compiled C test sources.
11827objext=o
11828objext=$objext
11829
11830# Code to be used in simple compile tests
11831lt_simple_compile_test_code="int some_variable = 0;"
11832
11833# Code to be used in simple link tests
11834lt_simple_link_test_code='int main(){return(0);}'
11835
11836
11837
11838
11839
11840
11841
11842# If no C compiler was specified, use CC.
11843LTCC=${LTCC-"$CC"}
11844
11845# If no C compiler flags were specified, use CFLAGS.
11846LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11847
11848# Allow CC to be a program name with arguments.
11849compiler=$CC
11850
11851# Save the default compiler, since it gets overwritten when the other
11852# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11853compiler_DEFAULT=$CC
11854
11855# save warnings/boilerplate of simple test code
11856ac_outfile=conftest.$ac_objext
11857echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11858eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11859_lt_compiler_boilerplate=`cat conftest.err`
11860$RM conftest*
11861
11862ac_outfile=conftest.$ac_objext
11863echo "$lt_simple_link_test_code" >conftest.$ac_ext
11864eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11865_lt_linker_boilerplate=`cat conftest.err`
11866$RM -r conftest*
11867
11868
11869## CAVEAT EMPTOR:
11870## There is no encapsulation within the following macros, do not change
11871## the running order or otherwise move them around unless you know exactly
11872## what you are doing...
11873if test -n "$compiler"; then
11874
11875lt_prog_compiler_no_builtin_flag=
11876
11877if test yes = "$GCC"; then
11878 case $cc_basename in
11879 nvcc*)
11880 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11881 *)
11882 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11883 esac
11884
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11886$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11887if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889else
11890 lt_cv_prog_compiler_rtti_exceptions=no
11891 ac_outfile=conftest.$ac_objext
11892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11893 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11894 # Insert the option either (1) after the last *FLAGS variable, or
11895 # (2) before a word containing "conftest.", or (3) at the end.
11896 # Note that $ac_compile itself does not contain backslashes and begins
11897 # with a dollar sign (not a hyphen), so the echo should work correctly.
11898 # The option is referenced via a variable to avoid confusing sed.
11899 lt_compile=`echo "$ac_compile" | $SED \
11900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11902 -e 's:$: $lt_compiler_flag:'`
11903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11904 (eval "$lt_compile" 2>conftest.err)
11905 ac_status=$?
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 if (exit $ac_status) && test -s "$ac_outfile"; then
11909 # The compiler can only warn and ignore the option if not recognized
11910 # So say no if there are warnings other than the usual output.
11911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11914 lt_cv_prog_compiler_rtti_exceptions=yes
11915 fi
11916 fi
11917 $RM conftest*
11918
11919fi
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11921$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11922
11923if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11925else
11926 :
11927fi
11928
11929fi
11930
11931
11932
11933
11934
11935
11936 lt_prog_compiler_wl=
11937lt_prog_compiler_pic=
11938lt_prog_compiler_static=
11939
11940
11941 if test yes = "$GCC"; then
11942 lt_prog_compiler_wl='-Wl,'
11943 lt_prog_compiler_static='-static'
11944
11945 case $host_os in
11946 aix*)
11947 # All AIX code is PIC.
11948 if test ia64 = "$host_cpu"; then
11949 # AIX 5 now supports IA64 processor
11950 lt_prog_compiler_static='-Bstatic'
11951 fi
11952 lt_prog_compiler_pic='-fPIC'
11953 ;;
11954
11955 amigaos*)
11956 case $host_cpu in
11957 powerpc)
11958 # see comment about AmigaOS4 .so support
11959 lt_prog_compiler_pic='-fPIC'
11960 ;;
11961 m68k)
11962 # FIXME: we need at least 68020 code to build shared libraries, but
11963 # adding the '-m68020' flag to GCC prevents building anything better,
11964 # like '-m68040'.
11965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11966 ;;
11967 esac
11968 ;;
11969
11970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11971 # PIC is the default for these OSes.
11972 ;;
11973
11974 mingw* | cygwin* | pw32* | os2* | cegcc*)
11975 # This hack is so that the source file can tell whether it is being
11976 # built for inclusion in a dll (and should export symbols for example).
11977 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11978 # (--disable-auto-import) libraries
11979 lt_prog_compiler_pic='-DDLL_EXPORT'
11980 case $host_os in
11981 os2*)
11982 lt_prog_compiler_static='$wl-static'
11983 ;;
11984 esac
11985 ;;
11986
11987 darwin* | rhapsody*)
11988 # PIC is the default on this platform
11989 # Common symbols not allowed in MH_DYLIB files
11990 lt_prog_compiler_pic='-fno-common'
11991 ;;
11992
11993 haiku*)
11994 # PIC is the default for Haiku.
11995 # The "-static" flag exists, but is broken.
11996 lt_prog_compiler_static=
11997 ;;
11998
11999 hpux*)
12000 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12001 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12002 # sets the default TLS model and affects inlining.
12003 case $host_cpu in
12004 hppa*64*)
12005 # +Z the default
12006 ;;
12007 *)
12008 lt_prog_compiler_pic='-fPIC'
12009 ;;
12010 esac
12011 ;;
12012
12013 interix[3-9]*)
12014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12015 # Instead, we relocate shared libraries at runtime.
12016 ;;
12017
12018 msdosdjgpp*)
12019 # Just because we use GCC doesn't mean we suddenly get shared libraries
12020 # on systems that don't support them.
12021 lt_prog_compiler_can_build_shared=no
12022 enable_shared=no
12023 ;;
12024
12025 *nto* | *qnx*)
12026 # QNX uses GNU C++, but need to define -shared option too, otherwise
12027 # it will coredump.
12028 lt_prog_compiler_pic='-fPIC -shared'
12029 ;;
12030
12031 sysv4*MP*)
12032 if test -d /usr/nec; then
12033 lt_prog_compiler_pic=-Kconform_pic
12034 fi
12035 ;;
12036
12037 *)
12038 lt_prog_compiler_pic='-fPIC'
12039 ;;
12040 esac
12041
12042 case $cc_basename in
12043 nvcc*) # Cuda Compiler Driver 2.2
12044 lt_prog_compiler_wl='-Xlinker '
12045 if test -n "$lt_prog_compiler_pic"; then
12046 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12047 fi
12048 ;;
12049 esac
12050 else
12051 # PORTME Check for flag to pass linker flags through the system compiler.
12052 case $host_os in
12053 aix*)
12054 lt_prog_compiler_wl='-Wl,'
12055 if test ia64 = "$host_cpu"; then
12056 # AIX 5 now supports IA64 processor
12057 lt_prog_compiler_static='-Bstatic'
12058 else
12059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12060 fi
12061 ;;
12062
12063 darwin* | rhapsody*)
12064 # PIC is the default on this platform
12065 # Common symbols not allowed in MH_DYLIB files
12066 lt_prog_compiler_pic='-fno-common'
12067 case $cc_basename in
12068 nagfor*)
12069 # NAG Fortran compiler
12070 lt_prog_compiler_wl='-Wl,-Wl,,'
12071 lt_prog_compiler_pic='-PIC'
12072 lt_prog_compiler_static='-Bstatic'
12073 ;;
12074 esac
12075 ;;
12076
12077 mingw* | cygwin* | pw32* | os2* | cegcc*)
12078 # This hack is so that the source file can tell whether it is being
12079 # built for inclusion in a dll (and should export symbols for example).
12080 lt_prog_compiler_pic='-DDLL_EXPORT'
12081 case $host_os in
12082 os2*)
12083 lt_prog_compiler_static='$wl-static'
12084 ;;
12085 esac
12086 ;;
12087
12088 hpux9* | hpux10* | hpux11*)
12089 lt_prog_compiler_wl='-Wl,'
12090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12091 # not for PA HP-UX.
12092 case $host_cpu in
12093 hppa*64*|ia64*)
12094 # +Z the default
12095 ;;
12096 *)
12097 lt_prog_compiler_pic='+Z'
12098 ;;
12099 esac
12100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12101 lt_prog_compiler_static='$wl-a ${wl}archive'
12102 ;;
12103
12104 irix5* | irix6* | nonstopux*)
12105 lt_prog_compiler_wl='-Wl,'
12106 # PIC (with -KPIC) is the default.
12107 lt_prog_compiler_static='-non_shared'
12108 ;;
12109
12110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12111 case $cc_basename in
12112 # old Intel for x86_64, which still supported -KPIC.
12113 ecc*)
12114 lt_prog_compiler_wl='-Wl,'
12115 lt_prog_compiler_pic='-KPIC'
12116 lt_prog_compiler_static='-static'
12117 ;;
12118 # icc used to be incompatible with GCC.
12119 # ICC 10 doesn't accept -KPIC any more.
12120 icc* | ifort*)
12121 lt_prog_compiler_wl='-Wl,'
12122 lt_prog_compiler_pic='-fPIC'
12123 lt_prog_compiler_static='-static'
12124 ;;
12125 # Lahey Fortran 8.1.
12126 lf95*)
12127 lt_prog_compiler_wl='-Wl,'
12128 lt_prog_compiler_pic='--shared'
12129 lt_prog_compiler_static='--static'
12130 ;;
12131 nagfor*)
12132 # NAG Fortran compiler
12133 lt_prog_compiler_wl='-Wl,-Wl,,'
12134 lt_prog_compiler_pic='-PIC'
12135 lt_prog_compiler_static='-Bstatic'
12136 ;;
12137 tcc*)
12138 # Fabrice Bellard et al's Tiny C Compiler
12139 lt_prog_compiler_wl='-Wl,'
12140 lt_prog_compiler_pic='-fPIC'
12141 lt_prog_compiler_static='-static'
12142 ;;
12143 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12144 # Portland Group compilers (*not* the Pentium gcc compiler,
12145 # which looks to be a dead project)
12146 lt_prog_compiler_wl='-Wl,'
12147 lt_prog_compiler_pic='-fpic'
12148 lt_prog_compiler_static='-Bstatic'
12149 ;;
12150 ccc*)
12151 lt_prog_compiler_wl='-Wl,'
12152 # All Alpha code is PIC.
12153 lt_prog_compiler_static='-non_shared'
12154 ;;
12155 xl* | bgxl* | bgf* | mpixl*)
12156 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12157 lt_prog_compiler_wl='-Wl,'
12158 lt_prog_compiler_pic='-qpic'
12159 lt_prog_compiler_static='-qstaticlink'
12160 ;;
12161 *)
12162 case `$CC -V 2>&1 | sed 5q` in
12163 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12165 lt_prog_compiler_pic='-KPIC'
12166 lt_prog_compiler_static='-Bstatic'
12167 lt_prog_compiler_wl=''
12168 ;;
12169 *Sun\ F* | *Sun*Fortran*)
12170 lt_prog_compiler_pic='-KPIC'
12171 lt_prog_compiler_static='-Bstatic'
12172 lt_prog_compiler_wl='-Qoption ld '
12173 ;;
12174 *Sun\ C*)
12175 # Sun C 5.9
12176 lt_prog_compiler_pic='-KPIC'
12177 lt_prog_compiler_static='-Bstatic'
12178 lt_prog_compiler_wl='-Wl,'
12179 ;;
12180 *Intel*\ [CF]*Compiler*)
12181 lt_prog_compiler_wl='-Wl,'
12182 lt_prog_compiler_pic='-fPIC'
12183 lt_prog_compiler_static='-static'
12184 ;;
12185 *Portland\ Group*)
12186 lt_prog_compiler_wl='-Wl,'
12187 lt_prog_compiler_pic='-fpic'
12188 lt_prog_compiler_static='-Bstatic'
12189 ;;
12190 esac
12191 ;;
12192 esac
12193 ;;
12194
12195 newsos6)
12196 lt_prog_compiler_pic='-KPIC'
12197 lt_prog_compiler_static='-Bstatic'
12198 ;;
12199
12200 *nto* | *qnx*)
12201 # QNX uses GNU C++, but need to define -shared option too, otherwise
12202 # it will coredump.
12203 lt_prog_compiler_pic='-fPIC -shared'
12204 ;;
12205
12206 osf3* | osf4* | osf5*)
12207 lt_prog_compiler_wl='-Wl,'
12208 # All OSF/1 code is PIC.
12209 lt_prog_compiler_static='-non_shared'
12210 ;;
12211
12212 rdos*)
12213 lt_prog_compiler_static='-non_shared'
12214 ;;
12215
12216 solaris*)
12217 lt_prog_compiler_pic='-KPIC'
12218 lt_prog_compiler_static='-Bstatic'
12219 case $cc_basename in
12220 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12221 lt_prog_compiler_wl='-Qoption ld ';;
12222 *)
12223 lt_prog_compiler_wl='-Wl,';;
12224 esac
12225 ;;
12226
12227 sunos4*)
12228 lt_prog_compiler_wl='-Qoption ld '
12229 lt_prog_compiler_pic='-PIC'
12230 lt_prog_compiler_static='-Bstatic'
12231 ;;
12232
12233 sysv4 | sysv4.2uw2* | sysv4.3*)
12234 lt_prog_compiler_wl='-Wl,'
12235 lt_prog_compiler_pic='-KPIC'
12236 lt_prog_compiler_static='-Bstatic'
12237 ;;
12238
12239 sysv4*MP*)
12240 if test -d /usr/nec; then
12241 lt_prog_compiler_pic='-Kconform_pic'
12242 lt_prog_compiler_static='-Bstatic'
12243 fi
12244 ;;
12245
12246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12247 lt_prog_compiler_wl='-Wl,'
12248 lt_prog_compiler_pic='-KPIC'
12249 lt_prog_compiler_static='-Bstatic'
12250 ;;
12251
12252 unicos*)
12253 lt_prog_compiler_wl='-Wl,'
12254 lt_prog_compiler_can_build_shared=no
12255 ;;
12256
12257 uts4*)
12258 lt_prog_compiler_pic='-pic'
12259 lt_prog_compiler_static='-Bstatic'
12260 ;;
12261
12262 *)
12263 lt_prog_compiler_can_build_shared=no
12264 ;;
12265 esac
12266 fi
12267
12268case $host_os in
12269 # For platforms that do not support PIC, -DPIC is meaningless:
12270 *djgpp*)
12271 lt_prog_compiler_pic=
12272 ;;
12273 *)
12274 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12275 ;;
12276esac
12277
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12279$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12280if ${lt_cv_prog_compiler_pic+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282else
12283 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12284fi
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12286$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12287lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12288
12289#
12290# Check to make sure the PIC flag actually works.
12291#
12292if test -n "$lt_prog_compiler_pic"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12294$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12295if ${lt_cv_prog_compiler_pic_works+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297else
12298 lt_cv_prog_compiler_pic_works=no
12299 ac_outfile=conftest.$ac_objext
12300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12301 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12302 # Insert the option either (1) after the last *FLAGS variable, or
12303 # (2) before a word containing "conftest.", or (3) at the end.
12304 # Note that $ac_compile itself does not contain backslashes and begins
12305 # with a dollar sign (not a hyphen), so the echo should work correctly.
12306 # The option is referenced via a variable to avoid confusing sed.
12307 lt_compile=`echo "$ac_compile" | $SED \
12308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12310 -e 's:$: $lt_compiler_flag:'`
12311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12312 (eval "$lt_compile" 2>conftest.err)
12313 ac_status=$?
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 if (exit $ac_status) && test -s "$ac_outfile"; then
12317 # The compiler can only warn and ignore the option if not recognized
12318 # So say no if there are warnings other than the usual output.
12319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12322 lt_cv_prog_compiler_pic_works=yes
12323 fi
12324 fi
12325 $RM conftest*
12326
12327fi
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12329$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12330
12331if test yes = "$lt_cv_prog_compiler_pic_works"; then
12332 case $lt_prog_compiler_pic in
12333 "" | " "*) ;;
12334 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12335 esac
12336else
12337 lt_prog_compiler_pic=
12338 lt_prog_compiler_can_build_shared=no
12339fi
12340
12341fi
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353#
12354# Check to make sure the static flag actually works.
12355#
12356wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12358$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12359if ${lt_cv_prog_compiler_static_works+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361else
12362 lt_cv_prog_compiler_static_works=no
12363 save_LDFLAGS=$LDFLAGS
12364 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12365 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12367 # The linker can only warn and ignore the option if not recognized
12368 # So say no if there are warnings
12369 if test -s conftest.err; then
12370 # Append any errors to the config.log.
12371 cat conftest.err 1>&5
12372 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12374 if diff conftest.exp conftest.er2 >/dev/null; then
12375 lt_cv_prog_compiler_static_works=yes
12376 fi
12377 else
12378 lt_cv_prog_compiler_static_works=yes
12379 fi
12380 fi
12381 $RM -r conftest*
12382 LDFLAGS=$save_LDFLAGS
12383
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12386$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12387
12388if test yes = "$lt_cv_prog_compiler_static_works"; then
12389 :
12390else
12391 lt_prog_compiler_static=
12392fi
12393
12394
12395
12396
12397
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12401$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12402if ${lt_cv_prog_compiler_c_o+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404else
12405 lt_cv_prog_compiler_c_o=no
12406 $RM -r conftest 2>/dev/null
12407 mkdir conftest
12408 cd conftest
12409 mkdir out
12410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12411
12412 lt_compiler_flag="-o out/conftest2.$ac_objext"
12413 # Insert the option either (1) after the last *FLAGS variable, or
12414 # (2) before a word containing "conftest.", or (3) at the end.
12415 # Note that $ac_compile itself does not contain backslashes and begins
12416 # with a dollar sign (not a hyphen), so the echo should work correctly.
12417 lt_compile=`echo "$ac_compile" | $SED \
12418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12420 -e 's:$: $lt_compiler_flag:'`
12421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12422 (eval "$lt_compile" 2>out/conftest.err)
12423 ac_status=$?
12424 cat out/conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12427 then
12428 # The compiler can only warn and ignore the option if not recognized
12429 # So say no if there are warnings
12430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12433 lt_cv_prog_compiler_c_o=yes
12434 fi
12435 fi
12436 chmod u+w . 2>&5
12437 $RM conftest*
12438 # SGI C++ compiler will create directory out/ii_files/ for
12439 # template instantiation
12440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12441 $RM out/* && rmdir out
12442 cd ..
12443 $RM -r conftest
12444 $RM conftest*
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12448$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12449
12450
12451
12452
12453
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12456$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12457if ${lt_cv_prog_compiler_c_o+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459else
12460 lt_cv_prog_compiler_c_o=no
12461 $RM -r conftest 2>/dev/null
12462 mkdir conftest
12463 cd conftest
12464 mkdir out
12465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12466
12467 lt_compiler_flag="-o out/conftest2.$ac_objext"
12468 # Insert the option either (1) after the last *FLAGS variable, or
12469 # (2) before a word containing "conftest.", or (3) at the end.
12470 # Note that $ac_compile itself does not contain backslashes and begins
12471 # with a dollar sign (not a hyphen), so the echo should work correctly.
12472 lt_compile=`echo "$ac_compile" | $SED \
12473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12475 -e 's:$: $lt_compiler_flag:'`
12476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12477 (eval "$lt_compile" 2>out/conftest.err)
12478 ac_status=$?
12479 cat out/conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12482 then
12483 # The compiler can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12488 lt_cv_prog_compiler_c_o=yes
12489 fi
12490 fi
12491 chmod u+w . 2>&5
12492 $RM conftest*
12493 # SGI C++ compiler will create directory out/ii_files/ for
12494 # template instantiation
12495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12496 $RM out/* && rmdir out
12497 cd ..
12498 $RM -r conftest
12499 $RM conftest*
12500
12501fi
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12503$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12504
12505
12506
12507
12508hard_links=nottested
12509if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12510 # do not overwrite the value of need_locks provided by the user
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12512$as_echo_n "checking if we can lock with hard links... " >&6; }
12513 hard_links=yes
12514 $RM conftest*
12515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12516 touch conftest.a
12517 ln conftest.a conftest.b 2>&5 || hard_links=no
12518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12520$as_echo "$hard_links" >&6; }
12521 if test no = "$hard_links"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12523$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12524 need_locks=warn
12525 fi
12526else
12527 need_locks=no
12528fi
12529
12530
12531
12532
12533
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12536$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12537
12538 runpath_var=
12539 allow_undefined_flag=
12540 always_export_symbols=no
12541 archive_cmds=
12542 archive_expsym_cmds=
12543 compiler_needs_object=no
12544 enable_shared_with_static_runtimes=no
12545 export_dynamic_flag_spec=
12546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12547 hardcode_automatic=no
12548 hardcode_direct=no
12549 hardcode_direct_absolute=no
12550 hardcode_libdir_flag_spec=
12551 hardcode_libdir_separator=
12552 hardcode_minus_L=no
12553 hardcode_shlibpath_var=unsupported
12554 inherit_rpath=no
12555 link_all_deplibs=unknown
12556 module_cmds=
12557 module_expsym_cmds=
12558 old_archive_from_new_cmds=
12559 old_archive_from_expsyms_cmds=
12560 thread_safe_flag_spec=
12561 whole_archive_flag_spec=
12562 # include_expsyms should be a list of space-separated symbols to be *always*
12563 # included in the symbol list
12564 include_expsyms=
12565 # exclude_expsyms can be an extended regexp of symbols to exclude
12566 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12567 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12568 # as well as any symbol that contains 'd'.
12569 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12570 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12571 # platforms (ab)use it in PIC code, but their linkers get confused if
12572 # the symbol is explicitly referenced. Since portable code cannot
12573 # rely on this symbol name, it's probably fine to never include it in
12574 # preloaded symbol tables.
12575 # Exclude shared library initialization/finalization symbols.
12576 extract_expsyms_cmds=
12577
12578 case $host_os in
12579 cygwin* | mingw* | pw32* | cegcc*)
12580 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12581 # When not using gcc, we currently assume that we are using
12582 # Microsoft Visual C++.
12583 if test yes != "$GCC"; then
12584 with_gnu_ld=no
12585 fi
12586 ;;
12587 interix*)
12588 # we just hope/assume this is gcc and not c89 (= MSVC++)
12589 with_gnu_ld=yes
12590 ;;
12591 openbsd* | bitrig*)
12592 with_gnu_ld=no
12593 ;;
12594 linux* | k*bsd*-gnu | gnu*)
12595 link_all_deplibs=no
12596 ;;
12597 esac
12598
12599 ld_shlibs=yes
12600
12601 # On some targets, GNU ld is compatible enough with the native linker
12602 # that we're better off using the native interface for both.
12603 lt_use_gnu_ld_interface=no
12604 if test yes = "$with_gnu_ld"; then
12605 case $host_os in
12606 aix*)
12607 # The AIX port of GNU ld has always aspired to compatibility
12608 # with the native linker. However, as the warning in the GNU ld
12609 # block says, versions before 2.19.5* couldn't really create working
12610 # shared libraries, regardless of the interface used.
12611 case `$LD -v 2>&1` in
12612 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12613 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12614 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12615 *)
12616 lt_use_gnu_ld_interface=yes
12617 ;;
12618 esac
12619 ;;
12620 *)
12621 lt_use_gnu_ld_interface=yes
12622 ;;
12623 esac
12624 fi
12625
12626 if test yes = "$lt_use_gnu_ld_interface"; then
12627 # If archive_cmds runs LD, not CC, wlarc should be empty
12628 wlarc='$wl'
12629
12630 # Set some defaults for GNU ld with shared library support. These
12631 # are reset later if shared libraries are not supported. Putting them
12632 # here allows them to be overridden if necessary.
12633 runpath_var=LD_RUN_PATH
12634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12635 export_dynamic_flag_spec='$wl--export-dynamic'
12636 # ancient GNU ld didn't support --whole-archive et. al.
12637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12638 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12639 else
12640 whole_archive_flag_spec=
12641 fi
12642 supports_anon_versioning=no
12643 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12644 *GNU\ gold*) supports_anon_versioning=yes ;;
12645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12648 *\ 2.11.*) ;; # other 2.11 versions
12649 *) supports_anon_versioning=yes ;;
12650 esac
12651
12652 # See if GNU ld supports shared libraries.
12653 case $host_os in
12654 aix[3-9]*)
12655 # On AIX/PPC, the GNU linker is very broken
12656 if test ia64 != "$host_cpu"; then
12657 ld_shlibs=no
12658 cat <<_LT_EOF 1>&2
12659
12660*** Warning: the GNU linker, at least up to release 2.19, is reported
12661*** to be unable to reliably create shared libraries on AIX.
12662*** Therefore, libtool is disabling shared libraries support. If you
12663*** really care for shared libraries, you may want to install binutils
12664*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12665*** You will then need to restart the configuration process.
12666
12667_LT_EOF
12668 fi
12669 ;;
12670
12671 amigaos*)
12672 case $host_cpu in
12673 powerpc)
12674 # see comment about AmigaOS4 .so support
12675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12676 archive_expsym_cmds=''
12677 ;;
12678 m68k)
12679 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)'
12680 hardcode_libdir_flag_spec='-L$libdir'
12681 hardcode_minus_L=yes
12682 ;;
12683 esac
12684 ;;
12685
12686 beos*)
12687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12688 allow_undefined_flag=unsupported
12689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12690 # support --undefined. This deserves some investigation. FIXME
12691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12692 else
12693 ld_shlibs=no
12694 fi
12695 ;;
12696
12697 cygwin* | mingw* | pw32* | cegcc*)
12698 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12699 # as there is no search path for DLLs.
12700 hardcode_libdir_flag_spec='-L$libdir'
12701 export_dynamic_flag_spec='$wl--export-all-symbols'
12702 allow_undefined_flag=unsupported
12703 always_export_symbols=no
12704 enable_shared_with_static_runtimes=yes
12705 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'
12706 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12707
12708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12710 # If the export-symbols file already is a .def file, use it as
12711 # is; otherwise, prepend EXPORTS...
12712 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12713 cp $export_symbols $output_objdir/$soname.def;
12714 else
12715 echo EXPORTS > $output_objdir/$soname.def;
12716 cat $export_symbols >> $output_objdir/$soname.def;
12717 fi~
12718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12719 else
12720 ld_shlibs=no
12721 fi
12722 ;;
12723
12724 haiku*)
12725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12726 link_all_deplibs=yes
12727 ;;
12728
12729 os2*)
12730 hardcode_libdir_flag_spec='-L$libdir'
12731 hardcode_minus_L=yes
12732 allow_undefined_flag=unsupported
12733 shrext_cmds=.dll
12734 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12737 $ECHO EXPORTS >> $output_objdir/$libname.def~
12738 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12740 emximp -o $lib $output_objdir/$libname.def'
12741 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12744 $ECHO EXPORTS >> $output_objdir/$libname.def~
12745 prefix_cmds="$SED"~
12746 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12747 prefix_cmds="$prefix_cmds -e 1d";
12748 fi~
12749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12750 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12751 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12752 emximp -o $lib $output_objdir/$libname.def'
12753 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12754 enable_shared_with_static_runtimes=yes
12755 ;;
12756
12757 interix[3-9]*)
12758 hardcode_direct=no
12759 hardcode_shlibpath_var=no
12760 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12761 export_dynamic_flag_spec='$wl-E'
12762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12763 # Instead, shared libraries are loaded at an image base (0x10000000 by
12764 # default) and relocated if they conflict, which is a slow very memory
12765 # consuming and fragmenting process. To avoid this, we pick a random,
12766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12769 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'
12770 ;;
12771
12772 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12773 tmp_diet=no
12774 if test linux-dietlibc = "$host_os"; then
12775 case $cc_basename in
12776 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12777 esac
12778 fi
12779 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12780 && test no = "$tmp_diet"
12781 then
12782 tmp_addflag=' $pic_flag'
12783 tmp_sharedflag='-shared'
12784 case $cc_basename,$host_cpu in
12785 pgcc*) # Portland Group C compiler
12786 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'
12787 tmp_addflag=' $pic_flag'
12788 ;;
12789 pgf77* | pgf90* | pgf95* | pgfortran*)
12790 # Portland Group f77 and f90 compilers
12791 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'
12792 tmp_addflag=' $pic_flag -Mnomain' ;;
12793 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12794 tmp_addflag=' -i_dynamic' ;;
12795 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12796 tmp_addflag=' -i_dynamic -nofor_main' ;;
12797 ifc* | ifort*) # Intel Fortran compiler
12798 tmp_addflag=' -nofor_main' ;;
12799 lf95*) # Lahey Fortran 8.1
12800 whole_archive_flag_spec=
12801 tmp_sharedflag='--shared' ;;
12802 nagfor*) # NAGFOR 5.3
12803 tmp_sharedflag='-Wl,-shared' ;;
12804 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12805 tmp_sharedflag='-qmkshrobj'
12806 tmp_addflag= ;;
12807 nvcc*) # Cuda Compiler Driver 2.2
12808 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'
12809 compiler_needs_object=yes
12810 ;;
12811 esac
12812 case `$CC -V 2>&1 | sed 5q` in
12813 *Sun\ C*) # Sun C 5.9
12814 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'
12815 compiler_needs_object=yes
12816 tmp_sharedflag='-G' ;;
12817 *Sun\ F*) # Sun Fortran 8.3
12818 tmp_sharedflag='-G' ;;
12819 esac
12820 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12821
12822 if test yes = "$supports_anon_versioning"; then
12823 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12825 echo "local: *; };" >> $output_objdir/$libname.ver~
12826 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12827 fi
12828
12829 case $cc_basename in
12830 tcc*)
12831 export_dynamic_flag_spec='-rdynamic'
12832 ;;
12833 xlf* | bgf* | bgxlf* | mpixlf*)
12834 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12835 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12837 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12838 if test yes = "$supports_anon_versioning"; then
12839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12841 echo "local: *; };" >> $output_objdir/$libname.ver~
12842 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12843 fi
12844 ;;
12845 esac
12846 else
12847 ld_shlibs=no
12848 fi
12849 ;;
12850
12851 netbsd* | netbsdelf*-gnu)
12852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12853 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12854 wlarc=
12855 else
12856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12858 fi
12859 ;;
12860
12861 solaris*)
12862 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12863 ld_shlibs=no
12864 cat <<_LT_EOF 1>&2
12865
12866*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12867*** create shared libraries on Solaris systems. Therefore, libtool
12868*** is disabling shared libraries support. We urge you to upgrade GNU
12869*** binutils to release 2.9.1 or newer. Another option is to modify
12870*** your PATH or compiler configuration so that the native linker is
12871*** used, and then restart.
12872
12873_LT_EOF
12874 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12876 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12877 else
12878 ld_shlibs=no
12879 fi
12880 ;;
12881
12882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12883 case `$LD -v 2>&1` in
12884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12885 ld_shlibs=no
12886 cat <<_LT_EOF 1>&2
12887
12888*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12889*** reliably create shared libraries on SCO systems. Therefore, libtool
12890*** is disabling shared libraries support. We urge you to upgrade GNU
12891*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12892*** your PATH or compiler configuration so that the native linker is
12893*** used, and then restart.
12894
12895_LT_EOF
12896 ;;
12897 *)
12898 # For security reasons, it is highly recommended that you always
12899 # use absolute paths for naming shared libraries, and exclude the
12900 # DT_RUNPATH tag from executables and libraries. But doing so
12901 # requires that you compile everything twice, which is a pain.
12902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12906 else
12907 ld_shlibs=no
12908 fi
12909 ;;
12910 esac
12911 ;;
12912
12913 sunos4*)
12914 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12915 wlarc=
12916 hardcode_direct=yes
12917 hardcode_shlibpath_var=no
12918 ;;
12919
12920 *)
12921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12923 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12924 else
12925 ld_shlibs=no
12926 fi
12927 ;;
12928 esac
12929
12930 if test no = "$ld_shlibs"; then
12931 runpath_var=
12932 hardcode_libdir_flag_spec=
12933 export_dynamic_flag_spec=
12934 whole_archive_flag_spec=
12935 fi
12936 else
12937 # PORTME fill in a description of your system's linker (not GNU ld)
12938 case $host_os in
12939 aix3*)
12940 allow_undefined_flag=unsupported
12941 always_export_symbols=yes
12942 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'
12943 # Note: this linker hardcodes the directories in LIBPATH if there
12944 # are no directories specified by -L.
12945 hardcode_minus_L=yes
12946 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12947 # Neither direct hardcoding nor static linking is supported with a
12948 # broken collect2.
12949 hardcode_direct=unsupported
12950 fi
12951 ;;
12952
12953 aix[4-9]*)
12954 if test ia64 = "$host_cpu"; then
12955 # On IA64, the linker does run time linking by default, so we don't
12956 # have to do anything special.
12957 aix_use_runtimelinking=no
12958 exp_sym_flag='-Bexport'
12959 no_entry_flag=
12960 else
12961 # If we're using GNU nm, then we don't want the "-C" option.
12962 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12963 # Without the "-l" option, or with the "-B" option, AIX nm treats
12964 # weak defined symbols like other global defined symbols, whereas
12965 # GNU nm marks them as "W".
12966 # While the 'weak' keyword is ignored in the Export File, we need
12967 # it in the Import File for the 'aix-soname' feature, so we have
12968 # to replace the "-B" option with "-P" for AIX nm.
12969 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12970 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'
12971 else
12972 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'
12973 fi
12974 aix_use_runtimelinking=no
12975
12976 # Test if we are trying to use run time linking or normal
12977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12978 # have runtime linking enabled, and use it for executables.
12979 # For shared libraries, we enable/disable runtime linking
12980 # depending on the kind of the shared library created -
12981 # when "with_aix_soname,aix_use_runtimelinking" is:
12982 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12983 # "aix,yes" lib.so shared, rtl:yes, for executables
12984 # lib.a static archive
12985 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12986 # lib.a(lib.so.V) shared, rtl:no, for executables
12987 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12988 # lib.a(lib.so.V) shared, rtl:no
12989 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12990 # lib.a static archive
12991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12992 for ld_flag in $LDFLAGS; do
12993 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12994 aix_use_runtimelinking=yes
12995 break
12996 fi
12997 done
12998 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12999 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13000 # so we don't have lib.a shared libs to link our executables.
13001 # We have to force runtime linking in this case.
13002 aix_use_runtimelinking=yes
13003 LDFLAGS="$LDFLAGS -Wl,-brtl"
13004 fi
13005 ;;
13006 esac
13007
13008 exp_sym_flag='-bexport'
13009 no_entry_flag='-bnoentry'
13010 fi
13011
13012 # When large executables or shared objects are built, AIX ld can
13013 # have problems creating the table of contents. If linking a library
13014 # or program results in "error TOC overflow" add -mminimal-toc to
13015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017
13018 archive_cmds=''
13019 hardcode_direct=yes
13020 hardcode_direct_absolute=yes
13021 hardcode_libdir_separator=':'
13022 link_all_deplibs=yes
13023 file_list_spec='$wl-f,'
13024 case $with_aix_soname,$aix_use_runtimelinking in
13025 aix,*) ;; # traditional, no import file
13026 svr4,* | *,yes) # use import file
13027 # The Import File defines what to hardcode.
13028 hardcode_direct=no
13029 hardcode_direct_absolute=no
13030 ;;
13031 esac
13032
13033 if test yes = "$GCC"; then
13034 case $host_os in aix4.[012]|aix4.[012].*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`$CC -print-prog-name=collect2`
13038 if test -f "$collect2name" &&
13039 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13040 then
13041 # We have reworked collect2
13042 :
13043 else
13044 # We have old collect2
13045 hardcode_direct=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L=yes
13050 hardcode_libdir_flag_spec='-L$libdir'
13051 hardcode_libdir_separator=
13052 fi
13053 ;;
13054 esac
13055 shared_flag='-shared'
13056 if test yes = "$aix_use_runtimelinking"; then
13057 shared_flag="$shared_flag "'$wl-G'
13058 fi
13059 # Need to ensure runtime linking is disabled for the traditional
13060 # shared library, or the linker may eventually find shared libraries
13061 # /with/ Import File - we do not want to mix them.
13062 shared_flag_aix='-shared'
13063 shared_flag_svr4='-shared $wl-G'
13064 else
13065 # not using gcc
13066 if test ia64 = "$host_cpu"; then
13067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13068 # chokes on -Wl,-G. The following line is correct:
13069 shared_flag='-G'
13070 else
13071 if test yes = "$aix_use_runtimelinking"; then
13072 shared_flag='$wl-G'
13073 else
13074 shared_flag='$wl-bM:SRE'
13075 fi
13076 shared_flag_aix='$wl-bM:SRE'
13077 shared_flag_svr4='$wl-G'
13078 fi
13079 fi
13080
13081 export_dynamic_flag_spec='$wl-bexpall'
13082 # It seems that -bexpall does not export symbols beginning with
13083 # underscore (_), so it is better to generate a list of symbols to export.
13084 always_export_symbols=yes
13085 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13086 # Warning - without using the other runtime loading flags (-brtl),
13087 # -berok will link without error, but may produce a broken library.
13088 allow_undefined_flag='-berok'
13089 # Determine the default libpath from the value encoded in an
13090 # empty executable.
13091 if test set = "${lt_cv_aix_libpath+set}"; then
13092 aix_libpath=$lt_cv_aix_libpath
13093else
13094 if ${lt_cv_aix_libpath_+:} false; then :
13095 $as_echo_n "(cached) " >&6
13096else
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h. */
13099
13100int main (void)
13101{
13102
13103 ;
13104 return 0;
13105}
13106_ACEOF
13107if ac_fn_c_try_link "$LINENO"; then :
13108
13109 lt_aix_libpath_sed='
13110 /Import File Strings/,/^$/ {
13111 /^0/ {
13112 s/^0 *\([^ ]*\) *$/\1/
13113 p
13114 }
13115 }'
13116 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117 # Check for a 64-bit object if we didn't find anything.
13118 if test -z "$lt_cv_aix_libpath_"; then
13119 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 fi
13121fi
13122rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 if test -z "$lt_cv_aix_libpath_"; then
13125 lt_cv_aix_libpath_=/usr/lib:/lib
13126 fi
13127
13128fi
13129
13130 aix_libpath=$lt_cv_aix_libpath_
13131fi
13132
13133 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13134 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
13135 else
13136 if test ia64 = "$host_cpu"; then
13137 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13138 allow_undefined_flag="-z nodefs"
13139 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"
13140 else
13141 # Determine the default libpath from the value encoded in an
13142 # empty executable.
13143 if test set = "${lt_cv_aix_libpath+set}"; then
13144 aix_libpath=$lt_cv_aix_libpath
13145else
13146 if ${lt_cv_aix_libpath_+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148else
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152int main (void)
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_link "$LINENO"; then :
13160
13161 lt_aix_libpath_sed='
13162 /Import File Strings/,/^$/ {
13163 /^0/ {
13164 s/^0 *\([^ ]*\) *$/\1/
13165 p
13166 }
13167 }'
13168 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13169 # Check for a 64-bit object if we didn't find anything.
13170 if test -z "$lt_cv_aix_libpath_"; then
13171 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172 fi
13173fi
13174rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 if test -z "$lt_cv_aix_libpath_"; then
13177 lt_cv_aix_libpath_=/usr/lib:/lib
13178 fi
13179
13180fi
13181
13182 aix_libpath=$lt_cv_aix_libpath_
13183fi
13184
13185 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13186 # Warning - without using the other run time loading flags,
13187 # -berok will link without error, but may produce a broken library.
13188 no_undefined_flag=' $wl-bernotok'
13189 allow_undefined_flag=' $wl-berok'
13190 if test yes = "$with_gnu_ld"; then
13191 # We only use this code for GNU lds that support --whole-archive.
13192 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13193 else
13194 # Exported symbols can be pulled into shared objects from archives
13195 whole_archive_flag_spec='$convenience'
13196 fi
13197 archive_cmds_need_lc=yes
13198 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13199 # -brtl affects multiple linker settings, -berok does not and is overridden later
13200 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13201 if test svr4 != "$with_aix_soname"; then
13202 # This is similar to how AIX traditionally builds its shared libraries.
13203 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'
13204 fi
13205 if test aix != "$with_aix_soname"; then
13206 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'
13207 else
13208 # used by -dlpreopen to get the symbols
13209 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13210 fi
13211 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13212 fi
13213 fi
13214 ;;
13215
13216 amigaos*)
13217 case $host_cpu in
13218 powerpc)
13219 # see comment about AmigaOS4 .so support
13220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13221 archive_expsym_cmds=''
13222 ;;
13223 m68k)
13224 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)'
13225 hardcode_libdir_flag_spec='-L$libdir'
13226 hardcode_minus_L=yes
13227 ;;
13228 esac
13229 ;;
13230
13231 bsdi[45]*)
13232 export_dynamic_flag_spec=-rdynamic
13233 ;;
13234
13235 cygwin* | mingw* | pw32* | cegcc*)
13236 # When not using gcc, we currently assume that we are using
13237 # Microsoft Visual C++.
13238 # hardcode_libdir_flag_spec is actually meaningless, as there is
13239 # no search path for DLLs.
13240 case $cc_basename in
13241 cl*)
13242 # Native MSVC
13243 hardcode_libdir_flag_spec=' '
13244 allow_undefined_flag=unsupported
13245 always_export_symbols=yes
13246 file_list_spec='@'
13247 # Tell ltmain to make .lib files, not .a files.
13248 libext=lib
13249 # Tell ltmain to make .dll files, not .so files.
13250 shrext_cmds=.dll
13251 # FIXME: Setting linknames here is a bad hack.
13252 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13253 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13254 cp "$export_symbols" "$output_objdir/$soname.def";
13255 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13256 else
13257 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13258 fi~
13259 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13260 linknames='
13261 # The linker will not automatically build a static lib if we build a DLL.
13262 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13263 enable_shared_with_static_runtimes=yes
13264 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13266 # Don't use ranlib
13267 old_postinstall_cmds='chmod 644 $oldlib'
13268 postlink_cmds='lt_outputfile="@OUTPUT@"~
13269 lt_tool_outputfile="@TOOL_OUTPUT@"~
13270 case $lt_outputfile in
13271 *.exe|*.EXE) ;;
13272 *)
13273 lt_outputfile=$lt_outputfile.exe
13274 lt_tool_outputfile=$lt_tool_outputfile.exe
13275 ;;
13276 esac~
13277 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13278 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13279 $RM "$lt_outputfile.manifest";
13280 fi'
13281 ;;
13282 *)
13283 # Assume MSVC wrapper
13284 hardcode_libdir_flag_spec=' '
13285 allow_undefined_flag=unsupported
13286 # Tell ltmain to make .lib files, not .a files.
13287 libext=lib
13288 # Tell ltmain to make .dll files, not .so files.
13289 shrext_cmds=.dll
13290 # FIXME: Setting linknames here is a bad hack.
13291 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13292 # The linker will automatically build a .lib file if we build a DLL.
13293 old_archive_from_new_cmds='true'
13294 # FIXME: Should let the user specify the lib program.
13295 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13296 enable_shared_with_static_runtimes=yes
13297 ;;
13298 esac
13299 ;;
13300
13301 darwin* | rhapsody*)
13302
13303
13304 archive_cmds_need_lc=no
13305 hardcode_direct=no
13306 hardcode_automatic=yes
13307 hardcode_shlibpath_var=unsupported
13308 if test yes = "$lt_cv_ld_force_load"; then
13309 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\"`'
13310
13311 else
13312 whole_archive_flag_spec=''
13313 fi
13314 link_all_deplibs=yes
13315 allow_undefined_flag=$_lt_dar_allow_undefined
13316 case $cc_basename in
13317 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13318 *) _lt_dar_can_shared=$GCC ;;
13319 esac
13320 if test yes = "$_lt_dar_can_shared"; then
13321 output_verbose_link_cmd=func_echo_all
13322 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13323 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13324 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"
13325 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"
13326
13327 else
13328 ld_shlibs=no
13329 fi
13330
13331 ;;
13332
13333 dgux*)
13334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec='-L$libdir'
13336 hardcode_shlibpath_var=no
13337 ;;
13338
13339 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13340 # support. Future versions do this automatically, but an explicit c++rt0.o
13341 # does not break anything, and helps significantly (at the cost of a little
13342 # extra space).
13343 freebsd2.2*)
13344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13345 hardcode_libdir_flag_spec='-R$libdir'
13346 hardcode_direct=yes
13347 hardcode_shlibpath_var=no
13348 ;;
13349
13350 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13351 freebsd2.*)
13352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13353 hardcode_direct=yes
13354 hardcode_minus_L=yes
13355 hardcode_shlibpath_var=no
13356 ;;
13357
13358 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13359 freebsd* | dragonfly*)
13360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13361 hardcode_libdir_flag_spec='-R$libdir'
13362 hardcode_direct=yes
13363 hardcode_shlibpath_var=no
13364 ;;
13365
13366 hpux9*)
13367 if test yes = "$GCC"; then
13368 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'
13369 else
13370 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'
13371 fi
13372 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13373 hardcode_libdir_separator=:
13374 hardcode_direct=yes
13375
13376 # hardcode_minus_L: Not really in the search PATH,
13377 # but as the default location of the library.
13378 hardcode_minus_L=yes
13379 export_dynamic_flag_spec='$wl-E'
13380 ;;
13381
13382 hpux10*)
13383 if test yes,no = "$GCC,$with_gnu_ld"; then
13384 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13385 else
13386 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13387 fi
13388 if test no = "$with_gnu_ld"; then
13389 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13390 hardcode_libdir_separator=:
13391 hardcode_direct=yes
13392 hardcode_direct_absolute=yes
13393 export_dynamic_flag_spec='$wl-E'
13394 # hardcode_minus_L: Not really in the search PATH,
13395 # but as the default location of the library.
13396 hardcode_minus_L=yes
13397 fi
13398 ;;
13399
13400 hpux11*)
13401 if test yes,no = "$GCC,$with_gnu_ld"; then
13402 case $host_cpu in
13403 hppa*64*)
13404 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 ;;
13406 ia64*)
13407 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13408 ;;
13409 *)
13410 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13411 ;;
13412 esac
13413 else
13414 case $host_cpu in
13415 hppa*64*)
13416 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 ;;
13418 ia64*)
13419 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13420 ;;
13421 *)
13422
13423 # Older versions of the 11.00 compiler do not understand -b yet
13424 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13426$as_echo_n "checking if $CC understands -b... " >&6; }
13427if ${lt_cv_prog_compiler__b+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429else
13430 lt_cv_prog_compiler__b=no
13431 save_LDFLAGS=$LDFLAGS
13432 LDFLAGS="$LDFLAGS -b"
13433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13435 # The linker can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test -s conftest.err; then
13438 # Append any errors to the config.log.
13439 cat conftest.err 1>&5
13440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13442 if diff conftest.exp conftest.er2 >/dev/null; then
13443 lt_cv_prog_compiler__b=yes
13444 fi
13445 else
13446 lt_cv_prog_compiler__b=yes
13447 fi
13448 fi
13449 $RM -r conftest*
13450 LDFLAGS=$save_LDFLAGS
13451
13452fi
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13454$as_echo "$lt_cv_prog_compiler__b" >&6; }
13455
13456if test yes = "$lt_cv_prog_compiler__b"; then
13457 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13458else
13459 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13460fi
13461
13462 ;;
13463 esac
13464 fi
13465 if test no = "$with_gnu_ld"; then
13466 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13467 hardcode_libdir_separator=:
13468
13469 case $host_cpu in
13470 hppa*64*|ia64*)
13471 hardcode_direct=no
13472 hardcode_shlibpath_var=no
13473 ;;
13474 *)
13475 hardcode_direct=yes
13476 hardcode_direct_absolute=yes
13477 export_dynamic_flag_spec='$wl-E'
13478
13479 # hardcode_minus_L: Not really in the search PATH,
13480 # but as the default location of the library.
13481 hardcode_minus_L=yes
13482 ;;
13483 esac
13484 fi
13485 ;;
13486
13487 irix5* | irix6* | nonstopux*)
13488 if test yes = "$GCC"; then
13489 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'
13490 # Try to use the -exported_symbol ld option, if it does not
13491 # work, assume that -exports_file does not work either and
13492 # implicitly export all symbols.
13493 # This should be the same for all languages, so no per-tag cache variable.
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13495$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13496if ${lt_cv_irix_exported_symbol+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498else
13499 save_LDFLAGS=$LDFLAGS
13500 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h. */
13503int foo (void) { return 0; }
13504_ACEOF
13505if ac_fn_c_try_link "$LINENO"; then :
13506 lt_cv_irix_exported_symbol=yes
13507else
13508 lt_cv_irix_exported_symbol=no
13509fi
13510rm -f core conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LDFLAGS=$save_LDFLAGS
13513fi
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13515$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13516 if test yes = "$lt_cv_irix_exported_symbol"; then
13517 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'
13518 fi
13519 link_all_deplibs=no
13520 else
13521 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'
13522 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'
13523 fi
13524 archive_cmds_need_lc='no'
13525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13526 hardcode_libdir_separator=:
13527 inherit_rpath=yes
13528 link_all_deplibs=yes
13529 ;;
13530
13531 linux*)
13532 case $cc_basename in
13533 tcc*)
13534 # Fabrice Bellard et al's Tiny C Compiler
13535 ld_shlibs=yes
13536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13537 ;;
13538 esac
13539 ;;
13540
13541 netbsd* | netbsdelf*-gnu)
13542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13544 else
13545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13546 fi
13547 hardcode_libdir_flag_spec='-R$libdir'
13548 hardcode_direct=yes
13549 hardcode_shlibpath_var=no
13550 ;;
13551
13552 newsos6)
13553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13554 hardcode_direct=yes
13555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13556 hardcode_libdir_separator=:
13557 hardcode_shlibpath_var=no
13558 ;;
13559
13560 *nto* | *qnx*)
13561 ;;
13562
13563 openbsd* | bitrig*)
13564 if test -f /usr/libexec/ld.so; then
13565 hardcode_direct=yes
13566 hardcode_shlibpath_var=no
13567 hardcode_direct_absolute=yes
13568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13571 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13572 export_dynamic_flag_spec='$wl-E'
13573 else
13574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13575 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13576 fi
13577 else
13578 ld_shlibs=no
13579 fi
13580 ;;
13581
13582 os2*)
13583 hardcode_libdir_flag_spec='-L$libdir'
13584 hardcode_minus_L=yes
13585 allow_undefined_flag=unsupported
13586 shrext_cmds=.dll
13587 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13588 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13589 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13590 $ECHO EXPORTS >> $output_objdir/$libname.def~
13591 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13592 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13593 emximp -o $lib $output_objdir/$libname.def'
13594 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13595 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13596 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13597 $ECHO EXPORTS >> $output_objdir/$libname.def~
13598 prefix_cmds="$SED"~
13599 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13600 prefix_cmds="$prefix_cmds -e 1d";
13601 fi~
13602 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13603 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13605 emximp -o $lib $output_objdir/$libname.def'
13606 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13607 enable_shared_with_static_runtimes=yes
13608 ;;
13609
13610 osf3*)
13611 if test yes = "$GCC"; then
13612 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13613 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'
13614 else
13615 allow_undefined_flag=' -expect_unresolved \*'
13616 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'
13617 fi
13618 archive_cmds_need_lc='no'
13619 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13620 hardcode_libdir_separator=:
13621 ;;
13622
13623 osf4* | osf5*) # as osf3* with the addition of -msym flag
13624 if test yes = "$GCC"; then
13625 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13626 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'
13627 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13628 else
13629 allow_undefined_flag=' -expect_unresolved \*'
13630 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'
13631 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~
13632 $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'
13633
13634 # Both c and cxx compiler support -rpath directly
13635 hardcode_libdir_flag_spec='-rpath $libdir'
13636 fi
13637 archive_cmds_need_lc='no'
13638 hardcode_libdir_separator=:
13639 ;;
13640
13641 solaris*)
13642 no_undefined_flag=' -z defs'
13643 if test yes = "$GCC"; then
13644 wlarc='$wl'
13645 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $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'
13648 else
13649 case `$CC -V 2>&1` in
13650 *"Compilers 5.0"*)
13651 wlarc=''
13652 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13654 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13655 ;;
13656 *)
13657 wlarc='$wl'
13658 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13660 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13661 ;;
13662 esac
13663 fi
13664 hardcode_libdir_flag_spec='-R$libdir'
13665 hardcode_shlibpath_var=no
13666 case $host_os in
13667 solaris2.[0-5] | solaris2.[0-5].*) ;;
13668 *)
13669 # The compiler driver will combine and reorder linker options,
13670 # but understands '-z linker_flag'. GCC discards it without '$wl',
13671 # but is careful enough not to reorder.
13672 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673 if test yes = "$GCC"; then
13674 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13675 else
13676 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13677 fi
13678 ;;
13679 esac
13680 link_all_deplibs=yes
13681 ;;
13682
13683 sunos4*)
13684 if test sequent = "$host_vendor"; then
13685 # Use $CC to link under sequent, because it throws in some extra .o
13686 # files that make .init and .fini sections work.
13687 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13688 else
13689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13690 fi
13691 hardcode_libdir_flag_spec='-L$libdir'
13692 hardcode_direct=yes
13693 hardcode_minus_L=yes
13694 hardcode_shlibpath_var=no
13695 ;;
13696
13697 sysv4)
13698 case $host_vendor in
13699 sni)
13700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13701 hardcode_direct=yes # is this really true???
13702 ;;
13703 siemens)
13704 ## LD is ld it makes a PLAMLIB
13705 ## CC just makes a GrossModule.
13706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13707 reload_cmds='$CC -r -o $output$reload_objs'
13708 hardcode_direct=no
13709 ;;
13710 motorola)
13711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13713 ;;
13714 esac
13715 runpath_var='LD_RUN_PATH'
13716 hardcode_shlibpath_var=no
13717 ;;
13718
13719 sysv4.3*)
13720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var=no
13722 export_dynamic_flag_spec='-Bexport'
13723 ;;
13724
13725 sysv4*MP*)
13726 if test -d /usr/nec; then
13727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13728 hardcode_shlibpath_var=no
13729 runpath_var=LD_RUN_PATH
13730 hardcode_runpath_var=yes
13731 ld_shlibs=yes
13732 fi
13733 ;;
13734
13735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13736 no_undefined_flag='$wl-z,text'
13737 archive_cmds_need_lc=no
13738 hardcode_shlibpath_var=no
13739 runpath_var='LD_RUN_PATH'
13740
13741 if test yes = "$GCC"; then
13742 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 else
13745 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 fi
13748 ;;
13749
13750 sysv5* | sco3.2v5* | sco5v6*)
13751 # Note: We CANNOT use -z defs as we might desire, because we do not
13752 # link with -lc, and that would cause any symbols used from libc to
13753 # always be unresolved, which means just about no library would
13754 # ever link correctly. If we're not using GNU ld we use -z text
13755 # though, which does catch some bad symbols but isn't as heavy-handed
13756 # as -z defs.
13757 no_undefined_flag='$wl-z,text'
13758 allow_undefined_flag='$wl-z,nodefs'
13759 archive_cmds_need_lc=no
13760 hardcode_shlibpath_var=no
13761 hardcode_libdir_flag_spec='$wl-R,$libdir'
13762 hardcode_libdir_separator=':'
13763 link_all_deplibs=yes
13764 export_dynamic_flag_spec='$wl-Bexport'
13765 runpath_var='LD_RUN_PATH'
13766
13767 if test yes = "$GCC"; then
13768 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 else
13771 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 fi
13774 ;;
13775
13776 uts4*)
13777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_libdir_flag_spec='-L$libdir'
13779 hardcode_shlibpath_var=no
13780 ;;
13781
13782 *)
13783 ld_shlibs=no
13784 ;;
13785 esac
13786
13787 if test sni = "$host_vendor"; then
13788 case $host in
13789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13790 export_dynamic_flag_spec='$wl-Blargedynsym'
13791 ;;
13792 esac
13793 fi
13794 fi
13795
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13797$as_echo "$ld_shlibs" >&6; }
13798test no = "$ld_shlibs" && can_build_shared=no
13799
13800with_gnu_ld=$with_gnu_ld
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816#
13817# Do we need to explicitly link libc?
13818#
13819case "x$archive_cmds_need_lc" in
13820x|xyes)
13821 # Assume -lc should be added
13822 archive_cmds_need_lc=yes
13823
13824 if test yes,yes = "$GCC,$enable_shared"; then
13825 case $archive_cmds in
13826 *'~'*)
13827 # FIXME: we may have to deal with multi-command sequences.
13828 ;;
13829 '$CC '*)
13830 # Test whether the compiler implicitly links with -lc since on some
13831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13832 # to ld, don't add -lc before -lgcc.
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13834$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13835if ${lt_cv_archive_cmds_need_lc+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837else
13838 $RM conftest*
13839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13840
13841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13842 (eval $ac_compile) 2>&5
13843 ac_status=$?
13844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845 test $ac_status = 0; } 2>conftest.err; then
13846 soname=conftest
13847 lib=conftest
13848 libobjs=conftest.$ac_objext
13849 deplibs=
13850 wl=$lt_prog_compiler_wl
13851 pic_flag=$lt_prog_compiler_pic
13852 compiler_flags=-v
13853 linker_flags=-v
13854 verstring=
13855 output_objdir=.
13856 libname=conftest
13857 lt_save_allow_undefined_flag=$allow_undefined_flag
13858 allow_undefined_flag=
13859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13863 test $ac_status = 0; }
13864 then
13865 lt_cv_archive_cmds_need_lc=no
13866 else
13867 lt_cv_archive_cmds_need_lc=yes
13868 fi
13869 allow_undefined_flag=$lt_save_allow_undefined_flag
13870 else
13871 cat conftest.err 1>&5
13872 fi
13873 $RM conftest*
13874
13875fi
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13877$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13878 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13879 ;;
13880 esac
13881 fi
13882 ;;
13883esac
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14037$as_echo_n "checking dynamic linker characteristics... " >&6; }
14038
14039if test yes = "$GCC"; then
14040 case $host_os in
14041 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14042 *) lt_awk_arg='/^libraries:/' ;;
14043 esac
14044 case $host_os in
14045 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14046 *) lt_sed_strip_eq='s|=/|/|g' ;;
14047 esac
14048 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14049 case $lt_search_path_spec in
14050 *\;*)
14051 # if the path contains ";" then we assume it to be the separator
14052 # otherwise default to the standard path separator (i.e. ":") - it is
14053 # assumed that no part of a normal pathname contains ";" but that should
14054 # okay in the real world where ";" in dirpaths is itself problematic.
14055 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14056 ;;
14057 *)
14058 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14059 ;;
14060 esac
14061 # Ok, now we have the path, separated by spaces, we can step through it
14062 # and add multilib dir if necessary...
14063 lt_tmp_lt_search_path_spec=
14064 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14065 # ...but if some path component already ends with the multilib dir we assume
14066 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14067 case "$lt_multi_os_dir; $lt_search_path_spec " in
14068 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14069 lt_multi_os_dir=
14070 ;;
14071 esac
14072 for lt_sys_path in $lt_search_path_spec; do
14073 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14075 elif test -n "$lt_multi_os_dir"; then
14076 test -d "$lt_sys_path" && \
14077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14078 fi
14079 done
14080 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14081BEGIN {RS = " "; FS = "/|\n";} {
14082 lt_foo = "";
14083 lt_count = 0;
14084 for (lt_i = NF; lt_i > 0; lt_i--) {
14085 if ($lt_i != "" && $lt_i != ".") {
14086 if ($lt_i == "..") {
14087 lt_count++;
14088 } else {
14089 if (lt_count == 0) {
14090 lt_foo = "/" $lt_i lt_foo;
14091 } else {
14092 lt_count--;
14093 }
14094 }
14095 }
14096 }
14097 if (lt_foo != "") { lt_freq[lt_foo]++; }
14098 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14099}'`
14100 # AWK program above erroneously prepends '/' to C:/dos/paths
14101 # for these hosts.
14102 case $host_os in
14103 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14104 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14105 esac
14106 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14107else
14108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14109fi
14110library_names_spec=
14111libname_spec='lib$name'
14112soname_spec=
14113shrext_cmds=.so
14114postinstall_cmds=
14115postuninstall_cmds=
14116finish_cmds=
14117finish_eval=
14118shlibpath_var=
14119shlibpath_overrides_runpath=unknown
14120version_type=none
14121dynamic_linker="$host_os ld.so"
14122sys_lib_dlsearch_path_spec="/lib /usr/lib"
14123need_lib_prefix=unknown
14124hardcode_into_libs=no
14125
14126# when you set need_version to no, make sure it does not cause -set_version
14127# flags to be left without arguments
14128need_version=unknown
14129
14130
14131
14132case $host_os in
14133aix3*)
14134 version_type=linux # correct to gnu/linux during the next big refactor
14135 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14136 shlibpath_var=LIBPATH
14137
14138 # AIX 3 has no versioning support, so we append a major version to the name.
14139 soname_spec='$libname$release$shared_ext$major'
14140 ;;
14141
14142aix[4-9]*)
14143 version_type=linux # correct to gnu/linux during the next big refactor
14144 need_lib_prefix=no
14145 need_version=no
14146 hardcode_into_libs=yes
14147 if test ia64 = "$host_cpu"; then
14148 # AIX 5 supports IA64
14149 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 else
14152 # With GCC up to 2.95.x, collect2 would create an import file
14153 # for dependence libraries. The import file would start with
14154 # the line '#! .'. This would cause the generated library to
14155 # depend on '.', always an invalid library. This was fixed in
14156 # development snapshots of GCC prior to 3.0.
14157 case $host_os in
14158 aix4 | aix4.[01] | aix4.[01].*)
14159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14160 echo ' yes '
14161 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14162 :
14163 else
14164 can_build_shared=no
14165 fi
14166 ;;
14167 esac
14168 # Using Import Files as archive members, it is possible to support
14169 # filename-based versioning of shared library archives on AIX. While
14170 # this would work for both with and without runtime linking, it will
14171 # prevent static linking of such archives. So we do filename-based
14172 # shared library versioning with .so extension only, which is used
14173 # when both runtime linking and shared linking is enabled.
14174 # Unfortunately, runtime linking may impact performance, so we do
14175 # not want this to be the default eventually. Also, we use the
14176 # versioned .so libs for executables only if there is the -brtl
14177 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14178 # To allow for filename-based versioning support, we need to create
14179 # libNAME.so.V as an archive file, containing:
14180 # *) an Import File, referring to the versioned filename of the
14181 # archive as well as the shared archive member, telling the
14182 # bitwidth (32 or 64) of that shared object, and providing the
14183 # list of exported symbols of that shared object, eventually
14184 # decorated with the 'weak' keyword
14185 # *) the shared object with the F_LOADONLY flag set, to really avoid
14186 # it being seen by the linker.
14187 # At run time we better use the real file rather than another symlink,
14188 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14189
14190 case $with_aix_soname,$aix_use_runtimelinking in
14191 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14192 # soname into executable. Probably we can add versioning support to
14193 # collect2, so additional links can be useful in future.
14194 aix,yes) # traditional libtool
14195 dynamic_linker='AIX unversionable lib.so'
14196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14197 # instead of lib<name>.a to let people know that these are not
14198 # typical AIX shared libraries.
14199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14200 ;;
14201 aix,no) # traditional AIX only
14202 dynamic_linker='AIX lib.a(lib.so.V)'
14203 # We preserve .a as extension for shared libraries through AIX4.2
14204 # and later when we are not doing run time linking.
14205 library_names_spec='$libname$release.a $libname.a'
14206 soname_spec='$libname$release$shared_ext$major'
14207 ;;
14208 svr4,*) # full svr4 only
14209 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14210 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14211 # We do not specify a path in Import Files, so LIBPATH fires.
14212 shlibpath_overrides_runpath=yes
14213 ;;
14214 *,yes) # both, prefer svr4
14215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14217 # unpreferred sharedlib libNAME.a needs extra handling
14218 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"'
14219 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"'
14220 # We do not specify a path in Import Files, so LIBPATH fires.
14221 shlibpath_overrides_runpath=yes
14222 ;;
14223 *,no) # both, prefer aix
14224 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14225 library_names_spec='$libname$release.a $libname.a'
14226 soname_spec='$libname$release$shared_ext$major'
14227 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14228 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)'
14229 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"'
14230 ;;
14231 esac
14232 shlibpath_var=LIBPATH
14233 fi
14234 ;;
14235
14236amigaos*)
14237 case $host_cpu in
14238 powerpc)
14239 # Since July 2007 AmigaOS4 officially supports .so libraries.
14240 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14242 ;;
14243 m68k)
14244 library_names_spec='$libname.ixlibrary $libname.a'
14245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14246 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'
14247 ;;
14248 esac
14249 ;;
14250
14251beos*)
14252 library_names_spec='$libname$shared_ext'
14253 dynamic_linker="$host_os ld.so"
14254 shlibpath_var=LIBRARY_PATH
14255 ;;
14256
14257bsdi[45]*)
14258 version_type=linux # correct to gnu/linux during the next big refactor
14259 need_version=no
14260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14261 soname_spec='$libname$release$shared_ext$major'
14262 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14263 shlibpath_var=LD_LIBRARY_PATH
14264 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14265 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14266 # the default ld.so.conf also contains /usr/contrib/lib and
14267 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14268 # libtool to hard-code these into programs
14269 ;;
14270
14271cygwin* | mingw* | pw32* | cegcc*)
14272 version_type=windows
14273 shrext_cmds=.dll
14274 need_version=no
14275 need_lib_prefix=no
14276
14277 case $GCC,$cc_basename in
14278 yes,*)
14279 # gcc
14280 library_names_spec='$libname.dll.a'
14281 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14282 postinstall_cmds='base_file=`basename \$file`~
14283 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14284 dldir=$destdir/`dirname \$dlpath`~
14285 test -d \$dldir || mkdir -p \$dldir~
14286 $install_prog $dir/$dlname \$dldir/$dlname~
14287 chmod a+x \$dldir/$dlname~
14288 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14289 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14290 fi'
14291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14292 dlpath=$dir/\$dldll~
14293 $RM \$dlpath'
14294 shlibpath_overrides_runpath=yes
14295
14296 case $host_os in
14297 cygwin*)
14298 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14299 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14300
14301 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14302 ;;
14303 mingw* | cegcc*)
14304 # MinGW DLLs use traditional 'lib' prefix
14305 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14306 ;;
14307 pw32*)
14308 # pw32 DLLs use 'pw' prefix rather than 'lib'
14309 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14310 ;;
14311 esac
14312 dynamic_linker='Win32 ld.exe'
14313 ;;
14314
14315 *,cl*)
14316 # Native MSVC
14317 libname_spec='$name'
14318 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14319 library_names_spec='$libname.dll.lib'
14320
14321 case $build_os in
14322 mingw*)
14323 sys_lib_search_path_spec=
14324 lt_save_ifs=$IFS
14325 IFS=';'
14326 for lt_path in $LIB
14327 do
14328 IFS=$lt_save_ifs
14329 # Let DOS variable expansion print the short 8.3 style file name.
14330 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14331 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14332 done
14333 IFS=$lt_save_ifs
14334 # Convert to MSYS style.
14335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14336 ;;
14337 cygwin*)
14338 # Convert to unix form, then to dos form, then back to unix form
14339 # but this time dos style (no spaces!) so that the unix form looks
14340 # like /cygdrive/c/PROGRA~1:/cygdr...
14341 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14342 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14343 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14344 ;;
14345 *)
14346 sys_lib_search_path_spec=$LIB
14347 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14348 # It is most probably a Windows format PATH.
14349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14350 else
14351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14352 fi
14353 # FIXME: find the short name or the path components, as spaces are
14354 # common. (e.g. "Program Files" -> "PROGRA~1")
14355 ;;
14356 esac
14357
14358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14359 postinstall_cmds='base_file=`basename \$file`~
14360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14361 dldir=$destdir/`dirname \$dlpath`~
14362 test -d \$dldir || mkdir -p \$dldir~
14363 $install_prog $dir/$dlname \$dldir/$dlname'
14364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14365 dlpath=$dir/\$dldll~
14366 $RM \$dlpath'
14367 shlibpath_overrides_runpath=yes
14368 dynamic_linker='Win32 link.exe'
14369 ;;
14370
14371 *)
14372 # Assume MSVC wrapper
14373 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14374 dynamic_linker='Win32 ld.exe'
14375 ;;
14376 esac
14377 # FIXME: first we should search . and the directory the executable is in
14378 shlibpath_var=PATH
14379 ;;
14380
14381darwin* | rhapsody*)
14382 dynamic_linker="$host_os dyld"
14383 version_type=darwin
14384 need_lib_prefix=no
14385 need_version=no
14386 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14387 soname_spec='$libname$release$major$shared_ext'
14388 shlibpath_overrides_runpath=yes
14389 shlibpath_var=DYLD_LIBRARY_PATH
14390 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14391
14392 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14394 ;;
14395
14396dgux*)
14397 version_type=linux # correct to gnu/linux during the next big refactor
14398 need_lib_prefix=no
14399 need_version=no
14400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14401 soname_spec='$libname$release$shared_ext$major'
14402 shlibpath_var=LD_LIBRARY_PATH
14403 ;;
14404
14405freebsd* | dragonfly*)
14406 # DragonFly does not have aout. When/if they implement a new
14407 # versioning mechanism, adjust this.
14408 if test -x /usr/bin/objformat; then
14409 objformat=`/usr/bin/objformat`
14410 else
14411 case $host_os in
14412 freebsd[23].*) objformat=aout ;;
14413 *) objformat=elf ;;
14414 esac
14415 fi
14416 version_type=freebsd-$objformat
14417 case $version_type in
14418 freebsd-elf*)
14419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14420 soname_spec='$libname$release$shared_ext$major'
14421 need_version=no
14422 need_lib_prefix=no
14423 ;;
14424 freebsd-*)
14425 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14426 need_version=yes
14427 ;;
14428 esac
14429 shlibpath_var=LD_LIBRARY_PATH
14430 case $host_os in
14431 freebsd2.*)
14432 shlibpath_overrides_runpath=yes
14433 ;;
14434 freebsd3.[01]* | freebsdelf3.[01]*)
14435 shlibpath_overrides_runpath=yes
14436 hardcode_into_libs=yes
14437 ;;
14438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14440 shlibpath_overrides_runpath=no
14441 hardcode_into_libs=yes
14442 ;;
14443 *) # from 4.6 on, and DragonFly
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14446 ;;
14447 esac
14448 ;;
14449
14450haiku*)
14451 version_type=linux # correct to gnu/linux during the next big refactor
14452 need_lib_prefix=no
14453 need_version=no
14454 dynamic_linker="$host_os runtime_loader"
14455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14456 soname_spec='$libname$release$shared_ext$major'
14457 shlibpath_var=LIBRARY_PATH
14458 shlibpath_overrides_runpath=no
14459 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14460 hardcode_into_libs=yes
14461 ;;
14462
14463hpux9* | hpux10* | hpux11*)
14464 # Give a soname corresponding to the major version so that dld.sl refuses to
14465 # link against other versions.
14466 version_type=sunos
14467 need_lib_prefix=no
14468 need_version=no
14469 case $host_cpu in
14470 ia64*)
14471 shrext_cmds='.so'
14472 hardcode_into_libs=yes
14473 dynamic_linker="$host_os dld.so"
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477 soname_spec='$libname$release$shared_ext$major'
14478 if test 32 = "$HPUX_IA64_MODE"; then
14479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14480 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14481 else
14482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14483 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14484 fi
14485 ;;
14486 hppa*64*)
14487 shrext_cmds='.sl'
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.sl"
14490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493 soname_spec='$libname$release$shared_ext$major'
14494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14496 ;;
14497 *)
14498 shrext_cmds='.sl'
14499 dynamic_linker="$host_os dld.sl"
14500 shlibpath_var=SHLIB_PATH
14501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14503 soname_spec='$libname$release$shared_ext$major'
14504 ;;
14505 esac
14506 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14507 postinstall_cmds='chmod 555 $lib'
14508 # or fails outright, so override atomically:
14509 install_override_mode=555
14510 ;;
14511
14512interix[3-9]*)
14513 version_type=linux # correct to gnu/linux during the next big refactor
14514 need_lib_prefix=no
14515 need_version=no
14516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14517 soname_spec='$libname$release$shared_ext$major'
14518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 shlibpath_overrides_runpath=no
14521 hardcode_into_libs=yes
14522 ;;
14523
14524irix5* | irix6* | nonstopux*)
14525 case $host_os in
14526 nonstopux*) version_type=nonstopux ;;
14527 *)
14528 if test yes = "$lt_cv_prog_gnu_ld"; then
14529 version_type=linux # correct to gnu/linux during the next big refactor
14530 else
14531 version_type=irix
14532 fi ;;
14533 esac
14534 need_lib_prefix=no
14535 need_version=no
14536 soname_spec='$libname$release$shared_ext$major'
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14538 case $host_os in
14539 irix5* | nonstopux*)
14540 libsuff= shlibsuff=
14541 ;;
14542 *)
14543 case $LD in # libtool.m4 will add one of these switches to LD
14544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14545 libsuff= shlibsuff= libmagic=32-bit;;
14546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14547 libsuff=32 shlibsuff=N32 libmagic=N32;;
14548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14550 *) libsuff= shlibsuff= libmagic=never-match;;
14551 esac
14552 ;;
14553 esac
14554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14555 shlibpath_overrides_runpath=no
14556 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14557 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14558 hardcode_into_libs=yes
14559 ;;
14560
14561# No shared lib support for Linux oldld, aout, or coff.
14562linux*oldld* | linux*aout* | linux*coff*)
14563 dynamic_linker=no
14564 ;;
14565
14566linux*android*)
14567 version_type=none # Android doesn't support versioned libraries.
14568 need_lib_prefix=no
14569 need_version=no
14570 library_names_spec='$libname$release$shared_ext'
14571 soname_spec='$libname$release$shared_ext'
14572 finish_cmds=
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=yes
14575
14576 # This implies no fast_install, which is unacceptable.
14577 # Some rework will be needed to allow for fast_install
14578 # before this can be enabled.
14579 hardcode_into_libs=yes
14580
14581 dynamic_linker='Android linker'
14582 # Don't embed -rpath directories since the linker doesn't support them.
14583 hardcode_libdir_flag_spec='-L$libdir'
14584 ;;
14585
14586# This must be glibc/ELF.
14587linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14588 version_type=linux # correct to gnu/linux during the next big refactor
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14592 soname_spec='$libname$release$shared_ext$major'
14593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=no
14596
14597 # Some binutils ld are patched to set DT_RUNPATH
14598 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600else
14601 lt_cv_shlibpath_overrides_runpath=no
14602 save_LDFLAGS=$LDFLAGS
14603 save_libdir=$libdir
14604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607/* end confdefs.h. */
14608
14609int main (void)
14610{
14611
14612 ;
14613 return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_link "$LINENO"; then :
14617 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14618 lt_cv_shlibpath_overrides_runpath=yes
14619fi
14620fi
14621rm -f core conftest.err conftest.$ac_objext \
14622 conftest$ac_exeext conftest.$ac_ext
14623 LDFLAGS=$save_LDFLAGS
14624 libdir=$save_libdir
14625
14626fi
14627
14628 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14629
14630 # This implies no fast_install, which is unacceptable.
14631 # Some rework will be needed to allow for fast_install
14632 # before this can be enabled.
14633 hardcode_into_libs=yes
14634
14635 # Ideally, we could use ldconfig to report *all* directores which are
14636 # searched for libraries, however this is still not possible. Aside from not
14637 # being certain /sbin/ldconfig is available, command
14638 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14639 # even though it is searched at run-time. Try to do the best guess by
14640 # appending ld.so.conf contents (and includes) to the search path.
14641 if test -f /etc/ld.so.conf; then
14642 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' ' '`
14643 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14644 fi
14645
14646 # We used to test for /lib/ld.so.1 and disable shared libraries on
14647 # powerpc, because MkLinux only supported shared libraries with the
14648 # GNU dynamic linker. Since this was broken with cross compilers,
14649 # most powerpc-linux boxes support dynamic linking these days and
14650 # people can always --disable-shared, the test was removed, and we
14651 # assume the GNU/Linux dynamic linker is in use.
14652 dynamic_linker='GNU/Linux ld.so'
14653 ;;
14654
14655netbsdelf*-gnu)
14656 version_type=linux
14657 need_lib_prefix=no
14658 need_version=no
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 shlibpath_overrides_runpath=no
14663 hardcode_into_libs=yes
14664 dynamic_linker='NetBSD ld.elf_so'
14665 ;;
14666
14667netbsd*)
14668 version_type=sunos
14669 need_lib_prefix=no
14670 need_version=no
14671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14674 dynamic_linker='NetBSD (a.out) ld.so'
14675 else
14676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14677 soname_spec='$libname$release$shared_ext$major'
14678 dynamic_linker='NetBSD ld.elf_so'
14679 fi
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes
14682 hardcode_into_libs=yes
14683 ;;
14684
14685newsos6)
14686 version_type=linux # correct to gnu/linux during the next big refactor
14687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 ;;
14691
14692*nto* | *qnx*)
14693 version_type=qnx
14694 need_lib_prefix=no
14695 need_version=no
14696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14697 soname_spec='$libname$release$shared_ext$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700 hardcode_into_libs=yes
14701 dynamic_linker='ldqnx.so'
14702 ;;
14703
14704openbsd* | bitrig*)
14705 version_type=sunos
14706 sys_lib_dlsearch_path_spec=/usr/lib
14707 need_lib_prefix=no
14708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14709 need_version=no
14710 else
14711 need_version=yes
14712 fi
14713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=yes
14717 ;;
14718
14719os2*)
14720 libname_spec='$name'
14721 version_type=windows
14722 shrext_cmds=.dll
14723 need_version=no
14724 need_lib_prefix=no
14725 # OS/2 can only load a DLL with a base name of 8 characters or less.
14726 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14727 v=$($ECHO $release$versuffix | tr -d .-);
14728 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14729 $ECHO $n$v`$shared_ext'
14730 library_names_spec='${libname}_dll.$libext'
14731 dynamic_linker='OS/2 ld.exe'
14732 shlibpath_var=BEGINLIBPATH
14733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14735 postinstall_cmds='base_file=`basename \$file`~
14736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14737 dldir=$destdir/`dirname \$dlpath`~
14738 test -d \$dldir || mkdir -p \$dldir~
14739 $install_prog $dir/$dlname \$dldir/$dlname~
14740 chmod a+x \$dldir/$dlname~
14741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14743 fi'
14744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14745 dlpath=$dir/\$dldll~
14746 $RM \$dlpath'
14747 ;;
14748
14749osf3* | osf4* | osf5*)
14750 version_type=osf
14751 need_lib_prefix=no
14752 need_version=no
14753 soname_spec='$libname$release$shared_ext$major'
14754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14758 ;;
14759
14760rdos*)
14761 dynamic_linker=no
14762 ;;
14763
14764solaris*)
14765 version_type=linux # correct to gnu/linux during the next big refactor
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14769 soname_spec='$libname$release$shared_ext$major'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=yes
14772 hardcode_into_libs=yes
14773 # ldd complains unless libraries are executable
14774 postinstall_cmds='chmod +x $lib'
14775 ;;
14776
14777sunos4*)
14778 version_type=sunos
14779 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14780 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=yes
14783 if test yes = "$with_gnu_ld"; then
14784 need_lib_prefix=no
14785 fi
14786 need_version=yes
14787 ;;
14788
14789sysv4 | sysv4.3*)
14790 version_type=linux # correct to gnu/linux during the next big refactor
14791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14792 soname_spec='$libname$release$shared_ext$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 case $host_vendor in
14795 sni)
14796 shlibpath_overrides_runpath=no
14797 need_lib_prefix=no
14798 runpath_var=LD_RUN_PATH
14799 ;;
14800 siemens)
14801 need_lib_prefix=no
14802 ;;
14803 motorola)
14804 need_lib_prefix=no
14805 need_version=no
14806 shlibpath_overrides_runpath=no
14807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14808 ;;
14809 esac
14810 ;;
14811
14812sysv4*MP*)
14813 if test -d /usr/nec; then
14814 version_type=linux # correct to gnu/linux during the next big refactor
14815 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14816 soname_spec='$libname$shared_ext.$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 fi
14819 ;;
14820
14821sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14822 version_type=sco
14823 need_lib_prefix=no
14824 need_version=no
14825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14826 soname_spec='$libname$release$shared_ext$major'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=yes
14829 hardcode_into_libs=yes
14830 if test yes = "$with_gnu_ld"; then
14831 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14832 else
14833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14834 case $host_os in
14835 sco3.2v5*)
14836 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14837 ;;
14838 esac
14839 fi
14840 sys_lib_dlsearch_path_spec='/usr/lib'
14841 ;;
14842
14843tpf*)
14844 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14845 version_type=linux # correct to gnu/linux during the next big refactor
14846 need_lib_prefix=no
14847 need_version=no
14848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=no
14851 hardcode_into_libs=yes
14852 ;;
14853
14854uts4*)
14855 version_type=linux # correct to gnu/linux during the next big refactor
14856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14857 soname_spec='$libname$release$shared_ext$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 ;;
14860
14861*)
14862 dynamic_linker=no
14863 ;;
14864esac
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14866$as_echo "$dynamic_linker" >&6; }
14867test no = "$dynamic_linker" && can_build_shared=no
14868
14869variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14870if test yes = "$GCC"; then
14871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14872fi
14873
14874if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14875 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14876fi
14877
14878if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14879 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14880fi
14881
14882# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14883configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14884
14885# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14886func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14887
14888# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14889configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14988$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14989hardcode_action=
14990if test -n "$hardcode_libdir_flag_spec" ||
14991 test -n "$runpath_var" ||
14992 test yes = "$hardcode_automatic"; then
14993
14994 # We can hardcode non-existent directories.
14995 if test no != "$hardcode_direct" &&
14996 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14997 # have to relink, otherwise we might link with an installed library
14998 # when we should be linking with a yet-to-be-installed one
14999 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15000 test no != "$hardcode_minus_L"; then
15001 # Linking always hardcodes the temporary library directory.
15002 hardcode_action=relink
15003 else
15004 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15005 hardcode_action=immediate
15006 fi
15007else
15008 # We cannot hardcode anything, or else we can only hardcode existing
15009 # directories.
15010 hardcode_action=unsupported
15011fi
15012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15013$as_echo "$hardcode_action" >&6; }
15014
15015if test relink = "$hardcode_action" ||
15016 test yes = "$inherit_rpath"; then
15017 # Fast installation is not supported
15018 enable_fast_install=no
15019elif test yes = "$shlibpath_overrides_runpath" ||
15020 test no = "$enable_shared"; then
15021 # Fast installation is not necessary
15022 enable_fast_install=needless
15023fi
15024
15025
15026
15027
15028
15029
15030 if test yes != "$enable_dlopen"; then
15031 enable_dlopen=unknown
15032 enable_dlopen_self=unknown
15033 enable_dlopen_self_static=unknown
15034else
15035 lt_cv_dlopen=no
15036 lt_cv_dlopen_libs=
15037
15038 case $host_os in
15039 beos*)
15040 lt_cv_dlopen=load_add_on
15041 lt_cv_dlopen_libs=
15042 lt_cv_dlopen_self=yes
15043 ;;
15044
15045 mingw* | pw32* | cegcc*)
15046 lt_cv_dlopen=LoadLibrary
15047 lt_cv_dlopen_libs=
15048 ;;
15049
15050 cygwin*)
15051 lt_cv_dlopen=dlopen
15052 lt_cv_dlopen_libs=
15053 ;;
15054
15055 darwin*)
15056 # if libdl is installed we need to link against it
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15058$as_echo_n "checking for dlopen in -ldl... " >&6; }
15059if ${ac_cv_lib_dl_dlopen+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061else
15062 ac_check_lib_save_LIBS=$LIBS
15063LIBS="-ldl $LIBS"
15064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065/* end confdefs.h. */
15066
15067
15068#ifdef __cplusplus
15069extern "C"
15070#endif
15071char dlopen ();
15072int main (void)
15073{
15074return dlopen ();
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079if ac_fn_c_try_link "$LINENO"; then :
15080 ac_cv_lib_dl_dlopen=yes
15081else
15082 ac_cv_lib_dl_dlopen=no
15083fi
15084rm -f core conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15086LIBS=$ac_check_lib_save_LIBS
15087fi
15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15089$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15090if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15092else
15093
15094 lt_cv_dlopen=dyld
15095 lt_cv_dlopen_libs=
15096 lt_cv_dlopen_self=yes
15097
15098fi
15099
15100 ;;
15101
15102 tpf*)
15103 # Don't try to run any link tests for TPF. We know it's impossible
15104 # because TPF is a cross-compiler, and we know how we open DSOs.
15105 lt_cv_dlopen=dlopen
15106 lt_cv_dlopen_libs=
15107 lt_cv_dlopen_self=no
15108 ;;
15109
15110 *)
15111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15112if test "x$ac_cv_func_shl_load" = xyes; then :
15113 lt_cv_dlopen=shl_load
15114else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15116$as_echo_n "checking for shl_load in -ldld... " >&6; }
15117if ${ac_cv_lib_dld_shl_load+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119else
15120 ac_check_lib_save_LIBS=$LIBS
15121LIBS="-ldld $LIBS"
15122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123/* end confdefs.h. */
15124
15125
15126#ifdef __cplusplus
15127extern "C"
15128#endif
15129char shl_load ();
15130int main (void)
15131{
15132return shl_load ();
15133 ;
15134 return 0;
15135}
15136_ACEOF
15137if ac_fn_c_try_link "$LINENO"; then :
15138 ac_cv_lib_dld_shl_load=yes
15139else
15140 ac_cv_lib_dld_shl_load=no
15141fi
15142rm -f core conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144LIBS=$ac_check_lib_save_LIBS
15145fi
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15147$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15148if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15149 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15150else
15151 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15152if test "x$ac_cv_func_dlopen" = xyes; then :
15153 lt_cv_dlopen=dlopen
15154else
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15156$as_echo_n "checking for dlopen in -ldl... " >&6; }
15157if ${ac_cv_lib_dl_dlopen+:} false; then :
15158 $as_echo_n "(cached) " >&6
15159else
15160 ac_check_lib_save_LIBS=$LIBS
15161LIBS="-ldl $LIBS"
15162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h. */
15164
15165
15166#ifdef __cplusplus
15167extern "C"
15168#endif
15169char dlopen ();
15170int main (void)
15171{
15172return dlopen ();
15173 ;
15174 return 0;
15175}
15176_ACEOF
15177if ac_fn_c_try_link "$LINENO"; then :
15178 ac_cv_lib_dl_dlopen=yes
15179else
15180 ac_cv_lib_dl_dlopen=no
15181fi
15182rm -f core conftest.err conftest.$ac_objext \
15183 conftest$ac_exeext conftest.$ac_ext
15184LIBS=$ac_check_lib_save_LIBS
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15187$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15188if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15189 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15190else
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15192$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15193if ${ac_cv_lib_svld_dlopen+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195else
15196 ac_check_lib_save_LIBS=$LIBS
15197LIBS="-lsvld $LIBS"
15198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199/* end confdefs.h. */
15200
15201
15202#ifdef __cplusplus
15203extern "C"
15204#endif
15205char dlopen ();
15206int main (void)
15207{
15208return dlopen ();
15209 ;
15210 return 0;
15211}
15212_ACEOF
15213if ac_fn_c_try_link "$LINENO"; then :
15214 ac_cv_lib_svld_dlopen=yes
15215else
15216 ac_cv_lib_svld_dlopen=no
15217fi
15218rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15220LIBS=$ac_check_lib_save_LIBS
15221fi
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15223$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15224if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15225 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15226else
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15228$as_echo_n "checking for dld_link in -ldld... " >&6; }
15229if ${ac_cv_lib_dld_dld_link+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231else
15232 ac_check_lib_save_LIBS=$LIBS
15233LIBS="-ldld $LIBS"
15234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h. */
15236
15237
15238#ifdef __cplusplus
15239extern "C"
15240#endif
15241char dld_link ();
15242int main (void)
15243{
15244return dld_link ();
15245 ;
15246 return 0;
15247}
15248_ACEOF
15249if ac_fn_c_try_link "$LINENO"; then :
15250 ac_cv_lib_dld_dld_link=yes
15251else
15252 ac_cv_lib_dld_dld_link=no
15253fi
15254rm -f core conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15256LIBS=$ac_check_lib_save_LIBS
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15259$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15260if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15261 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15262fi
15263
15264
15265fi
15266
15267
15268fi
15269
15270
15271fi
15272
15273
15274fi
15275
15276
15277fi
15278
15279 ;;
15280 esac
15281
15282 if test no = "$lt_cv_dlopen"; then
15283 enable_dlopen=no
15284 else
15285 enable_dlopen=yes
15286 fi
15287
15288 case $lt_cv_dlopen in
15289 dlopen)
15290 save_CPPFLAGS=$CPPFLAGS
15291 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15292
15293 save_LDFLAGS=$LDFLAGS
15294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15295
15296 save_LIBS=$LIBS
15297 LIBS="$lt_cv_dlopen_libs $LIBS"
15298
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15300$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15301if ${lt_cv_dlopen_self+:} false; then :
15302 $as_echo_n "(cached) " >&6
15303else
15304 if test yes = "$cross_compiling"; then :
15305 lt_cv_dlopen_self=cross
15306else
15307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15308 lt_status=$lt_dlunknown
15309 cat > conftest.$ac_ext <<_LT_EOF
15310#line $LINENO "configure"
15311#include "confdefs.h"
15312
15313#if HAVE_DLFCN_H
15314#include <dlfcn.h>
15315#endif
15316
15317#include <stdio.h>
15318
15319#ifdef RTLD_GLOBAL
15320# define LT_DLGLOBAL RTLD_GLOBAL
15321#else
15322# ifdef DL_GLOBAL
15323# define LT_DLGLOBAL DL_GLOBAL
15324# else
15325# define LT_DLGLOBAL 0
15326# endif
15327#endif
15328
15329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15330 find out it does not work in some platform. */
15331#ifndef LT_DLLAZY_OR_NOW
15332# ifdef RTLD_LAZY
15333# define LT_DLLAZY_OR_NOW RTLD_LAZY
15334# else
15335# ifdef DL_LAZY
15336# define LT_DLLAZY_OR_NOW DL_LAZY
15337# else
15338# ifdef RTLD_NOW
15339# define LT_DLLAZY_OR_NOW RTLD_NOW
15340# else
15341# ifdef DL_NOW
15342# define LT_DLLAZY_OR_NOW DL_NOW
15343# else
15344# define LT_DLLAZY_OR_NOW 0
15345# endif
15346# endif
15347# endif
15348# endif
15349#endif
15350
15351/* When -fvisibility=hidden is used, assume the code has been annotated
15352 correspondingly for the symbols needed. */
15353#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15354int fnord () __attribute__((visibility("default")));
15355#endif
15356
15357int fnord () { return 42; }
15358int main ()
15359{
15360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15361 int status = $lt_dlunknown;
15362
15363 if (self)
15364 {
15365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15366 else
15367 {
15368 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15369 else puts (dlerror ());
15370 }
15371 /* dlclose (self); */
15372 }
15373 else
15374 puts (dlerror ());
15375
15376 return status;
15377}
15378_LT_EOF
15379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15380 (eval $ac_link) 2>&5
15381 ac_status=$?
15382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15383 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15384 (./conftest; exit; ) >&5 2>/dev/null
15385 lt_status=$?
15386 case x$lt_status in
15387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15390 esac
15391 else :
15392 # compilation failed
15393 lt_cv_dlopen_self=no
15394 fi
15395fi
15396rm -fr conftest*
15397
15398
15399fi
15400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15401$as_echo "$lt_cv_dlopen_self" >&6; }
15402
15403 if test yes = "$lt_cv_dlopen_self"; then
15404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15406$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15407if ${lt_cv_dlopen_self_static+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409else
15410 if test yes = "$cross_compiling"; then :
15411 lt_cv_dlopen_self_static=cross
15412else
15413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15414 lt_status=$lt_dlunknown
15415 cat > conftest.$ac_ext <<_LT_EOF
15416#line $LINENO "configure"
15417#include "confdefs.h"
15418
15419#if HAVE_DLFCN_H
15420#include <dlfcn.h>
15421#endif
15422
15423#include <stdio.h>
15424
15425#ifdef RTLD_GLOBAL
15426# define LT_DLGLOBAL RTLD_GLOBAL
15427#else
15428# ifdef DL_GLOBAL
15429# define LT_DLGLOBAL DL_GLOBAL
15430# else
15431# define LT_DLGLOBAL 0
15432# endif
15433#endif
15434
15435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15436 find out it does not work in some platform. */
15437#ifndef LT_DLLAZY_OR_NOW
15438# ifdef RTLD_LAZY
15439# define LT_DLLAZY_OR_NOW RTLD_LAZY
15440# else
15441# ifdef DL_LAZY
15442# define LT_DLLAZY_OR_NOW DL_LAZY
15443# else
15444# ifdef RTLD_NOW
15445# define LT_DLLAZY_OR_NOW RTLD_NOW
15446# else
15447# ifdef DL_NOW
15448# define LT_DLLAZY_OR_NOW DL_NOW
15449# else
15450# define LT_DLLAZY_OR_NOW 0
15451# endif
15452# endif
15453# endif
15454# endif
15455#endif
15456
15457/* When -fvisibility=hidden is used, assume the code has been annotated
15458 correspondingly for the symbols needed. */
15459#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15460int fnord () __attribute__((visibility("default")));
15461#endif
15462
15463int fnord () { return 42; }
15464int main ()
15465{
15466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15467 int status = $lt_dlunknown;
15468
15469 if (self)
15470 {
15471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15472 else
15473 {
15474 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15475 else puts (dlerror ());
15476 }
15477 /* dlclose (self); */
15478 }
15479 else
15480 puts (dlerror ());
15481
15482 return status;
15483}
15484_LT_EOF
15485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15486 (eval $ac_link) 2>&5
15487 ac_status=$?
15488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15490 (./conftest; exit; ) >&5 2>/dev/null
15491 lt_status=$?
15492 case x$lt_status in
15493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15496 esac
15497 else :
15498 # compilation failed
15499 lt_cv_dlopen_self_static=no
15500 fi
15501fi
15502rm -fr conftest*
15503
15504
15505fi
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15507$as_echo "$lt_cv_dlopen_self_static" >&6; }
15508 fi
15509
15510 CPPFLAGS=$save_CPPFLAGS
15511 LDFLAGS=$save_LDFLAGS
15512 LIBS=$save_LIBS
15513 ;;
15514 esac
15515
15516 case $lt_cv_dlopen_self in
15517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15518 *) enable_dlopen_self=unknown ;;
15519 esac
15520
15521 case $lt_cv_dlopen_self_static in
15522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15523 *) enable_dlopen_self_static=unknown ;;
15524 esac
15525fi
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543striplib=
15544old_striplib=
15545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15546$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15547if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15548 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15549 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15551$as_echo "yes" >&6; }
15552else
15553# FIXME - insert some real tests, host_os isn't really good enough
15554 case $host_os in
15555 darwin*)
15556 if test -n "$STRIP"; then
15557 striplib="$STRIP -x"
15558 old_striplib="$STRIP -S"
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15560$as_echo "yes" >&6; }
15561 else
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563$as_echo "no" >&6; }
15564 fi
15565 ;;
15566 *)
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568$as_echo "no" >&6; }
15569 ;;
15570 esac
15571fi
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584 # Report what library types will actually be built
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15586$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15588$as_echo "$can_build_shared" >&6; }
15589
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15591$as_echo_n "checking whether to build shared libraries... " >&6; }
15592 test no = "$can_build_shared" && enable_shared=no
15593
15594 # On AIX, shared libraries and static libraries use the same namespace, and
15595 # are all built from PIC.
15596 case $host_os in
15597 aix3*)
15598 test yes = "$enable_shared" && enable_static=no
15599 if test -n "$RANLIB"; then
15600 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15601 postinstall_cmds='$RANLIB $lib'
15602 fi
15603 ;;
15604
15605 aix[4-9]*)
15606 if test ia64 != "$host_cpu"; then
15607 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15608 yes,aix,yes) ;; # shared object as lib.so file only
15609 yes,svr4,*) ;; # shared object as lib.so archive member only
15610 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15611 esac
15612 fi
15613 ;;
15614 esac
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15616$as_echo "$enable_shared" >&6; }
15617
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15619$as_echo_n "checking whether to build static libraries... " >&6; }
15620 # Make sure either enable_shared or enable_static is yes.
15621 test yes = "$enable_shared" || enable_static=yes
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15623$as_echo "$enable_static" >&6; }
15624
15625
15626
15627
15628fi
15629ac_ext=c
15630ac_cpp='$CPP $CPPFLAGS'
15631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634
15635CC=$lt_save_CC
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651 ac_config_commands="$ac_config_commands libtool"
15652
15653
15654
15655
15656# Only expand once:
15657
15658
15659## --------------------- ##
15660## End of libtool code ##
15661## --------------------- ##
15662
15663#
15664# Verify if finally libtool shared libraries will be built
15665#
15666
15667case "x$enable_shared" in # ((
15668 xyes | xno)
15669 xc_lt_build_shared=$enable_shared
15670 ;;
15671 *)
15672 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15673 ;;
15674esac
15675
15676#
15677# Verify if finally libtool static libraries will be built
15678#
15679
15680case "x$enable_static" in # ((
15681 xyes | xno)
15682 xc_lt_build_static=$enable_static
15683 ;;
15684 *)
15685 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15686 ;;
15687esac
15688
15689#
15690# Verify if libtool shared libraries should be linked using flag -version-info
15691#
15692
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15694$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15695xc_lt_shlib_use_version_info='yes'
15696if test "x$version_type" = 'xnone'; then
15697 xc_lt_shlib_use_version_info='no'
15698fi
15699case $host_os in # (
15700 amigaos*)
15701 xc_lt_shlib_use_version_info='yes'
15702 ;;
15703esac
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15705$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15706
15707#
15708# Verify if libtool shared libraries should be linked using flag -no-undefined
15709#
15710
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15712$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15713xc_lt_shlib_use_no_undefined='no'
15714if test "x$allow_undefined" = 'xno'; then
15715 xc_lt_shlib_use_no_undefined='yes'
15716elif test "x$allow_undefined_flag" = 'xunsupported'; then
15717 xc_lt_shlib_use_no_undefined='yes'
15718fi
15719case $host_os in # (
15720 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15721 xc_lt_shlib_use_no_undefined='yes'
15722 ;;
15723esac
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15725$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15726
15727#
15728# Verify if libtool shared libraries should be linked using flag -mimpure-text
15729#
15730
15731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15732$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15733xc_lt_shlib_use_mimpure_text='no'
15734case $host_os in # (
15735 solaris2*)
15736 if test "x$GCC" = 'xyes'; then
15737 xc_lt_shlib_use_mimpure_text='yes'
15738 fi
15739 ;;
15740esac
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15742$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15743
15744#
15745# Find out whether libtool libraries would be built wit PIC
15746#
15747
15748case "x$pic_mode" in # ((((
15749 xdefault)
15750 xc_lt_build_shared_with_pic='yes'
15751 xc_lt_build_static_with_pic='no'
15752 ;;
15753 xyes)
15754 xc_lt_build_shared_with_pic='yes'
15755 xc_lt_build_static_with_pic='yes'
15756 ;;
15757 xno)
15758 xc_lt_build_shared_with_pic='no'
15759 xc_lt_build_static_with_pic='no'
15760 ;;
15761 *)
15762 xc_lt_build_shared_with_pic='unknown'
15763 xc_lt_build_static_with_pic='unknown'
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15765$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15766 ;;
15767esac
15768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15769$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15771$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15773$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15775$as_echo "$xc_lt_build_static_with_pic" >&6; }
15776
15777#
15778# Verify if libtool shared libraries will be built while static not built
15779#
15780
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15782$as_echo_n "checking whether to build shared libraries only... " >&6; }
15783if test "$xc_lt_build_shared" = 'yes' &&
15784 test "$xc_lt_build_static" = 'no'; then
15785 xc_lt_build_shared_only='yes'
15786else
15787 xc_lt_build_shared_only='no'
15788fi
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15790$as_echo "$xc_lt_build_shared_only" >&6; }
15791
15792#
15793# Verify if libtool static libraries will be built while shared not built
15794#
15795
15796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15797$as_echo_n "checking whether to build static libraries only... " >&6; }
15798if test "$xc_lt_build_static" = 'yes' &&
15799 test "$xc_lt_build_shared" = 'no'; then
15800 xc_lt_build_static_only='yes'
15801else
15802 xc_lt_build_static_only='no'
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15805$as_echo "$xc_lt_build_static_only" >&6; }
15806
15807
15808
15809
15810#
15811# Automake conditionals based on libtool related checks
15812#
15813
15814 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15815 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15816 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15817else
15818 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15819 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15820fi
15821
15822 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15823 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15824 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15825else
15826 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15827 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15828fi
15829
15830 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15831 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15832 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15833else
15834 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15835 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15836fi
15837
15838
15839#
15840# Due to libtool and automake machinery limitations of not allowing
15841# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15842# inclusion of these in shared or static libraries, we are forced to
15843# build using separate configure runs for shared and static libraries
15844# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15845# to compile objects for each kind of library. Notice that relying on
15846# the '-DPIC' CFLAG that libtool provides is not valid given that the
15847# user might for example choose to build static libraries with PIC.
15848#
15849
15850#
15851# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15852# targeting a static library and not building its shared counterpart.
15853#
15854
15855 if test "x$xc_lt_build_static_only" = 'xyes'; then
15856 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15857 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15858else
15859 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15860 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15861fi
15862
15863
15864#
15865# Make staticlib CPPFLAG variable and its definition visible in output
15866# files unconditionally, providing an empty definition unless strictly
15867# targeting a static library and not building its shared counterpart.
15868#
15869
15870CPPFLAG_CURL_STATICLIB=
15871if test "x$xc_lt_build_static_only" = 'xyes'; then
15872 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15873fi
15874
15875
15876
15877# Determine whether all dependent libraries must be specified when linking
15878if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15879then
15880 REQUIRE_LIB_DEPS=no
15881else
15882 REQUIRE_LIB_DEPS=yes
15883fi
15884
15885 if test x$REQUIRE_LIB_DEPS = xyes; then
15886 USE_EXPLICIT_LIB_DEPS_TRUE=
15887 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15888else
15889 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15890 USE_EXPLICIT_LIB_DEPS_FALSE=
15891fi
15892
15893
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15895$as_echo_n "checking for inline... " >&6; }
15896if ${ac_cv_c_inline+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898else
15899 ac_cv_c_inline=no
15900for ac_kw in inline __inline__ __inline; do
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902/* end confdefs.h. */
15903#ifndef __cplusplus
15904typedef int foo_t;
15905static $ac_kw foo_t static_foo () {return 0; }
15906$ac_kw foo_t foo () {return 0; }
15907#endif
15908
15909_ACEOF
15910if ac_fn_c_try_compile "$LINENO"; then :
15911 ac_cv_c_inline=$ac_kw
15912fi
15913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 test "$ac_cv_c_inline" != no && break
15915done
15916
15917fi
15918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15919$as_echo "$ac_cv_c_inline" >&6; }
15920
15921case $ac_cv_c_inline in
15922 inline | yes) ;;
15923 *)
15924 case $ac_cv_c_inline in
15925 no) ac_val=;;
15926 *) ac_val=$ac_cv_c_inline;;
15927 esac
15928 cat >>confdefs.h <<_ACEOF
15929#ifndef __cplusplus
15930#define inline $ac_val
15931#endif
15932_ACEOF
15933 ;;
15934esac
15935
15936
15937
15938
Alex Deymo486467e2017-12-19 19:04:07 +010015939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15940$as_echo_n "checking if cpp -P is needed... " >&6; }
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h. */
15943
15944 #include <errno.h>
15945TEST EINVAL TEST
15946
15947_ACEOF
15948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15949 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15950 cpp=no
15951else
15952 cpp=yes
15953fi
15954rm -f conftest*
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15957$as_echo "$cpp" >&6; }
15958
15959 if test "x$cpp" = "xyes"; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15961$as_echo_n "checking if cpp -P works... " >&6; }
15962 OLDCPPFLAGS=$CPPFLAGS
15963 CPPFLAGS="$CPPFLAGS -P"
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965/* end confdefs.h. */
15966
15967 #include <errno.h>
15968TEST EINVAL TEST
15969
15970_ACEOF
15971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15973 cpp_p=yes
15974else
15975 cpp_p=no
15976fi
15977rm -f conftest*
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15980$as_echo "$cpp_p" >&6; }
15981
15982 if test "x$cpp_p" = "xno"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15984$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15985 # without -P
15986 CPPPFLAG=""
15987 else
15988 # with -P
15989 CPPPFLAG="-P"
15990 fi
15991 CPPFLAGS=$OLDCPPFLAGS
15992 else
15993 # without -P
15994 CPPPFLAG=""
15995 fi
15996
15997
Elliott Hughes82be86d2017-09-20 17:00:17 -070015998 #
15999 compiler_id="unknown"
16000 compiler_num="0"
16001 #
16002 flags_dbg_all="unknown"
16003 flags_dbg_yes="unknown"
16004 flags_dbg_off="unknown"
16005 flags_opt_all="unknown"
16006 flags_opt_yes="unknown"
16007 flags_opt_off="unknown"
16008 #
16009 flags_prefer_cppflags="no"
16010 #
16011
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16013$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16014
16015 OLDCPPFLAGS=$CPPFLAGS
16016 # CPPPFLAG comes from CURL_CPP_P
16017 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16018 if test -z "$SED"; then
16019 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16020 fi
16021 if test -z "$GREP"; then
16022 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16023 fi
16024
16025 tmp_exp=""
16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027/* end confdefs.h. */
16028
16029
16030#ifdef __DECC
16031CURL_DEF_TOKEN __DECC
16032#endif
16033
16034
16035_ACEOF
16036if ac_fn_c_try_cpp "$LINENO"; then :
16037
16038 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16039 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16040 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16041 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16042 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16043 tmp_exp=""
16044 fi
16045
16046fi
16047rm -f conftest.err conftest.i conftest.$ac_ext
16048 if test -z "$tmp_exp"; then
16049 curl_cv_have_def___DECC=no
16050
16051 else
16052 curl_cv_have_def___DECC=yes
16053 curl_cv_def___DECC=$tmp_exp
16054
16055 fi
16056 CPPFLAGS=$OLDCPPFLAGS
16057
16058
16059 OLDCPPFLAGS=$CPPFLAGS
16060 # CPPPFLAG comes from CURL_CPP_P
16061 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16062 if test -z "$SED"; then
16063 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16064 fi
16065 if test -z "$GREP"; then
16066 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16067 fi
16068
16069 tmp_exp=""
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h. */
16072
16073
16074#ifdef __DECC_VER
16075CURL_DEF_TOKEN __DECC_VER
16076#endif
16077
16078
16079_ACEOF
16080if ac_fn_c_try_cpp "$LINENO"; then :
16081
16082 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16083 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16084 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16085 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16086 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16087 tmp_exp=""
16088 fi
16089
16090fi
16091rm -f conftest.err conftest.i conftest.$ac_ext
16092 if test -z "$tmp_exp"; then
16093 curl_cv_have_def___DECC_VER=no
16094
16095 else
16096 curl_cv_have_def___DECC_VER=yes
16097 curl_cv_def___DECC_VER=$tmp_exp
16098
16099 fi
16100 CPPFLAGS=$OLDCPPFLAGS
16101
16102 if test "$curl_cv_have_def___DECC" = "yes" &&
16103 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105$as_echo "yes" >&6; }
16106 compiler_id="DEC_C"
16107 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16108 flags_dbg_yes="-g2"
16109 flags_dbg_off=""
16110 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16111 flags_opt_yes="-O1"
16112 flags_opt_off="-O0"
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115$as_echo "no" >&6; }
16116 fi
16117
16118
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16120$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16121
16122 OLDCPPFLAGS=$CPPFLAGS
16123 # CPPPFLAG comes from CURL_CPP_P
16124 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16125 if test -z "$SED"; then
16126 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16127 fi
16128 if test -z "$GREP"; then
16129 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16130 fi
16131
16132 tmp_exp=""
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134/* end confdefs.h. */
16135
16136
16137#ifdef __HP_cc
16138CURL_DEF_TOKEN __HP_cc
16139#endif
16140
16141
16142_ACEOF
16143if ac_fn_c_try_cpp "$LINENO"; then :
16144
16145 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16146 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16147 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16148 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16149 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16150 tmp_exp=""
16151 fi
16152
16153fi
16154rm -f conftest.err conftest.i conftest.$ac_ext
16155 if test -z "$tmp_exp"; then
16156 curl_cv_have_def___HP_cc=no
16157
16158 else
16159 curl_cv_have_def___HP_cc=yes
16160 curl_cv_def___HP_cc=$tmp_exp
16161
16162 fi
16163 CPPFLAGS=$OLDCPPFLAGS
16164
16165 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16167$as_echo "yes" >&6; }
16168 compiler_id="HP_UX_C"
16169 flags_dbg_all="-g -s"
16170 flags_dbg_yes="-g"
16171 flags_dbg_off="-s"
16172 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16173 flags_opt_yes="+O2"
16174 flags_opt_off="+O0"
16175 else
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177$as_echo "no" >&6; }
16178 fi
16179
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16182$as_echo_n "checking if compiler is IBM C... " >&6; }
16183
16184 OLDCPPFLAGS=$CPPFLAGS
16185 # CPPPFLAG comes from CURL_CPP_P
16186 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16187 if test -z "$SED"; then
16188 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16189 fi
16190 if test -z "$GREP"; then
16191 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16192 fi
16193
16194 tmp_exp=""
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h. */
16197
16198
16199#ifdef __IBMC__
16200CURL_DEF_TOKEN __IBMC__
16201#endif
16202
16203
16204_ACEOF
16205if ac_fn_c_try_cpp "$LINENO"; then :
16206
16207 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16208 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16209 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16210 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16211 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16212 tmp_exp=""
16213 fi
16214
16215fi
16216rm -f conftest.err conftest.i conftest.$ac_ext
16217 if test -z "$tmp_exp"; then
16218 curl_cv_have_def___IBMC__=no
16219
16220 else
16221 curl_cv_have_def___IBMC__=yes
16222 curl_cv_def___IBMC__=$tmp_exp
16223
16224 fi
16225 CPPFLAGS=$OLDCPPFLAGS
16226
16227 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16229$as_echo "yes" >&6; }
16230 compiler_id="IBM_C"
16231 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16232 flags_dbg_yes="-g"
16233 flags_dbg_off=""
16234 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16235 flags_opt_all="$flags_opt_all -qnooptimize"
16236 flags_opt_all="$flags_opt_all -qoptimize=0"
16237 flags_opt_all="$flags_opt_all -qoptimize=1"
16238 flags_opt_all="$flags_opt_all -qoptimize=2"
16239 flags_opt_all="$flags_opt_all -qoptimize=3"
16240 flags_opt_all="$flags_opt_all -qoptimize=4"
16241 flags_opt_all="$flags_opt_all -qoptimize=5"
16242 flags_opt_yes="-O2"
16243 flags_opt_off="-qnooptimize"
16244 flags_prefer_cppflags="yes"
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247$as_echo "no" >&6; }
16248 fi
16249
16250
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16252$as_echo_n "checking if compiler is Intel C... " >&6; }
16253
16254 OLDCPPFLAGS=$CPPFLAGS
16255 # CPPPFLAG comes from CURL_CPP_P
16256 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16257 if test -z "$SED"; then
16258 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16259 fi
16260 if test -z "$GREP"; then
16261 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16262 fi
16263
16264 tmp_exp=""
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h. */
16267
16268
16269#ifdef __INTEL_COMPILER
16270CURL_DEF_TOKEN __INTEL_COMPILER
16271#endif
16272
16273
16274_ACEOF
16275if ac_fn_c_try_cpp "$LINENO"; then :
16276
16277 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16278 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16279 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16280 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16281 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16282 tmp_exp=""
16283 fi
16284
16285fi
16286rm -f conftest.err conftest.i conftest.$ac_ext
16287 if test -z "$tmp_exp"; then
16288 curl_cv_have_def___INTEL_COMPILER=no
16289
16290 else
16291 curl_cv_have_def___INTEL_COMPILER=yes
16292 curl_cv_def___INTEL_COMPILER=$tmp_exp
16293
16294 fi
16295 CPPFLAGS=$OLDCPPFLAGS
16296
16297 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299$as_echo "yes" >&6; }
16300 compiler_num="$curl_cv_def___INTEL_COMPILER"
16301
16302 OLDCPPFLAGS=$CPPFLAGS
16303 # CPPPFLAG comes from CURL_CPP_P
16304 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16305 if test -z "$SED"; then
16306 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16307 fi
16308 if test -z "$GREP"; then
16309 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16310 fi
16311
16312 tmp_exp=""
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h. */
16315
16316
16317#ifdef __unix__
16318CURL_DEF_TOKEN __unix__
16319#endif
16320
16321
16322_ACEOF
16323if ac_fn_c_try_cpp "$LINENO"; then :
16324
16325 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16326 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16327 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16328 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16329 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16330 tmp_exp=""
16331 fi
16332
16333fi
16334rm -f conftest.err conftest.i conftest.$ac_ext
16335 if test -z "$tmp_exp"; then
16336 curl_cv_have_def___unix__=no
16337
16338 else
16339 curl_cv_have_def___unix__=yes
16340 curl_cv_def___unix__=$tmp_exp
16341
16342 fi
16343 CPPFLAGS=$OLDCPPFLAGS
16344
16345 if test "$curl_cv_have_def___unix__" = "yes"; then
16346 compiler_id="INTEL_UNIX_C"
16347 flags_dbg_all="-g -g0"
16348 flags_dbg_yes="-g"
16349 flags_dbg_off=""
16350 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16351 flags_opt_yes="-O2"
16352 flags_opt_off="-O0"
16353 else
16354 compiler_id="INTEL_WINDOWS_C"
16355 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16356 flags_dbg_all="$flags_dbg_all /debug"
16357 flags_dbg_all="$flags_dbg_all /debug:none"
16358 flags_dbg_all="$flags_dbg_all /debug:minimal"
16359 flags_dbg_all="$flags_dbg_all /debug:partial"
16360 flags_dbg_all="$flags_dbg_all /debug:full"
16361 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16362 flags_dbg_all="$flags_dbg_all /debug:extended"
16363 flags_dbg_yes="/Zi /Oy-"
16364 flags_dbg_off="/debug:none /Oy-"
16365 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16366 flags_opt_yes="/O2"
16367 flags_opt_off="/Od"
16368 fi
16369 else
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371$as_echo "no" >&6; }
16372 fi
16373
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16376$as_echo_n "checking if compiler is clang... " >&6; }
16377
16378 OLDCPPFLAGS=$CPPFLAGS
16379 # CPPPFLAG comes from CURL_CPP_P
16380 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16381 if test -z "$SED"; then
16382 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16383 fi
16384 if test -z "$GREP"; then
16385 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16386 fi
16387
16388 tmp_exp=""
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390/* end confdefs.h. */
16391
16392
16393#ifdef __clang__
16394CURL_DEF_TOKEN __clang__
16395#endif
16396
16397
16398_ACEOF
16399if ac_fn_c_try_cpp "$LINENO"; then :
16400
16401 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16402 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16403 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16404 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16405 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16406 tmp_exp=""
16407 fi
16408
16409fi
16410rm -f conftest.err conftest.i conftest.$ac_ext
16411 if test -z "$tmp_exp"; then
16412 curl_cv_have_def___clang__=no
16413
16414 else
16415 curl_cv_have_def___clang__=yes
16416 curl_cv_def___clang__=$tmp_exp
16417
16418 fi
16419 CPPFLAGS=$OLDCPPFLAGS
16420
16421 if test "$curl_cv_have_def___clang__" = "yes"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423$as_echo "yes" >&6; }
16424 compiler_id="CLANG"
16425 fullclangver=`$CC -v 2>&1 | grep version`
16426 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16427 if test -z "$clangver"; then
16428 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016429 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016430 else
16431 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16432 fi
16433 fi
16434 clangvhi=`echo $clangver | cut -d . -f1`
16435 clangvlo=`echo $clangver | cut -d . -f2`
16436 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16437 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16438 flags_dbg_all="$flags_dbg_all -ggdb"
16439 flags_dbg_all="$flags_dbg_all -gstabs"
16440 flags_dbg_all="$flags_dbg_all -gstabs+"
16441 flags_dbg_all="$flags_dbg_all -gcoff"
16442 flags_dbg_all="$flags_dbg_all -gxcoff"
16443 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16444 flags_dbg_all="$flags_dbg_all -gvms"
16445 flags_dbg_yes="-g"
16446 flags_dbg_off=""
16447 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16448 flags_opt_yes="-Os"
16449 flags_opt_off="-O0"
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452$as_echo "no" >&6; }
16453 fi
16454
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16457$as_echo_n "checking if compiler is GNU C... " >&6; }
16458
16459 OLDCPPFLAGS=$CPPFLAGS
16460 # CPPPFLAG comes from CURL_CPP_P
16461 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16462 if test -z "$SED"; then
16463 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16464 fi
16465 if test -z "$GREP"; then
16466 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16467 fi
16468
16469 tmp_exp=""
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h. */
16472
16473
16474#ifdef __GNUC__
16475CURL_DEF_TOKEN __GNUC__
16476#endif
16477
16478
16479_ACEOF
16480if ac_fn_c_try_cpp "$LINENO"; then :
16481
16482 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16483 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16484 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16485 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16486 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16487 tmp_exp=""
16488 fi
16489
16490fi
16491rm -f conftest.err conftest.i conftest.$ac_ext
16492 if test -z "$tmp_exp"; then
16493 curl_cv_have_def___GNUC__=no
16494
16495 else
16496 curl_cv_have_def___GNUC__=yes
16497 curl_cv_def___GNUC__=$tmp_exp
16498
16499 fi
16500 CPPFLAGS=$OLDCPPFLAGS
16501
16502 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16503 test "$compiler_id" = "unknown"; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16505$as_echo "yes" >&6; }
16506 compiler_id="GNU_C"
16507 gccver=`$CC -dumpversion`
16508 gccvhi=`echo $gccver | cut -d . -f1`
16509 gccvlo=`echo $gccver | cut -d . -f2`
16510 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16511 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16512 flags_dbg_all="$flags_dbg_all -ggdb"
16513 flags_dbg_all="$flags_dbg_all -gstabs"
16514 flags_dbg_all="$flags_dbg_all -gstabs+"
16515 flags_dbg_all="$flags_dbg_all -gcoff"
16516 flags_dbg_all="$flags_dbg_all -gxcoff"
16517 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16518 flags_dbg_all="$flags_dbg_all -gvms"
16519 flags_dbg_yes="-g"
16520 flags_dbg_off=""
16521 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16522 flags_opt_yes="-O2"
16523 flags_opt_off="-O0"
16524
16525 OLDCPPFLAGS=$CPPFLAGS
16526 # CPPPFLAG comes from CURL_CPP_P
16527 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16528 if test -z "$SED"; then
16529 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16530 fi
16531 if test -z "$GREP"; then
16532 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16533 fi
16534
16535 tmp_exp=""
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537/* end confdefs.h. */
16538
16539
16540#ifdef _WIN32
16541CURL_DEF_TOKEN _WIN32
16542#endif
16543
16544
16545_ACEOF
16546if ac_fn_c_try_cpp "$LINENO"; then :
16547
16548 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16549 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16550 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16551 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16552 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16553 tmp_exp=""
16554 fi
16555
16556fi
16557rm -f conftest.err conftest.i conftest.$ac_ext
16558 if test -z "$tmp_exp"; then
16559 curl_cv_have_def__WIN32=no
16560
16561 else
16562 curl_cv_have_def__WIN32=yes
16563 curl_cv_def__WIN32=$tmp_exp
16564
16565 fi
16566 CPPFLAGS=$OLDCPPFLAGS
16567
16568 else
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570$as_echo "no" >&6; }
16571 fi
16572
16573
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16575$as_echo_n "checking if compiler is LCC... " >&6; }
16576
16577 OLDCPPFLAGS=$CPPFLAGS
16578 # CPPPFLAG comes from CURL_CPP_P
16579 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16580 if test -z "$SED"; then
16581 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16582 fi
16583 if test -z "$GREP"; then
16584 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16585 fi
16586
16587 tmp_exp=""
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h. */
16590
16591
16592#ifdef __LCC__
16593CURL_DEF_TOKEN __LCC__
16594#endif
16595
16596
16597_ACEOF
16598if ac_fn_c_try_cpp "$LINENO"; then :
16599
16600 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16601 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16602 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16603 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16604 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16605 tmp_exp=""
16606 fi
16607
16608fi
16609rm -f conftest.err conftest.i conftest.$ac_ext
16610 if test -z "$tmp_exp"; then
16611 curl_cv_have_def___LCC__=no
16612
16613 else
16614 curl_cv_have_def___LCC__=yes
16615 curl_cv_def___LCC__=$tmp_exp
16616
16617 fi
16618 CPPFLAGS=$OLDCPPFLAGS
16619
16620 if test "$curl_cv_have_def___LCC__" = "yes"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623 compiler_id="LCC"
16624 flags_dbg_all="-g"
16625 flags_dbg_yes="-g"
16626 flags_dbg_off=""
16627 flags_opt_all=""
16628 flags_opt_yes=""
16629 flags_opt_off=""
16630 else
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632$as_echo "no" >&6; }
16633 fi
16634
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16637$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16638
16639 OLDCPPFLAGS=$CPPFLAGS
16640 # CPPPFLAG comes from CURL_CPP_P
16641 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16642 if test -z "$SED"; then
16643 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16644 fi
16645 if test -z "$GREP"; then
16646 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16647 fi
16648
16649 tmp_exp=""
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651/* end confdefs.h. */
16652
16653
16654#ifdef __GNUC__
16655CURL_DEF_TOKEN __GNUC__
16656#endif
16657
16658
16659_ACEOF
16660if ac_fn_c_try_cpp "$LINENO"; then :
16661
16662 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16663 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16664 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16665 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16666 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16667 tmp_exp=""
16668 fi
16669
16670fi
16671rm -f conftest.err conftest.i conftest.$ac_ext
16672 if test -z "$tmp_exp"; then
16673 curl_cv_have_def___GNUC__=no
16674
16675 else
16676 curl_cv_have_def___GNUC__=yes
16677 curl_cv_def___GNUC__=$tmp_exp
16678
16679 fi
16680 CPPFLAGS=$OLDCPPFLAGS
16681
16682
16683 OLDCPPFLAGS=$CPPFLAGS
16684 # CPPPFLAG comes from CURL_CPP_P
16685 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16686 if test -z "$SED"; then
16687 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16688 fi
16689 if test -z "$GREP"; then
16690 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16691 fi
16692
16693 tmp_exp=""
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695/* end confdefs.h. */
16696
16697
16698#ifdef _COMPILER_VERSION
16699CURL_DEF_TOKEN _COMPILER_VERSION
16700#endif
16701
16702
16703_ACEOF
16704if ac_fn_c_try_cpp "$LINENO"; then :
16705
16706 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16707 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16708 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16709 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16710 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16711 tmp_exp=""
16712 fi
16713
16714fi
16715rm -f conftest.err conftest.i conftest.$ac_ext
16716 if test -z "$tmp_exp"; then
16717 curl_cv_have_def__COMPILER_VERSION=no
16718
16719 else
16720 curl_cv_have_def__COMPILER_VERSION=yes
16721 curl_cv_def__COMPILER_VERSION=$tmp_exp
16722
16723 fi
16724 CPPFLAGS=$OLDCPPFLAGS
16725
16726
16727 OLDCPPFLAGS=$CPPFLAGS
16728 # CPPPFLAG comes from CURL_CPP_P
16729 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16730 if test -z "$SED"; then
16731 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16732 fi
16733 if test -z "$GREP"; then
16734 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16735 fi
16736
16737 tmp_exp=""
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h. */
16740
16741
16742#ifdef _SGI_COMPILER_VERSION
16743CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16744#endif
16745
16746
16747_ACEOF
16748if ac_fn_c_try_cpp "$LINENO"; then :
16749
16750 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16751 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16752 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16753 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16754 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16755 tmp_exp=""
16756 fi
16757
16758fi
16759rm -f conftest.err conftest.i conftest.$ac_ext
16760 if test -z "$tmp_exp"; then
16761 curl_cv_have_def__SGI_COMPILER_VERSION=no
16762
16763 else
16764 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16765 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16766
16767 fi
16768 CPPFLAGS=$OLDCPPFLAGS
16769
16770 if test "$curl_cv_have_def___GNUC__" = "no" &&
16771 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16772 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16774$as_echo "yes" >&6; }
16775 compiler_id="SGI_MIPSPRO_C"
16776 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16777 flags_dbg_yes="-g"
16778 flags_dbg_off=""
16779 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16780 flags_opt_yes="-O2"
16781 flags_opt_off="-O0"
16782 else
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784$as_echo "no" >&6; }
16785 fi
16786
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16789$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16790
16791 OLDCPPFLAGS=$CPPFLAGS
16792 # CPPPFLAG comes from CURL_CPP_P
16793 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16794 if test -z "$SED"; then
16795 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16796 fi
16797 if test -z "$GREP"; then
16798 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16799 fi
16800
16801 tmp_exp=""
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803/* end confdefs.h. */
16804
16805
16806#ifdef __GNUC__
16807CURL_DEF_TOKEN __GNUC__
16808#endif
16809
16810
16811_ACEOF
16812if ac_fn_c_try_cpp "$LINENO"; then :
16813
16814 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16815 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16816 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16817 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16818 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16819 tmp_exp=""
16820 fi
16821
16822fi
16823rm -f conftest.err conftest.i conftest.$ac_ext
16824 if test -z "$tmp_exp"; then
16825 curl_cv_have_def___GNUC__=no
16826
16827 else
16828 curl_cv_have_def___GNUC__=yes
16829 curl_cv_def___GNUC__=$tmp_exp
16830
16831 fi
16832 CPPFLAGS=$OLDCPPFLAGS
16833
16834
16835 OLDCPPFLAGS=$CPPFLAGS
16836 # CPPPFLAG comes from CURL_CPP_P
16837 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16838 if test -z "$SED"; then
16839 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16840 fi
16841 if test -z "$GREP"; then
16842 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16843 fi
16844
16845 tmp_exp=""
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847/* end confdefs.h. */
16848
16849
16850#ifdef __sgi
16851CURL_DEF_TOKEN __sgi
16852#endif
16853
16854
16855_ACEOF
16856if ac_fn_c_try_cpp "$LINENO"; then :
16857
16858 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16859 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16860 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16861 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16862 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16863 tmp_exp=""
16864 fi
16865
16866fi
16867rm -f conftest.err conftest.i conftest.$ac_ext
16868 if test -z "$tmp_exp"; then
16869 curl_cv_have_def___sgi=no
16870
16871 else
16872 curl_cv_have_def___sgi=yes
16873 curl_cv_def___sgi=$tmp_exp
16874
16875 fi
16876 CPPFLAGS=$OLDCPPFLAGS
16877
16878 if test "$curl_cv_have_def___GNUC__" = "no" &&
16879 test "$curl_cv_have_def___sgi" = "yes" &&
16880 test "$compiler_id" = "unknown"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16882$as_echo "yes" >&6; }
16883 compiler_id="SGI_MIPS_C"
16884 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16885 flags_dbg_yes="-g"
16886 flags_dbg_off=""
16887 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16888 flags_opt_yes="-O2"
16889 flags_opt_off="-O0"
16890 else
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16892$as_echo "no" >&6; }
16893 fi
16894
16895
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16897$as_echo_n "checking if compiler is SunPro C... " >&6; }
16898
16899 OLDCPPFLAGS=$CPPFLAGS
16900 # CPPPFLAG comes from CURL_CPP_P
16901 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16902 if test -z "$SED"; then
16903 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16904 fi
16905 if test -z "$GREP"; then
16906 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16907 fi
16908
16909 tmp_exp=""
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911/* end confdefs.h. */
16912
16913
16914#ifdef __SUNPRO_C
16915CURL_DEF_TOKEN __SUNPRO_C
16916#endif
16917
16918
16919_ACEOF
16920if ac_fn_c_try_cpp "$LINENO"; then :
16921
16922 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16923 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16924 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16925 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16926 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16927 tmp_exp=""
16928 fi
16929
16930fi
16931rm -f conftest.err conftest.i conftest.$ac_ext
16932 if test -z "$tmp_exp"; then
16933 curl_cv_have_def___SUNPRO_C=no
16934
16935 else
16936 curl_cv_have_def___SUNPRO_C=yes
16937 curl_cv_def___SUNPRO_C=$tmp_exp
16938
16939 fi
16940 CPPFLAGS=$OLDCPPFLAGS
16941
16942 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16944$as_echo "yes" >&6; }
16945 compiler_id="SUNPRO_C"
16946 flags_dbg_all="-g -s"
16947 flags_dbg_yes="-g"
16948 flags_dbg_off="-s"
16949 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16950 flags_opt_yes="-xO2"
16951 flags_opt_off=""
16952 else
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954$as_echo "no" >&6; }
16955 fi
16956
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16959$as_echo_n "checking if compiler is Tiny C... " >&6; }
16960
16961 OLDCPPFLAGS=$CPPFLAGS
16962 # CPPPFLAG comes from CURL_CPP_P
16963 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16964 if test -z "$SED"; then
16965 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16966 fi
16967 if test -z "$GREP"; then
16968 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16969 fi
16970
16971 tmp_exp=""
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h. */
16974
16975
16976#ifdef __TINYC__
16977CURL_DEF_TOKEN __TINYC__
16978#endif
16979
16980
16981_ACEOF
16982if ac_fn_c_try_cpp "$LINENO"; then :
16983
16984 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16985 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16986 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16987 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16988 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16989 tmp_exp=""
16990 fi
16991
16992fi
16993rm -f conftest.err conftest.i conftest.$ac_ext
16994 if test -z "$tmp_exp"; then
16995 curl_cv_have_def___TINYC__=no
16996
16997 else
16998 curl_cv_have_def___TINYC__=yes
16999 curl_cv_def___TINYC__=$tmp_exp
17000
17001 fi
17002 CPPFLAGS=$OLDCPPFLAGS
17003
17004 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17006$as_echo "yes" >&6; }
17007 compiler_id="TINY_C"
17008 flags_dbg_all="-g -b"
17009 flags_dbg_yes="-g"
17010 flags_dbg_off=""
17011 flags_opt_all=""
17012 flags_opt_yes=""
17013 flags_opt_off=""
17014 else
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17016$as_echo "no" >&6; }
17017 fi
17018
17019
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17021$as_echo_n "checking if compiler is Watcom C... " >&6; }
17022
17023 OLDCPPFLAGS=$CPPFLAGS
17024 # CPPPFLAG comes from CURL_CPP_P
17025 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17026 if test -z "$SED"; then
17027 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17028 fi
17029 if test -z "$GREP"; then
17030 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17031 fi
17032
17033 tmp_exp=""
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035/* end confdefs.h. */
17036
17037
17038#ifdef __WATCOMC__
17039CURL_DEF_TOKEN __WATCOMC__
17040#endif
17041
17042
17043_ACEOF
17044if ac_fn_c_try_cpp "$LINENO"; then :
17045
17046 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17047 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17048 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17049 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17050 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17051 tmp_exp=""
17052 fi
17053
17054fi
17055rm -f conftest.err conftest.i conftest.$ac_ext
17056 if test -z "$tmp_exp"; then
17057 curl_cv_have_def___WATCOMC__=no
17058
17059 else
17060 curl_cv_have_def___WATCOMC__=yes
17061 curl_cv_def___WATCOMC__=$tmp_exp
17062
17063 fi
17064 CPPFLAGS=$OLDCPPFLAGS
17065
17066 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17068$as_echo "yes" >&6; }
17069
17070 OLDCPPFLAGS=$CPPFLAGS
17071 # CPPPFLAG comes from CURL_CPP_P
17072 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17073 if test -z "$SED"; then
17074 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17075 fi
17076 if test -z "$GREP"; then
17077 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17078 fi
17079
17080 tmp_exp=""
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h. */
17083
17084
17085#ifdef __UNIX__
17086CURL_DEF_TOKEN __UNIX__
17087#endif
17088
17089
17090_ACEOF
17091if ac_fn_c_try_cpp "$LINENO"; then :
17092
17093 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17094 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17095 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17096 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17097 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17098 tmp_exp=""
17099 fi
17100
17101fi
17102rm -f conftest.err conftest.i conftest.$ac_ext
17103 if test -z "$tmp_exp"; then
17104 curl_cv_have_def___UNIX__=no
17105
17106 else
17107 curl_cv_have_def___UNIX__=yes
17108 curl_cv_def___UNIX__=$tmp_exp
17109
17110 fi
17111 CPPFLAGS=$OLDCPPFLAGS
17112
17113 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17114 compiler_id="WATCOM_UNIX_C"
17115 flags_dbg_all="-g1 -g1+ -g2 -g3"
17116 flags_dbg_yes="-g2"
17117 flags_dbg_off=""
17118 flags_opt_all="-O0 -O1 -O2 -O3"
17119 flags_opt_yes="-O2"
17120 flags_opt_off="-O0"
17121 else
17122 compiler_id="WATCOM_WINDOWS_C"
17123 flags_dbg_all=""
17124 flags_dbg_yes=""
17125 flags_dbg_off=""
17126 flags_opt_all=""
17127 flags_opt_yes=""
17128 flags_opt_off=""
17129 fi
17130 else
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132$as_echo "no" >&6; }
17133 fi
17134
17135 #
17136 if test "$compiler_id" = "unknown"; then
17137 cat <<_EOF 1>&2
17138***
17139*** Warning: This configure script does not have information about the
17140*** compiler you are using, relative to the flags required to enable or
17141*** disable generation of debug info, optimization options or warnings.
17142***
17143*** Whatever settings are present in CFLAGS will be used for this run.
17144***
17145*** If you wish to help the curl project to better support your compiler
17146*** you can report this and the required info on the libcurl development
17147*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17148***
17149_EOF
17150 fi
17151
17152
17153squeeze() {
17154 _sqz_result=""
17155 eval _sqz_input=\$$1
17156 for _sqz_token in $_sqz_input; do
17157 if test -z "$_sqz_result"; then
17158 _sqz_result="$_sqz_token"
17159 else
17160 _sqz_result="$_sqz_result $_sqz_token"
17161 fi
17162 done
17163 eval $1=\$_sqz_result
17164 return 0
17165}
17166
17167
17168 #
17169 if test "$compiler_id" != "unknown"; then
17170 #
17171 if test "$compiler_id" = "GNU_C" ||
17172 test "$compiler_id" = "CLANG"; then
17173
17174 if test "$compiler_id" = "GNU_C" ||
17175 test "$compiler_id" = "CLANG"; then
17176 tmp_has_include="no"
17177 tmp_chg_FLAGS="$CFLAGS"
17178 for word1 in $tmp_chg_FLAGS; do
17179 case "$word1" in
17180 -I*)
17181 tmp_has_include="yes"
17182 ;;
17183 esac
17184 done
17185 if test "$tmp_has_include" = "yes"; then
17186 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17187 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17188 CFLAGS="$tmp_chg_FLAGS"
17189 squeeze CFLAGS
17190 fi
17191 tmp_has_include="no"
17192 tmp_chg_FLAGS="$CPPFLAGS"
17193 for word1 in $tmp_chg_FLAGS; do
17194 case "$word1" in
17195 -I*)
17196 tmp_has_include="yes"
17197 ;;
17198 esac
17199 done
17200 if test "$tmp_has_include" = "yes"; then
17201 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17202 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17203 CPPFLAGS="$tmp_chg_FLAGS"
17204 squeeze CPPFLAGS
17205 fi
17206 fi
17207
17208 fi
17209 #
17210 tmp_save_CPPFLAGS="$CPPFLAGS"
17211 tmp_save_CFLAGS="$CFLAGS"
17212 tmp_CPPFLAGS=""
17213 tmp_CFLAGS=""
17214 #
17215 case "$compiler_id" in
17216 #
17217 CLANG)
17218 #
17219 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17220 ;;
17221 #
17222 DEC_C)
17223 #
17224 tmp_CFLAGS="$tmp_CFLAGS -std1"
17225 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17226 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17227 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17228 ;;
17229 #
17230 GNU_C)
17231 #
17232 if test "$compiler_num" -ge "295"; then
17233 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17234 fi
17235 ;;
17236 #
17237 HP_UX_C)
17238 #
17239 tmp_CFLAGS="$tmp_CFLAGS -z"
17240 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17241 ;;
17242 #
17243 IBM_C)
17244 #
17245 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17246 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17247 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17248 ;;
17249 #
17250 INTEL_UNIX_C)
17251 #
17252 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17253 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17254 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17255 ;;
17256 #
17257 INTEL_WINDOWS_C)
17258 #
17259 tmp_CFLAGS="$tmp_CFLAGS"
17260 ;;
17261 #
17262 LCC)
17263 #
17264 tmp_CFLAGS="$tmp_CFLAGS -n"
17265 ;;
17266 #
17267 SGI_MIPS_C)
17268 #
17269 tmp_CFLAGS="$tmp_CFLAGS"
17270 ;;
17271 #
17272 SGI_MIPSPRO_C)
17273 #
17274 tmp_CFLAGS="$tmp_CFLAGS"
17275 ;;
17276 #
17277 SUNPRO_C)
17278 #
17279 tmp_CFLAGS="$tmp_CFLAGS"
17280 ;;
17281 #
17282 TINY_C)
17283 #
17284 tmp_CFLAGS="$tmp_CFLAGS"
17285 ;;
17286 #
17287 WATCOM_UNIX_C)
17288 #
17289 tmp_CFLAGS="$tmp_CFLAGS"
17290 ;;
17291 #
17292 WATCOM_WINDOWS_C)
17293 #
17294 tmp_CFLAGS="$tmp_CFLAGS"
17295 ;;
17296 #
17297 esac
17298 #
17299 squeeze tmp_CPPFLAGS
17300 squeeze tmp_CFLAGS
17301 #
17302 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17304$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17305 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17306 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17307 squeeze CPPFLAGS
17308 squeeze CFLAGS
17309
17310 tmp_compiler_works="unknown"
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h. */
17313
17314
17315
17316int main (void)
17317{
17318
17319 int i = 1;
17320 return i;
17321
17322 ;
17323 return 0;
17324}
17325
17326_ACEOF
17327if ac_fn_c_try_compile "$LINENO"; then :
17328
17329 tmp_compiler_works="yes"
17330
17331else
17332
17333 tmp_compiler_works="no"
17334 echo " " >&6
17335 sed 's/^/cc-fail: /' conftest.err >&6
17336 echo " " >&6
17337
17338fi
17339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 if test "$tmp_compiler_works" = "yes"; then
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342/* end confdefs.h. */
17343
17344
17345
17346int main (void)
17347{
17348
17349 int i = 1;
17350 return i;
17351
17352 ;
17353 return 0;
17354}
17355
17356_ACEOF
17357if ac_fn_c_try_link "$LINENO"; then :
17358
17359 tmp_compiler_works="yes"
17360
17361else
17362
17363 tmp_compiler_works="no"
17364 echo " " >&6
17365 sed 's/^/link-fail: /' conftest.err >&6
17366 echo " " >&6
17367
17368fi
17369rm -f core conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 if test "x$cross_compiling" != "xyes" &&
17373 test "$tmp_compiler_works" = "yes"; then
17374 if test "$cross_compiling" = yes; then :
17375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17377as_fn_error $? "cannot run test program while cross compiling
17378See \`config.log' for more details" "$LINENO" 5; }
17379else
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h. */
17382
17383
17384# ifdef __STDC__
17385# include <stdlib.h>
17386# endif
17387
17388int main (void)
17389{
17390
17391 int i = 0;
17392 exit(i);
17393
17394 ;
17395 return 0;
17396}
17397
17398_ACEOF
17399if ac_fn_c_try_run "$LINENO"; then :
17400
17401 tmp_compiler_works="yes"
17402
17403else
17404
17405 tmp_compiler_works="no"
17406 echo " " >&6
17407 echo "run-fail: test program exited with status $ac_status" >&6
17408 echo " " >&6
17409
17410fi
17411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17412 conftest.$ac_objext conftest.beam conftest.$ac_ext
17413fi
17414
17415 fi
17416 if test "$tmp_compiler_works" = "yes"; then
17417
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17419$as_echo "yes" >&6; }
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17421$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17422
17423 else
17424
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426$as_echo "no" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17428$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17429 CPPFLAGS="$tmp_save_CPPFLAGS"
17430 CFLAGS="$tmp_save_CFLAGS"
17431
17432 fi
17433
17434 fi
17435 #
17436 fi
17437
17438
17439 #
17440 if test "$compiler_id" != "unknown"; then
17441 #
17442 tmp_save_CFLAGS="$CFLAGS"
17443 tmp_save_CPPFLAGS="$CPPFLAGS"
17444 #
17445 tmp_options=""
17446 tmp_CFLAGS="$CFLAGS"
17447 tmp_CPPFLAGS="$CPPFLAGS"
17448
17449 ac_var_stripped=""
17450 for word1 in $tmp_CFLAGS; do
17451 ac_var_strip_word="no"
17452 for word2 in $flags_dbg_all; do
17453 if test "$word1" = "$word2"; then
17454 ac_var_strip_word="yes"
17455 fi
17456 done
17457 if test "$ac_var_strip_word" = "no"; then
17458 ac_var_stripped="$ac_var_stripped $word1"
17459 fi
17460 done
17461 tmp_CFLAGS="$ac_var_stripped"
17462 squeeze tmp_CFLAGS
17463
17464
17465 ac_var_stripped=""
17466 for word1 in $tmp_CPPFLAGS; do
17467 ac_var_strip_word="no"
17468 for word2 in $flags_dbg_all; do
17469 if test "$word1" = "$word2"; then
17470 ac_var_strip_word="yes"
17471 fi
17472 done
17473 if test "$ac_var_strip_word" = "no"; then
17474 ac_var_stripped="$ac_var_stripped $word1"
17475 fi
17476 done
17477 tmp_CPPFLAGS="$ac_var_stripped"
17478 squeeze tmp_CPPFLAGS
17479
17480 #
17481 if test "$want_debug" = "yes"; then
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17483$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17484 tmp_options="$flags_dbg_yes"
17485 fi
17486 if test "$want_debug" = "no"; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17488$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17489 tmp_options="$flags_dbg_off"
17490 fi
17491 #
17492 if test "$flags_prefer_cppflags" = "yes"; then
17493 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17494 CFLAGS="$tmp_CFLAGS"
17495 else
17496 CPPFLAGS="$tmp_CPPFLAGS"
17497 CFLAGS="$tmp_CFLAGS $tmp_options"
17498 fi
17499 squeeze CPPFLAGS
17500 squeeze CFLAGS
17501
17502 tmp_compiler_works="unknown"
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h. */
17505
17506
17507
17508int main (void)
17509{
17510
17511 int i = 1;
17512 return i;
17513
17514 ;
17515 return 0;
17516}
17517
17518_ACEOF
17519if ac_fn_c_try_compile "$LINENO"; then :
17520
17521 tmp_compiler_works="yes"
17522
17523else
17524
17525 tmp_compiler_works="no"
17526 echo " " >&6
17527 sed 's/^/cc-fail: /' conftest.err >&6
17528 echo " " >&6
17529
17530fi
17531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532 if test "$tmp_compiler_works" = "yes"; then
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h. */
17535
17536
17537
17538int main (void)
17539{
17540
17541 int i = 1;
17542 return i;
17543
17544 ;
17545 return 0;
17546}
17547
17548_ACEOF
17549if ac_fn_c_try_link "$LINENO"; then :
17550
17551 tmp_compiler_works="yes"
17552
17553else
17554
17555 tmp_compiler_works="no"
17556 echo " " >&6
17557 sed 's/^/link-fail: /' conftest.err >&6
17558 echo " " >&6
17559
17560fi
17561rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 fi
17564 if test "x$cross_compiling" != "xyes" &&
17565 test "$tmp_compiler_works" = "yes"; then
17566 if test "$cross_compiling" = yes; then :
17567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17569as_fn_error $? "cannot run test program while cross compiling
17570See \`config.log' for more details" "$LINENO" 5; }
17571else
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573/* end confdefs.h. */
17574
17575
17576# ifdef __STDC__
17577# include <stdlib.h>
17578# endif
17579
17580int main (void)
17581{
17582
17583 int i = 0;
17584 exit(i);
17585
17586 ;
17587 return 0;
17588}
17589
17590_ACEOF
17591if ac_fn_c_try_run "$LINENO"; then :
17592
17593 tmp_compiler_works="yes"
17594
17595else
17596
17597 tmp_compiler_works="no"
17598 echo " " >&6
17599 echo "run-fail: test program exited with status $ac_status" >&6
17600 echo " " >&6
17601
17602fi
17603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17605fi
17606
17607 fi
17608 if test "$tmp_compiler_works" = "yes"; then
17609
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17611$as_echo "yes" >&6; }
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17613$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17614
17615 else
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17618$as_echo "no" >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17620$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17621 CPPFLAGS="$tmp_save_CPPFLAGS"
17622 CFLAGS="$tmp_save_CFLAGS"
17623
17624 fi
17625
17626 #
17627 fi
17628
17629
17630 #
17631 if test "$compiler_id" != "unknown"; then
17632 #
17633 tmp_save_CFLAGS="$CFLAGS"
17634 tmp_save_CPPFLAGS="$CPPFLAGS"
17635 #
17636 tmp_options=""
17637 tmp_CFLAGS="$CFLAGS"
17638 tmp_CPPFLAGS="$CPPFLAGS"
17639 honor_optimize_option="yes"
17640 #
17641 #
17642 if test "$want_optimize" = "assume_no" ||
17643 test "$want_optimize" = "assume_yes"; then
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17645$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17646
17647
17648 ac_var_match_word="no"
17649 for word1 in $tmp_CFLAGS; do
17650 for word2 in $flags_opt_all; do
17651 if test "$word1" = "$word2"; then
17652 ac_var_match_word="yes"
17653 fi
17654 done
17655 done
17656
17657 if test "$ac_var_match_word" = "yes"; then
17658
17659 honor_optimize_option="no"
17660
17661
17662 fi
17663
17664
17665
17666 ac_var_match_word="no"
17667 for word1 in $tmp_CPPFLAGS; do
17668 for word2 in $flags_opt_all; do
17669 if test "$word1" = "$word2"; then
17670 ac_var_match_word="yes"
17671 fi
17672 done
17673 done
17674
17675 if test "$ac_var_match_word" = "yes"; then
17676
17677 honor_optimize_option="no"
17678
17679
17680 fi
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17683$as_echo "$honor_optimize_option" >&6; }
17684 if test "$honor_optimize_option" = "yes"; then
17685 if test "$want_optimize" = "assume_yes"; then
17686 want_optimize="yes"
17687 fi
17688 if test "$want_optimize" = "assume_no"; then
17689 want_optimize="no"
17690 fi
17691 fi
17692 fi
17693 #
17694 if test "$honor_optimize_option" = "yes"; then
17695
17696 ac_var_stripped=""
17697 for word1 in $tmp_CFLAGS; do
17698 ac_var_strip_word="no"
17699 for word2 in $flags_opt_all; do
17700 if test "$word1" = "$word2"; then
17701 ac_var_strip_word="yes"
17702 fi
17703 done
17704 if test "$ac_var_strip_word" = "no"; then
17705 ac_var_stripped="$ac_var_stripped $word1"
17706 fi
17707 done
17708 tmp_CFLAGS="$ac_var_stripped"
17709 squeeze tmp_CFLAGS
17710
17711
17712 ac_var_stripped=""
17713 for word1 in $tmp_CPPFLAGS; do
17714 ac_var_strip_word="no"
17715 for word2 in $flags_opt_all; do
17716 if test "$word1" = "$word2"; then
17717 ac_var_strip_word="yes"
17718 fi
17719 done
17720 if test "$ac_var_strip_word" = "no"; then
17721 ac_var_stripped="$ac_var_stripped $word1"
17722 fi
17723 done
17724 tmp_CPPFLAGS="$ac_var_stripped"
17725 squeeze tmp_CPPFLAGS
17726
17727 if test "$want_optimize" = "yes"; then
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17729$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17730 tmp_options="$flags_opt_yes"
17731 fi
17732 if test "$want_optimize" = "no"; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17734$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17735 tmp_options="$flags_opt_off"
17736 fi
17737 if test "$flags_prefer_cppflags" = "yes"; then
17738 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17739 CFLAGS="$tmp_CFLAGS"
17740 else
17741 CPPFLAGS="$tmp_CPPFLAGS"
17742 CFLAGS="$tmp_CFLAGS $tmp_options"
17743 fi
17744 squeeze CPPFLAGS
17745 squeeze CFLAGS
17746
17747 tmp_compiler_works="unknown"
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749/* end confdefs.h. */
17750
17751
17752
17753int main (void)
17754{
17755
17756 int i = 1;
17757 return i;
17758
17759 ;
17760 return 0;
17761}
17762
17763_ACEOF
17764if ac_fn_c_try_compile "$LINENO"; then :
17765
17766 tmp_compiler_works="yes"
17767
17768else
17769
17770 tmp_compiler_works="no"
17771 echo " " >&6
17772 sed 's/^/cc-fail: /' conftest.err >&6
17773 echo " " >&6
17774
17775fi
17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 if test "$tmp_compiler_works" = "yes"; then
17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h. */
17780
17781
17782
17783int main (void)
17784{
17785
17786 int i = 1;
17787 return i;
17788
17789 ;
17790 return 0;
17791}
17792
17793_ACEOF
17794if ac_fn_c_try_link "$LINENO"; then :
17795
17796 tmp_compiler_works="yes"
17797
17798else
17799
17800 tmp_compiler_works="no"
17801 echo " " >&6
17802 sed 's/^/link-fail: /' conftest.err >&6
17803 echo " " >&6
17804
17805fi
17806rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 fi
17809 if test "x$cross_compiling" != "xyes" &&
17810 test "$tmp_compiler_works" = "yes"; then
17811 if test "$cross_compiling" = yes; then :
17812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17814as_fn_error $? "cannot run test program while cross compiling
17815See \`config.log' for more details" "$LINENO" 5; }
17816else
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h. */
17819
17820
17821# ifdef __STDC__
17822# include <stdlib.h>
17823# endif
17824
17825int main (void)
17826{
17827
17828 int i = 0;
17829 exit(i);
17830
17831 ;
17832 return 0;
17833}
17834
17835_ACEOF
17836if ac_fn_c_try_run "$LINENO"; then :
17837
17838 tmp_compiler_works="yes"
17839
17840else
17841
17842 tmp_compiler_works="no"
17843 echo " " >&6
17844 echo "run-fail: test program exited with status $ac_status" >&6
17845 echo " " >&6
17846
17847fi
17848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17849 conftest.$ac_objext conftest.beam conftest.$ac_ext
17850fi
17851
17852 fi
17853 if test "$tmp_compiler_works" = "yes"; then
17854
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17856$as_echo "yes" >&6; }
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17858$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17859
17860 else
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17863$as_echo "no" >&6; }
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17865$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17866 CPPFLAGS="$tmp_save_CPPFLAGS"
17867 CFLAGS="$tmp_save_CFLAGS"
17868
17869 fi
17870
17871 fi
17872 #
17873 fi
17874
17875
17876 #
17877 if test "$compiler_id" != "unknown"; then
17878 #
17879 tmp_save_CPPFLAGS="$CPPFLAGS"
17880 tmp_save_CFLAGS="$CFLAGS"
17881 tmp_CPPFLAGS=""
17882 tmp_CFLAGS=""
17883 #
17884 case "$compiler_id" in
17885 #
17886 CLANG)
17887 #
17888 if test "$want_warnings" = "yes"; then
17889 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17890 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17891 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17892 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17893 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17894 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17895 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17896 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17897 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17898 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17899 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17900 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17901 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17902 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17903 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17904 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17905 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17906 #
17907 if test "$compiler_num" -ge "101"; then
17908 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17909 fi
17910 #
17911 if test "$compiler_num" -ge "208"; then
17912 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17913 fi
17914 #
17915 if test "$compiler_num" -ge "209"; then
17916 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17917 fi
17918 #
17919 if test "$compiler_num" -ge "302"; then
17920 case $host_os in
17921 cygwin* | mingw*)
17922 ;;
17923 *)
17924 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17925 ;;
17926 esac
17927 fi
17928 #
17929 if test "$compiler_num" -ge "306"; then
17930 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17931 fi
17932 #
17933 if test "$compiler_num" -ge "309"; then
17934 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017935 # avoid the varargs warning, fixed in 4.0
17936 # https://bugs.llvm.org/show_bug.cgi?id=29140
17937 if test "$compiler_num" -lt "400"; then
17938 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17939 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017940 fi
17941 fi
17942 ;;
17943 #
17944 DEC_C)
17945 #
17946 if test "$want_warnings" = "yes"; then
17947 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17948 fi
17949 ;;
17950 #
17951 GNU_C)
17952 #
17953 if test "$want_warnings" = "yes"; then
17954 #
17955 if test "x$cross_compiling" != "xyes" ||
17956 test "$compiler_num" -ge "300"; then
17957 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17958 fi
17959 #
17960 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17961 #
17962 if test "$compiler_num" -ge "104"; then
17963 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17964 if test "x$cross_compiling" != "xyes" ||
17965 test "$compiler_num" -ge "300"; then
17966 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17967 fi
17968 fi
17969 #
17970 if test "$compiler_num" -ge "207"; then
17971 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17972 if test "x$cross_compiling" != "xyes" ||
17973 test "$compiler_num" -ge "300"; then
17974 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17975 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17976 fi
17977 fi
17978 #
17979 if test "$compiler_num" -ge "295"; then
17980 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17981 fi
17982 #
17983 if test "$compiler_num" -ge "296"; then
17984 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17985 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17986 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17987 fi
17988 #
17989 if test "$compiler_num" -ge "297"; then
17990 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17991 fi
17992 #
17993 if test "$compiler_num" -ge "300"; then
17994 tmp_CFLAGS="$tmp_CFLAGS"
17995 fi
17996 #
17997 if test "$compiler_num" -ge "303"; then
17998 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17999 fi
18000 #
18001 if test "$compiler_num" -ge "304"; then
18002 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18003 fi
18004 #
18005 if test "$compiler_num" -ge "400"; then
18006 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18007 fi
18008 #
18009 if test "$compiler_num" -ge "402"; then
18010 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18011 fi
18012 #
18013 if test "$compiler_num" -ge "403"; then
18014 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18015 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18016 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18017 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18018 fi
18019 #
18020 if test "$compiler_num" -ge "405"; then
18021 if test "$curl_cv_have_def__WIN32" = "yes"; then
18022 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18023 fi
18024 fi
18025 #
18026 if test "$compiler_num" -ge "406"; then
18027 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18028 fi
18029 #
18030 fi
18031 #
18032 if test "$compiler_num" -ge "300"; then
18033 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18034 else
18035 if test "x$cross_compiling" = "xyes"; then
18036 if test "$compiler_num" -ge "104"; then
18037 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18038 fi
18039 if test "$compiler_num" -ge "207"; then
18040 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18041 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18042 fi
18043 fi
18044 fi
18045 ;;
18046 #
18047 HP_UX_C)
18048 #
18049 if test "$want_warnings" = "yes"; then
18050 tmp_CFLAGS="$tmp_CFLAGS +w1"
18051 fi
18052 ;;
18053 #
18054 IBM_C)
18055 #
18056 tmp_CFLAGS="$tmp_CFLAGS"
18057 ;;
18058 #
18059 INTEL_UNIX_C)
18060 #
18061 if test "$want_warnings" = "yes"; then
18062 if test "$compiler_num" -gt "600"; then
18063 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18064 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18065 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18066 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18067 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18068 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18069 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18070 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18071 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18072 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18073 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18074 fi
18075 fi
18076 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18077 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18078 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18079 if test "$compiler_num" -ge "1000"; then
18080 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18081 fi
18082 ;;
18083 #
18084 INTEL_WINDOWS_C)
18085 #
18086 tmp_CFLAGS="$tmp_CFLAGS"
18087 ;;
18088 #
18089 LCC)
18090 #
18091 if test "$want_warnings" = "yes"; then
18092 tmp_CFLAGS="$tmp_CFLAGS"
18093 fi
18094 ;;
18095 #
18096 SGI_MIPS_C)
18097 #
18098 if test "$want_warnings" = "yes"; then
18099 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18100 fi
18101 ;;
18102 #
18103 SGI_MIPSPRO_C)
18104 #
18105 if test "$want_warnings" = "yes"; then
18106 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18107 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18108 fi
18109 ;;
18110 #
18111 SUNPRO_C)
18112 #
18113 if test "$want_warnings" = "yes"; then
18114 tmp_CFLAGS="$tmp_CFLAGS -v"
18115 fi
18116 ;;
18117 #
18118 TINY_C)
18119 #
18120 if test "$want_warnings" = "yes"; then
18121 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18122 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18123 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18124 fi
18125 ;;
18126 #
18127 WATCOM_UNIX_C)
18128 #
18129 if test "$want_warnings" = "yes"; then
18130 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18131 fi
18132 ;;
18133 #
18134 WATCOM_WINDOWS_C)
18135 #
18136 tmp_CFLAGS="$tmp_CFLAGS"
18137 ;;
18138 #
18139 esac
18140 #
18141 squeeze tmp_CPPFLAGS
18142 squeeze tmp_CFLAGS
18143 #
18144 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18146$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18147 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18148 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18149 squeeze CPPFLAGS
18150 squeeze CFLAGS
18151
18152 tmp_compiler_works="unknown"
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154/* end confdefs.h. */
18155
18156
18157
18158int main (void)
18159{
18160
18161 int i = 1;
18162 return i;
18163
18164 ;
18165 return 0;
18166}
18167
18168_ACEOF
18169if ac_fn_c_try_compile "$LINENO"; then :
18170
18171 tmp_compiler_works="yes"
18172
18173else
18174
18175 tmp_compiler_works="no"
18176 echo " " >&6
18177 sed 's/^/cc-fail: /' conftest.err >&6
18178 echo " " >&6
18179
18180fi
18181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182 if test "$tmp_compiler_works" = "yes"; then
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184/* end confdefs.h. */
18185
18186
18187
18188int main (void)
18189{
18190
18191 int i = 1;
18192 return i;
18193
18194 ;
18195 return 0;
18196}
18197
18198_ACEOF
18199if ac_fn_c_try_link "$LINENO"; then :
18200
18201 tmp_compiler_works="yes"
18202
18203else
18204
18205 tmp_compiler_works="no"
18206 echo " " >&6
18207 sed 's/^/link-fail: /' conftest.err >&6
18208 echo " " >&6
18209
18210fi
18211rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 fi
18214 if test "x$cross_compiling" != "xyes" &&
18215 test "$tmp_compiler_works" = "yes"; then
18216 if test "$cross_compiling" = yes; then :
18217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18219as_fn_error $? "cannot run test program while cross compiling
18220See \`config.log' for more details" "$LINENO" 5; }
18221else
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h. */
18224
18225
18226# ifdef __STDC__
18227# include <stdlib.h>
18228# endif
18229
18230int main (void)
18231{
18232
18233 int i = 0;
18234 exit(i);
18235
18236 ;
18237 return 0;
18238}
18239
18240_ACEOF
18241if ac_fn_c_try_run "$LINENO"; then :
18242
18243 tmp_compiler_works="yes"
18244
18245else
18246
18247 tmp_compiler_works="no"
18248 echo " " >&6
18249 echo "run-fail: test program exited with status $ac_status" >&6
18250 echo " " >&6
18251
18252fi
18253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18254 conftest.$ac_objext conftest.beam conftest.$ac_ext
18255fi
18256
18257 fi
18258 if test "$tmp_compiler_works" = "yes"; then
18259
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18261$as_echo "yes" >&6; }
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18263$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18264
18265 else
18266
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268$as_echo "no" >&6; }
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18270$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18271 CPPFLAGS="$tmp_save_CPPFLAGS"
18272 CFLAGS="$tmp_save_CFLAGS"
18273
18274 fi
18275
18276 fi
18277 #
18278 fi
18279
18280
18281if test "$compiler_id" = "INTEL_UNIX_C"; then
18282 #
18283 if test "$compiler_num" -ge "1000"; then
18284 CFLAGS="$CFLAGS -shared-intel"
18285 elif test "$compiler_num" -ge "900"; then
18286 CFLAGS="$CFLAGS -i-dynamic"
18287 fi
18288 #
18289fi
18290
18291
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18293$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295/* end confdefs.h. */
18296
18297
18298
18299int main (void)
18300{
18301
18302 force compilation error
18303
18304 ;
18305 return 0;
18306}
18307
18308_ACEOF
18309if ac_fn_c_try_compile "$LINENO"; then :
18310
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312$as_echo "no" >&6; }
18313 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18314
18315else
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18318$as_echo "yes" >&6; }
18319
18320fi
18321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18322
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18325$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327/* end confdefs.h. */
18328
18329
18330 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18331
18332int main (void)
18333{
18334
18335 bad_t dummy;
18336
18337 ;
18338 return 0;
18339}
18340
18341_ACEOF
18342if ac_fn_c_try_compile "$LINENO"; then :
18343
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345$as_echo "no" >&6; }
18346 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18347
18348else
18349
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18351$as_echo "yes" >&6; }
18352
18353fi
18354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355
18356
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18358$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360/* end confdefs.h. */
18361
18362
18363# include <stdlib.h>
18364 int rand(int n);
18365 int rand(int n)
18366 {
18367 if(n)
18368 return ++n;
18369 else
18370 return n;
18371 }
18372
18373int main (void)
18374{
18375
18376 int i[2]={0,0};
18377 int j = rand(i[0]);
18378 if(j)
18379 return j;
18380
18381 ;
18382 return 0;
18383}
18384
18385_ACEOF
18386if ac_fn_c_try_compile "$LINENO"; then :
18387
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389$as_echo "no" >&6; }
18390 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18391
18392else
18393
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395$as_echo "yes" >&6; }
18396
18397fi
18398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18402$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18403 supports_symbol_hiding="no"
18404 symbol_hiding_CFLAGS=""
18405 symbol_hiding_EXTERN=""
18406 tmp_CFLAGS=""
18407 tmp_EXTERN=""
18408 case "$compiler_id" in
18409 CLANG)
18410 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18411 tmp_CFLAGS="-fvisibility=hidden"
18412 supports_symbol_hiding="yes"
18413 ;;
18414 GNU_C)
18415 if test "$compiler_num" -ge "304"; then
18416 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18417 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18418 tmp_CFLAGS="-fvisibility=hidden"
18419 supports_symbol_hiding="yes"
18420 fi
18421 fi
18422 ;;
18423 INTEL_UNIX_C)
18424 if test "$compiler_num" -ge "900"; then
18425 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18426 tmp_save_CFLAGS="$CFLAGS"
18427 CFLAGS="$CFLAGS -fvisibility=hidden"
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429/* end confdefs.h. */
18430
18431
18432# include <stdio.h>
18433
18434int main (void)
18435{
18436
18437 printf("icc fvisibility bug test");
18438
18439 ;
18440 return 0;
18441}
18442
18443_ACEOF
18444if ac_fn_c_try_link "$LINENO"; then :
18445
18446 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18447 tmp_CFLAGS="-fvisibility=hidden"
18448 supports_symbol_hiding="yes"
18449
18450fi
18451rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453 CFLAGS="$tmp_save_CFLAGS"
18454 fi
18455 fi
18456 ;;
18457 SUNPRO_C)
18458 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18459 tmp_EXTERN="__global"
18460 tmp_CFLAGS="-xldscope=hidden"
18461 supports_symbol_hiding="yes"
18462 fi
18463 ;;
18464 esac
18465 if test "$supports_symbol_hiding" = "yes"; then
18466 tmp_save_CFLAGS="$CFLAGS"
18467 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18468 squeeze CFLAGS
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470/* end confdefs.h. */
18471
18472
18473 $tmp_EXTERN char *dummy(char *buff);
18474 char *dummy(char *buff)
18475 {
18476 if(buff)
18477 return ++buff;
18478 else
18479 return buff;
18480 }
18481
18482int main (void)
18483{
18484
18485 char b[16];
18486 char *r = dummy(&b[0]);
18487 if(r)
18488 return (int)*r;
18489
18490 ;
18491 return 0;
18492}
18493
18494_ACEOF
18495if ac_fn_c_try_compile "$LINENO"; then :
18496
18497 supports_symbol_hiding="yes"
18498 if test -f conftest.err; then
18499 grep 'visibility' conftest.err >/dev/null
18500 if test "$?" -eq "0"; then
18501 supports_symbol_hiding="no"
18502 fi
18503 fi
18504
18505else
18506
18507 supports_symbol_hiding="no"
18508 echo " " >&6
18509 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18510 sed 's/^/cc-err: /' conftest.err >&6
18511 echo " " >&6
18512
18513fi
18514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 CFLAGS="$tmp_save_CFLAGS"
18516 fi
18517 if test "$supports_symbol_hiding" = "yes"; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18519$as_echo "yes" >&6; }
18520 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18521 symbol_hiding_EXTERN="$tmp_EXTERN"
18522 else
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524$as_echo "no" >&6; }
18525 fi
18526
18527
18528
18529 supports_curldebug="unknown"
18530 if test "$want_curldebug" = "yes"; then
18531 if test "x$enable_shared" != "xno" &&
18532 test "x$enable_shared" != "xyes"; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18534$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18535 supports_curldebug="no"
18536 fi
18537 if test "x$enable_static" != "xno" &&
18538 test "x$enable_static" != "xyes"; then
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18540$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18541 supports_curldebug="no"
18542 fi
18543 if test "$supports_curldebug" != "no"; then
18544 if test "$enable_shared" = "yes" &&
18545 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18546 supports_curldebug="no"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18548$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18549 fi
18550 fi
18551 fi
18552 #
18553 if test "$want_curldebug" = "yes"; then
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18555$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18556 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18558$as_echo "$supports_curldebug" >&6; }
18559 if test "$supports_curldebug" = "no"; then
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18561$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18562 want_curldebug="no"
18563 fi
18564 fi
18565 #
18566 if test "$want_curldebug" = "yes"; then
18567 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18568 squeeze CPPFLAGS
18569 fi
18570 if test "$want_debug" = "yes"; then
18571 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18572 squeeze CPPFLAGS
18573 fi
18574
18575 if test x$want_curldebug = xyes; then
18576 CURLDEBUG_TRUE=
18577 CURLDEBUG_FALSE='#'
18578else
18579 CURLDEBUG_TRUE='#'
18580 CURLDEBUG_FALSE=
18581fi
18582
18583
18584supports_unittests=yes
18585# cross-compilation of unit tests static library/programs fails when
18586# libcurl shared library is built. This might be due to a libtool or
18587# automake issue. In this case we disable unit tests.
18588if test "x$cross_compiling" != "xno" &&
18589 test "x$enable_shared" != "xno"; then
18590 supports_unittests=no
18591fi
18592
18593# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18594# a problem related with OpenSSL headers and library versions not matching.
18595# Disable unit tests while time to further investigate this is found.
18596case $host in
18597 mips-sgi-irix6.5)
18598 if test "$compiler_id" = "GNU_C"; then
18599 supports_unittests=no
18600 fi
18601 ;;
18602esac
18603
18604# All AIX autobuilds fails unit tests linking against unittests library
18605# due to unittests library being built with no symbols or members. Libtool ?
18606# Disable unit tests while time to further investigate this is found.
18607case $host_os in
18608 aix*)
18609 supports_unittests=no
18610 ;;
18611esac
18612
18613if test "x$want_debug" = "xyes" &&
18614 test "x$supports_unittests" = "xyes"; then
18615 want_unittests=yes
18616else
18617 want_unittests=no
18618fi
18619 if test x$want_unittests = xyes; then
18620 BUILD_UNITTESTS_TRUE=
18621 BUILD_UNITTESTS_FALSE='#'
18622else
18623 BUILD_UNITTESTS_TRUE='#'
18624 BUILD_UNITTESTS_FALSE=
18625fi
18626
18627
18628
18629
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18632$as_echo_n "checking for windows.h... " >&6; }
18633if ${curl_cv_header_windows_h+:} false; then :
18634 $as_echo_n "(cached) " >&6
18635else
18636
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638/* end confdefs.h. */
18639
18640
18641#undef inline
18642#ifndef WIN32_LEAN_AND_MEAN
18643#define WIN32_LEAN_AND_MEAN
18644#endif
18645#include <windows.h>
18646
18647int main (void)
18648{
18649
18650#if defined(__CYGWIN__) || defined(__CEGCC__)
18651 HAVE_WINDOWS_H shall not be defined.
18652#else
18653 int dummy=2*WINVER;
18654#endif
18655
18656 ;
18657 return 0;
18658}
18659
18660_ACEOF
18661if ac_fn_c_try_compile "$LINENO"; then :
18662
18663 curl_cv_header_windows_h="yes"
18664
18665else
18666
18667 curl_cv_header_windows_h="no"
18668
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671
18672fi
18673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18674$as_echo "$curl_cv_header_windows_h" >&6; }
18675 case "$curl_cv_header_windows_h" in
18676 yes)
18677
18678cat >>confdefs.h <<_ACEOF
18679#define HAVE_WINDOWS_H 1
18680_ACEOF
18681
18682 ;;
18683 esac
18684
18685
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18687$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18688if ${curl_cv_native_windows+:} false; then :
18689 $as_echo_n "(cached) " >&6
18690else
18691
18692 if test "$curl_cv_header_windows_h" = "no"; then
18693 curl_cv_native_windows="no"
18694 else
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696/* end confdefs.h. */
18697
18698
18699
18700int main (void)
18701{
18702
18703#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18704 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18705 int dummy=1;
18706#else
18707 Not a native Windows build target.
18708#endif
18709
18710 ;
18711 return 0;
18712}
18713
18714_ACEOF
18715if ac_fn_c_try_compile "$LINENO"; then :
18716
18717 curl_cv_native_windows="yes"
18718
18719else
18720
18721 curl_cv_native_windows="no"
18722
18723fi
18724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 fi
18726
18727fi
18728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18729$as_echo "$curl_cv_native_windows" >&6; }
18730 if test "x$curl_cv_native_windows" = xyes; then
18731 DOING_NATIVE_WINDOWS_TRUE=
18732 DOING_NATIVE_WINDOWS_FALSE='#'
18733else
18734 DOING_NATIVE_WINDOWS_TRUE='#'
18735 DOING_NATIVE_WINDOWS_FALSE=
18736fi
18737
18738
18739case X-"$curl_cv_native_windows" in
18740 X-yes)
18741
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18743$as_echo_n "checking for winsock.h... " >&6; }
18744if ${curl_cv_header_winsock_h+:} false; then :
18745 $as_echo_n "(cached) " >&6
18746else
18747
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h. */
18750
18751
18752#undef inline
18753#ifndef WIN32_LEAN_AND_MEAN
18754#define WIN32_LEAN_AND_MEAN
18755#endif
18756#include <windows.h>
18757#include <winsock.h>
18758
18759int main (void)
18760{
18761
18762#if defined(__CYGWIN__) || defined(__CEGCC__)
18763 HAVE_WINSOCK_H shall not be defined.
18764#else
18765 int dummy=WSACleanup();
18766#endif
18767
18768 ;
18769 return 0;
18770}
18771
18772_ACEOF
18773if ac_fn_c_try_compile "$LINENO"; then :
18774
18775 curl_cv_header_winsock_h="yes"
18776
18777else
18778
18779 curl_cv_header_winsock_h="no"
18780
18781fi
18782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783
18784fi
18785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18786$as_echo "$curl_cv_header_winsock_h" >&6; }
18787 case "$curl_cv_header_winsock_h" in
18788 yes)
18789
18790cat >>confdefs.h <<_ACEOF
18791#define HAVE_WINSOCK_H 1
18792_ACEOF
18793
18794 ;;
18795 esac
18796
18797
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18799$as_echo_n "checking for winsock2.h... " >&6; }
18800if ${curl_cv_header_winsock2_h+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802else
18803
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805/* end confdefs.h. */
18806
18807
18808#undef inline
18809#ifndef WIN32_LEAN_AND_MEAN
18810#define WIN32_LEAN_AND_MEAN
18811#endif
18812#include <windows.h>
18813#include <winsock2.h>
18814
18815int main (void)
18816{
18817
18818#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18819 HAVE_WINSOCK2_H shall not be defined.
18820#else
18821 int dummy=2*IPPROTO_ESP;
18822#endif
18823
18824 ;
18825 return 0;
18826}
18827
18828_ACEOF
18829if ac_fn_c_try_compile "$LINENO"; then :
18830
18831 curl_cv_header_winsock2_h="yes"
18832
18833else
18834
18835 curl_cv_header_winsock2_h="no"
18836
18837fi
18838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839
18840fi
18841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18842$as_echo "$curl_cv_header_winsock2_h" >&6; }
18843 case "$curl_cv_header_winsock2_h" in
18844 yes)
18845
18846cat >>confdefs.h <<_ACEOF
18847#define HAVE_WINSOCK2_H 1
18848_ACEOF
18849
18850 ;;
18851 esac
18852
18853
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18855$as_echo_n "checking for ws2tcpip.h... " >&6; }
18856if ${curl_cv_header_ws2tcpip_h+:} false; then :
18857 $as_echo_n "(cached) " >&6
18858else
18859
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861/* end confdefs.h. */
18862
18863
18864#undef inline
18865#ifndef WIN32_LEAN_AND_MEAN
18866#define WIN32_LEAN_AND_MEAN
18867#endif
18868#include <windows.h>
18869#include <winsock2.h>
18870#include <ws2tcpip.h>
18871
18872int main (void)
18873{
18874
18875#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18876 HAVE_WS2TCPIP_H shall not be defined.
18877#else
18878 int dummy=2*IP_PKTINFO;
18879#endif
18880
18881 ;
18882 return 0;
18883}
18884
18885_ACEOF
18886if ac_fn_c_try_compile "$LINENO"; then :
18887
18888 curl_cv_header_ws2tcpip_h="yes"
18889
18890else
18891
18892 curl_cv_header_ws2tcpip_h="no"
18893
18894fi
18895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896
18897fi
18898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18899$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18900 case "$curl_cv_header_ws2tcpip_h" in
18901 yes)
18902
18903cat >>confdefs.h <<_ACEOF
18904#define HAVE_WS2TCPIP_H 1
18905_ACEOF
18906
18907 ;;
18908 esac
18909
18910
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18912$as_echo_n "checking for winldap.h... " >&6; }
18913if ${curl_cv_header_winldap_h+:} false; then :
18914 $as_echo_n "(cached) " >&6
18915else
18916
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h. */
18919
18920
18921#undef inline
18922#ifdef HAVE_WINDOWS_H
18923#ifndef WIN32_LEAN_AND_MEAN
18924#define WIN32_LEAN_AND_MEAN
18925#endif
18926#include <windows.h>
18927#endif
18928#include <winldap.h>
18929
18930int main (void)
18931{
18932
18933#if defined(__CYGWIN__) || defined(__CEGCC__)
18934 HAVE_WINLDAP_H shall not be defined.
18935#else
18936 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18937 ULONG res = ldap_unbind(ldp);
18938#endif
18939
18940 ;
18941 return 0;
18942}
18943
18944_ACEOF
18945if ac_fn_c_try_compile "$LINENO"; then :
18946
18947 curl_cv_header_winldap_h="yes"
18948
18949else
18950
18951 curl_cv_header_winldap_h="no"
18952
18953fi
18954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955
18956fi
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18958$as_echo "$curl_cv_header_winldap_h" >&6; }
18959 case "$curl_cv_header_winldap_h" in
18960 yes)
18961
18962cat >>confdefs.h <<_ACEOF
18963#define HAVE_WINLDAP_H 1
18964_ACEOF
18965
18966 ;;
18967 esac
18968
18969
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18971$as_echo_n "checking for winber.h... " >&6; }
18972if ${curl_cv_header_winber_h+:} false; then :
18973 $as_echo_n "(cached) " >&6
18974else
18975
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977/* end confdefs.h. */
18978
18979
18980#undef inline
18981#ifdef HAVE_WINDOWS_H
18982#ifndef WIN32_LEAN_AND_MEAN
18983#define WIN32_LEAN_AND_MEAN
18984#endif
18985#include <windows.h>
18986#endif
18987#include <winldap.h>
18988#include <winber.h>
18989
18990int main (void)
18991{
18992
18993#if defined(__CYGWIN__) || defined(__CEGCC__)
18994 HAVE_WINBER_H shall not be defined.
18995#else
18996 BERVAL *bvp = NULL;
18997 BerElement *bep = ber_init(bvp);
18998 ber_free(bep, 1);
18999#endif
19000
19001 ;
19002 return 0;
19003}
19004
19005_ACEOF
19006if ac_fn_c_try_compile "$LINENO"; then :
19007
19008 curl_cv_header_winber_h="yes"
19009
19010else
19011
19012 curl_cv_header_winber_h="no"
19013
19014fi
19015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016
19017fi
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19019$as_echo "$curl_cv_header_winber_h" >&6; }
19020 case "$curl_cv_header_winber_h" in
19021 yes)
19022
19023cat >>confdefs.h <<_ACEOF
19024#define HAVE_WINBER_H 1
19025_ACEOF
19026
19027 ;;
19028 esac
19029
19030 ;;
19031 *)
19032 curl_cv_header_winsock_h="no"
19033 curl_cv_header_winsock2_h="no"
19034 curl_cv_header_ws2tcpip_h="no"
19035 curl_cv_header_winldap_h="no"
19036 curl_cv_header_winber_h="no"
19037 ;;
19038esac
19039
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19041$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19042 curl_win32_file_api="no"
19043 if test "$curl_cv_header_windows_h" = "yes"; then
19044 if test x"$enable_largefile" != "xno"; then
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046/* end confdefs.h. */
19047
19048
19049
19050int main (void)
19051{
19052
19053#if !defined(_WIN32_WCE) && \
19054 (defined(__MINGW32__) || \
19055 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19056 int dummy=1;
19057#else
19058 WIN32 large file API not supported.
19059#endif
19060
19061 ;
19062 return 0;
19063}
19064
19065_ACEOF
19066if ac_fn_c_try_compile "$LINENO"; then :
19067
19068 curl_win32_file_api="win32_large_files"
19069
19070fi
19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072 fi
19073 if test "$curl_win32_file_api" = "no"; then
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075/* end confdefs.h. */
19076
19077
19078
19079int main (void)
19080{
19081
19082#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19083 int dummy=1;
19084#else
19085 WIN32 small file API not supported.
19086#endif
19087
19088 ;
19089 return 0;
19090}
19091
19092_ACEOF
19093if ac_fn_c_try_compile "$LINENO"; then :
19094
19095 curl_win32_file_api="win32_small_files"
19096
19097fi
19098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19099 fi
19100 fi
19101 case "$curl_win32_file_api" in
19102 win32_large_files)
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19104$as_echo "yes (large file enabled)" >&6; }
19105
19106cat >>confdefs.h <<_ACEOF
19107#define USE_WIN32_LARGE_FILES 1
19108_ACEOF
19109
19110 ;;
19111 win32_small_files)
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19113$as_echo "yes (large file disabled)" >&6; }
19114
19115cat >>confdefs.h <<_ACEOF
19116#define USE_WIN32_SMALL_FILES 1
19117_ACEOF
19118
19119 ;;
19120 *)
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122$as_echo "no" >&6; }
19123 ;;
19124 esac
19125
19126
19127
19128
19129 tst_cflags="no"
19130 case $host_os in
19131 darwin*)
19132 tst_cflags="yes"
19133 ;;
19134 esac
19135
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19137$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19139$as_echo "$tst_cflags" >&6; };
19140
19141 if test "$tst_cflags" = "yes"; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19143$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19144 min=""
19145 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19146 min="-mmacosx-version-min=10.8"
19147 CFLAGS="$CFLAGS $min"
19148 fi
19149 if test -z "$min"; then
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19151$as_echo "set by user" >&6; }
19152 else
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19154$as_echo "$min set" >&6; }
19155 fi
19156
19157 old_CFLAGS=$CFLAGS
19158 CFLAGS="$CFLAGS -Werror=partial-availability"
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19160$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162/* end confdefs.h. */
19163
19164int main (void)
19165{
19166
19167 ;
19168 return 0;
19169}
19170_ACEOF
19171if ac_fn_c_try_compile "$LINENO"; then :
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19173$as_echo "yes" >&6; }
19174else
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176$as_echo "no" >&6; }
19177 CFLAGS=$old_CFLAGS
19178fi
19179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 fi
19181
19182
19183
Alex Deymo486467e2017-12-19 19:04:07 +010019184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19185$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187/* end confdefs.h. */
19188
19189
19190#include <stdlib.h>
19191
19192int main (void)
19193{
19194
19195 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19196
19197 ;
19198 return 0;
19199}
19200
19201_ACEOF
19202if ac_fn_c_try_compile "$LINENO"; then :
19203
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19205$as_echo "yes" >&6; }
19206
19207cat >>confdefs.h <<_ACEOF
19208#define HAVE_BUILTIN_AVAILABLE 1
19209_ACEOF
19210
19211
19212else
19213
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215$as_echo "no" >&6; }
19216
19217fi
19218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219
19220
Elliott Hughes82be86d2017-09-20 17:00:17 -070019221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19222$as_echo_n "checking whether to support http... " >&6; }
19223# Check whether --enable-http was given.
19224if test "${enable_http+set}" = set; then :
19225 enableval=$enable_http; case "$enableval" in
19226 no)
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228$as_echo "no" >&6; }
19229
19230$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19231
19232 disable_http="yes"
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19234$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19235 CURL_DISABLE_HTTP=1
19236
19237
19238$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19239
19240 CURL_DISABLE_RTSP=1
19241
19242 ;;
19243 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244$as_echo "yes" >&6; }
19245 ;;
19246 esac
19247else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19249$as_echo "yes" >&6; }
19250
19251fi
19252
19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19254$as_echo_n "checking whether to support ftp... " >&6; }
19255# Check whether --enable-ftp was given.
19256if test "${enable_ftp+set}" = set; then :
19257 enableval=$enable_ftp; case "$enableval" in
19258 no)
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260$as_echo "no" >&6; }
19261
19262$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19263
19264 CURL_DISABLE_FTP=1
19265
19266 ;;
19267 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19268$as_echo "yes" >&6; }
19269 ;;
19270 esac
19271else
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19273$as_echo "yes" >&6; }
19274
19275fi
19276
19277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19278$as_echo_n "checking whether to support file... " >&6; }
19279# Check whether --enable-file was given.
19280if test "${enable_file+set}" = set; then :
19281 enableval=$enable_file; case "$enableval" in
19282 no)
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284$as_echo "no" >&6; }
19285
19286$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19287
19288 CURL_DISABLE_FILE=1
19289
19290 ;;
19291 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292$as_echo "yes" >&6; }
19293 ;;
19294 esac
19295else
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19297$as_echo "yes" >&6; }
19298
19299fi
19300
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19302$as_echo_n "checking whether to support ldap... " >&6; }
19303# Check whether --enable-ldap was given.
19304if test "${enable_ldap+set}" = set; then :
19305 enableval=$enable_ldap; case "$enableval" in
19306 no)
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308$as_echo "no" >&6; }
19309
19310$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19311
19312 CURL_DISABLE_LDAP=1
19313
19314 ;;
19315 *)
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19317$as_echo "yes" >&6; }
19318 ;;
19319 esac
19320else
19321
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19323$as_echo "yes" >&6; }
19324
19325fi
19326
19327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19328$as_echo_n "checking whether to support ldaps... " >&6; }
19329# Check whether --enable-ldaps was given.
19330if test "${enable_ldaps+set}" = set; then :
19331 enableval=$enable_ldaps; case "$enableval" in
19332 no)
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334$as_echo "no" >&6; }
19335
19336$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19337
19338 CURL_DISABLE_LDAPS=1
19339
19340 ;;
19341 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19343$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19344
19345$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19346
19347 CURL_DISABLE_LDAPS=1
19348
19349 else
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19351$as_echo "yes" >&6; }
19352
19353$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19354
19355 HAVE_LDAP_SSL=1
19356
19357 fi
19358 ;;
19359 esac
19360else
19361
19362 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364$as_echo "no" >&6; }
19365
19366$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19367
19368 CURL_DISABLE_LDAPS=1
19369
19370 else
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19372$as_echo "yes" >&6; }
19373
19374$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19375
19376 HAVE_LDAP_SSL=1
19377
19378 fi
19379
19380fi
19381
19382
19383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19384$as_echo_n "checking whether to support rtsp... " >&6; }
19385# Check whether --enable-rtsp was given.
19386if test "${enable_rtsp+set}" = set; then :
19387 enableval=$enable_rtsp; case "$enableval" in
19388 no)
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390$as_echo "no" >&6; }
19391
19392$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19393
19394 CURL_DISABLE_RTSP=1
19395
19396 ;;
19397 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19398 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19399 else
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19401$as_echo "yes" >&6; }
19402 curl_rtsp_msg="enabled"
19403 fi
19404 ;;
19405 esac
19406else
19407 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19409$as_echo "yes" >&6; }
19410 curl_rtsp_msg="enabled"
19411 else
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19413$as_echo "no" >&6; }
19414 fi
19415
19416fi
19417
19418
19419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19420$as_echo_n "checking whether to support proxies... " >&6; }
19421# Check whether --enable-proxy was given.
19422if test "${enable_proxy+set}" = set; then :
19423 enableval=$enable_proxy; case "$enableval" in
19424 no)
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426$as_echo "no" >&6; }
19427
19428$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19429
19430 CURL_DISABLE_PROXY=1
19431
19432 ;;
19433 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19434$as_echo "yes" >&6; }
19435 ;;
19436 esac
19437else
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439$as_echo "yes" >&6; }
19440
19441fi
19442
19443
19444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19445$as_echo_n "checking whether to support dict... " >&6; }
19446# Check whether --enable-dict was given.
19447if test "${enable_dict+set}" = set; then :
19448 enableval=$enable_dict; case "$enableval" in
19449 no)
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451$as_echo "no" >&6; }
19452
19453$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19454
19455 CURL_DISABLE_DICT=1
19456
19457 ;;
19458 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19459$as_echo "yes" >&6; }
19460 ;;
19461 esac
19462else
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464$as_echo "yes" >&6; }
19465
19466fi
19467
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19469$as_echo_n "checking whether to support telnet... " >&6; }
19470# Check whether --enable-telnet was given.
19471if test "${enable_telnet+set}" = set; then :
19472 enableval=$enable_telnet; 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_TELNET 1" >>confdefs.h
19478
19479 CURL_DISABLE_TELNET=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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19493$as_echo_n "checking whether to support tftp... " >&6; }
19494# Check whether --enable-tftp was given.
19495if test "${enable_tftp+set}" = set; then :
19496 enableval=$enable_tftp; case "$enableval" in
19497 no)
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499$as_echo "no" >&6; }
19500
19501$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19502
19503 CURL_DISABLE_TFTP=1
19504
19505 ;;
19506 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507$as_echo "yes" >&6; }
19508 ;;
19509 esac
19510else
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19512$as_echo "yes" >&6; }
19513
19514fi
19515
19516
19517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19518$as_echo_n "checking whether to support pop3... " >&6; }
19519# Check whether --enable-pop3 was given.
19520if test "${enable_pop3+set}" = set; then :
19521 enableval=$enable_pop3; case "$enableval" in
19522 no)
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524$as_echo "no" >&6; }
19525
19526$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19527
19528 CURL_DISABLE_POP3=1
19529
19530 ;;
19531 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19532$as_echo "yes" >&6; }
19533 ;;
19534 esac
19535else
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19537$as_echo "yes" >&6; }
19538
19539fi
19540
19541
19542
19543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19544$as_echo_n "checking whether to support imap... " >&6; }
19545# Check whether --enable-imap was given.
19546if test "${enable_imap+set}" = set; then :
19547 enableval=$enable_imap; case "$enableval" in
19548 no)
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19550$as_echo "no" >&6; }
19551
19552$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19553
19554 CURL_DISABLE_IMAP=1
19555
19556 ;;
19557 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19558$as_echo "yes" >&6; }
19559 ;;
19560 esac
19561else
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19563$as_echo "yes" >&6; }
19564
19565fi
19566
19567
19568
19569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19570$as_echo_n "checking whether to support smb... " >&6; }
19571# Check whether --enable-smb was given.
19572if test "${enable_smb+set}" = set; then :
19573 enableval=$enable_smb; case "$enableval" in
19574 no)
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19576$as_echo "no" >&6; }
19577
19578$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19579
19580 CURL_DISABLE_SMB=1
19581
19582 ;;
19583 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19584$as_echo "yes" >&6; }
19585 ;;
19586 esac
19587else
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19589$as_echo "yes" >&6; }
19590
19591fi
19592
19593
19594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19595$as_echo_n "checking whether to support smtp... " >&6; }
19596# Check whether --enable-smtp was given.
19597if test "${enable_smtp+set}" = set; then :
19598 enableval=$enable_smtp; case "$enableval" in
19599 no)
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19601$as_echo "no" >&6; }
19602
19603$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19604
19605 CURL_DISABLE_SMTP=1
19606
19607 ;;
19608 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19609$as_echo "yes" >&6; }
19610 ;;
19611 esac
19612else
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19614$as_echo "yes" >&6; }
19615
19616fi
19617
19618
19619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19620$as_echo_n "checking whether to support gopher... " >&6; }
19621# Check whether --enable-gopher was given.
19622if test "${enable_gopher+set}" = set; then :
19623 enableval=$enable_gopher; case "$enableval" in
19624 no)
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626$as_echo "no" >&6; }
19627
19628$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19629
19630 CURL_DISABLE_GOPHER=1
19631
19632 ;;
19633 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634$as_echo "yes" >&6; }
19635 ;;
19636 esac
19637else
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19639$as_echo "yes" >&6; }
19640
19641fi
19642
19643
19644
19645
19646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19647$as_echo_n "checking whether to provide built-in manual... " >&6; }
19648# Check whether --enable-manual was given.
19649if test "${enable_manual+set}" = set; then :
19650 enableval=$enable_manual; case "$enableval" in
19651 no)
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653$as_echo "no" >&6; }
19654 ;;
19655 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656$as_echo "yes" >&6; }
19657 USE_MANUAL="1"
19658 ;;
19659 esac
19660else
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19662$as_echo "yes" >&6; }
19663 USE_MANUAL="1"
19664
19665fi
19666
19667
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19669$as_echo_n "checking whether to enable generation of C code... " >&6; }
19670# Check whether --enable-libcurl_option was given.
19671if test "${enable_libcurl_option+set}" = set; then :
19672 enableval=$enable_libcurl_option; case "$enableval" in
19673 no)
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19675$as_echo "no" >&6; }
19676
19677$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19678
19679 curl_libcurl_msg="no"
19680 ;;
19681 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19682$as_echo "yes" >&6; }
19683 ;;
19684 esac
19685else
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19687$as_echo "yes" >&6; }
19688
19689fi
19690
19691
19692
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19694$as_echo_n "checking whether to use libgcc... " >&6; }
19695# Check whether --enable-libgcc was given.
19696if test "${enable_libgcc+set}" = set; then :
19697 enableval=$enable_libgcc; case "$enableval" in
19698 yes)
19699 LIBS="-lgcc $LIBS"
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19701$as_echo "yes" >&6; }
19702 ;;
19703 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704$as_echo "no" >&6; }
19705 ;;
19706 esac
19707else
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709$as_echo "no" >&6; }
19710
19711fi
19712
19713
19714
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19716$as_echo_n "checking if X/Open network library is required... " >&6; }
19717 tst_lib_xnet_required="no"
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719/* end confdefs.h. */
19720
19721
19722int main (void)
19723{
19724#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19725 return 0;
19726#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19727 return 0;
19728#else
19729 force compilation error
19730#endif
19731}
19732
19733
19734_ACEOF
19735if ac_fn_c_try_compile "$LINENO"; then :
19736
19737 tst_lib_xnet_required="yes"
19738 LIBS="-lxnet $LIBS"
19739
19740fi
19741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19743$as_echo "$tst_lib_xnet_required" >&6; }
19744
19745
19746ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19747if test "x$ac_cv_func_gethostbyname" = xyes; then :
19748 HAVE_GETHOSTBYNAME="1"
19749
19750else
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19752$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19753if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19754 $as_echo_n "(cached) " >&6
19755else
19756 ac_check_lib_save_LIBS=$LIBS
19757LIBS="-lnsl $LIBS"
19758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759/* end confdefs.h. */
19760
19761
19762#ifdef __cplusplus
19763extern "C"
19764#endif
19765char gethostbyname ();
19766int main (void)
19767{
19768return gethostbyname ();
19769 ;
19770 return 0;
19771}
19772_ACEOF
19773if ac_fn_c_try_link "$LINENO"; then :
19774 ac_cv_lib_nsl_gethostbyname=yes
19775else
19776 ac_cv_lib_nsl_gethostbyname=no
19777fi
19778rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780LIBS=$ac_check_lib_save_LIBS
19781fi
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19783$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19784if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19785 HAVE_GETHOSTBYNAME="1"
19786 LIBS="-lnsl $LIBS"
19787
19788fi
19789
19790
19791fi
19792
19793
19794if test "$HAVE_GETHOSTBYNAME" != "1"
19795then
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19797$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19798if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19799 $as_echo_n "(cached) " >&6
19800else
19801 ac_check_lib_save_LIBS=$LIBS
19802LIBS="-lsocket $LIBS"
19803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804/* end confdefs.h. */
19805
19806
19807#ifdef __cplusplus
19808extern "C"
19809#endif
19810char gethostbyname ();
19811int main (void)
19812{
19813return gethostbyname ();
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818if ac_fn_c_try_link "$LINENO"; then :
19819 ac_cv_lib_socket_gethostbyname=yes
19820else
19821 ac_cv_lib_socket_gethostbyname=no
19822fi
19823rm -f core conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825LIBS=$ac_check_lib_save_LIBS
19826fi
19827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19828$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19829if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19830 HAVE_GETHOSTBYNAME="1"
19831 LIBS="-lsocket $LIBS"
19832
19833fi
19834
19835fi
19836
19837if test "$HAVE_GETHOSTBYNAME" != "1"
19838then
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19840$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19841if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19842 $as_echo_n "(cached) " >&6
19843else
19844 ac_check_lib_save_LIBS=$LIBS
19845LIBS="-lwatt $LIBS"
19846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847/* end confdefs.h. */
19848
19849
19850#ifdef __cplusplus
19851extern "C"
19852#endif
19853char gethostbyname ();
19854int main (void)
19855{
19856return gethostbyname ();
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861if ac_fn_c_try_link "$LINENO"; then :
19862 ac_cv_lib_watt_gethostbyname=yes
19863else
19864 ac_cv_lib_watt_gethostbyname=no
19865fi
19866rm -f core conftest.err conftest.$ac_objext \
19867 conftest$ac_exeext conftest.$ac_ext
19868LIBS=$ac_check_lib_save_LIBS
19869fi
19870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19871$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19872if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19873 HAVE_GETHOSTBYNAME="1"
19874 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19875 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19876 LIBS="-lwatt $LIBS"
19877
19878fi
19879
19880fi
19881
19882if test "$HAVE_GETHOSTBYNAME" != "1"
19883then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19885$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19886 my_ac_save_LIBS=$LIBS
19887 LIBS="-lnsl -lsocket $LIBS"
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889/* end confdefs.h. */
19890
19891
19892
19893int main (void)
19894{
19895
19896 gethostbyname();
19897
19898 ;
19899 return 0;
19900}
19901
19902_ACEOF
19903if ac_fn_c_try_link "$LINENO"; then :
19904
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19906$as_echo "yes" >&6; }
19907 HAVE_GETHOSTBYNAME="1"
19908
19909else
19910
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19912$as_echo "no" >&6; }
19913 LIBS=$my_ac_save_LIBS
19914
19915fi
19916rm -f core conftest.err conftest.$ac_objext \
19917 conftest$ac_exeext conftest.$ac_ext
19918fi
19919
19920if test "$HAVE_GETHOSTBYNAME" != "1"
19921then
19922 if test "$curl_cv_header_windows_h" = "yes"; then
19923 if test "$curl_cv_header_winsock_h" = "yes"; then
19924 case $host in
19925 *-*-mingw32ce*)
19926 winsock_LIB="-lwinsock"
19927 ;;
19928 *)
19929 winsock_LIB="-lwsock32"
19930 ;;
19931 esac
19932 fi
19933 if test "$curl_cv_header_winsock2_h" = "yes"; then
19934 winsock_LIB="-lws2_32"
19935 fi
19936 if test ! -z "$winsock_LIB"; then
19937 my_ac_save_LIBS=$LIBS
19938 LIBS="$winsock_LIB $LIBS"
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19940$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942/* end confdefs.h. */
19943
19944
19945#ifdef HAVE_WINDOWS_H
19946#ifndef WIN32_LEAN_AND_MEAN
19947#define WIN32_LEAN_AND_MEAN
19948#endif
19949#include <windows.h>
19950#ifdef HAVE_WINSOCK2_H
19951#include <winsock2.h>
19952#else
19953#ifdef HAVE_WINSOCK_H
19954#include <winsock.h>
19955#endif
19956#endif
19957#endif
19958
19959int main (void)
19960{
19961
19962 gethostbyname("www.dummysite.com");
19963
19964 ;
19965 return 0;
19966}
19967
19968_ACEOF
19969if ac_fn_c_try_link "$LINENO"; then :
19970
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19972$as_echo "yes" >&6; }
19973 HAVE_GETHOSTBYNAME="1"
19974
19975else
19976
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978$as_echo "no" >&6; }
19979 winsock_LIB=""
19980 LIBS=$my_ac_save_LIBS
19981
19982fi
19983rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985 fi
19986 fi
19987fi
19988
19989if test "$HAVE_GETHOSTBYNAME" != "1"
19990then
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19992$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994/* end confdefs.h. */
19995
19996
19997/* Older Minix versions may need <net/gen/netdb.h> here instead */
19998#include <netdb.h>
19999
20000int main (void)
20001{
20002
20003 gethostbyname("www.dummysite.com");
20004
20005 ;
20006 return 0;
20007}
20008
20009_ACEOF
20010if ac_fn_c_try_link "$LINENO"; then :
20011
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20013$as_echo "yes" >&6; }
20014 HAVE_GETHOSTBYNAME="1"
20015
20016else
20017
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20019$as_echo "no" >&6; }
20020
20021fi
20022rm -f core conftest.err conftest.$ac_objext \
20023 conftest$ac_exeext conftest.$ac_ext
20024fi
20025
20026if test "$HAVE_GETHOSTBYNAME" != "1"
20027then
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20029$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031/* end confdefs.h. */
20032
20033
20034#include <stdio.h>
20035#include <netdb.h>
20036
20037int main (void)
20038{
20039
20040 gethostbyname("www.dummysite.com");
20041
20042 ;
20043 return 0;
20044}
20045
20046_ACEOF
20047if ac_fn_c_try_link "$LINENO"; then :
20048
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20050$as_echo "yes" >&6; }
20051 HAVE_GETHOSTBYNAME="1"
20052
20053else
20054
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20056$as_echo "no" >&6; }
20057
20058fi
20059rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20061fi
20062
20063if test "$HAVE_GETHOSTBYNAME" != "1"
20064then
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20066$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20067if ${ac_cv_lib_network_gethostbyname+:} false; then :
20068 $as_echo_n "(cached) " >&6
20069else
20070 ac_check_lib_save_LIBS=$LIBS
20071LIBS="-lnetwork $LIBS"
20072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073/* end confdefs.h. */
20074
20075
20076#ifdef __cplusplus
20077extern "C"
20078#endif
20079char gethostbyname ();
20080int main (void)
20081{
20082return gethostbyname ();
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087if ac_fn_c_try_link "$LINENO"; then :
20088 ac_cv_lib_network_gethostbyname=yes
20089else
20090 ac_cv_lib_network_gethostbyname=no
20091fi
20092rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094LIBS=$ac_check_lib_save_LIBS
20095fi
20096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20097$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20098if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20099 HAVE_GETHOSTBYNAME="1"
20100 LIBS="-lnetwork $LIBS"
20101
20102fi
20103
20104fi
20105
20106if test "$HAVE_GETHOSTBYNAME" != "1"
20107then
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20109$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20110if ${ac_cv_lib_net_gethostbyname+:} false; then :
20111 $as_echo_n "(cached) " >&6
20112else
20113 ac_check_lib_save_LIBS=$LIBS
20114LIBS="-lnet $LIBS"
20115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116/* end confdefs.h. */
20117
20118
20119#ifdef __cplusplus
20120extern "C"
20121#endif
20122char gethostbyname ();
20123int main (void)
20124{
20125return gethostbyname ();
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130if ac_fn_c_try_link "$LINENO"; then :
20131 ac_cv_lib_net_gethostbyname=yes
20132else
20133 ac_cv_lib_net_gethostbyname=no
20134fi
20135rm -f core conftest.err conftest.$ac_objext \
20136 conftest$ac_exeext conftest.$ac_ext
20137LIBS=$ac_check_lib_save_LIBS
20138fi
20139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20140$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20141if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20142 HAVE_GETHOSTBYNAME="1"
20143 LIBS="-lnet $LIBS"
20144
20145fi
20146
20147fi
20148
20149
20150if test "$HAVE_GETHOSTBYNAME" != "1"; then
20151 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20152fi
20153
20154
20155curl_includes_winsock2="\
20156/* includes start */
20157#ifdef HAVE_WINDOWS_H
20158# ifndef WIN32_LEAN_AND_MEAN
20159# define WIN32_LEAN_AND_MEAN
20160# endif
20161# include <windows.h>
20162# ifdef HAVE_WINSOCK2_H
20163# include <winsock2.h>
20164# else
20165# ifdef HAVE_WINSOCK_H
20166# include <winsock.h>
20167# endif
20168# endif
20169#endif
20170/* includes end */"
20171
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20173$as_echo_n "checking for windows.h... " >&6; }
20174if ${curl_cv_header_windows_h+:} false; then :
20175 $as_echo_n "(cached) " >&6
20176else
20177
20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179/* end confdefs.h. */
20180
20181
20182#undef inline
20183#ifndef WIN32_LEAN_AND_MEAN
20184#define WIN32_LEAN_AND_MEAN
20185#endif
20186#include <windows.h>
20187
20188int main (void)
20189{
20190
20191#if defined(__CYGWIN__) || defined(__CEGCC__)
20192 HAVE_WINDOWS_H shall not be defined.
20193#else
20194 int dummy=2*WINVER;
20195#endif
20196
20197 ;
20198 return 0;
20199}
20200
20201_ACEOF
20202if ac_fn_c_try_compile "$LINENO"; then :
20203
20204 curl_cv_header_windows_h="yes"
20205
20206else
20207
20208 curl_cv_header_windows_h="no"
20209
20210fi
20211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212
20213fi
20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20215$as_echo "$curl_cv_header_windows_h" >&6; }
20216 case "$curl_cv_header_windows_h" in
20217 yes)
20218
20219cat >>confdefs.h <<_ACEOF
20220#define HAVE_WINDOWS_H 1
20221_ACEOF
20222
20223 ;;
20224 esac
20225
20226
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20228$as_echo_n "checking for winsock.h... " >&6; }
20229if ${curl_cv_header_winsock_h+:} false; then :
20230 $as_echo_n "(cached) " >&6
20231else
20232
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234/* end confdefs.h. */
20235
20236
20237#undef inline
20238#ifndef WIN32_LEAN_AND_MEAN
20239#define WIN32_LEAN_AND_MEAN
20240#endif
20241#include <windows.h>
20242#include <winsock.h>
20243
20244int main (void)
20245{
20246
20247#if defined(__CYGWIN__) || defined(__CEGCC__)
20248 HAVE_WINSOCK_H shall not be defined.
20249#else
20250 int dummy=WSACleanup();
20251#endif
20252
20253 ;
20254 return 0;
20255}
20256
20257_ACEOF
20258if ac_fn_c_try_compile "$LINENO"; then :
20259
20260 curl_cv_header_winsock_h="yes"
20261
20262else
20263
20264 curl_cv_header_winsock_h="no"
20265
20266fi
20267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268
20269fi
20270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20271$as_echo "$curl_cv_header_winsock_h" >&6; }
20272 case "$curl_cv_header_winsock_h" in
20273 yes)
20274
20275cat >>confdefs.h <<_ACEOF
20276#define HAVE_WINSOCK_H 1
20277_ACEOF
20278
20279 ;;
20280 esac
20281
20282
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20284$as_echo_n "checking for winsock2.h... " >&6; }
20285if ${curl_cv_header_winsock2_h+:} false; then :
20286 $as_echo_n "(cached) " >&6
20287else
20288
20289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290/* end confdefs.h. */
20291
20292
20293#undef inline
20294#ifndef WIN32_LEAN_AND_MEAN
20295#define WIN32_LEAN_AND_MEAN
20296#endif
20297#include <windows.h>
20298#include <winsock2.h>
20299
20300int main (void)
20301{
20302
20303#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20304 HAVE_WINSOCK2_H shall not be defined.
20305#else
20306 int dummy=2*IPPROTO_ESP;
20307#endif
20308
20309 ;
20310 return 0;
20311}
20312
20313_ACEOF
20314if ac_fn_c_try_compile "$LINENO"; then :
20315
20316 curl_cv_header_winsock2_h="yes"
20317
20318else
20319
20320 curl_cv_header_winsock2_h="no"
20321
20322fi
20323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324
20325fi
20326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20327$as_echo "$curl_cv_header_winsock2_h" >&6; }
20328 case "$curl_cv_header_winsock2_h" in
20329 yes)
20330
20331cat >>confdefs.h <<_ACEOF
20332#define HAVE_WINSOCK2_H 1
20333_ACEOF
20334
20335 ;;
20336 esac
20337
20338
20339
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20341$as_echo_n "checking for connect in libraries... " >&6; }
20342 tst_connect_save_LIBS="$LIBS"
20343 tst_connect_need_LIBS="unknown"
20344 for tst_lib in '' '-lsocket' ; do
20345 if test "$tst_connect_need_LIBS" = "unknown"; then
20346 LIBS="$tst_lib $tst_connect_save_LIBS"
20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348/* end confdefs.h. */
20349
20350
20351 $curl_includes_winsock2
20352 #ifndef HAVE_WINDOWS_H
20353 int connect(int, void*, int);
20354 #endif
20355
20356int main (void)
20357{
20358
20359 if(0 != connect(0, 0, 0))
20360 return 1;
20361
20362 ;
20363 return 0;
20364}
20365
20366_ACEOF
20367if ac_fn_c_try_link "$LINENO"; then :
20368
20369 tst_connect_need_LIBS="$tst_lib"
20370
20371fi
20372rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374 fi
20375 done
20376 LIBS="$tst_connect_save_LIBS"
20377 #
20378 case X-"$tst_connect_need_LIBS" in
20379 X-unknown)
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20381$as_echo "cannot find connect" >&6; }
20382 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20383 ;;
20384 X-)
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20386$as_echo "yes" >&6; }
20387 ;;
20388 *)
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20390$as_echo "$tst_connect_need_LIBS" >&6; }
20391 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20392 ;;
20393 esac
20394
20395
20396CURL_NETWORK_LIBS=$LIBS
20397
20398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20399$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20400if ${ac_cv_header_time+:} false; then :
20401 $as_echo_n "(cached) " >&6
20402else
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404/* end confdefs.h. */
20405#include <sys/types.h>
20406#include <sys/time.h>
20407#include <time.h>
20408
20409int main (void)
20410{
20411if ((struct tm *) 0)
20412return 0;
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417if ac_fn_c_try_compile "$LINENO"; then :
20418 ac_cv_header_time=yes
20419else
20420 ac_cv_header_time=no
20421fi
20422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423fi
20424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20425$as_echo "$ac_cv_header_time" >&6; }
20426if test $ac_cv_header_time = yes; then
20427
20428$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20429
20430fi
20431
20432
20433 for ac_header in sys/types.h sys/time.h time.h
20434do :
20435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20436ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20438 cat >>confdefs.h <<_ACEOF
20439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20440_ACEOF
20441
20442fi
20443
20444done
20445
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20447$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20448 #
20449 if test "x$dontwant_rt" = "xno" ; then
20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451/* end confdefs.h. */
20452
20453
20454#ifdef HAVE_SYS_TYPES_H
20455#include <sys/types.h>
20456#endif
20457#ifdef HAVE_SYS_TIME_H
20458#include <sys/time.h>
20459#ifdef TIME_WITH_SYS_TIME
20460#include <time.h>
20461#endif
20462#else
20463#ifdef HAVE_TIME_H
20464#include <time.h>
20465#endif
20466#endif
20467
20468int main (void)
20469{
20470
20471 struct timespec ts;
20472 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20473
20474 ;
20475 return 0;
20476}
20477
20478_ACEOF
20479if ac_fn_c_try_compile "$LINENO"; then :
20480
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20482$as_echo "yes" >&6; }
20483 curl_func_clock_gettime="yes"
20484
20485else
20486
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20488$as_echo "no" >&6; }
20489 curl_func_clock_gettime="no"
20490
20491fi
20492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 fi
20494
20495
20496 #
20497 if test "$curl_func_clock_gettime" = "yes"; then
20498 #
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20500$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20501 #
20502 curl_cv_save_LIBS="$LIBS"
20503 curl_cv_gclk_LIBS="unknown"
20504 #
20505 for x_xlibs in '' '-lrt' '-lposix4' ; do
20506 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20507 if test -z "$x_xlibs"; then
20508 LIBS="$curl_cv_save_LIBS"
20509 else
20510 LIBS="$x_xlibs $curl_cv_save_LIBS"
20511 fi
20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513/* end confdefs.h. */
20514
20515
20516#ifdef HAVE_SYS_TYPES_H
20517#include <sys/types.h>
20518#endif
20519#ifdef HAVE_SYS_TIME_H
20520#include <sys/time.h>
20521#ifdef TIME_WITH_SYS_TIME
20522#include <time.h>
20523#endif
20524#else
20525#ifdef HAVE_TIME_H
20526#include <time.h>
20527#endif
20528#endif
20529
20530int main (void)
20531{
20532
20533 struct timespec ts;
20534 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20535
20536 ;
20537 return 0;
20538}
20539
20540_ACEOF
20541if ac_fn_c_try_link "$LINENO"; then :
20542
20543 curl_cv_gclk_LIBS="$x_xlibs"
20544
20545fi
20546rm -f core conftest.err conftest.$ac_objext \
20547 conftest$ac_exeext conftest.$ac_ext
20548 fi
20549 done
20550 #
20551 LIBS="$curl_cv_save_LIBS"
20552 #
20553 case X-"$curl_cv_gclk_LIBS" in
20554 X-unknown)
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20556$as_echo "cannot find clock_gettime" >&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 ;;
20561 X-)
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20563$as_echo "no additional lib required" >&6; }
20564 curl_func_clock_gettime="yes"
20565 ;;
20566 *)
20567 if test -z "$curl_cv_save_LIBS"; then
20568 LIBS="$curl_cv_gclk_LIBS"
20569 else
20570 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20571 fi
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20573$as_echo "$curl_cv_gclk_LIBS" >&6; }
20574 curl_func_clock_gettime="yes"
20575 ;;
20576 esac
20577 #
20578 if test "x$cross_compiling" != "xyes" &&
20579 test "$curl_func_clock_gettime" = "yes"; then
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20581$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20582 if test "$cross_compiling" = yes; then :
20583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20585as_fn_error $? "cannot run test program while cross compiling
20586See \`config.log' for more details" "$LINENO" 5; }
20587else
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589/* end confdefs.h. */
20590
20591
20592#ifdef HAVE_STDLIB_H
20593#include <stdlib.h>
20594#endif
20595#ifdef HAVE_SYS_TYPES_H
20596#include <sys/types.h>
20597#endif
20598#ifdef HAVE_SYS_TIME_H
20599#include <sys/time.h>
20600#ifdef TIME_WITH_SYS_TIME
20601#include <time.h>
20602#endif
20603#else
20604#ifdef HAVE_TIME_H
20605#include <time.h>
20606#endif
20607#endif
20608
20609int main (void)
20610{
20611
20612 struct timespec ts;
20613 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20614 exit(0);
20615 else
20616 exit(1);
20617
20618 ;
20619 return 0;
20620}
20621
20622_ACEOF
20623if ac_fn_c_try_run "$LINENO"; then :
20624
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626$as_echo "yes" >&6; }
20627
20628else
20629
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20631$as_echo "no" >&6; }
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20633$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20634 curl_func_clock_gettime="no"
20635 LIBS="$curl_cv_save_LIBS"
20636
20637fi
20638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20639 conftest.$ac_objext conftest.beam conftest.$ac_ext
20640fi
20641
20642 fi
20643 #
20644 case "$curl_func_clock_gettime" in
20645 yes)
20646
20647cat >>confdefs.h <<_ACEOF
20648#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20649_ACEOF
20650
20651 ;;
20652 esac
20653 #
20654 fi
20655 #
20656
20657
20658CURL_NETWORK_AND_TIME_LIBS=$LIBS
20659
20660
20661
20662clean_CPPFLAGS=$CPPFLAGS
20663clean_LDFLAGS=$LDFLAGS
20664clean_LIBS=$LIBS
20665ZLIB_LIBS=""
20666
20667# Check whether --with-zlib was given.
20668if test "${with_zlib+set}" = set; then :
20669 withval=$with_zlib; OPT_ZLIB="$withval"
20670fi
20671
20672
20673if test "$OPT_ZLIB" = "no" ; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20675$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20676else
20677 if test "$OPT_ZLIB" = "yes" ; then
20678 OPT_ZLIB=""
20679 fi
20680
20681 if test -z "$OPT_ZLIB" ; then
20682
20683 if test -n "$PKG_CONFIG"; then
20684 PKGCONFIG="$PKG_CONFIG"
20685 else
20686 if test -n "$ac_tool_prefix"; then
20687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20688set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20690$as_echo_n "checking for $ac_word... " >&6; }
20691if ${ac_cv_path_PKGCONFIG+:} false; then :
20692 $as_echo_n "(cached) " >&6
20693else
20694 case $PKGCONFIG in
20695 [\\/]* | ?:[\\/]*)
20696 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20697 ;;
20698 *)
20699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20700as_dummy="$PATH:/usr/bin:/usr/local/bin"
20701for as_dir in $as_dummy
20702do
20703 IFS=$as_save_IFS
20704 test -z "$as_dir" && as_dir=.
20705 for ac_exec_ext in '' $ac_executable_extensions; do
20706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20707 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20709 break 2
20710 fi
20711done
20712 done
20713IFS=$as_save_IFS
20714
20715 ;;
20716esac
20717fi
20718PKGCONFIG=$ac_cv_path_PKGCONFIG
20719if test -n "$PKGCONFIG"; then
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20721$as_echo "$PKGCONFIG" >&6; }
20722else
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724$as_echo "no" >&6; }
20725fi
20726
20727
20728fi
20729if test -z "$ac_cv_path_PKGCONFIG"; then
20730 ac_pt_PKGCONFIG=$PKGCONFIG
20731 # Extract the first word of "pkg-config", so it can be a program name with args.
20732set dummy pkg-config; ac_word=$2
20733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20734$as_echo_n "checking for $ac_word... " >&6; }
20735if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20736 $as_echo_n "(cached) " >&6
20737else
20738 case $ac_pt_PKGCONFIG in
20739 [\\/]* | ?:[\\/]*)
20740 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20741 ;;
20742 *)
20743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20744as_dummy="$PATH:/usr/bin:/usr/local/bin"
20745for as_dir in $as_dummy
20746do
20747 IFS=$as_save_IFS
20748 test -z "$as_dir" && as_dir=.
20749 for ac_exec_ext in '' $ac_executable_extensions; do
20750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20751 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20753 break 2
20754 fi
20755done
20756 done
20757IFS=$as_save_IFS
20758
20759 ;;
20760esac
20761fi
20762ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20763if test -n "$ac_pt_PKGCONFIG"; then
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20765$as_echo "$ac_pt_PKGCONFIG" >&6; }
20766else
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20768$as_echo "no" >&6; }
20769fi
20770
20771 if test "x$ac_pt_PKGCONFIG" = x; then
20772 PKGCONFIG="no"
20773 else
20774 case $cross_compiling:$ac_tool_warned in
20775yes:)
20776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20778ac_tool_warned=yes ;;
20779esac
20780 PKGCONFIG=$ac_pt_PKGCONFIG
20781 fi
20782else
20783 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20784fi
20785
20786 fi
20787
20788 if test "x$PKGCONFIG" != "xno"; then
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20790$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20791 itexists=`
20792 if test -n ""; then
20793 PKG_CONFIG_LIBDIR=""
20794 export PKG_CONFIG_LIBDIR
20795 fi
20796 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20797
20798 if test -z "$itexists"; then
20799 PKGCONFIG="no"
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20801$as_echo "no" >&6; }
20802 else
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20804$as_echo "found" >&6; }
20805 fi
20806 fi
20807
20808
20809 if test "$PKGCONFIG" != "no" ; then
20810 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20811 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20812 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20813 OPT_ZLIB=""
20814 HAVE_LIBZ="1"
20815 fi
20816
20817 if test -z "$HAVE_LIBZ"; then
20818
20819
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20821$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20822if ${ac_cv_lib_z_inflateEnd+:} false; then :
20823 $as_echo_n "(cached) " >&6
20824else
20825 ac_check_lib_save_LIBS=$LIBS
20826LIBS="-lz $LIBS"
20827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828/* end confdefs.h. */
20829
20830
20831#ifdef __cplusplus
20832extern "C"
20833#endif
20834char inflateEnd ();
20835int main (void)
20836{
20837return inflateEnd ();
20838 ;
20839 return 0;
20840}
20841_ACEOF
20842if ac_fn_c_try_link "$LINENO"; then :
20843 ac_cv_lib_z_inflateEnd=yes
20844else
20845 ac_cv_lib_z_inflateEnd=no
20846fi
20847rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20849LIBS=$ac_check_lib_save_LIBS
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20852$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20853if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20854 HAVE_LIBZ="1"
20855 LIBS="-lz $LIBS"
20856else
20857 OPT_ZLIB="/usr/local"
20858fi
20859
20860 fi
20861 fi
20862
20863 if test -n "$OPT_ZLIB"; then
20864 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20865 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20866 fi
20867
20868 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20869if test "x$ac_cv_header_zlib_h" = xyes; then :
20870
20871 HAVE_ZLIB_H="1"
20872 if test "$HAVE_LIBZ" != "1"; then
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20874$as_echo_n "checking for gzread in -lz... " >&6; }
20875if ${ac_cv_lib_z_gzread+:} false; then :
20876 $as_echo_n "(cached) " >&6
20877else
20878 ac_check_lib_save_LIBS=$LIBS
20879LIBS="-lz $LIBS"
20880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881/* end confdefs.h. */
20882
20883
20884#ifdef __cplusplus
20885extern "C"
20886#endif
20887char gzread ();
20888int main (void)
20889{
20890return gzread ();
20891 ;
20892 return 0;
20893}
20894_ACEOF
20895if ac_fn_c_try_link "$LINENO"; then :
20896 ac_cv_lib_z_gzread=yes
20897else
20898 ac_cv_lib_z_gzread=no
20899fi
20900rm -f core conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20902LIBS=$ac_check_lib_save_LIBS
20903fi
20904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20905$as_echo "$ac_cv_lib_z_gzread" >&6; }
20906if test "x$ac_cv_lib_z_gzread" = xyes; then :
20907
20908 HAVE_LIBZ="1"
20909 LIBS="-lz $LIBS"
20910
20911else
20912 CPPFLAGS=$clean_CPPFLAGS
20913 LDFLAGS=$clean_LDFLAGS
20914fi
20915
20916 fi
20917
20918else
20919
20920 CPPFLAGS=$clean_CPPFLAGS
20921 LDFLAGS=$clean_LDFLAGS
20922
20923fi
20924
20925
20926
20927 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20928 then
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20930$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20931 HAVE_LIBZ=""
20932 CPPFLAGS=$clean_CPPFLAGS
20933 LDFLAGS=$clean_LDFLAGS
20934 LIBS=$clean_LIBS
20935 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20936 then
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20938$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20939 CPPFLAGS=$clean_CPPFLAGS
20940 LDFLAGS=$clean_LDFLAGS
20941 LIBS=$clean_LIBS
20942 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20943 then
20944
20945
20946$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20947
20948
20949$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20950
20951
20952 ZLIB_LIBS="-lz"
20953 LIBS="-lz $clean_LIBS"
20954
20955 AMFIXLIB="1"
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20957$as_echo "$as_me: found both libz and libz.h header" >&6;}
20958 curl_zlib_msg="enabled"
20959 fi
20960fi
20961
20962 if test x"$AMFIXLIB" = x1; then
20963 HAVE_LIBZ_TRUE=
20964 HAVE_LIBZ_FALSE='#'
20965else
20966 HAVE_LIBZ_TRUE='#'
20967 HAVE_LIBZ_FALSE=
20968fi
20969
20970
20971
20972
Alex Deymo486467e2017-12-19 19:04:07 +010020973
20974OPT_BROTLI=off
20975
20976# Check whether --with-brotli was given.
20977if test "${with_brotli+set}" = set; then :
20978 withval=$with_brotli; OPT_BROTLI=$withval
20979fi
20980
20981
20982if test X"$OPT_BROTLI" != Xno; then
20983 CLEANLDFLAGS="$LDFLAGS"
20984 CLEANCPPFLAGS="$CPPFLAGS"
20985 CLEANLIBS="$LIBS"
20986
20987 case "$OPT_BROTLI" in
20988 yes)
20989
20990 if test -n "$PKG_CONFIG"; then
20991 PKGCONFIG="$PKG_CONFIG"
20992 else
20993 if test -n "$ac_tool_prefix"; then
20994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20997$as_echo_n "checking for $ac_word... " >&6; }
20998if ${ac_cv_path_PKGCONFIG+:} false; then :
20999 $as_echo_n "(cached) " >&6
21000else
21001 case $PKGCONFIG in
21002 [\\/]* | ?:[\\/]*)
21003 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21004 ;;
21005 *)
21006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21007as_dummy="$PATH:/usr/bin:/usr/local/bin"
21008for as_dir in $as_dummy
21009do
21010 IFS=$as_save_IFS
21011 test -z "$as_dir" && as_dir=.
21012 for ac_exec_ext in '' $ac_executable_extensions; do
21013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21014 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21016 break 2
21017 fi
21018done
21019 done
21020IFS=$as_save_IFS
21021
21022 ;;
21023esac
21024fi
21025PKGCONFIG=$ac_cv_path_PKGCONFIG
21026if test -n "$PKGCONFIG"; then
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21028$as_echo "$PKGCONFIG" >&6; }
21029else
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21031$as_echo "no" >&6; }
21032fi
21033
21034
21035fi
21036if test -z "$ac_cv_path_PKGCONFIG"; then
21037 ac_pt_PKGCONFIG=$PKGCONFIG
21038 # Extract the first word of "pkg-config", so it can be a program name with args.
21039set dummy pkg-config; ac_word=$2
21040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21041$as_echo_n "checking for $ac_word... " >&6; }
21042if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21043 $as_echo_n "(cached) " >&6
21044else
21045 case $ac_pt_PKGCONFIG in
21046 [\\/]* | ?:[\\/]*)
21047 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21048 ;;
21049 *)
21050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051as_dummy="$PATH:/usr/bin:/usr/local/bin"
21052for as_dir in $as_dummy
21053do
21054 IFS=$as_save_IFS
21055 test -z "$as_dir" && as_dir=.
21056 for ac_exec_ext in '' $ac_executable_extensions; do
21057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21058 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21060 break 2
21061 fi
21062done
21063 done
21064IFS=$as_save_IFS
21065
21066 ;;
21067esac
21068fi
21069ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21070if test -n "$ac_pt_PKGCONFIG"; then
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21072$as_echo "$ac_pt_PKGCONFIG" >&6; }
21073else
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075$as_echo "no" >&6; }
21076fi
21077
21078 if test "x$ac_pt_PKGCONFIG" = x; then
21079 PKGCONFIG="no"
21080 else
21081 case $cross_compiling:$ac_tool_warned in
21082yes:)
21083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21085ac_tool_warned=yes ;;
21086esac
21087 PKGCONFIG=$ac_pt_PKGCONFIG
21088 fi
21089else
21090 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21091fi
21092
21093 fi
21094
21095 if test "x$PKGCONFIG" != "xno"; then
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21097$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21098 itexists=`
21099 if test -n ""; then
21100 PKG_CONFIG_LIBDIR=""
21101 export PKG_CONFIG_LIBDIR
21102 fi
21103 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21104
21105 if test -z "$itexists"; then
21106 PKGCONFIG="no"
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21108$as_echo "no" >&6; }
21109 else
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21111$as_echo "found" >&6; }
21112 fi
21113 fi
21114
21115
21116 if test "$PKGCONFIG" != "no" ; then
21117 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21118 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21119 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21120 version=`$PKGCONFIG --modversion libbrotlidec`
21121 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21122 fi
21123
21124 ;;
21125 off)
21126 ;;
21127 *)
21128 PREFIX_BROTLI=$OPT_BROTLI
21129 ;;
21130 esac
21131
21132 if test -n "$PREFIX_BROTLI"; then
21133 LIB_BROTLI="-lbrotlidec"
21134 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21135 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21136 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21137 fi
21138
21139 LDFLAGS="$LDFLAGS $LD_BROTLI"
21140 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21141 LIBS="$LIB_BROTLI $LIBS"
21142
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21144$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21145if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21146 $as_echo_n "(cached) " >&6
21147else
21148 ac_check_lib_save_LIBS=$LIBS
21149LIBS="-lbrotlidec $LIBS"
21150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21151/* end confdefs.h. */
21152
21153
21154#ifdef __cplusplus
21155extern "C"
21156#endif
21157char BrotliDecoderDecompress ();
21158int main (void)
21159{
21160return BrotliDecoderDecompress ();
21161 ;
21162 return 0;
21163}
21164_ACEOF
21165if ac_fn_c_try_link "$LINENO"; then :
21166 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21167else
21168 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21169fi
21170rm -f core conftest.err conftest.$ac_objext \
21171 conftest$ac_exeext conftest.$ac_ext
21172LIBS=$ac_check_lib_save_LIBS
21173fi
21174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21175$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21176if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21177 cat >>confdefs.h <<_ACEOF
21178#define HAVE_LIBBROTLIDEC 1
21179_ACEOF
21180
21181 LIBS="-lbrotlidec $LIBS"
21182
21183fi
21184
21185
21186 for ac_header in brotli/decode.h
21187do :
21188 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21189if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21190 cat >>confdefs.h <<_ACEOF
21191#define HAVE_BROTLI_DECODE_H 1
21192_ACEOF
21193 curl_brotli_msg="enabled (libbrotlidec)"
21194 HAVE_BROTLI=1
21195
21196$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21197
21198 HAVE_BROTLI=1
21199
21200
21201fi
21202
21203done
21204
21205
21206 if test X"$OPT_BROTLI" != Xoff &&
21207 test "$HAVE_BROTLI" != "1"; then
21208 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21209 fi
21210
21211 if test "$HAVE_BROTLI" = "1"; then
21212 if test -n "$DIR_BROTLI"; then
21213
21214 if test "x$cross_compiling" != "xyes"; then
21215 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_BROTLI"
21216 export LD_LIBRARY_PATH
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&5
21218$as_echo "$as_me: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&6;}
21219 fi
21220 fi
21221 else
21222 LDFLAGS=$CLEANLDFLAGS
21223 CPPFLAGS=$CLEANCPPFLAGS
21224 LIBS=$CLEANLIBS
21225 fi
21226fi
21227
21228
Elliott Hughes82be86d2017-09-20 17:00:17 -070021229LDAPLIBNAME=""
21230
21231# Check whether --with-ldap-lib was given.
21232if test "${with_ldap_lib+set}" = set; then :
21233 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21234fi
21235
21236
21237LBERLIBNAME=""
21238
21239# Check whether --with-lber-lib was given.
21240if test "${with_lber_lib+set}" = set; then :
21241 withval=$with_lber_lib; LBERLIBNAME="$withval"
21242fi
21243
21244
21245if test x$CURL_DISABLE_LDAP != x1 ; then
21246
21247
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21249$as_echo_n "checking for lber.h... " >&6; }
21250if ${curl_cv_header_lber_h+:} false; then :
21251 $as_echo_n "(cached) " >&6
21252else
21253
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255/* end confdefs.h. */
21256
21257
21258#undef inline
21259#ifdef HAVE_WINDOWS_H
21260#ifndef WIN32_LEAN_AND_MEAN
21261#define WIN32_LEAN_AND_MEAN
21262#endif
21263#include <windows.h>
21264#else
21265#ifdef HAVE_SYS_TYPES_H
21266#include <sys/types.h>
21267#endif
21268#endif
21269#ifndef NULL
21270#define NULL (void *)0
21271#endif
21272#include <lber.h>
21273
21274int main (void)
21275{
21276
21277 BerValue *bvp = NULL;
21278 BerElement *bep = ber_init(bvp);
21279 ber_free(bep, 1);
21280
21281 ;
21282 return 0;
21283}
21284
21285_ACEOF
21286if ac_fn_c_try_compile "$LINENO"; then :
21287
21288 curl_cv_header_lber_h="yes"
21289
21290else
21291
21292 curl_cv_header_lber_h="no"
21293
21294fi
21295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296
21297fi
21298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21299$as_echo "$curl_cv_header_lber_h" >&6; }
21300 if test "$curl_cv_header_lber_h" = "yes"; then
21301
21302cat >>confdefs.h <<_ACEOF
21303#define HAVE_LBER_H 1
21304_ACEOF
21305
21306 #
21307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308/* end confdefs.h. */
21309
21310
21311#undef inline
21312#ifdef HAVE_WINDOWS_H
21313#ifndef WIN32_LEAN_AND_MEAN
21314#define WIN32_LEAN_AND_MEAN
21315#endif
21316#include <windows.h>
21317#else
21318#ifdef HAVE_SYS_TYPES_H
21319#include <sys/types.h>
21320#endif
21321#endif
21322#ifndef NULL
21323#define NULL (void *)0
21324#endif
21325#ifndef LDAP_DEPRECATED
21326#define LDAP_DEPRECATED 1
21327#endif
21328#include <ldap.h>
21329
21330int main (void)
21331{
21332
21333 BerValue *bvp = NULL;
21334 BerElement *bep = ber_init(bvp);
21335 ber_free(bep, 1);
21336
21337 ;
21338 return 0;
21339}
21340
21341_ACEOF
21342if ac_fn_c_try_compile "$LINENO"; then :
21343
21344 curl_cv_need_header_lber_h="no"
21345
21346else
21347
21348 curl_cv_need_header_lber_h="yes"
21349
21350fi
21351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 #
21353 case "$curl_cv_need_header_lber_h" in
21354 yes)
21355
21356cat >>confdefs.h <<_ACEOF
21357#define NEED_LBER_H 1
21358_ACEOF
21359
21360 ;;
21361 esac
21362 fi
21363
21364
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21366$as_echo_n "checking for ldap.h... " >&6; }
21367if ${curl_cv_header_ldap_h+:} false; then :
21368 $as_echo_n "(cached) " >&6
21369else
21370
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372/* end confdefs.h. */
21373
21374
21375#undef inline
21376#ifdef HAVE_WINDOWS_H
21377#ifndef WIN32_LEAN_AND_MEAN
21378#define WIN32_LEAN_AND_MEAN
21379#endif
21380#include <windows.h>
21381#else
21382#ifdef HAVE_SYS_TYPES_H
21383#include <sys/types.h>
21384#endif
21385#endif
21386#ifndef LDAP_DEPRECATED
21387#define LDAP_DEPRECATED 1
21388#endif
21389#ifdef NEED_LBER_H
21390#include <lber.h>
21391#endif
21392#include <ldap.h>
21393
21394int main (void)
21395{
21396
21397 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21398 int res = ldap_unbind(ldp);
21399
21400 ;
21401 return 0;
21402}
21403
21404_ACEOF
21405if ac_fn_c_try_compile "$LINENO"; then :
21406
21407 curl_cv_header_ldap_h="yes"
21408
21409else
21410
21411 curl_cv_header_ldap_h="no"
21412
21413fi
21414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415
21416fi
21417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21418$as_echo "$curl_cv_header_ldap_h" >&6; }
21419 case "$curl_cv_header_ldap_h" in
21420 yes)
21421
21422cat >>confdefs.h <<_ACEOF
21423#define HAVE_LDAP_H 1
21424_ACEOF
21425
21426 ;;
21427 esac
21428
21429
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21431$as_echo_n "checking for ldapssl.h... " >&6; }
21432if ${curl_cv_header_ldapssl_h+:} false; then :
21433 $as_echo_n "(cached) " >&6
21434else
21435
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437/* end confdefs.h. */
21438
21439
21440#undef inline
21441#ifdef HAVE_WINDOWS_H
21442#ifndef WIN32_LEAN_AND_MEAN
21443#define WIN32_LEAN_AND_MEAN
21444#endif
21445#include <windows.h>
21446#else
21447#ifdef HAVE_SYS_TYPES_H
21448#include <sys/types.h>
21449#endif
21450#endif
21451#ifndef NULL
21452#define NULL (void *)0
21453#endif
21454#ifndef LDAP_DEPRECATED
21455#define LDAP_DEPRECATED 1
21456#endif
21457#ifdef NEED_LBER_H
21458#include <lber.h>
21459#endif
21460#ifdef HAVE_LDAP_H
21461#include <ldap.h>
21462#endif
21463#include <ldapssl.h>
21464
21465int main (void)
21466{
21467
21468 char *cert_label = NULL;
21469 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21470
21471 ;
21472 return 0;
21473}
21474
21475_ACEOF
21476if ac_fn_c_try_compile "$LINENO"; then :
21477
21478 curl_cv_header_ldapssl_h="yes"
21479
21480else
21481
21482 curl_cv_header_ldapssl_h="no"
21483
21484fi
21485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21486
21487fi
21488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21489$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21490 case "$curl_cv_header_ldapssl_h" in
21491 yes)
21492
21493cat >>confdefs.h <<_ACEOF
21494#define HAVE_LDAPSSL_H 1
21495_ACEOF
21496
21497 ;;
21498 esac
21499
21500
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21502$as_echo_n "checking for ldap_ssl.h... " >&6; }
21503if ${curl_cv_header_ldap_ssl_h+:} false; then :
21504 $as_echo_n "(cached) " >&6
21505else
21506
21507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21508/* end confdefs.h. */
21509
21510
21511#undef inline
21512#ifdef HAVE_WINDOWS_H
21513#ifndef WIN32_LEAN_AND_MEAN
21514#define WIN32_LEAN_AND_MEAN
21515#endif
21516#include <windows.h>
21517#else
21518#ifdef HAVE_SYS_TYPES_H
21519#include <sys/types.h>
21520#endif
21521#endif
21522#ifndef LDAP_DEPRECATED
21523#define LDAP_DEPRECATED 1
21524#endif
21525#ifdef NEED_LBER_H
21526#include <lber.h>
21527#endif
21528#ifdef HAVE_LDAP_H
21529#include <ldap.h>
21530#endif
21531#include <ldap_ssl.h>
21532
21533int main (void)
21534{
21535
21536 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21537
21538 ;
21539 return 0;
21540}
21541
21542_ACEOF
21543if ac_fn_c_try_compile "$LINENO"; then :
21544
21545 curl_cv_header_ldap_ssl_h="yes"
21546
21547else
21548
21549 curl_cv_header_ldap_ssl_h="no"
21550
21551fi
21552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553
21554fi
21555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21556$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21557 case "$curl_cv_header_ldap_ssl_h" in
21558 yes)
21559
21560cat >>confdefs.h <<_ACEOF
21561#define HAVE_LDAP_SSL_H 1
21562_ACEOF
21563
21564 ;;
21565 esac
21566
21567
21568 if test -z "$LDAPLIBNAME" ; then
21569 if test "$curl_cv_native_windows" = "yes"; then
21570 LDAPLIBNAME="wldap32"
21571 LBERLIBNAME="no"
21572 fi
21573 fi
21574
21575 if test "$LDAPLIBNAME" ; then
21576 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21578$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21579if eval \${$as_ac_Lib+:} false; then :
21580 $as_echo_n "(cached) " >&6
21581else
21582 ac_check_lib_save_LIBS=$LIBS
21583LIBS="-l"$LDAPLIBNAME" $LIBS"
21584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585/* end confdefs.h. */
21586
21587
21588#ifdef __cplusplus
21589extern "C"
21590#endif
21591char ldap_init ();
21592int main (void)
21593{
21594return ldap_init ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599if ac_fn_c_try_link "$LINENO"; then :
21600 eval "$as_ac_Lib=yes"
21601else
21602 eval "$as_ac_Lib=no"
21603fi
21604rm -f core conftest.err conftest.$ac_objext \
21605 conftest$ac_exeext conftest.$ac_ext
21606LIBS=$ac_check_lib_save_LIBS
21607fi
21608eval ac_res=\$$as_ac_Lib
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21610$as_echo "$ac_res" >&6; }
21611if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21612 cat >>confdefs.h <<_ACEOF
21613#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21614_ACEOF
21615
21616 LIBS="-l"$LDAPLIBNAME" $LIBS"
21617
21618else
21619
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21621$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21622
21623$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21624
21625 CURL_DISABLE_LDAP=1
21626
21627
21628$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21629
21630 CURL_DISABLE_LDAPS=1
21631
21632fi
21633
21634 else
21635
21636 #
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21638$as_echo_n "checking for LDAP libraries... " >&6; }
21639 #
21640 u_libs=""
21641 #
21642
21643 #
21644 curl_cv_save_LIBS="$LIBS"
21645 curl_cv_ldap_LIBS="unknown"
21646 #
21647 for x_nlibs in '' "$u_libs" \
21648 '-lldap' \
21649 '-lldap -llber' \
21650 '-llber -lldap' \
21651 '-lldapssl -lldapx -lldapsdk' \
21652 '-lldapsdk -lldapx -lldapssl' ; do
21653 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21654 if test -z "$x_nlibs"; then
21655 LIBS="$curl_cv_save_LIBS"
21656 else
21657 LIBS="$x_nlibs $curl_cv_save_LIBS"
21658 fi
21659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660/* end confdefs.h. */
21661
21662
21663#undef inline
21664#ifdef HAVE_WINDOWS_H
21665#ifndef WIN32_LEAN_AND_MEAN
21666#define WIN32_LEAN_AND_MEAN
21667#endif
21668#include <windows.h>
21669#else
21670#ifdef HAVE_SYS_TYPES_H
21671#include <sys/types.h>
21672#endif
21673#endif
21674#ifndef NULL
21675#define NULL (void *)0
21676#endif
21677#ifndef LDAP_DEPRECATED
21678#define LDAP_DEPRECATED 1
21679#endif
21680#ifdef NEED_LBER_H
21681#include <lber.h>
21682#endif
21683#ifdef HAVE_LDAP_H
21684#include <ldap.h>
21685#endif
21686
21687int main (void)
21688{
21689
21690 BerValue *bvp = NULL;
21691 BerElement *bep = ber_init(bvp);
21692 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21693 int res = ldap_unbind(ldp);
21694 ber_free(bep, 1);
21695
21696 ;
21697 return 0;
21698}
21699
21700_ACEOF
21701if ac_fn_c_try_link "$LINENO"; then :
21702
21703 curl_cv_ldap_LIBS="$x_nlibs"
21704
21705fi
21706rm -f core conftest.err conftest.$ac_objext \
21707 conftest$ac_exeext conftest.$ac_ext
21708 fi
21709 done
21710 #
21711 LIBS="$curl_cv_save_LIBS"
21712 #
21713 case X-"$curl_cv_ldap_LIBS" in
21714 X-unknown)
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21716$as_echo "cannot find LDAP libraries" >&6; }
21717 ;;
21718 X-)
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21720$as_echo "no additional lib required" >&6; }
21721 ;;
21722 *)
21723 if test -z "$curl_cv_save_LIBS"; then
21724 LIBS="$curl_cv_ldap_LIBS"
21725 else
21726 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21727 fi
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21729$as_echo "$curl_cv_ldap_LIBS" >&6; }
21730 ;;
21731 esac
21732 #
21733
21734 case X-"$curl_cv_ldap_LIBS" in
21735 X-unknown)
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21737$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21738
21739$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21740
21741 CURL_DISABLE_LDAP=1
21742
21743
21744$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21745
21746 CURL_DISABLE_LDAPS=1
21747
21748 ;;
21749 esac
21750 fi
21751fi
21752
21753if test x$CURL_DISABLE_LDAP != x1 ; then
21754
21755 if test "$LBERLIBNAME" ; then
21756 if test "$LBERLIBNAME" != "no" ; then
21757 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21759$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21760if eval \${$as_ac_Lib+:} false; then :
21761 $as_echo_n "(cached) " >&6
21762else
21763 ac_check_lib_save_LIBS=$LIBS
21764LIBS="-l"$LBERLIBNAME" $LIBS"
21765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21766/* end confdefs.h. */
21767
21768
21769#ifdef __cplusplus
21770extern "C"
21771#endif
21772char ber_free ();
21773int main (void)
21774{
21775return ber_free ();
21776 ;
21777 return 0;
21778}
21779_ACEOF
21780if ac_fn_c_try_link "$LINENO"; then :
21781 eval "$as_ac_Lib=yes"
21782else
21783 eval "$as_ac_Lib=no"
21784fi
21785rm -f core conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21787LIBS=$ac_check_lib_save_LIBS
21788fi
21789eval ac_res=\$$as_ac_Lib
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21791$as_echo "$ac_res" >&6; }
21792if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21793 cat >>confdefs.h <<_ACEOF
21794#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21795_ACEOF
21796
21797 LIBS="-l"$LBERLIBNAME" $LIBS"
21798
21799else
21800
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21802$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21803
21804$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21805
21806 CURL_DISABLE_LDAP=1
21807
21808
21809$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21810
21811 CURL_DISABLE_LDAPS=1
21812
21813fi
21814
21815 fi
21816 fi
21817fi
21818
21819if test x$CURL_DISABLE_LDAP != x1 ; then
21820 for ac_func in ldap_url_parse ldap_init_fd
21821do :
21822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21823ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21824if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21825 cat >>confdefs.h <<_ACEOF
21826#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21827_ACEOF
21828
21829fi
21830done
21831
21832
21833 if test "$LDAPLIBNAME" = "wldap32"; then
21834 curl_ldap_msg="enabled (winldap)"
21835
21836$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21837
21838 else
21839 curl_ldap_msg="enabled (OpenLDAP)"
21840 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21841
21842$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21843
21844 USE_OPENLDAP=1
21845
21846 fi
21847 fi
21848fi
21849
21850if test x$CURL_DISABLE_LDAPS != x1 ; then
21851 curl_ldaps_msg="enabled"
21852fi
21853
21854
21855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21856$as_echo_n "checking whether to enable IPv6... " >&6; }
21857# Check whether --enable-ipv6 was given.
21858if test "${enable_ipv6+set}" = set; then :
21859 enableval=$enable_ipv6; case "$enableval" in
21860 no)
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21862$as_echo "no" >&6; }
21863 ipv6=no
21864 ;;
21865 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21866$as_echo "yes" >&6; }
21867 ipv6=yes
21868 ;;
21869 esac
21870else
21871 if test "$cross_compiling" = yes; then :
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21873$as_echo "yes" >&6; }
21874 ipv6=yes
21875
21876else
21877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878/* end confdefs.h. */
21879 /* is AF_INET6 available? */
21880#include <sys/types.h>
21881#ifdef HAVE_WINSOCK2_H
21882#include <winsock2.h>
21883#else
21884#include <sys/socket.h>
21885#endif
21886#include <stdlib.h> /* for exit() */
21887main()
21888{
21889 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21890 exit(1);
21891 else
21892 exit(0);
21893}
21894
21895_ACEOF
21896if ac_fn_c_try_run "$LINENO"; then :
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21898$as_echo "yes" >&6; }
21899 ipv6=yes
21900else
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902$as_echo "no" >&6; }
21903 ipv6=no
21904fi
21905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21906 conftest.$ac_objext conftest.beam conftest.$ac_ext
21907fi
21908
21909fi
21910
21911
21912if test "$ipv6" = "yes"; then
21913 curl_ipv6_msg="enabled"
21914fi
21915
21916# Check if struct sockaddr_in6 have sin6_scope_id member
21917if test "$ipv6" = yes; then
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21919$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921/* end confdefs.h. */
21922
21923#include <sys/types.h>
21924#ifdef HAVE_WINSOCK2_H
21925#include <winsock2.h>
21926#include <ws2tcpip.h>
21927#else
21928#include <netinet/in.h>
21929#endif
21930int main (void)
21931{
21932struct sockaddr_in6 s; s.sin6_scope_id = 0;
21933 ;
21934 return 0;
21935}
21936_ACEOF
21937if ac_fn_c_try_compile "$LINENO"; then :
21938 have_sin6_scope_id=yes
21939fi
21940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 if test "$have_sin6_scope_id" = yes; then
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943$as_echo "yes" >&6; }
21944
21945$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21946
21947 else
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21949$as_echo "no" >&6; }
21950 fi
21951fi
21952
21953
21954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21955$as_echo_n "checking if argv can be written to... " >&6; }
21956if test "$cross_compiling" = yes; then :
21957
21958 curl_cv_writable_argv=cross
21959
21960else
21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962/* end confdefs.h. */
21963
21964
21965int main(int argc, char ** argv) {
21966 argv[0][0] = ' ';
21967 return (argv[0][0] == ' ')?0:1;
21968}
21969
21970
21971_ACEOF
21972if ac_fn_c_try_run "$LINENO"; then :
21973
21974 curl_cv_writable_argv=yes
21975
21976else
21977
21978 curl_cv_writable_argv=no
21979
21980fi
21981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21982 conftest.$ac_objext conftest.beam conftest.$ac_ext
21983fi
21984
21985case $curl_cv_writable_argv in
21986yes)
21987
21988$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21989
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21991$as_echo "yes" >&6; }
21992 ;;
21993no)
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21995$as_echo "no" >&6; }
21996 ;;
21997*)
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21999$as_echo "no" >&6; }
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22001$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22002 ;;
22003esac
22004
22005
22006
22007GSSAPI_ROOT="/usr"
22008
22009# Check whether --with-gssapi-includes was given.
22010if test "${with_gssapi_includes+set}" = set; then :
22011 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22012 want_gss="yes"
22013
22014fi
22015
22016
22017
22018# Check whether --with-gssapi-libs was given.
22019if test "${with_gssapi_libs+set}" = set; then :
22020 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22021 want_gss="yes"
22022
22023fi
22024
22025
22026
22027# Check whether --with-gssapi was given.
22028if test "${with_gssapi+set}" = set; then :
22029 withval=$with_gssapi;
22030 GSSAPI_ROOT="$withval"
22031 if test x"$GSSAPI_ROOT" != xno; then
22032 want_gss="yes"
22033 if test x"$GSSAPI_ROOT" = xyes; then
22034 GSSAPI_ROOT="/usr"
22035 fi
22036 fi
22037
22038fi
22039
22040
22041: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22042
22043save_CPPFLAGS="$CPPFLAGS"
22044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22045$as_echo_n "checking if GSS-API support is requested... " >&6; }
22046if test x"$want_gss" = xyes; then
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22048$as_echo "yes" >&6; }
22049
22050 if test -z "$GSSAPI_INCS"; then
22051 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22052 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22053 elif test -f "$KRB5CONFIG"; then
22054 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22055 elif test "$GSSAPI_ROOT" != "yes"; then
22056 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22057 fi
22058 fi
22059
22060 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22061
22062 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22063if test "x$ac_cv_header_gss_h" = xyes; then :
22064
22065
22066$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22067
22068 gnu_gss=yes
22069
22070else
22071
22072 for ac_header in gssapi/gssapi.h
22073do :
22074 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22075if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22076 cat >>confdefs.h <<_ACEOF
22077#define HAVE_GSSAPI_GSSAPI_H 1
22078_ACEOF
22079
22080else
22081 not_mit=1
22082fi
22083
22084done
22085
22086 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22087do :
22088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22090$ac_includes_default
22091#ifdef HAVE_GSSAPI_GSSAPI_H
22092#include <gssapi/gssapi.h>
22093#endif
22094
22095"
22096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22097 cat >>confdefs.h <<_ACEOF
22098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22099_ACEOF
22100
22101else
22102 not_mit=1
22103fi
22104
22105done
22106
22107 if test "x$not_mit" = "x1"; then
22108 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22109if test "x$ac_cv_header_gssapi_h" = xyes; then :
22110
22111
22112$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22113
22114
22115else
22116
22117 want_gss=no
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22119$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22120
22121
22122fi
22123
22124
22125 else
22126
22127$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22128
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22130$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132/* end confdefs.h. */
22133
22134
22135#include <gssapi/gssapi.h>
22136#include <gssapi/gssapi_generic.h>
22137#include <gssapi/gssapi_krb5.h>
22138
22139int main (void)
22140{
22141
22142 gss_import_name(
22143 (OM_uint32 *)0,
22144 (gss_buffer_t)0,
22145 GSS_C_NT_HOSTBASED_SERVICE,
22146 (gss_name_t *)0);
22147
22148 ;
22149 return 0;
22150}
22151
22152_ACEOF
22153if ac_fn_c_try_compile "$LINENO"; then :
22154
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156$as_echo "yes" >&6; }
22157
22158else
22159
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161$as_echo "no" >&6; }
22162
22163$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22164
22165
22166fi
22167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168 fi
22169
22170
22171fi
22172
22173
22174else
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22176$as_echo "no" >&6; }
22177fi
22178if test x"$want_gss" = xyes; then
22179
22180$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22181
22182 HAVE_GSSAPI=1
22183 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22184
22185 if test -n "$gnu_gss"; then
22186 curl_gss_msg="enabled (GNU GSS)"
22187 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22188 LIBS="-lgss $LIBS"
22189 elif test -z "$GSSAPI_LIB_DIR"; then
22190 case $host in
22191 *-*-darwin*)
22192 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22193 ;;
22194 *)
22195 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22196 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22197 LIBS="$gss_libs $LIBS"
22198 elif test -f "$KRB5CONFIG"; then
22199 gss_libs=`$KRB5CONFIG --libs gssapi`
22200 LIBS="$gss_libs $LIBS"
22201 else
22202 case $host in
22203 *-hp-hpux*)
22204 gss_libname="gss"
22205 ;;
22206 *)
22207 gss_libname="gssapi"
22208 ;;
22209 esac
22210
22211 if test "$GSSAPI_ROOT" != "yes"; then
22212 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22213 LIBS="-l$gss_libname $LIBS"
22214 else
22215 LIBS="-l$gss_libname $LIBS"
22216 fi
22217 fi
22218 ;;
22219 esac
22220 else
22221 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22222 case $host in
22223 *-hp-hpux*)
22224 LIBS="-lgss $LIBS"
22225 ;;
22226 *)
22227 LIBS="-lgssapi $LIBS"
22228 ;;
22229 esac
22230 fi
22231else
22232 CPPFLAGS="$save_CPPFLAGS"
22233fi
22234
Alex Deymo486467e2017-12-19 19:04:07 +010022235build_libstubgss=no
22236if test x"$want_gss" = "xyes"; then
22237 build_libstubgss=yes
22238fi
22239
22240 if test "x$build_libstubgss" = "xyes"; then
22241 BUILD_STUB_GSS_TRUE=
22242 BUILD_STUB_GSS_FALSE='#'
22243else
22244 BUILD_STUB_GSS_TRUE='#'
22245 BUILD_STUB_GSS_FALSE=
22246fi
22247
22248
22249
22250DEFAULT_SSL_BACKEND=no
22251VALID_DEFAULT_SSL_BACKEND=
22252
22253# Check whether --with-default-ssl-backend was given.
22254if test "${with_default_ssl_backend+set}" = set; then :
22255 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22256fi
22257
22258case "$DEFAULT_SSL_BACKEND" in
22259 no)
22260 ;;
22261 default|yes)
22262 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22263 ;;
22264 *)
22265
22266 VALID_DEFAULT_SSL_BACKEND=no
22267 ;;
22268esac
22269
22270
Elliott Hughes82be86d2017-09-20 17:00:17 -070022271
22272OPT_WINSSL=no
22273
22274# Check whether --with-winssl was given.
22275if test "${with_winssl+set}" = set; then :
22276 withval=$with_winssl; OPT_WINSSL=$withval
22277fi
22278
22279
22280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22281$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022282if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22283 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022284 if test "x$OPT_WINSSL" != "xno" &&
22285 test "x$curl_cv_native_windows" = "xyes"; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22287$as_echo "yes" >&6; }
22288
22289$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22290
22291 USE_SCHANNEL=1
22292
Alex Deymo486467e2017-12-19 19:04:07 +010022293 ssl_msg="Windows-native"
22294 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022295 WINSSL_ENABLED=1
22296 # --with-winssl implies --enable-sspi
22297
22298$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22299
22300 USE_WINDOWS_SSPI=1
22301
22302 curl_sspi_msg="enabled"
22303 LIBS="-lcrypt32 $LIBS"
22304 else
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306$as_echo "no" >&6; }
22307 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022308 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022309else
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22311$as_echo "no" >&6; }
22312fi
22313
22314OPT_DARWINSSL=no
22315
22316# Check whether --with-darwinssl was given.
22317if test "${with_darwinssl+set}" = set; then :
22318 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22319fi
22320
22321
22322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22323$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022324if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022325 if test "x$OPT_DARWINSSL" != "xno" &&
22326 test -d "/System/Library/Frameworks/Security.framework"; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22328$as_echo "yes" >&6; }
22329
22330$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22331
22332 USE_DARWINSSL=1
22333
Alex Deymo486467e2017-12-19 19:04:07 +010022334 ssl_msg="Apple OS-native"
22335 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022336 DARWINSSL_ENABLED=1
22337 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22338 else
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340$as_echo "no" >&6; }
22341 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022342 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022343else
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345$as_echo "no" >&6; }
22346fi
22347
22348
22349OPT_SSL=off
22350ca="no"
22351
22352# Check whether --with-ssl was given.
22353if test "${with_ssl+set}" = set; then :
22354 withval=$with_ssl; OPT_SSL=$withval
22355fi
22356
22357
Alex Deymo486467e2017-12-19 19:04:07 +010022358if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22359 test X"$OPT_SSL" != Xno; then
22360 ssl_msg=
22361
Elliott Hughes82be86d2017-09-20 17:00:17 -070022362 CLEANLDFLAGS="$LDFLAGS"
22363 CLEANCPPFLAGS="$CPPFLAGS"
22364 CLEANLIBS="$LIBS"
22365
22366 case $host in
22367 *-*-msys* | *-*-mingw*)
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22369$as_echo_n "checking for gdi32... " >&6; }
22370 my_ac_save_LIBS=$LIBS
22371 LIBS="-lgdi32 $LIBS"
22372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22373/* end confdefs.h. */
22374#include <windef.h>
22375 #include <wingdi.h>
22376int main (void)
22377{
22378GdiFlush();
22379 ;
22380 return 0;
22381}
22382_ACEOF
22383if ac_fn_c_try_link "$LINENO"; then :
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22385$as_echo "yes" >&6; }
22386else
22387 LIBS=$my_ac_save_LIBS
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22389$as_echo "no" >&6; }
22390
22391fi
22392rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22394 ;;
22395 esac
22396
22397 case "$OPT_SSL" in
22398 yes)
22399 if test x$cross_compiling != xyes; then
22400 PKGTEST="yes"
22401 fi
22402 PREFIX_OPENSSL=/usr/local/ssl
22403 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22404 ;;
22405 off)
22406 if test x$cross_compiling != xyes; then
22407 PKGTEST="yes"
22408 fi
22409 PREFIX_OPENSSL=
22410 ;;
22411 *)
22412 PKGTEST="no"
22413 PREFIX_OPENSSL=$OPT_SSL
22414
22415 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22417$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22418 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22419 PKGTEST="yes"
22420 fi
22421
22422 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22423 if test "$PREFIX_OPENSSL" != "/usr" ; then
22424 SSL_LDFLAGS="-L$LIB_OPENSSL"
22425 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22426 fi
22427 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22428 ;;
22429 esac
22430
22431 if test "$PKGTEST" = "yes"; then
22432
22433
22434 if test -n "$PKG_CONFIG"; then
22435 PKGCONFIG="$PKG_CONFIG"
22436 else
22437 if test -n "$ac_tool_prefix"; then
22438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22439set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22441$as_echo_n "checking for $ac_word... " >&6; }
22442if ${ac_cv_path_PKGCONFIG+:} false; then :
22443 $as_echo_n "(cached) " >&6
22444else
22445 case $PKGCONFIG in
22446 [\\/]* | ?:[\\/]*)
22447 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22448 ;;
22449 *)
22450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22451as_dummy="$PATH:/usr/bin:/usr/local/bin"
22452for as_dir in $as_dummy
22453do
22454 IFS=$as_save_IFS
22455 test -z "$as_dir" && as_dir=.
22456 for ac_exec_ext in '' $ac_executable_extensions; do
22457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22458 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22460 break 2
22461 fi
22462done
22463 done
22464IFS=$as_save_IFS
22465
22466 ;;
22467esac
22468fi
22469PKGCONFIG=$ac_cv_path_PKGCONFIG
22470if test -n "$PKGCONFIG"; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22472$as_echo "$PKGCONFIG" >&6; }
22473else
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22475$as_echo "no" >&6; }
22476fi
22477
22478
22479fi
22480if test -z "$ac_cv_path_PKGCONFIG"; then
22481 ac_pt_PKGCONFIG=$PKGCONFIG
22482 # Extract the first word of "pkg-config", so it can be a program name with args.
22483set dummy pkg-config; ac_word=$2
22484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22485$as_echo_n "checking for $ac_word... " >&6; }
22486if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22487 $as_echo_n "(cached) " >&6
22488else
22489 case $ac_pt_PKGCONFIG in
22490 [\\/]* | ?:[\\/]*)
22491 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22492 ;;
22493 *)
22494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22495as_dummy="$PATH:/usr/bin:/usr/local/bin"
22496for as_dir in $as_dummy
22497do
22498 IFS=$as_save_IFS
22499 test -z "$as_dir" && as_dir=.
22500 for ac_exec_ext in '' $ac_executable_extensions; do
22501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22502 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22504 break 2
22505 fi
22506done
22507 done
22508IFS=$as_save_IFS
22509
22510 ;;
22511esac
22512fi
22513ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22514if test -n "$ac_pt_PKGCONFIG"; then
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22516$as_echo "$ac_pt_PKGCONFIG" >&6; }
22517else
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519$as_echo "no" >&6; }
22520fi
22521
22522 if test "x$ac_pt_PKGCONFIG" = x; then
22523 PKGCONFIG="no"
22524 else
22525 case $cross_compiling:$ac_tool_warned in
22526yes:)
22527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22529ac_tool_warned=yes ;;
22530esac
22531 PKGCONFIG=$ac_pt_PKGCONFIG
22532 fi
22533else
22534 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22535fi
22536
22537 fi
22538
22539 if test "x$PKGCONFIG" != "xno"; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22541$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22542 itexists=`
22543 if test -n "$OPENSSL_PCDIR"; then
22544 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22545 export PKG_CONFIG_LIBDIR
22546 fi
22547 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22548
22549 if test -z "$itexists"; then
22550 PKGCONFIG="no"
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552$as_echo "no" >&6; }
22553 else
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22555$as_echo "found" >&6; }
22556 fi
22557 fi
22558
22559
22560 if test "$PKGCONFIG" != "no" ; then
22561 SSL_LIBS=`
22562 if test -n "$OPENSSL_PCDIR"; then
22563 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22564 export PKG_CONFIG_LIBDIR
22565 fi
22566 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22567
22568 SSL_LDFLAGS=`
22569 if test -n "$OPENSSL_PCDIR"; then
22570 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22571 export PKG_CONFIG_LIBDIR
22572 fi
22573 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22574
22575 SSL_CPPFLAGS=`
22576 if test -n "$OPENSSL_PCDIR"; then
22577 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22578 export PKG_CONFIG_LIBDIR
22579 fi
22580 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22581
22582
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22584$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22586$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22588$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22589
22590 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22591
22592 LIBS="$SSL_LIBS $LIBS"
22593 fi
22594 fi
22595
22596 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22597 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22598
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22600$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22601if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22602 $as_echo_n "(cached) " >&6
22603else
22604 ac_check_lib_save_LIBS=$LIBS
22605LIBS="-lcrypto $LIBS"
22606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22607/* end confdefs.h. */
22608
22609
22610#ifdef __cplusplus
22611extern "C"
22612#endif
22613char HMAC_Update ();
22614int main (void)
22615{
22616return HMAC_Update ();
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621if ac_fn_c_try_link "$LINENO"; then :
22622 ac_cv_lib_crypto_HMAC_Update=yes
22623else
22624 ac_cv_lib_crypto_HMAC_Update=no
22625fi
22626rm -f core conftest.err conftest.$ac_objext \
22627 conftest$ac_exeext conftest.$ac_ext
22628LIBS=$ac_check_lib_save_LIBS
22629fi
22630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22631$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22632if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22633
22634 HAVECRYPTO="yes"
22635 LIBS="-lcrypto $LIBS"
22636
22637else
22638
22639 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22640 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22642$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22643if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22644 $as_echo_n "(cached) " >&6
22645else
22646 ac_check_lib_save_LIBS=$LIBS
22647LIBS="-lcrypto $LIBS"
22648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649/* end confdefs.h. */
22650
22651
22652#ifdef __cplusplus
22653extern "C"
22654#endif
22655char HMAC_Init_ex ();
22656int main (void)
22657{
22658return HMAC_Init_ex ();
22659 ;
22660 return 0;
22661}
22662_ACEOF
22663if ac_fn_c_try_link "$LINENO"; then :
22664 ac_cv_lib_crypto_HMAC_Init_ex=yes
22665else
22666 ac_cv_lib_crypto_HMAC_Init_ex=no
22667fi
22668rm -f core conftest.err conftest.$ac_objext \
22669 conftest$ac_exeext conftest.$ac_ext
22670LIBS=$ac_check_lib_save_LIBS
22671fi
22672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22673$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22674if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22675
22676 HAVECRYPTO="yes"
22677 LIBS="-lcrypto $LIBS"
22678else
22679
22680
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22682$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22683 LIBS="-ldl $LIBS"
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685/* end confdefs.h. */
22686
22687 #include <openssl/err.h>
22688
22689int main (void)
22690{
22691
22692 ERR_clear_error();
22693
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698if ac_fn_c_try_link "$LINENO"; then :
22699
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22701$as_echo "yes" >&6; }
22702 HAVECRYPTO="yes"
22703
22704else
22705
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707$as_echo "no" >&6; }
22708
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22710$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22711 LIBS="-lpthread $LIBS"
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713/* end confdefs.h. */
22714
22715 #include <openssl/err.h>
22716
22717int main (void)
22718{
22719
22720 ERR_clear_error();
22721
22722 ;
22723 return 0;
22724}
22725_ACEOF
22726if ac_fn_c_try_link "$LINENO"; then :
22727
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22729$as_echo "yes" >&6; }
22730 HAVECRYPTO="yes"
22731
22732else
22733
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22735$as_echo "no" >&6; }
22736 LDFLAGS="$CLEANLDFLAGS"
22737 CPPFLAGS="$CLEANCPPFLAGS"
22738 LIBS="$CLEANLIBS"
22739
22740
22741fi
22742rm -f core conftest.err conftest.$ac_objext \
22743 conftest$ac_exeext conftest.$ac_ext
22744
22745
22746fi
22747rm -f core conftest.err conftest.$ac_objext \
22748 conftest$ac_exeext conftest.$ac_ext
22749
22750
22751fi
22752
22753
22754fi
22755
22756
22757 if test X"$HAVECRYPTO" = X"yes"; then
22758
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22760$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22761if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22762 $as_echo_n "(cached) " >&6
22763else
22764 ac_check_lib_save_LIBS=$LIBS
22765LIBS="-lssl $LIBS"
22766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767/* end confdefs.h. */
22768
22769
22770#ifdef __cplusplus
22771extern "C"
22772#endif
22773char SSL_connect ();
22774int main (void)
22775{
22776return SSL_connect ();
22777 ;
22778 return 0;
22779}
22780_ACEOF
22781if ac_fn_c_try_link "$LINENO"; then :
22782 ac_cv_lib_ssl_SSL_connect=yes
22783else
22784 ac_cv_lib_ssl_SSL_connect=no
22785fi
22786rm -f core conftest.err conftest.$ac_objext \
22787 conftest$ac_exeext conftest.$ac_ext
22788LIBS=$ac_check_lib_save_LIBS
22789fi
22790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22791$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22792if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22793 cat >>confdefs.h <<_ACEOF
22794#define HAVE_LIBSSL 1
22795_ACEOF
22796
22797 LIBS="-lssl $LIBS"
22798
22799fi
22800
22801
22802 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22804$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22805 OLIBS=$LIBS
22806 LIBS="-lRSAglue -lrsaref $LIBS"
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22808$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22809if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22810 $as_echo_n "(cached) " >&6
22811else
22812 ac_check_lib_save_LIBS=$LIBS
22813LIBS="-lssl $LIBS"
22814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22815/* end confdefs.h. */
22816
22817
22818#ifdef __cplusplus
22819extern "C"
22820#endif
22821char SSL_connect ();
22822int main (void)
22823{
22824return SSL_connect ();
22825 ;
22826 return 0;
22827}
22828_ACEOF
22829if ac_fn_c_try_link "$LINENO"; then :
22830 ac_cv_lib_ssl_SSL_connect=yes
22831else
22832 ac_cv_lib_ssl_SSL_connect=no
22833fi
22834rm -f core conftest.err conftest.$ac_objext \
22835 conftest$ac_exeext conftest.$ac_ext
22836LIBS=$ac_check_lib_save_LIBS
22837fi
22838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22839$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22840if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22841 cat >>confdefs.h <<_ACEOF
22842#define HAVE_LIBSSL 1
22843_ACEOF
22844
22845 LIBS="-lssl $LIBS"
22846
22847fi
22848
22849 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22851$as_echo "no" >&6; }
22852 LIBS=$OLIBS
22853 else
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22855$as_echo "yes" >&6; }
22856 fi
22857
22858 else
22859
22860 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22861 openssl/pem.h openssl/ssl.h openssl/err.h
22862do :
22863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22864ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22866 cat >>confdefs.h <<_ACEOF
22867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22868_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022869 ssl_msg="OpenSSL"
22870 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022871 OPENSSL_ENABLED=1
22872
22873$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22874
22875fi
22876
22877done
22878
22879
22880 if test $ac_cv_header_openssl_x509_h = no; then
22881 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22882do :
22883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22884ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22886 cat >>confdefs.h <<_ACEOF
22887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22888_ACEOF
22889
22890fi
22891
22892done
22893
22894
22895 if test $ac_cv_header_x509_h = yes &&
22896 test $ac_cv_header_crypto_h = yes &&
22897 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022898 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022899 OPENSSL_ENABLED=1
22900 fi
22901 fi
22902 fi
22903
Alex Deymo486467e2017-12-19 19:04:07 +010022904 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022905 LIBS="$CLEANLIBS"
22906 fi
22907
22908 if test X"$OPT_SSL" != Xoff &&
22909 test "$OPENSSL_ENABLED" != "1"; then
22910 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22911 fi
22912 fi
22913
22914 if test X"$OPENSSL_ENABLED" = X"1"; then
22915 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22916if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22917
22918 for ac_header in openssl/engine.h
22919do :
22920 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22921if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22922 cat >>confdefs.h <<_ACEOF
22923#define HAVE_OPENSSL_ENGINE_H 1
22924_ACEOF
22925
22926fi
22927
22928done
22929
22930 for ac_func in ENGINE_load_builtin_engines
22931do :
22932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22933ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22934if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22935 cat >>confdefs.h <<_ACEOF
22936#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22937_ACEOF
22938
22939fi
22940done
22941
22942
22943fi
22944
22945
22946
22947 for ac_func in RAND_egd \
22948 ENGINE_cleanup \
22949 SSL_get_shutdown \
22950 SSLv2_client_method
22951do :
22952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22953ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22954if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22955 cat >>confdefs.h <<_ACEOF
22956#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22957_ACEOF
22958
22959fi
22960done
22961
22962
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22964$as_echo_n "checking for BoringSSL... " >&6; }
22965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966/* end confdefs.h. */
22967
22968
22969 #include <openssl/base.h>
22970
22971int main (void)
22972{
22973
22974 #ifndef OPENSSL_IS_BORINGSSL
22975 #error not boringssl
22976 #endif
22977
22978 ;
22979 return 0;
22980}
22981
22982_ACEOF
22983if ac_fn_c_try_compile "$LINENO"; then :
22984
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22986$as_echo "yes" >&6; }
22987
22988cat >>confdefs.h <<_ACEOF
22989#define HAVE_BORINGSSL 1
22990_ACEOF
22991
Alex Deymo486467e2017-12-19 19:04:07 +010022992 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022993
22994else
22995
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22997$as_echo "no" >&6; }
22998
22999fi
23000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23003$as_echo_n "checking for libressl... " >&6; }
23004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005/* end confdefs.h. */
23006
23007
23008#include <openssl/opensslv.h>
23009
23010int main (void)
23011{
23012
23013 int dummy = LIBRESSL_VERSION_NUMBER;
23014
23015 ;
23016 return 0;
23017}
23018
23019_ACEOF
23020if ac_fn_c_try_compile "$LINENO"; then :
23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23023$as_echo "yes" >&6; }
23024
23025cat >>confdefs.h <<_ACEOF
23026#define HAVE_LIBRESSL 1
23027_ACEOF
23028
Alex Deymo486467e2017-12-19 19:04:07 +010023029 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023030
23031else
23032
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23034$as_echo "no" >&6; }
23035
23036fi
23037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 fi
23039
23040 if test "$OPENSSL_ENABLED" = "1"; then
23041 if test -n "$LIB_OPENSSL"; then
23042 if test "x$cross_compiling" != "xyes"; then
23043 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23044 export LD_LIBRARY_PATH
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23046$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23047 fi
23048 fi
23049
23050 #
23051
23052 #
23053 tst_api="unknown"
23054 #
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23056$as_echo_n "checking for OpenSSL headers version... " >&6; }
23057
23058 OLDCPPFLAGS=$CPPFLAGS
23059 # CPPPFLAG comes from CURL_CPP_P
23060 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23061 if test -z "$SED"; then
23062 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23063 fi
23064 if test -z "$GREP"; then
23065 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23066 fi
23067
23068 tmp_exp=""
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070/* end confdefs.h. */
23071
23072
23073# ifdef USE_OPENSSL
23074# include <openssl/crypto.h>
23075# else
23076# include <crypto.h>
23077# endif
23078
23079#ifdef OPENSSL_VERSION_NUMBER
23080CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23081#endif
23082
23083
23084_ACEOF
23085if ac_fn_c_try_cpp "$LINENO"; then :
23086
23087 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23088 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23089 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23090 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23091 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23092 tmp_exp=""
23093 fi
23094
23095fi
23096rm -f conftest.err conftest.i conftest.$ac_ext
23097 if test -z "$tmp_exp"; then
23098 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23099
23100 else
23101 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23102 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23103
23104 fi
23105 CPPFLAGS=$OLDCPPFLAGS
23106
23107 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23108 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23109 case "x$tst_verlen" in
23110 x6)
23111 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23112 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23113 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23114 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23115 ;;
23116 x11|x10)
23117 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23118 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23119 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23120 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23121 ;;
23122 *)
23123 tst_api="unknown"
23124 ;;
23125 esac
23126 case $tst_api in
23127 0x110) tst_show="1.1.0" ;;
23128 0x102) tst_show="1.0.2" ;;
23129 0x101) tst_show="1.0.1" ;;
23130 0x100) tst_show="1.0.0" ;;
23131 0x099) tst_show="0.9.9" ;;
23132 0x098) tst_show="0.9.8" ;;
23133 0x097) tst_show="0.9.7" ;;
23134 0x096) tst_show="0.9.6" ;;
23135 0x095) tst_show="0.9.5" ;;
23136 0x094) tst_show="0.9.4" ;;
23137 0x093) tst_show="0.9.3" ;;
23138 0x092) tst_show="0.9.2" ;;
23139 0x091) tst_show="0.9.1" ;;
23140 *) tst_show="unknown" ;;
23141 esac
23142 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23143 else
23144 tst_show="unknown"
23145 fi
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23147$as_echo "$tst_show" >&6; }
23148 #
23149 curl_openssl_api_headers=$tst_api
23150
23151
23152 #
23153 tst_api="unknown"
23154 #
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23156$as_echo_n "checking for OpenSSL library version... " >&6; }
23157 if test "$tst_api" = "unknown"; then
23158 case $host in
23159 *-*-vms*)
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h. */
23162
23163
23164#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23165#ifdef __STDC__
23166# include <limits.h>
23167#else
23168# include <assert.h>
23169#endif
23170#undef SSL_CTX_set_not_resumbl_sess_cb
23171#ifdef __cplusplus
23172extern "C"
23173#endif
23174char SSL_CTX_set_not_resumbl_sess_cb ();
23175#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23176choke me
23177#endif
23178
23179int main (void)
23180{
23181return SSL_CTX_set_not_resumbl_sess_cb ();
23182 ;
23183 return 0;
23184}
23185
23186_ACEOF
23187if ac_fn_c_try_link "$LINENO"; then :
23188
23189 tst_api="0x110"
23190
23191fi
23192rm -f core conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext conftest.$ac_ext
23194 ;;
23195 *)
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197/* end confdefs.h. */
23198
23199
23200#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23201#ifdef __STDC__
23202# include <limits.h>
23203#else
23204# include <assert.h>
23205#endif
23206#undef SSL_CTX_set_not_resumable_session_callback
23207#ifdef __cplusplus
23208extern "C"
23209#endif
23210char SSL_CTX_set_not_resumable_session_callback ();
23211#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23212choke me
23213#endif
23214
23215int main (void)
23216{
23217return SSL_CTX_set_not_resumable_session_callback ();
23218 ;
23219 return 0;
23220}
23221
23222_ACEOF
23223if ac_fn_c_try_link "$LINENO"; then :
23224
23225 tst_api="0x110"
23226
23227fi
23228rm -f core conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23230 ;;
23231 esac
23232 fi
23233 if test "$tst_api" = "unknown"; then
23234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23235/* end confdefs.h. */
23236
23237
23238#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23239#ifdef __STDC__
23240# include <limits.h>
23241#else
23242# include <assert.h>
23243#endif
23244#undef SSL_CONF_CTX_new
23245#ifdef __cplusplus
23246extern "C"
23247#endif
23248char SSL_CONF_CTX_new ();
23249#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23250choke me
23251#endif
23252
23253int main (void)
23254{
23255return SSL_CONF_CTX_new ();
23256 ;
23257 return 0;
23258}
23259
23260_ACEOF
23261if ac_fn_c_try_link "$LINENO"; then :
23262
23263 tst_api="0x102"
23264
23265fi
23266rm -f core conftest.err conftest.$ac_objext \
23267 conftest$ac_exeext conftest.$ac_ext
23268 fi
23269 if test "$tst_api" = "unknown"; then
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271/* end confdefs.h. */
23272
23273
23274#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23275#ifdef __STDC__
23276# include <limits.h>
23277#else
23278# include <assert.h>
23279#endif
23280#undef SSL_renegotiate_abbreviated
23281#ifdef __cplusplus
23282extern "C"
23283#endif
23284char SSL_renegotiate_abbreviated ();
23285#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23286choke me
23287#endif
23288
23289int main (void)
23290{
23291return SSL_renegotiate_abbreviated ();
23292 ;
23293 return 0;
23294}
23295
23296_ACEOF
23297if ac_fn_c_try_link "$LINENO"; then :
23298
23299 tst_api="0x101"
23300
23301fi
23302rm -f core conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
23304 fi
23305 if test "$tst_api" = "unknown"; then
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307/* end confdefs.h. */
23308
23309
23310#define OBJ_add_sigid innocuous_OBJ_add_sigid
23311#ifdef __STDC__
23312# include <limits.h>
23313#else
23314# include <assert.h>
23315#endif
23316#undef OBJ_add_sigid
23317#ifdef __cplusplus
23318extern "C"
23319#endif
23320char OBJ_add_sigid ();
23321#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23322choke me
23323#endif
23324
23325int main (void)
23326{
23327return OBJ_add_sigid ();
23328 ;
23329 return 0;
23330}
23331
23332_ACEOF
23333if ac_fn_c_try_link "$LINENO"; then :
23334
23335 tst_api="0x100"
23336
23337fi
23338rm -f core conftest.err conftest.$ac_objext \
23339 conftest$ac_exeext conftest.$ac_ext
23340 fi
23341 if test "$tst_api" = "unknown"; then
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343/* end confdefs.h. */
23344
23345
23346#define ERR_set_mark innocuous_ERR_set_mark
23347#ifdef __STDC__
23348# include <limits.h>
23349#else
23350# include <assert.h>
23351#endif
23352#undef ERR_set_mark
23353#ifdef __cplusplus
23354extern "C"
23355#endif
23356char ERR_set_mark ();
23357#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23358choke me
23359#endif
23360
23361int main (void)
23362{
23363return ERR_set_mark ();
23364 ;
23365 return 0;
23366}
23367
23368_ACEOF
23369if ac_fn_c_try_link "$LINENO"; then :
23370
23371 tst_api="0x098"
23372
23373fi
23374rm -f core conftest.err conftest.$ac_objext \
23375 conftest$ac_exeext conftest.$ac_ext
23376 fi
23377 if test "$tst_api" = "unknown"; then
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379/* end confdefs.h. */
23380
23381
23382#define ERR_peek_last_error innocuous_ERR_peek_last_error
23383#ifdef __STDC__
23384# include <limits.h>
23385#else
23386# include <assert.h>
23387#endif
23388#undef ERR_peek_last_error
23389#ifdef __cplusplus
23390extern "C"
23391#endif
23392char ERR_peek_last_error ();
23393#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23394choke me
23395#endif
23396
23397int main (void)
23398{
23399return ERR_peek_last_error ();
23400 ;
23401 return 0;
23402}
23403
23404_ACEOF
23405if ac_fn_c_try_link "$LINENO"; then :
23406
23407 tst_api="0x097"
23408
23409fi
23410rm -f core conftest.err conftest.$ac_objext \
23411 conftest$ac_exeext conftest.$ac_ext
23412 fi
23413 if test "$tst_api" = "unknown"; then
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415/* end confdefs.h. */
23416
23417
23418#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23419#ifdef __STDC__
23420# include <limits.h>
23421#else
23422# include <assert.h>
23423#endif
23424#undef c2i_ASN1_OBJECT
23425#ifdef __cplusplus
23426extern "C"
23427#endif
23428char c2i_ASN1_OBJECT ();
23429#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23430choke me
23431#endif
23432
23433int main (void)
23434{
23435return c2i_ASN1_OBJECT ();
23436 ;
23437 return 0;
23438}
23439
23440_ACEOF
23441if ac_fn_c_try_link "$LINENO"; then :
23442
23443 tst_api="0x096"
23444
23445fi
23446rm -f core conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
23448 fi
23449 if test "$tst_api" = "unknown"; then
23450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451/* end confdefs.h. */
23452
23453
23454#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23455#ifdef __STDC__
23456# include <limits.h>
23457#else
23458# include <assert.h>
23459#endif
23460#undef SSL_CTX_set_purpose
23461#ifdef __cplusplus
23462extern "C"
23463#endif
23464char SSL_CTX_set_purpose ();
23465#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23466choke me
23467#endif
23468
23469int main (void)
23470{
23471return SSL_CTX_set_purpose ();
23472 ;
23473 return 0;
23474}
23475
23476_ACEOF
23477if ac_fn_c_try_link "$LINENO"; then :
23478
23479 tst_api="0x095"
23480
23481fi
23482rm -f core conftest.err conftest.$ac_objext \
23483 conftest$ac_exeext conftest.$ac_ext
23484 fi
23485 if test "$tst_api" = "unknown"; then
23486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487/* end confdefs.h. */
23488
23489
23490#define OBJ_obj2txt innocuous_OBJ_obj2txt
23491#ifdef __STDC__
23492# include <limits.h>
23493#else
23494# include <assert.h>
23495#endif
23496#undef OBJ_obj2txt
23497#ifdef __cplusplus
23498extern "C"
23499#endif
23500char OBJ_obj2txt ();
23501#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23502choke me
23503#endif
23504
23505int main (void)
23506{
23507return OBJ_obj2txt ();
23508 ;
23509 return 0;
23510}
23511
23512_ACEOF
23513if ac_fn_c_try_link "$LINENO"; then :
23514
23515 tst_api="0x094"
23516
23517fi
23518rm -f core conftest.err conftest.$ac_objext \
23519 conftest$ac_exeext conftest.$ac_ext
23520 fi
23521 if test "$tst_api" = "unknown"; then
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523/* end confdefs.h. */
23524
23525
23526#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23527#ifdef __STDC__
23528# include <limits.h>
23529#else
23530# include <assert.h>
23531#endif
23532#undef SSL_get_verify_depth
23533#ifdef __cplusplus
23534extern "C"
23535#endif
23536char SSL_get_verify_depth ();
23537#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23538choke me
23539#endif
23540
23541int main (void)
23542{
23543return SSL_get_verify_depth ();
23544 ;
23545 return 0;
23546}
23547
23548_ACEOF
23549if ac_fn_c_try_link "$LINENO"; then :
23550
23551 tst_api="0x093"
23552
23553fi
23554rm -f core conftest.err conftest.$ac_objext \
23555 conftest$ac_exeext conftest.$ac_ext
23556 fi
23557 if test "$tst_api" = "unknown"; then
23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23559/* end confdefs.h. */
23560
23561
23562#define SSL_library_init innocuous_SSL_library_init
23563#ifdef __STDC__
23564# include <limits.h>
23565#else
23566# include <assert.h>
23567#endif
23568#undef SSL_library_init
23569#ifdef __cplusplus
23570extern "C"
23571#endif
23572char SSL_library_init ();
23573#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23574choke me
23575#endif
23576
23577int main (void)
23578{
23579return SSL_library_init ();
23580 ;
23581 return 0;
23582}
23583
23584_ACEOF
23585if ac_fn_c_try_link "$LINENO"; then :
23586
23587 tst_api="0x092"
23588
23589fi
23590rm -f core conftest.err conftest.$ac_objext \
23591 conftest$ac_exeext conftest.$ac_ext
23592 fi
23593 if test "$tst_api" = "unknown"; then
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595/* end confdefs.h. */
23596
23597
23598#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23599#ifdef __STDC__
23600# include <limits.h>
23601#else
23602# include <assert.h>
23603#endif
23604#undef SSL_CTX_set_cipher_list
23605#ifdef __cplusplus
23606extern "C"
23607#endif
23608char SSL_CTX_set_cipher_list ();
23609#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23610choke me
23611#endif
23612
23613int main (void)
23614{
23615return SSL_CTX_set_cipher_list ();
23616 ;
23617 return 0;
23618}
23619
23620_ACEOF
23621if ac_fn_c_try_link "$LINENO"; then :
23622
23623 tst_api="0x091"
23624
23625fi
23626rm -f core conftest.err conftest.$ac_objext \
23627 conftest$ac_exeext conftest.$ac_ext
23628 fi
23629 case $tst_api in
23630 0x110) tst_show="1.1.0" ;;
23631 0x102) tst_show="1.0.2" ;;
23632 0x101) tst_show="1.0.1" ;;
23633 0x100) tst_show="1.0.0" ;;
23634 0x099) tst_show="0.9.9" ;;
23635 0x098) tst_show="0.9.8" ;;
23636 0x097) tst_show="0.9.7" ;;
23637 0x096) tst_show="0.9.6" ;;
23638 0x095) tst_show="0.9.5" ;;
23639 0x094) tst_show="0.9.4" ;;
23640 0x093) tst_show="0.9.3" ;;
23641 0x092) tst_show="0.9.2" ;;
23642 0x091) tst_show="0.9.1" ;;
23643 *) tst_show="unknown" ;;
23644 esac
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23646$as_echo "$tst_show" >&6; }
23647 #
23648 curl_openssl_api_library=$tst_api
23649
23650 #
23651 tst_match="yes"
23652 #
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23654$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23655 if test "$curl_openssl_api_headers" = "unknown" ||
23656 test "$curl_openssl_api_library" = "unknown"; then
23657 tst_match="fail"
23658 tst_warns="Can not compare OpenSSL headers and library versions."
23659 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23660 tst_match="no"
23661 tst_warns="OpenSSL headers and library versions do not match."
23662 fi
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23664$as_echo "$tst_match" >&6; }
23665 if test "$tst_match" != "yes"; then
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23667$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23668 fi
23669
23670 fi
23671
Alex Deymo486467e2017-12-19 19:04:07 +010023672 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023673fi
23674
23675
23676if test X"$OPENSSL_ENABLED" = X"1"; then
23677
23678# Check whether --with-egd-socket was given.
23679if test "${with_egd_socket+set}" = set; then :
23680 withval=$with_egd_socket; EGD_SOCKET="$withval"
23681
23682fi
23683
23684 if test -n "$EGD_SOCKET" ; then
23685
23686cat >>confdefs.h <<_ACEOF
23687#define EGD_SOCKET "$EGD_SOCKET"
23688_ACEOF
23689
23690 fi
23691
23692
23693# Check whether --with-random was given.
23694if test "${with_random+set}" = set; then :
23695 withval=$with_random; RANDOM_FILE="$withval"
23696else
23697
23698 if test x$cross_compiling != xyes; then
23699 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23701$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23702if eval \${$as_ac_File+:} false; then :
23703 $as_echo_n "(cached) " >&6
23704else
23705 test "$cross_compiling" = yes &&
23706 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23707if test -r ""/dev/urandom""; then
23708 eval "$as_ac_File=yes"
23709else
23710 eval "$as_ac_File=no"
23711fi
23712fi
23713eval ac_res=\$$as_ac_File
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23715$as_echo "$ac_res" >&6; }
23716if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23717 RANDOM_FILE="/dev/urandom"
23718fi
23719
23720 else
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23722$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23723 fi
23724
23725
23726fi
23727
23728 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23729
23730
23731cat >>confdefs.h <<_ACEOF
23732#define RANDOM_FILE "$RANDOM_FILE"
23733_ACEOF
23734
23735 fi
23736fi
23737
23738if test "$OPENSSL_ENABLED" = "1"; then
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23740$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23741if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23742 $as_echo_n "(cached) " >&6
23743else
23744 ac_check_lib_save_LIBS=$LIBS
23745LIBS="-lcrypto $LIBS"
23746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747/* end confdefs.h. */
23748
23749
23750#ifdef __cplusplus
23751extern "C"
23752#endif
23753char SRP_Calc_client_key ();
23754int main (void)
23755{
23756return SRP_Calc_client_key ();
23757 ;
23758 return 0;
23759}
23760_ACEOF
23761if ac_fn_c_try_link "$LINENO"; then :
23762 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23763else
23764 ac_cv_lib_crypto_SRP_Calc_client_key=no
23765fi
23766rm -f core conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23768LIBS=$ac_check_lib_save_LIBS
23769fi
23770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23771$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23772if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23773
23774
23775$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23776
23777 HAVE_OPENSSL_SRP=1
23778
23779
23780fi
23781
23782fi
23783
23784
23785OPT_GNUTLS=no
23786
23787
23788# Check whether --with-gnutls was given.
23789if test "${with_gnutls+set}" = set; then :
23790 withval=$with_gnutls; OPT_GNUTLS=$withval
23791fi
23792
23793
Alex Deymo486467e2017-12-19 19:04:07 +010023794if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23795 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023796
23797 if test X"$OPT_GNUTLS" != Xno; then
23798
23799 addld=""
23800 addlib=""
23801 gtlslib=""
23802 version=""
23803 addcflags=""
23804
23805 if test "x$OPT_GNUTLS" = "xyes"; then
23806
23807 if test -n "$PKG_CONFIG"; then
23808 PKGCONFIG="$PKG_CONFIG"
23809 else
23810 if test -n "$ac_tool_prefix"; then
23811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23812set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23814$as_echo_n "checking for $ac_word... " >&6; }
23815if ${ac_cv_path_PKGCONFIG+:} false; then :
23816 $as_echo_n "(cached) " >&6
23817else
23818 case $PKGCONFIG in
23819 [\\/]* | ?:[\\/]*)
23820 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23821 ;;
23822 *)
23823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23824as_dummy="$PATH:/usr/bin:/usr/local/bin"
23825for as_dir in $as_dummy
23826do
23827 IFS=$as_save_IFS
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23831 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23833 break 2
23834 fi
23835done
23836 done
23837IFS=$as_save_IFS
23838
23839 ;;
23840esac
23841fi
23842PKGCONFIG=$ac_cv_path_PKGCONFIG
23843if test -n "$PKGCONFIG"; then
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23845$as_echo "$PKGCONFIG" >&6; }
23846else
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848$as_echo "no" >&6; }
23849fi
23850
23851
23852fi
23853if test -z "$ac_cv_path_PKGCONFIG"; then
23854 ac_pt_PKGCONFIG=$PKGCONFIG
23855 # Extract the first word of "pkg-config", so it can be a program name with args.
23856set dummy pkg-config; ac_word=$2
23857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23858$as_echo_n "checking for $ac_word... " >&6; }
23859if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23860 $as_echo_n "(cached) " >&6
23861else
23862 case $ac_pt_PKGCONFIG in
23863 [\\/]* | ?:[\\/]*)
23864 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23865 ;;
23866 *)
23867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23868as_dummy="$PATH:/usr/bin:/usr/local/bin"
23869for as_dir in $as_dummy
23870do
23871 IFS=$as_save_IFS
23872 test -z "$as_dir" && as_dir=.
23873 for ac_exec_ext in '' $ac_executable_extensions; do
23874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23875 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23877 break 2
23878 fi
23879done
23880 done
23881IFS=$as_save_IFS
23882
23883 ;;
23884esac
23885fi
23886ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23887if test -n "$ac_pt_PKGCONFIG"; then
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23889$as_echo "$ac_pt_PKGCONFIG" >&6; }
23890else
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23892$as_echo "no" >&6; }
23893fi
23894
23895 if test "x$ac_pt_PKGCONFIG" = x; then
23896 PKGCONFIG="no"
23897 else
23898 case $cross_compiling:$ac_tool_warned in
23899yes:)
23900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23902ac_tool_warned=yes ;;
23903esac
23904 PKGCONFIG=$ac_pt_PKGCONFIG
23905 fi
23906else
23907 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23908fi
23909
23910 fi
23911
23912 if test "x$PKGCONFIG" != "xno"; then
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23914$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23915 itexists=`
23916 if test -n ""; then
23917 PKG_CONFIG_LIBDIR=""
23918 export PKG_CONFIG_LIBDIR
23919 fi
23920 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23921
23922 if test -z "$itexists"; then
23923 PKGCONFIG="no"
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925$as_echo "no" >&6; }
23926 else
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23928$as_echo "found" >&6; }
23929 fi
23930 fi
23931
23932
23933 if test "$PKGCONFIG" != "no" ; then
23934 addlib=`$PKGCONFIG --libs-only-l gnutls`
23935 addld=`$PKGCONFIG --libs-only-L gnutls`
23936 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23937 version=`$PKGCONFIG --modversion gnutls`
23938 gtlslib=`echo $addld | $SED -e 's/-L//'`
23939 else
23940 check=`libgnutls-config --version 2>/dev/null`
23941 if test -n "$check"; then
23942 addlib=`libgnutls-config --libs`
23943 addcflags=`libgnutls-config --cflags`
23944 version=`libgnutls-config --version`
23945 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23946 fi
23947 fi
23948 else
23949 cfg=$OPT_GNUTLS/bin/libgnutls-config
23950 check=`$cfg --version 2>/dev/null`
23951 if test -n "$check"; then
23952 addlib=`$cfg --libs`
23953 addcflags=`$cfg --cflags`
23954 version=`$cfg --version`
23955 gtlslib=`$cfg --prefix`/lib$libsuff
23956 else
23957 addlib=-lgnutls
23958 addld=-L$OPT_GNUTLS/lib$libsuff
23959 addcflags=-I$OPT_GNUTLS/include
23960 version="" # we just don't know
23961 gtlslib=$OPT_GNUTLS/lib$libsuff
23962 fi
23963 fi
23964
23965 if test -z "$version"; then
23966 version="unknown"
23967 fi
23968
23969 if test -n "$addlib"; then
23970
23971 CLEANLIBS="$LIBS"
23972 CLEANCPPFLAGS="$CPPFLAGS"
23973 CLEANLDFLAGS="$LDFLAGS"
23974
23975 LIBS="$addlib $LIBS"
23976 LDFLAGS="$LDFLAGS $addld"
23977 if test "$addcflags" != "-I/usr/include"; then
23978 CPPFLAGS="$CPPFLAGS $addcflags"
23979 fi
23980
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23982$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23983if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23984 $as_echo_n "(cached) " >&6
23985else
23986 ac_check_lib_save_LIBS=$LIBS
23987LIBS="-lgnutls $LIBS"
23988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989/* end confdefs.h. */
23990
23991
23992#ifdef __cplusplus
23993extern "C"
23994#endif
23995char gnutls_check_version ();
23996int main (void)
23997{
23998return gnutls_check_version ();
23999 ;
24000 return 0;
24001}
24002_ACEOF
24003if ac_fn_c_try_link "$LINENO"; then :
24004 ac_cv_lib_gnutls_gnutls_check_version=yes
24005else
24006 ac_cv_lib_gnutls_gnutls_check_version=no
24007fi
24008rm -f core conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext conftest.$ac_ext
24010LIBS=$ac_check_lib_save_LIBS
24011fi
24012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24013$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24014if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24015
24016
24017$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24018
24019 USE_GNUTLS=1
24020
24021 GNUTLS_ENABLED=1
24022 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024023 ssl_msg="GnuTLS"
24024 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024025
24026else
24027
24028 LIBS="$CLEANLIBS"
24029 CPPFLAGS="$CLEANCPPFLAGS"
24030
24031fi
24032
24033
24034 if test "x$USE_GNUTLS" = "xyes"; then
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24036$as_echo "$as_me: detected GnuTLS version $version" >&6;}
24037
24038 if test -n "$gtlslib"; then
24039 if test "x$cross_compiling" != "xyes"; then
24040 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24041 export LD_LIBRARY_PATH
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24043$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24044 fi
24045 fi
24046 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24047do :
24048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24049ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24050if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24051 cat >>confdefs.h <<_ACEOF
24052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24053_ACEOF
24054
24055fi
24056done
24057
24058 fi
24059
24060 fi
24061
24062 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024063 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024064fi
24065
24066
24067if test "$GNUTLS_ENABLED" = "1"; then
24068 USE_GNUTLS_NETTLE=
24069 # First check if we can detect either crypto library via transitive linking
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24071$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24072if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074else
24075 ac_check_lib_save_LIBS=$LIBS
24076LIBS="-lgnutls $LIBS"
24077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078/* end confdefs.h. */
24079
24080
24081#ifdef __cplusplus
24082extern "C"
24083#endif
24084char nettle_MD5Init ();
24085int main (void)
24086{
24087return nettle_MD5Init ();
24088 ;
24089 return 0;
24090}
24091_ACEOF
24092if ac_fn_c_try_link "$LINENO"; then :
24093 ac_cv_lib_gnutls_nettle_MD5Init=yes
24094else
24095 ac_cv_lib_gnutls_nettle_MD5Init=no
24096fi
24097rm -f core conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24099LIBS=$ac_check_lib_save_LIBS
24100fi
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24102$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24103if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24104 USE_GNUTLS_NETTLE=1
24105fi
24106
24107 if test "$USE_GNUTLS_NETTLE" = ""; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24109$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24110if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24111 $as_echo_n "(cached) " >&6
24112else
24113 ac_check_lib_save_LIBS=$LIBS
24114LIBS="-lgnutls $LIBS"
24115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24116/* end confdefs.h. */
24117
24118
24119#ifdef __cplusplus
24120extern "C"
24121#endif
24122char gcry_control ();
24123int main (void)
24124{
24125return gcry_control ();
24126 ;
24127 return 0;
24128}
24129_ACEOF
24130if ac_fn_c_try_link "$LINENO"; then :
24131 ac_cv_lib_gnutls_gcry_control=yes
24132else
24133 ac_cv_lib_gnutls_gcry_control=no
24134fi
24135rm -f core conftest.err conftest.$ac_objext \
24136 conftest$ac_exeext conftest.$ac_ext
24137LIBS=$ac_check_lib_save_LIBS
24138fi
24139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24140$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24141if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24142 USE_GNUTLS_NETTLE=0
24143fi
24144
24145 fi
24146 # If not, try linking directly to both of them to see if they are available
24147 if test "$USE_GNUTLS_NETTLE" = ""; then
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24149$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24150if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24151 $as_echo_n "(cached) " >&6
24152else
24153 ac_check_lib_save_LIBS=$LIBS
24154LIBS="-lnettle $LIBS"
24155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156/* end confdefs.h. */
24157
24158
24159#ifdef __cplusplus
24160extern "C"
24161#endif
24162char nettle_MD5Init ();
24163int main (void)
24164{
24165return nettle_MD5Init ();
24166 ;
24167 return 0;
24168}
24169_ACEOF
24170if ac_fn_c_try_link "$LINENO"; then :
24171 ac_cv_lib_nettle_nettle_MD5Init=yes
24172else
24173 ac_cv_lib_nettle_nettle_MD5Init=no
24174fi
24175rm -f core conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
24177LIBS=$ac_check_lib_save_LIBS
24178fi
24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24180$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24181if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24182 USE_GNUTLS_NETTLE=1
24183fi
24184
24185 fi
24186 if test "$USE_GNUTLS_NETTLE" = ""; then
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24188$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24189if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24190 $as_echo_n "(cached) " >&6
24191else
24192 ac_check_lib_save_LIBS=$LIBS
24193LIBS="-lgcrypt $LIBS"
24194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195/* end confdefs.h. */
24196
24197
24198#ifdef __cplusplus
24199extern "C"
24200#endif
24201char gcry_control ();
24202int main (void)
24203{
24204return gcry_control ();
24205 ;
24206 return 0;
24207}
24208_ACEOF
24209if ac_fn_c_try_link "$LINENO"; then :
24210 ac_cv_lib_gcrypt_gcry_control=yes
24211else
24212 ac_cv_lib_gcrypt_gcry_control=no
24213fi
24214rm -f core conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
24216LIBS=$ac_check_lib_save_LIBS
24217fi
24218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24219$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24220if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24221 USE_GNUTLS_NETTLE=0
24222fi
24223
24224 fi
24225 if test "$USE_GNUTLS_NETTLE" = ""; then
24226 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24227 fi
24228 if test "$USE_GNUTLS_NETTLE" = "1"; then
24229
24230$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24231
24232 USE_GNUTLS_NETTLE=1
24233
24234 LIBS="-lnettle $LIBS"
24235 else
24236 LIBS="-lgcrypt $LIBS"
24237 fi
24238fi
24239
24240if test "$GNUTLS_ENABLED" = "1"; then
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24242$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24243if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24244 $as_echo_n "(cached) " >&6
24245else
24246 ac_check_lib_save_LIBS=$LIBS
24247LIBS="-lgnutls $LIBS"
24248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249/* end confdefs.h. */
24250
24251
24252#ifdef __cplusplus
24253extern "C"
24254#endif
24255char gnutls_srp_verifier ();
24256int main (void)
24257{
24258return gnutls_srp_verifier ();
24259 ;
24260 return 0;
24261}
24262_ACEOF
24263if ac_fn_c_try_link "$LINENO"; then :
24264 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24265else
24266 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24267fi
24268rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
24270LIBS=$ac_check_lib_save_LIBS
24271fi
24272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24273$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24274if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24275
24276
24277$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24278
24279 HAVE_GNUTLS_SRP=1
24280
24281
24282fi
24283
24284fi
24285
24286
24287OPT_POLARSSL=no
24288
24289_cppflags=$CPPFLAGS
24290_ldflags=$LDFLAGS
24291
24292# Check whether --with-polarssl was given.
24293if test "${with_polarssl+set}" = set; then :
24294 withval=$with_polarssl; OPT_POLARSSL=$withval
24295fi
24296
24297
Alex Deymo486467e2017-12-19 19:04:07 +010024298if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24299 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024300
24301 if test X"$OPT_POLARSSL" != Xno; then
24302
24303 if test "$OPT_POLARSSL" = "yes"; then
24304 OPT_POLARSSL=""
24305 fi
24306
24307 if test -z "$OPT_POLARSSL" ; then
24308
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24310$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24311if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24312 $as_echo_n "(cached) " >&6
24313else
24314 ac_check_lib_save_LIBS=$LIBS
24315LIBS="-lpolarssl $LIBS"
24316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317/* end confdefs.h. */
24318
24319
24320#ifdef __cplusplus
24321extern "C"
24322#endif
24323char havege_init ();
24324int main (void)
24325{
24326return havege_init ();
24327 ;
24328 return 0;
24329}
24330_ACEOF
24331if ac_fn_c_try_link "$LINENO"; then :
24332 ac_cv_lib_polarssl_havege_init=yes
24333else
24334 ac_cv_lib_polarssl_havege_init=no
24335fi
24336rm -f core conftest.err conftest.$ac_objext \
24337 conftest$ac_exeext conftest.$ac_ext
24338LIBS=$ac_check_lib_save_LIBS
24339fi
24340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24341$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24342if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24343
24344
24345$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24346
24347 USE_POLARSSL=1
24348
24349 POLARSSL_ENABLED=1
24350 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024351 ssl_msg="PolarSSL"
24352 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024353
24354fi
24355
24356 fi
24357
24358 addld=""
24359 addlib=""
24360 addcflags=""
24361 polarssllib=""
24362
24363 if test "x$USE_POLARSSL" != "xyes"; then
24364 addld=-L$OPT_POLARSSL/lib$libsuff
24365 addcflags=-I$OPT_POLARSSL/include
24366 polarssllib=$OPT_POLARSSL/lib$libsuff
24367
24368 LDFLAGS="$LDFLAGS $addld"
24369 if test "$addcflags" != "-I/usr/include"; then
24370 CPPFLAGS="$CPPFLAGS $addcflags"
24371 fi
24372
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24374$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24375if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24376 $as_echo_n "(cached) " >&6
24377else
24378 ac_check_lib_save_LIBS=$LIBS
24379LIBS="-lpolarssl $LIBS"
24380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24381/* end confdefs.h. */
24382
24383
24384#ifdef __cplusplus
24385extern "C"
24386#endif
24387char ssl_init ();
24388int main (void)
24389{
24390return ssl_init ();
24391 ;
24392 return 0;
24393}
24394_ACEOF
24395if ac_fn_c_try_link "$LINENO"; then :
24396 ac_cv_lib_polarssl_ssl_init=yes
24397else
24398 ac_cv_lib_polarssl_ssl_init=no
24399fi
24400rm -f core conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
24402LIBS=$ac_check_lib_save_LIBS
24403fi
24404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24405$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24406if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24407
24408
24409$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24410
24411 USE_POLARSSL=1
24412
24413 POLARSSL_ENABLED=1
24414 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024415 ssl_msg="PolarSSL"
24416 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024417
24418else
24419
24420 CPPFLAGS=$_cppflags
24421 LDFLAGS=$_ldflags
24422
24423fi
24424
24425 fi
24426
24427 if test "x$USE_POLARSSL" = "xyes"; then
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24429$as_echo "$as_me: detected PolarSSL" >&6;}
24430
24431 LIBS="-lpolarssl $LIBS"
24432
24433 if test -n "$polarssllib"; then
24434 if test "x$cross_compiling" != "xyes"; then
24435 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24436 export LD_LIBRARY_PATH
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24438$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24439 fi
24440 fi
24441 fi
24442
24443 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024444 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024445fi
24446
24447
24448OPT_MBEDTLS=no
24449
24450_cppflags=$CPPFLAGS
24451_ldflags=$LDFLAGS
24452
24453# Check whether --with-mbedtls was given.
24454if test "${with_mbedtls+set}" = set; then :
24455 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24456fi
24457
24458
Alex Deymo486467e2017-12-19 19:04:07 +010024459if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24460 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024461
24462 if test X"$OPT_MBEDTLS" != Xno; then
24463
24464 if test "$OPT_MBEDTLS" = "yes"; then
24465 OPT_MBEDTLS=""
24466 fi
24467
24468 if test -z "$OPT_MBEDTLS" ; then
24469
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24471$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24472if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24473 $as_echo_n "(cached) " >&6
24474else
24475 ac_check_lib_save_LIBS=$LIBS
24476LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24478/* end confdefs.h. */
24479
24480
24481#ifdef __cplusplus
24482extern "C"
24483#endif
24484char mbedtls_havege_init ();
24485int main (void)
24486{
24487return mbedtls_havege_init ();
24488 ;
24489 return 0;
24490}
24491_ACEOF
24492if ac_fn_c_try_link "$LINENO"; then :
24493 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24494else
24495 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24496fi
24497rm -f core conftest.err conftest.$ac_objext \
24498 conftest$ac_exeext conftest.$ac_ext
24499LIBS=$ac_check_lib_save_LIBS
24500fi
24501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24502$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24503if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24504
24505
24506$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24507
24508 USE_MBEDTLS=1
24509
24510 MBEDTLS_ENABLED=1
24511 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024512 ssl_msg="mbedTLS"
24513 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024514
24515fi
24516
24517 fi
24518
24519 addld=""
24520 addlib=""
24521 addcflags=""
24522 mbedtlslib=""
24523
24524 if test "x$USE_MBEDTLS" != "xyes"; then
24525 addld=-L$OPT_MBEDTLS/lib$libsuff
24526 addcflags=-I$OPT_MBEDTLS/include
24527 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24528
24529 LDFLAGS="$LDFLAGS $addld"
24530 if test "$addcflags" != "-I/usr/include"; then
24531 CPPFLAGS="$CPPFLAGS $addcflags"
24532 fi
24533
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24535$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24536if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24537 $as_echo_n "(cached) " >&6
24538else
24539 ac_check_lib_save_LIBS=$LIBS
24540LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542/* end confdefs.h. */
24543
24544
24545#ifdef __cplusplus
24546extern "C"
24547#endif
24548char mbedtls_ssl_init ();
24549int main (void)
24550{
24551return mbedtls_ssl_init ();
24552 ;
24553 return 0;
24554}
24555_ACEOF
24556if ac_fn_c_try_link "$LINENO"; then :
24557 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24558else
24559 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24560fi
24561rm -f core conftest.err conftest.$ac_objext \
24562 conftest$ac_exeext conftest.$ac_ext
24563LIBS=$ac_check_lib_save_LIBS
24564fi
24565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24566$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24567if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24568
24569
24570$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24571
24572 USE_MBEDTLS=1
24573
24574 MBEDTLS_ENABLED=1
24575 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024576 ssl_msg="mbedTLS"
24577 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024578
24579else
24580
24581 CPPFLAGS=$_cppflags
24582 LDFLAGS=$_ldflags
24583
24584fi
24585
24586 fi
24587
24588 if test "x$USE_MBEDTLS" = "xyes"; then
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24590$as_echo "$as_me: detected mbedTLS" >&6;}
24591
24592 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24593
24594 if test -n "$mbedtlslib"; then
24595 if test "x$cross_compiling" != "xyes"; then
24596 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24597 export LD_LIBRARY_PATH
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24599$as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24600 fi
24601 fi
24602 fi
24603
24604 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024605 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024606fi
24607
24608
24609OPT_CYASSL=no
24610
24611_cppflags=$CPPFLAGS
24612_ldflags=$LDFLAGS
24613
24614# Check whether --with-cyassl was given.
24615if test "${with_cyassl+set}" = set; then :
24616 withval=$with_cyassl; OPT_CYASSL=$withval
24617fi
24618
24619
Alex Deymo486467e2017-12-19 19:04:07 +010024620if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24621 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024622
24623 if test X"$OPT_CYASSL" != Xno; then
24624
24625 if test "$OPT_CYASSL" = "yes"; then
24626 OPT_CYASSL=""
24627 fi
24628
24629
24630 cyassllibname=cyassl
24631
24632 if test -z "$OPT_CYASSL" ; then
24633
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24635$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24636if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24637 $as_echo_n "(cached) " >&6
24638else
24639 ac_check_lib_save_LIBS=$LIBS
24640LIBS="-lcyassl $LIBS"
24641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24642/* end confdefs.h. */
24643
24644
24645#ifdef __cplusplus
24646extern "C"
24647#endif
24648char CyaSSL_Init ();
24649int main (void)
24650{
24651return CyaSSL_Init ();
24652 ;
24653 return 0;
24654}
24655_ACEOF
24656if ac_fn_c_try_link "$LINENO"; then :
24657 ac_cv_lib_cyassl_CyaSSL_Init=yes
24658else
24659 ac_cv_lib_cyassl_CyaSSL_Init=no
24660fi
24661rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24663LIBS=$ac_check_lib_save_LIBS
24664fi
24665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24666$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24667if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24668
24669
24670$as_echo "#define USE_CYASSL 1" >>confdefs.h
24671
24672 USE_CYASSL=1
24673
24674 CYASSL_ENABLED=1
24675 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024676 ssl_msg="CyaSSL"
24677 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024678
24679fi
24680
24681 fi
24682
24683 addld=""
24684 addlib=""
24685 addcflags=""
24686 cyassllib=""
24687
24688 if test "x$USE_CYASSL" != "xyes"; then
24689 addld=-L$OPT_CYASSL/lib$libsuff
24690 addcflags=-I$OPT_CYASSL/include
24691 cyassllib=$OPT_CYASSL/lib$libsuff
24692
24693 LDFLAGS="$LDFLAGS $addld"
24694 if test "$addcflags" != "-I/usr/include"; then
24695 CPPFLAGS="$CPPFLAGS $addcflags"
24696 fi
24697
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24699$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24700if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24701 $as_echo_n "(cached) " >&6
24702else
24703 ac_check_lib_save_LIBS=$LIBS
24704LIBS="-lcyassl $LIBS"
24705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706/* end confdefs.h. */
24707
24708
24709#ifdef __cplusplus
24710extern "C"
24711#endif
24712char CyaSSL_Init ();
24713int main (void)
24714{
24715return CyaSSL_Init ();
24716 ;
24717 return 0;
24718}
24719_ACEOF
24720if ac_fn_c_try_link "$LINENO"; then :
24721 ac_cv_lib_cyassl_CyaSSL_Init=yes
24722else
24723 ac_cv_lib_cyassl_CyaSSL_Init=no
24724fi
24725rm -f core conftest.err conftest.$ac_objext \
24726 conftest$ac_exeext conftest.$ac_ext
24727LIBS=$ac_check_lib_save_LIBS
24728fi
24729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24730$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24731if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24732
24733
24734$as_echo "#define USE_CYASSL 1" >>confdefs.h
24735
24736 USE_CYASSL=1
24737
24738 CYASSL_ENABLED=1
24739 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024740 ssl_msg="CyaSSL"
24741 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024742
24743else
24744
24745 CPPFLAGS=$_cppflags
24746 LDFLAGS=$_ldflags
24747 cyassllib=""
24748
24749fi
24750
24751 fi
24752
24753 addld=""
24754 addlib=""
24755 addcflags=""
24756
24757 if test "x$USE_CYASSL" != "xyes"; then
24758 addld=-L$OPT_CYASSL/lib$libsuff
24759 addcflags=-I$OPT_CYASSL/include
24760 cyassllib=$OPT_CYASSL/lib$libsuff
24761
24762 LDFLAGS="$LDFLAGS $addld"
24763 if test "$addcflags" != "-I/usr/include"; then
24764 CPPFLAGS="$CPPFLAGS $addcflags"
24765 fi
24766
24767 cyassllibname=wolfssl
24768 my_ac_save_LIBS="$LIBS"
24769 LIBS="-l$cyassllibname -lm $LIBS"
24770
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24772$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24774/* end confdefs.h. */
24775
24776
24777/* These aren't needed for detection and confuse WolfSSL.
24778 They are set up properly later if it is detected. */
24779#undef SIZEOF_LONG
24780#undef SIZEOF_LONG_LONG
24781#include <cyassl/ssl.h>
24782
24783int main (void)
24784{
24785
24786 return CyaSSL_Init();
24787
24788 ;
24789 return 0;
24790}
24791
24792_ACEOF
24793if ac_fn_c_try_link "$LINENO"; then :
24794
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24796$as_echo "yes" >&6; }
24797
24798$as_echo "#define USE_CYASSL 1" >>confdefs.h
24799
24800 USE_CYASSL=1
24801
24802 CYASSL_ENABLED=1
24803 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024804 ssl_msg="WolfSSL"
24805 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024806
24807else
24808
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810$as_echo "no" >&6; }
24811 CPPFLAGS=$_cppflags
24812 LDFLAGS=$_ldflags
24813 cyassllib=""
24814
24815fi
24816rm -f core conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
24818 LIBS="$my_ac_save_LIBS"
24819 fi
24820
24821 if test "x$USE_CYASSL" = "xyes"; then
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24823$as_echo "$as_me: detected $cyassllibname" >&6;}
24824
24825 # The cast to long int works around a bug in the HP C Compiler
24826# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24827# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24828# This bug is HP SR number 8606223364.
24829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24830$as_echo_n "checking size of long long... " >&6; }
24831if ${ac_cv_sizeof_long_long+:} false; then :
24832 $as_echo_n "(cached) " >&6
24833else
24834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24835
24836else
24837 if test "$ac_cv_type_long_long" = yes; then
24838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24840as_fn_error 77 "cannot compute sizeof (long long)
24841See \`config.log' for more details" "$LINENO" 5; }
24842 else
24843 ac_cv_sizeof_long_long=0
24844 fi
24845fi
24846
24847fi
24848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24849$as_echo "$ac_cv_sizeof_long_long" >&6; }
24850
24851
24852
24853cat >>confdefs.h <<_ACEOF
24854#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24855_ACEOF
24856
24857
24858
24859 for ac_header in cyassl/options.h
24860do :
24861 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24862if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24863 cat >>confdefs.h <<_ACEOF
24864#define HAVE_CYASSL_OPTIONS_H 1
24865_ACEOF
24866
24867fi
24868
24869done
24870
24871
24872 for ac_header in cyassl/error-ssl.h
24873do :
24874 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24875if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24876 cat >>confdefs.h <<_ACEOF
24877#define HAVE_CYASSL_ERROR_SSL_H 1
24878_ACEOF
24879
24880fi
24881
24882done
24883
24884
24885 LIBS="-l$cyassllibname -lm $LIBS"
24886
24887 if test "x$cyassllibname" = "xwolfssl"; then
24888 for ac_func in wolfSSLv3_client_method \
24889 wolfSSL_CTX_UseSupportedCurve \
24890 wolfSSL_get_peer_certificate \
24891 wolfSSL_UseALPN
24892do :
24893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24894ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24895if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24896 cat >>confdefs.h <<_ACEOF
24897#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24898_ACEOF
24899
24900fi
24901done
24902
24903 else
24904 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24905 CyaSSL_get_peer_certificate
24906do :
24907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24910 cat >>confdefs.h <<_ACEOF
24911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24912_ACEOF
24913
24914fi
24915done
24916
24917 fi
24918
24919 if test -n "$cyassllib"; then
24920 if test "x$cross_compiling" != "xyes"; then
24921 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24922 export LD_LIBRARY_PATH
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24924$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24925 fi
24926 fi
24927
24928 fi
24929
24930 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024931 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024932fi
24933
24934
24935OPT_NSS=no
24936
24937
24938# Check whether --with-nss was given.
24939if test "${with_nss+set}" = set; then :
24940 withval=$with_nss; OPT_NSS=$withval
24941fi
24942
24943
Alex Deymo486467e2017-12-19 19:04:07 +010024944if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24945 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024946
24947 if test X"$OPT_NSS" != Xno; then
24948
24949 addld=""
24950 addlib=""
24951 addcflags=""
24952 nssprefix=""
24953 version=""
24954
24955 if test "x$OPT_NSS" = "xyes"; then
24956
24957
24958 if test -n "$PKG_CONFIG"; then
24959 PKGCONFIG="$PKG_CONFIG"
24960 else
24961 if test -n "$ac_tool_prefix"; then
24962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24963set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24965$as_echo_n "checking for $ac_word... " >&6; }
24966if ${ac_cv_path_PKGCONFIG+:} false; then :
24967 $as_echo_n "(cached) " >&6
24968else
24969 case $PKGCONFIG in
24970 [\\/]* | ?:[\\/]*)
24971 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24972 ;;
24973 *)
24974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24975as_dummy="$PATH:/usr/bin:/usr/local/bin"
24976for as_dir in $as_dummy
24977do
24978 IFS=$as_save_IFS
24979 test -z "$as_dir" && as_dir=.
24980 for ac_exec_ext in '' $ac_executable_extensions; do
24981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24982 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24984 break 2
24985 fi
24986done
24987 done
24988IFS=$as_save_IFS
24989
24990 ;;
24991esac
24992fi
24993PKGCONFIG=$ac_cv_path_PKGCONFIG
24994if test -n "$PKGCONFIG"; then
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24996$as_echo "$PKGCONFIG" >&6; }
24997else
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24999$as_echo "no" >&6; }
25000fi
25001
25002
25003fi
25004if test -z "$ac_cv_path_PKGCONFIG"; then
25005 ac_pt_PKGCONFIG=$PKGCONFIG
25006 # Extract the first word of "pkg-config", so it can be a program name with args.
25007set dummy pkg-config; ac_word=$2
25008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25009$as_echo_n "checking for $ac_word... " >&6; }
25010if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25011 $as_echo_n "(cached) " >&6
25012else
25013 case $ac_pt_PKGCONFIG in
25014 [\\/]* | ?:[\\/]*)
25015 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25016 ;;
25017 *)
25018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25019as_dummy="$PATH:/usr/bin:/usr/local/bin"
25020for as_dir in $as_dummy
25021do
25022 IFS=$as_save_IFS
25023 test -z "$as_dir" && as_dir=.
25024 for ac_exec_ext in '' $ac_executable_extensions; do
25025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25026 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25028 break 2
25029 fi
25030done
25031 done
25032IFS=$as_save_IFS
25033
25034 ;;
25035esac
25036fi
25037ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25038if test -n "$ac_pt_PKGCONFIG"; then
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25040$as_echo "$ac_pt_PKGCONFIG" >&6; }
25041else
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25043$as_echo "no" >&6; }
25044fi
25045
25046 if test "x$ac_pt_PKGCONFIG" = x; then
25047 PKGCONFIG="no"
25048 else
25049 case $cross_compiling:$ac_tool_warned in
25050yes:)
25051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25053ac_tool_warned=yes ;;
25054esac
25055 PKGCONFIG=$ac_pt_PKGCONFIG
25056 fi
25057else
25058 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25059fi
25060
25061 fi
25062
25063 if test "x$PKGCONFIG" != "xno"; then
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25065$as_echo_n "checking for nss options with pkg-config... " >&6; }
25066 itexists=`
25067 if test -n ""; then
25068 PKG_CONFIG_LIBDIR=""
25069 export PKG_CONFIG_LIBDIR
25070 fi
25071 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25072
25073 if test -z "$itexists"; then
25074 PKGCONFIG="no"
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25076$as_echo "no" >&6; }
25077 else
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25079$as_echo "found" >&6; }
25080 fi
25081 fi
25082
25083
25084 if test "$PKGCONFIG" != "no" ; then
25085 addlib=`$PKGCONFIG --libs nss`
25086 addcflags=`$PKGCONFIG --cflags nss`
25087 version=`$PKGCONFIG --modversion nss`
25088 nssprefix=`$PKGCONFIG --variable=prefix nss`
25089 else
25090
25091 check=`nss-config --version 2>/dev/null`
25092 if test -n "$check"; then
25093 addlib=`nss-config --libs`
25094 addcflags=`nss-config --cflags`
25095 version=`nss-config --version`
25096 nssprefix=`nss-config --prefix`
25097 else
25098 addlib="-lnss3"
25099 addcflags=""
25100 version="unknown"
25101 fi
25102 fi
25103 else
25104 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25105 if test -f "$NSS_PCDIR/nss.pc"; then
25106
25107 if test -n "$PKG_CONFIG"; then
25108 PKGCONFIG="$PKG_CONFIG"
25109 else
25110 if test -n "$ac_tool_prefix"; then
25111 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25112set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25114$as_echo_n "checking for $ac_word... " >&6; }
25115if ${ac_cv_path_PKGCONFIG+:} false; then :
25116 $as_echo_n "(cached) " >&6
25117else
25118 case $PKGCONFIG in
25119 [\\/]* | ?:[\\/]*)
25120 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25121 ;;
25122 *)
25123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25124as_dummy="$PATH:/usr/bin:/usr/local/bin"
25125for as_dir in $as_dummy
25126do
25127 IFS=$as_save_IFS
25128 test -z "$as_dir" && as_dir=.
25129 for ac_exec_ext in '' $ac_executable_extensions; do
25130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25131 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25133 break 2
25134 fi
25135done
25136 done
25137IFS=$as_save_IFS
25138
25139 ;;
25140esac
25141fi
25142PKGCONFIG=$ac_cv_path_PKGCONFIG
25143if test -n "$PKGCONFIG"; then
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25145$as_echo "$PKGCONFIG" >&6; }
25146else
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25148$as_echo "no" >&6; }
25149fi
25150
25151
25152fi
25153if test -z "$ac_cv_path_PKGCONFIG"; then
25154 ac_pt_PKGCONFIG=$PKGCONFIG
25155 # Extract the first word of "pkg-config", so it can be a program name with args.
25156set dummy pkg-config; ac_word=$2
25157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25158$as_echo_n "checking for $ac_word... " >&6; }
25159if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25160 $as_echo_n "(cached) " >&6
25161else
25162 case $ac_pt_PKGCONFIG in
25163 [\\/]* | ?:[\\/]*)
25164 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25165 ;;
25166 *)
25167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25168as_dummy="$PATH:/usr/bin:/usr/local/bin"
25169for as_dir in $as_dummy
25170do
25171 IFS=$as_save_IFS
25172 test -z "$as_dir" && as_dir=.
25173 for ac_exec_ext in '' $ac_executable_extensions; do
25174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25175 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25177 break 2
25178 fi
25179done
25180 done
25181IFS=$as_save_IFS
25182
25183 ;;
25184esac
25185fi
25186ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25187if test -n "$ac_pt_PKGCONFIG"; then
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25189$as_echo "$ac_pt_PKGCONFIG" >&6; }
25190else
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25192$as_echo "no" >&6; }
25193fi
25194
25195 if test "x$ac_pt_PKGCONFIG" = x; then
25196 PKGCONFIG="no"
25197 else
25198 case $cross_compiling:$ac_tool_warned in
25199yes:)
25200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25202ac_tool_warned=yes ;;
25203esac
25204 PKGCONFIG=$ac_pt_PKGCONFIG
25205 fi
25206else
25207 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25208fi
25209
25210 fi
25211
25212 if test "x$PKGCONFIG" != "xno"; then
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25214$as_echo_n "checking for nss options with pkg-config... " >&6; }
25215 itexists=`
25216 if test -n "$NSS_PCDIR"; then
25217 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25218 export PKG_CONFIG_LIBDIR
25219 fi
25220 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25221
25222 if test -z "$itexists"; then
25223 PKGCONFIG="no"
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225$as_echo "no" >&6; }
25226 else
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25228$as_echo "found" >&6; }
25229 fi
25230 fi
25231
25232 if test "$PKGCONFIG" != "no" ; then
25233 addld=`
25234 if test -n "$NSS_PCDIR"; then
25235 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25236 export PKG_CONFIG_LIBDIR
25237 fi
25238 $PKGCONFIG --libs-only-L nss`
25239 addlib=`
25240 if test -n "$NSS_PCDIR"; then
25241 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25242 export PKG_CONFIG_LIBDIR
25243 fi
25244 $PKGCONFIG --libs-only-l nss`
25245 addcflags=`
25246 if test -n "$NSS_PCDIR"; then
25247 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25248 export PKG_CONFIG_LIBDIR
25249 fi
25250 $PKGCONFIG --cflags nss`
25251 version=`
25252 if test -n "$NSS_PCDIR"; then
25253 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25254 export PKG_CONFIG_LIBDIR
25255 fi
25256 $PKGCONFIG --modversion nss`
25257 nssprefix=`
25258 if test -n "$NSS_PCDIR"; then
25259 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25260 export PKG_CONFIG_LIBDIR
25261 fi
25262 $PKGCONFIG --variable=prefix nss`
25263 fi
25264 fi
25265 fi
25266
25267 if test -z "$addlib"; then
25268 # Without pkg-config, we'll kludge in some defaults
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25270$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25271 addld="-L$OPT_NSS/lib"
25272 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25273 addcflags="-I$OPT_NSS/include"
25274 version="unknown"
25275 nssprefix=$OPT_NSS
25276 fi
25277
25278 CLEANLDFLAGS="$LDFLAGS"
25279 CLEANLIBS="$LIBS"
25280 CLEANCPPFLAGS="$CPPFLAGS"
25281
25282 LDFLAGS="$addld $LDFLAGS"
25283 LIBS="$addlib $LIBS"
25284 if test "$addcflags" != "-I/usr/include"; then
25285 CPPFLAGS="$CPPFLAGS $addcflags"
25286 fi
25287
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25289$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25290if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25291 $as_echo_n "(cached) " >&6
25292else
25293 ac_check_lib_save_LIBS=$LIBS
25294LIBS="-lnss3 $LIBS"
25295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296/* end confdefs.h. */
25297
25298
25299#ifdef __cplusplus
25300extern "C"
25301#endif
25302char SSL_VersionRangeSet ();
25303int main (void)
25304{
25305return SSL_VersionRangeSet ();
25306 ;
25307 return 0;
25308}
25309_ACEOF
25310if ac_fn_c_try_link "$LINENO"; then :
25311 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25312else
25313 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25314fi
25315rm -f core conftest.err conftest.$ac_objext \
25316 conftest$ac_exeext conftest.$ac_ext
25317LIBS=$ac_check_lib_save_LIBS
25318fi
25319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25320$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25321if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25322
25323
25324$as_echo "#define USE_NSS 1" >>confdefs.h
25325
25326 USE_NSS=1
25327
25328 USE_NSS="yes"
25329 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025330 ssl_msg="NSS"
25331 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025332
25333else
25334
25335 LDFLAGS="$CLEANLDFLAGS"
25336 LIBS="$CLEANLIBS"
25337 CPPFLAGS="$CLEANCPPFLAGS"
25338
25339fi
25340
25341
25342 if test "x$USE_NSS" = "xyes"; then
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25344$as_echo "$as_me: detected NSS version $version" >&6;}
25345
25346 NSS_LIBS=$addlib
25347
25348
25349 if test "x$cross_compiling" != "xyes"; then
25350 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25351 export LD_LIBRARY_PATH
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25353$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25354 fi
25355
25356 fi
25357 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025358 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025359fi
Alex Deymo486467e2017-12-19 19:04:07 +010025360
Elliott Hughes82be86d2017-09-20 17:00:17 -070025361OPT_AXTLS=off
25362
25363
25364# Check whether --with-axtls was given.
25365if test "${with_axtls+set}" = set; then :
25366 withval=$with_axtls; OPT_AXTLS=$withval
25367fi
25368
25369
Alex Deymo486467e2017-12-19 19:04:07 +010025370if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25371 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025372 if test X"$OPT_AXTLS" != Xno; then
25373 CLEANLDFLAGS="$LDFLAGS"
25374 CLEANCPPFLAGS="$CPPFLAGS"
25375 CLEANLIBS="$LIBS"
25376
25377 case "$OPT_AXTLS" in
25378 yes)
25379 PREFIX_AXTLS=/usr/local
25380 LIB_AXTLS="$PREFIX_AXTLS/lib"
25381 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25382 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25383 ;;
25384 off)
25385 PREFIX_AXTLS=
25386 ;;
25387 *)
25388 PREFIX_AXTLS=$OPT_AXTLS
25389 LIB_AXTLS="$PREFIX_AXTLS/lib"
25390 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25391 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25392 ;;
25393 esac
25394
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25396$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25397if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25398 $as_echo_n "(cached) " >&6
25399else
25400 ac_check_lib_save_LIBS=$LIBS
25401LIBS="-laxtls $LIBS"
25402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25403/* end confdefs.h. */
25404
25405
25406#ifdef __cplusplus
25407extern "C"
25408#endif
25409char ssl_version ();
25410int main (void)
25411{
25412return ssl_version ();
25413 ;
25414 return 0;
25415}
25416_ACEOF
25417if ac_fn_c_try_link "$LINENO"; then :
25418 ac_cv_lib_axtls_ssl_version=yes
25419else
25420 ac_cv_lib_axtls_ssl_version=no
25421fi
25422rm -f core conftest.err conftest.$ac_objext \
25423 conftest$ac_exeext conftest.$ac_ext
25424LIBS=$ac_check_lib_save_LIBS
25425fi
25426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25427$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25428if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25429
25430 LIBS="-laxtls $LIBS"
25431
25432$as_echo "#define USE_AXTLS 1" >>confdefs.h
25433
25434 USE_AXTLS=1
25435
25436 AXTLS_ENABLED=1
25437 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025438 ssl_msg="axTLS"
25439 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025440
25441 if test "x$cross_compiling" != "xyes"; then
25442 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25443 export LD_LIBRARY_PATH
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25445$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25446 fi
25447
25448else
25449
25450 LDFLAGS="$CLEANLDFLAGS"
25451 CPPFLAGS="$CLEANCPPFLAGS"
25452 LIBS="$CLEANLIBS"
25453
25454fi
25455
25456 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025457 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025458fi
25459
Alex Deymo486467e2017-12-19 19:04:07 +010025460case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25461x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25463$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25464 { $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
25465$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 +010025466 ;;
25467x1)
25468 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025469
25470 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025471 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25472$as_echo "$as_me: built with one SSL backend" >&6;}
25473 ;;
25474*)
25475 # more than one SSL backend is enabled
25476
25477 SSL_ENABLED="1"
25478
25479 CURL_WITH_MULTI_SSL="1"
25480
25481$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25482
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25484$as_echo "$as_me: built with multiple SSL backends" >&6;}
25485 ;;
25486esac
25487
25488if test -n "$ssl_backends"; then
25489 curl_ssl_msg="enabled ($ssl_backends)"
25490fi
25491
25492if test no = "$VALID_DEFAULT_SSL_BACKEND"
25493then
25494 if test -n "$SSL_ENABLED"
25495 then
25496 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25497 else
25498 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25499 fi
25500elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25501then
25502
25503cat >>confdefs.h <<_ACEOF
25504#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25505_ACEOF
25506
Elliott Hughes82be86d2017-09-20 17:00:17 -070025507fi
25508
25509
25510
25511
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25513$as_echo_n "checking default CA cert bundle/path... " >&6; }
25514
25515
25516# Check whether --with-ca-bundle was given.
25517if test "${with_ca_bundle+set}" = set; then :
25518 withval=$with_ca_bundle;
25519 want_ca="$withval"
25520 if test "x$want_ca" = "xyes"; then
25521 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25522 fi
25523
25524else
25525 want_ca="unset"
25526fi
25527
25528
25529# Check whether --with-ca-path was given.
25530if test "${with_ca_path+set}" = set; then :
25531 withval=$with_ca_path;
25532 want_capath="$withval"
25533 if test "x$want_capath" = "xyes"; then
25534 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25535 fi
25536
25537else
25538 want_capath="unset"
25539fi
25540
25541
25542 ca_warning=" (warning: certs not found)"
25543 capath_warning=" (warning: certs not found)"
25544 check_capath=""
25545
25546 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25547 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25548 ca="$want_ca"
25549 capath="$want_capath"
25550 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25551 ca="$want_ca"
25552 capath="no"
25553 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25554 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25555 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25556 fi
25557 capath="$want_capath"
25558 ca="no"
25559 else
25560 ca="no"
25561 capath="no"
25562 if test "x$cross_compiling" != "xyes"; then
25563 if test "x$want_ca" = "xunset"; then
25564 if test "x$prefix" != xNONE; then
25565 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25566 else
25567 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25568 fi
25569
25570 for a in /etc/ssl/certs/ca-certificates.crt \
25571 /etc/pki/tls/certs/ca-bundle.crt \
25572 /usr/share/ssl/certs/ca-bundle.crt \
25573 /usr/local/share/certs/ca-root-nss.crt \
25574 /etc/ssl/cert.pem \
25575 "$cac"; do
25576 if test -f "$a"; then
25577 ca="$a"
25578 break
25579 fi
25580 done
25581 fi
25582 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25583 "x$OPENSSL_ENABLED" = "x1"; then
25584 check_capath="/etc/ssl/certs/"
25585 fi
25586 else
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25588$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25589 fi
25590 fi
25591
25592 if test "x$ca" = "xno" || test -f "$ca"; then
25593 ca_warning=""
25594 fi
25595
25596 if test "x$capath" != "xno"; then
25597 check_capath="$capath"
25598 fi
25599
25600 if test ! -z "$check_capath"; then
25601 for a in "$check_capath"; do
25602 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
25603 if test "x$capath" = "xno"; then
25604 capath="$a"
25605 fi
25606 capath_warning=""
25607 break
25608 fi
25609 done
25610 fi
25611
25612 if test "x$capath" = "xno"; then
25613 capath_warning=""
25614 fi
25615
25616 if test "x$ca" != "xno"; then
25617 CURL_CA_BUNDLE='"'$ca'"'
25618
25619cat >>confdefs.h <<_ACEOF
25620#define CURL_CA_BUNDLE "$ca"
25621_ACEOF
25622
25623
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25625$as_echo "$ca" >&6; }
25626 fi
25627 if test "x$capath" != "xno"; then
25628 CURL_CA_PATH="\"$capath\""
25629
25630cat >>confdefs.h <<_ACEOF
25631#define CURL_CA_PATH "$capath"
25632_ACEOF
25633
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25635$as_echo "$capath (capath)" >&6; }
25636 fi
25637 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25639$as_echo "no" >&6; }
25640 fi
25641
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25643$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25644
25645# Check whether --with-ca-fallback was given.
25646if test "${with_ca_fallback+set}" = set; then :
25647 withval=$with_ca_fallback;
25648 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25649 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25650 fi
25651
25652else
25653 with_ca_fallback="no"
25654fi
25655
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25657$as_echo "$with_ca_fallback" >&6; }
25658 if test "x$with_ca_fallback" = "xyes"; then
25659 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25660 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25661 fi
25662
25663cat >>confdefs.h <<_ACEOF
25664#define CURL_CA_FALLBACK 1
25665_ACEOF
25666
25667 fi
25668
25669
25670
25671
25672# Check whether --with-libpsl was given.
25673if test "${with_libpsl+set}" = set; then :
25674 withval=$with_libpsl; with_libpsl=$withval
25675else
25676 with_libpsl=yes
25677fi
25678
25679if test $with_libpsl != "no"; then
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25681$as_echo_n "checking for library containing psl_builtin... " >&6; }
25682if ${ac_cv_search_psl_builtin+:} false; then :
25683 $as_echo_n "(cached) " >&6
25684else
25685 ac_func_search_save_LIBS=$LIBS
25686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687/* end confdefs.h. */
25688
25689
25690#ifdef __cplusplus
25691extern "C"
25692#endif
25693char psl_builtin ();
25694int main (void)
25695{
25696return psl_builtin ();
25697 ;
25698 return 0;
25699}
25700_ACEOF
25701for ac_lib in '' psl; do
25702 if test -z "$ac_lib"; then
25703 ac_res="none required"
25704 else
25705 ac_res=-l$ac_lib
25706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25707 fi
25708 if ac_fn_c_try_link "$LINENO"; then :
25709 ac_cv_search_psl_builtin=$ac_res
25710fi
25711rm -f core conftest.err conftest.$ac_objext \
25712 conftest$ac_exeext
25713 if ${ac_cv_search_psl_builtin+:} false; then :
25714 break
25715fi
25716done
25717if ${ac_cv_search_psl_builtin+:} false; then :
25718
25719else
25720 ac_cv_search_psl_builtin=no
25721fi
25722rm conftest.$ac_ext
25723LIBS=$ac_func_search_save_LIBS
25724fi
25725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25726$as_echo "$ac_cv_search_psl_builtin" >&6; }
25727ac_res=$ac_cv_search_psl_builtin
25728if test "$ac_res" != no; then :
25729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25730 curl_psl_msg="yes";
25731
25732$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25733
25734
25735else
25736 curl_psl_msg="no (libpsl not found)";
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25738$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25739
25740
25741fi
25742
25743fi
25744 if test "$curl_psl_msg" = "yes"; then
25745 USE_LIBPSL_TRUE=
25746 USE_LIBPSL_FALSE='#'
25747else
25748 USE_LIBPSL_TRUE='#'
25749 USE_LIBPSL_FALSE=
25750fi
25751
25752
25753
25754OPT_LIBMETALINK=no
25755
25756
25757# Check whether --with-libmetalink was given.
25758if test "${with_libmetalink+set}" = set; then :
25759 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25760fi
25761
25762
25763if test X"$OPT_LIBMETALINK" != Xno; then
25764
25765 addld=""
25766 addlib=""
25767 addcflags=""
25768 version=""
25769 libmetalinklib=""
25770
25771 PKGTEST="no"
25772 if test "x$OPT_LIBMETALINK" = "xyes"; then
25773 PKGTEST="yes"
25774
25775 if test -n "$PKG_CONFIG"; then
25776 PKGCONFIG="$PKG_CONFIG"
25777 else
25778 if test -n "$ac_tool_prefix"; then
25779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25780set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25782$as_echo_n "checking for $ac_word... " >&6; }
25783if ${ac_cv_path_PKGCONFIG+:} false; then :
25784 $as_echo_n "(cached) " >&6
25785else
25786 case $PKGCONFIG in
25787 [\\/]* | ?:[\\/]*)
25788 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25789 ;;
25790 *)
25791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25792as_dummy="$PATH:/usr/bin:/usr/local/bin"
25793for as_dir in $as_dummy
25794do
25795 IFS=$as_save_IFS
25796 test -z "$as_dir" && as_dir=.
25797 for ac_exec_ext in '' $ac_executable_extensions; do
25798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25799 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25801 break 2
25802 fi
25803done
25804 done
25805IFS=$as_save_IFS
25806
25807 ;;
25808esac
25809fi
25810PKGCONFIG=$ac_cv_path_PKGCONFIG
25811if test -n "$PKGCONFIG"; then
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25813$as_echo "$PKGCONFIG" >&6; }
25814else
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25816$as_echo "no" >&6; }
25817fi
25818
25819
25820fi
25821if test -z "$ac_cv_path_PKGCONFIG"; then
25822 ac_pt_PKGCONFIG=$PKGCONFIG
25823 # Extract the first word of "pkg-config", so it can be a program name with args.
25824set dummy pkg-config; ac_word=$2
25825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25826$as_echo_n "checking for $ac_word... " >&6; }
25827if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25828 $as_echo_n "(cached) " >&6
25829else
25830 case $ac_pt_PKGCONFIG in
25831 [\\/]* | ?:[\\/]*)
25832 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25833 ;;
25834 *)
25835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836as_dummy="$PATH:/usr/bin:/usr/local/bin"
25837for as_dir in $as_dummy
25838do
25839 IFS=$as_save_IFS
25840 test -z "$as_dir" && as_dir=.
25841 for ac_exec_ext in '' $ac_executable_extensions; do
25842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25843 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25845 break 2
25846 fi
25847done
25848 done
25849IFS=$as_save_IFS
25850
25851 ;;
25852esac
25853fi
25854ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25855if test -n "$ac_pt_PKGCONFIG"; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25857$as_echo "$ac_pt_PKGCONFIG" >&6; }
25858else
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25860$as_echo "no" >&6; }
25861fi
25862
25863 if test "x$ac_pt_PKGCONFIG" = x; then
25864 PKGCONFIG="no"
25865 else
25866 case $cross_compiling:$ac_tool_warned in
25867yes:)
25868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25870ac_tool_warned=yes ;;
25871esac
25872 PKGCONFIG=$ac_pt_PKGCONFIG
25873 fi
25874else
25875 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25876fi
25877
25878 fi
25879
25880 if test "x$PKGCONFIG" != "xno"; then
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25882$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25883 itexists=`
25884 if test -n ""; then
25885 PKG_CONFIG_LIBDIR=""
25886 export PKG_CONFIG_LIBDIR
25887 fi
25888 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25889
25890 if test -z "$itexists"; then
25891 PKGCONFIG="no"
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25893$as_echo "no" >&6; }
25894 else
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25896$as_echo "found" >&6; }
25897 fi
25898 fi
25899
25900 else
25901 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25903$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25904 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25905 PKGTEST="yes"
25906 fi
25907 if test "$PKGTEST" = "yes"; then
25908
25909 if test -n "$PKG_CONFIG"; then
25910 PKGCONFIG="$PKG_CONFIG"
25911 else
25912 if test -n "$ac_tool_prefix"; then
25913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25914set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25916$as_echo_n "checking for $ac_word... " >&6; }
25917if ${ac_cv_path_PKGCONFIG+:} false; then :
25918 $as_echo_n "(cached) " >&6
25919else
25920 case $PKGCONFIG in
25921 [\\/]* | ?:[\\/]*)
25922 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25923 ;;
25924 *)
25925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25926as_dummy="$PATH:/usr/bin:/usr/local/bin"
25927for as_dir in $as_dummy
25928do
25929 IFS=$as_save_IFS
25930 test -z "$as_dir" && as_dir=.
25931 for ac_exec_ext in '' $ac_executable_extensions; do
25932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25933 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25935 break 2
25936 fi
25937done
25938 done
25939IFS=$as_save_IFS
25940
25941 ;;
25942esac
25943fi
25944PKGCONFIG=$ac_cv_path_PKGCONFIG
25945if test -n "$PKGCONFIG"; then
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25947$as_echo "$PKGCONFIG" >&6; }
25948else
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25950$as_echo "no" >&6; }
25951fi
25952
25953
25954fi
25955if test -z "$ac_cv_path_PKGCONFIG"; then
25956 ac_pt_PKGCONFIG=$PKGCONFIG
25957 # Extract the first word of "pkg-config", so it can be a program name with args.
25958set dummy pkg-config; ac_word=$2
25959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25960$as_echo_n "checking for $ac_word... " >&6; }
25961if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25962 $as_echo_n "(cached) " >&6
25963else
25964 case $ac_pt_PKGCONFIG in
25965 [\\/]* | ?:[\\/]*)
25966 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25967 ;;
25968 *)
25969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25970as_dummy="$PATH:/usr/bin:/usr/local/bin"
25971for as_dir in $as_dummy
25972do
25973 IFS=$as_save_IFS
25974 test -z "$as_dir" && as_dir=.
25975 for ac_exec_ext in '' $ac_executable_extensions; do
25976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25977 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25979 break 2
25980 fi
25981done
25982 done
25983IFS=$as_save_IFS
25984
25985 ;;
25986esac
25987fi
25988ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25989if test -n "$ac_pt_PKGCONFIG"; then
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25991$as_echo "$ac_pt_PKGCONFIG" >&6; }
25992else
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25994$as_echo "no" >&6; }
25995fi
25996
25997 if test "x$ac_pt_PKGCONFIG" = x; then
25998 PKGCONFIG="no"
25999 else
26000 case $cross_compiling:$ac_tool_warned in
26001yes:)
26002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26004ac_tool_warned=yes ;;
26005esac
26006 PKGCONFIG=$ac_pt_PKGCONFIG
26007 fi
26008else
26009 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26010fi
26011
26012 fi
26013
26014 if test "x$PKGCONFIG" != "xno"; then
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26016$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26017 itexists=`
26018 if test -n "$LIBMETALINK_PCDIR"; then
26019 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26020 export PKG_CONFIG_LIBDIR
26021 fi
26022 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26023
26024 if test -z "$itexists"; then
26025 PKGCONFIG="no"
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26027$as_echo "no" >&6; }
26028 else
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26030$as_echo "found" >&6; }
26031 fi
26032 fi
26033
26034 fi
26035 fi
26036 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26037 addlib=`
26038 if test -n "$LIBMETALINK_PCDIR"; then
26039 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26040 export PKG_CONFIG_LIBDIR
26041 fi
26042 $PKGCONFIG --libs-only-l libmetalink`
26043 addld=`
26044 if test -n "$LIBMETALINK_PCDIR"; then
26045 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26046 export PKG_CONFIG_LIBDIR
26047 fi
26048 $PKGCONFIG --libs-only-L libmetalink`
26049 addcflags=`
26050 if test -n "$LIBMETALINK_PCDIR"; then
26051 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26052 export PKG_CONFIG_LIBDIR
26053 fi
26054 $PKGCONFIG --cflags-only-I libmetalink`
26055 version=`
26056 if test -n "$LIBMETALINK_PCDIR"; then
26057 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26058 export PKG_CONFIG_LIBDIR
26059 fi
26060 $PKGCONFIG --modversion libmetalink`
26061 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26062 fi
26063 if test -n "$addlib"; then
26064
26065 clean_CPPFLAGS="$CPPFLAGS"
26066 clean_LDFLAGS="$LDFLAGS"
26067 clean_LIBS="$LIBS"
26068 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26069 LDFLAGS="$clean_LDFLAGS $addld"
26070 LIBS="$addlib $clean_LIBS"
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26072$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26074/* end confdefs.h. */
26075
26076
26077# include <metalink/metalink.h>
26078
26079int main (void)
26080{
26081
26082 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26083 return 1;
26084
26085 ;
26086 return 0;
26087}
26088
26089_ACEOF
26090if ac_fn_c_try_link "$LINENO"; then :
26091
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26093$as_echo "yes ($version)" >&6; }
26094 want_metalink="yes"
26095
26096else
26097
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26099$as_echo "no ($version)" >&6; }
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26101$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26102 want_metalink="no"
26103
26104fi
26105rm -f core conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
26107 CPPFLAGS="$clean_CPPFLAGS"
26108 LDFLAGS="$clean_LDFLAGS"
26109 LIBS="$clean_LIBS"
26110 if test "$want_metalink" = "yes"; then
26111
26112$as_echo "#define USE_METALINK 1" >>confdefs.h
26113
26114 LIBMETALINK_LIBS=$addlib
26115 LIBMETALINK_LDFLAGS=$addld
26116 LIBMETALINK_CPPFLAGS=$addcflags
26117
26118
26119
26120 curl_mtlnk_msg="enabled"
26121 fi
26122
26123 fi
26124fi
26125
26126
26127OPT_LIBSSH2=off
26128
26129# Check whether --with-libssh2 was given.
26130if test "${with_libssh2+set}" = set; then :
26131 withval=$with_libssh2; OPT_LIBSSH2=$withval
26132fi
26133
26134
26135if test X"$OPT_LIBSSH2" != Xno; then
26136 CLEANLDFLAGS="$LDFLAGS"
26137 CLEANCPPFLAGS="$CPPFLAGS"
26138 CLEANLIBS="$LIBS"
26139
26140 case "$OPT_LIBSSH2" in
26141 yes)
26142
26143 if test -n "$PKG_CONFIG"; then
26144 PKGCONFIG="$PKG_CONFIG"
26145 else
26146 if test -n "$ac_tool_prefix"; then
26147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26148set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26150$as_echo_n "checking for $ac_word... " >&6; }
26151if ${ac_cv_path_PKGCONFIG+:} false; then :
26152 $as_echo_n "(cached) " >&6
26153else
26154 case $PKGCONFIG in
26155 [\\/]* | ?:[\\/]*)
26156 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26157 ;;
26158 *)
26159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26160as_dummy="$PATH:/usr/bin:/usr/local/bin"
26161for as_dir in $as_dummy
26162do
26163 IFS=$as_save_IFS
26164 test -z "$as_dir" && as_dir=.
26165 for ac_exec_ext in '' $ac_executable_extensions; do
26166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26167 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26169 break 2
26170 fi
26171done
26172 done
26173IFS=$as_save_IFS
26174
26175 ;;
26176esac
26177fi
26178PKGCONFIG=$ac_cv_path_PKGCONFIG
26179if test -n "$PKGCONFIG"; then
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26181$as_echo "$PKGCONFIG" >&6; }
26182else
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26184$as_echo "no" >&6; }
26185fi
26186
26187
26188fi
26189if test -z "$ac_cv_path_PKGCONFIG"; then
26190 ac_pt_PKGCONFIG=$PKGCONFIG
26191 # Extract the first word of "pkg-config", so it can be a program name with args.
26192set dummy pkg-config; ac_word=$2
26193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26194$as_echo_n "checking for $ac_word... " >&6; }
26195if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26196 $as_echo_n "(cached) " >&6
26197else
26198 case $ac_pt_PKGCONFIG in
26199 [\\/]* | ?:[\\/]*)
26200 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26201 ;;
26202 *)
26203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26204as_dummy="$PATH:/usr/bin:/usr/local/bin"
26205for as_dir in $as_dummy
26206do
26207 IFS=$as_save_IFS
26208 test -z "$as_dir" && as_dir=.
26209 for ac_exec_ext in '' $ac_executable_extensions; do
26210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26211 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26213 break 2
26214 fi
26215done
26216 done
26217IFS=$as_save_IFS
26218
26219 ;;
26220esac
26221fi
26222ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26223if test -n "$ac_pt_PKGCONFIG"; then
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26225$as_echo "$ac_pt_PKGCONFIG" >&6; }
26226else
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26228$as_echo "no" >&6; }
26229fi
26230
26231 if test "x$ac_pt_PKGCONFIG" = x; then
26232 PKGCONFIG="no"
26233 else
26234 case $cross_compiling:$ac_tool_warned in
26235yes:)
26236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26238ac_tool_warned=yes ;;
26239esac
26240 PKGCONFIG=$ac_pt_PKGCONFIG
26241 fi
26242else
26243 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26244fi
26245
26246 fi
26247
26248 if test "x$PKGCONFIG" != "xno"; then
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26250$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26251 itexists=`
26252 if test -n ""; then
26253 PKG_CONFIG_LIBDIR=""
26254 export PKG_CONFIG_LIBDIR
26255 fi
26256 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26257
26258 if test -z "$itexists"; then
26259 PKGCONFIG="no"
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26261$as_echo "no" >&6; }
26262 else
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26264$as_echo "found" >&6; }
26265 fi
26266 fi
26267
26268
26269 if test "$PKGCONFIG" != "no" ; then
26270 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26271 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26272 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26273 version=`$PKGCONFIG --modversion libssh2`
26274 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26275 fi
26276
26277 ;;
26278 off)
26279 ;;
26280 *)
26281 PREFIX_SSH2=$OPT_LIBSSH2
26282 ;;
26283 esac
26284
26285 if test -n "$PREFIX_SSH2"; then
26286 LIB_SSH2="-lssh2"
26287 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26288 CPP_SSH2=-I${PREFIX_SSH2}/include
26289 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26290 fi
26291
26292 LDFLAGS="$LDFLAGS $LD_SSH2"
26293 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26294 LIBS="$LIB_SSH2 $LIBS"
26295
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26297$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26298if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26299 $as_echo_n "(cached) " >&6
26300else
26301 ac_check_lib_save_LIBS=$LIBS
26302LIBS="-lssh2 $LIBS"
26303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26304/* end confdefs.h. */
26305
26306
26307#ifdef __cplusplus
26308extern "C"
26309#endif
26310char libssh2_channel_open_ex ();
26311int main (void)
26312{
26313return libssh2_channel_open_ex ();
26314 ;
26315 return 0;
26316}
26317_ACEOF
26318if ac_fn_c_try_link "$LINENO"; then :
26319 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26320else
26321 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26322fi
26323rm -f core conftest.err conftest.$ac_objext \
26324 conftest$ac_exeext conftest.$ac_ext
26325LIBS=$ac_check_lib_save_LIBS
26326fi
26327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26328$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26329if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26330 cat >>confdefs.h <<_ACEOF
26331#define HAVE_LIBSSH2 1
26332_ACEOF
26333
26334 LIBS="-lssh2 $LIBS"
26335
26336fi
26337
26338
26339 for ac_header in libssh2.h
26340do :
26341 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26342if test "x$ac_cv_header_libssh2_h" = xyes; then :
26343 cat >>confdefs.h <<_ACEOF
26344#define HAVE_LIBSSH2_H 1
26345_ACEOF
26346 curl_ssh_msg="enabled (libSSH2)"
26347 LIBSSH2_ENABLED=1
26348
26349$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26350
26351 USE_LIBSSH2=1
26352
26353
26354fi
26355
26356done
26357
26358
26359 if test X"$OPT_LIBSSH2" != Xoff &&
26360 test "$LIBSSH2_ENABLED" != "1"; then
26361 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26362 fi
26363
26364 if test "$LIBSSH2_ENABLED" = "1"; then
26365 if test -n "$DIR_SSH2"; then
26366
26367 if test "x$cross_compiling" != "xyes"; then
26368 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26369 export LD_LIBRARY_PATH
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26371$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26372 fi
26373 fi
26374 else
26375 LDFLAGS=$CLEANLDFLAGS
26376 CPPFLAGS=$CLEANCPPFLAGS
26377 LIBS=$CLEANLIBS
26378 fi
26379fi
26380
26381
26382OPT_LIBRTMP=off
26383
26384# Check whether --with-librtmp was given.
26385if test "${with_librtmp+set}" = set; then :
26386 withval=$with_librtmp; OPT_LIBRTMP=$withval
26387fi
26388
26389
26390if test X"$OPT_LIBRTMP" != Xno; then
26391 CLEANLDFLAGS="$LDFLAGS"
26392 CLEANCPPFLAGS="$CPPFLAGS"
26393 CLEANLIBS="$LIBS"
26394
26395 case "$OPT_LIBRTMP" in
26396 yes)
26397
26398 if test -n "$PKG_CONFIG"; then
26399 PKGCONFIG="$PKG_CONFIG"
26400 else
26401 if test -n "$ac_tool_prefix"; then
26402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26403set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26405$as_echo_n "checking for $ac_word... " >&6; }
26406if ${ac_cv_path_PKGCONFIG+:} false; then :
26407 $as_echo_n "(cached) " >&6
26408else
26409 case $PKGCONFIG in
26410 [\\/]* | ?:[\\/]*)
26411 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26412 ;;
26413 *)
26414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26415as_dummy="$PATH:/usr/bin:/usr/local/bin"
26416for as_dir in $as_dummy
26417do
26418 IFS=$as_save_IFS
26419 test -z "$as_dir" && as_dir=.
26420 for ac_exec_ext in '' $ac_executable_extensions; do
26421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26422 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26424 break 2
26425 fi
26426done
26427 done
26428IFS=$as_save_IFS
26429
26430 ;;
26431esac
26432fi
26433PKGCONFIG=$ac_cv_path_PKGCONFIG
26434if test -n "$PKGCONFIG"; then
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26436$as_echo "$PKGCONFIG" >&6; }
26437else
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26439$as_echo "no" >&6; }
26440fi
26441
26442
26443fi
26444if test -z "$ac_cv_path_PKGCONFIG"; then
26445 ac_pt_PKGCONFIG=$PKGCONFIG
26446 # Extract the first word of "pkg-config", so it can be a program name with args.
26447set dummy pkg-config; ac_word=$2
26448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26449$as_echo_n "checking for $ac_word... " >&6; }
26450if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26451 $as_echo_n "(cached) " >&6
26452else
26453 case $ac_pt_PKGCONFIG in
26454 [\\/]* | ?:[\\/]*)
26455 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26456 ;;
26457 *)
26458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26459as_dummy="$PATH:/usr/bin:/usr/local/bin"
26460for as_dir in $as_dummy
26461do
26462 IFS=$as_save_IFS
26463 test -z "$as_dir" && as_dir=.
26464 for ac_exec_ext in '' $ac_executable_extensions; do
26465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26466 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26468 break 2
26469 fi
26470done
26471 done
26472IFS=$as_save_IFS
26473
26474 ;;
26475esac
26476fi
26477ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26478if test -n "$ac_pt_PKGCONFIG"; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26480$as_echo "$ac_pt_PKGCONFIG" >&6; }
26481else
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26483$as_echo "no" >&6; }
26484fi
26485
26486 if test "x$ac_pt_PKGCONFIG" = x; then
26487 PKGCONFIG="no"
26488 else
26489 case $cross_compiling:$ac_tool_warned in
26490yes:)
26491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26493ac_tool_warned=yes ;;
26494esac
26495 PKGCONFIG=$ac_pt_PKGCONFIG
26496 fi
26497else
26498 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26499fi
26500
26501 fi
26502
26503 if test "x$PKGCONFIG" != "xno"; then
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26505$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26506 itexists=`
26507 if test -n ""; then
26508 PKG_CONFIG_LIBDIR=""
26509 export PKG_CONFIG_LIBDIR
26510 fi
26511 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26512
26513 if test -z "$itexists"; then
26514 PKGCONFIG="no"
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26516$as_echo "no" >&6; }
26517 else
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26519$as_echo "found" >&6; }
26520 fi
26521 fi
26522
26523
26524 if test "$PKGCONFIG" != "no" ; then
26525 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26526 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26527 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26528 version=`$PKGCONFIG --modversion librtmp`
26529 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26530 else
26531 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26532 fi
26533
26534 ;;
26535 off)
26536 LIB_RTMP="-lrtmp"
26537 ;;
26538 *)
26539 LIB_RTMP="-lrtmp"
26540 PREFIX_RTMP=$OPT_LIBRTMP
26541 ;;
26542 esac
26543
26544 if test -n "$PREFIX_RTMP"; then
26545 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26546 CPP_RTMP=-I${PREFIX_RTMP}/include
26547 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26548 fi
26549
26550 LDFLAGS="$LDFLAGS $LD_RTMP"
26551 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26552 LIBS="$LIB_RTMP $LIBS"
26553
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26555$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26556if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26557 $as_echo_n "(cached) " >&6
26558else
26559 ac_check_lib_save_LIBS=$LIBS
26560LIBS="-lrtmp $LIBS"
26561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562/* end confdefs.h. */
26563
26564
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char RTMP_Init ();
26569int main (void)
26570{
26571return RTMP_Init ();
26572 ;
26573 return 0;
26574}
26575_ACEOF
26576if ac_fn_c_try_link "$LINENO"; then :
26577 ac_cv_lib_rtmp_RTMP_Init=yes
26578else
26579 ac_cv_lib_rtmp_RTMP_Init=no
26580fi
26581rm -f core conftest.err conftest.$ac_objext \
26582 conftest$ac_exeext conftest.$ac_ext
26583LIBS=$ac_check_lib_save_LIBS
26584fi
26585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26586$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26587if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26588
26589 for ac_header in librtmp/rtmp.h
26590do :
26591 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26592if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26593 cat >>confdefs.h <<_ACEOF
26594#define HAVE_LIBRTMP_RTMP_H 1
26595_ACEOF
26596 curl_rtmp_msg="enabled (librtmp)"
26597 LIBRTMP_ENABLED=1
26598
26599$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26600
26601 USE_LIBRTMP=1
26602
26603
26604fi
26605
26606done
26607
26608
26609else
26610 LDFLAGS=$CLEANLDFLAGS
26611 CPPFLAGS=$CLEANCPPFLAGS
26612 LIBS=$CLEANLIBS
26613
26614fi
26615
26616
26617 if test X"$OPT_LIBRTMP" != Xoff &&
26618 test "$LIBRTMP_ENABLED" != "1"; then
26619 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26620 fi
26621
26622fi
26623
26624
26625versioned_symbols_flavour=
26626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26627$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26628# Check whether --enable-versioned-symbols was given.
26629if test "${enable_versioned_symbols+set}" = set; then :
26630 enableval=$enable_versioned_symbols; case "$enableval" in
26631 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26632$as_echo "yes" >&6; }
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26634$as_echo_n "checking if libraries can be versioned... " >&6; }
26635 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26636 if test -z "$GLD"; then
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26638$as_echo "no" >&6; }
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26640$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26641 else
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26643$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026644 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26645 versioned_symbols_flavour="MULTISSL_"
26646 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026647 versioned_symbols_flavour="OPENSSL_"
26648 elif test "x$GNUTLS_ENABLED" = "x1"; then
26649 versioned_symbols_flavour="GNUTLS_"
26650 elif test "x$NSS_ENABLED" = "x1"; then
26651 versioned_symbols_flavour="NSS_"
26652 elif test "x$POLARSSL_ENABLED" = "x1"; then
26653 versioned_symbols_flavour="POLARSSL_"
26654 elif test "x$CYASSL_ENABLED" = "x1"; then
26655 versioned_symbols_flavour="CYASSL_"
26656 elif test "x$AXTLS_ENABLED" = "x1"; then
26657 versioned_symbols_flavour="AXTLS_"
26658 elif test "x$WINSSL_ENABLED" = "x1"; then
26659 versioned_symbols_flavour="WINSSL_"
26660 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26661 versioned_symbols_flavour="DARWINSSL_"
26662 else
26663 versioned_symbols_flavour=""
26664 fi
26665 versioned_symbols="yes"
26666 fi
26667 ;;
26668
26669 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26670$as_echo "no" >&6; }
26671 ;;
26672 esac
26673
26674else
26675
26676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677$as_echo "no" >&6; }
26678
26679
26680fi
26681
26682
26683CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26684
26685 if test "x$versioned_symbols" = 'xyes'; then
26686 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26687 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26688else
26689 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26690 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26691fi
26692
26693
26694
26695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26696$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26697OPT_WINIDN="default"
26698
26699# Check whether --with-winidn was given.
26700if test "${with_winidn+set}" = set; then :
26701 withval=$with_winidn; OPT_WINIDN=$withval
26702fi
26703
26704case "$OPT_WINIDN" in
26705 no|default)
26706 want_winidn="no"
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26708$as_echo "no" >&6; }
26709 ;;
26710 yes)
26711 want_winidn="yes"
26712 want_winidn_path="default"
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26714$as_echo "yes" >&6; }
26715 ;;
26716 *)
26717 want_winidn="yes"
26718 want_winidn_path="$withval"
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26720$as_echo "yes ($withval)" >&6; }
26721 ;;
26722esac
26723
26724if test "$want_winidn" = "yes"; then
26725 clean_CPPFLAGS="$CPPFLAGS"
26726 clean_LDFLAGS="$LDFLAGS"
26727 clean_LIBS="$LIBS"
26728 WINIDN_LIBS="-lnormaliz"
26729 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26730 #
26731 if test "$want_winidn_path" != "default"; then
26732 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26733 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26734 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26735 fi
26736 #
26737 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26738 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26739 LIBS="$WINIDN_LIBS $LIBS"
26740 #
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26742$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26744/* end confdefs.h. */
26745
26746
26747 #include <windows.h>
26748
26749int main (void)
26750{
26751
26752 IdnToUnicode(0, NULL, 0, NULL, 0);
26753
26754 ;
26755 return 0;
26756}
26757
26758_ACEOF
26759if ac_fn_c_try_link "$LINENO"; then :
26760
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26762$as_echo "yes" >&6; }
26763 tst_links_winidn="yes"
26764
26765else
26766
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26768$as_echo "no" >&6; }
26769 tst_links_winidn="no"
26770
26771fi
26772rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
26774 #
26775 if test "$tst_links_winidn" = "yes"; then
26776
26777$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26778
26779
26780$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26781
26782 IDN_ENABLED=1
26783
26784 curl_idn_msg="enabled (Windows-native)"
26785 else
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26787$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26788 CPPFLAGS="$clean_CPPFLAGS"
26789 LDFLAGS="$clean_LDFLAGS"
26790 LIBS="$clean_LIBS"
26791 fi
26792fi
26793
26794
26795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26796$as_echo_n "checking whether to build with libidn2... " >&6; }
26797OPT_IDN="default"
26798
26799# Check whether --with-libidn2 was given.
26800if test "${with_libidn2+set}" = set; then :
26801 withval=$with_libidn2; OPT_IDN=$withval
26802fi
26803
26804case "$OPT_IDN" in
26805 no)
26806 want_idn="no"
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26808$as_echo "no" >&6; }
26809 ;;
26810 default)
26811 want_idn="yes"
26812 want_idn_path="default"
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26814$as_echo "(assumed) yes" >&6; }
26815 ;;
26816 yes)
26817 want_idn="yes"
26818 want_idn_path="default"
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26820$as_echo "yes" >&6; }
26821 ;;
26822 *)
26823 want_idn="yes"
26824 want_idn_path="$withval"
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26826$as_echo "yes ($withval)" >&6; }
26827 ;;
26828esac
26829
26830if test "$want_idn" = "yes"; then
26831 clean_CPPFLAGS="$CPPFLAGS"
26832 clean_LDFLAGS="$LDFLAGS"
26833 clean_LIBS="$LIBS"
26834 PKGCONFIG="no"
26835 #
26836 if test "$want_idn_path" != "default"; then
26837 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26838
26839 if test -n "$PKG_CONFIG"; then
26840 PKGCONFIG="$PKG_CONFIG"
26841 else
26842 if test -n "$ac_tool_prefix"; then
26843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26844set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26846$as_echo_n "checking for $ac_word... " >&6; }
26847if ${ac_cv_path_PKGCONFIG+:} false; then :
26848 $as_echo_n "(cached) " >&6
26849else
26850 case $PKGCONFIG in
26851 [\\/]* | ?:[\\/]*)
26852 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26853 ;;
26854 *)
26855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26856as_dummy="$PATH:/usr/bin:/usr/local/bin"
26857for as_dir in $as_dummy
26858do
26859 IFS=$as_save_IFS
26860 test -z "$as_dir" && as_dir=.
26861 for ac_exec_ext in '' $ac_executable_extensions; do
26862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26863 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26865 break 2
26866 fi
26867done
26868 done
26869IFS=$as_save_IFS
26870
26871 ;;
26872esac
26873fi
26874PKGCONFIG=$ac_cv_path_PKGCONFIG
26875if test -n "$PKGCONFIG"; then
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26877$as_echo "$PKGCONFIG" >&6; }
26878else
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26880$as_echo "no" >&6; }
26881fi
26882
26883
26884fi
26885if test -z "$ac_cv_path_PKGCONFIG"; then
26886 ac_pt_PKGCONFIG=$PKGCONFIG
26887 # Extract the first word of "pkg-config", so it can be a program name with args.
26888set dummy pkg-config; ac_word=$2
26889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26890$as_echo_n "checking for $ac_word... " >&6; }
26891if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26892 $as_echo_n "(cached) " >&6
26893else
26894 case $ac_pt_PKGCONFIG in
26895 [\\/]* | ?:[\\/]*)
26896 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26897 ;;
26898 *)
26899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26900as_dummy="$PATH:/usr/bin:/usr/local/bin"
26901for as_dir in $as_dummy
26902do
26903 IFS=$as_save_IFS
26904 test -z "$as_dir" && as_dir=.
26905 for ac_exec_ext in '' $ac_executable_extensions; do
26906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26907 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26909 break 2
26910 fi
26911done
26912 done
26913IFS=$as_save_IFS
26914
26915 ;;
26916esac
26917fi
26918ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26919if test -n "$ac_pt_PKGCONFIG"; then
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26921$as_echo "$ac_pt_PKGCONFIG" >&6; }
26922else
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26924$as_echo "no" >&6; }
26925fi
26926
26927 if test "x$ac_pt_PKGCONFIG" = x; then
26928 PKGCONFIG="no"
26929 else
26930 case $cross_compiling:$ac_tool_warned in
26931yes:)
26932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26934ac_tool_warned=yes ;;
26935esac
26936 PKGCONFIG=$ac_pt_PKGCONFIG
26937 fi
26938else
26939 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26940fi
26941
26942 fi
26943
26944 if test "x$PKGCONFIG" != "xno"; then
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26946$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26947 itexists=`
26948 if test -n "$IDN_PCDIR"; then
26949 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26950 export PKG_CONFIG_LIBDIR
26951 fi
26952 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26953
26954 if test -z "$itexists"; then
26955 PKGCONFIG="no"
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26957$as_echo "no" >&6; }
26958 else
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26960$as_echo "found" >&6; }
26961 fi
26962 fi
26963
26964 if test "$PKGCONFIG" != "no"; then
26965 IDN_LIBS=`
26966 if test -n "$IDN_PCDIR"; then
26967 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26968 export PKG_CONFIG_LIBDIR
26969 fi
26970 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26971 IDN_LDFLAGS=`
26972 if test -n "$IDN_PCDIR"; then
26973 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26974 export PKG_CONFIG_LIBDIR
26975 fi
26976 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26977 IDN_CPPFLAGS=`
26978 if test -n "$IDN_PCDIR"; then
26979 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26980 export PKG_CONFIG_LIBDIR
26981 fi
26982 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26983 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26984 else
26985 IDN_LIBS="-lidn2"
26986 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26987 IDN_CPPFLAGS="-I$want_idn_path/include"
26988 IDN_DIR="$want_idn_path/lib$libsuff"
26989 fi
26990 else
26991
26992 if test -n "$PKG_CONFIG"; then
26993 PKGCONFIG="$PKG_CONFIG"
26994 else
26995 if test -n "$ac_tool_prefix"; then
26996 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26997set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26999$as_echo_n "checking for $ac_word... " >&6; }
27000if ${ac_cv_path_PKGCONFIG+:} false; then :
27001 $as_echo_n "(cached) " >&6
27002else
27003 case $PKGCONFIG in
27004 [\\/]* | ?:[\\/]*)
27005 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27006 ;;
27007 *)
27008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27009as_dummy="$PATH:/usr/bin:/usr/local/bin"
27010for as_dir in $as_dummy
27011do
27012 IFS=$as_save_IFS
27013 test -z "$as_dir" && as_dir=.
27014 for ac_exec_ext in '' $ac_executable_extensions; do
27015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27016 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27018 break 2
27019 fi
27020done
27021 done
27022IFS=$as_save_IFS
27023
27024 ;;
27025esac
27026fi
27027PKGCONFIG=$ac_cv_path_PKGCONFIG
27028if test -n "$PKGCONFIG"; then
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27030$as_echo "$PKGCONFIG" >&6; }
27031else
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27033$as_echo "no" >&6; }
27034fi
27035
27036
27037fi
27038if test -z "$ac_cv_path_PKGCONFIG"; then
27039 ac_pt_PKGCONFIG=$PKGCONFIG
27040 # Extract the first word of "pkg-config", so it can be a program name with args.
27041set dummy pkg-config; ac_word=$2
27042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27043$as_echo_n "checking for $ac_word... " >&6; }
27044if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27045 $as_echo_n "(cached) " >&6
27046else
27047 case $ac_pt_PKGCONFIG in
27048 [\\/]* | ?:[\\/]*)
27049 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27050 ;;
27051 *)
27052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27053as_dummy="$PATH:/usr/bin:/usr/local/bin"
27054for as_dir in $as_dummy
27055do
27056 IFS=$as_save_IFS
27057 test -z "$as_dir" && as_dir=.
27058 for ac_exec_ext in '' $ac_executable_extensions; do
27059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27060 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27062 break 2
27063 fi
27064done
27065 done
27066IFS=$as_save_IFS
27067
27068 ;;
27069esac
27070fi
27071ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27072if test -n "$ac_pt_PKGCONFIG"; then
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27074$as_echo "$ac_pt_PKGCONFIG" >&6; }
27075else
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27077$as_echo "no" >&6; }
27078fi
27079
27080 if test "x$ac_pt_PKGCONFIG" = x; then
27081 PKGCONFIG="no"
27082 else
27083 case $cross_compiling:$ac_tool_warned in
27084yes:)
27085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27087ac_tool_warned=yes ;;
27088esac
27089 PKGCONFIG=$ac_pt_PKGCONFIG
27090 fi
27091else
27092 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27093fi
27094
27095 fi
27096
27097 if test "x$PKGCONFIG" != "xno"; then
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27099$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27100 itexists=`
27101 if test -n ""; then
27102 PKG_CONFIG_LIBDIR=""
27103 export PKG_CONFIG_LIBDIR
27104 fi
27105 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27106
27107 if test -z "$itexists"; then
27108 PKGCONFIG="no"
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110$as_echo "no" >&6; }
27111 else
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27113$as_echo "found" >&6; }
27114 fi
27115 fi
27116
27117 if test "$PKGCONFIG" != "no"; then
27118 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27119 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27120 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27121 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27122 else
27123 IDN_LIBS="-lidn2"
27124 fi
27125 fi
27126 #
27127 if test "$PKGCONFIG" != "no"; then
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27129$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27131$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27133$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27135$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27136 else
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27138$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27140$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27142$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27144$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27145 fi
27146 #
27147 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27148 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27149 LIBS="$IDN_LIBS $LIBS"
27150 #
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27152$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27154/* end confdefs.h. */
27155
27156
27157#define idn2_lookup_ul innocuous_idn2_lookup_ul
27158#ifdef __STDC__
27159# include <limits.h>
27160#else
27161# include <assert.h>
27162#endif
27163#undef idn2_lookup_ul
27164#ifdef __cplusplus
27165extern "C"
27166#endif
27167char idn2_lookup_ul ();
27168#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27169choke me
27170#endif
27171
27172int main (void)
27173{
27174return idn2_lookup_ul ();
27175 ;
27176 return 0;
27177}
27178
27179_ACEOF
27180if ac_fn_c_try_link "$LINENO"; then :
27181
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27183$as_echo "yes" >&6; }
27184 tst_links_libidn="yes"
27185
27186else
27187
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27189$as_echo "no" >&6; }
27190 tst_links_libidn="no"
27191
27192fi
27193rm -f core conftest.err conftest.$ac_objext \
27194 conftest$ac_exeext conftest.$ac_ext
27195 #
27196 for ac_header in idn2.h
27197do :
27198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27199ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27201 cat >>confdefs.h <<_ACEOF
27202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27203_ACEOF
27204
27205fi
27206
27207done
27208
27209
27210 if test "$tst_links_libidn" = "yes"; then
27211
27212$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27213
27214
27215 IDN_ENABLED=1
27216
27217 curl_idn_msg="enabled (libidn2)"
27218 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27219 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27220 export LD_LIBRARY_PATH
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27222$as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27223 fi
27224 else
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27226$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27227 CPPFLAGS="$clean_CPPFLAGS"
27228 LDFLAGS="$clean_LDFLAGS"
27229 LIBS="$clean_LIBS"
27230 fi
27231fi
27232
27233
27234
27235
27236
27237OPT_H2="yes"
27238
27239if test "x$disable_http" = "xyes"; then
27240 # without HTTP, nghttp2 is no use
27241 OPT_H2="no"
27242fi
27243
27244
27245# Check whether --with-nghttp2 was given.
27246if test "${with_nghttp2+set}" = set; then :
27247 withval=$with_nghttp2; OPT_H2=$withval
27248fi
27249
27250case "$OPT_H2" in
27251 no)
27252 want_h2="no"
27253 ;;
27254 yes)
27255 want_h2="default"
27256 want_h2_path=""
27257 ;;
27258 *)
27259 want_h2="yes"
27260 want_h2_path="$withval/lib/pkgconfig"
27261 ;;
27262esac
27263
27264curl_h2_msg="disabled (--with-nghttp2)"
27265if test X"$want_h2" != Xno; then
27266 CLEANLDFLAGS="$LDFLAGS"
27267 CLEANCPPFLAGS="$CPPFLAGS"
27268 CLEANLIBS="$LIBS"
27269
27270
27271 if test -n "$PKG_CONFIG"; then
27272 PKGCONFIG="$PKG_CONFIG"
27273 else
27274 if test -n "$ac_tool_prefix"; then
27275 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27276set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27278$as_echo_n "checking for $ac_word... " >&6; }
27279if ${ac_cv_path_PKGCONFIG+:} false; then :
27280 $as_echo_n "(cached) " >&6
27281else
27282 case $PKGCONFIG in
27283 [\\/]* | ?:[\\/]*)
27284 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27285 ;;
27286 *)
27287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27288as_dummy="$PATH:/usr/bin:/usr/local/bin"
27289for as_dir in $as_dummy
27290do
27291 IFS=$as_save_IFS
27292 test -z "$as_dir" && as_dir=.
27293 for ac_exec_ext in '' $ac_executable_extensions; do
27294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27295 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27297 break 2
27298 fi
27299done
27300 done
27301IFS=$as_save_IFS
27302
27303 ;;
27304esac
27305fi
27306PKGCONFIG=$ac_cv_path_PKGCONFIG
27307if test -n "$PKGCONFIG"; then
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27309$as_echo "$PKGCONFIG" >&6; }
27310else
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27312$as_echo "no" >&6; }
27313fi
27314
27315
27316fi
27317if test -z "$ac_cv_path_PKGCONFIG"; then
27318 ac_pt_PKGCONFIG=$PKGCONFIG
27319 # Extract the first word of "pkg-config", so it can be a program name with args.
27320set dummy pkg-config; ac_word=$2
27321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27322$as_echo_n "checking for $ac_word... " >&6; }
27323if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27324 $as_echo_n "(cached) " >&6
27325else
27326 case $ac_pt_PKGCONFIG in
27327 [\\/]* | ?:[\\/]*)
27328 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27329 ;;
27330 *)
27331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27332as_dummy="$PATH:/usr/bin:/usr/local/bin"
27333for as_dir in $as_dummy
27334do
27335 IFS=$as_save_IFS
27336 test -z "$as_dir" && as_dir=.
27337 for ac_exec_ext in '' $ac_executable_extensions; do
27338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27339 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27341 break 2
27342 fi
27343done
27344 done
27345IFS=$as_save_IFS
27346
27347 ;;
27348esac
27349fi
27350ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27351if test -n "$ac_pt_PKGCONFIG"; then
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27353$as_echo "$ac_pt_PKGCONFIG" >&6; }
27354else
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27356$as_echo "no" >&6; }
27357fi
27358
27359 if test "x$ac_pt_PKGCONFIG" = x; then
27360 PKGCONFIG="no"
27361 else
27362 case $cross_compiling:$ac_tool_warned in
27363yes:)
27364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27366ac_tool_warned=yes ;;
27367esac
27368 PKGCONFIG=$ac_pt_PKGCONFIG
27369 fi
27370else
27371 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27372fi
27373
27374 fi
27375
27376 if test "x$PKGCONFIG" != "xno"; then
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27378$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27379 itexists=`
27380 if test -n "$want_h2_path"; then
27381 PKG_CONFIG_LIBDIR="$want_h2_path"
27382 export PKG_CONFIG_LIBDIR
27383 fi
27384 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27385
27386 if test -z "$itexists"; then
27387 PKGCONFIG="no"
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27389$as_echo "no" >&6; }
27390 else
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27392$as_echo "found" >&6; }
27393 fi
27394 fi
27395
27396
27397 if test "$PKGCONFIG" != "no" ; then
27398 LIB_H2=`
27399 if test -n "$want_h2_path"; then
27400 PKG_CONFIG_LIBDIR="$want_h2_path"
27401 export PKG_CONFIG_LIBDIR
27402 fi
27403
27404 $PKGCONFIG --libs-only-l libnghttp2`
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27406$as_echo "$as_me: -l is $LIB_H2" >&6;}
27407
27408 CPP_H2=`
27409 if test -n "$want_h2_path"; then
27410 PKG_CONFIG_LIBDIR="$want_h2_path"
27411 export PKG_CONFIG_LIBDIR
27412 fi
27413 $PKGCONFIG --cflags-only-I libnghttp2`
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27415$as_echo "$as_me: -I is $CPP_H2" >&6;}
27416
27417 LD_H2=`
27418 if test -n "$want_h2_path"; then
27419 PKG_CONFIG_LIBDIR="$want_h2_path"
27420 export PKG_CONFIG_LIBDIR
27421 fi
27422
27423 $PKGCONFIG --libs-only-L libnghttp2`
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27425$as_echo "$as_me: -L is $LD_H2" >&6;}
27426
27427 LDFLAGS="$LDFLAGS $LD_H2"
27428 CPPFLAGS="$CPPFLAGS $CPP_H2"
27429 LIBS="$LIB_H2 $LIBS"
27430
27431 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27432 # >= 1.0.0
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27434$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27435if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27436 $as_echo_n "(cached) " >&6
27437else
27438 ac_check_lib_save_LIBS=$LIBS
27439LIBS="-lnghttp2 $LIBS"
27440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27441/* end confdefs.h. */
27442
27443
27444#ifdef __cplusplus
27445extern "C"
27446#endif
27447char nghttp2_option_set_no_recv_client_magic ();
27448int main (void)
27449{
27450return nghttp2_option_set_no_recv_client_magic ();
27451 ;
27452 return 0;
27453}
27454_ACEOF
27455if ac_fn_c_try_link "$LINENO"; then :
27456 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27457else
27458 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27459fi
27460rm -f core conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
27462LIBS=$ac_check_lib_save_LIBS
27463fi
27464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27465$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27466if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27467
27468 for ac_header in nghttp2/nghttp2.h
27469do :
27470 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27471if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27472 cat >>confdefs.h <<_ACEOF
27473#define HAVE_NGHTTP2_NGHTTP2_H 1
27474_ACEOF
27475 curl_h2_msg="enabled (nghttp2)"
27476 NGHTTP2_ENABLED=1
27477
27478$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27479
27480 USE_NGHTTP2=1
27481
27482
27483fi
27484
27485done
27486
27487
27488else
27489 LDFLAGS=$CLEANLDFLAGS
27490 CPPFLAGS=$CLEANCPPFLAGS
27491 LIBS=$CLEANLIBS
27492
27493fi
27494
27495
27496 else
27497 if test X"$want_h2" != Xdefault; then
27498 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27499 fi
27500 fi
27501
27502fi
27503
27504
27505OPT_ZSH_FPATH=default
27506
27507# Check whether --with-zsh-functions-dir was given.
27508if test "${with_zsh_functions_dir+set}" = set; then :
27509 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27510fi
27511
27512case "$OPT_ZSH_FPATH" in
27513 no)
27514 ;;
27515 default|yes)
27516 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27517
27518 ;;
27519 *)
27520 ZSH_FUNCTIONS_DIR="$withval"
27521
27522 ;;
27523esac
27524
27525
27526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27527$as_echo_n "checking for ANSI C header files... " >&6; }
27528if ${ac_cv_header_stdc+:} false; then :
27529 $as_echo_n "(cached) " >&6
27530else
27531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27532/* end confdefs.h. */
27533#include <stdlib.h>
27534#include <stdarg.h>
27535#include <string.h>
27536#include <float.h>
27537
27538int main (void)
27539{
27540
27541 ;
27542 return 0;
27543}
27544_ACEOF
27545if ac_fn_c_try_compile "$LINENO"; then :
27546 ac_cv_header_stdc=yes
27547else
27548 ac_cv_header_stdc=no
27549fi
27550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27551
27552if test $ac_cv_header_stdc = yes; then
27553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555/* end confdefs.h. */
27556#include <string.h>
27557
27558_ACEOF
27559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27560 $EGREP "memchr" >/dev/null 2>&1; then :
27561
27562else
27563 ac_cv_header_stdc=no
27564fi
27565rm -f conftest*
27566
27567fi
27568
27569if test $ac_cv_header_stdc = yes; then
27570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27572/* end confdefs.h. */
27573#include <stdlib.h>
27574
27575_ACEOF
27576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27577 $EGREP "free" >/dev/null 2>&1; then :
27578
27579else
27580 ac_cv_header_stdc=no
27581fi
27582rm -f conftest*
27583
27584fi
27585
27586if test $ac_cv_header_stdc = yes; then
27587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27588 if test "$cross_compiling" = yes; then :
27589 :
27590else
27591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592/* end confdefs.h. */
27593#include <ctype.h>
27594#include <stdlib.h>
27595#if ((' ' & 0x0FF) == 0x020)
27596# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27597# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27598#else
27599# define ISLOWER(c) \
27600 (('a' <= (c) && (c) <= 'i') \
27601 || ('j' <= (c) && (c) <= 'r') \
27602 || ('s' <= (c) && (c) <= 'z'))
27603# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27604#endif
27605
27606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27607int
27608main ()
27609{
27610 int i;
27611 for (i = 0; i < 256; i++)
27612 if (XOR (islower (i), ISLOWER (i))
27613 || toupper (i) != TOUPPER (i))
27614 return 2;
27615 return 0;
27616}
27617_ACEOF
27618if ac_fn_c_try_run "$LINENO"; then :
27619
27620else
27621 ac_cv_header_stdc=no
27622fi
27623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27624 conftest.$ac_objext conftest.beam conftest.$ac_ext
27625fi
27626
27627fi
27628fi
27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27630$as_echo "$ac_cv_header_stdc" >&6; }
27631if test $ac_cv_header_stdc = yes; then
27632
27633$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27634
27635fi
27636
27637
27638
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27640$as_echo_n "checking for malloc.h... " >&6; }
27641if ${curl_cv_header_malloc_h+:} false; then :
27642 $as_echo_n "(cached) " >&6
27643else
27644
27645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27646/* end confdefs.h. */
27647
27648
27649#include <malloc.h>
27650
27651int main (void)
27652{
27653
27654 void *p = malloc(10);
27655 void *q = calloc(10,10);
27656 free(p);
27657 free(q);
27658
27659 ;
27660 return 0;
27661}
27662
27663_ACEOF
27664if ac_fn_c_try_compile "$LINENO"; then :
27665
27666 curl_cv_header_malloc_h="yes"
27667
27668else
27669
27670 curl_cv_header_malloc_h="no"
27671
27672fi
27673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27674
27675fi
27676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27677$as_echo "$curl_cv_header_malloc_h" >&6; }
27678 if test "$curl_cv_header_malloc_h" = "yes"; then
27679
27680cat >>confdefs.h <<_ACEOF
27681#define HAVE_MALLOC_H 1
27682_ACEOF
27683
27684 #
27685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27686/* end confdefs.h. */
27687
27688
27689#include <stdlib.h>
27690
27691int main (void)
27692{
27693
27694 void *p = malloc(10);
27695 void *q = calloc(10,10);
27696 free(p);
27697 free(q);
27698
27699 ;
27700 return 0;
27701}
27702
27703_ACEOF
27704if ac_fn_c_try_compile "$LINENO"; then :
27705
27706 curl_cv_need_header_malloc_h="no"
27707
27708else
27709
27710 curl_cv_need_header_malloc_h="yes"
27711
27712fi
27713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27714 #
27715 case "$curl_cv_need_header_malloc_h" in
27716 yes)
27717
27718cat >>confdefs.h <<_ACEOF
27719#define NEED_MALLOC_H 1
27720_ACEOF
27721
27722 ;;
27723 esac
27724 fi
27725
27726
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27728$as_echo_n "checking for memory.h... " >&6; }
27729if ${curl_cv_header_memory_h+:} false; then :
27730 $as_echo_n "(cached) " >&6
27731else
27732
27733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27734/* end confdefs.h. */
27735
27736
27737#include <memory.h>
27738
27739int main (void)
27740{
27741
27742 void *p = malloc(10);
27743 void *q = calloc(10,10);
27744 free(p);
27745 free(q);
27746
27747 ;
27748 return 0;
27749}
27750
27751_ACEOF
27752if ac_fn_c_try_compile "$LINENO"; then :
27753
27754 curl_cv_header_memory_h="yes"
27755
27756else
27757
27758 curl_cv_header_memory_h="no"
27759
27760fi
27761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762
27763fi
27764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27765$as_echo "$curl_cv_header_memory_h" >&6; }
27766 if test "$curl_cv_header_memory_h" = "yes"; then
27767
27768cat >>confdefs.h <<_ACEOF
27769#define HAVE_MEMORY_H 1
27770_ACEOF
27771
27772 #
27773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774/* end confdefs.h. */
27775
27776
27777#include <stdlib.h>
27778
27779int main (void)
27780{
27781
27782 void *p = malloc(10);
27783 void *q = calloc(10,10);
27784 free(p);
27785 free(q);
27786
27787 ;
27788 return 0;
27789}
27790
27791_ACEOF
27792if ac_fn_c_try_compile "$LINENO"; then :
27793
27794 curl_cv_need_header_memory_h="no"
27795
27796else
27797
27798 curl_cv_need_header_memory_h="yes"
27799
27800fi
27801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802 #
27803 case "$curl_cv_need_header_memory_h" in
27804 yes)
27805
27806cat >>confdefs.h <<_ACEOF
27807#define NEED_MEMORY_H 1
27808_ACEOF
27809
27810 ;;
27811 esac
27812 fi
27813
27814
27815for ac_header in sys/types.h \
27816 sys/time.h \
27817 sys/select.h \
27818 sys/socket.h \
27819 sys/ioctl.h \
27820 sys/uio.h \
27821 assert.h \
27822 unistd.h \
27823 stdlib.h \
27824 limits.h \
27825 arpa/inet.h \
27826 net/if.h \
27827 netinet/in.h \
27828 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010027829 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070027830 netinet/tcp.h \
27831 netdb.h \
27832 sys/sockio.h \
27833 sys/stat.h \
27834 sys/param.h \
27835 termios.h \
27836 termio.h \
27837 sgtty.h \
27838 fcntl.h \
27839 alloca.h \
27840 time.h \
27841 io.h \
27842 pwd.h \
27843 utime.h \
27844 sys/utime.h \
27845 sys/poll.h \
27846 poll.h \
27847 socket.h \
27848 sys/resource.h \
27849 libgen.h \
27850 locale.h \
27851 errno.h \
27852 stdbool.h \
27853 arpa/tftp.h \
27854 sys/filio.h \
27855 sys/wait.h \
27856 setjmp.h
27857do :
27858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27859ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27860#ifdef HAVE_SYS_TYPES_H
27861#include <sys/types.h>
27862#endif
27863#ifdef HAVE_SYS_TIME_H
27864#include <sys/time.h>
27865#endif
27866#ifdef HAVE_SYS_SELECT_H
27867#include <sys/select.h>
27868#endif
27869#ifdef HAVE_SYS_SOCKET_H
27870#include <sys/socket.h>
27871#endif
27872#ifdef HAVE_NETINET_IN_H
27873#include <netinet/in.h>
27874#endif
27875#ifdef HAVE_SYS_UN_H
27876#include <sys/un.h>
27877#endif
27878
27879
27880"
27881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27882 cat >>confdefs.h <<_ACEOF
27883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27884_ACEOF
27885
27886fi
27887
27888done
27889
27890
27891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27892$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27893if ${ac_cv_c_const+:} false; then :
27894 $as_echo_n "(cached) " >&6
27895else
27896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27897/* end confdefs.h. */
27898
27899int main (void)
27900{
27901
27902#ifndef __cplusplus
27903 /* Ultrix mips cc rejects this sort of thing. */
27904 typedef int charset[2];
27905 const charset cs = { 0, 0 };
27906 /* SunOS 4.1.1 cc rejects this. */
27907 char const *const *pcpcc;
27908 char **ppc;
27909 /* NEC SVR4.0.2 mips cc rejects this. */
27910 struct point {int x, y;};
27911 static struct point const zero = {0,0};
27912 /* AIX XL C 1.02.0.0 rejects this.
27913 It does not let you subtract one const X* pointer from another in
27914 an arm of an if-expression whose if-part is not a constant
27915 expression */
27916 const char *g = "string";
27917 pcpcc = &g + (g ? g-g : 0);
27918 /* HPUX 7.0 cc rejects these. */
27919 ++pcpcc;
27920 ppc = (char**) pcpcc;
27921 pcpcc = (char const *const *) ppc;
27922 { /* SCO 3.2v4 cc rejects this sort of thing. */
27923 char tx;
27924 char *t = &tx;
27925 char const *s = 0 ? (char *) 0 : (char const *) 0;
27926
27927 *t++ = 0;
27928 if (s) return 0;
27929 }
27930 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27931 int x[] = {25, 17};
27932 const int *foo = &x[0];
27933 ++foo;
27934 }
27935 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27936 typedef const int *iptr;
27937 iptr p = 0;
27938 ++p;
27939 }
27940 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27941 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27942 struct s { int j; const int *ap[3]; } bx;
27943 struct s *b = &bx; b->j = 5;
27944 }
27945 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27946 const int foo = 10;
27947 if (!foo) return 0;
27948 }
27949 return !cs[0] && !zero.x;
27950#endif
27951
27952 ;
27953 return 0;
27954}
27955_ACEOF
27956if ac_fn_c_try_compile "$LINENO"; then :
27957 ac_cv_c_const=yes
27958else
27959 ac_cv_c_const=no
27960fi
27961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962fi
27963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27964$as_echo "$ac_cv_c_const" >&6; }
27965if test $ac_cv_c_const = no; then
27966
27967$as_echo "#define const /**/" >>confdefs.h
27968
27969fi
27970
27971
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27973$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27974if ${curl_cv_variadic_macros_c99+:} false; then :
27975 $as_echo_n "(cached) " >&6
27976else
27977
27978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979/* end confdefs.h. */
27980
27981
27982#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27983#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27984 int fun3(int arg1, int arg2, int arg3);
27985 int fun2(int arg1, int arg2);
27986 int fun3(int arg1, int arg2, int arg3)
27987 { return arg1 + arg2 + arg3; }
27988 int fun2(int arg1, int arg2)
27989 { return arg1 + arg2; }
27990
27991int main (void)
27992{
27993
27994 int res3 = c99_vmacro3(1, 2, 3);
27995 int res2 = c99_vmacro2(1, 2);
27996
27997 ;
27998 return 0;
27999}
28000
28001_ACEOF
28002if ac_fn_c_try_compile "$LINENO"; then :
28003
28004 curl_cv_variadic_macros_c99="yes"
28005
28006else
28007
28008 curl_cv_variadic_macros_c99="no"
28009
28010fi
28011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28012
28013fi
28014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28015$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28016 case "$curl_cv_variadic_macros_c99" in
28017 yes)
28018
28019cat >>confdefs.h <<_ACEOF
28020#define HAVE_VARIADIC_MACROS_C99 1
28021_ACEOF
28022
28023 ;;
28024 esac
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28026$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28027if ${curl_cv_variadic_macros_gcc+:} false; then :
28028 $as_echo_n "(cached) " >&6
28029else
28030
28031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28032/* end confdefs.h. */
28033
28034
28035#define gcc_vmacro3(first, args...) fun3(first, args)
28036#define gcc_vmacro2(first, args...) fun2(first, args)
28037 int fun3(int arg1, int arg2, int arg3);
28038 int fun2(int arg1, int arg2);
28039 int fun3(int arg1, int arg2, int arg3)
28040 { return arg1 + arg2 + arg3; }
28041 int fun2(int arg1, int arg2)
28042 { return arg1 + arg2; }
28043
28044int main (void)
28045{
28046
28047 int res3 = gcc_vmacro3(1, 2, 3);
28048 int res2 = gcc_vmacro2(1, 2);
28049
28050 ;
28051 return 0;
28052}
28053
28054_ACEOF
28055if ac_fn_c_try_compile "$LINENO"; then :
28056
28057 curl_cv_variadic_macros_gcc="yes"
28058
28059else
28060
28061 curl_cv_variadic_macros_gcc="no"
28062
28063fi
28064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28065
28066fi
28067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28068$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28069 case "$curl_cv_variadic_macros_gcc" in
28070 yes)
28071
28072cat >>confdefs.h <<_ACEOF
28073#define HAVE_VARIADIC_MACROS_GCC 1
28074_ACEOF
28075
28076 ;;
28077 esac
28078
28079ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28080if test "x$ac_cv_type_size_t" = xyes; then :
28081
28082else
28083
28084cat >>confdefs.h <<_ACEOF
28085#define size_t unsigned int
28086_ACEOF
28087
28088fi
28089
28090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28091$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28092if ${ac_cv_header_time+:} false; then :
28093 $as_echo_n "(cached) " >&6
28094else
28095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28096/* end confdefs.h. */
28097#include <sys/types.h>
28098#include <sys/time.h>
28099#include <time.h>
28100
28101int main (void)
28102{
28103if ((struct tm *) 0)
28104return 0;
28105 ;
28106 return 0;
28107}
28108_ACEOF
28109if ac_fn_c_try_compile "$LINENO"; then :
28110 ac_cv_header_time=yes
28111else
28112 ac_cv_header_time=no
28113fi
28114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28115fi
28116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28117$as_echo "$ac_cv_header_time" >&6; }
28118if test $ac_cv_header_time = yes; then
28119
28120$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28121
28122fi
28123
28124
28125 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28126do :
28127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28128ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28129if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28130 cat >>confdefs.h <<_ACEOF
28131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28132_ACEOF
28133
28134fi
28135
28136done
28137
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28139$as_echo_n "checking for struct timeval... " >&6; }
28140if ${curl_cv_struct_timeval+:} false; then :
28141 $as_echo_n "(cached) " >&6
28142else
28143
28144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28145/* end confdefs.h. */
28146
28147
28148#undef inline
28149#ifdef HAVE_WINDOWS_H
28150#ifndef WIN32_LEAN_AND_MEAN
28151#define WIN32_LEAN_AND_MEAN
28152#endif
28153#include <windows.h>
28154#ifdef HAVE_WINSOCK2_H
28155#include <winsock2.h>
28156#else
28157#ifdef HAVE_WINSOCK_H
28158#include <winsock.h>
28159#endif
28160#endif
28161#endif
28162#ifdef HAVE_SYS_TYPES_H
28163#include <sys/types.h>
28164#endif
28165#ifdef HAVE_SYS_TIME_H
28166#include <sys/time.h>
28167#ifdef TIME_WITH_SYS_TIME
28168#include <time.h>
28169#endif
28170#else
28171#ifdef HAVE_TIME_H
28172#include <time.h>
28173#endif
28174#endif
28175#ifdef HAVE_SYS_SOCKET_H
28176#include <sys/socket.h>
28177#endif
28178
28179int main (void)
28180{
28181
28182 struct timeval ts;
28183 ts.tv_sec = 0;
28184 ts.tv_usec = 0;
28185
28186 ;
28187 return 0;
28188}
28189
28190_ACEOF
28191if ac_fn_c_try_compile "$LINENO"; then :
28192
28193 curl_cv_struct_timeval="yes"
28194
28195else
28196
28197 curl_cv_struct_timeval="no"
28198
28199fi
28200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201
28202fi
28203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28204$as_echo "$curl_cv_struct_timeval" >&6; }
28205 case "$curl_cv_struct_timeval" in
28206 yes)
28207
28208cat >>confdefs.h <<_ACEOF
28209#define HAVE_STRUCT_TIMEVAL 1
28210_ACEOF
28211
28212 ;;
28213 esac
28214
28215
28216
28217 if test "x$cross_compiling" != xyes; then
28218
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28220$as_echo_n "checking run-time libs availability... " >&6; }
28221 if test "$cross_compiling" = yes; then :
28222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28224as_fn_error $? "cannot run test program while cross compiling
28225See \`config.log' for more details" "$LINENO" 5; }
28226else
28227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28228/* end confdefs.h. */
28229
28230main()
28231{
28232 return 0;
28233}
28234
28235_ACEOF
28236if ac_fn_c_try_run "$LINENO"; then :
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28238$as_echo "fine" >&6; }
28239else
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28241$as_echo "failed" >&6; }
28242 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28243
28244fi
28245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28246 conftest.$ac_objext conftest.beam conftest.$ac_ext
28247fi
28248
28249
28250 fi
28251
28252
28253# The cast to long int works around a bug in the HP C Compiler
28254# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28255# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28256# This bug is HP SR number 8606223364.
28257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28258$as_echo_n "checking size of size_t... " >&6; }
28259if ${ac_cv_sizeof_size_t+:} false; then :
28260 $as_echo_n "(cached) " >&6
28261else
28262 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28263
28264else
28265 if test "$ac_cv_type_size_t" = yes; then
28266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28268as_fn_error 77 "cannot compute sizeof (size_t)
28269See \`config.log' for more details" "$LINENO" 5; }
28270 else
28271 ac_cv_sizeof_size_t=0
28272 fi
28273fi
28274
28275fi
28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28277$as_echo "$ac_cv_sizeof_size_t" >&6; }
28278
28279
28280
28281cat >>confdefs.h <<_ACEOF
28282#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28283_ACEOF
28284
28285
28286# The cast to long int works around a bug in the HP C Compiler
28287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28289# This bug is HP SR number 8606223364.
28290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28291$as_echo_n "checking size of long... " >&6; }
28292if ${ac_cv_sizeof_long+:} false; then :
28293 $as_echo_n "(cached) " >&6
28294else
28295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28296
28297else
28298 if test "$ac_cv_type_long" = yes; then
28299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28301as_fn_error 77 "cannot compute sizeof (long)
28302See \`config.log' for more details" "$LINENO" 5; }
28303 else
28304 ac_cv_sizeof_long=0
28305 fi
28306fi
28307
28308fi
28309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28310$as_echo "$ac_cv_sizeof_long" >&6; }
28311
28312
28313
28314cat >>confdefs.h <<_ACEOF
28315#define SIZEOF_LONG $ac_cv_sizeof_long
28316_ACEOF
28317
28318
28319# The cast to long int works around a bug in the HP C Compiler
28320# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28321# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28322# This bug is HP SR number 8606223364.
28323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28324$as_echo_n "checking size of int... " >&6; }
28325if ${ac_cv_sizeof_int+:} false; then :
28326 $as_echo_n "(cached) " >&6
28327else
28328 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28329
28330else
28331 if test "$ac_cv_type_int" = yes; then
28332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28334as_fn_error 77 "cannot compute sizeof (int)
28335See \`config.log' for more details" "$LINENO" 5; }
28336 else
28337 ac_cv_sizeof_int=0
28338 fi
28339fi
28340
28341fi
28342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28343$as_echo "$ac_cv_sizeof_int" >&6; }
28344
28345
28346
28347cat >>confdefs.h <<_ACEOF
28348#define SIZEOF_INT $ac_cv_sizeof_int
28349_ACEOF
28350
28351
28352# The cast to long int works around a bug in the HP C Compiler
28353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28355# This bug is HP SR number 8606223364.
28356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28357$as_echo_n "checking size of short... " >&6; }
28358if ${ac_cv_sizeof_short+:} false; then :
28359 $as_echo_n "(cached) " >&6
28360else
28361 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28362
28363else
28364 if test "$ac_cv_type_short" = yes; then
28365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28367as_fn_error 77 "cannot compute sizeof (short)
28368See \`config.log' for more details" "$LINENO" 5; }
28369 else
28370 ac_cv_sizeof_short=0
28371 fi
28372fi
28373
28374fi
28375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28376$as_echo "$ac_cv_sizeof_short" >&6; }
28377
28378
28379
28380cat >>confdefs.h <<_ACEOF
28381#define SIZEOF_SHORT $ac_cv_sizeof_short
28382_ACEOF
28383
28384
Elliott Hughes82be86d2017-09-20 17:00:17 -070028385# The cast to long int works around a bug in the HP C Compiler
28386# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28387# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28388# This bug is HP SR number 8606223364.
28389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28390$as_echo_n "checking size of time_t... " >&6; }
28391if ${ac_cv_sizeof_time_t+:} false; then :
28392 $as_echo_n "(cached) " >&6
28393else
28394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28395
28396else
28397 if test "$ac_cv_type_time_t" = yes; then
28398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28400as_fn_error 77 "cannot compute sizeof (time_t)
28401See \`config.log' for more details" "$LINENO" 5; }
28402 else
28403 ac_cv_sizeof_time_t=0
28404 fi
28405fi
28406
28407fi
28408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28409$as_echo "$ac_cv_sizeof_time_t" >&6; }
28410
28411
28412
28413cat >>confdefs.h <<_ACEOF
28414#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28415_ACEOF
28416
28417
28418# The cast to long int works around a bug in the HP C Compiler
28419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28421# This bug is HP SR number 8606223364.
28422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28423$as_echo_n "checking size of off_t... " >&6; }
28424if ${ac_cv_sizeof_off_t+:} false; then :
28425 $as_echo_n "(cached) " >&6
28426else
28427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28428
28429else
28430 if test "$ac_cv_type_off_t" = yes; then
28431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28433as_fn_error 77 "cannot compute sizeof (off_t)
28434See \`config.log' for more details" "$LINENO" 5; }
28435 else
28436 ac_cv_sizeof_off_t=0
28437 fi
28438fi
28439
28440fi
28441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28442$as_echo "$ac_cv_sizeof_off_t" >&6; }
28443
28444
28445
28446cat >>confdefs.h <<_ACEOF
28447#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28448_ACEOF
28449
28450
28451
Alex Deymo486467e2017-12-19 19:04:07 +010028452o=$CPPFLAGS
28453CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28454# The cast to long int works around a bug in the HP C Compiler
28455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28457# This bug is HP SR number 8606223364.
28458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28459$as_echo_n "checking size of curl_off_t... " >&6; }
28460if ${ac_cv_sizeof_curl_off_t+:} false; then :
28461 $as_echo_n "(cached) " >&6
28462else
28463 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28464#include <curl/system.h>
28465
28466"; then :
28467
28468else
28469 if test "$ac_cv_type_curl_off_t" = yes; then
28470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28472as_fn_error 77 "cannot compute sizeof (curl_off_t)
28473See \`config.log' for more details" "$LINENO" 5; }
28474 else
28475 ac_cv_sizeof_curl_off_t=0
28476 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070028477fi
28478
Alex Deymo486467e2017-12-19 19:04:07 +010028479fi
28480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28481$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28482
28483
28484
28485cat >>confdefs.h <<_ACEOF
28486#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28487_ACEOF
28488
28489
28490CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028491
28492ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28493if test "x$ac_cv_type_long_long" = xyes; then :
28494
28495$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28496
28497 longlong="yes"
28498
28499fi
28500
28501
28502if test "xyes" = "x$longlong"; then
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28504$as_echo_n "checking if numberLL works... " >&6; }
28505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506/* end confdefs.h. */
28507
28508
28509
28510int main (void)
28511{
28512
28513 long long val = 1000LL;
28514
28515 ;
28516 return 0;
28517}
28518
28519_ACEOF
28520if ac_fn_c_try_compile "$LINENO"; then :
28521
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28523$as_echo "yes" >&6; }
28524
28525$as_echo "#define HAVE_LL 1" >>confdefs.h
28526
28527
28528else
28529
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28531$as_echo "no" >&6; }
28532
28533fi
28534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535fi
28536
28537
28538# check for ssize_t
28539ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28540if test "x$ac_cv_type_ssize_t" = xyes; then :
28541
28542else
28543
28544$as_echo "#define ssize_t int" >>confdefs.h
28545
28546fi
28547
28548
28549# check for bool type
28550ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28551#ifdef HAVE_SYS_TYPES_H
28552#include <sys/types.h>
28553#endif
28554#ifdef HAVE_STDBOOL_H
28555#include <stdbool.h>
28556#endif
28557
28558"
28559if test "x$ac_cv_type_bool" = xyes; then :
28560
28561
28562$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28563
28564
28565fi
28566
28567
28568
28569curl_includes_ws2tcpip="\
28570/* includes start */
28571#ifdef HAVE_WINDOWS_H
28572# ifndef WIN32_LEAN_AND_MEAN
28573# define WIN32_LEAN_AND_MEAN
28574# endif
28575# include <windows.h>
28576# ifdef HAVE_WINSOCK2_H
28577# include <winsock2.h>
28578# ifdef HAVE_WS2TCPIP_H
28579# include <ws2tcpip.h>
28580# endif
28581# endif
28582#endif
28583/* includes end */"
28584
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28586$as_echo_n "checking for windows.h... " >&6; }
28587if ${curl_cv_header_windows_h+:} false; then :
28588 $as_echo_n "(cached) " >&6
28589else
28590
28591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28592/* end confdefs.h. */
28593
28594
28595#undef inline
28596#ifndef WIN32_LEAN_AND_MEAN
28597#define WIN32_LEAN_AND_MEAN
28598#endif
28599#include <windows.h>
28600
28601int main (void)
28602{
28603
28604#if defined(__CYGWIN__) || defined(__CEGCC__)
28605 HAVE_WINDOWS_H shall not be defined.
28606#else
28607 int dummy=2*WINVER;
28608#endif
28609
28610 ;
28611 return 0;
28612}
28613
28614_ACEOF
28615if ac_fn_c_try_compile "$LINENO"; then :
28616
28617 curl_cv_header_windows_h="yes"
28618
28619else
28620
28621 curl_cv_header_windows_h="no"
28622
28623fi
28624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625
28626fi
28627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28628$as_echo "$curl_cv_header_windows_h" >&6; }
28629 case "$curl_cv_header_windows_h" in
28630 yes)
28631
28632cat >>confdefs.h <<_ACEOF
28633#define HAVE_WINDOWS_H 1
28634_ACEOF
28635
28636 ;;
28637 esac
28638
28639
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28641$as_echo_n "checking for winsock2.h... " >&6; }
28642if ${curl_cv_header_winsock2_h+:} false; then :
28643 $as_echo_n "(cached) " >&6
28644else
28645
28646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28647/* end confdefs.h. */
28648
28649
28650#undef inline
28651#ifndef WIN32_LEAN_AND_MEAN
28652#define WIN32_LEAN_AND_MEAN
28653#endif
28654#include <windows.h>
28655#include <winsock2.h>
28656
28657int main (void)
28658{
28659
28660#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28661 HAVE_WINSOCK2_H shall not be defined.
28662#else
28663 int dummy=2*IPPROTO_ESP;
28664#endif
28665
28666 ;
28667 return 0;
28668}
28669
28670_ACEOF
28671if ac_fn_c_try_compile "$LINENO"; then :
28672
28673 curl_cv_header_winsock2_h="yes"
28674
28675else
28676
28677 curl_cv_header_winsock2_h="no"
28678
28679fi
28680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28681
28682fi
28683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28684$as_echo "$curl_cv_header_winsock2_h" >&6; }
28685 case "$curl_cv_header_winsock2_h" in
28686 yes)
28687
28688cat >>confdefs.h <<_ACEOF
28689#define HAVE_WINSOCK2_H 1
28690_ACEOF
28691
28692 ;;
28693 esac
28694
28695
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28697$as_echo_n "checking for ws2tcpip.h... " >&6; }
28698if ${curl_cv_header_ws2tcpip_h+:} false; then :
28699 $as_echo_n "(cached) " >&6
28700else
28701
28702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28703/* end confdefs.h. */
28704
28705
28706#undef inline
28707#ifndef WIN32_LEAN_AND_MEAN
28708#define WIN32_LEAN_AND_MEAN
28709#endif
28710#include <windows.h>
28711#include <winsock2.h>
28712#include <ws2tcpip.h>
28713
28714int main (void)
28715{
28716
28717#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28718 HAVE_WS2TCPIP_H shall not be defined.
28719#else
28720 int dummy=2*IP_PKTINFO;
28721#endif
28722
28723 ;
28724 return 0;
28725}
28726
28727_ACEOF
28728if ac_fn_c_try_compile "$LINENO"; then :
28729
28730 curl_cv_header_ws2tcpip_h="yes"
28731
28732else
28733
28734 curl_cv_header_ws2tcpip_h="no"
28735
28736fi
28737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28738
28739fi
28740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28741$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28742 case "$curl_cv_header_ws2tcpip_h" in
28743 yes)
28744
28745cat >>confdefs.h <<_ACEOF
28746#define HAVE_WS2TCPIP_H 1
28747_ACEOF
28748
28749 ;;
28750 esac
28751
28752
28753
28754curl_includes_sys_socket="\
28755/* includes start */
28756#ifdef HAVE_SYS_TYPES_H
28757# include <sys/types.h>
28758#endif
28759#ifdef HAVE_SYS_SOCKET_H
28760# include <sys/socket.h>
28761#endif
28762/* includes end */"
28763 for ac_header in sys/types.h sys/socket.h
28764do :
28765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28766ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28767"
28768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28769 cat >>confdefs.h <<_ACEOF
28770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28771_ACEOF
28772
28773fi
28774
28775done
28776
28777
28778
28779curl_preprocess_callconv="\
28780/* preprocess start */
28781#ifdef HAVE_WINDOWS_H
28782# define FUNCALLCONV __stdcall
28783#else
28784# define FUNCALLCONV
28785#endif
28786/* preprocess end */"
28787
28788
28789 #
28790 #
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28792$as_echo_n "checking for curl_socklen_t data type... " >&6; }
28793 curl_typeof_curl_socklen_t="unknown"
28794 for arg1 in int SOCKET; do
28795 for arg2 in 'struct sockaddr' void; do
28796 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28797 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799/* end confdefs.h. */
28800
28801
28802 $curl_includes_ws2tcpip
28803 $curl_includes_sys_socket
28804 $curl_preprocess_callconv
28805 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28806
28807int main (void)
28808{
28809
28810 $t *lenptr = 0;
28811 if(0 != getpeername(0, 0, lenptr))
28812 return 1;
28813
28814 ;
28815 return 0;
28816}
28817
28818_ACEOF
28819if ac_fn_c_try_compile "$LINENO"; then :
28820
28821 curl_typeof_curl_socklen_t="$t"
28822
28823fi
28824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28825 fi
28826 done
28827 done
28828 done
28829 for t in socklen_t int; do
28830 if test "$curl_typeof_curl_socklen_t" = "void"; then
28831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28832/* end confdefs.h. */
28833
28834
28835 $curl_includes_sys_socket
28836 typedef $t curl_socklen_t;
28837
28838int main (void)
28839{
28840
28841 curl_socklen_t dummy;
28842
28843 ;
28844 return 0;
28845}
28846
28847_ACEOF
28848if ac_fn_c_try_compile "$LINENO"; then :
28849
28850 curl_typeof_curl_socklen_t="$t"
28851
28852fi
28853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 fi
28855 done
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28857$as_echo "$curl_typeof_curl_socklen_t" >&6; }
28858 if test "$curl_typeof_curl_socklen_t" = "void" ||
28859 test "$curl_typeof_curl_socklen_t" = "unknown"; then
28860 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28861 fi
28862 #
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28864$as_echo_n "checking size of curl_socklen_t... " >&6; }
28865 curl_sizeof_curl_socklen_t="unknown"
28866 curl_pull_headers_socklen_t="unknown"
28867 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28868 tst_pull_header_checks='none ws2tcpip'
28869 tst_size_checks='4'
28870 else
28871 tst_pull_header_checks='none systypes syssocket'
28872 tst_size_checks='4 8 2'
28873 fi
28874 for tst_size in $tst_size_checks; do
28875 for tst_pull_headers in $tst_pull_header_checks; do
28876 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28877 case $tst_pull_headers in
28878 ws2tcpip)
28879 tmp_includes="$curl_includes_ws2tcpip"
28880 ;;
28881 systypes)
28882 tmp_includes="$curl_includes_sys_types"
28883 ;;
28884 syssocket)
28885 tmp_includes="$curl_includes_sys_socket"
28886 ;;
28887 *)
28888 tmp_includes=""
28889 ;;
28890 esac
28891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28892/* end confdefs.h. */
28893
28894
28895 $tmp_includes
28896 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28897 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28898
28899int main (void)
28900{
28901
28902 curl_socklen_t dummy;
28903
28904 ;
28905 return 0;
28906}
28907
28908_ACEOF
28909if ac_fn_c_try_compile "$LINENO"; then :
28910
28911 curl_sizeof_curl_socklen_t="$tst_size"
28912 curl_pull_headers_socklen_t="$tst_pull_headers"
28913
28914fi
28915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28916 fi
28917 done
28918 done
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28920$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28921 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28922 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28923 fi
28924 #
28925 case $curl_pull_headers_socklen_t in
28926 ws2tcpip)
28927
28928cat >>confdefs.h <<_EOF
28929#define CURL_PULL_WS2TCPIP_H 1
28930_EOF
28931
28932 ;;
28933 systypes)
28934
28935cat >>confdefs.h <<_EOF
28936#define CURL_PULL_SYS_TYPES_H 1
28937_EOF
28938
28939 ;;
28940 syssocket)
28941
28942cat >>confdefs.h <<_EOF
28943#define CURL_PULL_SYS_TYPES_H 1
28944_EOF
28945
28946
28947cat >>confdefs.h <<_EOF
28948#define CURL_PULL_SYS_SOCKET_H 1
28949_EOF
28950
28951 ;;
28952 esac
28953
28954cat >>confdefs.h <<_EOF
28955#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28956_EOF
28957
28958
28959cat >>confdefs.h <<_EOF
28960#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28961_EOF
28962
28963
28964
28965
28966curl_includes_poll="\
28967/* includes start */
28968#ifdef HAVE_SYS_TYPES_H
28969# include <sys/types.h>
28970#endif
28971#ifdef HAVE_POLL_H
28972# include <poll.h>
28973#endif
28974#ifdef HAVE_SYS_POLL_H
28975# include <sys/poll.h>
28976#endif
28977/* includes end */"
28978 for ac_header in sys/types.h poll.h sys/poll.h
28979do :
28980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28981ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28982"
28983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28984 cat >>confdefs.h <<_ACEOF
28985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28986_ACEOF
28987
28988fi
28989
28990done
28991
28992
28993
28994 #
28995 tst_poll_events_macro_defined="unknown"
28996 #
28997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28998/* end confdefs.h. */
28999
29000
29001 $curl_includes_poll
29002
29003int main (void)
29004{
29005
29006#if defined(events) || defined(revents)
29007 return 0;
29008#else
29009 force compilation error
29010#endif
29011
29012 ;
29013 return 0;
29014}
29015
29016_ACEOF
29017if ac_fn_c_try_compile "$LINENO"; then :
29018
29019 tst_poll_events_macro_defined="yes"
29020
29021else
29022
29023 tst_poll_events_macro_defined="no"
29024
29025fi
29026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29027 #
29028 if test "$tst_poll_events_macro_defined" = "yes"; then
29029 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29030
29031cat >>confdefs.h <<_EOF
29032#define CURL_PULL_SYS_POLL_H 1
29033_EOF
29034
29035 fi
29036 fi
29037 #
29038
29039
29040
29041 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29042#undef inline
29043#ifdef HAVE_WINDOWS_H
29044#ifndef WIN32_LEAN_AND_MEAN
29045#define WIN32_LEAN_AND_MEAN
29046#endif
29047#include <windows.h>
29048#ifdef HAVE_WINSOCK2_H
29049#include <winsock2.h>
29050#else
29051#ifdef HAVE_WINSOCK_H
29052#include <winsock.h>
29053#endif
29054#endif
29055#else
29056#ifdef HAVE_SYS_TYPES_H
29057#include <sys/types.h>
29058#endif
29059#ifdef HAVE_SYS_SOCKET_H
29060#include <sys/socket.h>
29061#endif
29062#ifdef HAVE_NETINET_IN_H
29063#include <netinet/in.h>
29064#endif
29065#ifdef HAVE_ARPA_INET_H
29066#include <arpa/inet.h>
29067#endif
29068#endif
29069
29070"
29071if test "x$ac_cv_type_in_addr_t" = xyes; then :
29072
29073else
29074
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29076$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29077if ${curl_cv_in_addr_t_equiv+:} false; then :
29078 $as_echo_n "(cached) " >&6
29079else
29080
29081 curl_cv_in_addr_t_equiv="unknown"
29082 for t in "unsigned long" int size_t unsigned long; do
29083 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29085/* end confdefs.h. */
29086
29087
29088#undef inline
29089#ifdef HAVE_WINDOWS_H
29090#ifndef WIN32_LEAN_AND_MEAN
29091#define WIN32_LEAN_AND_MEAN
29092#endif
29093#include <windows.h>
29094#ifdef HAVE_WINSOCK2_H
29095#include <winsock2.h>
29096#else
29097#ifdef HAVE_WINSOCK_H
29098#include <winsock.h>
29099#endif
29100#endif
29101#else
29102#ifdef HAVE_SYS_TYPES_H
29103#include <sys/types.h>
29104#endif
29105#ifdef HAVE_SYS_SOCKET_H
29106#include <sys/socket.h>
29107#endif
29108#ifdef HAVE_NETINET_IN_H
29109#include <netinet/in.h>
29110#endif
29111#ifdef HAVE_ARPA_INET_H
29112#include <arpa/inet.h>
29113#endif
29114#endif
29115
29116int main (void)
29117{
29118
29119 $t data = inet_addr ("1.2.3.4");
29120
29121 ;
29122 return 0;
29123}
29124
29125_ACEOF
29126if ac_fn_c_try_link "$LINENO"; then :
29127
29128 curl_cv_in_addr_t_equiv="$t"
29129
29130fi
29131rm -f core conftest.err conftest.$ac_objext \
29132 conftest$ac_exeext conftest.$ac_ext
29133 fi
29134 done
29135
29136fi
29137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29138$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29139 case "$curl_cv_in_addr_t_equiv" in
29140 unknown)
29141 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29142 ;;
29143 *)
29144
29145cat >>confdefs.h <<_ACEOF
29146#define in_addr_t $curl_cv_in_addr_t_equiv
29147_ACEOF
29148
29149 ;;
29150 esac
29151
29152fi
29153
29154
29155
29156
29157 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29158#undef inline
29159#ifdef HAVE_WINDOWS_H
29160#ifndef WIN32_LEAN_AND_MEAN
29161#define WIN32_LEAN_AND_MEAN
29162#endif
29163#include <windows.h>
29164#ifdef HAVE_WINSOCK2_H
29165#include <winsock2.h>
29166#endif
29167#else
29168#ifdef HAVE_SYS_TYPES_H
29169#include <sys/types.h>
29170#endif
29171#ifdef HAVE_SYS_SOCKET_H
29172#include <sys/socket.h>
29173#endif
29174#ifdef HAVE_NETINET_IN_H
29175#include <netinet/in.h>
29176#endif
29177#ifdef HAVE_ARPA_INET_H
29178#include <arpa/inet.h>
29179#endif
29180#endif
29181
29182"
29183if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29184
29185$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29186
29187fi
29188
29189
29190
29191
29192 for ac_header in signal.h
29193do :
29194 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29195if test "x$ac_cv_header_signal_h" = xyes; then :
29196 cat >>confdefs.h <<_ACEOF
29197#define HAVE_SIGNAL_H 1
29198_ACEOF
29199
29200fi
29201
29202done
29203
29204 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29205#ifdef HAVE_SIGNAL_H
29206#include <signal.h>
29207#endif
29208
29209"
29210if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29211
29212
29213$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29214
29215
29216fi
29217
29218 case "$ac_cv_type_sig_atomic_t" in
29219 yes)
29220 #
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29222$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29224/* end confdefs.h. */
29225
29226
29227#ifdef HAVE_SIGNAL_H
29228#include <signal.h>
29229#endif
29230
29231int main (void)
29232{
29233
29234 static volatile sig_atomic_t dummy = 0;
29235
29236 ;
29237 return 0;
29238}
29239
29240_ACEOF
29241if ac_fn_c_try_link "$LINENO"; then :
29242
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29244$as_echo "no" >&6; }
29245 curl_cv_sig_atomic_t_volatile="no"
29246
29247else
29248
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29250$as_echo "yes" >&6; }
29251 curl_cv_sig_atomic_t_volatile="yes"
29252
29253fi
29254rm -f core conftest.err conftest.$ac_objext \
29255 conftest$ac_exeext conftest.$ac_ext
29256 #
29257 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29258
29259$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29260
29261 fi
29262 ;;
29263 esac
29264
29265
29266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29267$as_echo_n "checking return type of signal handlers... " >&6; }
29268if ${ac_cv_type_signal+:} false; then :
29269 $as_echo_n "(cached) " >&6
29270else
29271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29272/* end confdefs.h. */
29273#include <sys/types.h>
29274#include <signal.h>
29275
29276int main (void)
29277{
29278return *(signal (0, 0)) (0) == 1;
29279 ;
29280 return 0;
29281}
29282_ACEOF
29283if ac_fn_c_try_compile "$LINENO"; then :
29284 ac_cv_type_signal=int
29285else
29286 ac_cv_type_signal=void
29287fi
29288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29289fi
29290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29291$as_echo "$ac_cv_type_signal" >&6; }
29292
29293cat >>confdefs.h <<_ACEOF
29294#define RETSIGTYPE $ac_cv_type_signal
29295_ACEOF
29296
29297
29298
29299
29300 for ac_header in sys/select.h sys/socket.h
29301do :
29302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29303ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29305 cat >>confdefs.h <<_ACEOF
29306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29307_ACEOF
29308
29309fi
29310
29311done
29312
29313 #
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29315$as_echo_n "checking for select... " >&6; }
29316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29317/* end confdefs.h. */
29318
29319
29320#undef inline
29321#ifdef HAVE_WINDOWS_H
29322#ifndef WIN32_LEAN_AND_MEAN
29323#define WIN32_LEAN_AND_MEAN
29324#endif
29325#include <windows.h>
29326#ifdef HAVE_WINSOCK2_H
29327#include <winsock2.h>
29328#else
29329#ifdef HAVE_WINSOCK_H
29330#include <winsock.h>
29331#endif
29332#endif
29333#endif
29334#ifdef HAVE_SYS_TYPES_H
29335#include <sys/types.h>
29336#endif
29337#ifdef HAVE_SYS_TIME_H
29338#include <sys/time.h>
29339#ifdef TIME_WITH_SYS_TIME
29340#include <time.h>
29341#endif
29342#else
29343#ifdef HAVE_TIME_H
29344#include <time.h>
29345#endif
29346#endif
29347#ifndef HAVE_WINDOWS_H
29348#ifdef HAVE_SYS_SELECT_H
29349#include <sys/select.h>
29350#endif
29351#ifdef HAVE_SYS_SOCKET_H
29352#include <sys/socket.h>
29353#endif
29354#endif
29355
29356int main (void)
29357{
29358
29359 select(0, 0, 0, 0, 0);
29360
29361 ;
29362 return 0;
29363}
29364
29365_ACEOF
29366if ac_fn_c_try_link "$LINENO"; then :
29367
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29369$as_echo "yes" >&6; }
29370 curl_cv_select="yes"
29371
29372else
29373
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29375$as_echo "no" >&6; }
29376 curl_cv_select="no"
29377
29378fi
29379rm -f core conftest.err conftest.$ac_objext \
29380 conftest$ac_exeext conftest.$ac_ext
29381 #
29382 if test "$curl_cv_select" = "yes"; then
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29384$as_echo_n "checking types of args and return type for select... " >&6; }
29385if ${curl_cv_func_select_args+:} false; then :
29386 $as_echo_n "(cached) " >&6
29387else
29388
29389 curl_cv_func_select_args="unknown"
29390 for sel_retv in 'int' 'ssize_t'; do
29391 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29392 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29393 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29394 if test "$curl_cv_func_select_args" = "unknown"; then
29395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29396/* end confdefs.h. */
29397
29398
29399#undef inline
29400#ifdef HAVE_WINDOWS_H
29401#ifndef WIN32_LEAN_AND_MEAN
29402#define WIN32_LEAN_AND_MEAN
29403#endif
29404#include <windows.h>
29405#ifdef HAVE_WINSOCK2_H
29406#include <winsock2.h>
29407#else
29408#ifdef HAVE_WINSOCK_H
29409#include <winsock.h>
29410#endif
29411#endif
29412#define SELECTCALLCONV PASCAL
29413#endif
29414#ifdef HAVE_SYS_TYPES_H
29415#include <sys/types.h>
29416#endif
29417#ifdef HAVE_SYS_TIME_H
29418#include <sys/time.h>
29419#ifdef TIME_WITH_SYS_TIME
29420#include <time.h>
29421#endif
29422#else
29423#ifdef HAVE_TIME_H
29424#include <time.h>
29425#endif
29426#endif
29427#ifndef HAVE_WINDOWS_H
29428#ifdef HAVE_SYS_SELECT_H
29429#include <sys/select.h>
29430#endif
29431#ifdef HAVE_SYS_SOCKET_H
29432#include <sys/socket.h>
29433#endif
29434#define SELECTCALLCONV
29435#endif
29436#ifndef HAVE_STRUCT_TIMEVAL
29437 struct timeval {
29438 long tv_sec;
29439 long tv_usec;
29440 };
29441#endif
29442 extern $sel_retv SELECTCALLCONV
29443#ifdef __ANDROID__
29444__attribute__((overloadable))
29445#endif
29446 select($sel_arg1,
29447 $sel_arg234,
29448 $sel_arg234,
29449 $sel_arg234,
29450 $sel_arg5);
29451
29452int main (void)
29453{
29454
29455 $sel_arg1 nfds=0;
29456 $sel_arg234 rfds=0;
29457 $sel_arg234 wfds=0;
29458 $sel_arg234 efds=0;
29459 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29460
29461 ;
29462 return 0;
29463}
29464
29465_ACEOF
29466if ac_fn_c_try_compile "$LINENO"; then :
29467
29468 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29469
29470fi
29471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29472 fi
29473 done
29474 done
29475 done
29476 done
29477
29478fi
29479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29480$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29481 if test "$curl_cv_func_select_args" = "unknown"; then
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29483$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29485$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29486 else
29487 select_prev_IFS=$IFS; IFS=','
29488 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29489 IFS=$select_prev_IFS
29490 shift
29491 #
29492 sel_qual_type_arg5=$3
29493 #
29494
29495cat >>confdefs.h <<_ACEOF
29496#define SELECT_TYPE_ARG1 $1
29497_ACEOF
29498
29499
29500cat >>confdefs.h <<_ACEOF
29501#define SELECT_TYPE_ARG234 $2
29502_ACEOF
29503
29504
29505cat >>confdefs.h <<_ACEOF
29506#define SELECT_TYPE_RETV $4
29507_ACEOF
29508
29509 #
29510 prev_sh_opts=$-
29511 #
29512 case $prev_sh_opts in
29513 *f*)
29514 ;;
29515 *)
29516 set -f
29517 ;;
29518 esac
29519 #
29520 case "$sel_qual_type_arg5" in
29521 const*)
29522 sel_qual_arg5=const
29523 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29524 ;;
29525 *)
29526 sel_qual_arg5=
29527 sel_type_arg5=$sel_qual_type_arg5
29528 ;;
29529 esac
29530 #
29531
29532cat >>confdefs.h <<_ACEOF
29533#define SELECT_QUAL_ARG5 $sel_qual_arg5
29534_ACEOF
29535
29536
29537cat >>confdefs.h <<_ACEOF
29538#define SELECT_TYPE_ARG5 $sel_type_arg5
29539_ACEOF
29540
29541 #
29542 case $prev_sh_opts in
29543 *f*)
29544 ;;
29545 *)
29546 set +f
29547 ;;
29548 esac
29549 #
29550
29551cat >>confdefs.h <<_ACEOF
29552#define HAVE_SELECT 1
29553_ACEOF
29554
29555 curl_cv_func_select="yes"
29556 fi
29557 fi
29558
29559
29560
29561 for ac_header in sys/types.h sys/socket.h
29562do :
29563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29564ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29566 cat >>confdefs.h <<_ACEOF
29567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29568_ACEOF
29569
29570fi
29571
29572done
29573
29574 #
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29576$as_echo_n "checking for recv... " >&6; }
29577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29578/* end confdefs.h. */
29579
29580
29581#undef inline
29582#ifdef HAVE_WINDOWS_H
29583#ifndef WIN32_LEAN_AND_MEAN
29584#define WIN32_LEAN_AND_MEAN
29585#endif
29586#include <windows.h>
29587#ifdef HAVE_WINSOCK2_H
29588#include <winsock2.h>
29589#else
29590#ifdef HAVE_WINSOCK_H
29591#include <winsock.h>
29592#endif
29593#endif
29594#else
29595#ifdef HAVE_SYS_TYPES_H
29596#include <sys/types.h>
29597#endif
29598#ifdef HAVE_SYS_SOCKET_H
29599#include <sys/socket.h>
29600#endif
29601#endif
29602
29603int main (void)
29604{
29605
29606 recv(0, 0, 0, 0);
29607
29608 ;
29609 return 0;
29610}
29611
29612_ACEOF
29613if ac_fn_c_try_link "$LINENO"; then :
29614
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29616$as_echo "yes" >&6; }
29617 curl_cv_recv="yes"
29618
29619else
29620
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29622$as_echo "no" >&6; }
29623 curl_cv_recv="no"
29624
29625fi
29626rm -f core conftest.err conftest.$ac_objext \
29627 conftest$ac_exeext conftest.$ac_ext
29628 #
29629 if test "$curl_cv_recv" = "yes"; then
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29631$as_echo_n "checking types of args and return type for recv... " >&6; }
29632if ${curl_cv_func_recv_args+:} false; then :
29633 $as_echo_n "(cached) " >&6
29634else
29635
29636 curl_cv_func_recv_args="unknown"
29637 for recv_retv in 'int' 'ssize_t'; do
29638 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29639 for recv_arg2 in 'char *' 'void *'; do
29640 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29641 for recv_arg4 in 'int' 'unsigned int'; do
29642 if test "$curl_cv_func_recv_args" = "unknown"; then
29643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29644/* end confdefs.h. */
29645
29646
29647#undef inline
29648#ifdef HAVE_WINDOWS_H
29649#ifndef WIN32_LEAN_AND_MEAN
29650#define WIN32_LEAN_AND_MEAN
29651#endif
29652#include <windows.h>
29653#ifdef HAVE_WINSOCK2_H
29654#include <winsock2.h>
29655#else
29656#ifdef HAVE_WINSOCK_H
29657#include <winsock.h>
29658#endif
29659#endif
29660#define RECVCALLCONV PASCAL
29661#else
29662#ifdef HAVE_SYS_TYPES_H
29663#include <sys/types.h>
29664#endif
29665#ifdef HAVE_SYS_SOCKET_H
29666#include <sys/socket.h>
29667#endif
29668#define RECVCALLCONV
29669#endif
29670 extern $recv_retv RECVCALLCONV
29671#ifdef __ANDROID__
29672__attribute__((overloadable))
29673#endif
29674 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29675
29676int main (void)
29677{
29678
29679 $recv_arg1 s=0;
29680 $recv_arg2 buf=0;
29681 $recv_arg3 len=0;
29682 $recv_arg4 flags=0;
29683 $recv_retv res = recv(s, buf, len, flags);
29684
29685 ;
29686 return 0;
29687}
29688
29689_ACEOF
29690if ac_fn_c_try_compile "$LINENO"; then :
29691
29692 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29693
29694fi
29695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29696 fi
29697 done
29698 done
29699 done
29700 done
29701 done
29702
29703fi
29704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29705$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29706 if test "$curl_cv_func_recv_args" = "unknown"; then
29707 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29708 else
29709 recv_prev_IFS=$IFS; IFS=','
29710 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29711 IFS=$recv_prev_IFS
29712 shift
29713 #
29714
29715cat >>confdefs.h <<_ACEOF
29716#define RECV_TYPE_ARG1 $1
29717_ACEOF
29718
29719
29720cat >>confdefs.h <<_ACEOF
29721#define RECV_TYPE_ARG2 $2
29722_ACEOF
29723
29724
29725cat >>confdefs.h <<_ACEOF
29726#define RECV_TYPE_ARG3 $3
29727_ACEOF
29728
29729
29730cat >>confdefs.h <<_ACEOF
29731#define RECV_TYPE_ARG4 $4
29732_ACEOF
29733
29734
29735cat >>confdefs.h <<_ACEOF
29736#define RECV_TYPE_RETV $5
29737_ACEOF
29738
29739 #
29740
29741cat >>confdefs.h <<_ACEOF
29742#define HAVE_RECV 1
29743_ACEOF
29744
29745 curl_cv_func_recv="yes"
29746 fi
29747 else
29748 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29749 fi
29750
29751
29752 for ac_header in sys/types.h sys/socket.h
29753do :
29754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29757 cat >>confdefs.h <<_ACEOF
29758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29759_ACEOF
29760
29761fi
29762
29763done
29764
29765 #
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29767$as_echo_n "checking for send... " >&6; }
29768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769/* end confdefs.h. */
29770
29771
29772#undef inline
29773#ifdef HAVE_WINDOWS_H
29774#ifndef WIN32_LEAN_AND_MEAN
29775#define WIN32_LEAN_AND_MEAN
29776#endif
29777#include <windows.h>
29778#ifdef HAVE_WINSOCK2_H
29779#include <winsock2.h>
29780#else
29781#ifdef HAVE_WINSOCK_H
29782#include <winsock.h>
29783#endif
29784#endif
29785#else
29786#ifdef HAVE_SYS_TYPES_H
29787#include <sys/types.h>
29788#endif
29789#ifdef HAVE_SYS_SOCKET_H
29790#include <sys/socket.h>
29791#endif
29792#endif
29793
29794int main (void)
29795{
29796
29797 send(0, 0, 0, 0);
29798
29799 ;
29800 return 0;
29801}
29802
29803_ACEOF
29804if ac_fn_c_try_link "$LINENO"; then :
29805
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29807$as_echo "yes" >&6; }
29808 curl_cv_send="yes"
29809
29810else
29811
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29813$as_echo "no" >&6; }
29814 curl_cv_send="no"
29815
29816fi
29817rm -f core conftest.err conftest.$ac_objext \
29818 conftest$ac_exeext conftest.$ac_ext
29819 #
29820 if test "$curl_cv_send" = "yes"; then
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29822$as_echo_n "checking types of args and return type for send... " >&6; }
29823if ${curl_cv_func_send_args+:} false; then :
29824 $as_echo_n "(cached) " >&6
29825else
29826
29827 curl_cv_func_send_args="unknown"
29828 for send_retv in 'int' 'ssize_t'; do
29829 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29830 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29831 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29832 for send_arg4 in 'int' 'unsigned int'; do
29833 if test "$curl_cv_func_send_args" = "unknown"; then
29834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29835/* end confdefs.h. */
29836
29837
29838#undef inline
29839#ifdef HAVE_WINDOWS_H
29840#ifndef WIN32_LEAN_AND_MEAN
29841#define WIN32_LEAN_AND_MEAN
29842#endif
29843#include <windows.h>
29844#ifdef HAVE_WINSOCK2_H
29845#include <winsock2.h>
29846#else
29847#ifdef HAVE_WINSOCK_H
29848#include <winsock.h>
29849#endif
29850#endif
29851#define SENDCALLCONV PASCAL
29852#else
29853#ifdef HAVE_SYS_TYPES_H
29854#include <sys/types.h>
29855#endif
29856#ifdef HAVE_SYS_SOCKET_H
29857#include <sys/socket.h>
29858#endif
29859#define SENDCALLCONV
29860#endif
29861 extern $send_retv SENDCALLCONV
29862#ifdef __ANDROID__
29863__attribute__((overloadable))
29864#endif
29865 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29866
29867int main (void)
29868{
29869
29870 $send_arg1 s=0;
29871 $send_arg3 len=0;
29872 $send_arg4 flags=0;
29873 $send_retv res = send(s, 0, len, flags);
29874
29875 ;
29876 return 0;
29877}
29878
29879_ACEOF
29880if ac_fn_c_try_compile "$LINENO"; then :
29881
29882 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29883
29884fi
29885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29886 fi
29887 done
29888 done
29889 done
29890 done
29891 done
29892
29893fi
29894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29895$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29896 if test "$curl_cv_func_send_args" = "unknown"; then
29897 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29898 else
29899 send_prev_IFS=$IFS; IFS=','
29900 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29901 IFS=$send_prev_IFS
29902 shift
29903 #
29904 send_qual_type_arg2=$2
29905 #
29906
29907cat >>confdefs.h <<_ACEOF
29908#define SEND_TYPE_ARG1 $1
29909_ACEOF
29910
29911
29912cat >>confdefs.h <<_ACEOF
29913#define SEND_TYPE_ARG3 $3
29914_ACEOF
29915
29916
29917cat >>confdefs.h <<_ACEOF
29918#define SEND_TYPE_ARG4 $4
29919_ACEOF
29920
29921
29922cat >>confdefs.h <<_ACEOF
29923#define SEND_TYPE_RETV $5
29924_ACEOF
29925
29926 #
29927 prev_sh_opts=$-
29928 #
29929 case $prev_sh_opts in
29930 *f*)
29931 ;;
29932 *)
29933 set -f
29934 ;;
29935 esac
29936 #
29937 case "$send_qual_type_arg2" in
29938 const*)
29939 send_qual_arg2=const
29940 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29941 ;;
29942 *)
29943 send_qual_arg2=
29944 send_type_arg2=$send_qual_type_arg2
29945 ;;
29946 esac
29947 #
29948
29949cat >>confdefs.h <<_ACEOF
29950#define SEND_QUAL_ARG2 $send_qual_arg2
29951_ACEOF
29952
29953
29954cat >>confdefs.h <<_ACEOF
29955#define SEND_TYPE_ARG2 $send_type_arg2
29956_ACEOF
29957
29958 #
29959 case $prev_sh_opts in
29960 *f*)
29961 ;;
29962 *)
29963 set +f
29964 ;;
29965 esac
29966 #
29967
29968cat >>confdefs.h <<_ACEOF
29969#define HAVE_SEND 1
29970_ACEOF
29971
29972 curl_cv_func_send="yes"
29973 fi
29974 else
29975 as_fn_error $? "Unable to link function send" "$LINENO" 5
29976 fi
29977
29978
29979 for ac_header in sys/types.h sys/socket.h
29980do :
29981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29984 cat >>confdefs.h <<_ACEOF
29985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29986_ACEOF
29987
29988fi
29989
29990done
29991
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29993$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29994if ${curl_cv_msg_nosignal+:} false; then :
29995 $as_echo_n "(cached) " >&6
29996else
29997
29998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999/* end confdefs.h. */
30000
30001
30002#undef inline
30003#ifdef HAVE_WINDOWS_H
30004#ifndef WIN32_LEAN_AND_MEAN
30005#define WIN32_LEAN_AND_MEAN
30006#endif
30007#include <windows.h>
30008#ifdef HAVE_WINSOCK2_H
30009#include <winsock2.h>
30010#else
30011#ifdef HAVE_WINSOCK_H
30012#include <winsock.h>
30013#endif
30014#endif
30015#else
30016#ifdef HAVE_SYS_TYPES_H
30017#include <sys/types.h>
30018#endif
30019#ifdef HAVE_SYS_SOCKET_H
30020#include <sys/socket.h>
30021#endif
30022#endif
30023
30024int main (void)
30025{
30026
30027 int flag=MSG_NOSIGNAL;
30028
30029 ;
30030 return 0;
30031}
30032
30033_ACEOF
30034if ac_fn_c_try_compile "$LINENO"; then :
30035
30036 curl_cv_msg_nosignal="yes"
30037
30038else
30039
30040 curl_cv_msg_nosignal="no"
30041
30042fi
30043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30044
30045fi
30046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30047$as_echo "$curl_cv_msg_nosignal" >&6; }
30048 case "$curl_cv_msg_nosignal" in
30049 yes)
30050
30051cat >>confdefs.h <<_ACEOF
30052#define HAVE_MSG_NOSIGNAL 1
30053_ACEOF
30054
30055 ;;
30056 esac
30057
30058
30059
30060curl_includes_unistd="\
30061/* includes start */
30062#ifdef HAVE_SYS_TYPES_H
30063# include <sys/types.h>
30064#endif
30065#ifdef HAVE_UNISTD_H
30066# include <unistd.h>
30067#endif
30068/* includes end */"
30069 for ac_header in sys/types.h unistd.h
30070do :
30071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30072ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30073"
30074if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30075 cat >>confdefs.h <<_ACEOF
30076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30077_ACEOF
30078
30079fi
30080
30081done
30082
30083
30084
30085 #
30086 tst_links_alarm="unknown"
30087 tst_proto_alarm="unknown"
30088 tst_compi_alarm="unknown"
30089 tst_allow_alarm="unknown"
30090 #
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30092$as_echo_n "checking if alarm can be linked... " >&6; }
30093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094/* end confdefs.h. */
30095
30096
30097#define alarm innocuous_alarm
30098#ifdef __STDC__
30099# include <limits.h>
30100#else
30101# include <assert.h>
30102#endif
30103#undef alarm
30104#ifdef __cplusplus
30105extern "C"
30106#endif
30107char alarm ();
30108#if defined __stub_alarm || defined __stub___alarm
30109choke me
30110#endif
30111
30112int main (void)
30113{
30114return alarm ();
30115 ;
30116 return 0;
30117}
30118
30119_ACEOF
30120if ac_fn_c_try_link "$LINENO"; then :
30121
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30123$as_echo "yes" >&6; }
30124 tst_links_alarm="yes"
30125
30126else
30127
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30129$as_echo "no" >&6; }
30130 tst_links_alarm="no"
30131
30132fi
30133rm -f core conftest.err conftest.$ac_objext \
30134 conftest$ac_exeext conftest.$ac_ext
30135 #
30136 if test "$tst_links_alarm" = "yes"; then
30137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30138$as_echo_n "checking if alarm is prototyped... " >&6; }
30139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30140/* end confdefs.h. */
30141
30142 $curl_includes_unistd
30143
30144_ACEOF
30145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30146 $EGREP "alarm" >/dev/null 2>&1; then :
30147
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30149$as_echo "yes" >&6; }
30150 tst_proto_alarm="yes"
30151
30152else
30153
30154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30155$as_echo "no" >&6; }
30156 tst_proto_alarm="no"
30157
30158fi
30159rm -f conftest*
30160
30161 fi
30162 #
30163 if test "$tst_proto_alarm" = "yes"; then
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30165$as_echo_n "checking if alarm is compilable... " >&6; }
30166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30167/* end confdefs.h. */
30168
30169
30170 $curl_includes_unistd
30171
30172int main (void)
30173{
30174
30175 if(0 != alarm(0))
30176 return 1;
30177
30178 ;
30179 return 0;
30180}
30181
30182_ACEOF
30183if ac_fn_c_try_compile "$LINENO"; then :
30184
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186$as_echo "yes" >&6; }
30187 tst_compi_alarm="yes"
30188
30189else
30190
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30192$as_echo "no" >&6; }
30193 tst_compi_alarm="no"
30194
30195fi
30196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30197 fi
30198 #
30199 if test "$tst_compi_alarm" = "yes"; then
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30201$as_echo_n "checking if alarm usage allowed... " >&6; }
30202 if test "x$curl_disallow_alarm" != "xyes"; then
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30204$as_echo "yes" >&6; }
30205 tst_allow_alarm="yes"
30206 else
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30208$as_echo "no" >&6; }
30209 tst_allow_alarm="no"
30210 fi
30211 fi
30212 #
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30214$as_echo_n "checking if alarm might be used... " >&6; }
30215 if test "$tst_links_alarm" = "yes" &&
30216 test "$tst_proto_alarm" = "yes" &&
30217 test "$tst_compi_alarm" = "yes" &&
30218 test "$tst_allow_alarm" = "yes"; then
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30220$as_echo "yes" >&6; }
30221
30222cat >>confdefs.h <<_ACEOF
30223#define HAVE_ALARM 1
30224_ACEOF
30225
30226 curl_cv_func_alarm="yes"
30227 else
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30229$as_echo "no" >&6; }
30230 curl_cv_func_alarm="no"
30231 fi
30232
30233
30234curl_includes_string="\
30235/* includes start */
30236#ifdef HAVE_SYS_TYPES_H
30237# include <sys/types.h>
30238#endif
30239#ifdef HAVE_STRING_H
30240# include <string.h>
30241#endif
30242#ifdef HAVE_STRINGS_H
30243# include <strings.h>
30244#endif
30245/* includes end */"
30246 for ac_header in sys/types.h string.h strings.h
30247do :
30248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30249ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30250"
30251if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30252 cat >>confdefs.h <<_ACEOF
30253#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30254_ACEOF
30255
30256fi
30257
30258done
30259
30260
30261
30262curl_includes_libgen="\
30263/* includes start */
30264#ifdef HAVE_SYS_TYPES_H
30265# include <sys/types.h>
30266#endif
30267#ifdef HAVE_LIBGEN_H
30268# include <libgen.h>
30269#endif
30270/* includes end */"
30271 for ac_header in sys/types.h libgen.h
30272do :
30273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30275"
30276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30277 cat >>confdefs.h <<_ACEOF
30278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30279_ACEOF
30280
30281fi
30282
30283done
30284
30285
30286
30287 #
30288 tst_links_basename="unknown"
30289 tst_proto_basename="unknown"
30290 tst_compi_basename="unknown"
30291 tst_allow_basename="unknown"
30292 #
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30294$as_echo_n "checking if basename can be linked... " >&6; }
30295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30296/* end confdefs.h. */
30297
30298
30299#define basename innocuous_basename
30300#ifdef __STDC__
30301# include <limits.h>
30302#else
30303# include <assert.h>
30304#endif
30305#undef basename
30306#ifdef __cplusplus
30307extern "C"
30308#endif
30309char basename ();
30310#if defined __stub_basename || defined __stub___basename
30311choke me
30312#endif
30313
30314int main (void)
30315{
30316return basename ();
30317 ;
30318 return 0;
30319}
30320
30321_ACEOF
30322if ac_fn_c_try_link "$LINENO"; then :
30323
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30325$as_echo "yes" >&6; }
30326 tst_links_basename="yes"
30327
30328else
30329
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30331$as_echo "no" >&6; }
30332 tst_links_basename="no"
30333
30334fi
30335rm -f core conftest.err conftest.$ac_objext \
30336 conftest$ac_exeext conftest.$ac_ext
30337 #
30338 if test "$tst_links_basename" = "yes"; then
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30340$as_echo_n "checking if basename is prototyped... " >&6; }
30341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30342/* end confdefs.h. */
30343
30344 $curl_includes_string
30345 $curl_includes_libgen
30346 $curl_includes_unistd
30347
30348_ACEOF
30349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30350 $EGREP "basename" >/dev/null 2>&1; then :
30351
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30353$as_echo "yes" >&6; }
30354 tst_proto_basename="yes"
30355
30356else
30357
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30359$as_echo "no" >&6; }
30360 tst_proto_basename="no"
30361
30362fi
30363rm -f conftest*
30364
30365 fi
30366 #
30367 if test "$tst_proto_basename" = "yes"; then
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30369$as_echo_n "checking if basename is compilable... " >&6; }
30370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30371/* end confdefs.h. */
30372
30373
30374 $curl_includes_string
30375 $curl_includes_libgen
30376 $curl_includes_unistd
30377
30378int main (void)
30379{
30380
30381 if(0 != basename(0))
30382 return 1;
30383
30384 ;
30385 return 0;
30386}
30387
30388_ACEOF
30389if ac_fn_c_try_compile "$LINENO"; then :
30390
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30392$as_echo "yes" >&6; }
30393 tst_compi_basename="yes"
30394
30395else
30396
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30398$as_echo "no" >&6; }
30399 tst_compi_basename="no"
30400
30401fi
30402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30403 fi
30404 #
30405 if test "$tst_compi_basename" = "yes"; then
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30407$as_echo_n "checking if basename usage allowed... " >&6; }
30408 if test "x$curl_disallow_basename" != "xyes"; then
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30410$as_echo "yes" >&6; }
30411 tst_allow_basename="yes"
30412 else
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30414$as_echo "no" >&6; }
30415 tst_allow_basename="no"
30416 fi
30417 fi
30418 #
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30420$as_echo_n "checking if basename might be used... " >&6; }
30421 if test "$tst_links_basename" = "yes" &&
30422 test "$tst_proto_basename" = "yes" &&
30423 test "$tst_compi_basename" = "yes" &&
30424 test "$tst_allow_basename" = "yes"; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30426$as_echo "yes" >&6; }
30427
30428cat >>confdefs.h <<_ACEOF
30429#define HAVE_BASENAME 1
30430_ACEOF
30431
30432 curl_cv_func_basename="yes"
30433 else
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30435$as_echo "no" >&6; }
30436 curl_cv_func_basename="no"
30437 fi
30438
30439
30440curl_includes_socket="\
30441/* includes start */
30442#ifdef HAVE_SYS_TYPES_H
30443# include <sys/types.h>
30444#endif
30445#ifdef HAVE_SOCKET_H
30446# include <socket.h>
30447#endif
30448/* includes end */"
30449 for ac_header in sys/types.h socket.h
30450do :
30451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30453"
30454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30455 cat >>confdefs.h <<_ACEOF
30456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30457_ACEOF
30458
30459fi
30460
30461done
30462
30463
30464
30465 #
30466 tst_links_closesocket="unknown"
30467 tst_proto_closesocket="unknown"
30468 tst_compi_closesocket="unknown"
30469 tst_allow_closesocket="unknown"
30470 #
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30472$as_echo_n "checking if closesocket can be linked... " >&6; }
30473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30474/* end confdefs.h. */
30475
30476
30477 $curl_includes_winsock2
30478 $curl_includes_socket
30479
30480int main (void)
30481{
30482
30483 if(0 != closesocket(0))
30484 return 1;
30485
30486 ;
30487 return 0;
30488}
30489
30490_ACEOF
30491if ac_fn_c_try_link "$LINENO"; then :
30492
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30494$as_echo "yes" >&6; }
30495 tst_links_closesocket="yes"
30496
30497else
30498
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30500$as_echo "no" >&6; }
30501 tst_links_closesocket="no"
30502
30503fi
30504rm -f core conftest.err conftest.$ac_objext \
30505 conftest$ac_exeext conftest.$ac_ext
30506 #
30507 if test "$tst_links_closesocket" = "yes"; then
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30509$as_echo_n "checking if closesocket is prototyped... " >&6; }
30510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30511/* end confdefs.h. */
30512
30513 $curl_includes_winsock2
30514 $curl_includes_socket
30515
30516_ACEOF
30517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30518 $EGREP "closesocket" >/dev/null 2>&1; then :
30519
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30521$as_echo "yes" >&6; }
30522 tst_proto_closesocket="yes"
30523
30524else
30525
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30527$as_echo "no" >&6; }
30528 tst_proto_closesocket="no"
30529
30530fi
30531rm -f conftest*
30532
30533 fi
30534 #
30535 if test "$tst_proto_closesocket" = "yes"; then
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30537$as_echo_n "checking if closesocket is compilable... " >&6; }
30538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30539/* end confdefs.h. */
30540
30541
30542 $curl_includes_winsock2
30543 $curl_includes_socket
30544
30545int main (void)
30546{
30547
30548 if(0 != closesocket(0))
30549 return 1;
30550
30551 ;
30552 return 0;
30553}
30554
30555_ACEOF
30556if ac_fn_c_try_compile "$LINENO"; then :
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30559$as_echo "yes" >&6; }
30560 tst_compi_closesocket="yes"
30561
30562else
30563
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30565$as_echo "no" >&6; }
30566 tst_compi_closesocket="no"
30567
30568fi
30569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30570 fi
30571 #
30572 if test "$tst_compi_closesocket" = "yes"; then
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30574$as_echo_n "checking if closesocket usage allowed... " >&6; }
30575 if test "x$curl_disallow_closesocket" != "xyes"; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30577$as_echo "yes" >&6; }
30578 tst_allow_closesocket="yes"
30579 else
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581$as_echo "no" >&6; }
30582 tst_allow_closesocket="no"
30583 fi
30584 fi
30585 #
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30587$as_echo_n "checking if closesocket might be used... " >&6; }
30588 if test "$tst_links_closesocket" = "yes" &&
30589 test "$tst_proto_closesocket" = "yes" &&
30590 test "$tst_compi_closesocket" = "yes" &&
30591 test "$tst_allow_closesocket" = "yes"; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30593$as_echo "yes" >&6; }
30594
30595cat >>confdefs.h <<_ACEOF
30596#define HAVE_CLOSESOCKET 1
30597_ACEOF
30598
30599 curl_cv_func_closesocket="yes"
30600 else
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30602$as_echo "no" >&6; }
30603 curl_cv_func_closesocket="no"
30604 fi
30605
30606
30607 #
30608 tst_links_closesocket_camel="unknown"
30609 tst_proto_closesocket_camel="unknown"
30610 tst_compi_closesocket_camel="unknown"
30611 tst_allow_closesocket_camel="unknown"
30612 #
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30614$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30616/* end confdefs.h. */
30617
30618
30619 $curl_includes_sys_socket
30620
30621int main (void)
30622{
30623
30624 if(0 != CloseSocket(0))
30625 return 1;
30626
30627 ;
30628 return 0;
30629}
30630
30631_ACEOF
30632if ac_fn_c_try_link "$LINENO"; then :
30633
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30635$as_echo "yes" >&6; }
30636 tst_links_closesocket_camel="yes"
30637
30638else
30639
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641$as_echo "no" >&6; }
30642 tst_links_closesocket_camel="no"
30643
30644fi
30645rm -f core conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
30647 #
30648 if test "$tst_links_closesocket_camel" = "yes"; then
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30650$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30652/* end confdefs.h. */
30653
30654 $curl_includes_sys_socket
30655
30656_ACEOF
30657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30658 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30659
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30661$as_echo "yes" >&6; }
30662 tst_proto_closesocket_camel="yes"
30663
30664else
30665
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30667$as_echo "no" >&6; }
30668 tst_proto_closesocket_camel="no"
30669
30670fi
30671rm -f conftest*
30672
30673 fi
30674 #
30675 if test "$tst_proto_closesocket_camel" = "yes"; then
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30677$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30679/* end confdefs.h. */
30680
30681
30682 $curl_includes_sys_socket
30683
30684int main (void)
30685{
30686
30687 if(0 != CloseSocket(0))
30688 return 1;
30689
30690 ;
30691 return 0;
30692}
30693
30694_ACEOF
30695if ac_fn_c_try_compile "$LINENO"; then :
30696
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30698$as_echo "yes" >&6; }
30699 tst_compi_closesocket_camel="yes"
30700
30701else
30702
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30704$as_echo "no" >&6; }
30705 tst_compi_closesocket_camel="no"
30706
30707fi
30708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30709 fi
30710 #
30711 if test "$tst_compi_closesocket_camel" = "yes"; then
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30713$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30714 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30716$as_echo "yes" >&6; }
30717 tst_allow_closesocket_camel="yes"
30718 else
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30720$as_echo "no" >&6; }
30721 tst_allow_closesocket_camel="no"
30722 fi
30723 fi
30724 #
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30726$as_echo_n "checking if CloseSocket might be used... " >&6; }
30727 if test "$tst_links_closesocket_camel" = "yes" &&
30728 test "$tst_proto_closesocket_camel" = "yes" &&
30729 test "$tst_compi_closesocket_camel" = "yes" &&
30730 test "$tst_allow_closesocket_camel" = "yes"; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30732$as_echo "yes" >&6; }
30733
30734cat >>confdefs.h <<_ACEOF
30735#define HAVE_CLOSESOCKET_CAMEL 1
30736_ACEOF
30737
30738 curl_cv_func_closesocket_camel="yes"
30739 else
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30741$as_echo "no" >&6; }
30742 curl_cv_func_closesocket_camel="no"
30743 fi
30744
30745
30746 #
30747 tst_links_connect="unknown"
30748 tst_proto_connect="unknown"
30749 tst_compi_connect="unknown"
30750 tst_allow_connect="unknown"
30751 #
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30753$as_echo_n "checking if connect can be linked... " >&6; }
30754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30755/* end confdefs.h. */
30756
30757
30758 $curl_includes_winsock2
30759 $curl_includes_sys_socket
30760 $curl_includes_socket
30761
30762int main (void)
30763{
30764
30765 if(0 != connect(0, 0, 0))
30766 return 1;
30767
30768 ;
30769 return 0;
30770}
30771
30772_ACEOF
30773if ac_fn_c_try_link "$LINENO"; then :
30774
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30776$as_echo "yes" >&6; }
30777 tst_links_connect="yes"
30778
30779else
30780
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782$as_echo "no" >&6; }
30783 tst_links_connect="no"
30784
30785fi
30786rm -f core conftest.err conftest.$ac_objext \
30787 conftest$ac_exeext conftest.$ac_ext
30788 #
30789 if test "$tst_links_connect" = "yes"; then
30790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30791$as_echo_n "checking if connect is prototyped... " >&6; }
30792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30793/* end confdefs.h. */
30794
30795 $curl_includes_winsock2
30796 $curl_includes_sys_socket
30797 $curl_includes_socket
30798
30799_ACEOF
30800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30801 $EGREP "connect" >/dev/null 2>&1; then :
30802
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30804$as_echo "yes" >&6; }
30805 tst_proto_connect="yes"
30806
30807else
30808
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30810$as_echo "no" >&6; }
30811 tst_proto_connect="no"
30812
30813fi
30814rm -f conftest*
30815
30816 fi
30817 #
30818 if test "$tst_proto_connect" = "yes"; then
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30820$as_echo_n "checking if connect is compilable... " >&6; }
30821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30822/* end confdefs.h. */
30823
30824
30825 $curl_includes_winsock2
30826 $curl_includes_sys_socket
30827 $curl_includes_socket
30828
30829int main (void)
30830{
30831
30832 if(0 != connect(0, 0, 0))
30833 return 1;
30834
30835 ;
30836 return 0;
30837}
30838
30839_ACEOF
30840if ac_fn_c_try_compile "$LINENO"; then :
30841
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843$as_echo "yes" >&6; }
30844 tst_compi_connect="yes"
30845
30846else
30847
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849$as_echo "no" >&6; }
30850 tst_compi_connect="no"
30851
30852fi
30853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854 fi
30855 #
30856 if test "$tst_compi_connect" = "yes"; then
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30858$as_echo_n "checking if connect usage allowed... " >&6; }
30859 if test "x$curl_disallow_connect" != "xyes"; then
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30861$as_echo "yes" >&6; }
30862 tst_allow_connect="yes"
30863 else
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865$as_echo "no" >&6; }
30866 tst_allow_connect="no"
30867 fi
30868 fi
30869 #
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30871$as_echo_n "checking if connect might be used... " >&6; }
30872 if test "$tst_links_connect" = "yes" &&
30873 test "$tst_proto_connect" = "yes" &&
30874 test "$tst_compi_connect" = "yes" &&
30875 test "$tst_allow_connect" = "yes"; then
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30877$as_echo "yes" >&6; }
30878
30879cat >>confdefs.h <<_ACEOF
30880#define HAVE_CONNECT 1
30881_ACEOF
30882
30883 curl_cv_func_connect="yes"
30884 else
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30886$as_echo "no" >&6; }
30887 curl_cv_func_connect="no"
30888 fi
30889
30890
30891curl_includes_fcntl="\
30892/* includes start */
30893#ifdef HAVE_SYS_TYPES_H
30894# include <sys/types.h>
30895#endif
30896#ifdef HAVE_UNISTD_H
30897# include <unistd.h>
30898#endif
30899#ifdef HAVE_FCNTL_H
30900# include <fcntl.h>
30901#endif
30902/* includes end */"
30903 for ac_header in sys/types.h unistd.h fcntl.h
30904do :
30905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30906ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30907"
30908if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30909 cat >>confdefs.h <<_ACEOF
30910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30911_ACEOF
30912
30913fi
30914
30915done
30916
30917
30918
30919 #
30920 tst_links_fcntl="unknown"
30921 tst_proto_fcntl="unknown"
30922 tst_compi_fcntl="unknown"
30923 tst_allow_fcntl="unknown"
30924 #
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30926$as_echo_n "checking if fcntl can be linked... " >&6; }
30927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30928/* end confdefs.h. */
30929
30930
30931#define fcntl innocuous_fcntl
30932#ifdef __STDC__
30933# include <limits.h>
30934#else
30935# include <assert.h>
30936#endif
30937#undef fcntl
30938#ifdef __cplusplus
30939extern "C"
30940#endif
30941char fcntl ();
30942#if defined __stub_fcntl || defined __stub___fcntl
30943choke me
30944#endif
30945
30946int main (void)
30947{
30948return fcntl ();
30949 ;
30950 return 0;
30951}
30952
30953_ACEOF
30954if ac_fn_c_try_link "$LINENO"; then :
30955
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957$as_echo "yes" >&6; }
30958 tst_links_fcntl="yes"
30959
30960else
30961
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30963$as_echo "no" >&6; }
30964 tst_links_fcntl="no"
30965
30966fi
30967rm -f core conftest.err conftest.$ac_objext \
30968 conftest$ac_exeext conftest.$ac_ext
30969 #
30970 if test "$tst_links_fcntl" = "yes"; then
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30972$as_echo_n "checking if fcntl is prototyped... " >&6; }
30973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30974/* end confdefs.h. */
30975
30976 $curl_includes_fcntl
30977
30978_ACEOF
30979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30980 $EGREP "fcntl" >/dev/null 2>&1; then :
30981
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30983$as_echo "yes" >&6; }
30984 tst_proto_fcntl="yes"
30985
30986else
30987
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989$as_echo "no" >&6; }
30990 tst_proto_fcntl="no"
30991
30992fi
30993rm -f conftest*
30994
30995 fi
30996 #
30997 if test "$tst_proto_fcntl" = "yes"; then
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30999$as_echo_n "checking if fcntl is compilable... " >&6; }
31000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31001/* end confdefs.h. */
31002
31003
31004 $curl_includes_fcntl
31005
31006int main (void)
31007{
31008
31009 if(0 != fcntl(0, 0, 0))
31010 return 1;
31011
31012 ;
31013 return 0;
31014}
31015
31016_ACEOF
31017if ac_fn_c_try_compile "$LINENO"; then :
31018
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31020$as_echo "yes" >&6; }
31021 tst_compi_fcntl="yes"
31022
31023else
31024
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31026$as_echo "no" >&6; }
31027 tst_compi_fcntl="no"
31028
31029fi
31030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31031 fi
31032 #
31033 if test "$tst_compi_fcntl" = "yes"; then
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31035$as_echo_n "checking if fcntl usage allowed... " >&6; }
31036 if test "x$curl_disallow_fcntl" != "xyes"; then
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31038$as_echo "yes" >&6; }
31039 tst_allow_fcntl="yes"
31040 else
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31042$as_echo "no" >&6; }
31043 tst_allow_fcntl="no"
31044 fi
31045 fi
31046 #
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31048$as_echo_n "checking if fcntl might be used... " >&6; }
31049 if test "$tst_links_fcntl" = "yes" &&
31050 test "$tst_proto_fcntl" = "yes" &&
31051 test "$tst_compi_fcntl" = "yes" &&
31052 test "$tst_allow_fcntl" = "yes"; then
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31054$as_echo "yes" >&6; }
31055
31056cat >>confdefs.h <<_ACEOF
31057#define HAVE_FCNTL 1
31058_ACEOF
31059
31060 curl_cv_func_fcntl="yes"
31061
31062 #
31063 tst_compi_fcntl_o_nonblock="unknown"
31064 tst_allow_fcntl_o_nonblock="unknown"
31065 #
31066 case $host_os in
31067 sunos4* | aix3* | beos*)
31068 curl_disallow_fcntl_o_nonblock="yes"
31069 ;;
31070 esac
31071 #
31072 if test "$curl_cv_func_fcntl" = "yes"; then
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31074$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31076/* end confdefs.h. */
31077
31078
31079 $curl_includes_fcntl
31080
31081int main (void)
31082{
31083
31084 int flags = 0;
31085 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31086 return 1;
31087
31088 ;
31089 return 0;
31090}
31091
31092_ACEOF
31093if ac_fn_c_try_compile "$LINENO"; then :
31094
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096$as_echo "yes" >&6; }
31097 tst_compi_fcntl_o_nonblock="yes"
31098
31099else
31100
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102$as_echo "no" >&6; }
31103 tst_compi_fcntl_o_nonblock="no"
31104
31105fi
31106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31107 fi
31108 #
31109 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31111$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31112 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31114$as_echo "yes" >&6; }
31115 tst_allow_fcntl_o_nonblock="yes"
31116 else
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31118$as_echo "no" >&6; }
31119 tst_allow_fcntl_o_nonblock="no"
31120 fi
31121 fi
31122 #
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31124$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31125 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31126 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31128$as_echo "yes" >&6; }
31129
31130cat >>confdefs.h <<_ACEOF
31131#define HAVE_FCNTL_O_NONBLOCK 1
31132_ACEOF
31133
31134 curl_cv_func_fcntl_o_nonblock="yes"
31135 else
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138 curl_cv_func_fcntl_o_nonblock="no"
31139 fi
31140
31141 else
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31143$as_echo "no" >&6; }
31144 curl_cv_func_fcntl="no"
31145 fi
31146
31147
31148curl_includes_stdio="\
31149/* includes start */
31150#ifdef HAVE_SYS_TYPES_H
31151# include <sys/types.h>
31152#endif
31153#ifdef HAVE_STDIO_H
31154# include <stdio.h>
31155#endif
31156/* includes end */"
31157 for ac_header in sys/types.h stdio.h
31158do :
31159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31160ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31161"
31162if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31163 cat >>confdefs.h <<_ACEOF
31164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31165_ACEOF
31166
31167fi
31168
31169done
31170
31171
31172
31173 #
31174 tst_links_fdopen="unknown"
31175 tst_proto_fdopen="unknown"
31176 tst_compi_fdopen="unknown"
31177 tst_allow_fdopen="unknown"
31178 #
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31180$as_echo_n "checking if fdopen can be linked... " >&6; }
31181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31182/* end confdefs.h. */
31183
31184
31185#define fdopen innocuous_fdopen
31186#ifdef __STDC__
31187# include <limits.h>
31188#else
31189# include <assert.h>
31190#endif
31191#undef fdopen
31192#ifdef __cplusplus
31193extern "C"
31194#endif
31195char fdopen ();
31196#if defined __stub_fdopen || defined __stub___fdopen
31197choke me
31198#endif
31199
31200int main (void)
31201{
31202return fdopen ();
31203 ;
31204 return 0;
31205}
31206
31207_ACEOF
31208if ac_fn_c_try_link "$LINENO"; then :
31209
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31211$as_echo "yes" >&6; }
31212 tst_links_fdopen="yes"
31213
31214else
31215
31216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31217$as_echo "no" >&6; }
31218 tst_links_fdopen="no"
31219
31220fi
31221rm -f core conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
31223 #
31224 if test "$tst_links_fdopen" = "yes"; then
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31226$as_echo_n "checking if fdopen is prototyped... " >&6; }
31227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31228/* end confdefs.h. */
31229
31230 $curl_includes_stdio
31231
31232_ACEOF
31233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234 $EGREP "fdopen" >/dev/null 2>&1; then :
31235
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237$as_echo "yes" >&6; }
31238 tst_proto_fdopen="yes"
31239
31240else
31241
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31243$as_echo "no" >&6; }
31244 tst_proto_fdopen="no"
31245
31246fi
31247rm -f conftest*
31248
31249 fi
31250 #
31251 if test "$tst_proto_fdopen" = "yes"; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31253$as_echo_n "checking if fdopen is compilable... " >&6; }
31254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255/* end confdefs.h. */
31256
31257
31258 $curl_includes_stdio
31259
31260int main (void)
31261{
31262
31263 if(0 != fdopen(0, 0))
31264 return 1;
31265
31266 ;
31267 return 0;
31268}
31269
31270_ACEOF
31271if ac_fn_c_try_compile "$LINENO"; then :
31272
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31274$as_echo "yes" >&6; }
31275 tst_compi_fdopen="yes"
31276
31277else
31278
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31280$as_echo "no" >&6; }
31281 tst_compi_fdopen="no"
31282
31283fi
31284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31285 fi
31286 #
31287 if test "$tst_compi_fdopen" = "yes"; then
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31289$as_echo_n "checking if fdopen usage allowed... " >&6; }
31290 if test "x$curl_disallow_fdopen" != "xyes"; then
31291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31292$as_echo "yes" >&6; }
31293 tst_allow_fdopen="yes"
31294 else
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296$as_echo "no" >&6; }
31297 tst_allow_fdopen="no"
31298 fi
31299 fi
31300 #
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31302$as_echo_n "checking if fdopen might be used... " >&6; }
31303 if test "$tst_links_fdopen" = "yes" &&
31304 test "$tst_proto_fdopen" = "yes" &&
31305 test "$tst_compi_fdopen" = "yes" &&
31306 test "$tst_allow_fdopen" = "yes"; then
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31308$as_echo "yes" >&6; }
31309
31310cat >>confdefs.h <<_ACEOF
31311#define HAVE_FDOPEN 1
31312_ACEOF
31313
31314 curl_cv_func_fdopen="yes"
31315 else
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31317$as_echo "no" >&6; }
31318 curl_cv_func_fdopen="no"
31319 fi
31320
31321
31322curl_includes_netdb="\
31323/* includes start */
31324#ifdef HAVE_SYS_TYPES_H
31325# include <sys/types.h>
31326#endif
31327#ifdef HAVE_NETDB_H
31328# include <netdb.h>
31329#endif
31330/* includes end */"
31331 for ac_header in sys/types.h netdb.h
31332do :
31333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31335"
31336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31337 cat >>confdefs.h <<_ACEOF
31338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31339_ACEOF
31340
31341fi
31342
31343done
31344
31345
31346
31347 #
31348 tst_links_freeaddrinfo="unknown"
31349 tst_proto_freeaddrinfo="unknown"
31350 tst_compi_freeaddrinfo="unknown"
31351 tst_allow_freeaddrinfo="unknown"
31352 #
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31354$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31356/* end confdefs.h. */
31357
31358
31359 $curl_includes_ws2tcpip
31360 $curl_includes_sys_socket
31361 $curl_includes_netdb
31362
31363int main (void)
31364{
31365
31366 freeaddrinfo(0);
31367
31368 ;
31369 return 0;
31370}
31371
31372_ACEOF
31373if ac_fn_c_try_link "$LINENO"; then :
31374
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31376$as_echo "yes" >&6; }
31377 tst_links_freeaddrinfo="yes"
31378
31379else
31380
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31382$as_echo "no" >&6; }
31383 tst_links_freeaddrinfo="no"
31384
31385fi
31386rm -f core conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
31388 #
31389 if test "$tst_links_freeaddrinfo" = "yes"; then
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31391$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393/* end confdefs.h. */
31394
31395 $curl_includes_ws2tcpip
31396 $curl_includes_sys_socket
31397 $curl_includes_netdb
31398
31399_ACEOF
31400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31401 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31402
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31404$as_echo "yes" >&6; }
31405 tst_proto_freeaddrinfo="yes"
31406
31407else
31408
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31410$as_echo "no" >&6; }
31411 tst_proto_freeaddrinfo="no"
31412
31413fi
31414rm -f conftest*
31415
31416 fi
31417 #
31418 if test "$tst_proto_freeaddrinfo" = "yes"; then
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31420$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31422/* end confdefs.h. */
31423
31424
31425 $curl_includes_ws2tcpip
31426 $curl_includes_sys_socket
31427 $curl_includes_netdb
31428
31429int main (void)
31430{
31431
31432 freeaddrinfo(0);
31433
31434 ;
31435 return 0;
31436}
31437
31438_ACEOF
31439if ac_fn_c_try_compile "$LINENO"; then :
31440
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31442$as_echo "yes" >&6; }
31443 tst_compi_freeaddrinfo="yes"
31444
31445else
31446
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448$as_echo "no" >&6; }
31449 tst_compi_freeaddrinfo="no"
31450
31451fi
31452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31453 fi
31454 #
31455 if test "$tst_compi_freeaddrinfo" = "yes"; then
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31457$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31458 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31460$as_echo "yes" >&6; }
31461 tst_allow_freeaddrinfo="yes"
31462 else
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31464$as_echo "no" >&6; }
31465 tst_allow_freeaddrinfo="no"
31466 fi
31467 fi
31468 #
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31470$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31471 if test "$tst_links_freeaddrinfo" = "yes" &&
31472 test "$tst_proto_freeaddrinfo" = "yes" &&
31473 test "$tst_compi_freeaddrinfo" = "yes" &&
31474 test "$tst_allow_freeaddrinfo" = "yes"; then
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31476$as_echo "yes" >&6; }
31477
31478cat >>confdefs.h <<_ACEOF
31479#define HAVE_FREEADDRINFO 1
31480_ACEOF
31481
31482 curl_cv_func_freeaddrinfo="yes"
31483 else
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485$as_echo "no" >&6; }
31486 curl_cv_func_freeaddrinfo="no"
31487 fi
31488
31489
31490curl_includes_ifaddrs="\
31491/* includes start */
31492#ifdef HAVE_SYS_TYPES_H
31493# include <sys/types.h>
31494#endif
31495#ifdef HAVE_SYS_SOCKET_H
31496# include <sys/socket.h>
31497#endif
31498#ifdef HAVE_NETINET_IN_H
31499# include <netinet/in.h>
31500#endif
31501#ifdef HAVE_IFADDRS_H
31502# include <ifaddrs.h>
31503#endif
31504/* includes end */"
31505 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31506do :
31507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31508ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31509"
31510if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31511 cat >>confdefs.h <<_ACEOF
31512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31513_ACEOF
31514
31515fi
31516
31517done
31518
31519
31520
31521 #
31522 tst_links_freeifaddrs="unknown"
31523 tst_proto_freeifaddrs="unknown"
31524 tst_compi_freeifaddrs="unknown"
31525 tst_allow_freeifaddrs="unknown"
31526 #
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31528$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31530/* end confdefs.h. */
31531
31532
31533#define freeifaddrs innocuous_freeifaddrs
31534#ifdef __STDC__
31535# include <limits.h>
31536#else
31537# include <assert.h>
31538#endif
31539#undef freeifaddrs
31540#ifdef __cplusplus
31541extern "C"
31542#endif
31543char freeifaddrs ();
31544#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31545choke me
31546#endif
31547
31548int main (void)
31549{
31550return freeifaddrs ();
31551 ;
31552 return 0;
31553}
31554
31555_ACEOF
31556if ac_fn_c_try_link "$LINENO"; then :
31557
31558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31559$as_echo "yes" >&6; }
31560 tst_links_freeifaddrs="yes"
31561
31562else
31563
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31565$as_echo "no" >&6; }
31566 tst_links_freeifaddrs="no"
31567
31568fi
31569rm -f core conftest.err conftest.$ac_objext \
31570 conftest$ac_exeext conftest.$ac_ext
31571 #
31572 if test "$tst_links_freeifaddrs" = "yes"; then
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31574$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31576/* end confdefs.h. */
31577
31578 $curl_includes_ifaddrs
31579
31580_ACEOF
31581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31582 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31583
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31585$as_echo "yes" >&6; }
31586 tst_proto_freeifaddrs="yes"
31587
31588else
31589
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31591$as_echo "no" >&6; }
31592 tst_proto_freeifaddrs="no"
31593
31594fi
31595rm -f conftest*
31596
31597 fi
31598 #
31599 if test "$tst_proto_freeifaddrs" = "yes"; then
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31601$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31603/* end confdefs.h. */
31604
31605
31606 $curl_includes_ifaddrs
31607
31608int main (void)
31609{
31610
31611 freeifaddrs(0);
31612
31613 ;
31614 return 0;
31615}
31616
31617_ACEOF
31618if ac_fn_c_try_compile "$LINENO"; then :
31619
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31621$as_echo "yes" >&6; }
31622 tst_compi_freeifaddrs="yes"
31623
31624else
31625
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31627$as_echo "no" >&6; }
31628 tst_compi_freeifaddrs="no"
31629
31630fi
31631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31632 fi
31633 #
31634 if test "$tst_compi_freeifaddrs" = "yes"; then
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31636$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31637 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31639$as_echo "yes" >&6; }
31640 tst_allow_freeifaddrs="yes"
31641 else
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31643$as_echo "no" >&6; }
31644 tst_allow_freeifaddrs="no"
31645 fi
31646 fi
31647 #
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31649$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31650 if test "$tst_links_freeifaddrs" = "yes" &&
31651 test "$tst_proto_freeifaddrs" = "yes" &&
31652 test "$tst_compi_freeifaddrs" = "yes" &&
31653 test "$tst_allow_freeifaddrs" = "yes"; then
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31655$as_echo "yes" >&6; }
31656
31657cat >>confdefs.h <<_ACEOF
31658#define HAVE_FREEIFADDRS 1
31659_ACEOF
31660
31661 curl_cv_func_freeifaddrs="yes"
31662 else
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31664$as_echo "no" >&6; }
31665 curl_cv_func_freeifaddrs="no"
31666 fi
31667
31668
31669curl_includes_sys_xattr="\
31670/* includes start */
31671#ifdef HAVE_SYS_TYPES_H
31672# include <sys/types.h>
31673#endif
31674#ifdef HAVE_SYS_XATTR_H
31675# include <sys/xattr.h>
31676#endif
31677/* includes end */"
31678 for ac_header in sys/types.h sys/xattr.h
31679do :
31680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31681ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31682"
31683if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31684 cat >>confdefs.h <<_ACEOF
31685#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31686_ACEOF
31687
31688fi
31689
31690done
31691
31692
31693
31694 #
31695 tst_links_fsetxattr="unknown"
31696 tst_proto_fsetxattr="unknown"
31697 tst_compi_fsetxattr="unknown"
31698 tst_allow_fsetxattr="unknown"
31699 tst_nargs_fsetxattr="unknown"
31700 #
31701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31702$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31704/* end confdefs.h. */
31705
31706
31707#define fsetxattr innocuous_fsetxattr
31708#ifdef __STDC__
31709# include <limits.h>
31710#else
31711# include <assert.h>
31712#endif
31713#undef fsetxattr
31714#ifdef __cplusplus
31715extern "C"
31716#endif
31717char fsetxattr ();
31718#if defined __stub_fsetxattr || defined __stub___fsetxattr
31719choke me
31720#endif
31721
31722int main (void)
31723{
31724return fsetxattr ();
31725 ;
31726 return 0;
31727}
31728
31729_ACEOF
31730if ac_fn_c_try_link "$LINENO"; then :
31731
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31733$as_echo "yes" >&6; }
31734 tst_links_fsetxattr="yes"
31735
31736else
31737
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739$as_echo "no" >&6; }
31740 tst_links_fsetxattr="no"
31741
31742fi
31743rm -f core conftest.err conftest.$ac_objext \
31744 conftest$ac_exeext conftest.$ac_ext
31745 #
31746 if test "$tst_links_fsetxattr" = "yes"; then
31747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31748$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31750/* end confdefs.h. */
31751
31752 $curl_includes_sys_xattr
31753
31754_ACEOF
31755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31756 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31757
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31759$as_echo "yes" >&6; }
31760 tst_proto_fsetxattr="yes"
31761
31762else
31763
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31765$as_echo "no" >&6; }
31766 tst_proto_fsetxattr="no"
31767
31768fi
31769rm -f conftest*
31770
31771 fi
31772 #
31773 if test "$tst_proto_fsetxattr" = "yes"; then
31774 if test "$tst_nargs_fsetxattr" = "unknown"; then
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31776$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31778/* end confdefs.h. */
31779
31780
31781 $curl_includes_sys_xattr
31782
31783int main (void)
31784{
31785
31786 if(0 != fsetxattr(0, 0, 0, 0, 0))
31787 return 1;
31788
31789 ;
31790 return 0;
31791}
31792
31793_ACEOF
31794if ac_fn_c_try_compile "$LINENO"; then :
31795
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797$as_echo "yes" >&6; }
31798 tst_compi_fsetxattr="yes"
31799 tst_nargs_fsetxattr="5"
31800
31801else
31802
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31804$as_echo "no" >&6; }
31805 tst_compi_fsetxattr="no"
31806
31807fi
31808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31809 fi
31810 if test "$tst_nargs_fsetxattr" = "unknown"; then
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31812$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31814/* end confdefs.h. */
31815
31816
31817 $curl_includes_sys_xattr
31818
31819int main (void)
31820{
31821
31822 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31823 return 1;
31824
31825 ;
31826 return 0;
31827}
31828
31829_ACEOF
31830if ac_fn_c_try_compile "$LINENO"; then :
31831
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31833$as_echo "yes" >&6; }
31834 tst_compi_fsetxattr="yes"
31835 tst_nargs_fsetxattr="6"
31836
31837else
31838
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31840$as_echo "no" >&6; }
31841 tst_compi_fsetxattr="no"
31842
31843fi
31844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31845 fi
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31847$as_echo_n "checking if fsetxattr is compilable... " >&6; }
31848 if test "$tst_compi_fsetxattr" = "yes"; then
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31850$as_echo "yes" >&6; }
31851 else
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31853$as_echo "no" >&6; }
31854 fi
31855 fi
31856 #
31857 if test "$tst_compi_fsetxattr" = "yes"; then
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31859$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31860 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31862$as_echo "yes" >&6; }
31863 tst_allow_fsetxattr="yes"
31864 else
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31866$as_echo "no" >&6; }
31867 tst_allow_fsetxattr="no"
31868 fi
31869 fi
31870 #
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31872$as_echo_n "checking if fsetxattr might be used... " >&6; }
31873 if test "$tst_links_fsetxattr" = "yes" &&
31874 test "$tst_proto_fsetxattr" = "yes" &&
31875 test "$tst_compi_fsetxattr" = "yes" &&
31876 test "$tst_allow_fsetxattr" = "yes"; then
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31878$as_echo "yes" >&6; }
31879
31880cat >>confdefs.h <<_ACEOF
31881#define HAVE_FSETXATTR 1
31882_ACEOF
31883
31884 #
31885 if test "$tst_nargs_fsetxattr" -eq "5"; then
31886
31887$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31888
31889 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31890
31891$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31892
31893 fi
31894 #
31895 curl_cv_func_fsetxattr="yes"
31896 else
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31898$as_echo "no" >&6; }
31899 curl_cv_func_fsetxattr="no"
31900 fi
31901
31902
31903 #
31904 tst_links_ftruncate="unknown"
31905 tst_proto_ftruncate="unknown"
31906 tst_compi_ftruncate="unknown"
31907 tst_allow_ftruncate="unknown"
31908 #
31909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31910$as_echo_n "checking if ftruncate can be linked... " >&6; }
31911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31912/* end confdefs.h. */
31913
31914
31915#define ftruncate innocuous_ftruncate
31916#ifdef __STDC__
31917# include <limits.h>
31918#else
31919# include <assert.h>
31920#endif
31921#undef ftruncate
31922#ifdef __cplusplus
31923extern "C"
31924#endif
31925char ftruncate ();
31926#if defined __stub_ftruncate || defined __stub___ftruncate
31927choke me
31928#endif
31929
31930int main (void)
31931{
31932return ftruncate ();
31933 ;
31934 return 0;
31935}
31936
31937_ACEOF
31938if ac_fn_c_try_link "$LINENO"; then :
31939
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31941$as_echo "yes" >&6; }
31942 tst_links_ftruncate="yes"
31943
31944else
31945
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31947$as_echo "no" >&6; }
31948 tst_links_ftruncate="no"
31949
31950fi
31951rm -f core conftest.err conftest.$ac_objext \
31952 conftest$ac_exeext conftest.$ac_ext
31953 #
31954 if test "$tst_links_ftruncate" = "yes"; then
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31956$as_echo_n "checking if ftruncate is prototyped... " >&6; }
31957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31958/* end confdefs.h. */
31959
31960 $curl_includes_unistd
31961
31962_ACEOF
31963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31964 $EGREP "ftruncate" >/dev/null 2>&1; then :
31965
31966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31967$as_echo "yes" >&6; }
31968 tst_proto_ftruncate="yes"
31969
31970else
31971
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31973$as_echo "no" >&6; }
31974 tst_proto_ftruncate="no"
31975
31976fi
31977rm -f conftest*
31978
31979 fi
31980 #
31981 if test "$tst_proto_ftruncate" = "yes"; then
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31983$as_echo_n "checking if ftruncate is compilable... " >&6; }
31984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31985/* end confdefs.h. */
31986
31987
31988 $curl_includes_unistd
31989
31990int main (void)
31991{
31992
31993 if(0 != ftruncate(0, 0))
31994 return 1;
31995
31996 ;
31997 return 0;
31998}
31999
32000_ACEOF
32001if ac_fn_c_try_compile "$LINENO"; then :
32002
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32004$as_echo "yes" >&6; }
32005 tst_compi_ftruncate="yes"
32006
32007else
32008
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32010$as_echo "no" >&6; }
32011 tst_compi_ftruncate="no"
32012
32013fi
32014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32015 fi
32016 #
32017 if test "$tst_compi_ftruncate" = "yes"; then
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32019$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32020 if test "x$curl_disallow_ftruncate" != "xyes"; then
32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32022$as_echo "yes" >&6; }
32023 tst_allow_ftruncate="yes"
32024 else
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32026$as_echo "no" >&6; }
32027 tst_allow_ftruncate="no"
32028 fi
32029 fi
32030 #
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32032$as_echo_n "checking if ftruncate might be used... " >&6; }
32033 if test "$tst_links_ftruncate" = "yes" &&
32034 test "$tst_proto_ftruncate" = "yes" &&
32035 test "$tst_compi_ftruncate" = "yes" &&
32036 test "$tst_allow_ftruncate" = "yes"; then
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32038$as_echo "yes" >&6; }
32039
32040cat >>confdefs.h <<_ACEOF
32041#define HAVE_FTRUNCATE 1
32042_ACEOF
32043
32044 curl_cv_func_ftruncate="yes"
32045 else
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047$as_echo "no" >&6; }
32048 curl_cv_func_ftruncate="no"
32049 fi
32050
32051
32052curl_includes_stdlib="\
32053/* includes start */
32054#ifdef HAVE_SYS_TYPES_H
32055# include <sys/types.h>
32056#endif
32057#ifdef HAVE_STDLIB_H
32058# include <stdlib.h>
32059#endif
32060/* includes end */"
32061 for ac_header in sys/types.h stdlib.h
32062do :
32063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32065"
32066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32067 cat >>confdefs.h <<_ACEOF
32068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32069_ACEOF
32070
32071fi
32072
32073done
32074
32075
32076
32077 #
32078 tst_links_getaddrinfo="unknown"
32079 tst_proto_getaddrinfo="unknown"
32080 tst_compi_getaddrinfo="unknown"
32081 tst_works_getaddrinfo="unknown"
32082 tst_allow_getaddrinfo="unknown"
32083 tst_tsafe_getaddrinfo="unknown"
32084 #
32085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32086$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32088/* end confdefs.h. */
32089
32090
32091 $curl_includes_ws2tcpip
32092 $curl_includes_sys_socket
32093 $curl_includes_netdb
32094
32095int main (void)
32096{
32097
32098 if(0 != getaddrinfo(0, 0, 0, 0))
32099 return 1;
32100
32101 ;
32102 return 0;
32103}
32104
32105_ACEOF
32106if ac_fn_c_try_link "$LINENO"; then :
32107
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32109$as_echo "yes" >&6; }
32110 tst_links_getaddrinfo="yes"
32111
32112else
32113
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32115$as_echo "no" >&6; }
32116 tst_links_getaddrinfo="no"
32117
32118fi
32119rm -f core conftest.err conftest.$ac_objext \
32120 conftest$ac_exeext conftest.$ac_ext
32121 #
32122 if test "$tst_links_getaddrinfo" = "yes"; then
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32124$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32126/* end confdefs.h. */
32127
32128 $curl_includes_ws2tcpip
32129 $curl_includes_sys_socket
32130 $curl_includes_netdb
32131
32132_ACEOF
32133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32134 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32135
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32137$as_echo "yes" >&6; }
32138 tst_proto_getaddrinfo="yes"
32139
32140else
32141
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32143$as_echo "no" >&6; }
32144 tst_proto_getaddrinfo="no"
32145
32146fi
32147rm -f conftest*
32148
32149 fi
32150 #
32151 if test "$tst_proto_getaddrinfo" = "yes"; then
32152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32153$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32155/* end confdefs.h. */
32156
32157
32158 $curl_includes_ws2tcpip
32159 $curl_includes_sys_socket
32160 $curl_includes_netdb
32161
32162int main (void)
32163{
32164
32165 if(0 != getaddrinfo(0, 0, 0, 0))
32166 return 1;
32167
32168 ;
32169 return 0;
32170}
32171
32172_ACEOF
32173if ac_fn_c_try_compile "$LINENO"; then :
32174
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32176$as_echo "yes" >&6; }
32177 tst_compi_getaddrinfo="yes"
32178
32179else
32180
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32182$as_echo "no" >&6; }
32183 tst_compi_getaddrinfo="no"
32184
32185fi
32186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32187 fi
32188 #
32189 if test "x$cross_compiling" != "xyes" &&
32190 test "$tst_compi_getaddrinfo" = "yes"; then
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32192$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32193 if test "$cross_compiling" = yes; then :
32194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32196as_fn_error $? "cannot run test program while cross compiling
32197See \`config.log' for more details" "$LINENO" 5; }
32198else
32199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32200/* end confdefs.h. */
32201
32202
32203 $curl_includes_ws2tcpip
32204 $curl_includes_stdlib
32205 $curl_includes_string
32206 $curl_includes_sys_socket
32207 $curl_includes_netdb
32208
32209int main (void)
32210{
32211
32212 struct addrinfo hints;
32213 struct addrinfo *ai = 0;
32214 int error;
32215
32216 #ifdef HAVE_WINSOCK2_H
32217 WSADATA wsa;
32218 if (WSAStartup(MAKEWORD(2,2), &wsa))
32219 exit(2);
32220 #endif
32221
32222 memset(&hints, 0, sizeof(hints));
32223 hints.ai_flags = AI_NUMERICHOST;
32224 hints.ai_family = AF_UNSPEC;
32225 hints.ai_socktype = SOCK_STREAM;
32226 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32227 if(error || !ai)
32228 exit(1); /* fail */
32229 else
32230 exit(0);
32231
32232 ;
32233 return 0;
32234}
32235
32236_ACEOF
32237if ac_fn_c_try_run "$LINENO"; then :
32238
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32240$as_echo "yes" >&6; }
32241 tst_works_getaddrinfo="yes"
32242
32243else
32244
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32246$as_echo "no" >&6; }
32247 tst_works_getaddrinfo="no"
32248
32249fi
32250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32251 conftest.$ac_objext conftest.beam conftest.$ac_ext
32252fi
32253
32254 fi
32255 #
32256 if test "$tst_compi_getaddrinfo" = "yes" &&
32257 test "$tst_works_getaddrinfo" != "no"; then
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32259$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32260 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32262$as_echo "yes" >&6; }
32263 tst_allow_getaddrinfo="yes"
32264 else
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32266$as_echo "no" >&6; }
32267 tst_allow_getaddrinfo="no"
32268 fi
32269 fi
32270 #
32271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32272$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32273 if test "$tst_links_getaddrinfo" = "yes" &&
32274 test "$tst_proto_getaddrinfo" = "yes" &&
32275 test "$tst_compi_getaddrinfo" = "yes" &&
32276 test "$tst_allow_getaddrinfo" = "yes" &&
32277 test "$tst_works_getaddrinfo" != "no"; then
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32279$as_echo "yes" >&6; }
32280
32281cat >>confdefs.h <<_ACEOF
32282#define HAVE_GETADDRINFO 1
32283_ACEOF
32284
32285 curl_cv_func_getaddrinfo="yes"
32286 else
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32288$as_echo "no" >&6; }
32289 curl_cv_func_getaddrinfo="no"
32290 curl_cv_func_getaddrinfo_threadsafe="no"
32291 fi
32292 #
32293 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32295$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32296 case $host_os in
32297 aix[1234].* | aix5.[01].*)
32298 tst_tsafe_getaddrinfo="no"
32299 ;;
32300 aix*)
32301 tst_tsafe_getaddrinfo="yes"
32302 ;;
32303 darwin[12345].*)
32304 tst_tsafe_getaddrinfo="no"
32305 ;;
32306 darwin*)
32307 tst_tsafe_getaddrinfo="yes"
32308 ;;
32309 freebsd[1234].* | freebsd5.[1234]*)
32310 tst_tsafe_getaddrinfo="no"
32311 ;;
32312 freebsd*)
32313 tst_tsafe_getaddrinfo="yes"
32314 ;;
32315 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32316 tst_tsafe_getaddrinfo="no"
32317 ;;
32318 hpux*)
32319 tst_tsafe_getaddrinfo="yes"
32320 ;;
32321 netbsd[123].*)
32322 tst_tsafe_getaddrinfo="no"
32323 ;;
32324 netbsd*)
32325 tst_tsafe_getaddrinfo="yes"
32326 ;;
32327 *bsd*)
32328 tst_tsafe_getaddrinfo="no"
32329 ;;
32330 solaris2*)
32331 tst_tsafe_getaddrinfo="yes"
32332 ;;
32333 esac
32334 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32335 test "$curl_cv_native_windows" = "yes"; then
32336 tst_tsafe_getaddrinfo="yes"
32337 fi
32338 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32339
32340
32341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32342/* end confdefs.h. */
32343
32344
32345 $curl_includes_sys_socket
32346 $curl_includes_netdb
32347
32348int main (void)
32349{
32350#ifdef h_errno
32351 return 0;
32352#else
32353 force compilation error
32354#endif
32355}
32356
32357
32358_ACEOF
32359if ac_fn_c_try_compile "$LINENO"; then :
32360
32361 tst_symbol_defined="yes"
32362
32363else
32364
32365 tst_symbol_defined="no"
32366
32367fi
32368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32369 if test "$tst_symbol_defined" = "yes"; then
32370 curl_cv_have_def_h_errno=yes
32371
32372 else
32373 curl_cv_have_def_h_errno=no
32374
32375 fi
32376
32377 if test "$curl_cv_have_def_h_errno" = "yes"; then
32378 tst_h_errno_macro="yes"
32379 else
32380 tst_h_errno_macro="no"
32381 fi
32382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32383/* end confdefs.h. */
32384
32385
32386 $curl_includes_sys_socket
32387 $curl_includes_netdb
32388
32389int main (void)
32390{
32391
32392 h_errno = 2;
32393 if(0 != h_errno)
32394 return 1;
32395
32396 ;
32397 return 0;
32398}
32399
32400_ACEOF
32401if ac_fn_c_try_compile "$LINENO"; then :
32402
32403 tst_h_errno_modifiable_lvalue="yes"
32404
32405else
32406
32407 tst_h_errno_modifiable_lvalue="no"
32408
32409fi
32410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32412/* end confdefs.h. */
32413
32414
32415
32416int main (void)
32417{
32418
32419#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32420 return 0;
32421#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32422 return 0;
32423#else
32424 force compilation error
32425#endif
32426
32427 ;
32428 return 0;
32429}
32430
32431_ACEOF
32432if ac_fn_c_try_compile "$LINENO"; then :
32433
32434 tst_h_errno_sbs_issue_7="yes"
32435
32436else
32437
32438 tst_h_errno_sbs_issue_7="no"
32439
32440fi
32441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32442 if test "$tst_h_errno_macro" = "no" &&
32443 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32444 test "$tst_h_errno_sbs_issue_7" = "no"; then
32445 tst_tsafe_getaddrinfo="no"
32446 else
32447 tst_tsafe_getaddrinfo="yes"
32448 fi
32449 fi
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32451$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32452 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32453
32454cat >>confdefs.h <<_ACEOF
32455#define HAVE_GETADDRINFO_THREADSAFE 1
32456_ACEOF
32457
32458 curl_cv_func_getaddrinfo_threadsafe="yes"
32459 else
32460 curl_cv_func_getaddrinfo_threadsafe="no"
32461 fi
32462 fi
32463
32464
32465 #
32466 tst_links_gai_strerror="unknown"
32467 tst_proto_gai_strerror="unknown"
32468 tst_compi_gai_strerror="unknown"
32469 tst_allow_gai_strerror="unknown"
32470 #
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32472$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32474/* end confdefs.h. */
32475
32476
32477 $curl_includes_winsock2
32478 $curl_includes_netdb
32479
32480int main (void)
32481{
32482
32483 if(0 != gai_strerror(0))
32484 return 1;
32485
32486 ;
32487 return 0;
32488}
32489
32490_ACEOF
32491if ac_fn_c_try_link "$LINENO"; then :
32492
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32494$as_echo "yes" >&6; }
32495 tst_links_gai_strerror="yes"
32496
32497else
32498
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32500$as_echo "no" >&6; }
32501 tst_links_gai_strerror="no"
32502
32503fi
32504rm -f core conftest.err conftest.$ac_objext \
32505 conftest$ac_exeext conftest.$ac_ext
32506 #
32507 if test "$tst_links_gai_strerror" = "yes"; then
32508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32509$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32511/* end confdefs.h. */
32512
32513 $curl_includes_winsock2
32514 $curl_includes_netdb
32515
32516_ACEOF
32517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32518 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32519
32520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32521$as_echo "yes" >&6; }
32522 tst_proto_gai_strerror="yes"
32523
32524else
32525
32526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32527$as_echo "no" >&6; }
32528 tst_proto_gai_strerror="no"
32529
32530fi
32531rm -f conftest*
32532
32533 fi
32534 #
32535 if test "$tst_proto_gai_strerror" = "yes"; then
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32537$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32539/* end confdefs.h. */
32540
32541
32542 $curl_includes_winsock2
32543 $curl_includes_netdb
32544
32545int main (void)
32546{
32547
32548 if(0 != gai_strerror(0))
32549 return 1;
32550
32551 ;
32552 return 0;
32553}
32554
32555_ACEOF
32556if ac_fn_c_try_compile "$LINENO"; then :
32557
32558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32559$as_echo "yes" >&6; }
32560 tst_compi_gai_strerror="yes"
32561
32562else
32563
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32565$as_echo "no" >&6; }
32566 tst_compi_gai_strerror="no"
32567
32568fi
32569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32570 fi
32571 #
32572 if test "$tst_compi_gai_strerror" = "yes"; then
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32574$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32575 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32577$as_echo "yes" >&6; }
32578 tst_allow_gai_strerror="yes"
32579 else
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32581$as_echo "no" >&6; }
32582 tst_allow_gai_strerror="no"
32583 fi
32584 fi
32585 #
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32587$as_echo_n "checking if gai_strerror might be used... " >&6; }
32588 if test "$tst_links_gai_strerror" = "yes" &&
32589 test "$tst_proto_gai_strerror" = "yes" &&
32590 test "$tst_compi_gai_strerror" = "yes" &&
32591 test "$tst_allow_gai_strerror" = "yes"; then
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32593$as_echo "yes" >&6; }
32594
32595cat >>confdefs.h <<_ACEOF
32596#define HAVE_GAI_STRERROR 1
32597_ACEOF
32598
32599 curl_cv_func_gai_strerror="yes"
32600 else
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32602$as_echo "no" >&6; }
32603 curl_cv_func_gai_strerror="no"
32604 fi
32605
32606
32607 #
32608 tst_links_gethostbyaddr="unknown"
32609 tst_proto_gethostbyaddr="unknown"
32610 tst_compi_gethostbyaddr="unknown"
32611 tst_allow_gethostbyaddr="unknown"
32612 #
32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32614$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32616/* end confdefs.h. */
32617
32618
32619 $curl_includes_winsock2
32620 $curl_includes_netdb
32621
32622int main (void)
32623{
32624
32625 if(0 != gethostbyaddr(0, 0, 0))
32626 return 1;
32627
32628 ;
32629 return 0;
32630}
32631
32632_ACEOF
32633if ac_fn_c_try_link "$LINENO"; then :
32634
32635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32636$as_echo "yes" >&6; }
32637 tst_links_gethostbyaddr="yes"
32638
32639else
32640
32641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32642$as_echo "no" >&6; }
32643 tst_links_gethostbyaddr="no"
32644
32645fi
32646rm -f core conftest.err conftest.$ac_objext \
32647 conftest$ac_exeext conftest.$ac_ext
32648 #
32649 if test "$tst_links_gethostbyaddr" = "yes"; then
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32651$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32653/* end confdefs.h. */
32654
32655 $curl_includes_winsock2
32656 $curl_includes_netdb
32657
32658_ACEOF
32659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32660 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32661
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32663$as_echo "yes" >&6; }
32664 tst_proto_gethostbyaddr="yes"
32665
32666else
32667
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32669$as_echo "no" >&6; }
32670 tst_proto_gethostbyaddr="no"
32671
32672fi
32673rm -f conftest*
32674
32675 fi
32676 #
32677 if test "$tst_proto_gethostbyaddr" = "yes"; then
32678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32679$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32681/* end confdefs.h. */
32682
32683
32684 $curl_includes_winsock2
32685 $curl_includes_netdb
32686
32687int main (void)
32688{
32689
32690 if(0 != gethostbyaddr(0, 0, 0))
32691 return 1;
32692
32693 ;
32694 return 0;
32695}
32696
32697_ACEOF
32698if ac_fn_c_try_compile "$LINENO"; then :
32699
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32701$as_echo "yes" >&6; }
32702 tst_compi_gethostbyaddr="yes"
32703
32704else
32705
32706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32707$as_echo "no" >&6; }
32708 tst_compi_gethostbyaddr="no"
32709
32710fi
32711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32712 fi
32713 #
32714 if test "$tst_compi_gethostbyaddr" = "yes"; then
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32716$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32717 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32719$as_echo "yes" >&6; }
32720 tst_allow_gethostbyaddr="yes"
32721 else
32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32723$as_echo "no" >&6; }
32724 tst_allow_gethostbyaddr="no"
32725 fi
32726 fi
32727 #
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32729$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32730 if test "$tst_links_gethostbyaddr" = "yes" &&
32731 test "$tst_proto_gethostbyaddr" = "yes" &&
32732 test "$tst_compi_gethostbyaddr" = "yes" &&
32733 test "$tst_allow_gethostbyaddr" = "yes"; then
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32735$as_echo "yes" >&6; }
32736
32737cat >>confdefs.h <<_ACEOF
32738#define HAVE_GETHOSTBYADDR 1
32739_ACEOF
32740
32741 curl_cv_func_gethostbyaddr="yes"
32742 else
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32744$as_echo "no" >&6; }
32745 curl_cv_func_gethostbyaddr="no"
32746 fi
32747
32748
32749 #
32750 tst_links_gethostbyaddr_r="unknown"
32751 tst_proto_gethostbyaddr_r="unknown"
32752 tst_compi_gethostbyaddr_r="unknown"
32753 tst_allow_gethostbyaddr_r="unknown"
32754 tst_nargs_gethostbyaddr_r="unknown"
32755 #
32756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32757$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32759/* end confdefs.h. */
32760
32761
32762#define gethostbyaddr_r innocuous_gethostbyaddr_r
32763#ifdef __STDC__
32764# include <limits.h>
32765#else
32766# include <assert.h>
32767#endif
32768#undef gethostbyaddr_r
32769#ifdef __cplusplus
32770extern "C"
32771#endif
32772char gethostbyaddr_r ();
32773#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32774choke me
32775#endif
32776
32777int main (void)
32778{
32779return gethostbyaddr_r ();
32780 ;
32781 return 0;
32782}
32783
32784_ACEOF
32785if ac_fn_c_try_link "$LINENO"; then :
32786
32787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32788$as_echo "yes" >&6; }
32789 tst_links_gethostbyaddr_r="yes"
32790
32791else
32792
32793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32794$as_echo "no" >&6; }
32795 tst_links_gethostbyaddr_r="no"
32796
32797fi
32798rm -f core conftest.err conftest.$ac_objext \
32799 conftest$ac_exeext conftest.$ac_ext
32800 #
32801 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32803$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32805/* end confdefs.h. */
32806
32807 $curl_includes_netdb
32808
32809_ACEOF
32810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32811 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32812
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32814$as_echo "yes" >&6; }
32815 tst_proto_gethostbyaddr_r="yes"
32816
32817else
32818
32819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32820$as_echo "no" >&6; }
32821 tst_proto_gethostbyaddr_r="no"
32822
32823fi
32824rm -f conftest*
32825
32826 fi
32827 #
32828 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32829 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32831$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32833/* end confdefs.h. */
32834
32835
32836 $curl_includes_netdb
32837
32838int main (void)
32839{
32840
32841 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32842 return 1;
32843
32844 ;
32845 return 0;
32846}
32847
32848_ACEOF
32849if ac_fn_c_try_compile "$LINENO"; then :
32850
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32852$as_echo "yes" >&6; }
32853 tst_compi_gethostbyaddr_r="yes"
32854 tst_nargs_gethostbyaddr_r="5"
32855
32856else
32857
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32859$as_echo "no" >&6; }
32860 tst_compi_gethostbyaddr_r="no"
32861
32862fi
32863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32864 fi
32865 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32867$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32869/* end confdefs.h. */
32870
32871
32872 $curl_includes_netdb
32873
32874int main (void)
32875{
32876
32877 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32878 return 1;
32879
32880 ;
32881 return 0;
32882}
32883
32884_ACEOF
32885if ac_fn_c_try_compile "$LINENO"; then :
32886
32887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32888$as_echo "yes" >&6; }
32889 tst_compi_gethostbyaddr_r="yes"
32890 tst_nargs_gethostbyaddr_r="7"
32891
32892else
32893
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32895$as_echo "no" >&6; }
32896 tst_compi_gethostbyaddr_r="no"
32897
32898fi
32899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32900 fi
32901 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32903$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32905/* end confdefs.h. */
32906
32907
32908 $curl_includes_netdb
32909
32910int main (void)
32911{
32912
32913 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32914 return 1;
32915
32916 ;
32917 return 0;
32918}
32919
32920_ACEOF
32921if ac_fn_c_try_compile "$LINENO"; then :
32922
32923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32924$as_echo "yes" >&6; }
32925 tst_compi_gethostbyaddr_r="yes"
32926 tst_nargs_gethostbyaddr_r="8"
32927
32928else
32929
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32931$as_echo "no" >&6; }
32932 tst_compi_gethostbyaddr_r="no"
32933
32934fi
32935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32936 fi
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32938$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32939 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941$as_echo "yes" >&6; }
32942 else
32943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32944$as_echo "no" >&6; }
32945 fi
32946 fi
32947 #
32948 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32950$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32951 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32953$as_echo "yes" >&6; }
32954 tst_allow_gethostbyaddr_r="yes"
32955 else
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32957$as_echo "no" >&6; }
32958 tst_allow_gethostbyaddr_r="no"
32959 fi
32960 fi
32961 #
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32963$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32964 if test "$tst_links_gethostbyaddr_r" = "yes" &&
32965 test "$tst_proto_gethostbyaddr_r" = "yes" &&
32966 test "$tst_compi_gethostbyaddr_r" = "yes" &&
32967 test "$tst_allow_gethostbyaddr_r" = "yes"; then
32968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32969$as_echo "yes" >&6; }
32970
32971cat >>confdefs.h <<_ACEOF
32972#define HAVE_GETHOSTBYADDR_R 1
32973_ACEOF
32974
32975 #
32976 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32977
32978$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32979
32980 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32981
32982$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32983
32984 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32985
32986$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32987
32988 fi
32989 #
32990 curl_cv_func_gethostbyaddr_r="yes"
32991 else
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993$as_echo "no" >&6; }
32994 curl_cv_func_gethostbyaddr_r="no"
32995 fi
32996
32997
32998 #
32999 tst_links_gethostbyname="unknown"
33000 tst_proto_gethostbyname="unknown"
33001 tst_compi_gethostbyname="unknown"
33002 tst_allow_gethostbyname="unknown"
33003 #
33004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33005$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33007/* end confdefs.h. */
33008
33009
33010 $curl_includes_winsock2
33011 $curl_includes_netdb
33012
33013int main (void)
33014{
33015
33016 if(0 != gethostbyname(0))
33017 return 1;
33018
33019 ;
33020 return 0;
33021}
33022
33023_ACEOF
33024if ac_fn_c_try_link "$LINENO"; then :
33025
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027$as_echo "yes" >&6; }
33028 tst_links_gethostbyname="yes"
33029
33030else
33031
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33033$as_echo "no" >&6; }
33034 tst_links_gethostbyname="no"
33035
33036fi
33037rm -f core conftest.err conftest.$ac_objext \
33038 conftest$ac_exeext conftest.$ac_ext
33039 #
33040 if test "$tst_links_gethostbyname" = "yes"; then
33041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33042$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33044/* end confdefs.h. */
33045
33046 $curl_includes_winsock2
33047 $curl_includes_netdb
33048
33049_ACEOF
33050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33051 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33052
33053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33054$as_echo "yes" >&6; }
33055 tst_proto_gethostbyname="yes"
33056
33057else
33058
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33060$as_echo "no" >&6; }
33061 tst_proto_gethostbyname="no"
33062
33063fi
33064rm -f conftest*
33065
33066 fi
33067 #
33068 if test "$tst_proto_gethostbyname" = "yes"; then
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33070$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33072/* end confdefs.h. */
33073
33074
33075 $curl_includes_winsock2
33076 $curl_includes_netdb
33077
33078int main (void)
33079{
33080
33081 if(0 != gethostbyname(0))
33082 return 1;
33083
33084 ;
33085 return 0;
33086}
33087
33088_ACEOF
33089if ac_fn_c_try_compile "$LINENO"; then :
33090
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33092$as_echo "yes" >&6; }
33093 tst_compi_gethostbyname="yes"
33094
33095else
33096
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33098$as_echo "no" >&6; }
33099 tst_compi_gethostbyname="no"
33100
33101fi
33102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33103 fi
33104 #
33105 if test "$tst_compi_gethostbyname" = "yes"; then
33106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33107$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33108 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33110$as_echo "yes" >&6; }
33111 tst_allow_gethostbyname="yes"
33112 else
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33114$as_echo "no" >&6; }
33115 tst_allow_gethostbyname="no"
33116 fi
33117 fi
33118 #
33119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33120$as_echo_n "checking if gethostbyname might be used... " >&6; }
33121 if test "$tst_links_gethostbyname" = "yes" &&
33122 test "$tst_proto_gethostbyname" = "yes" &&
33123 test "$tst_compi_gethostbyname" = "yes" &&
33124 test "$tst_allow_gethostbyname" = "yes"; then
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33126$as_echo "yes" >&6; }
33127
33128cat >>confdefs.h <<_ACEOF
33129#define HAVE_GETHOSTBYNAME 1
33130_ACEOF
33131
33132 curl_cv_func_gethostbyname="yes"
33133 else
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33135$as_echo "no" >&6; }
33136 curl_cv_func_gethostbyname="no"
33137 fi
33138
33139
33140 #
33141 tst_links_gethostbyname_r="unknown"
33142 tst_proto_gethostbyname_r="unknown"
33143 tst_compi_gethostbyname_r="unknown"
33144 tst_allow_gethostbyname_r="unknown"
33145 tst_nargs_gethostbyname_r="unknown"
33146 #
33147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33148$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33150/* end confdefs.h. */
33151
33152
33153#define gethostbyname_r innocuous_gethostbyname_r
33154#ifdef __STDC__
33155# include <limits.h>
33156#else
33157# include <assert.h>
33158#endif
33159#undef gethostbyname_r
33160#ifdef __cplusplus
33161extern "C"
33162#endif
33163char gethostbyname_r ();
33164#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33165choke me
33166#endif
33167
33168int main (void)
33169{
33170return gethostbyname_r ();
33171 ;
33172 return 0;
33173}
33174
33175_ACEOF
33176if ac_fn_c_try_link "$LINENO"; then :
33177
33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33179$as_echo "yes" >&6; }
33180 tst_links_gethostbyname_r="yes"
33181
33182else
33183
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33185$as_echo "no" >&6; }
33186 tst_links_gethostbyname_r="no"
33187
33188fi
33189rm -f core conftest.err conftest.$ac_objext \
33190 conftest$ac_exeext conftest.$ac_ext
33191 #
33192 if test "$tst_links_gethostbyname_r" = "yes"; then
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33194$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33196/* end confdefs.h. */
33197
33198 $curl_includes_netdb
33199
33200_ACEOF
33201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33202 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33203
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33205$as_echo "yes" >&6; }
33206 tst_proto_gethostbyname_r="yes"
33207
33208else
33209
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33211$as_echo "no" >&6; }
33212 tst_proto_gethostbyname_r="no"
33213
33214fi
33215rm -f conftest*
33216
33217 fi
33218 #
33219 if test "$tst_proto_gethostbyname_r" = "yes"; then
33220 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33222$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33224/* end confdefs.h. */
33225
33226
33227 $curl_includes_netdb
33228
33229int main (void)
33230{
33231
33232 if(0 != gethostbyname_r(0, 0, 0))
33233 return 1;
33234
33235 ;
33236 return 0;
33237}
33238
33239_ACEOF
33240if ac_fn_c_try_compile "$LINENO"; then :
33241
33242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33243$as_echo "yes" >&6; }
33244 tst_compi_gethostbyname_r="yes"
33245 tst_nargs_gethostbyname_r="3"
33246
33247else
33248
33249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33250$as_echo "no" >&6; }
33251 tst_compi_gethostbyname_r="no"
33252
33253fi
33254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33255 fi
33256 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33258$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33260/* end confdefs.h. */
33261
33262
33263 $curl_includes_netdb
33264
33265int main (void)
33266{
33267
33268 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33269 return 1;
33270
33271 ;
33272 return 0;
33273}
33274
33275_ACEOF
33276if ac_fn_c_try_compile "$LINENO"; then :
33277
33278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33279$as_echo "yes" >&6; }
33280 tst_compi_gethostbyname_r="yes"
33281 tst_nargs_gethostbyname_r="5"
33282
33283else
33284
33285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33286$as_echo "no" >&6; }
33287 tst_compi_gethostbyname_r="no"
33288
33289fi
33290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33291 fi
33292 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33294$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33296/* end confdefs.h. */
33297
33298
33299 $curl_includes_netdb
33300
33301int main (void)
33302{
33303
33304 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33305 return 1;
33306
33307 ;
33308 return 0;
33309}
33310
33311_ACEOF
33312if ac_fn_c_try_compile "$LINENO"; then :
33313
33314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33315$as_echo "yes" >&6; }
33316 tst_compi_gethostbyname_r="yes"
33317 tst_nargs_gethostbyname_r="6"
33318
33319else
33320
33321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33322$as_echo "no" >&6; }
33323 tst_compi_gethostbyname_r="no"
33324
33325fi
33326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33327 fi
33328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33329$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33330 if test "$tst_compi_gethostbyname_r" = "yes"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332$as_echo "yes" >&6; }
33333 else
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33335$as_echo "no" >&6; }
33336 fi
33337 fi
33338 #
33339 if test "$tst_compi_gethostbyname_r" = "yes"; then
33340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33341$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33342 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33344$as_echo "yes" >&6; }
33345 tst_allow_gethostbyname_r="yes"
33346 else
33347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33348$as_echo "no" >&6; }
33349 tst_allow_gethostbyname_r="no"
33350 fi
33351 fi
33352 #
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33354$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33355 if test "$tst_links_gethostbyname_r" = "yes" &&
33356 test "$tst_proto_gethostbyname_r" = "yes" &&
33357 test "$tst_compi_gethostbyname_r" = "yes" &&
33358 test "$tst_allow_gethostbyname_r" = "yes"; then
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33360$as_echo "yes" >&6; }
33361
33362cat >>confdefs.h <<_ACEOF
33363#define HAVE_GETHOSTBYNAME_R 1
33364_ACEOF
33365
33366 #
33367 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33368
33369$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33370
33371 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33372
33373$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33374
33375 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33376
33377$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33378
33379 fi
33380 #
33381 curl_cv_func_gethostbyname_r="yes"
33382 else
33383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33384$as_echo "no" >&6; }
33385 curl_cv_func_gethostbyname_r="no"
33386 fi
33387
33388
33389 #
33390 tst_links_gethostname="unknown"
33391 tst_proto_gethostname="unknown"
33392 tst_compi_gethostname="unknown"
33393 tst_allow_gethostname="unknown"
33394 #
33395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33396$as_echo_n "checking if gethostname can be linked... " >&6; }
33397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33398/* end confdefs.h. */
33399
33400
33401 $curl_includes_winsock2
33402 $curl_includes_unistd
33403
33404int main (void)
33405{
33406
33407 if(0 != gethostname(0, 0))
33408 return 1;
33409
33410 ;
33411 return 0;
33412}
33413
33414_ACEOF
33415if ac_fn_c_try_link "$LINENO"; then :
33416
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418$as_echo "yes" >&6; }
33419 tst_links_gethostname="yes"
33420
33421else
33422
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424$as_echo "no" >&6; }
33425 tst_links_gethostname="no"
33426
33427fi
33428rm -f core conftest.err conftest.$ac_objext \
33429 conftest$ac_exeext conftest.$ac_ext
33430 #
33431 if test "$tst_links_gethostname" = "yes"; then
33432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33433$as_echo_n "checking if gethostname is prototyped... " >&6; }
33434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33435/* end confdefs.h. */
33436
33437 $curl_includes_winsock2
33438 $curl_includes_unistd
33439
33440_ACEOF
33441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33442 $EGREP "gethostname" >/dev/null 2>&1; then :
33443
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33445$as_echo "yes" >&6; }
33446 tst_proto_gethostname="yes"
33447
33448else
33449
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33451$as_echo "no" >&6; }
33452 tst_proto_gethostname="no"
33453
33454fi
33455rm -f conftest*
33456
33457 fi
33458 #
33459 if test "$tst_proto_gethostname" = "yes"; then
33460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33461$as_echo_n "checking if gethostname is compilable... " >&6; }
33462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33463/* end confdefs.h. */
33464
33465
33466 $curl_includes_winsock2
33467 $curl_includes_unistd
33468
33469int main (void)
33470{
33471
33472 if(0 != gethostname(0, 0))
33473 return 1;
33474
33475 ;
33476 return 0;
33477}
33478
33479_ACEOF
33480if ac_fn_c_try_compile "$LINENO"; then :
33481
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483$as_echo "yes" >&6; }
33484 tst_compi_gethostname="yes"
33485
33486else
33487
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33489$as_echo "no" >&6; }
33490 tst_compi_gethostname="no"
33491
33492fi
33493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33494 fi
33495 #
33496 if test "$tst_compi_gethostname" = "yes"; then
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33498$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33499 tst_gethostname_type_arg2="unknown"
33500 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33501 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33502 if test "$tst_gethostname_type_arg2" = "unknown"; then
33503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33504/* end confdefs.h. */
33505
33506
33507 $curl_includes_winsock2
33508 $curl_includes_unistd
33509 $curl_preprocess_callconv
33510 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33511
33512int main (void)
33513{
33514
33515 if(0 != gethostname(0, 0))
33516 return 1;
33517
33518 ;
33519 return 0;
33520}
33521
33522_ACEOF
33523if ac_fn_c_try_compile "$LINENO"; then :
33524
33525 tst_gethostname_type_arg2="$tst_arg2"
33526
33527fi
33528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33529 fi
33530 done
33531 done
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33533$as_echo "$tst_gethostname_type_arg2" >&6; }
33534 if test "$tst_gethostname_type_arg2" != "unknown"; then
33535
33536cat >>confdefs.h <<_ACEOF
33537#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33538_ACEOF
33539
33540 fi
33541 fi
33542 #
33543 if test "$tst_compi_gethostname" = "yes"; then
33544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33545$as_echo_n "checking if gethostname usage allowed... " >&6; }
33546 if test "x$curl_disallow_gethostname" != "xyes"; then
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33548$as_echo "yes" >&6; }
33549 tst_allow_gethostname="yes"
33550 else
33551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33552$as_echo "no" >&6; }
33553 tst_allow_gethostname="no"
33554 fi
33555 fi
33556 #
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33558$as_echo_n "checking if gethostname might be used... " >&6; }
33559 if test "$tst_links_gethostname" = "yes" &&
33560 test "$tst_proto_gethostname" = "yes" &&
33561 test "$tst_compi_gethostname" = "yes" &&
33562 test "$tst_allow_gethostname" = "yes"; then
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33564$as_echo "yes" >&6; }
33565
33566cat >>confdefs.h <<_ACEOF
33567#define HAVE_GETHOSTNAME 1
33568_ACEOF
33569
33570 curl_cv_func_gethostname="yes"
33571 else
33572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33573$as_echo "no" >&6; }
33574 curl_cv_func_gethostname="no"
33575 fi
33576
33577
33578 #
33579 tst_links_getifaddrs="unknown"
33580 tst_proto_getifaddrs="unknown"
33581 tst_compi_getifaddrs="unknown"
33582 tst_works_getifaddrs="unknown"
33583 tst_allow_getifaddrs="unknown"
33584 #
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33586$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33588/* end confdefs.h. */
33589
33590
33591#define getifaddrs innocuous_getifaddrs
33592#ifdef __STDC__
33593# include <limits.h>
33594#else
33595# include <assert.h>
33596#endif
33597#undef getifaddrs
33598#ifdef __cplusplus
33599extern "C"
33600#endif
33601char getifaddrs ();
33602#if defined __stub_getifaddrs || defined __stub___getifaddrs
33603choke me
33604#endif
33605
33606int main (void)
33607{
33608return getifaddrs ();
33609 ;
33610 return 0;
33611}
33612
33613_ACEOF
33614if ac_fn_c_try_link "$LINENO"; then :
33615
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33617$as_echo "yes" >&6; }
33618 tst_links_getifaddrs="yes"
33619
33620else
33621
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33623$as_echo "no" >&6; }
33624 tst_links_getifaddrs="no"
33625
33626fi
33627rm -f core conftest.err conftest.$ac_objext \
33628 conftest$ac_exeext conftest.$ac_ext
33629 #
33630 if test "$tst_links_getifaddrs" = "yes"; then
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33632$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33634/* end confdefs.h. */
33635
33636 $curl_includes_ifaddrs
33637
33638_ACEOF
33639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33640 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33641
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643$as_echo "yes" >&6; }
33644 tst_proto_getifaddrs="yes"
33645
33646else
33647
33648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33649$as_echo "no" >&6; }
33650 tst_proto_getifaddrs="no"
33651
33652fi
33653rm -f conftest*
33654
33655 fi
33656 #
33657 if test "$tst_proto_getifaddrs" = "yes"; then
33658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33659$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33661/* end confdefs.h. */
33662
33663
33664 $curl_includes_ifaddrs
33665
33666int main (void)
33667{
33668
33669 if(0 != getifaddrs(0))
33670 return 1;
33671
33672 ;
33673 return 0;
33674}
33675
33676_ACEOF
33677if ac_fn_c_try_compile "$LINENO"; then :
33678
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33680$as_echo "yes" >&6; }
33681 tst_compi_getifaddrs="yes"
33682
33683else
33684
33685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33686$as_echo "no" >&6; }
33687 tst_compi_getifaddrs="no"
33688
33689fi
33690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691 fi
33692 #
33693 if test "x$cross_compiling" != "xyes" &&
33694 test "$tst_compi_getifaddrs" = "yes"; then
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33696$as_echo_n "checking if getifaddrs seems to work... " >&6; }
33697 if test "$cross_compiling" = yes; then :
33698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33700as_fn_error $? "cannot run test program while cross compiling
33701See \`config.log' for more details" "$LINENO" 5; }
33702else
33703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33704/* end confdefs.h. */
33705
33706
33707 $curl_includes_stdlib
33708 $curl_includes_ifaddrs
33709
33710int main (void)
33711{
33712
33713 struct ifaddrs *ifa = 0;
33714 int error;
33715
33716 error = getifaddrs(&ifa);
33717 if(error || !ifa)
33718 exit(1); /* fail */
33719 else
33720 exit(0);
33721
33722 ;
33723 return 0;
33724}
33725
33726_ACEOF
33727if ac_fn_c_try_run "$LINENO"; then :
33728
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33730$as_echo "yes" >&6; }
33731 tst_works_getifaddrs="yes"
33732
33733else
33734
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33736$as_echo "no" >&6; }
33737 tst_works_getifaddrs="no"
33738
33739fi
33740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33741 conftest.$ac_objext conftest.beam conftest.$ac_ext
33742fi
33743
33744 fi
33745 #
33746 if test "$tst_compi_getifaddrs" = "yes" &&
33747 test "$tst_works_getifaddrs" != "no"; then
33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33749$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33750 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33752$as_echo "yes" >&6; }
33753 tst_allow_getifaddrs="yes"
33754 else
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33756$as_echo "no" >&6; }
33757 tst_allow_getifaddrs="no"
33758 fi
33759 fi
33760 #
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33762$as_echo_n "checking if getifaddrs might be used... " >&6; }
33763 if test "$tst_links_getifaddrs" = "yes" &&
33764 test "$tst_proto_getifaddrs" = "yes" &&
33765 test "$tst_compi_getifaddrs" = "yes" &&
33766 test "$tst_allow_getifaddrs" = "yes" &&
33767 test "$tst_works_getifaddrs" != "no"; then
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33769$as_echo "yes" >&6; }
33770
33771cat >>confdefs.h <<_ACEOF
33772#define HAVE_GETIFADDRS 1
33773_ACEOF
33774
33775 curl_cv_func_getifaddrs="yes"
33776 else
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33778$as_echo "no" >&6; }
33779 curl_cv_func_getifaddrs="no"
33780 fi
33781
33782
33783 #
33784 tst_links_getservbyport_r="unknown"
33785 tst_proto_getservbyport_r="unknown"
33786 tst_compi_getservbyport_r="unknown"
33787 tst_allow_getservbyport_r="unknown"
33788 tst_nargs_getservbyport_r="unknown"
33789 #
33790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33791$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33793/* end confdefs.h. */
33794
33795
33796#define getservbyport_r innocuous_getservbyport_r
33797#ifdef __STDC__
33798# include <limits.h>
33799#else
33800# include <assert.h>
33801#endif
33802#undef getservbyport_r
33803#ifdef __cplusplus
33804extern "C"
33805#endif
33806char getservbyport_r ();
33807#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33808choke me
33809#endif
33810
33811int main (void)
33812{
33813return getservbyport_r ();
33814 ;
33815 return 0;
33816}
33817
33818_ACEOF
33819if ac_fn_c_try_link "$LINENO"; then :
33820
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33822$as_echo "yes" >&6; }
33823 tst_links_getservbyport_r="yes"
33824
33825else
33826
33827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33828$as_echo "no" >&6; }
33829 tst_links_getservbyport_r="no"
33830
33831fi
33832rm -f core conftest.err conftest.$ac_objext \
33833 conftest$ac_exeext conftest.$ac_ext
33834 #
33835 if test "$tst_links_getservbyport_r" = "yes"; then
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33837$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33839/* end confdefs.h. */
33840
33841 $curl_includes_netdb
33842
33843_ACEOF
33844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33845 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33846
33847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33848$as_echo "yes" >&6; }
33849 tst_proto_getservbyport_r="yes"
33850
33851else
33852
33853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33854$as_echo "no" >&6; }
33855 tst_proto_getservbyport_r="no"
33856
33857fi
33858rm -f conftest*
33859
33860 fi
33861 #
33862 if test "$tst_proto_getservbyport_r" = "yes"; then
33863 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33865$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33867/* end confdefs.h. */
33868
33869
33870 $curl_includes_netdb
33871
33872int main (void)
33873{
33874
33875 if(0 != getservbyport_r(0, 0, 0, 0))
33876 return 1;
33877
33878 ;
33879 return 0;
33880}
33881
33882_ACEOF
33883if ac_fn_c_try_compile "$LINENO"; then :
33884
33885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33886$as_echo "yes" >&6; }
33887 tst_compi_getservbyport_r="yes"
33888 tst_nargs_getservbyport_r="4"
33889
33890else
33891
33892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33893$as_echo "no" >&6; }
33894 tst_compi_getservbyport_r="no"
33895
33896fi
33897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33898 fi
33899 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33901$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33903/* end confdefs.h. */
33904
33905
33906 $curl_includes_netdb
33907
33908int main (void)
33909{
33910
33911 if(0 != getservbyport_r(0, 0, 0, 0, 0))
33912 return 1;
33913
33914 ;
33915 return 0;
33916}
33917
33918_ACEOF
33919if ac_fn_c_try_compile "$LINENO"; then :
33920
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33922$as_echo "yes" >&6; }
33923 tst_compi_getservbyport_r="yes"
33924 tst_nargs_getservbyport_r="5"
33925
33926else
33927
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33929$as_echo "no" >&6; }
33930 tst_compi_getservbyport_r="no"
33931
33932fi
33933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33934 fi
33935 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33937$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33939/* end confdefs.h. */
33940
33941
33942 $curl_includes_netdb
33943
33944int main (void)
33945{
33946
33947 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33948 return 1;
33949
33950 ;
33951 return 0;
33952}
33953
33954_ACEOF
33955if ac_fn_c_try_compile "$LINENO"; then :
33956
33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33958$as_echo "yes" >&6; }
33959 tst_compi_getservbyport_r="yes"
33960 tst_nargs_getservbyport_r="6"
33961
33962else
33963
33964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33965$as_echo "no" >&6; }
33966 tst_compi_getservbyport_r="no"
33967
33968fi
33969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33972$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33973 if test "$tst_compi_getservbyport_r" = "yes"; then
33974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33975$as_echo "yes" >&6; }
33976 else
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33978$as_echo "no" >&6; }
33979 fi
33980 fi
33981 #
33982 if test "$tst_compi_getservbyport_r" = "yes"; then
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33984$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33985 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33987$as_echo "yes" >&6; }
33988 tst_allow_getservbyport_r="yes"
33989 else
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33991$as_echo "no" >&6; }
33992 tst_allow_getservbyport_r="no"
33993 fi
33994 fi
33995 #
33996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33997$as_echo_n "checking if getservbyport_r might be used... " >&6; }
33998 if test "$tst_links_getservbyport_r" = "yes" &&
33999 test "$tst_proto_getservbyport_r" = "yes" &&
34000 test "$tst_compi_getservbyport_r" = "yes" &&
34001 test "$tst_allow_getservbyport_r" = "yes"; then
34002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34003$as_echo "yes" >&6; }
34004
34005cat >>confdefs.h <<_ACEOF
34006#define HAVE_GETSERVBYPORT_R 1
34007_ACEOF
34008
34009
34010cat >>confdefs.h <<_ACEOF
34011#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34012_ACEOF
34013
34014 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34015
34016$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34017
34018 else
34019
34020$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34021
34022 fi
34023 curl_cv_func_getservbyport_r="yes"
34024 else
34025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34026$as_echo "no" >&6; }
34027 curl_cv_func_getservbyport_r="no"
34028 fi
34029
34030
34031curl_includes_time="\
34032/* includes start */
34033#ifdef HAVE_SYS_TYPES_H
34034# include <sys/types.h>
34035#endif
34036#ifdef HAVE_SYS_TIME_H
34037# include <sys/time.h>
34038# ifdef TIME_WITH_SYS_TIME
34039# include <time.h>
34040# endif
34041#else
34042# ifdef HAVE_TIME_H
34043# include <time.h>
34044# endif
34045#endif
34046/* includes end */"
34047 for ac_header in sys/types.h sys/time.h time.h
34048do :
34049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34051"
34052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34053 cat >>confdefs.h <<_ACEOF
34054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34055_ACEOF
34056
34057fi
34058
34059done
34060
34061
34062
34063 #
34064 tst_links_gmtime_r="unknown"
34065 tst_proto_gmtime_r="unknown"
34066 tst_compi_gmtime_r="unknown"
34067 tst_works_gmtime_r="unknown"
34068 tst_allow_gmtime_r="unknown"
34069 #
34070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34071$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34073/* end confdefs.h. */
34074
34075
34076#define gmtime_r innocuous_gmtime_r
34077#ifdef __STDC__
34078# include <limits.h>
34079#else
34080# include <assert.h>
34081#endif
34082#undef gmtime_r
34083#ifdef __cplusplus
34084extern "C"
34085#endif
34086char gmtime_r ();
34087#if defined __stub_gmtime_r || defined __stub___gmtime_r
34088choke me
34089#endif
34090
34091int main (void)
34092{
34093return gmtime_r ();
34094 ;
34095 return 0;
34096}
34097
34098_ACEOF
34099if ac_fn_c_try_link "$LINENO"; then :
34100
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34102$as_echo "yes" >&6; }
34103 tst_links_gmtime_r="yes"
34104
34105else
34106
34107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34108$as_echo "no" >&6; }
34109 tst_links_gmtime_r="no"
34110
34111fi
34112rm -f core conftest.err conftest.$ac_objext \
34113 conftest$ac_exeext conftest.$ac_ext
34114 #
34115 if test "$tst_links_gmtime_r" = "yes"; then
34116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34117$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34119/* end confdefs.h. */
34120
34121 $curl_includes_time
34122
34123_ACEOF
34124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34125 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34126
34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34128$as_echo "yes" >&6; }
34129 tst_proto_gmtime_r="yes"
34130
34131else
34132
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34134$as_echo "no" >&6; }
34135 tst_proto_gmtime_r="no"
34136
34137fi
34138rm -f conftest*
34139
34140 fi
34141 #
34142 if test "$tst_proto_gmtime_r" = "yes"; then
34143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34144$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34146/* end confdefs.h. */
34147
34148
34149 $curl_includes_time
34150
34151int main (void)
34152{
34153
34154 if(0 != gmtime_r(0, 0))
34155 return 1;
34156
34157 ;
34158 return 0;
34159}
34160
34161_ACEOF
34162if ac_fn_c_try_compile "$LINENO"; then :
34163
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34165$as_echo "yes" >&6; }
34166 tst_compi_gmtime_r="yes"
34167
34168else
34169
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34171$as_echo "no" >&6; }
34172 tst_compi_gmtime_r="no"
34173
34174fi
34175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34176 fi
34177 #
34178 if test "x$cross_compiling" != "xyes" &&
34179 test "$tst_compi_gmtime_r" = "yes"; then
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34181$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34182 if test "$cross_compiling" = yes; then :
34183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34185as_fn_error $? "cannot run test program while cross compiling
34186See \`config.log' for more details" "$LINENO" 5; }
34187else
34188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34189/* end confdefs.h. */
34190
34191
34192 $curl_includes_stdlib
34193 $curl_includes_time
34194
34195int main (void)
34196{
34197
34198 time_t local = 1170352587;
34199 struct tm *gmt = 0;
34200 struct tm result;
34201 gmt = gmtime_r(&local, &result);
34202 if(gmt)
34203 exit(0);
34204 else
34205 exit(1);
34206
34207 ;
34208 return 0;
34209}
34210
34211_ACEOF
34212if ac_fn_c_try_run "$LINENO"; then :
34213
34214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34215$as_echo "yes" >&6; }
34216 tst_works_gmtime_r="yes"
34217
34218else
34219
34220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34221$as_echo "no" >&6; }
34222 tst_works_gmtime_r="no"
34223
34224fi
34225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34226 conftest.$ac_objext conftest.beam conftest.$ac_ext
34227fi
34228
34229 fi
34230 #
34231 if test "$tst_compi_gmtime_r" = "yes" &&
34232 test "$tst_works_gmtime_r" != "no"; then
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34234$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34235 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34237$as_echo "yes" >&6; }
34238 tst_allow_gmtime_r="yes"
34239 else
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34241$as_echo "no" >&6; }
34242 tst_allow_gmtime_r="no"
34243 fi
34244 fi
34245 #
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34247$as_echo_n "checking if gmtime_r might be used... " >&6; }
34248 if test "$tst_links_gmtime_r" = "yes" &&
34249 test "$tst_proto_gmtime_r" = "yes" &&
34250 test "$tst_compi_gmtime_r" = "yes" &&
34251 test "$tst_allow_gmtime_r" = "yes" &&
34252 test "$tst_works_gmtime_r" != "no"; then
34253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34254$as_echo "yes" >&6; }
34255
34256cat >>confdefs.h <<_ACEOF
34257#define HAVE_GMTIME_R 1
34258_ACEOF
34259
34260 curl_cv_func_gmtime_r="yes"
34261 else
34262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34263$as_echo "no" >&6; }
34264 curl_cv_func_gmtime_r="no"
34265 fi
34266
34267
34268curl_includes_arpa_inet="\
34269/* includes start */
34270#ifdef HAVE_SYS_TYPES_H
34271# include <sys/types.h>
34272#endif
34273#ifdef HAVE_SYS_SOCKET_H
34274# include <sys/socket.h>
34275#endif
34276#ifdef HAVE_NETINET_IN_H
34277# include <netinet/in.h>
34278#endif
34279#ifdef HAVE_ARPA_INET_H
34280# include <arpa/inet.h>
34281#endif
34282#ifdef HAVE_WINSOCK2_H
34283#include <winsock2.h>
34284#include <ws2tcpip.h>
34285#endif
34286/* includes end */"
34287 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34288do :
34289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34290ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34291"
34292if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34293 cat >>confdefs.h <<_ACEOF
34294#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34295_ACEOF
34296
34297fi
34298
34299done
34300
34301
34302
34303 #
34304 tst_links_inet_ntoa_r="unknown"
34305 tst_proto_inet_ntoa_r="unknown"
34306 tst_compi_inet_ntoa_r="unknown"
34307 tst_allow_inet_ntoa_r="unknown"
34308 tst_nargs_inet_ntoa_r="unknown"
34309 #
34310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34311$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34313/* end confdefs.h. */
34314
34315
34316#define inet_ntoa_r innocuous_inet_ntoa_r
34317#ifdef __STDC__
34318# include <limits.h>
34319#else
34320# include <assert.h>
34321#endif
34322#undef inet_ntoa_r
34323#ifdef __cplusplus
34324extern "C"
34325#endif
34326char inet_ntoa_r ();
34327#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34328choke me
34329#endif
34330
34331int main (void)
34332{
34333return inet_ntoa_r ();
34334 ;
34335 return 0;
34336}
34337
34338_ACEOF
34339if ac_fn_c_try_link "$LINENO"; then :
34340
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34342$as_echo "yes" >&6; }
34343 tst_links_inet_ntoa_r="yes"
34344
34345else
34346
34347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34348$as_echo "no" >&6; }
34349 tst_links_inet_ntoa_r="no"
34350
34351fi
34352rm -f core conftest.err conftest.$ac_objext \
34353 conftest$ac_exeext conftest.$ac_ext
34354 #
34355 if test "$tst_links_inet_ntoa_r" = "yes"; then
34356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34357$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34359/* end confdefs.h. */
34360
34361 $curl_includes_arpa_inet
34362
34363_ACEOF
34364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34365 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34366
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34368$as_echo "yes" >&6; }
34369 tst_proto_inet_ntoa_r="yes"
34370
34371else
34372
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374$as_echo "no" >&6; }
34375 tst_proto_inet_ntoa_r="no"
34376
34377fi
34378rm -f conftest*
34379
34380 fi
34381 #
34382 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34383 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34385$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34387/* end confdefs.h. */
34388
34389
34390 $curl_includes_arpa_inet
34391
34392int main (void)
34393{
34394
34395 struct in_addr addr;
34396 if(0 != inet_ntoa_r(addr, 0))
34397 return 1;
34398
34399 ;
34400 return 0;
34401}
34402
34403_ACEOF
34404if ac_fn_c_try_compile "$LINENO"; then :
34405
34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407$as_echo "yes" >&6; }
34408 tst_compi_inet_ntoa_r="yes"
34409 tst_nargs_inet_ntoa_r="2"
34410
34411else
34412
34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34414$as_echo "no" >&6; }
34415 tst_compi_inet_ntoa_r="no"
34416
34417fi
34418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419 fi
34420 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34422$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34424/* end confdefs.h. */
34425
34426
34427 $curl_includes_arpa_inet
34428
34429int main (void)
34430{
34431
34432 struct in_addr addr;
34433 if(0 != inet_ntoa_r(addr, 0, 0))
34434 return 1;
34435
34436 ;
34437 return 0;
34438}
34439
34440_ACEOF
34441if ac_fn_c_try_compile "$LINENO"; then :
34442
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444$as_echo "yes" >&6; }
34445 tst_compi_inet_ntoa_r="yes"
34446 tst_nargs_inet_ntoa_r="3"
34447
34448else
34449
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34451$as_echo "no" >&6; }
34452 tst_compi_inet_ntoa_r="no"
34453
34454fi
34455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34456 fi
34457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34458$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34459 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34461$as_echo "yes" >&6; }
34462 else
34463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34464$as_echo "no" >&6; }
34465 fi
34466 fi
34467 #
34468 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34470$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34471 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34473$as_echo "yes" >&6; }
34474 tst_allow_inet_ntoa_r="yes"
34475 else
34476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34477$as_echo "no" >&6; }
34478 tst_allow_inet_ntoa_r="no"
34479 fi
34480 fi
34481 #
34482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34483$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34484 if test "$tst_links_inet_ntoa_r" = "yes" &&
34485 test "$tst_proto_inet_ntoa_r" = "yes" &&
34486 test "$tst_compi_inet_ntoa_r" = "yes" &&
34487 test "$tst_allow_inet_ntoa_r" = "yes"; then
34488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34489$as_echo "yes" >&6; }
34490
34491cat >>confdefs.h <<_ACEOF
34492#define HAVE_INET_NTOA_R 1
34493_ACEOF
34494
34495 #
34496 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34497
34498$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34499
34500 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34501
34502$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34503
34504 fi
34505 #
34506 curl_cv_func_inet_ntoa_r="yes"
34507 else
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34509$as_echo "no" >&6; }
34510 curl_cv_func_inet_ntoa_r="no"
34511 fi
34512
34513
34514 #
34515 tst_links_inet_ntop="unknown"
34516 tst_proto_inet_ntop="unknown"
34517 tst_compi_inet_ntop="unknown"
34518 tst_works_inet_ntop="unknown"
34519 tst_allow_inet_ntop="unknown"
34520 #
34521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34522$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34524/* end confdefs.h. */
34525
34526
34527#define inet_ntop innocuous_inet_ntop
34528#ifdef __STDC__
34529# include <limits.h>
34530#else
34531# include <assert.h>
34532#endif
34533#undef inet_ntop
34534#ifdef __cplusplus
34535extern "C"
34536#endif
34537char inet_ntop ();
34538#if defined __stub_inet_ntop || defined __stub___inet_ntop
34539choke me
34540#endif
34541
34542int main (void)
34543{
34544return inet_ntop ();
34545 ;
34546 return 0;
34547}
34548
34549_ACEOF
34550if ac_fn_c_try_link "$LINENO"; then :
34551
34552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34553$as_echo "yes" >&6; }
34554 tst_links_inet_ntop="yes"
34555
34556else
34557
34558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34559$as_echo "no" >&6; }
34560 tst_links_inet_ntop="no"
34561
34562fi
34563rm -f core conftest.err conftest.$ac_objext \
34564 conftest$ac_exeext conftest.$ac_ext
34565 #
34566 if test "$tst_links_inet_ntop" = "yes"; then
34567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34568$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34570/* end confdefs.h. */
34571
34572 $curl_includes_arpa_inet
34573
34574_ACEOF
34575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34576 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34577
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34579$as_echo "yes" >&6; }
34580 tst_proto_inet_ntop="yes"
34581
34582else
34583
34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34585$as_echo "no" >&6; }
34586 tst_proto_inet_ntop="no"
34587
34588fi
34589rm -f conftest*
34590
34591 fi
34592 #
34593 if test "$tst_proto_inet_ntop" = "yes"; then
34594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34595$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34597/* end confdefs.h. */
34598
34599
34600 $curl_includes_arpa_inet
34601
34602int main (void)
34603{
34604
34605 if(0 != inet_ntop(0, 0, 0, 0))
34606 return 1;
34607
34608 ;
34609 return 0;
34610}
34611
34612_ACEOF
34613if ac_fn_c_try_compile "$LINENO"; then :
34614
34615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34616$as_echo "yes" >&6; }
34617 tst_compi_inet_ntop="yes"
34618
34619else
34620
34621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34622$as_echo "no" >&6; }
34623 tst_compi_inet_ntop="no"
34624
34625fi
34626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34627 fi
34628 #
34629 if test "x$cross_compiling" != "xyes" &&
34630 test "$tst_compi_inet_ntop" = "yes"; then
34631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34632$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34633 if test "$cross_compiling" = yes; then :
34634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34636as_fn_error $? "cannot run test program while cross compiling
34637See \`config.log' for more details" "$LINENO" 5; }
34638else
34639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34640/* end confdefs.h. */
34641
34642
34643 $curl_includes_stdlib
34644 $curl_includes_arpa_inet
34645 $curl_includes_string
34646
34647int main (void)
34648{
34649
34650 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34651 char ipv4res[sizeof "255.255.255.255"];
34652 unsigned char ipv6a[26];
34653 unsigned char ipv4a[5];
34654 char *ipv6ptr = 0;
34655 char *ipv4ptr = 0;
34656 /* - */
34657 ipv4res[0] = '\0';
34658 ipv4a[0] = 0xc0;
34659 ipv4a[1] = 0xa8;
34660 ipv4a[2] = 0x64;
34661 ipv4a[3] = 0x01;
34662 ipv4a[4] = 0x01;
34663 /* - */
34664 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34665 if(!ipv4ptr)
34666 exit(1); /* fail */
34667 if(ipv4ptr != ipv4res)
34668 exit(1); /* fail */
34669 if(!ipv4ptr[0])
34670 exit(1); /* fail */
34671 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34672 exit(1); /* fail */
34673 /* - */
34674 ipv6res[0] = '\0';
34675 memset(ipv6a, 0, sizeof(ipv6a));
34676 ipv6a[0] = 0xfe;
34677 ipv6a[1] = 0x80;
34678 ipv6a[8] = 0x02;
34679 ipv6a[9] = 0x14;
34680 ipv6a[10] = 0x4f;
34681 ipv6a[11] = 0xff;
34682 ipv6a[12] = 0xfe;
34683 ipv6a[13] = 0x0b;
34684 ipv6a[14] = 0x76;
34685 ipv6a[15] = 0xc8;
34686 ipv6a[25] = 0x01;
34687 /* - */
34688 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34689 if(!ipv6ptr)
34690 exit(1); /* fail */
34691 if(ipv6ptr != ipv6res)
34692 exit(1); /* fail */
34693 if(!ipv6ptr[0])
34694 exit(1); /* fail */
34695 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34696 exit(1); /* fail */
34697 /* - */
34698 exit(0);
34699
34700 ;
34701 return 0;
34702}
34703
34704_ACEOF
34705if ac_fn_c_try_run "$LINENO"; then :
34706
34707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34708$as_echo "yes" >&6; }
34709 tst_works_inet_ntop="yes"
34710
34711else
34712
34713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34714$as_echo "no" >&6; }
34715 tst_works_inet_ntop="no"
34716
34717fi
34718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34719 conftest.$ac_objext conftest.beam conftest.$ac_ext
34720fi
34721
34722 fi
34723 #
34724 if test "$tst_compi_inet_ntop" = "yes" &&
34725 test "$tst_works_inet_ntop" != "no"; then
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34727$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34728 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34730$as_echo "yes" >&6; }
34731 tst_allow_inet_ntop="yes"
34732 else
34733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34734$as_echo "no" >&6; }
34735 tst_allow_inet_ntop="no"
34736 fi
34737 fi
34738 #
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34740$as_echo_n "checking if inet_ntop might be used... " >&6; }
34741 if test "$tst_links_inet_ntop" = "yes" &&
34742 test "$tst_proto_inet_ntop" = "yes" &&
34743 test "$tst_compi_inet_ntop" = "yes" &&
34744 test "$tst_allow_inet_ntop" = "yes" &&
34745 test "$tst_works_inet_ntop" != "no"; then
34746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34747$as_echo "yes" >&6; }
34748
34749cat >>confdefs.h <<_ACEOF
34750#define HAVE_INET_NTOP 1
34751_ACEOF
34752
34753 curl_cv_func_inet_ntop="yes"
34754 else
34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34756$as_echo "no" >&6; }
34757 curl_cv_func_inet_ntop="no"
34758 fi
34759
34760
34761 #
34762 tst_links_inet_pton="unknown"
34763 tst_proto_inet_pton="unknown"
34764 tst_compi_inet_pton="unknown"
34765 tst_works_inet_pton="unknown"
34766 tst_allow_inet_pton="unknown"
34767 #
34768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34769$as_echo_n "checking if inet_pton can be linked... " >&6; }
34770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34771/* end confdefs.h. */
34772
34773
34774#define inet_pton innocuous_inet_pton
34775#ifdef __STDC__
34776# include <limits.h>
34777#else
34778# include <assert.h>
34779#endif
34780#undef inet_pton
34781#ifdef __cplusplus
34782extern "C"
34783#endif
34784char inet_pton ();
34785#if defined __stub_inet_pton || defined __stub___inet_pton
34786choke me
34787#endif
34788
34789int main (void)
34790{
34791return inet_pton ();
34792 ;
34793 return 0;
34794}
34795
34796_ACEOF
34797if ac_fn_c_try_link "$LINENO"; then :
34798
34799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34800$as_echo "yes" >&6; }
34801 tst_links_inet_pton="yes"
34802
34803else
34804
34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34806$as_echo "no" >&6; }
34807 tst_links_inet_pton="no"
34808
34809fi
34810rm -f core conftest.err conftest.$ac_objext \
34811 conftest$ac_exeext conftest.$ac_ext
34812 #
34813 if test "$tst_links_inet_pton" = "yes"; then
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34815$as_echo_n "checking if inet_pton is prototyped... " >&6; }
34816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34817/* end confdefs.h. */
34818
34819 $curl_includes_arpa_inet
34820
34821_ACEOF
34822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34823 $EGREP "inet_pton" >/dev/null 2>&1; then :
34824
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34826$as_echo "yes" >&6; }
34827 tst_proto_inet_pton="yes"
34828
34829else
34830
34831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34832$as_echo "no" >&6; }
34833 tst_proto_inet_pton="no"
34834
34835fi
34836rm -f conftest*
34837
34838 fi
34839 #
34840 if test "$tst_proto_inet_pton" = "yes"; then
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34842$as_echo_n "checking if inet_pton is compilable... " >&6; }
34843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34844/* end confdefs.h. */
34845
34846
34847 $curl_includes_arpa_inet
34848
34849int main (void)
34850{
34851
34852 if(0 != inet_pton(0, 0, 0))
34853 return 1;
34854
34855 ;
34856 return 0;
34857}
34858
34859_ACEOF
34860if ac_fn_c_try_compile "$LINENO"; then :
34861
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34863$as_echo "yes" >&6; }
34864 tst_compi_inet_pton="yes"
34865
34866else
34867
34868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34869$as_echo "no" >&6; }
34870 tst_compi_inet_pton="no"
34871
34872fi
34873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 fi
34875 #
34876 if test "x$cross_compiling" != "xyes" &&
34877 test "$tst_compi_inet_pton" = "yes"; then
34878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34879$as_echo_n "checking if inet_pton seems to work... " >&6; }
34880 if test "$cross_compiling" = yes; then :
34881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34883as_fn_error $? "cannot run test program while cross compiling
34884See \`config.log' for more details" "$LINENO" 5; }
34885else
34886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34887/* end confdefs.h. */
34888
34889
34890 $curl_includes_stdlib
34891 $curl_includes_arpa_inet
34892 $curl_includes_string
34893
34894int main (void)
34895{
34896
34897 unsigned char ipv6a[16+1];
34898 unsigned char ipv4a[4+1];
34899 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34900 const char *ipv4src = "192.168.100.1";
34901 /* - */
34902 memset(ipv4a, 1, sizeof(ipv4a));
34903 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34904 exit(1); /* fail */
34905 /* - */
34906 if( (ipv4a[0] != 0xc0) ||
34907 (ipv4a[1] != 0xa8) ||
34908 (ipv4a[2] != 0x64) ||
34909 (ipv4a[3] != 0x01) ||
34910 (ipv4a[4] != 0x01) )
34911 exit(1); /* fail */
34912 /* - */
34913 memset(ipv6a, 1, sizeof(ipv6a));
34914 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34915 exit(1); /* fail */
34916 /* - */
34917 if( (ipv6a[0] != 0xfe) ||
34918 (ipv6a[1] != 0x80) ||
34919 (ipv6a[8] != 0x02) ||
34920 (ipv6a[9] != 0x14) ||
34921 (ipv6a[10] != 0x4f) ||
34922 (ipv6a[11] != 0xff) ||
34923 (ipv6a[12] != 0xfe) ||
34924 (ipv6a[13] != 0x0b) ||
34925 (ipv6a[14] != 0x76) ||
34926 (ipv6a[15] != 0xc8) ||
34927 (ipv6a[16] != 0x01) )
34928 exit(1); /* fail */
34929 /* - */
34930 if( (ipv6a[2] != 0x0) ||
34931 (ipv6a[3] != 0x0) ||
34932 (ipv6a[4] != 0x0) ||
34933 (ipv6a[5] != 0x0) ||
34934 (ipv6a[6] != 0x0) ||
34935 (ipv6a[7] != 0x0) )
34936 exit(1); /* fail */
34937 /* - */
34938 exit(0);
34939
34940 ;
34941 return 0;
34942}
34943
34944_ACEOF
34945if ac_fn_c_try_run "$LINENO"; then :
34946
34947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34948$as_echo "yes" >&6; }
34949 tst_works_inet_pton="yes"
34950
34951else
34952
34953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34954$as_echo "no" >&6; }
34955 tst_works_inet_pton="no"
34956
34957fi
34958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34959 conftest.$ac_objext conftest.beam conftest.$ac_ext
34960fi
34961
34962 fi
34963 #
34964 if test "$tst_compi_inet_pton" = "yes" &&
34965 test "$tst_works_inet_pton" != "no"; then
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34967$as_echo_n "checking if inet_pton usage allowed... " >&6; }
34968 if test "x$curl_disallow_inet_pton" != "xyes"; then
34969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34970$as_echo "yes" >&6; }
34971 tst_allow_inet_pton="yes"
34972 else
34973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34974$as_echo "no" >&6; }
34975 tst_allow_inet_pton="no"
34976 fi
34977 fi
34978 #
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34980$as_echo_n "checking if inet_pton might be used... " >&6; }
34981 if test "$tst_links_inet_pton" = "yes" &&
34982 test "$tst_proto_inet_pton" = "yes" &&
34983 test "$tst_compi_inet_pton" = "yes" &&
34984 test "$tst_allow_inet_pton" = "yes" &&
34985 test "$tst_works_inet_pton" != "no"; then
34986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34987$as_echo "yes" >&6; }
34988
34989cat >>confdefs.h <<_ACEOF
34990#define HAVE_INET_PTON 1
34991_ACEOF
34992
34993 curl_cv_func_inet_pton="yes"
34994 else
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34996$as_echo "no" >&6; }
34997 curl_cv_func_inet_pton="no"
34998 fi
34999
35000
35001curl_includes_stropts="\
35002/* includes start */
35003#ifdef HAVE_SYS_TYPES_H
35004# include <sys/types.h>
35005#endif
35006#ifdef HAVE_UNISTD_H
35007# include <unistd.h>
35008#endif
35009#ifdef HAVE_SYS_SOCKET_H
35010# include <sys/socket.h>
35011#endif
35012#ifdef HAVE_SYS_IOCTL_H
35013# include <sys/ioctl.h>
35014#endif
35015#ifdef HAVE_STROPTS_H
35016# include <stropts.h>
35017#endif
35018/* includes end */"
35019 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35020do :
35021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35022ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35023"
35024if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35025 cat >>confdefs.h <<_ACEOF
35026#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35027_ACEOF
35028
35029fi
35030
35031done
35032
35033
35034
35035 #
35036 tst_links_ioctl="unknown"
35037 tst_proto_ioctl="unknown"
35038 tst_compi_ioctl="unknown"
35039 tst_allow_ioctl="unknown"
35040 #
35041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35042$as_echo_n "checking if ioctl can be linked... " >&6; }
35043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35044/* end confdefs.h. */
35045
35046
35047#define ioctl innocuous_ioctl
35048#ifdef __STDC__
35049# include <limits.h>
35050#else
35051# include <assert.h>
35052#endif
35053#undef ioctl
35054#ifdef __cplusplus
35055extern "C"
35056#endif
35057char ioctl ();
35058#if defined __stub_ioctl || defined __stub___ioctl
35059choke me
35060#endif
35061
35062int main (void)
35063{
35064return ioctl ();
35065 ;
35066 return 0;
35067}
35068
35069_ACEOF
35070if ac_fn_c_try_link "$LINENO"; then :
35071
35072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35073$as_echo "yes" >&6; }
35074 tst_links_ioctl="yes"
35075
35076else
35077
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35079$as_echo "no" >&6; }
35080 tst_links_ioctl="no"
35081
35082fi
35083rm -f core conftest.err conftest.$ac_objext \
35084 conftest$ac_exeext conftest.$ac_ext
35085 #
35086 if test "$tst_links_ioctl" = "yes"; then
35087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35088$as_echo_n "checking if ioctl is prototyped... " >&6; }
35089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35090/* end confdefs.h. */
35091
35092 $curl_includes_stropts
35093
35094_ACEOF
35095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35096 $EGREP "ioctl" >/dev/null 2>&1; then :
35097
35098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35099$as_echo "yes" >&6; }
35100 tst_proto_ioctl="yes"
35101
35102else
35103
35104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35105$as_echo "no" >&6; }
35106 tst_proto_ioctl="no"
35107
35108fi
35109rm -f conftest*
35110
35111 fi
35112 #
35113 if test "$tst_proto_ioctl" = "yes"; then
35114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35115$as_echo_n "checking if ioctl is compilable... " >&6; }
35116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35117/* end confdefs.h. */
35118
35119
35120 $curl_includes_stropts
35121
35122int main (void)
35123{
35124
35125 if(0 != ioctl(0, 0, 0))
35126 return 1;
35127
35128 ;
35129 return 0;
35130}
35131
35132_ACEOF
35133if ac_fn_c_try_compile "$LINENO"; then :
35134
35135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35136$as_echo "yes" >&6; }
35137 tst_compi_ioctl="yes"
35138
35139else
35140
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142$as_echo "no" >&6; }
35143 tst_compi_ioctl="no"
35144
35145fi
35146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35147 fi
35148 #
35149 if test "$tst_compi_ioctl" = "yes"; then
35150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35151$as_echo_n "checking if ioctl usage allowed... " >&6; }
35152 if test "x$curl_disallow_ioctl" != "xyes"; then
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35154$as_echo "yes" >&6; }
35155 tst_allow_ioctl="yes"
35156 else
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35158$as_echo "no" >&6; }
35159 tst_allow_ioctl="no"
35160 fi
35161 fi
35162 #
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35164$as_echo_n "checking if ioctl might be used... " >&6; }
35165 if test "$tst_links_ioctl" = "yes" &&
35166 test "$tst_proto_ioctl" = "yes" &&
35167 test "$tst_compi_ioctl" = "yes" &&
35168 test "$tst_allow_ioctl" = "yes"; then
35169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35170$as_echo "yes" >&6; }
35171
35172cat >>confdefs.h <<_ACEOF
35173#define HAVE_IOCTL 1
35174_ACEOF
35175
35176 curl_cv_func_ioctl="yes"
35177
35178 #
35179 tst_compi_ioctl_fionbio="unknown"
35180 tst_allow_ioctl_fionbio="unknown"
35181 #
35182 if test "$curl_cv_func_ioctl" = "yes"; then
35183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35184$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35186/* end confdefs.h. */
35187
35188
35189 $curl_includes_stropts
35190
35191int main (void)
35192{
35193
35194 int flags = 0;
35195 if(0 != ioctl(0, FIONBIO, &flags))
35196 return 1;
35197
35198 ;
35199 return 0;
35200}
35201
35202_ACEOF
35203if ac_fn_c_try_compile "$LINENO"; then :
35204
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35206$as_echo "yes" >&6; }
35207 tst_compi_ioctl_fionbio="yes"
35208
35209else
35210
35211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35212$as_echo "no" >&6; }
35213 tst_compi_ioctl_fionbio="no"
35214
35215fi
35216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35217 fi
35218 #
35219 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35221$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35222 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35224$as_echo "yes" >&6; }
35225 tst_allow_ioctl_fionbio="yes"
35226 else
35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35228$as_echo "no" >&6; }
35229 tst_allow_ioctl_fionbio="no"
35230 fi
35231 fi
35232 #
35233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35234$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35235 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35236 test "$tst_allow_ioctl_fionbio" = "yes"; then
35237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35238$as_echo "yes" >&6; }
35239
35240cat >>confdefs.h <<_ACEOF
35241#define HAVE_IOCTL_FIONBIO 1
35242_ACEOF
35243
35244 curl_cv_func_ioctl_fionbio="yes"
35245 else
35246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35247$as_echo "no" >&6; }
35248 curl_cv_func_ioctl_fionbio="no"
35249 fi
35250
35251
35252 #
35253 tst_compi_ioctl_siocgifaddr="unknown"
35254 tst_allow_ioctl_siocgifaddr="unknown"
35255 #
35256 if test "$curl_cv_func_ioctl" = "yes"; then
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35258$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260/* end confdefs.h. */
35261
35262
35263 $curl_includes_stropts
35264 #include <net/if.h>
35265
35266int main (void)
35267{
35268
35269 struct ifreq ifr;
35270 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35271 return 1;
35272
35273 ;
35274 return 0;
35275}
35276
35277_ACEOF
35278if ac_fn_c_try_compile "$LINENO"; then :
35279
35280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35281$as_echo "yes" >&6; }
35282 tst_compi_ioctl_siocgifaddr="yes"
35283
35284else
35285
35286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35287$as_echo "no" >&6; }
35288 tst_compi_ioctl_siocgifaddr="no"
35289
35290fi
35291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35292 fi
35293 #
35294 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35296$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35297 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35299$as_echo "yes" >&6; }
35300 tst_allow_ioctl_siocgifaddr="yes"
35301 else
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35303$as_echo "no" >&6; }
35304 tst_allow_ioctl_siocgifaddr="no"
35305 fi
35306 fi
35307 #
35308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35309$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35310 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35311 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35313$as_echo "yes" >&6; }
35314
35315cat >>confdefs.h <<_ACEOF
35316#define HAVE_IOCTL_SIOCGIFADDR 1
35317_ACEOF
35318
35319 curl_cv_func_ioctl_siocgifaddr="yes"
35320 else
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35322$as_echo "no" >&6; }
35323 curl_cv_func_ioctl_siocgifaddr="no"
35324 fi
35325
35326 else
35327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35328$as_echo "no" >&6; }
35329 curl_cv_func_ioctl="no"
35330 fi
35331
35332
35333 #
35334 tst_links_ioctlsocket="unknown"
35335 tst_proto_ioctlsocket="unknown"
35336 tst_compi_ioctlsocket="unknown"
35337 tst_allow_ioctlsocket="unknown"
35338 #
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35340$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35342/* end confdefs.h. */
35343
35344
35345 $curl_includes_winsock2
35346
35347int main (void)
35348{
35349
35350 if(0 != ioctlsocket(0, 0, 0))
35351 return 1;
35352
35353 ;
35354 return 0;
35355}
35356
35357_ACEOF
35358if ac_fn_c_try_link "$LINENO"; then :
35359
35360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35361$as_echo "yes" >&6; }
35362 tst_links_ioctlsocket="yes"
35363
35364else
35365
35366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35367$as_echo "no" >&6; }
35368 tst_links_ioctlsocket="no"
35369
35370fi
35371rm -f core conftest.err conftest.$ac_objext \
35372 conftest$ac_exeext conftest.$ac_ext
35373 #
35374 if test "$tst_links_ioctlsocket" = "yes"; then
35375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35376$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35378/* end confdefs.h. */
35379
35380 $curl_includes_winsock2
35381
35382_ACEOF
35383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35384 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35385
35386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35387$as_echo "yes" >&6; }
35388 tst_proto_ioctlsocket="yes"
35389
35390else
35391
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35393$as_echo "no" >&6; }
35394 tst_proto_ioctlsocket="no"
35395
35396fi
35397rm -f conftest*
35398
35399 fi
35400 #
35401 if test "$tst_proto_ioctlsocket" = "yes"; then
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35403$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35405/* end confdefs.h. */
35406
35407
35408 $curl_includes_winsock2
35409
35410int main (void)
35411{
35412
35413 if(0 != ioctlsocket(0, 0, 0))
35414 return 1;
35415
35416 ;
35417 return 0;
35418}
35419
35420_ACEOF
35421if ac_fn_c_try_compile "$LINENO"; then :
35422
35423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35424$as_echo "yes" >&6; }
35425 tst_compi_ioctlsocket="yes"
35426
35427else
35428
35429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35430$as_echo "no" >&6; }
35431 tst_compi_ioctlsocket="no"
35432
35433fi
35434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 fi
35436 #
35437 if test "$tst_compi_ioctlsocket" = "yes"; then
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35439$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35440 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35442$as_echo "yes" >&6; }
35443 tst_allow_ioctlsocket="yes"
35444 else
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446$as_echo "no" >&6; }
35447 tst_allow_ioctlsocket="no"
35448 fi
35449 fi
35450 #
35451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35452$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35453 if test "$tst_links_ioctlsocket" = "yes" &&
35454 test "$tst_proto_ioctlsocket" = "yes" &&
35455 test "$tst_compi_ioctlsocket" = "yes" &&
35456 test "$tst_allow_ioctlsocket" = "yes"; then
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35458$as_echo "yes" >&6; }
35459
35460cat >>confdefs.h <<_ACEOF
35461#define HAVE_IOCTLSOCKET 1
35462_ACEOF
35463
35464 curl_cv_func_ioctlsocket="yes"
35465
35466 #
35467 tst_compi_ioctlsocket_fionbio="unknown"
35468 tst_allow_ioctlsocket_fionbio="unknown"
35469 #
35470 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35472$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35474/* end confdefs.h. */
35475
35476
35477 $curl_includes_winsock2
35478
35479int main (void)
35480{
35481
35482 int flags = 0;
35483 if(0 != ioctlsocket(0, FIONBIO, &flags))
35484 return 1;
35485
35486 ;
35487 return 0;
35488}
35489
35490_ACEOF
35491if ac_fn_c_try_compile "$LINENO"; then :
35492
35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35494$as_echo "yes" >&6; }
35495 tst_compi_ioctlsocket_fionbio="yes"
35496
35497else
35498
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500$as_echo "no" >&6; }
35501 tst_compi_ioctlsocket_fionbio="no"
35502
35503fi
35504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35505 fi
35506 #
35507 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35509$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35510 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35512$as_echo "yes" >&6; }
35513 tst_allow_ioctlsocket_fionbio="yes"
35514 else
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35516$as_echo "no" >&6; }
35517 tst_allow_ioctlsocket_fionbio="no"
35518 fi
35519 fi
35520 #
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35522$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35523 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35524 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35526$as_echo "yes" >&6; }
35527
35528cat >>confdefs.h <<_ACEOF
35529#define HAVE_IOCTLSOCKET_FIONBIO 1
35530_ACEOF
35531
35532 curl_cv_func_ioctlsocket_fionbio="yes"
35533 else
35534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35535$as_echo "no" >&6; }
35536 curl_cv_func_ioctlsocket_fionbio="no"
35537 fi
35538
35539 else
35540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35541$as_echo "no" >&6; }
35542 curl_cv_func_ioctlsocket="no"
35543 fi
35544
35545
35546 #
35547 tst_links_ioctlsocket_camel="unknown"
35548 tst_proto_ioctlsocket_camel="unknown"
35549 tst_compi_ioctlsocket_camel="unknown"
35550 tst_allow_ioctlsocket_camel="unknown"
35551 #
35552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35553$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35555/* end confdefs.h. */
35556
35557
35558#define IoctlSocket innocuous_IoctlSocket
35559#ifdef __STDC__
35560# include <limits.h>
35561#else
35562# include <assert.h>
35563#endif
35564#undef IoctlSocket
35565#ifdef __cplusplus
35566extern "C"
35567#endif
35568char IoctlSocket ();
35569#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35570choke me
35571#endif
35572
35573int main (void)
35574{
35575return IoctlSocket ();
35576 ;
35577 return 0;
35578}
35579
35580_ACEOF
35581if ac_fn_c_try_link "$LINENO"; then :
35582
35583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35584$as_echo "yes" >&6; }
35585 tst_links_ioctlsocket_camel="yes"
35586
35587else
35588
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35590$as_echo "no" >&6; }
35591 tst_links_ioctlsocket_camel="no"
35592
35593fi
35594rm -f core conftest.err conftest.$ac_objext \
35595 conftest$ac_exeext conftest.$ac_ext
35596 #
35597 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35599$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35601/* end confdefs.h. */
35602
35603 $curl_includes_stropts
35604
35605_ACEOF
35606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35607 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35608
35609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35610$as_echo "yes" >&6; }
35611 tst_proto_ioctlsocket_camel="yes"
35612
35613else
35614
35615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35616$as_echo "no" >&6; }
35617 tst_proto_ioctlsocket_camel="no"
35618
35619fi
35620rm -f conftest*
35621
35622 fi
35623 #
35624 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35626$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35628/* end confdefs.h. */
35629
35630
35631 $curl_includes_stropts
35632
35633int main (void)
35634{
35635
35636 if(0 != IoctlSocket(0, 0, 0))
35637 return 1;
35638
35639 ;
35640 return 0;
35641}
35642
35643_ACEOF
35644if ac_fn_c_try_compile "$LINENO"; then :
35645
35646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35647$as_echo "yes" >&6; }
35648 tst_compi_ioctlsocket_camel="yes"
35649
35650else
35651
35652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35653$as_echo "no" >&6; }
35654 tst_compi_ioctlsocket_camel="no"
35655
35656fi
35657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 fi
35659 #
35660 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35662$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35663 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35665$as_echo "yes" >&6; }
35666 tst_allow_ioctlsocket_camel="yes"
35667 else
35668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35669$as_echo "no" >&6; }
35670 tst_allow_ioctlsocket_camel="no"
35671 fi
35672 fi
35673 #
35674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35675$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35676 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35677 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35678 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35679 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35681$as_echo "yes" >&6; }
35682
35683cat >>confdefs.h <<_ACEOF
35684#define HAVE_IOCTLSOCKET_CAMEL 1
35685_ACEOF
35686
35687 curl_cv_func_ioctlsocket_camel="yes"
35688
35689 #
35690 tst_compi_ioctlsocket_camel_fionbio="unknown"
35691 tst_allow_ioctlsocket_camel_fionbio="unknown"
35692 #
35693 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35695$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35697/* end confdefs.h. */
35698
35699
35700 $curl_includes_stropts
35701
35702int main (void)
35703{
35704
35705 long flags = 0;
35706 if(0 != ioctlsocket(0, FIONBIO, &flags))
35707 return 1;
35708
35709 ;
35710 return 0;
35711}
35712
35713_ACEOF
35714if ac_fn_c_try_compile "$LINENO"; then :
35715
35716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35717$as_echo "yes" >&6; }
35718 tst_compi_ioctlsocket_camel_fionbio="yes"
35719
35720else
35721
35722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35723$as_echo "no" >&6; }
35724 tst_compi_ioctlsocket_camel_fionbio="no"
35725
35726fi
35727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35728 fi
35729 #
35730 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35732$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35733 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35735$as_echo "yes" >&6; }
35736 tst_allow_ioctlsocket_camel_fionbio="yes"
35737 else
35738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35739$as_echo "no" >&6; }
35740 tst_allow_ioctlsocket_camel_fionbio="no"
35741 fi
35742 fi
35743 #
35744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35745$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35746 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35747 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35749$as_echo "yes" >&6; }
35750
35751cat >>confdefs.h <<_ACEOF
35752#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35753_ACEOF
35754
35755 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35756 else
35757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35758$as_echo "no" >&6; }
35759 curl_cv_func_ioctlsocket_camel_fionbio="no"
35760 fi
35761
35762 else
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35764$as_echo "no" >&6; }
35765 curl_cv_func_ioctlsocket_camel="no"
35766 fi
35767
35768
35769 #
35770 tst_links_localtime_r="unknown"
35771 tst_proto_localtime_r="unknown"
35772 tst_compi_localtime_r="unknown"
35773 tst_works_localtime_r="unknown"
35774 tst_allow_localtime_r="unknown"
35775 #
35776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35777$as_echo_n "checking if localtime_r can be linked... " >&6; }
35778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35779/* end confdefs.h. */
35780
35781
35782#define localtime_r innocuous_localtime_r
35783#ifdef __STDC__
35784# include <limits.h>
35785#else
35786# include <assert.h>
35787#endif
35788#undef localtime_r
35789#ifdef __cplusplus
35790extern "C"
35791#endif
35792char localtime_r ();
35793#if defined __stub_localtime_r || defined __stub___localtime_r
35794choke me
35795#endif
35796
35797int main (void)
35798{
35799return localtime_r ();
35800 ;
35801 return 0;
35802}
35803
35804_ACEOF
35805if ac_fn_c_try_link "$LINENO"; then :
35806
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35808$as_echo "yes" >&6; }
35809 tst_links_localtime_r="yes"
35810
35811else
35812
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35814$as_echo "no" >&6; }
35815 tst_links_localtime_r="no"
35816
35817fi
35818rm -f core conftest.err conftest.$ac_objext \
35819 conftest$ac_exeext conftest.$ac_ext
35820 #
35821 if test "$tst_links_localtime_r" = "yes"; then
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35823$as_echo_n "checking if localtime_r is prototyped... " >&6; }
35824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35825/* end confdefs.h. */
35826
35827 $curl_includes_time
35828
35829_ACEOF
35830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35831 $EGREP "localtime_r" >/dev/null 2>&1; then :
35832
35833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35834$as_echo "yes" >&6; }
35835 tst_proto_localtime_r="yes"
35836
35837else
35838
35839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35840$as_echo "no" >&6; }
35841 tst_proto_localtime_r="no"
35842
35843fi
35844rm -f conftest*
35845
35846 fi
35847 #
35848 if test "$tst_proto_localtime_r" = "yes"; then
35849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35850$as_echo_n "checking if localtime_r is compilable... " >&6; }
35851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35852/* end confdefs.h. */
35853
35854
35855 $curl_includes_time
35856
35857int main (void)
35858{
35859
35860 if(0 != localtime_r(0, 0))
35861 return 1;
35862
35863 ;
35864 return 0;
35865}
35866
35867_ACEOF
35868if ac_fn_c_try_compile "$LINENO"; then :
35869
35870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35871$as_echo "yes" >&6; }
35872 tst_compi_localtime_r="yes"
35873
35874else
35875
35876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35877$as_echo "no" >&6; }
35878 tst_compi_localtime_r="no"
35879
35880fi
35881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35882 fi
35883 #
35884 if test "x$cross_compiling" != "xyes" &&
35885 test "$tst_compi_localtime_r" = "yes"; then
35886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35887$as_echo_n "checking if localtime_r seems to work... " >&6; }
35888 if test "$cross_compiling" = yes; then :
35889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35891as_fn_error $? "cannot run test program while cross compiling
35892See \`config.log' for more details" "$LINENO" 5; }
35893else
35894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35895/* end confdefs.h. */
35896
35897
35898 $curl_includes_stdlib
35899 $curl_includes_time
35900
35901int main (void)
35902{
35903
35904 time_t clock = 1170352587;
35905 struct tm *tmp = 0;
35906 struct tm result;
35907 tmp = localtime_r(&clock, &result);
35908 if(tmp)
35909 exit(0);
35910 else
35911 exit(1);
35912
35913 ;
35914 return 0;
35915}
35916
35917_ACEOF
35918if ac_fn_c_try_run "$LINENO"; then :
35919
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35921$as_echo "yes" >&6; }
35922 tst_works_localtime_r="yes"
35923
35924else
35925
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35927$as_echo "no" >&6; }
35928 tst_works_localtime_r="no"
35929
35930fi
35931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35932 conftest.$ac_objext conftest.beam conftest.$ac_ext
35933fi
35934
35935 fi
35936 #
35937 if test "$tst_compi_localtime_r" = "yes" &&
35938 test "$tst_works_localtime_r" != "no"; then
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35940$as_echo_n "checking if localtime_r usage allowed... " >&6; }
35941 if test "x$curl_disallow_localtime_r" != "xyes"; then
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943$as_echo "yes" >&6; }
35944 tst_allow_localtime_r="yes"
35945 else
35946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35947$as_echo "no" >&6; }
35948 tst_allow_localtime_r="no"
35949 fi
35950 fi
35951 #
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35953$as_echo_n "checking if localtime_r might be used... " >&6; }
35954 if test "$tst_links_localtime_r" = "yes" &&
35955 test "$tst_proto_localtime_r" = "yes" &&
35956 test "$tst_compi_localtime_r" = "yes" &&
35957 test "$tst_allow_localtime_r" = "yes" &&
35958 test "$tst_works_localtime_r" != "no"; then
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960$as_echo "yes" >&6; }
35961
35962cat >>confdefs.h <<_ACEOF
35963#define HAVE_LOCALTIME_R 1
35964_ACEOF
35965
35966 curl_cv_func_localtime_r="yes"
35967 else
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35969$as_echo "no" >&6; }
35970 curl_cv_func_localtime_r="no"
35971 fi
35972
35973
35974 #
35975 tst_links_memrchr="unknown"
35976 tst_macro_memrchr="unknown"
35977 tst_proto_memrchr="unknown"
35978 tst_compi_memrchr="unknown"
35979 tst_allow_memrchr="unknown"
35980 #
35981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35982$as_echo_n "checking if memrchr can be linked... " >&6; }
35983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35984/* end confdefs.h. */
35985
35986
35987#define memrchr innocuous_memrchr
35988#ifdef __STDC__
35989# include <limits.h>
35990#else
35991# include <assert.h>
35992#endif
35993#undef memrchr
35994#ifdef __cplusplus
35995extern "C"
35996#endif
35997char memrchr ();
35998#if defined __stub_memrchr || defined __stub___memrchr
35999choke me
36000#endif
36001
36002int main (void)
36003{
36004return memrchr ();
36005 ;
36006 return 0;
36007}
36008
36009_ACEOF
36010if ac_fn_c_try_link "$LINENO"; then :
36011
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36013$as_echo "yes" >&6; }
36014 tst_links_memrchr="yes"
36015
36016else
36017
36018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36019$as_echo "no" >&6; }
36020 tst_links_memrchr="no"
36021
36022fi
36023rm -f core conftest.err conftest.$ac_objext \
36024 conftest$ac_exeext conftest.$ac_ext
36025 #
36026 if test "$tst_links_memrchr" = "no"; then
36027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36028$as_echo_n "checking if memrchr seems a macro... " >&6; }
36029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030/* end confdefs.h. */
36031
36032
36033 $curl_includes_string
36034
36035int main (void)
36036{
36037
36038 if(0 != memrchr(0, 0, 0))
36039 return 1;
36040
36041 ;
36042 return 0;
36043}
36044
36045_ACEOF
36046if ac_fn_c_try_link "$LINENO"; then :
36047
36048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36049$as_echo "yes" >&6; }
36050 tst_macro_memrchr="yes"
36051
36052else
36053
36054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36055$as_echo "no" >&6; }
36056 tst_macro_memrchr="no"
36057
36058fi
36059rm -f core conftest.err conftest.$ac_objext \
36060 conftest$ac_exeext conftest.$ac_ext
36061 fi
36062 #
36063 if test "$tst_links_memrchr" = "yes"; then
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36065$as_echo_n "checking if memrchr is prototyped... " >&6; }
36066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36067/* end confdefs.h. */
36068
36069 $curl_includes_string
36070
36071_ACEOF
36072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36073 $EGREP "memrchr" >/dev/null 2>&1; then :
36074
36075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36076$as_echo "yes" >&6; }
36077 tst_proto_memrchr="yes"
36078
36079else
36080
36081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36082$as_echo "no" >&6; }
36083 tst_proto_memrchr="no"
36084
36085fi
36086rm -f conftest*
36087
36088 fi
36089 #
36090 if test "$tst_proto_memrchr" = "yes" ||
36091 test "$tst_macro_memrchr" = "yes"; then
36092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36093$as_echo_n "checking if memrchr is compilable... " >&6; }
36094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36095/* end confdefs.h. */
36096
36097
36098 $curl_includes_string
36099
36100int main (void)
36101{
36102
36103 if(0 != memrchr(0, 0, 0))
36104 return 1;
36105
36106 ;
36107 return 0;
36108}
36109
36110_ACEOF
36111if ac_fn_c_try_compile "$LINENO"; then :
36112
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36114$as_echo "yes" >&6; }
36115 tst_compi_memrchr="yes"
36116
36117else
36118
36119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36120$as_echo "no" >&6; }
36121 tst_compi_memrchr="no"
36122
36123fi
36124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36125 fi
36126 #
36127 if test "$tst_compi_memrchr" = "yes"; then
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36129$as_echo_n "checking if memrchr usage allowed... " >&6; }
36130 if test "x$curl_disallow_memrchr" != "xyes"; then
36131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36132$as_echo "yes" >&6; }
36133 tst_allow_memrchr="yes"
36134 else
36135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36136$as_echo "no" >&6; }
36137 tst_allow_memrchr="no"
36138 fi
36139 fi
36140 #
36141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36142$as_echo_n "checking if memrchr might be used... " >&6; }
36143 if (test "$tst_proto_memrchr" = "yes" ||
36144 test "$tst_macro_memrchr" = "yes") &&
36145 test "$tst_compi_memrchr" = "yes" &&
36146 test "$tst_allow_memrchr" = "yes"; then
36147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36148$as_echo "yes" >&6; }
36149
36150cat >>confdefs.h <<_ACEOF
36151#define HAVE_MEMRCHR 1
36152_ACEOF
36153
36154 curl_cv_func_memrchr="yes"
36155 else
36156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36157$as_echo "no" >&6; }
36158 curl_cv_func_memrchr="no"
36159 fi
36160
36161
36162 #
36163 tst_links_poll="unknown"
36164 tst_proto_poll="unknown"
36165 tst_compi_poll="unknown"
36166 tst_works_poll="unknown"
36167 tst_allow_poll="unknown"
36168 #
36169 case $host_os in
36170 darwin*|interix*)
36171 curl_disallow_poll="yes"
36172 tst_compi_poll="no"
36173 ;;
36174 esac
36175 #
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36177$as_echo_n "checking if poll can be linked... " >&6; }
36178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36179/* end confdefs.h. */
36180
36181
36182 $curl_includes_poll
36183
36184int main (void)
36185{
36186
36187 if(0 != poll(0, 0, 0))
36188 return 1;
36189
36190 ;
36191 return 0;
36192}
36193
36194_ACEOF
36195if ac_fn_c_try_link "$LINENO"; then :
36196
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36198$as_echo "yes" >&6; }
36199 tst_links_poll="yes"
36200
36201else
36202
36203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36204$as_echo "no" >&6; }
36205 tst_links_poll="no"
36206
36207fi
36208rm -f core conftest.err conftest.$ac_objext \
36209 conftest$ac_exeext conftest.$ac_ext
36210 #
36211 if test "$tst_links_poll" = "yes"; then
36212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36213$as_echo_n "checking if poll is prototyped... " >&6; }
36214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36215/* end confdefs.h. */
36216
36217 $curl_includes_poll
36218
36219_ACEOF
36220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36221 $EGREP "poll" >/dev/null 2>&1; then :
36222
36223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36224$as_echo "yes" >&6; }
36225 tst_proto_poll="yes"
36226
36227else
36228
36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36230$as_echo "no" >&6; }
36231 tst_proto_poll="no"
36232
36233fi
36234rm -f conftest*
36235
36236 fi
36237 #
36238 if test "$tst_proto_poll" = "yes"; then
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36240$as_echo_n "checking if poll is compilable... " >&6; }
36241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36242/* end confdefs.h. */
36243
36244
36245 $curl_includes_poll
36246
36247int main (void)
36248{
36249
36250 if(0 != poll(0, 0, 0))
36251 return 1;
36252
36253 ;
36254 return 0;
36255}
36256
36257_ACEOF
36258if ac_fn_c_try_compile "$LINENO"; then :
36259
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36261$as_echo "yes" >&6; }
36262 tst_compi_poll="yes"
36263
36264else
36265
36266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36267$as_echo "no" >&6; }
36268 tst_compi_poll="no"
36269
36270fi
36271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36272 fi
36273 #
36274 if test "x$cross_compiling" != "xyes" &&
36275 test "$tst_compi_poll" = "yes"; then
36276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36277$as_echo_n "checking if poll seems to work... " >&6; }
36278 if test "$cross_compiling" = yes; then :
36279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36281as_fn_error $? "cannot run test program while cross compiling
36282See \`config.log' for more details" "$LINENO" 5; }
36283else
36284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36285/* end confdefs.h. */
36286
36287
36288 $curl_includes_stdlib
36289 $curl_includes_poll
36290 $curl_includes_time
36291
36292int main (void)
36293{
36294
36295 /* detect the original poll() breakage */
36296 if(0 != poll(0, 0, 10))
36297 exit(1); /* fail */
36298 else {
36299 /* detect the 10.12 poll() breakage */
36300 struct timeval before, after;
36301 int rc;
36302 size_t us;
36303
36304 gettimeofday(&before, NULL);
36305 rc = poll(NULL, 0, 500);
36306 gettimeofday(&after, NULL);
36307
36308 us = (after.tv_sec - before.tv_sec) * 1000000 +
36309 (after.tv_usec - before.tv_usec);
36310
36311 if(us < 400000)
36312 exit(1);
36313 }
36314
36315 ;
36316 return 0;
36317}
36318
36319_ACEOF
36320if ac_fn_c_try_run "$LINENO"; then :
36321
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36323$as_echo "yes" >&6; }
36324 tst_works_poll="yes"
36325
36326else
36327
36328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36329$as_echo "no" >&6; }
36330 tst_works_poll="no"
36331
36332fi
36333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36334 conftest.$ac_objext conftest.beam conftest.$ac_ext
36335fi
36336
36337 fi
36338 #
36339 if test "$tst_compi_poll" = "yes" &&
36340 test "$tst_works_poll" != "no"; then
36341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36342$as_echo_n "checking if poll usage allowed... " >&6; }
36343 if test "x$curl_disallow_poll" != "xyes"; then
36344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36345$as_echo "yes" >&6; }
36346 tst_allow_poll="yes"
36347 else
36348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36349$as_echo "no" >&6; }
36350 tst_allow_poll="no"
36351 fi
36352 fi
36353 #
36354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36355$as_echo_n "checking if poll might be used... " >&6; }
36356 if test "$tst_links_poll" = "yes" &&
36357 test "$tst_proto_poll" = "yes" &&
36358 test "$tst_compi_poll" = "yes" &&
36359 test "$tst_allow_poll" = "yes" &&
36360 test "$tst_works_poll" != "no"; then
36361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36362$as_echo "yes" >&6; }
36363
36364cat >>confdefs.h <<_ACEOF
36365#define HAVE_POLL 1
36366_ACEOF
36367
36368
36369cat >>confdefs.h <<_ACEOF
36370#define HAVE_POLL_FINE 1
36371_ACEOF
36372
36373 curl_cv_func_poll="yes"
36374 else
36375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36376$as_echo "no" >&6; }
36377 curl_cv_func_poll="no"
36378 fi
36379
36380
36381 #
36382 tst_links_setsockopt="unknown"
36383 tst_proto_setsockopt="unknown"
36384 tst_compi_setsockopt="unknown"
36385 tst_allow_setsockopt="unknown"
36386 #
36387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36388$as_echo_n "checking if setsockopt can be linked... " >&6; }
36389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36390/* end confdefs.h. */
36391
36392
36393 $curl_includes_winsock2
36394 $curl_includes_sys_socket
36395
36396int main (void)
36397{
36398
36399 if(0 != setsockopt(0, 0, 0, 0, 0))
36400 return 1;
36401
36402 ;
36403 return 0;
36404}
36405
36406_ACEOF
36407if ac_fn_c_try_link "$LINENO"; then :
36408
36409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36410$as_echo "yes" >&6; }
36411 tst_links_setsockopt="yes"
36412
36413else
36414
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416$as_echo "no" >&6; }
36417 tst_links_setsockopt="no"
36418
36419fi
36420rm -f core conftest.err conftest.$ac_objext \
36421 conftest$ac_exeext conftest.$ac_ext
36422 #
36423 if test "$tst_links_setsockopt" = "yes"; then
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36425$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36427/* end confdefs.h. */
36428
36429 $curl_includes_winsock2
36430 $curl_includes_sys_socket
36431
36432_ACEOF
36433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36434 $EGREP "setsockopt" >/dev/null 2>&1; then :
36435
36436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36437$as_echo "yes" >&6; }
36438 tst_proto_setsockopt="yes"
36439
36440else
36441
36442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36443$as_echo "no" >&6; }
36444 tst_proto_setsockopt="no"
36445
36446fi
36447rm -f conftest*
36448
36449 fi
36450 #
36451 if test "$tst_proto_setsockopt" = "yes"; then
36452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36453$as_echo_n "checking if setsockopt is compilable... " >&6; }
36454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36455/* end confdefs.h. */
36456
36457
36458 $curl_includes_winsock2
36459 $curl_includes_sys_socket
36460
36461int main (void)
36462{
36463
36464 if(0 != setsockopt(0, 0, 0, 0, 0))
36465 return 1;
36466
36467 ;
36468 return 0;
36469}
36470
36471_ACEOF
36472if ac_fn_c_try_compile "$LINENO"; then :
36473
36474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36475$as_echo "yes" >&6; }
36476 tst_compi_setsockopt="yes"
36477
36478else
36479
36480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36481$as_echo "no" >&6; }
36482 tst_compi_setsockopt="no"
36483
36484fi
36485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36486 fi
36487 #
36488 if test "$tst_compi_setsockopt" = "yes"; then
36489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36490$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36491 if test "x$curl_disallow_setsockopt" != "xyes"; then
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36493$as_echo "yes" >&6; }
36494 tst_allow_setsockopt="yes"
36495 else
36496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36497$as_echo "no" >&6; }
36498 tst_allow_setsockopt="no"
36499 fi
36500 fi
36501 #
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36503$as_echo_n "checking if setsockopt might be used... " >&6; }
36504 if test "$tst_links_setsockopt" = "yes" &&
36505 test "$tst_proto_setsockopt" = "yes" &&
36506 test "$tst_compi_setsockopt" = "yes" &&
36507 test "$tst_allow_setsockopt" = "yes"; then
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36509$as_echo "yes" >&6; }
36510
36511cat >>confdefs.h <<_ACEOF
36512#define HAVE_SETSOCKOPT 1
36513_ACEOF
36514
36515 curl_cv_func_setsockopt="yes"
36516
36517 #
36518 tst_compi_setsockopt_so_nonblock="unknown"
36519 tst_allow_setsockopt_so_nonblock="unknown"
36520 #
36521 if test "$curl_cv_func_setsockopt" = "yes"; then
36522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36523$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36525/* end confdefs.h. */
36526
36527
36528 $curl_includes_winsock2
36529 $curl_includes_sys_socket
36530
36531int main (void)
36532{
36533
36534 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36535 return 1;
36536
36537 ;
36538 return 0;
36539}
36540
36541_ACEOF
36542if ac_fn_c_try_compile "$LINENO"; then :
36543
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36545$as_echo "yes" >&6; }
36546 tst_compi_setsockopt_so_nonblock="yes"
36547
36548else
36549
36550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36551$as_echo "no" >&6; }
36552 tst_compi_setsockopt_so_nonblock="no"
36553
36554fi
36555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36556 fi
36557 #
36558 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36560$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36561 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36563$as_echo "yes" >&6; }
36564 tst_allow_setsockopt_so_nonblock="yes"
36565 else
36566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36567$as_echo "no" >&6; }
36568 tst_allow_setsockopt_so_nonblock="no"
36569 fi
36570 fi
36571 #
36572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36573$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36574 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36575 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36577$as_echo "yes" >&6; }
36578
36579cat >>confdefs.h <<_ACEOF
36580#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36581_ACEOF
36582
36583 curl_cv_func_setsockopt_so_nonblock="yes"
36584 else
36585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36586$as_echo "no" >&6; }
36587 curl_cv_func_setsockopt_so_nonblock="no"
36588 fi
36589
36590 else
36591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36592$as_echo "no" >&6; }
36593 curl_cv_func_setsockopt="no"
36594 fi
36595
36596
36597curl_includes_signal="\
36598/* includes start */
36599#ifdef HAVE_SYS_TYPES_H
36600# include <sys/types.h>
36601#endif
36602#ifdef HAVE_SIGNAL_H
36603# include <signal.h>
36604#endif
36605/* includes end */"
36606 for ac_header in sys/types.h signal.h
36607do :
36608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36610"
36611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36612 cat >>confdefs.h <<_ACEOF
36613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36614_ACEOF
36615
36616fi
36617
36618done
36619
36620
36621
36622 #
36623 tst_links_sigaction="unknown"
36624 tst_proto_sigaction="unknown"
36625 tst_compi_sigaction="unknown"
36626 tst_allow_sigaction="unknown"
36627 #
36628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36629$as_echo_n "checking if sigaction can be linked... " >&6; }
36630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36631/* end confdefs.h. */
36632
36633
36634#define sigaction innocuous_sigaction
36635#ifdef __STDC__
36636# include <limits.h>
36637#else
36638# include <assert.h>
36639#endif
36640#undef sigaction
36641#ifdef __cplusplus
36642extern "C"
36643#endif
36644char sigaction ();
36645#if defined __stub_sigaction || defined __stub___sigaction
36646choke me
36647#endif
36648
36649int main (void)
36650{
36651return sigaction ();
36652 ;
36653 return 0;
36654}
36655
36656_ACEOF
36657if ac_fn_c_try_link "$LINENO"; then :
36658
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36660$as_echo "yes" >&6; }
36661 tst_links_sigaction="yes"
36662
36663else
36664
36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36666$as_echo "no" >&6; }
36667 tst_links_sigaction="no"
36668
36669fi
36670rm -f core conftest.err conftest.$ac_objext \
36671 conftest$ac_exeext conftest.$ac_ext
36672 #
36673 if test "$tst_links_sigaction" = "yes"; then
36674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36675$as_echo_n "checking if sigaction is prototyped... " >&6; }
36676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36677/* end confdefs.h. */
36678
36679 $curl_includes_signal
36680
36681_ACEOF
36682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36683 $EGREP "sigaction" >/dev/null 2>&1; then :
36684
36685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36686$as_echo "yes" >&6; }
36687 tst_proto_sigaction="yes"
36688
36689else
36690
36691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36692$as_echo "no" >&6; }
36693 tst_proto_sigaction="no"
36694
36695fi
36696rm -f conftest*
36697
36698 fi
36699 #
36700 if test "$tst_proto_sigaction" = "yes"; then
36701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36702$as_echo_n "checking if sigaction is compilable... " >&6; }
36703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36704/* end confdefs.h. */
36705
36706
36707 $curl_includes_signal
36708
36709int main (void)
36710{
36711
36712 if(0 != sigaction(0, 0, 0))
36713 return 1;
36714
36715 ;
36716 return 0;
36717}
36718
36719_ACEOF
36720if ac_fn_c_try_compile "$LINENO"; then :
36721
36722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36723$as_echo "yes" >&6; }
36724 tst_compi_sigaction="yes"
36725
36726else
36727
36728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36729$as_echo "no" >&6; }
36730 tst_compi_sigaction="no"
36731
36732fi
36733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36734 fi
36735 #
36736 if test "$tst_compi_sigaction" = "yes"; then
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36738$as_echo_n "checking if sigaction usage allowed... " >&6; }
36739 if test "x$curl_disallow_sigaction" != "xyes"; then
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36741$as_echo "yes" >&6; }
36742 tst_allow_sigaction="yes"
36743 else
36744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36745$as_echo "no" >&6; }
36746 tst_allow_sigaction="no"
36747 fi
36748 fi
36749 #
36750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36751$as_echo_n "checking if sigaction might be used... " >&6; }
36752 if test "$tst_links_sigaction" = "yes" &&
36753 test "$tst_proto_sigaction" = "yes" &&
36754 test "$tst_compi_sigaction" = "yes" &&
36755 test "$tst_allow_sigaction" = "yes"; then
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36757$as_echo "yes" >&6; }
36758
36759cat >>confdefs.h <<_ACEOF
36760#define HAVE_SIGACTION 1
36761_ACEOF
36762
36763 curl_cv_func_sigaction="yes"
36764 else
36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36766$as_echo "no" >&6; }
36767 curl_cv_func_sigaction="no"
36768 fi
36769
36770
36771 #
36772 tst_links_siginterrupt="unknown"
36773 tst_proto_siginterrupt="unknown"
36774 tst_compi_siginterrupt="unknown"
36775 tst_allow_siginterrupt="unknown"
36776 #
36777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36778$as_echo_n "checking if siginterrupt can be linked... " >&6; }
36779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36780/* end confdefs.h. */
36781
36782
36783#define siginterrupt innocuous_siginterrupt
36784#ifdef __STDC__
36785# include <limits.h>
36786#else
36787# include <assert.h>
36788#endif
36789#undef siginterrupt
36790#ifdef __cplusplus
36791extern "C"
36792#endif
36793char siginterrupt ();
36794#if defined __stub_siginterrupt || defined __stub___siginterrupt
36795choke me
36796#endif
36797
36798int main (void)
36799{
36800return siginterrupt ();
36801 ;
36802 return 0;
36803}
36804
36805_ACEOF
36806if ac_fn_c_try_link "$LINENO"; then :
36807
36808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36809$as_echo "yes" >&6; }
36810 tst_links_siginterrupt="yes"
36811
36812else
36813
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36815$as_echo "no" >&6; }
36816 tst_links_siginterrupt="no"
36817
36818fi
36819rm -f core conftest.err conftest.$ac_objext \
36820 conftest$ac_exeext conftest.$ac_ext
36821 #
36822 if test "$tst_links_siginterrupt" = "yes"; then
36823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36824$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36826/* end confdefs.h. */
36827
36828 $curl_includes_signal
36829
36830_ACEOF
36831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36832 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36833
36834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36835$as_echo "yes" >&6; }
36836 tst_proto_siginterrupt="yes"
36837
36838else
36839
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36841$as_echo "no" >&6; }
36842 tst_proto_siginterrupt="no"
36843
36844fi
36845rm -f conftest*
36846
36847 fi
36848 #
36849 if test "$tst_proto_siginterrupt" = "yes"; then
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36851$as_echo_n "checking if siginterrupt is compilable... " >&6; }
36852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36853/* end confdefs.h. */
36854
36855
36856 $curl_includes_signal
36857
36858int main (void)
36859{
36860
36861 if(0 != siginterrupt(0, 0))
36862 return 1;
36863
36864 ;
36865 return 0;
36866}
36867
36868_ACEOF
36869if ac_fn_c_try_compile "$LINENO"; then :
36870
36871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36872$as_echo "yes" >&6; }
36873 tst_compi_siginterrupt="yes"
36874
36875else
36876
36877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36878$as_echo "no" >&6; }
36879 tst_compi_siginterrupt="no"
36880
36881fi
36882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36883 fi
36884 #
36885 if test "$tst_compi_siginterrupt" = "yes"; then
36886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36887$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36888 if test "x$curl_disallow_siginterrupt" != "xyes"; then
36889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36890$as_echo "yes" >&6; }
36891 tst_allow_siginterrupt="yes"
36892 else
36893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36894$as_echo "no" >&6; }
36895 tst_allow_siginterrupt="no"
36896 fi
36897 fi
36898 #
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36900$as_echo_n "checking if siginterrupt might be used... " >&6; }
36901 if test "$tst_links_siginterrupt" = "yes" &&
36902 test "$tst_proto_siginterrupt" = "yes" &&
36903 test "$tst_compi_siginterrupt" = "yes" &&
36904 test "$tst_allow_siginterrupt" = "yes"; then
36905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36906$as_echo "yes" >&6; }
36907
36908cat >>confdefs.h <<_ACEOF
36909#define HAVE_SIGINTERRUPT 1
36910_ACEOF
36911
36912 curl_cv_func_siginterrupt="yes"
36913 else
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915$as_echo "no" >&6; }
36916 curl_cv_func_siginterrupt="no"
36917 fi
36918
36919
36920 #
36921 tst_links_signal="unknown"
36922 tst_proto_signal="unknown"
36923 tst_compi_signal="unknown"
36924 tst_allow_signal="unknown"
36925 #
36926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36927$as_echo_n "checking if signal can be linked... " >&6; }
36928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36929/* end confdefs.h. */
36930
36931
36932#define signal innocuous_signal
36933#ifdef __STDC__
36934# include <limits.h>
36935#else
36936# include <assert.h>
36937#endif
36938#undef signal
36939#ifdef __cplusplus
36940extern "C"
36941#endif
36942char signal ();
36943#if defined __stub_signal || defined __stub___signal
36944choke me
36945#endif
36946
36947int main (void)
36948{
36949return signal ();
36950 ;
36951 return 0;
36952}
36953
36954_ACEOF
36955if ac_fn_c_try_link "$LINENO"; then :
36956
36957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36958$as_echo "yes" >&6; }
36959 tst_links_signal="yes"
36960
36961else
36962
36963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36964$as_echo "no" >&6; }
36965 tst_links_signal="no"
36966
36967fi
36968rm -f core conftest.err conftest.$ac_objext \
36969 conftest$ac_exeext conftest.$ac_ext
36970 #
36971 if test "$tst_links_signal" = "yes"; then
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36973$as_echo_n "checking if signal is prototyped... " >&6; }
36974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975/* end confdefs.h. */
36976
36977 $curl_includes_signal
36978
36979_ACEOF
36980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36981 $EGREP "signal" >/dev/null 2>&1; then :
36982
36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36984$as_echo "yes" >&6; }
36985 tst_proto_signal="yes"
36986
36987else
36988
36989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36990$as_echo "no" >&6; }
36991 tst_proto_signal="no"
36992
36993fi
36994rm -f conftest*
36995
36996 fi
36997 #
36998 if test "$tst_proto_signal" = "yes"; then
36999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37000$as_echo_n "checking if signal is compilable... " >&6; }
37001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37002/* end confdefs.h. */
37003
37004
37005 $curl_includes_signal
37006
37007int main (void)
37008{
37009
37010 if(0 != signal(0, 0))
37011 return 1;
37012
37013 ;
37014 return 0;
37015}
37016
37017_ACEOF
37018if ac_fn_c_try_compile "$LINENO"; then :
37019
37020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37021$as_echo "yes" >&6; }
37022 tst_compi_signal="yes"
37023
37024else
37025
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37027$as_echo "no" >&6; }
37028 tst_compi_signal="no"
37029
37030fi
37031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37032 fi
37033 #
37034 if test "$tst_compi_signal" = "yes"; then
37035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37036$as_echo_n "checking if signal usage allowed... " >&6; }
37037 if test "x$curl_disallow_signal" != "xyes"; then
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37039$as_echo "yes" >&6; }
37040 tst_allow_signal="yes"
37041 else
37042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37043$as_echo "no" >&6; }
37044 tst_allow_signal="no"
37045 fi
37046 fi
37047 #
37048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37049$as_echo_n "checking if signal might be used... " >&6; }
37050 if test "$tst_links_signal" = "yes" &&
37051 test "$tst_proto_signal" = "yes" &&
37052 test "$tst_compi_signal" = "yes" &&
37053 test "$tst_allow_signal" = "yes"; then
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37055$as_echo "yes" >&6; }
37056
37057cat >>confdefs.h <<_ACEOF
37058#define HAVE_SIGNAL 1
37059_ACEOF
37060
37061 curl_cv_func_signal="yes"
37062 else
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37064$as_echo "no" >&6; }
37065 curl_cv_func_signal="no"
37066 fi
37067
37068
37069curl_includes_setjmp="\
37070/* includes start */
37071#ifdef HAVE_SYS_TYPES_H
37072# include <sys/types.h>
37073#endif
37074#ifdef HAVE_SETJMP_H
37075# include <setjmp.h>
37076#endif
37077/* includes end */"
37078 for ac_header in sys/types.h setjmp.h
37079do :
37080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37081ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37082"
37083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37084 cat >>confdefs.h <<_ACEOF
37085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37086_ACEOF
37087
37088fi
37089
37090done
37091
37092
37093
37094 #
37095 tst_links_sigsetjmp="unknown"
37096 tst_macro_sigsetjmp="unknown"
37097 tst_proto_sigsetjmp="unknown"
37098 tst_compi_sigsetjmp="unknown"
37099 tst_allow_sigsetjmp="unknown"
37100 #
37101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37102$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37104/* end confdefs.h. */
37105
37106
37107#define sigsetjmp innocuous_sigsetjmp
37108#ifdef __STDC__
37109# include <limits.h>
37110#else
37111# include <assert.h>
37112#endif
37113#undef sigsetjmp
37114#ifdef __cplusplus
37115extern "C"
37116#endif
37117char sigsetjmp ();
37118#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37119choke me
37120#endif
37121
37122int main (void)
37123{
37124return sigsetjmp ();
37125 ;
37126 return 0;
37127}
37128
37129_ACEOF
37130if ac_fn_c_try_link "$LINENO"; then :
37131
37132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37133$as_echo "yes" >&6; }
37134 tst_links_sigsetjmp="yes"
37135
37136else
37137
37138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37139$as_echo "no" >&6; }
37140 tst_links_sigsetjmp="no"
37141
37142fi
37143rm -f core conftest.err conftest.$ac_objext \
37144 conftest$ac_exeext conftest.$ac_ext
37145 #
37146 if test "$tst_links_sigsetjmp" = "no"; then
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37148$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37150/* end confdefs.h. */
37151
37152
37153 $curl_includes_setjmp
37154
37155int main (void)
37156{
37157
37158 sigjmp_buf env;
37159 if(0 != sigsetjmp(env, 0))
37160 return 1;
37161
37162 ;
37163 return 0;
37164}
37165
37166_ACEOF
37167if ac_fn_c_try_link "$LINENO"; then :
37168
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37170$as_echo "yes" >&6; }
37171 tst_macro_sigsetjmp="yes"
37172
37173else
37174
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37176$as_echo "no" >&6; }
37177 tst_macro_sigsetjmp="no"
37178
37179fi
37180rm -f core conftest.err conftest.$ac_objext \
37181 conftest$ac_exeext conftest.$ac_ext
37182 fi
37183 #
37184 if test "$tst_links_sigsetjmp" = "yes"; then
37185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37186$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37188/* end confdefs.h. */
37189
37190 $curl_includes_setjmp
37191
37192_ACEOF
37193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37194 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37195
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37197$as_echo "yes" >&6; }
37198 tst_proto_sigsetjmp="yes"
37199
37200else
37201
37202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37203$as_echo "no" >&6; }
37204 tst_proto_sigsetjmp="no"
37205
37206fi
37207rm -f conftest*
37208
37209 fi
37210 #
37211 if test "$tst_proto_sigsetjmp" = "yes" ||
37212 test "$tst_macro_sigsetjmp" = "yes"; then
37213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37214$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37216/* end confdefs.h. */
37217
37218
37219 $curl_includes_setjmp
37220
37221int main (void)
37222{
37223
37224 sigjmp_buf env;
37225 if(0 != sigsetjmp(env, 0))
37226 return 1;
37227
37228 ;
37229 return 0;
37230}
37231
37232_ACEOF
37233if ac_fn_c_try_compile "$LINENO"; then :
37234
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236$as_echo "yes" >&6; }
37237 tst_compi_sigsetjmp="yes"
37238
37239else
37240
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37242$as_echo "no" >&6; }
37243 tst_compi_sigsetjmp="no"
37244
37245fi
37246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37247 fi
37248 #
37249 if test "$tst_compi_sigsetjmp" = "yes"; then
37250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37251$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37252 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254$as_echo "yes" >&6; }
37255 tst_allow_sigsetjmp="yes"
37256 else
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258$as_echo "no" >&6; }
37259 tst_allow_sigsetjmp="no"
37260 fi
37261 fi
37262 #
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37264$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37265 if (test "$tst_proto_sigsetjmp" = "yes" ||
37266 test "$tst_macro_sigsetjmp" = "yes") &&
37267 test "$tst_compi_sigsetjmp" = "yes" &&
37268 test "$tst_allow_sigsetjmp" = "yes"; then
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37270$as_echo "yes" >&6; }
37271
37272cat >>confdefs.h <<_ACEOF
37273#define HAVE_SIGSETJMP 1
37274_ACEOF
37275
37276 curl_cv_func_sigsetjmp="yes"
37277 else
37278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37279$as_echo "no" >&6; }
37280 curl_cv_func_sigsetjmp="no"
37281 fi
37282
37283
37284 #
37285 tst_links_socket="unknown"
37286 tst_proto_socket="unknown"
37287 tst_compi_socket="unknown"
37288 tst_allow_socket="unknown"
37289 #
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37291$as_echo_n "checking if socket can be linked... " >&6; }
37292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37293/* end confdefs.h. */
37294
37295
37296 $curl_includes_winsock2
37297 $curl_includes_sys_socket
37298 $curl_includes_socket
37299
37300int main (void)
37301{
37302
37303 if(0 != socket(0, 0, 0))
37304 return 1;
37305
37306 ;
37307 return 0;
37308}
37309
37310_ACEOF
37311if ac_fn_c_try_link "$LINENO"; then :
37312
37313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37314$as_echo "yes" >&6; }
37315 tst_links_socket="yes"
37316
37317else
37318
37319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37320$as_echo "no" >&6; }
37321 tst_links_socket="no"
37322
37323fi
37324rm -f core conftest.err conftest.$ac_objext \
37325 conftest$ac_exeext conftest.$ac_ext
37326 #
37327 if test "$tst_links_socket" = "yes"; then
37328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37329$as_echo_n "checking if socket is prototyped... " >&6; }
37330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37331/* end confdefs.h. */
37332
37333 $curl_includes_winsock2
37334 $curl_includes_sys_socket
37335 $curl_includes_socket
37336
37337_ACEOF
37338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37339 $EGREP "socket" >/dev/null 2>&1; then :
37340
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37342$as_echo "yes" >&6; }
37343 tst_proto_socket="yes"
37344
37345else
37346
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37348$as_echo "no" >&6; }
37349 tst_proto_socket="no"
37350
37351fi
37352rm -f conftest*
37353
37354 fi
37355 #
37356 if test "$tst_proto_socket" = "yes"; then
37357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37358$as_echo_n "checking if socket is compilable... " >&6; }
37359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37360/* end confdefs.h. */
37361
37362
37363 $curl_includes_winsock2
37364 $curl_includes_sys_socket
37365 $curl_includes_socket
37366
37367int main (void)
37368{
37369
37370 if(0 != socket(0, 0, 0))
37371 return 1;
37372
37373 ;
37374 return 0;
37375}
37376
37377_ACEOF
37378if ac_fn_c_try_compile "$LINENO"; then :
37379
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37381$as_echo "yes" >&6; }
37382 tst_compi_socket="yes"
37383
37384else
37385
37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37387$as_echo "no" >&6; }
37388 tst_compi_socket="no"
37389
37390fi
37391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 fi
37393 #
37394 if test "$tst_compi_socket" = "yes"; then
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37396$as_echo_n "checking if socket usage allowed... " >&6; }
37397 if test "x$curl_disallow_socket" != "xyes"; then
37398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37399$as_echo "yes" >&6; }
37400 tst_allow_socket="yes"
37401 else
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37403$as_echo "no" >&6; }
37404 tst_allow_socket="no"
37405 fi
37406 fi
37407 #
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37409$as_echo_n "checking if socket might be used... " >&6; }
37410 if test "$tst_links_socket" = "yes" &&
37411 test "$tst_proto_socket" = "yes" &&
37412 test "$tst_compi_socket" = "yes" &&
37413 test "$tst_allow_socket" = "yes"; then
37414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37415$as_echo "yes" >&6; }
37416
37417cat >>confdefs.h <<_ACEOF
37418#define HAVE_SOCKET 1
37419_ACEOF
37420
37421 curl_cv_func_socket="yes"
37422 else
37423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37424$as_echo "no" >&6; }
37425 curl_cv_func_socket="no"
37426 fi
37427
37428
37429 #
37430 tst_links_socketpair="unknown"
37431 tst_proto_socketpair="unknown"
37432 tst_compi_socketpair="unknown"
37433 tst_allow_socketpair="unknown"
37434 #
37435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37436$as_echo_n "checking if socketpair can be linked... " >&6; }
37437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37438/* end confdefs.h. */
37439
37440
37441#define socketpair innocuous_socketpair
37442#ifdef __STDC__
37443# include <limits.h>
37444#else
37445# include <assert.h>
37446#endif
37447#undef socketpair
37448#ifdef __cplusplus
37449extern "C"
37450#endif
37451char socketpair ();
37452#if defined __stub_socketpair || defined __stub___socketpair
37453choke me
37454#endif
37455
37456int main (void)
37457{
37458return socketpair ();
37459 ;
37460 return 0;
37461}
37462
37463_ACEOF
37464if ac_fn_c_try_link "$LINENO"; then :
37465
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37467$as_echo "yes" >&6; }
37468 tst_links_socketpair="yes"
37469
37470else
37471
37472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37473$as_echo "no" >&6; }
37474 tst_links_socketpair="no"
37475
37476fi
37477rm -f core conftest.err conftest.$ac_objext \
37478 conftest$ac_exeext conftest.$ac_ext
37479 #
37480 if test "$tst_links_socketpair" = "yes"; then
37481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37482$as_echo_n "checking if socketpair is prototyped... " >&6; }
37483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37484/* end confdefs.h. */
37485
37486 $curl_includes_sys_socket
37487 $curl_includes_socket
37488
37489_ACEOF
37490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37491 $EGREP "socketpair" >/dev/null 2>&1; then :
37492
37493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37494$as_echo "yes" >&6; }
37495 tst_proto_socketpair="yes"
37496
37497else
37498
37499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37500$as_echo "no" >&6; }
37501 tst_proto_socketpair="no"
37502
37503fi
37504rm -f conftest*
37505
37506 fi
37507 #
37508 if test "$tst_proto_socketpair" = "yes"; then
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37510$as_echo_n "checking if socketpair is compilable... " >&6; }
37511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37512/* end confdefs.h. */
37513
37514
37515 $curl_includes_sys_socket
37516 $curl_includes_socket
37517
37518int main (void)
37519{
37520
37521 int sv[2];
37522 if(0 != socketpair(0, 0, 0, sv))
37523 return 1;
37524
37525 ;
37526 return 0;
37527}
37528
37529_ACEOF
37530if ac_fn_c_try_compile "$LINENO"; then :
37531
37532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37533$as_echo "yes" >&6; }
37534 tst_compi_socketpair="yes"
37535
37536else
37537
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37539$as_echo "no" >&6; }
37540 tst_compi_socketpair="no"
37541
37542fi
37543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37544 fi
37545 #
37546 if test "$tst_compi_socketpair" = "yes"; then
37547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37548$as_echo_n "checking if socketpair usage allowed... " >&6; }
37549 if test "x$curl_disallow_socketpair" != "xyes"; then
37550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37551$as_echo "yes" >&6; }
37552 tst_allow_socketpair="yes"
37553 else
37554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37555$as_echo "no" >&6; }
37556 tst_allow_socketpair="no"
37557 fi
37558 fi
37559 #
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37561$as_echo_n "checking if socketpair might be used... " >&6; }
37562 if test "$tst_links_socketpair" = "yes" &&
37563 test "$tst_proto_socketpair" = "yes" &&
37564 test "$tst_compi_socketpair" = "yes" &&
37565 test "$tst_allow_socketpair" = "yes"; then
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37567$as_echo "yes" >&6; }
37568
37569cat >>confdefs.h <<_ACEOF
37570#define HAVE_SOCKETPAIR 1
37571_ACEOF
37572
37573 curl_cv_func_socketpair="yes"
37574 else
37575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37576$as_echo "no" >&6; }
37577 curl_cv_func_socketpair="no"
37578 fi
37579
37580
37581 #
37582 tst_links_strcasecmp="unknown"
37583 tst_proto_strcasecmp="unknown"
37584 tst_compi_strcasecmp="unknown"
37585 tst_allow_strcasecmp="unknown"
37586 #
37587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37588$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37590/* end confdefs.h. */
37591
37592
37593#define strcasecmp innocuous_strcasecmp
37594#ifdef __STDC__
37595# include <limits.h>
37596#else
37597# include <assert.h>
37598#endif
37599#undef strcasecmp
37600#ifdef __cplusplus
37601extern "C"
37602#endif
37603char strcasecmp ();
37604#if defined __stub_strcasecmp || defined __stub___strcasecmp
37605choke me
37606#endif
37607
37608int main (void)
37609{
37610return strcasecmp ();
37611 ;
37612 return 0;
37613}
37614
37615_ACEOF
37616if ac_fn_c_try_link "$LINENO"; then :
37617
37618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37619$as_echo "yes" >&6; }
37620 tst_links_strcasecmp="yes"
37621
37622else
37623
37624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37625$as_echo "no" >&6; }
37626 tst_links_strcasecmp="no"
37627
37628fi
37629rm -f core conftest.err conftest.$ac_objext \
37630 conftest$ac_exeext conftest.$ac_ext
37631 #
37632 if test "$tst_links_strcasecmp" = "yes"; then
37633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37634$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37636/* end confdefs.h. */
37637
37638 $curl_includes_string
37639
37640_ACEOF
37641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37642 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37643
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37645$as_echo "yes" >&6; }
37646 tst_proto_strcasecmp="yes"
37647
37648else
37649
37650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37651$as_echo "no" >&6; }
37652 tst_proto_strcasecmp="no"
37653
37654fi
37655rm -f conftest*
37656
37657 fi
37658 #
37659 if test "$tst_proto_strcasecmp" = "yes"; then
37660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37661$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37663/* end confdefs.h. */
37664
37665
37666 $curl_includes_string
37667
37668int main (void)
37669{
37670
37671 if(0 != strcasecmp(0, 0))
37672 return 1;
37673
37674 ;
37675 return 0;
37676}
37677
37678_ACEOF
37679if ac_fn_c_try_compile "$LINENO"; then :
37680
37681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37682$as_echo "yes" >&6; }
37683 tst_compi_strcasecmp="yes"
37684
37685else
37686
37687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37688$as_echo "no" >&6; }
37689 tst_compi_strcasecmp="no"
37690
37691fi
37692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37693 fi
37694 #
37695 if test "$tst_compi_strcasecmp" = "yes"; then
37696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37697$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37698 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37700$as_echo "yes" >&6; }
37701 tst_allow_strcasecmp="yes"
37702 else
37703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37704$as_echo "no" >&6; }
37705 tst_allow_strcasecmp="no"
37706 fi
37707 fi
37708 #
37709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37710$as_echo_n "checking if strcasecmp might be used... " >&6; }
37711 if test "$tst_links_strcasecmp" = "yes" &&
37712 test "$tst_proto_strcasecmp" = "yes" &&
37713 test "$tst_compi_strcasecmp" = "yes" &&
37714 test "$tst_allow_strcasecmp" = "yes"; then
37715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37716$as_echo "yes" >&6; }
37717
37718cat >>confdefs.h <<_ACEOF
37719#define HAVE_STRCASECMP 1
37720_ACEOF
37721
37722 curl_cv_func_strcasecmp="yes"
37723 else
37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37725$as_echo "no" >&6; }
37726 curl_cv_func_strcasecmp="no"
37727 fi
37728
37729
37730 #
37731 tst_links_strcmpi="unknown"
37732 tst_proto_strcmpi="unknown"
37733 tst_compi_strcmpi="unknown"
37734 tst_allow_strcmpi="unknown"
37735 #
37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37737$as_echo_n "checking if strcmpi can be linked... " >&6; }
37738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37739/* end confdefs.h. */
37740
37741
37742#define strcmpi innocuous_strcmpi
37743#ifdef __STDC__
37744# include <limits.h>
37745#else
37746# include <assert.h>
37747#endif
37748#undef strcmpi
37749#ifdef __cplusplus
37750extern "C"
37751#endif
37752char strcmpi ();
37753#if defined __stub_strcmpi || defined __stub___strcmpi
37754choke me
37755#endif
37756
37757int main (void)
37758{
37759return strcmpi ();
37760 ;
37761 return 0;
37762}
37763
37764_ACEOF
37765if ac_fn_c_try_link "$LINENO"; then :
37766
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37768$as_echo "yes" >&6; }
37769 tst_links_strcmpi="yes"
37770
37771else
37772
37773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37774$as_echo "no" >&6; }
37775 tst_links_strcmpi="no"
37776
37777fi
37778rm -f core conftest.err conftest.$ac_objext \
37779 conftest$ac_exeext conftest.$ac_ext
37780 #
37781 if test "$tst_links_strcmpi" = "yes"; then
37782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37783$as_echo_n "checking if strcmpi is prototyped... " >&6; }
37784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37785/* end confdefs.h. */
37786
37787 $curl_includes_string
37788
37789_ACEOF
37790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37791 $EGREP "strcmpi" >/dev/null 2>&1; then :
37792
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37794$as_echo "yes" >&6; }
37795 tst_proto_strcmpi="yes"
37796
37797else
37798
37799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37800$as_echo "no" >&6; }
37801 tst_proto_strcmpi="no"
37802
37803fi
37804rm -f conftest*
37805
37806 fi
37807 #
37808 if test "$tst_proto_strcmpi" = "yes"; then
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37810$as_echo_n "checking if strcmpi is compilable... " >&6; }
37811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37812/* end confdefs.h. */
37813
37814
37815 $curl_includes_string
37816
37817int main (void)
37818{
37819
37820 if(0 != strcmpi(0, 0))
37821 return 1;
37822
37823 ;
37824 return 0;
37825}
37826
37827_ACEOF
37828if ac_fn_c_try_compile "$LINENO"; then :
37829
37830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37831$as_echo "yes" >&6; }
37832 tst_compi_strcmpi="yes"
37833
37834else
37835
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37837$as_echo "no" >&6; }
37838 tst_compi_strcmpi="no"
37839
37840fi
37841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37842 fi
37843 #
37844 if test "$tst_compi_strcmpi" = "yes"; then
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37846$as_echo_n "checking if strcmpi usage allowed... " >&6; }
37847 if test "x$curl_disallow_strcmpi" != "xyes"; then
37848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37849$as_echo "yes" >&6; }
37850 tst_allow_strcmpi="yes"
37851 else
37852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37853$as_echo "no" >&6; }
37854 tst_allow_strcmpi="no"
37855 fi
37856 fi
37857 #
37858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37859$as_echo_n "checking if strcmpi might be used... " >&6; }
37860 if test "$tst_links_strcmpi" = "yes" &&
37861 test "$tst_proto_strcmpi" = "yes" &&
37862 test "$tst_compi_strcmpi" = "yes" &&
37863 test "$tst_allow_strcmpi" = "yes"; then
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37865$as_echo "yes" >&6; }
37866
37867cat >>confdefs.h <<_ACEOF
37868#define HAVE_STRCMPI 1
37869_ACEOF
37870
37871 curl_cv_func_strcmpi="yes"
37872 else
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37874$as_echo "no" >&6; }
37875 curl_cv_func_strcmpi="no"
37876 fi
37877
37878
37879 #
37880 tst_links_strdup="unknown"
37881 tst_proto_strdup="unknown"
37882 tst_compi_strdup="unknown"
37883 tst_allow_strdup="unknown"
37884 #
37885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37886$as_echo_n "checking if strdup can be linked... " >&6; }
37887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37888/* end confdefs.h. */
37889
37890
37891#define strdup innocuous_strdup
37892#ifdef __STDC__
37893# include <limits.h>
37894#else
37895# include <assert.h>
37896#endif
37897#undef strdup
37898#ifdef __cplusplus
37899extern "C"
37900#endif
37901char strdup ();
37902#if defined __stub_strdup || defined __stub___strdup
37903choke me
37904#endif
37905
37906int main (void)
37907{
37908return strdup ();
37909 ;
37910 return 0;
37911}
37912
37913_ACEOF
37914if ac_fn_c_try_link "$LINENO"; then :
37915
37916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37917$as_echo "yes" >&6; }
37918 tst_links_strdup="yes"
37919
37920else
37921
37922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37923$as_echo "no" >&6; }
37924 tst_links_strdup="no"
37925
37926fi
37927rm -f core conftest.err conftest.$ac_objext \
37928 conftest$ac_exeext conftest.$ac_ext
37929 #
37930 if test "$tst_links_strdup" = "yes"; then
37931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37932$as_echo_n "checking if strdup is prototyped... " >&6; }
37933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37934/* end confdefs.h. */
37935
37936 $curl_includes_string
37937
37938_ACEOF
37939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37940 $EGREP "strdup" >/dev/null 2>&1; then :
37941
37942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37943$as_echo "yes" >&6; }
37944 tst_proto_strdup="yes"
37945
37946else
37947
37948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37949$as_echo "no" >&6; }
37950 tst_proto_strdup="no"
37951
37952fi
37953rm -f conftest*
37954
37955 fi
37956 #
37957 if test "$tst_proto_strdup" = "yes"; then
37958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37959$as_echo_n "checking if strdup is compilable... " >&6; }
37960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37961/* end confdefs.h. */
37962
37963
37964 $curl_includes_string
37965
37966int main (void)
37967{
37968
37969 if(0 != strdup(0))
37970 return 1;
37971
37972 ;
37973 return 0;
37974}
37975
37976_ACEOF
37977if ac_fn_c_try_compile "$LINENO"; then :
37978
37979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37980$as_echo "yes" >&6; }
37981 tst_compi_strdup="yes"
37982
37983else
37984
37985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37986$as_echo "no" >&6; }
37987 tst_compi_strdup="no"
37988
37989fi
37990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37991 fi
37992 #
37993 if test "$tst_compi_strdup" = "yes"; then
37994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37995$as_echo_n "checking if strdup usage allowed... " >&6; }
37996 if test "x$curl_disallow_strdup" != "xyes"; then
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37998$as_echo "yes" >&6; }
37999 tst_allow_strdup="yes"
38000 else
38001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38002$as_echo "no" >&6; }
38003 tst_allow_strdup="no"
38004 fi
38005 fi
38006 #
38007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38008$as_echo_n "checking if strdup might be used... " >&6; }
38009 if test "$tst_links_strdup" = "yes" &&
38010 test "$tst_proto_strdup" = "yes" &&
38011 test "$tst_compi_strdup" = "yes" &&
38012 test "$tst_allow_strdup" = "yes"; then
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38014$as_echo "yes" >&6; }
38015
38016cat >>confdefs.h <<_ACEOF
38017#define HAVE_STRDUP 1
38018_ACEOF
38019
38020 curl_cv_func_strdup="yes"
38021 else
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38023$as_echo "no" >&6; }
38024 curl_cv_func_strdup="no"
38025 fi
38026
38027
38028 #
38029 tst_links_strerror_r="unknown"
38030 tst_proto_strerror_r="unknown"
38031 tst_compi_strerror_r="unknown"
38032 tst_glibc_strerror_r="unknown"
38033 tst_posix_strerror_r="unknown"
38034 tst_allow_strerror_r="unknown"
38035 tst_works_glibc_strerror_r="unknown"
38036 tst_works_posix_strerror_r="unknown"
38037 tst_glibc_strerror_r_type_arg3="unknown"
38038 tst_posix_strerror_r_type_arg3="unknown"
38039 #
38040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38041$as_echo_n "checking if strerror_r can be linked... " >&6; }
38042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38043/* end confdefs.h. */
38044
38045
38046#define strerror_r innocuous_strerror_r
38047#ifdef __STDC__
38048# include <limits.h>
38049#else
38050# include <assert.h>
38051#endif
38052#undef strerror_r
38053#ifdef __cplusplus
38054extern "C"
38055#endif
38056char strerror_r ();
38057#if defined __stub_strerror_r || defined __stub___strerror_r
38058choke me
38059#endif
38060
38061int main (void)
38062{
38063return strerror_r ();
38064 ;
38065 return 0;
38066}
38067
38068_ACEOF
38069if ac_fn_c_try_link "$LINENO"; then :
38070
38071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38072$as_echo "yes" >&6; }
38073 tst_links_strerror_r="yes"
38074
38075else
38076
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38078$as_echo "no" >&6; }
38079 tst_links_strerror_r="no"
38080
38081fi
38082rm -f core conftest.err conftest.$ac_objext \
38083 conftest$ac_exeext conftest.$ac_ext
38084 #
38085 if test "$tst_links_strerror_r" = "yes"; then
38086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38087$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38089/* end confdefs.h. */
38090
38091 $curl_includes_string
38092
38093_ACEOF
38094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38095 $EGREP "strerror_r" >/dev/null 2>&1; then :
38096
38097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38098$as_echo "yes" >&6; }
38099 tst_proto_strerror_r="yes"
38100
38101else
38102
38103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38104$as_echo "no" >&6; }
38105 tst_proto_strerror_r="no"
38106
38107fi
38108rm -f conftest*
38109
38110 fi
38111 #
38112 if test "$tst_proto_strerror_r" = "yes"; then
38113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38114$as_echo_n "checking if strerror_r is compilable... " >&6; }
38115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38116/* end confdefs.h. */
38117
38118
38119 $curl_includes_string
38120
38121int main (void)
38122{
38123
38124 if(0 != strerror_r(0, 0, 0))
38125 return 1;
38126
38127 ;
38128 return 0;
38129}
38130
38131_ACEOF
38132if ac_fn_c_try_compile "$LINENO"; then :
38133
38134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38135$as_echo "yes" >&6; }
38136 tst_compi_strerror_r="yes"
38137
38138else
38139
38140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38141$as_echo "no" >&6; }
38142 tst_compi_strerror_r="no"
38143
38144fi
38145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38146 fi
38147 #
38148 if test "$tst_compi_strerror_r" = "yes"; then
38149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38150$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38151 tst_glibc_strerror_r_type_arg3="unknown"
38152 for arg3 in 'size_t' 'int' 'unsigned int'; do
38153 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38155/* end confdefs.h. */
38156
38157
38158 $curl_includes_string
38159 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38160
38161int main (void)
38162{
38163
38164 if(0 != strerror_r(0, 0, 0))
38165 return 1;
38166
38167 ;
38168 return 0;
38169}
38170
38171_ACEOF
38172if ac_fn_c_try_compile "$LINENO"; then :
38173
38174 tst_glibc_strerror_r_type_arg3="$arg3"
38175
38176fi
38177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38178 fi
38179 done
38180 case "$tst_glibc_strerror_r_type_arg3" in
38181 unknown)
38182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38183$as_echo "no" >&6; }
38184 tst_glibc_strerror_r="no"
38185 ;;
38186 *)
38187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38188$as_echo "yes" >&6; }
38189 tst_glibc_strerror_r="yes"
38190 ;;
38191 esac
38192 fi
38193 #
38194 if test "x$cross_compiling" != "xyes" &&
38195 test "$tst_glibc_strerror_r" = "yes"; then
38196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38197$as_echo_n "checking if strerror_r seems to work... " >&6; }
38198 if test "$cross_compiling" = yes; then :
38199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38201as_fn_error $? "cannot run test program while cross compiling
38202See \`config.log' for more details" "$LINENO" 5; }
38203else
38204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38205/* end confdefs.h. */
38206
38207
38208 $curl_includes_stdlib
38209 $curl_includes_string
38210# include <errno.h>
38211
38212int main (void)
38213{
38214
38215 char buffer[1024];
38216 char *string = 0;
38217 buffer[0] = '\0';
38218 string = strerror_r(EACCES, buffer, sizeof(buffer));
38219 if(!string)
38220 exit(1); /* fail */
38221 if(!string[0])
38222 exit(1); /* fail */
38223 else
38224 exit(0);
38225
38226 ;
38227 return 0;
38228}
38229
38230_ACEOF
38231if ac_fn_c_try_run "$LINENO"; then :
38232
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38234$as_echo "yes" >&6; }
38235 tst_works_glibc_strerror_r="yes"
38236
38237else
38238
38239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38240$as_echo "no" >&6; }
38241 tst_works_glibc_strerror_r="no"
38242
38243fi
38244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38245 conftest.$ac_objext conftest.beam conftest.$ac_ext
38246fi
38247
38248 fi
38249 #
38250 if test "$tst_compi_strerror_r" = "yes" &&
38251 test "$tst_works_glibc_strerror_r" != "yes"; then
38252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38253$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38254 tst_posix_strerror_r_type_arg3="unknown"
38255 for arg3 in 'size_t' 'int' 'unsigned int'; do
38256 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38258/* end confdefs.h. */
38259
38260
38261 $curl_includes_string
38262 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38263
38264int main (void)
38265{
38266
38267 if(0 != strerror_r(0, 0, 0))
38268 return 1;
38269
38270 ;
38271 return 0;
38272}
38273
38274_ACEOF
38275if ac_fn_c_try_compile "$LINENO"; then :
38276
38277 tst_posix_strerror_r_type_arg3="$arg3"
38278
38279fi
38280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38281 fi
38282 done
38283 case "$tst_posix_strerror_r_type_arg3" in
38284 unknown)
38285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38286$as_echo "no" >&6; }
38287 tst_posix_strerror_r="no"
38288 ;;
38289 *)
38290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38291$as_echo "yes" >&6; }
38292 tst_posix_strerror_r="yes"
38293 ;;
38294 esac
38295 fi
38296 #
38297 if test "x$cross_compiling" != "xyes" &&
38298 test "$tst_posix_strerror_r" = "yes"; then
38299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38300$as_echo_n "checking if strerror_r seems to work... " >&6; }
38301 if test "$cross_compiling" = yes; then :
38302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38304as_fn_error $? "cannot run test program while cross compiling
38305See \`config.log' for more details" "$LINENO" 5; }
38306else
38307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38308/* end confdefs.h. */
38309
38310
38311 $curl_includes_stdlib
38312 $curl_includes_string
38313# include <errno.h>
38314
38315int main (void)
38316{
38317
38318 char buffer[1024];
38319 int error = 1;
38320 buffer[0] = '\0';
38321 error = strerror_r(EACCES, buffer, sizeof(buffer));
38322 if(error)
38323 exit(1); /* fail */
38324 if(buffer[0] == '\0')
38325 exit(1); /* fail */
38326 else
38327 exit(0);
38328
38329 ;
38330 return 0;
38331}
38332
38333_ACEOF
38334if ac_fn_c_try_run "$LINENO"; then :
38335
38336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38337$as_echo "yes" >&6; }
38338 tst_works_posix_strerror_r="yes"
38339
38340else
38341
38342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38343$as_echo "no" >&6; }
38344 tst_works_posix_strerror_r="no"
38345
38346fi
38347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38348 conftest.$ac_objext conftest.beam conftest.$ac_ext
38349fi
38350
38351 fi
38352 #
38353 if test "$tst_works_glibc_strerror_r" = "yes"; then
38354 tst_posix_strerror_r="no"
38355 fi
38356 if test "$tst_works_posix_strerror_r" = "yes"; then
38357 tst_glibc_strerror_r="no"
38358 fi
38359 if test "$tst_glibc_strerror_r" = "yes" &&
38360 test "$tst_works_glibc_strerror_r" != "no" &&
38361 test "$tst_posix_strerror_r" != "yes"; then
38362 tst_allow_strerror_r="check"
38363 fi
38364 if test "$tst_posix_strerror_r" = "yes" &&
38365 test "$tst_works_posix_strerror_r" != "no" &&
38366 test "$tst_glibc_strerror_r" != "yes"; then
38367 tst_allow_strerror_r="check"
38368 fi
38369 if test "$tst_allow_strerror_r" = "check"; then
38370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38371$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38372 if test "x$curl_disallow_strerror_r" != "xyes"; then
38373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38374$as_echo "yes" >&6; }
38375 tst_allow_strerror_r="yes"
38376 else
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38378$as_echo "no" >&6; }
38379 tst_allow_strerror_r="no"
38380 fi
38381 fi
38382 #
38383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38384$as_echo_n "checking if strerror_r might be used... " >&6; }
38385 if test "$tst_links_strerror_r" = "yes" &&
38386 test "$tst_proto_strerror_r" = "yes" &&
38387 test "$tst_compi_strerror_r" = "yes" &&
38388 test "$tst_allow_strerror_r" = "yes"; then
38389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390$as_echo "yes" >&6; }
38391 if test "$tst_glibc_strerror_r" = "yes"; then
38392
38393cat >>confdefs.h <<_ACEOF
38394#define HAVE_STRERROR_R 1
38395_ACEOF
38396
38397
38398cat >>confdefs.h <<_ACEOF
38399#define HAVE_GLIBC_STRERROR_R 1
38400_ACEOF
38401
38402
38403cat >>confdefs.h <<_ACEOF
38404#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38405_ACEOF
38406
38407 fi
38408 if test "$tst_posix_strerror_r" = "yes"; then
38409
38410cat >>confdefs.h <<_ACEOF
38411#define HAVE_STRERROR_R 1
38412_ACEOF
38413
38414
38415cat >>confdefs.h <<_ACEOF
38416#define HAVE_POSIX_STRERROR_R 1
38417_ACEOF
38418
38419
38420cat >>confdefs.h <<_ACEOF
38421#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38422_ACEOF
38423
38424 fi
38425 curl_cv_func_strerror_r="yes"
38426 else
38427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38428$as_echo "no" >&6; }
38429 curl_cv_func_strerror_r="no"
38430 fi
38431 #
38432 if test "$tst_compi_strerror_r" = "yes" &&
38433 test "$tst_allow_strerror_r" = "unknown"; then
38434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38435$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38436 fi
38437 #
38438
38439
38440 #
38441 tst_links_stricmp="unknown"
38442 tst_proto_stricmp="unknown"
38443 tst_compi_stricmp="unknown"
38444 tst_allow_stricmp="unknown"
38445 #
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38447$as_echo_n "checking if stricmp can be linked... " >&6; }
38448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449/* end confdefs.h. */
38450
38451
38452#define stricmp innocuous_stricmp
38453#ifdef __STDC__
38454# include <limits.h>
38455#else
38456# include <assert.h>
38457#endif
38458#undef stricmp
38459#ifdef __cplusplus
38460extern "C"
38461#endif
38462char stricmp ();
38463#if defined __stub_stricmp || defined __stub___stricmp
38464choke me
38465#endif
38466
38467int main (void)
38468{
38469return stricmp ();
38470 ;
38471 return 0;
38472}
38473
38474_ACEOF
38475if ac_fn_c_try_link "$LINENO"; then :
38476
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38478$as_echo "yes" >&6; }
38479 tst_links_stricmp="yes"
38480
38481else
38482
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38484$as_echo "no" >&6; }
38485 tst_links_stricmp="no"
38486
38487fi
38488rm -f core conftest.err conftest.$ac_objext \
38489 conftest$ac_exeext conftest.$ac_ext
38490 #
38491 if test "$tst_links_stricmp" = "yes"; then
38492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38493$as_echo_n "checking if stricmp is prototyped... " >&6; }
38494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38495/* end confdefs.h. */
38496
38497 $curl_includes_string
38498
38499_ACEOF
38500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38501 $EGREP "stricmp" >/dev/null 2>&1; then :
38502
38503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38504$as_echo "yes" >&6; }
38505 tst_proto_stricmp="yes"
38506
38507else
38508
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38510$as_echo "no" >&6; }
38511 tst_proto_stricmp="no"
38512
38513fi
38514rm -f conftest*
38515
38516 fi
38517 #
38518 if test "$tst_proto_stricmp" = "yes"; then
38519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38520$as_echo_n "checking if stricmp is compilable... " >&6; }
38521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38522/* end confdefs.h. */
38523
38524
38525 $curl_includes_string
38526
38527int main (void)
38528{
38529
38530 if(0 != stricmp(0, 0))
38531 return 1;
38532
38533 ;
38534 return 0;
38535}
38536
38537_ACEOF
38538if ac_fn_c_try_compile "$LINENO"; then :
38539
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38541$as_echo "yes" >&6; }
38542 tst_compi_stricmp="yes"
38543
38544else
38545
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38547$as_echo "no" >&6; }
38548 tst_compi_stricmp="no"
38549
38550fi
38551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38552 fi
38553 #
38554 if test "$tst_compi_stricmp" = "yes"; then
38555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38556$as_echo_n "checking if stricmp usage allowed... " >&6; }
38557 if test "x$curl_disallow_stricmp" != "xyes"; then
38558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38559$as_echo "yes" >&6; }
38560 tst_allow_stricmp="yes"
38561 else
38562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38563$as_echo "no" >&6; }
38564 tst_allow_stricmp="no"
38565 fi
38566 fi
38567 #
38568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38569$as_echo_n "checking if stricmp might be used... " >&6; }
38570 if test "$tst_links_stricmp" = "yes" &&
38571 test "$tst_proto_stricmp" = "yes" &&
38572 test "$tst_compi_stricmp" = "yes" &&
38573 test "$tst_allow_stricmp" = "yes"; then
38574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38575$as_echo "yes" >&6; }
38576
38577cat >>confdefs.h <<_ACEOF
38578#define HAVE_STRICMP 1
38579_ACEOF
38580
38581 curl_cv_func_stricmp="yes"
38582 else
38583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38584$as_echo "no" >&6; }
38585 curl_cv_func_stricmp="no"
38586 fi
38587
38588
38589 #
38590 tst_links_strncasecmp="unknown"
38591 tst_proto_strncasecmp="unknown"
38592 tst_compi_strncasecmp="unknown"
38593 tst_allow_strncasecmp="unknown"
38594 #
38595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38596$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38598/* end confdefs.h. */
38599
38600
38601#define strncasecmp innocuous_strncasecmp
38602#ifdef __STDC__
38603# include <limits.h>
38604#else
38605# include <assert.h>
38606#endif
38607#undef strncasecmp
38608#ifdef __cplusplus
38609extern "C"
38610#endif
38611char strncasecmp ();
38612#if defined __stub_strncasecmp || defined __stub___strncasecmp
38613choke me
38614#endif
38615
38616int main (void)
38617{
38618return strncasecmp ();
38619 ;
38620 return 0;
38621}
38622
38623_ACEOF
38624if ac_fn_c_try_link "$LINENO"; then :
38625
38626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38627$as_echo "yes" >&6; }
38628 tst_links_strncasecmp="yes"
38629
38630else
38631
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38633$as_echo "no" >&6; }
38634 tst_links_strncasecmp="no"
38635
38636fi
38637rm -f core conftest.err conftest.$ac_objext \
38638 conftest$ac_exeext conftest.$ac_ext
38639 #
38640 if test "$tst_links_strncasecmp" = "yes"; then
38641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38642$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38644/* end confdefs.h. */
38645
38646 $curl_includes_string
38647
38648_ACEOF
38649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38650 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38651
38652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38653$as_echo "yes" >&6; }
38654 tst_proto_strncasecmp="yes"
38655
38656else
38657
38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38659$as_echo "no" >&6; }
38660 tst_proto_strncasecmp="no"
38661
38662fi
38663rm -f conftest*
38664
38665 fi
38666 #
38667 if test "$tst_proto_strncasecmp" = "yes"; then
38668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38669$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38671/* end confdefs.h. */
38672
38673
38674 $curl_includes_string
38675
38676int main (void)
38677{
38678
38679 if(0 != strncasecmp(0, 0, 0))
38680 return 1;
38681
38682 ;
38683 return 0;
38684}
38685
38686_ACEOF
38687if ac_fn_c_try_compile "$LINENO"; then :
38688
38689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38690$as_echo "yes" >&6; }
38691 tst_compi_strncasecmp="yes"
38692
38693else
38694
38695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38696$as_echo "no" >&6; }
38697 tst_compi_strncasecmp="no"
38698
38699fi
38700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38701 fi
38702 #
38703 if test "$tst_compi_strncasecmp" = "yes"; then
38704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38705$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38706 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38708$as_echo "yes" >&6; }
38709 tst_allow_strncasecmp="yes"
38710 else
38711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38712$as_echo "no" >&6; }
38713 tst_allow_strncasecmp="no"
38714 fi
38715 fi
38716 #
38717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38718$as_echo_n "checking if strncasecmp might be used... " >&6; }
38719 if test "$tst_links_strncasecmp" = "yes" &&
38720 test "$tst_proto_strncasecmp" = "yes" &&
38721 test "$tst_compi_strncasecmp" = "yes" &&
38722 test "$tst_allow_strncasecmp" = "yes"; then
38723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38724$as_echo "yes" >&6; }
38725
38726cat >>confdefs.h <<_ACEOF
38727#define HAVE_STRNCASECMP 1
38728_ACEOF
38729
38730 curl_cv_func_strncasecmp="yes"
38731 else
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38733$as_echo "no" >&6; }
38734 curl_cv_func_strncasecmp="no"
38735 fi
38736
38737
38738 #
38739 tst_links_strncmpi="unknown"
38740 tst_proto_strncmpi="unknown"
38741 tst_compi_strncmpi="unknown"
38742 tst_allow_strncmpi="unknown"
38743 #
38744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38745$as_echo_n "checking if strncmpi can be linked... " >&6; }
38746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747/* end confdefs.h. */
38748
38749
38750#define strncmpi innocuous_strncmpi
38751#ifdef __STDC__
38752# include <limits.h>
38753#else
38754# include <assert.h>
38755#endif
38756#undef strncmpi
38757#ifdef __cplusplus
38758extern "C"
38759#endif
38760char strncmpi ();
38761#if defined __stub_strncmpi || defined __stub___strncmpi
38762choke me
38763#endif
38764
38765int main (void)
38766{
38767return strncmpi ();
38768 ;
38769 return 0;
38770}
38771
38772_ACEOF
38773if ac_fn_c_try_link "$LINENO"; then :
38774
38775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38776$as_echo "yes" >&6; }
38777 tst_links_strncmpi="yes"
38778
38779else
38780
38781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38782$as_echo "no" >&6; }
38783 tst_links_strncmpi="no"
38784
38785fi
38786rm -f core conftest.err conftest.$ac_objext \
38787 conftest$ac_exeext conftest.$ac_ext
38788 #
38789 if test "$tst_links_strncmpi" = "yes"; then
38790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38791$as_echo_n "checking if strncmpi is prototyped... " >&6; }
38792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38793/* end confdefs.h. */
38794
38795 $curl_includes_string
38796
38797_ACEOF
38798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38799 $EGREP "strncmpi" >/dev/null 2>&1; then :
38800
38801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38802$as_echo "yes" >&6; }
38803 tst_proto_strncmpi="yes"
38804
38805else
38806
38807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38808$as_echo "no" >&6; }
38809 tst_proto_strncmpi="no"
38810
38811fi
38812rm -f conftest*
38813
38814 fi
38815 #
38816 if test "$tst_proto_strncmpi" = "yes"; then
38817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38818$as_echo_n "checking if strncmpi is compilable... " >&6; }
38819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38820/* end confdefs.h. */
38821
38822
38823 $curl_includes_string
38824
38825int main (void)
38826{
38827
38828 if(0 != strncmpi(0, 0))
38829 return 1;
38830
38831 ;
38832 return 0;
38833}
38834
38835_ACEOF
38836if ac_fn_c_try_compile "$LINENO"; then :
38837
38838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38839$as_echo "yes" >&6; }
38840 tst_compi_strncmpi="yes"
38841
38842else
38843
38844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38845$as_echo "no" >&6; }
38846 tst_compi_strncmpi="no"
38847
38848fi
38849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38850 fi
38851 #
38852 if test "$tst_compi_strncmpi" = "yes"; then
38853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38854$as_echo_n "checking if strncmpi usage allowed... " >&6; }
38855 if test "x$curl_disallow_strncmpi" != "xyes"; then
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38857$as_echo "yes" >&6; }
38858 tst_allow_strncmpi="yes"
38859 else
38860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38861$as_echo "no" >&6; }
38862 tst_allow_strncmpi="no"
38863 fi
38864 fi
38865 #
38866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38867$as_echo_n "checking if strncmpi might be used... " >&6; }
38868 if test "$tst_links_strncmpi" = "yes" &&
38869 test "$tst_proto_strncmpi" = "yes" &&
38870 test "$tst_compi_strncmpi" = "yes" &&
38871 test "$tst_allow_strncmpi" = "yes"; then
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873$as_echo "yes" >&6; }
38874
38875cat >>confdefs.h <<_ACEOF
38876#define HAVE_STRNCMPI 1
38877_ACEOF
38878
38879 curl_cv_func_strncmpi="yes"
38880 else
38881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38882$as_echo "no" >&6; }
38883 curl_cv_func_strncmpi="no"
38884 fi
38885
38886
38887 #
38888 tst_links_strnicmp="unknown"
38889 tst_proto_strnicmp="unknown"
38890 tst_compi_strnicmp="unknown"
38891 tst_allow_strnicmp="unknown"
38892 #
38893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38894$as_echo_n "checking if strnicmp can be linked... " >&6; }
38895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38896/* end confdefs.h. */
38897
38898
38899#define strnicmp innocuous_strnicmp
38900#ifdef __STDC__
38901# include <limits.h>
38902#else
38903# include <assert.h>
38904#endif
38905#undef strnicmp
38906#ifdef __cplusplus
38907extern "C"
38908#endif
38909char strnicmp ();
38910#if defined __stub_strnicmp || defined __stub___strnicmp
38911choke me
38912#endif
38913
38914int main (void)
38915{
38916return strnicmp ();
38917 ;
38918 return 0;
38919}
38920
38921_ACEOF
38922if ac_fn_c_try_link "$LINENO"; then :
38923
38924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38925$as_echo "yes" >&6; }
38926 tst_links_strnicmp="yes"
38927
38928else
38929
38930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38931$as_echo "no" >&6; }
38932 tst_links_strnicmp="no"
38933
38934fi
38935rm -f core conftest.err conftest.$ac_objext \
38936 conftest$ac_exeext conftest.$ac_ext
38937 #
38938 if test "$tst_links_strnicmp" = "yes"; then
38939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38940$as_echo_n "checking if strnicmp is prototyped... " >&6; }
38941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38942/* end confdefs.h. */
38943
38944 $curl_includes_string
38945
38946_ACEOF
38947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38948 $EGREP "strnicmp" >/dev/null 2>&1; then :
38949
38950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38951$as_echo "yes" >&6; }
38952 tst_proto_strnicmp="yes"
38953
38954else
38955
38956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38957$as_echo "no" >&6; }
38958 tst_proto_strnicmp="no"
38959
38960fi
38961rm -f conftest*
38962
38963 fi
38964 #
38965 if test "$tst_proto_strnicmp" = "yes"; then
38966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38967$as_echo_n "checking if strnicmp is compilable... " >&6; }
38968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38969/* end confdefs.h. */
38970
38971
38972 $curl_includes_string
38973
38974int main (void)
38975{
38976
38977 if(0 != strnicmp(0, 0))
38978 return 1;
38979
38980 ;
38981 return 0;
38982}
38983
38984_ACEOF
38985if ac_fn_c_try_compile "$LINENO"; then :
38986
38987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38988$as_echo "yes" >&6; }
38989 tst_compi_strnicmp="yes"
38990
38991else
38992
38993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38994$as_echo "no" >&6; }
38995 tst_compi_strnicmp="no"
38996
38997fi
38998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38999 fi
39000 #
39001 if test "$tst_compi_strnicmp" = "yes"; then
39002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39003$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39004 if test "x$curl_disallow_strnicmp" != "xyes"; then
39005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39006$as_echo "yes" >&6; }
39007 tst_allow_strnicmp="yes"
39008 else
39009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39010$as_echo "no" >&6; }
39011 tst_allow_strnicmp="no"
39012 fi
39013 fi
39014 #
39015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39016$as_echo_n "checking if strnicmp might be used... " >&6; }
39017 if test "$tst_links_strnicmp" = "yes" &&
39018 test "$tst_proto_strnicmp" = "yes" &&
39019 test "$tst_compi_strnicmp" = "yes" &&
39020 test "$tst_allow_strnicmp" = "yes"; then
39021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39022$as_echo "yes" >&6; }
39023
39024cat >>confdefs.h <<_ACEOF
39025#define HAVE_STRNICMP 1
39026_ACEOF
39027
39028 curl_cv_func_strnicmp="yes"
39029 else
39030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39031$as_echo "no" >&6; }
39032 curl_cv_func_strnicmp="no"
39033 fi
39034
39035
39036 #
39037 tst_links_strstr="unknown"
39038 tst_proto_strstr="unknown"
39039 tst_compi_strstr="unknown"
39040 tst_allow_strstr="unknown"
39041 #
39042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39043$as_echo_n "checking if strstr can be linked... " >&6; }
39044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39045/* end confdefs.h. */
39046
39047
39048#define strstr innocuous_strstr
39049#ifdef __STDC__
39050# include <limits.h>
39051#else
39052# include <assert.h>
39053#endif
39054#undef strstr
39055#ifdef __cplusplus
39056extern "C"
39057#endif
39058char strstr ();
39059#if defined __stub_strstr || defined __stub___strstr
39060choke me
39061#endif
39062
39063int main (void)
39064{
39065return strstr ();
39066 ;
39067 return 0;
39068}
39069
39070_ACEOF
39071if ac_fn_c_try_link "$LINENO"; then :
39072
39073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39074$as_echo "yes" >&6; }
39075 tst_links_strstr="yes"
39076
39077else
39078
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39080$as_echo "no" >&6; }
39081 tst_links_strstr="no"
39082
39083fi
39084rm -f core conftest.err conftest.$ac_objext \
39085 conftest$ac_exeext conftest.$ac_ext
39086 #
39087 if test "$tst_links_strstr" = "yes"; then
39088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39089$as_echo_n "checking if strstr is prototyped... " >&6; }
39090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39091/* end confdefs.h. */
39092
39093 $curl_includes_string
39094
39095_ACEOF
39096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39097 $EGREP "strstr" >/dev/null 2>&1; then :
39098
39099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39100$as_echo "yes" >&6; }
39101 tst_proto_strstr="yes"
39102
39103else
39104
39105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39106$as_echo "no" >&6; }
39107 tst_proto_strstr="no"
39108
39109fi
39110rm -f conftest*
39111
39112 fi
39113 #
39114 if test "$tst_proto_strstr" = "yes"; then
39115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39116$as_echo_n "checking if strstr is compilable... " >&6; }
39117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39118/* end confdefs.h. */
39119
39120
39121 $curl_includes_string
39122
39123int main (void)
39124{
39125
39126 if(0 != strstr(0, 0))
39127 return 1;
39128
39129 ;
39130 return 0;
39131}
39132
39133_ACEOF
39134if ac_fn_c_try_compile "$LINENO"; then :
39135
39136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39137$as_echo "yes" >&6; }
39138 tst_compi_strstr="yes"
39139
39140else
39141
39142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39143$as_echo "no" >&6; }
39144 tst_compi_strstr="no"
39145
39146fi
39147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39148 fi
39149 #
39150 if test "$tst_compi_strstr" = "yes"; then
39151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39152$as_echo_n "checking if strstr usage allowed... " >&6; }
39153 if test "x$curl_disallow_strstr" != "xyes"; then
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39155$as_echo "yes" >&6; }
39156 tst_allow_strstr="yes"
39157 else
39158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39159$as_echo "no" >&6; }
39160 tst_allow_strstr="no"
39161 fi
39162 fi
39163 #
39164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39165$as_echo_n "checking if strstr might be used... " >&6; }
39166 if test "$tst_links_strstr" = "yes" &&
39167 test "$tst_proto_strstr" = "yes" &&
39168 test "$tst_compi_strstr" = "yes" &&
39169 test "$tst_allow_strstr" = "yes"; then
39170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39171$as_echo "yes" >&6; }
39172
39173cat >>confdefs.h <<_ACEOF
39174#define HAVE_STRSTR 1
39175_ACEOF
39176
39177 curl_cv_func_strstr="yes"
39178 else
39179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39180$as_echo "no" >&6; }
39181 curl_cv_func_strstr="no"
39182 fi
39183
39184
39185 #
39186 tst_links_strtok_r="unknown"
39187 tst_proto_strtok_r="unknown"
39188 tst_compi_strtok_r="unknown"
39189 tst_allow_strtok_r="unknown"
39190 #
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39192$as_echo_n "checking if strtok_r can be linked... " >&6; }
39193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39194/* end confdefs.h. */
39195
39196
39197#define strtok_r innocuous_strtok_r
39198#ifdef __STDC__
39199# include <limits.h>
39200#else
39201# include <assert.h>
39202#endif
39203#undef strtok_r
39204#ifdef __cplusplus
39205extern "C"
39206#endif
39207char strtok_r ();
39208#if defined __stub_strtok_r || defined __stub___strtok_r
39209choke me
39210#endif
39211
39212int main (void)
39213{
39214return strtok_r ();
39215 ;
39216 return 0;
39217}
39218
39219_ACEOF
39220if ac_fn_c_try_link "$LINENO"; then :
39221
39222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39223$as_echo "yes" >&6; }
39224 tst_links_strtok_r="yes"
39225
39226else
39227
39228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39229$as_echo "no" >&6; }
39230 tst_links_strtok_r="no"
39231
39232fi
39233rm -f core conftest.err conftest.$ac_objext \
39234 conftest$ac_exeext conftest.$ac_ext
39235 #
39236 if test "$tst_links_strtok_r" = "yes"; then
39237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39238$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39240/* end confdefs.h. */
39241
39242 $curl_includes_string
39243
39244_ACEOF
39245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39246 $EGREP "strtok_r" >/dev/null 2>&1; then :
39247
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39249$as_echo "yes" >&6; }
39250 tst_proto_strtok_r="yes"
39251
39252else
39253
39254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39255$as_echo "no" >&6; }
39256 tst_proto_strtok_r="no"
39257
39258fi
39259rm -f conftest*
39260
39261 fi
39262 #
39263 if test "$tst_proto_strtok_r" = "yes"; then
39264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39265$as_echo_n "checking if strtok_r is compilable... " >&6; }
39266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39267/* end confdefs.h. */
39268
39269
39270 $curl_includes_string
39271
39272int main (void)
39273{
39274
39275 if(0 != strtok_r(0, 0, 0))
39276 return 1;
39277
39278 ;
39279 return 0;
39280}
39281
39282_ACEOF
39283if ac_fn_c_try_compile "$LINENO"; then :
39284
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39286$as_echo "yes" >&6; }
39287 tst_compi_strtok_r="yes"
39288
39289else
39290
39291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39292$as_echo "no" >&6; }
39293 tst_compi_strtok_r="no"
39294
39295fi
39296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39297 fi
39298 #
39299 if test "$tst_compi_strtok_r" = "yes"; then
39300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39301$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39302 if test "x$curl_disallow_strtok_r" != "xyes"; then
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39304$as_echo "yes" >&6; }
39305 tst_allow_strtok_r="yes"
39306 else
39307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39308$as_echo "no" >&6; }
39309 tst_allow_strtok_r="no"
39310 fi
39311 fi
39312 #
39313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39314$as_echo_n "checking if strtok_r might be used... " >&6; }
39315 if test "$tst_links_strtok_r" = "yes" &&
39316 test "$tst_proto_strtok_r" = "yes" &&
39317 test "$tst_compi_strtok_r" = "yes" &&
39318 test "$tst_allow_strtok_r" = "yes"; then
39319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39320$as_echo "yes" >&6; }
39321
39322cat >>confdefs.h <<_ACEOF
39323#define HAVE_STRTOK_R 1
39324_ACEOF
39325
39326 curl_cv_func_strtok_r="yes"
39327 else
39328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39329$as_echo "no" >&6; }
39330 curl_cv_func_strtok_r="no"
39331 fi
39332
39333
39334 #
39335 tst_links_strtoll="unknown"
39336 tst_proto_strtoll="unknown"
39337 tst_compi_strtoll="unknown"
39338 tst_allow_strtoll="unknown"
39339 #
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39341$as_echo_n "checking if strtoll can be linked... " >&6; }
39342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39343/* end confdefs.h. */
39344
39345
39346#define strtoll innocuous_strtoll
39347#ifdef __STDC__
39348# include <limits.h>
39349#else
39350# include <assert.h>
39351#endif
39352#undef strtoll
39353#ifdef __cplusplus
39354extern "C"
39355#endif
39356char strtoll ();
39357#if defined __stub_strtoll || defined __stub___strtoll
39358choke me
39359#endif
39360
39361int main (void)
39362{
39363return strtoll ();
39364 ;
39365 return 0;
39366}
39367
39368_ACEOF
39369if ac_fn_c_try_link "$LINENO"; then :
39370
39371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39372$as_echo "yes" >&6; }
39373 tst_links_strtoll="yes"
39374
39375else
39376
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39378$as_echo "no" >&6; }
39379 tst_links_strtoll="no"
39380
39381fi
39382rm -f core conftest.err conftest.$ac_objext \
39383 conftest$ac_exeext conftest.$ac_ext
39384 #
39385 if test "$tst_links_strtoll" = "yes"; then
39386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39387$as_echo_n "checking if strtoll is prototyped... " >&6; }
39388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39389/* end confdefs.h. */
39390
39391 $curl_includes_stdlib
39392
39393_ACEOF
39394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39395 $EGREP "strtoll" >/dev/null 2>&1; then :
39396
39397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39398$as_echo "yes" >&6; }
39399 tst_proto_strtoll="yes"
39400
39401else
39402
39403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39404$as_echo "no" >&6; }
39405 tst_proto_strtoll="no"
39406
39407fi
39408rm -f conftest*
39409
39410 fi
39411 #
39412 if test "$tst_proto_strtoll" = "yes"; then
39413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39414$as_echo_n "checking if strtoll is compilable... " >&6; }
39415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39416/* end confdefs.h. */
39417
39418
39419 $curl_includes_stdlib
39420
39421int main (void)
39422{
39423
39424 if(0 != strtoll(0, 0, 0))
39425 return 1;
39426
39427 ;
39428 return 0;
39429}
39430
39431_ACEOF
39432if ac_fn_c_try_compile "$LINENO"; then :
39433
39434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39435$as_echo "yes" >&6; }
39436 tst_compi_strtoll="yes"
39437
39438else
39439
39440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39441$as_echo "no" >&6; }
39442 tst_compi_strtoll="no"
39443
39444fi
39445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39446 fi
39447 #
39448 if test "$tst_compi_strtoll" = "yes"; then
39449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39450$as_echo_n "checking if strtoll usage allowed... " >&6; }
39451 if test "x$curl_disallow_strtoll" != "xyes"; then
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39453$as_echo "yes" >&6; }
39454 tst_allow_strtoll="yes"
39455 else
39456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39457$as_echo "no" >&6; }
39458 tst_allow_strtoll="no"
39459 fi
39460 fi
39461 #
39462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39463$as_echo_n "checking if strtoll might be used... " >&6; }
39464 if test "$tst_links_strtoll" = "yes" &&
39465 test "$tst_proto_strtoll" = "yes" &&
39466 test "$tst_compi_strtoll" = "yes" &&
39467 test "$tst_allow_strtoll" = "yes"; then
39468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39469$as_echo "yes" >&6; }
39470
39471cat >>confdefs.h <<_ACEOF
39472#define HAVE_STRTOLL 1
39473_ACEOF
39474
39475 curl_cv_func_strtoll="yes"
39476 else
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39478$as_echo "no" >&6; }
39479 curl_cv_func_strtoll="no"
39480 fi
39481
39482
39483curl_includes_sys_uio="\
39484/* includes start */
39485#ifdef HAVE_SYS_TYPES_H
39486# include <sys/types.h>
39487#endif
39488#ifdef HAVE_SYS_UIO_H
39489# include <sys/uio.h>
39490#endif
39491/* includes end */"
39492 for ac_header in sys/types.h sys/uio.h
39493do :
39494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39496"
39497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39498 cat >>confdefs.h <<_ACEOF
39499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39500_ACEOF
39501
39502fi
39503
39504done
39505
39506
39507
39508 #
39509 tst_links_writev="unknown"
39510 tst_proto_writev="unknown"
39511 tst_compi_writev="unknown"
39512 tst_allow_writev="unknown"
39513 #
39514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39515$as_echo_n "checking if writev can be linked... " >&6; }
39516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39517/* end confdefs.h. */
39518
39519
39520#define writev innocuous_writev
39521#ifdef __STDC__
39522# include <limits.h>
39523#else
39524# include <assert.h>
39525#endif
39526#undef writev
39527#ifdef __cplusplus
39528extern "C"
39529#endif
39530char writev ();
39531#if defined __stub_writev || defined __stub___writev
39532choke me
39533#endif
39534
39535int main (void)
39536{
39537return writev ();
39538 ;
39539 return 0;
39540}
39541
39542_ACEOF
39543if ac_fn_c_try_link "$LINENO"; then :
39544
39545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39546$as_echo "yes" >&6; }
39547 tst_links_writev="yes"
39548
39549else
39550
39551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39552$as_echo "no" >&6; }
39553 tst_links_writev="no"
39554
39555fi
39556rm -f core conftest.err conftest.$ac_objext \
39557 conftest$ac_exeext conftest.$ac_ext
39558 #
39559 if test "$tst_links_writev" = "yes"; then
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39561$as_echo_n "checking if writev is prototyped... " >&6; }
39562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39563/* end confdefs.h. */
39564
39565 $curl_includes_sys_uio
39566
39567_ACEOF
39568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39569 $EGREP "writev" >/dev/null 2>&1; then :
39570
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39572$as_echo "yes" >&6; }
39573 tst_proto_writev="yes"
39574
39575else
39576
39577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39578$as_echo "no" >&6; }
39579 tst_proto_writev="no"
39580
39581fi
39582rm -f conftest*
39583
39584 fi
39585 #
39586 if test "$tst_proto_writev" = "yes"; then
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39588$as_echo_n "checking if writev is compilable... " >&6; }
39589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39590/* end confdefs.h. */
39591
39592
39593 $curl_includes_sys_uio
39594
39595int main (void)
39596{
39597
39598 if(0 != writev(0, 0, 0))
39599 return 1;
39600
39601 ;
39602 return 0;
39603}
39604
39605_ACEOF
39606if ac_fn_c_try_compile "$LINENO"; then :
39607
39608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39609$as_echo "yes" >&6; }
39610 tst_compi_writev="yes"
39611
39612else
39613
39614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39615$as_echo "no" >&6; }
39616 tst_compi_writev="no"
39617
39618fi
39619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39620 fi
39621 #
39622 if test "$tst_compi_writev" = "yes"; then
39623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39624$as_echo_n "checking if writev usage allowed... " >&6; }
39625 if test "x$curl_disallow_writev" != "xyes"; then
39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39627$as_echo "yes" >&6; }
39628 tst_allow_writev="yes"
39629 else
39630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39631$as_echo "no" >&6; }
39632 tst_allow_writev="no"
39633 fi
39634 fi
39635 #
39636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39637$as_echo_n "checking if writev might be used... " >&6; }
39638 if test "$tst_links_writev" = "yes" &&
39639 test "$tst_proto_writev" = "yes" &&
39640 test "$tst_compi_writev" = "yes" &&
39641 test "$tst_allow_writev" = "yes"; then
39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39643$as_echo "yes" >&6; }
39644
39645cat >>confdefs.h <<_ACEOF
39646#define HAVE_WRITEV 1
39647_ACEOF
39648
39649 curl_cv_func_writev="yes"
39650 else
39651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39652$as_echo "no" >&6; }
39653 curl_cv_func_writev="no"
39654 fi
39655
39656
39657case $host in
39658 *msdosdjgpp)
39659 ac_cv_func_pipe=no
39660 skipcheck_pipe=yes
39661 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39662$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39663 ;;
39664esac
39665
39666for ac_func in geteuid \
39667 getpass_r \
39668 getppid \
39669 getpwuid \
39670 getpwuid_r \
39671 getrlimit \
39672 gettimeofday \
39673 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010039674 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039675 pipe \
39676 setlocale \
39677 setmode \
39678 setrlimit \
39679 utime \
39680 utimes
39681
39682do :
39683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39684ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39685if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39686 cat >>confdefs.h <<_ACEOF
39687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39688_ACEOF
39689
39690
39691else
39692
39693 func="$ac_func"
39694 eval skipcheck=\$skipcheck_$func
39695 if test "x$skipcheck" != "xyes"; then
39696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39697$as_echo_n "checking deeper for $func... " >&6; }
39698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39699/* end confdefs.h. */
39700
39701
39702
39703int main (void)
39704{
39705
39706 $func ();
39707
39708 ;
39709 return 0;
39710}
39711
39712_ACEOF
39713if ac_fn_c_try_link "$LINENO"; then :
39714
39715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39716$as_echo "yes" >&6; }
39717 eval "ac_cv_func_$func=yes"
39718
39719cat >>confdefs.h <<_ACEOF
39720#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39721_ACEOF
39722
39723
39724else
39725
39726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39727$as_echo "but still no" >&6; }
39728
39729fi
39730rm -f core conftest.err conftest.$ac_objext \
39731 conftest$ac_exeext conftest.$ac_ext
39732 fi
39733
39734fi
39735done
39736
39737
39738
39739 for ac_header in sys/types.h sys/socket.h netdb.h
39740do :
39741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39744 cat >>confdefs.h <<_ACEOF
39745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39746_ACEOF
39747
39748fi
39749
39750done
39751
39752 #
39753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39754$as_echo_n "checking for getnameinfo... " >&6; }
39755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39756/* end confdefs.h. */
39757
39758
39759#define getnameinfo innocuous_getnameinfo
39760#ifdef __STDC__
39761# include <limits.h>
39762#else
39763# include <assert.h>
39764#endif
39765#undef getnameinfo
39766#ifdef __cplusplus
39767extern "C"
39768#endif
39769char getnameinfo ();
39770#if defined __stub_getnameinfo || defined __stub___getnameinfo
39771choke me
39772#endif
39773
39774int main (void)
39775{
39776return getnameinfo ();
39777 ;
39778 return 0;
39779}
39780
39781_ACEOF
39782if ac_fn_c_try_link "$LINENO"; then :
39783
39784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39785$as_echo "yes" >&6; }
39786 curl_cv_getnameinfo="yes"
39787
39788else
39789
39790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39791$as_echo "no" >&6; }
39792 curl_cv_getnameinfo="no"
39793
39794fi
39795rm -f core conftest.err conftest.$ac_objext \
39796 conftest$ac_exeext conftest.$ac_ext
39797 #
39798 if test "$curl_cv_getnameinfo" != "yes"; then
39799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39800$as_echo_n "checking deeper for getnameinfo... " >&6; }
39801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39802/* end confdefs.h. */
39803
39804
39805
39806int main (void)
39807{
39808
39809 getnameinfo();
39810
39811 ;
39812 return 0;
39813}
39814
39815_ACEOF
39816if ac_fn_c_try_link "$LINENO"; then :
39817
39818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39819$as_echo "yes" >&6; }
39820 curl_cv_getnameinfo="yes"
39821
39822else
39823
39824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39825$as_echo "but still no" >&6; }
39826 curl_cv_getnameinfo="no"
39827
39828fi
39829rm -f core conftest.err conftest.$ac_objext \
39830 conftest$ac_exeext conftest.$ac_ext
39831 fi
39832 #
39833 if test "$curl_cv_getnameinfo" != "yes"; then
39834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39835$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39837/* end confdefs.h. */
39838
39839
39840#undef inline
39841#ifdef HAVE_WINDOWS_H
39842#ifndef WIN32_LEAN_AND_MEAN
39843#define WIN32_LEAN_AND_MEAN
39844#endif
39845#include <windows.h>
39846#ifdef HAVE_WINSOCK2_H
39847#include <winsock2.h>
39848#ifdef HAVE_WS2TCPIP_H
39849#include <ws2tcpip.h>
39850#endif
39851#endif
39852#else
39853#ifdef HAVE_SYS_TYPES_H
39854#include <sys/types.h>
39855#endif
39856#ifdef HAVE_SYS_SOCKET_H
39857#include <sys/socket.h>
39858#endif
39859#ifdef HAVE_NETDB_H
39860#include <netdb.h>
39861#endif
39862#endif
39863
39864int main (void)
39865{
39866
39867 getnameinfo(0, 0, 0, 0, 0, 0, 0);
39868
39869 ;
39870 return 0;
39871}
39872
39873_ACEOF
39874if ac_fn_c_try_link "$LINENO"; then :
39875
39876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39877$as_echo "yes" >&6; }
39878 curl_cv_getnameinfo="yes"
39879
39880else
39881
39882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39883$as_echo "but still no" >&6; }
39884 curl_cv_getnameinfo="no"
39885
39886fi
39887rm -f core conftest.err conftest.$ac_objext \
39888 conftest$ac_exeext conftest.$ac_ext
39889 fi
39890 #
39891 if test "$curl_cv_getnameinfo" = "yes"; then
39892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39893$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39894if ${curl_cv_func_getnameinfo_args+:} false; then :
39895 $as_echo_n "(cached) " >&6
39896else
39897
39898 curl_cv_func_getnameinfo_args="unknown"
39899 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39900 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39901 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39902 for gni_arg7 in 'int' 'unsigned int'; do
39903 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39905/* end confdefs.h. */
39906
39907
39908#undef inline
39909#ifdef HAVE_WINDOWS_H
39910#ifndef WIN32_LEAN_AND_MEAN
39911#define WIN32_LEAN_AND_MEAN
39912#endif
39913#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39914#undef _WIN32_WINNT
39915#define _WIN32_WINNT 0x0501
39916#endif
39917#include <windows.h>
39918#ifdef HAVE_WINSOCK2_H
39919#include <winsock2.h>
39920#ifdef HAVE_WS2TCPIP_H
39921#include <ws2tcpip.h>
39922#endif
39923#endif
39924#define GNICALLCONV WSAAPI
39925#else
39926#ifdef HAVE_SYS_TYPES_H
39927#include <sys/types.h>
39928#endif
39929#ifdef HAVE_SYS_SOCKET_H
39930#include <sys/socket.h>
39931#endif
39932#ifdef HAVE_NETDB_H
39933#include <netdb.h>
39934#endif
39935#define GNICALLCONV
39936#endif
39937 extern int GNICALLCONV
39938#ifdef __ANDROID__
39939__attribute__((overloadable))
39940#endif
39941 getnameinfo($gni_arg1, $gni_arg2,
39942 char *, $gni_arg46,
39943 char *, $gni_arg46,
39944 $gni_arg7);
39945
39946int main (void)
39947{
39948
39949 $gni_arg2 salen=0;
39950 $gni_arg46 hostlen=0;
39951 $gni_arg46 servlen=0;
39952 $gni_arg7 flags=0;
39953 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39954
39955 ;
39956 return 0;
39957}
39958
39959_ACEOF
39960if ac_fn_c_try_compile "$LINENO"; then :
39961
39962 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39963
39964fi
39965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39966 fi
39967 done
39968 done
39969 done
39970 done
39971
39972fi
39973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39974$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39975 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39977$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39979$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39980 else
39981 gni_prev_IFS=$IFS; IFS=','
39982 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39983 IFS=$gni_prev_IFS
39984 shift
39985 #
39986 gni_qual_type_arg1=$1
39987 #
39988
39989cat >>confdefs.h <<_ACEOF
39990#define GETNAMEINFO_TYPE_ARG2 $2
39991_ACEOF
39992
39993
39994cat >>confdefs.h <<_ACEOF
39995#define GETNAMEINFO_TYPE_ARG46 $3
39996_ACEOF
39997
39998
39999cat >>confdefs.h <<_ACEOF
40000#define GETNAMEINFO_TYPE_ARG7 $4
40001_ACEOF
40002
40003 #
40004 prev_sh_opts=$-
40005 #
40006 case $prev_sh_opts in
40007 *f*)
40008 ;;
40009 *)
40010 set -f
40011 ;;
40012 esac
40013 #
40014 case "$gni_qual_type_arg1" in
40015 const*)
40016 gni_qual_arg1=const
40017 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40018 ;;
40019 *)
40020 gni_qual_arg1=
40021 gni_type_arg1=$gni_qual_type_arg1
40022 ;;
40023 esac
40024 #
40025
40026cat >>confdefs.h <<_ACEOF
40027#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40028_ACEOF
40029
40030
40031cat >>confdefs.h <<_ACEOF
40032#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40033_ACEOF
40034
40035 #
40036 case $prev_sh_opts in
40037 *f*)
40038 ;;
40039 *)
40040 set +f
40041 ;;
40042 esac
40043 #
40044
40045cat >>confdefs.h <<_ACEOF
40046#define HAVE_GETNAMEINFO 1
40047_ACEOF
40048
40049 curl_cv_func_getnameinfo="yes"
40050 fi
40051 fi
40052
40053
40054if test "$ipv6" = "yes"; then
40055 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40056
40057$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40058
40059 IPV6_ENABLED=1
40060
40061 fi
40062
40063 for ac_header in stdio.h sys/types.h sys/socket.h \
40064 netdb.h netinet/in.h arpa/inet.h
40065do :
40066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40067ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40069 cat >>confdefs.h <<_ACEOF
40070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40071_ACEOF
40072
40073fi
40074
40075done
40076
40077 #
40078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40079$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40080if ${curl_cv_working_ni_withscopeid+:} false; then :
40081 $as_echo_n "(cached) " >&6
40082else
40083
40084 if test "$cross_compiling" = yes; then :
40085
40086 # Program is not run when cross-compiling. So we assume
40087 # NI_WITHSCOPEID will work if we are able to compile it.
40088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40089/* end confdefs.h. */
40090
40091
40092#include <sys/types.h>
40093#include <sys/socket.h>
40094#include <netdb.h>
40095
40096int main (void)
40097{
40098
40099 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40100
40101 ;
40102 return 0;
40103}
40104
40105_ACEOF
40106if ac_fn_c_try_compile "$LINENO"; then :
40107
40108 curl_cv_working_ni_withscopeid="yes"
40109
40110else
40111
40112 curl_cv_working_ni_withscopeid="no"
40113
40114fi
40115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40116
40117else
40118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40119/* end confdefs.h. */
40120
40121
40122#ifdef HAVE_STDLIB_H
40123#include <stdlib.h>
40124#endif
40125#ifdef HAVE_STDIO_H
40126#include <stdio.h>
40127#endif
40128#ifdef HAVE_SYS_TYPES_H
40129#include <sys/types.h>
40130#endif
40131#ifdef HAVE_SYS_SOCKET_H
40132#include <sys/socket.h>
40133#endif
40134#ifdef HAVE_NETDB_H
40135#include <netdb.h>
40136#endif
40137#ifdef HAVE_NETINET_IN_H
40138#include <netinet/in.h>
40139#endif
40140#ifdef HAVE_ARPA_INET_H
40141#include <arpa/inet.h>
40142#endif
40143
40144int main (void)
40145{
40146
40147#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40148#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40149 struct sockaddr_storage sa;
40150#else
40151 unsigned char sa[256];
40152#endif
40153 char hostbuf[NI_MAXHOST];
40154 int rc;
40155 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40156 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40157 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40158 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40159 if(fd < 0) {
40160 perror("socket()");
40161 return 1; /* Error creating socket */
40162 }
40163 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40164 if(rc) {
40165 perror("getsockname()");
40166 return 2; /* Error retrieving socket name */
40167 }
40168 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40169 if(rc) {
40170 printf("rc = %s\n", gai_strerror(rc));
40171 return 3; /* Error translating socket address */
40172 }
40173 return 0; /* Ok, NI_WITHSCOPEID works */
40174#else
40175 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40176#endif
40177
40178 ;
40179 return 0;
40180} # AC-LANG-PROGRAM
40181
40182_ACEOF
40183if ac_fn_c_try_run "$LINENO"; then :
40184
40185 # Exit code == 0. Program worked.
40186 curl_cv_working_ni_withscopeid="yes"
40187
40188else
40189
40190 # Exit code != 0. Program failed.
40191 curl_cv_working_ni_withscopeid="no"
40192
40193fi
40194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40195 conftest.$ac_objext conftest.beam conftest.$ac_ext
40196fi
40197 # AC-RUN-IFELSE
40198
40199fi
40200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40201$as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40202 case "$curl_cv_working_ni_withscopeid" in
40203 yes)
40204
40205$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40206
40207 ;;
40208 esac
40209
40210fi
40211
40212
40213 #
40214 tst_method="unknown"
40215
40216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40217$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40218 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40219 tst_method="fcntl O_NONBLOCK"
40220 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40221 tst_method="ioctl FIONBIO"
40222 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40223 tst_method="ioctlsocket FIONBIO"
40224 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40225 tst_method="IoctlSocket FIONBIO"
40226 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40227 tst_method="setsockopt SO_NONBLOCK"
40228 fi
40229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40230$as_echo "$tst_method" >&6; }
40231 if test "$tst_method" = "unknown"; then
40232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40233$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40234 fi
40235
40236
40237
40238# Extract the first word of "perl", so it can be a program name with args.
40239set dummy perl; ac_word=$2
40240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40241$as_echo_n "checking for $ac_word... " >&6; }
40242if ${ac_cv_path_PERL+:} false; then :
40243 $as_echo_n "(cached) " >&6
40244else
40245 case $PERL in
40246 [\\/]* | ?:[\\/]*)
40247 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40248 ;;
40249 *)
40250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40251as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40252for as_dir in $as_dummy
40253do
40254 IFS=$as_save_IFS
40255 test -z "$as_dir" && as_dir=.
40256 for ac_exec_ext in '' $ac_executable_extensions; do
40257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40258 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40260 break 2
40261 fi
40262done
40263 done
40264IFS=$as_save_IFS
40265
40266 ;;
40267esac
40268fi
40269PERL=$ac_cv_path_PERL
40270if test -n "$PERL"; then
40271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40272$as_echo "$PERL" >&6; }
40273else
40274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40275$as_echo "no" >&6; }
40276fi
40277
40278
40279
40280
40281for ac_prog in gnroff nroff
40282do
40283 # Extract the first word of "$ac_prog", so it can be a program name with args.
40284set dummy $ac_prog; ac_word=$2
40285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40286$as_echo_n "checking for $ac_word... " >&6; }
40287if ${ac_cv_path_NROFF+:} false; then :
40288 $as_echo_n "(cached) " >&6
40289else
40290 case $NROFF in
40291 [\\/]* | ?:[\\/]*)
40292 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40293 ;;
40294 *)
40295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40296as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40297for as_dir in $as_dummy
40298do
40299 IFS=$as_save_IFS
40300 test -z "$as_dir" && as_dir=.
40301 for ac_exec_ext in '' $ac_executable_extensions; do
40302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40303 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40305 break 2
40306 fi
40307done
40308 done
40309IFS=$as_save_IFS
40310
40311 ;;
40312esac
40313fi
40314NROFF=$ac_cv_path_NROFF
40315if test -n "$NROFF"; then
40316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40317$as_echo "$NROFF" >&6; }
40318else
40319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40320$as_echo "no" >&6; }
40321fi
40322
40323
40324 test -n "$NROFF" && break
40325done
40326
40327
40328
40329if test -n "$NROFF"; then
40330
40331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40332$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40333 MANOPT="-man"
40334 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40335 if test -z "$mancheck"; then
40336 MANOPT="-mandoc"
40337 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40338 if test -z "$mancheck"; then
40339 MANOPT=""
40340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40341$as_echo "failed" >&6; }
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40343$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40344 else
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40346$as_echo "$MANOPT" >&6; }
40347 fi
40348 else
40349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40350$as_echo "$MANOPT" >&6; }
40351 fi
40352
40353fi
40354
40355if test -z "$MANOPT"
40356then
40357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40358$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40359 USE_MANUAL="no";
40360fi
40361
40362
40363if test "$USE_MANUAL" = "1"; then
40364
40365$as_echo "#define USE_MANUAL 1" >>confdefs.h
40366
40367 curl_manual_msg="enabled"
40368fi
40369
40370 if test x"$USE_MANUAL" = x1; then
40371 USE_MANUAL_TRUE=
40372 USE_MANUAL_FALSE='#'
40373else
40374 USE_MANUAL_TRUE='#'
40375 USE_MANUAL_FALSE=
40376fi
40377
40378
40379
40380
40381
40382 #
40383 if test "$want_ares" = "yes"; then
40384 clean_CPPFLAGS="$CPPFLAGS"
40385 clean_LDFLAGS="$LDFLAGS"
40386 clean_LIBS="$LIBS"
40387 embedded_ares="unknown"
40388 configure_runpath=`pwd`
40389 embedded_ares_builddir="$configure_runpath/ares"
40390 if test -n "$want_ares_path"; then
40391 ares_CPPFLAGS="-I$want_ares_path/include"
40392 ares_LDFLAGS="-L$want_ares_path/lib"
40393 ares_LIBS="-lcares"
40394 else
40395 if test -d "$srcdir/ares"; then
40396 embedded_ares="yes"
40397 subdirs="$subdirs ares"
40398
40399 ares_CPPFLAGS=""
40400 ares_LDFLAGS="-L$embedded_ares_builddir"
40401 ares_LIBS="-lcares"
40402 else
40403 ares_CPPFLAGS=""
40404 ares_LDFLAGS=""
40405 ares_LIBS="-lcares"
40406 fi
40407 fi
40408 #
40409 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40410 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40411 LIBS="$ares_LIBS $clean_LIBS"
40412 #
40413 if test "$embedded_ares" != "yes"; then
40414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40415$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40417/* end confdefs.h. */
40418
40419
40420#include <ares.h>
40421 /* set of dummy functions in case c-ares was built with debug */
40422 void curl_dofree() { }
40423 void curl_sclose() { }
40424 void curl_domalloc() { }
40425 void curl_docalloc() { }
40426 void curl_socket() { }
40427
40428int main (void)
40429{
40430
40431 ares_channel channel;
40432 ares_cancel(channel); /* added in 1.2.0 */
40433 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40434 ares_dup(&channel, channel); /* added in 1.6.0 */
40435
40436 ;
40437 return 0;
40438}
40439
40440_ACEOF
40441if ac_fn_c_try_link "$LINENO"; then :
40442
40443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40444$as_echo "yes" >&6; }
40445
40446else
40447
40448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40449$as_echo "no" >&6; }
40450 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40451 CPPFLAGS="$clean_CPPFLAGS"
40452 LDFLAGS="$clean_LDFLAGS"
40453 LIBS="$clean_LIBS"
40454 # prevent usage
40455 want_ares="no"
40456
40457fi
40458rm -f core conftest.err conftest.$ac_objext \
40459 conftest$ac_exeext conftest.$ac_ext
40460 fi
40461 if test "$want_ares" = "yes"; then
40462
40463$as_echo "#define USE_ARES 1" >>confdefs.h
40464
40465 USE_ARES=1
40466
40467 curl_res_msg="c-ares"
40468 fi
40469 fi
40470
40471 if test x$embedded_ares = xyes; then
40472 USE_EMBEDDED_ARES_TRUE=
40473 USE_EMBEDDED_ARES_FALSE='#'
40474else
40475 USE_EMBEDDED_ARES_TRUE='#'
40476 USE_EMBEDDED_ARES_FALSE=
40477fi
40478
40479
40480if test "x$curl_cv_native_windows" != "xyes" &&
40481 test "x$enable_shared" = "xyes"; then
40482 build_libhostname=yes
40483else
40484 build_libhostname=no
40485fi
40486 if test x$build_libhostname = xyes; then
40487 BUILD_LIBHOSTNAME_TRUE=
40488 BUILD_LIBHOSTNAME_FALSE='#'
40489else
40490 BUILD_LIBHOSTNAME_TRUE='#'
40491 BUILD_LIBHOSTNAME_FALSE=
40492fi
40493
40494
40495if test "x$want_ares" != xyes; then
40496
40497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40498$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40499 OPT_THRES="default"
40500 # Check whether --enable-threaded_resolver was given.
40501if test "${enable_threaded_resolver+set}" = set; then :
40502 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40503fi
40504
40505 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040506 no)
40507 want_thres="no"
40508 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040509 *)
40510 want_thres="yes"
40511 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040512 esac
40513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40514$as_echo "$want_thres" >&6; }
40515
40516fi
40517
40518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40519$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40520# Check whether --enable-pthreads was given.
40521if test "${enable_pthreads+set}" = set; then :
40522 enableval=$enable_pthreads; case "$enableval" in
40523 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40524$as_echo "no" >&6; }
40525 want_pthreads=no
40526 ;;
40527 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40528$as_echo "yes" >&6; }
40529 want_pthreads=yes
40530 ;;
40531 esac
40532else
40533
40534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40535$as_echo "auto" >&6; }
40536 want_pthreads=auto
40537
40538
40539fi
40540
40541
40542if test "$want_pthreads" != "no"; then
40543 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40544 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40545 fi
40546 if test "$dontwant_rt" != "no"; then
40547 if test "$want_pthreads" = "yes"; then
40548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40549$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40550 fi
40551 want_pthreads=no
40552 fi
40553fi
40554
40555if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40556 want_pthreads=no
40557fi
40558
40559if test "$want_pthreads" != "no"; then
40560 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40561if test "x$ac_cv_header_pthread_h" = xyes; then :
40562
40563$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40564
40565 save_CFLAGS="$CFLAGS"
40566
40567 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40568if test "x$ac_cv_func_pthread_create" = xyes; then :
40569 USE_THREADS_POSIX=1
40570fi
40571
40572
40573 if test "$USE_THREADS_POSIX" != "1"
40574 then
40575 CFLAGS="$CFLAGS -pthread"
40576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40577$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40578if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40579 $as_echo_n "(cached) " >&6
40580else
40581 ac_check_lib_save_LIBS=$LIBS
40582LIBS="-lpthread $LIBS"
40583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40584/* end confdefs.h. */
40585
40586
40587#ifdef __cplusplus
40588extern "C"
40589#endif
40590char pthread_create ();
40591int main (void)
40592{
40593return pthread_create ();
40594 ;
40595 return 0;
40596}
40597_ACEOF
40598if ac_fn_c_try_link "$LINENO"; then :
40599 ac_cv_lib_pthread_pthread_create=yes
40600else
40601 ac_cv_lib_pthread_pthread_create=no
40602fi
40603rm -f core conftest.err conftest.$ac_objext \
40604 conftest$ac_exeext conftest.$ac_ext
40605LIBS=$ac_check_lib_save_LIBS
40606fi
40607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40608$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40609if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40610 USE_THREADS_POSIX=1
40611else
40612 CFLAGS="$save_CFLAGS"
40613fi
40614
40615 fi
40616
40617 if test "x$USE_THREADS_POSIX" = "x1"
40618 then
40619
40620$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40621
40622 curl_res_msg="POSIX threaded"
40623 fi
40624
40625fi
40626
40627
40628fi
40629
40630if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40631 if test "$want_pthreads" = "yes"; then
40632 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40633 fi
40634 if test "$curl_cv_native_windows" = "yes"; then
40635 USE_THREADS_WIN32=1
40636
40637$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40638
40639 curl_res_msg="Win32 threaded"
40640 else
40641 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40642 fi
40643fi
40644
40645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40646$as_echo_n "checking whether to enable verbose strings... " >&6; }
40647# Check whether --enable-verbose was given.
40648if test "${enable_verbose+set}" = set; then :
40649 enableval=$enable_verbose; case "$enableval" in
40650 no)
40651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40652$as_echo "no" >&6; }
40653
40654$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40655
40656 curl_verbose_msg="no"
40657 ;;
40658 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40659$as_echo "yes" >&6; }
40660 ;;
40661 esac
40662else
40663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40664$as_echo "yes" >&6; }
40665
40666fi
40667
40668
40669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40670$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40671# Check whether --enable-sspi was given.
40672if test "${enable_sspi+set}" = set; then :
40673 enableval=$enable_sspi; case "$enableval" in
40674 yes)
40675 if test "$curl_cv_native_windows" = "yes"; then
40676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40677$as_echo "yes" >&6; }
40678
40679$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40680
40681 USE_WINDOWS_SSPI=1
40682
40683 curl_sspi_msg="enabled"
40684 else
40685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40686$as_echo "no" >&6; }
40687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40688$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40689 fi
40690 ;;
40691 *)
40692 if test "x$WINSSL_ENABLED" = "x1"; then
40693 # --with-winssl implies --enable-sspi
40694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40695$as_echo "yes" >&6; }
40696 else
40697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40698$as_echo "no" >&6; }
40699 fi
40700 ;;
40701 esac
40702else
40703 if test "x$WINSSL_ENABLED" = "x1"; then
40704 # --with-winssl implies --enable-sspi
40705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40706$as_echo "yes" >&6; }
40707 else
40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709$as_echo "no" >&6; }
40710 fi
40711
40712fi
40713
40714
40715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40716$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40717# Check whether --enable-crypto-auth was given.
40718if test "${enable_crypto_auth+set}" = set; then :
40719 enableval=$enable_crypto_auth; case "$enableval" in
40720 no)
40721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40722$as_echo "no" >&6; }
40723
40724$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40725
40726 CURL_DISABLE_CRYPTO_AUTH=1
40727 ;;
40728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40729$as_echo "yes" >&6; }
40730 ;;
40731 esac
40732else
40733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40734$as_echo "yes" >&6; }
40735
40736fi
40737
40738
40739
40740 OPT_NTLM_WB="default"
40741 # Check whether --enable-ntlm-wb was given.
40742if test "${enable_ntlm_wb+set}" = set; then :
40743 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40744fi
40745
40746 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40747 case "$OPT_NTLM_WB" in
40748 no)
40749 want_ntlm_wb="no"
40750 ;;
40751 default)
40752 want_ntlm_wb="yes"
40753 ;;
40754 *)
40755 want_ntlm_wb="yes"
40756 if test -n "$enableval" && test "$enableval" != "yes"; then
40757 want_ntlm_wb_file="$enableval"
40758 fi
40759 ;;
40760 esac
40761
40762
40763
40764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40765$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40766 if test "$curl_cv_native_windows" = "yes" ||
40767 test "x$SSL_ENABLED" = "x"; then
40768 want_ntlm_wb_file=""
40769 want_ntlm_wb="no"
40770 fi
40771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40772$as_echo "$want_ntlm_wb" >&6; }
40773 if test "$want_ntlm_wb" = "yes"; then
40774
40775$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40776
40777
40778cat >>confdefs.h <<_ACEOF
40779#define NTLM_WB_FILE "$want_ntlm_wb_file"
40780_ACEOF
40781
40782 NTLM_WB_ENABLED=1
40783 fi
40784
40785
40786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40787$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40788# Check whether --enable-tls-srp was given.
40789if test "${enable_tls_srp+set}" = set; then :
40790 enableval=$enable_tls_srp; case "$enableval" in
40791 no)
40792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40793$as_echo "no" >&6; }
40794
40795$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40796
40797 want_tls_srp=no
40798 ;;
40799 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40800$as_echo "yes" >&6; }
40801 want_tls_srp=yes
40802 ;;
40803 esac
40804else
40805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40806$as_echo "yes" >&6; }
40807 want_tls_srp=yes
40808
40809fi
40810
40811
40812if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40813
40814$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40815
40816 USE_TLS_SRP=1
40817 curl_tls_srp_msg="enabled"
40818fi
40819
40820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40821$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40822# Check whether --enable-unix-sockets was given.
40823if test "${enable_unix_sockets+set}" = set; then :
40824 enableval=$enable_unix_sockets; case "$enableval" in
40825 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40826$as_echo "no" >&6; }
40827 want_unix_sockets=no
40828 ;;
40829 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40830$as_echo "yes" >&6; }
40831 want_unix_sockets=yes
40832 ;;
40833 esac
40834else
40835
40836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40837$as_echo "auto" >&6; }
40838 want_unix_sockets=auto
40839
40840
40841fi
40842
40843if test "x$want_unix_sockets" != "xno"; then
40844 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40845 #include <sys/un.h>
40846
40847"
40848if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40849
40850
40851$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40852
40853 USE_UNIX_SOCKETS=1
40854
40855 curl_unix_sockets_msg="enabled"
40856
40857else
40858
40859 if test "x$want_unix_sockets" = "xyes"; then
40860 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40861 fi
40862
40863fi
40864
40865fi
40866
40867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40868$as_echo_n "checking whether to enable support for cookies... " >&6; }
40869# Check whether --enable-cookies was given.
40870if test "${enable_cookies+set}" = set; then :
40871 enableval=$enable_cookies; case "$enableval" in
40872 no)
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40874$as_echo "no" >&6; }
40875
40876$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40877
40878 ;;
40879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40880$as_echo "yes" >&6; }
40881 ;;
40882 esac
40883else
40884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40885$as_echo "yes" >&6; }
40886
40887fi
40888
40889
40890
40891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40892$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40893 CFLAG_CURL_SYMBOL_HIDING=""
40894 doing_symbol_hiding="no"
40895 if test x"$curl_cv_native_windows" != "xyes" &&
40896 test "$want_symbol_hiding" = "yes" &&
40897 test "$supports_symbol_hiding" = "yes"; then
40898 doing_symbol_hiding="yes"
40899 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40900
40901cat >>confdefs.h <<_ACEOF
40902#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40903_ACEOF
40904
40905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40906$as_echo "yes" >&6; }
40907 else
40908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40909$as_echo "no" >&6; }
40910 fi
40911 if test x$doing_symbol_hiding = xyes; then
40912 DOING_CURL_SYMBOL_HIDING_TRUE=
40913 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40914else
40915 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40916 DOING_CURL_SYMBOL_HIDING_FALSE=
40917fi
40918
40919
40920
40921
Elliott Hughes82be86d2017-09-20 17:00:17 -070040922LIBCURL_LIBS=$LIBS
40923
40924
40925
40926
40927
40928BLANK_AT_MAKETIME=
40929
40930
40931 if test x$cross_compiling = xyes; then
40932 CROSSCOMPILING_TRUE=
40933 CROSSCOMPILING_FALSE='#'
40934else
40935 CROSSCOMPILING_TRUE='#'
40936 CROSSCOMPILING_FALSE=
40937fi
40938
40939
40940ENABLE_SHARED="$enable_shared"
40941
40942
40943ENABLE_STATIC="$enable_static"
40944
40945
40946
40947
40948if test "x$OPENSSL_ENABLED" = "x1"; then
40949 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40950elif test -n "$SSL_ENABLED"; then
40951 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40952fi
40953if test "x$IPV6_ENABLED" = "x1"; then
40954 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40955fi
40956if test "x$USE_UNIX_SOCKETS" = "x1"; then
40957 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40958fi
40959if test "x$HAVE_LIBZ" = "x1"; then
40960 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40961fi
Alex Deymo486467e2017-12-19 19:04:07 +010040962if test "x$HAVE_BROTLI" = "x1"; then
40963 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
40964fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040965if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40966 -o "x$USE_THREADS_WIN32" = "x1"; then
40967 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40968fi
40969if test "x$IDN_ENABLED" = "x1"; then
40970 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40971fi
40972if test "x$USE_WINDOWS_SSPI" = "x1"; then
40973 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40974fi
40975
40976if test "x$HAVE_GSSAPI" = "x1"; then
40977 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40978fi
40979
40980if test "x$curl_psl_msg" = "xyes"; then
40981 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40982fi
40983
40984if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40985 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40986 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40987fi
40988
40989if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40990 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40991 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40992fi
40993
40994if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40995 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40996 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40997 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40998 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40999
41000 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41001 "x$NTLM_WB_ENABLED" = "x1"; then
41002 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41003 fi
41004 fi
41005fi
41006
41007if test "x$USE_TLS_SRP" = "x1"; then
41008 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41009fi
41010
41011if test "x$USE_NGHTTP2" = "x1"; then
41012 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41013fi
41014
Alex Deymo486467e2017-12-19 19:04:07 +010041015if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41016 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41017fi
41018
Elliott Hughes82be86d2017-09-20 17:00:17 -070041019if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41020 -o "x$NSS_ENABLED" = "x1"; then
41021 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41022fi
41023
41024
41025
41026if test "x$CURL_DISABLE_HTTP" != "x1"; then
41027 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41028 if test "x$SSL_ENABLED" = "x1"; then
41029 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41030 fi
41031fi
41032if test "x$CURL_DISABLE_FTP" != "x1"; then
41033 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41034 if test "x$SSL_ENABLED" = "x1"; then
41035 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41036 fi
41037fi
41038if test "x$CURL_DISABLE_FILE" != "x1"; then
41039 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41040fi
41041if test "x$CURL_DISABLE_TELNET" != "x1"; then
41042 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41043fi
41044if test "x$CURL_DISABLE_LDAP" != "x1"; then
41045 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41046 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41047 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41048 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41049 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41050 fi
41051 fi
41052fi
41053if test "x$CURL_DISABLE_DICT" != "x1"; then
41054 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41055fi
41056if test "x$CURL_DISABLE_TFTP" != "x1"; then
41057 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41058fi
41059if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41060 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41061fi
41062if test "x$CURL_DISABLE_POP3" != "x1"; then
41063 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41064 if test "x$SSL_ENABLED" = "x1"; then
41065 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41066 fi
41067fi
41068if test "x$CURL_DISABLE_IMAP" != "x1"; then
41069 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41070 if test "x$SSL_ENABLED" = "x1"; then
41071 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41072 fi
41073fi
41074if test "x$CURL_DISABLE_SMB" != "x1" \
41075 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41076 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41077 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41078 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41079 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41080 if test "x$SSL_ENABLED" = "x1"; then
41081 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41082 fi
41083fi
41084if test "x$CURL_DISABLE_SMTP" != "x1"; then
41085 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41086 if test "x$SSL_ENABLED" = "x1"; then
41087 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41088 fi
41089fi
41090if test "x$USE_LIBSSH2" = "x1"; then
41091 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41092 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41093fi
41094if test "x$CURL_DISABLE_RTSP" != "x1"; then
41095 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41096fi
41097if test "x$USE_LIBRTMP" = "x1"; then
41098 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41099fi
41100
41101SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41102
41103
41104
41105
41106squeeze CFLAGS
41107squeeze CPPFLAGS
41108squeeze DEFS
41109squeeze LDFLAGS
41110squeeze LIBS
41111
41112squeeze LIBCURL_LIBS
41113squeeze CURL_NETWORK_LIBS
41114squeeze CURL_NETWORK_AND_TIME_LIBS
41115
41116squeeze SUPPORT_FEATURES
41117squeeze SUPPORT_PROTOCOLS
41118
41119
41120
41121 xc_bad_var_libs=no
41122 for xc_word in $LIBS; do
41123 case "$xc_word" in
41124 -l* | --library=*)
41125 :
41126 ;;
41127 *)
41128 xc_bad_var_libs=yes
41129 ;;
41130 esac
41131 done
41132 if test $xc_bad_var_libs = yes; then
41133 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41134$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41135 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41136$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41137 fi
41138
41139
41140 xc_bad_var_ldflags=no
41141 for xc_word in $LDFLAGS; do
41142 case "$xc_word" in
41143 -D*)
41144 xc_bad_var_ldflags=yes
41145 ;;
41146 -U*)
41147 xc_bad_var_ldflags=yes
41148 ;;
41149 -I*)
41150 xc_bad_var_ldflags=yes
41151 ;;
41152 -l* | --library=*)
41153 xc_bad_var_ldflags=yes
41154 ;;
41155 esac
41156 done
41157 if test $xc_bad_var_ldflags = yes; then
41158 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41159$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41160 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41161 for xc_word in $LDFLAGS; do
41162 case "$xc_word" in
41163 -D*)
41164 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41165$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41166 ;;
41167 -U*)
41168 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41169$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41170 ;;
41171 -I*)
41172 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41173$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41174 ;;
41175 -l* | --library=*)
41176 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41177$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41178 ;;
41179 esac
41180 done
41181 fi
41182
41183
41184 xc_bad_var_cppflags=no
41185 for xc_word in $CPPFLAGS; do
41186 case "$xc_word" in
41187 -rpath*)
41188 xc_bad_var_cppflags=yes
41189 ;;
41190 -L* | --library-path=*)
41191 xc_bad_var_cppflags=yes
41192 ;;
41193 -l* | --library=*)
41194 xc_bad_var_cppflags=yes
41195 ;;
41196 esac
41197 done
41198 if test $xc_bad_var_cppflags = yes; then
41199 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41200$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41201 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41202 for xc_word in $CPPFLAGS; do
41203 case "$xc_word" in
41204 -rpath*)
41205 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41206$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41207 ;;
41208 -L* | --library-path=*)
41209 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41210$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41211 ;;
41212 -l* | --library=*)
41213 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41214$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41215 ;;
41216 esac
41217 done
41218 fi
41219
41220
41221 xc_bad_var_cflags=no
41222 for xc_word in $CFLAGS; do
41223 case "$xc_word" in
41224 -D*)
41225 xc_bad_var_cflags=yes
41226 ;;
41227 -U*)
41228 xc_bad_var_cflags=yes
41229 ;;
41230 -I*)
41231 xc_bad_var_cflags=yes
41232 ;;
41233 -rpath*)
41234 xc_bad_var_cflags=yes
41235 ;;
41236 -L* | --library-path=*)
41237 xc_bad_var_cflags=yes
41238 ;;
41239 -l* | --library=*)
41240 xc_bad_var_cflags=yes
41241 ;;
41242 esac
41243 done
41244 if test $xc_bad_var_cflags = yes; then
41245 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41246$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41247 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41248 for xc_word in $CFLAGS; do
41249 case "$xc_word" in
41250 -D*)
41251 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41252$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41253 ;;
41254 -U*)
41255 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41256$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41257 ;;
41258 -I*)
41259 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41260$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41261 ;;
41262 -rpath*)
41263 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41264$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41265 ;;
41266 -L* | --library-path=*)
41267 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41268$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41269 ;;
41270 -l* | --library=*)
41271 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41272$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41273 ;;
41274 esac
41275 done
41276 fi
41277
41278 if test $xc_bad_var_libs = yes ||
41279 test $xc_bad_var_cflags = yes ||
41280 test $xc_bad_var_ldflags = yes ||
41281 test $xc_bad_var_cppflags = yes; then
41282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41283$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41284 fi
41285
41286
41287if test "x$want_curldebug_assumed" = "xyes" &&
41288 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41289 ac_configure_args="$ac_configure_args --enable-curldebug"
41290fi
41291
Alex Deymo486467e2017-12-19 19:04:07 +010041292ac_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 -070041293
41294cat >confcache <<\_ACEOF
41295# This file is a shell script that caches the results of configure
41296# tests run on this system so they can be shared between configure
41297# scripts and configure runs, see configure's option --config-cache.
41298# It is not useful on other systems. If it contains results you don't
41299# want to keep, you may remove or edit it.
41300#
41301# config.status only pays attention to the cache file if you give it
41302# the --recheck option to rerun configure.
41303#
41304# `ac_cv_env_foo' variables (set or unset) will be overridden when
41305# loading this file, other *unset* `ac_cv_foo' will be assigned the
41306# following values.
41307
41308_ACEOF
41309
41310# The following way of writing the cache mishandles newlines in values,
41311# but we know of no workaround that is simple, portable, and efficient.
41312# So, we kill variables containing newlines.
41313# Ultrix sh set writes to stderr and can't be redirected directly,
41314# and sets the high bit in the cache file unless we assign to the vars.
41315(
41316 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41317 eval ac_val=\$$ac_var
41318 case $ac_val in #(
41319 *${as_nl}*)
41320 case $ac_var in #(
41321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41323 esac
41324 case $ac_var in #(
41325 _ | IFS | as_nl) ;; #(
41326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41327 *) { eval $ac_var=; unset $ac_var;} ;;
41328 esac ;;
41329 esac
41330 done
41331
41332 (set) 2>&1 |
41333 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41334 *${as_nl}ac_space=\ *)
41335 # `set' does not quote correctly, so add quotes: double-quote
41336 # substitution turns \\\\ into \\, and sed turns \\ into \.
41337 sed -n \
41338 "s/'/'\\\\''/g;
41339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41340 ;; #(
41341 *)
41342 # `set' quotes correctly as required by POSIX, so do not add quotes.
41343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41344 ;;
41345 esac |
41346 sort
41347) |
41348 sed '
41349 /^ac_cv_env_/b end
41350 t clear
41351 :clear
41352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41353 t end
41354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41355 :end' >>confcache
41356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41357 if test -w "$cache_file"; then
41358 if test "x$cache_file" != "x/dev/null"; then
41359 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41360$as_echo "$as_me: updating cache $cache_file" >&6;}
41361 if test ! -f "$cache_file" || test -h "$cache_file"; then
41362 cat confcache >"$cache_file"
41363 else
41364 case $cache_file in #(
41365 */* | ?:*)
41366 mv -f confcache "$cache_file"$$ &&
41367 mv -f "$cache_file"$$ "$cache_file" ;; #(
41368 *)
41369 mv -f confcache "$cache_file" ;;
41370 esac
41371 fi
41372 fi
41373 else
41374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41375$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41376 fi
41377fi
41378rm -f confcache
41379
41380test "x$prefix" = xNONE && prefix=$ac_default_prefix
41381# Let make expand exec_prefix.
41382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41383
41384DEFS=-DHAVE_CONFIG_H
41385
41386ac_libobjs=
41387ac_ltlibobjs=
41388U=
41389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41390 # 1. Remove the extension, and $U if already installed.
41391 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41392 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41394 # will be set to the directory where LIBOBJS objects are built.
41395 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41396 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41397done
41398LIBOBJS=$ac_libobjs
41399
41400LTLIBOBJS=$ac_ltlibobjs
41401
41402
41403if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41404 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41405Usually this means the macro was only invoked conditionally." "$LINENO" 5
41406fi
41407if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41408 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41409Usually this means the macro was only invoked conditionally." "$LINENO" 5
41410fi
41411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41412$as_echo_n "checking that generated files are newer than configure... " >&6; }
41413 if test -n "$am_sleep_pid"; then
41414 # Hide warnings about reused PIDs.
41415 wait $am_sleep_pid 2>/dev/null
41416 fi
41417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41418$as_echo "done" >&6; }
41419if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41420 as_fn_error $? "conditional \"AMDEP\" was never defined.
41421Usually this means the macro was only invoked conditionally." "$LINENO" 5
41422fi
41423if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41424 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41425Usually this means the macro was only invoked conditionally." "$LINENO" 5
41426fi
41427 if test -n "$EXEEXT"; then
41428 am__EXEEXT_TRUE=
41429 am__EXEEXT_FALSE='#'
41430else
41431 am__EXEEXT_TRUE='#'
41432 am__EXEEXT_FALSE=
41433fi
41434
41435if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41436 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41437Usually this means the macro was only invoked conditionally." "$LINENO" 5
41438fi
41439if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41440 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41441Usually this means the macro was only invoked conditionally." "$LINENO" 5
41442fi
41443if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41444 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41445Usually this means the macro was only invoked conditionally." "$LINENO" 5
41446fi
41447if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41448 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41449Usually this means the macro was only invoked conditionally." "$LINENO" 5
41450fi
41451if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41452 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41453Usually this means the macro was only invoked conditionally." "$LINENO" 5
41454fi
41455if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41456 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41457Usually this means the macro was only invoked conditionally." "$LINENO" 5
41458fi
41459if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41460 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41461Usually this means the macro was only invoked conditionally." "$LINENO" 5
41462fi
41463if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41464 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41465Usually this means the macro was only invoked conditionally." "$LINENO" 5
41466fi
41467if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41468 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41469Usually this means the macro was only invoked conditionally." "$LINENO" 5
41470fi
Alex Deymo486467e2017-12-19 19:04:07 +010041471if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41472 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41473Usually this means the macro was only invoked conditionally." "$LINENO" 5
41474fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041475if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41476 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41477Usually this means the macro was only invoked conditionally." "$LINENO" 5
41478fi
41479if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41480 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41481Usually this means the macro was only invoked conditionally." "$LINENO" 5
41482fi
41483if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41484 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41485Usually this means the macro was only invoked conditionally." "$LINENO" 5
41486fi
41487if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41488 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41489Usually this means the macro was only invoked conditionally." "$LINENO" 5
41490fi
41491if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41492 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41493Usually this means the macro was only invoked conditionally." "$LINENO" 5
41494fi
41495if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41496 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41497Usually this means the macro was only invoked conditionally." "$LINENO" 5
41498fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041499if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41500 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41501Usually this means the macro was only invoked conditionally." "$LINENO" 5
41502fi
41503
41504: "${CONFIG_STATUS=./config.status}"
41505ac_write_fail=0
41506ac_clean_files_save=$ac_clean_files
41507ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41508{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41509$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41510as_write_fail=0
41511cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41512#! $SHELL
41513# Generated by $as_me.
41514# Run this file to recreate the current configuration.
41515# Compiler output produced by configure, useful for debugging
41516# configure, is in config.log if it exists.
41517
41518debug=false
41519ac_cs_recheck=false
41520ac_cs_silent=false
41521
41522SHELL=\${CONFIG_SHELL-$SHELL}
41523export SHELL
41524_ASEOF
41525cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41526## -------------------- ##
41527## M4sh Initialization. ##
41528## -------------------- ##
41529
41530# Be more Bourne compatible
41531DUALCASE=1; export DUALCASE # for MKS sh
41532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41533 emulate sh
41534 NULLCMD=:
41535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41536 # is contrary to our usage. Disable this feature.
41537 alias -g '${1+"$@"}'='"$@"'
41538 setopt NO_GLOB_SUBST
41539else
41540 case `(set -o) 2>/dev/null` in #(
41541 *posix*) :
41542 set -o posix ;; #(
41543 *) :
41544 ;;
41545esac
41546fi
41547
41548
41549as_nl='
41550'
41551export as_nl
41552# Printing a long string crashes Solaris 7 /usr/bin/printf.
41553as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41554as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41555as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41556# Prefer a ksh shell builtin over an external printf program on Solaris,
41557# but without wasting forks for bash or zsh.
41558if test -z "$BASH_VERSION$ZSH_VERSION" \
41559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41560 as_echo='print -r --'
41561 as_echo_n='print -rn --'
41562elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41563 as_echo='printf %s\n'
41564 as_echo_n='printf %s'
41565else
41566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41568 as_echo_n='/usr/ucb/echo -n'
41569 else
41570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41571 as_echo_n_body='eval
41572 arg=$1;
41573 case $arg in #(
41574 *"$as_nl"*)
41575 expr "X$arg" : "X\\(.*\\)$as_nl";
41576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41577 esac;
41578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41579 '
41580 export as_echo_n_body
41581 as_echo_n='sh -c $as_echo_n_body as_echo'
41582 fi
41583 export as_echo_body
41584 as_echo='sh -c $as_echo_body as_echo'
41585fi
41586
41587
41588
41589# IFS
41590# We need space, tab and new line, in precisely that order. Quoting is
41591# there to prevent editors from complaining about space-tab.
41592# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41593# splitting by setting IFS to empty value.)
41594IFS=" "" $as_nl"
41595
41596# Find who we are. Look in the path if we contain no directory separator.
41597as_myself=
41598case $0 in #((
41599 *[\\/]* ) as_myself=$0 ;;
41600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41601for as_dir in $PATH
41602do
41603 IFS=$as_save_IFS
41604 test -z "$as_dir" && as_dir=.
41605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41606 done
41607IFS=$as_save_IFS
41608
41609 ;;
41610esac
41611# We did not find ourselves, most probably we were run as `sh COMMAND'
41612# in which case we are not to be found in the path.
41613if test "x$as_myself" = x; then
41614 as_myself=$0
41615fi
41616if test ! -f "$as_myself"; then
41617 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41618 exit 1
41619fi
41620
41621# Unset variables that we do not need and which cause bugs (e.g. in
41622# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41623# suppresses any "Segmentation fault" message there. '((' could
41624# trigger a bug in pdksh 5.2.14.
41625for as_var in BASH_ENV ENV MAIL MAILPATH
41626do eval test x\${$as_var+set} = xset \
41627 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41628done
41629PS1='$ '
41630PS2='> '
41631PS4='+ '
41632
41633# NLS nuisances.
41634LC_ALL=C
41635export LC_ALL
41636LANGUAGE=C
41637export LANGUAGE
41638
41639# CDPATH.
41640(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41641
41642
41643# as_fn_error STATUS ERROR [LINENO LOG_FD]
41644# ----------------------------------------
41645# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41646# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41647# script with STATUS, using 1 if that was 0.
41648as_fn_error ()
41649{
41650 as_status=$1; test $as_status -eq 0 && as_status=1
41651 if test "$4"; then
41652 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41653 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41654 fi
41655 $as_echo "$as_me: error: $2" >&2
41656 as_fn_exit $as_status
41657} # as_fn_error
41658
41659
41660# as_fn_set_status STATUS
41661# -----------------------
41662# Set $? to STATUS, without forking.
41663as_fn_set_status ()
41664{
41665 return $1
41666} # as_fn_set_status
41667
41668# as_fn_exit STATUS
41669# -----------------
41670# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41671as_fn_exit ()
41672{
41673 set +e
41674 as_fn_set_status $1
41675 exit $1
41676} # as_fn_exit
41677
41678# as_fn_unset VAR
41679# ---------------
41680# Portably unset VAR.
41681as_fn_unset ()
41682{
41683 { eval $1=; unset $1;}
41684}
41685as_unset=as_fn_unset
41686# as_fn_append VAR VALUE
41687# ----------------------
41688# Append the text in VALUE to the end of the definition contained in VAR. Take
41689# advantage of any shell optimizations that allow amortized linear growth over
41690# repeated appends, instead of the typical quadratic growth present in naive
41691# implementations.
41692if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41693 eval 'as_fn_append ()
41694 {
41695 eval $1+=\$2
41696 }'
41697else
41698 as_fn_append ()
41699 {
41700 eval $1=\$$1\$2
41701 }
41702fi # as_fn_append
41703
41704# as_fn_arith ARG...
41705# ------------------
41706# Perform arithmetic evaluation on the ARGs, and store the result in the
41707# global $as_val. Take advantage of shells that can avoid forks. The arguments
41708# must be portable across $(()) and expr.
41709if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41710 eval 'as_fn_arith ()
41711 {
41712 as_val=$(( $* ))
41713 }'
41714else
41715 as_fn_arith ()
41716 {
41717 as_val=`expr "$@" || test $? -eq 1`
41718 }
41719fi # as_fn_arith
41720
41721
41722if expr a : '\(a\)' >/dev/null 2>&1 &&
41723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41724 as_expr=expr
41725else
41726 as_expr=false
41727fi
41728
41729if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41730 as_basename=basename
41731else
41732 as_basename=false
41733fi
41734
41735if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41736 as_dirname=dirname
41737else
41738 as_dirname=false
41739fi
41740
41741as_me=`$as_basename -- "$0" ||
41742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41743 X"$0" : 'X\(//\)$' \| \
41744 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41745$as_echo X/"$0" |
41746 sed '/^.*\/\([^/][^/]*\)\/*$/{
41747 s//\1/
41748 q
41749 }
41750 /^X\/\(\/\/\)$/{
41751 s//\1/
41752 q
41753 }
41754 /^X\/\(\/\).*/{
41755 s//\1/
41756 q
41757 }
41758 s/.*/./; q'`
41759
41760# Avoid depending upon Character Ranges.
41761as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41762as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41763as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41764as_cr_digits='0123456789'
41765as_cr_alnum=$as_cr_Letters$as_cr_digits
41766
41767ECHO_C= ECHO_N= ECHO_T=
41768case `echo -n x` in #(((((
41769-n*)
41770 case `echo 'xy\c'` in
41771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41772 xy) ECHO_C='\c';;
41773 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41774 ECHO_T=' ';;
41775 esac;;
41776*)
41777 ECHO_N='-n';;
41778esac
41779
41780rm -f conf$$ conf$$.exe conf$$.file
41781if test -d conf$$.dir; then
41782 rm -f conf$$.dir/conf$$.file
41783else
41784 rm -f conf$$.dir
41785 mkdir conf$$.dir 2>/dev/null
41786fi
41787if (echo >conf$$.file) 2>/dev/null; then
41788 if ln -s conf$$.file conf$$ 2>/dev/null; then
41789 as_ln_s='ln -s'
41790 # ... but there are two gotchas:
41791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41793 # In both cases, we have to default to `cp -pR'.
41794 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41795 as_ln_s='cp -pR'
41796 elif ln conf$$.file conf$$ 2>/dev/null; then
41797 as_ln_s=ln
41798 else
41799 as_ln_s='cp -pR'
41800 fi
41801else
41802 as_ln_s='cp -pR'
41803fi
41804rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41805rmdir conf$$.dir 2>/dev/null
41806
41807
41808# as_fn_mkdir_p
41809# -------------
41810# Create "$as_dir" as a directory, including parents if necessary.
41811as_fn_mkdir_p ()
41812{
41813
41814 case $as_dir in #(
41815 -*) as_dir=./$as_dir;;
41816 esac
41817 test -d "$as_dir" || eval $as_mkdir_p || {
41818 as_dirs=
41819 while :; do
41820 case $as_dir in #(
41821 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41822 *) as_qdir=$as_dir;;
41823 esac
41824 as_dirs="'$as_qdir' $as_dirs"
41825 as_dir=`$as_dirname -- "$as_dir" ||
41826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41827 X"$as_dir" : 'X\(//\)[^/]' \| \
41828 X"$as_dir" : 'X\(//\)$' \| \
41829 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41830$as_echo X"$as_dir" |
41831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41832 s//\1/
41833 q
41834 }
41835 /^X\(\/\/\)[^/].*/{
41836 s//\1/
41837 q
41838 }
41839 /^X\(\/\/\)$/{
41840 s//\1/
41841 q
41842 }
41843 /^X\(\/\).*/{
41844 s//\1/
41845 q
41846 }
41847 s/.*/./; q'`
41848 test -d "$as_dir" && break
41849 done
41850 test -z "$as_dirs" || eval "mkdir $as_dirs"
41851 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41852
41853
41854} # as_fn_mkdir_p
41855if mkdir -p . 2>/dev/null; then
41856 as_mkdir_p='mkdir -p "$as_dir"'
41857else
41858 test -d ./-p && rmdir ./-p
41859 as_mkdir_p=false
41860fi
41861
41862
41863# as_fn_executable_p FILE
41864# -----------------------
41865# Test if FILE is an executable regular file.
41866as_fn_executable_p ()
41867{
41868 test -f "$1" && test -x "$1"
41869} # as_fn_executable_p
41870as_test_x='test -x'
41871as_executable_p=as_fn_executable_p
41872
41873# Sed expression to map a string onto a valid CPP name.
41874as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41875
41876# Sed expression to map a string onto a valid variable name.
41877as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41878
41879
41880exec 6>&1
41881## ----------------------------------- ##
41882## Main body of $CONFIG_STATUS script. ##
41883## ----------------------------------- ##
41884_ASEOF
41885test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41886
41887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41888# Save the log message, to keep $0 and so on meaningful, and to
41889# report actual input values of CONFIG_FILES etc. instead of their
41890# values after options handling.
41891ac_log="
41892This file was extended by curl $as_me -, which was
41893generated by GNU Autoconf 2.69. Invocation command line was
41894
41895 CONFIG_FILES = $CONFIG_FILES
41896 CONFIG_HEADERS = $CONFIG_HEADERS
41897 CONFIG_LINKS = $CONFIG_LINKS
41898 CONFIG_COMMANDS = $CONFIG_COMMANDS
41899 $ $0 $@
41900
41901on `(hostname || uname -n) 2>/dev/null | sed 1q`
41902"
41903
41904_ACEOF
41905
41906case $ac_config_files in *"
41907"*) set x $ac_config_files; shift; ac_config_files=$*;;
41908esac
41909
41910case $ac_config_headers in *"
41911"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41912esac
41913
41914
41915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41916# Files that config.status was made for.
41917config_files="$ac_config_files"
41918config_headers="$ac_config_headers"
41919config_commands="$ac_config_commands"
41920
41921_ACEOF
41922
41923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41924ac_cs_usage="\
41925\`$as_me' instantiates files and other configuration actions
41926from templates according to the current configuration. Unless the files
41927and actions are specified as TAGs, all are instantiated by default.
41928
41929Usage: $0 [OPTION]... [TAG]...
41930
41931 -h, --help print this help, then exit
41932 -V, --version print version number and configuration settings, then exit
41933 --config print configuration, then exit
41934 -q, --quiet, --silent
41935 do not print progress messages
41936 -d, --debug don't remove temporary files
41937 --recheck update $as_me by reconfiguring in the same conditions
41938 --file=FILE[:TEMPLATE]
41939 instantiate the configuration file FILE
41940 --header=FILE[:TEMPLATE]
41941 instantiate the configuration header FILE
41942
41943Configuration files:
41944$config_files
41945
41946Configuration headers:
41947$config_headers
41948
41949Configuration commands:
41950$config_commands
41951
41952Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41953
41954_ACEOF
41955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41956ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41957ac_cs_version="\\
41958curl config.status -
41959configured by $0, generated by GNU Autoconf 2.69,
41960 with options \\"\$ac_cs_config\\"
41961
41962Copyright (C) 2012 Free Software Foundation, Inc.
41963This config.status script is free software; the Free Software Foundation
41964gives unlimited permission to copy, distribute and modify it."
41965
41966ac_pwd='$ac_pwd'
41967srcdir='$srcdir'
41968INSTALL='$INSTALL'
41969MKDIR_P='$MKDIR_P'
41970AWK='$AWK'
41971test -n "\$AWK" || AWK=awk
41972_ACEOF
41973
41974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41975# The default lists apply if the user does not specify any file.
41976ac_need_defaults=:
41977while test $# != 0
41978do
41979 case $1 in
41980 --*=?*)
41981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41982 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41983 ac_shift=:
41984 ;;
41985 --*=)
41986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41987 ac_optarg=
41988 ac_shift=:
41989 ;;
41990 *)
41991 ac_option=$1
41992 ac_optarg=$2
41993 ac_shift=shift
41994 ;;
41995 esac
41996
41997 case $ac_option in
41998 # Handling of the options.
41999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42000 ac_cs_recheck=: ;;
42001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42002 $as_echo "$ac_cs_version"; exit ;;
42003 --config | --confi | --conf | --con | --co | --c )
42004 $as_echo "$ac_cs_config"; exit ;;
42005 --debug | --debu | --deb | --de | --d | -d )
42006 debug=: ;;
42007 --file | --fil | --fi | --f )
42008 $ac_shift
42009 case $ac_optarg in
42010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42011 '') as_fn_error $? "missing file argument" ;;
42012 esac
42013 as_fn_append CONFIG_FILES " '$ac_optarg'"
42014 ac_need_defaults=false;;
42015 --header | --heade | --head | --hea )
42016 $ac_shift
42017 case $ac_optarg in
42018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42019 esac
42020 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42021 ac_need_defaults=false;;
42022 --he | --h)
42023 # Conflict between --help and --header
42024 as_fn_error $? "ambiguous option: \`$1'
42025Try \`$0 --help' for more information.";;
42026 --help | --hel | -h )
42027 $as_echo "$ac_cs_usage"; exit ;;
42028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42029 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42030 ac_cs_silent=: ;;
42031
42032 # This is an error.
42033 -*) as_fn_error $? "unrecognized option: \`$1'
42034Try \`$0 --help' for more information." ;;
42035
42036 *) as_fn_append ac_config_targets " $1"
42037 ac_need_defaults=false ;;
42038
42039 esac
42040 shift
42041done
42042
42043ac_configure_extra_args=
42044
42045if $ac_cs_silent; then
42046 exec 6>/dev/null
42047 ac_configure_extra_args="$ac_configure_extra_args --silent"
42048fi
42049
42050_ACEOF
42051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42052if \$ac_cs_recheck; then
42053 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42054 shift
42055 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42056 CONFIG_SHELL='$SHELL'
42057 export CONFIG_SHELL
42058 exec "\$@"
42059fi
42060
42061_ACEOF
42062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42063exec 5>>config.log
42064{
42065 echo
42066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42067## Running $as_me. ##
42068_ASBOX
42069 $as_echo "$ac_log"
42070} >&5
42071
42072_ACEOF
42073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42074#
42075# INIT-COMMANDS
42076#
42077AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42078
42079
42080# The HP-UX ksh and POSIX shell print the target directory to stdout
42081# if CDPATH is set.
42082(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42083
42084sed_quote_subst='$sed_quote_subst'
42085double_quote_subst='$double_quote_subst'
42086delay_variable_subst='$delay_variable_subst'
42087macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42088macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42089AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42090DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42091OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42092enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42093enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42094pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42095enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42096shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42097SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42098ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42099PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42100host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42101host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42102host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42103build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42104build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42105build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42106SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42107Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42108GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42109EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42110FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42111LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42112NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42113LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42114max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42115ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42116exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42117lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42118lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42119lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42120lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42121lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42122reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42123reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42124deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42125file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42126file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42127want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42128sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42129AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42130AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42131archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42132STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42133RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42134old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42135old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42136old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42137lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42138CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42139CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42140compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42141GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42142lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42143lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42144lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42145lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42146lt_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"`'
42147lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42148nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42149lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42150lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42151objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42152MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42153lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42154lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42155lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42156lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42157lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42158need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42159MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42160DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42161NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42162LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42163OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42164OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42165libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42166shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42167extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42168archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42169enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42170export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42171whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42172compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42173old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42174old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42175archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42176archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42177module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42178module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42179with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42180allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42181no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42182hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42183hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42184hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42185hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42186hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42187hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42188hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42189inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42190link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42191always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42192export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42193exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42194include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42195prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42196postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42197file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42198variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42199need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42200need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42201version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42202runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42203shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42204shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42205libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42206library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42207soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42208install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42209postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42210postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42211finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42212finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42213hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42214sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42215configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42216configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42217hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42218enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42219enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42220enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42221old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42222striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42223
42224LTCC='$LTCC'
42225LTCFLAGS='$LTCFLAGS'
42226compiler='$compiler_DEFAULT'
42227
42228# A function that is used when there is no print builtin or printf.
42229func_fallback_echo ()
42230{
42231 eval 'cat <<_LTECHO_EOF
42232\$1
42233_LTECHO_EOF'
42234}
42235
42236# Quote evaled strings.
42237for var in AS \
42238DLLTOOL \
42239OBJDUMP \
42240SHELL \
42241ECHO \
42242PATH_SEPARATOR \
42243SED \
42244GREP \
42245EGREP \
42246FGREP \
42247LD \
42248NM \
42249LN_S \
42250lt_SP2NL \
42251lt_NL2SP \
42252reload_flag \
42253deplibs_check_method \
42254file_magic_cmd \
42255file_magic_glob \
42256want_nocaseglob \
42257sharedlib_from_linklib_cmd \
42258AR \
42259AR_FLAGS \
42260archiver_list_spec \
42261STRIP \
42262RANLIB \
42263CC \
42264CFLAGS \
42265compiler \
42266lt_cv_sys_global_symbol_pipe \
42267lt_cv_sys_global_symbol_to_cdecl \
42268lt_cv_sys_global_symbol_to_import \
42269lt_cv_sys_global_symbol_to_c_name_address \
42270lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42271lt_cv_nm_interface \
42272nm_file_list_spec \
42273lt_cv_truncate_bin \
42274lt_prog_compiler_no_builtin_flag \
42275lt_prog_compiler_pic \
42276lt_prog_compiler_wl \
42277lt_prog_compiler_static \
42278lt_cv_prog_compiler_c_o \
42279need_locks \
42280MANIFEST_TOOL \
42281DSYMUTIL \
42282NMEDIT \
42283LIPO \
42284OTOOL \
42285OTOOL64 \
42286shrext_cmds \
42287export_dynamic_flag_spec \
42288whole_archive_flag_spec \
42289compiler_needs_object \
42290with_gnu_ld \
42291allow_undefined_flag \
42292no_undefined_flag \
42293hardcode_libdir_flag_spec \
42294hardcode_libdir_separator \
42295exclude_expsyms \
42296include_expsyms \
42297file_list_spec \
42298variables_saved_for_relink \
42299libname_spec \
42300library_names_spec \
42301soname_spec \
42302install_override_mode \
42303finish_eval \
42304old_striplib \
42305striplib; do
42306 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42307 *[\\\\\\\`\\"\\\$]*)
42308 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42309 ;;
42310 *)
42311 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42312 ;;
42313 esac
42314done
42315
42316# Double-quote double-evaled strings.
42317for var in reload_cmds \
42318old_postinstall_cmds \
42319old_postuninstall_cmds \
42320old_archive_cmds \
42321extract_expsyms_cmds \
42322old_archive_from_new_cmds \
42323old_archive_from_expsyms_cmds \
42324archive_cmds \
42325archive_expsym_cmds \
42326module_cmds \
42327module_expsym_cmds \
42328export_symbols_cmds \
42329prelink_cmds \
42330postlink_cmds \
42331postinstall_cmds \
42332postuninstall_cmds \
42333finish_cmds \
42334sys_lib_search_path_spec \
42335configure_time_dlsearch_path \
42336configure_time_lt_sys_library_path; do
42337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42338 *[\\\\\\\`\\"\\\$]*)
42339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42340 ;;
42341 *)
42342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42343 ;;
42344 esac
42345done
42346
42347ac_aux_dir='$ac_aux_dir'
42348
42349# See if we are running on zsh, and set the options that allow our
42350# commands through without removal of \ escapes INIT.
42351if test -n "\${ZSH_VERSION+set}"; then
42352 setopt NO_GLOB_SUBST
42353fi
42354
42355
42356 PACKAGE='$PACKAGE'
42357 VERSION='$VERSION'
42358 RM='$RM'
42359 ofile='$ofile'
42360
42361
42362
42363
42364_ACEOF
42365
42366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42367
42368# Handling of arguments.
42369for ac_config_target in $ac_config_targets
42370do
42371 case $ac_config_target in
42372 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42373 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42374 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42375 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42376 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42377 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42378 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42379 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42380 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42381 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42382 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42383 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42384 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42385 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42386 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42387 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42388 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42389 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42390 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42391 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42392 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42393 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042394 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42395 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42396 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42397 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42398 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42399 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42400 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42401 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42402 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42403 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42404 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42405 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42406 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42407 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42408 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42409 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42410
42411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42412 esac
42413done
42414
42415
42416# If the user did not use the arguments to specify the items to instantiate,
42417# then the envvar interface is used. Set only those that are not.
42418# We use the long form for the default assignment because of an extremely
42419# bizarre bug on SunOS 4.1.3.
42420if $ac_need_defaults; then
42421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42424fi
42425
42426# Have a temporary directory for convenience. Make it in the build tree
42427# simply because there is no reason against having it here, and in addition,
42428# creating and moving files from /tmp can sometimes cause problems.
42429# Hook for its removal unless debugging.
42430# Note that there is a small window in which the directory will not be cleaned:
42431# after its creation but before its name has been assigned to `$tmp'.
42432$debug ||
42433{
42434 tmp= ac_tmp=
42435 trap 'exit_status=$?
42436 : "${ac_tmp:=$tmp}"
42437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42438' 0
42439 trap 'as_fn_exit 1' 1 2 13 15
42440}
42441# Create a (secure) tmp directory for tmp files.
42442
42443{
42444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42445 test -d "$tmp"
42446} ||
42447{
42448 tmp=./conf$$-$RANDOM
42449 (umask 077 && mkdir "$tmp")
42450} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42451ac_tmp=$tmp
42452
42453# Set up the scripts for CONFIG_FILES section.
42454# No need to generate them if there are no CONFIG_FILES.
42455# This happens for instance with `./config.status config.h'.
42456if test -n "$CONFIG_FILES"; then
42457
42458
42459ac_cr=`echo X | tr X '\015'`
42460# On cygwin, bash can eat \r inside `` if the user requested igncr.
42461# But we know of no other shell where ac_cr would be empty at this
42462# point, so we can use a bashism as a fallback.
42463if test "x$ac_cr" = x; then
42464 eval ac_cr=\$\'\\r\'
42465fi
42466ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42467if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42468 ac_cs_awk_cr='\\r'
42469else
42470 ac_cs_awk_cr=$ac_cr
42471fi
42472
42473echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42474_ACEOF
42475
42476
42477{
42478 echo "cat >conf$$subs.awk <<_ACEOF" &&
42479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42480 echo "_ACEOF"
42481} >conf$$subs.sh ||
42482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42483ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42484ac_delim='%!_!# '
42485for ac_last_try in false false false false false :; do
42486 . ./conf$$subs.sh ||
42487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42488
42489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42490 if test $ac_delim_n = $ac_delim_num; then
42491 break
42492 elif $ac_last_try; then
42493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42494 else
42495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42496 fi
42497done
42498rm -f conf$$subs.sh
42499
42500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42501cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42502_ACEOF
42503sed -n '
42504h
42505s/^/S["/; s/!.*/"]=/
42506p
42507g
42508s/^[^!]*!//
42509:repl
42510t repl
42511s/'"$ac_delim"'$//
42512t delim
42513:nl
42514h
42515s/\(.\{148\}\)..*/\1/
42516t more1
42517s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42518p
42519n
42520b repl
42521:more1
42522s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42523p
42524g
42525s/.\{148\}//
42526t nl
42527:delim
42528h
42529s/\(.\{148\}\)..*/\1/
42530t more2
42531s/["\\]/\\&/g; s/^/"/; s/$/"/
42532p
42533b
42534:more2
42535s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42536p
42537g
42538s/.\{148\}//
42539t delim
42540' <conf$$subs.awk | sed '
42541/^[^""]/{
42542 N
42543 s/\n//
42544}
42545' >>$CONFIG_STATUS || ac_write_fail=1
42546rm -f conf$$subs.awk
42547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42548_ACAWK
42549cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42550 for (key in S) S_is_set[key] = 1
42551 FS = ""
42552
42553}
42554{
42555 line = $ 0
42556 nfields = split(line, field, "@")
42557 substed = 0
42558 len = length(field[1])
42559 for (i = 2; i < nfields; i++) {
42560 key = field[i]
42561 keylen = length(key)
42562 if (S_is_set[key]) {
42563 value = S[key]
42564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42565 len += length(value) + length(field[++i])
42566 substed = 1
42567 } else
42568 len += 1 + keylen
42569 }
42570
42571 print line
42572}
42573
42574_ACAWK
42575_ACEOF
42576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42579else
42580 cat
42581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42583_ACEOF
42584
42585# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42587# trailing colons and then remove the whole line if VPATH becomes empty
42588# (actually we leave an empty line to preserve line numbers).
42589if test "x$srcdir" = x.; then
42590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42591h
42592s///
42593s/^/:/
42594s/[ ]*$/:/
42595s/:\$(srcdir):/:/g
42596s/:\${srcdir}:/:/g
42597s/:@srcdir@:/:/g
42598s/^:*//
42599s/:*$//
42600x
42601s/\(=[ ]*\).*/\1/
42602G
42603s/\n//
42604s/^[^=]*=[ ]*$//
42605}'
42606fi
42607
42608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42609fi # test -n "$CONFIG_FILES"
42610
42611# Set up the scripts for CONFIG_HEADERS section.
42612# No need to generate them if there are no CONFIG_HEADERS.
42613# This happens for instance with `./config.status Makefile'.
42614if test -n "$CONFIG_HEADERS"; then
42615cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42616BEGIN {
42617_ACEOF
42618
42619# Transform confdefs.h into an awk script `defines.awk', embedded as
42620# here-document in config.status, that substitutes the proper values into
42621# config.h.in to produce config.h.
42622
42623# Create a delimiter string that does not exist in confdefs.h, to ease
42624# handling of long lines.
42625ac_delim='%!_!# '
42626for ac_last_try in false false :; do
42627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42628 if test -z "$ac_tt"; then
42629 break
42630 elif $ac_last_try; then
42631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42632 else
42633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42634 fi
42635done
42636
42637# For the awk script, D is an array of macro values keyed by name,
42638# likewise P contains macro parameters if any. Preserve backslash
42639# newline sequences.
42640
42641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42642sed -n '
42643s/.\{148\}/&'"$ac_delim"'/g
42644t rset
42645:rset
42646s/^[ ]*#[ ]*define[ ][ ]*/ /
42647t def
42648d
42649:def
42650s/\\$//
42651t bsnl
42652s/["\\]/\\&/g
42653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42654D["\1"]=" \3"/p
42655s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42656d
42657:bsnl
42658s/["\\]/\\&/g
42659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42660D["\1"]=" \3\\\\\\n"\\/p
42661t cont
42662s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42663t cont
42664d
42665:cont
42666n
42667s/.\{148\}/&'"$ac_delim"'/g
42668t clear
42669:clear
42670s/\\$//
42671t bsnlc
42672s/["\\]/\\&/g; s/^/"/; s/$/"/p
42673d
42674:bsnlc
42675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42676b cont
42677' <confdefs.h | sed '
42678s/'"$ac_delim"'/"\\\
42679"/g' >>$CONFIG_STATUS || ac_write_fail=1
42680
42681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42682 for (key in D) D_is_set[key] = 1
42683 FS = ""
42684}
42685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42686 line = \$ 0
42687 split(line, arg, " ")
42688 if (arg[1] == "#") {
42689 defundef = arg[2]
42690 mac1 = arg[3]
42691 } else {
42692 defundef = substr(arg[1], 2)
42693 mac1 = arg[2]
42694 }
42695 split(mac1, mac2, "(") #)
42696 macro = mac2[1]
42697 prefix = substr(line, 1, index(line, defundef) - 1)
42698 if (D_is_set[macro]) {
42699 # Preserve the white space surrounding the "#".
42700 print prefix "define", macro P[macro] D[macro]
42701 next
42702 } else {
42703 # Replace #undef with comments. This is necessary, for example,
42704 # in the case of _POSIX_SOURCE, which is predefined and required
42705 # on some systems where configure will not decide to define it.
42706 if (defundef == "undef") {
42707 print "/*", prefix defundef, macro, "*/"
42708 next
42709 }
42710 }
42711}
42712{ print }
42713_ACAWK
42714_ACEOF
42715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42717fi # test -n "$CONFIG_HEADERS"
42718
42719
42720eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42721shift
42722for ac_tag
42723do
42724 case $ac_tag in
42725 :[FHLC]) ac_mode=$ac_tag; continue;;
42726 esac
42727 case $ac_mode$ac_tag in
42728 :[FHL]*:*);;
42729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42730 :[FH]-) ac_tag=-:-;;
42731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42732 esac
42733 ac_save_IFS=$IFS
42734 IFS=:
42735 set x $ac_tag
42736 IFS=$ac_save_IFS
42737 shift
42738 ac_file=$1
42739 shift
42740
42741 case $ac_mode in
42742 :L) ac_source=$1;;
42743 :[FH])
42744 ac_file_inputs=
42745 for ac_f
42746 do
42747 case $ac_f in
42748 -) ac_f="$ac_tmp/stdin";;
42749 *) # Look for the file first in the build tree, then in the source tree
42750 # (if the path is not absolute). The absolute path cannot be DOS-style,
42751 # because $ac_f cannot contain `:'.
42752 test -f "$ac_f" ||
42753 case $ac_f in
42754 [\\/$]*) false;;
42755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42756 esac ||
42757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42758 esac
42759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42760 as_fn_append ac_file_inputs " '$ac_f'"
42761 done
42762
42763 # Let's still pretend it is `configure' which instantiates (i.e., don't
42764 # use $as_me), people would be surprised to read:
42765 # /* config.h. Generated by config.status. */
42766 configure_input='Generated from '`
42767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42768 `' by configure.'
42769 if test x"$ac_file" != x-; then
42770 configure_input="$ac_file. $configure_input"
42771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42772$as_echo "$as_me: creating $ac_file" >&6;}
42773 fi
42774 # Neutralize special characters interpreted by sed in replacement strings.
42775 case $configure_input in #(
42776 *\&* | *\|* | *\\* )
42777 ac_sed_conf_input=`$as_echo "$configure_input" |
42778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42779 *) ac_sed_conf_input=$configure_input;;
42780 esac
42781
42782 case $ac_tag in
42783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42785 esac
42786 ;;
42787 esac
42788
42789 ac_dir=`$as_dirname -- "$ac_file" ||
42790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42791 X"$ac_file" : 'X\(//\)[^/]' \| \
42792 X"$ac_file" : 'X\(//\)$' \| \
42793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42794$as_echo X"$ac_file" |
42795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42796 s//\1/
42797 q
42798 }
42799 /^X\(\/\/\)[^/].*/{
42800 s//\1/
42801 q
42802 }
42803 /^X\(\/\/\)$/{
42804 s//\1/
42805 q
42806 }
42807 /^X\(\/\).*/{
42808 s//\1/
42809 q
42810 }
42811 s/.*/./; q'`
42812 as_dir="$ac_dir"; as_fn_mkdir_p
42813 ac_builddir=.
42814
42815case "$ac_dir" in
42816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42817*)
42818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42819 # A ".." for each directory in $ac_dir_suffix.
42820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42821 case $ac_top_builddir_sub in
42822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42824 esac ;;
42825esac
42826ac_abs_top_builddir=$ac_pwd
42827ac_abs_builddir=$ac_pwd$ac_dir_suffix
42828# for backward compatibility:
42829ac_top_builddir=$ac_top_build_prefix
42830
42831case $srcdir in
42832 .) # We are building in place.
42833 ac_srcdir=.
42834 ac_top_srcdir=$ac_top_builddir_sub
42835 ac_abs_top_srcdir=$ac_pwd ;;
42836 [\\/]* | ?:[\\/]* ) # Absolute name.
42837 ac_srcdir=$srcdir$ac_dir_suffix;
42838 ac_top_srcdir=$srcdir
42839 ac_abs_top_srcdir=$srcdir ;;
42840 *) # Relative name.
42841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42842 ac_top_srcdir=$ac_top_build_prefix$srcdir
42843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42844esac
42845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42846
42847
42848 case $ac_mode in
42849 :F)
42850 #
42851 # CONFIG_FILE
42852 #
42853
42854 case $INSTALL in
42855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42857 esac
42858 ac_MKDIR_P=$MKDIR_P
42859 case $MKDIR_P in
42860 [\\/$]* | ?:[\\/]* ) ;;
42861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42862 esac
42863_ACEOF
42864
42865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42866# If the template does not know about datarootdir, expand it.
42867# FIXME: This hack should be removed a few years after 2.60.
42868ac_datarootdir_hack=; ac_datarootdir_seen=
42869ac_sed_dataroot='
42870/datarootdir/ {
42871 p
42872 q
42873}
42874/@datadir@/p
42875/@docdir@/p
42876/@infodir@/p
42877/@localedir@/p
42878/@mandir@/p'
42879case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42880*datarootdir*) ac_datarootdir_seen=yes;;
42881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42883$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42884_ACEOF
42885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42886 ac_datarootdir_hack='
42887 s&@datadir@&$datadir&g
42888 s&@docdir@&$docdir&g
42889 s&@infodir@&$infodir&g
42890 s&@localedir@&$localedir&g
42891 s&@mandir@&$mandir&g
42892 s&\\\${datarootdir}&$datarootdir&g' ;;
42893esac
42894_ACEOF
42895
42896# Neutralize VPATH when `$srcdir' = `.'.
42897# Shell code in configure.ac might set extrasub.
42898# FIXME: do we really want to maintain this feature?
42899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42900ac_sed_extra="$ac_vpsub
42901$extrasub
42902_ACEOF
42903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42904:t
42905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42906s|@configure_input@|$ac_sed_conf_input|;t t
42907s&@top_builddir@&$ac_top_builddir_sub&;t t
42908s&@top_build_prefix@&$ac_top_build_prefix&;t t
42909s&@srcdir@&$ac_srcdir&;t t
42910s&@abs_srcdir@&$ac_abs_srcdir&;t t
42911s&@top_srcdir@&$ac_top_srcdir&;t t
42912s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42913s&@builddir@&$ac_builddir&;t t
42914s&@abs_builddir@&$ac_abs_builddir&;t t
42915s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42916s&@INSTALL@&$ac_INSTALL&;t t
42917s&@MKDIR_P@&$ac_MKDIR_P&;t t
42918$ac_datarootdir_hack
42919"
42920eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42922
42923test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42926 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42928which seems to be undefined. Please make sure it is defined" >&5
42929$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42930which seems to be undefined. Please make sure it is defined" >&2;}
42931
42932 rm -f "$ac_tmp/stdin"
42933 case $ac_file in
42934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42936 esac \
42937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42938 ;;
42939 :H)
42940 #
42941 # CONFIG_HEADER
42942 #
42943 if test x"$ac_file" != x-; then
42944 {
42945 $as_echo "/* $configure_input */" \
42946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42947 } >"$ac_tmp/config.h" \
42948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42950 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42951$as_echo "$as_me: $ac_file is unchanged" >&6;}
42952 else
42953 rm -f "$ac_file"
42954 mv "$ac_tmp/config.h" "$ac_file" \
42955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42956 fi
42957 else
42958 $as_echo "/* $configure_input */" \
42959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42960 || as_fn_error $? "could not create -" "$LINENO" 5
42961 fi
42962# Compute "$ac_file"'s index in $config_headers.
42963_am_arg="$ac_file"
42964_am_stamp_count=1
42965for _am_header in $config_headers :; do
42966 case $_am_header in
42967 $_am_arg | $_am_arg:* )
42968 break ;;
42969 * )
42970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42971 esac
42972done
42973echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42974$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42975 X"$_am_arg" : 'X\(//\)[^/]' \| \
42976 X"$_am_arg" : 'X\(//\)$' \| \
42977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42978$as_echo X"$_am_arg" |
42979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42980 s//\1/
42981 q
42982 }
42983 /^X\(\/\/\)[^/].*/{
42984 s//\1/
42985 q
42986 }
42987 /^X\(\/\/\)$/{
42988 s//\1/
42989 q
42990 }
42991 /^X\(\/\).*/{
42992 s//\1/
42993 q
42994 }
42995 s/.*/./; q'`/stamp-h$_am_stamp_count
42996 ;;
42997
42998 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42999$as_echo "$as_me: executing $ac_file commands" >&6;}
43000 ;;
43001 esac
43002
43003
43004 case $ac_file$ac_mode in
43005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43006 # Older Autoconf quotes --file arguments for eval, but not when files
43007 # are listed without --file. Let's play safe and only enable the eval
43008 # if we detect the quoting.
43009 case $CONFIG_FILES in
43010 *\'*) eval set x "$CONFIG_FILES" ;;
43011 *) set x $CONFIG_FILES ;;
43012 esac
43013 shift
43014 for mf
43015 do
43016 # Strip MF so we end up with the name of the file.
43017 mf=`echo "$mf" | sed -e 's/:.*$//'`
43018 # Check whether this is an Automake generated Makefile or not.
43019 # We used to match only the files named 'Makefile.in', but
43020 # some people rename them; so instead we look at the file content.
43021 # Grep'ing the first line is not enough: some people post-process
43022 # each Makefile.in and add a new line on top of each file to say so.
43023 # Grep'ing the whole file is not good either: AIX grep has a line
43024 # limit of 2048, but all sed's we know have understand at least 4000.
43025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43026 dirpart=`$as_dirname -- "$mf" ||
43027$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43028 X"$mf" : 'X\(//\)[^/]' \| \
43029 X"$mf" : 'X\(//\)$' \| \
43030 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43031$as_echo X"$mf" |
43032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43033 s//\1/
43034 q
43035 }
43036 /^X\(\/\/\)[^/].*/{
43037 s//\1/
43038 q
43039 }
43040 /^X\(\/\/\)$/{
43041 s//\1/
43042 q
43043 }
43044 /^X\(\/\).*/{
43045 s//\1/
43046 q
43047 }
43048 s/.*/./; q'`
43049 else
43050 continue
43051 fi
43052 # Extract the definition of DEPDIR, am__include, and am__quote
43053 # from the Makefile without running 'make'.
43054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43055 test -z "$DEPDIR" && continue
43056 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43057 test -z "$am__include" && continue
43058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43059 # Find all dependency output files, they are included files with
43060 # $(DEPDIR) in their names. We invoke sed twice because it is the
43061 # simplest approach to changing $(DEPDIR) to its actual value in the
43062 # expansion.
43063 for file in `sed -n "
43064 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43066 # Make sure the directory exists.
43067 test -f "$dirpart/$file" && continue
43068 fdir=`$as_dirname -- "$file" ||
43069$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43070 X"$file" : 'X\(//\)[^/]' \| \
43071 X"$file" : 'X\(//\)$' \| \
43072 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43073$as_echo X"$file" |
43074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43075 s//\1/
43076 q
43077 }
43078 /^X\(\/\/\)[^/].*/{
43079 s//\1/
43080 q
43081 }
43082 /^X\(\/\/\)$/{
43083 s//\1/
43084 q
43085 }
43086 /^X\(\/\).*/{
43087 s//\1/
43088 q
43089 }
43090 s/.*/./; q'`
43091 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43092 # echo "creating $dirpart/$file"
43093 echo '# dummy' > "$dirpart/$file"
43094 done
43095 done
43096}
43097 ;;
43098 "libtool":C)
43099
43100 # See if we are running on zsh, and set the options that allow our
43101 # commands through without removal of \ escapes.
43102 if test -n "${ZSH_VERSION+set}"; then
43103 setopt NO_GLOB_SUBST
43104 fi
43105
43106 cfgfile=${ofile}T
43107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43108 $RM "$cfgfile"
43109
43110 cat <<_LT_EOF >> "$cfgfile"
43111#! $SHELL
43112# Generated automatically by $as_me ($PACKAGE) $VERSION
43113# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43114
43115# Provide generalized library-building support services.
43116# Written by Gordon Matzigkeit, 1996
43117
43118# Copyright (C) 2014 Free Software Foundation, Inc.
43119# This is free software; see the source for copying conditions. There is NO
43120# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43121
43122# GNU Libtool is free software; you can redistribute it and/or modify
43123# it under the terms of the GNU General Public License as published by
43124# the Free Software Foundation; either version 2 of of the License, or
43125# (at your option) any later version.
43126#
43127# As a special exception to the GNU General Public License, if you
43128# distribute this file as part of a program or library that is built
43129# using GNU Libtool, you may include this file under the same
43130# distribution terms that you use for the rest of that program.
43131#
43132# GNU Libtool is distributed in the hope that it will be useful, but
43133# WITHOUT ANY WARRANTY; without even the implied warranty of
43134# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43135# GNU General Public License for more details.
43136#
43137# You should have received a copy of the GNU General Public License
43138# along with this program. If not, see <http://www.gnu.org/licenses/>.
43139
43140
43141# The names of the tagged configurations supported by this script.
43142available_tags=''
43143
43144# Configured defaults for sys_lib_dlsearch_path munging.
43145: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43146
43147# ### BEGIN LIBTOOL CONFIG
43148
43149# Which release of libtool.m4 was used?
43150macro_version=$macro_version
43151macro_revision=$macro_revision
43152
43153# Assembler program.
43154AS=$lt_AS
43155
43156# DLL creation program.
43157DLLTOOL=$lt_DLLTOOL
43158
43159# Object dumper program.
43160OBJDUMP=$lt_OBJDUMP
43161
43162# Whether or not to build shared libraries.
43163build_libtool_libs=$enable_shared
43164
43165# Whether or not to build static libraries.
43166build_old_libs=$enable_static
43167
43168# What type of objects to build.
43169pic_mode=$pic_mode
43170
43171# Whether or not to optimize for fast installation.
43172fast_install=$enable_fast_install
43173
43174# Shared archive member basename,for filename based shared library versioning on AIX.
43175shared_archive_member_spec=$shared_archive_member_spec
43176
43177# Shell to use when invoking shell scripts.
43178SHELL=$lt_SHELL
43179
43180# An echo program that protects backslashes.
43181ECHO=$lt_ECHO
43182
43183# The PATH separator for the build system.
43184PATH_SEPARATOR=$lt_PATH_SEPARATOR
43185
43186# The host system.
43187host_alias=$host_alias
43188host=$host
43189host_os=$host_os
43190
43191# The build system.
43192build_alias=$build_alias
43193build=$build
43194build_os=$build_os
43195
43196# A sed program that does not truncate output.
43197SED=$lt_SED
43198
43199# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43200Xsed="\$SED -e 1s/^X//"
43201
43202# A grep program that handles long lines.
43203GREP=$lt_GREP
43204
43205# An ERE matcher.
43206EGREP=$lt_EGREP
43207
43208# A literal string matcher.
43209FGREP=$lt_FGREP
43210
43211# A BSD- or MS-compatible name lister.
43212NM=$lt_NM
43213
43214# Whether we need soft or hard links.
43215LN_S=$lt_LN_S
43216
43217# What is the maximum length of a command?
43218max_cmd_len=$max_cmd_len
43219
43220# Object file suffix (normally "o").
43221objext=$ac_objext
43222
43223# Executable file suffix (normally "").
43224exeext=$exeext
43225
43226# whether the shell understands "unset".
43227lt_unset=$lt_unset
43228
43229# turn spaces into newlines.
43230SP2NL=$lt_lt_SP2NL
43231
43232# turn newlines into spaces.
43233NL2SP=$lt_lt_NL2SP
43234
43235# convert \$build file names to \$host format.
43236to_host_file_cmd=$lt_cv_to_host_file_cmd
43237
43238# convert \$build files to toolchain format.
43239to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43240
43241# Method to check whether dependent libraries are shared objects.
43242deplibs_check_method=$lt_deplibs_check_method
43243
43244# Command to use when deplibs_check_method = "file_magic".
43245file_magic_cmd=$lt_file_magic_cmd
43246
43247# How to find potential files when deplibs_check_method = "file_magic".
43248file_magic_glob=$lt_file_magic_glob
43249
43250# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43251want_nocaseglob=$lt_want_nocaseglob
43252
43253# Command to associate shared and link libraries.
43254sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43255
43256# The archiver.
43257AR=$lt_AR
43258
43259# Flags to create an archive.
43260AR_FLAGS=$lt_AR_FLAGS
43261
43262# How to feed a file listing to the archiver.
43263archiver_list_spec=$lt_archiver_list_spec
43264
43265# A symbol stripping program.
43266STRIP=$lt_STRIP
43267
43268# Commands used to install an old-style archive.
43269RANLIB=$lt_RANLIB
43270old_postinstall_cmds=$lt_old_postinstall_cmds
43271old_postuninstall_cmds=$lt_old_postuninstall_cmds
43272
43273# Whether to use a lock for old archive extraction.
43274lock_old_archive_extraction=$lock_old_archive_extraction
43275
43276# A C compiler.
43277LTCC=$lt_CC
43278
43279# LTCC compiler flags.
43280LTCFLAGS=$lt_CFLAGS
43281
43282# Take the output of nm and produce a listing of raw symbols and C names.
43283global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43284
43285# Transform the output of nm in a proper C declaration.
43286global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43287
43288# Transform the output of nm into a list of symbols to manually relocate.
43289global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43290
43291# Transform the output of nm in a C name address pair.
43292global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43293
43294# Transform the output of nm in a C name address pair when lib prefix is needed.
43295global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43296
43297# The name lister interface.
43298nm_interface=$lt_lt_cv_nm_interface
43299
43300# Specify filename containing input files for \$NM.
43301nm_file_list_spec=$lt_nm_file_list_spec
43302
43303# The root where to search for dependent libraries,and where our libraries should be installed.
43304lt_sysroot=$lt_sysroot
43305
43306# Command to truncate a binary pipe.
43307lt_truncate_bin=$lt_lt_cv_truncate_bin
43308
43309# The name of the directory that contains temporary libtool files.
43310objdir=$objdir
43311
43312# Used to examine libraries when file_magic_cmd begins with "file".
43313MAGIC_CMD=$MAGIC_CMD
43314
43315# Must we lock files when doing compilation?
43316need_locks=$lt_need_locks
43317
43318# Manifest tool.
43319MANIFEST_TOOL=$lt_MANIFEST_TOOL
43320
43321# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43322DSYMUTIL=$lt_DSYMUTIL
43323
43324# Tool to change global to local symbols on Mac OS X.
43325NMEDIT=$lt_NMEDIT
43326
43327# Tool to manipulate fat objects and archives on Mac OS X.
43328LIPO=$lt_LIPO
43329
43330# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43331OTOOL=$lt_OTOOL
43332
43333# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43334OTOOL64=$lt_OTOOL64
43335
43336# Old archive suffix (normally "a").
43337libext=$libext
43338
43339# Shared library suffix (normally ".so").
43340shrext_cmds=$lt_shrext_cmds
43341
43342# The commands to extract the exported symbol list from a shared archive.
43343extract_expsyms_cmds=$lt_extract_expsyms_cmds
43344
43345# Variables whose values should be saved in libtool wrapper scripts and
43346# restored at link time.
43347variables_saved_for_relink=$lt_variables_saved_for_relink
43348
43349# Do we need the "lib" prefix for modules?
43350need_lib_prefix=$need_lib_prefix
43351
43352# Do we need a version for libraries?
43353need_version=$need_version
43354
43355# Library versioning type.
43356version_type=$version_type
43357
43358# Shared library runtime path variable.
43359runpath_var=$runpath_var
43360
43361# Shared library path variable.
43362shlibpath_var=$shlibpath_var
43363
43364# Is shlibpath searched before the hard-coded library search path?
43365shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43366
43367# Format of library name prefix.
43368libname_spec=$lt_libname_spec
43369
43370# List of archive names. First name is the real one, the rest are links.
43371# The last name is the one that the linker finds with -lNAME
43372library_names_spec=$lt_library_names_spec
43373
43374# The coded name of the library, if different from the real name.
43375soname_spec=$lt_soname_spec
43376
43377# Permission mode override for installation of shared libraries.
43378install_override_mode=$lt_install_override_mode
43379
43380# Command to use after installation of a shared archive.
43381postinstall_cmds=$lt_postinstall_cmds
43382
43383# Command to use after uninstallation of a shared archive.
43384postuninstall_cmds=$lt_postuninstall_cmds
43385
43386# Commands used to finish a libtool library installation in a directory.
43387finish_cmds=$lt_finish_cmds
43388
43389# As "finish_cmds", except a single script fragment to be evaled but
43390# not shown.
43391finish_eval=$lt_finish_eval
43392
43393# Whether we should hardcode library paths into libraries.
43394hardcode_into_libs=$hardcode_into_libs
43395
43396# Compile-time system search path for libraries.
43397sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43398
43399# Detected run-time system search path for libraries.
43400sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43401
43402# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43403configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43404
43405# Whether dlopen is supported.
43406dlopen_support=$enable_dlopen
43407
43408# Whether dlopen of programs is supported.
43409dlopen_self=$enable_dlopen_self
43410
43411# Whether dlopen of statically linked programs is supported.
43412dlopen_self_static=$enable_dlopen_self_static
43413
43414# Commands to strip libraries.
43415old_striplib=$lt_old_striplib
43416striplib=$lt_striplib
43417
43418
43419# The linker used to build libraries.
43420LD=$lt_LD
43421
43422# How to create reloadable object files.
43423reload_flag=$lt_reload_flag
43424reload_cmds=$lt_reload_cmds
43425
43426# Commands used to build an old-style archive.
43427old_archive_cmds=$lt_old_archive_cmds
43428
43429# A language specific compiler.
43430CC=$lt_compiler
43431
43432# Is the compiler the GNU compiler?
43433with_gcc=$GCC
43434
43435# Compiler flag to turn off builtin functions.
43436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43437
43438# Additional compiler flags for building library objects.
43439pic_flag=$lt_lt_prog_compiler_pic
43440
43441# How to pass a linker flag through the compiler.
43442wl=$lt_lt_prog_compiler_wl
43443
43444# Compiler flag to prevent dynamic linking.
43445link_static_flag=$lt_lt_prog_compiler_static
43446
43447# Does compiler simultaneously support -c and -o options?
43448compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43449
43450# Whether or not to add -lc for building shared libraries.
43451build_libtool_need_lc=$archive_cmds_need_lc
43452
43453# Whether or not to disallow shared libs when runtime libs are static.
43454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43455
43456# Compiler flag to allow reflexive dlopens.
43457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43458
43459# Compiler flag to generate shared objects directly from archives.
43460whole_archive_flag_spec=$lt_whole_archive_flag_spec
43461
43462# Whether the compiler copes with passing no objects directly.
43463compiler_needs_object=$lt_compiler_needs_object
43464
43465# Create an old-style archive from a shared archive.
43466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43467
43468# Create a temporary old-style archive to link instead of a shared archive.
43469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43470
43471# Commands used to build a shared archive.
43472archive_cmds=$lt_archive_cmds
43473archive_expsym_cmds=$lt_archive_expsym_cmds
43474
43475# Commands used to build a loadable module if different from building
43476# a shared archive.
43477module_cmds=$lt_module_cmds
43478module_expsym_cmds=$lt_module_expsym_cmds
43479
43480# Whether we are building with GNU ld or not.
43481with_gnu_ld=$lt_with_gnu_ld
43482
43483# Flag that allows shared libraries with undefined symbols to be built.
43484allow_undefined_flag=$lt_allow_undefined_flag
43485
43486# Flag that enforces no undefined symbols.
43487no_undefined_flag=$lt_no_undefined_flag
43488
43489# Flag to hardcode \$libdir into a binary during linking.
43490# This must work even if \$libdir does not exist
43491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43492
43493# Whether we need a single "-rpath" flag with a separated argument.
43494hardcode_libdir_separator=$lt_hardcode_libdir_separator
43495
43496# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43497# DIR into the resulting binary.
43498hardcode_direct=$hardcode_direct
43499
43500# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43501# DIR into the resulting binary and the resulting library dependency is
43502# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43503# library is relocated.
43504hardcode_direct_absolute=$hardcode_direct_absolute
43505
43506# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43507# into the resulting binary.
43508hardcode_minus_L=$hardcode_minus_L
43509
43510# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43511# into the resulting binary.
43512hardcode_shlibpath_var=$hardcode_shlibpath_var
43513
43514# Set to "yes" if building a shared library automatically hardcodes DIR
43515# into the library and all subsequent libraries and executables linked
43516# against it.
43517hardcode_automatic=$hardcode_automatic
43518
43519# Set to yes if linker adds runtime paths of dependent libraries
43520# to runtime path list.
43521inherit_rpath=$inherit_rpath
43522
43523# Whether libtool must link a program against all its dependency libraries.
43524link_all_deplibs=$link_all_deplibs
43525
43526# Set to "yes" if exported symbols are required.
43527always_export_symbols=$always_export_symbols
43528
43529# The commands to list exported symbols.
43530export_symbols_cmds=$lt_export_symbols_cmds
43531
43532# Symbols that should not be listed in the preloaded symbols.
43533exclude_expsyms=$lt_exclude_expsyms
43534
43535# Symbols that must always be exported.
43536include_expsyms=$lt_include_expsyms
43537
43538# Commands necessary for linking programs (against libraries) with templates.
43539prelink_cmds=$lt_prelink_cmds
43540
43541# Commands necessary for finishing linking programs.
43542postlink_cmds=$lt_postlink_cmds
43543
43544# Specify filename containing input files.
43545file_list_spec=$lt_file_list_spec
43546
43547# How to hardcode a shared library path into an executable.
43548hardcode_action=$hardcode_action
43549
43550# ### END LIBTOOL CONFIG
43551
43552_LT_EOF
43553
43554 cat <<'_LT_EOF' >> "$cfgfile"
43555
43556# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43557
43558# func_munge_path_list VARIABLE PATH
43559# -----------------------------------
43560# VARIABLE is name of variable containing _space_ separated list of
43561# directories to be munged by the contents of PATH, which is string
43562# having a format:
43563# "DIR[:DIR]:"
43564# string "DIR[ DIR]" will be prepended to VARIABLE
43565# ":DIR[:DIR]"
43566# string "DIR[ DIR]" will be appended to VARIABLE
43567# "DIRP[:DIRP]::[DIRA:]DIRA"
43568# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43569# "DIRA[ DIRA]" will be appended to VARIABLE
43570# "DIR[:DIR]"
43571# VARIABLE will be replaced by "DIR[ DIR]"
43572func_munge_path_list ()
43573{
43574 case x$2 in
43575 x)
43576 ;;
43577 *:)
43578 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43579 ;;
43580 x:*)
43581 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43582 ;;
43583 *::*)
43584 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43585 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43586 ;;
43587 *)
43588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43589 ;;
43590 esac
43591}
43592
43593
43594# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43595func_cc_basename ()
43596{
43597 for cc_temp in $*""; do
43598 case $cc_temp in
43599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43601 \-*) ;;
43602 *) break;;
43603 esac
43604 done
43605 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43606}
43607
43608
43609# ### END FUNCTIONS SHARED WITH CONFIGURE
43610
43611_LT_EOF
43612
43613 case $host_os in
43614 aix3*)
43615 cat <<\_LT_EOF >> "$cfgfile"
43616# AIX sometimes has problems with the GCC collect2 program. For some
43617# reason, if we set the COLLECT_NAMES environment variable, the problems
43618# vanish in a puff of smoke.
43619if test set != "${COLLECT_NAMES+set}"; then
43620 COLLECT_NAMES=
43621 export COLLECT_NAMES
43622fi
43623_LT_EOF
43624 ;;
43625 esac
43626
43627
43628ltmain=$ac_aux_dir/ltmain.sh
43629
43630
43631 # We use sed instead of cat because bash on DJGPP gets confused if
43632 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43633 # text mode, it properly converts lines to CR/LF. This bash problem
43634 # is reportedly fixed, but why not run on old versions too?
43635 sed '$q' "$ltmain" >> "$cfgfile" \
43636 || (rm -f "$cfgfile"; exit 1)
43637
43638 mv -f "$cfgfile" "$ofile" ||
43639 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43640 chmod +x "$ofile"
43641
43642 ;;
43643
43644 esac
43645done # for ac_tag
43646
43647
43648as_fn_exit 0
43649_ACEOF
43650ac_clean_files=$ac_clean_files_save
43651
43652test $ac_write_fail = 0 ||
43653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43654
43655
43656# configure is writing to config.log, and then calls config.status.
43657# config.status does its own redirection, appending to config.log.
43658# Unfortunately, on DOS this fails, as config.log is still kept open
43659# by configure, so config.status won't be able to write to it; its
43660# output is simply discarded. So we exec the FD to /dev/null,
43661# effectively closing config.log, so it can be properly (re)opened and
43662# appended to by config.status. When coming back to configure, we
43663# need to make the FD available again.
43664if test "$no_create" != yes; then
43665 ac_cs_success=:
43666 ac_config_status_args=
43667 test "$silent" = yes &&
43668 ac_config_status_args="$ac_config_status_args --quiet"
43669 exec 5>/dev/null
43670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43671 exec 5>>config.log
43672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43673 # would make configure fail if this is the last instruction.
43674 $ac_cs_success || as_fn_exit 1
43675fi
43676
43677#
43678# CONFIG_SUBDIRS section.
43679#
43680if test "$no_recursion" != yes; then
43681
43682 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43683 # so they do not pile up.
43684 ac_sub_configure_args=
43685 ac_prev=
43686 eval "set x $ac_configure_args"
43687 shift
43688 for ac_arg
43689 do
43690 if test -n "$ac_prev"; then
43691 ac_prev=
43692 continue
43693 fi
43694 case $ac_arg in
43695 -cache-file | --cache-file | --cache-fil | --cache-fi \
43696 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43697 ac_prev=cache_file ;;
43698 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43699 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43700 | --c=*)
43701 ;;
43702 --config-cache | -C)
43703 ;;
43704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43705 ac_prev=srcdir ;;
43706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43707 ;;
43708 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43709 ac_prev=prefix ;;
43710 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43711 ;;
43712 --disable-option-checking)
43713 ;;
43714 *)
43715 case $ac_arg in
43716 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43717 esac
43718 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43719 esac
43720 done
43721
43722 # Always prepend --prefix to ensure using the same prefix
43723 # in subdir configurations.
43724 ac_arg="--prefix=$prefix"
43725 case $ac_arg in
43726 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43727 esac
43728 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43729
43730 # Pass --silent
43731 if test "$silent" = yes; then
43732 ac_sub_configure_args="--silent $ac_sub_configure_args"
43733 fi
43734
43735 # Always prepend --disable-option-checking to silence warnings, since
43736 # different subdirs can have different --enable and --with options.
43737 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43738
43739 ac_popdir=`pwd`
43740 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43741
43742 # Do not complain, so a configure script can configure whichever
43743 # parts of a large source tree are present.
43744 test -d "$srcdir/$ac_dir" || continue
43745
43746 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43747 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43748 $as_echo "$ac_msg" >&6
43749 as_dir="$ac_dir"; as_fn_mkdir_p
43750 ac_builddir=.
43751
43752case "$ac_dir" in
43753.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43754*)
43755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43756 # A ".." for each directory in $ac_dir_suffix.
43757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43758 case $ac_top_builddir_sub in
43759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43761 esac ;;
43762esac
43763ac_abs_top_builddir=$ac_pwd
43764ac_abs_builddir=$ac_pwd$ac_dir_suffix
43765# for backward compatibility:
43766ac_top_builddir=$ac_top_build_prefix
43767
43768case $srcdir in
43769 .) # We are building in place.
43770 ac_srcdir=.
43771 ac_top_srcdir=$ac_top_builddir_sub
43772 ac_abs_top_srcdir=$ac_pwd ;;
43773 [\\/]* | ?:[\\/]* ) # Absolute name.
43774 ac_srcdir=$srcdir$ac_dir_suffix;
43775 ac_top_srcdir=$srcdir
43776 ac_abs_top_srcdir=$srcdir ;;
43777 *) # Relative name.
43778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43779 ac_top_srcdir=$ac_top_build_prefix$srcdir
43780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43781esac
43782ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43783
43784
43785 cd "$ac_dir"
43786
43787 # Check for guested configure; otherwise get Cygnus style configure.
43788 if test -f "$ac_srcdir/configure.gnu"; then
43789 ac_sub_configure=$ac_srcdir/configure.gnu
43790 elif test -f "$ac_srcdir/configure"; then
43791 ac_sub_configure=$ac_srcdir/configure
43792 elif test -f "$ac_srcdir/configure.in"; then
43793 # This should be Cygnus configure.
43794 ac_sub_configure=$ac_aux_dir/configure
43795 else
43796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43797$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43798 ac_sub_configure=
43799 fi
43800
43801 # The recursion is here.
43802 if test -n "$ac_sub_configure"; then
43803 # Make the cache file name correct relative to the subdirectory.
43804 case $cache_file in
43805 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43806 *) # Relative name.
43807 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43808 esac
43809
43810 { $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
43811$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43812 # The eval makes quoting arguments work.
43813 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43814 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43815 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43816 fi
43817
43818 cd "$ac_popdir"
43819 done
43820fi
43821if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43823$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43824fi
43825
43826
43827
43828 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43829 if test -z "$tmp_cpp"; then
43830 tmp_cpp='cpp'
43831 fi
43832 cat >./tests/configurehelp.pm <<_EOF
43833# This is a generated file. Do not edit.
43834
43835package configurehelp;
43836
43837use strict;
43838use warnings;
43839use Exporter;
43840
43841use vars qw(
43842 @ISA
43843 @EXPORT_OK
43844 \$Cpreprocessor
43845 );
43846
43847@ISA = qw(Exporter);
43848
43849@EXPORT_OK = qw(
43850 \$Cpreprocessor
43851 );
43852
43853\$Cpreprocessor = '$tmp_cpp';
43854
438551;
43856_EOF
43857
43858
43859
43860## ---------------------------------- ##
43861## Start of distclean amending code ##
43862## ---------------------------------- ##
43863
43864for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43865do
43866
43867if test ! -f "$xc_subdir/Makefile"; then
43868 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43869 exit 1
43870fi
43871
43872# Fetch dependency tracking file list from Makefile include lines.
43873
43874xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43875xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43876
43877# --disable-dependency-tracking might have been used, consequently
43878# there is nothing to amend without a dependency tracking file list.
43879
43880if test $xc_cnt_words -gt 0; then
43881
43882{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43883$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43884
43885# Build Makefile specific patch hunk.
43886
43887xc_p="$xc_subdir/xc_patch.tmp"
43888
43889xc_rm_depfiles=`echo "$xc_inc_lines" \
43890 | $SED 's%include% -rm -f%' 2>/dev/null`
43891
43892xc_dep_subdirs=`echo "$xc_inc_lines" \
43893 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43894 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43895 | sort | uniq`
43896
43897echo "$xc_rm_depfiles" >$xc_p
43898
43899for xc_dep_dir in $xc_dep_subdirs; do
43900 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43901 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43902 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43903 echo "${xc_tab}fi" >>$xc_p
43904done
43905
43906# Build Makefile patching sed scripts.
43907
43908xc_s1="$xc_subdir/xc_script_1.tmp"
43909xc_s2="$xc_subdir/xc_script_2.tmp"
43910xc_s3="$xc_subdir/xc_script_3.tmp"
43911
43912cat >$xc_s1 <<\_EOT
43913/^distclean[ ]*:/,/^[^ ][^ ]*:/{
43914 s/^.*(DEPDIR)/___xc_depdir_line___/
43915}
43916/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43917 s/^.*(DEPDIR)/___xc_depdir_line___/
43918}
43919_EOT
43920
43921cat >$xc_s2 <<\_EOT
43922/___xc_depdir_line___$/{
43923 N
43924 /___xc_depdir_line___$/D
43925}
43926_EOT
43927
43928cat >$xc_s3 <<_EOT
43929/^___xc_depdir_line___/{
43930 r $xc_p
43931 d
43932}
43933_EOT
43934
43935# Apply patch to Makefile and cleanup.
43936
43937$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43938$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43939$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43940
43941if test -f "$xc_subdir/Makefile.tmp3"; then
43942 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43943fi
43944
43945test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43946test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43947test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43948
43949test -f "$xc_p" && rm -f "$xc_p"
43950test -f "$xc_s1" && rm -f "$xc_s1"
43951test -f "$xc_s2" && rm -f "$xc_s2"
43952test -f "$xc_s3" && rm -f "$xc_s3"
43953
43954fi
43955
43956done
43957
43958## -------------------------------- ##
43959## End of distclean amending code ##
43960## -------------------------------- ##
43961
43962
43963
43964{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43965
43966 curl version: ${CURLVERSION}
43967 Host setup: ${host}
43968 Install prefix: ${prefix}
43969 Compiler: ${CC}
43970 SSL support: ${curl_ssl_msg}
43971 SSH support: ${curl_ssh_msg}
43972 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010043973 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070043974 GSS-API support: ${curl_gss_msg}
43975 TLS-SRP support: ${curl_tls_srp_msg}
43976 resolver: ${curl_res_msg}
43977 IPv6 support: ${curl_ipv6_msg}
43978 Unix sockets support: ${curl_unix_sockets_msg}
43979 IDN support: ${curl_idn_msg}
43980 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43981 Built-in manual: ${curl_manual_msg}
43982 --libcurl option: ${curl_libcurl_msg}
43983 Verbose errors: ${curl_verbose_msg}
43984 SSPI support: ${curl_sspi_msg}
43985 ca cert bundle: ${ca}${ca_warning}
43986 ca cert path: ${capath}${capath_warning}
43987 ca fallback: ${with_ca_fallback}
43988 LDAP support: ${curl_ldap_msg}
43989 LDAPS support: ${curl_ldaps_msg}
43990 RTSP support: ${curl_rtsp_msg}
43991 RTMP support: ${curl_rtmp_msg}
43992 metalink support: ${curl_mtlnk_msg}
43993 PSL support: ${curl_psl_msg}
43994 HTTP2 support: ${curl_h2_msg}
43995 Protocols: ${SUPPORT_PROTOCOLS}
43996" >&5
43997$as_echo "$as_me: Configured to build curl/libcurl:
43998
43999 curl version: ${CURLVERSION}
44000 Host setup: ${host}
44001 Install prefix: ${prefix}
44002 Compiler: ${CC}
44003 SSL support: ${curl_ssl_msg}
44004 SSH support: ${curl_ssh_msg}
44005 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044006 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044007 GSS-API support: ${curl_gss_msg}
44008 TLS-SRP support: ${curl_tls_srp_msg}
44009 resolver: ${curl_res_msg}
44010 IPv6 support: ${curl_ipv6_msg}
44011 Unix sockets support: ${curl_unix_sockets_msg}
44012 IDN support: ${curl_idn_msg}
44013 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44014 Built-in manual: ${curl_manual_msg}
44015 --libcurl option: ${curl_libcurl_msg}
44016 Verbose errors: ${curl_verbose_msg}
44017 SSPI support: ${curl_sspi_msg}
44018 ca cert bundle: ${ca}${ca_warning}
44019 ca cert path: ${capath}${capath_warning}
44020 ca fallback: ${with_ca_fallback}
44021 LDAP support: ${curl_ldap_msg}
44022 LDAPS support: ${curl_ldaps_msg}
44023 RTSP support: ${curl_rtsp_msg}
44024 RTMP support: ${curl_rtmp_msg}
44025 metalink support: ${curl_mtlnk_msg}
44026 PSL support: ${curl_psl_msg}
44027 HTTP2 support: ${curl_h2_msg}
44028 Protocols: ${SUPPORT_PROTOCOLS}
44029" >&6;}