blob: cb90f4244306e80805991902e893cd35cc43398d [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
Elliott Hughes0128fe42018-02-27 14:57:55 -0800878SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700879SUPPORT_PROTOCOLS
880SUPPORT_FEATURES
881ENABLE_STATIC
882ENABLE_SHARED
883CROSSCOMPILING_FALSE
884CROSSCOMPILING_TRUE
885BLANK_AT_MAKETIME
886CURL_NETWORK_AND_TIME_LIBS
887CURL_NETWORK_LIBS
888LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700889CFLAG_CURL_SYMBOL_HIDING
890DOING_CURL_SYMBOL_HIDING_FALSE
891DOING_CURL_SYMBOL_HIDING_TRUE
892USE_UNIX_SOCKETS
893BUILD_LIBHOSTNAME_FALSE
894BUILD_LIBHOSTNAME_TRUE
895USE_EMBEDDED_ARES_FALSE
896USE_EMBEDDED_ARES_TRUE
897USE_ARES
898subdirs
899USE_MANUAL_FALSE
900USE_MANUAL_TRUE
901MANOPT
902NROFF
903PERL
904IPV6_ENABLED
905ZSH_FUNCTIONS_DIR
906USE_NGHTTP2
907IDN_ENABLED
908CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
910CURL_LT_SHLIB_VERSIONED_FLAVOUR
911USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800912USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700913USE_LIBSSH2
914LIBMETALINK_CPPFLAGS
915LIBMETALINK_LDFLAGS
916LIBMETALINK_LIBS
917USE_LIBPSL_FALSE
918USE_LIBPSL_TRUE
919CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100920CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700921SSL_ENABLED
922USE_AXTLS
923NSS_LIBS
924USE_NSS
925USE_CYASSL
926USE_MBEDTLS
927USE_POLARSSL
928HAVE_GNUTLS_SRP
929USE_GNUTLS_NETTLE
930USE_GNUTLS
931HAVE_OPENSSL_SRP
932RANDOM_FILE
933SSL_LIBS
934USE_DARWINSSL
935USE_WINDOWS_SSPI
936USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100937DEFAULT_SSL_BACKEND
938BUILD_STUB_GSS_FALSE
939BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700940USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100941HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700942ZLIB_LIBS
943HAVE_LIBZ_FALSE
944HAVE_LIBZ_TRUE
945HAVE_LIBZ
946PKGCONFIG
947CURL_DISABLE_GOPHER
948CURL_DISABLE_SMTP
949CURL_DISABLE_SMB
950CURL_DISABLE_IMAP
951CURL_DISABLE_POP3
952CURL_DISABLE_TFTP
953CURL_DISABLE_TELNET
954CURL_DISABLE_DICT
955CURL_DISABLE_PROXY
956HAVE_LDAP_SSL
957CURL_DISABLE_LDAPS
958CURL_DISABLE_LDAP
959CURL_DISABLE_FILE
960CURL_DISABLE_FTP
961CURL_DISABLE_RTSP
962CURL_DISABLE_HTTP
963DOING_NATIVE_WINDOWS_FALSE
964DOING_NATIVE_WINDOWS_TRUE
965BUILD_UNITTESTS_FALSE
966BUILD_UNITTESTS_TRUE
967CURLDEBUG_FALSE
968CURLDEBUG_TRUE
969USE_EXPLICIT_LIB_DEPS_FALSE
970USE_EXPLICIT_LIB_DEPS_TRUE
971REQUIRE_LIB_DEPS
972CPPFLAG_CURL_STATICLIB
973USE_CPPFLAG_CURL_STATICLIB_FALSE
974USE_CPPFLAG_CURL_STATICLIB_TRUE
975CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
977CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
979CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
980CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
981LT_SYS_LIBRARY_PATH
982OTOOL64
983OTOOL
984LIPO
985NMEDIT
986DSYMUTIL
987MANIFEST_TOOL
988RANLIB
989ac_ct_AR
990LN_S
991NM
992ac_ct_DUMPBIN
993DUMPBIN
994LD
995FGREP
996LIBTOOL
997OBJDUMP
998DLLTOOL
999AS
1000host_os
1001host_vendor
1002host_cpu
1003host
1004build_os
1005build_vendor
1006build_cpu
1007build
1008PKGADD_VENDOR
1009PKGADD_NAME
1010PKGADD_PKG
1011VERSIONNUM
1012CURLVERSION
1013am__fastdepCC_FALSE
1014am__fastdepCC_TRUE
1015CCDEPMODE
1016am__nodep
1017AMDEPBACKSLASH
1018AMDEP_FALSE
1019AMDEP_TRUE
1020am__quote
1021am__include
1022DEPDIR
1023am__untar
1024am__tar
1025AMTAR
1026am__leading_dot
1027SET_MAKE
1028AWK
1029mkdir_p
1030MKDIR_P
1031INSTALL_STRIP_PROGRAM
1032STRIP
1033install_sh
1034MAKEINFO
1035AUTOHEADER
1036AUTOMAKE
1037AUTOCONF
1038ACLOCAL
1039VERSION
1040PACKAGE
1041CYGPATH_W
1042am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001043CODE_COVERAGE_RULES
1044CODE_COVERAGE_LDFLAGS
1045CODE_COVERAGE_LIBS
1046CODE_COVERAGE_CXXFLAGS
1047CODE_COVERAGE_CFLAGS
1048CODE_COVERAGE_CPPFLAGS
1049GENHTML
1050LCOV
1051GCOV
1052CODE_COVERAGE_ENABLED
1053CODE_COVERAGE_ENABLED_FALSE
1054CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001055CPP
1056OBJEXT
1057EXEEXT
1058ac_ct_CC
1059CPPFLAGS
1060LDFLAGS
1061CFLAGS
1062CC
1063INSTALL_DATA
1064INSTALL_SCRIPT
1065INSTALL_PROGRAM
1066libext
1067AR
1068EGREP
1069GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001070SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001071CURL_CFLAG_EXTRAS
1072CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001073AM_BACKSLASH
1074AM_DEFAULT_VERBOSITY
1075AM_DEFAULT_V
1076AM_V
1077MAINT
1078MAINTAINER_MODE_FALSE
1079MAINTAINER_MODE_TRUE
1080target_alias
1081host_alias
1082build_alias
1083LIBS
1084ECHO_T
1085ECHO_N
1086ECHO_C
1087DEFS
1088mandir
1089localedir
1090libdir
1091psdir
1092pdfdir
1093dvidir
1094htmldir
1095infodir
1096docdir
1097oldincludedir
1098includedir
1099runstatedir
1100localstatedir
1101sharedstatedir
1102sysconfdir
1103datadir
1104datarootdir
1105libexecdir
1106sbindir
1107bindir
1108program_transform_name
1109prefix
1110exec_prefix
1111PACKAGE_URL
1112PACKAGE_BUGREPORT
1113PACKAGE_STRING
1114PACKAGE_VERSION
1115PACKAGE_TARNAME
1116PACKAGE_NAME
1117SHELL
1118PATH_SEPARATOR'
1119ac_subst_files=''
1120ac_user_opts='
1121enable_option_checking
1122enable_maintainer_mode
1123enable_silent_rules
1124enable_debug
1125enable_optimize
1126enable_warnings
1127enable_werror
1128enable_curldebug
1129enable_symbol_hiding
1130enable_hidden_symbols
1131enable_ares
1132enable_rt
1133with_gcov
1134enable_code_coverage
1135enable_dependency_tracking
1136enable_largefile
1137enable_shared
1138enable_static
1139with_pic
1140enable_fast_install
1141with_aix_soname
1142with_gnu_ld
1143with_sysroot
1144enable_libtool_lock
1145enable_http
1146enable_ftp
1147enable_file
1148enable_ldap
1149enable_ldaps
1150enable_rtsp
1151enable_proxy
1152enable_dict
1153enable_telnet
1154enable_tftp
1155enable_pop3
1156enable_imap
1157enable_smb
1158enable_smtp
1159enable_gopher
1160enable_manual
1161enable_libcurl_option
1162enable_libgcc
1163with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001164with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001165with_ldap_lib
1166with_lber_lib
1167enable_ipv6
1168with_gssapi_includes
1169with_gssapi_libs
1170with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001171with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001172with_winssl
1173with_darwinssl
1174with_ssl
1175with_egd_socket
1176with_random
1177with_gnutls
1178with_polarssl
1179with_mbedtls
1180with_cyassl
1181with_nss
1182with_axtls
1183with_ca_bundle
1184with_ca_path
1185with_ca_fallback
1186with_libpsl
1187with_libmetalink
1188with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001189with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001190with_librtmp
1191enable_versioned_symbols
1192with_winidn
1193with_libidn2
1194with_nghttp2
1195with_zsh_functions_dir
1196enable_threaded_resolver
1197enable_pthreads
1198enable_verbose
1199enable_sspi
1200enable_crypto_auth
1201enable_ntlm_wb
1202enable_tls_srp
1203enable_unix_sockets
1204enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001205'
1206 ac_precious_vars='build_alias
1207host_alias
1208target_alias
1209CC
1210CFLAGS
1211LDFLAGS
1212LIBS
1213CPPFLAGS
1214CPP
1215LT_SYS_LIBRARY_PATH'
1216ac_subdirs_all='ares'
1217
1218# Initialize some variables set by options.
1219ac_init_help=
1220ac_init_version=false
1221ac_unrecognized_opts=
1222ac_unrecognized_sep=
1223# The variables have the same names as the options, with
1224# dashes changed to underlines.
1225cache_file=/dev/null
1226exec_prefix=NONE
1227no_create=
1228no_recursion=
1229prefix=NONE
1230program_prefix=NONE
1231program_suffix=NONE
1232program_transform_name=s,x,x,
1233silent=
1234site=
1235srcdir=
1236verbose=
1237x_includes=NONE
1238x_libraries=NONE
1239
1240# Installation directory options.
1241# These are left unexpanded so users can "make install exec_prefix=/foo"
1242# and all the variables that are supposed to be based on exec_prefix
1243# by default will actually change.
1244# Use braces instead of parens because sh, perl, etc. also accept them.
1245# (The list follows the same order as the GNU Coding Standards.)
1246bindir='${exec_prefix}/bin'
1247sbindir='${exec_prefix}/sbin'
1248libexecdir='${exec_prefix}/libexec'
1249datarootdir='${prefix}/share'
1250datadir='${datarootdir}'
1251sysconfdir='${prefix}/etc'
1252sharedstatedir='${prefix}/com'
1253localstatedir='${prefix}/var'
1254runstatedir='${localstatedir}/run'
1255includedir='${prefix}/include'
1256oldincludedir='/usr/include'
1257docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1258infodir='${datarootdir}/info'
1259htmldir='${docdir}'
1260dvidir='${docdir}'
1261pdfdir='${docdir}'
1262psdir='${docdir}'
1263libdir='${exec_prefix}/lib'
1264localedir='${datarootdir}/locale'
1265mandir='${datarootdir}/man'
1266
1267ac_prev=
1268ac_dashdash=
1269for ac_option
1270do
1271 # If the previous option needs an argument, assign it.
1272 if test -n "$ac_prev"; then
1273 eval $ac_prev=\$ac_option
1274 ac_prev=
1275 continue
1276 fi
1277
1278 case $ac_option in
1279 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1280 *=) ac_optarg= ;;
1281 *) ac_optarg=yes ;;
1282 esac
1283
1284 # Accept the important Cygnus configure options, so we can diagnose typos.
1285
1286 case $ac_dashdash$ac_option in
1287 --)
1288 ac_dashdash=yes ;;
1289
1290 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1291 ac_prev=bindir ;;
1292 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1293 bindir=$ac_optarg ;;
1294
1295 -build | --build | --buil | --bui | --bu)
1296 ac_prev=build_alias ;;
1297 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1298 build_alias=$ac_optarg ;;
1299
1300 -cache-file | --cache-file | --cache-fil | --cache-fi \
1301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1302 ac_prev=cache_file ;;
1303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1305 cache_file=$ac_optarg ;;
1306
1307 --config-cache | -C)
1308 cache_file=config.cache ;;
1309
1310 -datadir | --datadir | --datadi | --datad)
1311 ac_prev=datadir ;;
1312 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1313 datadir=$ac_optarg ;;
1314
1315 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1316 | --dataroo | --dataro | --datar)
1317 ac_prev=datarootdir ;;
1318 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1319 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1320 datarootdir=$ac_optarg ;;
1321
1322 -disable-* | --disable-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid feature name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"enable_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval enable_$ac_useropt=no ;;
1337
1338 -docdir | --docdir | --docdi | --doc | --do)
1339 ac_prev=docdir ;;
1340 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1341 docdir=$ac_optarg ;;
1342
1343 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1344 ac_prev=dvidir ;;
1345 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1346 dvidir=$ac_optarg ;;
1347
1348 -enable-* | --enable-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error $? "invalid feature name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1356 *"
1357"enable_$ac_useropt"
1358"*) ;;
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1361 esac
1362 eval enable_$ac_useropt=\$ac_optarg ;;
1363
1364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1366 | --exec | --exe | --ex)
1367 ac_prev=exec_prefix ;;
1368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1370 | --exec=* | --exe=* | --ex=*)
1371 exec_prefix=$ac_optarg ;;
1372
1373 -gas | --gas | --ga | --g)
1374 # Obsolete; use --with-gas.
1375 with_gas=yes ;;
1376
1377 -help | --help | --hel | --he | -h)
1378 ac_init_help=long ;;
1379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1380 ac_init_help=recursive ;;
1381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1382 ac_init_help=short ;;
1383
1384 -host | --host | --hos | --ho)
1385 ac_prev=host_alias ;;
1386 -host=* | --host=* | --hos=* | --ho=*)
1387 host_alias=$ac_optarg ;;
1388
1389 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1390 ac_prev=htmldir ;;
1391 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1392 | --ht=*)
1393 htmldir=$ac_optarg ;;
1394
1395 -includedir | --includedir | --includedi | --included | --include \
1396 | --includ | --inclu | --incl | --inc)
1397 ac_prev=includedir ;;
1398 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1399 | --includ=* | --inclu=* | --incl=* | --inc=*)
1400 includedir=$ac_optarg ;;
1401
1402 -infodir | --infodir | --infodi | --infod | --info | --inf)
1403 ac_prev=infodir ;;
1404 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1405 infodir=$ac_optarg ;;
1406
1407 -libdir | --libdir | --libdi | --libd)
1408 ac_prev=libdir ;;
1409 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1410 libdir=$ac_optarg ;;
1411
1412 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1413 | --libexe | --libex | --libe)
1414 ac_prev=libexecdir ;;
1415 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1416 | --libexe=* | --libex=* | --libe=*)
1417 libexecdir=$ac_optarg ;;
1418
1419 -localedir | --localedir | --localedi | --localed | --locale)
1420 ac_prev=localedir ;;
1421 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1422 localedir=$ac_optarg ;;
1423
1424 -localstatedir | --localstatedir | --localstatedi | --localstated \
1425 | --localstate | --localstat | --localsta | --localst | --locals)
1426 ac_prev=localstatedir ;;
1427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1428 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1429 localstatedir=$ac_optarg ;;
1430
1431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1432 ac_prev=mandir ;;
1433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1434 mandir=$ac_optarg ;;
1435
1436 -nfp | --nfp | --nf)
1437 # Obsolete; use --without-fp.
1438 with_fp=no ;;
1439
1440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1441 | --no-cr | --no-c | -n)
1442 no_create=yes ;;
1443
1444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1446 no_recursion=yes ;;
1447
1448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1450 | --oldin | --oldi | --old | --ol | --o)
1451 ac_prev=oldincludedir ;;
1452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1455 oldincludedir=$ac_optarg ;;
1456
1457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1458 ac_prev=prefix ;;
1459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1460 prefix=$ac_optarg ;;
1461
1462 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1463 | --program-pre | --program-pr | --program-p)
1464 ac_prev=program_prefix ;;
1465 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1467 program_prefix=$ac_optarg ;;
1468
1469 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1470 | --program-suf | --program-su | --program-s)
1471 ac_prev=program_suffix ;;
1472 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1474 program_suffix=$ac_optarg ;;
1475
1476 -program-transform-name | --program-transform-name \
1477 | --program-transform-nam | --program-transform-na \
1478 | --program-transform-n | --program-transform- \
1479 | --program-transform | --program-transfor \
1480 | --program-transfo | --program-transf \
1481 | --program-trans | --program-tran \
1482 | --progr-tra | --program-tr | --program-t)
1483 ac_prev=program_transform_name ;;
1484 -program-transform-name=* | --program-transform-name=* \
1485 | --program-transform-nam=* | --program-transform-na=* \
1486 | --program-transform-n=* | --program-transform-=* \
1487 | --program-transform=* | --program-transfor=* \
1488 | --program-transfo=* | --program-transf=* \
1489 | --program-trans=* | --program-tran=* \
1490 | --progr-tra=* | --program-tr=* | --program-t=*)
1491 program_transform_name=$ac_optarg ;;
1492
1493 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1494 ac_prev=pdfdir ;;
1495 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1496 pdfdir=$ac_optarg ;;
1497
1498 -psdir | --psdir | --psdi | --psd | --ps)
1499 ac_prev=psdir ;;
1500 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1501 psdir=$ac_optarg ;;
1502
1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504 | -silent | --silent | --silen | --sile | --sil)
1505 silent=yes ;;
1506
1507 -runstatedir | --runstatedir | --runstatedi | --runstated \
1508 | --runstate | --runstat | --runsta | --runst | --runs \
1509 | --run | --ru | --r)
1510 ac_prev=runstatedir ;;
1511 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1512 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1513 | --run=* | --ru=* | --r=*)
1514 runstatedir=$ac_optarg ;;
1515
1516 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1517 ac_prev=sbindir ;;
1518 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1519 | --sbi=* | --sb=*)
1520 sbindir=$ac_optarg ;;
1521
1522 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1523 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1524 | --sharedst | --shareds | --shared | --share | --shar \
1525 | --sha | --sh)
1526 ac_prev=sharedstatedir ;;
1527 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1528 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1529 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1530 | --sha=* | --sh=*)
1531 sharedstatedir=$ac_optarg ;;
1532
1533 -site | --site | --sit)
1534 ac_prev=site ;;
1535 -site=* | --site=* | --sit=*)
1536 site=$ac_optarg ;;
1537
1538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1539 ac_prev=srcdir ;;
1540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1541 srcdir=$ac_optarg ;;
1542
1543 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1544 | --syscon | --sysco | --sysc | --sys | --sy)
1545 ac_prev=sysconfdir ;;
1546 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1547 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1548 sysconfdir=$ac_optarg ;;
1549
1550 -target | --target | --targe | --targ | --tar | --ta | --t)
1551 ac_prev=target_alias ;;
1552 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1553 target_alias=$ac_optarg ;;
1554
1555 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1556 verbose=yes ;;
1557
1558 -version | --version | --versio | --versi | --vers | -V)
1559 ac_init_version=: ;;
1560
1561 -with-* | --with-*)
1562 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1563 # Reject names that are not valid shell variable names.
1564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1565 as_fn_error $? "invalid package name: $ac_useropt"
1566 ac_useropt_orig=$ac_useropt
1567 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1568 case $ac_user_opts in
1569 *"
1570"with_$ac_useropt"
1571"*) ;;
1572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1573 ac_unrecognized_sep=', ';;
1574 esac
1575 eval with_$ac_useropt=\$ac_optarg ;;
1576
1577 -without-* | --without-*)
1578 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1579 # Reject names that are not valid shell variable names.
1580 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1581 as_fn_error $? "invalid package name: $ac_useropt"
1582 ac_useropt_orig=$ac_useropt
1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1584 case $ac_user_opts in
1585 *"
1586"with_$ac_useropt"
1587"*) ;;
1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1589 ac_unrecognized_sep=', ';;
1590 esac
1591 eval with_$ac_useropt=no ;;
1592
1593 --x)
1594 # Obsolete; use --with-x.
1595 with_x=yes ;;
1596
1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1598 | --x-incl | --x-inc | --x-in | --x-i)
1599 ac_prev=x_includes ;;
1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1602 x_includes=$ac_optarg ;;
1603
1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1606 ac_prev=x_libraries ;;
1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1609 x_libraries=$ac_optarg ;;
1610
1611 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1612Try \`$0 --help' for more information"
1613 ;;
1614
1615 *=*)
1616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1617 # Reject names that are not valid shell variable names.
1618 case $ac_envvar in #(
1619 '' | [0-9]* | *[!_$as_cr_alnum]* )
1620 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1621 esac
1622 eval $ac_envvar=\$ac_optarg
1623 export $ac_envvar ;;
1624
1625 *)
1626 # FIXME: should be removed in autoconf 3.0.
1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1630 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1631 ;;
1632
1633 esac
1634done
1635
1636if test -n "$ac_prev"; then
1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1638 as_fn_error $? "missing argument to $ac_option"
1639fi
1640
1641if test -n "$ac_unrecognized_opts"; then
1642 case $enable_option_checking in
1643 no) ;;
1644 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1645 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1646 esac
1647fi
1648
1649# Check all directory arguments for consistency.
1650for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1651 datadir sysconfdir sharedstatedir localstatedir includedir \
1652 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1653 libdir localedir mandir runstatedir
1654do
1655 eval ac_val=\$$ac_var
1656 # Remove trailing slashes.
1657 case $ac_val in
1658 */ )
1659 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1660 eval $ac_var=\$ac_val;;
1661 esac
1662 # Be sure to have absolute directory names.
1663 case $ac_val in
1664 [\\/$]* | ?:[\\/]* ) continue;;
1665 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1666 esac
1667 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1668done
1669
1670# There might be people who depend on the old broken behavior: `$host'
1671# used to hold the argument of --host etc.
1672# FIXME: To remove some day.
1673build=$build_alias
1674host=$host_alias
1675target=$target_alias
1676
1677# FIXME: To remove some day.
1678if test "x$host_alias" != x; then
1679 if test "x$build_alias" = x; then
1680 cross_compiling=maybe
1681 elif test "x$build_alias" != "x$host_alias"; then
1682 cross_compiling=yes
1683 fi
1684fi
1685
1686ac_tool_prefix=
1687test -n "$host_alias" && ac_tool_prefix=$host_alias-
1688
1689test "$silent" = yes && exec 6>/dev/null
1690
1691
1692ac_pwd=`pwd` && test -n "$ac_pwd" &&
1693ac_ls_di=`ls -di .` &&
1694ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1695 as_fn_error $? "working directory cannot be determined"
1696test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1697 as_fn_error $? "pwd does not report name of working directory"
1698
1699
1700# Find the source files, if location was not specified.
1701if test -z "$srcdir"; then
1702 ac_srcdir_defaulted=yes
1703 # Try the directory containing this script, then the parent directory.
1704 ac_confdir=`$as_dirname -- "$as_myself" ||
1705$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1706 X"$as_myself" : 'X\(//\)[^/]' \| \
1707 X"$as_myself" : 'X\(//\)$' \| \
1708 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1709$as_echo X"$as_myself" |
1710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1711 s//\1/
1712 q
1713 }
1714 /^X\(\/\/\)[^/].*/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)$/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\).*/{
1723 s//\1/
1724 q
1725 }
1726 s/.*/./; q'`
1727 srcdir=$ac_confdir
1728 if test ! -r "$srcdir/$ac_unique_file"; then
1729 srcdir=..
1730 fi
1731else
1732 ac_srcdir_defaulted=no
1733fi
1734if test ! -r "$srcdir/$ac_unique_file"; then
1735 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1736 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1737fi
1738ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1739ac_abs_confdir=`(
1740 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1741 pwd)`
1742# When building in place, set srcdir=.
1743if test "$ac_abs_confdir" = "$ac_pwd"; then
1744 srcdir=.
1745fi
1746# Remove unnecessary trailing slashes from srcdir.
1747# Double slashes in file names in object file debugging info
1748# mess up M-x gdb in Emacs.
1749case $srcdir in
1750*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1751esac
1752for ac_var in $ac_precious_vars; do
1753 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_env_${ac_var}_value=\$${ac_var}
1755 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1756 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1757done
1758
1759#
1760# Report the --help message.
1761#
1762if test "$ac_init_help" = "long"; then
1763 # Omit some internal or obsolete options to make the list less imposing.
1764 # This message is too long to be a string in the A/UX 3.1 sh.
1765 cat <<_ACEOF
1766\`configure' configures curl - to adapt to many kinds of systems.
1767
1768Usage: $0 [OPTION]... [VAR=VALUE]...
1769
1770To assign environment variables (e.g., CC, CFLAGS...), specify them as
1771VAR=VALUE. See below for descriptions of some of the useful variables.
1772
1773Defaults for the options are specified in brackets.
1774
1775Configuration:
1776 -h, --help display this help and exit
1777 --help=short display options specific to this package
1778 --help=recursive display the short help of all the included packages
1779 -V, --version display version information and exit
1780 -q, --quiet, --silent do not print \`checking ...' messages
1781 --cache-file=FILE cache test results in FILE [disabled]
1782 -C, --config-cache alias for \`--cache-file=config.cache'
1783 -n, --no-create do not create output files
1784 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1785
1786Installation directories:
1787 --prefix=PREFIX install architecture-independent files in PREFIX
1788 [$ac_default_prefix]
1789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1790 [PREFIX]
1791
1792By default, \`make install' will install all the files in
1793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1795for instance \`--prefix=\$HOME'.
1796
1797For better control, use the options below.
1798
1799Fine tuning of the installation directories:
1800 --bindir=DIR user executables [EPREFIX/bin]
1801 --sbindir=DIR system admin executables [EPREFIX/sbin]
1802 --libexecdir=DIR program executables [EPREFIX/libexec]
1803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1805 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1806 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1807 --libdir=DIR object code libraries [EPREFIX/lib]
1808 --includedir=DIR C header files [PREFIX/include]
1809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1812 --infodir=DIR info documentation [DATAROOTDIR/info]
1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1814 --mandir=DIR man documentation [DATAROOTDIR/man]
1815 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1816 --htmldir=DIR html documentation [DOCDIR]
1817 --dvidir=DIR dvi documentation [DOCDIR]
1818 --pdfdir=DIR pdf documentation [DOCDIR]
1819 --psdir=DIR ps documentation [DOCDIR]
1820_ACEOF
1821
1822 cat <<\_ACEOF
1823
1824Program names:
1825 --program-prefix=PREFIX prepend PREFIX to installed program names
1826 --program-suffix=SUFFIX append SUFFIX to installed program names
1827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832_ACEOF
1833fi
1834
1835if test -n "$ac_init_help"; then
1836 case $ac_init_help in
1837 short | recursive ) echo "Configuration of curl -:";;
1838 esac
1839 cat <<\_ACEOF
1840
1841Optional Features:
1842 --disable-option-checking ignore unrecognized --enable/--with options
1843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1845 --enable-maintainer-mode
1846 enable make rules and dependencies not useful (and
1847 sometimes confusing) to the casual installer
1848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-debug Enable debug build options
1851 --disable-debug Disable debug build options
1852 --enable-optimize Enable compiler optimizations
1853 --disable-optimize Disable compiler optimizations
1854 --enable-warnings Enable strict compiler warnings
1855 --disable-warnings Disable strict compiler warnings
1856 --enable-werror Enable compiler warnings as errors
1857 --disable-werror Disable compiler warnings as errors
1858 --enable-curldebug Enable curl debug memory tracking
1859 --disable-curldebug Disable curl debug memory tracking
1860 --enable-symbol-hiding Enable hiding of library internal symbols
1861 --disable-symbol-hiding Disable hiding of library internal symbols
1862 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1863 --disable-hidden-symbols
1864 To be deprecated, use --disable-symbol-hiding
1865 --enable-ares[=PATH] Enable c-ares for DNS lookups
1866 --disable-ares Disable c-ares for DNS lookups
1867 --disable-rt disable dependency on -lrt
1868 --enable-code-coverage Whether to enable code coverage support
1869 --enable-dependency-tracking
1870 do not reject slow dependency extractors
1871 --disable-dependency-tracking
1872 speeds up one-time build
1873 --disable-largefile omit support for large files
1874 --enable-shared[=PKGS] build shared libraries [default=yes]
1875 --enable-static[=PKGS] build static libraries [default=yes]
1876 --enable-fast-install[=PKGS]
1877 optimize for fast installation [default=yes]
1878 --disable-libtool-lock avoid locking (might break parallel builds)
1879 --enable-http Enable HTTP support
1880 --disable-http Disable HTTP support
1881 --enable-ftp Enable FTP support
1882 --disable-ftp Disable FTP support
1883 --enable-file Enable FILE support
1884 --disable-file Disable FILE support
1885 --enable-ldap Enable LDAP support
1886 --disable-ldap Disable LDAP support
1887 --enable-ldaps Enable LDAPS support
1888 --disable-ldaps Disable LDAPS support
1889 --enable-rtsp Enable RTSP support
1890 --disable-rtsp Disable RTSP support
1891 --enable-proxy Enable proxy support
1892 --disable-proxy Disable proxy support
1893 --enable-dict Enable DICT support
1894 --disable-dict Disable DICT support
1895 --enable-telnet Enable TELNET support
1896 --disable-telnet Disable TELNET support
1897 --enable-tftp Enable TFTP support
1898 --disable-tftp Disable TFTP support
1899 --enable-pop3 Enable POP3 support
1900 --disable-pop3 Disable POP3 support
1901 --enable-imap Enable IMAP support
1902 --disable-imap Disable IMAP support
1903 --enable-smb Enable SMB/CIFS support
1904 --disable-smb Disable SMB/CIFS support
1905 --enable-smtp Enable SMTP support
1906 --disable-smtp Disable SMTP support
1907 --enable-gopher Enable Gopher support
1908 --disable-gopher Disable Gopher support
1909 --enable-manual Enable built-in manual
1910 --disable-manual Disable built-in manual
1911 --enable-libcurl-option Enable --libcurl C code generation support
1912 --disable-libcurl-option
1913 Disable --libcurl C code generation support
1914 --enable-libgcc use libgcc when linking
1915 --enable-ipv6 Enable IPv6 (with IPv4) support
1916 --disable-ipv6 Disable IPv6 support
1917 --enable-versioned-symbols
1918 Enable versioned symbols in shared library
1919 --disable-versioned-symbols
1920 Disable versioned symbols in shared library
1921 --enable-threaded-resolver
1922 Enable threaded resolver
1923 --disable-threaded-resolver
1924 Disable threaded resolver
1925 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1926 --disable-pthreads Disable POSIX threads
1927 --enable-verbose Enable verbose strings
1928 --disable-verbose Disable verbose strings
1929 --enable-sspi Enable SSPI
1930 --disable-sspi Disable SSPI
1931 --enable-crypto-auth Enable cryptographic authentication
1932 --disable-crypto-auth Disable cryptographic authentication
1933 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1934 helper, where FILE is ntlm_auth's absolute filename
1935 (default: /usr/bin/ntlm_auth)
1936 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1937 helper
1938 --enable-tls-srp Enable TLS-SRP authentication
1939 --disable-tls-srp Disable TLS-SRP authentication
1940 --enable-unix-sockets Enable Unix domain sockets
1941 --disable-unix-sockets Disable Unix domain sockets
1942 --enable-cookies Enable cookies support
1943 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001944
1945Optional Packages:
1946 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1947 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1948 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1949 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1950 both]
1951 --with-aix-soname=aix|svr4|both
1952 shared library versioning (aka "SONAME") variant to
1953 provide on AIX, [default=aix].
1954 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1955 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1956 compiler's sysroot if not specified).
1957 --with-zlib=PATH search for zlib in PATH
1958 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001959 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1960 installation; when possible, set the PKG_CONFIG_PATH
1961 environment variable instead of using this option
1962 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001963 --with-ldap-lib=libname Specify name of ldap lib file
1964 --with-lber-lib=libname Specify name of lber lib file
1965 --with-gssapi-includes=DIR
1966 Specify location of GSS-API headers
1967 --with-gssapi-libs=DIR Specify location of GSS-API libs
1968 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001969 --with-default-ssl-backend=NAME
1970 Use NAME as default SSL backend
1971 --without-default-ssl-backend
1972 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001973 --with-winssl enable Windows native SSL/TLS
1974 --without-winssl disable Windows native SSL/TLS
1975 --with-darwinssl enable Apple OS native SSL/TLS
1976 --without-darwinssl disable Apple OS native SSL/TLS
1977 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1978 installation (default: /usr/local/ssl); when
1979 possible, set the PKG_CONFIG_PATH environment
1980 variable instead of using this option
1981 --without-ssl disable OpenSSL
1982 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1983 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1984 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1985 installation root
1986 --without-gnutls disable GnuTLS detection
1987 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1988 installation root
1989 --without-polarssl disable PolarSSL detection
1990 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1991 installation root
1992 --without-mbedtls disable mbedTLS detection
1993 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1994 installation root (default: system lib default)
1995 --without-cyassl disable CyaSSL detection
1996 --with-nss=PATH where to look for NSS, PATH points to the
1997 installation root
1998 --without-nss disable NSS detection
1999 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2000 installation prefix (default: /usr/local). Ignored
2001 if another SSL engine is selected.
2002 --without-axtls disable axTLS
2003 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2004 /etc/ca-bundle.crt)
2005 --without-ca-bundle Don't use a default CA bundle
2006 --with-ca-path=DIRECTORY
2007 Path to a directory containing CA certificates
2008 stored individually, with their filenames in a hash
2009 format. This option can be used with OpenSSL, GnuTLS
2010 and PolarSSL backends. Refer to OpenSSL c_rehash for
2011 details. (example: /etc/certificates)
2012 --without-ca-path Don't use a default CA path
2013 --with-ca-fallback Use the built in CA store of the SSL library
2014 --without-ca-fallback Don't use the built in CA store of the SSL library
2015 --without-libpsl disable support for libpsl cookie checking
2016 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2017 installation root
2018 --without-libmetalink disable libmetalink detection
2019 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2020 LIBSSH2 installation; when possible, set the
2021 PKG_CONFIG_PATH environment variable instead of
2022 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002023 --with-libssh2 enable LIBSSH2
2024 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2025 installation; when possible, set the PKG_CONFIG_PATH
2026 environment variable instead of using this option
2027 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002028 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2029 LIBRTMP installation; when possible, set the
2030 PKG_CONFIG_PATH environment variable instead of
2031 using this option
2032 --without-librtmp disable LIBRTMP
2033 --with-winidn=PATH enable Windows native IDN
2034 --without-winidn disable Windows native IDN
2035 --with-libidn2=PATH Enable libidn2 usage
2036 --without-libidn2 Disable libidn2 usage
2037 --with-nghttp2=PATH Enable nghttp2 usage
2038 --without-nghttp2 Disable nghttp2 usage
2039 --with-zsh-functions-dir=PATH
2040 Install zsh completions to PATH
2041 --without-zsh-functions-dir
2042 Do not install zsh completions
2043
2044Some influential environment variables:
2045 CC C compiler command
2046 CFLAGS C compiler flags
2047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2048 nonstandard directory <lib dir>
2049 LIBS libraries to pass to the linker, e.g. -l<library>
2050 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2051 you have headers in a nonstandard directory <include dir>
2052 CPP C preprocessor
2053 LT_SYS_LIBRARY_PATH
2054 User-defined run-time library search path.
2055
2056Use these variables to override the choices made by `configure' or to help
2057it to find libraries and programs with nonstandard names/locations.
2058
2059Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2060_ACEOF
2061ac_status=$?
2062fi
2063
2064if test "$ac_init_help" = "recursive"; then
2065 # If there are subdirs, report their specific --help.
2066 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2067 test -d "$ac_dir" ||
2068 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2069 continue
2070 ac_builddir=.
2071
2072case "$ac_dir" in
2073.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2074*)
2075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2076 # A ".." for each directory in $ac_dir_suffix.
2077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2078 case $ac_top_builddir_sub in
2079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2081 esac ;;
2082esac
2083ac_abs_top_builddir=$ac_pwd
2084ac_abs_builddir=$ac_pwd$ac_dir_suffix
2085# for backward compatibility:
2086ac_top_builddir=$ac_top_build_prefix
2087
2088case $srcdir in
2089 .) # We are building in place.
2090 ac_srcdir=.
2091 ac_top_srcdir=$ac_top_builddir_sub
2092 ac_abs_top_srcdir=$ac_pwd ;;
2093 [\\/]* | ?:[\\/]* ) # Absolute name.
2094 ac_srcdir=$srcdir$ac_dir_suffix;
2095 ac_top_srcdir=$srcdir
2096 ac_abs_top_srcdir=$srcdir ;;
2097 *) # Relative name.
2098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2099 ac_top_srcdir=$ac_top_build_prefix$srcdir
2100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2101esac
2102ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2103
2104 cd "$ac_dir" || { ac_status=$?; continue; }
2105 # Check for guested configure.
2106 if test -f "$ac_srcdir/configure.gnu"; then
2107 echo &&
2108 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2109 elif test -f "$ac_srcdir/configure"; then
2110 echo &&
2111 $SHELL "$ac_srcdir/configure" --help=recursive
2112 else
2113 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2114 fi || ac_status=$?
2115 cd "$ac_pwd" || { ac_status=$?; break; }
2116 done
2117fi
2118
2119test -n "$ac_init_help" && exit $ac_status
2120if $ac_init_version; then
2121 cat <<\_ACEOF
2122curl configure -
2123generated by GNU Autoconf 2.69
2124
2125Copyright (C) 2012 Free Software Foundation, Inc.
2126This configure script is free software; the Free Software Foundation
2127gives unlimited permission to copy, distribute and modify it.
2128
2129Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2130This configure script may be copied, distributed and modified under the
2131terms of the curl license; see COPYING for more details
2132_ACEOF
2133 exit
2134fi
2135
2136## ------------------------ ##
2137## Autoconf initialization. ##
2138## ------------------------ ##
2139
2140# ac_fn_c_try_compile LINENO
2141# --------------------------
2142# Try to compile conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_c_try_compile ()
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext
2147 if { { ac_try="$ac_compile"
2148case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151esac
2152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153$as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_compile") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2160 fi
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_c_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest.$ac_objext; then :
2166 ac_retval=0
2167else
2168 $as_echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172fi
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2175
2176} # ac_fn_c_try_compile
2177
2178# ac_fn_c_try_cpp LINENO
2179# ----------------------
2180# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2181ac_fn_c_try_cpp ()
2182{
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_cpp conftest.$ac_ext"
2185case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188esac
2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190$as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2192 ac_status=$?
2193 if test -s conftest.err; then
2194 grep -v '^ *+' conftest.err >conftest.er1
2195 cat conftest.er1 >&5
2196 mv -f conftest.er1 conftest.err
2197 fi
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } > conftest.i && {
2200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2201 test ! -s conftest.err
2202 }; then :
2203 ac_retval=0
2204else
2205 $as_echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 ac_retval=1
2209fi
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 as_fn_set_status $ac_retval
2212
2213} # ac_fn_c_try_cpp
2214
Alex Deymo486467e2017-12-19 19:04:07 +01002215# ac_fn_c_try_link LINENO
2216# -----------------------
2217# Try to link conftest.$ac_ext, and return whether this succeeded.
2218ac_fn_c_try_link ()
2219{
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 rm -f conftest.$ac_objext conftest$ac_exeext
2222 if { { ac_try="$ac_link"
2223case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228$as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_link") 2>conftest.err
2230 ac_status=$?
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2235 fi
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && {
2238 test -z "$ac_c_werror_flag" ||
2239 test ! -s conftest.err
2240 } && test -s conftest$ac_exeext && {
2241 test "$cross_compiling" = yes ||
2242 test -x conftest$ac_exeext
2243 }; then :
2244 ac_retval=0
2245else
2246 $as_echo "$as_me: failed program was:" >&5
2247sed 's/^/| /' conftest.$ac_ext >&5
2248
2249 ac_retval=1
2250fi
2251 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2252 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2253 # interfere with the next link command; also delete a directory that is
2254 # left behind by Apple's compiler. We do this before executing the actions.
2255 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2258
2259} # ac_fn_c_try_link
2260
Elliott Hughes82be86d2017-09-20 17:00:17 -07002261# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2262# -------------------------------------------------------
2263# Tests whether HEADER exists and can be compiled using the include files in
2264# INCLUDES, setting the cache variable VAR accordingly.
2265ac_fn_c_check_header_compile ()
2266{
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269$as_echo_n "checking for $2... " >&6; }
2270if eval \${$3+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h. */
2275$4
2276#include <$2>
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279 eval "$3=yes"
2280else
2281 eval "$3=no"
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287$as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289
2290} # ac_fn_c_check_header_compile
2291
2292# ac_fn_c_try_run LINENO
2293# ----------------------
2294# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2295# that executables *can* be run.
2296ac_fn_c_try_run ()
2297{
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if { { ac_try="$ac_link"
2300case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2310 { { case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315$as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_try") 2>&5
2317 ac_status=$?
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; }; }; then :
2320 ac_retval=0
2321else
2322 $as_echo "$as_me: program exited with status $ac_status" >&5
2323 $as_echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 ac_retval=$ac_status
2327fi
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 as_fn_set_status $ac_retval
2331
2332} # ac_fn_c_try_run
2333
Alex Deymo486467e2017-12-19 19:04:07 +01002334# ac_fn_c_check_func LINENO FUNC VAR
2335# ----------------------------------
2336# Tests whether FUNC exists, setting the cache variable VAR accordingly
2337ac_fn_c_check_func ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
2342if eval \${$3+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347
2348#define $2 innocuous_$2
2349#ifdef __STDC__
2350# include <limits.h>
2351#else
2352# include <assert.h>
2353#endif
2354#undef $2
2355#ifdef __cplusplus
2356extern "C"
2357#endif
2358char $2 ();
2359#if defined __stub_$2 || defined __stub___$2
2360choke me
2361#endif
2362
2363int main (void)
2364{
2365return $2 ();
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_link "$LINENO"; then :
2371 eval "$3=yes"
2372else
2373 eval "$3=no"
2374fi
2375rm -f core conftest.err conftest.$ac_objext \
2376 conftest$ac_exeext conftest.$ac_ext
2377fi
2378eval ac_res=\$$3
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2380$as_echo "$ac_res" >&6; }
2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382
2383} # ac_fn_c_check_func
2384
2385# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2386# -------------------------------------------------------
2387# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2388# the include files in INCLUDES and setting the cache variable VAR
2389# accordingly.
2390ac_fn_c_check_header_mongrel ()
2391{
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 if eval \${$3+:} false; then :
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395$as_echo_n "checking for $2... " >&6; }
2396if eval \${$3+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398fi
2399eval ac_res=\$$3
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401$as_echo "$ac_res" >&6; }
2402else
2403 # Is the header compilable?
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2405$as_echo_n "checking $2 usability... " >&6; }
2406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407/* end confdefs.h. */
2408$4
2409#include <$2>
2410_ACEOF
2411if ac_fn_c_try_compile "$LINENO"; then :
2412 ac_header_compiler=yes
2413else
2414 ac_header_compiler=no
2415fi
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2418$as_echo "$ac_header_compiler" >&6; }
2419
2420# Is the header present?
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2422$as_echo_n "checking $2 presence... " >&6; }
2423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424/* end confdefs.h. */
2425#include <$2>
2426_ACEOF
2427if ac_fn_c_try_cpp "$LINENO"; then :
2428 ac_header_preproc=yes
2429else
2430 ac_header_preproc=no
2431fi
2432rm -f conftest.err conftest.i conftest.$ac_ext
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2434$as_echo "$ac_header_preproc" >&6; }
2435
2436# So? What about this header?
2437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2438 yes:no: )
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2440$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2442$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2443 ;;
2444 no:yes:* )
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2446$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2448$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2450$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2452$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2454$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2455( $as_echo "## ----------------------------------------------------------------------- ##
2456## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2457## ----------------------------------------------------------------------- ##"
2458 ) | sed "s/^/$as_me: WARNING: /" >&2
2459 ;;
2460esac
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462$as_echo_n "checking for $2... " >&6; }
2463if eval \${$3+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465else
2466 eval "$3=\$ac_header_compiler"
2467fi
2468eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470$as_echo "$ac_res" >&6; }
2471fi
2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473
2474} # ac_fn_c_check_header_mongrel
2475
Elliott Hughes82be86d2017-09-20 17:00:17 -07002476# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2477# --------------------------------------------
2478# Tries to find the compile-time value of EXPR in a program that includes
2479# INCLUDES, setting VAR accordingly. Returns whether the value could be
2480# computed
2481ac_fn_c_compute_int ()
2482{
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if test "$cross_compiling" = yes; then
2485 # Depending upon the size, compute the lo and hi bounds.
2486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487/* end confdefs.h. */
2488$4
2489int main (void)
2490{
2491static int test_array [1 - 2 * !(($2) >= 0)];
2492test_array [0] = 0;
2493return test_array [0];
2494
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_lo=0 ac_mid=0
2501 while :; do
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503/* end confdefs.h. */
2504$4
2505int main (void)
2506{
2507static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2508test_array [0] = 0;
2509return test_array [0];
2510
2511 ;
2512 return 0;
2513}
2514_ACEOF
2515if ac_fn_c_try_compile "$LINENO"; then :
2516 ac_hi=$ac_mid; break
2517else
2518 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2519 if test $ac_lo -le $ac_mid; then
2520 ac_lo= ac_hi=
2521 break
2522 fi
2523 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2524fi
2525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 done
2527else
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529/* end confdefs.h. */
2530$4
2531int main (void)
2532{
2533static int test_array [1 - 2 * !(($2) < 0)];
2534test_array [0] = 0;
2535return test_array [0];
2536
2537 ;
2538 return 0;
2539}
2540_ACEOF
2541if ac_fn_c_try_compile "$LINENO"; then :
2542 ac_hi=-1 ac_mid=-1
2543 while :; do
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h. */
2546$4
2547int main (void)
2548{
2549static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2550test_array [0] = 0;
2551return test_array [0];
2552
2553 ;
2554 return 0;
2555}
2556_ACEOF
2557if ac_fn_c_try_compile "$LINENO"; then :
2558 ac_lo=$ac_mid; break
2559else
2560 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2561 if test $ac_mid -le $ac_hi; then
2562 ac_lo= ac_hi=
2563 break
2564 fi
2565 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568 done
2569else
2570 ac_lo= ac_hi=
2571fi
2572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573fi
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575# Binary search between lo and hi bounds.
2576while test "x$ac_lo" != "x$ac_hi"; do
2577 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581int main (void)
2582{
2583static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2584test_array [0] = 0;
2585return test_array [0];
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591if ac_fn_c_try_compile "$LINENO"; then :
2592 ac_hi=$ac_mid
2593else
2594 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2595fi
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597done
2598case $ac_lo in #((
2599?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600'') ac_retval=1 ;;
2601esac
2602 else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$4
2606static long int longval () { return $2; }
2607static unsigned long int ulongval () { return $2; }
2608#include <stdio.h>
2609#include <stdlib.h>
2610int main (void)
2611{
2612
2613 FILE *f = fopen ("conftest.val", "w");
2614 if (! f)
2615 return 1;
2616 if (($2) < 0)
2617 {
2618 long int i = longval ();
2619 if (i != ($2))
2620 return 1;
2621 fprintf (f, "%ld", i);
2622 }
2623 else
2624 {
2625 unsigned long int i = ulongval ();
2626 if (i != ($2))
2627 return 1;
2628 fprintf (f, "%lu", i);
2629 }
2630 /* Do not output a trailing newline, as this causes \r\n confusion
2631 on some platforms. */
2632 return ferror (f) || fclose (f) != 0;
2633
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638if ac_fn_c_try_run "$LINENO"; then :
2639 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2640else
2641 ac_retval=1
2642fi
2643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2644 conftest.$ac_objext conftest.beam conftest.$ac_ext
2645rm -f conftest.val
2646
2647 fi
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649 as_fn_set_status $ac_retval
2650
2651} # ac_fn_c_compute_int
2652
Elliott Hughes82be86d2017-09-20 17:00:17 -07002653# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2654# -------------------------------------------
2655# Tests whether TYPE exists after having included INCLUDES, setting cache
2656# variable VAR accordingly.
2657ac_fn_c_check_type ()
2658{
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2661$as_echo_n "checking for $2... " >&6; }
2662if eval \${$3+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664else
2665 eval "$3=no"
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668$4
2669int main (void)
2670{
2671if (sizeof ($2))
2672 return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$4
2681int main (void)
2682{
2683if (sizeof (($2)))
2684 return 0;
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689if ac_fn_c_try_compile "$LINENO"; then :
2690
2691else
2692 eval "$3=yes"
2693fi
2694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697fi
2698eval ac_res=\$$3
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700$as_echo "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702
2703} # ac_fn_c_check_type
2704
2705# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2706# ----------------------------------------------------
2707# Tries to find if the field MEMBER exists in type AGGR, after including
2708# INCLUDES, setting cache variable VAR accordingly.
2709ac_fn_c_check_member ()
2710{
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2713$as_echo_n "checking for $2.$3... " >&6; }
2714if eval \${$4+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h. */
2719$5
2720int main (void)
2721{
2722static $2 ac_aggr;
2723if (ac_aggr.$3)
2724return 0;
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_compile "$LINENO"; then :
2730 eval "$4=yes"
2731else
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733/* end confdefs.h. */
2734$5
2735int main (void)
2736{
2737static $2 ac_aggr;
2738if (sizeof ac_aggr.$3)
2739return 0;
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744if ac_fn_c_try_compile "$LINENO"; then :
2745 eval "$4=yes"
2746else
2747 eval "$4=no"
2748fi
2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750fi
2751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752fi
2753eval ac_res=\$$4
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2755$as_echo "$ac_res" >&6; }
2756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2757
2758} # ac_fn_c_check_member
2759cat >config.log <<_ACEOF
2760This file contains any messages produced by compilers while
2761running configure, to aid debugging if configure makes a mistake.
2762
2763It was created by curl $as_me -, which was
2764generated by GNU Autoconf 2.69. Invocation command line was
2765
2766 $ $0 $@
2767
2768_ACEOF
2769exec 5>>config.log
2770{
2771cat <<_ASUNAME
2772## --------- ##
2773## Platform. ##
2774## --------- ##
2775
2776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2777uname -m = `(uname -m) 2>/dev/null || echo unknown`
2778uname -r = `(uname -r) 2>/dev/null || echo unknown`
2779uname -s = `(uname -s) 2>/dev/null || echo unknown`
2780uname -v = `(uname -v) 2>/dev/null || echo unknown`
2781
2782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2784
2785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2792
2793_ASUNAME
2794
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 $as_echo "PATH: $as_dir"
2801 done
2802IFS=$as_save_IFS
2803
2804} >&5
2805
2806cat >&5 <<_ACEOF
2807
2808
2809## ----------- ##
2810## Core tests. ##
2811## ----------- ##
2812
2813_ACEOF
2814
2815
2816# Keep a trace of the command line.
2817# Strip out --no-create and --no-recursion so they do not pile up.
2818# Strip out --silent because we don't want to record it for future runs.
2819# Also quote any args containing shell meta-characters.
2820# Make two passes to allow for proper duplicate-argument suppression.
2821ac_configure_args=
2822ac_configure_args0=
2823ac_configure_args1=
2824ac_must_keep_next=false
2825for ac_pass in 1 2
2826do
2827 for ac_arg
2828 do
2829 case $ac_arg in
2830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2832 | -silent | --silent | --silen | --sile | --sil)
2833 continue ;;
2834 *\'*)
2835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2836 esac
2837 case $ac_pass in
2838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2839 2)
2840 as_fn_append ac_configure_args1 " '$ac_arg'"
2841 if test $ac_must_keep_next = true; then
2842 ac_must_keep_next=false # Got value, back to normal.
2843 else
2844 case $ac_arg in
2845 *=* | --config-cache | -C | -disable-* | --disable-* \
2846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2848 | -with-* | --with-* | -without-* | --without-* | --x)
2849 case "$ac_configure_args0 " in
2850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2851 esac
2852 ;;
2853 -* ) ac_must_keep_next=true ;;
2854 esac
2855 fi
2856 as_fn_append ac_configure_args " '$ac_arg'"
2857 ;;
2858 esac
2859 done
2860done
2861{ ac_configure_args0=; unset ac_configure_args0;}
2862{ ac_configure_args1=; unset ac_configure_args1;}
2863
2864# When interrupted or exit'd, cleanup temporary files, and complete
2865# config.log. We remove comments because anyway the quotes in there
2866# would cause problems or look ugly.
2867# WARNING: Use '\'' to represent an apostrophe within the trap.
2868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2869trap 'exit_status=$?
2870 # Save into config.log some information that might help in debugging.
2871 {
2872 echo
2873
2874 $as_echo "## ---------------- ##
2875## Cache variables. ##
2876## ---------------- ##"
2877 echo
2878 # The following way of writing the cache mishandles newlines in values,
2879(
2880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2881 eval ac_val=\$$ac_var
2882 case $ac_val in #(
2883 *${as_nl}*)
2884 case $ac_var in #(
2885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2887 esac
2888 case $ac_var in #(
2889 _ | IFS | as_nl) ;; #(
2890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2891 *) { eval $ac_var=; unset $ac_var;} ;;
2892 esac ;;
2893 esac
2894 done
2895 (set) 2>&1 |
2896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2897 *${as_nl}ac_space=\ *)
2898 sed -n \
2899 "s/'\''/'\''\\\\'\'''\''/g;
2900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2901 ;; #(
2902 *)
2903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2904 ;;
2905 esac |
2906 sort
2907)
2908 echo
2909
2910 $as_echo "## ----------------- ##
2911## Output variables. ##
2912## ----------------- ##"
2913 echo
2914 for ac_var in $ac_subst_vars
2915 do
2916 eval ac_val=\$$ac_var
2917 case $ac_val in
2918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 esac
2920 $as_echo "$ac_var='\''$ac_val'\''"
2921 done | sort
2922 echo
2923
2924 if test -n "$ac_subst_files"; then
2925 $as_echo "## ------------------- ##
2926## File substitutions. ##
2927## ------------------- ##"
2928 echo
2929 for ac_var in $ac_subst_files
2930 do
2931 eval ac_val=\$$ac_var
2932 case $ac_val in
2933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2934 esac
2935 $as_echo "$ac_var='\''$ac_val'\''"
2936 done | sort
2937 echo
2938 fi
2939
2940 if test -s confdefs.h; then
2941 $as_echo "## ----------- ##
2942## confdefs.h. ##
2943## ----------- ##"
2944 echo
2945 cat confdefs.h
2946 echo
2947 fi
2948 test "$ac_signal" != 0 &&
2949 $as_echo "$as_me: caught signal $ac_signal"
2950 $as_echo "$as_me: exit $exit_status"
2951 } >&5
2952 rm -f core *.core core.conftest.* &&
2953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2954 exit $exit_status
2955' 0
2956for ac_signal in 1 2 13 15; do
2957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2958done
2959ac_signal=0
2960
2961# confdefs.h avoids OS command line length limits that DEFS can exceed.
2962rm -f -r conftest* confdefs.h
2963
2964$as_echo "/* confdefs.h */" > confdefs.h
2965
2966# Predefined preprocessor variables.
2967
2968cat >>confdefs.h <<_ACEOF
2969#define PACKAGE_NAME "$PACKAGE_NAME"
2970_ACEOF
2971
2972cat >>confdefs.h <<_ACEOF
2973#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2974_ACEOF
2975
2976cat >>confdefs.h <<_ACEOF
2977#define PACKAGE_VERSION "$PACKAGE_VERSION"
2978_ACEOF
2979
2980cat >>confdefs.h <<_ACEOF
2981#define PACKAGE_STRING "$PACKAGE_STRING"
2982_ACEOF
2983
2984cat >>confdefs.h <<_ACEOF
2985#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2986_ACEOF
2987
2988cat >>confdefs.h <<_ACEOF
2989#define PACKAGE_URL "$PACKAGE_URL"
2990_ACEOF
2991
2992
2993# Let the site file select an alternate cache file if it wants to.
2994# Prefer an explicitly selected file to automatically selected ones.
2995ac_site_file1=NONE
2996ac_site_file2=NONE
2997if test -n "$CONFIG_SITE"; then
2998 # We do not want a PATH search for config.site.
2999 case $CONFIG_SITE in #((
3000 -*) ac_site_file1=./$CONFIG_SITE;;
3001 */*) ac_site_file1=$CONFIG_SITE;;
3002 *) ac_site_file1=./$CONFIG_SITE;;
3003 esac
3004elif test "x$prefix" != xNONE; then
3005 ac_site_file1=$prefix/share/config.site
3006 ac_site_file2=$prefix/etc/config.site
3007else
3008 ac_site_file1=$ac_default_prefix/share/config.site
3009 ac_site_file2=$ac_default_prefix/etc/config.site
3010fi
3011for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3012do
3013 test "x$ac_site_file" = xNONE && continue
3014 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3016$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3017 sed 's/^/| /' "$ac_site_file" >&5
3018 . "$ac_site_file" \
3019 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021as_fn_error $? "failed to load site script $ac_site_file
3022See \`config.log' for more details" "$LINENO" 5; }
3023 fi
3024done
3025
3026if test -r "$cache_file"; then
3027 # Some versions of bash will fail to source /dev/null (special files
3028 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3029 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3031$as_echo "$as_me: loading cache $cache_file" >&6;}
3032 case $cache_file in
3033 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3034 *) . "./$cache_file";;
3035 esac
3036 fi
3037else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3039$as_echo "$as_me: creating cache $cache_file" >&6;}
3040 >$cache_file
3041fi
3042
3043# Check that the precious variables saved in the cache have kept the same
3044# value.
3045ac_cache_corrupted=false
3046for ac_var in $ac_precious_vars; do
3047 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3048 eval ac_new_set=\$ac_env_${ac_var}_set
3049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3050 eval ac_new_val=\$ac_env_${ac_var}_value
3051 case $ac_old_set,$ac_new_set in
3052 set,)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3054$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3055 ac_cache_corrupted=: ;;
3056 ,set)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3058$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3060 ,);;
3061 *)
3062 if test "x$ac_old_val" != "x$ac_new_val"; then
3063 # differences in whitespace do not lead to failure.
3064 ac_old_val_w=`echo x $ac_old_val`
3065 ac_new_val_w=`echo x $ac_new_val`
3066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3068$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3069 ac_cache_corrupted=:
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3072$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3073 eval $ac_var=\$ac_old_val
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3076$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3078$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3079 fi;;
3080 esac
3081 # Pass precious variables to config.status.
3082 if test "$ac_new_set" = set; then
3083 case $ac_new_val in
3084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3085 *) ac_arg=$ac_var=$ac_new_val ;;
3086 esac
3087 case " $ac_configure_args " in
3088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3090 esac
3091 fi
3092done
3093if $ac_cache_corrupted; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3097$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3098 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3099fi
3100## -------------------- ##
3101## Main body of script. ##
3102## -------------------- ##
3103
3104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110
3111
3112
3113
3114
3115
3116# using curl-override.m4
3117
3118
3119
3120
3121
3122ac_config_headers="$ac_config_headers lib/curl_config.h"
3123
3124
3125
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3127$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3128 # Check whether --enable-maintainer-mode was given.
3129if test "${enable_maintainer_mode+set}" = set; then :
3130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3131else
3132 USE_MAINTAINER_MODE=no
3133fi
3134
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3136$as_echo "$USE_MAINTAINER_MODE" >&6; }
3137 if test $USE_MAINTAINER_MODE = yes; then
3138 MAINTAINER_MODE_TRUE=
3139 MAINTAINER_MODE_FALSE='#'
3140else
3141 MAINTAINER_MODE_TRUE='#'
3142 MAINTAINER_MODE_FALSE=
3143fi
3144
3145 MAINT=$MAINTAINER_MODE_TRUE
3146
3147
3148# Check whether --enable-silent-rules was given.
3149if test "${enable_silent_rules+set}" = set; then :
3150 enableval=$enable_silent_rules;
3151fi
3152
3153case $enable_silent_rules in # (((
3154 yes) AM_DEFAULT_VERBOSITY=0;;
3155 no) AM_DEFAULT_VERBOSITY=1;;
3156 *) AM_DEFAULT_VERBOSITY=0;;
3157esac
3158am_make=${MAKE-make}
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3160$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3161if ${am_cv_make_support_nested_variables+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163else
3164 if $as_echo 'TRUE=$(BAR$(V))
3165BAR0=false
3166BAR1=true
3167V=1
3168am__doit:
3169 @$(TRUE)
3170.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3171 am_cv_make_support_nested_variables=yes
3172else
3173 am_cv_make_support_nested_variables=no
3174fi
3175fi
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3177$as_echo "$am_cv_make_support_nested_variables" >&6; }
3178if test $am_cv_make_support_nested_variables = yes; then
3179 AM_V='$(V)'
3180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3181else
3182 AM_V=$AM_DEFAULT_VERBOSITY
3183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3184fi
3185AM_BACKSLASH='\'
3186
3187
3188
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3190$as_echo_n "checking whether to enable debug build options... " >&6; }
3191 OPT_DEBUG_BUILD="default"
3192 # Check whether --enable-debug was given.
3193if test "${enable_debug+set}" = set; then :
3194 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3195fi
3196
3197 case "$OPT_DEBUG_BUILD" in
3198 no)
3199 want_debug="no"
3200 ;;
3201 default)
3202 want_debug="no"
3203 ;;
3204 *)
3205 want_debug="yes"
3206 ;;
3207 esac
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3209$as_echo "$want_debug" >&6; }
3210
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3213$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3214 OPT_COMPILER_OPTIMIZE="default"
3215 # Check whether --enable-optimize was given.
3216if test "${enable_optimize+set}" = set; then :
3217 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3218fi
3219
3220 case "$OPT_COMPILER_OPTIMIZE" in
3221 no)
3222 want_optimize="no"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225 ;;
3226 default)
3227 if test "$want_debug" = "yes"; then
3228 want_optimize="assume_no"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3230$as_echo "(assumed) no" >&6; }
3231 else
3232 want_optimize="assume_yes"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3234$as_echo "(assumed) yes" >&6; }
3235 fi
3236 ;;
3237 *)
3238 want_optimize="yes"
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 ;;
3242 esac
3243
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3246$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3247 OPT_COMPILER_WARNINGS="default"
3248 # Check whether --enable-warnings was given.
3249if test "${enable_warnings+set}" = set; then :
3250 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3251fi
3252
3253 case "$OPT_COMPILER_WARNINGS" in
3254 no)
3255 want_warnings="no"
3256 ;;
3257 default)
3258 want_warnings="$want_debug"
3259 ;;
3260 *)
3261 want_warnings="yes"
3262 ;;
3263 esac
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3265$as_echo "$want_warnings" >&6; }
3266
3267
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3269$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3270 OPT_COMPILER_WERROR="default"
3271 # Check whether --enable-werror was given.
3272if test "${enable_werror+set}" = set; then :
3273 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3274fi
3275
3276 case "$OPT_COMPILER_WERROR" in
3277 no)
3278 want_werror="no"
3279 ;;
3280 default)
3281 want_werror="no"
3282 ;;
3283 *)
3284 want_werror="yes"
3285 ;;
3286 esac
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3288$as_echo "$want_werror" >&6; }
3289
3290
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3292$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3293 OPT_CURLDEBUG_BUILD="default"
3294 # Check whether --enable-curldebug was given.
3295if test "${enable_curldebug+set}" = set; then :
3296 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3297fi
3298
3299 case "$OPT_CURLDEBUG_BUILD" in
3300 no)
3301 want_curldebug="no"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
3304 ;;
3305 default)
3306 if test "$want_debug" = "yes"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3308$as_echo "(assumed) yes" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312 fi
3313 want_curldebug_assumed="yes"
3314 want_curldebug="$want_debug"
3315 ;;
3316 *)
3317 want_curldebug="yes"
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319$as_echo "yes" >&6; }
3320 ;;
3321 esac
3322
3323
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3325$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3326 OPT_SYMBOL_HIDING="default"
3327 # Check whether --enable-symbol-hiding was given.
3328if test "${enable_symbol_hiding+set}" = set; then :
3329 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3330fi
3331
3332 # Check whether --enable-hidden-symbols was given.
3333if test "${enable_hidden_symbols+set}" = set; then :
3334 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3335fi
3336
3337 case "$OPT_SYMBOL_HIDING" in
3338 no)
3339 want_symbol_hiding="no"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341$as_echo "no" >&6; }
3342 ;;
3343 default)
3344 want_symbol_hiding="yes"
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346$as_echo "yes" >&6; }
3347 ;;
3348 *)
3349 want_symbol_hiding="yes"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351$as_echo "yes" >&6; }
3352 ;;
3353 esac
3354
3355
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3357$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3358 OPT_ARES="default"
3359 # Check whether --enable-ares was given.
3360if test "${enable_ares+set}" = set; then :
3361 enableval=$enable_ares; OPT_ARES=$enableval
3362fi
3363
3364 case "$OPT_ARES" in
3365 no)
3366 want_ares="no"
3367 ;;
3368 default)
3369 want_ares="no"
3370 ;;
3371 *)
3372 want_ares="yes"
3373 if test -n "$enableval" && test "$enableval" != "yes"; then
3374 want_ares_path="$enableval"
3375 fi
3376 ;;
3377 esac
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3379$as_echo "$want_ares" >&6; }
3380
3381
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3383$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3384 OPT_RT="default"
3385 # Check whether --enable-rt was given.
3386if test "${enable_rt+set}" = set; then :
3387 enableval=$enable_rt; OPT_RT=$enableval
3388fi
3389
3390 case "$OPT_RT" in
3391 no)
3392 dontwant_rt="yes"
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394$as_echo "yes" >&6; }
3395 ;;
3396 default)
3397 dontwant_rt="no"
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3399$as_echo "(assumed no)" >&6; }
3400 ;;
3401 *)
3402 dontwant_rt="no"
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405 ;;
3406 esac
3407
3408
3409#
3410# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3411#
3412
3413if test -z "$xc_configure_preamble_result"; then
3414 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3415fi
3416
3417#
3418# Check that 'PATH_SEPARATOR' has already been set.
3419#
3420
3421if test -z "$xc_PATH_SEPARATOR"; then
3422 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3423fi
3424if test -z "$PATH_SEPARATOR"; then
3425 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3426fi
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3428$as_echo_n "checking for path separator... " >&6; }
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3430$as_echo "$PATH_SEPARATOR" >&6; }
3431if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3433$as_echo_n "checking for initial path separator... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3435$as_echo "$xc_PATH_SEPARATOR" >&6; }
3436 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3437fi
3438
Elliott Hughes82be86d2017-09-20 17:00:17 -07003439
3440#
3441# save the configure arguments
3442#
3443CONFIGURE_OPTIONS="\"$ac_configure_args\""
3444
3445
3446CURL_CFLAG_EXTRAS=""
3447if test X"$want_werror" = Xyes; then
3448 CURL_CFLAG_EXTRAS="-Werror"
3449fi
3450
3451
3452if test -z "$SED"; then
3453 # Extract the first word of "sed", so it can be a program name with args.
3454set dummy sed; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_path_SED+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459else
3460 case $SED in
3461 [\\/]* | ?:[\\/]*)
3462 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3463 ;;
3464 *)
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466as_dummy="$PATH:/usr/bin:/usr/local/bin"
3467for as_dir in $as_dummy
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478 done
3479IFS=$as_save_IFS
3480
3481 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3482 ;;
3483esac
3484fi
3485SED=$ac_cv_path_SED
3486if test -n "$SED"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3488$as_echo "$SED" >&6; }
3489else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492fi
3493
3494
3495 if test -z "$SED" || test "$SED" = "not_found"; then
3496 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3497 fi
3498fi
3499
3500
3501if test -z "$GREP"; then
3502 # Extract the first word of "grep", so it can be a program name with args.
3503set dummy grep; ac_word=$2
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505$as_echo_n "checking for $ac_word... " >&6; }
3506if ${ac_cv_path_GREP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508else
3509 case $GREP in
3510 [\\/]* | ?:[\\/]*)
3511 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3512 ;;
3513 *)
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515as_dummy="$PATH:/usr/bin:/usr/local/bin"
3516for as_dir in $as_dummy
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526done
3527 done
3528IFS=$as_save_IFS
3529
3530 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3531 ;;
3532esac
3533fi
3534GREP=$ac_cv_path_GREP
3535if test -n "$GREP"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3537$as_echo "$GREP" >&6; }
3538else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543
3544 if test -z "$GREP" || test "$GREP" = "not_found"; then
3545 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3546 fi
3547fi
3548
3549
3550if test -z "$EGREP"; then
3551 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3553$as_echo_n "checking for egrep... " >&6; }
3554 EGREP="$GREP -E"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3556$as_echo "$EGREP" >&6; }
3557 else
3558 # Extract the first word of "egrep", so it can be a program name with args.
3559set dummy egrep; ac_word=$2
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561$as_echo_n "checking for $ac_word... " >&6; }
3562if ${ac_cv_path_EGREP+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564else
3565 case $EGREP in
3566 [\\/]* | ?:[\\/]*)
3567 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3568 ;;
3569 *)
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571as_dummy="$PATH:/usr/bin:/usr/local/bin"
3572for as_dir in $as_dummy
3573do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582done
3583 done
3584IFS=$as_save_IFS
3585
3586 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3587 ;;
3588esac
3589fi
3590EGREP=$ac_cv_path_EGREP
3591if test -n "$EGREP"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3593$as_echo "$EGREP" >&6; }
3594else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597fi
3598
3599
3600 fi
3601fi
3602if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3603 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3604fi
3605
3606
3607if test -z "$AR"; then
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3610set dummy ${ac_tool_prefix}ar; ac_word=$2
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612$as_echo_n "checking for $ac_word... " >&6; }
3613if ${ac_cv_path_AR+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615else
3616 case $AR in
3617 [\\/]* | ?:[\\/]*)
3618 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3619 ;;
3620 *)
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622as_dummy="$PATH:/usr/bin:/usr/local/bin"
3623for as_dir in $as_dummy
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633done
3634 done
3635IFS=$as_save_IFS
3636
3637 ;;
3638esac
3639fi
3640AR=$ac_cv_path_AR
3641if test -n "$AR"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3643$as_echo "$AR" >&6; }
3644else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647fi
3648
3649
3650fi
3651if test -z "$ac_cv_path_AR"; then
3652 ac_pt_AR=$AR
3653 # Extract the first word of "ar", so it can be a program name with args.
3654set dummy ar; ac_word=$2
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656$as_echo_n "checking for $ac_word... " >&6; }
3657if ${ac_cv_path_ac_pt_AR+:} false; then :
3658 $as_echo_n "(cached) " >&6
3659else
3660 case $ac_pt_AR in
3661 [\\/]* | ?:[\\/]*)
3662 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3663 ;;
3664 *)
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666as_dummy="$PATH:/usr/bin:/usr/local/bin"
3667for as_dir in $as_dummy
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677done
3678 done
3679IFS=$as_save_IFS
3680
3681 ;;
3682esac
3683fi
3684ac_pt_AR=$ac_cv_path_ac_pt_AR
3685if test -n "$ac_pt_AR"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3687$as_echo "$ac_pt_AR" >&6; }
3688else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693 if test "x$ac_pt_AR" = x; then
3694 AR="not_found"
3695 else
3696 case $cross_compiling:$ac_tool_warned in
3697yes:)
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700ac_tool_warned=yes ;;
3701esac
3702 AR=$ac_pt_AR
3703 fi
3704else
3705 AR="$ac_cv_path_AR"
3706fi
3707
3708 if test -z "$AR" || test "$AR" = "not_found"; then
3709 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3710 fi
3711fi
3712
3713
3714
3715
3716CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3717
3718 xc_prog_cc_prev_IFS=$IFS
3719 xc_prog_cc_prev_LIBS=$LIBS
3720 xc_prog_cc_prev_CFLAGS=$CFLAGS
3721 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3722 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3723
3724
3725
3726 xc_bad_var_libs=no
3727 for xc_word in $LIBS; do
3728 case "$xc_word" in
3729 -l* | --library=*)
3730 :
3731 ;;
3732 *)
3733 xc_bad_var_libs=yes
3734 ;;
3735 esac
3736 done
3737 if test $xc_bad_var_libs = yes; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3739$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3741$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3742 fi
3743
3744
3745 xc_bad_var_ldflags=no
3746 for xc_word in $LDFLAGS; do
3747 case "$xc_word" in
3748 -D*)
3749 xc_bad_var_ldflags=yes
3750 ;;
3751 -U*)
3752 xc_bad_var_ldflags=yes
3753 ;;
3754 -I*)
3755 xc_bad_var_ldflags=yes
3756 ;;
3757 -l* | --library=*)
3758 xc_bad_var_ldflags=yes
3759 ;;
3760 esac
3761 done
3762 if test $xc_bad_var_ldflags = yes; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3764$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3765 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3766 for xc_word in $LDFLAGS; do
3767 case "$xc_word" in
3768 -D*)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3770$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3771 ;;
3772 -U*)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3774$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3775 ;;
3776 -I*)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3778$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3779 ;;
3780 -l* | --library=*)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3782$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3783 ;;
3784 esac
3785 done
3786 fi
3787
3788
3789 xc_bad_var_cppflags=no
3790 for xc_word in $CPPFLAGS; do
3791 case "$xc_word" in
3792 -rpath*)
3793 xc_bad_var_cppflags=yes
3794 ;;
3795 -L* | --library-path=*)
3796 xc_bad_var_cppflags=yes
3797 ;;
3798 -l* | --library=*)
3799 xc_bad_var_cppflags=yes
3800 ;;
3801 esac
3802 done
3803 if test $xc_bad_var_cppflags = yes; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3805$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3806 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3807 for xc_word in $CPPFLAGS; do
3808 case "$xc_word" in
3809 -rpath*)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3811$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3812 ;;
3813 -L* | --library-path=*)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3815$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3816 ;;
3817 -l* | --library=*)
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3819$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3820 ;;
3821 esac
3822 done
3823 fi
3824
3825
3826 xc_bad_var_cflags=no
3827 for xc_word in $CFLAGS; do
3828 case "$xc_word" in
3829 -D*)
3830 xc_bad_var_cflags=yes
3831 ;;
3832 -U*)
3833 xc_bad_var_cflags=yes
3834 ;;
3835 -I*)
3836 xc_bad_var_cflags=yes
3837 ;;
3838 -rpath*)
3839 xc_bad_var_cflags=yes
3840 ;;
3841 -L* | --library-path=*)
3842 xc_bad_var_cflags=yes
3843 ;;
3844 -l* | --library=*)
3845 xc_bad_var_cflags=yes
3846 ;;
3847 esac
3848 done
3849 if test $xc_bad_var_cflags = yes; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3851$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3852 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3853 for xc_word in $CFLAGS; do
3854 case "$xc_word" in
3855 -D*)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3857$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3858 ;;
3859 -U*)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3861$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3862 ;;
3863 -I*)
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3865$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3866 ;;
3867 -rpath*)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3869$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3870 ;;
3871 -L* | --library-path=*)
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3873$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3874 ;;
3875 -l* | --library=*)
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3877$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3878 ;;
3879 esac
3880 done
3881 fi
3882
3883 if test $xc_bad_var_libs = yes ||
3884 test $xc_bad_var_cflags = yes ||
3885 test $xc_bad_var_ldflags = yes ||
3886 test $xc_bad_var_cppflags = yes; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3888$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3889 fi
3890
3891ac_aux_dir=
3892for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3893 if test -f "$ac_dir/install-sh"; then
3894 ac_aux_dir=$ac_dir
3895 ac_install_sh="$ac_aux_dir/install-sh -c"
3896 break
3897 elif test -f "$ac_dir/install.sh"; then
3898 ac_aux_dir=$ac_dir
3899 ac_install_sh="$ac_aux_dir/install.sh -c"
3900 break
3901 elif test -f "$ac_dir/shtool"; then
3902 ac_aux_dir=$ac_dir
3903 ac_install_sh="$ac_aux_dir/shtool install -c"
3904 break
3905 fi
3906done
3907if test -z "$ac_aux_dir"; then
3908 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3909fi
3910
3911# These three variables are undocumented and unsupported,
3912# and are intended to be withdrawn in a future Autoconf release.
3913# They can cause serious problems if a builder's source tree is in a directory
3914# whose full name contains unusual characters.
3915ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3916ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3917ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3918
3919
3920# Find a good install program. We prefer a C program (faster),
3921# so one script is as good as another. But avoid the broken or
3922# incompatible versions:
3923# SysV /etc/install, /usr/sbin/install
3924# SunOS /usr/etc/install
3925# IRIX /sbin/install
3926# AIX /bin/install
3927# AmigaOS /C/install, which installs bootblocks on floppy discs
3928# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3929# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3930# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3931# OS/2's system install, which has a completely different semantic
3932# ./install, which can be erroneously created by make from ./install.sh.
3933# Reject install programs that cannot install multiple files.
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3935$as_echo_n "checking for a BSD-compatible install... " >&6; }
3936if test -z "$INSTALL"; then
3937if ${ac_cv_path_install+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 # Account for people who put trailing slashes in PATH elements.
3946case $as_dir/ in #((
3947 ./ | .// | /[cC]/* | \
3948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3949 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3950 /usr/ucb/* ) ;;
3951 *)
3952 # OSF1 and SCO ODT 3.0 have their own names for install.
3953 # Don't use installbsd from OSF since it installs stuff as root
3954 # by default.
3955 for ac_prog in ginstall scoinst install; do
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3958 if test $ac_prog = install &&
3959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3960 # AIX install. It has an incompatible calling convention.
3961 :
3962 elif test $ac_prog = install &&
3963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3964 # program-specific install script used by HP pwplus--don't use.
3965 :
3966 else
3967 rm -rf conftest.one conftest.two conftest.dir
3968 echo one > conftest.one
3969 echo two > conftest.two
3970 mkdir conftest.dir
3971 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3972 test -s conftest.one && test -s conftest.two &&
3973 test -s conftest.dir/conftest.one &&
3974 test -s conftest.dir/conftest.two
3975 then
3976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3977 break 3
3978 fi
3979 fi
3980 fi
3981 done
3982 done
3983 ;;
3984esac
3985
3986 done
3987IFS=$as_save_IFS
3988
3989rm -rf conftest.one conftest.two conftest.dir
3990
3991fi
3992 if test "${ac_cv_path_install+set}" = set; then
3993 INSTALL=$ac_cv_path_install
3994 else
3995 # As a last resort, use the slow shell script. Don't cache a
3996 # value for INSTALL within a source directory, because that will
3997 # break other packages using the cache if that directory is
3998 # removed, or if the value is a relative name.
3999 INSTALL=$ac_install_sh
4000 fi
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4003$as_echo "$INSTALL" >&6; }
4004
4005# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4006# It thinks the first close brace ends the variable substitution.
4007test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4008
4009test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4010
4011test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4012
4013# Expand $ac_aux_dir to an absolute path.
4014am_aux_dir=`cd "$ac_aux_dir" && pwd`
4015
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4023set dummy ${ac_tool_prefix}gcc; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if ${ac_cv_prog_CC+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044 done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049CC=$ac_cv_prog_CC
4050if test -n "$CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052$as_echo "$CC" >&6; }
4053else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058
4059fi
4060if test -z "$ac_cv_prog_CC"; then
4061 ac_ct_CC=$CC
4062 # Extract the first word of "gcc", so it can be a program name with args.
4063set dummy gcc; ac_word=$2
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065$as_echo_n "checking for $ac_word... " >&6; }
4066if ${ac_cv_prog_ac_ct_CC+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068else
4069 if test -n "$ac_ct_CC"; then
4070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071else
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_ac_ct_CC="gcc"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083done
4084 done
4085IFS=$as_save_IFS
4086
4087fi
4088fi
4089ac_ct_CC=$ac_cv_prog_ac_ct_CC
4090if test -n "$ac_ct_CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4092$as_echo "$ac_ct_CC" >&6; }
4093else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095$as_echo "no" >&6; }
4096fi
4097
4098 if test "x$ac_ct_CC" = x; then
4099 CC=""
4100 else
4101 case $cross_compiling:$ac_tool_warned in
4102yes:)
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105ac_tool_warned=yes ;;
4106esac
4107 CC=$ac_ct_CC
4108 fi
4109else
4110 CC="$ac_cv_prog_CC"
4111fi
4112
4113if test -z "$CC"; then
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4116set dummy ${ac_tool_prefix}cc; ac_word=$2
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118$as_echo_n "checking for $ac_word... " >&6; }
4119if ${ac_cv_prog_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121else
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_CC="${ac_tool_prefix}cc"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137 done
4138IFS=$as_save_IFS
4139
4140fi
4141fi
4142CC=$ac_cv_prog_CC
4143if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145$as_echo "$CC" >&6; }
4146else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
4149fi
4150
4151
4152 fi
4153fi
4154if test -z "$CC"; then
4155 # Extract the first word of "cc", so it can be a program name with args.
4156set dummy cc; ac_word=$2
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158$as_echo_n "checking for $ac_word... " >&6; }
4159if ${ac_cv_prog_CC+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161else
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4164else
4165 ac_prog_rejected=no
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4174 ac_prog_rejected=yes
4175 continue
4176 fi
4177 ac_cv_prog_CC="cc"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181done
4182 done
4183IFS=$as_save_IFS
4184
4185if test $ac_prog_rejected = yes; then
4186 # We found a bogon in the path, so make sure we never use it.
4187 set dummy $ac_cv_prog_CC
4188 shift
4189 if test $# != 0; then
4190 # We chose a different compiler from the bogus one.
4191 # However, it has the same basename, so the bogon will be chosen
4192 # first if we set CC to just the basename; use the full file name.
4193 shift
4194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4195 fi
4196fi
4197fi
4198fi
4199CC=$ac_cv_prog_CC
4200if test -n "$CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202$as_echo "$CC" >&6; }
4203else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207
4208
4209fi
4210if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in cl.exe
4213 do
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217$as_echo_n "checking for $ac_word... " >&6; }
4218if ${ac_cv_prog_CC+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236 done
4237IFS=$as_save_IFS
4238
4239fi
4240fi
4241CC=$ac_cv_prog_CC
4242if test -n "$CC"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4244$as_echo "$CC" >&6; }
4245else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
4249
4250
4251 test -n "$CC" && break
4252 done
4253fi
4254if test -z "$CC"; then
4255 ac_ct_CC=$CC
4256 for ac_prog in cl.exe
4257do
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259set dummy $ac_prog; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
4262if ${ac_cv_prog_ac_ct_CC+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264else
4265 if test -n "$ac_ct_CC"; then
4266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_CC="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
4280 done
4281IFS=$as_save_IFS
4282
4283fi
4284fi
4285ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286if test -n "$ac_ct_CC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4288$as_echo "$ac_ct_CC" >&6; }
4289else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294
4295 test -n "$ac_ct_CC" && break
4296done
4297
4298 if test "x$ac_ct_CC" = x; then
4299 CC=""
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307 CC=$ac_ct_CC
4308 fi
4309fi
4310
4311fi
4312
4313
4314test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error $? "no acceptable C compiler found in \$PATH
4317See \`config.log' for more details" "$LINENO" 5; }
4318
4319# Provide some information about the compiler.
4320$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4321set X $ac_compile
4322ac_compiler=$2
4323for ac_option in --version -v -V -qversion; do
4324 { { ac_try="$ac_compiler $ac_option >&5"
4325case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330$as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4332 ac_status=$?
4333 if test -s conftest.err; then
4334 sed '10a\
4335... rest of stderr output deleted ...
4336 10q' conftest.err >conftest.er1
4337 cat conftest.er1 >&5
4338 fi
4339 rm -f conftest.er1 conftest.err
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }
4342done
4343
4344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
4346
4347int main (void)
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354ac_clean_files_save=$ac_clean_files
4355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4356# Try to create an executable without -o first, disregard a.out.
4357# It will help us diagnose broken compilers, and finding out an intuition
4358# of exeext.
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4360$as_echo_n "checking whether the C compiler works... " >&6; }
4361ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4362
4363# The possible output files:
4364ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4365
4366ac_rmfiles=
4367for ac_file in $ac_files
4368do
4369 case $ac_file in
4370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4371 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4372 esac
4373done
4374rm -f $ac_rmfiles
4375
4376if { { ac_try="$ac_link_default"
4377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
4381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382$as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_link_default") 2>&5
4384 ac_status=$?
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }; then :
4387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4389# in a Makefile. We should not override ac_cv_exeext if it was cached,
4390# so that the user can short-circuit this test for compilers unknown to
4391# Autoconf.
4392for ac_file in $ac_files ''
4393do
4394 test -f "$ac_file" || continue
4395 case $ac_file in
4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4397 ;;
4398 [ab].out )
4399 # We found the default executable, but exeext='' is most
4400 # certainly right.
4401 break;;
4402 *.* )
4403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4404 then :; else
4405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4406 fi
4407 # We set ac_cv_exeext here because the later test for it is not
4408 # safe: cross compilers may not add the suffix if given an `-o'
4409 # argument, so we may need to know it at that point already.
4410 # Even if this section looks crufty: it has the advantage of
4411 # actually working.
4412 break;;
4413 * )
4414 break;;
4415 esac
4416done
4417test "$ac_cv_exeext" = no && ac_cv_exeext=
4418
4419else
4420 ac_file=''
4421fi
4422if test -z "$ac_file"; then :
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425$as_echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430as_fn_error 77 "C compiler cannot create executables
4431See \`config.log' for more details" "$LINENO" 5; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434$as_echo "yes" >&6; }
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4437$as_echo_n "checking for C compiler default output file name... " >&6; }
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4439$as_echo "$ac_file" >&6; }
4440ac_exeext=$ac_cv_exeext
4441
4442rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4443ac_clean_files=$ac_clean_files_save
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4445$as_echo_n "checking for suffix of executables... " >&6; }
4446if { { ac_try="$ac_link"
4447case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452$as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_link") 2>&5
4454 ac_status=$?
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }; then :
4457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4458# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4459# work properly (i.e., refer to `conftest.exe'), while it won't with
4460# `rm'.
4461for ac_file in conftest.exe conftest conftest.*; do
4462 test -f "$ac_file" || continue
4463 case $ac_file in
4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 break;;
4467 * ) break;;
4468 esac
4469done
4470else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4474See \`config.log' for more details" "$LINENO" 5; }
4475fi
4476rm -f conftest conftest$ac_cv_exeext
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4478$as_echo "$ac_cv_exeext" >&6; }
4479
4480rm -f conftest.$ac_ext
4481EXEEXT=$ac_cv_exeext
4482ac_exeext=$EXEEXT
4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h. */
4485#include <stdio.h>
4486int main (void)
4487{
4488FILE *f = fopen ("conftest.out", "w");
4489 return ferror (f) || fclose (f) != 0;
4490
4491 ;
4492 return 0;
4493}
4494_ACEOF
4495ac_clean_files="$ac_clean_files conftest.out"
4496# Check that the compiler produces executables we can run. If not, either
4497# the compiler is broken, or we cross compile.
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4499$as_echo_n "checking whether we are cross compiling... " >&6; }
4500if test "$cross_compiling" != yes; then
4501 { { ac_try="$ac_link"
4502case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507$as_echo "$ac_try_echo"; } >&5
4508 (eval "$ac_link") 2>&5
4509 ac_status=$?
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }
4512 if { ac_try='./conftest$ac_cv_exeext'
4513 { { case "(($ac_try" in
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4516esac
4517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518$as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; }; then
4523 cross_compiling=no
4524 else
4525 if test "$cross_compiling" = maybe; then
4526 cross_compiling=yes
4527 else
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530as_fn_error $? "cannot run C compiled programs.
4531If you meant to cross compile, use \`--host'.
4532See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534 fi
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4537$as_echo "$cross_compiling" >&6; }
4538
4539rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4540ac_clean_files=$ac_clean_files_save
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4542$as_echo_n "checking for suffix of object files... " >&6; }
4543if ${ac_cv_objext+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h. */
4548
4549int main (void)
4550{
4551
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556rm -f conftest.o conftest.obj
4557if { { ac_try="$ac_compile"
4558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563$as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_compile") 2>&5
4565 ac_status=$?
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 for ac_file in conftest.o conftest.obj conftest.*; do
4569 test -f "$ac_file" || continue;
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4573 break;;
4574 esac
4575done
4576else
4577 $as_echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error $? "cannot compute suffix of object files: cannot compile
4583See \`config.log' for more details" "$LINENO" 5; }
4584fi
4585rm -f conftest.$ac_cv_objext conftest.$ac_ext
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4588$as_echo "$ac_cv_objext" >&6; }
4589OBJEXT=$ac_cv_objext
4590ac_objext=$OBJEXT
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593if ${ac_cv_c_compiler_gnu+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595else
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
4598
4599int main (void)
4600{
4601#ifndef __GNUC__
4602 choke me
4603#endif
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_compiler_gnu=yes
4611else
4612 ac_compiler_gnu=no
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615ac_cv_c_compiler_gnu=$ac_compiler_gnu
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4619$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4620if test $ac_compiler_gnu = yes; then
4621 GCC=yes
4622else
4623 GCC=
4624fi
4625ac_test_CFLAGS=${CFLAGS+set}
4626ac_save_CFLAGS=$CFLAGS
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4628$as_echo_n "checking whether $CC accepts -g... " >&6; }
4629if ${ac_cv_prog_cc_g+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 ac_save_c_werror_flag=$ac_c_werror_flag
4633 ac_c_werror_flag=yes
4634 ac_cv_prog_cc_g=no
4635 CFLAGS="-g"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638
4639int main (void)
4640{
4641
4642 ;
4643 return 0;
4644}
4645_ACEOF
4646if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_g=yes
4648else
4649 CFLAGS=""
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h. */
4652
4653int main (void)
4654{
4655
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"; then :
4661
4662else
4663 ac_c_werror_flag=$ac_save_c_werror_flag
4664 CFLAGS="-g"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h. */
4667
4668int main (void)
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_g=yes
4677fi
4678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679fi
4680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_c_werror_flag=$ac_save_c_werror_flag
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4686$as_echo "$ac_cv_prog_cc_g" >&6; }
4687if test "$ac_test_CFLAGS" = set; then
4688 CFLAGS=$ac_save_CFLAGS
4689elif test $ac_cv_prog_cc_g = yes; then
4690 if test "$GCC" = yes; then
4691 CFLAGS="-g -O2"
4692 else
4693 CFLAGS="-g"
4694 fi
4695else
4696 if test "$GCC" = yes; then
4697 CFLAGS="-O2"
4698 else
4699 CFLAGS=
4700 fi
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4703$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4704if ${ac_cv_prog_cc_c89+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 ac_cv_prog_cc_c89=no
4708ac_save_CC=$CC
4709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h. */
4711#include <stdarg.h>
4712#include <stdio.h>
4713struct stat;
4714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4715struct buf { int x; };
4716FILE * (*rcsopen) (struct buf *, struct stat *, int);
4717static char *e (p, i)
4718 char **p;
4719 int i;
4720{
4721 return p[i];
4722}
4723static char *f (char * (*g) (char **, int), char **p, ...)
4724{
4725 char *s;
4726 va_list v;
4727 va_start (v,p);
4728 s = g (p, va_arg (v,int));
4729 va_end (v);
4730 return s;
4731}
4732
4733/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4734 function prototypes and stuff, but not '\xHH' hex character constants.
4735 These don't provoke an error unfortunately, instead are silently treated
4736 as 'x'. The following induces an error, until -std is added to get
4737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4738 array size at least. It's necessary to write '\x00'==0 to get something
4739 that's true only with -std. */
4740int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4741
4742/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4743 inside strings and character constants. */
4744#define FOO(x) 'x'
4745int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4746
4747int test (int i, double x);
4748struct s1 {int (*f) (int a);};
4749struct s2 {int (*f) (double a);};
4750int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751int argc;
4752char **argv;
4753int main (void)
4754{
4755return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4762do
4763 CC="$ac_save_CC $ac_arg"
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_prog_cc_c89=$ac_arg
4766fi
4767rm -f core conftest.err conftest.$ac_objext
4768 test "x$ac_cv_prog_cc_c89" != "xno" && break
4769done
4770rm -f conftest.$ac_ext
4771CC=$ac_save_CC
4772
4773fi
4774# AC_CACHE_VAL
4775case "x$ac_cv_prog_cc_c89" in
4776 x)
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4778$as_echo "none needed" >&6; } ;;
4779 xno)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781$as_echo "unsupported" >&6; } ;;
4782 *)
4783 CC="$CC $ac_cv_prog_cc_c89"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4785$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4786esac
4787if test "x$ac_cv_prog_cc_c89" != xno; then :
4788
4789fi
4790
4791ac_ext=c
4792ac_cpp='$CPP $CPPFLAGS'
4793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4803$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4804if ${am_cv_prog_cc_c_o+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h. */
4809
4810int main (void)
4811{
4812
4813 ;
4814 return 0;
4815}
4816_ACEOF
4817 # Make sure it works both with $CC and with simple cc.
4818 # Following AC_PROG_CC_C_O, we do the test twice because some
4819 # compilers refuse to overwrite an existing .o file with -o,
4820 # though they will create one.
4821 am_cv_prog_cc_c_o=yes
4822 for am_i in 1 2; do
4823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } \
4828 && test -f conftest2.$ac_objext; then
4829 : OK
4830 else
4831 am_cv_prog_cc_c_o=no
4832 break
4833 fi
4834 done
4835 rm -f core conftest*
4836 unset am_i
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4839$as_echo "$am_cv_prog_cc_c_o" >&6; }
4840if test "$am_cv_prog_cc_c_o" != yes; then
4841 # Losing compiler, so override with the script.
4842 # FIXME: It is wrong to rewrite CC.
4843 # But if we don't then we get into trouble of one sort or another.
4844 # A longer-term fix would be to have automake use am__CC in this case,
4845 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4846 CC="$am_aux_dir/compile $CC"
4847fi
4848ac_ext=c
4849ac_cpp='$CPP $CPPFLAGS'
4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
4855
4856ac_ext=c
4857ac_cpp='$CPP $CPPFLAGS'
4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4862$as_echo_n "checking how to run the C preprocessor... " >&6; }
4863# On Suns, sometimes $CPP names a directory.
4864if test -n "$CPP" && test -d "$CPP"; then
4865 CPP=
4866fi
4867if test -z "$CPP"; then
4868 if ${ac_cv_prog_CPP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870else
4871 # Double quotes because CPP needs to be expanded
4872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4873 do
4874 ac_preproc_ok=false
4875for ac_c_preproc_warn_flag in '' yes
4876do
4877 # Use a header file that comes with gcc, so configuring glibc
4878 # with a fresh cross-compiler works.
4879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880 # <limits.h> exists even on freestanding compilers.
4881 # On the NeXT, cc -E runs the code through the compiler's parser,
4882 # not just through cpp. "Syntax error" is here to catch this case.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884/* end confdefs.h. */
4885#ifdef __STDC__
4886# include <limits.h>
4887#else
4888# include <assert.h>
4889#endif
4890 Syntax error
4891_ACEOF
4892if ac_fn_c_try_cpp "$LINENO"; then :
4893
4894else
4895 # Broken: fails on valid input.
4896continue
4897fi
4898rm -f conftest.err conftest.i conftest.$ac_ext
4899
4900 # OK, works on sane cases. Now check whether nonexistent headers
4901 # can be detected and how.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h. */
4904#include <ac_nonexistent.h>
4905_ACEOF
4906if ac_fn_c_try_cpp "$LINENO"; then :
4907 # Broken: success on invalid input.
4908continue
4909else
4910 # Passes both tests.
4911ac_preproc_ok=:
4912break
4913fi
4914rm -f conftest.err conftest.i conftest.$ac_ext
4915
4916done
4917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918rm -f conftest.i conftest.err conftest.$ac_ext
4919if $ac_preproc_ok; then :
4920 break
4921fi
4922
4923 done
4924 ac_cv_prog_CPP=$CPP
4925
4926fi
4927 CPP=$ac_cv_prog_CPP
4928else
4929 ac_cv_prog_CPP=$CPP
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4932$as_echo "$CPP" >&6; }
4933ac_preproc_ok=false
4934for ac_c_preproc_warn_flag in '' yes
4935do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
4944#ifdef __STDC__
4945# include <limits.h>
4946#else
4947# include <assert.h>
4948#endif
4949 Syntax error
4950_ACEOF
4951if ac_fn_c_try_cpp "$LINENO"; then :
4952
4953else
4954 # Broken: fails on valid input.
4955continue
4956fi
4957rm -f conftest.err conftest.i conftest.$ac_ext
4958
4959 # OK, works on sane cases. Now check whether nonexistent headers
4960 # can be detected and how.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962/* end confdefs.h. */
4963#include <ac_nonexistent.h>
4964_ACEOF
4965if ac_fn_c_try_cpp "$LINENO"; then :
4966 # Broken: success on invalid input.
4967continue
4968else
4969 # Passes both tests.
4970ac_preproc_ok=:
4971break
4972fi
4973rm -f conftest.err conftest.i conftest.$ac_ext
4974
4975done
4976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977rm -f conftest.i conftest.err conftest.$ac_ext
4978if $ac_preproc_ok; then :
4979
4980else
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4984See \`config.log' for more details" "$LINENO" 5; }
4985fi
4986
4987ac_ext=c
4988ac_cpp='$CPP $CPPFLAGS'
4989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993
4994 IFS=$xc_prog_cc_prev_IFS
4995 LIBS=$xc_prog_cc_prev_LIBS
4996 CFLAGS=$xc_prog_cc_prev_CFLAGS
4997 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4998 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4999
5000
5001
5002
5003
Elliott Hughes0128fe42018-02-27 14:57:55 -08005004
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5006$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5007if ${ac_cv_path_SED+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009else
5010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5011 for ac_i in 1 2 3 4 5 6 7; do
5012 ac_script="$ac_script$as_nl$ac_script"
5013 done
5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5015 { ac_script=; unset ac_script;}
5016 if test -z "$SED"; then
5017 ac_path_SED_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in sed gsed; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5027 as_fn_executable_p "$ac_path_SED" || continue
5028# Check for GNU ac_path_SED and select it if it is found.
5029 # Check for GNU $ac_path_SED
5030case `"$ac_path_SED" --version 2>&1` in
5031*GNU*)
5032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5033*)
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5037 do
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo '' >> "conftest.nl"
5042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_SED_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_SED="$ac_path_SED"
5048 ac_path_SED_max=$ac_count
5049 fi
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054esac
5055
5056 $ac_path_SED_found && break 3
5057 done
5058 done
5059 done
5060IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_SED"; then
5062 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5063 fi
5064else
5065 ac_cv_path_SED=$SED
5066fi
5067
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5070$as_echo "$ac_cv_path_SED" >&6; }
5071 SED="$ac_cv_path_SED"
5072 rm -f conftest.sed
5073
5074if test "$GCC" = "yes" ; then :
5075
5076
5077
5078 # allow to override gcov location
5079
5080# Check whether --with-gcov was given.
5081if test "${with_gcov+set}" = set; then :
5082 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
5083else
5084 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
5085fi
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
5089$as_echo_n "checking whether to build with code coverage support... " >&6; }
5090 # Check whether --enable-code-coverage was given.
5091if test "${enable_code_coverage+set}" = set; then :
5092 enableval=$enable_code_coverage;
5093else
5094 enable_code_coverage=no
5095fi
5096
5097
5098 if test x$enable_code_coverage = xyes; then
5099 CODE_COVERAGE_ENABLED_TRUE=
5100 CODE_COVERAGE_ENABLED_FALSE='#'
5101else
5102 CODE_COVERAGE_ENABLED_TRUE='#'
5103 CODE_COVERAGE_ENABLED_FALSE=
5104fi
5105
5106 CODE_COVERAGE_ENABLED=$enable_code_coverage
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5109$as_echo "$enable_code_coverage" >&6; }
5110
5111 if test "$enable_code_coverage" = "yes" ; then :
5112
5113 # check for gcov
5114 if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5116set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_prog_GCOV+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$GCOV"; then
5123 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137 done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142GCOV=$ac_cv_prog_GCOV
5143if test -n "$GCOV"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5145$as_echo "$GCOV" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152fi
5153if test -z "$ac_cv_prog_GCOV"; then
5154 ac_ct_GCOV=$GCOV
5155 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5156set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
5159if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161else
5162 if test -n "$ac_ct_GCOV"; then
5163 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177 done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5183if test -n "$ac_ct_GCOV"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5185$as_echo "$ac_ct_GCOV" >&6; }
5186else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191 if test "x$ac_ct_GCOV" = x; then
5192 GCOV=":"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200 GCOV=$ac_ct_GCOV
5201 fi
5202else
5203 GCOV="$ac_cv_prog_GCOV"
5204fi
5205
5206 if test "X$GCOV" = "X:"; then :
5207 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5208fi
5209
5210
5211 if test "$GCC" = "no" ; then :
5212
5213 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5214
5215fi
5216
5217 # Extract the first word of "lcov", so it can be a program name with args.
5218set dummy lcov; ac_word=$2
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220$as_echo_n "checking for $ac_word... " >&6; }
5221if ${ac_cv_prog_LCOV+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223else
5224 if test -n "$LCOV"; then
5225 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_LCOV="lcov"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239 done
5240IFS=$as_save_IFS
5241
5242fi
5243fi
5244LCOV=$ac_cv_prog_LCOV
5245if test -n "$LCOV"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5247$as_echo "$LCOV" >&6; }
5248else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }
5251fi
5252
5253
5254 # Extract the first word of "genhtml", so it can be a program name with args.
5255set dummy genhtml; ac_word=$2
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257$as_echo_n "checking for $ac_word... " >&6; }
5258if ${ac_cv_prog_GENHTML+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260else
5261 if test -n "$GENHTML"; then
5262 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_GENHTML="genhtml"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276 done
5277IFS=$as_save_IFS
5278
5279fi
5280fi
5281GENHTML=$ac_cv_prog_GENHTML
5282if test -n "$GENHTML"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5284$as_echo "$GENHTML" >&6; }
5285else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288fi
5289
5290
5291
5292 if test -z "$LCOV" ; then :
5293
5294 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5295
5296fi
5297
5298 if test -z "$GENHTML" ; then :
5299
5300 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5301
5302fi
5303
5304 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5305 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5306 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5307 CODE_COVERAGE_LIBS="-lgcov"
5308 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5309
5310
5311
5312
5313
5314
5315
5316 CODE_COVERAGE_RULES_CHECK='
5317 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5318 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5319'
5320 CODE_COVERAGE_RULES_CAPTURE='
5321 $(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)
5322 $(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)
5323 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5324 $(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)
5325 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5326'
5327 CODE_COVERAGE_RULES_CLEAN='
5328clean: code-coverage-clean
5329distclean: code-coverage-clean
5330code-coverage-clean:
5331 -$(LCOV) --directory $(top_builddir) -z
5332 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5333 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5334'
5335
5336else
5337
5338 CODE_COVERAGE_RULES_CHECK='
5339 @echo "Need to reconfigure with --enable-code-coverage"
5340'
5341 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5342 CODE_COVERAGE_RULES_CLEAN=''
5343
5344fi
5345
5346CODE_COVERAGE_RULES='
5347# Code coverage
5348#
5349# Optional:
5350# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5351# Multiple directories may be specified, separated by whitespace.
5352# (Default: $(top_builddir))
5353# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5354# by lcov for code coverage. (Default:
5355# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5356# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5357# reports to be created. (Default:
5358# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5359# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5360# set to 0 to disable it and leave empty to stay with the default.
5361# (Default: empty)
5362# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5363# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5364# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5365# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5366# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5367# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5368# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5369# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5370# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5371# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5372# lcov instance. (Default: empty)
5373# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5374# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5375# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5376# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5377# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5378# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5379# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5380#
5381# The generated report will be titled using the $(PACKAGE_NAME) and
5382# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5383# use the git-version-gen script, available online.
5384
5385# Optional variables
5386CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5387CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5388CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5389CODE_COVERAGE_BRANCH_COVERAGE ?=
5390CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5391--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5392CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5393CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5394CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5395CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5396CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5397CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5398CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5399$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5400--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5401CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5402CODE_COVERAGE_IGNORE_PATTERN ?=
5403
5404GITIGNOREFILES ?=
5405GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5406
5407code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5408code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5409code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5410 $(CODE_COVERAGE_OUTPUT_FILE);
5411code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5412code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5413code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5414 $(CODE_COVERAGE_IGNORE_PATTERN);
5415code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5416code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5417code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5418code_coverage_quiet = $(code_coverage_quiet_$(V))
5419code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5420code_coverage_quiet_0 = --quiet
5421
5422# sanitizes the test-name: replaces with underscores: dashes and dots
5423code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5424
5425# Use recursive makes in order to ignore errors during check
5426check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5427
5428# Capture code coverage data
5429code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5430
5431# Hook rule executed before code-coverage-capture, overridable by the user
5432code-coverage-capture-hook:
5433
5434'"$CODE_COVERAGE_RULES_CLEAN"'
5435
5436A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5437A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5438
5439.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5440'
5441
5442
5443
5444
5445else
5446 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5447 CODE_COVERAGE_ENABLED_TRUE='#'
5448
5449fi
5450
Elliott Hughes82be86d2017-09-20 17:00:17 -07005451am__api_version='1.15'
5452
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5454$as_echo_n "checking whether build environment is sane... " >&6; }
5455# Reject unsafe characters in $srcdir or the absolute working directory
5456# name. Accept space and tab only in the latter.
5457am_lf='
5458'
5459case `pwd` in
5460 *[\\\"\#\$\&\'\`$am_lf]*)
5461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5462esac
5463case $srcdir in
5464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5465 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5466esac
5467
5468# Do 'set' in a subshell so we don't clobber the current shell's
5469# arguments. Must try -L first in case configure is actually a
5470# symlink; some systems play weird games with the mod time of symlinks
5471# (eg FreeBSD returns the mod time of the symlink's containing
5472# directory).
5473if (
5474 am_has_slept=no
5475 for am_try in 1 2; do
5476 echo "timestamp, slept: $am_has_slept" > conftest.file
5477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5478 if test "$*" = "X"; then
5479 # -L didn't work.
5480 set X `ls -t "$srcdir/configure" conftest.file`
5481 fi
5482 if test "$*" != "X $srcdir/configure conftest.file" \
5483 && test "$*" != "X conftest.file $srcdir/configure"; then
5484
5485 # If neither matched, then we have a broken ls. This can happen
5486 # if, for instance, CONFIG_SHELL is bash and it inherits a
5487 # broken ls alias from the environment. This has actually
5488 # happened. Such a system could not be considered "sane".
5489 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5490 alias in your environment" "$LINENO" 5
5491 fi
5492 if test "$2" = conftest.file || test $am_try -eq 2; then
5493 break
5494 fi
5495 # Just in case.
5496 sleep 1
5497 am_has_slept=yes
5498 done
5499 test "$2" = conftest.file
5500 )
5501then
5502 # Ok.
5503 :
5504else
5505 as_fn_error $? "newly created file is older than distributed files!
5506Check your system clock" "$LINENO" 5
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5509$as_echo "yes" >&6; }
5510# If we didn't sleep, we still need to ensure time stamps of config.status and
5511# generated files are strictly newer.
5512am_sleep_pid=
5513if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5514 ( sleep 1 ) &
5515 am_sleep_pid=$!
5516fi
5517
5518rm -f conftest.file
5519
5520test "$program_prefix" != NONE &&
5521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5522# Use a double $ so make ignores it.
5523test "$program_suffix" != NONE &&
5524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5525# Double any \ or $.
5526# By default was `s,x,x', remove it if useless.
5527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5529
5530if test x"${MISSING+set}" != xset; then
5531 case $am_aux_dir in
5532 *\ * | *\ *)
5533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5534 *)
5535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5536 esac
5537fi
5538# Use eval to expand $SHELL
5539if eval "$MISSING --is-lightweight"; then
5540 am_missing_run="$MISSING "
5541else
5542 am_missing_run=
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5544$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5545fi
5546
5547if test x"${install_sh+set}" != xset; then
5548 case $am_aux_dir in
5549 *\ * | *\ *)
5550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5551 *)
5552 install_sh="\${SHELL} $am_aux_dir/install-sh"
5553 esac
5554fi
5555
5556# Installed binaries are usually stripped using 'strip' when the user
5557# run "make install-strip". However 'strip' might not be the right
5558# tool to use in cross-compilation environments, therefore Automake
5559# will honor the 'STRIP' environment variable to overrule this program.
5560if test "$cross_compiling" != no; then
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5563set dummy ${ac_tool_prefix}strip; ac_word=$2
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565$as_echo_n "checking for $ac_word... " >&6; }
5566if ${ac_cv_prog_STRIP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568else
5569 if test -n "$STRIP"; then
5570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583done
5584 done
5585IFS=$as_save_IFS
5586
5587fi
5588fi
5589STRIP=$ac_cv_prog_STRIP
5590if test -n "$STRIP"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5592$as_echo "$STRIP" >&6; }
5593else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597
5598
5599fi
5600if test -z "$ac_cv_prog_STRIP"; then
5601 ac_ct_STRIP=$STRIP
5602 # Extract the first word of "strip", so it can be a program name with args.
5603set dummy strip; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 if test -n "$ac_ct_STRIP"; then
5610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_ac_ct_STRIP="strip"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624 done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5630if test -n "$ac_ct_STRIP"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5632$as_echo "$ac_ct_STRIP" >&6; }
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638 if test "x$ac_ct_STRIP" = x; then
5639 STRIP=":"
5640 else
5641 case $cross_compiling:$ac_tool_warned in
5642yes:)
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645ac_tool_warned=yes ;;
5646esac
5647 STRIP=$ac_ct_STRIP
5648 fi
5649else
5650 STRIP="$ac_cv_prog_STRIP"
5651fi
5652
5653fi
5654INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5657$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5658if test -z "$MKDIR_P"; then
5659 if ${ac_cv_path_mkdir+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_prog in mkdir gmkdir; do
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5671 'mkdir (GNU coreutils) '* | \
5672 'mkdir (coreutils) '* | \
5673 'mkdir (fileutils) '4.1*)
5674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5675 break 3;;
5676 esac
5677 done
5678 done
5679 done
5680IFS=$as_save_IFS
5681
5682fi
5683
5684 test -d ./--version && rmdir ./--version
5685 if test "${ac_cv_path_mkdir+set}" = set; then
5686 MKDIR_P="$ac_cv_path_mkdir -p"
5687 else
5688 # As a last resort, use the slow shell script. Don't cache a
5689 # value for MKDIR_P within a source directory, because that will
5690 # break other packages using the cache if that directory is
5691 # removed, or if the value is a relative name.
5692 MKDIR_P="$ac_install_sh -d"
5693 fi
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5696$as_echo "$MKDIR_P" >&6; }
5697
5698for ac_prog in gawk mawk nawk awk
5699do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701set dummy $ac_prog; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_AWK+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 if test -n "$AWK"; then
5708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_AWK="$ac_prog"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721done
5722 done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727AWK=$ac_cv_prog_AWK
5728if test -n "$AWK"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5730$as_echo "$AWK" >&6; }
5731else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737 test -n "$AWK" && break
5738done
5739
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5741$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5742set x ${MAKE-make}
5743ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5744if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746else
5747 cat >conftest.make <<\_ACEOF
5748SHELL = /bin/sh
5749all:
5750 @echo '@@@%%%=$(MAKE)=@@@%%%'
5751_ACEOF
5752# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5753case `${MAKE-make} -f conftest.make 2>/dev/null` in
5754 *@@@%%%=?*=@@@%%%*)
5755 eval ac_cv_prog_make_${ac_make}_set=yes;;
5756 *)
5757 eval ac_cv_prog_make_${ac_make}_set=no;;
5758esac
5759rm -f conftest.make
5760fi
5761if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763$as_echo "yes" >&6; }
5764 SET_MAKE=
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768 SET_MAKE="MAKE=${MAKE-make}"
5769fi
5770
5771rm -rf .tst 2>/dev/null
5772mkdir .tst 2>/dev/null
5773if test -d .tst; then
5774 am__leading_dot=.
5775else
5776 am__leading_dot=_
5777fi
5778rmdir .tst 2>/dev/null
5779
5780DEPDIR="${am__leading_dot}deps"
5781
5782ac_config_commands="$ac_config_commands depfiles"
5783
5784
5785am_make=${MAKE-make}
5786cat > confinc << 'END'
5787am__doit:
5788 @echo this is the am__doit target
5789.PHONY: am__doit
5790END
5791# If we don't find an include directive, just comment out the code.
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5793$as_echo_n "checking for style of include used by $am_make... " >&6; }
5794am__include="#"
5795am__quote=
5796_am_result=none
5797# First try GNU make style include.
5798echo "include confinc" > confmf
5799# Ignore all kinds of additional output from 'make'.
5800case `$am_make -s -f confmf 2> /dev/null` in #(
5801*the\ am__doit\ target*)
5802 am__include=include
5803 am__quote=
5804 _am_result=GNU
5805 ;;
5806esac
5807# Now try BSD make style include.
5808if test "$am__include" = "#"; then
5809 echo '.include "confinc"' > confmf
5810 case `$am_make -s -f confmf 2> /dev/null` in #(
5811 *the\ am__doit\ target*)
5812 am__include=.include
5813 am__quote="\""
5814 _am_result=BSD
5815 ;;
5816 esac
5817fi
5818
5819
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5821$as_echo "$_am_result" >&6; }
5822rm -f confinc confmf
5823
5824# Check whether --enable-dependency-tracking was given.
5825if test "${enable_dependency_tracking+set}" = set; then :
5826 enableval=$enable_dependency_tracking;
5827fi
5828
5829if test "x$enable_dependency_tracking" != xno; then
5830 am_depcomp="$ac_aux_dir/depcomp"
5831 AMDEPBACKSLASH='\'
5832 am__nodep='_no'
5833fi
5834 if test "x$enable_dependency_tracking" != xno; then
5835 AMDEP_TRUE=
5836 AMDEP_FALSE='#'
5837else
5838 AMDEP_TRUE='#'
5839 AMDEP_FALSE=
5840fi
5841
5842
5843## --------------------------------------- ##
5844## Start of automake initialization code ##
5845## --------------------------------------- ##
5846
5847if test "`cd $srcdir && pwd`" != "`pwd`"; then
5848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5849 # is not polluted with repeated "-I."
5850 am__isrc=' -I$(srcdir)'
5851 # test to see if srcdir already configured
5852 if test -f $srcdir/config.status; then
5853 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5854 fi
5855fi
5856
5857# test whether we have cygpath
5858if test -z "$CYGPATH_W"; then
5859 if (cygpath --version) >/dev/null 2>/dev/null; then
5860 CYGPATH_W='cygpath -w'
5861 else
5862 CYGPATH_W=echo
5863 fi
5864fi
5865
5866
5867# Define the identity of the package.
5868 PACKAGE='curl'
5869 VERSION='-'
5870
5871
5872cat >>confdefs.h <<_ACEOF
5873#define PACKAGE "$PACKAGE"
5874_ACEOF
5875
5876
5877cat >>confdefs.h <<_ACEOF
5878#define VERSION "$VERSION"
5879_ACEOF
5880
5881# Some tools Automake needs.
5882
5883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5884
5885
5886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5887
5888
5889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5890
5891
5892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5893
5894
5895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5896
5897# For better backward compatibility. To be removed once Automake 1.9.x
5898# dies out for good. For more background, see:
5899# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5900# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5901mkdir_p='$(MKDIR_P)'
5902
5903# We need awk for the "check" target (and possibly the TAP driver). The
5904# system "awk" is bad on some platforms.
5905# Always define AMTAR for backward compatibility. Yes, it's still used
5906# in the wild :-( We should find a proper way to deprecate it ...
5907AMTAR='$${TAR-tar}'
5908
5909
5910# We'll loop over all known methods to create a tar archive until one works.
5911_am_tools='gnutar pax cpio none'
5912
5913am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5914
5915
5916
5917
5918
5919depcc="$CC" am_compiler_list=
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5922$as_echo_n "checking dependency style of $depcc... " >&6; }
5923if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5927 # We make a subdir and do the tests there. Otherwise we can end up
5928 # making bogus files that we don't know about and never remove. For
5929 # instance it was reported that on HP-UX the gcc test will end up
5930 # making a dummy file named 'D' -- because '-MD' means "put the output
5931 # in D".
5932 rm -rf conftest.dir
5933 mkdir conftest.dir
5934 # Copy depcomp to subdir because otherwise we won't find it if we're
5935 # using a relative directory.
5936 cp "$am_depcomp" conftest.dir
5937 cd conftest.dir
5938 # We will build objects and dependencies in a subdirectory because
5939 # it helps to detect inapplicable dependency modes. For instance
5940 # both Tru64's cc and ICC support -MD to output dependencies as a
5941 # side effect of compilation, but ICC will put the dependencies in
5942 # the current directory while Tru64 will put them in the object
5943 # directory.
5944 mkdir sub
5945
5946 am_cv_CC_dependencies_compiler_type=none
5947 if test "$am_compiler_list" = ""; then
5948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5949 fi
5950 am__universal=false
5951 case " $depcc " in #(
5952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5953 esac
5954
5955 for depmode in $am_compiler_list; do
5956 # Setup a source with many dependencies, because some compilers
5957 # like to wrap large dependency lists on column 80 (with \), and
5958 # we should not choose a depcomp mode which is confused by this.
5959 #
5960 # We need to recreate these files for each test, as the compiler may
5961 # overwrite some of them when testing with obscure command lines.
5962 # This happens at least with the AIX C compiler.
5963 : > sub/conftest.c
5964 for i in 1 2 3 4 5 6; do
5965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5966 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5967 # Solaris 10 /bin/sh.
5968 echo '/* dummy */' > sub/conftst$i.h
5969 done
5970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5971
5972 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5973 # mode. It turns out that the SunPro C++ compiler does not properly
5974 # handle '-M -o', and we need to detect this. Also, some Intel
5975 # versions had trouble with output in subdirs.
5976 am__obj=sub/conftest.${OBJEXT-o}
5977 am__minus_obj="-o $am__obj"
5978 case $depmode in
5979 gcc)
5980 # This depmode causes a compiler race in universal mode.
5981 test "$am__universal" = false || continue
5982 ;;
5983 nosideeffect)
5984 # After this tag, mechanisms are not by side-effect, so they'll
5985 # only be used when explicitly requested.
5986 if test "x$enable_dependency_tracking" = xyes; then
5987 continue
5988 else
5989 break
5990 fi
5991 ;;
5992 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5993 # This compiler won't grok '-c -o', but also, the minuso test has
5994 # not run yet. These depmodes are late enough in the game, and
5995 # so weak that their functioning should not be impacted.
5996 am__obj=conftest.${OBJEXT-o}
5997 am__minus_obj=
5998 ;;
5999 none) break ;;
6000 esac
6001 if depmode=$depmode \
6002 source=sub/conftest.c object=$am__obj \
6003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6005 >/dev/null 2>conftest.err &&
6006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6010 # icc doesn't choke on unknown options, it will just issue warnings
6011 # or remarks (even with -Werror). So we grep stderr for any message
6012 # that says an option was ignored or not supported.
6013 # When given -MP, icc 7.0 and 7.1 complain thusly:
6014 # icc: Command line warning: ignoring option '-M'; no argument required
6015 # The diagnosis changed in icc 8.0:
6016 # icc: Command line remark: option '-MP' not supported
6017 if (grep 'ignoring option' conftest.err ||
6018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6019 am_cv_CC_dependencies_compiler_type=$depmode
6020 break
6021 fi
6022 fi
6023 done
6024
6025 cd ..
6026 rm -rf conftest.dir
6027else
6028 am_cv_CC_dependencies_compiler_type=none
6029fi
6030
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6033$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6034CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6035
6036 if
6037 test "x$enable_dependency_tracking" != xno \
6038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6039 am__fastdepCC_TRUE=
6040 am__fastdepCC_FALSE='#'
6041else
6042 am__fastdepCC_TRUE='#'
6043 am__fastdepCC_FALSE=
6044fi
6045
6046
6047
6048# POSIX will say in a future version that running "rm -f" with no argument
6049# is OK; and we want to be able to make that assumption in our Makefile
6050# recipes. So use an aggressive probe to check that the usage we want is
6051# actually supported "in the wild" to an acceptable degree.
6052# See automake bug#10828.
6053# To make any issue more visible, cause the running configure to be aborted
6054# by default if the 'rm' program in use doesn't match our expectations; the
6055# user can still override this though.
6056if rm -f && rm -fr && rm -rf; then : OK; else
6057 cat >&2 <<'END'
6058Oops!
6059
6060Your 'rm' program seems unable to run without file operands specified
6061on the command line, even when the '-f' option is present. This is contrary
6062to the behaviour of most rm programs out there, and not conforming with
6063the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6064
6065Please tell bug-automake@gnu.org about your system, including the value
6066of your $PATH and any error possibly output before this message. This
6067can help us improve future automake versions.
6068
6069END
6070 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6071 echo 'Configuration will proceed anyway, since you have set the' >&2
6072 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6073 echo >&2
6074 else
6075 cat >&2 <<'END'
6076Aborting the configuration process, to ensure you take notice of the issue.
6077
6078You can download and install GNU coreutils to get an 'rm' implementation
6079that behaves properly: <http://www.gnu.org/software/coreutils/>.
6080
6081If you want to complete the configuration process using your problematic
6082'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6083to "yes", and re-run configure.
6084
6085END
6086 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6087 fi
6088fi
6089
6090## ------------------------------------- ##
6091## End of automake initialization code ##
6092## ------------------------------------- ##
6093
6094
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6096$as_echo_n "checking curl version... " >&6; }
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6098$as_echo "$CURLVERSION" >&6; }
6099
6100
6101
6102VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6103
6104
6105PKGADD_PKG="HAXXcurl"
6106PKGADD_NAME="curl - a client that groks URLs"
6107PKGADD_VENDOR="curl.haxx.se"
6108
6109
6110
6111
6112 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6113 curl_ssh_msg="no (--with-libssh2)"
6114 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006115 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006116 curl_gss_msg="no (--with-gssapi)"
6117curl_tls_srp_msg="no (--enable-tls-srp)"
6118 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6119 curl_ipv6_msg="no (--enable-ipv6)"
6120curl_unix_sockets_msg="no (--enable-unix-sockets)"
6121 curl_idn_msg="no (--with-{libidn2,winidn})"
6122 curl_manual_msg="no (--enable-manual)"
6123curl_libcurl_msg="enabled (--disable-libcurl-option)"
6124curl_verbose_msg="enabled (--disable-verbose)"
6125 curl_sspi_msg="no (--enable-sspi)"
6126 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6127 curl_ldaps_msg="no (--enable-ldaps)"
6128 curl_rtsp_msg="no (--enable-rtsp)"
6129 curl_rtmp_msg="no (--with-librtmp)"
6130 curl_mtlnk_msg="no (--with-libmetalink)"
6131 curl_psl_msg="no (--with-libpsl)"
6132
Alex Deymo486467e2017-12-19 19:04:07 +01006133 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006134
6135INITIAL_LDFLAGS=$LDFLAGS
6136INITIAL_LIBS=$LIBS
6137
6138
6139# Make sure we can run config.sub.
6140$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6141 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6144$as_echo_n "checking build system type... " >&6; }
6145if ${ac_cv_build+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147else
6148 ac_build_alias=$build_alias
6149test "x$ac_build_alias" = x &&
6150 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6151test "x$ac_build_alias" = x &&
6152 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6153ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6154 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6155
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6158$as_echo "$ac_cv_build" >&6; }
6159case $ac_cv_build in
6160*-*-*) ;;
6161*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6162esac
6163build=$ac_cv_build
6164ac_save_IFS=$IFS; IFS='-'
6165set x $ac_cv_build
6166shift
6167build_cpu=$1
6168build_vendor=$2
6169shift; shift
6170# Remember, the first character of IFS is used to create $*,
6171# except with old shells:
6172build_os=$*
6173IFS=$ac_save_IFS
6174case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6175
6176
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6178$as_echo_n "checking host system type... " >&6; }
6179if ${ac_cv_host+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 if test "x$host_alias" = x; then
6183 ac_cv_host=$ac_cv_build
6184else
6185 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6186 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6187fi
6188
6189fi
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6191$as_echo "$ac_cv_host" >&6; }
6192case $ac_cv_host in
6193*-*-*) ;;
6194*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6195esac
6196host=$ac_cv_host
6197ac_save_IFS=$IFS; IFS='-'
6198set x $ac_cv_host
6199shift
6200host_cpu=$1
6201host_vendor=$2
6202shift; shift
6203# Remember, the first character of IFS is used to create $*,
6204# except with old shells:
6205host_os=$*
6206IFS=$ac_save_IFS
6207case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6208
6209
6210
6211cat >>confdefs.h <<_ACEOF
6212#define OS "${host}"
6213_ACEOF
6214
6215
6216
6217
6218
Elliott Hughes82be86d2017-09-20 17:00:17 -07006219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6220$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6221if ${ac_cv_path_GREP+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 if test -z "$GREP"; then
6225 ac_path_GREP_found=false
6226 # Loop through the user's path and test for each of PROGNAME-LIST
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_prog in grep ggrep; do
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6235 as_fn_executable_p "$ac_path_GREP" || continue
6236# Check for GNU ac_path_GREP and select it if it is found.
6237 # Check for GNU $ac_path_GREP
6238case `"$ac_path_GREP" --version 2>&1` in
6239*GNU*)
6240 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6241*)
6242 ac_count=0
6243 $as_echo_n 0123456789 >"conftest.in"
6244 while :
6245 do
6246 cat "conftest.in" "conftest.in" >"conftest.tmp"
6247 mv "conftest.tmp" "conftest.in"
6248 cp "conftest.in" "conftest.nl"
6249 $as_echo 'GREP' >> "conftest.nl"
6250 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6252 as_fn_arith $ac_count + 1 && ac_count=$as_val
6253 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6254 # Best one so far, save it but keep looking for a better one
6255 ac_cv_path_GREP="$ac_path_GREP"
6256 ac_path_GREP_max=$ac_count
6257 fi
6258 # 10*(2^10) chars as input seems more than enough
6259 test $ac_count -gt 10 && break
6260 done
6261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6262esac
6263
6264 $ac_path_GREP_found && break 3
6265 done
6266 done
6267 done
6268IFS=$as_save_IFS
6269 if test -z "$ac_cv_path_GREP"; then
6270 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6271 fi
6272else
6273 ac_cv_path_GREP=$GREP
6274fi
6275
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6278$as_echo "$ac_cv_path_GREP" >&6; }
6279 GREP="$ac_cv_path_GREP"
6280
6281
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6283$as_echo_n "checking for egrep... " >&6; }
6284if ${ac_cv_path_EGREP+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286else
6287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6288 then ac_cv_path_EGREP="$GREP -E"
6289 else
6290 if test -z "$EGREP"; then
6291 ac_path_EGREP_found=false
6292 # Loop through the user's path and test for each of PROGNAME-LIST
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_prog in egrep; do
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6301 as_fn_executable_p "$ac_path_EGREP" || continue
6302# Check for GNU ac_path_EGREP and select it if it is found.
6303 # Check for GNU $ac_path_EGREP
6304case `"$ac_path_EGREP" --version 2>&1` in
6305*GNU*)
6306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6307*)
6308 ac_count=0
6309 $as_echo_n 0123456789 >"conftest.in"
6310 while :
6311 do
6312 cat "conftest.in" "conftest.in" >"conftest.tmp"
6313 mv "conftest.tmp" "conftest.in"
6314 cp "conftest.in" "conftest.nl"
6315 $as_echo 'EGREP' >> "conftest.nl"
6316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6318 as_fn_arith $ac_count + 1 && ac_count=$as_val
6319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6320 # Best one so far, save it but keep looking for a better one
6321 ac_cv_path_EGREP="$ac_path_EGREP"
6322 ac_path_EGREP_max=$ac_count
6323 fi
6324 # 10*(2^10) chars as input seems more than enough
6325 test $ac_count -gt 10 && break
6326 done
6327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6328esac
6329
6330 $ac_path_EGREP_found && break 3
6331 done
6332 done
6333 done
6334IFS=$as_save_IFS
6335 if test -z "$ac_cv_path_EGREP"; then
6336 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6337 fi
6338else
6339 ac_cv_path_EGREP=$EGREP
6340fi
6341
6342 fi
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6345$as_echo "$ac_cv_path_EGREP" >&6; }
6346 EGREP="$ac_cv_path_EGREP"
6347
6348
Elliott Hughes82be86d2017-09-20 17:00:17 -07006349
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6352$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355
6356#ifdef _AIX
6357 yes_this_is_aix
6358#endif
6359
6360_ACEOF
6361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365$as_echo "yes" >&6; }
6366 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6367
6368
6369else
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373
6374fi
6375rm -f conftest*
6376
6377
6378
6379
6380 #
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6382$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h. */
6385
6386
6387
6388int main (void)
6389{
6390
6391#ifdef _THREAD_SAFE
6392 int dummy=1;
6393#else
6394 force compilation error
6395#endif
6396
6397 ;
6398 return 0;
6399}
6400
6401_ACEOF
6402if ac_fn_c_try_compile "$LINENO"; then :
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6405$as_echo "yes" >&6; }
6406 tmp_thread_safe_initially_defined="yes"
6407
6408else
6409
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412 tmp_thread_safe_initially_defined="no"
6413
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 #
6417 if test "$tmp_thread_safe_initially_defined" = "no"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6419$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6420
6421 case $host_os in
6422 aix[123].* | aix4.[012].*)
6423 tmp_need_thread_safe="no"
6424 ;;
6425 aix*)
6426 tmp_need_thread_safe="yes"
6427 ;;
6428 *)
6429 tmp_need_thread_safe="no"
6430 ;;
6431 esac
6432
6433 if test "$tmp_need_thread_safe" = "yes"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435$as_echo "yes" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438$as_echo "no" >&6; }
6439 fi
6440 fi
6441 #
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6443$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6444 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6445 test "$tmp_need_thread_safe" = "yes"; then
6446
6447
6448$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6449
6450cat >>confdefs.h <<_EOF
6451#ifndef _THREAD_SAFE
6452# define _THREAD_SAFE
6453#endif
6454_EOF
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6457$as_echo "yes" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461 fi
6462 #
6463
6464
6465 #
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6467$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h. */
6470
6471
6472
6473int main (void)
6474{
6475
6476#ifdef _REENTRANT
6477 int dummy=1;
6478#else
6479 force compilation error
6480#endif
6481
6482 ;
6483 return 0;
6484}
6485
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490$as_echo "yes" >&6; }
6491 tmp_reentrant_initially_defined="yes"
6492
6493else
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497 tmp_reentrant_initially_defined="no"
6498
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 #
6502 if test "$tmp_reentrant_initially_defined" = "no"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6504$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6505
6506 case $host_os in
6507 solaris*)
6508 tmp_need_reentrant="yes"
6509 ;;
6510 *)
6511 tmp_need_reentrant="no"
6512 ;;
6513 esac
6514
6515 if test "$tmp_need_reentrant" = "no"; then
6516
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h. */
6519
6520
6521#include <errno.h>
6522
6523int main (void)
6524{
6525
6526 if(0 != errno)
6527 return 1;
6528
6529 ;
6530 return 0;
6531}
6532
6533_ACEOF
6534if ac_fn_c_try_compile "$LINENO"; then :
6535
6536 tmp_errno="yes"
6537
6538else
6539
6540 tmp_errno="no"
6541
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 if test "$tmp_errno" = "yes"; then
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h. */
6547
6548
6549#include <errno.h>
6550
6551int main (void)
6552{
6553
6554#ifdef errno
6555 int dummy=1;
6556#else
6557 force compilation error
6558#endif
6559
6560 ;
6561 return 0;
6562}
6563
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"; then :
6566
6567 tmp_errno="errno_macro_defined"
6568
6569else
6570
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h. */
6573
6574
6575#define _REENTRANT
6576#include <errno.h>
6577
6578int main (void)
6579{
6580
6581#ifdef errno
6582 int dummy=1;
6583#else
6584 force compilation error
6585#endif
6586
6587 ;
6588 return 0;
6589}
6590
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593
6594 tmp_errno="errno_macro_needs_reentrant"
6595 tmp_need_reentrant="yes"
6596
6597fi
6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599
6600fi
6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603
6604 fi
6605 if test "$tmp_need_reentrant" = "no"; then
6606
6607 if test "$tmp_need_reentrant" = "no"; then
6608
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h. */
6611
6612
6613#define gmtime_r innocuous_gmtime_r
6614#ifdef __STDC__
6615# include <limits.h>
6616#else
6617# include <assert.h>
6618#endif
6619#undef gmtime_r
6620#ifdef __cplusplus
6621extern "C"
6622#endif
6623char gmtime_r ();
6624#if defined __stub_gmtime_r || defined __stub___gmtime_r
6625choke me
6626#endif
6627
6628int main (void)
6629{
6630return gmtime_r ();
6631 ;
6632 return 0;
6633}
6634
6635_ACEOF
6636if ac_fn_c_try_link "$LINENO"; then :
6637
6638 tmp_gmtime_r="yes"
6639
6640else
6641
6642 tmp_gmtime_r="no"
6643
6644fi
6645rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 if test "$tmp_gmtime_r" = "yes"; then
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649/* end confdefs.h. */
6650
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_declared"
6659
6660else
6661
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h. */
6664
6665#define _REENTRANT
6666#include <sys/types.h>
6667#include <time.h>
6668
6669_ACEOF
6670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6671 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6672
6673 tmp_gmtime_r="proto_needs_reentrant"
6674 tmp_need_reentrant="yes"
6675
6676fi
6677rm -f conftest*
6678
6679
6680fi
6681rm -f conftest*
6682
6683 fi
6684
6685 fi
6686 if test "$tmp_need_reentrant" = "no"; then
6687
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691
6692#define localtime_r innocuous_localtime_r
6693#ifdef __STDC__
6694# include <limits.h>
6695#else
6696# include <assert.h>
6697#endif
6698#undef localtime_r
6699#ifdef __cplusplus
6700extern "C"
6701#endif
6702char localtime_r ();
6703#if defined __stub_localtime_r || defined __stub___localtime_r
6704choke me
6705#endif
6706
6707int main (void)
6708{
6709return localtime_r ();
6710 ;
6711 return 0;
6712}
6713
6714_ACEOF
6715if ac_fn_c_try_link "$LINENO"; then :
6716
6717 tmp_localtime_r="yes"
6718
6719else
6720
6721 tmp_localtime_r="no"
6722
6723fi
6724rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 if test "$tmp_localtime_r" = "yes"; then
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h. */
6729
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_declared"
6738
6739else
6740
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h. */
6743
6744#define _REENTRANT
6745#include <sys/types.h>
6746#include <time.h>
6747
6748_ACEOF
6749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6750 $EGREP "localtime_r" >/dev/null 2>&1; then :
6751
6752 tmp_localtime_r="proto_needs_reentrant"
6753 tmp_need_reentrant="yes"
6754
6755fi
6756rm -f conftest*
6757
6758
6759fi
6760rm -f conftest*
6761
6762 fi
6763
6764 fi
6765 if test "$tmp_need_reentrant" = "no"; then
6766
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768/* end confdefs.h. */
6769
6770
6771#define strerror_r innocuous_strerror_r
6772#ifdef __STDC__
6773# include <limits.h>
6774#else
6775# include <assert.h>
6776#endif
6777#undef strerror_r
6778#ifdef __cplusplus
6779extern "C"
6780#endif
6781char strerror_r ();
6782#if defined __stub_strerror_r || defined __stub___strerror_r
6783choke me
6784#endif
6785
6786int main (void)
6787{
6788return strerror_r ();
6789 ;
6790 return 0;
6791}
6792
6793_ACEOF
6794if ac_fn_c_try_link "$LINENO"; then :
6795
6796 tmp_strerror_r="yes"
6797
6798else
6799
6800 tmp_strerror_r="no"
6801
6802fi
6803rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 if test "$tmp_strerror_r" = "yes"; then
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h. */
6808
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_declared"
6817
6818else
6819
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h. */
6822
6823#define _REENTRANT
6824#include <sys/types.h>
6825#include <string.h>
6826
6827_ACEOF
6828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829 $EGREP "strerror_r" >/dev/null 2>&1; then :
6830
6831 tmp_strerror_r="proto_needs_reentrant"
6832 tmp_need_reentrant="yes"
6833
6834fi
6835rm -f conftest*
6836
6837
6838fi
6839rm -f conftest*
6840
6841 fi
6842
6843 fi
6844 if test "$tmp_need_reentrant" = "no"; then
6845
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h. */
6848
6849
6850#define strtok_r innocuous_strtok_r
6851#ifdef __STDC__
6852# include <limits.h>
6853#else
6854# include <assert.h>
6855#endif
6856#undef strtok_r
6857#ifdef __cplusplus
6858extern "C"
6859#endif
6860char strtok_r ();
6861#if defined __stub_strtok_r || defined __stub___strtok_r
6862choke me
6863#endif
6864
6865int main (void)
6866{
6867return strtok_r ();
6868 ;
6869 return 0;
6870}
6871
6872_ACEOF
6873if ac_fn_c_try_link "$LINENO"; then :
6874
6875 tmp_strtok_r="yes"
6876
6877else
6878
6879 tmp_strtok_r="no"
6880
6881fi
6882rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884 if test "$tmp_strtok_r" = "yes"; then
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h. */
6887
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_declared"
6896
6897else
6898
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h. */
6901
6902#define _REENTRANT
6903#include <sys/types.h>
6904#include <string.h>
6905
6906_ACEOF
6907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 $EGREP "strtok_r" >/dev/null 2>&1; then :
6909
6910 tmp_strtok_r="proto_needs_reentrant"
6911 tmp_need_reentrant="yes"
6912
6913fi
6914rm -f conftest*
6915
6916
6917fi
6918rm -f conftest*
6919
6920 fi
6921
6922 fi
6923 if test "$tmp_need_reentrant" = "no"; then
6924
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h. */
6927
6928
6929#define inet_ntoa_r innocuous_inet_ntoa_r
6930#ifdef __STDC__
6931# include <limits.h>
6932#else
6933# include <assert.h>
6934#endif
6935#undef inet_ntoa_r
6936#ifdef __cplusplus
6937extern "C"
6938#endif
6939char inet_ntoa_r ();
6940#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6941choke me
6942#endif
6943
6944int main (void)
6945{
6946return inet_ntoa_r ();
6947 ;
6948 return 0;
6949}
6950
6951_ACEOF
6952if ac_fn_c_try_link "$LINENO"; then :
6953
6954 tmp_inet_ntoa_r="yes"
6955
6956else
6957
6958 tmp_inet_ntoa_r="no"
6959
6960fi
6961rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 if test "$tmp_inet_ntoa_r" = "yes"; then
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h. */
6966
6967#include <sys/types.h>
6968#include <sys/socket.h>
6969#include <netinet/in.h>
6970#include <arpa/inet.h>
6971
6972_ACEOF
6973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6975
6976 tmp_inet_ntoa_r="proto_declared"
6977
6978else
6979
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h. */
6982
6983#define _REENTRANT
6984#include <sys/types.h>
6985#include <sys/socket.h>
6986#include <netinet/in.h>
6987#include <arpa/inet.h>
6988
6989_ACEOF
6990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6991 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6992
6993 tmp_inet_ntoa_r="proto_needs_reentrant"
6994 tmp_need_reentrant="yes"
6995
6996fi
6997rm -f conftest*
6998
6999
7000fi
7001rm -f conftest*
7002
7003 fi
7004
7005 fi
7006 if test "$tmp_need_reentrant" = "no"; then
7007
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h. */
7010
7011
7012#define gethostbyaddr_r innocuous_gethostbyaddr_r
7013#ifdef __STDC__
7014# include <limits.h>
7015#else
7016# include <assert.h>
7017#endif
7018#undef gethostbyaddr_r
7019#ifdef __cplusplus
7020extern "C"
7021#endif
7022char gethostbyaddr_r ();
7023#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7024choke me
7025#endif
7026
7027int main (void)
7028{
7029return gethostbyaddr_r ();
7030 ;
7031 return 0;
7032}
7033
7034_ACEOF
7035if ac_fn_c_try_link "$LINENO"; then :
7036
7037 tmp_gethostbyaddr_r="yes"
7038
7039else
7040
7041 tmp_gethostbyaddr_r="no"
7042
7043fi
7044rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 if test "$tmp_gethostbyaddr_r" = "yes"; then
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h. */
7049
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_declared"
7058
7059else
7060
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h. */
7063
7064#define _REENTRANT
7065#include <sys/types.h>
7066#include <netdb.h>
7067
7068_ACEOF
7069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7071
7072 tmp_gethostbyaddr_r="proto_needs_reentrant"
7073 tmp_need_reentrant="yes"
7074
7075fi
7076rm -f conftest*
7077
7078
7079fi
7080rm -f conftest*
7081
7082 fi
7083
7084 fi
7085 if test "$tmp_need_reentrant" = "no"; then
7086
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h. */
7089
7090
7091#define gethostbyname_r innocuous_gethostbyname_r
7092#ifdef __STDC__
7093# include <limits.h>
7094#else
7095# include <assert.h>
7096#endif
7097#undef gethostbyname_r
7098#ifdef __cplusplus
7099extern "C"
7100#endif
7101char gethostbyname_r ();
7102#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7103choke me
7104#endif
7105
7106int main (void)
7107{
7108return gethostbyname_r ();
7109 ;
7110 return 0;
7111}
7112
7113_ACEOF
7114if ac_fn_c_try_link "$LINENO"; then :
7115
7116 tmp_gethostbyname_r="yes"
7117
7118else
7119
7120 tmp_gethostbyname_r="no"
7121
7122fi
7123rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7125 if test "$tmp_gethostbyname_r" = "yes"; then
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h. */
7128
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_declared"
7137
7138else
7139
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h. */
7142
7143#define _REENTRANT
7144#include <sys/types.h>
7145#include <netdb.h>
7146
7147_ACEOF
7148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7150
7151 tmp_gethostbyname_r="proto_needs_reentrant"
7152 tmp_need_reentrant="yes"
7153
7154fi
7155rm -f conftest*
7156
7157
7158fi
7159rm -f conftest*
7160
7161 fi
7162
7163 fi
7164 if test "$tmp_need_reentrant" = "no"; then
7165
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h. */
7168
7169
7170#define getprotobyname_r innocuous_getprotobyname_r
7171#ifdef __STDC__
7172# include <limits.h>
7173#else
7174# include <assert.h>
7175#endif
7176#undef getprotobyname_r
7177#ifdef __cplusplus
7178extern "C"
7179#endif
7180char getprotobyname_r ();
7181#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7182choke me
7183#endif
7184
7185int main (void)
7186{
7187return getprotobyname_r ();
7188 ;
7189 return 0;
7190}
7191
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"; then :
7194
7195 tmp_getprotobyname_r="yes"
7196
7197else
7198
7199 tmp_getprotobyname_r="no"
7200
7201fi
7202rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 if test "$tmp_getprotobyname_r" = "yes"; then
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h. */
7207
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_declared"
7216
7217else
7218
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h. */
7221
7222#define _REENTRANT
7223#include <sys/types.h>
7224#include <netdb.h>
7225
7226_ACEOF
7227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7229
7230 tmp_getprotobyname_r="proto_needs_reentrant"
7231 tmp_need_reentrant="yes"
7232
7233fi
7234rm -f conftest*
7235
7236
7237fi
7238rm -f conftest*
7239
7240 fi
7241
7242 fi
7243 if test "$tmp_need_reentrant" = "no"; then
7244
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h. */
7247
7248
7249#define getservbyport_r innocuous_getservbyport_r
7250#ifdef __STDC__
7251# include <limits.h>
7252#else
7253# include <assert.h>
7254#endif
7255#undef getservbyport_r
7256#ifdef __cplusplus
7257extern "C"
7258#endif
7259char getservbyport_r ();
7260#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7261choke me
7262#endif
7263
7264int main (void)
7265{
7266return getservbyport_r ();
7267 ;
7268 return 0;
7269}
7270
7271_ACEOF
7272if ac_fn_c_try_link "$LINENO"; then :
7273
7274 tmp_getservbyport_r="yes"
7275
7276else
7277
7278 tmp_getservbyport_r="no"
7279
7280fi
7281rm -f core conftest.err conftest.$ac_objext \
7282 conftest$ac_exeext conftest.$ac_ext
7283 if test "$tmp_getservbyport_r" = "yes"; then
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h. */
7286
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_declared"
7295
7296else
7297
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h. */
7300
7301#define _REENTRANT
7302#include <sys/types.h>
7303#include <netdb.h>
7304
7305_ACEOF
7306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7308
7309 tmp_getservbyport_r="proto_needs_reentrant"
7310 tmp_need_reentrant="yes"
7311
7312fi
7313rm -f conftest*
7314
7315
7316fi
7317rm -f conftest*
7318
7319 fi
7320
7321 fi
7322
7323 fi
7324 if test "$tmp_need_reentrant" = "yes"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326$as_echo "yes" >&6; }
7327 else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330 fi
7331 fi
7332 #
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7334$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7335 if test "$tmp_reentrant_initially_defined" = "yes" ||
7336 test "$tmp_need_reentrant" = "yes"; then
7337
7338
7339$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7340
7341cat >>confdefs.h <<_EOF
7342#ifndef _REENTRANT
7343# define _REENTRANT
7344#endif
7345_EOF
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7348$as_echo "yes" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352 fi
7353 #
7354
7355
7356# Check whether --enable-largefile was given.
7357if test "${enable_largefile+set}" = set; then :
7358 enableval=$enable_largefile;
7359fi
7360
7361if test "$enable_largefile" != no; then
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7364$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7365if ${ac_cv_sys_largefile_CC+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367else
7368 ac_cv_sys_largefile_CC=no
7369 if test "$GCC" != yes; then
7370 ac_save_CC=$CC
7371 while :; do
7372 # IRIX 6.2 and later do not support large files by default,
7373 # so use the C compiler's -n32 option if that helps.
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h. */
7376#include <sys/types.h>
7377 /* Check that off_t can represent 2**63 - 1 correctly.
7378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7379 since some C++ compilers masquerading as C compilers
7380 incorrectly reject 9223372036854775807. */
7381#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7383 && LARGE_OFF_T % 2147483647 == 1)
7384 ? 1 : -1];
7385int main (void)
7386{
7387
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392 if ac_fn_c_try_compile "$LINENO"; then :
7393 break
7394fi
7395rm -f core conftest.err conftest.$ac_objext
7396 CC="$CC -n32"
7397 if ac_fn_c_try_compile "$LINENO"; then :
7398 ac_cv_sys_largefile_CC=' -n32'; break
7399fi
7400rm -f core conftest.err conftest.$ac_objext
7401 break
7402 done
7403 CC=$ac_save_CC
7404 rm -f conftest.$ac_ext
7405 fi
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7408$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7409 if test "$ac_cv_sys_largefile_CC" != no; then
7410 CC=$CC$ac_cv_sys_largefile_CC
7411 fi
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7414$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7415if ${ac_cv_sys_file_offset_bits+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417else
7418 while :; do
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h. */
7421#include <sys/types.h>
7422 /* Check that off_t can represent 2**63 - 1 correctly.
7423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7424 since some C++ compilers masquerading as C compilers
7425 incorrectly reject 9223372036854775807. */
7426#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7428 && LARGE_OFF_T % 2147483647 == 1)
7429 ? 1 : -1];
7430int main (void)
7431{
7432
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437if ac_fn_c_try_compile "$LINENO"; then :
7438 ac_cv_sys_file_offset_bits=no; break
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h. */
7443#define _FILE_OFFSET_BITS 64
7444#include <sys/types.h>
7445 /* Check that off_t can represent 2**63 - 1 correctly.
7446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7447 since some C++ compilers masquerading as C compilers
7448 incorrectly reject 9223372036854775807. */
7449#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7451 && LARGE_OFF_T % 2147483647 == 1)
7452 ? 1 : -1];
7453int main (void)
7454{
7455
7456 ;
7457 return 0;
7458}
7459_ACEOF
7460if ac_fn_c_try_compile "$LINENO"; then :
7461 ac_cv_sys_file_offset_bits=64; break
7462fi
7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 ac_cv_sys_file_offset_bits=unknown
7465 break
7466done
7467fi
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7469$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7470case $ac_cv_sys_file_offset_bits in #(
7471 no | unknown) ;;
7472 *)
7473cat >>confdefs.h <<_ACEOF
7474#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7475_ACEOF
7476;;
7477esac
7478rm -rf conftest*
7479 if test $ac_cv_sys_file_offset_bits = unknown; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7481$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7482if ${ac_cv_sys_large_files+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484else
7485 while :; do
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h. */
7488#include <sys/types.h>
7489 /* Check that off_t can represent 2**63 - 1 correctly.
7490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7491 since some C++ compilers masquerading as C compilers
7492 incorrectly reject 9223372036854775807. */
7493#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7495 && LARGE_OFF_T % 2147483647 == 1)
7496 ? 1 : -1];
7497int main (void)
7498{
7499
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504if ac_fn_c_try_compile "$LINENO"; then :
7505 ac_cv_sys_large_files=no; break
7506fi
7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h. */
7510#define _LARGE_FILES 1
7511#include <sys/types.h>
7512 /* Check that off_t can represent 2**63 - 1 correctly.
7513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7514 since some C++ compilers masquerading as C compilers
7515 incorrectly reject 9223372036854775807. */
7516#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7518 && LARGE_OFF_T % 2147483647 == 1)
7519 ? 1 : -1];
7520int main (void)
7521{
7522
7523 ;
7524 return 0;
7525}
7526_ACEOF
7527if ac_fn_c_try_compile "$LINENO"; then :
7528 ac_cv_sys_large_files=1; break
7529fi
7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 ac_cv_sys_large_files=unknown
7532 break
7533done
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7536$as_echo "$ac_cv_sys_large_files" >&6; }
7537case $ac_cv_sys_large_files in #(
7538 no | unknown) ;;
7539 *)
7540cat >>confdefs.h <<_ACEOF
7541#define _LARGE_FILES $ac_cv_sys_large_files
7542_ACEOF
7543;;
7544esac
7545rm -rf conftest*
7546 fi
7547
7548
7549fi
7550
7551
7552case `pwd` in
7553 *\ * | *\ *)
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7555$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7556esac
7557
7558
7559
7560macro_version='2.4.6'
7561macro_revision='2.4.6'
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575ltmain=$ac_aux_dir/ltmain.sh
7576
7577# Backslashify metacharacters that are still active within
7578# double-quoted strings.
7579sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7580
7581# Same as above, but do not quote variable references.
7582double_quote_subst='s/\(["`\\]\)/\\\1/g'
7583
7584# Sed substitution to delay expansion of an escaped shell variable in a
7585# double_quote_subst'ed string.
7586delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7587
7588# Sed substitution to delay expansion of an escaped single quote.
7589delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7590
7591# Sed substitution to avoid accidental globbing in evaled expressions
7592no_glob_subst='s/\*/\\\*/g'
7593
7594ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7595ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7596ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7597
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7599$as_echo_n "checking how to print strings... " >&6; }
7600# Test print first, because it will be a builtin if present.
7601if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7602 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7603 ECHO='print -r --'
7604elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7605 ECHO='printf %s\n'
7606else
7607 # Use this function as a fallback that always works.
7608 func_fallback_echo ()
7609 {
7610 eval 'cat <<_LTECHO_EOF
7611$1
7612_LTECHO_EOF'
7613 }
7614 ECHO='func_fallback_echo'
7615fi
7616
7617# func_echo_all arg...
7618# Invoke $ECHO with all args, space-separated.
7619func_echo_all ()
7620{
7621 $ECHO ""
7622}
7623
7624case $ECHO in
7625 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7626$as_echo "printf" >&6; } ;;
7627 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7628$as_echo "print -r" >&6; } ;;
7629 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7630$as_echo "cat" >&6; } ;;
7631esac
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7647$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7648if ${ac_cv_path_SED+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650else
7651 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7652 for ac_i in 1 2 3 4 5 6 7; do
7653 ac_script="$ac_script$as_nl$ac_script"
7654 done
7655 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7656 { ac_script=; unset ac_script;}
7657 if test -z "$SED"; then
7658 ac_path_SED_found=false
7659 # Loop through the user's path and test for each of PROGNAME-LIST
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_prog in sed gsed; do
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7668 as_fn_executable_p "$ac_path_SED" || continue
7669# Check for GNU ac_path_SED and select it if it is found.
7670 # Check for GNU $ac_path_SED
7671case `"$ac_path_SED" --version 2>&1` in
7672*GNU*)
7673 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7674*)
7675 ac_count=0
7676 $as_echo_n 0123456789 >"conftest.in"
7677 while :
7678 do
7679 cat "conftest.in" "conftest.in" >"conftest.tmp"
7680 mv "conftest.tmp" "conftest.in"
7681 cp "conftest.in" "conftest.nl"
7682 $as_echo '' >> "conftest.nl"
7683 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7685 as_fn_arith $ac_count + 1 && ac_count=$as_val
7686 if test $ac_count -gt ${ac_path_SED_max-0}; then
7687 # Best one so far, save it but keep looking for a better one
7688 ac_cv_path_SED="$ac_path_SED"
7689 ac_path_SED_max=$ac_count
7690 fi
7691 # 10*(2^10) chars as input seems more than enough
7692 test $ac_count -gt 10 && break
7693 done
7694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7695esac
7696
7697 $ac_path_SED_found && break 3
7698 done
7699 done
7700 done
7701IFS=$as_save_IFS
7702 if test -z "$ac_cv_path_SED"; then
7703 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7704 fi
7705else
7706 ac_cv_path_SED=$SED
7707fi
7708
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7711$as_echo "$ac_cv_path_SED" >&6; }
7712 SED="$ac_cv_path_SED"
7713 rm -f conftest.sed
7714
7715test -z "$SED" && SED=sed
7716Xsed="$SED -e 1s/^X//"
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7729$as_echo_n "checking for fgrep... " >&6; }
7730if ${ac_cv_path_FGREP+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7734 then ac_cv_path_FGREP="$GREP -F"
7735 else
7736 if test -z "$FGREP"; then
7737 ac_path_FGREP_found=false
7738 # Loop through the user's path and test for each of PROGNAME-LIST
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_prog in fgrep; do
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7747 as_fn_executable_p "$ac_path_FGREP" || continue
7748# Check for GNU ac_path_FGREP and select it if it is found.
7749 # Check for GNU $ac_path_FGREP
7750case `"$ac_path_FGREP" --version 2>&1` in
7751*GNU*)
7752 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7753*)
7754 ac_count=0
7755 $as_echo_n 0123456789 >"conftest.in"
7756 while :
7757 do
7758 cat "conftest.in" "conftest.in" >"conftest.tmp"
7759 mv "conftest.tmp" "conftest.in"
7760 cp "conftest.in" "conftest.nl"
7761 $as_echo 'FGREP' >> "conftest.nl"
7762 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7764 as_fn_arith $ac_count + 1 && ac_count=$as_val
7765 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7766 # Best one so far, save it but keep looking for a better one
7767 ac_cv_path_FGREP="$ac_path_FGREP"
7768 ac_path_FGREP_max=$ac_count
7769 fi
7770 # 10*(2^10) chars as input seems more than enough
7771 test $ac_count -gt 10 && break
7772 done
7773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7774esac
7775
7776 $ac_path_FGREP_found && break 3
7777 done
7778 done
7779 done
7780IFS=$as_save_IFS
7781 if test -z "$ac_cv_path_FGREP"; then
7782 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7783 fi
7784else
7785 ac_cv_path_FGREP=$FGREP
7786fi
7787
7788 fi
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7791$as_echo "$ac_cv_path_FGREP" >&6; }
7792 FGREP="$ac_cv_path_FGREP"
7793
7794
7795test -z "$GREP" && GREP=grep
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815# Check whether --with-gnu-ld was given.
7816if test "${with_gnu_ld+set}" = set; then :
7817 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7818else
7819 with_gnu_ld=no
7820fi
7821
7822ac_prog=ld
7823if test yes = "$GCC"; then
7824 # Check if gcc -print-prog-name=ld gives a path.
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7826$as_echo_n "checking for ld used by $CC... " >&6; }
7827 case $host in
7828 *-*-mingw*)
7829 # gcc leaves a trailing carriage return, which upsets mingw
7830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7831 *)
7832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7833 esac
7834 case $ac_prog in
7835 # Accept absolute paths.
7836 [\\/]* | ?:[\\/]*)
7837 re_direlt='/[^/][^/]*/\.\./'
7838 # Canonicalize the pathname of ld
7839 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7840 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7841 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7842 done
7843 test -z "$LD" && LD=$ac_prog
7844 ;;
7845 "")
7846 # If it fails, then pretend we aren't using GCC.
7847 ac_prog=ld
7848 ;;
7849 *)
7850 # If it is relative, then search for the first ld in PATH.
7851 with_gnu_ld=unknown
7852 ;;
7853 esac
7854elif test yes = "$with_gnu_ld"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7856$as_echo_n "checking for GNU ld... " >&6; }
7857else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7859$as_echo_n "checking for non-GNU ld... " >&6; }
7860fi
7861if ${lt_cv_path_LD+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863else
7864 if test -z "$LD"; then
7865 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7866 for ac_dir in $PATH; do
7867 IFS=$lt_save_ifs
7868 test -z "$ac_dir" && ac_dir=.
7869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7870 lt_cv_path_LD=$ac_dir/$ac_prog
7871 # Check to see if the program is GNU ld. I'd rather use --version,
7872 # but apparently some variants of GNU ld only accept -v.
7873 # Break only if it was the GNU/non-GNU ld that we prefer.
7874 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7875 *GNU* | *'with BFD'*)
7876 test no != "$with_gnu_ld" && break
7877 ;;
7878 *)
7879 test yes != "$with_gnu_ld" && break
7880 ;;
7881 esac
7882 fi
7883 done
7884 IFS=$lt_save_ifs
7885else
7886 lt_cv_path_LD=$LD # Let the user override the test with a path.
7887fi
7888fi
7889
7890LD=$lt_cv_path_LD
7891if test -n "$LD"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7893$as_echo "$LD" >&6; }
7894else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
7897fi
7898test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7900$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7901if ${lt_cv_prog_gnu_ld+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903else
7904 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7905case `$LD -v 2>&1 </dev/null` in
7906*GNU* | *'with BFD'*)
7907 lt_cv_prog_gnu_ld=yes
7908 ;;
7909*)
7910 lt_cv_prog_gnu_ld=no
7911 ;;
7912esac
7913fi
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7915$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7916with_gnu_ld=$lt_cv_prog_gnu_ld
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7927$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7928if ${lt_cv_path_NM+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930else
7931 if test -n "$NM"; then
7932 # Let the user override the test.
7933 lt_cv_path_NM=$NM
7934else
7935 lt_nm_to_check=${ac_tool_prefix}nm
7936 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7937 lt_nm_to_check="$lt_nm_to_check nm"
7938 fi
7939 for lt_tmp_nm in $lt_nm_to_check; do
7940 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7941 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7942 IFS=$lt_save_ifs
7943 test -z "$ac_dir" && ac_dir=.
7944 tmp_nm=$ac_dir/$lt_tmp_nm
7945 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7946 # Check to see if the nm accepts a BSD-compat flag.
7947 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7948 # nm: unknown option "B" ignored
7949 # Tru64's nm complains that /dev/null is an invalid object file
7950 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7951 case $build_os in
7952 mingw*) lt_bad_file=conftest.nm/nofile ;;
7953 *) lt_bad_file=/dev/null ;;
7954 esac
7955 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7956 *$lt_bad_file* | *'Invalid file or object type'*)
7957 lt_cv_path_NM="$tmp_nm -B"
7958 break 2
7959 ;;
7960 *)
7961 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7962 */dev/null*)
7963 lt_cv_path_NM="$tmp_nm -p"
7964 break 2
7965 ;;
7966 *)
7967 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7968 continue # so that we can try to find one that supports BSD flags
7969 ;;
7970 esac
7971 ;;
7972 esac
7973 fi
7974 done
7975 IFS=$lt_save_ifs
7976 done
7977 : ${lt_cv_path_NM=no}
7978fi
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7981$as_echo "$lt_cv_path_NM" >&6; }
7982if test no != "$lt_cv_path_NM"; then
7983 NM=$lt_cv_path_NM
7984else
7985 # Didn't find any BSD compatible name lister, look for dumpbin.
7986 if test -n "$DUMPBIN"; then :
7987 # Let the user override the test.
7988 else
7989 if test -n "$ac_tool_prefix"; then
7990 for ac_prog in dumpbin "link -dump"
7991 do
7992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7993set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if ${ac_cv_prog_DUMPBIN+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998else
7999 if test -n "$DUMPBIN"; then
8000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8001else
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014 done
8015IFS=$as_save_IFS
8016
8017fi
8018fi
8019DUMPBIN=$ac_cv_prog_DUMPBIN
8020if test -n "$DUMPBIN"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8022$as_echo "$DUMPBIN" >&6; }
8023else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026fi
8027
8028
8029 test -n "$DUMPBIN" && break
8030 done
8031fi
8032if test -z "$DUMPBIN"; then
8033 ac_ct_DUMPBIN=$DUMPBIN
8034 for ac_prog in dumpbin "link -dump"
8035do
8036 # Extract the first word of "$ac_prog", so it can be a program name with args.
8037set dummy $ac_prog; ac_word=$2
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039$as_echo_n "checking for $ac_word... " >&6; }
8040if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 if test -n "$ac_ct_DUMPBIN"; then
8044 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058 done
8059IFS=$as_save_IFS
8060
8061fi
8062fi
8063ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8064if test -n "$ac_ct_DUMPBIN"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8066$as_echo "$ac_ct_DUMPBIN" >&6; }
8067else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070fi
8071
8072
8073 test -n "$ac_ct_DUMPBIN" && break
8074done
8075
8076 if test "x$ac_ct_DUMPBIN" = x; then
8077 DUMPBIN=":"
8078 else
8079 case $cross_compiling:$ac_tool_warned in
8080yes:)
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083ac_tool_warned=yes ;;
8084esac
8085 DUMPBIN=$ac_ct_DUMPBIN
8086 fi
8087fi
8088
8089 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8090 *COFF*)
8091 DUMPBIN="$DUMPBIN -symbols -headers"
8092 ;;
8093 *)
8094 DUMPBIN=:
8095 ;;
8096 esac
8097 fi
8098
8099 if test : != "$DUMPBIN"; then
8100 NM=$DUMPBIN
8101 fi
8102fi
8103test -z "$NM" && NM=nm
8104
8105
8106
8107
8108
8109
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8111$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8112if ${lt_cv_nm_interface+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114else
8115 lt_cv_nm_interface="BSD nm"
8116 echo "int some_variable = 0;" > conftest.$ac_ext
8117 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8118 (eval "$ac_compile" 2>conftest.err)
8119 cat conftest.err >&5
8120 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8121 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8122 cat conftest.err >&5
8123 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8124 cat conftest.out >&5
8125 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8126 lt_cv_nm_interface="MS dumpbin"
8127 fi
8128 rm -f conftest*
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8131$as_echo "$lt_cv_nm_interface" >&6; }
8132
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8134$as_echo_n "checking whether ln -s works... " >&6; }
8135LN_S=$as_ln_s
8136if test "$LN_S" = "ln -s"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8138$as_echo "yes" >&6; }
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8141$as_echo "no, using $LN_S" >&6; }
8142fi
8143
8144# find the maximum length of command line arguments
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8146$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8147if ${lt_cv_sys_max_cmd_len+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149else
8150 i=0
8151 teststring=ABCD
8152
8153 case $build_os in
8154 msdosdjgpp*)
8155 # On DJGPP, this test can blow up pretty badly due to problems in libc
8156 # (any single argument exceeding 2000 bytes causes a buffer overrun
8157 # during glob expansion). Even if it were fixed, the result of this
8158 # check would be larger than it should be.
8159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8160 ;;
8161
8162 gnu*)
8163 # Under GNU Hurd, this test is not required because there is
8164 # no limit to the length of command line arguments.
8165 # Libtool will interpret -1 as no limit whatsoever
8166 lt_cv_sys_max_cmd_len=-1;
8167 ;;
8168
8169 cygwin* | mingw* | cegcc*)
8170 # On Win9x/ME, this test blows up -- it succeeds, but takes
8171 # about 5 minutes as the teststring grows exponentially.
8172 # Worse, since 9x/ME are not pre-emptively multitasking,
8173 # you end up with a "frozen" computer, even though with patience
8174 # the test eventually succeeds (with a max line length of 256k).
8175 # Instead, let's just punt: use the minimum linelength reported by
8176 # all of the supported platforms: 8192 (on NT/2K/XP).
8177 lt_cv_sys_max_cmd_len=8192;
8178 ;;
8179
8180 mint*)
8181 # On MiNT this can take a long time and run out of memory.
8182 lt_cv_sys_max_cmd_len=8192;
8183 ;;
8184
8185 amigaos*)
8186 # On AmigaOS with pdksh, this test takes hours, literally.
8187 # So we just punt and use a minimum line length of 8192.
8188 lt_cv_sys_max_cmd_len=8192;
8189 ;;
8190
8191 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8192 # This has been around since 386BSD, at least. Likely further.
8193 if test -x /sbin/sysctl; then
8194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8195 elif test -x /usr/sbin/sysctl; then
8196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8197 else
8198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8199 fi
8200 # And add a safety zone
8201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8203 ;;
8204
8205 interix*)
8206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8207 lt_cv_sys_max_cmd_len=196608
8208 ;;
8209
8210 os2*)
8211 # The test takes a long time on OS/2.
8212 lt_cv_sys_max_cmd_len=8192
8213 ;;
8214
8215 osf*)
8216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8218 # nice to cause kernel panics so lets avoid the loop below.
8219 # First set a reasonable default.
8220 lt_cv_sys_max_cmd_len=16384
8221 #
8222 if test -x /sbin/sysconfig; then
8223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8224 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8225 esac
8226 fi
8227 ;;
8228 sco3.2v5*)
8229 lt_cv_sys_max_cmd_len=102400
8230 ;;
8231 sysv5* | sco5v6* | sysv4.2uw2*)
8232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8233 if test -n "$kargmax"; then
8234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8235 else
8236 lt_cv_sys_max_cmd_len=32768
8237 fi
8238 ;;
8239 *)
8240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8241 if test -n "$lt_cv_sys_max_cmd_len" && \
8242 test undefined != "$lt_cv_sys_max_cmd_len"; then
8243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8245 else
8246 # Make teststring a little bigger before we do anything with it.
8247 # a 1K string should be a reasonable start.
8248 for i in 1 2 3 4 5 6 7 8; do
8249 teststring=$teststring$teststring
8250 done
8251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8252 # If test is not a shell built-in, we'll probably end up computing a
8253 # maximum length that is only half of the actual maximum length, but
8254 # we can't tell.
8255 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8256 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8257 test 17 != "$i" # 1/2 MB should be enough
8258 do
8259 i=`expr $i + 1`
8260 teststring=$teststring$teststring
8261 done
8262 # Only check the string length outside the loop.
8263 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8264 teststring=
8265 # Add a significant safety factor because C++ compilers can tack on
8266 # massive amounts of additional arguments before passing them to the
8267 # linker. It appears as though 1/2 is a usable value.
8268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8269 fi
8270 ;;
8271 esac
8272
8273fi
8274
8275if test -n "$lt_cv_sys_max_cmd_len"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8277$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8278else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8280$as_echo "none" >&6; }
8281fi
8282max_cmd_len=$lt_cv_sys_max_cmd_len
8283
8284
8285
8286
8287
8288
8289: ${CP="cp -f"}
8290: ${MV="mv -f"}
8291: ${RM="rm -f"}
8292
8293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8294 lt_unset=unset
8295else
8296 lt_unset=false
8297fi
8298
8299
8300
8301
8302
8303# test EBCDIC or ASCII
8304case `echo X|tr X '\101'` in
8305 A) # ASCII based system
8306 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8307 lt_SP2NL='tr \040 \012'
8308 lt_NL2SP='tr \015\012 \040\040'
8309 ;;
8310 *) # EBCDIC based system
8311 lt_SP2NL='tr \100 \n'
8312 lt_NL2SP='tr \r\n \100\100'
8313 ;;
8314esac
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8325$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8326if ${lt_cv_to_host_file_cmd+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328else
8329 case $host in
8330 *-*-mingw* )
8331 case $build in
8332 *-*-mingw* ) # actually msys
8333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8334 ;;
8335 *-*-cygwin* )
8336 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8337 ;;
8338 * ) # otherwise, assume *nix
8339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8340 ;;
8341 esac
8342 ;;
8343 *-*-cygwin* )
8344 case $build in
8345 *-*-mingw* ) # actually msys
8346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8347 ;;
8348 *-*-cygwin* )
8349 lt_cv_to_host_file_cmd=func_convert_file_noop
8350 ;;
8351 * ) # otherwise, assume *nix
8352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8353 ;;
8354 esac
8355 ;;
8356 * ) # unhandled hosts (and "normal" native builds)
8357 lt_cv_to_host_file_cmd=func_convert_file_noop
8358 ;;
8359esac
8360
8361fi
8362
8363to_host_file_cmd=$lt_cv_to_host_file_cmd
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8365$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8366
8367
8368
8369
8370
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8372$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8373if ${lt_cv_to_tool_file_cmd+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375else
8376 #assume ordinary cross tools, or native build.
8377lt_cv_to_tool_file_cmd=func_convert_file_noop
8378case $host in
8379 *-*-mingw* )
8380 case $build in
8381 *-*-mingw* ) # actually msys
8382 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8383 ;;
8384 esac
8385 ;;
8386esac
8387
8388fi
8389
8390to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8392$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8393
8394
8395
8396
8397
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8399$as_echo_n "checking for $LD option to reload object files... " >&6; }
8400if ${lt_cv_ld_reload_flag+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402else
8403 lt_cv_ld_reload_flag='-r'
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8406$as_echo "$lt_cv_ld_reload_flag" >&6; }
8407reload_flag=$lt_cv_ld_reload_flag
8408case $reload_flag in
8409"" | " "*) ;;
8410*) reload_flag=" $reload_flag" ;;
8411esac
8412reload_cmds='$LD$reload_flag -o $output$reload_objs'
8413case $host_os in
8414 cygwin* | mingw* | pw32* | cegcc*)
8415 if test yes != "$GCC"; then
8416 reload_cmds=false
8417 fi
8418 ;;
8419 darwin*)
8420 if test yes = "$GCC"; then
8421 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8422 else
8423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8424 fi
8425 ;;
8426esac
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436if test -n "$ac_tool_prefix"; then
8437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8438set dummy ${ac_tool_prefix}objdump; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if ${ac_cv_prog_OBJDUMP+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443else
8444 if test -n "$OBJDUMP"; then
8445 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8446else
8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8457 fi
8458done
8459 done
8460IFS=$as_save_IFS
8461
8462fi
8463fi
8464OBJDUMP=$ac_cv_prog_OBJDUMP
8465if test -n "$OBJDUMP"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8467$as_echo "$OBJDUMP" >&6; }
8468else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470$as_echo "no" >&6; }
8471fi
8472
8473
8474fi
8475if test -z "$ac_cv_prog_OBJDUMP"; then
8476 ac_ct_OBJDUMP=$OBJDUMP
8477 # Extract the first word of "objdump", so it can be a program name with args.
8478set dummy objdump; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 if test -n "$ac_ct_OBJDUMP"; then
8485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499 done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8505if test -n "$ac_ct_OBJDUMP"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8507$as_echo "$ac_ct_OBJDUMP" >&6; }
8508else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513 if test "x$ac_ct_OBJDUMP" = x; then
8514 OBJDUMP="false"
8515 else
8516 case $cross_compiling:$ac_tool_warned in
8517yes:)
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8520ac_tool_warned=yes ;;
8521esac
8522 OBJDUMP=$ac_ct_OBJDUMP
8523 fi
8524else
8525 OBJDUMP="$ac_cv_prog_OBJDUMP"
8526fi
8527
8528test -z "$OBJDUMP" && OBJDUMP=objdump
8529
8530
8531
8532
8533
8534
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8536$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8537if ${lt_cv_deplibs_check_method+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539else
8540 lt_cv_file_magic_cmd='$MAGIC_CMD'
8541lt_cv_file_magic_test_file=
8542lt_cv_deplibs_check_method='unknown'
8543# Need to set the preceding variable on all platforms that support
8544# interlibrary dependencies.
8545# 'none' -- dependencies not supported.
8546# 'unknown' -- same as none, but documents that we really don't know.
8547# 'pass_all' -- all dependencies passed with no checks.
8548# 'test_compile' -- check by making test program.
8549# 'file_magic [[regex]]' -- check by looking for files in library path
8550# that responds to the $file_magic_cmd with a given extended regex.
8551# If you have 'file' or equivalent on your system and you're not sure
8552# whether 'pass_all' will *always* work, you probably want this one.
8553
8554case $host_os in
8555aix[4-9]*)
8556 lt_cv_deplibs_check_method=pass_all
8557 ;;
8558
8559beos*)
8560 lt_cv_deplibs_check_method=pass_all
8561 ;;
8562
8563bsdi[45]*)
8564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8565 lt_cv_file_magic_cmd='/usr/bin/file -L'
8566 lt_cv_file_magic_test_file=/shlib/libc.so
8567 ;;
8568
8569cygwin*)
8570 # func_win32_libid is a shell function defined in ltmain.sh
8571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8572 lt_cv_file_magic_cmd='func_win32_libid'
8573 ;;
8574
8575mingw* | pw32*)
8576 # Base MSYS/MinGW do not provide the 'file' command needed by
8577 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8578 # unless we find 'file', for example because we are cross-compiling.
8579 if ( file / ) >/dev/null 2>&1; then
8580 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8581 lt_cv_file_magic_cmd='func_win32_libid'
8582 else
8583 # Keep this pattern in sync with the one in func_win32_libid.
8584 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8585 lt_cv_file_magic_cmd='$OBJDUMP -f'
8586 fi
8587 ;;
8588
8589cegcc*)
8590 # use the weaker test based on 'objdump'. See mingw*.
8591 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8592 lt_cv_file_magic_cmd='$OBJDUMP -f'
8593 ;;
8594
8595darwin* | rhapsody*)
8596 lt_cv_deplibs_check_method=pass_all
8597 ;;
8598
8599freebsd* | dragonfly*)
8600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8601 case $host_cpu in
8602 i*86 )
8603 # Not sure whether the presence of OpenBSD here was a mistake.
8604 # Let's accept both of them until this is cleared up.
8605 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8606 lt_cv_file_magic_cmd=/usr/bin/file
8607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8608 ;;
8609 esac
8610 else
8611 lt_cv_deplibs_check_method=pass_all
8612 fi
8613 ;;
8614
8615haiku*)
8616 lt_cv_deplibs_check_method=pass_all
8617 ;;
8618
8619hpux10.20* | hpux11*)
8620 lt_cv_file_magic_cmd=/usr/bin/file
8621 case $host_cpu in
8622 ia64*)
8623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8624 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8625 ;;
8626 hppa*64*)
8627 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]'
8628 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8629 ;;
8630 *)
8631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8632 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8633 ;;
8634 esac
8635 ;;
8636
8637interix[3-9]*)
8638 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8640 ;;
8641
8642irix5* | irix6* | nonstopux*)
8643 case $LD in
8644 *-32|*"-32 ") libmagic=32-bit;;
8645 *-n32|*"-n32 ") libmagic=N32;;
8646 *-64|*"-64 ") libmagic=64-bit;;
8647 *) libmagic=never-match;;
8648 esac
8649 lt_cv_deplibs_check_method=pass_all
8650 ;;
8651
8652# This must be glibc/ELF.
8653linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8654 lt_cv_deplibs_check_method=pass_all
8655 ;;
8656
8657netbsd* | netbsdelf*-gnu)
8658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8660 else
8661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8662 fi
8663 ;;
8664
8665newos6*)
8666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8667 lt_cv_file_magic_cmd=/usr/bin/file
8668 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8669 ;;
8670
8671*nto* | *qnx*)
8672 lt_cv_deplibs_check_method=pass_all
8673 ;;
8674
8675openbsd* | bitrig*)
8676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8678 else
8679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8680 fi
8681 ;;
8682
8683osf3* | osf4* | osf5*)
8684 lt_cv_deplibs_check_method=pass_all
8685 ;;
8686
8687rdos*)
8688 lt_cv_deplibs_check_method=pass_all
8689 ;;
8690
8691solaris*)
8692 lt_cv_deplibs_check_method=pass_all
8693 ;;
8694
8695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8696 lt_cv_deplibs_check_method=pass_all
8697 ;;
8698
8699sysv4 | sysv4.3*)
8700 case $host_vendor in
8701 motorola)
8702 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]'
8703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8704 ;;
8705 ncr)
8706 lt_cv_deplibs_check_method=pass_all
8707 ;;
8708 sequent)
8709 lt_cv_file_magic_cmd='/bin/file'
8710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8711 ;;
8712 sni)
8713 lt_cv_file_magic_cmd='/bin/file'
8714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8715 lt_cv_file_magic_test_file=/lib/libc.so
8716 ;;
8717 siemens)
8718 lt_cv_deplibs_check_method=pass_all
8719 ;;
8720 pc)
8721 lt_cv_deplibs_check_method=pass_all
8722 ;;
8723 esac
8724 ;;
8725
8726tpf*)
8727 lt_cv_deplibs_check_method=pass_all
8728 ;;
8729os2*)
8730 lt_cv_deplibs_check_method=pass_all
8731 ;;
8732esac
8733
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8736$as_echo "$lt_cv_deplibs_check_method" >&6; }
8737
8738file_magic_glob=
8739want_nocaseglob=no
8740if test "$build" = "$host"; then
8741 case $host_os in
8742 mingw* | pw32*)
8743 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8744 want_nocaseglob=yes
8745 else
8746 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8747 fi
8748 ;;
8749 esac
8750fi
8751
8752file_magic_cmd=$lt_cv_file_magic_cmd
8753deplibs_check_method=$lt_cv_deplibs_check_method
8754test -z "$deplibs_check_method" && deplibs_check_method=unknown
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8779set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781$as_echo_n "checking for $ac_word... " >&6; }
8782if ${ac_cv_prog_DLLTOOL+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784else
8785 if test -n "$DLLTOOL"; then
8786 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8787else
8788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800 done
8801IFS=$as_save_IFS
8802
8803fi
8804fi
8805DLLTOOL=$ac_cv_prog_DLLTOOL
8806if test -n "$DLLTOOL"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8808$as_echo "$DLLTOOL" >&6; }
8809else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811$as_echo "no" >&6; }
8812fi
8813
8814
8815fi
8816if test -z "$ac_cv_prog_DLLTOOL"; then
8817 ac_ct_DLLTOOL=$DLLTOOL
8818 # Extract the first word of "dlltool", so it can be a program name with args.
8819set dummy dlltool; ac_word=$2
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
8822if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824else
8825 if test -n "$ac_ct_DLLTOOL"; then
8826 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8827else
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8838 fi
8839done
8840 done
8841IFS=$as_save_IFS
8842
8843fi
8844fi
8845ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8846if test -n "$ac_ct_DLLTOOL"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8848$as_echo "$ac_ct_DLLTOOL" >&6; }
8849else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
8852fi
8853
8854 if test "x$ac_ct_DLLTOOL" = x; then
8855 DLLTOOL="false"
8856 else
8857 case $cross_compiling:$ac_tool_warned in
8858yes:)
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861ac_tool_warned=yes ;;
8862esac
8863 DLLTOOL=$ac_ct_DLLTOOL
8864 fi
8865else
8866 DLLTOOL="$ac_cv_prog_DLLTOOL"
8867fi
8868
8869test -z "$DLLTOOL" && DLLTOOL=dlltool
8870
8871
8872
8873
8874
8875
8876
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8878$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8879if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881else
8882 lt_cv_sharedlib_from_linklib_cmd='unknown'
8883
8884case $host_os in
8885cygwin* | mingw* | pw32* | cegcc*)
8886 # two different shell functions defined in ltmain.sh;
8887 # decide which one to use based on capabilities of $DLLTOOL
8888 case `$DLLTOOL --help 2>&1` in
8889 *--identify-strict*)
8890 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8891 ;;
8892 *)
8893 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8894 ;;
8895 esac
8896 ;;
8897*)
8898 # fallback: assume linklib IS sharedlib
8899 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8900 ;;
8901esac
8902
8903fi
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8905$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8906sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8907test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8908
8909
8910
8911
8912
8913
8914
8915if test -n "$ac_tool_prefix"; then
8916 for ac_prog in ar
8917 do
8918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
8922if ${ac_cv_prog_AR+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924else
8925 if test -n "$AR"; then
8926 ac_cv_prog_AR="$AR" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943fi
8944fi
8945AR=$ac_cv_prog_AR
8946if test -n "$AR"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8948$as_echo "$AR" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954
8955 test -n "$AR" && break
8956 done
8957fi
8958if test -z "$AR"; then
8959 ac_ct_AR=$AR
8960 for ac_prog in ar
8961do
8962 # Extract the first word of "$ac_prog", so it can be a program name with args.
8963set dummy $ac_prog; ac_word=$2
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965$as_echo_n "checking for $ac_word... " >&6; }
8966if ${ac_cv_prog_ac_ct_AR+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968else
8969 if test -n "$ac_ct_AR"; then
8970 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_ac_ct_AR="$ac_prog"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983done
8984 done
8985IFS=$as_save_IFS
8986
8987fi
8988fi
8989ac_ct_AR=$ac_cv_prog_ac_ct_AR
8990if test -n "$ac_ct_AR"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8992$as_echo "$ac_ct_AR" >&6; }
8993else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995$as_echo "no" >&6; }
8996fi
8997
8998
8999 test -n "$ac_ct_AR" && break
9000done
9001
9002 if test "x$ac_ct_AR" = x; then
9003 AR="false"
9004 else
9005 case $cross_compiling:$ac_tool_warned in
9006yes:)
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9009ac_tool_warned=yes ;;
9010esac
9011 AR=$ac_ct_AR
9012 fi
9013fi
9014
9015: ${AR=ar}
9016: ${AR_FLAGS=cru}
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9029$as_echo_n "checking for archiver @FILE support... " >&6; }
9030if ${lt_cv_ar_at_file+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032else
9033 lt_cv_ar_at_file=no
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035/* end confdefs.h. */
9036
9037int main (void)
9038{
9039
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_compile "$LINENO"; then :
9045 echo conftest.$ac_objext > conftest.lst
9046 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9048 (eval $lt_ar_try) 2>&5
9049 ac_status=$?
9050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9051 test $ac_status = 0; }
9052 if test 0 -eq "$ac_status"; then
9053 # Ensure the archiver fails upon bogus file names.
9054 rm -f conftest.$ac_objext libconftest.a
9055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9056 (eval $lt_ar_try) 2>&5
9057 ac_status=$?
9058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9059 test $ac_status = 0; }
9060 if test 0 -ne "$ac_status"; then
9061 lt_cv_ar_at_file=@
9062 fi
9063 fi
9064 rm -f conftest.* libconftest.a
9065
9066fi
9067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068
9069fi
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9071$as_echo "$lt_cv_ar_at_file" >&6; }
9072
9073if test no = "$lt_cv_ar_at_file"; then
9074 archiver_list_spec=
9075else
9076 archiver_list_spec=$lt_cv_ar_at_file
9077fi
9078
9079
9080
9081
9082
9083
9084
9085if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9087set dummy ${ac_tool_prefix}strip; ac_word=$2
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089$as_echo_n "checking for $ac_word... " >&6; }
9090if ${ac_cv_prog_STRIP+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092else
9093 if test -n "$STRIP"; then
9094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107done
9108 done
9109IFS=$as_save_IFS
9110
9111fi
9112fi
9113STRIP=$ac_cv_prog_STRIP
9114if test -n "$STRIP"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9116$as_echo "$STRIP" >&6; }
9117else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119$as_echo "no" >&6; }
9120fi
9121
9122
9123fi
9124if test -z "$ac_cv_prog_STRIP"; then
9125 ac_ct_STRIP=$STRIP
9126 # Extract the first word of "strip", so it can be a program name with args.
9127set dummy strip; ac_word=$2
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132else
9133 if test -n "$ac_ct_STRIP"; then
9134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_prog_ac_ct_STRIP="strip"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148 done
9149IFS=$as_save_IFS
9150
9151fi
9152fi
9153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9154if test -n "$ac_ct_STRIP"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9156$as_echo "$ac_ct_STRIP" >&6; }
9157else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9160fi
9161
9162 if test "x$ac_ct_STRIP" = x; then
9163 STRIP=":"
9164 else
9165 case $cross_compiling:$ac_tool_warned in
9166yes:)
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169ac_tool_warned=yes ;;
9170esac
9171 STRIP=$ac_ct_STRIP
9172 fi
9173else
9174 STRIP="$ac_cv_prog_STRIP"
9175fi
9176
9177test -z "$STRIP" && STRIP=:
9178
9179
9180
9181
9182
9183
9184if test -n "$ac_tool_prefix"; then
9185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188$as_echo_n "checking for $ac_word... " >&6; }
9189if ${ac_cv_prog_RANLIB+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191else
9192 if test -n "$RANLIB"; then
9193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9194else
9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196for as_dir in $PATH
9197do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9205 fi
9206done
9207 done
9208IFS=$as_save_IFS
9209
9210fi
9211fi
9212RANLIB=$ac_cv_prog_RANLIB
9213if test -n "$RANLIB"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9215$as_echo "$RANLIB" >&6; }
9216else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218$as_echo "no" >&6; }
9219fi
9220
9221
9222fi
9223if test -z "$ac_cv_prog_RANLIB"; then
9224 ac_ct_RANLIB=$RANLIB
9225 # Extract the first word of "ranlib", so it can be a program name with args.
9226set dummy ranlib; ac_word=$2
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228$as_echo_n "checking for $ac_word... " >&6; }
9229if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231else
9232 if test -n "$ac_ct_RANLIB"; then
9233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9234else
9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236for as_dir in $PATH
9237do
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_prog_ac_ct_RANLIB="ranlib"
9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9245 fi
9246done
9247 done
9248IFS=$as_save_IFS
9249
9250fi
9251fi
9252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9253if test -n "$ac_ct_RANLIB"; then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9255$as_echo "$ac_ct_RANLIB" >&6; }
9256else
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
9259fi
9260
9261 if test "x$ac_ct_RANLIB" = x; then
9262 RANLIB=":"
9263 else
9264 case $cross_compiling:$ac_tool_warned in
9265yes:)
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9268ac_tool_warned=yes ;;
9269esac
9270 RANLIB=$ac_ct_RANLIB
9271 fi
9272else
9273 RANLIB="$ac_cv_prog_RANLIB"
9274fi
9275
9276test -z "$RANLIB" && RANLIB=:
9277
9278
9279
9280
9281
9282
9283# Determine commands to create old-style static archives.
9284old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9285old_postinstall_cmds='chmod 644 $oldlib'
9286old_postuninstall_cmds=
9287
9288if test -n "$RANLIB"; then
9289 case $host_os in
9290 bitrig* | openbsd*)
9291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9292 ;;
9293 *)
9294 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9295 ;;
9296 esac
9297 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9298fi
9299
9300case $host_os in
9301 darwin*)
9302 lock_old_archive_extraction=yes ;;
9303 *)
9304 lock_old_archive_extraction=no ;;
9305esac
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
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345# If no C compiler was specified, use CC.
9346LTCC=${LTCC-"$CC"}
9347
9348# If no C compiler flags were specified, use CFLAGS.
9349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9350
9351# Allow CC to be a program name with arguments.
9352compiler=$CC
9353
9354
9355# Check for command to grab the raw symbol name followed by C symbol from nm.
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9357$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9358if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360else
9361
9362# These are sane defaults that work on at least a few old systems.
9363# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9364
9365# Character class describing NM global symbol codes.
9366symcode='[BCDEGRST]'
9367
9368# Regexp to match symbols that can be accessed directly from C.
9369sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9370
9371# Define system-specific variables.
9372case $host_os in
9373aix*)
9374 symcode='[BCDT]'
9375 ;;
9376cygwin* | mingw* | pw32* | cegcc*)
9377 symcode='[ABCDGISTW]'
9378 ;;
9379hpux*)
9380 if test ia64 = "$host_cpu"; then
9381 symcode='[ABCDEGRST]'
9382 fi
9383 ;;
9384irix* | nonstopux*)
9385 symcode='[BCDEGRST]'
9386 ;;
9387osf*)
9388 symcode='[BCDEGQRST]'
9389 ;;
9390solaris*)
9391 symcode='[BDRT]'
9392 ;;
9393sco3.2v5*)
9394 symcode='[DT]'
9395 ;;
9396sysv4.2uw2*)
9397 symcode='[DT]'
9398 ;;
9399sysv5* | sco5v6* | unixware* | OpenUNIX*)
9400 symcode='[ABDT]'
9401 ;;
9402sysv4)
9403 symcode='[DFNSTU]'
9404 ;;
9405esac
9406
9407# If we're using GNU nm, then use its standard symbol codes.
9408case `$NM -V 2>&1` in
9409*GNU* | *'with BFD'*)
9410 symcode='[ABCDGIRSTW]' ;;
9411esac
9412
9413if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9414 # Gets list of data symbols to import.
9415 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9416 # Adjust the below global symbol transforms to fixup imported variables.
9417 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9418 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9419 lt_c_name_lib_hook="\
9420 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9421 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9422else
9423 # Disable hooks by default.
9424 lt_cv_sys_global_symbol_to_import=
9425 lt_cdecl_hook=
9426 lt_c_name_hook=
9427 lt_c_name_lib_hook=
9428fi
9429
9430# Transform an extracted symbol line into a proper C declaration.
9431# Some systems (esp. on ia64) link data and code symbols differently,
9432# so use this general approach.
9433lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9434$lt_cdecl_hook\
9435" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9436" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9437
9438# Transform an extracted symbol line into symbol name and symbol address
9439lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9440$lt_c_name_hook\
9441" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9442" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9443
9444# Transform an extracted symbol line into symbol name with lib prefix and
9445# symbol address.
9446lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9447$lt_c_name_lib_hook\
9448" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9449" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9450" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9451
9452# Handle CRLF in mingw tool chain
9453opt_cr=
9454case $build_os in
9455mingw*)
9456 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9457 ;;
9458esac
9459
9460# Try without a prefix underscore, then with it.
9461for ac_symprfx in "" "_"; do
9462
9463 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9464 symxfrm="\\1 $ac_symprfx\\2 \\2"
9465
9466 # Write the raw and C identifiers.
9467 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9468 # Fake it for dumpbin and say T for any non-static function,
9469 # D for any global variable and I for any imported variable.
9470 # Also find C++ and __fastcall symbols from MSVC++,
9471 # which start with @ or ?.
9472 lt_cv_sys_global_symbol_pipe="$AWK '"\
9473" {last_section=section; section=\$ 3};"\
9474" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9475" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9476" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9477" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9478" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9479" \$ 0!~/External *\|/{next};"\
9480" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9481" {if(hide[section]) next};"\
9482" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9483" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9484" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9485" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9486" ' prfx=^$ac_symprfx"
9487 else
9488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9489 fi
9490 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9491
9492 # Check to see that the pipe works correctly.
9493 pipe_works=no
9494
9495 rm -f conftest*
9496 cat > conftest.$ac_ext <<_LT_EOF
9497#ifdef __cplusplus
9498extern "C" {
9499#endif
9500char nm_test_var;
9501void nm_test_func(void);
9502void nm_test_func(void){}
9503#ifdef __cplusplus
9504}
9505#endif
9506int main(){nm_test_var='a';nm_test_func();return(0);}
9507_LT_EOF
9508
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510 (eval $ac_compile) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; }; then
9514 # Now try to grab the symbols.
9515 nlist=conftest.nm
9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9517 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9518 ac_status=$?
9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; } && test -s "$nlist"; then
9521 # Try sorting and uniquifying the output.
9522 if sort "$nlist" | uniq > "$nlist"T; then
9523 mv -f "$nlist"T "$nlist"
9524 else
9525 rm -f "$nlist"T
9526 fi
9527
9528 # Make sure that we snagged all the symbols we need.
9529 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9530 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9531 cat <<_LT_EOF > conftest.$ac_ext
9532/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9533#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9534/* DATA imports from DLLs on WIN32 can't be const, because runtime
9535 relocations are performed -- see ld's documentation on pseudo-relocs. */
9536# define LT_DLSYM_CONST
9537#elif defined __osf__
9538/* This system does not cope well with relocations in const data. */
9539# define LT_DLSYM_CONST
9540#else
9541# define LT_DLSYM_CONST const
9542#endif
9543
9544#ifdef __cplusplus
9545extern "C" {
9546#endif
9547
9548_LT_EOF
9549 # Now generate the symbol file.
9550 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9551
9552 cat <<_LT_EOF >> conftest.$ac_ext
9553
9554/* The mapping between symbol names and symbols. */
9555LT_DLSYM_CONST struct {
9556 const char *name;
9557 void *address;
9558}
9559lt__PROGRAM__LTX_preloaded_symbols[] =
9560{
9561 { "@PROGRAM@", (void *) 0 },
9562_LT_EOF
9563 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9564 cat <<\_LT_EOF >> conftest.$ac_ext
9565 {0, (void *) 0}
9566};
9567
9568/* This works around a problem in FreeBSD linker */
9569#ifdef FREEBSD_WORKAROUND
9570static const void *lt_preloaded_setup() {
9571 return lt__PROGRAM__LTX_preloaded_symbols;
9572}
9573#endif
9574
9575#ifdef __cplusplus
9576}
9577#endif
9578_LT_EOF
9579 # Now try linking the two files.
9580 mv -f conftest.$ac_objext conftstm.$ac_objext
9581 lt_globsym_save_LIBS=$LIBS
9582 lt_globsym_save_CFLAGS=$CFLAGS
9583 LIBS=conftstm.$ac_objext
9584 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9586 (eval $ac_link) 2>&5
9587 ac_status=$?
9588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9590 pipe_works=yes
9591 fi
9592 LIBS=$lt_globsym_save_LIBS
9593 CFLAGS=$lt_globsym_save_CFLAGS
9594 else
9595 echo "cannot find nm_test_func in $nlist" >&5
9596 fi
9597 else
9598 echo "cannot find nm_test_var in $nlist" >&5
9599 fi
9600 else
9601 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9602 fi
9603 else
9604 echo "$progname: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 fi
9607 rm -rf conftest* conftst*
9608
9609 # Do not use the global_symbol_pipe unless it works.
9610 if test yes = "$pipe_works"; then
9611 break
9612 else
9613 lt_cv_sys_global_symbol_pipe=
9614 fi
9615done
9616
9617fi
9618
9619if test -z "$lt_cv_sys_global_symbol_pipe"; then
9620 lt_cv_sys_global_symbol_to_cdecl=
9621fi
9622if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9624$as_echo "failed" >&6; }
9625else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9627$as_echo "ok" >&6; }
9628fi
9629
9630# Response file support.
9631if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9632 nm_file_list_spec='@'
9633elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9634 nm_file_list_spec='@'
9635fi
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9674$as_echo_n "checking for sysroot... " >&6; }
9675
9676# Check whether --with-sysroot was given.
9677if test "${with_sysroot+set}" = set; then :
9678 withval=$with_sysroot;
9679else
9680 with_sysroot=no
9681fi
9682
9683
9684lt_sysroot=
9685case $with_sysroot in #(
9686 yes)
9687 if test yes = "$GCC"; then
9688 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9689 fi
9690 ;; #(
9691 /*)
9692 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9693 ;; #(
9694 no|'')
9695 ;; #(
9696 *)
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9698$as_echo "$with_sysroot" >&6; }
9699 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9700 ;;
9701esac
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9704$as_echo "${lt_sysroot:-no}" >&6; }
9705
9706
9707
9708
9709
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9711$as_echo_n "checking for a working dd... " >&6; }
9712if ${ac_cv_path_lt_DD+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714else
9715 printf 0123456789abcdef0123456789abcdef >conftest.i
9716cat conftest.i conftest.i >conftest2.i
9717: ${lt_DD:=$DD}
9718if test -z "$lt_DD"; then
9719 ac_path_lt_DD_found=false
9720 # Loop through the user's path and test for each of PROGNAME-LIST
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722for as_dir in $PATH
9723do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_prog in dd; do
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9729 as_fn_executable_p "$ac_path_lt_DD" || continue
9730if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9731 cmp -s conftest.i conftest.out \
9732 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9733fi
9734 $ac_path_lt_DD_found && break 3
9735 done
9736 done
9737 done
9738IFS=$as_save_IFS
9739 if test -z "$ac_cv_path_lt_DD"; then
9740 :
9741 fi
9742else
9743 ac_cv_path_lt_DD=$lt_DD
9744fi
9745
9746rm -f conftest.i conftest2.i conftest.out
9747fi
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9749$as_echo "$ac_cv_path_lt_DD" >&6; }
9750
9751
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9753$as_echo_n "checking how to truncate binary pipes... " >&6; }
9754if ${lt_cv_truncate_bin+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756else
9757 printf 0123456789abcdef0123456789abcdef >conftest.i
9758cat conftest.i conftest.i >conftest2.i
9759lt_cv_truncate_bin=
9760if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9761 cmp -s conftest.i conftest.out \
9762 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9763fi
9764rm -f conftest.i conftest2.i conftest.out
9765test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9766fi
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9768$as_echo "$lt_cv_truncate_bin" >&6; }
9769
9770
9771
9772
9773
9774
9775
9776# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9777func_cc_basename ()
9778{
9779 for cc_temp in $*""; do
9780 case $cc_temp in
9781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9783 \-*) ;;
9784 *) break;;
9785 esac
9786 done
9787 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9788}
9789
9790# Check whether --enable-libtool-lock was given.
9791if test "${enable_libtool_lock+set}" = set; then :
9792 enableval=$enable_libtool_lock;
9793fi
9794
9795test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9796
9797# Some flags need to be propagated to the compiler or linker for good
9798# libtool support.
9799case $host in
9800ia64-*-hpux*)
9801 # Find out what ABI is being produced by ac_compile, and set mode
9802 # options accordingly.
9803 echo 'int i;' > conftest.$ac_ext
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9806 ac_status=$?
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }; then
9809 case `/usr/bin/file conftest.$ac_objext` in
9810 *ELF-32*)
9811 HPUX_IA64_MODE=32
9812 ;;
9813 *ELF-64*)
9814 HPUX_IA64_MODE=64
9815 ;;
9816 esac
9817 fi
9818 rm -rf conftest*
9819 ;;
9820*-*-irix6*)
9821 # Find out what ABI is being produced by ac_compile, and set linker
9822 # options accordingly.
9823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9825 (eval $ac_compile) 2>&5
9826 ac_status=$?
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; }; then
9829 if test yes = "$lt_cv_prog_gnu_ld"; then
9830 case `/usr/bin/file conftest.$ac_objext` in
9831 *32-bit*)
9832 LD="${LD-ld} -melf32bsmip"
9833 ;;
9834 *N32*)
9835 LD="${LD-ld} -melf32bmipn32"
9836 ;;
9837 *64-bit*)
9838 LD="${LD-ld} -melf64bmip"
9839 ;;
9840 esac
9841 else
9842 case `/usr/bin/file conftest.$ac_objext` in
9843 *32-bit*)
9844 LD="${LD-ld} -32"
9845 ;;
9846 *N32*)
9847 LD="${LD-ld} -n32"
9848 ;;
9849 *64-bit*)
9850 LD="${LD-ld} -64"
9851 ;;
9852 esac
9853 fi
9854 fi
9855 rm -rf conftest*
9856 ;;
9857
9858mips64*-*linux*)
9859 # Find out what ABI is being produced by ac_compile, and set linker
9860 # options accordingly.
9861 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9863 (eval $ac_compile) 2>&5
9864 ac_status=$?
9865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9866 test $ac_status = 0; }; then
9867 emul=elf
9868 case `/usr/bin/file conftest.$ac_objext` in
9869 *32-bit*)
9870 emul="${emul}32"
9871 ;;
9872 *64-bit*)
9873 emul="${emul}64"
9874 ;;
9875 esac
9876 case `/usr/bin/file conftest.$ac_objext` in
9877 *MSB*)
9878 emul="${emul}btsmip"
9879 ;;
9880 *LSB*)
9881 emul="${emul}ltsmip"
9882 ;;
9883 esac
9884 case `/usr/bin/file conftest.$ac_objext` in
9885 *N32*)
9886 emul="${emul}n32"
9887 ;;
9888 esac
9889 LD="${LD-ld} -m $emul"
9890 fi
9891 rm -rf conftest*
9892 ;;
9893
9894x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9895s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9896 # Find out what ABI is being produced by ac_compile, and set linker
9897 # options accordingly. Note that the listed cases only cover the
9898 # situations where additional linker options are needed (such as when
9899 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9900 # vice versa); the common cases where no linker options are needed do
9901 # not appear in the list.
9902 echo 'int i;' > conftest.$ac_ext
9903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9904 (eval $ac_compile) 2>&5
9905 ac_status=$?
9906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9907 test $ac_status = 0; }; then
9908 case `/usr/bin/file conftest.o` in
9909 *32-bit*)
9910 case $host in
9911 x86_64-*kfreebsd*-gnu)
9912 LD="${LD-ld} -m elf_i386_fbsd"
9913 ;;
9914 x86_64-*linux*)
9915 case `/usr/bin/file conftest.o` in
9916 *x86-64*)
9917 LD="${LD-ld} -m elf32_x86_64"
9918 ;;
9919 *)
9920 LD="${LD-ld} -m elf_i386"
9921 ;;
9922 esac
9923 ;;
9924 powerpc64le-*linux*)
9925 LD="${LD-ld} -m elf32lppclinux"
9926 ;;
9927 powerpc64-*linux*)
9928 LD="${LD-ld} -m elf32ppclinux"
9929 ;;
9930 s390x-*linux*)
9931 LD="${LD-ld} -m elf_s390"
9932 ;;
9933 sparc64-*linux*)
9934 LD="${LD-ld} -m elf32_sparc"
9935 ;;
9936 esac
9937 ;;
9938 *64-bit*)
9939 case $host in
9940 x86_64-*kfreebsd*-gnu)
9941 LD="${LD-ld} -m elf_x86_64_fbsd"
9942 ;;
9943 x86_64-*linux*)
9944 LD="${LD-ld} -m elf_x86_64"
9945 ;;
9946 powerpcle-*linux*)
9947 LD="${LD-ld} -m elf64lppc"
9948 ;;
9949 powerpc-*linux*)
9950 LD="${LD-ld} -m elf64ppc"
9951 ;;
9952 s390*-*linux*|s390*-*tpf*)
9953 LD="${LD-ld} -m elf64_s390"
9954 ;;
9955 sparc*-*linux*)
9956 LD="${LD-ld} -m elf64_sparc"
9957 ;;
9958 esac
9959 ;;
9960 esac
9961 fi
9962 rm -rf conftest*
9963 ;;
9964
9965*-*-sco3.2v5*)
9966 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9967 SAVE_CFLAGS=$CFLAGS
9968 CFLAGS="$CFLAGS -belf"
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9970$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9971if ${lt_cv_cc_needs_belf+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973else
9974 ac_ext=c
9975ac_cpp='$CPP $CPPFLAGS'
9976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9978ac_compiler_gnu=$ac_cv_c_compiler_gnu
9979
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h. */
9982
9983int main (void)
9984{
9985
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990if ac_fn_c_try_link "$LINENO"; then :
9991 lt_cv_cc_needs_belf=yes
9992else
9993 lt_cv_cc_needs_belf=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 ac_ext=c
9998ac_cpp='$CPP $CPPFLAGS'
9999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001ac_compiler_gnu=$ac_cv_c_compiler_gnu
10002
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10005$as_echo "$lt_cv_cc_needs_belf" >&6; }
10006 if test yes != "$lt_cv_cc_needs_belf"; then
10007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10008 CFLAGS=$SAVE_CFLAGS
10009 fi
10010 ;;
10011*-*solaris*)
10012 # Find out what ABI is being produced by ac_compile, and set linker
10013 # options accordingly.
10014 echo 'int i;' > conftest.$ac_ext
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10016 (eval $ac_compile) 2>&5
10017 ac_status=$?
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; }; then
10020 case `/usr/bin/file conftest.o` in
10021 *64-bit*)
10022 case $lt_cv_prog_gnu_ld in
10023 yes*)
10024 case $host in
10025 i?86-*-solaris*|x86_64-*-solaris*)
10026 LD="${LD-ld} -m elf_x86_64"
10027 ;;
10028 sparc*-*-solaris*)
10029 LD="${LD-ld} -m elf64_sparc"
10030 ;;
10031 esac
10032 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10033 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10034 LD=${LD-ld}_sol2
10035 fi
10036 ;;
10037 *)
10038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10039 LD="${LD-ld} -64"
10040 fi
10041 ;;
10042 esac
10043 ;;
10044 esac
10045 fi
10046 rm -rf conftest*
10047 ;;
10048esac
10049
10050need_locks=$enable_libtool_lock
10051
10052if test -n "$ac_tool_prefix"; then
10053 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10054set dummy ${ac_tool_prefix}mt; ac_word=$2
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056$as_echo_n "checking for $ac_word... " >&6; }
10057if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059else
10060 if test -n "$MANIFEST_TOOL"; then
10061 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10062else
10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074done
10075 done
10076IFS=$as_save_IFS
10077
10078fi
10079fi
10080MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10081if test -n "$MANIFEST_TOOL"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10083$as_echo "$MANIFEST_TOOL" >&6; }
10084else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086$as_echo "no" >&6; }
10087fi
10088
10089
10090fi
10091if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10092 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10093 # Extract the first word of "mt", so it can be a program name with args.
10094set dummy mt; ac_word=$2
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096$as_echo_n "checking for $ac_word... " >&6; }
10097if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099else
10100 if test -n "$ac_ct_MANIFEST_TOOL"; then
10101 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115 done
10116IFS=$as_save_IFS
10117
10118fi
10119fi
10120ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10121if test -n "$ac_ct_MANIFEST_TOOL"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10123$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10124else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126$as_echo "no" >&6; }
10127fi
10128
10129 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10130 MANIFEST_TOOL=":"
10131 else
10132 case $cross_compiling:$ac_tool_warned in
10133yes:)
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10136ac_tool_warned=yes ;;
10137esac
10138 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10139 fi
10140else
10141 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10142fi
10143
10144test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10146$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10147if ${lt_cv_path_mainfest_tool+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149else
10150 lt_cv_path_mainfest_tool=no
10151 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10152 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10153 cat conftest.err >&5
10154 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10155 lt_cv_path_mainfest_tool=yes
10156 fi
10157 rm -f conftest*
10158fi
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10160$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10161if test yes != "$lt_cv_path_mainfest_tool"; then
10162 MANIFEST_TOOL=:
10163fi
10164
10165
10166
10167
10168
10169
10170 case $host_os in
10171 rhapsody* | darwin*)
10172 if test -n "$ac_tool_prefix"; then
10173 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10174set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176$as_echo_n "checking for $ac_word... " >&6; }
10177if ${ac_cv_prog_DSYMUTIL+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179else
10180 if test -n "$DSYMUTIL"; then
10181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10182else
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195 done
10196IFS=$as_save_IFS
10197
10198fi
10199fi
10200DSYMUTIL=$ac_cv_prog_DSYMUTIL
10201if test -n "$DSYMUTIL"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10203$as_echo "$DSYMUTIL" >&6; }
10204else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206$as_echo "no" >&6; }
10207fi
10208
10209
10210fi
10211if test -z "$ac_cv_prog_DSYMUTIL"; then
10212 ac_ct_DSYMUTIL=$DSYMUTIL
10213 # Extract the first word of "dsymutil", so it can be a program name with args.
10214set dummy dsymutil; ac_word=$2
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10216$as_echo_n "checking for $ac_word... " >&6; }
10217if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219else
10220 if test -n "$ac_ct_DSYMUTIL"; then
10221 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10222else
10223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10233 fi
10234done
10235 done
10236IFS=$as_save_IFS
10237
10238fi
10239fi
10240ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10241if test -n "$ac_ct_DSYMUTIL"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10243$as_echo "$ac_ct_DSYMUTIL" >&6; }
10244else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246$as_echo "no" >&6; }
10247fi
10248
10249 if test "x$ac_ct_DSYMUTIL" = x; then
10250 DSYMUTIL=":"
10251 else
10252 case $cross_compiling:$ac_tool_warned in
10253yes:)
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10256ac_tool_warned=yes ;;
10257esac
10258 DSYMUTIL=$ac_ct_DSYMUTIL
10259 fi
10260else
10261 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10262fi
10263
10264 if test -n "$ac_tool_prefix"; then
10265 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10266set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268$as_echo_n "checking for $ac_word... " >&6; }
10269if ${ac_cv_prog_NMEDIT+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271else
10272 if test -n "$NMEDIT"; then
10273 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10282 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286done
10287 done
10288IFS=$as_save_IFS
10289
10290fi
10291fi
10292NMEDIT=$ac_cv_prog_NMEDIT
10293if test -n "$NMEDIT"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10295$as_echo "$NMEDIT" >&6; }
10296else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
10299fi
10300
10301
10302fi
10303if test -z "$ac_cv_prog_NMEDIT"; then
10304 ac_ct_NMEDIT=$NMEDIT
10305 # Extract the first word of "nmedit", so it can be a program name with args.
10306set dummy nmedit; ac_word=$2
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308$as_echo_n "checking for $ac_word... " >&6; }
10309if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311else
10312 if test -n "$ac_ct_NMEDIT"; then
10313 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10314else
10315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316for as_dir in $PATH
10317do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327 done
10328IFS=$as_save_IFS
10329
10330fi
10331fi
10332ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10333if test -n "$ac_ct_NMEDIT"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10335$as_echo "$ac_ct_NMEDIT" >&6; }
10336else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338$as_echo "no" >&6; }
10339fi
10340
10341 if test "x$ac_ct_NMEDIT" = x; then
10342 NMEDIT=":"
10343 else
10344 case $cross_compiling:$ac_tool_warned in
10345yes:)
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10348ac_tool_warned=yes ;;
10349esac
10350 NMEDIT=$ac_ct_NMEDIT
10351 fi
10352else
10353 NMEDIT="$ac_cv_prog_NMEDIT"
10354fi
10355
10356 if test -n "$ac_tool_prefix"; then
10357 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10358set dummy ${ac_tool_prefix}lipo; ac_word=$2
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360$as_echo_n "checking for $ac_word... " >&6; }
10361if ${ac_cv_prog_LIPO+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363else
10364 if test -n "$LIPO"; then
10365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10366else
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379 done
10380IFS=$as_save_IFS
10381
10382fi
10383fi
10384LIPO=$ac_cv_prog_LIPO
10385if test -n "$LIPO"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10387$as_echo "$LIPO" >&6; }
10388else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390$as_echo "no" >&6; }
10391fi
10392
10393
10394fi
10395if test -z "$ac_cv_prog_LIPO"; then
10396 ac_ct_LIPO=$LIPO
10397 # Extract the first word of "lipo", so it can be a program name with args.
10398set dummy lipo; ac_word=$2
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400$as_echo_n "checking for $ac_word... " >&6; }
10401if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403else
10404 if test -n "$ac_ct_LIPO"; then
10405 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10406else
10407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408for as_dir in $PATH
10409do
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_ac_ct_LIPO="lipo"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10417 fi
10418done
10419 done
10420IFS=$as_save_IFS
10421
10422fi
10423fi
10424ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10425if test -n "$ac_ct_LIPO"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10427$as_echo "$ac_ct_LIPO" >&6; }
10428else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
10431fi
10432
10433 if test "x$ac_ct_LIPO" = x; then
10434 LIPO=":"
10435 else
10436 case $cross_compiling:$ac_tool_warned in
10437yes:)
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10440ac_tool_warned=yes ;;
10441esac
10442 LIPO=$ac_ct_LIPO
10443 fi
10444else
10445 LIPO="$ac_cv_prog_LIPO"
10446fi
10447
10448 if test -n "$ac_tool_prefix"; then
10449 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10450set dummy ${ac_tool_prefix}otool; ac_word=$2
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452$as_echo_n "checking for $ac_word... " >&6; }
10453if ${ac_cv_prog_OTOOL+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455else
10456 if test -n "$OTOOL"; then
10457 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468 break 2
10469 fi
10470done
10471 done
10472IFS=$as_save_IFS
10473
10474fi
10475fi
10476OTOOL=$ac_cv_prog_OTOOL
10477if test -n "$OTOOL"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10479$as_echo "$OTOOL" >&6; }
10480else
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
10483fi
10484
10485
10486fi
10487if test -z "$ac_cv_prog_OTOOL"; then
10488 ac_ct_OTOOL=$OTOOL
10489 # Extract the first word of "otool", so it can be a program name with args.
10490set dummy otool; ac_word=$2
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
10493if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495else
10496 if test -n "$ac_ct_OTOOL"; then
10497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_ac_ct_OTOOL="otool"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510done
10511 done
10512IFS=$as_save_IFS
10513
10514fi
10515fi
10516ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10517if test -n "$ac_ct_OTOOL"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10519$as_echo "$ac_ct_OTOOL" >&6; }
10520else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
10523fi
10524
10525 if test "x$ac_ct_OTOOL" = x; then
10526 OTOOL=":"
10527 else
10528 case $cross_compiling:$ac_tool_warned in
10529yes:)
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532ac_tool_warned=yes ;;
10533esac
10534 OTOOL=$ac_ct_OTOOL
10535 fi
10536else
10537 OTOOL="$ac_cv_prog_OTOOL"
10538fi
10539
10540 if test -n "$ac_tool_prefix"; then
10541 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10542set dummy ${ac_tool_prefix}otool64; ac_word=$2
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544$as_echo_n "checking for $ac_word... " >&6; }
10545if ${ac_cv_prog_OTOOL64+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547else
10548 if test -n "$OTOOL64"; then
10549 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10550else
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562done
10563 done
10564IFS=$as_save_IFS
10565
10566fi
10567fi
10568OTOOL64=$ac_cv_prog_OTOOL64
10569if test -n "$OTOOL64"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10571$as_echo "$OTOOL64" >&6; }
10572else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
10575fi
10576
10577
10578fi
10579if test -z "$ac_cv_prog_OTOOL64"; then
10580 ac_ct_OTOOL64=$OTOOL64
10581 # Extract the first word of "otool64", so it can be a program name with args.
10582set dummy otool64; ac_word=$2
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584$as_echo_n "checking for $ac_word... " >&6; }
10585if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587else
10588 if test -n "$ac_ct_OTOOL64"; then
10589 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10590else
10591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_ac_ct_OTOOL64="otool64"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606fi
10607fi
10608ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10609if test -n "$ac_ct_OTOOL64"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10611$as_echo "$ac_ct_OTOOL64" >&6; }
10612else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615fi
10616
10617 if test "x$ac_ct_OTOOL64" = x; then
10618 OTOOL64=":"
10619 else
10620 case $cross_compiling:$ac_tool_warned in
10621yes:)
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624ac_tool_warned=yes ;;
10625esac
10626 OTOOL64=$ac_ct_OTOOL64
10627 fi
10628else
10629 OTOOL64="$ac_cv_prog_OTOOL64"
10630fi
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10659$as_echo_n "checking for -single_module linker flag... " >&6; }
10660if ${lt_cv_apple_cc_single_mod+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662else
10663 lt_cv_apple_cc_single_mod=no
10664 if test -z "$LT_MULTI_MODULE"; then
10665 # By default we will add the -single_module flag. You can override
10666 # by either setting the environment variable LT_MULTI_MODULE
10667 # non-empty at configure time, or by adding -multi_module to the
10668 # link flags.
10669 rm -rf libconftest.dylib*
10670 echo "int foo(void){return 1;}" > conftest.c
10671 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10672-dynamiclib -Wl,-single_module conftest.c" >&5
10673 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10674 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10675 _lt_result=$?
10676 # If there is a non-empty error log, and "single_module"
10677 # appears in it, assume the flag caused a linker warning
10678 if test -s conftest.err && $GREP single_module conftest.err; then
10679 cat conftest.err >&5
10680 # Otherwise, if the output was created with a 0 exit code from
10681 # the compiler, it worked.
10682 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10683 lt_cv_apple_cc_single_mod=yes
10684 else
10685 cat conftest.err >&5
10686 fi
10687 rm -rf libconftest.dylib*
10688 rm -f conftest.*
10689 fi
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10692$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10693
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10696if ${lt_cv_ld_exported_symbols_list+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698else
10699 lt_cv_ld_exported_symbols_list=no
10700 save_LDFLAGS=$LDFLAGS
10701 echo "_main" > conftest.sym
10702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h. */
10705
10706int main (void)
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
10713if ac_fn_c_try_link "$LINENO"; then :
10714 lt_cv_ld_exported_symbols_list=yes
10715else
10716 lt_cv_ld_exported_symbols_list=no
10717fi
10718rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LDFLAGS=$save_LDFLAGS
10721
10722fi
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10724$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10727$as_echo_n "checking for -force_load linker flag... " >&6; }
10728if ${lt_cv_ld_force_load+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730else
10731 lt_cv_ld_force_load=no
10732 cat > conftest.c << _LT_EOF
10733int forced_loaded() { return 2;}
10734_LT_EOF
10735 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10736 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10737 echo "$AR cru libconftest.a conftest.o" >&5
10738 $AR cru libconftest.a conftest.o 2>&5
10739 echo "$RANLIB libconftest.a" >&5
10740 $RANLIB libconftest.a 2>&5
10741 cat > conftest.c << _LT_EOF
10742int main() { return 0;}
10743_LT_EOF
10744 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10745 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10746 _lt_result=$?
10747 if test -s conftest.err && $GREP force_load conftest.err; then
10748 cat conftest.err >&5
10749 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10750 lt_cv_ld_force_load=yes
10751 else
10752 cat conftest.err >&5
10753 fi
10754 rm -f conftest.err libconftest.a conftest conftest.c
10755 rm -rf conftest.dSYM
10756
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10759$as_echo "$lt_cv_ld_force_load" >&6; }
10760 case $host_os in
10761 rhapsody* | darwin1.[012])
10762 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10763 darwin1.*)
10764 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10765 darwin*) # darwin 5.x on
10766 # if running on 10.5 or later, the deployment target defaults
10767 # to the OS version, if on x86, and 10.4, the deployment
10768 # target defaults to 10.4. Don't you love it?
10769 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10770 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10771 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10772 10.[012][,.]*)
10773 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10774 10.*)
10775 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10776 esac
10777 ;;
10778 esac
10779 if test yes = "$lt_cv_apple_cc_single_mod"; then
10780 _lt_dar_single_mod='$single_module'
10781 fi
10782 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10783 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10784 else
10785 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10786 fi
10787 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10788 _lt_dsymutil='~$DSYMUTIL $lib || :'
10789 else
10790 _lt_dsymutil=
10791 fi
10792 ;;
10793 esac
10794
10795# func_munge_path_list VARIABLE PATH
10796# -----------------------------------
10797# VARIABLE is name of variable containing _space_ separated list of
10798# directories to be munged by the contents of PATH, which is string
10799# having a format:
10800# "DIR[:DIR]:"
10801# string "DIR[ DIR]" will be prepended to VARIABLE
10802# ":DIR[:DIR]"
10803# string "DIR[ DIR]" will be appended to VARIABLE
10804# "DIRP[:DIRP]::[DIRA:]DIRA"
10805# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10806# "DIRA[ DIRA]" will be appended to VARIABLE
10807# "DIR[:DIR]"
10808# VARIABLE will be replaced by "DIR[ DIR]"
10809func_munge_path_list ()
10810{
10811 case x$2 in
10812 x)
10813 ;;
10814 *:)
10815 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10816 ;;
10817 x:*)
10818 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10819 ;;
10820 *::*)
10821 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10822 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10823 ;;
10824 *)
10825 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10826 ;;
10827 esac
10828}
10829
Alex Deymo486467e2017-12-19 19:04:07 +010010830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10831$as_echo_n "checking for ANSI C header files... " >&6; }
10832if ${ac_cv_header_stdc+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h. */
10837#include <stdlib.h>
10838#include <stdarg.h>
10839#include <string.h>
10840#include <float.h>
10841
10842int main (void)
10843{
10844
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_compile "$LINENO"; then :
10850 ac_cv_header_stdc=yes
10851else
10852 ac_cv_header_stdc=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855
10856if test $ac_cv_header_stdc = yes; then
10857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h. */
10860#include <string.h>
10861
10862_ACEOF
10863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10864 $EGREP "memchr" >/dev/null 2>&1; then :
10865
10866else
10867 ac_cv_header_stdc=no
10868fi
10869rm -f conftest*
10870
10871fi
10872
10873if test $ac_cv_header_stdc = yes; then
10874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h. */
10877#include <stdlib.h>
10878
10879_ACEOF
10880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10881 $EGREP "free" >/dev/null 2>&1; then :
10882
10883else
10884 ac_cv_header_stdc=no
10885fi
10886rm -f conftest*
10887
10888fi
10889
10890if test $ac_cv_header_stdc = yes; then
10891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10892 if test "$cross_compiling" = yes; then :
10893 :
10894else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896/* end confdefs.h. */
10897#include <ctype.h>
10898#include <stdlib.h>
10899#if ((' ' & 0x0FF) == 0x020)
10900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10902#else
10903# define ISLOWER(c) \
10904 (('a' <= (c) && (c) <= 'i') \
10905 || ('j' <= (c) && (c) <= 'r') \
10906 || ('s' <= (c) && (c) <= 'z'))
10907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10908#endif
10909
10910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10911int
10912main ()
10913{
10914 int i;
10915 for (i = 0; i < 256; i++)
10916 if (XOR (islower (i), ISLOWER (i))
10917 || toupper (i) != TOUPPER (i))
10918 return 2;
10919 return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_run "$LINENO"; then :
10923
10924else
10925 ac_cv_header_stdc=no
10926fi
10927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10928 conftest.$ac_objext conftest.beam conftest.$ac_ext
10929fi
10930
10931fi
10932fi
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10934$as_echo "$ac_cv_header_stdc" >&6; }
10935if test $ac_cv_header_stdc = yes; then
10936
10937$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10938
10939fi
10940
10941# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10943 inttypes.h stdint.h unistd.h
10944do :
10945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10946ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10947"
10948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10949 cat >>confdefs.h <<_ACEOF
10950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951_ACEOF
10952
10953fi
10954
10955done
10956
10957
Elliott Hughes82be86d2017-09-20 17:00:17 -070010958for ac_header in dlfcn.h
10959do :
10960 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10961"
10962if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10963 cat >>confdefs.h <<_ACEOF
10964#define HAVE_DLFCN_H 1
10965_ACEOF
10966
10967fi
10968
10969done
10970
10971# ------------------------------------ #
10972# Determine libtool default behavior #
10973# ------------------------------------ #
10974
10975#
10976# Default behavior is to enable shared and static libraries on systems
10977# where libtool knows how to build both library versions, and does not
10978# require separate configuration and build runs for each flavor.
10979#
10980
10981xc_lt_want_enable_shared='yes'
10982xc_lt_want_enable_static='yes'
10983
10984#
10985# User may have disabled shared or static libraries.
10986#
10987case "x$enable_shared" in # (
10988 xno)
10989 xc_lt_want_enable_shared='no'
10990 ;;
10991esac
10992case "x$enable_static" in # (
10993 xno)
10994 xc_lt_want_enable_static='no'
10995 ;;
10996esac
10997if test "x$xc_lt_want_enable_shared" = 'xno' &&
10998 test "x$xc_lt_want_enable_static" = 'xno'; then
10999 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11000fi
11001
11002#
11003# Default behavior on systems that require independent configuration
11004# and build runs for shared and static is to enable shared libraries
11005# and disable static ones. On these systems option '--disable-shared'
11006# must be used in order to build a proper static library.
11007#
11008
11009if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11010 test "x$xc_lt_want_enable_static" = 'xyes'; then
11011 case $host_os in # (
11012 pw32* | cegcc* | os2* | aix*)
11013 xc_lt_want_enable_static='no'
11014 ;;
11015 esac
11016fi
11017
11018#
11019# Make libtool aware of current shared and static library preferences
11020# taking in account that, depending on host characteristics, libtool
11021# may modify these option preferences later in this configure script.
11022#
11023
11024enable_shared=$xc_lt_want_enable_shared
11025enable_static=$xc_lt_want_enable_static
11026
11027#
11028# Default behavior is to build PIC objects for shared libraries and
11029# non-PIC objects for static libraries.
11030#
11031
11032xc_lt_want_with_pic='default'
11033
11034#
11035# User may have specified PIC preference.
11036#
11037
11038case "x$with_pic" in # ((
11039 xno)
11040 xc_lt_want_with_pic='no'
11041 ;;
11042 xyes)
11043 xc_lt_want_with_pic='yes'
11044 ;;
11045esac
11046
11047#
11048# Default behavior on some systems where building a shared library out
11049# of non-PIC compiled objects will fail with following linker error
11050# "relocation R_X86_64_32 can not be used when making a shared object"
11051# is to build PIC objects even for static libraries. This behavior may
11052# be overridden using 'configure --disable-shared --without-pic'.
11053#
11054
11055if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11056 case $host_cpu in # (
11057 x86_64 | amd64 | ia64)
11058 case $host_os in # (
11059 linux* | freebsd*)
11060 xc_lt_want_with_pic='yes'
11061 ;;
11062 esac
11063 ;;
11064 esac
11065fi
11066
11067#
11068# Make libtool aware of current PIC preference taking in account that,
11069# depending on host characteristics, libtool may modify PIC default
11070# behavior to fit host system idiosyncrasies later in this script.
11071#
11072
11073with_pic=$xc_lt_want_with_pic
11074
11075## ----------------------- ##
11076## Start of libtool code ##
11077## ----------------------- ##
11078
11079
11080
11081
11082# Set options
11083enable_win32_dll=yes
11084
11085case $host in
11086*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11087 if test -n "$ac_tool_prefix"; then
11088 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11089set dummy ${ac_tool_prefix}as; ac_word=$2
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091$as_echo_n "checking for $ac_word... " >&6; }
11092if ${ac_cv_prog_AS+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094else
11095 if test -n "$AS"; then
11096 ac_cv_prog_AS="$AS" # Let the user override the test.
11097else
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_prog_AS="${ac_tool_prefix}as"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109done
11110 done
11111IFS=$as_save_IFS
11112
11113fi
11114fi
11115AS=$ac_cv_prog_AS
11116if test -n "$AS"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11118$as_echo "$AS" >&6; }
11119else
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121$as_echo "no" >&6; }
11122fi
11123
11124
11125fi
11126if test -z "$ac_cv_prog_AS"; then
11127 ac_ct_AS=$AS
11128 # Extract the first word of "as", so it can be a program name with args.
11129set dummy as; ac_word=$2
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131$as_echo_n "checking for $ac_word... " >&6; }
11132if ${ac_cv_prog_ac_ct_AS+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134else
11135 if test -n "$ac_ct_AS"; then
11136 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11137else
11138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_prog_ac_ct_AS="as"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149done
11150 done
11151IFS=$as_save_IFS
11152
11153fi
11154fi
11155ac_ct_AS=$ac_cv_prog_ac_ct_AS
11156if test -n "$ac_ct_AS"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11158$as_echo "$ac_ct_AS" >&6; }
11159else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
11162fi
11163
11164 if test "x$ac_ct_AS" = x; then
11165 AS="false"
11166 else
11167 case $cross_compiling:$ac_tool_warned in
11168yes:)
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11171ac_tool_warned=yes ;;
11172esac
11173 AS=$ac_ct_AS
11174 fi
11175else
11176 AS="$ac_cv_prog_AS"
11177fi
11178
11179 if test -n "$ac_tool_prefix"; then
11180 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11181set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183$as_echo_n "checking for $ac_word... " >&6; }
11184if ${ac_cv_prog_DLLTOOL+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186else
11187 if test -n "$DLLTOOL"; then
11188 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11189else
11190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191for as_dir in $PATH
11192do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11197 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11200 fi
11201done
11202 done
11203IFS=$as_save_IFS
11204
11205fi
11206fi
11207DLLTOOL=$ac_cv_prog_DLLTOOL
11208if test -n "$DLLTOOL"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11210$as_echo "$DLLTOOL" >&6; }
11211else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213$as_echo "no" >&6; }
11214fi
11215
11216
11217fi
11218if test -z "$ac_cv_prog_DLLTOOL"; then
11219 ac_ct_DLLTOOL=$DLLTOOL
11220 # Extract the first word of "dlltool", so it can be a program name with args.
11221set dummy dlltool; ac_word=$2
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223$as_echo_n "checking for $ac_word... " >&6; }
11224if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226else
11227 if test -n "$ac_ct_DLLTOOL"; then
11228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11229else
11230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11237 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11240 fi
11241done
11242 done
11243IFS=$as_save_IFS
11244
11245fi
11246fi
11247ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11248if test -n "$ac_ct_DLLTOOL"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11250$as_echo "$ac_ct_DLLTOOL" >&6; }
11251else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; }
11254fi
11255
11256 if test "x$ac_ct_DLLTOOL" = x; then
11257 DLLTOOL="false"
11258 else
11259 case $cross_compiling:$ac_tool_warned in
11260yes:)
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11263ac_tool_warned=yes ;;
11264esac
11265 DLLTOOL=$ac_ct_DLLTOOL
11266 fi
11267else
11268 DLLTOOL="$ac_cv_prog_DLLTOOL"
11269fi
11270
11271 if test -n "$ac_tool_prefix"; then
11272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11273set dummy ${ac_tool_prefix}objdump; ac_word=$2
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if ${ac_cv_prog_OBJDUMP+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278else
11279 if test -n "$OBJDUMP"; then
11280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294 done
11295IFS=$as_save_IFS
11296
11297fi
11298fi
11299OBJDUMP=$ac_cv_prog_OBJDUMP
11300if test -n "$OBJDUMP"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11302$as_echo "$OBJDUMP" >&6; }
11303else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306fi
11307
11308
11309fi
11310if test -z "$ac_cv_prog_OBJDUMP"; then
11311 ac_ct_OBJDUMP=$OBJDUMP
11312 # Extract the first word of "objdump", so it can be a program name with args.
11313set dummy objdump; ac_word=$2
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11315$as_echo_n "checking for $ac_word... " >&6; }
11316if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318else
11319 if test -n "$ac_ct_OBJDUMP"; then
11320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11321else
11322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333done
11334 done
11335IFS=$as_save_IFS
11336
11337fi
11338fi
11339ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11340if test -n "$ac_ct_OBJDUMP"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11342$as_echo "$ac_ct_OBJDUMP" >&6; }
11343else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345$as_echo "no" >&6; }
11346fi
11347
11348 if test "x$ac_ct_OBJDUMP" = x; then
11349 OBJDUMP="false"
11350 else
11351 case $cross_compiling:$ac_tool_warned in
11352yes:)
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11355ac_tool_warned=yes ;;
11356esac
11357 OBJDUMP=$ac_ct_OBJDUMP
11358 fi
11359else
11360 OBJDUMP="$ac_cv_prog_OBJDUMP"
11361fi
11362
11363 ;;
11364esac
11365
11366test -z "$AS" && AS=as
11367
11368
11369
11370
11371
11372test -z "$DLLTOOL" && DLLTOOL=dlltool
11373
11374
11375
11376
11377
11378test -z "$OBJDUMP" && OBJDUMP=objdump
11379
11380
11381
11382
11383
11384
11385
11386 enable_dlopen=no
11387
11388
11389
11390 # Check whether --enable-shared was given.
11391if test "${enable_shared+set}" = set; then :
11392 enableval=$enable_shared; p=${PACKAGE-default}
11393 case $enableval in
11394 yes) enable_shared=yes ;;
11395 no) enable_shared=no ;;
11396 *)
11397 enable_shared=no
11398 # Look at the argument we got. We use all the common list separators.
11399 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11400 for pkg in $enableval; do
11401 IFS=$lt_save_ifs
11402 if test "X$pkg" = "X$p"; then
11403 enable_shared=yes
11404 fi
11405 done
11406 IFS=$lt_save_ifs
11407 ;;
11408 esac
11409else
11410 enable_shared=yes
11411fi
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421 # Check whether --enable-static was given.
11422if test "${enable_static+set}" = set; then :
11423 enableval=$enable_static; p=${PACKAGE-default}
11424 case $enableval in
11425 yes) enable_static=yes ;;
11426 no) enable_static=no ;;
11427 *)
11428 enable_static=no
11429 # Look at the argument we got. We use all the common list separators.
11430 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11431 for pkg in $enableval; do
11432 IFS=$lt_save_ifs
11433 if test "X$pkg" = "X$p"; then
11434 enable_static=yes
11435 fi
11436 done
11437 IFS=$lt_save_ifs
11438 ;;
11439 esac
11440else
11441 enable_static=yes
11442fi
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453# Check whether --with-pic was given.
11454if test "${with_pic+set}" = set; then :
11455 withval=$with_pic; lt_p=${PACKAGE-default}
11456 case $withval in
11457 yes|no) pic_mode=$withval ;;
11458 *)
11459 pic_mode=default
11460 # Look at the argument we got. We use all the common list separators.
11461 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11462 for lt_pkg in $withval; do
11463 IFS=$lt_save_ifs
11464 if test "X$lt_pkg" = "X$lt_p"; then
11465 pic_mode=yes
11466 fi
11467 done
11468 IFS=$lt_save_ifs
11469 ;;
11470 esac
11471else
11472 pic_mode=default
11473fi
11474
11475
11476
11477
11478
11479
11480
11481
11482 # Check whether --enable-fast-install was given.
11483if test "${enable_fast_install+set}" = set; then :
11484 enableval=$enable_fast_install; p=${PACKAGE-default}
11485 case $enableval in
11486 yes) enable_fast_install=yes ;;
11487 no) enable_fast_install=no ;;
11488 *)
11489 enable_fast_install=no
11490 # Look at the argument we got. We use all the common list separators.
11491 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11492 for pkg in $enableval; do
11493 IFS=$lt_save_ifs
11494 if test "X$pkg" = "X$p"; then
11495 enable_fast_install=yes
11496 fi
11497 done
11498 IFS=$lt_save_ifs
11499 ;;
11500 esac
11501else
11502 enable_fast_install=yes
11503fi
11504
11505
11506
11507
11508
11509
11510
11511
11512 shared_archive_member_spec=
11513case $host,$enable_shared in
11514power*-*-aix[5-9]*,yes)
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11516$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11517
11518# Check whether --with-aix-soname was given.
11519if test "${with_aix_soname+set}" = set; then :
11520 withval=$with_aix_soname; case $withval in
11521 aix|svr4|both)
11522 ;;
11523 *)
11524 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11525 ;;
11526 esac
11527 lt_cv_with_aix_soname=$with_aix_soname
11528else
11529 if ${lt_cv_with_aix_soname+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 lt_cv_with_aix_soname=aix
11533fi
11534
11535 with_aix_soname=$lt_cv_with_aix_soname
11536fi
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11539$as_echo "$with_aix_soname" >&6; }
11540 if test aix != "$with_aix_soname"; then
11541 # For the AIX way of multilib, we name the shared archive member
11542 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11543 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11544 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11545 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11546 if test 64 = "${OBJECT_MODE-32}"; then
11547 shared_archive_member_spec=shr_64
11548 else
11549 shared_archive_member_spec=shr
11550 fi
11551 fi
11552 ;;
11553*)
11554 with_aix_soname=aix
11555 ;;
11556esac
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567# This can be used to rebuild libtool when needed
11568LIBTOOL_DEPS=$ltmain
11569
11570# Always use our own libtool.
11571LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602test -z "$LN_S" && LN_S="ln -s"
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617if test -n "${ZSH_VERSION+set}"; then
11618 setopt NO_GLOB_SUBST
11619fi
11620
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11622$as_echo_n "checking for objdir... " >&6; }
11623if ${lt_cv_objdir+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625else
11626 rm -f .libs 2>/dev/null
11627mkdir .libs 2>/dev/null
11628if test -d .libs; then
11629 lt_cv_objdir=.libs
11630else
11631 # MS-DOS does not allow filenames that begin with a dot.
11632 lt_cv_objdir=_libs
11633fi
11634rmdir .libs 2>/dev/null
11635fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11637$as_echo "$lt_cv_objdir" >&6; }
11638objdir=$lt_cv_objdir
11639
11640
11641
11642
11643
11644cat >>confdefs.h <<_ACEOF
11645#define LT_OBJDIR "$lt_cv_objdir/"
11646_ACEOF
11647
11648
11649
11650
11651case $host_os in
11652aix3*)
11653 # AIX sometimes has problems with the GCC collect2 program. For some
11654 # reason, if we set the COLLECT_NAMES environment variable, the problems
11655 # vanish in a puff of smoke.
11656 if test set != "${COLLECT_NAMES+set}"; then
11657 COLLECT_NAMES=
11658 export COLLECT_NAMES
11659 fi
11660 ;;
11661esac
11662
11663# Global variables:
11664ofile=libtool
11665can_build_shared=yes
11666
11667# All known linkers require a '.a' archive for static linking (except MSVC,
11668# which needs '.lib').
11669libext=a
11670
11671with_gnu_ld=$lt_cv_prog_gnu_ld
11672
11673old_CC=$CC
11674old_CFLAGS=$CFLAGS
11675
11676# Set sane defaults for various variables
11677test -z "$CC" && CC=cc
11678test -z "$LTCC" && LTCC=$CC
11679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11680test -z "$LD" && LD=ld
11681test -z "$ac_objext" && ac_objext=o
11682
11683func_cc_basename $compiler
11684cc_basename=$func_cc_basename_result
11685
11686
11687# Only perform the check for file, if the check method requires it
11688test -z "$MAGIC_CMD" && MAGIC_CMD=file
11689case $deplibs_check_method in
11690file_magic*)
11691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11693$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11694if ${lt_cv_path_MAGIC_CMD+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696else
11697 case $MAGIC_CMD in
11698[\\/*] | ?:[\\/]*)
11699 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11700 ;;
11701*)
11702 lt_save_MAGIC_CMD=$MAGIC_CMD
11703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11705 for ac_dir in $ac_dummy; do
11706 IFS=$lt_save_ifs
11707 test -z "$ac_dir" && ac_dir=.
11708 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11709 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11710 if test -n "$file_magic_test_file"; then
11711 case $deplibs_check_method in
11712 "file_magic "*)
11713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11714 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11716 $EGREP "$file_magic_regex" > /dev/null; then
11717 :
11718 else
11719 cat <<_LT_EOF 1>&2
11720
11721*** Warning: the command libtool uses to detect shared libraries,
11722*** $file_magic_cmd, produces output that libtool cannot recognize.
11723*** The result is that libtool may fail to recognize shared libraries
11724*** as such. This will affect the creation of libtool libraries that
11725*** depend on shared libraries, but programs linked with such libtool
11726*** libraries will work regardless of this problem. Nevertheless, you
11727*** may want to report the problem to your system manager and/or to
11728*** bug-libtool@gnu.org
11729
11730_LT_EOF
11731 fi ;;
11732 esac
11733 fi
11734 break
11735 fi
11736 done
11737 IFS=$lt_save_ifs
11738 MAGIC_CMD=$lt_save_MAGIC_CMD
11739 ;;
11740esac
11741fi
11742
11743MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11744if test -n "$MAGIC_CMD"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11746$as_echo "$MAGIC_CMD" >&6; }
11747else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751
11752
11753
11754
11755
11756if test -z "$lt_cv_path_MAGIC_CMD"; then
11757 if test -n "$ac_tool_prefix"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11759$as_echo_n "checking for file... " >&6; }
11760if ${lt_cv_path_MAGIC_CMD+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762else
11763 case $MAGIC_CMD in
11764[\\/*] | ?:[\\/]*)
11765 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11766 ;;
11767*)
11768 lt_save_MAGIC_CMD=$MAGIC_CMD
11769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11771 for ac_dir in $ac_dummy; do
11772 IFS=$lt_save_ifs
11773 test -z "$ac_dir" && ac_dir=.
11774 if test -f "$ac_dir/file"; then
11775 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11776 if test -n "$file_magic_test_file"; then
11777 case $deplibs_check_method in
11778 "file_magic "*)
11779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11780 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11782 $EGREP "$file_magic_regex" > /dev/null; then
11783 :
11784 else
11785 cat <<_LT_EOF 1>&2
11786
11787*** Warning: the command libtool uses to detect shared libraries,
11788*** $file_magic_cmd, produces output that libtool cannot recognize.
11789*** The result is that libtool may fail to recognize shared libraries
11790*** as such. This will affect the creation of libtool libraries that
11791*** depend on shared libraries, but programs linked with such libtool
11792*** libraries will work regardless of this problem. Nevertheless, you
11793*** may want to report the problem to your system manager and/or to
11794*** bug-libtool@gnu.org
11795
11796_LT_EOF
11797 fi ;;
11798 esac
11799 fi
11800 break
11801 fi
11802 done
11803 IFS=$lt_save_ifs
11804 MAGIC_CMD=$lt_save_MAGIC_CMD
11805 ;;
11806esac
11807fi
11808
11809MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11810if test -n "$MAGIC_CMD"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11812$as_echo "$MAGIC_CMD" >&6; }
11813else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815$as_echo "no" >&6; }
11816fi
11817
11818
11819 else
11820 MAGIC_CMD=:
11821 fi
11822fi
11823
11824 fi
11825 ;;
11826esac
11827
11828# Use C for the default configuration in the libtool script
11829
11830lt_save_CC=$CC
11831ac_ext=c
11832ac_cpp='$CPP $CPPFLAGS'
11833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835ac_compiler_gnu=$ac_cv_c_compiler_gnu
11836
11837
11838# Source file extension for C test sources.
11839ac_ext=c
11840
11841# Object file extension for compiled C test sources.
11842objext=o
11843objext=$objext
11844
11845# Code to be used in simple compile tests
11846lt_simple_compile_test_code="int some_variable = 0;"
11847
11848# Code to be used in simple link tests
11849lt_simple_link_test_code='int main(){return(0);}'
11850
11851
11852
11853
11854
11855
11856
11857# If no C compiler was specified, use CC.
11858LTCC=${LTCC-"$CC"}
11859
11860# If no C compiler flags were specified, use CFLAGS.
11861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11862
11863# Allow CC to be a program name with arguments.
11864compiler=$CC
11865
11866# Save the default compiler, since it gets overwritten when the other
11867# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11868compiler_DEFAULT=$CC
11869
11870# save warnings/boilerplate of simple test code
11871ac_outfile=conftest.$ac_objext
11872echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11873eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11874_lt_compiler_boilerplate=`cat conftest.err`
11875$RM conftest*
11876
11877ac_outfile=conftest.$ac_objext
11878echo "$lt_simple_link_test_code" >conftest.$ac_ext
11879eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11880_lt_linker_boilerplate=`cat conftest.err`
11881$RM -r conftest*
11882
11883
11884## CAVEAT EMPTOR:
11885## There is no encapsulation within the following macros, do not change
11886## the running order or otherwise move them around unless you know exactly
11887## what you are doing...
11888if test -n "$compiler"; then
11889
11890lt_prog_compiler_no_builtin_flag=
11891
11892if test yes = "$GCC"; then
11893 case $cc_basename in
11894 nvcc*)
11895 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11896 *)
11897 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11898 esac
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11901$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11902if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904else
11905 lt_cv_prog_compiler_rtti_exceptions=no
11906 ac_outfile=conftest.$ac_objext
11907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11908 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11909 # Insert the option either (1) after the last *FLAGS variable, or
11910 # (2) before a word containing "conftest.", or (3) at the end.
11911 # Note that $ac_compile itself does not contain backslashes and begins
11912 # with a dollar sign (not a hyphen), so the echo should work correctly.
11913 # The option is referenced via a variable to avoid confusing sed.
11914 lt_compile=`echo "$ac_compile" | $SED \
11915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11917 -e 's:$: $lt_compiler_flag:'`
11918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11919 (eval "$lt_compile" 2>conftest.err)
11920 ac_status=$?
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 if (exit $ac_status) && test -s "$ac_outfile"; then
11924 # The compiler can only warn and ignore the option if not recognized
11925 # So say no if there are warnings other than the usual output.
11926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11929 lt_cv_prog_compiler_rtti_exceptions=yes
11930 fi
11931 fi
11932 $RM conftest*
11933
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11936$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11937
11938if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11939 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11940else
11941 :
11942fi
11943
11944fi
11945
11946
11947
11948
11949
11950
11951 lt_prog_compiler_wl=
11952lt_prog_compiler_pic=
11953lt_prog_compiler_static=
11954
11955
11956 if test yes = "$GCC"; then
11957 lt_prog_compiler_wl='-Wl,'
11958 lt_prog_compiler_static='-static'
11959
11960 case $host_os in
11961 aix*)
11962 # All AIX code is PIC.
11963 if test ia64 = "$host_cpu"; then
11964 # AIX 5 now supports IA64 processor
11965 lt_prog_compiler_static='-Bstatic'
11966 fi
11967 lt_prog_compiler_pic='-fPIC'
11968 ;;
11969
11970 amigaos*)
11971 case $host_cpu in
11972 powerpc)
11973 # see comment about AmigaOS4 .so support
11974 lt_prog_compiler_pic='-fPIC'
11975 ;;
11976 m68k)
11977 # FIXME: we need at least 68020 code to build shared libraries, but
11978 # adding the '-m68020' flag to GCC prevents building anything better,
11979 # like '-m68040'.
11980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11981 ;;
11982 esac
11983 ;;
11984
11985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11986 # PIC is the default for these OSes.
11987 ;;
11988
11989 mingw* | cygwin* | pw32* | os2* | cegcc*)
11990 # This hack is so that the source file can tell whether it is being
11991 # built for inclusion in a dll (and should export symbols for example).
11992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11993 # (--disable-auto-import) libraries
11994 lt_prog_compiler_pic='-DDLL_EXPORT'
11995 case $host_os in
11996 os2*)
11997 lt_prog_compiler_static='$wl-static'
11998 ;;
11999 esac
12000 ;;
12001
12002 darwin* | rhapsody*)
12003 # PIC is the default on this platform
12004 # Common symbols not allowed in MH_DYLIB files
12005 lt_prog_compiler_pic='-fno-common'
12006 ;;
12007
12008 haiku*)
12009 # PIC is the default for Haiku.
12010 # The "-static" flag exists, but is broken.
12011 lt_prog_compiler_static=
12012 ;;
12013
12014 hpux*)
12015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12017 # sets the default TLS model and affects inlining.
12018 case $host_cpu in
12019 hppa*64*)
12020 # +Z the default
12021 ;;
12022 *)
12023 lt_prog_compiler_pic='-fPIC'
12024 ;;
12025 esac
12026 ;;
12027
12028 interix[3-9]*)
12029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12030 # Instead, we relocate shared libraries at runtime.
12031 ;;
12032
12033 msdosdjgpp*)
12034 # Just because we use GCC doesn't mean we suddenly get shared libraries
12035 # on systems that don't support them.
12036 lt_prog_compiler_can_build_shared=no
12037 enable_shared=no
12038 ;;
12039
12040 *nto* | *qnx*)
12041 # QNX uses GNU C++, but need to define -shared option too, otherwise
12042 # it will coredump.
12043 lt_prog_compiler_pic='-fPIC -shared'
12044 ;;
12045
12046 sysv4*MP*)
12047 if test -d /usr/nec; then
12048 lt_prog_compiler_pic=-Kconform_pic
12049 fi
12050 ;;
12051
12052 *)
12053 lt_prog_compiler_pic='-fPIC'
12054 ;;
12055 esac
12056
12057 case $cc_basename in
12058 nvcc*) # Cuda Compiler Driver 2.2
12059 lt_prog_compiler_wl='-Xlinker '
12060 if test -n "$lt_prog_compiler_pic"; then
12061 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12062 fi
12063 ;;
12064 esac
12065 else
12066 # PORTME Check for flag to pass linker flags through the system compiler.
12067 case $host_os in
12068 aix*)
12069 lt_prog_compiler_wl='-Wl,'
12070 if test ia64 = "$host_cpu"; then
12071 # AIX 5 now supports IA64 processor
12072 lt_prog_compiler_static='-Bstatic'
12073 else
12074 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12075 fi
12076 ;;
12077
12078 darwin* | rhapsody*)
12079 # PIC is the default on this platform
12080 # Common symbols not allowed in MH_DYLIB files
12081 lt_prog_compiler_pic='-fno-common'
12082 case $cc_basename in
12083 nagfor*)
12084 # NAG Fortran compiler
12085 lt_prog_compiler_wl='-Wl,-Wl,,'
12086 lt_prog_compiler_pic='-PIC'
12087 lt_prog_compiler_static='-Bstatic'
12088 ;;
12089 esac
12090 ;;
12091
12092 mingw* | cygwin* | pw32* | os2* | cegcc*)
12093 # This hack is so that the source file can tell whether it is being
12094 # built for inclusion in a dll (and should export symbols for example).
12095 lt_prog_compiler_pic='-DDLL_EXPORT'
12096 case $host_os in
12097 os2*)
12098 lt_prog_compiler_static='$wl-static'
12099 ;;
12100 esac
12101 ;;
12102
12103 hpux9* | hpux10* | hpux11*)
12104 lt_prog_compiler_wl='-Wl,'
12105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12106 # not for PA HP-UX.
12107 case $host_cpu in
12108 hppa*64*|ia64*)
12109 # +Z the default
12110 ;;
12111 *)
12112 lt_prog_compiler_pic='+Z'
12113 ;;
12114 esac
12115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12116 lt_prog_compiler_static='$wl-a ${wl}archive'
12117 ;;
12118
12119 irix5* | irix6* | nonstopux*)
12120 lt_prog_compiler_wl='-Wl,'
12121 # PIC (with -KPIC) is the default.
12122 lt_prog_compiler_static='-non_shared'
12123 ;;
12124
12125 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12126 case $cc_basename in
12127 # old Intel for x86_64, which still supported -KPIC.
12128 ecc*)
12129 lt_prog_compiler_wl='-Wl,'
12130 lt_prog_compiler_pic='-KPIC'
12131 lt_prog_compiler_static='-static'
12132 ;;
12133 # icc used to be incompatible with GCC.
12134 # ICC 10 doesn't accept -KPIC any more.
12135 icc* | ifort*)
12136 lt_prog_compiler_wl='-Wl,'
12137 lt_prog_compiler_pic='-fPIC'
12138 lt_prog_compiler_static='-static'
12139 ;;
12140 # Lahey Fortran 8.1.
12141 lf95*)
12142 lt_prog_compiler_wl='-Wl,'
12143 lt_prog_compiler_pic='--shared'
12144 lt_prog_compiler_static='--static'
12145 ;;
12146 nagfor*)
12147 # NAG Fortran compiler
12148 lt_prog_compiler_wl='-Wl,-Wl,,'
12149 lt_prog_compiler_pic='-PIC'
12150 lt_prog_compiler_static='-Bstatic'
12151 ;;
12152 tcc*)
12153 # Fabrice Bellard et al's Tiny C Compiler
12154 lt_prog_compiler_wl='-Wl,'
12155 lt_prog_compiler_pic='-fPIC'
12156 lt_prog_compiler_static='-static'
12157 ;;
12158 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12159 # Portland Group compilers (*not* the Pentium gcc compiler,
12160 # which looks to be a dead project)
12161 lt_prog_compiler_wl='-Wl,'
12162 lt_prog_compiler_pic='-fpic'
12163 lt_prog_compiler_static='-Bstatic'
12164 ;;
12165 ccc*)
12166 lt_prog_compiler_wl='-Wl,'
12167 # All Alpha code is PIC.
12168 lt_prog_compiler_static='-non_shared'
12169 ;;
12170 xl* | bgxl* | bgf* | mpixl*)
12171 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12172 lt_prog_compiler_wl='-Wl,'
12173 lt_prog_compiler_pic='-qpic'
12174 lt_prog_compiler_static='-qstaticlink'
12175 ;;
12176 *)
12177 case `$CC -V 2>&1 | sed 5q` in
12178 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12179 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12180 lt_prog_compiler_pic='-KPIC'
12181 lt_prog_compiler_static='-Bstatic'
12182 lt_prog_compiler_wl=''
12183 ;;
12184 *Sun\ F* | *Sun*Fortran*)
12185 lt_prog_compiler_pic='-KPIC'
12186 lt_prog_compiler_static='-Bstatic'
12187 lt_prog_compiler_wl='-Qoption ld '
12188 ;;
12189 *Sun\ C*)
12190 # Sun C 5.9
12191 lt_prog_compiler_pic='-KPIC'
12192 lt_prog_compiler_static='-Bstatic'
12193 lt_prog_compiler_wl='-Wl,'
12194 ;;
12195 *Intel*\ [CF]*Compiler*)
12196 lt_prog_compiler_wl='-Wl,'
12197 lt_prog_compiler_pic='-fPIC'
12198 lt_prog_compiler_static='-static'
12199 ;;
12200 *Portland\ Group*)
12201 lt_prog_compiler_wl='-Wl,'
12202 lt_prog_compiler_pic='-fpic'
12203 lt_prog_compiler_static='-Bstatic'
12204 ;;
12205 esac
12206 ;;
12207 esac
12208 ;;
12209
12210 newsos6)
12211 lt_prog_compiler_pic='-KPIC'
12212 lt_prog_compiler_static='-Bstatic'
12213 ;;
12214
12215 *nto* | *qnx*)
12216 # QNX uses GNU C++, but need to define -shared option too, otherwise
12217 # it will coredump.
12218 lt_prog_compiler_pic='-fPIC -shared'
12219 ;;
12220
12221 osf3* | osf4* | osf5*)
12222 lt_prog_compiler_wl='-Wl,'
12223 # All OSF/1 code is PIC.
12224 lt_prog_compiler_static='-non_shared'
12225 ;;
12226
12227 rdos*)
12228 lt_prog_compiler_static='-non_shared'
12229 ;;
12230
12231 solaris*)
12232 lt_prog_compiler_pic='-KPIC'
12233 lt_prog_compiler_static='-Bstatic'
12234 case $cc_basename in
12235 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12236 lt_prog_compiler_wl='-Qoption ld ';;
12237 *)
12238 lt_prog_compiler_wl='-Wl,';;
12239 esac
12240 ;;
12241
12242 sunos4*)
12243 lt_prog_compiler_wl='-Qoption ld '
12244 lt_prog_compiler_pic='-PIC'
12245 lt_prog_compiler_static='-Bstatic'
12246 ;;
12247
12248 sysv4 | sysv4.2uw2* | sysv4.3*)
12249 lt_prog_compiler_wl='-Wl,'
12250 lt_prog_compiler_pic='-KPIC'
12251 lt_prog_compiler_static='-Bstatic'
12252 ;;
12253
12254 sysv4*MP*)
12255 if test -d /usr/nec; then
12256 lt_prog_compiler_pic='-Kconform_pic'
12257 lt_prog_compiler_static='-Bstatic'
12258 fi
12259 ;;
12260
12261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12262 lt_prog_compiler_wl='-Wl,'
12263 lt_prog_compiler_pic='-KPIC'
12264 lt_prog_compiler_static='-Bstatic'
12265 ;;
12266
12267 unicos*)
12268 lt_prog_compiler_wl='-Wl,'
12269 lt_prog_compiler_can_build_shared=no
12270 ;;
12271
12272 uts4*)
12273 lt_prog_compiler_pic='-pic'
12274 lt_prog_compiler_static='-Bstatic'
12275 ;;
12276
12277 *)
12278 lt_prog_compiler_can_build_shared=no
12279 ;;
12280 esac
12281 fi
12282
12283case $host_os in
12284 # For platforms that do not support PIC, -DPIC is meaningless:
12285 *djgpp*)
12286 lt_prog_compiler_pic=
12287 ;;
12288 *)
12289 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12290 ;;
12291esac
12292
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12294$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12295if ${lt_cv_prog_compiler_pic+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297else
12298 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12299fi
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12301$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12302lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12303
12304#
12305# Check to make sure the PIC flag actually works.
12306#
12307if test -n "$lt_prog_compiler_pic"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12309$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12310if ${lt_cv_prog_compiler_pic_works+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312else
12313 lt_cv_prog_compiler_pic_works=no
12314 ac_outfile=conftest.$ac_objext
12315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12317 # Insert the option either (1) after the last *FLAGS variable, or
12318 # (2) before a word containing "conftest.", or (3) at the end.
12319 # Note that $ac_compile itself does not contain backslashes and begins
12320 # with a dollar sign (not a hyphen), so the echo should work correctly.
12321 # The option is referenced via a variable to avoid confusing sed.
12322 lt_compile=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>conftest.err)
12328 ac_status=$?
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s "$ac_outfile"; then
12332 # The compiler can only warn and ignore the option if not recognized
12333 # So say no if there are warnings other than the usual output.
12334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12337 lt_cv_prog_compiler_pic_works=yes
12338 fi
12339 fi
12340 $RM conftest*
12341
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12344$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12345
12346if test yes = "$lt_cv_prog_compiler_pic_works"; then
12347 case $lt_prog_compiler_pic in
12348 "" | " "*) ;;
12349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12350 esac
12351else
12352 lt_prog_compiler_pic=
12353 lt_prog_compiler_can_build_shared=no
12354fi
12355
12356fi
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368#
12369# Check to make sure the static flag actually works.
12370#
12371wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12373$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12374if ${lt_cv_prog_compiler_static_works+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376else
12377 lt_cv_prog_compiler_static_works=no
12378 save_LDFLAGS=$LDFLAGS
12379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12382 # The linker can only warn and ignore the option if not recognized
12383 # So say no if there are warnings
12384 if test -s conftest.err; then
12385 # Append any errors to the config.log.
12386 cat conftest.err 1>&5
12387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12389 if diff conftest.exp conftest.er2 >/dev/null; then
12390 lt_cv_prog_compiler_static_works=yes
12391 fi
12392 else
12393 lt_cv_prog_compiler_static_works=yes
12394 fi
12395 fi
12396 $RM -r conftest*
12397 LDFLAGS=$save_LDFLAGS
12398
12399fi
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12401$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12402
12403if test yes = "$lt_cv_prog_compiler_static_works"; then
12404 :
12405else
12406 lt_prog_compiler_static=
12407fi
12408
12409
12410
12411
12412
12413
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12416$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12417if ${lt_cv_prog_compiler_c_o+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419else
12420 lt_cv_prog_compiler_c_o=no
12421 $RM -r conftest 2>/dev/null
12422 mkdir conftest
12423 cd conftest
12424 mkdir out
12425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426
12427 lt_compiler_flag="-o out/conftest2.$ac_objext"
12428 # Insert the option either (1) after the last *FLAGS variable, or
12429 # (2) before a word containing "conftest.", or (3) at the end.
12430 # Note that $ac_compile itself does not contain backslashes and begins
12431 # with a dollar sign (not a hyphen), so the echo should work correctly.
12432 lt_compile=`echo "$ac_compile" | $SED \
12433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12435 -e 's:$: $lt_compiler_flag:'`
12436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12437 (eval "$lt_compile" 2>out/conftest.err)
12438 ac_status=$?
12439 cat out/conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12442 then
12443 # The compiler can only warn and ignore the option if not recognized
12444 # So say no if there are warnings
12445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12448 lt_cv_prog_compiler_c_o=yes
12449 fi
12450 fi
12451 chmod u+w . 2>&5
12452 $RM conftest*
12453 # SGI C++ compiler will create directory out/ii_files/ for
12454 # template instantiation
12455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12456 $RM out/* && rmdir out
12457 cd ..
12458 $RM -r conftest
12459 $RM conftest*
12460
12461fi
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12463$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12464
12465
12466
12467
12468
12469
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12472if ${lt_cv_prog_compiler_c_o+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474else
12475 lt_cv_prog_compiler_c_o=no
12476 $RM -r conftest 2>/dev/null
12477 mkdir conftest
12478 cd conftest
12479 mkdir out
12480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12481
12482 lt_compiler_flag="-o out/conftest2.$ac_objext"
12483 # Insert the option either (1) after the last *FLAGS variable, or
12484 # (2) before a word containing "conftest.", or (3) at the end.
12485 # Note that $ac_compile itself does not contain backslashes and begins
12486 # with a dollar sign (not a hyphen), so the echo should work correctly.
12487 lt_compile=`echo "$ac_compile" | $SED \
12488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12490 -e 's:$: $lt_compiler_flag:'`
12491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12492 (eval "$lt_compile" 2>out/conftest.err)
12493 ac_status=$?
12494 cat out/conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12497 then
12498 # The compiler can only warn and ignore the option if not recognized
12499 # So say no if there are warnings
12500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12503 lt_cv_prog_compiler_c_o=yes
12504 fi
12505 fi
12506 chmod u+w . 2>&5
12507 $RM conftest*
12508 # SGI C++ compiler will create directory out/ii_files/ for
12509 # template instantiation
12510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12511 $RM out/* && rmdir out
12512 cd ..
12513 $RM -r conftest
12514 $RM conftest*
12515
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12518$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12519
12520
12521
12522
12523hard_links=nottested
12524if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12525 # do not overwrite the value of need_locks provided by the user
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12527$as_echo_n "checking if we can lock with hard links... " >&6; }
12528 hard_links=yes
12529 $RM conftest*
12530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12531 touch conftest.a
12532 ln conftest.a conftest.b 2>&5 || hard_links=no
12533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12535$as_echo "$hard_links" >&6; }
12536 if test no = "$hard_links"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12538$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12539 need_locks=warn
12540 fi
12541else
12542 need_locks=no
12543fi
12544
12545
12546
12547
12548
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12552
12553 runpath_var=
12554 allow_undefined_flag=
12555 always_export_symbols=no
12556 archive_cmds=
12557 archive_expsym_cmds=
12558 compiler_needs_object=no
12559 enable_shared_with_static_runtimes=no
12560 export_dynamic_flag_spec=
12561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12562 hardcode_automatic=no
12563 hardcode_direct=no
12564 hardcode_direct_absolute=no
12565 hardcode_libdir_flag_spec=
12566 hardcode_libdir_separator=
12567 hardcode_minus_L=no
12568 hardcode_shlibpath_var=unsupported
12569 inherit_rpath=no
12570 link_all_deplibs=unknown
12571 module_cmds=
12572 module_expsym_cmds=
12573 old_archive_from_new_cmds=
12574 old_archive_from_expsyms_cmds=
12575 thread_safe_flag_spec=
12576 whole_archive_flag_spec=
12577 # include_expsyms should be a list of space-separated symbols to be *always*
12578 # included in the symbol list
12579 include_expsyms=
12580 # exclude_expsyms can be an extended regexp of symbols to exclude
12581 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12582 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12583 # as well as any symbol that contains 'd'.
12584 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12586 # platforms (ab)use it in PIC code, but their linkers get confused if
12587 # the symbol is explicitly referenced. Since portable code cannot
12588 # rely on this symbol name, it's probably fine to never include it in
12589 # preloaded symbol tables.
12590 # Exclude shared library initialization/finalization symbols.
12591 extract_expsyms_cmds=
12592
12593 case $host_os in
12594 cygwin* | mingw* | pw32* | cegcc*)
12595 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12596 # When not using gcc, we currently assume that we are using
12597 # Microsoft Visual C++.
12598 if test yes != "$GCC"; then
12599 with_gnu_ld=no
12600 fi
12601 ;;
12602 interix*)
12603 # we just hope/assume this is gcc and not c89 (= MSVC++)
12604 with_gnu_ld=yes
12605 ;;
12606 openbsd* | bitrig*)
12607 with_gnu_ld=no
12608 ;;
12609 linux* | k*bsd*-gnu | gnu*)
12610 link_all_deplibs=no
12611 ;;
12612 esac
12613
12614 ld_shlibs=yes
12615
12616 # On some targets, GNU ld is compatible enough with the native linker
12617 # that we're better off using the native interface for both.
12618 lt_use_gnu_ld_interface=no
12619 if test yes = "$with_gnu_ld"; then
12620 case $host_os in
12621 aix*)
12622 # The AIX port of GNU ld has always aspired to compatibility
12623 # with the native linker. However, as the warning in the GNU ld
12624 # block says, versions before 2.19.5* couldn't really create working
12625 # shared libraries, regardless of the interface used.
12626 case `$LD -v 2>&1` in
12627 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12628 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12629 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12630 *)
12631 lt_use_gnu_ld_interface=yes
12632 ;;
12633 esac
12634 ;;
12635 *)
12636 lt_use_gnu_ld_interface=yes
12637 ;;
12638 esac
12639 fi
12640
12641 if test yes = "$lt_use_gnu_ld_interface"; then
12642 # If archive_cmds runs LD, not CC, wlarc should be empty
12643 wlarc='$wl'
12644
12645 # Set some defaults for GNU ld with shared library support. These
12646 # are reset later if shared libraries are not supported. Putting them
12647 # here allows them to be overridden if necessary.
12648 runpath_var=LD_RUN_PATH
12649 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12650 export_dynamic_flag_spec='$wl--export-dynamic'
12651 # ancient GNU ld didn't support --whole-archive et. al.
12652 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12653 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12654 else
12655 whole_archive_flag_spec=
12656 fi
12657 supports_anon_versioning=no
12658 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12659 *GNU\ gold*) supports_anon_versioning=yes ;;
12660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12663 *\ 2.11.*) ;; # other 2.11 versions
12664 *) supports_anon_versioning=yes ;;
12665 esac
12666
12667 # See if GNU ld supports shared libraries.
12668 case $host_os in
12669 aix[3-9]*)
12670 # On AIX/PPC, the GNU linker is very broken
12671 if test ia64 != "$host_cpu"; then
12672 ld_shlibs=no
12673 cat <<_LT_EOF 1>&2
12674
12675*** Warning: the GNU linker, at least up to release 2.19, is reported
12676*** to be unable to reliably create shared libraries on AIX.
12677*** Therefore, libtool is disabling shared libraries support. If you
12678*** really care for shared libraries, you may want to install binutils
12679*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12680*** You will then need to restart the configuration process.
12681
12682_LT_EOF
12683 fi
12684 ;;
12685
12686 amigaos*)
12687 case $host_cpu in
12688 powerpc)
12689 # see comment about AmigaOS4 .so support
12690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12691 archive_expsym_cmds=''
12692 ;;
12693 m68k)
12694 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)'
12695 hardcode_libdir_flag_spec='-L$libdir'
12696 hardcode_minus_L=yes
12697 ;;
12698 esac
12699 ;;
12700
12701 beos*)
12702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12703 allow_undefined_flag=unsupported
12704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12705 # support --undefined. This deserves some investigation. FIXME
12706 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12707 else
12708 ld_shlibs=no
12709 fi
12710 ;;
12711
12712 cygwin* | mingw* | pw32* | cegcc*)
12713 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12714 # as there is no search path for DLLs.
12715 hardcode_libdir_flag_spec='-L$libdir'
12716 export_dynamic_flag_spec='$wl--export-all-symbols'
12717 allow_undefined_flag=unsupported
12718 always_export_symbols=no
12719 enable_shared_with_static_runtimes=yes
12720 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'
12721 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12722
12723 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12725 # If the export-symbols file already is a .def file, use it as
12726 # is; otherwise, prepend EXPORTS...
12727 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12728 cp $export_symbols $output_objdir/$soname.def;
12729 else
12730 echo EXPORTS > $output_objdir/$soname.def;
12731 cat $export_symbols >> $output_objdir/$soname.def;
12732 fi~
12733 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12734 else
12735 ld_shlibs=no
12736 fi
12737 ;;
12738
12739 haiku*)
12740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12741 link_all_deplibs=yes
12742 ;;
12743
12744 os2*)
12745 hardcode_libdir_flag_spec='-L$libdir'
12746 hardcode_minus_L=yes
12747 allow_undefined_flag=unsupported
12748 shrext_cmds=.dll
12749 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12750 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12751 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12752 $ECHO EXPORTS >> $output_objdir/$libname.def~
12753 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12754 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12755 emximp -o $lib $output_objdir/$libname.def'
12756 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12757 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12758 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12759 $ECHO EXPORTS >> $output_objdir/$libname.def~
12760 prefix_cmds="$SED"~
12761 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12762 prefix_cmds="$prefix_cmds -e 1d";
12763 fi~
12764 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12765 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12766 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12767 emximp -o $lib $output_objdir/$libname.def'
12768 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12769 enable_shared_with_static_runtimes=yes
12770 ;;
12771
12772 interix[3-9]*)
12773 hardcode_direct=no
12774 hardcode_shlibpath_var=no
12775 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12776 export_dynamic_flag_spec='$wl-E'
12777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12778 # Instead, shared libraries are loaded at an image base (0x10000000 by
12779 # default) and relocated if they conflict, which is a slow very memory
12780 # consuming and fragmenting process. To avoid this, we pick a random,
12781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12784 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'
12785 ;;
12786
12787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12788 tmp_diet=no
12789 if test linux-dietlibc = "$host_os"; then
12790 case $cc_basename in
12791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12792 esac
12793 fi
12794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12795 && test no = "$tmp_diet"
12796 then
12797 tmp_addflag=' $pic_flag'
12798 tmp_sharedflag='-shared'
12799 case $cc_basename,$host_cpu in
12800 pgcc*) # Portland Group C compiler
12801 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'
12802 tmp_addflag=' $pic_flag'
12803 ;;
12804 pgf77* | pgf90* | pgf95* | pgfortran*)
12805 # Portland Group f77 and f90 compilers
12806 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'
12807 tmp_addflag=' $pic_flag -Mnomain' ;;
12808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12809 tmp_addflag=' -i_dynamic' ;;
12810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12811 tmp_addflag=' -i_dynamic -nofor_main' ;;
12812 ifc* | ifort*) # Intel Fortran compiler
12813 tmp_addflag=' -nofor_main' ;;
12814 lf95*) # Lahey Fortran 8.1
12815 whole_archive_flag_spec=
12816 tmp_sharedflag='--shared' ;;
12817 nagfor*) # NAGFOR 5.3
12818 tmp_sharedflag='-Wl,-shared' ;;
12819 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12820 tmp_sharedflag='-qmkshrobj'
12821 tmp_addflag= ;;
12822 nvcc*) # Cuda Compiler Driver 2.2
12823 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'
12824 compiler_needs_object=yes
12825 ;;
12826 esac
12827 case `$CC -V 2>&1 | sed 5q` in
12828 *Sun\ C*) # Sun C 5.9
12829 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'
12830 compiler_needs_object=yes
12831 tmp_sharedflag='-G' ;;
12832 *Sun\ F*) # Sun Fortran 8.3
12833 tmp_sharedflag='-G' ;;
12834 esac
12835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12836
12837 if test yes = "$supports_anon_versioning"; then
12838 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12840 echo "local: *; };" >> $output_objdir/$libname.ver~
12841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12842 fi
12843
12844 case $cc_basename in
12845 tcc*)
12846 export_dynamic_flag_spec='-rdynamic'
12847 ;;
12848 xlf* | bgf* | bgxlf* | mpixlf*)
12849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12852 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12853 if test yes = "$supports_anon_versioning"; then
12854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12856 echo "local: *; };" >> $output_objdir/$libname.ver~
12857 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12858 fi
12859 ;;
12860 esac
12861 else
12862 ld_shlibs=no
12863 fi
12864 ;;
12865
12866 netbsd* | netbsdelf*-gnu)
12867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12869 wlarc=
12870 else
12871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12873 fi
12874 ;;
12875
12876 solaris*)
12877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12878 ld_shlibs=no
12879 cat <<_LT_EOF 1>&2
12880
12881*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12882*** create shared libraries on Solaris systems. Therefore, libtool
12883*** is disabling shared libraries support. We urge you to upgrade GNU
12884*** binutils to release 2.9.1 or newer. Another option is to modify
12885*** your PATH or compiler configuration so that the native linker is
12886*** used, and then restart.
12887
12888_LT_EOF
12889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12891 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12892 else
12893 ld_shlibs=no
12894 fi
12895 ;;
12896
12897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12898 case `$LD -v 2>&1` in
12899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12900 ld_shlibs=no
12901 cat <<_LT_EOF 1>&2
12902
12903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12904*** reliably create shared libraries on SCO systems. Therefore, libtool
12905*** is disabling shared libraries support. We urge you to upgrade GNU
12906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12907*** your PATH or compiler configuration so that the native linker is
12908*** used, and then restart.
12909
12910_LT_EOF
12911 ;;
12912 *)
12913 # For security reasons, it is highly recommended that you always
12914 # use absolute paths for naming shared libraries, and exclude the
12915 # DT_RUNPATH tag from executables and libraries. But doing so
12916 # requires that you compile everything twice, which is a pain.
12917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12921 else
12922 ld_shlibs=no
12923 fi
12924 ;;
12925 esac
12926 ;;
12927
12928 sunos4*)
12929 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12930 wlarc=
12931 hardcode_direct=yes
12932 hardcode_shlibpath_var=no
12933 ;;
12934
12935 *)
12936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12938 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12939 else
12940 ld_shlibs=no
12941 fi
12942 ;;
12943 esac
12944
12945 if test no = "$ld_shlibs"; then
12946 runpath_var=
12947 hardcode_libdir_flag_spec=
12948 export_dynamic_flag_spec=
12949 whole_archive_flag_spec=
12950 fi
12951 else
12952 # PORTME fill in a description of your system's linker (not GNU ld)
12953 case $host_os in
12954 aix3*)
12955 allow_undefined_flag=unsupported
12956 always_export_symbols=yes
12957 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'
12958 # Note: this linker hardcodes the directories in LIBPATH if there
12959 # are no directories specified by -L.
12960 hardcode_minus_L=yes
12961 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12962 # Neither direct hardcoding nor static linking is supported with a
12963 # broken collect2.
12964 hardcode_direct=unsupported
12965 fi
12966 ;;
12967
12968 aix[4-9]*)
12969 if test ia64 = "$host_cpu"; then
12970 # On IA64, the linker does run time linking by default, so we don't
12971 # have to do anything special.
12972 aix_use_runtimelinking=no
12973 exp_sym_flag='-Bexport'
12974 no_entry_flag=
12975 else
12976 # If we're using GNU nm, then we don't want the "-C" option.
12977 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12978 # Without the "-l" option, or with the "-B" option, AIX nm treats
12979 # weak defined symbols like other global defined symbols, whereas
12980 # GNU nm marks them as "W".
12981 # While the 'weak' keyword is ignored in the Export File, we need
12982 # it in the Import File for the 'aix-soname' feature, so we have
12983 # to replace the "-B" option with "-P" for AIX nm.
12984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12985 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'
12986 else
12987 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'
12988 fi
12989 aix_use_runtimelinking=no
12990
12991 # Test if we are trying to use run time linking or normal
12992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12993 # have runtime linking enabled, and use it for executables.
12994 # For shared libraries, we enable/disable runtime linking
12995 # depending on the kind of the shared library created -
12996 # when "with_aix_soname,aix_use_runtimelinking" is:
12997 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12998 # "aix,yes" lib.so shared, rtl:yes, for executables
12999 # lib.a static archive
13000 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13001 # lib.a(lib.so.V) shared, rtl:no, for executables
13002 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13003 # lib.a(lib.so.V) shared, rtl:no
13004 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13005 # lib.a static archive
13006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13007 for ld_flag in $LDFLAGS; do
13008 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13009 aix_use_runtimelinking=yes
13010 break
13011 fi
13012 done
13013 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13014 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13015 # so we don't have lib.a shared libs to link our executables.
13016 # We have to force runtime linking in this case.
13017 aix_use_runtimelinking=yes
13018 LDFLAGS="$LDFLAGS -Wl,-brtl"
13019 fi
13020 ;;
13021 esac
13022
13023 exp_sym_flag='-bexport'
13024 no_entry_flag='-bnoentry'
13025 fi
13026
13027 # When large executables or shared objects are built, AIX ld can
13028 # have problems creating the table of contents. If linking a library
13029 # or program results in "error TOC overflow" add -mminimal-toc to
13030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13032
13033 archive_cmds=''
13034 hardcode_direct=yes
13035 hardcode_direct_absolute=yes
13036 hardcode_libdir_separator=':'
13037 link_all_deplibs=yes
13038 file_list_spec='$wl-f,'
13039 case $with_aix_soname,$aix_use_runtimelinking in
13040 aix,*) ;; # traditional, no import file
13041 svr4,* | *,yes) # use import file
13042 # The Import File defines what to hardcode.
13043 hardcode_direct=no
13044 hardcode_direct_absolute=no
13045 ;;
13046 esac
13047
13048 if test yes = "$GCC"; then
13049 case $host_os in aix4.[012]|aix4.[012].*)
13050 # We only want to do this on AIX 4.2 and lower, the check
13051 # below for broken collect2 doesn't work under 4.3+
13052 collect2name=`$CC -print-prog-name=collect2`
13053 if test -f "$collect2name" &&
13054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13055 then
13056 # We have reworked collect2
13057 :
13058 else
13059 # We have old collect2
13060 hardcode_direct=unsupported
13061 # It fails to find uninstalled libraries when the uninstalled
13062 # path is not listed in the libpath. Setting hardcode_minus_L
13063 # to unsupported forces relinking
13064 hardcode_minus_L=yes
13065 hardcode_libdir_flag_spec='-L$libdir'
13066 hardcode_libdir_separator=
13067 fi
13068 ;;
13069 esac
13070 shared_flag='-shared'
13071 if test yes = "$aix_use_runtimelinking"; then
13072 shared_flag="$shared_flag "'$wl-G'
13073 fi
13074 # Need to ensure runtime linking is disabled for the traditional
13075 # shared library, or the linker may eventually find shared libraries
13076 # /with/ Import File - we do not want to mix them.
13077 shared_flag_aix='-shared'
13078 shared_flag_svr4='-shared $wl-G'
13079 else
13080 # not using gcc
13081 if test ia64 = "$host_cpu"; then
13082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13083 # chokes on -Wl,-G. The following line is correct:
13084 shared_flag='-G'
13085 else
13086 if test yes = "$aix_use_runtimelinking"; then
13087 shared_flag='$wl-G'
13088 else
13089 shared_flag='$wl-bM:SRE'
13090 fi
13091 shared_flag_aix='$wl-bM:SRE'
13092 shared_flag_svr4='$wl-G'
13093 fi
13094 fi
13095
13096 export_dynamic_flag_spec='$wl-bexpall'
13097 # It seems that -bexpall does not export symbols beginning with
13098 # underscore (_), so it is better to generate a list of symbols to export.
13099 always_export_symbols=yes
13100 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13101 # Warning - without using the other runtime loading flags (-brtl),
13102 # -berok will link without error, but may produce a broken library.
13103 allow_undefined_flag='-berok'
13104 # Determine the default libpath from the value encoded in an
13105 # empty executable.
13106 if test set = "${lt_cv_aix_libpath+set}"; then
13107 aix_libpath=$lt_cv_aix_libpath
13108else
13109 if ${lt_cv_aix_libpath_+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111else
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h. */
13114
13115int main (void)
13116{
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122if ac_fn_c_try_link "$LINENO"; then :
13123
13124 lt_aix_libpath_sed='
13125 /Import File Strings/,/^$/ {
13126 /^0/ {
13127 s/^0 *\([^ ]*\) *$/\1/
13128 p
13129 }
13130 }'
13131 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13132 # Check for a 64-bit object if we didn't find anything.
13133 if test -z "$lt_cv_aix_libpath_"; then
13134 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13135 fi
13136fi
13137rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 if test -z "$lt_cv_aix_libpath_"; then
13140 lt_cv_aix_libpath_=/usr/lib:/lib
13141 fi
13142
13143fi
13144
13145 aix_libpath=$lt_cv_aix_libpath_
13146fi
13147
13148 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13149 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
13150 else
13151 if test ia64 = "$host_cpu"; then
13152 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13153 allow_undefined_flag="-z nodefs"
13154 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"
13155 else
13156 # Determine the default libpath from the value encoded in an
13157 # empty executable.
13158 if test set = "${lt_cv_aix_libpath+set}"; then
13159 aix_libpath=$lt_cv_aix_libpath
13160else
13161 if ${lt_cv_aix_libpath_+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163else
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165/* end confdefs.h. */
13166
13167int main (void)
13168{
13169
13170 ;
13171 return 0;
13172}
13173_ACEOF
13174if ac_fn_c_try_link "$LINENO"; then :
13175
13176 lt_aix_libpath_sed='
13177 /Import File Strings/,/^$/ {
13178 /^0/ {
13179 s/^0 *\([^ ]*\) *$/\1/
13180 p
13181 }
13182 }'
13183 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 # Check for a 64-bit object if we didn't find anything.
13185 if test -z "$lt_cv_aix_libpath_"; then
13186 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13187 fi
13188fi
13189rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 if test -z "$lt_cv_aix_libpath_"; then
13192 lt_cv_aix_libpath_=/usr/lib:/lib
13193 fi
13194
13195fi
13196
13197 aix_libpath=$lt_cv_aix_libpath_
13198fi
13199
13200 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13201 # Warning - without using the other run time loading flags,
13202 # -berok will link without error, but may produce a broken library.
13203 no_undefined_flag=' $wl-bernotok'
13204 allow_undefined_flag=' $wl-berok'
13205 if test yes = "$with_gnu_ld"; then
13206 # We only use this code for GNU lds that support --whole-archive.
13207 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13208 else
13209 # Exported symbols can be pulled into shared objects from archives
13210 whole_archive_flag_spec='$convenience'
13211 fi
13212 archive_cmds_need_lc=yes
13213 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13214 # -brtl affects multiple linker settings, -berok does not and is overridden later
13215 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13216 if test svr4 != "$with_aix_soname"; then
13217 # This is similar to how AIX traditionally builds its shared libraries.
13218 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'
13219 fi
13220 if test aix != "$with_aix_soname"; then
13221 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'
13222 else
13223 # used by -dlpreopen to get the symbols
13224 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13225 fi
13226 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13227 fi
13228 fi
13229 ;;
13230
13231 amigaos*)
13232 case $host_cpu in
13233 powerpc)
13234 # see comment about AmigaOS4 .so support
13235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13236 archive_expsym_cmds=''
13237 ;;
13238 m68k)
13239 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)'
13240 hardcode_libdir_flag_spec='-L$libdir'
13241 hardcode_minus_L=yes
13242 ;;
13243 esac
13244 ;;
13245
13246 bsdi[45]*)
13247 export_dynamic_flag_spec=-rdynamic
13248 ;;
13249
13250 cygwin* | mingw* | pw32* | cegcc*)
13251 # When not using gcc, we currently assume that we are using
13252 # Microsoft Visual C++.
13253 # hardcode_libdir_flag_spec is actually meaningless, as there is
13254 # no search path for DLLs.
13255 case $cc_basename in
13256 cl*)
13257 # Native MSVC
13258 hardcode_libdir_flag_spec=' '
13259 allow_undefined_flag=unsupported
13260 always_export_symbols=yes
13261 file_list_spec='@'
13262 # Tell ltmain to make .lib files, not .a files.
13263 libext=lib
13264 # Tell ltmain to make .dll files, not .so files.
13265 shrext_cmds=.dll
13266 # FIXME: Setting linknames here is a bad hack.
13267 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13268 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13269 cp "$export_symbols" "$output_objdir/$soname.def";
13270 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13271 else
13272 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13273 fi~
13274 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13275 linknames='
13276 # The linker will not automatically build a static lib if we build a DLL.
13277 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13278 enable_shared_with_static_runtimes=yes
13279 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13281 # Don't use ranlib
13282 old_postinstall_cmds='chmod 644 $oldlib'
13283 postlink_cmds='lt_outputfile="@OUTPUT@"~
13284 lt_tool_outputfile="@TOOL_OUTPUT@"~
13285 case $lt_outputfile in
13286 *.exe|*.EXE) ;;
13287 *)
13288 lt_outputfile=$lt_outputfile.exe
13289 lt_tool_outputfile=$lt_tool_outputfile.exe
13290 ;;
13291 esac~
13292 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13293 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13294 $RM "$lt_outputfile.manifest";
13295 fi'
13296 ;;
13297 *)
13298 # Assume MSVC wrapper
13299 hardcode_libdir_flag_spec=' '
13300 allow_undefined_flag=unsupported
13301 # Tell ltmain to make .lib files, not .a files.
13302 libext=lib
13303 # Tell ltmain to make .dll files, not .so files.
13304 shrext_cmds=.dll
13305 # FIXME: Setting linknames here is a bad hack.
13306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13307 # The linker will automatically build a .lib file if we build a DLL.
13308 old_archive_from_new_cmds='true'
13309 # FIXME: Should let the user specify the lib program.
13310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13311 enable_shared_with_static_runtimes=yes
13312 ;;
13313 esac
13314 ;;
13315
13316 darwin* | rhapsody*)
13317
13318
13319 archive_cmds_need_lc=no
13320 hardcode_direct=no
13321 hardcode_automatic=yes
13322 hardcode_shlibpath_var=unsupported
13323 if test yes = "$lt_cv_ld_force_load"; then
13324 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\"`'
13325
13326 else
13327 whole_archive_flag_spec=''
13328 fi
13329 link_all_deplibs=yes
13330 allow_undefined_flag=$_lt_dar_allow_undefined
13331 case $cc_basename in
13332 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13333 *) _lt_dar_can_shared=$GCC ;;
13334 esac
13335 if test yes = "$_lt_dar_can_shared"; then
13336 output_verbose_link_cmd=func_echo_all
13337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13339 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"
13340 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"
13341
13342 else
13343 ld_shlibs=no
13344 fi
13345
13346 ;;
13347
13348 dgux*)
13349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13350 hardcode_libdir_flag_spec='-L$libdir'
13351 hardcode_shlibpath_var=no
13352 ;;
13353
13354 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13355 # support. Future versions do this automatically, but an explicit c++rt0.o
13356 # does not break anything, and helps significantly (at the cost of a little
13357 # extra space).
13358 freebsd2.2*)
13359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13360 hardcode_libdir_flag_spec='-R$libdir'
13361 hardcode_direct=yes
13362 hardcode_shlibpath_var=no
13363 ;;
13364
13365 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13366 freebsd2.*)
13367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13368 hardcode_direct=yes
13369 hardcode_minus_L=yes
13370 hardcode_shlibpath_var=no
13371 ;;
13372
13373 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13374 freebsd* | dragonfly*)
13375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13376 hardcode_libdir_flag_spec='-R$libdir'
13377 hardcode_direct=yes
13378 hardcode_shlibpath_var=no
13379 ;;
13380
13381 hpux9*)
13382 if test yes = "$GCC"; then
13383 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'
13384 else
13385 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'
13386 fi
13387 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13388 hardcode_libdir_separator=:
13389 hardcode_direct=yes
13390
13391 # hardcode_minus_L: Not really in the search PATH,
13392 # but as the default location of the library.
13393 hardcode_minus_L=yes
13394 export_dynamic_flag_spec='$wl-E'
13395 ;;
13396
13397 hpux10*)
13398 if test yes,no = "$GCC,$with_gnu_ld"; then
13399 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13400 else
13401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13402 fi
13403 if test no = "$with_gnu_ld"; then
13404 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13405 hardcode_libdir_separator=:
13406 hardcode_direct=yes
13407 hardcode_direct_absolute=yes
13408 export_dynamic_flag_spec='$wl-E'
13409 # hardcode_minus_L: Not really in the search PATH,
13410 # but as the default location of the library.
13411 hardcode_minus_L=yes
13412 fi
13413 ;;
13414
13415 hpux11*)
13416 if test yes,no = "$GCC,$with_gnu_ld"; then
13417 case $host_cpu in
13418 hppa*64*)
13419 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 ;;
13421 ia64*)
13422 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13423 ;;
13424 *)
13425 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13426 ;;
13427 esac
13428 else
13429 case $host_cpu in
13430 hppa*64*)
13431 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 ;;
13433 ia64*)
13434 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13435 ;;
13436 *)
13437
13438 # Older versions of the 11.00 compiler do not understand -b yet
13439 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13441$as_echo_n "checking if $CC understands -b... " >&6; }
13442if ${lt_cv_prog_compiler__b+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444else
13445 lt_cv_prog_compiler__b=no
13446 save_LDFLAGS=$LDFLAGS
13447 LDFLAGS="$LDFLAGS -b"
13448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13450 # The linker can only warn and ignore the option if not recognized
13451 # So say no if there are warnings
13452 if test -s conftest.err; then
13453 # Append any errors to the config.log.
13454 cat conftest.err 1>&5
13455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13457 if diff conftest.exp conftest.er2 >/dev/null; then
13458 lt_cv_prog_compiler__b=yes
13459 fi
13460 else
13461 lt_cv_prog_compiler__b=yes
13462 fi
13463 fi
13464 $RM -r conftest*
13465 LDFLAGS=$save_LDFLAGS
13466
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13469$as_echo "$lt_cv_prog_compiler__b" >&6; }
13470
13471if test yes = "$lt_cv_prog_compiler__b"; then
13472 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13473else
13474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13475fi
13476
13477 ;;
13478 esac
13479 fi
13480 if test no = "$with_gnu_ld"; then
13481 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13482 hardcode_libdir_separator=:
13483
13484 case $host_cpu in
13485 hppa*64*|ia64*)
13486 hardcode_direct=no
13487 hardcode_shlibpath_var=no
13488 ;;
13489 *)
13490 hardcode_direct=yes
13491 hardcode_direct_absolute=yes
13492 export_dynamic_flag_spec='$wl-E'
13493
13494 # hardcode_minus_L: Not really in the search PATH,
13495 # but as the default location of the library.
13496 hardcode_minus_L=yes
13497 ;;
13498 esac
13499 fi
13500 ;;
13501
13502 irix5* | irix6* | nonstopux*)
13503 if test yes = "$GCC"; then
13504 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'
13505 # Try to use the -exported_symbol ld option, if it does not
13506 # work, assume that -exports_file does not work either and
13507 # implicitly export all symbols.
13508 # This should be the same for all languages, so no per-tag cache variable.
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13510$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13511if ${lt_cv_irix_exported_symbol+:} false; then :
13512 $as_echo_n "(cached) " >&6
13513else
13514 save_LDFLAGS=$LDFLAGS
13515 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h. */
13518int foo (void) { return 0; }
13519_ACEOF
13520if ac_fn_c_try_link "$LINENO"; then :
13521 lt_cv_irix_exported_symbol=yes
13522else
13523 lt_cv_irix_exported_symbol=no
13524fi
13525rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 LDFLAGS=$save_LDFLAGS
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13530$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13531 if test yes = "$lt_cv_irix_exported_symbol"; then
13532 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'
13533 fi
13534 link_all_deplibs=no
13535 else
13536 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'
13537 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'
13538 fi
13539 archive_cmds_need_lc='no'
13540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13541 hardcode_libdir_separator=:
13542 inherit_rpath=yes
13543 link_all_deplibs=yes
13544 ;;
13545
13546 linux*)
13547 case $cc_basename in
13548 tcc*)
13549 # Fabrice Bellard et al's Tiny C Compiler
13550 ld_shlibs=yes
13551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13552 ;;
13553 esac
13554 ;;
13555
13556 netbsd* | netbsdelf*-gnu)
13557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13559 else
13560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13561 fi
13562 hardcode_libdir_flag_spec='-R$libdir'
13563 hardcode_direct=yes
13564 hardcode_shlibpath_var=no
13565 ;;
13566
13567 newsos6)
13568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13569 hardcode_direct=yes
13570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13571 hardcode_libdir_separator=:
13572 hardcode_shlibpath_var=no
13573 ;;
13574
13575 *nto* | *qnx*)
13576 ;;
13577
13578 openbsd* | bitrig*)
13579 if test -f /usr/libexec/ld.so; then
13580 hardcode_direct=yes
13581 hardcode_shlibpath_var=no
13582 hardcode_direct_absolute=yes
13583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13586 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13587 export_dynamic_flag_spec='$wl-E'
13588 else
13589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13590 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13591 fi
13592 else
13593 ld_shlibs=no
13594 fi
13595 ;;
13596
13597 os2*)
13598 hardcode_libdir_flag_spec='-L$libdir'
13599 hardcode_minus_L=yes
13600 allow_undefined_flag=unsupported
13601 shrext_cmds=.dll
13602 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13603 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13604 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13605 $ECHO EXPORTS >> $output_objdir/$libname.def~
13606 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13607 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13608 emximp -o $lib $output_objdir/$libname.def'
13609 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13610 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13611 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13612 $ECHO EXPORTS >> $output_objdir/$libname.def~
13613 prefix_cmds="$SED"~
13614 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13615 prefix_cmds="$prefix_cmds -e 1d";
13616 fi~
13617 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13618 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13620 emximp -o $lib $output_objdir/$libname.def'
13621 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13622 enable_shared_with_static_runtimes=yes
13623 ;;
13624
13625 osf3*)
13626 if test yes = "$GCC"; then
13627 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13628 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'
13629 else
13630 allow_undefined_flag=' -expect_unresolved \*'
13631 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'
13632 fi
13633 archive_cmds_need_lc='no'
13634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13635 hardcode_libdir_separator=:
13636 ;;
13637
13638 osf4* | osf5*) # as osf3* with the addition of -msym flag
13639 if test yes = "$GCC"; then
13640 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13641 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'
13642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13643 else
13644 allow_undefined_flag=' -expect_unresolved \*'
13645 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'
13646 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~
13647 $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'
13648
13649 # Both c and cxx compiler support -rpath directly
13650 hardcode_libdir_flag_spec='-rpath $libdir'
13651 fi
13652 archive_cmds_need_lc='no'
13653 hardcode_libdir_separator=:
13654 ;;
13655
13656 solaris*)
13657 no_undefined_flag=' -z defs'
13658 if test yes = "$GCC"; then
13659 wlarc='$wl'
13660 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13662 $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'
13663 else
13664 case `$CC -V 2>&1` in
13665 *"Compilers 5.0"*)
13666 wlarc=''
13667 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13669 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13670 ;;
13671 *)
13672 wlarc='$wl'
13673 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13675 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13676 ;;
13677 esac
13678 fi
13679 hardcode_libdir_flag_spec='-R$libdir'
13680 hardcode_shlibpath_var=no
13681 case $host_os in
13682 solaris2.[0-5] | solaris2.[0-5].*) ;;
13683 *)
13684 # The compiler driver will combine and reorder linker options,
13685 # but understands '-z linker_flag'. GCC discards it without '$wl',
13686 # but is careful enough not to reorder.
13687 # Supported since Solaris 2.6 (maybe 2.5.1?)
13688 if test yes = "$GCC"; then
13689 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13690 else
13691 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13692 fi
13693 ;;
13694 esac
13695 link_all_deplibs=yes
13696 ;;
13697
13698 sunos4*)
13699 if test sequent = "$host_vendor"; then
13700 # Use $CC to link under sequent, because it throws in some extra .o
13701 # files that make .init and .fini sections work.
13702 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13703 else
13704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13705 fi
13706 hardcode_libdir_flag_spec='-L$libdir'
13707 hardcode_direct=yes
13708 hardcode_minus_L=yes
13709 hardcode_shlibpath_var=no
13710 ;;
13711
13712 sysv4)
13713 case $host_vendor in
13714 sni)
13715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716 hardcode_direct=yes # is this really true???
13717 ;;
13718 siemens)
13719 ## LD is ld it makes a PLAMLIB
13720 ## CC just makes a GrossModule.
13721 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13722 reload_cmds='$CC -r -o $output$reload_objs'
13723 hardcode_direct=no
13724 ;;
13725 motorola)
13726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13727 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13728 ;;
13729 esac
13730 runpath_var='LD_RUN_PATH'
13731 hardcode_shlibpath_var=no
13732 ;;
13733
13734 sysv4.3*)
13735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 hardcode_shlibpath_var=no
13737 export_dynamic_flag_spec='-Bexport'
13738 ;;
13739
13740 sysv4*MP*)
13741 if test -d /usr/nec; then
13742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13743 hardcode_shlibpath_var=no
13744 runpath_var=LD_RUN_PATH
13745 hardcode_runpath_var=yes
13746 ld_shlibs=yes
13747 fi
13748 ;;
13749
13750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13751 no_undefined_flag='$wl-z,text'
13752 archive_cmds_need_lc=no
13753 hardcode_shlibpath_var=no
13754 runpath_var='LD_RUN_PATH'
13755
13756 if test yes = "$GCC"; then
13757 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 else
13760 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 fi
13763 ;;
13764
13765 sysv5* | sco3.2v5* | sco5v6*)
13766 # Note: We CANNOT use -z defs as we might desire, because we do not
13767 # link with -lc, and that would cause any symbols used from libc to
13768 # always be unresolved, which means just about no library would
13769 # ever link correctly. If we're not using GNU ld we use -z text
13770 # though, which does catch some bad symbols but isn't as heavy-handed
13771 # as -z defs.
13772 no_undefined_flag='$wl-z,text'
13773 allow_undefined_flag='$wl-z,nodefs'
13774 archive_cmds_need_lc=no
13775 hardcode_shlibpath_var=no
13776 hardcode_libdir_flag_spec='$wl-R,$libdir'
13777 hardcode_libdir_separator=':'
13778 link_all_deplibs=yes
13779 export_dynamic_flag_spec='$wl-Bexport'
13780 runpath_var='LD_RUN_PATH'
13781
13782 if test yes = "$GCC"; then
13783 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 else
13786 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 fi
13789 ;;
13790
13791 uts4*)
13792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13793 hardcode_libdir_flag_spec='-L$libdir'
13794 hardcode_shlibpath_var=no
13795 ;;
13796
13797 *)
13798 ld_shlibs=no
13799 ;;
13800 esac
13801
13802 if test sni = "$host_vendor"; then
13803 case $host in
13804 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13805 export_dynamic_flag_spec='$wl-Blargedynsym'
13806 ;;
13807 esac
13808 fi
13809 fi
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13812$as_echo "$ld_shlibs" >&6; }
13813test no = "$ld_shlibs" && can_build_shared=no
13814
13815with_gnu_ld=$with_gnu_ld
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831#
13832# Do we need to explicitly link libc?
13833#
13834case "x$archive_cmds_need_lc" in
13835x|xyes)
13836 # Assume -lc should be added
13837 archive_cmds_need_lc=yes
13838
13839 if test yes,yes = "$GCC,$enable_shared"; then
13840 case $archive_cmds in
13841 *'~'*)
13842 # FIXME: we may have to deal with multi-command sequences.
13843 ;;
13844 '$CC '*)
13845 # Test whether the compiler implicitly links with -lc since on some
13846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13847 # to ld, don't add -lc before -lgcc.
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13849$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13850if ${lt_cv_archive_cmds_need_lc+:} false; then :
13851 $as_echo_n "(cached) " >&6
13852else
13853 $RM conftest*
13854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13855
13856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13857 (eval $ac_compile) 2>&5
13858 ac_status=$?
13859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860 test $ac_status = 0; } 2>conftest.err; then
13861 soname=conftest
13862 lib=conftest
13863 libobjs=conftest.$ac_objext
13864 deplibs=
13865 wl=$lt_prog_compiler_wl
13866 pic_flag=$lt_prog_compiler_pic
13867 compiler_flags=-v
13868 linker_flags=-v
13869 verstring=
13870 output_objdir=.
13871 libname=conftest
13872 lt_save_allow_undefined_flag=$allow_undefined_flag
13873 allow_undefined_flag=
13874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13875 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13876 ac_status=$?
13877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878 test $ac_status = 0; }
13879 then
13880 lt_cv_archive_cmds_need_lc=no
13881 else
13882 lt_cv_archive_cmds_need_lc=yes
13883 fi
13884 allow_undefined_flag=$lt_save_allow_undefined_flag
13885 else
13886 cat conftest.err 1>&5
13887 fi
13888 $RM conftest*
13889
13890fi
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13892$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13893 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13894 ;;
13895 esac
13896 fi
13897 ;;
13898esac
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
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14052$as_echo_n "checking dynamic linker characteristics... " >&6; }
14053
14054if test yes = "$GCC"; then
14055 case $host_os in
14056 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14057 *) lt_awk_arg='/^libraries:/' ;;
14058 esac
14059 case $host_os in
14060 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14061 *) lt_sed_strip_eq='s|=/|/|g' ;;
14062 esac
14063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14064 case $lt_search_path_spec in
14065 *\;*)
14066 # if the path contains ";" then we assume it to be the separator
14067 # otherwise default to the standard path separator (i.e. ":") - it is
14068 # assumed that no part of a normal pathname contains ";" but that should
14069 # okay in the real world where ";" in dirpaths is itself problematic.
14070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14071 ;;
14072 *)
14073 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14074 ;;
14075 esac
14076 # Ok, now we have the path, separated by spaces, we can step through it
14077 # and add multilib dir if necessary...
14078 lt_tmp_lt_search_path_spec=
14079 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14080 # ...but if some path component already ends with the multilib dir we assume
14081 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14082 case "$lt_multi_os_dir; $lt_search_path_spec " in
14083 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14084 lt_multi_os_dir=
14085 ;;
14086 esac
14087 for lt_sys_path in $lt_search_path_spec; do
14088 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14090 elif test -n "$lt_multi_os_dir"; then
14091 test -d "$lt_sys_path" && \
14092 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14093 fi
14094 done
14095 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14096BEGIN {RS = " "; FS = "/|\n";} {
14097 lt_foo = "";
14098 lt_count = 0;
14099 for (lt_i = NF; lt_i > 0; lt_i--) {
14100 if ($lt_i != "" && $lt_i != ".") {
14101 if ($lt_i == "..") {
14102 lt_count++;
14103 } else {
14104 if (lt_count == 0) {
14105 lt_foo = "/" $lt_i lt_foo;
14106 } else {
14107 lt_count--;
14108 }
14109 }
14110 }
14111 }
14112 if (lt_foo != "") { lt_freq[lt_foo]++; }
14113 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14114}'`
14115 # AWK program above erroneously prepends '/' to C:/dos/paths
14116 # for these hosts.
14117 case $host_os in
14118 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14119 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14120 esac
14121 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14122else
14123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14124fi
14125library_names_spec=
14126libname_spec='lib$name'
14127soname_spec=
14128shrext_cmds=.so
14129postinstall_cmds=
14130postuninstall_cmds=
14131finish_cmds=
14132finish_eval=
14133shlibpath_var=
14134shlibpath_overrides_runpath=unknown
14135version_type=none
14136dynamic_linker="$host_os ld.so"
14137sys_lib_dlsearch_path_spec="/lib /usr/lib"
14138need_lib_prefix=unknown
14139hardcode_into_libs=no
14140
14141# when you set need_version to no, make sure it does not cause -set_version
14142# flags to be left without arguments
14143need_version=unknown
14144
14145
14146
14147case $host_os in
14148aix3*)
14149 version_type=linux # correct to gnu/linux during the next big refactor
14150 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14151 shlibpath_var=LIBPATH
14152
14153 # AIX 3 has no versioning support, so we append a major version to the name.
14154 soname_spec='$libname$release$shared_ext$major'
14155 ;;
14156
14157aix[4-9]*)
14158 version_type=linux # correct to gnu/linux during the next big refactor
14159 need_lib_prefix=no
14160 need_version=no
14161 hardcode_into_libs=yes
14162 if test ia64 = "$host_cpu"; then
14163 # AIX 5 supports IA64
14164 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14165 shlibpath_var=LD_LIBRARY_PATH
14166 else
14167 # With GCC up to 2.95.x, collect2 would create an import file
14168 # for dependence libraries. The import file would start with
14169 # the line '#! .'. This would cause the generated library to
14170 # depend on '.', always an invalid library. This was fixed in
14171 # development snapshots of GCC prior to 3.0.
14172 case $host_os in
14173 aix4 | aix4.[01] | aix4.[01].*)
14174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14175 echo ' yes '
14176 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14177 :
14178 else
14179 can_build_shared=no
14180 fi
14181 ;;
14182 esac
14183 # Using Import Files as archive members, it is possible to support
14184 # filename-based versioning of shared library archives on AIX. While
14185 # this would work for both with and without runtime linking, it will
14186 # prevent static linking of such archives. So we do filename-based
14187 # shared library versioning with .so extension only, which is used
14188 # when both runtime linking and shared linking is enabled.
14189 # Unfortunately, runtime linking may impact performance, so we do
14190 # not want this to be the default eventually. Also, we use the
14191 # versioned .so libs for executables only if there is the -brtl
14192 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14193 # To allow for filename-based versioning support, we need to create
14194 # libNAME.so.V as an archive file, containing:
14195 # *) an Import File, referring to the versioned filename of the
14196 # archive as well as the shared archive member, telling the
14197 # bitwidth (32 or 64) of that shared object, and providing the
14198 # list of exported symbols of that shared object, eventually
14199 # decorated with the 'weak' keyword
14200 # *) the shared object with the F_LOADONLY flag set, to really avoid
14201 # it being seen by the linker.
14202 # At run time we better use the real file rather than another symlink,
14203 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14204
14205 case $with_aix_soname,$aix_use_runtimelinking in
14206 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14207 # soname into executable. Probably we can add versioning support to
14208 # collect2, so additional links can be useful in future.
14209 aix,yes) # traditional libtool
14210 dynamic_linker='AIX unversionable lib.so'
14211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14212 # instead of lib<name>.a to let people know that these are not
14213 # typical AIX shared libraries.
14214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14215 ;;
14216 aix,no) # traditional AIX only
14217 dynamic_linker='AIX lib.a(lib.so.V)'
14218 # We preserve .a as extension for shared libraries through AIX4.2
14219 # and later when we are not doing run time linking.
14220 library_names_spec='$libname$release.a $libname.a'
14221 soname_spec='$libname$release$shared_ext$major'
14222 ;;
14223 svr4,*) # full svr4 only
14224 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14225 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14226 # We do not specify a path in Import Files, so LIBPATH fires.
14227 shlibpath_overrides_runpath=yes
14228 ;;
14229 *,yes) # both, prefer svr4
14230 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14231 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14232 # unpreferred sharedlib libNAME.a needs extra handling
14233 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"'
14234 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"'
14235 # We do not specify a path in Import Files, so LIBPATH fires.
14236 shlibpath_overrides_runpath=yes
14237 ;;
14238 *,no) # both, prefer aix
14239 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14240 library_names_spec='$libname$release.a $libname.a'
14241 soname_spec='$libname$release$shared_ext$major'
14242 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14243 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)'
14244 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"'
14245 ;;
14246 esac
14247 shlibpath_var=LIBPATH
14248 fi
14249 ;;
14250
14251amigaos*)
14252 case $host_cpu in
14253 powerpc)
14254 # Since July 2007 AmigaOS4 officially supports .so libraries.
14255 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14257 ;;
14258 m68k)
14259 library_names_spec='$libname.ixlibrary $libname.a'
14260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14261 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'
14262 ;;
14263 esac
14264 ;;
14265
14266beos*)
14267 library_names_spec='$libname$shared_ext'
14268 dynamic_linker="$host_os ld.so"
14269 shlibpath_var=LIBRARY_PATH
14270 ;;
14271
14272bsdi[45]*)
14273 version_type=linux # correct to gnu/linux during the next big refactor
14274 need_version=no
14275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14276 soname_spec='$libname$release$shared_ext$major'
14277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14278 shlibpath_var=LD_LIBRARY_PATH
14279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14281 # the default ld.so.conf also contains /usr/contrib/lib and
14282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14283 # libtool to hard-code these into programs
14284 ;;
14285
14286cygwin* | mingw* | pw32* | cegcc*)
14287 version_type=windows
14288 shrext_cmds=.dll
14289 need_version=no
14290 need_lib_prefix=no
14291
14292 case $GCC,$cc_basename in
14293 yes,*)
14294 # gcc
14295 library_names_spec='$libname.dll.a'
14296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14297 postinstall_cmds='base_file=`basename \$file`~
14298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14299 dldir=$destdir/`dirname \$dlpath`~
14300 test -d \$dldir || mkdir -p \$dldir~
14301 $install_prog $dir/$dlname \$dldir/$dlname~
14302 chmod a+x \$dldir/$dlname~
14303 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14304 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14305 fi'
14306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14307 dlpath=$dir/\$dldll~
14308 $RM \$dlpath'
14309 shlibpath_overrides_runpath=yes
14310
14311 case $host_os in
14312 cygwin*)
14313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14314 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14315
14316 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14317 ;;
14318 mingw* | cegcc*)
14319 # MinGW DLLs use traditional 'lib' prefix
14320 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14321 ;;
14322 pw32*)
14323 # pw32 DLLs use 'pw' prefix rather than 'lib'
14324 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14325 ;;
14326 esac
14327 dynamic_linker='Win32 ld.exe'
14328 ;;
14329
14330 *,cl*)
14331 # Native MSVC
14332 libname_spec='$name'
14333 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14334 library_names_spec='$libname.dll.lib'
14335
14336 case $build_os in
14337 mingw*)
14338 sys_lib_search_path_spec=
14339 lt_save_ifs=$IFS
14340 IFS=';'
14341 for lt_path in $LIB
14342 do
14343 IFS=$lt_save_ifs
14344 # Let DOS variable expansion print the short 8.3 style file name.
14345 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14346 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14347 done
14348 IFS=$lt_save_ifs
14349 # Convert to MSYS style.
14350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14351 ;;
14352 cygwin*)
14353 # Convert to unix form, then to dos form, then back to unix form
14354 # but this time dos style (no spaces!) so that the unix form looks
14355 # like /cygdrive/c/PROGRA~1:/cygdr...
14356 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14357 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14358 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14359 ;;
14360 *)
14361 sys_lib_search_path_spec=$LIB
14362 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14363 # It is most probably a Windows format PATH.
14364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14365 else
14366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14367 fi
14368 # FIXME: find the short name or the path components, as spaces are
14369 # common. (e.g. "Program Files" -> "PROGRA~1")
14370 ;;
14371 esac
14372
14373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14374 postinstall_cmds='base_file=`basename \$file`~
14375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14376 dldir=$destdir/`dirname \$dlpath`~
14377 test -d \$dldir || mkdir -p \$dldir~
14378 $install_prog $dir/$dlname \$dldir/$dlname'
14379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14380 dlpath=$dir/\$dldll~
14381 $RM \$dlpath'
14382 shlibpath_overrides_runpath=yes
14383 dynamic_linker='Win32 link.exe'
14384 ;;
14385
14386 *)
14387 # Assume MSVC wrapper
14388 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14389 dynamic_linker='Win32 ld.exe'
14390 ;;
14391 esac
14392 # FIXME: first we should search . and the directory the executable is in
14393 shlibpath_var=PATH
14394 ;;
14395
14396darwin* | rhapsody*)
14397 dynamic_linker="$host_os dyld"
14398 version_type=darwin
14399 need_lib_prefix=no
14400 need_version=no
14401 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14402 soname_spec='$libname$release$major$shared_ext'
14403 shlibpath_overrides_runpath=yes
14404 shlibpath_var=DYLD_LIBRARY_PATH
14405 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14406
14407 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14409 ;;
14410
14411dgux*)
14412 version_type=linux # correct to gnu/linux during the next big refactor
14413 need_lib_prefix=no
14414 need_version=no
14415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14416 soname_spec='$libname$release$shared_ext$major'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 ;;
14419
14420freebsd* | dragonfly*)
14421 # DragonFly does not have aout. When/if they implement a new
14422 # versioning mechanism, adjust this.
14423 if test -x /usr/bin/objformat; then
14424 objformat=`/usr/bin/objformat`
14425 else
14426 case $host_os in
14427 freebsd[23].*) objformat=aout ;;
14428 *) objformat=elf ;;
14429 esac
14430 fi
14431 version_type=freebsd-$objformat
14432 case $version_type in
14433 freebsd-elf*)
14434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14435 soname_spec='$libname$release$shared_ext$major'
14436 need_version=no
14437 need_lib_prefix=no
14438 ;;
14439 freebsd-*)
14440 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14441 need_version=yes
14442 ;;
14443 esac
14444 shlibpath_var=LD_LIBRARY_PATH
14445 case $host_os in
14446 freebsd2.*)
14447 shlibpath_overrides_runpath=yes
14448 ;;
14449 freebsd3.[01]* | freebsdelf3.[01]*)
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14452 ;;
14453 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14454 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14455 shlibpath_overrides_runpath=no
14456 hardcode_into_libs=yes
14457 ;;
14458 *) # from 4.6 on, and DragonFly
14459 shlibpath_overrides_runpath=yes
14460 hardcode_into_libs=yes
14461 ;;
14462 esac
14463 ;;
14464
14465haiku*)
14466 version_type=linux # correct to gnu/linux during the next big refactor
14467 need_lib_prefix=no
14468 need_version=no
14469 dynamic_linker="$host_os runtime_loader"
14470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14471 soname_spec='$libname$release$shared_ext$major'
14472 shlibpath_var=LIBRARY_PATH
14473 shlibpath_overrides_runpath=no
14474 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14475 hardcode_into_libs=yes
14476 ;;
14477
14478hpux9* | hpux10* | hpux11*)
14479 # Give a soname corresponding to the major version so that dld.sl refuses to
14480 # link against other versions.
14481 version_type=sunos
14482 need_lib_prefix=no
14483 need_version=no
14484 case $host_cpu in
14485 ia64*)
14486 shrext_cmds='.so'
14487 hardcode_into_libs=yes
14488 dynamic_linker="$host_os dld.so"
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14492 soname_spec='$libname$release$shared_ext$major'
14493 if test 32 = "$HPUX_IA64_MODE"; then
14494 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14495 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14496 else
14497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14498 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14499 fi
14500 ;;
14501 hppa*64*)
14502 shrext_cmds='.sl'
14503 hardcode_into_libs=yes
14504 dynamic_linker="$host_os dld.sl"
14505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14508 soname_spec='$libname$release$shared_ext$major'
14509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14511 ;;
14512 *)
14513 shrext_cmds='.sl'
14514 dynamic_linker="$host_os dld.sl"
14515 shlibpath_var=SHLIB_PATH
14516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14518 soname_spec='$libname$release$shared_ext$major'
14519 ;;
14520 esac
14521 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14522 postinstall_cmds='chmod 555 $lib'
14523 # or fails outright, so override atomically:
14524 install_override_mode=555
14525 ;;
14526
14527interix[3-9]*)
14528 version_type=linux # correct to gnu/linux during the next big refactor
14529 need_lib_prefix=no
14530 need_version=no
14531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14532 soname_spec='$libname$release$shared_ext$major'
14533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=no
14536 hardcode_into_libs=yes
14537 ;;
14538
14539irix5* | irix6* | nonstopux*)
14540 case $host_os in
14541 nonstopux*) version_type=nonstopux ;;
14542 *)
14543 if test yes = "$lt_cv_prog_gnu_ld"; then
14544 version_type=linux # correct to gnu/linux during the next big refactor
14545 else
14546 version_type=irix
14547 fi ;;
14548 esac
14549 need_lib_prefix=no
14550 need_version=no
14551 soname_spec='$libname$release$shared_ext$major'
14552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14553 case $host_os in
14554 irix5* | nonstopux*)
14555 libsuff= shlibsuff=
14556 ;;
14557 *)
14558 case $LD in # libtool.m4 will add one of these switches to LD
14559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560 libsuff= shlibsuff= libmagic=32-bit;;
14561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562 libsuff=32 shlibsuff=N32 libmagic=N32;;
14563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565 *) libsuff= shlibsuff= libmagic=never-match;;
14566 esac
14567 ;;
14568 esac
14569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570 shlibpath_overrides_runpath=no
14571 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14572 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14573 hardcode_into_libs=yes
14574 ;;
14575
14576# No shared lib support for Linux oldld, aout, or coff.
14577linux*oldld* | linux*aout* | linux*coff*)
14578 dynamic_linker=no
14579 ;;
14580
14581linux*android*)
14582 version_type=none # Android doesn't support versioned libraries.
14583 need_lib_prefix=no
14584 need_version=no
14585 library_names_spec='$libname$release$shared_ext'
14586 soname_spec='$libname$release$shared_ext'
14587 finish_cmds=
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=yes
14590
14591 # This implies no fast_install, which is unacceptable.
14592 # Some rework will be needed to allow for fast_install
14593 # before this can be enabled.
14594 hardcode_into_libs=yes
14595
14596 dynamic_linker='Android linker'
14597 # Don't embed -rpath directories since the linker doesn't support them.
14598 hardcode_libdir_flag_spec='-L$libdir'
14599 ;;
14600
14601# This must be glibc/ELF.
14602linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14603 version_type=linux # correct to gnu/linux during the next big refactor
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14607 soname_spec='$libname$release$shared_ext$major'
14608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=no
14611
14612 # Some binutils ld are patched to set DT_RUNPATH
14613 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14614 $as_echo_n "(cached) " >&6
14615else
14616 lt_cv_shlibpath_overrides_runpath=no
14617 save_LDFLAGS=$LDFLAGS
14618 save_libdir=$libdir
14619 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14620 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h. */
14623
14624int main (void)
14625{
14626
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631if ac_fn_c_try_link "$LINENO"; then :
14632 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14633 lt_cv_shlibpath_overrides_runpath=yes
14634fi
14635fi
14636rm -f core conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LDFLAGS=$save_LDFLAGS
14639 libdir=$save_libdir
14640
14641fi
14642
14643 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14644
14645 # This implies no fast_install, which is unacceptable.
14646 # Some rework will be needed to allow for fast_install
14647 # before this can be enabled.
14648 hardcode_into_libs=yes
14649
14650 # Ideally, we could use ldconfig to report *all* directores which are
14651 # searched for libraries, however this is still not possible. Aside from not
14652 # being certain /sbin/ldconfig is available, command
14653 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14654 # even though it is searched at run-time. Try to do the best guess by
14655 # appending ld.so.conf contents (and includes) to the search path.
14656 if test -f /etc/ld.so.conf; then
14657 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' ' '`
14658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14659 fi
14660
14661 # We used to test for /lib/ld.so.1 and disable shared libraries on
14662 # powerpc, because MkLinux only supported shared libraries with the
14663 # GNU dynamic linker. Since this was broken with cross compilers,
14664 # most powerpc-linux boxes support dynamic linking these days and
14665 # people can always --disable-shared, the test was removed, and we
14666 # assume the GNU/Linux dynamic linker is in use.
14667 dynamic_linker='GNU/Linux ld.so'
14668 ;;
14669
14670netbsdelf*-gnu)
14671 version_type=linux
14672 need_lib_prefix=no
14673 need_version=no
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 shlibpath_overrides_runpath=no
14678 hardcode_into_libs=yes
14679 dynamic_linker='NetBSD ld.elf_so'
14680 ;;
14681
14682netbsd*)
14683 version_type=sunos
14684 need_lib_prefix=no
14685 need_version=no
14686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14687 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14689 dynamic_linker='NetBSD (a.out) ld.so'
14690 else
14691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14692 soname_spec='$libname$release$shared_ext$major'
14693 dynamic_linker='NetBSD ld.elf_so'
14694 fi
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=yes
14697 hardcode_into_libs=yes
14698 ;;
14699
14700newsos6)
14701 version_type=linux # correct to gnu/linux during the next big refactor
14702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 shlibpath_overrides_runpath=yes
14705 ;;
14706
14707*nto* | *qnx*)
14708 version_type=qnx
14709 need_lib_prefix=no
14710 need_version=no
14711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14712 soname_spec='$libname$release$shared_ext$major'
14713 shlibpath_var=LD_LIBRARY_PATH
14714 shlibpath_overrides_runpath=no
14715 hardcode_into_libs=yes
14716 dynamic_linker='ldqnx.so'
14717 ;;
14718
14719openbsd* | bitrig*)
14720 version_type=sunos
14721 sys_lib_dlsearch_path_spec=/usr/lib
14722 need_lib_prefix=no
14723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14724 need_version=no
14725 else
14726 need_version=yes
14727 fi
14728 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 shlibpath_overrides_runpath=yes
14732 ;;
14733
14734os2*)
14735 libname_spec='$name'
14736 version_type=windows
14737 shrext_cmds=.dll
14738 need_version=no
14739 need_lib_prefix=no
14740 # OS/2 can only load a DLL with a base name of 8 characters or less.
14741 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14742 v=$($ECHO $release$versuffix | tr -d .-);
14743 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14744 $ECHO $n$v`$shared_ext'
14745 library_names_spec='${libname}_dll.$libext'
14746 dynamic_linker='OS/2 ld.exe'
14747 shlibpath_var=BEGINLIBPATH
14748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14750 postinstall_cmds='base_file=`basename \$file`~
14751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14752 dldir=$destdir/`dirname \$dlpath`~
14753 test -d \$dldir || mkdir -p \$dldir~
14754 $install_prog $dir/$dlname \$dldir/$dlname~
14755 chmod a+x \$dldir/$dlname~
14756 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14757 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14758 fi'
14759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14760 dlpath=$dir/\$dldll~
14761 $RM \$dlpath'
14762 ;;
14763
14764osf3* | osf4* | osf5*)
14765 version_type=osf
14766 need_lib_prefix=no
14767 need_version=no
14768 soname_spec='$libname$release$shared_ext$major'
14769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14773 ;;
14774
14775rdos*)
14776 dynamic_linker=no
14777 ;;
14778
14779solaris*)
14780 version_type=linux # correct to gnu/linux during the next big refactor
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14784 soname_spec='$libname$release$shared_ext$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=yes
14787 hardcode_into_libs=yes
14788 # ldd complains unless libraries are executable
14789 postinstall_cmds='chmod +x $lib'
14790 ;;
14791
14792sunos4*)
14793 version_type=sunos
14794 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 shlibpath_overrides_runpath=yes
14798 if test yes = "$with_gnu_ld"; then
14799 need_lib_prefix=no
14800 fi
14801 need_version=yes
14802 ;;
14803
14804sysv4 | sysv4.3*)
14805 version_type=linux # correct to gnu/linux during the next big refactor
14806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14807 soname_spec='$libname$release$shared_ext$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 case $host_vendor in
14810 sni)
14811 shlibpath_overrides_runpath=no
14812 need_lib_prefix=no
14813 runpath_var=LD_RUN_PATH
14814 ;;
14815 siemens)
14816 need_lib_prefix=no
14817 ;;
14818 motorola)
14819 need_lib_prefix=no
14820 need_version=no
14821 shlibpath_overrides_runpath=no
14822 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14823 ;;
14824 esac
14825 ;;
14826
14827sysv4*MP*)
14828 if test -d /usr/nec; then
14829 version_type=linux # correct to gnu/linux during the next big refactor
14830 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14831 soname_spec='$libname$shared_ext.$major'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 fi
14834 ;;
14835
14836sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14837 version_type=sco
14838 need_lib_prefix=no
14839 need_version=no
14840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14841 soname_spec='$libname$release$shared_ext$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 hardcode_into_libs=yes
14845 if test yes = "$with_gnu_ld"; then
14846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14847 else
14848 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14849 case $host_os in
14850 sco3.2v5*)
14851 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14852 ;;
14853 esac
14854 fi
14855 sys_lib_dlsearch_path_spec='/usr/lib'
14856 ;;
14857
14858tpf*)
14859 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14860 version_type=linux # correct to gnu/linux during the next big refactor
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=no
14866 hardcode_into_libs=yes
14867 ;;
14868
14869uts4*)
14870 version_type=linux # correct to gnu/linux during the next big refactor
14871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14872 soname_spec='$libname$release$shared_ext$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 ;;
14875
14876*)
14877 dynamic_linker=no
14878 ;;
14879esac
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14881$as_echo "$dynamic_linker" >&6; }
14882test no = "$dynamic_linker" && can_build_shared=no
14883
14884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14885if test yes = "$GCC"; then
14886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14887fi
14888
14889if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14890 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14891fi
14892
14893if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14894 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14895fi
14896
14897# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14898configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14899
14900# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14901func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14902
14903# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14904configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15004hardcode_action=
15005if test -n "$hardcode_libdir_flag_spec" ||
15006 test -n "$runpath_var" ||
15007 test yes = "$hardcode_automatic"; then
15008
15009 # We can hardcode non-existent directories.
15010 if test no != "$hardcode_direct" &&
15011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15012 # have to relink, otherwise we might link with an installed library
15013 # when we should be linking with a yet-to-be-installed one
15014 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15015 test no != "$hardcode_minus_L"; then
15016 # Linking always hardcodes the temporary library directory.
15017 hardcode_action=relink
15018 else
15019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15020 hardcode_action=immediate
15021 fi
15022else
15023 # We cannot hardcode anything, or else we can only hardcode existing
15024 # directories.
15025 hardcode_action=unsupported
15026fi
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15028$as_echo "$hardcode_action" >&6; }
15029
15030if test relink = "$hardcode_action" ||
15031 test yes = "$inherit_rpath"; then
15032 # Fast installation is not supported
15033 enable_fast_install=no
15034elif test yes = "$shlibpath_overrides_runpath" ||
15035 test no = "$enable_shared"; then
15036 # Fast installation is not necessary
15037 enable_fast_install=needless
15038fi
15039
15040
15041
15042
15043
15044
15045 if test yes != "$enable_dlopen"; then
15046 enable_dlopen=unknown
15047 enable_dlopen_self=unknown
15048 enable_dlopen_self_static=unknown
15049else
15050 lt_cv_dlopen=no
15051 lt_cv_dlopen_libs=
15052
15053 case $host_os in
15054 beos*)
15055 lt_cv_dlopen=load_add_on
15056 lt_cv_dlopen_libs=
15057 lt_cv_dlopen_self=yes
15058 ;;
15059
15060 mingw* | pw32* | cegcc*)
15061 lt_cv_dlopen=LoadLibrary
15062 lt_cv_dlopen_libs=
15063 ;;
15064
15065 cygwin*)
15066 lt_cv_dlopen=dlopen
15067 lt_cv_dlopen_libs=
15068 ;;
15069
15070 darwin*)
15071 # if libdl is installed we need to link against it
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15073$as_echo_n "checking for dlopen in -ldl... " >&6; }
15074if ${ac_cv_lib_dl_dlopen+:} false; then :
15075 $as_echo_n "(cached) " >&6
15076else
15077 ac_check_lib_save_LIBS=$LIBS
15078LIBS="-ldl $LIBS"
15079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h. */
15081
15082
15083#ifdef __cplusplus
15084extern "C"
15085#endif
15086char dlopen ();
15087int main (void)
15088{
15089return dlopen ();
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_link "$LINENO"; then :
15095 ac_cv_lib_dl_dlopen=yes
15096else
15097 ac_cv_lib_dl_dlopen=no
15098fi
15099rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101LIBS=$ac_check_lib_save_LIBS
15102fi
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15104$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15105if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15107else
15108
15109 lt_cv_dlopen=dyld
15110 lt_cv_dlopen_libs=
15111 lt_cv_dlopen_self=yes
15112
15113fi
15114
15115 ;;
15116
15117 tpf*)
15118 # Don't try to run any link tests for TPF. We know it's impossible
15119 # because TPF is a cross-compiler, and we know how we open DSOs.
15120 lt_cv_dlopen=dlopen
15121 lt_cv_dlopen_libs=
15122 lt_cv_dlopen_self=no
15123 ;;
15124
15125 *)
15126 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15127if test "x$ac_cv_func_shl_load" = xyes; then :
15128 lt_cv_dlopen=shl_load
15129else
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15131$as_echo_n "checking for shl_load in -ldld... " >&6; }
15132if ${ac_cv_lib_dld_shl_load+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134else
15135 ac_check_lib_save_LIBS=$LIBS
15136LIBS="-ldld $LIBS"
15137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h. */
15139
15140
15141#ifdef __cplusplus
15142extern "C"
15143#endif
15144char shl_load ();
15145int main (void)
15146{
15147return shl_load ();
15148 ;
15149 return 0;
15150}
15151_ACEOF
15152if ac_fn_c_try_link "$LINENO"; then :
15153 ac_cv_lib_dld_shl_load=yes
15154else
15155 ac_cv_lib_dld_shl_load=no
15156fi
15157rm -f core conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159LIBS=$ac_check_lib_save_LIBS
15160fi
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15162$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15163if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15164 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15165else
15166 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15167if test "x$ac_cv_func_dlopen" = xyes; then :
15168 lt_cv_dlopen=dlopen
15169else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15171$as_echo_n "checking for dlopen in -ldl... " >&6; }
15172if ${ac_cv_lib_dl_dlopen+:} false; then :
15173 $as_echo_n "(cached) " >&6
15174else
15175 ac_check_lib_save_LIBS=$LIBS
15176LIBS="-ldl $LIBS"
15177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h. */
15179
15180
15181#ifdef __cplusplus
15182extern "C"
15183#endif
15184char dlopen ();
15185int main (void)
15186{
15187return dlopen ();
15188 ;
15189 return 0;
15190}
15191_ACEOF
15192if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_lib_dl_dlopen=yes
15194else
15195 ac_cv_lib_dl_dlopen=no
15196fi
15197rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199LIBS=$ac_check_lib_save_LIBS
15200fi
15201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15202$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15203if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15204 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15205else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15207$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15208if ${ac_cv_lib_svld_dlopen+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210else
15211 ac_check_lib_save_LIBS=$LIBS
15212LIBS="-lsvld $LIBS"
15213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214/* end confdefs.h. */
15215
15216
15217#ifdef __cplusplus
15218extern "C"
15219#endif
15220char dlopen ();
15221int main (void)
15222{
15223return dlopen ();
15224 ;
15225 return 0;
15226}
15227_ACEOF
15228if ac_fn_c_try_link "$LINENO"; then :
15229 ac_cv_lib_svld_dlopen=yes
15230else
15231 ac_cv_lib_svld_dlopen=no
15232fi
15233rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235LIBS=$ac_check_lib_save_LIBS
15236fi
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15238$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15239if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15240 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15241else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15243$as_echo_n "checking for dld_link in -ldld... " >&6; }
15244if ${ac_cv_lib_dld_dld_link+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246else
15247 ac_check_lib_save_LIBS=$LIBS
15248LIBS="-ldld $LIBS"
15249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250/* end confdefs.h. */
15251
15252
15253#ifdef __cplusplus
15254extern "C"
15255#endif
15256char dld_link ();
15257int main (void)
15258{
15259return dld_link ();
15260 ;
15261 return 0;
15262}
15263_ACEOF
15264if ac_fn_c_try_link "$LINENO"; then :
15265 ac_cv_lib_dld_dld_link=yes
15266else
15267 ac_cv_lib_dld_dld_link=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext \
15270 conftest$ac_exeext conftest.$ac_ext
15271LIBS=$ac_check_lib_save_LIBS
15272fi
15273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15274$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15275if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15276 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15277fi
15278
15279
15280fi
15281
15282
15283fi
15284
15285
15286fi
15287
15288
15289fi
15290
15291
15292fi
15293
15294 ;;
15295 esac
15296
15297 if test no = "$lt_cv_dlopen"; then
15298 enable_dlopen=no
15299 else
15300 enable_dlopen=yes
15301 fi
15302
15303 case $lt_cv_dlopen in
15304 dlopen)
15305 save_CPPFLAGS=$CPPFLAGS
15306 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15307
15308 save_LDFLAGS=$LDFLAGS
15309 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15310
15311 save_LIBS=$LIBS
15312 LIBS="$lt_cv_dlopen_libs $LIBS"
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15315$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15316if ${lt_cv_dlopen_self+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318else
15319 if test yes = "$cross_compiling"; then :
15320 lt_cv_dlopen_self=cross
15321else
15322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15323 lt_status=$lt_dlunknown
15324 cat > conftest.$ac_ext <<_LT_EOF
15325#line $LINENO "configure"
15326#include "confdefs.h"
15327
15328#if HAVE_DLFCN_H
15329#include <dlfcn.h>
15330#endif
15331
15332#include <stdio.h>
15333
15334#ifdef RTLD_GLOBAL
15335# define LT_DLGLOBAL RTLD_GLOBAL
15336#else
15337# ifdef DL_GLOBAL
15338# define LT_DLGLOBAL DL_GLOBAL
15339# else
15340# define LT_DLGLOBAL 0
15341# endif
15342#endif
15343
15344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15345 find out it does not work in some platform. */
15346#ifndef LT_DLLAZY_OR_NOW
15347# ifdef RTLD_LAZY
15348# define LT_DLLAZY_OR_NOW RTLD_LAZY
15349# else
15350# ifdef DL_LAZY
15351# define LT_DLLAZY_OR_NOW DL_LAZY
15352# else
15353# ifdef RTLD_NOW
15354# define LT_DLLAZY_OR_NOW RTLD_NOW
15355# else
15356# ifdef DL_NOW
15357# define LT_DLLAZY_OR_NOW DL_NOW
15358# else
15359# define LT_DLLAZY_OR_NOW 0
15360# endif
15361# endif
15362# endif
15363# endif
15364#endif
15365
15366/* When -fvisibility=hidden is used, assume the code has been annotated
15367 correspondingly for the symbols needed. */
15368#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15369int fnord () __attribute__((visibility("default")));
15370#endif
15371
15372int fnord () { return 42; }
15373int main ()
15374{
15375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15376 int status = $lt_dlunknown;
15377
15378 if (self)
15379 {
15380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15381 else
15382 {
15383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15384 else puts (dlerror ());
15385 }
15386 /* dlclose (self); */
15387 }
15388 else
15389 puts (dlerror ());
15390
15391 return status;
15392}
15393_LT_EOF
15394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15395 (eval $ac_link) 2>&5
15396 ac_status=$?
15397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15398 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15399 (./conftest; exit; ) >&5 2>/dev/null
15400 lt_status=$?
15401 case x$lt_status in
15402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15405 esac
15406 else :
15407 # compilation failed
15408 lt_cv_dlopen_self=no
15409 fi
15410fi
15411rm -fr conftest*
15412
15413
15414fi
15415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15416$as_echo "$lt_cv_dlopen_self" >&6; }
15417
15418 if test yes = "$lt_cv_dlopen_self"; then
15419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15421$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15422if ${lt_cv_dlopen_self_static+:} false; then :
15423 $as_echo_n "(cached) " >&6
15424else
15425 if test yes = "$cross_compiling"; then :
15426 lt_cv_dlopen_self_static=cross
15427else
15428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15429 lt_status=$lt_dlunknown
15430 cat > conftest.$ac_ext <<_LT_EOF
15431#line $LINENO "configure"
15432#include "confdefs.h"
15433
15434#if HAVE_DLFCN_H
15435#include <dlfcn.h>
15436#endif
15437
15438#include <stdio.h>
15439
15440#ifdef RTLD_GLOBAL
15441# define LT_DLGLOBAL RTLD_GLOBAL
15442#else
15443# ifdef DL_GLOBAL
15444# define LT_DLGLOBAL DL_GLOBAL
15445# else
15446# define LT_DLGLOBAL 0
15447# endif
15448#endif
15449
15450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15451 find out it does not work in some platform. */
15452#ifndef LT_DLLAZY_OR_NOW
15453# ifdef RTLD_LAZY
15454# define LT_DLLAZY_OR_NOW RTLD_LAZY
15455# else
15456# ifdef DL_LAZY
15457# define LT_DLLAZY_OR_NOW DL_LAZY
15458# else
15459# ifdef RTLD_NOW
15460# define LT_DLLAZY_OR_NOW RTLD_NOW
15461# else
15462# ifdef DL_NOW
15463# define LT_DLLAZY_OR_NOW DL_NOW
15464# else
15465# define LT_DLLAZY_OR_NOW 0
15466# endif
15467# endif
15468# endif
15469# endif
15470#endif
15471
15472/* When -fvisibility=hidden is used, assume the code has been annotated
15473 correspondingly for the symbols needed. */
15474#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15475int fnord () __attribute__((visibility("default")));
15476#endif
15477
15478int fnord () { return 42; }
15479int main ()
15480{
15481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15482 int status = $lt_dlunknown;
15483
15484 if (self)
15485 {
15486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15487 else
15488 {
15489 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15490 else puts (dlerror ());
15491 }
15492 /* dlclose (self); */
15493 }
15494 else
15495 puts (dlerror ());
15496
15497 return status;
15498}
15499_LT_EOF
15500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15501 (eval $ac_link) 2>&5
15502 ac_status=$?
15503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15504 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15505 (./conftest; exit; ) >&5 2>/dev/null
15506 lt_status=$?
15507 case x$lt_status in
15508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15510 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15511 esac
15512 else :
15513 # compilation failed
15514 lt_cv_dlopen_self_static=no
15515 fi
15516fi
15517rm -fr conftest*
15518
15519
15520fi
15521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15522$as_echo "$lt_cv_dlopen_self_static" >&6; }
15523 fi
15524
15525 CPPFLAGS=$save_CPPFLAGS
15526 LDFLAGS=$save_LDFLAGS
15527 LIBS=$save_LIBS
15528 ;;
15529 esac
15530
15531 case $lt_cv_dlopen_self in
15532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15533 *) enable_dlopen_self=unknown ;;
15534 esac
15535
15536 case $lt_cv_dlopen_self_static in
15537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15538 *) enable_dlopen_self_static=unknown ;;
15539 esac
15540fi
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558striplib=
15559old_striplib=
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15561$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15562if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15563 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15564 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566$as_echo "yes" >&6; }
15567else
15568# FIXME - insert some real tests, host_os isn't really good enough
15569 case $host_os in
15570 darwin*)
15571 if test -n "$STRIP"; then
15572 striplib="$STRIP -x"
15573 old_striplib="$STRIP -S"
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15575$as_echo "yes" >&6; }
15576 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578$as_echo "no" >&6; }
15579 fi
15580 ;;
15581 *)
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15583$as_echo "no" >&6; }
15584 ;;
15585 esac
15586fi
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599 # Report what library types will actually be built
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15601$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15603$as_echo "$can_build_shared" >&6; }
15604
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15606$as_echo_n "checking whether to build shared libraries... " >&6; }
15607 test no = "$can_build_shared" && enable_shared=no
15608
15609 # On AIX, shared libraries and static libraries use the same namespace, and
15610 # are all built from PIC.
15611 case $host_os in
15612 aix3*)
15613 test yes = "$enable_shared" && enable_static=no
15614 if test -n "$RANLIB"; then
15615 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15616 postinstall_cmds='$RANLIB $lib'
15617 fi
15618 ;;
15619
15620 aix[4-9]*)
15621 if test ia64 != "$host_cpu"; then
15622 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15623 yes,aix,yes) ;; # shared object as lib.so file only
15624 yes,svr4,*) ;; # shared object as lib.so archive member only
15625 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15626 esac
15627 fi
15628 ;;
15629 esac
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15631$as_echo "$enable_shared" >&6; }
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15634$as_echo_n "checking whether to build static libraries... " >&6; }
15635 # Make sure either enable_shared or enable_static is yes.
15636 test yes = "$enable_shared" || enable_static=yes
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15638$as_echo "$enable_static" >&6; }
15639
15640
15641
15642
15643fi
15644ac_ext=c
15645ac_cpp='$CPP $CPPFLAGS'
15646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649
15650CC=$lt_save_CC
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666 ac_config_commands="$ac_config_commands libtool"
15667
15668
15669
15670
15671# Only expand once:
15672
15673
15674## --------------------- ##
15675## End of libtool code ##
15676## --------------------- ##
15677
15678#
15679# Verify if finally libtool shared libraries will be built
15680#
15681
15682case "x$enable_shared" in # ((
15683 xyes | xno)
15684 xc_lt_build_shared=$enable_shared
15685 ;;
15686 *)
15687 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15688 ;;
15689esac
15690
15691#
15692# Verify if finally libtool static libraries will be built
15693#
15694
15695case "x$enable_static" in # ((
15696 xyes | xno)
15697 xc_lt_build_static=$enable_static
15698 ;;
15699 *)
15700 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15701 ;;
15702esac
15703
15704#
15705# Verify if libtool shared libraries should be linked using flag -version-info
15706#
15707
15708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15709$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15710xc_lt_shlib_use_version_info='yes'
15711if test "x$version_type" = 'xnone'; then
15712 xc_lt_shlib_use_version_info='no'
15713fi
15714case $host_os in # (
15715 amigaos*)
15716 xc_lt_shlib_use_version_info='yes'
15717 ;;
15718esac
15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15720$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15721
15722#
15723# Verify if libtool shared libraries should be linked using flag -no-undefined
15724#
15725
15726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15727$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15728xc_lt_shlib_use_no_undefined='no'
15729if test "x$allow_undefined" = 'xno'; then
15730 xc_lt_shlib_use_no_undefined='yes'
15731elif test "x$allow_undefined_flag" = 'xunsupported'; then
15732 xc_lt_shlib_use_no_undefined='yes'
15733fi
15734case $host_os in # (
15735 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15736 xc_lt_shlib_use_no_undefined='yes'
15737 ;;
15738esac
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15740$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15741
15742#
15743# Verify if libtool shared libraries should be linked using flag -mimpure-text
15744#
15745
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15747$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15748xc_lt_shlib_use_mimpure_text='no'
15749case $host_os in # (
15750 solaris2*)
15751 if test "x$GCC" = 'xyes'; then
15752 xc_lt_shlib_use_mimpure_text='yes'
15753 fi
15754 ;;
15755esac
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15757$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15758
15759#
15760# Find out whether libtool libraries would be built wit PIC
15761#
15762
15763case "x$pic_mode" in # ((((
15764 xdefault)
15765 xc_lt_build_shared_with_pic='yes'
15766 xc_lt_build_static_with_pic='no'
15767 ;;
15768 xyes)
15769 xc_lt_build_shared_with_pic='yes'
15770 xc_lt_build_static_with_pic='yes'
15771 ;;
15772 xno)
15773 xc_lt_build_shared_with_pic='no'
15774 xc_lt_build_static_with_pic='no'
15775 ;;
15776 *)
15777 xc_lt_build_shared_with_pic='unknown'
15778 xc_lt_build_static_with_pic='unknown'
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15780$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15781 ;;
15782esac
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15784$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15786$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15788$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15790$as_echo "$xc_lt_build_static_with_pic" >&6; }
15791
15792#
15793# Verify if libtool shared libraries will be built while static not built
15794#
15795
15796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15797$as_echo_n "checking whether to build shared libraries only... " >&6; }
15798if test "$xc_lt_build_shared" = 'yes' &&
15799 test "$xc_lt_build_static" = 'no'; then
15800 xc_lt_build_shared_only='yes'
15801else
15802 xc_lt_build_shared_only='no'
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15805$as_echo "$xc_lt_build_shared_only" >&6; }
15806
15807#
15808# Verify if libtool static libraries will be built while shared not built
15809#
15810
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15812$as_echo_n "checking whether to build static libraries only... " >&6; }
15813if test "$xc_lt_build_static" = 'yes' &&
15814 test "$xc_lt_build_shared" = 'no'; then
15815 xc_lt_build_static_only='yes'
15816else
15817 xc_lt_build_static_only='no'
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15820$as_echo "$xc_lt_build_static_only" >&6; }
15821
15822
15823
15824
15825#
15826# Automake conditionals based on libtool related checks
15827#
15828
15829 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15830 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15831 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15832else
15833 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15834 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15835fi
15836
15837 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15838 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15839 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15840else
15841 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15842 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15843fi
15844
15845 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15846 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15847 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15848else
15849 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15850 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15851fi
15852
15853
15854#
15855# Due to libtool and automake machinery limitations of not allowing
15856# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15857# inclusion of these in shared or static libraries, we are forced to
15858# build using separate configure runs for shared and static libraries
15859# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15860# to compile objects for each kind of library. Notice that relying on
15861# the '-DPIC' CFLAG that libtool provides is not valid given that the
15862# user might for example choose to build static libraries with PIC.
15863#
15864
15865#
15866# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15867# targeting a static library and not building its shared counterpart.
15868#
15869
15870 if test "x$xc_lt_build_static_only" = 'xyes'; then
15871 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15872 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15873else
15874 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15875 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15876fi
15877
15878
15879#
15880# Make staticlib CPPFLAG variable and its definition visible in output
15881# files unconditionally, providing an empty definition unless strictly
15882# targeting a static library and not building its shared counterpart.
15883#
15884
15885CPPFLAG_CURL_STATICLIB=
15886if test "x$xc_lt_build_static_only" = 'xyes'; then
15887 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15888fi
15889
15890
15891
15892# Determine whether all dependent libraries must be specified when linking
15893if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15894then
15895 REQUIRE_LIB_DEPS=no
15896else
15897 REQUIRE_LIB_DEPS=yes
15898fi
15899
15900 if test x$REQUIRE_LIB_DEPS = xyes; then
15901 USE_EXPLICIT_LIB_DEPS_TRUE=
15902 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15903else
15904 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15905 USE_EXPLICIT_LIB_DEPS_FALSE=
15906fi
15907
15908
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15910$as_echo_n "checking for inline... " >&6; }
15911if ${ac_cv_c_inline+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913else
15914 ac_cv_c_inline=no
15915for ac_kw in inline __inline__ __inline; do
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917/* end confdefs.h. */
15918#ifndef __cplusplus
15919typedef int foo_t;
15920static $ac_kw foo_t static_foo () {return 0; }
15921$ac_kw foo_t foo () {return 0; }
15922#endif
15923
15924_ACEOF
15925if ac_fn_c_try_compile "$LINENO"; then :
15926 ac_cv_c_inline=$ac_kw
15927fi
15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 test "$ac_cv_c_inline" != no && break
15930done
15931
15932fi
15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15934$as_echo "$ac_cv_c_inline" >&6; }
15935
15936case $ac_cv_c_inline in
15937 inline | yes) ;;
15938 *)
15939 case $ac_cv_c_inline in
15940 no) ac_val=;;
15941 *) ac_val=$ac_cv_c_inline;;
15942 esac
15943 cat >>confdefs.h <<_ACEOF
15944#ifndef __cplusplus
15945#define inline $ac_val
15946#endif
15947_ACEOF
15948 ;;
15949esac
15950
15951
15952
15953
Alex Deymo486467e2017-12-19 19:04:07 +010015954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15955$as_echo_n "checking if cpp -P is needed... " >&6; }
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h. */
15958
15959 #include <errno.h>
15960TEST EINVAL TEST
15961
15962_ACEOF
15963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15965 cpp=no
15966else
15967 cpp=yes
15968fi
15969rm -f conftest*
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15972$as_echo "$cpp" >&6; }
15973
15974 if test "x$cpp" = "xyes"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15976$as_echo_n "checking if cpp -P works... " >&6; }
15977 OLDCPPFLAGS=$CPPFLAGS
15978 CPPFLAGS="$CPPFLAGS -P"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980/* end confdefs.h. */
15981
15982 #include <errno.h>
15983TEST EINVAL TEST
15984
15985_ACEOF
15986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15987 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15988 cpp_p=yes
15989else
15990 cpp_p=no
15991fi
15992rm -f conftest*
15993
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15995$as_echo "$cpp_p" >&6; }
15996
15997 if test "x$cpp_p" = "xno"; then
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15999$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16000 # without -P
16001 CPPPFLAG=""
16002 else
16003 # with -P
16004 CPPPFLAG="-P"
16005 fi
16006 CPPFLAGS=$OLDCPPFLAGS
16007 else
16008 # without -P
16009 CPPPFLAG=""
16010 fi
16011
16012
Elliott Hughes82be86d2017-09-20 17:00:17 -070016013 #
16014 compiler_id="unknown"
16015 compiler_num="0"
16016 #
16017 flags_dbg_all="unknown"
16018 flags_dbg_yes="unknown"
16019 flags_dbg_off="unknown"
16020 flags_opt_all="unknown"
16021 flags_opt_yes="unknown"
16022 flags_opt_off="unknown"
16023 #
16024 flags_prefer_cppflags="no"
16025 #
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16028$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16029
16030 OLDCPPFLAGS=$CPPFLAGS
16031 # CPPPFLAG comes from CURL_CPP_P
16032 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16033 if test -z "$SED"; then
16034 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16035 fi
16036 if test -z "$GREP"; then
16037 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16038 fi
16039
16040 tmp_exp=""
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h. */
16043
16044
16045#ifdef __DECC
16046CURL_DEF_TOKEN __DECC
16047#endif
16048
16049
16050_ACEOF
16051if ac_fn_c_try_cpp "$LINENO"; then :
16052
16053 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16054 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16055 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16056 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16057 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16058 tmp_exp=""
16059 fi
16060
16061fi
16062rm -f conftest.err conftest.i conftest.$ac_ext
16063 if test -z "$tmp_exp"; then
16064 curl_cv_have_def___DECC=no
16065
16066 else
16067 curl_cv_have_def___DECC=yes
16068 curl_cv_def___DECC=$tmp_exp
16069
16070 fi
16071 CPPFLAGS=$OLDCPPFLAGS
16072
16073
16074 OLDCPPFLAGS=$CPPFLAGS
16075 # CPPPFLAG comes from CURL_CPP_P
16076 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16077 if test -z "$SED"; then
16078 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16079 fi
16080 if test -z "$GREP"; then
16081 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16082 fi
16083
16084 tmp_exp=""
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086/* end confdefs.h. */
16087
16088
16089#ifdef __DECC_VER
16090CURL_DEF_TOKEN __DECC_VER
16091#endif
16092
16093
16094_ACEOF
16095if ac_fn_c_try_cpp "$LINENO"; then :
16096
16097 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16098 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16099 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16100 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16101 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16102 tmp_exp=""
16103 fi
16104
16105fi
16106rm -f conftest.err conftest.i conftest.$ac_ext
16107 if test -z "$tmp_exp"; then
16108 curl_cv_have_def___DECC_VER=no
16109
16110 else
16111 curl_cv_have_def___DECC_VER=yes
16112 curl_cv_def___DECC_VER=$tmp_exp
16113
16114 fi
16115 CPPFLAGS=$OLDCPPFLAGS
16116
16117 if test "$curl_cv_have_def___DECC" = "yes" &&
16118 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16120$as_echo "yes" >&6; }
16121 compiler_id="DEC_C"
16122 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16123 flags_dbg_yes="-g2"
16124 flags_dbg_off=""
16125 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16126 flags_opt_yes="-O1"
16127 flags_opt_off="-O0"
16128 else
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130$as_echo "no" >&6; }
16131 fi
16132
16133
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16135$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16136
16137 OLDCPPFLAGS=$CPPFLAGS
16138 # CPPPFLAG comes from CURL_CPP_P
16139 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16140 if test -z "$SED"; then
16141 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16142 fi
16143 if test -z "$GREP"; then
16144 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16145 fi
16146
16147 tmp_exp=""
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149/* end confdefs.h. */
16150
16151
16152#ifdef __HP_cc
16153CURL_DEF_TOKEN __HP_cc
16154#endif
16155
16156
16157_ACEOF
16158if ac_fn_c_try_cpp "$LINENO"; then :
16159
16160 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16161 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16162 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16163 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16164 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16165 tmp_exp=""
16166 fi
16167
16168fi
16169rm -f conftest.err conftest.i conftest.$ac_ext
16170 if test -z "$tmp_exp"; then
16171 curl_cv_have_def___HP_cc=no
16172
16173 else
16174 curl_cv_have_def___HP_cc=yes
16175 curl_cv_def___HP_cc=$tmp_exp
16176
16177 fi
16178 CPPFLAGS=$OLDCPPFLAGS
16179
16180 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16182$as_echo "yes" >&6; }
16183 compiler_id="HP_UX_C"
16184 flags_dbg_all="-g -s"
16185 flags_dbg_yes="-g"
16186 flags_dbg_off="-s"
16187 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16188 flags_opt_yes="+O2"
16189 flags_opt_off="+O0"
16190 else
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
16193 fi
16194
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16197$as_echo_n "checking if compiler is IBM C... " >&6; }
16198
16199 OLDCPPFLAGS=$CPPFLAGS
16200 # CPPPFLAG comes from CURL_CPP_P
16201 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16202 if test -z "$SED"; then
16203 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16204 fi
16205 if test -z "$GREP"; then
16206 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16207 fi
16208
16209 tmp_exp=""
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211/* end confdefs.h. */
16212
16213
16214#ifdef __IBMC__
16215CURL_DEF_TOKEN __IBMC__
16216#endif
16217
16218
16219_ACEOF
16220if ac_fn_c_try_cpp "$LINENO"; then :
16221
16222 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16223 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16224 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16225 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16226 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16227 tmp_exp=""
16228 fi
16229
16230fi
16231rm -f conftest.err conftest.i conftest.$ac_ext
16232 if test -z "$tmp_exp"; then
16233 curl_cv_have_def___IBMC__=no
16234
16235 else
16236 curl_cv_have_def___IBMC__=yes
16237 curl_cv_def___IBMC__=$tmp_exp
16238
16239 fi
16240 CPPFLAGS=$OLDCPPFLAGS
16241
16242 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244$as_echo "yes" >&6; }
16245 compiler_id="IBM_C"
16246 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16247 flags_dbg_yes="-g"
16248 flags_dbg_off=""
16249 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16250 flags_opt_all="$flags_opt_all -qnooptimize"
16251 flags_opt_all="$flags_opt_all -qoptimize=0"
16252 flags_opt_all="$flags_opt_all -qoptimize=1"
16253 flags_opt_all="$flags_opt_all -qoptimize=2"
16254 flags_opt_all="$flags_opt_all -qoptimize=3"
16255 flags_opt_all="$flags_opt_all -qoptimize=4"
16256 flags_opt_all="$flags_opt_all -qoptimize=5"
16257 flags_opt_yes="-O2"
16258 flags_opt_off="-qnooptimize"
16259 flags_prefer_cppflags="yes"
16260 else
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262$as_echo "no" >&6; }
16263 fi
16264
16265
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16267$as_echo_n "checking if compiler is Intel C... " >&6; }
16268
16269 OLDCPPFLAGS=$CPPFLAGS
16270 # CPPPFLAG comes from CURL_CPP_P
16271 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16272 if test -z "$SED"; then
16273 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16274 fi
16275 if test -z "$GREP"; then
16276 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16277 fi
16278
16279 tmp_exp=""
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h. */
16282
16283
16284#ifdef __INTEL_COMPILER
16285CURL_DEF_TOKEN __INTEL_COMPILER
16286#endif
16287
16288
16289_ACEOF
16290if ac_fn_c_try_cpp "$LINENO"; then :
16291
16292 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16293 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16294 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16295 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16296 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16297 tmp_exp=""
16298 fi
16299
16300fi
16301rm -f conftest.err conftest.i conftest.$ac_ext
16302 if test -z "$tmp_exp"; then
16303 curl_cv_have_def___INTEL_COMPILER=no
16304
16305 else
16306 curl_cv_have_def___INTEL_COMPILER=yes
16307 curl_cv_def___INTEL_COMPILER=$tmp_exp
16308
16309 fi
16310 CPPFLAGS=$OLDCPPFLAGS
16311
16312 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314$as_echo "yes" >&6; }
16315 compiler_num="$curl_cv_def___INTEL_COMPILER"
16316
16317 OLDCPPFLAGS=$CPPFLAGS
16318 # CPPPFLAG comes from CURL_CPP_P
16319 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16320 if test -z "$SED"; then
16321 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16322 fi
16323 if test -z "$GREP"; then
16324 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16325 fi
16326
16327 tmp_exp=""
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h. */
16330
16331
16332#ifdef __unix__
16333CURL_DEF_TOKEN __unix__
16334#endif
16335
16336
16337_ACEOF
16338if ac_fn_c_try_cpp "$LINENO"; then :
16339
16340 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16341 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16342 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16343 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16344 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16345 tmp_exp=""
16346 fi
16347
16348fi
16349rm -f conftest.err conftest.i conftest.$ac_ext
16350 if test -z "$tmp_exp"; then
16351 curl_cv_have_def___unix__=no
16352
16353 else
16354 curl_cv_have_def___unix__=yes
16355 curl_cv_def___unix__=$tmp_exp
16356
16357 fi
16358 CPPFLAGS=$OLDCPPFLAGS
16359
16360 if test "$curl_cv_have_def___unix__" = "yes"; then
16361 compiler_id="INTEL_UNIX_C"
16362 flags_dbg_all="-g -g0"
16363 flags_dbg_yes="-g"
16364 flags_dbg_off=""
16365 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16366 flags_opt_yes="-O2"
16367 flags_opt_off="-O0"
16368 else
16369 compiler_id="INTEL_WINDOWS_C"
16370 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16371 flags_dbg_all="$flags_dbg_all /debug"
16372 flags_dbg_all="$flags_dbg_all /debug:none"
16373 flags_dbg_all="$flags_dbg_all /debug:minimal"
16374 flags_dbg_all="$flags_dbg_all /debug:partial"
16375 flags_dbg_all="$flags_dbg_all /debug:full"
16376 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16377 flags_dbg_all="$flags_dbg_all /debug:extended"
16378 flags_dbg_yes="/Zi /Oy-"
16379 flags_dbg_off="/debug:none /Oy-"
16380 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16381 flags_opt_yes="/O2"
16382 flags_opt_off="/Od"
16383 fi
16384 else
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386$as_echo "no" >&6; }
16387 fi
16388
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16391$as_echo_n "checking if compiler is clang... " >&6; }
16392
16393 OLDCPPFLAGS=$CPPFLAGS
16394 # CPPPFLAG comes from CURL_CPP_P
16395 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16396 if test -z "$SED"; then
16397 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16398 fi
16399 if test -z "$GREP"; then
16400 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16401 fi
16402
16403 tmp_exp=""
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405/* end confdefs.h. */
16406
16407
16408#ifdef __clang__
16409CURL_DEF_TOKEN __clang__
16410#endif
16411
16412
16413_ACEOF
16414if ac_fn_c_try_cpp "$LINENO"; then :
16415
16416 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16417 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16418 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16419 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16420 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16421 tmp_exp=""
16422 fi
16423
16424fi
16425rm -f conftest.err conftest.i conftest.$ac_ext
16426 if test -z "$tmp_exp"; then
16427 curl_cv_have_def___clang__=no
16428
16429 else
16430 curl_cv_have_def___clang__=yes
16431 curl_cv_def___clang__=$tmp_exp
16432
16433 fi
16434 CPPFLAGS=$OLDCPPFLAGS
16435
16436 if test "$curl_cv_have_def___clang__" = "yes"; then
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16438$as_echo "yes" >&6; }
16439 compiler_id="CLANG"
16440 fullclangver=`$CC -v 2>&1 | grep version`
16441 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16442 if test -z "$clangver"; then
16443 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016444 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016445 else
16446 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16447 fi
16448 fi
16449 clangvhi=`echo $clangver | cut -d . -f1`
16450 clangvlo=`echo $clangver | cut -d . -f2`
16451 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16452 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16453 flags_dbg_all="$flags_dbg_all -ggdb"
16454 flags_dbg_all="$flags_dbg_all -gstabs"
16455 flags_dbg_all="$flags_dbg_all -gstabs+"
16456 flags_dbg_all="$flags_dbg_all -gcoff"
16457 flags_dbg_all="$flags_dbg_all -gxcoff"
16458 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16459 flags_dbg_all="$flags_dbg_all -gvms"
16460 flags_dbg_yes="-g"
16461 flags_dbg_off=""
16462 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16463 flags_opt_yes="-Os"
16464 flags_opt_off="-O0"
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467$as_echo "no" >&6; }
16468 fi
16469
16470
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16472$as_echo_n "checking if compiler is GNU C... " >&6; }
16473
16474 OLDCPPFLAGS=$CPPFLAGS
16475 # CPPPFLAG comes from CURL_CPP_P
16476 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16477 if test -z "$SED"; then
16478 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16479 fi
16480 if test -z "$GREP"; then
16481 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16482 fi
16483
16484 tmp_exp=""
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486/* end confdefs.h. */
16487
16488
16489#ifdef __GNUC__
16490CURL_DEF_TOKEN __GNUC__
16491#endif
16492
16493
16494_ACEOF
16495if ac_fn_c_try_cpp "$LINENO"; then :
16496
16497 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16498 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16499 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16500 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16501 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16502 tmp_exp=""
16503 fi
16504
16505fi
16506rm -f conftest.err conftest.i conftest.$ac_ext
16507 if test -z "$tmp_exp"; then
16508 curl_cv_have_def___GNUC__=no
16509
16510 else
16511 curl_cv_have_def___GNUC__=yes
16512 curl_cv_def___GNUC__=$tmp_exp
16513
16514 fi
16515 CPPFLAGS=$OLDCPPFLAGS
16516
16517 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16518 test "$compiler_id" = "unknown"; then
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16520$as_echo "yes" >&6; }
16521 compiler_id="GNU_C"
16522 gccver=`$CC -dumpversion`
16523 gccvhi=`echo $gccver | cut -d . -f1`
16524 gccvlo=`echo $gccver | cut -d . -f2`
16525 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16526 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16527 flags_dbg_all="$flags_dbg_all -ggdb"
16528 flags_dbg_all="$flags_dbg_all -gstabs"
16529 flags_dbg_all="$flags_dbg_all -gstabs+"
16530 flags_dbg_all="$flags_dbg_all -gcoff"
16531 flags_dbg_all="$flags_dbg_all -gxcoff"
16532 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16533 flags_dbg_all="$flags_dbg_all -gvms"
16534 flags_dbg_yes="-g"
16535 flags_dbg_off=""
16536 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16537 flags_opt_yes="-O2"
16538 flags_opt_off="-O0"
16539
16540 OLDCPPFLAGS=$CPPFLAGS
16541 # CPPPFLAG comes from CURL_CPP_P
16542 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16543 if test -z "$SED"; then
16544 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16545 fi
16546 if test -z "$GREP"; then
16547 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16548 fi
16549
16550 tmp_exp=""
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h. */
16553
16554
16555#ifdef _WIN32
16556CURL_DEF_TOKEN _WIN32
16557#endif
16558
16559
16560_ACEOF
16561if ac_fn_c_try_cpp "$LINENO"; then :
16562
16563 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16564 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16565 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16566 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16567 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16568 tmp_exp=""
16569 fi
16570
16571fi
16572rm -f conftest.err conftest.i conftest.$ac_ext
16573 if test -z "$tmp_exp"; then
16574 curl_cv_have_def__WIN32=no
16575
16576 else
16577 curl_cv_have_def__WIN32=yes
16578 curl_cv_def__WIN32=$tmp_exp
16579
16580 fi
16581 CPPFLAGS=$OLDCPPFLAGS
16582
16583 else
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585$as_echo "no" >&6; }
16586 fi
16587
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16590$as_echo_n "checking if compiler is LCC... " >&6; }
16591
16592 OLDCPPFLAGS=$CPPFLAGS
16593 # CPPPFLAG comes from CURL_CPP_P
16594 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16595 if test -z "$SED"; then
16596 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16597 fi
16598 if test -z "$GREP"; then
16599 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16600 fi
16601
16602 tmp_exp=""
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
16605
16606
16607#ifdef __LCC__
16608CURL_DEF_TOKEN __LCC__
16609#endif
16610
16611
16612_ACEOF
16613if ac_fn_c_try_cpp "$LINENO"; then :
16614
16615 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16616 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16617 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16618 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16619 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16620 tmp_exp=""
16621 fi
16622
16623fi
16624rm -f conftest.err conftest.i conftest.$ac_ext
16625 if test -z "$tmp_exp"; then
16626 curl_cv_have_def___LCC__=no
16627
16628 else
16629 curl_cv_have_def___LCC__=yes
16630 curl_cv_def___LCC__=$tmp_exp
16631
16632 fi
16633 CPPFLAGS=$OLDCPPFLAGS
16634
16635 if test "$curl_cv_have_def___LCC__" = "yes"; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637$as_echo "yes" >&6; }
16638 compiler_id="LCC"
16639 flags_dbg_all="-g"
16640 flags_dbg_yes="-g"
16641 flags_dbg_off=""
16642 flags_opt_all=""
16643 flags_opt_yes=""
16644 flags_opt_off=""
16645 else
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16647$as_echo "no" >&6; }
16648 fi
16649
16650
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16652$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16653
16654 OLDCPPFLAGS=$CPPFLAGS
16655 # CPPPFLAG comes from CURL_CPP_P
16656 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16657 if test -z "$SED"; then
16658 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16659 fi
16660 if test -z "$GREP"; then
16661 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16662 fi
16663
16664 tmp_exp=""
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h. */
16667
16668
16669#ifdef __GNUC__
16670CURL_DEF_TOKEN __GNUC__
16671#endif
16672
16673
16674_ACEOF
16675if ac_fn_c_try_cpp "$LINENO"; then :
16676
16677 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16678 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16679 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16680 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16681 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16682 tmp_exp=""
16683 fi
16684
16685fi
16686rm -f conftest.err conftest.i conftest.$ac_ext
16687 if test -z "$tmp_exp"; then
16688 curl_cv_have_def___GNUC__=no
16689
16690 else
16691 curl_cv_have_def___GNUC__=yes
16692 curl_cv_def___GNUC__=$tmp_exp
16693
16694 fi
16695 CPPFLAGS=$OLDCPPFLAGS
16696
16697
16698 OLDCPPFLAGS=$CPPFLAGS
16699 # CPPPFLAG comes from CURL_CPP_P
16700 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16701 if test -z "$SED"; then
16702 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16703 fi
16704 if test -z "$GREP"; then
16705 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16706 fi
16707
16708 tmp_exp=""
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710/* end confdefs.h. */
16711
16712
16713#ifdef _COMPILER_VERSION
16714CURL_DEF_TOKEN _COMPILER_VERSION
16715#endif
16716
16717
16718_ACEOF
16719if ac_fn_c_try_cpp "$LINENO"; then :
16720
16721 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16722 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16723 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16724 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16725 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16726 tmp_exp=""
16727 fi
16728
16729fi
16730rm -f conftest.err conftest.i conftest.$ac_ext
16731 if test -z "$tmp_exp"; then
16732 curl_cv_have_def__COMPILER_VERSION=no
16733
16734 else
16735 curl_cv_have_def__COMPILER_VERSION=yes
16736 curl_cv_def__COMPILER_VERSION=$tmp_exp
16737
16738 fi
16739 CPPFLAGS=$OLDCPPFLAGS
16740
16741
16742 OLDCPPFLAGS=$CPPFLAGS
16743 # CPPPFLAG comes from CURL_CPP_P
16744 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16745 if test -z "$SED"; then
16746 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16747 fi
16748 if test -z "$GREP"; then
16749 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16750 fi
16751
16752 tmp_exp=""
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754/* end confdefs.h. */
16755
16756
16757#ifdef _SGI_COMPILER_VERSION
16758CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16759#endif
16760
16761
16762_ACEOF
16763if ac_fn_c_try_cpp "$LINENO"; then :
16764
16765 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16766 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16767 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16768 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16769 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16770 tmp_exp=""
16771 fi
16772
16773fi
16774rm -f conftest.err conftest.i conftest.$ac_ext
16775 if test -z "$tmp_exp"; then
16776 curl_cv_have_def__SGI_COMPILER_VERSION=no
16777
16778 else
16779 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16780 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16781
16782 fi
16783 CPPFLAGS=$OLDCPPFLAGS
16784
16785 if test "$curl_cv_have_def___GNUC__" = "no" &&
16786 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16787 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16789$as_echo "yes" >&6; }
16790 compiler_id="SGI_MIPSPRO_C"
16791 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16792 flags_dbg_yes="-g"
16793 flags_dbg_off=""
16794 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16795 flags_opt_yes="-O2"
16796 flags_opt_off="-O0"
16797 else
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799$as_echo "no" >&6; }
16800 fi
16801
16802
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16804$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16805
16806 OLDCPPFLAGS=$CPPFLAGS
16807 # CPPPFLAG comes from CURL_CPP_P
16808 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16809 if test -z "$SED"; then
16810 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16811 fi
16812 if test -z "$GREP"; then
16813 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16814 fi
16815
16816 tmp_exp=""
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818/* end confdefs.h. */
16819
16820
16821#ifdef __GNUC__
16822CURL_DEF_TOKEN __GNUC__
16823#endif
16824
16825
16826_ACEOF
16827if ac_fn_c_try_cpp "$LINENO"; then :
16828
16829 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16830 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16831 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16832 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16833 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16834 tmp_exp=""
16835 fi
16836
16837fi
16838rm -f conftest.err conftest.i conftest.$ac_ext
16839 if test -z "$tmp_exp"; then
16840 curl_cv_have_def___GNUC__=no
16841
16842 else
16843 curl_cv_have_def___GNUC__=yes
16844 curl_cv_def___GNUC__=$tmp_exp
16845
16846 fi
16847 CPPFLAGS=$OLDCPPFLAGS
16848
16849
16850 OLDCPPFLAGS=$CPPFLAGS
16851 # CPPPFLAG comes from CURL_CPP_P
16852 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16853 if test -z "$SED"; then
16854 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16855 fi
16856 if test -z "$GREP"; then
16857 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16858 fi
16859
16860 tmp_exp=""
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h. */
16863
16864
16865#ifdef __sgi
16866CURL_DEF_TOKEN __sgi
16867#endif
16868
16869
16870_ACEOF
16871if ac_fn_c_try_cpp "$LINENO"; then :
16872
16873 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16874 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16875 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16876 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16877 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16878 tmp_exp=""
16879 fi
16880
16881fi
16882rm -f conftest.err conftest.i conftest.$ac_ext
16883 if test -z "$tmp_exp"; then
16884 curl_cv_have_def___sgi=no
16885
16886 else
16887 curl_cv_have_def___sgi=yes
16888 curl_cv_def___sgi=$tmp_exp
16889
16890 fi
16891 CPPFLAGS=$OLDCPPFLAGS
16892
16893 if test "$curl_cv_have_def___GNUC__" = "no" &&
16894 test "$curl_cv_have_def___sgi" = "yes" &&
16895 test "$compiler_id" = "unknown"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16897$as_echo "yes" >&6; }
16898 compiler_id="SGI_MIPS_C"
16899 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16900 flags_dbg_yes="-g"
16901 flags_dbg_off=""
16902 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16903 flags_opt_yes="-O2"
16904 flags_opt_off="-O0"
16905 else
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907$as_echo "no" >&6; }
16908 fi
16909
16910
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16912$as_echo_n "checking if compiler is SunPro C... " >&6; }
16913
16914 OLDCPPFLAGS=$CPPFLAGS
16915 # CPPPFLAG comes from CURL_CPP_P
16916 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16917 if test -z "$SED"; then
16918 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16919 fi
16920 if test -z "$GREP"; then
16921 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16922 fi
16923
16924 tmp_exp=""
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926/* end confdefs.h. */
16927
16928
16929#ifdef __SUNPRO_C
16930CURL_DEF_TOKEN __SUNPRO_C
16931#endif
16932
16933
16934_ACEOF
16935if ac_fn_c_try_cpp "$LINENO"; then :
16936
16937 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16938 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16939 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16940 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16941 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16942 tmp_exp=""
16943 fi
16944
16945fi
16946rm -f conftest.err conftest.i conftest.$ac_ext
16947 if test -z "$tmp_exp"; then
16948 curl_cv_have_def___SUNPRO_C=no
16949
16950 else
16951 curl_cv_have_def___SUNPRO_C=yes
16952 curl_cv_def___SUNPRO_C=$tmp_exp
16953
16954 fi
16955 CPPFLAGS=$OLDCPPFLAGS
16956
16957 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16959$as_echo "yes" >&6; }
16960 compiler_id="SUNPRO_C"
16961 flags_dbg_all="-g -s"
16962 flags_dbg_yes="-g"
16963 flags_dbg_off="-s"
16964 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16965 flags_opt_yes="-xO2"
16966 flags_opt_off=""
16967 else
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16969$as_echo "no" >&6; }
16970 fi
16971
16972
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16974$as_echo_n "checking if compiler is Tiny C... " >&6; }
16975
16976 OLDCPPFLAGS=$CPPFLAGS
16977 # CPPPFLAG comes from CURL_CPP_P
16978 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16979 if test -z "$SED"; then
16980 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16981 fi
16982 if test -z "$GREP"; then
16983 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16984 fi
16985
16986 tmp_exp=""
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h. */
16989
16990
16991#ifdef __TINYC__
16992CURL_DEF_TOKEN __TINYC__
16993#endif
16994
16995
16996_ACEOF
16997if ac_fn_c_try_cpp "$LINENO"; then :
16998
16999 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17000 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17001 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17002 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17003 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17004 tmp_exp=""
17005 fi
17006
17007fi
17008rm -f conftest.err conftest.i conftest.$ac_ext
17009 if test -z "$tmp_exp"; then
17010 curl_cv_have_def___TINYC__=no
17011
17012 else
17013 curl_cv_have_def___TINYC__=yes
17014 curl_cv_def___TINYC__=$tmp_exp
17015
17016 fi
17017 CPPFLAGS=$OLDCPPFLAGS
17018
17019 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17021$as_echo "yes" >&6; }
17022 compiler_id="TINY_C"
17023 flags_dbg_all="-g -b"
17024 flags_dbg_yes="-g"
17025 flags_dbg_off=""
17026 flags_opt_all=""
17027 flags_opt_yes=""
17028 flags_opt_off=""
17029 else
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031$as_echo "no" >&6; }
17032 fi
17033
17034
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17036$as_echo_n "checking if compiler is Watcom C... " >&6; }
17037
17038 OLDCPPFLAGS=$CPPFLAGS
17039 # CPPPFLAG comes from CURL_CPP_P
17040 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17041 if test -z "$SED"; then
17042 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17043 fi
17044 if test -z "$GREP"; then
17045 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17046 fi
17047
17048 tmp_exp=""
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h. */
17051
17052
17053#ifdef __WATCOMC__
17054CURL_DEF_TOKEN __WATCOMC__
17055#endif
17056
17057
17058_ACEOF
17059if ac_fn_c_try_cpp "$LINENO"; then :
17060
17061 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17062 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17063 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17064 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17065 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17066 tmp_exp=""
17067 fi
17068
17069fi
17070rm -f conftest.err conftest.i conftest.$ac_ext
17071 if test -z "$tmp_exp"; then
17072 curl_cv_have_def___WATCOMC__=no
17073
17074 else
17075 curl_cv_have_def___WATCOMC__=yes
17076 curl_cv_def___WATCOMC__=$tmp_exp
17077
17078 fi
17079 CPPFLAGS=$OLDCPPFLAGS
17080
17081 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083$as_echo "yes" >&6; }
17084
17085 OLDCPPFLAGS=$CPPFLAGS
17086 # CPPPFLAG comes from CURL_CPP_P
17087 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17088 if test -z "$SED"; then
17089 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17090 fi
17091 if test -z "$GREP"; then
17092 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17093 fi
17094
17095 tmp_exp=""
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097/* end confdefs.h. */
17098
17099
17100#ifdef __UNIX__
17101CURL_DEF_TOKEN __UNIX__
17102#endif
17103
17104
17105_ACEOF
17106if ac_fn_c_try_cpp "$LINENO"; then :
17107
17108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17112 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17113 tmp_exp=""
17114 fi
17115
17116fi
17117rm -f conftest.err conftest.i conftest.$ac_ext
17118 if test -z "$tmp_exp"; then
17119 curl_cv_have_def___UNIX__=no
17120
17121 else
17122 curl_cv_have_def___UNIX__=yes
17123 curl_cv_def___UNIX__=$tmp_exp
17124
17125 fi
17126 CPPFLAGS=$OLDCPPFLAGS
17127
17128 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17129 compiler_id="WATCOM_UNIX_C"
17130 flags_dbg_all="-g1 -g1+ -g2 -g3"
17131 flags_dbg_yes="-g2"
17132 flags_dbg_off=""
17133 flags_opt_all="-O0 -O1 -O2 -O3"
17134 flags_opt_yes="-O2"
17135 flags_opt_off="-O0"
17136 else
17137 compiler_id="WATCOM_WINDOWS_C"
17138 flags_dbg_all=""
17139 flags_dbg_yes=""
17140 flags_dbg_off=""
17141 flags_opt_all=""
17142 flags_opt_yes=""
17143 flags_opt_off=""
17144 fi
17145 else
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17147$as_echo "no" >&6; }
17148 fi
17149
17150 #
17151 if test "$compiler_id" = "unknown"; then
17152 cat <<_EOF 1>&2
17153***
17154*** Warning: This configure script does not have information about the
17155*** compiler you are using, relative to the flags required to enable or
17156*** disable generation of debug info, optimization options or warnings.
17157***
17158*** Whatever settings are present in CFLAGS will be used for this run.
17159***
17160*** If you wish to help the curl project to better support your compiler
17161*** you can report this and the required info on the libcurl development
17162*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17163***
17164_EOF
17165 fi
17166
17167
17168squeeze() {
17169 _sqz_result=""
17170 eval _sqz_input=\$$1
17171 for _sqz_token in $_sqz_input; do
17172 if test -z "$_sqz_result"; then
17173 _sqz_result="$_sqz_token"
17174 else
17175 _sqz_result="$_sqz_result $_sqz_token"
17176 fi
17177 done
17178 eval $1=\$_sqz_result
17179 return 0
17180}
17181
17182
17183 #
17184 if test "$compiler_id" != "unknown"; then
17185 #
17186 if test "$compiler_id" = "GNU_C" ||
17187 test "$compiler_id" = "CLANG"; then
17188
17189 if test "$compiler_id" = "GNU_C" ||
17190 test "$compiler_id" = "CLANG"; then
17191 tmp_has_include="no"
17192 tmp_chg_FLAGS="$CFLAGS"
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 CFLAGS="$tmp_chg_FLAGS"
17204 squeeze CFLAGS
17205 fi
17206 tmp_has_include="no"
17207 tmp_chg_FLAGS="$CPPFLAGS"
17208 for word1 in $tmp_chg_FLAGS; do
17209 case "$word1" in
17210 -I*)
17211 tmp_has_include="yes"
17212 ;;
17213 esac
17214 done
17215 if test "$tmp_has_include" = "yes"; then
17216 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17217 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17218 CPPFLAGS="$tmp_chg_FLAGS"
17219 squeeze CPPFLAGS
17220 fi
17221 fi
17222
17223 fi
17224 #
17225 tmp_save_CPPFLAGS="$CPPFLAGS"
17226 tmp_save_CFLAGS="$CFLAGS"
17227 tmp_CPPFLAGS=""
17228 tmp_CFLAGS=""
17229 #
17230 case "$compiler_id" in
17231 #
17232 CLANG)
17233 #
17234 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17235 ;;
17236 #
17237 DEC_C)
17238 #
17239 tmp_CFLAGS="$tmp_CFLAGS -std1"
17240 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17241 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17242 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17243 ;;
17244 #
17245 GNU_C)
17246 #
17247 if test "$compiler_num" -ge "295"; then
17248 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17249 fi
17250 ;;
17251 #
17252 HP_UX_C)
17253 #
17254 tmp_CFLAGS="$tmp_CFLAGS -z"
17255 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17256 ;;
17257 #
17258 IBM_C)
17259 #
17260 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17261 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17262 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17263 ;;
17264 #
17265 INTEL_UNIX_C)
17266 #
17267 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17268 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17269 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17270 ;;
17271 #
17272 INTEL_WINDOWS_C)
17273 #
17274 tmp_CFLAGS="$tmp_CFLAGS"
17275 ;;
17276 #
17277 LCC)
17278 #
17279 tmp_CFLAGS="$tmp_CFLAGS -n"
17280 ;;
17281 #
17282 SGI_MIPS_C)
17283 #
17284 tmp_CFLAGS="$tmp_CFLAGS"
17285 ;;
17286 #
17287 SGI_MIPSPRO_C)
17288 #
17289 tmp_CFLAGS="$tmp_CFLAGS"
17290 ;;
17291 #
17292 SUNPRO_C)
17293 #
17294 tmp_CFLAGS="$tmp_CFLAGS"
17295 ;;
17296 #
17297 TINY_C)
17298 #
17299 tmp_CFLAGS="$tmp_CFLAGS"
17300 ;;
17301 #
17302 WATCOM_UNIX_C)
17303 #
17304 tmp_CFLAGS="$tmp_CFLAGS"
17305 ;;
17306 #
17307 WATCOM_WINDOWS_C)
17308 #
17309 tmp_CFLAGS="$tmp_CFLAGS"
17310 ;;
17311 #
17312 esac
17313 #
17314 squeeze tmp_CPPFLAGS
17315 squeeze tmp_CFLAGS
17316 #
17317 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17319$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17320 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17321 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17322 squeeze CPPFLAGS
17323 squeeze CFLAGS
17324
17325 tmp_compiler_works="unknown"
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327/* end confdefs.h. */
17328
17329
17330
17331int main (void)
17332{
17333
17334 int i = 1;
17335 return i;
17336
17337 ;
17338 return 0;
17339}
17340
17341_ACEOF
17342if ac_fn_c_try_compile "$LINENO"; then :
17343
17344 tmp_compiler_works="yes"
17345
17346else
17347
17348 tmp_compiler_works="no"
17349 echo " " >&6
17350 sed 's/^/cc-fail: /' conftest.err >&6
17351 echo " " >&6
17352
17353fi
17354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 if test "$tmp_compiler_works" = "yes"; then
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h. */
17358
17359
17360
17361int main (void)
17362{
17363
17364 int i = 1;
17365 return i;
17366
17367 ;
17368 return 0;
17369}
17370
17371_ACEOF
17372if ac_fn_c_try_link "$LINENO"; then :
17373
17374 tmp_compiler_works="yes"
17375
17376else
17377
17378 tmp_compiler_works="no"
17379 echo " " >&6
17380 sed 's/^/link-fail: /' conftest.err >&6
17381 echo " " >&6
17382
17383fi
17384rm -f core conftest.err conftest.$ac_objext \
17385 conftest$ac_exeext conftest.$ac_ext
17386 fi
17387 if test "x$cross_compiling" != "xyes" &&
17388 test "$tmp_compiler_works" = "yes"; then
17389 if test "$cross_compiling" = yes; then :
17390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17392as_fn_error $? "cannot run test program while cross compiling
17393See \`config.log' for more details" "$LINENO" 5; }
17394else
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396/* end confdefs.h. */
17397
17398
17399# ifdef __STDC__
17400# include <stdlib.h>
17401# endif
17402
17403int main (void)
17404{
17405
17406 int i = 0;
17407 exit(i);
17408
17409 ;
17410 return 0;
17411}
17412
17413_ACEOF
17414if ac_fn_c_try_run "$LINENO"; then :
17415
17416 tmp_compiler_works="yes"
17417
17418else
17419
17420 tmp_compiler_works="no"
17421 echo " " >&6
17422 echo "run-fail: test program exited with status $ac_status" >&6
17423 echo " " >&6
17424
17425fi
17426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17427 conftest.$ac_objext conftest.beam conftest.$ac_ext
17428fi
17429
17430 fi
17431 if test "$tmp_compiler_works" = "yes"; then
17432
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17434$as_echo "yes" >&6; }
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17436$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17437
17438 else
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17441$as_echo "no" >&6; }
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17443$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17444 CPPFLAGS="$tmp_save_CPPFLAGS"
17445 CFLAGS="$tmp_save_CFLAGS"
17446
17447 fi
17448
17449 fi
17450 #
17451 fi
17452
17453
17454 #
17455 if test "$compiler_id" != "unknown"; then
17456 #
17457 tmp_save_CFLAGS="$CFLAGS"
17458 tmp_save_CPPFLAGS="$CPPFLAGS"
17459 #
17460 tmp_options=""
17461 tmp_CFLAGS="$CFLAGS"
17462 tmp_CPPFLAGS="$CPPFLAGS"
17463
17464 ac_var_stripped=""
17465 for word1 in $tmp_CFLAGS; do
17466 ac_var_strip_word="no"
17467 for word2 in $flags_dbg_all; do
17468 if test "$word1" = "$word2"; then
17469 ac_var_strip_word="yes"
17470 fi
17471 done
17472 if test "$ac_var_strip_word" = "no"; then
17473 ac_var_stripped="$ac_var_stripped $word1"
17474 fi
17475 done
17476 tmp_CFLAGS="$ac_var_stripped"
17477 squeeze tmp_CFLAGS
17478
17479
17480 ac_var_stripped=""
17481 for word1 in $tmp_CPPFLAGS; do
17482 ac_var_strip_word="no"
17483 for word2 in $flags_dbg_all; do
17484 if test "$word1" = "$word2"; then
17485 ac_var_strip_word="yes"
17486 fi
17487 done
17488 if test "$ac_var_strip_word" = "no"; then
17489 ac_var_stripped="$ac_var_stripped $word1"
17490 fi
17491 done
17492 tmp_CPPFLAGS="$ac_var_stripped"
17493 squeeze tmp_CPPFLAGS
17494
17495 #
17496 if test "$want_debug" = "yes"; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17498$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17499 tmp_options="$flags_dbg_yes"
17500 fi
17501 if test "$want_debug" = "no"; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17503$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17504 tmp_options="$flags_dbg_off"
17505 fi
17506 #
17507 if test "$flags_prefer_cppflags" = "yes"; then
17508 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17509 CFLAGS="$tmp_CFLAGS"
17510 else
17511 CPPFLAGS="$tmp_CPPFLAGS"
17512 CFLAGS="$tmp_CFLAGS $tmp_options"
17513 fi
17514 squeeze CPPFLAGS
17515 squeeze CFLAGS
17516
17517 tmp_compiler_works="unknown"
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h. */
17520
17521
17522
17523int main (void)
17524{
17525
17526 int i = 1;
17527 return i;
17528
17529 ;
17530 return 0;
17531}
17532
17533_ACEOF
17534if ac_fn_c_try_compile "$LINENO"; then :
17535
17536 tmp_compiler_works="yes"
17537
17538else
17539
17540 tmp_compiler_works="no"
17541 echo " " >&6
17542 sed 's/^/cc-fail: /' conftest.err >&6
17543 echo " " >&6
17544
17545fi
17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 if test "$tmp_compiler_works" = "yes"; then
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549/* end confdefs.h. */
17550
17551
17552
17553int main (void)
17554{
17555
17556 int i = 1;
17557 return i;
17558
17559 ;
17560 return 0;
17561}
17562
17563_ACEOF
17564if ac_fn_c_try_link "$LINENO"; then :
17565
17566 tmp_compiler_works="yes"
17567
17568else
17569
17570 tmp_compiler_works="no"
17571 echo " " >&6
17572 sed 's/^/link-fail: /' conftest.err >&6
17573 echo " " >&6
17574
17575fi
17576rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578 fi
17579 if test "x$cross_compiling" != "xyes" &&
17580 test "$tmp_compiler_works" = "yes"; then
17581 if test "$cross_compiling" = yes; then :
17582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17584as_fn_error $? "cannot run test program while cross compiling
17585See \`config.log' for more details" "$LINENO" 5; }
17586else
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588/* end confdefs.h. */
17589
17590
17591# ifdef __STDC__
17592# include <stdlib.h>
17593# endif
17594
17595int main (void)
17596{
17597
17598 int i = 0;
17599 exit(i);
17600
17601 ;
17602 return 0;
17603}
17604
17605_ACEOF
17606if ac_fn_c_try_run "$LINENO"; then :
17607
17608 tmp_compiler_works="yes"
17609
17610else
17611
17612 tmp_compiler_works="no"
17613 echo " " >&6
17614 echo "run-fail: test program exited with status $ac_status" >&6
17615 echo " " >&6
17616
17617fi
17618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17619 conftest.$ac_objext conftest.beam conftest.$ac_ext
17620fi
17621
17622 fi
17623 if test "$tmp_compiler_works" = "yes"; then
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17626$as_echo "yes" >&6; }
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17628$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17629
17630 else
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633$as_echo "no" >&6; }
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17635$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17636 CPPFLAGS="$tmp_save_CPPFLAGS"
17637 CFLAGS="$tmp_save_CFLAGS"
17638
17639 fi
17640
17641 #
17642 fi
17643
17644
17645 #
17646 if test "$compiler_id" != "unknown"; then
17647 #
17648 tmp_save_CFLAGS="$CFLAGS"
17649 tmp_save_CPPFLAGS="$CPPFLAGS"
17650 #
17651 tmp_options=""
17652 tmp_CFLAGS="$CFLAGS"
17653 tmp_CPPFLAGS="$CPPFLAGS"
17654 honor_optimize_option="yes"
17655 #
17656 #
17657 if test "$want_optimize" = "assume_no" ||
17658 test "$want_optimize" = "assume_yes"; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17660$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17661
17662
17663 ac_var_match_word="no"
17664 for word1 in $tmp_CFLAGS; do
17665 for word2 in $flags_opt_all; do
17666 if test "$word1" = "$word2"; then
17667 ac_var_match_word="yes"
17668 fi
17669 done
17670 done
17671
17672 if test "$ac_var_match_word" = "yes"; then
17673
17674 honor_optimize_option="no"
17675
17676
17677 fi
17678
17679
17680
17681 ac_var_match_word="no"
17682 for word1 in $tmp_CPPFLAGS; do
17683 for word2 in $flags_opt_all; do
17684 if test "$word1" = "$word2"; then
17685 ac_var_match_word="yes"
17686 fi
17687 done
17688 done
17689
17690 if test "$ac_var_match_word" = "yes"; then
17691
17692 honor_optimize_option="no"
17693
17694
17695 fi
17696
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17698$as_echo "$honor_optimize_option" >&6; }
17699 if test "$honor_optimize_option" = "yes"; then
17700 if test "$want_optimize" = "assume_yes"; then
17701 want_optimize="yes"
17702 fi
17703 if test "$want_optimize" = "assume_no"; then
17704 want_optimize="no"
17705 fi
17706 fi
17707 fi
17708 #
17709 if test "$honor_optimize_option" = "yes"; then
17710
17711 ac_var_stripped=""
17712 for word1 in $tmp_CFLAGS; do
17713 ac_var_strip_word="no"
17714 for word2 in $flags_opt_all; do
17715 if test "$word1" = "$word2"; then
17716 ac_var_strip_word="yes"
17717 fi
17718 done
17719 if test "$ac_var_strip_word" = "no"; then
17720 ac_var_stripped="$ac_var_stripped $word1"
17721 fi
17722 done
17723 tmp_CFLAGS="$ac_var_stripped"
17724 squeeze tmp_CFLAGS
17725
17726
17727 ac_var_stripped=""
17728 for word1 in $tmp_CPPFLAGS; do
17729 ac_var_strip_word="no"
17730 for word2 in $flags_opt_all; do
17731 if test "$word1" = "$word2"; then
17732 ac_var_strip_word="yes"
17733 fi
17734 done
17735 if test "$ac_var_strip_word" = "no"; then
17736 ac_var_stripped="$ac_var_stripped $word1"
17737 fi
17738 done
17739 tmp_CPPFLAGS="$ac_var_stripped"
17740 squeeze tmp_CPPFLAGS
17741
17742 if test "$want_optimize" = "yes"; then
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17744$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17745 tmp_options="$flags_opt_yes"
17746 fi
17747 if test "$want_optimize" = "no"; then
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17749$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17750 tmp_options="$flags_opt_off"
17751 fi
17752 if test "$flags_prefer_cppflags" = "yes"; then
17753 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17754 CFLAGS="$tmp_CFLAGS"
17755 else
17756 CPPFLAGS="$tmp_CPPFLAGS"
17757 CFLAGS="$tmp_CFLAGS $tmp_options"
17758 fi
17759 squeeze CPPFLAGS
17760 squeeze CFLAGS
17761
17762 tmp_compiler_works="unknown"
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764/* end confdefs.h. */
17765
17766
17767
17768int main (void)
17769{
17770
17771 int i = 1;
17772 return i;
17773
17774 ;
17775 return 0;
17776}
17777
17778_ACEOF
17779if ac_fn_c_try_compile "$LINENO"; then :
17780
17781 tmp_compiler_works="yes"
17782
17783else
17784
17785 tmp_compiler_works="no"
17786 echo " " >&6
17787 sed 's/^/cc-fail: /' conftest.err >&6
17788 echo " " >&6
17789
17790fi
17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 if test "$tmp_compiler_works" = "yes"; then
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h. */
17795
17796
17797
17798int main (void)
17799{
17800
17801 int i = 1;
17802 return i;
17803
17804 ;
17805 return 0;
17806}
17807
17808_ACEOF
17809if ac_fn_c_try_link "$LINENO"; then :
17810
17811 tmp_compiler_works="yes"
17812
17813else
17814
17815 tmp_compiler_works="no"
17816 echo " " >&6
17817 sed 's/^/link-fail: /' conftest.err >&6
17818 echo " " >&6
17819
17820fi
17821rm -f core conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17823 fi
17824 if test "x$cross_compiling" != "xyes" &&
17825 test "$tmp_compiler_works" = "yes"; then
17826 if test "$cross_compiling" = yes; then :
17827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17829as_fn_error $? "cannot run test program while cross compiling
17830See \`config.log' for more details" "$LINENO" 5; }
17831else
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h. */
17834
17835
17836# ifdef __STDC__
17837# include <stdlib.h>
17838# endif
17839
17840int main (void)
17841{
17842
17843 int i = 0;
17844 exit(i);
17845
17846 ;
17847 return 0;
17848}
17849
17850_ACEOF
17851if ac_fn_c_try_run "$LINENO"; then :
17852
17853 tmp_compiler_works="yes"
17854
17855else
17856
17857 tmp_compiler_works="no"
17858 echo " " >&6
17859 echo "run-fail: test program exited with status $ac_status" >&6
17860 echo " " >&6
17861
17862fi
17863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17864 conftest.$ac_objext conftest.beam conftest.$ac_ext
17865fi
17866
17867 fi
17868 if test "$tmp_compiler_works" = "yes"; then
17869
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17871$as_echo "yes" >&6; }
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17873$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17874
17875 else
17876
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17878$as_echo "no" >&6; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17880$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17881 CPPFLAGS="$tmp_save_CPPFLAGS"
17882 CFLAGS="$tmp_save_CFLAGS"
17883
17884 fi
17885
17886 fi
17887 #
17888 fi
17889
17890
17891 #
17892 if test "$compiler_id" != "unknown"; then
17893 #
17894 tmp_save_CPPFLAGS="$CPPFLAGS"
17895 tmp_save_CFLAGS="$CFLAGS"
17896 tmp_CPPFLAGS=""
17897 tmp_CFLAGS=""
17898 #
17899 case "$compiler_id" in
17900 #
17901 CLANG)
17902 #
17903 if test "$want_warnings" = "yes"; then
17904 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17905 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17906 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17907 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17908 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17909 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17910 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17911 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17912 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17913 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17914 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17915 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17916 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17917 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17918 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17919 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17920 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17921 #
17922 if test "$compiler_num" -ge "101"; then
17923 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17924 fi
17925 #
17926 if test "$compiler_num" -ge "208"; then
17927 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17928 fi
17929 #
17930 if test "$compiler_num" -ge "209"; then
17931 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17932 fi
17933 #
17934 if test "$compiler_num" -ge "302"; then
17935 case $host_os in
17936 cygwin* | mingw*)
17937 ;;
17938 *)
17939 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17940 ;;
17941 esac
17942 fi
17943 #
17944 if test "$compiler_num" -ge "306"; then
17945 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17946 fi
17947 #
17948 if test "$compiler_num" -ge "309"; then
17949 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017950 # avoid the varargs warning, fixed in 4.0
17951 # https://bugs.llvm.org/show_bug.cgi?id=29140
17952 if test "$compiler_num" -lt "400"; then
17953 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17954 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017955 fi
17956 fi
17957 ;;
17958 #
17959 DEC_C)
17960 #
17961 if test "$want_warnings" = "yes"; then
17962 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17963 fi
17964 ;;
17965 #
17966 GNU_C)
17967 #
17968 if test "$want_warnings" = "yes"; then
17969 #
17970 if test "x$cross_compiling" != "xyes" ||
17971 test "$compiler_num" -ge "300"; then
17972 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17973 fi
17974 #
17975 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17976 #
17977 if test "$compiler_num" -ge "104"; then
17978 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17979 if test "x$cross_compiling" != "xyes" ||
17980 test "$compiler_num" -ge "300"; then
17981 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17982 fi
17983 fi
17984 #
17985 if test "$compiler_num" -ge "207"; then
17986 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17987 if test "x$cross_compiling" != "xyes" ||
17988 test "$compiler_num" -ge "300"; then
17989 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17990 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17991 fi
17992 fi
17993 #
17994 if test "$compiler_num" -ge "295"; then
17995 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17996 fi
17997 #
17998 if test "$compiler_num" -ge "296"; then
17999 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18000 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18001 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18002 fi
18003 #
18004 if test "$compiler_num" -ge "297"; then
18005 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18006 fi
18007 #
18008 if test "$compiler_num" -ge "300"; then
18009 tmp_CFLAGS="$tmp_CFLAGS"
18010 fi
18011 #
18012 if test "$compiler_num" -ge "303"; then
18013 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18014 fi
18015 #
18016 if test "$compiler_num" -ge "304"; then
18017 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18018 fi
18019 #
18020 if test "$compiler_num" -ge "400"; then
18021 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18022 fi
18023 #
18024 if test "$compiler_num" -ge "402"; then
18025 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18026 fi
18027 #
18028 if test "$compiler_num" -ge "403"; then
18029 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18030 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18031 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18032 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18033 fi
18034 #
18035 if test "$compiler_num" -ge "405"; then
18036 if test "$curl_cv_have_def__WIN32" = "yes"; then
18037 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18038 fi
18039 fi
18040 #
18041 if test "$compiler_num" -ge "406"; then
18042 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18043 fi
18044 #
18045 fi
18046 #
18047 if test "$compiler_num" -ge "300"; then
18048 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18049 else
18050 if test "x$cross_compiling" = "xyes"; then
18051 if test "$compiler_num" -ge "104"; then
18052 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18053 fi
18054 if test "$compiler_num" -ge "207"; then
18055 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18056 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18057 fi
18058 fi
18059 fi
18060 ;;
18061 #
18062 HP_UX_C)
18063 #
18064 if test "$want_warnings" = "yes"; then
18065 tmp_CFLAGS="$tmp_CFLAGS +w1"
18066 fi
18067 ;;
18068 #
18069 IBM_C)
18070 #
18071 tmp_CFLAGS="$tmp_CFLAGS"
18072 ;;
18073 #
18074 INTEL_UNIX_C)
18075 #
18076 if test "$want_warnings" = "yes"; then
18077 if test "$compiler_num" -gt "600"; then
18078 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18079 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18080 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18081 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18082 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18083 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18084 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18085 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18086 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18087 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18088 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18089 fi
18090 fi
18091 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18092 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18093 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18094 if test "$compiler_num" -ge "1000"; then
18095 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18096 fi
18097 ;;
18098 #
18099 INTEL_WINDOWS_C)
18100 #
18101 tmp_CFLAGS="$tmp_CFLAGS"
18102 ;;
18103 #
18104 LCC)
18105 #
18106 if test "$want_warnings" = "yes"; then
18107 tmp_CFLAGS="$tmp_CFLAGS"
18108 fi
18109 ;;
18110 #
18111 SGI_MIPS_C)
18112 #
18113 if test "$want_warnings" = "yes"; then
18114 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18115 fi
18116 ;;
18117 #
18118 SGI_MIPSPRO_C)
18119 #
18120 if test "$want_warnings" = "yes"; then
18121 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18122 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18123 fi
18124 ;;
18125 #
18126 SUNPRO_C)
18127 #
18128 if test "$want_warnings" = "yes"; then
18129 tmp_CFLAGS="$tmp_CFLAGS -v"
18130 fi
18131 ;;
18132 #
18133 TINY_C)
18134 #
18135 if test "$want_warnings" = "yes"; then
18136 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18137 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18138 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18139 fi
18140 ;;
18141 #
18142 WATCOM_UNIX_C)
18143 #
18144 if test "$want_warnings" = "yes"; then
18145 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18146 fi
18147 ;;
18148 #
18149 WATCOM_WINDOWS_C)
18150 #
18151 tmp_CFLAGS="$tmp_CFLAGS"
18152 ;;
18153 #
18154 esac
18155 #
18156 squeeze tmp_CPPFLAGS
18157 squeeze tmp_CFLAGS
18158 #
18159 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18161$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18162 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18163 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18164 squeeze CPPFLAGS
18165 squeeze CFLAGS
18166
18167 tmp_compiler_works="unknown"
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169/* end confdefs.h. */
18170
18171
18172
18173int main (void)
18174{
18175
18176 int i = 1;
18177 return i;
18178
18179 ;
18180 return 0;
18181}
18182
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"; then :
18185
18186 tmp_compiler_works="yes"
18187
18188else
18189
18190 tmp_compiler_works="no"
18191 echo " " >&6
18192 sed 's/^/cc-fail: /' conftest.err >&6
18193 echo " " >&6
18194
18195fi
18196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197 if test "$tmp_compiler_works" = "yes"; then
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199/* end confdefs.h. */
18200
18201
18202
18203int main (void)
18204{
18205
18206 int i = 1;
18207 return i;
18208
18209 ;
18210 return 0;
18211}
18212
18213_ACEOF
18214if ac_fn_c_try_link "$LINENO"; then :
18215
18216 tmp_compiler_works="yes"
18217
18218else
18219
18220 tmp_compiler_works="no"
18221 echo " " >&6
18222 sed 's/^/link-fail: /' conftest.err >&6
18223 echo " " >&6
18224
18225fi
18226rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 fi
18229 if test "x$cross_compiling" != "xyes" &&
18230 test "$tmp_compiler_works" = "yes"; then
18231 if test "$cross_compiling" = yes; then :
18232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18234as_fn_error $? "cannot run test program while cross compiling
18235See \`config.log' for more details" "$LINENO" 5; }
18236else
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238/* end confdefs.h. */
18239
18240
18241# ifdef __STDC__
18242# include <stdlib.h>
18243# endif
18244
18245int main (void)
18246{
18247
18248 int i = 0;
18249 exit(i);
18250
18251 ;
18252 return 0;
18253}
18254
18255_ACEOF
18256if ac_fn_c_try_run "$LINENO"; then :
18257
18258 tmp_compiler_works="yes"
18259
18260else
18261
18262 tmp_compiler_works="no"
18263 echo " " >&6
18264 echo "run-fail: test program exited with status $ac_status" >&6
18265 echo " " >&6
18266
18267fi
18268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18269 conftest.$ac_objext conftest.beam conftest.$ac_ext
18270fi
18271
18272 fi
18273 if test "$tmp_compiler_works" = "yes"; then
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276$as_echo "yes" >&6; }
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18278$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18279
18280 else
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283$as_echo "no" >&6; }
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18285$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18286 CPPFLAGS="$tmp_save_CPPFLAGS"
18287 CFLAGS="$tmp_save_CFLAGS"
18288
18289 fi
18290
18291 fi
18292 #
18293 fi
18294
18295
18296if test "$compiler_id" = "INTEL_UNIX_C"; then
18297 #
18298 if test "$compiler_num" -ge "1000"; then
18299 CFLAGS="$CFLAGS -shared-intel"
18300 elif test "$compiler_num" -ge "900"; then
18301 CFLAGS="$CFLAGS -i-dynamic"
18302 fi
18303 #
18304fi
18305
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18308$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310/* end confdefs.h. */
18311
18312
18313
18314int main (void)
18315{
18316
18317 force compilation error
18318
18319 ;
18320 return 0;
18321}
18322
18323_ACEOF
18324if ac_fn_c_try_compile "$LINENO"; then :
18325
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327$as_echo "no" >&6; }
18328 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18329
18330else
18331
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18333$as_echo "yes" >&6; }
18334
18335fi
18336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18340$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342/* end confdefs.h. */
18343
18344
18345 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18346
18347int main (void)
18348{
18349
18350 bad_t dummy;
18351
18352 ;
18353 return 0;
18354}
18355
18356_ACEOF
18357if ac_fn_c_try_compile "$LINENO"; then :
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360$as_echo "no" >&6; }
18361 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18362
18363else
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18366$as_echo "yes" >&6; }
18367
18368fi
18369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370
18371
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18373$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375/* end confdefs.h. */
18376
18377
18378# include <stdlib.h>
18379 int rand(int n);
18380 int rand(int n)
18381 {
18382 if(n)
18383 return ++n;
18384 else
18385 return n;
18386 }
18387
18388int main (void)
18389{
18390
18391 int i[2]={0,0};
18392 int j = rand(i[0]);
18393 if(j)
18394 return j;
18395
18396 ;
18397 return 0;
18398}
18399
18400_ACEOF
18401if ac_fn_c_try_compile "$LINENO"; then :
18402
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
18405 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18406
18407else
18408
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18410$as_echo "yes" >&6; }
18411
18412fi
18413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414
18415
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18417$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18418 supports_symbol_hiding="no"
18419 symbol_hiding_CFLAGS=""
18420 symbol_hiding_EXTERN=""
18421 tmp_CFLAGS=""
18422 tmp_EXTERN=""
18423 case "$compiler_id" in
18424 CLANG)
18425 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18426 tmp_CFLAGS="-fvisibility=hidden"
18427 supports_symbol_hiding="yes"
18428 ;;
18429 GNU_C)
18430 if test "$compiler_num" -ge "304"; then
18431 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18432 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18433 tmp_CFLAGS="-fvisibility=hidden"
18434 supports_symbol_hiding="yes"
18435 fi
18436 fi
18437 ;;
18438 INTEL_UNIX_C)
18439 if test "$compiler_num" -ge "900"; then
18440 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18441 tmp_save_CFLAGS="$CFLAGS"
18442 CFLAGS="$CFLAGS -fvisibility=hidden"
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444/* end confdefs.h. */
18445
18446
18447# include <stdio.h>
18448
18449int main (void)
18450{
18451
18452 printf("icc fvisibility bug test");
18453
18454 ;
18455 return 0;
18456}
18457
18458_ACEOF
18459if ac_fn_c_try_link "$LINENO"; then :
18460
18461 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18462 tmp_CFLAGS="-fvisibility=hidden"
18463 supports_symbol_hiding="yes"
18464
18465fi
18466rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18468 CFLAGS="$tmp_save_CFLAGS"
18469 fi
18470 fi
18471 ;;
18472 SUNPRO_C)
18473 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18474 tmp_EXTERN="__global"
18475 tmp_CFLAGS="-xldscope=hidden"
18476 supports_symbol_hiding="yes"
18477 fi
18478 ;;
18479 esac
18480 if test "$supports_symbol_hiding" = "yes"; then
18481 tmp_save_CFLAGS="$CFLAGS"
18482 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18483 squeeze CFLAGS
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485/* end confdefs.h. */
18486
18487
18488 $tmp_EXTERN char *dummy(char *buff);
18489 char *dummy(char *buff)
18490 {
18491 if(buff)
18492 return ++buff;
18493 else
18494 return buff;
18495 }
18496
18497int main (void)
18498{
18499
18500 char b[16];
18501 char *r = dummy(&b[0]);
18502 if(r)
18503 return (int)*r;
18504
18505 ;
18506 return 0;
18507}
18508
18509_ACEOF
18510if ac_fn_c_try_compile "$LINENO"; then :
18511
18512 supports_symbol_hiding="yes"
18513 if test -f conftest.err; then
18514 grep 'visibility' conftest.err >/dev/null
18515 if test "$?" -eq "0"; then
18516 supports_symbol_hiding="no"
18517 fi
18518 fi
18519
18520else
18521
18522 supports_symbol_hiding="no"
18523 echo " " >&6
18524 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18525 sed 's/^/cc-err: /' conftest.err >&6
18526 echo " " >&6
18527
18528fi
18529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530 CFLAGS="$tmp_save_CFLAGS"
18531 fi
18532 if test "$supports_symbol_hiding" = "yes"; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18534$as_echo "yes" >&6; }
18535 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18536 symbol_hiding_EXTERN="$tmp_EXTERN"
18537 else
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539$as_echo "no" >&6; }
18540 fi
18541
18542
18543
18544 supports_curldebug="unknown"
18545 if test "$want_curldebug" = "yes"; then
18546 if test "x$enable_shared" != "xno" &&
18547 test "x$enable_shared" != "xyes"; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18549$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18550 supports_curldebug="no"
18551 fi
18552 if test "x$enable_static" != "xno" &&
18553 test "x$enable_static" != "xyes"; then
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18555$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18556 supports_curldebug="no"
18557 fi
18558 if test "$supports_curldebug" != "no"; then
18559 if test "$enable_shared" = "yes" &&
18560 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18561 supports_curldebug="no"
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18563$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18564 fi
18565 fi
18566 fi
18567 #
18568 if test "$want_curldebug" = "yes"; then
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18570$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18571 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18573$as_echo "$supports_curldebug" >&6; }
18574 if test "$supports_curldebug" = "no"; then
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18576$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18577 want_curldebug="no"
18578 fi
18579 fi
18580 #
18581 if test "$want_curldebug" = "yes"; then
18582 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18583 squeeze CPPFLAGS
18584 fi
18585 if test "$want_debug" = "yes"; then
18586 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18587 squeeze CPPFLAGS
18588 fi
18589
18590 if test x$want_curldebug = xyes; then
18591 CURLDEBUG_TRUE=
18592 CURLDEBUG_FALSE='#'
18593else
18594 CURLDEBUG_TRUE='#'
18595 CURLDEBUG_FALSE=
18596fi
18597
18598
18599supports_unittests=yes
18600# cross-compilation of unit tests static library/programs fails when
18601# libcurl shared library is built. This might be due to a libtool or
18602# automake issue. In this case we disable unit tests.
18603if test "x$cross_compiling" != "xno" &&
18604 test "x$enable_shared" != "xno"; then
18605 supports_unittests=no
18606fi
18607
18608# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18609# a problem related with OpenSSL headers and library versions not matching.
18610# Disable unit tests while time to further investigate this is found.
18611case $host in
18612 mips-sgi-irix6.5)
18613 if test "$compiler_id" = "GNU_C"; then
18614 supports_unittests=no
18615 fi
18616 ;;
18617esac
18618
18619# All AIX autobuilds fails unit tests linking against unittests library
18620# due to unittests library being built with no symbols or members. Libtool ?
18621# Disable unit tests while time to further investigate this is found.
18622case $host_os in
18623 aix*)
18624 supports_unittests=no
18625 ;;
18626esac
18627
18628if test "x$want_debug" = "xyes" &&
18629 test "x$supports_unittests" = "xyes"; then
18630 want_unittests=yes
18631else
18632 want_unittests=no
18633fi
18634 if test x$want_unittests = xyes; then
18635 BUILD_UNITTESTS_TRUE=
18636 BUILD_UNITTESTS_FALSE='#'
18637else
18638 BUILD_UNITTESTS_TRUE='#'
18639 BUILD_UNITTESTS_FALSE=
18640fi
18641
18642
18643
18644
18645
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18647$as_echo_n "checking for windows.h... " >&6; }
18648if ${curl_cv_header_windows_h+:} false; then :
18649 $as_echo_n "(cached) " >&6
18650else
18651
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h. */
18654
18655
18656#undef inline
18657#ifndef WIN32_LEAN_AND_MEAN
18658#define WIN32_LEAN_AND_MEAN
18659#endif
18660#include <windows.h>
18661
18662int main (void)
18663{
18664
18665#if defined(__CYGWIN__) || defined(__CEGCC__)
18666 HAVE_WINDOWS_H shall not be defined.
18667#else
18668 int dummy=2*WINVER;
18669#endif
18670
18671 ;
18672 return 0;
18673}
18674
18675_ACEOF
18676if ac_fn_c_try_compile "$LINENO"; then :
18677
18678 curl_cv_header_windows_h="yes"
18679
18680else
18681
18682 curl_cv_header_windows_h="no"
18683
18684fi
18685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686
18687fi
18688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18689$as_echo "$curl_cv_header_windows_h" >&6; }
18690 case "$curl_cv_header_windows_h" in
18691 yes)
18692
18693cat >>confdefs.h <<_ACEOF
18694#define HAVE_WINDOWS_H 1
18695_ACEOF
18696
18697 ;;
18698 esac
18699
18700
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18702$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18703if ${curl_cv_native_windows+:} false; then :
18704 $as_echo_n "(cached) " >&6
18705else
18706
18707 if test "$curl_cv_header_windows_h" = "no"; then
18708 curl_cv_native_windows="no"
18709 else
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711/* end confdefs.h. */
18712
18713
18714
18715int main (void)
18716{
18717
18718#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18719 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18720 int dummy=1;
18721#else
18722 Not a native Windows build target.
18723#endif
18724
18725 ;
18726 return 0;
18727}
18728
18729_ACEOF
18730if ac_fn_c_try_compile "$LINENO"; then :
18731
18732 curl_cv_native_windows="yes"
18733
18734else
18735
18736 curl_cv_native_windows="no"
18737
18738fi
18739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 fi
18741
18742fi
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18744$as_echo "$curl_cv_native_windows" >&6; }
18745 if test "x$curl_cv_native_windows" = xyes; then
18746 DOING_NATIVE_WINDOWS_TRUE=
18747 DOING_NATIVE_WINDOWS_FALSE='#'
18748else
18749 DOING_NATIVE_WINDOWS_TRUE='#'
18750 DOING_NATIVE_WINDOWS_FALSE=
18751fi
18752
18753
18754case X-"$curl_cv_native_windows" in
18755 X-yes)
18756
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18758$as_echo_n "checking for winsock.h... " >&6; }
18759if ${curl_cv_header_winsock_h+:} false; then :
18760 $as_echo_n "(cached) " >&6
18761else
18762
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764/* end confdefs.h. */
18765
18766
18767#undef inline
18768#ifndef WIN32_LEAN_AND_MEAN
18769#define WIN32_LEAN_AND_MEAN
18770#endif
18771#include <windows.h>
18772#include <winsock.h>
18773
18774int main (void)
18775{
18776
18777#if defined(__CYGWIN__) || defined(__CEGCC__)
18778 HAVE_WINSOCK_H shall not be defined.
18779#else
18780 int dummy=WSACleanup();
18781#endif
18782
18783 ;
18784 return 0;
18785}
18786
18787_ACEOF
18788if ac_fn_c_try_compile "$LINENO"; then :
18789
18790 curl_cv_header_winsock_h="yes"
18791
18792else
18793
18794 curl_cv_header_winsock_h="no"
18795
18796fi
18797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18798
18799fi
18800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18801$as_echo "$curl_cv_header_winsock_h" >&6; }
18802 case "$curl_cv_header_winsock_h" in
18803 yes)
18804
18805cat >>confdefs.h <<_ACEOF
18806#define HAVE_WINSOCK_H 1
18807_ACEOF
18808
18809 ;;
18810 esac
18811
18812
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18814$as_echo_n "checking for winsock2.h... " >&6; }
18815if ${curl_cv_header_winsock2_h+:} false; then :
18816 $as_echo_n "(cached) " >&6
18817else
18818
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820/* end confdefs.h. */
18821
18822
18823#undef inline
18824#ifndef WIN32_LEAN_AND_MEAN
18825#define WIN32_LEAN_AND_MEAN
18826#endif
18827#include <windows.h>
18828#include <winsock2.h>
18829
18830int main (void)
18831{
18832
18833#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18834 HAVE_WINSOCK2_H shall not be defined.
18835#else
18836 int dummy=2*IPPROTO_ESP;
18837#endif
18838
18839 ;
18840 return 0;
18841}
18842
18843_ACEOF
18844if ac_fn_c_try_compile "$LINENO"; then :
18845
18846 curl_cv_header_winsock2_h="yes"
18847
18848else
18849
18850 curl_cv_header_winsock2_h="no"
18851
18852fi
18853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18854
18855fi
18856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18857$as_echo "$curl_cv_header_winsock2_h" >&6; }
18858 case "$curl_cv_header_winsock2_h" in
18859 yes)
18860
18861cat >>confdefs.h <<_ACEOF
18862#define HAVE_WINSOCK2_H 1
18863_ACEOF
18864
18865 ;;
18866 esac
18867
18868
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18870$as_echo_n "checking for ws2tcpip.h... " >&6; }
18871if ${curl_cv_header_ws2tcpip_h+:} false; then :
18872 $as_echo_n "(cached) " >&6
18873else
18874
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h. */
18877
18878
18879#undef inline
18880#ifndef WIN32_LEAN_AND_MEAN
18881#define WIN32_LEAN_AND_MEAN
18882#endif
18883#include <windows.h>
18884#include <winsock2.h>
18885#include <ws2tcpip.h>
18886
18887int main (void)
18888{
18889
18890#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18891 HAVE_WS2TCPIP_H shall not be defined.
18892#else
18893 int dummy=2*IP_PKTINFO;
18894#endif
18895
18896 ;
18897 return 0;
18898}
18899
18900_ACEOF
18901if ac_fn_c_try_compile "$LINENO"; then :
18902
18903 curl_cv_header_ws2tcpip_h="yes"
18904
18905else
18906
18907 curl_cv_header_ws2tcpip_h="no"
18908
18909fi
18910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911
18912fi
18913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18914$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18915 case "$curl_cv_header_ws2tcpip_h" in
18916 yes)
18917
18918cat >>confdefs.h <<_ACEOF
18919#define HAVE_WS2TCPIP_H 1
18920_ACEOF
18921
18922 ;;
18923 esac
18924
18925
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18927$as_echo_n "checking for winldap.h... " >&6; }
18928if ${curl_cv_header_winldap_h+:} false; then :
18929 $as_echo_n "(cached) " >&6
18930else
18931
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933/* end confdefs.h. */
18934
18935
18936#undef inline
18937#ifdef HAVE_WINDOWS_H
18938#ifndef WIN32_LEAN_AND_MEAN
18939#define WIN32_LEAN_AND_MEAN
18940#endif
18941#include <windows.h>
18942#endif
18943#include <winldap.h>
18944
18945int main (void)
18946{
18947
18948#if defined(__CYGWIN__) || defined(__CEGCC__)
18949 HAVE_WINLDAP_H shall not be defined.
18950#else
18951 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18952 ULONG res = ldap_unbind(ldp);
18953#endif
18954
18955 ;
18956 return 0;
18957}
18958
18959_ACEOF
18960if ac_fn_c_try_compile "$LINENO"; then :
18961
18962 curl_cv_header_winldap_h="yes"
18963
18964else
18965
18966 curl_cv_header_winldap_h="no"
18967
18968fi
18969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970
18971fi
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18973$as_echo "$curl_cv_header_winldap_h" >&6; }
18974 case "$curl_cv_header_winldap_h" in
18975 yes)
18976
18977cat >>confdefs.h <<_ACEOF
18978#define HAVE_WINLDAP_H 1
18979_ACEOF
18980
18981 ;;
18982 esac
18983
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18986$as_echo_n "checking for winber.h... " >&6; }
18987if ${curl_cv_header_winber_h+:} false; then :
18988 $as_echo_n "(cached) " >&6
18989else
18990
18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992/* end confdefs.h. */
18993
18994
18995#undef inline
18996#ifdef HAVE_WINDOWS_H
18997#ifndef WIN32_LEAN_AND_MEAN
18998#define WIN32_LEAN_AND_MEAN
18999#endif
19000#include <windows.h>
19001#endif
19002#include <winldap.h>
19003#include <winber.h>
19004
19005int main (void)
19006{
19007
19008#if defined(__CYGWIN__) || defined(__CEGCC__)
19009 HAVE_WINBER_H shall not be defined.
19010#else
19011 BERVAL *bvp = NULL;
19012 BerElement *bep = ber_init(bvp);
19013 ber_free(bep, 1);
19014#endif
19015
19016 ;
19017 return 0;
19018}
19019
19020_ACEOF
19021if ac_fn_c_try_compile "$LINENO"; then :
19022
19023 curl_cv_header_winber_h="yes"
19024
19025else
19026
19027 curl_cv_header_winber_h="no"
19028
19029fi
19030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031
19032fi
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19034$as_echo "$curl_cv_header_winber_h" >&6; }
19035 case "$curl_cv_header_winber_h" in
19036 yes)
19037
19038cat >>confdefs.h <<_ACEOF
19039#define HAVE_WINBER_H 1
19040_ACEOF
19041
19042 ;;
19043 esac
19044
19045 ;;
19046 *)
19047 curl_cv_header_winsock_h="no"
19048 curl_cv_header_winsock2_h="no"
19049 curl_cv_header_ws2tcpip_h="no"
19050 curl_cv_header_winldap_h="no"
19051 curl_cv_header_winber_h="no"
19052 ;;
19053esac
19054
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19056$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19057 curl_win32_file_api="no"
19058 if test "$curl_cv_header_windows_h" = "yes"; then
19059 if test x"$enable_largefile" != "xno"; then
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h. */
19062
19063
19064
19065int main (void)
19066{
19067
19068#if !defined(_WIN32_WCE) && \
19069 (defined(__MINGW32__) || \
19070 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19071 int dummy=1;
19072#else
19073 WIN32 large file API not supported.
19074#endif
19075
19076 ;
19077 return 0;
19078}
19079
19080_ACEOF
19081if ac_fn_c_try_compile "$LINENO"; then :
19082
19083 curl_win32_file_api="win32_large_files"
19084
19085fi
19086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19087 fi
19088 if test "$curl_win32_file_api" = "no"; then
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090/* end confdefs.h. */
19091
19092
19093
19094int main (void)
19095{
19096
19097#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19098 int dummy=1;
19099#else
19100 WIN32 small file API not supported.
19101#endif
19102
19103 ;
19104 return 0;
19105}
19106
19107_ACEOF
19108if ac_fn_c_try_compile "$LINENO"; then :
19109
19110 curl_win32_file_api="win32_small_files"
19111
19112fi
19113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 fi
19115 fi
19116 case "$curl_win32_file_api" in
19117 win32_large_files)
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19119$as_echo "yes (large file enabled)" >&6; }
19120
19121cat >>confdefs.h <<_ACEOF
19122#define USE_WIN32_LARGE_FILES 1
19123_ACEOF
19124
19125 ;;
19126 win32_small_files)
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19128$as_echo "yes (large file disabled)" >&6; }
19129
19130cat >>confdefs.h <<_ACEOF
19131#define USE_WIN32_SMALL_FILES 1
19132_ACEOF
19133
19134 ;;
19135 *)
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137$as_echo "no" >&6; }
19138 ;;
19139 esac
19140
19141
19142
19143
19144 tst_cflags="no"
19145 case $host_os in
19146 darwin*)
19147 tst_cflags="yes"
19148 ;;
19149 esac
19150
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19152$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19154$as_echo "$tst_cflags" >&6; };
19155
19156 if test "$tst_cflags" = "yes"; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19158$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19159 min=""
19160 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19161 min="-mmacosx-version-min=10.8"
19162 CFLAGS="$CFLAGS $min"
19163 fi
19164 if test -z "$min"; then
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19166$as_echo "set by user" >&6; }
19167 else
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19169$as_echo "$min set" >&6; }
19170 fi
19171
19172 old_CFLAGS=$CFLAGS
19173 CFLAGS="$CFLAGS -Werror=partial-availability"
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19175$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177/* end confdefs.h. */
19178
19179int main (void)
19180{
19181
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186if ac_fn_c_try_compile "$LINENO"; then :
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188$as_echo "yes" >&6; }
19189else
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19191$as_echo "no" >&6; }
19192 CFLAGS=$old_CFLAGS
19193fi
19194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19195 fi
19196
19197
19198
Alex Deymo486467e2017-12-19 19:04:07 +010019199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19200$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202/* end confdefs.h. */
19203
19204
19205#include <stdlib.h>
19206
19207int main (void)
19208{
19209
19210 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19211
19212 ;
19213 return 0;
19214}
19215
19216_ACEOF
19217if ac_fn_c_try_compile "$LINENO"; then :
19218
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220$as_echo "yes" >&6; }
19221
19222cat >>confdefs.h <<_ACEOF
19223#define HAVE_BUILTIN_AVAILABLE 1
19224_ACEOF
19225
19226
19227else
19228
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230$as_echo "no" >&6; }
19231
19232fi
19233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234
19235
Elliott Hughes82be86d2017-09-20 17:00:17 -070019236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19237$as_echo_n "checking whether to support http... " >&6; }
19238# Check whether --enable-http was given.
19239if test "${enable_http+set}" = set; then :
19240 enableval=$enable_http; case "$enableval" in
19241 no)
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243$as_echo "no" >&6; }
19244
19245$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19246
19247 disable_http="yes"
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19249$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19250 CURL_DISABLE_HTTP=1
19251
19252
19253$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19254
19255 CURL_DISABLE_RTSP=1
19256
19257 ;;
19258 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19259$as_echo "yes" >&6; }
19260 ;;
19261 esac
19262else
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19264$as_echo "yes" >&6; }
19265
19266fi
19267
19268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19269$as_echo_n "checking whether to support ftp... " >&6; }
19270# Check whether --enable-ftp was given.
19271if test "${enable_ftp+set}" = set; then :
19272 enableval=$enable_ftp; case "$enableval" in
19273 no)
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275$as_echo "no" >&6; }
19276
19277$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19278
19279 CURL_DISABLE_FTP=1
19280
19281 ;;
19282 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19283$as_echo "yes" >&6; }
19284 ;;
19285 esac
19286else
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19288$as_echo "yes" >&6; }
19289
19290fi
19291
19292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19293$as_echo_n "checking whether to support file... " >&6; }
19294# Check whether --enable-file was given.
19295if test "${enable_file+set}" = set; then :
19296 enableval=$enable_file; case "$enableval" in
19297 no)
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299$as_echo "no" >&6; }
19300
19301$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19302
19303 CURL_DISABLE_FILE=1
19304
19305 ;;
19306 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19307$as_echo "yes" >&6; }
19308 ;;
19309 esac
19310else
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19312$as_echo "yes" >&6; }
19313
19314fi
19315
19316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19317$as_echo_n "checking whether to support ldap... " >&6; }
19318# Check whether --enable-ldap was given.
19319if test "${enable_ldap+set}" = set; then :
19320 enableval=$enable_ldap; case "$enableval" in
19321 no)
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323$as_echo "no" >&6; }
19324
19325$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19326
19327 CURL_DISABLE_LDAP=1
19328
19329 ;;
19330 *)
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332$as_echo "yes" >&6; }
19333 ;;
19334 esac
19335else
19336
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19338$as_echo "yes" >&6; }
19339
19340fi
19341
19342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19343$as_echo_n "checking whether to support ldaps... " >&6; }
19344# Check whether --enable-ldaps was given.
19345if test "${enable_ldaps+set}" = set; then :
19346 enableval=$enable_ldaps; case "$enableval" in
19347 no)
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349$as_echo "no" >&6; }
19350
19351$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19352
19353 CURL_DISABLE_LDAPS=1
19354
19355 ;;
19356 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19358$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19359
19360$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19361
19362 CURL_DISABLE_LDAPS=1
19363
19364 else
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19366$as_echo "yes" >&6; }
19367
19368$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19369
19370 HAVE_LDAP_SSL=1
19371
19372 fi
19373 ;;
19374 esac
19375else
19376
19377 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379$as_echo "no" >&6; }
19380
19381$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19382
19383 CURL_DISABLE_LDAPS=1
19384
19385 else
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19387$as_echo "yes" >&6; }
19388
19389$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19390
19391 HAVE_LDAP_SSL=1
19392
19393 fi
19394
19395fi
19396
19397
19398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19399$as_echo_n "checking whether to support rtsp... " >&6; }
19400# Check whether --enable-rtsp was given.
19401if test "${enable_rtsp+set}" = set; then :
19402 enableval=$enable_rtsp; case "$enableval" in
19403 no)
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19405$as_echo "no" >&6; }
19406
19407$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19408
19409 CURL_DISABLE_RTSP=1
19410
19411 ;;
19412 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19413 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19414 else
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416$as_echo "yes" >&6; }
19417 curl_rtsp_msg="enabled"
19418 fi
19419 ;;
19420 esac
19421else
19422 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19424$as_echo "yes" >&6; }
19425 curl_rtsp_msg="enabled"
19426 else
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428$as_echo "no" >&6; }
19429 fi
19430
19431fi
19432
19433
19434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19435$as_echo_n "checking whether to support proxies... " >&6; }
19436# Check whether --enable-proxy was given.
19437if test "${enable_proxy+set}" = set; then :
19438 enableval=$enable_proxy; case "$enableval" in
19439 no)
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441$as_echo "no" >&6; }
19442
19443$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19444
19445 CURL_DISABLE_PROXY=1
19446
19447 ;;
19448 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19449$as_echo "yes" >&6; }
19450 ;;
19451 esac
19452else
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454$as_echo "yes" >&6; }
19455
19456fi
19457
19458
19459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19460$as_echo_n "checking whether to support dict... " >&6; }
19461# Check whether --enable-dict was given.
19462if test "${enable_dict+set}" = set; then :
19463 enableval=$enable_dict; case "$enableval" in
19464 no)
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19466$as_echo "no" >&6; }
19467
19468$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19469
19470 CURL_DISABLE_DICT=1
19471
19472 ;;
19473 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474$as_echo "yes" >&6; }
19475 ;;
19476 esac
19477else
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19479$as_echo "yes" >&6; }
19480
19481fi
19482
19483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19484$as_echo_n "checking whether to support telnet... " >&6; }
19485# Check whether --enable-telnet was given.
19486if test "${enable_telnet+set}" = set; then :
19487 enableval=$enable_telnet; case "$enableval" in
19488 no)
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19490$as_echo "no" >&6; }
19491
19492$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19493
19494 CURL_DISABLE_TELNET=1
19495
19496 ;;
19497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19498$as_echo "yes" >&6; }
19499 ;;
19500 esac
19501else
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503$as_echo "yes" >&6; }
19504
19505fi
19506
19507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19508$as_echo_n "checking whether to support tftp... " >&6; }
19509# Check whether --enable-tftp was given.
19510if test "${enable_tftp+set}" = set; then :
19511 enableval=$enable_tftp; case "$enableval" in
19512 no)
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19514$as_echo "no" >&6; }
19515
19516$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19517
19518 CURL_DISABLE_TFTP=1
19519
19520 ;;
19521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19522$as_echo "yes" >&6; }
19523 ;;
19524 esac
19525else
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19527$as_echo "yes" >&6; }
19528
19529fi
19530
19531
19532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19533$as_echo_n "checking whether to support pop3... " >&6; }
19534# Check whether --enable-pop3 was given.
19535if test "${enable_pop3+set}" = set; then :
19536 enableval=$enable_pop3; case "$enableval" in
19537 no)
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539$as_echo "no" >&6; }
19540
19541$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19542
19543 CURL_DISABLE_POP3=1
19544
19545 ;;
19546 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19547$as_echo "yes" >&6; }
19548 ;;
19549 esac
19550else
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19552$as_echo "yes" >&6; }
19553
19554fi
19555
19556
19557
19558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19559$as_echo_n "checking whether to support imap... " >&6; }
19560# Check whether --enable-imap was given.
19561if test "${enable_imap+set}" = set; then :
19562 enableval=$enable_imap; case "$enableval" in
19563 no)
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19565$as_echo "no" >&6; }
19566
19567$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19568
19569 CURL_DISABLE_IMAP=1
19570
19571 ;;
19572 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19573$as_echo "yes" >&6; }
19574 ;;
19575 esac
19576else
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19578$as_echo "yes" >&6; }
19579
19580fi
19581
19582
19583
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19585$as_echo_n "checking whether to support smb... " >&6; }
19586# Check whether --enable-smb was given.
19587if test "${enable_smb+set}" = set; then :
19588 enableval=$enable_smb; case "$enableval" in
19589 no)
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19591$as_echo "no" >&6; }
19592
19593$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19594
19595 CURL_DISABLE_SMB=1
19596
19597 ;;
19598 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19599$as_echo "yes" >&6; }
19600 ;;
19601 esac
19602else
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604$as_echo "yes" >&6; }
19605
19606fi
19607
19608
19609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19610$as_echo_n "checking whether to support smtp... " >&6; }
19611# Check whether --enable-smtp was given.
19612if test "${enable_smtp+set}" = set; then :
19613 enableval=$enable_smtp; case "$enableval" in
19614 no)
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616$as_echo "no" >&6; }
19617
19618$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19619
19620 CURL_DISABLE_SMTP=1
19621
19622 ;;
19623 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624$as_echo "yes" >&6; }
19625 ;;
19626 esac
19627else
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19629$as_echo "yes" >&6; }
19630
19631fi
19632
19633
19634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19635$as_echo_n "checking whether to support gopher... " >&6; }
19636# Check whether --enable-gopher was given.
19637if test "${enable_gopher+set}" = set; then :
19638 enableval=$enable_gopher; case "$enableval" in
19639 no)
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19641$as_echo "no" >&6; }
19642
19643$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19644
19645 CURL_DISABLE_GOPHER=1
19646
19647 ;;
19648 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19649$as_echo "yes" >&6; }
19650 ;;
19651 esac
19652else
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19654$as_echo "yes" >&6; }
19655
19656fi
19657
19658
19659
19660
19661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19662$as_echo_n "checking whether to provide built-in manual... " >&6; }
19663# Check whether --enable-manual was given.
19664if test "${enable_manual+set}" = set; then :
19665 enableval=$enable_manual; case "$enableval" in
19666 no)
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668$as_echo "no" >&6; }
19669 ;;
19670 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19671$as_echo "yes" >&6; }
19672 USE_MANUAL="1"
19673 ;;
19674 esac
19675else
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677$as_echo "yes" >&6; }
19678 USE_MANUAL="1"
19679
19680fi
19681
19682
19683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19684$as_echo_n "checking whether to enable generation of C code... " >&6; }
19685# Check whether --enable-libcurl_option was given.
19686if test "${enable_libcurl_option+set}" = set; then :
19687 enableval=$enable_libcurl_option; case "$enableval" in
19688 no)
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690$as_echo "no" >&6; }
19691
19692$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19693
19694 curl_libcurl_msg="no"
19695 ;;
19696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697$as_echo "yes" >&6; }
19698 ;;
19699 esac
19700else
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19702$as_echo "yes" >&6; }
19703
19704fi
19705
19706
19707
19708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19709$as_echo_n "checking whether to use libgcc... " >&6; }
19710# Check whether --enable-libgcc was given.
19711if test "${enable_libgcc+set}" = set; then :
19712 enableval=$enable_libgcc; case "$enableval" in
19713 yes)
19714 LIBS="-lgcc $LIBS"
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19716$as_echo "yes" >&6; }
19717 ;;
19718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719$as_echo "no" >&6; }
19720 ;;
19721 esac
19722else
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19724$as_echo "no" >&6; }
19725
19726fi
19727
19728
19729
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19731$as_echo_n "checking if X/Open network library is required... " >&6; }
19732 tst_lib_xnet_required="no"
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734/* end confdefs.h. */
19735
19736
19737int main (void)
19738{
19739#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19740 return 0;
19741#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19742 return 0;
19743#else
19744 force compilation error
19745#endif
19746}
19747
19748
19749_ACEOF
19750if ac_fn_c_try_compile "$LINENO"; then :
19751
19752 tst_lib_xnet_required="yes"
19753 LIBS="-lxnet $LIBS"
19754
19755fi
19756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19758$as_echo "$tst_lib_xnet_required" >&6; }
19759
19760
19761ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19762if test "x$ac_cv_func_gethostbyname" = xyes; then :
19763 HAVE_GETHOSTBYNAME="1"
19764
19765else
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19767$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19768if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19769 $as_echo_n "(cached) " >&6
19770else
19771 ac_check_lib_save_LIBS=$LIBS
19772LIBS="-lnsl $LIBS"
19773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774/* end confdefs.h. */
19775
19776
19777#ifdef __cplusplus
19778extern "C"
19779#endif
19780char gethostbyname ();
19781int main (void)
19782{
19783return gethostbyname ();
19784 ;
19785 return 0;
19786}
19787_ACEOF
19788if ac_fn_c_try_link "$LINENO"; then :
19789 ac_cv_lib_nsl_gethostbyname=yes
19790else
19791 ac_cv_lib_nsl_gethostbyname=no
19792fi
19793rm -f core conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19795LIBS=$ac_check_lib_save_LIBS
19796fi
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19798$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19799if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19800 HAVE_GETHOSTBYNAME="1"
19801 LIBS="-lnsl $LIBS"
19802
19803fi
19804
19805
19806fi
19807
19808
19809if test "$HAVE_GETHOSTBYNAME" != "1"
19810then
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19812$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19813if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19814 $as_echo_n "(cached) " >&6
19815else
19816 ac_check_lib_save_LIBS=$LIBS
19817LIBS="-lsocket $LIBS"
19818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819/* end confdefs.h. */
19820
19821
19822#ifdef __cplusplus
19823extern "C"
19824#endif
19825char gethostbyname ();
19826int main (void)
19827{
19828return gethostbyname ();
19829 ;
19830 return 0;
19831}
19832_ACEOF
19833if ac_fn_c_try_link "$LINENO"; then :
19834 ac_cv_lib_socket_gethostbyname=yes
19835else
19836 ac_cv_lib_socket_gethostbyname=no
19837fi
19838rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840LIBS=$ac_check_lib_save_LIBS
19841fi
19842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19843$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19844if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19845 HAVE_GETHOSTBYNAME="1"
19846 LIBS="-lsocket $LIBS"
19847
19848fi
19849
19850fi
19851
19852if test "$HAVE_GETHOSTBYNAME" != "1"
19853then
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19855$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19856if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19857 $as_echo_n "(cached) " >&6
19858else
19859 ac_check_lib_save_LIBS=$LIBS
19860LIBS="-lwatt $LIBS"
19861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862/* end confdefs.h. */
19863
19864
19865#ifdef __cplusplus
19866extern "C"
19867#endif
19868char gethostbyname ();
19869int main (void)
19870{
19871return gethostbyname ();
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876if ac_fn_c_try_link "$LINENO"; then :
19877 ac_cv_lib_watt_gethostbyname=yes
19878else
19879 ac_cv_lib_watt_gethostbyname=no
19880fi
19881rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883LIBS=$ac_check_lib_save_LIBS
19884fi
19885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19886$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19887if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19888 HAVE_GETHOSTBYNAME="1"
19889 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19890 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19891 LIBS="-lwatt $LIBS"
19892
19893fi
19894
19895fi
19896
19897if test "$HAVE_GETHOSTBYNAME" != "1"
19898then
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19900$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19901 my_ac_save_LIBS=$LIBS
19902 LIBS="-lnsl -lsocket $LIBS"
19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904/* end confdefs.h. */
19905
19906
19907
19908int main (void)
19909{
19910
19911 gethostbyname();
19912
19913 ;
19914 return 0;
19915}
19916
19917_ACEOF
19918if ac_fn_c_try_link "$LINENO"; then :
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19921$as_echo "yes" >&6; }
19922 HAVE_GETHOSTBYNAME="1"
19923
19924else
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927$as_echo "no" >&6; }
19928 LIBS=$my_ac_save_LIBS
19929
19930fi
19931rm -f core conftest.err conftest.$ac_objext \
19932 conftest$ac_exeext conftest.$ac_ext
19933fi
19934
19935if test "$HAVE_GETHOSTBYNAME" != "1"
19936then
19937 if test "$curl_cv_header_windows_h" = "yes"; then
19938 if test "$curl_cv_header_winsock_h" = "yes"; then
19939 case $host in
19940 *-*-mingw32ce*)
19941 winsock_LIB="-lwinsock"
19942 ;;
19943 *)
19944 winsock_LIB="-lwsock32"
19945 ;;
19946 esac
19947 fi
19948 if test "$curl_cv_header_winsock2_h" = "yes"; then
19949 winsock_LIB="-lws2_32"
19950 fi
19951 if test ! -z "$winsock_LIB"; then
19952 my_ac_save_LIBS=$LIBS
19953 LIBS="$winsock_LIB $LIBS"
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19955$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h. */
19958
19959
19960#ifdef HAVE_WINDOWS_H
19961#ifndef WIN32_LEAN_AND_MEAN
19962#define WIN32_LEAN_AND_MEAN
19963#endif
19964#include <windows.h>
19965#ifdef HAVE_WINSOCK2_H
19966#include <winsock2.h>
19967#else
19968#ifdef HAVE_WINSOCK_H
19969#include <winsock.h>
19970#endif
19971#endif
19972#endif
19973
19974int main (void)
19975{
19976
19977 gethostbyname("www.dummysite.com");
19978
19979 ;
19980 return 0;
19981}
19982
19983_ACEOF
19984if ac_fn_c_try_link "$LINENO"; then :
19985
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19987$as_echo "yes" >&6; }
19988 HAVE_GETHOSTBYNAME="1"
19989
19990else
19991
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19993$as_echo "no" >&6; }
19994 winsock_LIB=""
19995 LIBS=$my_ac_save_LIBS
19996
19997fi
19998rm -f core conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20000 fi
20001 fi
20002fi
20003
20004if test "$HAVE_GETHOSTBYNAME" != "1"
20005then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20007$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009/* end confdefs.h. */
20010
20011
20012/* Older Minix versions may need <net/gen/netdb.h> here instead */
20013#include <netdb.h>
20014
20015int main (void)
20016{
20017
20018 gethostbyname("www.dummysite.com");
20019
20020 ;
20021 return 0;
20022}
20023
20024_ACEOF
20025if ac_fn_c_try_link "$LINENO"; then :
20026
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20028$as_echo "yes" >&6; }
20029 HAVE_GETHOSTBYNAME="1"
20030
20031else
20032
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20034$as_echo "no" >&6; }
20035
20036fi
20037rm -f core conftest.err conftest.$ac_objext \
20038 conftest$ac_exeext conftest.$ac_ext
20039fi
20040
20041if test "$HAVE_GETHOSTBYNAME" != "1"
20042then
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20044$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046/* end confdefs.h. */
20047
20048
20049#include <stdio.h>
20050#include <netdb.h>
20051
20052int main (void)
20053{
20054
20055 gethostbyname("www.dummysite.com");
20056
20057 ;
20058 return 0;
20059}
20060
20061_ACEOF
20062if ac_fn_c_try_link "$LINENO"; then :
20063
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20065$as_echo "yes" >&6; }
20066 HAVE_GETHOSTBYNAME="1"
20067
20068else
20069
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071$as_echo "no" >&6; }
20072
20073fi
20074rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20076fi
20077
20078if test "$HAVE_GETHOSTBYNAME" != "1"
20079then
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20081$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20082if ${ac_cv_lib_network_gethostbyname+:} false; then :
20083 $as_echo_n "(cached) " >&6
20084else
20085 ac_check_lib_save_LIBS=$LIBS
20086LIBS="-lnetwork $LIBS"
20087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20088/* end confdefs.h. */
20089
20090
20091#ifdef __cplusplus
20092extern "C"
20093#endif
20094char gethostbyname ();
20095int main (void)
20096{
20097return gethostbyname ();
20098 ;
20099 return 0;
20100}
20101_ACEOF
20102if ac_fn_c_try_link "$LINENO"; then :
20103 ac_cv_lib_network_gethostbyname=yes
20104else
20105 ac_cv_lib_network_gethostbyname=no
20106fi
20107rm -f core conftest.err conftest.$ac_objext \
20108 conftest$ac_exeext conftest.$ac_ext
20109LIBS=$ac_check_lib_save_LIBS
20110fi
20111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20112$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20113if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20114 HAVE_GETHOSTBYNAME="1"
20115 LIBS="-lnetwork $LIBS"
20116
20117fi
20118
20119fi
20120
20121if test "$HAVE_GETHOSTBYNAME" != "1"
20122then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20124$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20125if ${ac_cv_lib_net_gethostbyname+:} false; then :
20126 $as_echo_n "(cached) " >&6
20127else
20128 ac_check_lib_save_LIBS=$LIBS
20129LIBS="-lnet $LIBS"
20130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131/* end confdefs.h. */
20132
20133
20134#ifdef __cplusplus
20135extern "C"
20136#endif
20137char gethostbyname ();
20138int main (void)
20139{
20140return gethostbyname ();
20141 ;
20142 return 0;
20143}
20144_ACEOF
20145if ac_fn_c_try_link "$LINENO"; then :
20146 ac_cv_lib_net_gethostbyname=yes
20147else
20148 ac_cv_lib_net_gethostbyname=no
20149fi
20150rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152LIBS=$ac_check_lib_save_LIBS
20153fi
20154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20155$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20156if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20157 HAVE_GETHOSTBYNAME="1"
20158 LIBS="-lnet $LIBS"
20159
20160fi
20161
20162fi
20163
20164
20165if test "$HAVE_GETHOSTBYNAME" != "1"; then
20166 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20167fi
20168
20169
20170curl_includes_winsock2="\
20171/* includes start */
20172#ifdef HAVE_WINDOWS_H
20173# ifndef WIN32_LEAN_AND_MEAN
20174# define WIN32_LEAN_AND_MEAN
20175# endif
20176# include <windows.h>
20177# ifdef HAVE_WINSOCK2_H
20178# include <winsock2.h>
20179# else
20180# ifdef HAVE_WINSOCK_H
20181# include <winsock.h>
20182# endif
20183# endif
20184#endif
20185/* includes end */"
20186
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20188$as_echo_n "checking for windows.h... " >&6; }
20189if ${curl_cv_header_windows_h+:} false; then :
20190 $as_echo_n "(cached) " >&6
20191else
20192
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194/* end confdefs.h. */
20195
20196
20197#undef inline
20198#ifndef WIN32_LEAN_AND_MEAN
20199#define WIN32_LEAN_AND_MEAN
20200#endif
20201#include <windows.h>
20202
20203int main (void)
20204{
20205
20206#if defined(__CYGWIN__) || defined(__CEGCC__)
20207 HAVE_WINDOWS_H shall not be defined.
20208#else
20209 int dummy=2*WINVER;
20210#endif
20211
20212 ;
20213 return 0;
20214}
20215
20216_ACEOF
20217if ac_fn_c_try_compile "$LINENO"; then :
20218
20219 curl_cv_header_windows_h="yes"
20220
20221else
20222
20223 curl_cv_header_windows_h="no"
20224
20225fi
20226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20227
20228fi
20229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20230$as_echo "$curl_cv_header_windows_h" >&6; }
20231 case "$curl_cv_header_windows_h" in
20232 yes)
20233
20234cat >>confdefs.h <<_ACEOF
20235#define HAVE_WINDOWS_H 1
20236_ACEOF
20237
20238 ;;
20239 esac
20240
20241
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20243$as_echo_n "checking for winsock.h... " >&6; }
20244if ${curl_cv_header_winsock_h+:} false; then :
20245 $as_echo_n "(cached) " >&6
20246else
20247
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249/* end confdefs.h. */
20250
20251
20252#undef inline
20253#ifndef WIN32_LEAN_AND_MEAN
20254#define WIN32_LEAN_AND_MEAN
20255#endif
20256#include <windows.h>
20257#include <winsock.h>
20258
20259int main (void)
20260{
20261
20262#if defined(__CYGWIN__) || defined(__CEGCC__)
20263 HAVE_WINSOCK_H shall not be defined.
20264#else
20265 int dummy=WSACleanup();
20266#endif
20267
20268 ;
20269 return 0;
20270}
20271
20272_ACEOF
20273if ac_fn_c_try_compile "$LINENO"; then :
20274
20275 curl_cv_header_winsock_h="yes"
20276
20277else
20278
20279 curl_cv_header_winsock_h="no"
20280
20281fi
20282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283
20284fi
20285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20286$as_echo "$curl_cv_header_winsock_h" >&6; }
20287 case "$curl_cv_header_winsock_h" in
20288 yes)
20289
20290cat >>confdefs.h <<_ACEOF
20291#define HAVE_WINSOCK_H 1
20292_ACEOF
20293
20294 ;;
20295 esac
20296
20297
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20299$as_echo_n "checking for winsock2.h... " >&6; }
20300if ${curl_cv_header_winsock2_h+:} false; then :
20301 $as_echo_n "(cached) " >&6
20302else
20303
20304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305/* end confdefs.h. */
20306
20307
20308#undef inline
20309#ifndef WIN32_LEAN_AND_MEAN
20310#define WIN32_LEAN_AND_MEAN
20311#endif
20312#include <windows.h>
20313#include <winsock2.h>
20314
20315int main (void)
20316{
20317
20318#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20319 HAVE_WINSOCK2_H shall not be defined.
20320#else
20321 int dummy=2*IPPROTO_ESP;
20322#endif
20323
20324 ;
20325 return 0;
20326}
20327
20328_ACEOF
20329if ac_fn_c_try_compile "$LINENO"; then :
20330
20331 curl_cv_header_winsock2_h="yes"
20332
20333else
20334
20335 curl_cv_header_winsock2_h="no"
20336
20337fi
20338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339
20340fi
20341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20342$as_echo "$curl_cv_header_winsock2_h" >&6; }
20343 case "$curl_cv_header_winsock2_h" in
20344 yes)
20345
20346cat >>confdefs.h <<_ACEOF
20347#define HAVE_WINSOCK2_H 1
20348_ACEOF
20349
20350 ;;
20351 esac
20352
20353
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20356$as_echo_n "checking for connect in libraries... " >&6; }
20357 tst_connect_save_LIBS="$LIBS"
20358 tst_connect_need_LIBS="unknown"
20359 for tst_lib in '' '-lsocket' ; do
20360 if test "$tst_connect_need_LIBS" = "unknown"; then
20361 LIBS="$tst_lib $tst_connect_save_LIBS"
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363/* end confdefs.h. */
20364
20365
20366 $curl_includes_winsock2
20367 #ifndef HAVE_WINDOWS_H
20368 int connect(int, void*, int);
20369 #endif
20370
20371int main (void)
20372{
20373
20374 if(0 != connect(0, 0, 0))
20375 return 1;
20376
20377 ;
20378 return 0;
20379}
20380
20381_ACEOF
20382if ac_fn_c_try_link "$LINENO"; then :
20383
20384 tst_connect_need_LIBS="$tst_lib"
20385
20386fi
20387rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20389 fi
20390 done
20391 LIBS="$tst_connect_save_LIBS"
20392 #
20393 case X-"$tst_connect_need_LIBS" in
20394 X-unknown)
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20396$as_echo "cannot find connect" >&6; }
20397 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20398 ;;
20399 X-)
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20401$as_echo "yes" >&6; }
20402 ;;
20403 *)
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20405$as_echo "$tst_connect_need_LIBS" >&6; }
20406 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20407 ;;
20408 esac
20409
20410
20411CURL_NETWORK_LIBS=$LIBS
20412
20413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20414$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20415if ${ac_cv_header_time+:} false; then :
20416 $as_echo_n "(cached) " >&6
20417else
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419/* end confdefs.h. */
20420#include <sys/types.h>
20421#include <sys/time.h>
20422#include <time.h>
20423
20424int main (void)
20425{
20426if ((struct tm *) 0)
20427return 0;
20428 ;
20429 return 0;
20430}
20431_ACEOF
20432if ac_fn_c_try_compile "$LINENO"; then :
20433 ac_cv_header_time=yes
20434else
20435 ac_cv_header_time=no
20436fi
20437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438fi
20439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20440$as_echo "$ac_cv_header_time" >&6; }
20441if test $ac_cv_header_time = yes; then
20442
20443$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20444
20445fi
20446
20447
20448 for ac_header in sys/types.h sys/time.h time.h
20449do :
20450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20451ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20452if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20453 cat >>confdefs.h <<_ACEOF
20454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20455_ACEOF
20456
20457fi
20458
20459done
20460
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20462$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20463 #
20464 if test "x$dontwant_rt" = "xno" ; then
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466/* end confdefs.h. */
20467
20468
20469#ifdef HAVE_SYS_TYPES_H
20470#include <sys/types.h>
20471#endif
20472#ifdef HAVE_SYS_TIME_H
20473#include <sys/time.h>
20474#ifdef TIME_WITH_SYS_TIME
20475#include <time.h>
20476#endif
20477#else
20478#ifdef HAVE_TIME_H
20479#include <time.h>
20480#endif
20481#endif
20482
20483int main (void)
20484{
20485
20486 struct timespec ts;
20487 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20488
20489 ;
20490 return 0;
20491}
20492
20493_ACEOF
20494if ac_fn_c_try_compile "$LINENO"; then :
20495
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20497$as_echo "yes" >&6; }
20498 curl_func_clock_gettime="yes"
20499
20500else
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503$as_echo "no" >&6; }
20504 curl_func_clock_gettime="no"
20505
20506fi
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 fi
20509
20510
20511 #
20512 if test "$curl_func_clock_gettime" = "yes"; then
20513 #
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20515$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20516 #
20517 curl_cv_save_LIBS="$LIBS"
20518 curl_cv_gclk_LIBS="unknown"
20519 #
20520 for x_xlibs in '' '-lrt' '-lposix4' ; do
20521 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20522 if test -z "$x_xlibs"; then
20523 LIBS="$curl_cv_save_LIBS"
20524 else
20525 LIBS="$x_xlibs $curl_cv_save_LIBS"
20526 fi
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528/* end confdefs.h. */
20529
20530
20531#ifdef HAVE_SYS_TYPES_H
20532#include <sys/types.h>
20533#endif
20534#ifdef HAVE_SYS_TIME_H
20535#include <sys/time.h>
20536#ifdef TIME_WITH_SYS_TIME
20537#include <time.h>
20538#endif
20539#else
20540#ifdef HAVE_TIME_H
20541#include <time.h>
20542#endif
20543#endif
20544
20545int main (void)
20546{
20547
20548 struct timespec ts;
20549 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20550
20551 ;
20552 return 0;
20553}
20554
20555_ACEOF
20556if ac_fn_c_try_link "$LINENO"; then :
20557
20558 curl_cv_gclk_LIBS="$x_xlibs"
20559
20560fi
20561rm -f core conftest.err conftest.$ac_objext \
20562 conftest$ac_exeext conftest.$ac_ext
20563 fi
20564 done
20565 #
20566 LIBS="$curl_cv_save_LIBS"
20567 #
20568 case X-"$curl_cv_gclk_LIBS" in
20569 X-unknown)
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20571$as_echo "cannot find clock_gettime" >&6; }
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20573$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20574 curl_func_clock_gettime="no"
20575 ;;
20576 X-)
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20578$as_echo "no additional lib required" >&6; }
20579 curl_func_clock_gettime="yes"
20580 ;;
20581 *)
20582 if test -z "$curl_cv_save_LIBS"; then
20583 LIBS="$curl_cv_gclk_LIBS"
20584 else
20585 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20586 fi
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20588$as_echo "$curl_cv_gclk_LIBS" >&6; }
20589 curl_func_clock_gettime="yes"
20590 ;;
20591 esac
20592 #
20593 if test "x$cross_compiling" != "xyes" &&
20594 test "$curl_func_clock_gettime" = "yes"; then
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20596$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20597 if test "$cross_compiling" = yes; then :
20598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20600as_fn_error $? "cannot run test program while cross compiling
20601See \`config.log' for more details" "$LINENO" 5; }
20602else
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604/* end confdefs.h. */
20605
20606
20607#ifdef HAVE_STDLIB_H
20608#include <stdlib.h>
20609#endif
20610#ifdef HAVE_SYS_TYPES_H
20611#include <sys/types.h>
20612#endif
20613#ifdef HAVE_SYS_TIME_H
20614#include <sys/time.h>
20615#ifdef TIME_WITH_SYS_TIME
20616#include <time.h>
20617#endif
20618#else
20619#ifdef HAVE_TIME_H
20620#include <time.h>
20621#endif
20622#endif
20623
20624int main (void)
20625{
20626
20627 struct timespec ts;
20628 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20629 exit(0);
20630 else
20631 exit(1);
20632
20633 ;
20634 return 0;
20635}
20636
20637_ACEOF
20638if ac_fn_c_try_run "$LINENO"; then :
20639
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20641$as_echo "yes" >&6; }
20642
20643else
20644
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20646$as_echo "no" >&6; }
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20648$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20649 curl_func_clock_gettime="no"
20650 LIBS="$curl_cv_save_LIBS"
20651
20652fi
20653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20654 conftest.$ac_objext conftest.beam conftest.$ac_ext
20655fi
20656
20657 fi
20658 #
20659 case "$curl_func_clock_gettime" in
20660 yes)
20661
20662cat >>confdefs.h <<_ACEOF
20663#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20664_ACEOF
20665
20666 ;;
20667 esac
20668 #
20669 fi
20670 #
20671
20672
20673CURL_NETWORK_AND_TIME_LIBS=$LIBS
20674
20675
20676
20677clean_CPPFLAGS=$CPPFLAGS
20678clean_LDFLAGS=$LDFLAGS
20679clean_LIBS=$LIBS
20680ZLIB_LIBS=""
20681
20682# Check whether --with-zlib was given.
20683if test "${with_zlib+set}" = set; then :
20684 withval=$with_zlib; OPT_ZLIB="$withval"
20685fi
20686
20687
20688if test "$OPT_ZLIB" = "no" ; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20690$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20691else
20692 if test "$OPT_ZLIB" = "yes" ; then
20693 OPT_ZLIB=""
20694 fi
20695
20696 if test -z "$OPT_ZLIB" ; then
20697
20698 if test -n "$PKG_CONFIG"; then
20699 PKGCONFIG="$PKG_CONFIG"
20700 else
20701 if test -n "$ac_tool_prefix"; then
20702 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20703set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20705$as_echo_n "checking for $ac_word... " >&6; }
20706if ${ac_cv_path_PKGCONFIG+:} false; then :
20707 $as_echo_n "(cached) " >&6
20708else
20709 case $PKGCONFIG in
20710 [\\/]* | ?:[\\/]*)
20711 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20712 ;;
20713 *)
20714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20715as_dummy="$PATH:/usr/bin:/usr/local/bin"
20716for as_dir in $as_dummy
20717do
20718 IFS=$as_save_IFS
20719 test -z "$as_dir" && as_dir=.
20720 for ac_exec_ext in '' $ac_executable_extensions; do
20721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20722 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20724 break 2
20725 fi
20726done
20727 done
20728IFS=$as_save_IFS
20729
20730 ;;
20731esac
20732fi
20733PKGCONFIG=$ac_cv_path_PKGCONFIG
20734if test -n "$PKGCONFIG"; then
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20736$as_echo "$PKGCONFIG" >&6; }
20737else
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20739$as_echo "no" >&6; }
20740fi
20741
20742
20743fi
20744if test -z "$ac_cv_path_PKGCONFIG"; then
20745 ac_pt_PKGCONFIG=$PKGCONFIG
20746 # Extract the first word of "pkg-config", so it can be a program name with args.
20747set dummy pkg-config; ac_word=$2
20748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20749$as_echo_n "checking for $ac_word... " >&6; }
20750if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20751 $as_echo_n "(cached) " >&6
20752else
20753 case $ac_pt_PKGCONFIG in
20754 [\\/]* | ?:[\\/]*)
20755 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20756 ;;
20757 *)
20758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20759as_dummy="$PATH:/usr/bin:/usr/local/bin"
20760for as_dir in $as_dummy
20761do
20762 IFS=$as_save_IFS
20763 test -z "$as_dir" && as_dir=.
20764 for ac_exec_ext in '' $ac_executable_extensions; do
20765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20766 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20768 break 2
20769 fi
20770done
20771 done
20772IFS=$as_save_IFS
20773
20774 ;;
20775esac
20776fi
20777ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20778if test -n "$ac_pt_PKGCONFIG"; then
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20780$as_echo "$ac_pt_PKGCONFIG" >&6; }
20781else
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20783$as_echo "no" >&6; }
20784fi
20785
20786 if test "x$ac_pt_PKGCONFIG" = x; then
20787 PKGCONFIG="no"
20788 else
20789 case $cross_compiling:$ac_tool_warned in
20790yes:)
20791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20793ac_tool_warned=yes ;;
20794esac
20795 PKGCONFIG=$ac_pt_PKGCONFIG
20796 fi
20797else
20798 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20799fi
20800
20801 fi
20802
20803 if test "x$PKGCONFIG" != "xno"; then
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20805$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20806 itexists=`
20807 if test -n ""; then
20808 PKG_CONFIG_LIBDIR=""
20809 export PKG_CONFIG_LIBDIR
20810 fi
20811 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20812
20813 if test -z "$itexists"; then
20814 PKGCONFIG="no"
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816$as_echo "no" >&6; }
20817 else
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20819$as_echo "found" >&6; }
20820 fi
20821 fi
20822
20823
20824 if test "$PKGCONFIG" != "no" ; then
20825 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20826 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20827 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20828 OPT_ZLIB=""
20829 HAVE_LIBZ="1"
20830 fi
20831
20832 if test -z "$HAVE_LIBZ"; then
20833
20834
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20836$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20837if ${ac_cv_lib_z_inflateEnd+:} false; then :
20838 $as_echo_n "(cached) " >&6
20839else
20840 ac_check_lib_save_LIBS=$LIBS
20841LIBS="-lz $LIBS"
20842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20843/* end confdefs.h. */
20844
20845
20846#ifdef __cplusplus
20847extern "C"
20848#endif
20849char inflateEnd ();
20850int main (void)
20851{
20852return inflateEnd ();
20853 ;
20854 return 0;
20855}
20856_ACEOF
20857if ac_fn_c_try_link "$LINENO"; then :
20858 ac_cv_lib_z_inflateEnd=yes
20859else
20860 ac_cv_lib_z_inflateEnd=no
20861fi
20862rm -f core conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20864LIBS=$ac_check_lib_save_LIBS
20865fi
20866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20867$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20868if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20869 HAVE_LIBZ="1"
20870 LIBS="-lz $LIBS"
20871else
20872 OPT_ZLIB="/usr/local"
20873fi
20874
20875 fi
20876 fi
20877
20878 if test -n "$OPT_ZLIB"; then
20879 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20880 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20881 fi
20882
20883 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20884if test "x$ac_cv_header_zlib_h" = xyes; then :
20885
20886 HAVE_ZLIB_H="1"
20887 if test "$HAVE_LIBZ" != "1"; then
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20889$as_echo_n "checking for gzread in -lz... " >&6; }
20890if ${ac_cv_lib_z_gzread+:} false; then :
20891 $as_echo_n "(cached) " >&6
20892else
20893 ac_check_lib_save_LIBS=$LIBS
20894LIBS="-lz $LIBS"
20895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896/* end confdefs.h. */
20897
20898
20899#ifdef __cplusplus
20900extern "C"
20901#endif
20902char gzread ();
20903int main (void)
20904{
20905return gzread ();
20906 ;
20907 return 0;
20908}
20909_ACEOF
20910if ac_fn_c_try_link "$LINENO"; then :
20911 ac_cv_lib_z_gzread=yes
20912else
20913 ac_cv_lib_z_gzread=no
20914fi
20915rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20917LIBS=$ac_check_lib_save_LIBS
20918fi
20919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20920$as_echo "$ac_cv_lib_z_gzread" >&6; }
20921if test "x$ac_cv_lib_z_gzread" = xyes; then :
20922
20923 HAVE_LIBZ="1"
20924 LIBS="-lz $LIBS"
20925
20926else
20927 CPPFLAGS=$clean_CPPFLAGS
20928 LDFLAGS=$clean_LDFLAGS
20929fi
20930
20931 fi
20932
20933else
20934
20935 CPPFLAGS=$clean_CPPFLAGS
20936 LDFLAGS=$clean_LDFLAGS
20937
20938fi
20939
20940
20941
20942 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20943 then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20945$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20946 HAVE_LIBZ=""
20947 CPPFLAGS=$clean_CPPFLAGS
20948 LDFLAGS=$clean_LDFLAGS
20949 LIBS=$clean_LIBS
20950 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20951 then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20953$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20954 CPPFLAGS=$clean_CPPFLAGS
20955 LDFLAGS=$clean_LDFLAGS
20956 LIBS=$clean_LIBS
20957 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20958 then
20959
20960
20961$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20962
20963
20964$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20965
20966
20967 ZLIB_LIBS="-lz"
20968 LIBS="-lz $clean_LIBS"
20969
20970 AMFIXLIB="1"
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20972$as_echo "$as_me: found both libz and libz.h header" >&6;}
20973 curl_zlib_msg="enabled"
20974 fi
20975fi
20976
20977 if test x"$AMFIXLIB" = x1; then
20978 HAVE_LIBZ_TRUE=
20979 HAVE_LIBZ_FALSE='#'
20980else
20981 HAVE_LIBZ_TRUE='#'
20982 HAVE_LIBZ_FALSE=
20983fi
20984
20985
20986
20987
Alex Deymo486467e2017-12-19 19:04:07 +010020988
20989OPT_BROTLI=off
20990
20991# Check whether --with-brotli was given.
20992if test "${with_brotli+set}" = set; then :
20993 withval=$with_brotli; OPT_BROTLI=$withval
20994fi
20995
20996
20997if test X"$OPT_BROTLI" != Xno; then
20998 CLEANLDFLAGS="$LDFLAGS"
20999 CLEANCPPFLAGS="$CPPFLAGS"
21000 CLEANLIBS="$LIBS"
21001
21002 case "$OPT_BROTLI" in
21003 yes)
21004
21005 if test -n "$PKG_CONFIG"; then
21006 PKGCONFIG="$PKG_CONFIG"
21007 else
21008 if test -n "$ac_tool_prefix"; then
21009 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21010set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21012$as_echo_n "checking for $ac_word... " >&6; }
21013if ${ac_cv_path_PKGCONFIG+:} false; then :
21014 $as_echo_n "(cached) " >&6
21015else
21016 case $PKGCONFIG in
21017 [\\/]* | ?:[\\/]*)
21018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21019 ;;
21020 *)
21021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21022as_dummy="$PATH:/usr/bin:/usr/local/bin"
21023for as_dir in $as_dummy
21024do
21025 IFS=$as_save_IFS
21026 test -z "$as_dir" && as_dir=.
21027 for ac_exec_ext in '' $ac_executable_extensions; do
21028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21029 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21031 break 2
21032 fi
21033done
21034 done
21035IFS=$as_save_IFS
21036
21037 ;;
21038esac
21039fi
21040PKGCONFIG=$ac_cv_path_PKGCONFIG
21041if test -n "$PKGCONFIG"; then
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21043$as_echo "$PKGCONFIG" >&6; }
21044else
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21046$as_echo "no" >&6; }
21047fi
21048
21049
21050fi
21051if test -z "$ac_cv_path_PKGCONFIG"; then
21052 ac_pt_PKGCONFIG=$PKGCONFIG
21053 # Extract the first word of "pkg-config", so it can be a program name with args.
21054set dummy pkg-config; ac_word=$2
21055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21056$as_echo_n "checking for $ac_word... " >&6; }
21057if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21058 $as_echo_n "(cached) " >&6
21059else
21060 case $ac_pt_PKGCONFIG in
21061 [\\/]* | ?:[\\/]*)
21062 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21063 ;;
21064 *)
21065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21066as_dummy="$PATH:/usr/bin:/usr/local/bin"
21067for as_dir in $as_dummy
21068do
21069 IFS=$as_save_IFS
21070 test -z "$as_dir" && as_dir=.
21071 for ac_exec_ext in '' $ac_executable_extensions; do
21072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21073 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21075 break 2
21076 fi
21077done
21078 done
21079IFS=$as_save_IFS
21080
21081 ;;
21082esac
21083fi
21084ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21085if test -n "$ac_pt_PKGCONFIG"; then
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21087$as_echo "$ac_pt_PKGCONFIG" >&6; }
21088else
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090$as_echo "no" >&6; }
21091fi
21092
21093 if test "x$ac_pt_PKGCONFIG" = x; then
21094 PKGCONFIG="no"
21095 else
21096 case $cross_compiling:$ac_tool_warned in
21097yes:)
21098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21100ac_tool_warned=yes ;;
21101esac
21102 PKGCONFIG=$ac_pt_PKGCONFIG
21103 fi
21104else
21105 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21106fi
21107
21108 fi
21109
21110 if test "x$PKGCONFIG" != "xno"; then
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21112$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21113 itexists=`
21114 if test -n ""; then
21115 PKG_CONFIG_LIBDIR=""
21116 export PKG_CONFIG_LIBDIR
21117 fi
21118 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21119
21120 if test -z "$itexists"; then
21121 PKGCONFIG="no"
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123$as_echo "no" >&6; }
21124 else
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21126$as_echo "found" >&6; }
21127 fi
21128 fi
21129
21130
21131 if test "$PKGCONFIG" != "no" ; then
21132 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21133 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21134 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21135 version=`$PKGCONFIG --modversion libbrotlidec`
21136 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21137 fi
21138
21139 ;;
21140 off)
21141 ;;
21142 *)
21143 PREFIX_BROTLI=$OPT_BROTLI
21144 ;;
21145 esac
21146
21147 if test -n "$PREFIX_BROTLI"; then
21148 LIB_BROTLI="-lbrotlidec"
21149 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21150 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21151 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21152 fi
21153
21154 LDFLAGS="$LDFLAGS $LD_BROTLI"
21155 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21156 LIBS="$LIB_BROTLI $LIBS"
21157
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21159$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21160if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21161 $as_echo_n "(cached) " >&6
21162else
21163 ac_check_lib_save_LIBS=$LIBS
21164LIBS="-lbrotlidec $LIBS"
21165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166/* end confdefs.h. */
21167
21168
21169#ifdef __cplusplus
21170extern "C"
21171#endif
21172char BrotliDecoderDecompress ();
21173int main (void)
21174{
21175return BrotliDecoderDecompress ();
21176 ;
21177 return 0;
21178}
21179_ACEOF
21180if ac_fn_c_try_link "$LINENO"; then :
21181 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21182else
21183 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21184fi
21185rm -f core conftest.err conftest.$ac_objext \
21186 conftest$ac_exeext conftest.$ac_ext
21187LIBS=$ac_check_lib_save_LIBS
21188fi
21189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21190$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21191if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21192 cat >>confdefs.h <<_ACEOF
21193#define HAVE_LIBBROTLIDEC 1
21194_ACEOF
21195
21196 LIBS="-lbrotlidec $LIBS"
21197
21198fi
21199
21200
21201 for ac_header in brotli/decode.h
21202do :
21203 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21204if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21205 cat >>confdefs.h <<_ACEOF
21206#define HAVE_BROTLI_DECODE_H 1
21207_ACEOF
21208 curl_brotli_msg="enabled (libbrotlidec)"
21209 HAVE_BROTLI=1
21210
21211$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21212
21213 HAVE_BROTLI=1
21214
21215
21216fi
21217
21218done
21219
21220
21221 if test X"$OPT_BROTLI" != Xoff &&
21222 test "$HAVE_BROTLI" != "1"; then
21223 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21224 fi
21225
21226 if test "$HAVE_BROTLI" = "1"; then
21227 if test -n "$DIR_BROTLI"; then
21228
21229 if test "x$cross_compiling" != "xyes"; then
21230 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_BROTLI"
21231 export LD_LIBRARY_PATH
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&5
21233$as_echo "$as_me: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&6;}
21234 fi
21235 fi
21236 else
21237 LDFLAGS=$CLEANLDFLAGS
21238 CPPFLAGS=$CLEANCPPFLAGS
21239 LIBS=$CLEANLIBS
21240 fi
21241fi
21242
21243
Elliott Hughes82be86d2017-09-20 17:00:17 -070021244LDAPLIBNAME=""
21245
21246# Check whether --with-ldap-lib was given.
21247if test "${with_ldap_lib+set}" = set; then :
21248 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21249fi
21250
21251
21252LBERLIBNAME=""
21253
21254# Check whether --with-lber-lib was given.
21255if test "${with_lber_lib+set}" = set; then :
21256 withval=$with_lber_lib; LBERLIBNAME="$withval"
21257fi
21258
21259
21260if test x$CURL_DISABLE_LDAP != x1 ; then
21261
21262
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21264$as_echo_n "checking for lber.h... " >&6; }
21265if ${curl_cv_header_lber_h+:} false; then :
21266 $as_echo_n "(cached) " >&6
21267else
21268
21269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21270/* end confdefs.h. */
21271
21272
21273#undef inline
21274#ifdef HAVE_WINDOWS_H
21275#ifndef WIN32_LEAN_AND_MEAN
21276#define WIN32_LEAN_AND_MEAN
21277#endif
21278#include <windows.h>
21279#else
21280#ifdef HAVE_SYS_TYPES_H
21281#include <sys/types.h>
21282#endif
21283#endif
21284#ifndef NULL
21285#define NULL (void *)0
21286#endif
21287#include <lber.h>
21288
21289int main (void)
21290{
21291
21292 BerValue *bvp = NULL;
21293 BerElement *bep = ber_init(bvp);
21294 ber_free(bep, 1);
21295
21296 ;
21297 return 0;
21298}
21299
21300_ACEOF
21301if ac_fn_c_try_compile "$LINENO"; then :
21302
21303 curl_cv_header_lber_h="yes"
21304
21305else
21306
21307 curl_cv_header_lber_h="no"
21308
21309fi
21310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311
21312fi
21313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21314$as_echo "$curl_cv_header_lber_h" >&6; }
21315 if test "$curl_cv_header_lber_h" = "yes"; then
21316
21317cat >>confdefs.h <<_ACEOF
21318#define HAVE_LBER_H 1
21319_ACEOF
21320
21321 #
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323/* end confdefs.h. */
21324
21325
21326#undef inline
21327#ifdef HAVE_WINDOWS_H
21328#ifndef WIN32_LEAN_AND_MEAN
21329#define WIN32_LEAN_AND_MEAN
21330#endif
21331#include <windows.h>
21332#else
21333#ifdef HAVE_SYS_TYPES_H
21334#include <sys/types.h>
21335#endif
21336#endif
21337#ifndef NULL
21338#define NULL (void *)0
21339#endif
21340#ifndef LDAP_DEPRECATED
21341#define LDAP_DEPRECATED 1
21342#endif
21343#include <ldap.h>
21344
21345int main (void)
21346{
21347
21348 BerValue *bvp = NULL;
21349 BerElement *bep = ber_init(bvp);
21350 ber_free(bep, 1);
21351
21352 ;
21353 return 0;
21354}
21355
21356_ACEOF
21357if ac_fn_c_try_compile "$LINENO"; then :
21358
21359 curl_cv_need_header_lber_h="no"
21360
21361else
21362
21363 curl_cv_need_header_lber_h="yes"
21364
21365fi
21366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21367 #
21368 case "$curl_cv_need_header_lber_h" in
21369 yes)
21370
21371cat >>confdefs.h <<_ACEOF
21372#define NEED_LBER_H 1
21373_ACEOF
21374
21375 ;;
21376 esac
21377 fi
21378
21379
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21381$as_echo_n "checking for ldap.h... " >&6; }
21382if ${curl_cv_header_ldap_h+:} false; then :
21383 $as_echo_n "(cached) " >&6
21384else
21385
21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387/* end confdefs.h. */
21388
21389
21390#undef inline
21391#ifdef HAVE_WINDOWS_H
21392#ifndef WIN32_LEAN_AND_MEAN
21393#define WIN32_LEAN_AND_MEAN
21394#endif
21395#include <windows.h>
21396#else
21397#ifdef HAVE_SYS_TYPES_H
21398#include <sys/types.h>
21399#endif
21400#endif
21401#ifndef LDAP_DEPRECATED
21402#define LDAP_DEPRECATED 1
21403#endif
21404#ifdef NEED_LBER_H
21405#include <lber.h>
21406#endif
21407#include <ldap.h>
21408
21409int main (void)
21410{
21411
21412 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21413 int res = ldap_unbind(ldp);
21414
21415 ;
21416 return 0;
21417}
21418
21419_ACEOF
21420if ac_fn_c_try_compile "$LINENO"; then :
21421
21422 curl_cv_header_ldap_h="yes"
21423
21424else
21425
21426 curl_cv_header_ldap_h="no"
21427
21428fi
21429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430
21431fi
21432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21433$as_echo "$curl_cv_header_ldap_h" >&6; }
21434 case "$curl_cv_header_ldap_h" in
21435 yes)
21436
21437cat >>confdefs.h <<_ACEOF
21438#define HAVE_LDAP_H 1
21439_ACEOF
21440
21441 ;;
21442 esac
21443
21444
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21446$as_echo_n "checking for ldapssl.h... " >&6; }
21447if ${curl_cv_header_ldapssl_h+:} false; then :
21448 $as_echo_n "(cached) " >&6
21449else
21450
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452/* end confdefs.h. */
21453
21454
21455#undef inline
21456#ifdef HAVE_WINDOWS_H
21457#ifndef WIN32_LEAN_AND_MEAN
21458#define WIN32_LEAN_AND_MEAN
21459#endif
21460#include <windows.h>
21461#else
21462#ifdef HAVE_SYS_TYPES_H
21463#include <sys/types.h>
21464#endif
21465#endif
21466#ifndef NULL
21467#define NULL (void *)0
21468#endif
21469#ifndef LDAP_DEPRECATED
21470#define LDAP_DEPRECATED 1
21471#endif
21472#ifdef NEED_LBER_H
21473#include <lber.h>
21474#endif
21475#ifdef HAVE_LDAP_H
21476#include <ldap.h>
21477#endif
21478#include <ldapssl.h>
21479
21480int main (void)
21481{
21482
21483 char *cert_label = NULL;
21484 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21485
21486 ;
21487 return 0;
21488}
21489
21490_ACEOF
21491if ac_fn_c_try_compile "$LINENO"; then :
21492
21493 curl_cv_header_ldapssl_h="yes"
21494
21495else
21496
21497 curl_cv_header_ldapssl_h="no"
21498
21499fi
21500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501
21502fi
21503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21504$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21505 case "$curl_cv_header_ldapssl_h" in
21506 yes)
21507
21508cat >>confdefs.h <<_ACEOF
21509#define HAVE_LDAPSSL_H 1
21510_ACEOF
21511
21512 ;;
21513 esac
21514
21515
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21517$as_echo_n "checking for ldap_ssl.h... " >&6; }
21518if ${curl_cv_header_ldap_ssl_h+:} false; then :
21519 $as_echo_n "(cached) " >&6
21520else
21521
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523/* end confdefs.h. */
21524
21525
21526#undef inline
21527#ifdef HAVE_WINDOWS_H
21528#ifndef WIN32_LEAN_AND_MEAN
21529#define WIN32_LEAN_AND_MEAN
21530#endif
21531#include <windows.h>
21532#else
21533#ifdef HAVE_SYS_TYPES_H
21534#include <sys/types.h>
21535#endif
21536#endif
21537#ifndef LDAP_DEPRECATED
21538#define LDAP_DEPRECATED 1
21539#endif
21540#ifdef NEED_LBER_H
21541#include <lber.h>
21542#endif
21543#ifdef HAVE_LDAP_H
21544#include <ldap.h>
21545#endif
21546#include <ldap_ssl.h>
21547
21548int main (void)
21549{
21550
21551 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21552
21553 ;
21554 return 0;
21555}
21556
21557_ACEOF
21558if ac_fn_c_try_compile "$LINENO"; then :
21559
21560 curl_cv_header_ldap_ssl_h="yes"
21561
21562else
21563
21564 curl_cv_header_ldap_ssl_h="no"
21565
21566fi
21567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568
21569fi
21570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21571$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21572 case "$curl_cv_header_ldap_ssl_h" in
21573 yes)
21574
21575cat >>confdefs.h <<_ACEOF
21576#define HAVE_LDAP_SSL_H 1
21577_ACEOF
21578
21579 ;;
21580 esac
21581
21582
21583 if test -z "$LDAPLIBNAME" ; then
21584 if test "$curl_cv_native_windows" = "yes"; then
21585 LDAPLIBNAME="wldap32"
21586 LBERLIBNAME="no"
21587 fi
21588 fi
21589
21590 if test "$LDAPLIBNAME" ; then
21591 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21593$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21594if eval \${$as_ac_Lib+:} false; then :
21595 $as_echo_n "(cached) " >&6
21596else
21597 ac_check_lib_save_LIBS=$LIBS
21598LIBS="-l"$LDAPLIBNAME" $LIBS"
21599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21600/* end confdefs.h. */
21601
21602
21603#ifdef __cplusplus
21604extern "C"
21605#endif
21606char ldap_init ();
21607int main (void)
21608{
21609return ldap_init ();
21610 ;
21611 return 0;
21612}
21613_ACEOF
21614if ac_fn_c_try_link "$LINENO"; then :
21615 eval "$as_ac_Lib=yes"
21616else
21617 eval "$as_ac_Lib=no"
21618fi
21619rm -f core conftest.err conftest.$ac_objext \
21620 conftest$ac_exeext conftest.$ac_ext
21621LIBS=$ac_check_lib_save_LIBS
21622fi
21623eval ac_res=\$$as_ac_Lib
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21625$as_echo "$ac_res" >&6; }
21626if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21627 cat >>confdefs.h <<_ACEOF
21628#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21629_ACEOF
21630
21631 LIBS="-l"$LDAPLIBNAME" $LIBS"
21632
21633else
21634
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21636$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21637
21638$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21639
21640 CURL_DISABLE_LDAP=1
21641
21642
21643$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21644
21645 CURL_DISABLE_LDAPS=1
21646
21647fi
21648
21649 else
21650
21651 #
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21653$as_echo_n "checking for LDAP libraries... " >&6; }
21654 #
21655 u_libs=""
21656 #
21657
21658 #
21659 curl_cv_save_LIBS="$LIBS"
21660 curl_cv_ldap_LIBS="unknown"
21661 #
21662 for x_nlibs in '' "$u_libs" \
21663 '-lldap' \
21664 '-lldap -llber' \
21665 '-llber -lldap' \
21666 '-lldapssl -lldapx -lldapsdk' \
21667 '-lldapsdk -lldapx -lldapssl' ; do
21668 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21669 if test -z "$x_nlibs"; then
21670 LIBS="$curl_cv_save_LIBS"
21671 else
21672 LIBS="$x_nlibs $curl_cv_save_LIBS"
21673 fi
21674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21675/* end confdefs.h. */
21676
21677
21678#undef inline
21679#ifdef HAVE_WINDOWS_H
21680#ifndef WIN32_LEAN_AND_MEAN
21681#define WIN32_LEAN_AND_MEAN
21682#endif
21683#include <windows.h>
21684#else
21685#ifdef HAVE_SYS_TYPES_H
21686#include <sys/types.h>
21687#endif
21688#endif
21689#ifndef NULL
21690#define NULL (void *)0
21691#endif
21692#ifndef LDAP_DEPRECATED
21693#define LDAP_DEPRECATED 1
21694#endif
21695#ifdef NEED_LBER_H
21696#include <lber.h>
21697#endif
21698#ifdef HAVE_LDAP_H
21699#include <ldap.h>
21700#endif
21701
21702int main (void)
21703{
21704
21705 BerValue *bvp = NULL;
21706 BerElement *bep = ber_init(bvp);
21707 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21708 int res = ldap_unbind(ldp);
21709 ber_free(bep, 1);
21710
21711 ;
21712 return 0;
21713}
21714
21715_ACEOF
21716if ac_fn_c_try_link "$LINENO"; then :
21717
21718 curl_cv_ldap_LIBS="$x_nlibs"
21719
21720fi
21721rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext conftest.$ac_ext
21723 fi
21724 done
21725 #
21726 LIBS="$curl_cv_save_LIBS"
21727 #
21728 case X-"$curl_cv_ldap_LIBS" in
21729 X-unknown)
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21731$as_echo "cannot find LDAP libraries" >&6; }
21732 ;;
21733 X-)
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21735$as_echo "no additional lib required" >&6; }
21736 ;;
21737 *)
21738 if test -z "$curl_cv_save_LIBS"; then
21739 LIBS="$curl_cv_ldap_LIBS"
21740 else
21741 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21742 fi
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21744$as_echo "$curl_cv_ldap_LIBS" >&6; }
21745 ;;
21746 esac
21747 #
21748
21749 case X-"$curl_cv_ldap_LIBS" in
21750 X-unknown)
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21752$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21753
21754$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21755
21756 CURL_DISABLE_LDAP=1
21757
21758
21759$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21760
21761 CURL_DISABLE_LDAPS=1
21762
21763 ;;
21764 esac
21765 fi
21766fi
21767
21768if test x$CURL_DISABLE_LDAP != x1 ; then
21769
21770 if test "$LBERLIBNAME" ; then
21771 if test "$LBERLIBNAME" != "no" ; then
21772 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21774$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21775if eval \${$as_ac_Lib+:} false; then :
21776 $as_echo_n "(cached) " >&6
21777else
21778 ac_check_lib_save_LIBS=$LIBS
21779LIBS="-l"$LBERLIBNAME" $LIBS"
21780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781/* end confdefs.h. */
21782
21783
21784#ifdef __cplusplus
21785extern "C"
21786#endif
21787char ber_free ();
21788int main (void)
21789{
21790return ber_free ();
21791 ;
21792 return 0;
21793}
21794_ACEOF
21795if ac_fn_c_try_link "$LINENO"; then :
21796 eval "$as_ac_Lib=yes"
21797else
21798 eval "$as_ac_Lib=no"
21799fi
21800rm -f core conftest.err conftest.$ac_objext \
21801 conftest$ac_exeext conftest.$ac_ext
21802LIBS=$ac_check_lib_save_LIBS
21803fi
21804eval ac_res=\$$as_ac_Lib
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21806$as_echo "$ac_res" >&6; }
21807if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21808 cat >>confdefs.h <<_ACEOF
21809#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21810_ACEOF
21811
21812 LIBS="-l"$LBERLIBNAME" $LIBS"
21813
21814else
21815
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21817$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21818
21819$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21820
21821 CURL_DISABLE_LDAP=1
21822
21823
21824$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21825
21826 CURL_DISABLE_LDAPS=1
21827
21828fi
21829
21830 fi
21831 fi
21832fi
21833
21834if test x$CURL_DISABLE_LDAP != x1 ; then
21835 for ac_func in ldap_url_parse ldap_init_fd
21836do :
21837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21838ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21839if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21840 cat >>confdefs.h <<_ACEOF
21841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21842_ACEOF
21843
21844fi
21845done
21846
21847
21848 if test "$LDAPLIBNAME" = "wldap32"; then
21849 curl_ldap_msg="enabled (winldap)"
21850
21851$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21852
21853 else
21854 curl_ldap_msg="enabled (OpenLDAP)"
21855 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21856
21857$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21858
21859 USE_OPENLDAP=1
21860
21861 fi
21862 fi
21863fi
21864
21865if test x$CURL_DISABLE_LDAPS != x1 ; then
21866 curl_ldaps_msg="enabled"
21867fi
21868
21869
21870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21871$as_echo_n "checking whether to enable IPv6... " >&6; }
21872# Check whether --enable-ipv6 was given.
21873if test "${enable_ipv6+set}" = set; then :
21874 enableval=$enable_ipv6; case "$enableval" in
21875 no)
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21877$as_echo "no" >&6; }
21878 ipv6=no
21879 ;;
21880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21881$as_echo "yes" >&6; }
21882 ipv6=yes
21883 ;;
21884 esac
21885else
21886 if test "$cross_compiling" = yes; then :
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21888$as_echo "yes" >&6; }
21889 ipv6=yes
21890
21891else
21892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893/* end confdefs.h. */
21894 /* is AF_INET6 available? */
21895#include <sys/types.h>
21896#ifdef HAVE_WINSOCK2_H
21897#include <winsock2.h>
21898#else
21899#include <sys/socket.h>
21900#endif
21901#include <stdlib.h> /* for exit() */
21902main()
21903{
21904 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21905 exit(1);
21906 else
21907 exit(0);
21908}
21909
21910_ACEOF
21911if ac_fn_c_try_run "$LINENO"; then :
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21913$as_echo "yes" >&6; }
21914 ipv6=yes
21915else
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917$as_echo "no" >&6; }
21918 ipv6=no
21919fi
21920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21921 conftest.$ac_objext conftest.beam conftest.$ac_ext
21922fi
21923
21924fi
21925
21926
21927if test "$ipv6" = "yes"; then
21928 curl_ipv6_msg="enabled"
21929fi
21930
21931# Check if struct sockaddr_in6 have sin6_scope_id member
21932if test "$ipv6" = yes; then
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21934$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21936/* end confdefs.h. */
21937
21938#include <sys/types.h>
21939#ifdef HAVE_WINSOCK2_H
21940#include <winsock2.h>
21941#include <ws2tcpip.h>
21942#else
21943#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021944#if defined (__TANDEM)
21945# include <netinet/in6.h>
21946#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021947#endif
21948int main (void)
21949{
21950struct sockaddr_in6 s; s.sin6_scope_id = 0;
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955if ac_fn_c_try_compile "$LINENO"; then :
21956 have_sin6_scope_id=yes
21957fi
21958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 if test "$have_sin6_scope_id" = yes; then
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21961$as_echo "yes" >&6; }
21962
21963$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21964
21965 else
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21967$as_echo "no" >&6; }
21968 fi
21969fi
21970
21971
21972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21973$as_echo_n "checking if argv can be written to... " >&6; }
21974if test "$cross_compiling" = yes; then :
21975
21976 curl_cv_writable_argv=cross
21977
21978else
21979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21980/* end confdefs.h. */
21981
21982
21983int main(int argc, char ** argv) {
21984 argv[0][0] = ' ';
21985 return (argv[0][0] == ' ')?0:1;
21986}
21987
21988
21989_ACEOF
21990if ac_fn_c_try_run "$LINENO"; then :
21991
21992 curl_cv_writable_argv=yes
21993
21994else
21995
21996 curl_cv_writable_argv=no
21997
21998fi
21999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22000 conftest.$ac_objext conftest.beam conftest.$ac_ext
22001fi
22002
22003case $curl_cv_writable_argv in
22004yes)
22005
22006$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22007
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22009$as_echo "yes" >&6; }
22010 ;;
22011no)
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22013$as_echo "no" >&6; }
22014 ;;
22015*)
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22017$as_echo "no" >&6; }
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22019$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22020 ;;
22021esac
22022
22023
22024
22025GSSAPI_ROOT="/usr"
22026
22027# Check whether --with-gssapi-includes was given.
22028if test "${with_gssapi_includes+set}" = set; then :
22029 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22030 want_gss="yes"
22031
22032fi
22033
22034
22035
22036# Check whether --with-gssapi-libs was given.
22037if test "${with_gssapi_libs+set}" = set; then :
22038 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22039 want_gss="yes"
22040
22041fi
22042
22043
22044
22045# Check whether --with-gssapi was given.
22046if test "${with_gssapi+set}" = set; then :
22047 withval=$with_gssapi;
22048 GSSAPI_ROOT="$withval"
22049 if test x"$GSSAPI_ROOT" != xno; then
22050 want_gss="yes"
22051 if test x"$GSSAPI_ROOT" = xyes; then
22052 GSSAPI_ROOT="/usr"
22053 fi
22054 fi
22055
22056fi
22057
22058
22059: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22060
22061save_CPPFLAGS="$CPPFLAGS"
22062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22063$as_echo_n "checking if GSS-API support is requested... " >&6; }
22064if test x"$want_gss" = xyes; then
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22066$as_echo "yes" >&6; }
22067
22068 if test -z "$GSSAPI_INCS"; then
22069 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22070 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22071 elif test -f "$KRB5CONFIG"; then
22072 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22073 elif test "$GSSAPI_ROOT" != "yes"; then
22074 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22075 fi
22076 fi
22077
22078 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22079
22080 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22081if test "x$ac_cv_header_gss_h" = xyes; then :
22082
22083
22084$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22085
22086 gnu_gss=yes
22087
22088else
22089
22090 for ac_header in gssapi/gssapi.h
22091do :
22092 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22093if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22094 cat >>confdefs.h <<_ACEOF
22095#define HAVE_GSSAPI_GSSAPI_H 1
22096_ACEOF
22097
22098else
22099 not_mit=1
22100fi
22101
22102done
22103
22104 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22105do :
22106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22107ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22108$ac_includes_default
22109#ifdef HAVE_GSSAPI_GSSAPI_H
22110#include <gssapi/gssapi.h>
22111#endif
22112
22113"
22114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22115 cat >>confdefs.h <<_ACEOF
22116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117_ACEOF
22118
22119else
22120 not_mit=1
22121fi
22122
22123done
22124
22125 if test "x$not_mit" = "x1"; then
22126 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22127if test "x$ac_cv_header_gssapi_h" = xyes; then :
22128
22129
22130$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22131
22132
22133else
22134
22135 want_gss=no
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22137$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22138
22139
22140fi
22141
22142
22143 else
22144
22145$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22146
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22148$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150/* end confdefs.h. */
22151
22152
22153#include <gssapi/gssapi.h>
22154#include <gssapi/gssapi_generic.h>
22155#include <gssapi/gssapi_krb5.h>
22156
22157int main (void)
22158{
22159
22160 gss_import_name(
22161 (OM_uint32 *)0,
22162 (gss_buffer_t)0,
22163 GSS_C_NT_HOSTBASED_SERVICE,
22164 (gss_name_t *)0);
22165
22166 ;
22167 return 0;
22168}
22169
22170_ACEOF
22171if ac_fn_c_try_compile "$LINENO"; then :
22172
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22174$as_echo "yes" >&6; }
22175
22176else
22177
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22179$as_echo "no" >&6; }
22180
22181$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22182
22183
22184fi
22185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 fi
22187
22188
22189fi
22190
22191
22192else
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22194$as_echo "no" >&6; }
22195fi
22196if test x"$want_gss" = xyes; then
22197
22198$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22199
22200 HAVE_GSSAPI=1
22201 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22202
22203 if test -n "$gnu_gss"; then
22204 curl_gss_msg="enabled (GNU GSS)"
22205 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22206 LIBS="-lgss $LIBS"
22207 elif test -z "$GSSAPI_LIB_DIR"; then
22208 case $host in
22209 *-*-darwin*)
22210 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22211 ;;
22212 *)
22213 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22214 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22215 LIBS="$gss_libs $LIBS"
22216 elif test -f "$KRB5CONFIG"; then
22217 gss_libs=`$KRB5CONFIG --libs gssapi`
22218 LIBS="$gss_libs $LIBS"
22219 else
22220 case $host in
22221 *-hp-hpux*)
22222 gss_libname="gss"
22223 ;;
22224 *)
22225 gss_libname="gssapi"
22226 ;;
22227 esac
22228
22229 if test "$GSSAPI_ROOT" != "yes"; then
22230 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22231 LIBS="-l$gss_libname $LIBS"
22232 else
22233 LIBS="-l$gss_libname $LIBS"
22234 fi
22235 fi
22236 ;;
22237 esac
22238 else
22239 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22240 case $host in
22241 *-hp-hpux*)
22242 LIBS="-lgss $LIBS"
22243 ;;
22244 *)
22245 LIBS="-lgssapi $LIBS"
22246 ;;
22247 esac
22248 fi
22249else
22250 CPPFLAGS="$save_CPPFLAGS"
22251fi
22252
Alex Deymo486467e2017-12-19 19:04:07 +010022253build_libstubgss=no
22254if test x"$want_gss" = "xyes"; then
22255 build_libstubgss=yes
22256fi
22257
22258 if test "x$build_libstubgss" = "xyes"; then
22259 BUILD_STUB_GSS_TRUE=
22260 BUILD_STUB_GSS_FALSE='#'
22261else
22262 BUILD_STUB_GSS_TRUE='#'
22263 BUILD_STUB_GSS_FALSE=
22264fi
22265
22266
22267
22268DEFAULT_SSL_BACKEND=no
22269VALID_DEFAULT_SSL_BACKEND=
22270
22271# Check whether --with-default-ssl-backend was given.
22272if test "${with_default_ssl_backend+set}" = set; then :
22273 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22274fi
22275
22276case "$DEFAULT_SSL_BACKEND" in
22277 no)
22278 ;;
22279 default|yes)
22280 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22281 ;;
22282 *)
22283
22284 VALID_DEFAULT_SSL_BACKEND=no
22285 ;;
22286esac
22287
22288
Elliott Hughes82be86d2017-09-20 17:00:17 -070022289
22290OPT_WINSSL=no
22291
22292# Check whether --with-winssl was given.
22293if test "${with_winssl+set}" = set; then :
22294 withval=$with_winssl; OPT_WINSSL=$withval
22295fi
22296
22297
22298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22299$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022300if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22301 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022302 if test "x$OPT_WINSSL" != "xno" &&
22303 test "x$curl_cv_native_windows" = "xyes"; then
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22305$as_echo "yes" >&6; }
22306
22307$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22308
22309 USE_SCHANNEL=1
22310
Alex Deymo486467e2017-12-19 19:04:07 +010022311 ssl_msg="Windows-native"
22312 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022313 WINSSL_ENABLED=1
22314 # --with-winssl implies --enable-sspi
22315
22316$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22317
22318 USE_WINDOWS_SSPI=1
22319
22320 curl_sspi_msg="enabled"
22321 LIBS="-lcrypt32 $LIBS"
22322 else
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22324$as_echo "no" >&6; }
22325 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022326 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022327else
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22329$as_echo "no" >&6; }
22330fi
22331
22332OPT_DARWINSSL=no
22333
22334# Check whether --with-darwinssl was given.
22335if test "${with_darwinssl+set}" = set; then :
22336 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22337fi
22338
22339
22340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22341$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022342if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022343 if test "x$OPT_DARWINSSL" != "xno" &&
22344 test -d "/System/Library/Frameworks/Security.framework"; then
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22346$as_echo "yes" >&6; }
22347
22348$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22349
22350 USE_DARWINSSL=1
22351
Alex Deymo486467e2017-12-19 19:04:07 +010022352 ssl_msg="Apple OS-native"
22353 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022354 DARWINSSL_ENABLED=1
22355 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22356 else
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22358$as_echo "no" >&6; }
22359 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022360 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022361else
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22363$as_echo "no" >&6; }
22364fi
22365
22366
22367OPT_SSL=off
22368ca="no"
22369
22370# Check whether --with-ssl was given.
22371if test "${with_ssl+set}" = set; then :
22372 withval=$with_ssl; OPT_SSL=$withval
22373fi
22374
22375
Alex Deymo486467e2017-12-19 19:04:07 +010022376if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22377 test X"$OPT_SSL" != Xno; then
22378 ssl_msg=
22379
Elliott Hughes82be86d2017-09-20 17:00:17 -070022380 CLEANLDFLAGS="$LDFLAGS"
22381 CLEANCPPFLAGS="$CPPFLAGS"
22382 CLEANLIBS="$LIBS"
22383
22384 case $host in
22385 *-*-msys* | *-*-mingw*)
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22387$as_echo_n "checking for gdi32... " >&6; }
22388 my_ac_save_LIBS=$LIBS
22389 LIBS="-lgdi32 $LIBS"
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391/* end confdefs.h. */
22392#include <windef.h>
22393 #include <wingdi.h>
22394int main (void)
22395{
22396GdiFlush();
22397 ;
22398 return 0;
22399}
22400_ACEOF
22401if ac_fn_c_try_link "$LINENO"; then :
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22403$as_echo "yes" >&6; }
22404else
22405 LIBS=$my_ac_save_LIBS
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407$as_echo "no" >&6; }
22408
22409fi
22410rm -f core conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22412 ;;
22413 esac
22414
22415 case "$OPT_SSL" in
22416 yes)
22417 if test x$cross_compiling != xyes; then
22418 PKGTEST="yes"
22419 fi
22420 PREFIX_OPENSSL=/usr/local/ssl
22421 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22422 ;;
22423 off)
22424 if test x$cross_compiling != xyes; then
22425 PKGTEST="yes"
22426 fi
22427 PREFIX_OPENSSL=
22428 ;;
22429 *)
22430 PKGTEST="no"
22431 PREFIX_OPENSSL=$OPT_SSL
22432
22433 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22435$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22436 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22437 PKGTEST="yes"
22438 fi
22439
22440 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22441 if test "$PREFIX_OPENSSL" != "/usr" ; then
22442 SSL_LDFLAGS="-L$LIB_OPENSSL"
22443 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22444 fi
22445 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22446 ;;
22447 esac
22448
22449 if test "$PKGTEST" = "yes"; then
22450
22451
22452 if test -n "$PKG_CONFIG"; then
22453 PKGCONFIG="$PKG_CONFIG"
22454 else
22455 if test -n "$ac_tool_prefix"; then
22456 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22457set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22459$as_echo_n "checking for $ac_word... " >&6; }
22460if ${ac_cv_path_PKGCONFIG+:} false; then :
22461 $as_echo_n "(cached) " >&6
22462else
22463 case $PKGCONFIG in
22464 [\\/]* | ?:[\\/]*)
22465 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22466 ;;
22467 *)
22468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469as_dummy="$PATH:/usr/bin:/usr/local/bin"
22470for as_dir in $as_dummy
22471do
22472 IFS=$as_save_IFS
22473 test -z "$as_dir" && as_dir=.
22474 for ac_exec_ext in '' $ac_executable_extensions; do
22475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22476 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22478 break 2
22479 fi
22480done
22481 done
22482IFS=$as_save_IFS
22483
22484 ;;
22485esac
22486fi
22487PKGCONFIG=$ac_cv_path_PKGCONFIG
22488if test -n "$PKGCONFIG"; then
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22490$as_echo "$PKGCONFIG" >&6; }
22491else
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22493$as_echo "no" >&6; }
22494fi
22495
22496
22497fi
22498if test -z "$ac_cv_path_PKGCONFIG"; then
22499 ac_pt_PKGCONFIG=$PKGCONFIG
22500 # Extract the first word of "pkg-config", so it can be a program name with args.
22501set dummy pkg-config; ac_word=$2
22502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22503$as_echo_n "checking for $ac_word... " >&6; }
22504if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22505 $as_echo_n "(cached) " >&6
22506else
22507 case $ac_pt_PKGCONFIG in
22508 [\\/]* | ?:[\\/]*)
22509 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22510 ;;
22511 *)
22512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22513as_dummy="$PATH:/usr/bin:/usr/local/bin"
22514for as_dir in $as_dummy
22515do
22516 IFS=$as_save_IFS
22517 test -z "$as_dir" && as_dir=.
22518 for ac_exec_ext in '' $ac_executable_extensions; do
22519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22520 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22522 break 2
22523 fi
22524done
22525 done
22526IFS=$as_save_IFS
22527
22528 ;;
22529esac
22530fi
22531ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22532if test -n "$ac_pt_PKGCONFIG"; then
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22534$as_echo "$ac_pt_PKGCONFIG" >&6; }
22535else
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22537$as_echo "no" >&6; }
22538fi
22539
22540 if test "x$ac_pt_PKGCONFIG" = x; then
22541 PKGCONFIG="no"
22542 else
22543 case $cross_compiling:$ac_tool_warned in
22544yes:)
22545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22547ac_tool_warned=yes ;;
22548esac
22549 PKGCONFIG=$ac_pt_PKGCONFIG
22550 fi
22551else
22552 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22553fi
22554
22555 fi
22556
22557 if test "x$PKGCONFIG" != "xno"; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22559$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22560 itexists=`
22561 if test -n "$OPENSSL_PCDIR"; then
22562 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22563 export PKG_CONFIG_LIBDIR
22564 fi
22565 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22566
22567 if test -z "$itexists"; then
22568 PKGCONFIG="no"
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22570$as_echo "no" >&6; }
22571 else
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22573$as_echo "found" >&6; }
22574 fi
22575 fi
22576
22577
22578 if test "$PKGCONFIG" != "no" ; then
22579 SSL_LIBS=`
22580 if test -n "$OPENSSL_PCDIR"; then
22581 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22582 export PKG_CONFIG_LIBDIR
22583 fi
22584 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22585
22586 SSL_LDFLAGS=`
22587 if test -n "$OPENSSL_PCDIR"; then
22588 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22589 export PKG_CONFIG_LIBDIR
22590 fi
22591 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22592
22593 SSL_CPPFLAGS=`
22594 if test -n "$OPENSSL_PCDIR"; then
22595 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22596 export PKG_CONFIG_LIBDIR
22597 fi
22598 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22599
22600
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22602$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22604$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22606$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22607
22608 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22609
22610 LIBS="$SSL_LIBS $LIBS"
22611 fi
22612 fi
22613
22614 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22615 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22616
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22618$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22619if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22620 $as_echo_n "(cached) " >&6
22621else
22622 ac_check_lib_save_LIBS=$LIBS
22623LIBS="-lcrypto $LIBS"
22624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625/* end confdefs.h. */
22626
22627
22628#ifdef __cplusplus
22629extern "C"
22630#endif
22631char HMAC_Update ();
22632int main (void)
22633{
22634return HMAC_Update ();
22635 ;
22636 return 0;
22637}
22638_ACEOF
22639if ac_fn_c_try_link "$LINENO"; then :
22640 ac_cv_lib_crypto_HMAC_Update=yes
22641else
22642 ac_cv_lib_crypto_HMAC_Update=no
22643fi
22644rm -f core conftest.err conftest.$ac_objext \
22645 conftest$ac_exeext conftest.$ac_ext
22646LIBS=$ac_check_lib_save_LIBS
22647fi
22648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22649$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22650if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22651
22652 HAVECRYPTO="yes"
22653 LIBS="-lcrypto $LIBS"
22654
22655else
22656
22657 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22658 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22660$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22661if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22662 $as_echo_n "(cached) " >&6
22663else
22664 ac_check_lib_save_LIBS=$LIBS
22665LIBS="-lcrypto $LIBS"
22666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667/* end confdefs.h. */
22668
22669
22670#ifdef __cplusplus
22671extern "C"
22672#endif
22673char HMAC_Init_ex ();
22674int main (void)
22675{
22676return HMAC_Init_ex ();
22677 ;
22678 return 0;
22679}
22680_ACEOF
22681if ac_fn_c_try_link "$LINENO"; then :
22682 ac_cv_lib_crypto_HMAC_Init_ex=yes
22683else
22684 ac_cv_lib_crypto_HMAC_Init_ex=no
22685fi
22686rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22688LIBS=$ac_check_lib_save_LIBS
22689fi
22690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22691$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22692if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22693
22694 HAVECRYPTO="yes"
22695 LIBS="-lcrypto $LIBS"
22696else
22697
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22700$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022701 LIBS="$LIBS -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703/* end confdefs.h. */
22704
22705 #include <openssl/err.h>
22706
22707int main (void)
22708{
22709
22710 ERR_clear_error();
22711
22712 ;
22713 return 0;
22714}
22715_ACEOF
22716if ac_fn_c_try_link "$LINENO"; then :
22717
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22719$as_echo "yes" >&6; }
22720 HAVECRYPTO="yes"
22721
22722else
22723
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725$as_echo "no" >&6; }
22726
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22728$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022729 LIBS="$LIBS -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h. */
22732
22733 #include <openssl/err.h>
22734
22735int main (void)
22736{
22737
22738 ERR_clear_error();
22739
22740 ;
22741 return 0;
22742}
22743_ACEOF
22744if ac_fn_c_try_link "$LINENO"; then :
22745
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22747$as_echo "yes" >&6; }
22748 HAVECRYPTO="yes"
22749
22750else
22751
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753$as_echo "no" >&6; }
22754 LDFLAGS="$CLEANLDFLAGS"
22755 CPPFLAGS="$CLEANCPPFLAGS"
22756 LIBS="$CLEANLIBS"
22757
22758
22759fi
22760rm -f core conftest.err conftest.$ac_objext \
22761 conftest$ac_exeext conftest.$ac_ext
22762
22763
22764fi
22765rm -f core conftest.err conftest.$ac_objext \
22766 conftest$ac_exeext conftest.$ac_ext
22767
22768
22769fi
22770
22771
22772fi
22773
22774
22775 if test X"$HAVECRYPTO" = X"yes"; then
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22778$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22779if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781else
22782 ac_check_lib_save_LIBS=$LIBS
22783LIBS="-lssl $LIBS"
22784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h. */
22786
22787
22788#ifdef __cplusplus
22789extern "C"
22790#endif
22791char SSL_connect ();
22792int main (void)
22793{
22794return SSL_connect ();
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799if ac_fn_c_try_link "$LINENO"; then :
22800 ac_cv_lib_ssl_SSL_connect=yes
22801else
22802 ac_cv_lib_ssl_SSL_connect=no
22803fi
22804rm -f core conftest.err conftest.$ac_objext \
22805 conftest$ac_exeext conftest.$ac_ext
22806LIBS=$ac_check_lib_save_LIBS
22807fi
22808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22809$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22810if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22811 cat >>confdefs.h <<_ACEOF
22812#define HAVE_LIBSSL 1
22813_ACEOF
22814
22815 LIBS="-lssl $LIBS"
22816
22817fi
22818
22819
22820 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22822$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22823 OLIBS=$LIBS
22824 LIBS="-lRSAglue -lrsaref $LIBS"
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22826$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22827if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22828 $as_echo_n "(cached) " >&6
22829else
22830 ac_check_lib_save_LIBS=$LIBS
22831LIBS="-lssl $LIBS"
22832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833/* end confdefs.h. */
22834
22835
22836#ifdef __cplusplus
22837extern "C"
22838#endif
22839char SSL_connect ();
22840int main (void)
22841{
22842return SSL_connect ();
22843 ;
22844 return 0;
22845}
22846_ACEOF
22847if ac_fn_c_try_link "$LINENO"; then :
22848 ac_cv_lib_ssl_SSL_connect=yes
22849else
22850 ac_cv_lib_ssl_SSL_connect=no
22851fi
22852rm -f core conftest.err conftest.$ac_objext \
22853 conftest$ac_exeext conftest.$ac_ext
22854LIBS=$ac_check_lib_save_LIBS
22855fi
22856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22857$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22858if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22859 cat >>confdefs.h <<_ACEOF
22860#define HAVE_LIBSSL 1
22861_ACEOF
22862
22863 LIBS="-lssl $LIBS"
22864
22865fi
22866
22867 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869$as_echo "no" >&6; }
22870 LIBS=$OLIBS
22871 else
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22873$as_echo "yes" >&6; }
22874 fi
22875
22876 else
22877
22878 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22879 openssl/pem.h openssl/ssl.h openssl/err.h
22880do :
22881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22884 cat >>confdefs.h <<_ACEOF
22885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22886_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022887 ssl_msg="OpenSSL"
22888 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022889 OPENSSL_ENABLED=1
22890
22891$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22892
22893fi
22894
22895done
22896
22897
22898 if test $ac_cv_header_openssl_x509_h = no; then
22899 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22900do :
22901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22902ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22904 cat >>confdefs.h <<_ACEOF
22905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22906_ACEOF
22907
22908fi
22909
22910done
22911
22912
22913 if test $ac_cv_header_x509_h = yes &&
22914 test $ac_cv_header_crypto_h = yes &&
22915 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022916 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022917 OPENSSL_ENABLED=1
22918 fi
22919 fi
22920 fi
22921
Alex Deymo486467e2017-12-19 19:04:07 +010022922 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022923 LIBS="$CLEANLIBS"
22924 fi
22925
22926 if test X"$OPT_SSL" != Xoff &&
22927 test "$OPENSSL_ENABLED" != "1"; then
22928 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22929 fi
22930 fi
22931
22932 if test X"$OPENSSL_ENABLED" = X"1"; then
22933 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22934if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22935
22936 for ac_header in openssl/engine.h
22937do :
22938 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22939if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22940 cat >>confdefs.h <<_ACEOF
22941#define HAVE_OPENSSL_ENGINE_H 1
22942_ACEOF
22943
22944fi
22945
22946done
22947
22948 for ac_func in ENGINE_load_builtin_engines
22949do :
22950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22952if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22953 cat >>confdefs.h <<_ACEOF
22954#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22955_ACEOF
22956
22957fi
22958done
22959
22960
22961fi
22962
22963
22964
22965 for ac_func in RAND_egd \
22966 ENGINE_cleanup \
22967 SSL_get_shutdown \
22968 SSLv2_client_method
22969do :
22970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22973 cat >>confdefs.h <<_ACEOF
22974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22975_ACEOF
22976
22977fi
22978done
22979
22980
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22982$as_echo_n "checking for BoringSSL... " >&6; }
22983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984/* end confdefs.h. */
22985
22986
22987 #include <openssl/base.h>
22988
22989int main (void)
22990{
22991
22992 #ifndef OPENSSL_IS_BORINGSSL
22993 #error not boringssl
22994 #endif
22995
22996 ;
22997 return 0;
22998}
22999
23000_ACEOF
23001if ac_fn_c_try_compile "$LINENO"; then :
23002
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23004$as_echo "yes" >&6; }
23005
23006cat >>confdefs.h <<_ACEOF
23007#define HAVE_BORINGSSL 1
23008_ACEOF
23009
Alex Deymo486467e2017-12-19 19:04:07 +010023010 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023011
23012else
23013
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015$as_echo "no" >&6; }
23016
23017fi
23018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23021$as_echo_n "checking for libressl... " >&6; }
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023/* end confdefs.h. */
23024
23025
23026#include <openssl/opensslv.h>
23027
23028int main (void)
23029{
23030
23031 int dummy = LIBRESSL_VERSION_NUMBER;
23032
23033 ;
23034 return 0;
23035}
23036
23037_ACEOF
23038if ac_fn_c_try_compile "$LINENO"; then :
23039
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23041$as_echo "yes" >&6; }
23042
23043cat >>confdefs.h <<_ACEOF
23044#define HAVE_LIBRESSL 1
23045_ACEOF
23046
Alex Deymo486467e2017-12-19 19:04:07 +010023047 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023048
23049else
23050
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052$as_echo "no" >&6; }
23053
23054fi
23055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056 fi
23057
23058 if test "$OPENSSL_ENABLED" = "1"; then
23059 if test -n "$LIB_OPENSSL"; then
23060 if test "x$cross_compiling" != "xyes"; then
23061 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23062 export LD_LIBRARY_PATH
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23064$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23065 fi
23066 fi
23067
23068 #
23069
23070 #
23071 tst_api="unknown"
23072 #
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23074$as_echo_n "checking for OpenSSL headers version... " >&6; }
23075
23076 OLDCPPFLAGS=$CPPFLAGS
23077 # CPPPFLAG comes from CURL_CPP_P
23078 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23079 if test -z "$SED"; then
23080 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23081 fi
23082 if test -z "$GREP"; then
23083 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23084 fi
23085
23086 tmp_exp=""
23087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23088/* end confdefs.h. */
23089
23090
23091# ifdef USE_OPENSSL
23092# include <openssl/crypto.h>
23093# else
23094# include <crypto.h>
23095# endif
23096
23097#ifdef OPENSSL_VERSION_NUMBER
23098CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23099#endif
23100
23101
23102_ACEOF
23103if ac_fn_c_try_cpp "$LINENO"; then :
23104
23105 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23106 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23107 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23108 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23109 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23110 tmp_exp=""
23111 fi
23112
23113fi
23114rm -f conftest.err conftest.i conftest.$ac_ext
23115 if test -z "$tmp_exp"; then
23116 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23117
23118 else
23119 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23120 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23121
23122 fi
23123 CPPFLAGS=$OLDCPPFLAGS
23124
23125 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23126 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23127 case "x$tst_verlen" in
23128 x6)
23129 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23130 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23131 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23132 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23133 ;;
23134 x11|x10)
23135 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23136 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23137 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23138 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23139 ;;
23140 *)
23141 tst_api="unknown"
23142 ;;
23143 esac
23144 case $tst_api in
23145 0x110) tst_show="1.1.0" ;;
23146 0x102) tst_show="1.0.2" ;;
23147 0x101) tst_show="1.0.1" ;;
23148 0x100) tst_show="1.0.0" ;;
23149 0x099) tst_show="0.9.9" ;;
23150 0x098) tst_show="0.9.8" ;;
23151 0x097) tst_show="0.9.7" ;;
23152 0x096) tst_show="0.9.6" ;;
23153 0x095) tst_show="0.9.5" ;;
23154 0x094) tst_show="0.9.4" ;;
23155 0x093) tst_show="0.9.3" ;;
23156 0x092) tst_show="0.9.2" ;;
23157 0x091) tst_show="0.9.1" ;;
23158 *) tst_show="unknown" ;;
23159 esac
23160 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23161 else
23162 tst_show="unknown"
23163 fi
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23165$as_echo "$tst_show" >&6; }
23166 #
23167 curl_openssl_api_headers=$tst_api
23168
23169
23170 #
23171 tst_api="unknown"
23172 #
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23174$as_echo_n "checking for OpenSSL library version... " >&6; }
23175 if test "$tst_api" = "unknown"; then
23176 case $host in
23177 *-*-vms*)
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179/* end confdefs.h. */
23180
23181
23182#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23183#ifdef __STDC__
23184# include <limits.h>
23185#else
23186# include <assert.h>
23187#endif
23188#undef SSL_CTX_set_not_resumbl_sess_cb
23189#ifdef __cplusplus
23190extern "C"
23191#endif
23192char SSL_CTX_set_not_resumbl_sess_cb ();
23193#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23194choke me
23195#endif
23196
23197int main (void)
23198{
23199return SSL_CTX_set_not_resumbl_sess_cb ();
23200 ;
23201 return 0;
23202}
23203
23204_ACEOF
23205if ac_fn_c_try_link "$LINENO"; then :
23206
23207 tst_api="0x110"
23208
23209fi
23210rm -f core conftest.err conftest.$ac_objext \
23211 conftest$ac_exeext conftest.$ac_ext
23212 ;;
23213 *)
23214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215/* end confdefs.h. */
23216
23217
23218#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23219#ifdef __STDC__
23220# include <limits.h>
23221#else
23222# include <assert.h>
23223#endif
23224#undef SSL_CTX_set_not_resumable_session_callback
23225#ifdef __cplusplus
23226extern "C"
23227#endif
23228char SSL_CTX_set_not_resumable_session_callback ();
23229#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23230choke me
23231#endif
23232
23233int main (void)
23234{
23235return SSL_CTX_set_not_resumable_session_callback ();
23236 ;
23237 return 0;
23238}
23239
23240_ACEOF
23241if ac_fn_c_try_link "$LINENO"; then :
23242
23243 tst_api="0x110"
23244
23245fi
23246rm -f core conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
23248 ;;
23249 esac
23250 fi
23251 if test "$tst_api" = "unknown"; then
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253/* end confdefs.h. */
23254
23255
23256#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23257#ifdef __STDC__
23258# include <limits.h>
23259#else
23260# include <assert.h>
23261#endif
23262#undef SSL_CONF_CTX_new
23263#ifdef __cplusplus
23264extern "C"
23265#endif
23266char SSL_CONF_CTX_new ();
23267#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23268choke me
23269#endif
23270
23271int main (void)
23272{
23273return SSL_CONF_CTX_new ();
23274 ;
23275 return 0;
23276}
23277
23278_ACEOF
23279if ac_fn_c_try_link "$LINENO"; then :
23280
23281 tst_api="0x102"
23282
23283fi
23284rm -f core conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23286 fi
23287 if test "$tst_api" = "unknown"; then
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289/* end confdefs.h. */
23290
23291
23292#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23293#ifdef __STDC__
23294# include <limits.h>
23295#else
23296# include <assert.h>
23297#endif
23298#undef SSL_renegotiate_abbreviated
23299#ifdef __cplusplus
23300extern "C"
23301#endif
23302char SSL_renegotiate_abbreviated ();
23303#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23304choke me
23305#endif
23306
23307int main (void)
23308{
23309return SSL_renegotiate_abbreviated ();
23310 ;
23311 return 0;
23312}
23313
23314_ACEOF
23315if ac_fn_c_try_link "$LINENO"; then :
23316
23317 tst_api="0x101"
23318
23319fi
23320rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23322 fi
23323 if test "$tst_api" = "unknown"; then
23324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23325/* end confdefs.h. */
23326
23327
23328#define OBJ_add_sigid innocuous_OBJ_add_sigid
23329#ifdef __STDC__
23330# include <limits.h>
23331#else
23332# include <assert.h>
23333#endif
23334#undef OBJ_add_sigid
23335#ifdef __cplusplus
23336extern "C"
23337#endif
23338char OBJ_add_sigid ();
23339#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23340choke me
23341#endif
23342
23343int main (void)
23344{
23345return OBJ_add_sigid ();
23346 ;
23347 return 0;
23348}
23349
23350_ACEOF
23351if ac_fn_c_try_link "$LINENO"; then :
23352
23353 tst_api="0x100"
23354
23355fi
23356rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23358 fi
23359 if test "$tst_api" = "unknown"; then
23360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23361/* end confdefs.h. */
23362
23363
23364#define ERR_set_mark innocuous_ERR_set_mark
23365#ifdef __STDC__
23366# include <limits.h>
23367#else
23368# include <assert.h>
23369#endif
23370#undef ERR_set_mark
23371#ifdef __cplusplus
23372extern "C"
23373#endif
23374char ERR_set_mark ();
23375#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23376choke me
23377#endif
23378
23379int main (void)
23380{
23381return ERR_set_mark ();
23382 ;
23383 return 0;
23384}
23385
23386_ACEOF
23387if ac_fn_c_try_link "$LINENO"; then :
23388
23389 tst_api="0x098"
23390
23391fi
23392rm -f core conftest.err conftest.$ac_objext \
23393 conftest$ac_exeext conftest.$ac_ext
23394 fi
23395 if test "$tst_api" = "unknown"; then
23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397/* end confdefs.h. */
23398
23399
23400#define ERR_peek_last_error innocuous_ERR_peek_last_error
23401#ifdef __STDC__
23402# include <limits.h>
23403#else
23404# include <assert.h>
23405#endif
23406#undef ERR_peek_last_error
23407#ifdef __cplusplus
23408extern "C"
23409#endif
23410char ERR_peek_last_error ();
23411#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23412choke me
23413#endif
23414
23415int main (void)
23416{
23417return ERR_peek_last_error ();
23418 ;
23419 return 0;
23420}
23421
23422_ACEOF
23423if ac_fn_c_try_link "$LINENO"; then :
23424
23425 tst_api="0x097"
23426
23427fi
23428rm -f core conftest.err conftest.$ac_objext \
23429 conftest$ac_exeext conftest.$ac_ext
23430 fi
23431 if test "$tst_api" = "unknown"; then
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433/* end confdefs.h. */
23434
23435
23436#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23437#ifdef __STDC__
23438# include <limits.h>
23439#else
23440# include <assert.h>
23441#endif
23442#undef c2i_ASN1_OBJECT
23443#ifdef __cplusplus
23444extern "C"
23445#endif
23446char c2i_ASN1_OBJECT ();
23447#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23448choke me
23449#endif
23450
23451int main (void)
23452{
23453return c2i_ASN1_OBJECT ();
23454 ;
23455 return 0;
23456}
23457
23458_ACEOF
23459if ac_fn_c_try_link "$LINENO"; then :
23460
23461 tst_api="0x096"
23462
23463fi
23464rm -f core conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
23466 fi
23467 if test "$tst_api" = "unknown"; then
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469/* end confdefs.h. */
23470
23471
23472#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23473#ifdef __STDC__
23474# include <limits.h>
23475#else
23476# include <assert.h>
23477#endif
23478#undef SSL_CTX_set_purpose
23479#ifdef __cplusplus
23480extern "C"
23481#endif
23482char SSL_CTX_set_purpose ();
23483#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23484choke me
23485#endif
23486
23487int main (void)
23488{
23489return SSL_CTX_set_purpose ();
23490 ;
23491 return 0;
23492}
23493
23494_ACEOF
23495if ac_fn_c_try_link "$LINENO"; then :
23496
23497 tst_api="0x095"
23498
23499fi
23500rm -f core conftest.err conftest.$ac_objext \
23501 conftest$ac_exeext conftest.$ac_ext
23502 fi
23503 if test "$tst_api" = "unknown"; then
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505/* end confdefs.h. */
23506
23507
23508#define OBJ_obj2txt innocuous_OBJ_obj2txt
23509#ifdef __STDC__
23510# include <limits.h>
23511#else
23512# include <assert.h>
23513#endif
23514#undef OBJ_obj2txt
23515#ifdef __cplusplus
23516extern "C"
23517#endif
23518char OBJ_obj2txt ();
23519#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23520choke me
23521#endif
23522
23523int main (void)
23524{
23525return OBJ_obj2txt ();
23526 ;
23527 return 0;
23528}
23529
23530_ACEOF
23531if ac_fn_c_try_link "$LINENO"; then :
23532
23533 tst_api="0x094"
23534
23535fi
23536rm -f core conftest.err conftest.$ac_objext \
23537 conftest$ac_exeext conftest.$ac_ext
23538 fi
23539 if test "$tst_api" = "unknown"; then
23540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541/* end confdefs.h. */
23542
23543
23544#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23545#ifdef __STDC__
23546# include <limits.h>
23547#else
23548# include <assert.h>
23549#endif
23550#undef SSL_get_verify_depth
23551#ifdef __cplusplus
23552extern "C"
23553#endif
23554char SSL_get_verify_depth ();
23555#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23556choke me
23557#endif
23558
23559int main (void)
23560{
23561return SSL_get_verify_depth ();
23562 ;
23563 return 0;
23564}
23565
23566_ACEOF
23567if ac_fn_c_try_link "$LINENO"; then :
23568
23569 tst_api="0x093"
23570
23571fi
23572rm -f core conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574 fi
23575 if test "$tst_api" = "unknown"; then
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577/* end confdefs.h. */
23578
23579
23580#define SSL_library_init innocuous_SSL_library_init
23581#ifdef __STDC__
23582# include <limits.h>
23583#else
23584# include <assert.h>
23585#endif
23586#undef SSL_library_init
23587#ifdef __cplusplus
23588extern "C"
23589#endif
23590char SSL_library_init ();
23591#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23592choke me
23593#endif
23594
23595int main (void)
23596{
23597return SSL_library_init ();
23598 ;
23599 return 0;
23600}
23601
23602_ACEOF
23603if ac_fn_c_try_link "$LINENO"; then :
23604
23605 tst_api="0x092"
23606
23607fi
23608rm -f core conftest.err conftest.$ac_objext \
23609 conftest$ac_exeext conftest.$ac_ext
23610 fi
23611 if test "$tst_api" = "unknown"; then
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613/* end confdefs.h. */
23614
23615
23616#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23617#ifdef __STDC__
23618# include <limits.h>
23619#else
23620# include <assert.h>
23621#endif
23622#undef SSL_CTX_set_cipher_list
23623#ifdef __cplusplus
23624extern "C"
23625#endif
23626char SSL_CTX_set_cipher_list ();
23627#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23628choke me
23629#endif
23630
23631int main (void)
23632{
23633return SSL_CTX_set_cipher_list ();
23634 ;
23635 return 0;
23636}
23637
23638_ACEOF
23639if ac_fn_c_try_link "$LINENO"; then :
23640
23641 tst_api="0x091"
23642
23643fi
23644rm -f core conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
23646 fi
23647 case $tst_api in
23648 0x110) tst_show="1.1.0" ;;
23649 0x102) tst_show="1.0.2" ;;
23650 0x101) tst_show="1.0.1" ;;
23651 0x100) tst_show="1.0.0" ;;
23652 0x099) tst_show="0.9.9" ;;
23653 0x098) tst_show="0.9.8" ;;
23654 0x097) tst_show="0.9.7" ;;
23655 0x096) tst_show="0.9.6" ;;
23656 0x095) tst_show="0.9.5" ;;
23657 0x094) tst_show="0.9.4" ;;
23658 0x093) tst_show="0.9.3" ;;
23659 0x092) tst_show="0.9.2" ;;
23660 0x091) tst_show="0.9.1" ;;
23661 *) tst_show="unknown" ;;
23662 esac
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23664$as_echo "$tst_show" >&6; }
23665 #
23666 curl_openssl_api_library=$tst_api
23667
23668 #
23669 tst_match="yes"
23670 #
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23672$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23673 if test "$curl_openssl_api_headers" = "unknown" ||
23674 test "$curl_openssl_api_library" = "unknown"; then
23675 tst_match="fail"
23676 tst_warns="Can not compare OpenSSL headers and library versions."
23677 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23678 tst_match="no"
23679 tst_warns="OpenSSL headers and library versions do not match."
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23682$as_echo "$tst_match" >&6; }
23683 if test "$tst_match" != "yes"; then
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23685$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23686 fi
23687
23688 fi
23689
Alex Deymo486467e2017-12-19 19:04:07 +010023690 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023691fi
23692
23693
23694if test X"$OPENSSL_ENABLED" = X"1"; then
23695
23696# Check whether --with-egd-socket was given.
23697if test "${with_egd_socket+set}" = set; then :
23698 withval=$with_egd_socket; EGD_SOCKET="$withval"
23699
23700fi
23701
23702 if test -n "$EGD_SOCKET" ; then
23703
23704cat >>confdefs.h <<_ACEOF
23705#define EGD_SOCKET "$EGD_SOCKET"
23706_ACEOF
23707
23708 fi
23709
23710
23711# Check whether --with-random was given.
23712if test "${with_random+set}" = set; then :
23713 withval=$with_random; RANDOM_FILE="$withval"
23714else
23715
23716 if test x$cross_compiling != xyes; then
23717 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23719$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23720if eval \${$as_ac_File+:} false; then :
23721 $as_echo_n "(cached) " >&6
23722else
23723 test "$cross_compiling" = yes &&
23724 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23725if test -r ""/dev/urandom""; then
23726 eval "$as_ac_File=yes"
23727else
23728 eval "$as_ac_File=no"
23729fi
23730fi
23731eval ac_res=\$$as_ac_File
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23733$as_echo "$ac_res" >&6; }
23734if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23735 RANDOM_FILE="/dev/urandom"
23736fi
23737
23738 else
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23740$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23741 fi
23742
23743
23744fi
23745
23746 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23747
23748
23749cat >>confdefs.h <<_ACEOF
23750#define RANDOM_FILE "$RANDOM_FILE"
23751_ACEOF
23752
23753 fi
23754fi
23755
23756if test "$OPENSSL_ENABLED" = "1"; then
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23758$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23759if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23760 $as_echo_n "(cached) " >&6
23761else
23762 ac_check_lib_save_LIBS=$LIBS
23763LIBS="-lcrypto $LIBS"
23764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765/* end confdefs.h. */
23766
23767
23768#ifdef __cplusplus
23769extern "C"
23770#endif
23771char SRP_Calc_client_key ();
23772int main (void)
23773{
23774return SRP_Calc_client_key ();
23775 ;
23776 return 0;
23777}
23778_ACEOF
23779if ac_fn_c_try_link "$LINENO"; then :
23780 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23781else
23782 ac_cv_lib_crypto_SRP_Calc_client_key=no
23783fi
23784rm -f core conftest.err conftest.$ac_objext \
23785 conftest$ac_exeext conftest.$ac_ext
23786LIBS=$ac_check_lib_save_LIBS
23787fi
23788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23789$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23790if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23791
23792
23793$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23794
23795 HAVE_OPENSSL_SRP=1
23796
23797
23798fi
23799
23800fi
23801
23802
23803OPT_GNUTLS=no
23804
23805
23806# Check whether --with-gnutls was given.
23807if test "${with_gnutls+set}" = set; then :
23808 withval=$with_gnutls; OPT_GNUTLS=$withval
23809fi
23810
23811
Alex Deymo486467e2017-12-19 19:04:07 +010023812if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23813 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023814
23815 if test X"$OPT_GNUTLS" != Xno; then
23816
23817 addld=""
23818 addlib=""
23819 gtlslib=""
23820 version=""
23821 addcflags=""
23822
23823 if test "x$OPT_GNUTLS" = "xyes"; then
23824
23825 if test -n "$PKG_CONFIG"; then
23826 PKGCONFIG="$PKG_CONFIG"
23827 else
23828 if test -n "$ac_tool_prefix"; then
23829 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23830set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23832$as_echo_n "checking for $ac_word... " >&6; }
23833if ${ac_cv_path_PKGCONFIG+:} false; then :
23834 $as_echo_n "(cached) " >&6
23835else
23836 case $PKGCONFIG in
23837 [\\/]* | ?:[\\/]*)
23838 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23839 ;;
23840 *)
23841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23842as_dummy="$PATH:/usr/bin:/usr/local/bin"
23843for as_dir in $as_dummy
23844do
23845 IFS=$as_save_IFS
23846 test -z "$as_dir" && as_dir=.
23847 for ac_exec_ext in '' $ac_executable_extensions; do
23848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23849 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23851 break 2
23852 fi
23853done
23854 done
23855IFS=$as_save_IFS
23856
23857 ;;
23858esac
23859fi
23860PKGCONFIG=$ac_cv_path_PKGCONFIG
23861if test -n "$PKGCONFIG"; then
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23863$as_echo "$PKGCONFIG" >&6; }
23864else
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866$as_echo "no" >&6; }
23867fi
23868
23869
23870fi
23871if test -z "$ac_cv_path_PKGCONFIG"; then
23872 ac_pt_PKGCONFIG=$PKGCONFIG
23873 # Extract the first word of "pkg-config", so it can be a program name with args.
23874set dummy pkg-config; ac_word=$2
23875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23876$as_echo_n "checking for $ac_word... " >&6; }
23877if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23878 $as_echo_n "(cached) " >&6
23879else
23880 case $ac_pt_PKGCONFIG in
23881 [\\/]* | ?:[\\/]*)
23882 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23883 ;;
23884 *)
23885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23886as_dummy="$PATH:/usr/bin:/usr/local/bin"
23887for as_dir in $as_dummy
23888do
23889 IFS=$as_save_IFS
23890 test -z "$as_dir" && as_dir=.
23891 for ac_exec_ext in '' $ac_executable_extensions; do
23892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23893 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23895 break 2
23896 fi
23897done
23898 done
23899IFS=$as_save_IFS
23900
23901 ;;
23902esac
23903fi
23904ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23905if test -n "$ac_pt_PKGCONFIG"; then
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23907$as_echo "$ac_pt_PKGCONFIG" >&6; }
23908else
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23910$as_echo "no" >&6; }
23911fi
23912
23913 if test "x$ac_pt_PKGCONFIG" = x; then
23914 PKGCONFIG="no"
23915 else
23916 case $cross_compiling:$ac_tool_warned in
23917yes:)
23918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23920ac_tool_warned=yes ;;
23921esac
23922 PKGCONFIG=$ac_pt_PKGCONFIG
23923 fi
23924else
23925 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23926fi
23927
23928 fi
23929
23930 if test "x$PKGCONFIG" != "xno"; then
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23932$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23933 itexists=`
23934 if test -n ""; then
23935 PKG_CONFIG_LIBDIR=""
23936 export PKG_CONFIG_LIBDIR
23937 fi
23938 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23939
23940 if test -z "$itexists"; then
23941 PKGCONFIG="no"
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23943$as_echo "no" >&6; }
23944 else
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23946$as_echo "found" >&6; }
23947 fi
23948 fi
23949
23950
23951 if test "$PKGCONFIG" != "no" ; then
23952 addlib=`$PKGCONFIG --libs-only-l gnutls`
23953 addld=`$PKGCONFIG --libs-only-L gnutls`
23954 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23955 version=`$PKGCONFIG --modversion gnutls`
23956 gtlslib=`echo $addld | $SED -e 's/-L//'`
23957 else
23958 check=`libgnutls-config --version 2>/dev/null`
23959 if test -n "$check"; then
23960 addlib=`libgnutls-config --libs`
23961 addcflags=`libgnutls-config --cflags`
23962 version=`libgnutls-config --version`
23963 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23964 fi
23965 fi
23966 else
23967 cfg=$OPT_GNUTLS/bin/libgnutls-config
23968 check=`$cfg --version 2>/dev/null`
23969 if test -n "$check"; then
23970 addlib=`$cfg --libs`
23971 addcflags=`$cfg --cflags`
23972 version=`$cfg --version`
23973 gtlslib=`$cfg --prefix`/lib$libsuff
23974 else
23975 addlib=-lgnutls
23976 addld=-L$OPT_GNUTLS/lib$libsuff
23977 addcflags=-I$OPT_GNUTLS/include
23978 version="" # we just don't know
23979 gtlslib=$OPT_GNUTLS/lib$libsuff
23980 fi
23981 fi
23982
23983 if test -z "$version"; then
23984 version="unknown"
23985 fi
23986
23987 if test -n "$addlib"; then
23988
23989 CLEANLIBS="$LIBS"
23990 CLEANCPPFLAGS="$CPPFLAGS"
23991 CLEANLDFLAGS="$LDFLAGS"
23992
23993 LIBS="$addlib $LIBS"
23994 LDFLAGS="$LDFLAGS $addld"
23995 if test "$addcflags" != "-I/usr/include"; then
23996 CPPFLAGS="$CPPFLAGS $addcflags"
23997 fi
23998
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24000$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24001if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24002 $as_echo_n "(cached) " >&6
24003else
24004 ac_check_lib_save_LIBS=$LIBS
24005LIBS="-lgnutls $LIBS"
24006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007/* end confdefs.h. */
24008
24009
24010#ifdef __cplusplus
24011extern "C"
24012#endif
24013char gnutls_check_version ();
24014int main (void)
24015{
24016return gnutls_check_version ();
24017 ;
24018 return 0;
24019}
24020_ACEOF
24021if ac_fn_c_try_link "$LINENO"; then :
24022 ac_cv_lib_gnutls_gnutls_check_version=yes
24023else
24024 ac_cv_lib_gnutls_gnutls_check_version=no
24025fi
24026rm -f core conftest.err conftest.$ac_objext \
24027 conftest$ac_exeext conftest.$ac_ext
24028LIBS=$ac_check_lib_save_LIBS
24029fi
24030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24031$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24032if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24033
24034
24035$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24036
24037 USE_GNUTLS=1
24038
24039 GNUTLS_ENABLED=1
24040 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024041 ssl_msg="GnuTLS"
24042 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024043
24044else
24045
24046 LIBS="$CLEANLIBS"
24047 CPPFLAGS="$CLEANCPPFLAGS"
24048
24049fi
24050
24051
24052 if test "x$USE_GNUTLS" = "xyes"; then
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24054$as_echo "$as_me: detected GnuTLS version $version" >&6;}
24055
24056 if test -n "$gtlslib"; then
24057 if test "x$cross_compiling" != "xyes"; then
24058 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24059 export LD_LIBRARY_PATH
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24061$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24062 fi
24063 fi
24064 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24065do :
24066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24069 cat >>confdefs.h <<_ACEOF
24070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24071_ACEOF
24072
24073fi
24074done
24075
24076 fi
24077
24078 fi
24079
24080 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024081 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024082fi
24083
24084
24085if test "$GNUTLS_ENABLED" = "1"; then
24086 USE_GNUTLS_NETTLE=
24087 # First check if we can detect either crypto library via transitive linking
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24089$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24090if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24091 $as_echo_n "(cached) " >&6
24092else
24093 ac_check_lib_save_LIBS=$LIBS
24094LIBS="-lgnutls $LIBS"
24095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24096/* end confdefs.h. */
24097
24098
24099#ifdef __cplusplus
24100extern "C"
24101#endif
24102char nettle_MD5Init ();
24103int main (void)
24104{
24105return nettle_MD5Init ();
24106 ;
24107 return 0;
24108}
24109_ACEOF
24110if ac_fn_c_try_link "$LINENO"; then :
24111 ac_cv_lib_gnutls_nettle_MD5Init=yes
24112else
24113 ac_cv_lib_gnutls_nettle_MD5Init=no
24114fi
24115rm -f core conftest.err conftest.$ac_objext \
24116 conftest$ac_exeext conftest.$ac_ext
24117LIBS=$ac_check_lib_save_LIBS
24118fi
24119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24120$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24121if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24122 USE_GNUTLS_NETTLE=1
24123fi
24124
24125 if test "$USE_GNUTLS_NETTLE" = ""; then
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24127$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24128if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24129 $as_echo_n "(cached) " >&6
24130else
24131 ac_check_lib_save_LIBS=$LIBS
24132LIBS="-lgnutls $LIBS"
24133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134/* end confdefs.h. */
24135
24136
24137#ifdef __cplusplus
24138extern "C"
24139#endif
24140char gcry_control ();
24141int main (void)
24142{
24143return gcry_control ();
24144 ;
24145 return 0;
24146}
24147_ACEOF
24148if ac_fn_c_try_link "$LINENO"; then :
24149 ac_cv_lib_gnutls_gcry_control=yes
24150else
24151 ac_cv_lib_gnutls_gcry_control=no
24152fi
24153rm -f core conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
24155LIBS=$ac_check_lib_save_LIBS
24156fi
24157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24158$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24159if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24160 USE_GNUTLS_NETTLE=0
24161fi
24162
24163 fi
24164 # If not, try linking directly to both of them to see if they are available
24165 if test "$USE_GNUTLS_NETTLE" = ""; then
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24167$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24168if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24169 $as_echo_n "(cached) " >&6
24170else
24171 ac_check_lib_save_LIBS=$LIBS
24172LIBS="-lnettle $LIBS"
24173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24174/* end confdefs.h. */
24175
24176
24177#ifdef __cplusplus
24178extern "C"
24179#endif
24180char nettle_MD5Init ();
24181int main (void)
24182{
24183return nettle_MD5Init ();
24184 ;
24185 return 0;
24186}
24187_ACEOF
24188if ac_fn_c_try_link "$LINENO"; then :
24189 ac_cv_lib_nettle_nettle_MD5Init=yes
24190else
24191 ac_cv_lib_nettle_nettle_MD5Init=no
24192fi
24193rm -f core conftest.err conftest.$ac_objext \
24194 conftest$ac_exeext conftest.$ac_ext
24195LIBS=$ac_check_lib_save_LIBS
24196fi
24197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24198$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24199if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24200 USE_GNUTLS_NETTLE=1
24201fi
24202
24203 fi
24204 if test "$USE_GNUTLS_NETTLE" = ""; then
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24206$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24207if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24208 $as_echo_n "(cached) " >&6
24209else
24210 ac_check_lib_save_LIBS=$LIBS
24211LIBS="-lgcrypt $LIBS"
24212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213/* end confdefs.h. */
24214
24215
24216#ifdef __cplusplus
24217extern "C"
24218#endif
24219char gcry_control ();
24220int main (void)
24221{
24222return gcry_control ();
24223 ;
24224 return 0;
24225}
24226_ACEOF
24227if ac_fn_c_try_link "$LINENO"; then :
24228 ac_cv_lib_gcrypt_gcry_control=yes
24229else
24230 ac_cv_lib_gcrypt_gcry_control=no
24231fi
24232rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234LIBS=$ac_check_lib_save_LIBS
24235fi
24236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24237$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24238if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24239 USE_GNUTLS_NETTLE=0
24240fi
24241
24242 fi
24243 if test "$USE_GNUTLS_NETTLE" = ""; then
24244 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24245 fi
24246 if test "$USE_GNUTLS_NETTLE" = "1"; then
24247
24248$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24249
24250 USE_GNUTLS_NETTLE=1
24251
24252 LIBS="-lnettle $LIBS"
24253 else
24254 LIBS="-lgcrypt $LIBS"
24255 fi
24256fi
24257
24258if test "$GNUTLS_ENABLED" = "1"; then
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24260$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24261if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24262 $as_echo_n "(cached) " >&6
24263else
24264 ac_check_lib_save_LIBS=$LIBS
24265LIBS="-lgnutls $LIBS"
24266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24267/* end confdefs.h. */
24268
24269
24270#ifdef __cplusplus
24271extern "C"
24272#endif
24273char gnutls_srp_verifier ();
24274int main (void)
24275{
24276return gnutls_srp_verifier ();
24277 ;
24278 return 0;
24279}
24280_ACEOF
24281if ac_fn_c_try_link "$LINENO"; then :
24282 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24283else
24284 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24285fi
24286rm -f core conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
24288LIBS=$ac_check_lib_save_LIBS
24289fi
24290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24291$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24292if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24293
24294
24295$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24296
24297 HAVE_GNUTLS_SRP=1
24298
24299
24300fi
24301
24302fi
24303
24304
24305OPT_POLARSSL=no
24306
24307_cppflags=$CPPFLAGS
24308_ldflags=$LDFLAGS
24309
24310# Check whether --with-polarssl was given.
24311if test "${with_polarssl+set}" = set; then :
24312 withval=$with_polarssl; OPT_POLARSSL=$withval
24313fi
24314
24315
Alex Deymo486467e2017-12-19 19:04:07 +010024316if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24317 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024318
24319 if test X"$OPT_POLARSSL" != Xno; then
24320
24321 if test "$OPT_POLARSSL" = "yes"; then
24322 OPT_POLARSSL=""
24323 fi
24324
24325 if test -z "$OPT_POLARSSL" ; then
24326
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24328$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24329if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24330 $as_echo_n "(cached) " >&6
24331else
24332 ac_check_lib_save_LIBS=$LIBS
24333LIBS="-lpolarssl $LIBS"
24334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335/* end confdefs.h. */
24336
24337
24338#ifdef __cplusplus
24339extern "C"
24340#endif
24341char havege_init ();
24342int main (void)
24343{
24344return havege_init ();
24345 ;
24346 return 0;
24347}
24348_ACEOF
24349if ac_fn_c_try_link "$LINENO"; then :
24350 ac_cv_lib_polarssl_havege_init=yes
24351else
24352 ac_cv_lib_polarssl_havege_init=no
24353fi
24354rm -f core conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24356LIBS=$ac_check_lib_save_LIBS
24357fi
24358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24359$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24360if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24361
24362
24363$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24364
24365 USE_POLARSSL=1
24366
24367 POLARSSL_ENABLED=1
24368 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024369 ssl_msg="PolarSSL"
24370 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024371
24372fi
24373
24374 fi
24375
24376 addld=""
24377 addlib=""
24378 addcflags=""
24379 polarssllib=""
24380
24381 if test "x$USE_POLARSSL" != "xyes"; then
24382 addld=-L$OPT_POLARSSL/lib$libsuff
24383 addcflags=-I$OPT_POLARSSL/include
24384 polarssllib=$OPT_POLARSSL/lib$libsuff
24385
24386 LDFLAGS="$LDFLAGS $addld"
24387 if test "$addcflags" != "-I/usr/include"; then
24388 CPPFLAGS="$CPPFLAGS $addcflags"
24389 fi
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24392$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24393if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24394 $as_echo_n "(cached) " >&6
24395else
24396 ac_check_lib_save_LIBS=$LIBS
24397LIBS="-lpolarssl $LIBS"
24398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399/* end confdefs.h. */
24400
24401
24402#ifdef __cplusplus
24403extern "C"
24404#endif
24405char ssl_init ();
24406int main (void)
24407{
24408return ssl_init ();
24409 ;
24410 return 0;
24411}
24412_ACEOF
24413if ac_fn_c_try_link "$LINENO"; then :
24414 ac_cv_lib_polarssl_ssl_init=yes
24415else
24416 ac_cv_lib_polarssl_ssl_init=no
24417fi
24418rm -f core conftest.err conftest.$ac_objext \
24419 conftest$ac_exeext conftest.$ac_ext
24420LIBS=$ac_check_lib_save_LIBS
24421fi
24422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24423$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24424if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24425
24426
24427$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24428
24429 USE_POLARSSL=1
24430
24431 POLARSSL_ENABLED=1
24432 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024433 ssl_msg="PolarSSL"
24434 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024435
24436else
24437
24438 CPPFLAGS=$_cppflags
24439 LDFLAGS=$_ldflags
24440
24441fi
24442
24443 fi
24444
24445 if test "x$USE_POLARSSL" = "xyes"; then
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24447$as_echo "$as_me: detected PolarSSL" >&6;}
24448
24449 LIBS="-lpolarssl $LIBS"
24450
24451 if test -n "$polarssllib"; then
24452 if test "x$cross_compiling" != "xyes"; then
24453 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24454 export LD_LIBRARY_PATH
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24456$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24457 fi
24458 fi
24459 fi
24460
24461 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024462 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024463fi
24464
24465
24466OPT_MBEDTLS=no
24467
24468_cppflags=$CPPFLAGS
24469_ldflags=$LDFLAGS
24470
24471# Check whether --with-mbedtls was given.
24472if test "${with_mbedtls+set}" = set; then :
24473 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24474fi
24475
24476
Alex Deymo486467e2017-12-19 19:04:07 +010024477if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24478 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024479
24480 if test X"$OPT_MBEDTLS" != Xno; then
24481
24482 if test "$OPT_MBEDTLS" = "yes"; then
24483 OPT_MBEDTLS=""
24484 fi
24485
24486 if test -z "$OPT_MBEDTLS" ; then
24487
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24489$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24490if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24491 $as_echo_n "(cached) " >&6
24492else
24493 ac_check_lib_save_LIBS=$LIBS
24494LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496/* end confdefs.h. */
24497
24498
24499#ifdef __cplusplus
24500extern "C"
24501#endif
24502char mbedtls_havege_init ();
24503int main (void)
24504{
24505return mbedtls_havege_init ();
24506 ;
24507 return 0;
24508}
24509_ACEOF
24510if ac_fn_c_try_link "$LINENO"; then :
24511 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24512else
24513 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24514fi
24515rm -f core conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
24517LIBS=$ac_check_lib_save_LIBS
24518fi
24519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24520$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24521if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24522
24523
24524$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24525
24526 USE_MBEDTLS=1
24527
24528 MBEDTLS_ENABLED=1
24529 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024530 ssl_msg="mbedTLS"
24531 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024532
24533fi
24534
24535 fi
24536
24537 addld=""
24538 addlib=""
24539 addcflags=""
24540 mbedtlslib=""
24541
24542 if test "x$USE_MBEDTLS" != "xyes"; then
24543 addld=-L$OPT_MBEDTLS/lib$libsuff
24544 addcflags=-I$OPT_MBEDTLS/include
24545 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24546
24547 LDFLAGS="$LDFLAGS $addld"
24548 if test "$addcflags" != "-I/usr/include"; then
24549 CPPFLAGS="$CPPFLAGS $addcflags"
24550 fi
24551
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24553$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24554if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24555 $as_echo_n "(cached) " >&6
24556else
24557 ac_check_lib_save_LIBS=$LIBS
24558LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560/* end confdefs.h. */
24561
24562
24563#ifdef __cplusplus
24564extern "C"
24565#endif
24566char mbedtls_ssl_init ();
24567int main (void)
24568{
24569return mbedtls_ssl_init ();
24570 ;
24571 return 0;
24572}
24573_ACEOF
24574if ac_fn_c_try_link "$LINENO"; then :
24575 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24576else
24577 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24578fi
24579rm -f core conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
24581LIBS=$ac_check_lib_save_LIBS
24582fi
24583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24584$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24585if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24586
24587
24588$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24589
24590 USE_MBEDTLS=1
24591
24592 MBEDTLS_ENABLED=1
24593 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024594 ssl_msg="mbedTLS"
24595 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024596
24597else
24598
24599 CPPFLAGS=$_cppflags
24600 LDFLAGS=$_ldflags
24601
24602fi
24603
24604 fi
24605
24606 if test "x$USE_MBEDTLS" = "xyes"; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24608$as_echo "$as_me: detected mbedTLS" >&6;}
24609
24610 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24611
24612 if test -n "$mbedtlslib"; then
24613 if test "x$cross_compiling" != "xyes"; then
24614 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24615 export LD_LIBRARY_PATH
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24617$as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24618 fi
24619 fi
24620 fi
24621
24622 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024623 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024624fi
24625
24626
24627OPT_CYASSL=no
24628
24629_cppflags=$CPPFLAGS
24630_ldflags=$LDFLAGS
24631
24632# Check whether --with-cyassl was given.
24633if test "${with_cyassl+set}" = set; then :
24634 withval=$with_cyassl; OPT_CYASSL=$withval
24635fi
24636
24637
Alex Deymo486467e2017-12-19 19:04:07 +010024638if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24639 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024640
24641 if test X"$OPT_CYASSL" != Xno; then
24642
24643 if test "$OPT_CYASSL" = "yes"; then
24644 OPT_CYASSL=""
24645 fi
24646
24647
24648 cyassllibname=cyassl
24649
24650 if test -z "$OPT_CYASSL" ; then
24651
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24653$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24654if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24655 $as_echo_n "(cached) " >&6
24656else
24657 ac_check_lib_save_LIBS=$LIBS
24658LIBS="-lcyassl $LIBS"
24659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24660/* end confdefs.h. */
24661
24662
24663#ifdef __cplusplus
24664extern "C"
24665#endif
24666char CyaSSL_Init ();
24667int main (void)
24668{
24669return CyaSSL_Init ();
24670 ;
24671 return 0;
24672}
24673_ACEOF
24674if ac_fn_c_try_link "$LINENO"; then :
24675 ac_cv_lib_cyassl_CyaSSL_Init=yes
24676else
24677 ac_cv_lib_cyassl_CyaSSL_Init=no
24678fi
24679rm -f core conftest.err conftest.$ac_objext \
24680 conftest$ac_exeext conftest.$ac_ext
24681LIBS=$ac_check_lib_save_LIBS
24682fi
24683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24684$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24685if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24686
24687
24688$as_echo "#define USE_CYASSL 1" >>confdefs.h
24689
24690 USE_CYASSL=1
24691
24692 CYASSL_ENABLED=1
24693 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024694 ssl_msg="CyaSSL"
24695 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024696
24697fi
24698
24699 fi
24700
24701 addld=""
24702 addlib=""
24703 addcflags=""
24704 cyassllib=""
24705
24706 if test "x$USE_CYASSL" != "xyes"; then
24707 addld=-L$OPT_CYASSL/lib$libsuff
24708 addcflags=-I$OPT_CYASSL/include
24709 cyassllib=$OPT_CYASSL/lib$libsuff
24710
24711 LDFLAGS="$LDFLAGS $addld"
24712 if test "$addcflags" != "-I/usr/include"; then
24713 CPPFLAGS="$CPPFLAGS $addcflags"
24714 fi
24715
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24717$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24718if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24719 $as_echo_n "(cached) " >&6
24720else
24721 ac_check_lib_save_LIBS=$LIBS
24722LIBS="-lcyassl $LIBS"
24723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724/* end confdefs.h. */
24725
24726
24727#ifdef __cplusplus
24728extern "C"
24729#endif
24730char CyaSSL_Init ();
24731int main (void)
24732{
24733return CyaSSL_Init ();
24734 ;
24735 return 0;
24736}
24737_ACEOF
24738if ac_fn_c_try_link "$LINENO"; then :
24739 ac_cv_lib_cyassl_CyaSSL_Init=yes
24740else
24741 ac_cv_lib_cyassl_CyaSSL_Init=no
24742fi
24743rm -f core conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745LIBS=$ac_check_lib_save_LIBS
24746fi
24747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24748$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24749if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24750
24751
24752$as_echo "#define USE_CYASSL 1" >>confdefs.h
24753
24754 USE_CYASSL=1
24755
24756 CYASSL_ENABLED=1
24757 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024758 ssl_msg="CyaSSL"
24759 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024760
24761else
24762
24763 CPPFLAGS=$_cppflags
24764 LDFLAGS=$_ldflags
24765 cyassllib=""
24766
24767fi
24768
24769 fi
24770
24771 addld=""
24772 addlib=""
24773 addcflags=""
24774
24775 if test "x$USE_CYASSL" != "xyes"; then
24776 addld=-L$OPT_CYASSL/lib$libsuff
24777 addcflags=-I$OPT_CYASSL/include
24778 cyassllib=$OPT_CYASSL/lib$libsuff
24779
24780 LDFLAGS="$LDFLAGS $addld"
24781 if test "$addcflags" != "-I/usr/include"; then
24782 CPPFLAGS="$CPPFLAGS $addcflags"
24783 fi
24784
24785 cyassllibname=wolfssl
24786 my_ac_save_LIBS="$LIBS"
24787 LIBS="-l$cyassllibname -lm $LIBS"
24788
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24790$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24792/* end confdefs.h. */
24793
24794
24795/* These aren't needed for detection and confuse WolfSSL.
24796 They are set up properly later if it is detected. */
24797#undef SIZEOF_LONG
24798#undef SIZEOF_LONG_LONG
24799#include <cyassl/ssl.h>
24800
24801int main (void)
24802{
24803
24804 return CyaSSL_Init();
24805
24806 ;
24807 return 0;
24808}
24809
24810_ACEOF
24811if ac_fn_c_try_link "$LINENO"; then :
24812
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24814$as_echo "yes" >&6; }
24815
24816$as_echo "#define USE_CYASSL 1" >>confdefs.h
24817
24818 USE_CYASSL=1
24819
24820 CYASSL_ENABLED=1
24821 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024822 ssl_msg="WolfSSL"
24823 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024824
24825else
24826
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24828$as_echo "no" >&6; }
24829 CPPFLAGS=$_cppflags
24830 LDFLAGS=$_ldflags
24831 cyassllib=""
24832
24833fi
24834rm -f core conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24836 LIBS="$my_ac_save_LIBS"
24837 fi
24838
24839 if test "x$USE_CYASSL" = "xyes"; then
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24841$as_echo "$as_me: detected $cyassllibname" >&6;}
24842
24843 # The cast to long int works around a bug in the HP C Compiler
24844# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24845# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24846# This bug is HP SR number 8606223364.
24847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24848$as_echo_n "checking size of long long... " >&6; }
24849if ${ac_cv_sizeof_long_long+:} false; then :
24850 $as_echo_n "(cached) " >&6
24851else
24852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24853
24854else
24855 if test "$ac_cv_type_long_long" = yes; then
24856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24858as_fn_error 77 "cannot compute sizeof (long long)
24859See \`config.log' for more details" "$LINENO" 5; }
24860 else
24861 ac_cv_sizeof_long_long=0
24862 fi
24863fi
24864
24865fi
24866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24867$as_echo "$ac_cv_sizeof_long_long" >&6; }
24868
24869
24870
24871cat >>confdefs.h <<_ACEOF
24872#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24873_ACEOF
24874
24875
24876
24877 for ac_header in cyassl/options.h
24878do :
24879 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24880if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24881 cat >>confdefs.h <<_ACEOF
24882#define HAVE_CYASSL_OPTIONS_H 1
24883_ACEOF
24884
24885fi
24886
24887done
24888
24889
24890 for ac_header in cyassl/error-ssl.h
24891do :
24892 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24893if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24894 cat >>confdefs.h <<_ACEOF
24895#define HAVE_CYASSL_ERROR_SSL_H 1
24896_ACEOF
24897
24898fi
24899
24900done
24901
24902
24903 LIBS="-l$cyassllibname -lm $LIBS"
24904
24905 if test "x$cyassllibname" = "xwolfssl"; then
24906 for ac_func in wolfSSLv3_client_method \
24907 wolfSSL_CTX_UseSupportedCurve \
24908 wolfSSL_get_peer_certificate \
24909 wolfSSL_UseALPN
24910do :
24911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24912ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24913if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24914 cat >>confdefs.h <<_ACEOF
24915#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24916_ACEOF
24917
24918fi
24919done
24920
24921 else
24922 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24923 CyaSSL_get_peer_certificate
24924do :
24925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24926ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24927if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24928 cat >>confdefs.h <<_ACEOF
24929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24930_ACEOF
24931
24932fi
24933done
24934
24935 fi
24936
24937 if test -n "$cyassllib"; then
24938 if test "x$cross_compiling" != "xyes"; then
24939 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24940 export LD_LIBRARY_PATH
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24942$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24943 fi
24944 fi
24945
24946 fi
24947
24948 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024949 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024950fi
24951
24952
24953OPT_NSS=no
24954
24955
24956# Check whether --with-nss was given.
24957if test "${with_nss+set}" = set; then :
24958 withval=$with_nss; OPT_NSS=$withval
24959fi
24960
24961
Alex Deymo486467e2017-12-19 19:04:07 +010024962if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24963 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024964
24965 if test X"$OPT_NSS" != Xno; then
24966
24967 addld=""
24968 addlib=""
24969 addcflags=""
24970 nssprefix=""
24971 version=""
24972
24973 if test "x$OPT_NSS" = "xyes"; then
24974
24975
24976 if test -n "$PKG_CONFIG"; then
24977 PKGCONFIG="$PKG_CONFIG"
24978 else
24979 if test -n "$ac_tool_prefix"; then
24980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24981set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24983$as_echo_n "checking for $ac_word... " >&6; }
24984if ${ac_cv_path_PKGCONFIG+:} false; then :
24985 $as_echo_n "(cached) " >&6
24986else
24987 case $PKGCONFIG in
24988 [\\/]* | ?:[\\/]*)
24989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24990 ;;
24991 *)
24992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24993as_dummy="$PATH:/usr/bin:/usr/local/bin"
24994for as_dir in $as_dummy
24995do
24996 IFS=$as_save_IFS
24997 test -z "$as_dir" && as_dir=.
24998 for ac_exec_ext in '' $ac_executable_extensions; do
24999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25000 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25002 break 2
25003 fi
25004done
25005 done
25006IFS=$as_save_IFS
25007
25008 ;;
25009esac
25010fi
25011PKGCONFIG=$ac_cv_path_PKGCONFIG
25012if test -n "$PKGCONFIG"; then
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25014$as_echo "$PKGCONFIG" >&6; }
25015else
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25017$as_echo "no" >&6; }
25018fi
25019
25020
25021fi
25022if test -z "$ac_cv_path_PKGCONFIG"; then
25023 ac_pt_PKGCONFIG=$PKGCONFIG
25024 # Extract the first word of "pkg-config", so it can be a program name with args.
25025set dummy pkg-config; ac_word=$2
25026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25027$as_echo_n "checking for $ac_word... " >&6; }
25028if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25029 $as_echo_n "(cached) " >&6
25030else
25031 case $ac_pt_PKGCONFIG in
25032 [\\/]* | ?:[\\/]*)
25033 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25034 ;;
25035 *)
25036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25037as_dummy="$PATH:/usr/bin:/usr/local/bin"
25038for as_dir in $as_dummy
25039do
25040 IFS=$as_save_IFS
25041 test -z "$as_dir" && as_dir=.
25042 for ac_exec_ext in '' $ac_executable_extensions; do
25043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25044 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25046 break 2
25047 fi
25048done
25049 done
25050IFS=$as_save_IFS
25051
25052 ;;
25053esac
25054fi
25055ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25056if test -n "$ac_pt_PKGCONFIG"; then
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25058$as_echo "$ac_pt_PKGCONFIG" >&6; }
25059else
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25061$as_echo "no" >&6; }
25062fi
25063
25064 if test "x$ac_pt_PKGCONFIG" = x; then
25065 PKGCONFIG="no"
25066 else
25067 case $cross_compiling:$ac_tool_warned in
25068yes:)
25069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25071ac_tool_warned=yes ;;
25072esac
25073 PKGCONFIG=$ac_pt_PKGCONFIG
25074 fi
25075else
25076 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25077fi
25078
25079 fi
25080
25081 if test "x$PKGCONFIG" != "xno"; then
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25083$as_echo_n "checking for nss options with pkg-config... " >&6; }
25084 itexists=`
25085 if test -n ""; then
25086 PKG_CONFIG_LIBDIR=""
25087 export PKG_CONFIG_LIBDIR
25088 fi
25089 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25090
25091 if test -z "$itexists"; then
25092 PKGCONFIG="no"
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25094$as_echo "no" >&6; }
25095 else
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25097$as_echo "found" >&6; }
25098 fi
25099 fi
25100
25101
25102 if test "$PKGCONFIG" != "no" ; then
25103 addlib=`$PKGCONFIG --libs nss`
25104 addcflags=`$PKGCONFIG --cflags nss`
25105 version=`$PKGCONFIG --modversion nss`
25106 nssprefix=`$PKGCONFIG --variable=prefix nss`
25107 else
25108
25109 check=`nss-config --version 2>/dev/null`
25110 if test -n "$check"; then
25111 addlib=`nss-config --libs`
25112 addcflags=`nss-config --cflags`
25113 version=`nss-config --version`
25114 nssprefix=`nss-config --prefix`
25115 else
25116 addlib="-lnss3"
25117 addcflags=""
25118 version="unknown"
25119 fi
25120 fi
25121 else
25122 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25123 if test -f "$NSS_PCDIR/nss.pc"; then
25124
25125 if test -n "$PKG_CONFIG"; then
25126 PKGCONFIG="$PKG_CONFIG"
25127 else
25128 if test -n "$ac_tool_prefix"; then
25129 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25130set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25132$as_echo_n "checking for $ac_word... " >&6; }
25133if ${ac_cv_path_PKGCONFIG+:} false; then :
25134 $as_echo_n "(cached) " >&6
25135else
25136 case $PKGCONFIG in
25137 [\\/]* | ?:[\\/]*)
25138 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25139 ;;
25140 *)
25141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25142as_dummy="$PATH:/usr/bin:/usr/local/bin"
25143for as_dir in $as_dummy
25144do
25145 IFS=$as_save_IFS
25146 test -z "$as_dir" && as_dir=.
25147 for ac_exec_ext in '' $ac_executable_extensions; do
25148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25149 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25151 break 2
25152 fi
25153done
25154 done
25155IFS=$as_save_IFS
25156
25157 ;;
25158esac
25159fi
25160PKGCONFIG=$ac_cv_path_PKGCONFIG
25161if test -n "$PKGCONFIG"; then
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25163$as_echo "$PKGCONFIG" >&6; }
25164else
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25166$as_echo "no" >&6; }
25167fi
25168
25169
25170fi
25171if test -z "$ac_cv_path_PKGCONFIG"; then
25172 ac_pt_PKGCONFIG=$PKGCONFIG
25173 # Extract the first word of "pkg-config", so it can be a program name with args.
25174set dummy pkg-config; ac_word=$2
25175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25176$as_echo_n "checking for $ac_word... " >&6; }
25177if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25178 $as_echo_n "(cached) " >&6
25179else
25180 case $ac_pt_PKGCONFIG in
25181 [\\/]* | ?:[\\/]*)
25182 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25183 ;;
25184 *)
25185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25186as_dummy="$PATH:/usr/bin:/usr/local/bin"
25187for as_dir in $as_dummy
25188do
25189 IFS=$as_save_IFS
25190 test -z "$as_dir" && as_dir=.
25191 for ac_exec_ext in '' $ac_executable_extensions; do
25192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25193 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25195 break 2
25196 fi
25197done
25198 done
25199IFS=$as_save_IFS
25200
25201 ;;
25202esac
25203fi
25204ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25205if test -n "$ac_pt_PKGCONFIG"; then
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25207$as_echo "$ac_pt_PKGCONFIG" >&6; }
25208else
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25210$as_echo "no" >&6; }
25211fi
25212
25213 if test "x$ac_pt_PKGCONFIG" = x; then
25214 PKGCONFIG="no"
25215 else
25216 case $cross_compiling:$ac_tool_warned in
25217yes:)
25218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25220ac_tool_warned=yes ;;
25221esac
25222 PKGCONFIG=$ac_pt_PKGCONFIG
25223 fi
25224else
25225 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25226fi
25227
25228 fi
25229
25230 if test "x$PKGCONFIG" != "xno"; then
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25232$as_echo_n "checking for nss options with pkg-config... " >&6; }
25233 itexists=`
25234 if test -n "$NSS_PCDIR"; then
25235 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25236 export PKG_CONFIG_LIBDIR
25237 fi
25238 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25239
25240 if test -z "$itexists"; then
25241 PKGCONFIG="no"
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25243$as_echo "no" >&6; }
25244 else
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25246$as_echo "found" >&6; }
25247 fi
25248 fi
25249
25250 if test "$PKGCONFIG" != "no" ; then
25251 addld=`
25252 if test -n "$NSS_PCDIR"; then
25253 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25254 export PKG_CONFIG_LIBDIR
25255 fi
25256 $PKGCONFIG --libs-only-L nss`
25257 addlib=`
25258 if test -n "$NSS_PCDIR"; then
25259 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25260 export PKG_CONFIG_LIBDIR
25261 fi
25262 $PKGCONFIG --libs-only-l nss`
25263 addcflags=`
25264 if test -n "$NSS_PCDIR"; then
25265 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25266 export PKG_CONFIG_LIBDIR
25267 fi
25268 $PKGCONFIG --cflags nss`
25269 version=`
25270 if test -n "$NSS_PCDIR"; then
25271 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25272 export PKG_CONFIG_LIBDIR
25273 fi
25274 $PKGCONFIG --modversion nss`
25275 nssprefix=`
25276 if test -n "$NSS_PCDIR"; then
25277 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25278 export PKG_CONFIG_LIBDIR
25279 fi
25280 $PKGCONFIG --variable=prefix nss`
25281 fi
25282 fi
25283 fi
25284
25285 if test -z "$addlib"; then
25286 # Without pkg-config, we'll kludge in some defaults
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25288$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25289 addld="-L$OPT_NSS/lib"
25290 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25291 addcflags="-I$OPT_NSS/include"
25292 version="unknown"
25293 nssprefix=$OPT_NSS
25294 fi
25295
25296 CLEANLDFLAGS="$LDFLAGS"
25297 CLEANLIBS="$LIBS"
25298 CLEANCPPFLAGS="$CPPFLAGS"
25299
25300 LDFLAGS="$addld $LDFLAGS"
25301 LIBS="$addlib $LIBS"
25302 if test "$addcflags" != "-I/usr/include"; then
25303 CPPFLAGS="$CPPFLAGS $addcflags"
25304 fi
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25307$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25308if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25309 $as_echo_n "(cached) " >&6
25310else
25311 ac_check_lib_save_LIBS=$LIBS
25312LIBS="-lnss3 $LIBS"
25313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314/* end confdefs.h. */
25315
25316
25317#ifdef __cplusplus
25318extern "C"
25319#endif
25320char SSL_VersionRangeSet ();
25321int main (void)
25322{
25323return SSL_VersionRangeSet ();
25324 ;
25325 return 0;
25326}
25327_ACEOF
25328if ac_fn_c_try_link "$LINENO"; then :
25329 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25330else
25331 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25332fi
25333rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
25335LIBS=$ac_check_lib_save_LIBS
25336fi
25337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25338$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25339if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25340
25341
25342$as_echo "#define USE_NSS 1" >>confdefs.h
25343
25344 USE_NSS=1
25345
25346 USE_NSS="yes"
25347 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025348 ssl_msg="NSS"
25349 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025350
25351else
25352
25353 LDFLAGS="$CLEANLDFLAGS"
25354 LIBS="$CLEANLIBS"
25355 CPPFLAGS="$CLEANCPPFLAGS"
25356
25357fi
25358
25359
25360 if test "x$USE_NSS" = "xyes"; then
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25362$as_echo "$as_me: detected NSS version $version" >&6;}
25363
25364 NSS_LIBS=$addlib
25365
25366
25367 if test "x$cross_compiling" != "xyes"; then
25368 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25369 export LD_LIBRARY_PATH
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25371$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25372 fi
25373
25374 fi
25375 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025376 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025377fi
Alex Deymo486467e2017-12-19 19:04:07 +010025378
Elliott Hughes82be86d2017-09-20 17:00:17 -070025379OPT_AXTLS=off
25380
25381
25382# Check whether --with-axtls was given.
25383if test "${with_axtls+set}" = set; then :
25384 withval=$with_axtls; OPT_AXTLS=$withval
25385fi
25386
25387
Alex Deymo486467e2017-12-19 19:04:07 +010025388if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25389 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025390 if test X"$OPT_AXTLS" != Xno; then
25391 CLEANLDFLAGS="$LDFLAGS"
25392 CLEANCPPFLAGS="$CPPFLAGS"
25393 CLEANLIBS="$LIBS"
25394
25395 case "$OPT_AXTLS" in
25396 yes)
25397 PREFIX_AXTLS=/usr/local
25398 LIB_AXTLS="$PREFIX_AXTLS/lib"
25399 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25400 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25401 ;;
25402 off)
25403 PREFIX_AXTLS=
25404 ;;
25405 *)
25406 PREFIX_AXTLS=$OPT_AXTLS
25407 LIB_AXTLS="$PREFIX_AXTLS/lib"
25408 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25409 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25410 ;;
25411 esac
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25414$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25415if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25416 $as_echo_n "(cached) " >&6
25417else
25418 ac_check_lib_save_LIBS=$LIBS
25419LIBS="-laxtls $LIBS"
25420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421/* end confdefs.h. */
25422
25423
25424#ifdef __cplusplus
25425extern "C"
25426#endif
25427char ssl_version ();
25428int main (void)
25429{
25430return ssl_version ();
25431 ;
25432 return 0;
25433}
25434_ACEOF
25435if ac_fn_c_try_link "$LINENO"; then :
25436 ac_cv_lib_axtls_ssl_version=yes
25437else
25438 ac_cv_lib_axtls_ssl_version=no
25439fi
25440rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
25442LIBS=$ac_check_lib_save_LIBS
25443fi
25444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25445$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25446if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25447
25448 LIBS="-laxtls $LIBS"
25449
25450$as_echo "#define USE_AXTLS 1" >>confdefs.h
25451
25452 USE_AXTLS=1
25453
25454 AXTLS_ENABLED=1
25455 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025456 ssl_msg="axTLS"
25457 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025458
25459 if test "x$cross_compiling" != "xyes"; then
25460 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25461 export LD_LIBRARY_PATH
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25463$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25464 fi
25465
25466else
25467
25468 LDFLAGS="$CLEANLDFLAGS"
25469 CPPFLAGS="$CLEANCPPFLAGS"
25470 LIBS="$CLEANLIBS"
25471
25472fi
25473
25474 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025475 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025476fi
25477
Alex Deymo486467e2017-12-19 19:04:07 +010025478case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25479x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25481$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25482 { $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
25483$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 +010025484 ;;
25485x1)
25486 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025487
25488 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025489 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25490$as_echo "$as_me: built with one SSL backend" >&6;}
25491 ;;
25492*)
25493 # more than one SSL backend is enabled
25494
25495 SSL_ENABLED="1"
25496
25497 CURL_WITH_MULTI_SSL="1"
25498
25499$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25500
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25502$as_echo "$as_me: built with multiple SSL backends" >&6;}
25503 ;;
25504esac
25505
25506if test -n "$ssl_backends"; then
25507 curl_ssl_msg="enabled ($ssl_backends)"
25508fi
25509
25510if test no = "$VALID_DEFAULT_SSL_BACKEND"
25511then
25512 if test -n "$SSL_ENABLED"
25513 then
25514 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25515 else
25516 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25517 fi
25518elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25519then
25520
25521cat >>confdefs.h <<_ACEOF
25522#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25523_ACEOF
25524
Elliott Hughes82be86d2017-09-20 17:00:17 -070025525fi
25526
25527
25528
25529
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25531$as_echo_n "checking default CA cert bundle/path... " >&6; }
25532
25533
25534# Check whether --with-ca-bundle was given.
25535if test "${with_ca_bundle+set}" = set; then :
25536 withval=$with_ca_bundle;
25537 want_ca="$withval"
25538 if test "x$want_ca" = "xyes"; then
25539 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25540 fi
25541
25542else
25543 want_ca="unset"
25544fi
25545
25546
25547# Check whether --with-ca-path was given.
25548if test "${with_ca_path+set}" = set; then :
25549 withval=$with_ca_path;
25550 want_capath="$withval"
25551 if test "x$want_capath" = "xyes"; then
25552 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25553 fi
25554
25555else
25556 want_capath="unset"
25557fi
25558
25559
25560 ca_warning=" (warning: certs not found)"
25561 capath_warning=" (warning: certs not found)"
25562 check_capath=""
25563
25564 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25565 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25566 ca="$want_ca"
25567 capath="$want_capath"
25568 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25569 ca="$want_ca"
25570 capath="no"
25571 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25572 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25573 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25574 fi
25575 capath="$want_capath"
25576 ca="no"
25577 else
25578 ca="no"
25579 capath="no"
25580 if test "x$cross_compiling" != "xyes"; then
25581 if test "x$want_ca" = "xunset"; then
25582 if test "x$prefix" != xNONE; then
25583 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25584 else
25585 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25586 fi
25587
25588 for a in /etc/ssl/certs/ca-certificates.crt \
25589 /etc/pki/tls/certs/ca-bundle.crt \
25590 /usr/share/ssl/certs/ca-bundle.crt \
25591 /usr/local/share/certs/ca-root-nss.crt \
25592 /etc/ssl/cert.pem \
25593 "$cac"; do
25594 if test -f "$a"; then
25595 ca="$a"
25596 break
25597 fi
25598 done
25599 fi
25600 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25601 "x$OPENSSL_ENABLED" = "x1"; then
25602 check_capath="/etc/ssl/certs/"
25603 fi
25604 else
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25606$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25607 fi
25608 fi
25609
25610 if test "x$ca" = "xno" || test -f "$ca"; then
25611 ca_warning=""
25612 fi
25613
25614 if test "x$capath" != "xno"; then
25615 check_capath="$capath"
25616 fi
25617
25618 if test ! -z "$check_capath"; then
25619 for a in "$check_capath"; do
25620 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
25621 if test "x$capath" = "xno"; then
25622 capath="$a"
25623 fi
25624 capath_warning=""
25625 break
25626 fi
25627 done
25628 fi
25629
25630 if test "x$capath" = "xno"; then
25631 capath_warning=""
25632 fi
25633
25634 if test "x$ca" != "xno"; then
25635 CURL_CA_BUNDLE='"'$ca'"'
25636
25637cat >>confdefs.h <<_ACEOF
25638#define CURL_CA_BUNDLE "$ca"
25639_ACEOF
25640
25641
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25643$as_echo "$ca" >&6; }
25644 fi
25645 if test "x$capath" != "xno"; then
25646 CURL_CA_PATH="\"$capath\""
25647
25648cat >>confdefs.h <<_ACEOF
25649#define CURL_CA_PATH "$capath"
25650_ACEOF
25651
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25653$as_echo "$capath (capath)" >&6; }
25654 fi
25655 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25657$as_echo "no" >&6; }
25658 fi
25659
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25661$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25662
25663# Check whether --with-ca-fallback was given.
25664if test "${with_ca_fallback+set}" = set; then :
25665 withval=$with_ca_fallback;
25666 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25667 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25668 fi
25669
25670else
25671 with_ca_fallback="no"
25672fi
25673
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25675$as_echo "$with_ca_fallback" >&6; }
25676 if test "x$with_ca_fallback" = "xyes"; then
25677 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25678 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25679 fi
25680
25681cat >>confdefs.h <<_ACEOF
25682#define CURL_CA_FALLBACK 1
25683_ACEOF
25684
25685 fi
25686
25687
25688
25689
25690# Check whether --with-libpsl was given.
25691if test "${with_libpsl+set}" = set; then :
25692 withval=$with_libpsl; with_libpsl=$withval
25693else
25694 with_libpsl=yes
25695fi
25696
25697if test $with_libpsl != "no"; then
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25699$as_echo_n "checking for library containing psl_builtin... " >&6; }
25700if ${ac_cv_search_psl_builtin+:} false; then :
25701 $as_echo_n "(cached) " >&6
25702else
25703 ac_func_search_save_LIBS=$LIBS
25704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705/* end confdefs.h. */
25706
25707
25708#ifdef __cplusplus
25709extern "C"
25710#endif
25711char psl_builtin ();
25712int main (void)
25713{
25714return psl_builtin ();
25715 ;
25716 return 0;
25717}
25718_ACEOF
25719for ac_lib in '' psl; do
25720 if test -z "$ac_lib"; then
25721 ac_res="none required"
25722 else
25723 ac_res=-l$ac_lib
25724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25725 fi
25726 if ac_fn_c_try_link "$LINENO"; then :
25727 ac_cv_search_psl_builtin=$ac_res
25728fi
25729rm -f core conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext
25731 if ${ac_cv_search_psl_builtin+:} false; then :
25732 break
25733fi
25734done
25735if ${ac_cv_search_psl_builtin+:} false; then :
25736
25737else
25738 ac_cv_search_psl_builtin=no
25739fi
25740rm conftest.$ac_ext
25741LIBS=$ac_func_search_save_LIBS
25742fi
25743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25744$as_echo "$ac_cv_search_psl_builtin" >&6; }
25745ac_res=$ac_cv_search_psl_builtin
25746if test "$ac_res" != no; then :
25747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25748 curl_psl_msg="yes";
25749
25750$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25751
25752
25753else
25754 curl_psl_msg="no (libpsl not found)";
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25756$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25757
25758
25759fi
25760
25761fi
25762 if test "$curl_psl_msg" = "yes"; then
25763 USE_LIBPSL_TRUE=
25764 USE_LIBPSL_FALSE='#'
25765else
25766 USE_LIBPSL_TRUE='#'
25767 USE_LIBPSL_FALSE=
25768fi
25769
25770
25771
25772OPT_LIBMETALINK=no
25773
25774
25775# Check whether --with-libmetalink was given.
25776if test "${with_libmetalink+set}" = set; then :
25777 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25778fi
25779
25780
25781if test X"$OPT_LIBMETALINK" != Xno; then
25782
25783 addld=""
25784 addlib=""
25785 addcflags=""
25786 version=""
25787 libmetalinklib=""
25788
25789 PKGTEST="no"
25790 if test "x$OPT_LIBMETALINK" = "xyes"; then
25791 PKGTEST="yes"
25792
25793 if test -n "$PKG_CONFIG"; then
25794 PKGCONFIG="$PKG_CONFIG"
25795 else
25796 if test -n "$ac_tool_prefix"; then
25797 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25798set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25800$as_echo_n "checking for $ac_word... " >&6; }
25801if ${ac_cv_path_PKGCONFIG+:} false; then :
25802 $as_echo_n "(cached) " >&6
25803else
25804 case $PKGCONFIG in
25805 [\\/]* | ?:[\\/]*)
25806 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25807 ;;
25808 *)
25809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25810as_dummy="$PATH:/usr/bin:/usr/local/bin"
25811for as_dir in $as_dummy
25812do
25813 IFS=$as_save_IFS
25814 test -z "$as_dir" && as_dir=.
25815 for ac_exec_ext in '' $ac_executable_extensions; do
25816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25817 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25819 break 2
25820 fi
25821done
25822 done
25823IFS=$as_save_IFS
25824
25825 ;;
25826esac
25827fi
25828PKGCONFIG=$ac_cv_path_PKGCONFIG
25829if test -n "$PKGCONFIG"; then
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25831$as_echo "$PKGCONFIG" >&6; }
25832else
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25834$as_echo "no" >&6; }
25835fi
25836
25837
25838fi
25839if test -z "$ac_cv_path_PKGCONFIG"; then
25840 ac_pt_PKGCONFIG=$PKGCONFIG
25841 # Extract the first word of "pkg-config", so it can be a program name with args.
25842set dummy pkg-config; ac_word=$2
25843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25844$as_echo_n "checking for $ac_word... " >&6; }
25845if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25846 $as_echo_n "(cached) " >&6
25847else
25848 case $ac_pt_PKGCONFIG in
25849 [\\/]* | ?:[\\/]*)
25850 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25851 ;;
25852 *)
25853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25854as_dummy="$PATH:/usr/bin:/usr/local/bin"
25855for as_dir in $as_dummy
25856do
25857 IFS=$as_save_IFS
25858 test -z "$as_dir" && as_dir=.
25859 for ac_exec_ext in '' $ac_executable_extensions; do
25860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25861 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25863 break 2
25864 fi
25865done
25866 done
25867IFS=$as_save_IFS
25868
25869 ;;
25870esac
25871fi
25872ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25873if test -n "$ac_pt_PKGCONFIG"; then
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25875$as_echo "$ac_pt_PKGCONFIG" >&6; }
25876else
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25878$as_echo "no" >&6; }
25879fi
25880
25881 if test "x$ac_pt_PKGCONFIG" = x; then
25882 PKGCONFIG="no"
25883 else
25884 case $cross_compiling:$ac_tool_warned in
25885yes:)
25886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25888ac_tool_warned=yes ;;
25889esac
25890 PKGCONFIG=$ac_pt_PKGCONFIG
25891 fi
25892else
25893 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25894fi
25895
25896 fi
25897
25898 if test "x$PKGCONFIG" != "xno"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25900$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25901 itexists=`
25902 if test -n ""; then
25903 PKG_CONFIG_LIBDIR=""
25904 export PKG_CONFIG_LIBDIR
25905 fi
25906 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25907
25908 if test -z "$itexists"; then
25909 PKGCONFIG="no"
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25911$as_echo "no" >&6; }
25912 else
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25914$as_echo "found" >&6; }
25915 fi
25916 fi
25917
25918 else
25919 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25921$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25922 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25923 PKGTEST="yes"
25924 fi
25925 if test "$PKGTEST" = "yes"; then
25926
25927 if test -n "$PKG_CONFIG"; then
25928 PKGCONFIG="$PKG_CONFIG"
25929 else
25930 if test -n "$ac_tool_prefix"; then
25931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25932set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25934$as_echo_n "checking for $ac_word... " >&6; }
25935if ${ac_cv_path_PKGCONFIG+:} false; then :
25936 $as_echo_n "(cached) " >&6
25937else
25938 case $PKGCONFIG in
25939 [\\/]* | ?:[\\/]*)
25940 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25941 ;;
25942 *)
25943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25944as_dummy="$PATH:/usr/bin:/usr/local/bin"
25945for as_dir in $as_dummy
25946do
25947 IFS=$as_save_IFS
25948 test -z "$as_dir" && as_dir=.
25949 for ac_exec_ext in '' $ac_executable_extensions; do
25950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25951 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25953 break 2
25954 fi
25955done
25956 done
25957IFS=$as_save_IFS
25958
25959 ;;
25960esac
25961fi
25962PKGCONFIG=$ac_cv_path_PKGCONFIG
25963if test -n "$PKGCONFIG"; then
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25965$as_echo "$PKGCONFIG" >&6; }
25966else
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25968$as_echo "no" >&6; }
25969fi
25970
25971
25972fi
25973if test -z "$ac_cv_path_PKGCONFIG"; then
25974 ac_pt_PKGCONFIG=$PKGCONFIG
25975 # Extract the first word of "pkg-config", so it can be a program name with args.
25976set dummy pkg-config; ac_word=$2
25977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25978$as_echo_n "checking for $ac_word... " >&6; }
25979if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25980 $as_echo_n "(cached) " >&6
25981else
25982 case $ac_pt_PKGCONFIG in
25983 [\\/]* | ?:[\\/]*)
25984 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25985 ;;
25986 *)
25987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25988as_dummy="$PATH:/usr/bin:/usr/local/bin"
25989for as_dir in $as_dummy
25990do
25991 IFS=$as_save_IFS
25992 test -z "$as_dir" && as_dir=.
25993 for ac_exec_ext in '' $ac_executable_extensions; do
25994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25995 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25997 break 2
25998 fi
25999done
26000 done
26001IFS=$as_save_IFS
26002
26003 ;;
26004esac
26005fi
26006ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26007if test -n "$ac_pt_PKGCONFIG"; then
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26009$as_echo "$ac_pt_PKGCONFIG" >&6; }
26010else
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26012$as_echo "no" >&6; }
26013fi
26014
26015 if test "x$ac_pt_PKGCONFIG" = x; then
26016 PKGCONFIG="no"
26017 else
26018 case $cross_compiling:$ac_tool_warned in
26019yes:)
26020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26022ac_tool_warned=yes ;;
26023esac
26024 PKGCONFIG=$ac_pt_PKGCONFIG
26025 fi
26026else
26027 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26028fi
26029
26030 fi
26031
26032 if test "x$PKGCONFIG" != "xno"; then
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26034$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26035 itexists=`
26036 if test -n "$LIBMETALINK_PCDIR"; then
26037 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26038 export PKG_CONFIG_LIBDIR
26039 fi
26040 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26041
26042 if test -z "$itexists"; then
26043 PKGCONFIG="no"
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045$as_echo "no" >&6; }
26046 else
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26048$as_echo "found" >&6; }
26049 fi
26050 fi
26051
26052 fi
26053 fi
26054 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26055 addlib=`
26056 if test -n "$LIBMETALINK_PCDIR"; then
26057 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26058 export PKG_CONFIG_LIBDIR
26059 fi
26060 $PKGCONFIG --libs-only-l libmetalink`
26061 addld=`
26062 if test -n "$LIBMETALINK_PCDIR"; then
26063 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26064 export PKG_CONFIG_LIBDIR
26065 fi
26066 $PKGCONFIG --libs-only-L libmetalink`
26067 addcflags=`
26068 if test -n "$LIBMETALINK_PCDIR"; then
26069 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26070 export PKG_CONFIG_LIBDIR
26071 fi
26072 $PKGCONFIG --cflags-only-I libmetalink`
26073 version=`
26074 if test -n "$LIBMETALINK_PCDIR"; then
26075 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26076 export PKG_CONFIG_LIBDIR
26077 fi
26078 $PKGCONFIG --modversion libmetalink`
26079 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26080 fi
26081 if test -n "$addlib"; then
26082
26083 clean_CPPFLAGS="$CPPFLAGS"
26084 clean_LDFLAGS="$LDFLAGS"
26085 clean_LIBS="$LIBS"
26086 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26087 LDFLAGS="$clean_LDFLAGS $addld"
26088 LIBS="$addlib $clean_LIBS"
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26090$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092/* end confdefs.h. */
26093
26094
26095# include <metalink/metalink.h>
26096
26097int main (void)
26098{
26099
26100 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26101 return 1;
26102
26103 ;
26104 return 0;
26105}
26106
26107_ACEOF
26108if ac_fn_c_try_link "$LINENO"; then :
26109
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26111$as_echo "yes ($version)" >&6; }
26112 want_metalink="yes"
26113
26114else
26115
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26117$as_echo "no ($version)" >&6; }
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26119$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26120 want_metalink="no"
26121
26122fi
26123rm -f core conftest.err conftest.$ac_objext \
26124 conftest$ac_exeext conftest.$ac_ext
26125 CPPFLAGS="$clean_CPPFLAGS"
26126 LDFLAGS="$clean_LDFLAGS"
26127 LIBS="$clean_LIBS"
26128 if test "$want_metalink" = "yes"; then
26129
26130$as_echo "#define USE_METALINK 1" >>confdefs.h
26131
26132 LIBMETALINK_LIBS=$addlib
26133 LIBMETALINK_LDFLAGS=$addld
26134 LIBMETALINK_CPPFLAGS=$addcflags
26135
26136
26137
26138 curl_mtlnk_msg="enabled"
26139 fi
26140
26141 fi
26142fi
26143
26144
26145OPT_LIBSSH2=off
26146
26147# Check whether --with-libssh2 was given.
26148if test "${with_libssh2+set}" = set; then :
26149 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026150else
26151 OPT_LIBSSH2=no
26152fi
26153
26154
26155
26156OPT_LIBSSH=off
26157
26158# Check whether --with-libssh was given.
26159if test "${with_libssh+set}" = set; then :
26160 withval=$with_libssh; OPT_LIBSSH=$withval
26161else
26162 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026163fi
26164
26165
26166if test X"$OPT_LIBSSH2" != Xno; then
26167 CLEANLDFLAGS="$LDFLAGS"
26168 CLEANCPPFLAGS="$CPPFLAGS"
26169 CLEANLIBS="$LIBS"
26170
26171 case "$OPT_LIBSSH2" in
26172 yes)
26173
26174 if test -n "$PKG_CONFIG"; then
26175 PKGCONFIG="$PKG_CONFIG"
26176 else
26177 if test -n "$ac_tool_prefix"; then
26178 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26179set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26181$as_echo_n "checking for $ac_word... " >&6; }
26182if ${ac_cv_path_PKGCONFIG+:} false; then :
26183 $as_echo_n "(cached) " >&6
26184else
26185 case $PKGCONFIG in
26186 [\\/]* | ?:[\\/]*)
26187 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26188 ;;
26189 *)
26190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26191as_dummy="$PATH:/usr/bin:/usr/local/bin"
26192for as_dir in $as_dummy
26193do
26194 IFS=$as_save_IFS
26195 test -z "$as_dir" && as_dir=.
26196 for ac_exec_ext in '' $ac_executable_extensions; do
26197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26198 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26200 break 2
26201 fi
26202done
26203 done
26204IFS=$as_save_IFS
26205
26206 ;;
26207esac
26208fi
26209PKGCONFIG=$ac_cv_path_PKGCONFIG
26210if test -n "$PKGCONFIG"; then
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26212$as_echo "$PKGCONFIG" >&6; }
26213else
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26215$as_echo "no" >&6; }
26216fi
26217
26218
26219fi
26220if test -z "$ac_cv_path_PKGCONFIG"; then
26221 ac_pt_PKGCONFIG=$PKGCONFIG
26222 # Extract the first word of "pkg-config", so it can be a program name with args.
26223set dummy pkg-config; ac_word=$2
26224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26225$as_echo_n "checking for $ac_word... " >&6; }
26226if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26227 $as_echo_n "(cached) " >&6
26228else
26229 case $ac_pt_PKGCONFIG in
26230 [\\/]* | ?:[\\/]*)
26231 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26232 ;;
26233 *)
26234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26235as_dummy="$PATH:/usr/bin:/usr/local/bin"
26236for as_dir in $as_dummy
26237do
26238 IFS=$as_save_IFS
26239 test -z "$as_dir" && as_dir=.
26240 for ac_exec_ext in '' $ac_executable_extensions; do
26241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26242 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26244 break 2
26245 fi
26246done
26247 done
26248IFS=$as_save_IFS
26249
26250 ;;
26251esac
26252fi
26253ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26254if test -n "$ac_pt_PKGCONFIG"; then
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26256$as_echo "$ac_pt_PKGCONFIG" >&6; }
26257else
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26259$as_echo "no" >&6; }
26260fi
26261
26262 if test "x$ac_pt_PKGCONFIG" = x; then
26263 PKGCONFIG="no"
26264 else
26265 case $cross_compiling:$ac_tool_warned in
26266yes:)
26267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26269ac_tool_warned=yes ;;
26270esac
26271 PKGCONFIG=$ac_pt_PKGCONFIG
26272 fi
26273else
26274 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26275fi
26276
26277 fi
26278
26279 if test "x$PKGCONFIG" != "xno"; then
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26281$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26282 itexists=`
26283 if test -n ""; then
26284 PKG_CONFIG_LIBDIR=""
26285 export PKG_CONFIG_LIBDIR
26286 fi
26287 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26288
26289 if test -z "$itexists"; then
26290 PKGCONFIG="no"
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26292$as_echo "no" >&6; }
26293 else
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26295$as_echo "found" >&6; }
26296 fi
26297 fi
26298
26299
26300 if test "$PKGCONFIG" != "no" ; then
26301 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26302 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26303 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26304 version=`$PKGCONFIG --modversion libssh2`
26305 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26306 fi
26307
26308 ;;
26309 off)
26310 ;;
26311 *)
26312 PREFIX_SSH2=$OPT_LIBSSH2
26313 ;;
26314 esac
26315
26316 if test -n "$PREFIX_SSH2"; then
26317 LIB_SSH2="-lssh2"
26318 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26319 CPP_SSH2=-I${PREFIX_SSH2}/include
26320 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26321 fi
26322
26323 LDFLAGS="$LDFLAGS $LD_SSH2"
26324 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26325 LIBS="$LIB_SSH2 $LIBS"
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26328$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26329if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26330 $as_echo_n "(cached) " >&6
26331else
26332 ac_check_lib_save_LIBS=$LIBS
26333LIBS="-lssh2 $LIBS"
26334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335/* end confdefs.h. */
26336
26337
26338#ifdef __cplusplus
26339extern "C"
26340#endif
26341char libssh2_channel_open_ex ();
26342int main (void)
26343{
26344return libssh2_channel_open_ex ();
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349if ac_fn_c_try_link "$LINENO"; then :
26350 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26351else
26352 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26353fi
26354rm -f core conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
26356LIBS=$ac_check_lib_save_LIBS
26357fi
26358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26359$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26360if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26361 cat >>confdefs.h <<_ACEOF
26362#define HAVE_LIBSSH2 1
26363_ACEOF
26364
26365 LIBS="-lssh2 $LIBS"
26366
26367fi
26368
26369
26370 for ac_header in libssh2.h
26371do :
26372 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26373if test "x$ac_cv_header_libssh2_h" = xyes; then :
26374 cat >>confdefs.h <<_ACEOF
26375#define HAVE_LIBSSH2_H 1
26376_ACEOF
26377 curl_ssh_msg="enabled (libSSH2)"
26378 LIBSSH2_ENABLED=1
26379
26380$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26381
26382 USE_LIBSSH2=1
26383
26384
26385fi
26386
26387done
26388
26389
26390 if test X"$OPT_LIBSSH2" != Xoff &&
26391 test "$LIBSSH2_ENABLED" != "1"; then
26392 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26393 fi
26394
26395 if test "$LIBSSH2_ENABLED" = "1"; then
26396 if test -n "$DIR_SSH2"; then
26397
26398 if test "x$cross_compiling" != "xyes"; then
26399 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26400 export LD_LIBRARY_PATH
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26402$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26403 fi
26404 fi
26405 else
26406 LDFLAGS=$CLEANLDFLAGS
26407 CPPFLAGS=$CLEANCPPFLAGS
26408 LIBS=$CLEANLIBS
26409 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026410elif test X"$OPT_LIBSSH" != Xno; then
26411 CLEANLDFLAGS="$LDFLAGS"
26412 CLEANCPPFLAGS="$CPPFLAGS"
26413 CLEANLIBS="$LIBS"
26414
26415 case "$OPT_LIBSSH" in
26416 yes)
26417
26418 if test -n "$PKG_CONFIG"; then
26419 PKGCONFIG="$PKG_CONFIG"
26420 else
26421 if test -n "$ac_tool_prefix"; then
26422 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26423set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26425$as_echo_n "checking for $ac_word... " >&6; }
26426if ${ac_cv_path_PKGCONFIG+:} false; then :
26427 $as_echo_n "(cached) " >&6
26428else
26429 case $PKGCONFIG in
26430 [\\/]* | ?:[\\/]*)
26431 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26432 ;;
26433 *)
26434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26435as_dummy="$PATH:/usr/bin:/usr/local/bin"
26436for as_dir in $as_dummy
26437do
26438 IFS=$as_save_IFS
26439 test -z "$as_dir" && as_dir=.
26440 for ac_exec_ext in '' $ac_executable_extensions; do
26441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26442 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26444 break 2
26445 fi
26446done
26447 done
26448IFS=$as_save_IFS
26449
26450 ;;
26451esac
26452fi
26453PKGCONFIG=$ac_cv_path_PKGCONFIG
26454if test -n "$PKGCONFIG"; then
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26456$as_echo "$PKGCONFIG" >&6; }
26457else
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26459$as_echo "no" >&6; }
26460fi
26461
26462
26463fi
26464if test -z "$ac_cv_path_PKGCONFIG"; then
26465 ac_pt_PKGCONFIG=$PKGCONFIG
26466 # Extract the first word of "pkg-config", so it can be a program name with args.
26467set dummy pkg-config; ac_word=$2
26468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26469$as_echo_n "checking for $ac_word... " >&6; }
26470if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26471 $as_echo_n "(cached) " >&6
26472else
26473 case $ac_pt_PKGCONFIG in
26474 [\\/]* | ?:[\\/]*)
26475 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26476 ;;
26477 *)
26478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479as_dummy="$PATH:/usr/bin:/usr/local/bin"
26480for as_dir in $as_dummy
26481do
26482 IFS=$as_save_IFS
26483 test -z "$as_dir" && as_dir=.
26484 for ac_exec_ext in '' $ac_executable_extensions; do
26485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26486 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26488 break 2
26489 fi
26490done
26491 done
26492IFS=$as_save_IFS
26493
26494 ;;
26495esac
26496fi
26497ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26498if test -n "$ac_pt_PKGCONFIG"; then
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26500$as_echo "$ac_pt_PKGCONFIG" >&6; }
26501else
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26503$as_echo "no" >&6; }
26504fi
26505
26506 if test "x$ac_pt_PKGCONFIG" = x; then
26507 PKGCONFIG="no"
26508 else
26509 case $cross_compiling:$ac_tool_warned in
26510yes:)
26511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26513ac_tool_warned=yes ;;
26514esac
26515 PKGCONFIG=$ac_pt_PKGCONFIG
26516 fi
26517else
26518 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26519fi
26520
26521 fi
26522
26523 if test "x$PKGCONFIG" != "xno"; then
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26525$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26526 itexists=`
26527 if test -n ""; then
26528 PKG_CONFIG_LIBDIR=""
26529 export PKG_CONFIG_LIBDIR
26530 fi
26531 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26532
26533 if test -z "$itexists"; then
26534 PKGCONFIG="no"
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26536$as_echo "no" >&6; }
26537 else
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26539$as_echo "found" >&6; }
26540 fi
26541 fi
26542
26543
26544 if test "$PKGCONFIG" != "no" ; then
26545 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26546 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26547 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26548 version=`$PKGCONFIG --modversion libssh`
26549 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26550 fi
26551
26552 ;;
26553 off)
26554 ;;
26555 *)
26556 PREFIX_SSH=$OPT_LIBSSH
26557 ;;
26558 esac
26559
26560 if test -n "$PREFIX_SSH"; then
26561 LIB_SSH="-lssh"
26562 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26563 CPP_SSH=-I${PREFIX_SSH}/include
26564 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26565 fi
26566
26567 LDFLAGS="$LDFLAGS $LD_SSH"
26568 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26569 LIBS="$LIB_SSH $LIBS"
26570
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26572$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26573if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26574 $as_echo_n "(cached) " >&6
26575else
26576 ac_check_lib_save_LIBS=$LIBS
26577LIBS="-lssh $LIBS"
26578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579/* end confdefs.h. */
26580
26581
26582#ifdef __cplusplus
26583extern "C"
26584#endif
26585char ssh_new ();
26586int main (void)
26587{
26588return ssh_new ();
26589 ;
26590 return 0;
26591}
26592_ACEOF
26593if ac_fn_c_try_link "$LINENO"; then :
26594 ac_cv_lib_ssh_ssh_new=yes
26595else
26596 ac_cv_lib_ssh_ssh_new=no
26597fi
26598rm -f core conftest.err conftest.$ac_objext \
26599 conftest$ac_exeext conftest.$ac_ext
26600LIBS=$ac_check_lib_save_LIBS
26601fi
26602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26603$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26604if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26605 cat >>confdefs.h <<_ACEOF
26606#define HAVE_LIBSSH 1
26607_ACEOF
26608
26609 LIBS="-lssh $LIBS"
26610
26611fi
26612
26613
26614 for ac_header in libssh/libssh.h
26615do :
26616 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26617if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26618 cat >>confdefs.h <<_ACEOF
26619#define HAVE_LIBSSH_LIBSSH_H 1
26620_ACEOF
26621 curl_ssh_msg="enabled (libSSH)"
26622 LIBSSH_ENABLED=1
26623
26624$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26625
26626 USE_LIBSSH=1
26627
26628
26629fi
26630
26631done
26632
26633
26634 if test X"$OPT_LIBSSH" != Xoff &&
26635 test "$LIBSSH_ENABLED" != "1"; then
26636 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26637 fi
26638
26639 if test "$LIBSSH_ENABLED" = "1"; then
26640 if test -n "$DIR_SSH"; then
26641
26642 if test "x$cross_compiling" != "xyes"; then
26643 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH"
26644 export LD_LIBRARY_PATH
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to LD_LIBRARY_PATH" >&5
26646$as_echo "$as_me: Added $DIR_SSH to LD_LIBRARY_PATH" >&6;}
26647 fi
26648 fi
26649 else
26650 LDFLAGS=$CLEANLDFLAGS
26651 CPPFLAGS=$CLEANCPPFLAGS
26652 LIBS=$CLEANLIBS
26653 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026654fi
26655
26656
26657OPT_LIBRTMP=off
26658
26659# Check whether --with-librtmp was given.
26660if test "${with_librtmp+set}" = set; then :
26661 withval=$with_librtmp; OPT_LIBRTMP=$withval
26662fi
26663
26664
26665if test X"$OPT_LIBRTMP" != Xno; then
26666 CLEANLDFLAGS="$LDFLAGS"
26667 CLEANCPPFLAGS="$CPPFLAGS"
26668 CLEANLIBS="$LIBS"
26669
26670 case "$OPT_LIBRTMP" in
26671 yes)
26672
26673 if test -n "$PKG_CONFIG"; then
26674 PKGCONFIG="$PKG_CONFIG"
26675 else
26676 if test -n "$ac_tool_prefix"; then
26677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26678set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26680$as_echo_n "checking for $ac_word... " >&6; }
26681if ${ac_cv_path_PKGCONFIG+:} false; then :
26682 $as_echo_n "(cached) " >&6
26683else
26684 case $PKGCONFIG in
26685 [\\/]* | ?:[\\/]*)
26686 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26687 ;;
26688 *)
26689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26690as_dummy="$PATH:/usr/bin:/usr/local/bin"
26691for as_dir in $as_dummy
26692do
26693 IFS=$as_save_IFS
26694 test -z "$as_dir" && as_dir=.
26695 for ac_exec_ext in '' $ac_executable_extensions; do
26696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26697 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26699 break 2
26700 fi
26701done
26702 done
26703IFS=$as_save_IFS
26704
26705 ;;
26706esac
26707fi
26708PKGCONFIG=$ac_cv_path_PKGCONFIG
26709if test -n "$PKGCONFIG"; then
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26711$as_echo "$PKGCONFIG" >&6; }
26712else
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26714$as_echo "no" >&6; }
26715fi
26716
26717
26718fi
26719if test -z "$ac_cv_path_PKGCONFIG"; then
26720 ac_pt_PKGCONFIG=$PKGCONFIG
26721 # Extract the first word of "pkg-config", so it can be a program name with args.
26722set dummy pkg-config; ac_word=$2
26723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26724$as_echo_n "checking for $ac_word... " >&6; }
26725if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26726 $as_echo_n "(cached) " >&6
26727else
26728 case $ac_pt_PKGCONFIG in
26729 [\\/]* | ?:[\\/]*)
26730 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26731 ;;
26732 *)
26733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26734as_dummy="$PATH:/usr/bin:/usr/local/bin"
26735for as_dir in $as_dummy
26736do
26737 IFS=$as_save_IFS
26738 test -z "$as_dir" && as_dir=.
26739 for ac_exec_ext in '' $ac_executable_extensions; do
26740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26741 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26743 break 2
26744 fi
26745done
26746 done
26747IFS=$as_save_IFS
26748
26749 ;;
26750esac
26751fi
26752ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26753if test -n "$ac_pt_PKGCONFIG"; then
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26755$as_echo "$ac_pt_PKGCONFIG" >&6; }
26756else
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26758$as_echo "no" >&6; }
26759fi
26760
26761 if test "x$ac_pt_PKGCONFIG" = x; then
26762 PKGCONFIG="no"
26763 else
26764 case $cross_compiling:$ac_tool_warned in
26765yes:)
26766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26768ac_tool_warned=yes ;;
26769esac
26770 PKGCONFIG=$ac_pt_PKGCONFIG
26771 fi
26772else
26773 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26774fi
26775
26776 fi
26777
26778 if test "x$PKGCONFIG" != "xno"; then
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26780$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26781 itexists=`
26782 if test -n ""; then
26783 PKG_CONFIG_LIBDIR=""
26784 export PKG_CONFIG_LIBDIR
26785 fi
26786 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26787
26788 if test -z "$itexists"; then
26789 PKGCONFIG="no"
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26791$as_echo "no" >&6; }
26792 else
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26794$as_echo "found" >&6; }
26795 fi
26796 fi
26797
26798
26799 if test "$PKGCONFIG" != "no" ; then
26800 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26801 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26802 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26803 version=`$PKGCONFIG --modversion librtmp`
26804 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26805 else
26806 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26807 fi
26808
26809 ;;
26810 off)
26811 LIB_RTMP="-lrtmp"
26812 ;;
26813 *)
26814 LIB_RTMP="-lrtmp"
26815 PREFIX_RTMP=$OPT_LIBRTMP
26816 ;;
26817 esac
26818
26819 if test -n "$PREFIX_RTMP"; then
26820 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26821 CPP_RTMP=-I${PREFIX_RTMP}/include
26822 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26823 fi
26824
26825 LDFLAGS="$LDFLAGS $LD_RTMP"
26826 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26827 LIBS="$LIB_RTMP $LIBS"
26828
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26830$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26831if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26832 $as_echo_n "(cached) " >&6
26833else
26834 ac_check_lib_save_LIBS=$LIBS
26835LIBS="-lrtmp $LIBS"
26836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26837/* end confdefs.h. */
26838
26839
26840#ifdef __cplusplus
26841extern "C"
26842#endif
26843char RTMP_Init ();
26844int main (void)
26845{
26846return RTMP_Init ();
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851if ac_fn_c_try_link "$LINENO"; then :
26852 ac_cv_lib_rtmp_RTMP_Init=yes
26853else
26854 ac_cv_lib_rtmp_RTMP_Init=no
26855fi
26856rm -f core conftest.err conftest.$ac_objext \
26857 conftest$ac_exeext conftest.$ac_ext
26858LIBS=$ac_check_lib_save_LIBS
26859fi
26860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26861$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26862if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26863
26864 for ac_header in librtmp/rtmp.h
26865do :
26866 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26867if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26868 cat >>confdefs.h <<_ACEOF
26869#define HAVE_LIBRTMP_RTMP_H 1
26870_ACEOF
26871 curl_rtmp_msg="enabled (librtmp)"
26872 LIBRTMP_ENABLED=1
26873
26874$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26875
26876 USE_LIBRTMP=1
26877
26878
26879fi
26880
26881done
26882
26883
26884else
26885 LDFLAGS=$CLEANLDFLAGS
26886 CPPFLAGS=$CLEANCPPFLAGS
26887 LIBS=$CLEANLIBS
26888
26889fi
26890
26891
26892 if test X"$OPT_LIBRTMP" != Xoff &&
26893 test "$LIBRTMP_ENABLED" != "1"; then
26894 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26895 fi
26896
26897fi
26898
26899
26900versioned_symbols_flavour=
26901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26902$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26903# Check whether --enable-versioned-symbols was given.
26904if test "${enable_versioned_symbols+set}" = set; then :
26905 enableval=$enable_versioned_symbols; case "$enableval" in
26906 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26907$as_echo "yes" >&6; }
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26909$as_echo_n "checking if libraries can be versioned... " >&6; }
26910 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26911 if test -z "$GLD"; then
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26913$as_echo "no" >&6; }
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26915$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26916 else
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26918$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026919 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26920 versioned_symbols_flavour="MULTISSL_"
26921 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026922 versioned_symbols_flavour="OPENSSL_"
26923 elif test "x$GNUTLS_ENABLED" = "x1"; then
26924 versioned_symbols_flavour="GNUTLS_"
26925 elif test "x$NSS_ENABLED" = "x1"; then
26926 versioned_symbols_flavour="NSS_"
26927 elif test "x$POLARSSL_ENABLED" = "x1"; then
26928 versioned_symbols_flavour="POLARSSL_"
26929 elif test "x$CYASSL_ENABLED" = "x1"; then
26930 versioned_symbols_flavour="CYASSL_"
26931 elif test "x$AXTLS_ENABLED" = "x1"; then
26932 versioned_symbols_flavour="AXTLS_"
26933 elif test "x$WINSSL_ENABLED" = "x1"; then
26934 versioned_symbols_flavour="WINSSL_"
26935 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26936 versioned_symbols_flavour="DARWINSSL_"
26937 else
26938 versioned_symbols_flavour=""
26939 fi
26940 versioned_symbols="yes"
26941 fi
26942 ;;
26943
26944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26945$as_echo "no" >&6; }
26946 ;;
26947 esac
26948
26949else
26950
26951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952$as_echo "no" >&6; }
26953
26954
26955fi
26956
26957
26958CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26959
26960 if test "x$versioned_symbols" = 'xyes'; then
26961 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26962 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26963else
26964 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26965 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26966fi
26967
26968
26969
26970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26971$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26972OPT_WINIDN="default"
26973
26974# Check whether --with-winidn was given.
26975if test "${with_winidn+set}" = set; then :
26976 withval=$with_winidn; OPT_WINIDN=$withval
26977fi
26978
26979case "$OPT_WINIDN" in
26980 no|default)
26981 want_winidn="no"
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26983$as_echo "no" >&6; }
26984 ;;
26985 yes)
26986 want_winidn="yes"
26987 want_winidn_path="default"
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989$as_echo "yes" >&6; }
26990 ;;
26991 *)
26992 want_winidn="yes"
26993 want_winidn_path="$withval"
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26995$as_echo "yes ($withval)" >&6; }
26996 ;;
26997esac
26998
26999if test "$want_winidn" = "yes"; then
27000 clean_CPPFLAGS="$CPPFLAGS"
27001 clean_LDFLAGS="$LDFLAGS"
27002 clean_LIBS="$LIBS"
27003 WINIDN_LIBS="-lnormaliz"
27004 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27005 #
27006 if test "$want_winidn_path" != "default"; then
27007 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27008 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27009 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27010 fi
27011 #
27012 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27013 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27014 LIBS="$WINIDN_LIBS $LIBS"
27015 #
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27017$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019/* end confdefs.h. */
27020
27021
27022 #include <windows.h>
27023
27024int main (void)
27025{
27026
27027 IdnToUnicode(0, NULL, 0, NULL, 0);
27028
27029 ;
27030 return 0;
27031}
27032
27033_ACEOF
27034if ac_fn_c_try_link "$LINENO"; then :
27035
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27037$as_echo "yes" >&6; }
27038 tst_links_winidn="yes"
27039
27040else
27041
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27043$as_echo "no" >&6; }
27044 tst_links_winidn="no"
27045
27046fi
27047rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27049 #
27050 if test "$tst_links_winidn" = "yes"; then
27051
27052$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27053
27054
27055$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27056
27057 IDN_ENABLED=1
27058
27059 curl_idn_msg="enabled (Windows-native)"
27060 else
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27062$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27063 CPPFLAGS="$clean_CPPFLAGS"
27064 LDFLAGS="$clean_LDFLAGS"
27065 LIBS="$clean_LIBS"
27066 fi
27067fi
27068
27069
27070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27071$as_echo_n "checking whether to build with libidn2... " >&6; }
27072OPT_IDN="default"
27073
27074# Check whether --with-libidn2 was given.
27075if test "${with_libidn2+set}" = set; then :
27076 withval=$with_libidn2; OPT_IDN=$withval
27077fi
27078
27079case "$OPT_IDN" in
27080 no)
27081 want_idn="no"
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27083$as_echo "no" >&6; }
27084 ;;
27085 default)
27086 want_idn="yes"
27087 want_idn_path="default"
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27089$as_echo "(assumed) yes" >&6; }
27090 ;;
27091 yes)
27092 want_idn="yes"
27093 want_idn_path="default"
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27095$as_echo "yes" >&6; }
27096 ;;
27097 *)
27098 want_idn="yes"
27099 want_idn_path="$withval"
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27101$as_echo "yes ($withval)" >&6; }
27102 ;;
27103esac
27104
27105if test "$want_idn" = "yes"; then
27106 clean_CPPFLAGS="$CPPFLAGS"
27107 clean_LDFLAGS="$LDFLAGS"
27108 clean_LIBS="$LIBS"
27109 PKGCONFIG="no"
27110 #
27111 if test "$want_idn_path" != "default"; then
27112 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27113
27114 if test -n "$PKG_CONFIG"; then
27115 PKGCONFIG="$PKG_CONFIG"
27116 else
27117 if test -n "$ac_tool_prefix"; then
27118 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27119set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27121$as_echo_n "checking for $ac_word... " >&6; }
27122if ${ac_cv_path_PKGCONFIG+:} false; then :
27123 $as_echo_n "(cached) " >&6
27124else
27125 case $PKGCONFIG in
27126 [\\/]* | ?:[\\/]*)
27127 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27128 ;;
27129 *)
27130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27131as_dummy="$PATH:/usr/bin:/usr/local/bin"
27132for as_dir in $as_dummy
27133do
27134 IFS=$as_save_IFS
27135 test -z "$as_dir" && as_dir=.
27136 for ac_exec_ext in '' $ac_executable_extensions; do
27137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27138 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27140 break 2
27141 fi
27142done
27143 done
27144IFS=$as_save_IFS
27145
27146 ;;
27147esac
27148fi
27149PKGCONFIG=$ac_cv_path_PKGCONFIG
27150if test -n "$PKGCONFIG"; then
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27152$as_echo "$PKGCONFIG" >&6; }
27153else
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27155$as_echo "no" >&6; }
27156fi
27157
27158
27159fi
27160if test -z "$ac_cv_path_PKGCONFIG"; then
27161 ac_pt_PKGCONFIG=$PKGCONFIG
27162 # Extract the first word of "pkg-config", so it can be a program name with args.
27163set dummy pkg-config; ac_word=$2
27164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27165$as_echo_n "checking for $ac_word... " >&6; }
27166if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27167 $as_echo_n "(cached) " >&6
27168else
27169 case $ac_pt_PKGCONFIG in
27170 [\\/]* | ?:[\\/]*)
27171 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27172 ;;
27173 *)
27174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27175as_dummy="$PATH:/usr/bin:/usr/local/bin"
27176for as_dir in $as_dummy
27177do
27178 IFS=$as_save_IFS
27179 test -z "$as_dir" && as_dir=.
27180 for ac_exec_ext in '' $ac_executable_extensions; do
27181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27182 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27184 break 2
27185 fi
27186done
27187 done
27188IFS=$as_save_IFS
27189
27190 ;;
27191esac
27192fi
27193ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27194if test -n "$ac_pt_PKGCONFIG"; then
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27196$as_echo "$ac_pt_PKGCONFIG" >&6; }
27197else
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27199$as_echo "no" >&6; }
27200fi
27201
27202 if test "x$ac_pt_PKGCONFIG" = x; then
27203 PKGCONFIG="no"
27204 else
27205 case $cross_compiling:$ac_tool_warned in
27206yes:)
27207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27209ac_tool_warned=yes ;;
27210esac
27211 PKGCONFIG=$ac_pt_PKGCONFIG
27212 fi
27213else
27214 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27215fi
27216
27217 fi
27218
27219 if test "x$PKGCONFIG" != "xno"; then
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27221$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27222 itexists=`
27223 if test -n "$IDN_PCDIR"; then
27224 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27225 export PKG_CONFIG_LIBDIR
27226 fi
27227 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27228
27229 if test -z "$itexists"; then
27230 PKGCONFIG="no"
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27232$as_echo "no" >&6; }
27233 else
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27235$as_echo "found" >&6; }
27236 fi
27237 fi
27238
27239 if test "$PKGCONFIG" != "no"; then
27240 IDN_LIBS=`
27241 if test -n "$IDN_PCDIR"; then
27242 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27243 export PKG_CONFIG_LIBDIR
27244 fi
27245 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27246 IDN_LDFLAGS=`
27247 if test -n "$IDN_PCDIR"; then
27248 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27249 export PKG_CONFIG_LIBDIR
27250 fi
27251 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27252 IDN_CPPFLAGS=`
27253 if test -n "$IDN_PCDIR"; then
27254 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27255 export PKG_CONFIG_LIBDIR
27256 fi
27257 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27258 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27259 else
27260 IDN_LIBS="-lidn2"
27261 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27262 IDN_CPPFLAGS="-I$want_idn_path/include"
27263 IDN_DIR="$want_idn_path/lib$libsuff"
27264 fi
27265 else
27266
27267 if test -n "$PKG_CONFIG"; then
27268 PKGCONFIG="$PKG_CONFIG"
27269 else
27270 if test -n "$ac_tool_prefix"; then
27271 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27272set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27274$as_echo_n "checking for $ac_word... " >&6; }
27275if ${ac_cv_path_PKGCONFIG+:} false; then :
27276 $as_echo_n "(cached) " >&6
27277else
27278 case $PKGCONFIG in
27279 [\\/]* | ?:[\\/]*)
27280 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27281 ;;
27282 *)
27283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27284as_dummy="$PATH:/usr/bin:/usr/local/bin"
27285for as_dir in $as_dummy
27286do
27287 IFS=$as_save_IFS
27288 test -z "$as_dir" && as_dir=.
27289 for ac_exec_ext in '' $ac_executable_extensions; do
27290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27291 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27293 break 2
27294 fi
27295done
27296 done
27297IFS=$as_save_IFS
27298
27299 ;;
27300esac
27301fi
27302PKGCONFIG=$ac_cv_path_PKGCONFIG
27303if test -n "$PKGCONFIG"; then
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27305$as_echo "$PKGCONFIG" >&6; }
27306else
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27308$as_echo "no" >&6; }
27309fi
27310
27311
27312fi
27313if test -z "$ac_cv_path_PKGCONFIG"; then
27314 ac_pt_PKGCONFIG=$PKGCONFIG
27315 # Extract the first word of "pkg-config", so it can be a program name with args.
27316set dummy pkg-config; ac_word=$2
27317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27318$as_echo_n "checking for $ac_word... " >&6; }
27319if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27320 $as_echo_n "(cached) " >&6
27321else
27322 case $ac_pt_PKGCONFIG in
27323 [\\/]* | ?:[\\/]*)
27324 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27325 ;;
27326 *)
27327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27328as_dummy="$PATH:/usr/bin:/usr/local/bin"
27329for as_dir in $as_dummy
27330do
27331 IFS=$as_save_IFS
27332 test -z "$as_dir" && as_dir=.
27333 for ac_exec_ext in '' $ac_executable_extensions; do
27334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27335 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27337 break 2
27338 fi
27339done
27340 done
27341IFS=$as_save_IFS
27342
27343 ;;
27344esac
27345fi
27346ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27347if test -n "$ac_pt_PKGCONFIG"; then
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27349$as_echo "$ac_pt_PKGCONFIG" >&6; }
27350else
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27352$as_echo "no" >&6; }
27353fi
27354
27355 if test "x$ac_pt_PKGCONFIG" = x; then
27356 PKGCONFIG="no"
27357 else
27358 case $cross_compiling:$ac_tool_warned in
27359yes:)
27360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27362ac_tool_warned=yes ;;
27363esac
27364 PKGCONFIG=$ac_pt_PKGCONFIG
27365 fi
27366else
27367 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27368fi
27369
27370 fi
27371
27372 if test "x$PKGCONFIG" != "xno"; then
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27374$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27375 itexists=`
27376 if test -n ""; then
27377 PKG_CONFIG_LIBDIR=""
27378 export PKG_CONFIG_LIBDIR
27379 fi
27380 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27381
27382 if test -z "$itexists"; then
27383 PKGCONFIG="no"
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27385$as_echo "no" >&6; }
27386 else
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27388$as_echo "found" >&6; }
27389 fi
27390 fi
27391
27392 if test "$PKGCONFIG" != "no"; then
27393 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27394 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27395 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27396 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27397 else
27398 IDN_LIBS="-lidn2"
27399 fi
27400 fi
27401 #
27402 if test "$PKGCONFIG" != "no"; then
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27404$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27406$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27408$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27410$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27411 else
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27413$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27415$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27417$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27419$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27420 fi
27421 #
27422 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27423 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27424 LIBS="$IDN_LIBS $LIBS"
27425 #
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27427$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27429/* end confdefs.h. */
27430
27431
27432#define idn2_lookup_ul innocuous_idn2_lookup_ul
27433#ifdef __STDC__
27434# include <limits.h>
27435#else
27436# include <assert.h>
27437#endif
27438#undef idn2_lookup_ul
27439#ifdef __cplusplus
27440extern "C"
27441#endif
27442char idn2_lookup_ul ();
27443#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27444choke me
27445#endif
27446
27447int main (void)
27448{
27449return idn2_lookup_ul ();
27450 ;
27451 return 0;
27452}
27453
27454_ACEOF
27455if ac_fn_c_try_link "$LINENO"; then :
27456
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27458$as_echo "yes" >&6; }
27459 tst_links_libidn="yes"
27460
27461else
27462
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27464$as_echo "no" >&6; }
27465 tst_links_libidn="no"
27466
27467fi
27468rm -f core conftest.err conftest.$ac_objext \
27469 conftest$ac_exeext conftest.$ac_ext
27470 #
27471 for ac_header in idn2.h
27472do :
27473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27474ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27475if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27476 cat >>confdefs.h <<_ACEOF
27477#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27478_ACEOF
27479
27480fi
27481
27482done
27483
27484
27485 if test "$tst_links_libidn" = "yes"; then
27486
27487$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27488
27489
27490 IDN_ENABLED=1
27491
27492 curl_idn_msg="enabled (libidn2)"
27493 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27494 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27495 export LD_LIBRARY_PATH
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27497$as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27498 fi
27499 else
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27501$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27502 CPPFLAGS="$clean_CPPFLAGS"
27503 LDFLAGS="$clean_LDFLAGS"
27504 LIBS="$clean_LIBS"
27505 fi
27506fi
27507
27508
27509
27510
27511
27512OPT_H2="yes"
27513
27514if test "x$disable_http" = "xyes"; then
27515 # without HTTP, nghttp2 is no use
27516 OPT_H2="no"
27517fi
27518
27519
27520# Check whether --with-nghttp2 was given.
27521if test "${with_nghttp2+set}" = set; then :
27522 withval=$with_nghttp2; OPT_H2=$withval
27523fi
27524
27525case "$OPT_H2" in
27526 no)
27527 want_h2="no"
27528 ;;
27529 yes)
27530 want_h2="default"
27531 want_h2_path=""
27532 ;;
27533 *)
27534 want_h2="yes"
27535 want_h2_path="$withval/lib/pkgconfig"
27536 ;;
27537esac
27538
27539curl_h2_msg="disabled (--with-nghttp2)"
27540if test X"$want_h2" != Xno; then
27541 CLEANLDFLAGS="$LDFLAGS"
27542 CLEANCPPFLAGS="$CPPFLAGS"
27543 CLEANLIBS="$LIBS"
27544
27545
27546 if test -n "$PKG_CONFIG"; then
27547 PKGCONFIG="$PKG_CONFIG"
27548 else
27549 if test -n "$ac_tool_prefix"; then
27550 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27551set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27553$as_echo_n "checking for $ac_word... " >&6; }
27554if ${ac_cv_path_PKGCONFIG+:} false; then :
27555 $as_echo_n "(cached) " >&6
27556else
27557 case $PKGCONFIG in
27558 [\\/]* | ?:[\\/]*)
27559 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27560 ;;
27561 *)
27562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27563as_dummy="$PATH:/usr/bin:/usr/local/bin"
27564for as_dir in $as_dummy
27565do
27566 IFS=$as_save_IFS
27567 test -z "$as_dir" && as_dir=.
27568 for ac_exec_ext in '' $ac_executable_extensions; do
27569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27570 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27572 break 2
27573 fi
27574done
27575 done
27576IFS=$as_save_IFS
27577
27578 ;;
27579esac
27580fi
27581PKGCONFIG=$ac_cv_path_PKGCONFIG
27582if test -n "$PKGCONFIG"; then
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27584$as_echo "$PKGCONFIG" >&6; }
27585else
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27587$as_echo "no" >&6; }
27588fi
27589
27590
27591fi
27592if test -z "$ac_cv_path_PKGCONFIG"; then
27593 ac_pt_PKGCONFIG=$PKGCONFIG
27594 # Extract the first word of "pkg-config", so it can be a program name with args.
27595set dummy pkg-config; ac_word=$2
27596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27597$as_echo_n "checking for $ac_word... " >&6; }
27598if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27599 $as_echo_n "(cached) " >&6
27600else
27601 case $ac_pt_PKGCONFIG in
27602 [\\/]* | ?:[\\/]*)
27603 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27604 ;;
27605 *)
27606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27607as_dummy="$PATH:/usr/bin:/usr/local/bin"
27608for as_dir in $as_dummy
27609do
27610 IFS=$as_save_IFS
27611 test -z "$as_dir" && as_dir=.
27612 for ac_exec_ext in '' $ac_executable_extensions; do
27613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27614 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27616 break 2
27617 fi
27618done
27619 done
27620IFS=$as_save_IFS
27621
27622 ;;
27623esac
27624fi
27625ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27626if test -n "$ac_pt_PKGCONFIG"; then
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27628$as_echo "$ac_pt_PKGCONFIG" >&6; }
27629else
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27631$as_echo "no" >&6; }
27632fi
27633
27634 if test "x$ac_pt_PKGCONFIG" = x; then
27635 PKGCONFIG="no"
27636 else
27637 case $cross_compiling:$ac_tool_warned in
27638yes:)
27639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27641ac_tool_warned=yes ;;
27642esac
27643 PKGCONFIG=$ac_pt_PKGCONFIG
27644 fi
27645else
27646 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27647fi
27648
27649 fi
27650
27651 if test "x$PKGCONFIG" != "xno"; then
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27653$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27654 itexists=`
27655 if test -n "$want_h2_path"; then
27656 PKG_CONFIG_LIBDIR="$want_h2_path"
27657 export PKG_CONFIG_LIBDIR
27658 fi
27659 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27660
27661 if test -z "$itexists"; then
27662 PKGCONFIG="no"
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27664$as_echo "no" >&6; }
27665 else
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27667$as_echo "found" >&6; }
27668 fi
27669 fi
27670
27671
27672 if test "$PKGCONFIG" != "no" ; then
27673 LIB_H2=`
27674 if test -n "$want_h2_path"; then
27675 PKG_CONFIG_LIBDIR="$want_h2_path"
27676 export PKG_CONFIG_LIBDIR
27677 fi
27678
27679 $PKGCONFIG --libs-only-l libnghttp2`
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27681$as_echo "$as_me: -l is $LIB_H2" >&6;}
27682
27683 CPP_H2=`
27684 if test -n "$want_h2_path"; then
27685 PKG_CONFIG_LIBDIR="$want_h2_path"
27686 export PKG_CONFIG_LIBDIR
27687 fi
27688 $PKGCONFIG --cflags-only-I libnghttp2`
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27690$as_echo "$as_me: -I is $CPP_H2" >&6;}
27691
27692 LD_H2=`
27693 if test -n "$want_h2_path"; then
27694 PKG_CONFIG_LIBDIR="$want_h2_path"
27695 export PKG_CONFIG_LIBDIR
27696 fi
27697
27698 $PKGCONFIG --libs-only-L libnghttp2`
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27700$as_echo "$as_me: -L is $LD_H2" >&6;}
27701
27702 LDFLAGS="$LDFLAGS $LD_H2"
27703 CPPFLAGS="$CPPFLAGS $CPP_H2"
27704 LIBS="$LIB_H2 $LIBS"
27705
27706 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27707 # >= 1.0.0
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27709$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27710if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27711 $as_echo_n "(cached) " >&6
27712else
27713 ac_check_lib_save_LIBS=$LIBS
27714LIBS="-lnghttp2 $LIBS"
27715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27716/* end confdefs.h. */
27717
27718
27719#ifdef __cplusplus
27720extern "C"
27721#endif
27722char nghttp2_option_set_no_recv_client_magic ();
27723int main (void)
27724{
27725return nghttp2_option_set_no_recv_client_magic ();
27726 ;
27727 return 0;
27728}
27729_ACEOF
27730if ac_fn_c_try_link "$LINENO"; then :
27731 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27732else
27733 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27734fi
27735rm -f core conftest.err conftest.$ac_objext \
27736 conftest$ac_exeext conftest.$ac_ext
27737LIBS=$ac_check_lib_save_LIBS
27738fi
27739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27740$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27741if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27742
27743 for ac_header in nghttp2/nghttp2.h
27744do :
27745 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27746if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27747 cat >>confdefs.h <<_ACEOF
27748#define HAVE_NGHTTP2_NGHTTP2_H 1
27749_ACEOF
27750 curl_h2_msg="enabled (nghttp2)"
27751 NGHTTP2_ENABLED=1
27752
27753$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27754
27755 USE_NGHTTP2=1
27756
27757
27758fi
27759
27760done
27761
27762
27763else
27764 LDFLAGS=$CLEANLDFLAGS
27765 CPPFLAGS=$CLEANCPPFLAGS
27766 LIBS=$CLEANLIBS
27767
27768fi
27769
27770
27771 else
27772 if test X"$want_h2" != Xdefault; then
27773 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27774 fi
27775 fi
27776
27777fi
27778
27779
27780OPT_ZSH_FPATH=default
27781
27782# Check whether --with-zsh-functions-dir was given.
27783if test "${with_zsh_functions_dir+set}" = set; then :
27784 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27785fi
27786
27787case "$OPT_ZSH_FPATH" in
27788 no)
27789 ;;
27790 default|yes)
27791 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27792
27793 ;;
27794 *)
27795 ZSH_FUNCTIONS_DIR="$withval"
27796
27797 ;;
27798esac
27799
27800
27801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27802$as_echo_n "checking for ANSI C header files... " >&6; }
27803if ${ac_cv_header_stdc+:} false; then :
27804 $as_echo_n "(cached) " >&6
27805else
27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807/* end confdefs.h. */
27808#include <stdlib.h>
27809#include <stdarg.h>
27810#include <string.h>
27811#include <float.h>
27812
27813int main (void)
27814{
27815
27816 ;
27817 return 0;
27818}
27819_ACEOF
27820if ac_fn_c_try_compile "$LINENO"; then :
27821 ac_cv_header_stdc=yes
27822else
27823 ac_cv_header_stdc=no
27824fi
27825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27826
27827if test $ac_cv_header_stdc = yes; then
27828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27830/* end confdefs.h. */
27831#include <string.h>
27832
27833_ACEOF
27834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27835 $EGREP "memchr" >/dev/null 2>&1; then :
27836
27837else
27838 ac_cv_header_stdc=no
27839fi
27840rm -f conftest*
27841
27842fi
27843
27844if test $ac_cv_header_stdc = yes; then
27845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847/* end confdefs.h. */
27848#include <stdlib.h>
27849
27850_ACEOF
27851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27852 $EGREP "free" >/dev/null 2>&1; then :
27853
27854else
27855 ac_cv_header_stdc=no
27856fi
27857rm -f conftest*
27858
27859fi
27860
27861if test $ac_cv_header_stdc = yes; then
27862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27863 if test "$cross_compiling" = yes; then :
27864 :
27865else
27866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27867/* end confdefs.h. */
27868#include <ctype.h>
27869#include <stdlib.h>
27870#if ((' ' & 0x0FF) == 0x020)
27871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27873#else
27874# define ISLOWER(c) \
27875 (('a' <= (c) && (c) <= 'i') \
27876 || ('j' <= (c) && (c) <= 'r') \
27877 || ('s' <= (c) && (c) <= 'z'))
27878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27879#endif
27880
27881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27882int
27883main ()
27884{
27885 int i;
27886 for (i = 0; i < 256; i++)
27887 if (XOR (islower (i), ISLOWER (i))
27888 || toupper (i) != TOUPPER (i))
27889 return 2;
27890 return 0;
27891}
27892_ACEOF
27893if ac_fn_c_try_run "$LINENO"; then :
27894
27895else
27896 ac_cv_header_stdc=no
27897fi
27898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27899 conftest.$ac_objext conftest.beam conftest.$ac_ext
27900fi
27901
27902fi
27903fi
27904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27905$as_echo "$ac_cv_header_stdc" >&6; }
27906if test $ac_cv_header_stdc = yes; then
27907
27908$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27909
27910fi
27911
27912
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27915$as_echo_n "checking for malloc.h... " >&6; }
27916if ${curl_cv_header_malloc_h+:} false; then :
27917 $as_echo_n "(cached) " >&6
27918else
27919
27920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921/* end confdefs.h. */
27922
27923
27924#include <malloc.h>
27925
27926int main (void)
27927{
27928
27929 void *p = malloc(10);
27930 void *q = calloc(10,10);
27931 free(p);
27932 free(q);
27933
27934 ;
27935 return 0;
27936}
27937
27938_ACEOF
27939if ac_fn_c_try_compile "$LINENO"; then :
27940
27941 curl_cv_header_malloc_h="yes"
27942
27943else
27944
27945 curl_cv_header_malloc_h="no"
27946
27947fi
27948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949
27950fi
27951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27952$as_echo "$curl_cv_header_malloc_h" >&6; }
27953 if test "$curl_cv_header_malloc_h" = "yes"; then
27954
27955cat >>confdefs.h <<_ACEOF
27956#define HAVE_MALLOC_H 1
27957_ACEOF
27958
27959 #
27960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961/* end confdefs.h. */
27962
27963
27964#include <stdlib.h>
27965
27966int main (void)
27967{
27968
27969 void *p = malloc(10);
27970 void *q = calloc(10,10);
27971 free(p);
27972 free(q);
27973
27974 ;
27975 return 0;
27976}
27977
27978_ACEOF
27979if ac_fn_c_try_compile "$LINENO"; then :
27980
27981 curl_cv_need_header_malloc_h="no"
27982
27983else
27984
27985 curl_cv_need_header_malloc_h="yes"
27986
27987fi
27988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27989 #
27990 case "$curl_cv_need_header_malloc_h" in
27991 yes)
27992
27993cat >>confdefs.h <<_ACEOF
27994#define NEED_MALLOC_H 1
27995_ACEOF
27996
27997 ;;
27998 esac
27999 fi
28000
28001
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28003$as_echo_n "checking for memory.h... " >&6; }
28004if ${curl_cv_header_memory_h+:} false; then :
28005 $as_echo_n "(cached) " >&6
28006else
28007
28008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28009/* end confdefs.h. */
28010
28011
28012#include <memory.h>
28013
28014int main (void)
28015{
28016
28017 void *p = malloc(10);
28018 void *q = calloc(10,10);
28019 free(p);
28020 free(q);
28021
28022 ;
28023 return 0;
28024}
28025
28026_ACEOF
28027if ac_fn_c_try_compile "$LINENO"; then :
28028
28029 curl_cv_header_memory_h="yes"
28030
28031else
28032
28033 curl_cv_header_memory_h="no"
28034
28035fi
28036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037
28038fi
28039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28040$as_echo "$curl_cv_header_memory_h" >&6; }
28041 if test "$curl_cv_header_memory_h" = "yes"; then
28042
28043cat >>confdefs.h <<_ACEOF
28044#define HAVE_MEMORY_H 1
28045_ACEOF
28046
28047 #
28048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049/* end confdefs.h. */
28050
28051
28052#include <stdlib.h>
28053
28054int main (void)
28055{
28056
28057 void *p = malloc(10);
28058 void *q = calloc(10,10);
28059 free(p);
28060 free(q);
28061
28062 ;
28063 return 0;
28064}
28065
28066_ACEOF
28067if ac_fn_c_try_compile "$LINENO"; then :
28068
28069 curl_cv_need_header_memory_h="no"
28070
28071else
28072
28073 curl_cv_need_header_memory_h="yes"
28074
28075fi
28076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077 #
28078 case "$curl_cv_need_header_memory_h" in
28079 yes)
28080
28081cat >>confdefs.h <<_ACEOF
28082#define NEED_MEMORY_H 1
28083_ACEOF
28084
28085 ;;
28086 esac
28087 fi
28088
28089
28090for ac_header in sys/types.h \
28091 sys/time.h \
28092 sys/select.h \
28093 sys/socket.h \
28094 sys/ioctl.h \
28095 sys/uio.h \
28096 assert.h \
28097 unistd.h \
28098 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028099 arpa/inet.h \
28100 net/if.h \
28101 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028102 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028103 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028104 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028105 netinet/tcp.h \
28106 netdb.h \
28107 sys/sockio.h \
28108 sys/stat.h \
28109 sys/param.h \
28110 termios.h \
28111 termio.h \
28112 sgtty.h \
28113 fcntl.h \
28114 alloca.h \
28115 time.h \
28116 io.h \
28117 pwd.h \
28118 utime.h \
28119 sys/utime.h \
28120 sys/poll.h \
28121 poll.h \
28122 socket.h \
28123 sys/resource.h \
28124 libgen.h \
28125 locale.h \
28126 errno.h \
28127 stdbool.h \
28128 arpa/tftp.h \
28129 sys/filio.h \
28130 sys/wait.h \
28131 setjmp.h
28132do :
28133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28134ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28135#ifdef HAVE_SYS_TYPES_H
28136#include <sys/types.h>
28137#endif
28138#ifdef HAVE_SYS_TIME_H
28139#include <sys/time.h>
28140#endif
28141#ifdef HAVE_SYS_SELECT_H
28142#include <sys/select.h>
28143#endif
28144#ifdef HAVE_SYS_SOCKET_H
28145#include <sys/socket.h>
28146#endif
28147#ifdef HAVE_NETINET_IN_H
28148#include <netinet/in.h>
28149#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028150#ifdef HAVE_NETINET_IN6_H
28151#include <netinet/in6.h>
28152#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028153#ifdef HAVE_SYS_UN_H
28154#include <sys/un.h>
28155#endif
28156
28157
28158"
28159if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28160 cat >>confdefs.h <<_ACEOF
28161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28162_ACEOF
28163
28164fi
28165
28166done
28167
28168
28169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28170$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28171if ${ac_cv_c_const+:} false; then :
28172 $as_echo_n "(cached) " >&6
28173else
28174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28175/* end confdefs.h. */
28176
28177int main (void)
28178{
28179
28180#ifndef __cplusplus
28181 /* Ultrix mips cc rejects this sort of thing. */
28182 typedef int charset[2];
28183 const charset cs = { 0, 0 };
28184 /* SunOS 4.1.1 cc rejects this. */
28185 char const *const *pcpcc;
28186 char **ppc;
28187 /* NEC SVR4.0.2 mips cc rejects this. */
28188 struct point {int x, y;};
28189 static struct point const zero = {0,0};
28190 /* AIX XL C 1.02.0.0 rejects this.
28191 It does not let you subtract one const X* pointer from another in
28192 an arm of an if-expression whose if-part is not a constant
28193 expression */
28194 const char *g = "string";
28195 pcpcc = &g + (g ? g-g : 0);
28196 /* HPUX 7.0 cc rejects these. */
28197 ++pcpcc;
28198 ppc = (char**) pcpcc;
28199 pcpcc = (char const *const *) ppc;
28200 { /* SCO 3.2v4 cc rejects this sort of thing. */
28201 char tx;
28202 char *t = &tx;
28203 char const *s = 0 ? (char *) 0 : (char const *) 0;
28204
28205 *t++ = 0;
28206 if (s) return 0;
28207 }
28208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28209 int x[] = {25, 17};
28210 const int *foo = &x[0];
28211 ++foo;
28212 }
28213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28214 typedef const int *iptr;
28215 iptr p = 0;
28216 ++p;
28217 }
28218 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28220 struct s { int j; const int *ap[3]; } bx;
28221 struct s *b = &bx; b->j = 5;
28222 }
28223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28224 const int foo = 10;
28225 if (!foo) return 0;
28226 }
28227 return !cs[0] && !zero.x;
28228#endif
28229
28230 ;
28231 return 0;
28232}
28233_ACEOF
28234if ac_fn_c_try_compile "$LINENO"; then :
28235 ac_cv_c_const=yes
28236else
28237 ac_cv_c_const=no
28238fi
28239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240fi
28241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28242$as_echo "$ac_cv_c_const" >&6; }
28243if test $ac_cv_c_const = no; then
28244
28245$as_echo "#define const /**/" >>confdefs.h
28246
28247fi
28248
28249
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28251$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28252if ${curl_cv_variadic_macros_c99+:} false; then :
28253 $as_echo_n "(cached) " >&6
28254else
28255
28256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28257/* end confdefs.h. */
28258
28259
28260#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28261#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28262 int fun3(int arg1, int arg2, int arg3);
28263 int fun2(int arg1, int arg2);
28264 int fun3(int arg1, int arg2, int arg3)
28265 { return arg1 + arg2 + arg3; }
28266 int fun2(int arg1, int arg2)
28267 { return arg1 + arg2; }
28268
28269int main (void)
28270{
28271
28272 int res3 = c99_vmacro3(1, 2, 3);
28273 int res2 = c99_vmacro2(1, 2);
28274
28275 ;
28276 return 0;
28277}
28278
28279_ACEOF
28280if ac_fn_c_try_compile "$LINENO"; then :
28281
28282 curl_cv_variadic_macros_c99="yes"
28283
28284else
28285
28286 curl_cv_variadic_macros_c99="no"
28287
28288fi
28289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290
28291fi
28292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28293$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28294 case "$curl_cv_variadic_macros_c99" in
28295 yes)
28296
28297cat >>confdefs.h <<_ACEOF
28298#define HAVE_VARIADIC_MACROS_C99 1
28299_ACEOF
28300
28301 ;;
28302 esac
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28304$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28305if ${curl_cv_variadic_macros_gcc+:} false; then :
28306 $as_echo_n "(cached) " >&6
28307else
28308
28309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28310/* end confdefs.h. */
28311
28312
28313#define gcc_vmacro3(first, args...) fun3(first, args)
28314#define gcc_vmacro2(first, args...) fun2(first, args)
28315 int fun3(int arg1, int arg2, int arg3);
28316 int fun2(int arg1, int arg2);
28317 int fun3(int arg1, int arg2, int arg3)
28318 { return arg1 + arg2 + arg3; }
28319 int fun2(int arg1, int arg2)
28320 { return arg1 + arg2; }
28321
28322int main (void)
28323{
28324
28325 int res3 = gcc_vmacro3(1, 2, 3);
28326 int res2 = gcc_vmacro2(1, 2);
28327
28328 ;
28329 return 0;
28330}
28331
28332_ACEOF
28333if ac_fn_c_try_compile "$LINENO"; then :
28334
28335 curl_cv_variadic_macros_gcc="yes"
28336
28337else
28338
28339 curl_cv_variadic_macros_gcc="no"
28340
28341fi
28342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28343
28344fi
28345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28346$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28347 case "$curl_cv_variadic_macros_gcc" in
28348 yes)
28349
28350cat >>confdefs.h <<_ACEOF
28351#define HAVE_VARIADIC_MACROS_GCC 1
28352_ACEOF
28353
28354 ;;
28355 esac
28356
28357ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28358if test "x$ac_cv_type_size_t" = xyes; then :
28359
28360else
28361
28362cat >>confdefs.h <<_ACEOF
28363#define size_t unsigned int
28364_ACEOF
28365
28366fi
28367
28368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28369$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28370if ${ac_cv_header_time+:} false; then :
28371 $as_echo_n "(cached) " >&6
28372else
28373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28374/* end confdefs.h. */
28375#include <sys/types.h>
28376#include <sys/time.h>
28377#include <time.h>
28378
28379int main (void)
28380{
28381if ((struct tm *) 0)
28382return 0;
28383 ;
28384 return 0;
28385}
28386_ACEOF
28387if ac_fn_c_try_compile "$LINENO"; then :
28388 ac_cv_header_time=yes
28389else
28390 ac_cv_header_time=no
28391fi
28392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28393fi
28394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28395$as_echo "$ac_cv_header_time" >&6; }
28396if test $ac_cv_header_time = yes; then
28397
28398$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28399
28400fi
28401
28402
28403 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28404do :
28405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28408 cat >>confdefs.h <<_ACEOF
28409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28410_ACEOF
28411
28412fi
28413
28414done
28415
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28417$as_echo_n "checking for struct timeval... " >&6; }
28418if ${curl_cv_struct_timeval+:} false; then :
28419 $as_echo_n "(cached) " >&6
28420else
28421
28422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28423/* end confdefs.h. */
28424
28425
28426#undef inline
28427#ifdef HAVE_WINDOWS_H
28428#ifndef WIN32_LEAN_AND_MEAN
28429#define WIN32_LEAN_AND_MEAN
28430#endif
28431#include <windows.h>
28432#ifdef HAVE_WINSOCK2_H
28433#include <winsock2.h>
28434#else
28435#ifdef HAVE_WINSOCK_H
28436#include <winsock.h>
28437#endif
28438#endif
28439#endif
28440#ifdef HAVE_SYS_TYPES_H
28441#include <sys/types.h>
28442#endif
28443#ifdef HAVE_SYS_TIME_H
28444#include <sys/time.h>
28445#ifdef TIME_WITH_SYS_TIME
28446#include <time.h>
28447#endif
28448#else
28449#ifdef HAVE_TIME_H
28450#include <time.h>
28451#endif
28452#endif
28453#ifdef HAVE_SYS_SOCKET_H
28454#include <sys/socket.h>
28455#endif
28456
28457int main (void)
28458{
28459
28460 struct timeval ts;
28461 ts.tv_sec = 0;
28462 ts.tv_usec = 0;
28463
28464 ;
28465 return 0;
28466}
28467
28468_ACEOF
28469if ac_fn_c_try_compile "$LINENO"; then :
28470
28471 curl_cv_struct_timeval="yes"
28472
28473else
28474
28475 curl_cv_struct_timeval="no"
28476
28477fi
28478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28479
28480fi
28481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28482$as_echo "$curl_cv_struct_timeval" >&6; }
28483 case "$curl_cv_struct_timeval" in
28484 yes)
28485
28486cat >>confdefs.h <<_ACEOF
28487#define HAVE_STRUCT_TIMEVAL 1
28488_ACEOF
28489
28490 ;;
28491 esac
28492
28493
28494
28495 if test "x$cross_compiling" != xyes; then
28496
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28498$as_echo_n "checking run-time libs availability... " >&6; }
28499 if test "$cross_compiling" = yes; then :
28500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28502as_fn_error $? "cannot run test program while cross compiling
28503See \`config.log' for more details" "$LINENO" 5; }
28504else
28505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506/* end confdefs.h. */
28507
28508main()
28509{
28510 return 0;
28511}
28512
28513_ACEOF
28514if ac_fn_c_try_run "$LINENO"; then :
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28516$as_echo "fine" >&6; }
28517else
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28519$as_echo "failed" >&6; }
28520 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28521
28522fi
28523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28524 conftest.$ac_objext conftest.beam conftest.$ac_ext
28525fi
28526
28527
28528 fi
28529
28530
28531# The cast to long int works around a bug in the HP C Compiler
28532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28534# This bug is HP SR number 8606223364.
28535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28536$as_echo_n "checking size of size_t... " >&6; }
28537if ${ac_cv_sizeof_size_t+:} false; then :
28538 $as_echo_n "(cached) " >&6
28539else
28540 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28541
28542else
28543 if test "$ac_cv_type_size_t" = yes; then
28544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28546as_fn_error 77 "cannot compute sizeof (size_t)
28547See \`config.log' for more details" "$LINENO" 5; }
28548 else
28549 ac_cv_sizeof_size_t=0
28550 fi
28551fi
28552
28553fi
28554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28555$as_echo "$ac_cv_sizeof_size_t" >&6; }
28556
28557
28558
28559cat >>confdefs.h <<_ACEOF
28560#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28561_ACEOF
28562
28563
28564# The cast to long int works around a bug in the HP C Compiler
28565# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28566# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28567# This bug is HP SR number 8606223364.
28568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28569$as_echo_n "checking size of long... " >&6; }
28570if ${ac_cv_sizeof_long+:} false; then :
28571 $as_echo_n "(cached) " >&6
28572else
28573 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28574
28575else
28576 if test "$ac_cv_type_long" = yes; then
28577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28579as_fn_error 77 "cannot compute sizeof (long)
28580See \`config.log' for more details" "$LINENO" 5; }
28581 else
28582 ac_cv_sizeof_long=0
28583 fi
28584fi
28585
28586fi
28587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28588$as_echo "$ac_cv_sizeof_long" >&6; }
28589
28590
28591
28592cat >>confdefs.h <<_ACEOF
28593#define SIZEOF_LONG $ac_cv_sizeof_long
28594_ACEOF
28595
28596
28597# The cast to long int works around a bug in the HP C Compiler
28598# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28599# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28600# This bug is HP SR number 8606223364.
28601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28602$as_echo_n "checking size of int... " >&6; }
28603if ${ac_cv_sizeof_int+:} false; then :
28604 $as_echo_n "(cached) " >&6
28605else
28606 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28607
28608else
28609 if test "$ac_cv_type_int" = yes; then
28610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28612as_fn_error 77 "cannot compute sizeof (int)
28613See \`config.log' for more details" "$LINENO" 5; }
28614 else
28615 ac_cv_sizeof_int=0
28616 fi
28617fi
28618
28619fi
28620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28621$as_echo "$ac_cv_sizeof_int" >&6; }
28622
28623
28624
28625cat >>confdefs.h <<_ACEOF
28626#define SIZEOF_INT $ac_cv_sizeof_int
28627_ACEOF
28628
28629
28630# The cast to long int works around a bug in the HP C Compiler
28631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28633# This bug is HP SR number 8606223364.
28634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28635$as_echo_n "checking size of short... " >&6; }
28636if ${ac_cv_sizeof_short+:} false; then :
28637 $as_echo_n "(cached) " >&6
28638else
28639 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28640
28641else
28642 if test "$ac_cv_type_short" = yes; then
28643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28645as_fn_error 77 "cannot compute sizeof (short)
28646See \`config.log' for more details" "$LINENO" 5; }
28647 else
28648 ac_cv_sizeof_short=0
28649 fi
28650fi
28651
28652fi
28653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28654$as_echo "$ac_cv_sizeof_short" >&6; }
28655
28656
28657
28658cat >>confdefs.h <<_ACEOF
28659#define SIZEOF_SHORT $ac_cv_sizeof_short
28660_ACEOF
28661
28662
Elliott Hughes82be86d2017-09-20 17:00:17 -070028663# The cast to long int works around a bug in the HP C Compiler
28664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28666# This bug is HP SR number 8606223364.
28667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28668$as_echo_n "checking size of time_t... " >&6; }
28669if ${ac_cv_sizeof_time_t+:} false; then :
28670 $as_echo_n "(cached) " >&6
28671else
28672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28673
28674else
28675 if test "$ac_cv_type_time_t" = yes; then
28676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28678as_fn_error 77 "cannot compute sizeof (time_t)
28679See \`config.log' for more details" "$LINENO" 5; }
28680 else
28681 ac_cv_sizeof_time_t=0
28682 fi
28683fi
28684
28685fi
28686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28687$as_echo "$ac_cv_sizeof_time_t" >&6; }
28688
28689
28690
28691cat >>confdefs.h <<_ACEOF
28692#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28693_ACEOF
28694
28695
28696# The cast to long int works around a bug in the HP C Compiler
28697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28699# This bug is HP SR number 8606223364.
28700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28701$as_echo_n "checking size of off_t... " >&6; }
28702if ${ac_cv_sizeof_off_t+:} false; then :
28703 $as_echo_n "(cached) " >&6
28704else
28705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28706
28707else
28708 if test "$ac_cv_type_off_t" = yes; then
28709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28711as_fn_error 77 "cannot compute sizeof (off_t)
28712See \`config.log' for more details" "$LINENO" 5; }
28713 else
28714 ac_cv_sizeof_off_t=0
28715 fi
28716fi
28717
28718fi
28719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28720$as_echo "$ac_cv_sizeof_off_t" >&6; }
28721
28722
28723
28724cat >>confdefs.h <<_ACEOF
28725#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28726_ACEOF
28727
28728
28729
Alex Deymo486467e2017-12-19 19:04:07 +010028730o=$CPPFLAGS
28731CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28732# The cast to long int works around a bug in the HP C Compiler
28733# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28734# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28735# This bug is HP SR number 8606223364.
28736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28737$as_echo_n "checking size of curl_off_t... " >&6; }
28738if ${ac_cv_sizeof_curl_off_t+:} false; then :
28739 $as_echo_n "(cached) " >&6
28740else
28741 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28742#include <curl/system.h>
28743
28744"; then :
28745
28746else
28747 if test "$ac_cv_type_curl_off_t" = yes; then
28748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28750as_fn_error 77 "cannot compute sizeof (curl_off_t)
28751See \`config.log' for more details" "$LINENO" 5; }
28752 else
28753 ac_cv_sizeof_curl_off_t=0
28754 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070028755fi
28756
Alex Deymo486467e2017-12-19 19:04:07 +010028757fi
28758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28759$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28760
28761
28762
28763cat >>confdefs.h <<_ACEOF
28764#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28765_ACEOF
28766
28767
28768CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028769
28770ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28771if test "x$ac_cv_type_long_long" = xyes; then :
28772
28773$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28774
28775 longlong="yes"
28776
28777fi
28778
28779
28780if test "xyes" = "x$longlong"; then
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28782$as_echo_n "checking if numberLL works... " >&6; }
28783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784/* end confdefs.h. */
28785
28786
28787
28788int main (void)
28789{
28790
28791 long long val = 1000LL;
28792
28793 ;
28794 return 0;
28795}
28796
28797_ACEOF
28798if ac_fn_c_try_compile "$LINENO"; then :
28799
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28801$as_echo "yes" >&6; }
28802
28803$as_echo "#define HAVE_LL 1" >>confdefs.h
28804
28805
28806else
28807
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28809$as_echo "no" >&6; }
28810
28811fi
28812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28813fi
28814
28815
28816# check for ssize_t
28817ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28818if test "x$ac_cv_type_ssize_t" = xyes; then :
28819
28820else
28821
28822$as_echo "#define ssize_t int" >>confdefs.h
28823
28824fi
28825
28826
28827# check for bool type
28828ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28829#ifdef HAVE_SYS_TYPES_H
28830#include <sys/types.h>
28831#endif
28832#ifdef HAVE_STDBOOL_H
28833#include <stdbool.h>
28834#endif
28835
28836"
28837if test "x$ac_cv_type_bool" = xyes; then :
28838
28839
28840$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28841
28842
28843fi
28844
28845
28846
28847curl_includes_ws2tcpip="\
28848/* includes start */
28849#ifdef HAVE_WINDOWS_H
28850# ifndef WIN32_LEAN_AND_MEAN
28851# define WIN32_LEAN_AND_MEAN
28852# endif
28853# include <windows.h>
28854# ifdef HAVE_WINSOCK2_H
28855# include <winsock2.h>
28856# ifdef HAVE_WS2TCPIP_H
28857# include <ws2tcpip.h>
28858# endif
28859# endif
28860#endif
28861/* includes end */"
28862
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28864$as_echo_n "checking for windows.h... " >&6; }
28865if ${curl_cv_header_windows_h+:} false; then :
28866 $as_echo_n "(cached) " >&6
28867else
28868
28869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28870/* end confdefs.h. */
28871
28872
28873#undef inline
28874#ifndef WIN32_LEAN_AND_MEAN
28875#define WIN32_LEAN_AND_MEAN
28876#endif
28877#include <windows.h>
28878
28879int main (void)
28880{
28881
28882#if defined(__CYGWIN__) || defined(__CEGCC__)
28883 HAVE_WINDOWS_H shall not be defined.
28884#else
28885 int dummy=2*WINVER;
28886#endif
28887
28888 ;
28889 return 0;
28890}
28891
28892_ACEOF
28893if ac_fn_c_try_compile "$LINENO"; then :
28894
28895 curl_cv_header_windows_h="yes"
28896
28897else
28898
28899 curl_cv_header_windows_h="no"
28900
28901fi
28902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28903
28904fi
28905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28906$as_echo "$curl_cv_header_windows_h" >&6; }
28907 case "$curl_cv_header_windows_h" in
28908 yes)
28909
28910cat >>confdefs.h <<_ACEOF
28911#define HAVE_WINDOWS_H 1
28912_ACEOF
28913
28914 ;;
28915 esac
28916
28917
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28919$as_echo_n "checking for winsock2.h... " >&6; }
28920if ${curl_cv_header_winsock2_h+:} false; then :
28921 $as_echo_n "(cached) " >&6
28922else
28923
28924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28925/* end confdefs.h. */
28926
28927
28928#undef inline
28929#ifndef WIN32_LEAN_AND_MEAN
28930#define WIN32_LEAN_AND_MEAN
28931#endif
28932#include <windows.h>
28933#include <winsock2.h>
28934
28935int main (void)
28936{
28937
28938#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28939 HAVE_WINSOCK2_H shall not be defined.
28940#else
28941 int dummy=2*IPPROTO_ESP;
28942#endif
28943
28944 ;
28945 return 0;
28946}
28947
28948_ACEOF
28949if ac_fn_c_try_compile "$LINENO"; then :
28950
28951 curl_cv_header_winsock2_h="yes"
28952
28953else
28954
28955 curl_cv_header_winsock2_h="no"
28956
28957fi
28958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28959
28960fi
28961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28962$as_echo "$curl_cv_header_winsock2_h" >&6; }
28963 case "$curl_cv_header_winsock2_h" in
28964 yes)
28965
28966cat >>confdefs.h <<_ACEOF
28967#define HAVE_WINSOCK2_H 1
28968_ACEOF
28969
28970 ;;
28971 esac
28972
28973
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28975$as_echo_n "checking for ws2tcpip.h... " >&6; }
28976if ${curl_cv_header_ws2tcpip_h+:} false; then :
28977 $as_echo_n "(cached) " >&6
28978else
28979
28980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981/* end confdefs.h. */
28982
28983
28984#undef inline
28985#ifndef WIN32_LEAN_AND_MEAN
28986#define WIN32_LEAN_AND_MEAN
28987#endif
28988#include <windows.h>
28989#include <winsock2.h>
28990#include <ws2tcpip.h>
28991
28992int main (void)
28993{
28994
28995#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28996 HAVE_WS2TCPIP_H shall not be defined.
28997#else
28998 int dummy=2*IP_PKTINFO;
28999#endif
29000
29001 ;
29002 return 0;
29003}
29004
29005_ACEOF
29006if ac_fn_c_try_compile "$LINENO"; then :
29007
29008 curl_cv_header_ws2tcpip_h="yes"
29009
29010else
29011
29012 curl_cv_header_ws2tcpip_h="no"
29013
29014fi
29015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29016
29017fi
29018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29019$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29020 case "$curl_cv_header_ws2tcpip_h" in
29021 yes)
29022
29023cat >>confdefs.h <<_ACEOF
29024#define HAVE_WS2TCPIP_H 1
29025_ACEOF
29026
29027 ;;
29028 esac
29029
29030
29031
29032curl_includes_sys_socket="\
29033/* includes start */
29034#ifdef HAVE_SYS_TYPES_H
29035# include <sys/types.h>
29036#endif
29037#ifdef HAVE_SYS_SOCKET_H
29038# include <sys/socket.h>
29039#endif
29040/* includes end */"
29041 for ac_header in sys/types.h sys/socket.h
29042do :
29043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29044ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29045"
29046if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29047 cat >>confdefs.h <<_ACEOF
29048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29049_ACEOF
29050
29051fi
29052
29053done
29054
29055
29056
29057curl_preprocess_callconv="\
29058/* preprocess start */
29059#ifdef HAVE_WINDOWS_H
29060# define FUNCALLCONV __stdcall
29061#else
29062# define FUNCALLCONV
29063#endif
29064/* preprocess end */"
29065
29066
29067 #
29068 #
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29070$as_echo_n "checking for curl_socklen_t data type... " >&6; }
29071 curl_typeof_curl_socklen_t="unknown"
29072 for arg1 in int SOCKET; do
29073 for arg2 in 'struct sockaddr' void; do
29074 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29075 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29077/* end confdefs.h. */
29078
29079
29080 $curl_includes_ws2tcpip
29081 $curl_includes_sys_socket
29082 $curl_preprocess_callconv
29083 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29084
29085int main (void)
29086{
29087
29088 $t *lenptr = 0;
29089 if(0 != getpeername(0, 0, lenptr))
29090 return 1;
29091
29092 ;
29093 return 0;
29094}
29095
29096_ACEOF
29097if ac_fn_c_try_compile "$LINENO"; then :
29098
29099 curl_typeof_curl_socklen_t="$t"
29100
29101fi
29102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29103 fi
29104 done
29105 done
29106 done
29107 for t in socklen_t int; do
29108 if test "$curl_typeof_curl_socklen_t" = "void"; then
29109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29110/* end confdefs.h. */
29111
29112
29113 $curl_includes_sys_socket
29114 typedef $t curl_socklen_t;
29115
29116int main (void)
29117{
29118
29119 curl_socklen_t dummy;
29120
29121 ;
29122 return 0;
29123}
29124
29125_ACEOF
29126if ac_fn_c_try_compile "$LINENO"; then :
29127
29128 curl_typeof_curl_socklen_t="$t"
29129
29130fi
29131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29132 fi
29133 done
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29135$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29136 if test "$curl_typeof_curl_socklen_t" = "void" ||
29137 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29138 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29139 fi
29140 #
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29142$as_echo_n "checking size of curl_socklen_t... " >&6; }
29143 curl_sizeof_curl_socklen_t="unknown"
29144 curl_pull_headers_socklen_t="unknown"
29145 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29146 tst_pull_header_checks='none ws2tcpip'
29147 tst_size_checks='4'
29148 else
29149 tst_pull_header_checks='none systypes syssocket'
29150 tst_size_checks='4 8 2'
29151 fi
29152 for tst_size in $tst_size_checks; do
29153 for tst_pull_headers in $tst_pull_header_checks; do
29154 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29155 case $tst_pull_headers in
29156 ws2tcpip)
29157 tmp_includes="$curl_includes_ws2tcpip"
29158 ;;
29159 systypes)
29160 tmp_includes="$curl_includes_sys_types"
29161 ;;
29162 syssocket)
29163 tmp_includes="$curl_includes_sys_socket"
29164 ;;
29165 *)
29166 tmp_includes=""
29167 ;;
29168 esac
29169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170/* end confdefs.h. */
29171
29172
29173 $tmp_includes
29174 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29175 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29176
29177int main (void)
29178{
29179
29180 curl_socklen_t dummy;
29181
29182 ;
29183 return 0;
29184}
29185
29186_ACEOF
29187if ac_fn_c_try_compile "$LINENO"; then :
29188
29189 curl_sizeof_curl_socklen_t="$tst_size"
29190 curl_pull_headers_socklen_t="$tst_pull_headers"
29191
29192fi
29193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29194 fi
29195 done
29196 done
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29198$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29199 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29200 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29201 fi
29202 #
29203 case $curl_pull_headers_socklen_t in
29204 ws2tcpip)
29205
29206cat >>confdefs.h <<_EOF
29207#define CURL_PULL_WS2TCPIP_H 1
29208_EOF
29209
29210 ;;
29211 systypes)
29212
29213cat >>confdefs.h <<_EOF
29214#define CURL_PULL_SYS_TYPES_H 1
29215_EOF
29216
29217 ;;
29218 syssocket)
29219
29220cat >>confdefs.h <<_EOF
29221#define CURL_PULL_SYS_TYPES_H 1
29222_EOF
29223
29224
29225cat >>confdefs.h <<_EOF
29226#define CURL_PULL_SYS_SOCKET_H 1
29227_EOF
29228
29229 ;;
29230 esac
29231
29232cat >>confdefs.h <<_EOF
29233#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29234_EOF
29235
29236
29237cat >>confdefs.h <<_EOF
29238#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29239_EOF
29240
29241
29242
29243
29244curl_includes_poll="\
29245/* includes start */
29246#ifdef HAVE_SYS_TYPES_H
29247# include <sys/types.h>
29248#endif
29249#ifdef HAVE_POLL_H
29250# include <poll.h>
29251#endif
29252#ifdef HAVE_SYS_POLL_H
29253# include <sys/poll.h>
29254#endif
29255/* includes end */"
29256 for ac_header in sys/types.h poll.h sys/poll.h
29257do :
29258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29259ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29260"
29261if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29262 cat >>confdefs.h <<_ACEOF
29263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29264_ACEOF
29265
29266fi
29267
29268done
29269
29270
29271
29272 #
29273 tst_poll_events_macro_defined="unknown"
29274 #
29275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29276/* end confdefs.h. */
29277
29278
29279 $curl_includes_poll
29280
29281int main (void)
29282{
29283
29284#if defined(events) || defined(revents)
29285 return 0;
29286#else
29287 force compilation error
29288#endif
29289
29290 ;
29291 return 0;
29292}
29293
29294_ACEOF
29295if ac_fn_c_try_compile "$LINENO"; then :
29296
29297 tst_poll_events_macro_defined="yes"
29298
29299else
29300
29301 tst_poll_events_macro_defined="no"
29302
29303fi
29304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29305 #
29306 if test "$tst_poll_events_macro_defined" = "yes"; then
29307 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29308
29309cat >>confdefs.h <<_EOF
29310#define CURL_PULL_SYS_POLL_H 1
29311_EOF
29312
29313 fi
29314 fi
29315 #
29316
29317
29318
29319 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
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#else
29334#ifdef HAVE_SYS_TYPES_H
29335#include <sys/types.h>
29336#endif
29337#ifdef HAVE_SYS_SOCKET_H
29338#include <sys/socket.h>
29339#endif
29340#ifdef HAVE_NETINET_IN_H
29341#include <netinet/in.h>
29342#endif
29343#ifdef HAVE_ARPA_INET_H
29344#include <arpa/inet.h>
29345#endif
29346#endif
29347
29348"
29349if test "x$ac_cv_type_in_addr_t" = xyes; then :
29350
29351else
29352
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29354$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29355if ${curl_cv_in_addr_t_equiv+:} false; then :
29356 $as_echo_n "(cached) " >&6
29357else
29358
29359 curl_cv_in_addr_t_equiv="unknown"
29360 for t in "unsigned long" int size_t unsigned long; do
29361 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29363/* end confdefs.h. */
29364
29365
29366#undef inline
29367#ifdef HAVE_WINDOWS_H
29368#ifndef WIN32_LEAN_AND_MEAN
29369#define WIN32_LEAN_AND_MEAN
29370#endif
29371#include <windows.h>
29372#ifdef HAVE_WINSOCK2_H
29373#include <winsock2.h>
29374#else
29375#ifdef HAVE_WINSOCK_H
29376#include <winsock.h>
29377#endif
29378#endif
29379#else
29380#ifdef HAVE_SYS_TYPES_H
29381#include <sys/types.h>
29382#endif
29383#ifdef HAVE_SYS_SOCKET_H
29384#include <sys/socket.h>
29385#endif
29386#ifdef HAVE_NETINET_IN_H
29387#include <netinet/in.h>
29388#endif
29389#ifdef HAVE_ARPA_INET_H
29390#include <arpa/inet.h>
29391#endif
29392#endif
29393
29394int main (void)
29395{
29396
29397 $t data = inet_addr ("1.2.3.4");
29398
29399 ;
29400 return 0;
29401}
29402
29403_ACEOF
29404if ac_fn_c_try_link "$LINENO"; then :
29405
29406 curl_cv_in_addr_t_equiv="$t"
29407
29408fi
29409rm -f core conftest.err conftest.$ac_objext \
29410 conftest$ac_exeext conftest.$ac_ext
29411 fi
29412 done
29413
29414fi
29415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29416$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29417 case "$curl_cv_in_addr_t_equiv" in
29418 unknown)
29419 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29420 ;;
29421 *)
29422
29423cat >>confdefs.h <<_ACEOF
29424#define in_addr_t $curl_cv_in_addr_t_equiv
29425_ACEOF
29426
29427 ;;
29428 esac
29429
29430fi
29431
29432
29433
29434
29435 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29436#undef inline
29437#ifdef HAVE_WINDOWS_H
29438#ifndef WIN32_LEAN_AND_MEAN
29439#define WIN32_LEAN_AND_MEAN
29440#endif
29441#include <windows.h>
29442#ifdef HAVE_WINSOCK2_H
29443#include <winsock2.h>
29444#endif
29445#else
29446#ifdef HAVE_SYS_TYPES_H
29447#include <sys/types.h>
29448#endif
29449#ifdef HAVE_SYS_SOCKET_H
29450#include <sys/socket.h>
29451#endif
29452#ifdef HAVE_NETINET_IN_H
29453#include <netinet/in.h>
29454#endif
29455#ifdef HAVE_ARPA_INET_H
29456#include <arpa/inet.h>
29457#endif
29458#endif
29459
29460"
29461if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29462
29463$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29464
29465fi
29466
29467
29468
29469
29470 for ac_header in signal.h
29471do :
29472 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29473if test "x$ac_cv_header_signal_h" = xyes; then :
29474 cat >>confdefs.h <<_ACEOF
29475#define HAVE_SIGNAL_H 1
29476_ACEOF
29477
29478fi
29479
29480done
29481
29482 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29483#ifdef HAVE_SIGNAL_H
29484#include <signal.h>
29485#endif
29486
29487"
29488if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29489
29490
29491$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29492
29493
29494fi
29495
29496 case "$ac_cv_type_sig_atomic_t" in
29497 yes)
29498 #
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29500$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29502/* end confdefs.h. */
29503
29504
29505#ifdef HAVE_SIGNAL_H
29506#include <signal.h>
29507#endif
29508
29509int main (void)
29510{
29511
29512 static volatile sig_atomic_t dummy = 0;
29513
29514 ;
29515 return 0;
29516}
29517
29518_ACEOF
29519if ac_fn_c_try_link "$LINENO"; then :
29520
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29522$as_echo "no" >&6; }
29523 curl_cv_sig_atomic_t_volatile="no"
29524
29525else
29526
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29528$as_echo "yes" >&6; }
29529 curl_cv_sig_atomic_t_volatile="yes"
29530
29531fi
29532rm -f core conftest.err conftest.$ac_objext \
29533 conftest$ac_exeext conftest.$ac_ext
29534 #
29535 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29536
29537$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29538
29539 fi
29540 ;;
29541 esac
29542
29543
29544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29545$as_echo_n "checking return type of signal handlers... " >&6; }
29546if ${ac_cv_type_signal+:} false; then :
29547 $as_echo_n "(cached) " >&6
29548else
29549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29550/* end confdefs.h. */
29551#include <sys/types.h>
29552#include <signal.h>
29553
29554int main (void)
29555{
29556return *(signal (0, 0)) (0) == 1;
29557 ;
29558 return 0;
29559}
29560_ACEOF
29561if ac_fn_c_try_compile "$LINENO"; then :
29562 ac_cv_type_signal=int
29563else
29564 ac_cv_type_signal=void
29565fi
29566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567fi
29568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29569$as_echo "$ac_cv_type_signal" >&6; }
29570
29571cat >>confdefs.h <<_ACEOF
29572#define RETSIGTYPE $ac_cv_type_signal
29573_ACEOF
29574
29575
29576
29577
29578 for ac_header in sys/select.h sys/socket.h
29579do :
29580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29581ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29583 cat >>confdefs.h <<_ACEOF
29584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29585_ACEOF
29586
29587fi
29588
29589done
29590
29591 #
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29593$as_echo_n "checking for select... " >&6; }
29594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29595/* end confdefs.h. */
29596
29597
29598#undef inline
29599#ifdef HAVE_WINDOWS_H
29600#ifndef WIN32_LEAN_AND_MEAN
29601#define WIN32_LEAN_AND_MEAN
29602#endif
29603#include <windows.h>
29604#ifdef HAVE_WINSOCK2_H
29605#include <winsock2.h>
29606#else
29607#ifdef HAVE_WINSOCK_H
29608#include <winsock.h>
29609#endif
29610#endif
29611#endif
29612#ifdef HAVE_SYS_TYPES_H
29613#include <sys/types.h>
29614#endif
29615#ifdef HAVE_SYS_TIME_H
29616#include <sys/time.h>
29617#ifdef TIME_WITH_SYS_TIME
29618#include <time.h>
29619#endif
29620#else
29621#ifdef HAVE_TIME_H
29622#include <time.h>
29623#endif
29624#endif
29625#ifndef HAVE_WINDOWS_H
29626#ifdef HAVE_SYS_SELECT_H
29627#include <sys/select.h>
29628#endif
29629#ifdef HAVE_SYS_SOCKET_H
29630#include <sys/socket.h>
29631#endif
29632#endif
29633
29634int main (void)
29635{
29636
29637 select(0, 0, 0, 0, 0);
29638
29639 ;
29640 return 0;
29641}
29642
29643_ACEOF
29644if ac_fn_c_try_link "$LINENO"; then :
29645
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29647$as_echo "yes" >&6; }
29648 curl_cv_select="yes"
29649
29650else
29651
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29653$as_echo "no" >&6; }
29654 curl_cv_select="no"
29655
29656fi
29657rm -f core conftest.err conftest.$ac_objext \
29658 conftest$ac_exeext conftest.$ac_ext
29659 #
29660 if test "$curl_cv_select" = "yes"; then
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29662$as_echo_n "checking types of args and return type for select... " >&6; }
29663if ${curl_cv_func_select_args+:} false; then :
29664 $as_echo_n "(cached) " >&6
29665else
29666
29667 curl_cv_func_select_args="unknown"
29668 for sel_retv in 'int' 'ssize_t'; do
29669 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29670 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29671 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29672 if test "$curl_cv_func_select_args" = "unknown"; then
29673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29674/* end confdefs.h. */
29675
29676
29677#undef inline
29678#ifdef HAVE_WINDOWS_H
29679#ifndef WIN32_LEAN_AND_MEAN
29680#define WIN32_LEAN_AND_MEAN
29681#endif
29682#include <windows.h>
29683#ifdef HAVE_WINSOCK2_H
29684#include <winsock2.h>
29685#else
29686#ifdef HAVE_WINSOCK_H
29687#include <winsock.h>
29688#endif
29689#endif
29690#define SELECTCALLCONV PASCAL
29691#endif
29692#ifdef HAVE_SYS_TYPES_H
29693#include <sys/types.h>
29694#endif
29695#ifdef HAVE_SYS_TIME_H
29696#include <sys/time.h>
29697#ifdef TIME_WITH_SYS_TIME
29698#include <time.h>
29699#endif
29700#else
29701#ifdef HAVE_TIME_H
29702#include <time.h>
29703#endif
29704#endif
29705#ifndef HAVE_WINDOWS_H
29706#ifdef HAVE_SYS_SELECT_H
29707#include <sys/select.h>
29708#endif
29709#ifdef HAVE_SYS_SOCKET_H
29710#include <sys/socket.h>
29711#endif
29712#define SELECTCALLCONV
29713#endif
29714#ifndef HAVE_STRUCT_TIMEVAL
29715 struct timeval {
29716 long tv_sec;
29717 long tv_usec;
29718 };
29719#endif
29720 extern $sel_retv SELECTCALLCONV
29721#ifdef __ANDROID__
29722__attribute__((overloadable))
29723#endif
29724 select($sel_arg1,
29725 $sel_arg234,
29726 $sel_arg234,
29727 $sel_arg234,
29728 $sel_arg5);
29729
29730int main (void)
29731{
29732
29733 $sel_arg1 nfds=0;
29734 $sel_arg234 rfds=0;
29735 $sel_arg234 wfds=0;
29736 $sel_arg234 efds=0;
29737 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29738
29739 ;
29740 return 0;
29741}
29742
29743_ACEOF
29744if ac_fn_c_try_compile "$LINENO"; then :
29745
29746 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29747
29748fi
29749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 fi
29751 done
29752 done
29753 done
29754 done
29755
29756fi
29757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29758$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29759 if test "$curl_cv_func_select_args" = "unknown"; then
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29761$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29763$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29764 else
29765 select_prev_IFS=$IFS; IFS=','
29766 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29767 IFS=$select_prev_IFS
29768 shift
29769 #
29770 sel_qual_type_arg5=$3
29771 #
29772
29773cat >>confdefs.h <<_ACEOF
29774#define SELECT_TYPE_ARG1 $1
29775_ACEOF
29776
29777
29778cat >>confdefs.h <<_ACEOF
29779#define SELECT_TYPE_ARG234 $2
29780_ACEOF
29781
29782
29783cat >>confdefs.h <<_ACEOF
29784#define SELECT_TYPE_RETV $4
29785_ACEOF
29786
29787 #
29788 prev_sh_opts=$-
29789 #
29790 case $prev_sh_opts in
29791 *f*)
29792 ;;
29793 *)
29794 set -f
29795 ;;
29796 esac
29797 #
29798 case "$sel_qual_type_arg5" in
29799 const*)
29800 sel_qual_arg5=const
29801 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29802 ;;
29803 *)
29804 sel_qual_arg5=
29805 sel_type_arg5=$sel_qual_type_arg5
29806 ;;
29807 esac
29808 #
29809
29810cat >>confdefs.h <<_ACEOF
29811#define SELECT_QUAL_ARG5 $sel_qual_arg5
29812_ACEOF
29813
29814
29815cat >>confdefs.h <<_ACEOF
29816#define SELECT_TYPE_ARG5 $sel_type_arg5
29817_ACEOF
29818
29819 #
29820 case $prev_sh_opts in
29821 *f*)
29822 ;;
29823 *)
29824 set +f
29825 ;;
29826 esac
29827 #
29828
29829cat >>confdefs.h <<_ACEOF
29830#define HAVE_SELECT 1
29831_ACEOF
29832
29833 curl_cv_func_select="yes"
29834 fi
29835 fi
29836
29837
29838
29839 for ac_header in sys/types.h sys/socket.h
29840do :
29841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29842ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29844 cat >>confdefs.h <<_ACEOF
29845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29846_ACEOF
29847
29848fi
29849
29850done
29851
29852 #
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29854$as_echo_n "checking for recv... " >&6; }
29855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29856/* end confdefs.h. */
29857
29858
29859#undef inline
29860#ifdef HAVE_WINDOWS_H
29861#ifndef WIN32_LEAN_AND_MEAN
29862#define WIN32_LEAN_AND_MEAN
29863#endif
29864#include <windows.h>
29865#ifdef HAVE_WINSOCK2_H
29866#include <winsock2.h>
29867#else
29868#ifdef HAVE_WINSOCK_H
29869#include <winsock.h>
29870#endif
29871#endif
29872#else
29873#ifdef HAVE_SYS_TYPES_H
29874#include <sys/types.h>
29875#endif
29876#ifdef HAVE_SYS_SOCKET_H
29877#include <sys/socket.h>
29878#endif
29879#endif
29880
29881int main (void)
29882{
29883
29884 recv(0, 0, 0, 0);
29885
29886 ;
29887 return 0;
29888}
29889
29890_ACEOF
29891if ac_fn_c_try_link "$LINENO"; then :
29892
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29894$as_echo "yes" >&6; }
29895 curl_cv_recv="yes"
29896
29897else
29898
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29900$as_echo "no" >&6; }
29901 curl_cv_recv="no"
29902
29903fi
29904rm -f core conftest.err conftest.$ac_objext \
29905 conftest$ac_exeext conftest.$ac_ext
29906 #
29907 if test "$curl_cv_recv" = "yes"; then
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29909$as_echo_n "checking types of args and return type for recv... " >&6; }
29910if ${curl_cv_func_recv_args+:} false; then :
29911 $as_echo_n "(cached) " >&6
29912else
29913
29914 curl_cv_func_recv_args="unknown"
29915 for recv_retv in 'int' 'ssize_t'; do
29916 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29917 for recv_arg2 in 'char *' 'void *'; do
29918 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29919 for recv_arg4 in 'int' 'unsigned int'; do
29920 if test "$curl_cv_func_recv_args" = "unknown"; then
29921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29922/* end confdefs.h. */
29923
29924
29925#undef inline
29926#ifdef HAVE_WINDOWS_H
29927#ifndef WIN32_LEAN_AND_MEAN
29928#define WIN32_LEAN_AND_MEAN
29929#endif
29930#include <windows.h>
29931#ifdef HAVE_WINSOCK2_H
29932#include <winsock2.h>
29933#else
29934#ifdef HAVE_WINSOCK_H
29935#include <winsock.h>
29936#endif
29937#endif
29938#define RECVCALLCONV PASCAL
29939#else
29940#ifdef HAVE_SYS_TYPES_H
29941#include <sys/types.h>
29942#endif
29943#ifdef HAVE_SYS_SOCKET_H
29944#include <sys/socket.h>
29945#endif
29946#define RECVCALLCONV
29947#endif
29948 extern $recv_retv RECVCALLCONV
29949#ifdef __ANDROID__
29950__attribute__((overloadable))
29951#endif
29952 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29953
29954int main (void)
29955{
29956
29957 $recv_arg1 s=0;
29958 $recv_arg2 buf=0;
29959 $recv_arg3 len=0;
29960 $recv_arg4 flags=0;
29961 $recv_retv res = recv(s, buf, len, flags);
29962
29963 ;
29964 return 0;
29965}
29966
29967_ACEOF
29968if ac_fn_c_try_compile "$LINENO"; then :
29969
29970 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29971
29972fi
29973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29974 fi
29975 done
29976 done
29977 done
29978 done
29979 done
29980
29981fi
29982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29983$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29984 if test "$curl_cv_func_recv_args" = "unknown"; then
29985 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29986 else
29987 recv_prev_IFS=$IFS; IFS=','
29988 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29989 IFS=$recv_prev_IFS
29990 shift
29991 #
29992
29993cat >>confdefs.h <<_ACEOF
29994#define RECV_TYPE_ARG1 $1
29995_ACEOF
29996
29997
29998cat >>confdefs.h <<_ACEOF
29999#define RECV_TYPE_ARG2 $2
30000_ACEOF
30001
30002
30003cat >>confdefs.h <<_ACEOF
30004#define RECV_TYPE_ARG3 $3
30005_ACEOF
30006
30007
30008cat >>confdefs.h <<_ACEOF
30009#define RECV_TYPE_ARG4 $4
30010_ACEOF
30011
30012
30013cat >>confdefs.h <<_ACEOF
30014#define RECV_TYPE_RETV $5
30015_ACEOF
30016
30017 #
30018
30019cat >>confdefs.h <<_ACEOF
30020#define HAVE_RECV 1
30021_ACEOF
30022
30023 curl_cv_func_recv="yes"
30024 fi
30025 else
30026 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30027 fi
30028
30029
30030 for ac_header in sys/types.h sys/socket.h
30031do :
30032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30033ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30034if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30035 cat >>confdefs.h <<_ACEOF
30036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30037_ACEOF
30038
30039fi
30040
30041done
30042
30043 #
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30045$as_echo_n "checking for send... " >&6; }
30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047/* end confdefs.h. */
30048
30049
30050#undef inline
30051#ifdef HAVE_WINDOWS_H
30052#ifndef WIN32_LEAN_AND_MEAN
30053#define WIN32_LEAN_AND_MEAN
30054#endif
30055#include <windows.h>
30056#ifdef HAVE_WINSOCK2_H
30057#include <winsock2.h>
30058#else
30059#ifdef HAVE_WINSOCK_H
30060#include <winsock.h>
30061#endif
30062#endif
30063#else
30064#ifdef HAVE_SYS_TYPES_H
30065#include <sys/types.h>
30066#endif
30067#ifdef HAVE_SYS_SOCKET_H
30068#include <sys/socket.h>
30069#endif
30070#endif
30071
30072int main (void)
30073{
30074
30075 send(0, 0, 0, 0);
30076
30077 ;
30078 return 0;
30079}
30080
30081_ACEOF
30082if ac_fn_c_try_link "$LINENO"; then :
30083
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30085$as_echo "yes" >&6; }
30086 curl_cv_send="yes"
30087
30088else
30089
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30091$as_echo "no" >&6; }
30092 curl_cv_send="no"
30093
30094fi
30095rm -f core conftest.err conftest.$ac_objext \
30096 conftest$ac_exeext conftest.$ac_ext
30097 #
30098 if test "$curl_cv_send" = "yes"; then
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30100$as_echo_n "checking types of args and return type for send... " >&6; }
30101if ${curl_cv_func_send_args+:} false; then :
30102 $as_echo_n "(cached) " >&6
30103else
30104
30105 curl_cv_func_send_args="unknown"
30106 for send_retv in 'int' 'ssize_t'; do
30107 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30108 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30109 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30110 for send_arg4 in 'int' 'unsigned int'; do
30111 if test "$curl_cv_func_send_args" = "unknown"; then
30112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30113/* end confdefs.h. */
30114
30115
30116#undef inline
30117#ifdef HAVE_WINDOWS_H
30118#ifndef WIN32_LEAN_AND_MEAN
30119#define WIN32_LEAN_AND_MEAN
30120#endif
30121#include <windows.h>
30122#ifdef HAVE_WINSOCK2_H
30123#include <winsock2.h>
30124#else
30125#ifdef HAVE_WINSOCK_H
30126#include <winsock.h>
30127#endif
30128#endif
30129#define SENDCALLCONV PASCAL
30130#else
30131#ifdef HAVE_SYS_TYPES_H
30132#include <sys/types.h>
30133#endif
30134#ifdef HAVE_SYS_SOCKET_H
30135#include <sys/socket.h>
30136#endif
30137#define SENDCALLCONV
30138#endif
30139 extern $send_retv SENDCALLCONV
30140#ifdef __ANDROID__
30141__attribute__((overloadable))
30142#endif
30143 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30144
30145int main (void)
30146{
30147
30148 $send_arg1 s=0;
30149 $send_arg3 len=0;
30150 $send_arg4 flags=0;
30151 $send_retv res = send(s, 0, len, flags);
30152
30153 ;
30154 return 0;
30155}
30156
30157_ACEOF
30158if ac_fn_c_try_compile "$LINENO"; then :
30159
30160 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30161
30162fi
30163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30164 fi
30165 done
30166 done
30167 done
30168 done
30169 done
30170
30171fi
30172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30173$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30174 if test "$curl_cv_func_send_args" = "unknown"; then
30175 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30176 else
30177 send_prev_IFS=$IFS; IFS=','
30178 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30179 IFS=$send_prev_IFS
30180 shift
30181 #
30182 send_qual_type_arg2=$2
30183 #
30184
30185cat >>confdefs.h <<_ACEOF
30186#define SEND_TYPE_ARG1 $1
30187_ACEOF
30188
30189
30190cat >>confdefs.h <<_ACEOF
30191#define SEND_TYPE_ARG3 $3
30192_ACEOF
30193
30194
30195cat >>confdefs.h <<_ACEOF
30196#define SEND_TYPE_ARG4 $4
30197_ACEOF
30198
30199
30200cat >>confdefs.h <<_ACEOF
30201#define SEND_TYPE_RETV $5
30202_ACEOF
30203
30204 #
30205 prev_sh_opts=$-
30206 #
30207 case $prev_sh_opts in
30208 *f*)
30209 ;;
30210 *)
30211 set -f
30212 ;;
30213 esac
30214 #
30215 case "$send_qual_type_arg2" in
30216 const*)
30217 send_qual_arg2=const
30218 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30219 ;;
30220 *)
30221 send_qual_arg2=
30222 send_type_arg2=$send_qual_type_arg2
30223 ;;
30224 esac
30225 #
30226
30227cat >>confdefs.h <<_ACEOF
30228#define SEND_QUAL_ARG2 $send_qual_arg2
30229_ACEOF
30230
30231
30232cat >>confdefs.h <<_ACEOF
30233#define SEND_TYPE_ARG2 $send_type_arg2
30234_ACEOF
30235
30236 #
30237 case $prev_sh_opts in
30238 *f*)
30239 ;;
30240 *)
30241 set +f
30242 ;;
30243 esac
30244 #
30245
30246cat >>confdefs.h <<_ACEOF
30247#define HAVE_SEND 1
30248_ACEOF
30249
30250 curl_cv_func_send="yes"
30251 fi
30252 else
30253 as_fn_error $? "Unable to link function send" "$LINENO" 5
30254 fi
30255
30256
30257 for ac_header in sys/types.h sys/socket.h
30258do :
30259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30260ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30261if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30262 cat >>confdefs.h <<_ACEOF
30263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30264_ACEOF
30265
30266fi
30267
30268done
30269
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30271$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30272if ${curl_cv_msg_nosignal+:} false; then :
30273 $as_echo_n "(cached) " >&6
30274else
30275
30276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30277/* end confdefs.h. */
30278
30279
30280#undef inline
30281#ifdef HAVE_WINDOWS_H
30282#ifndef WIN32_LEAN_AND_MEAN
30283#define WIN32_LEAN_AND_MEAN
30284#endif
30285#include <windows.h>
30286#ifdef HAVE_WINSOCK2_H
30287#include <winsock2.h>
30288#else
30289#ifdef HAVE_WINSOCK_H
30290#include <winsock.h>
30291#endif
30292#endif
30293#else
30294#ifdef HAVE_SYS_TYPES_H
30295#include <sys/types.h>
30296#endif
30297#ifdef HAVE_SYS_SOCKET_H
30298#include <sys/socket.h>
30299#endif
30300#endif
30301
30302int main (void)
30303{
30304
30305 int flag=MSG_NOSIGNAL;
30306
30307 ;
30308 return 0;
30309}
30310
30311_ACEOF
30312if ac_fn_c_try_compile "$LINENO"; then :
30313
30314 curl_cv_msg_nosignal="yes"
30315
30316else
30317
30318 curl_cv_msg_nosignal="no"
30319
30320fi
30321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30322
30323fi
30324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30325$as_echo "$curl_cv_msg_nosignal" >&6; }
30326 case "$curl_cv_msg_nosignal" in
30327 yes)
30328
30329cat >>confdefs.h <<_ACEOF
30330#define HAVE_MSG_NOSIGNAL 1
30331_ACEOF
30332
30333 ;;
30334 esac
30335
30336
30337
30338curl_includes_unistd="\
30339/* includes start */
30340#ifdef HAVE_SYS_TYPES_H
30341# include <sys/types.h>
30342#endif
30343#ifdef HAVE_UNISTD_H
30344# include <unistd.h>
30345#endif
30346/* includes end */"
30347 for ac_header in sys/types.h unistd.h
30348do :
30349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30350ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30351"
30352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30353 cat >>confdefs.h <<_ACEOF
30354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30355_ACEOF
30356
30357fi
30358
30359done
30360
30361
30362
30363 #
30364 tst_links_alarm="unknown"
30365 tst_proto_alarm="unknown"
30366 tst_compi_alarm="unknown"
30367 tst_allow_alarm="unknown"
30368 #
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30370$as_echo_n "checking if alarm can be linked... " >&6; }
30371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30372/* end confdefs.h. */
30373
30374
30375#define alarm innocuous_alarm
30376#ifdef __STDC__
30377# include <limits.h>
30378#else
30379# include <assert.h>
30380#endif
30381#undef alarm
30382#ifdef __cplusplus
30383extern "C"
30384#endif
30385char alarm ();
30386#if defined __stub_alarm || defined __stub___alarm
30387choke me
30388#endif
30389
30390int main (void)
30391{
30392return alarm ();
30393 ;
30394 return 0;
30395}
30396
30397_ACEOF
30398if ac_fn_c_try_link "$LINENO"; then :
30399
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30401$as_echo "yes" >&6; }
30402 tst_links_alarm="yes"
30403
30404else
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407$as_echo "no" >&6; }
30408 tst_links_alarm="no"
30409
30410fi
30411rm -f core conftest.err conftest.$ac_objext \
30412 conftest$ac_exeext conftest.$ac_ext
30413 #
30414 if test "$tst_links_alarm" = "yes"; then
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30416$as_echo_n "checking if alarm is prototyped... " >&6; }
30417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30418/* end confdefs.h. */
30419
30420 $curl_includes_unistd
30421
30422_ACEOF
30423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30424 $EGREP "alarm" >/dev/null 2>&1; then :
30425
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30427$as_echo "yes" >&6; }
30428 tst_proto_alarm="yes"
30429
30430else
30431
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30433$as_echo "no" >&6; }
30434 tst_proto_alarm="no"
30435
30436fi
30437rm -f conftest*
30438
30439 fi
30440 #
30441 if test "$tst_proto_alarm" = "yes"; then
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30443$as_echo_n "checking if alarm is compilable... " >&6; }
30444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30445/* end confdefs.h. */
30446
30447
30448 $curl_includes_unistd
30449
30450int main (void)
30451{
30452
30453 if(0 != alarm(0))
30454 return 1;
30455
30456 ;
30457 return 0;
30458}
30459
30460_ACEOF
30461if ac_fn_c_try_compile "$LINENO"; then :
30462
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464$as_echo "yes" >&6; }
30465 tst_compi_alarm="yes"
30466
30467else
30468
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30470$as_echo "no" >&6; }
30471 tst_compi_alarm="no"
30472
30473fi
30474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30475 fi
30476 #
30477 if test "$tst_compi_alarm" = "yes"; then
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30479$as_echo_n "checking if alarm usage allowed... " >&6; }
30480 if test "x$curl_disallow_alarm" != "xyes"; then
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30482$as_echo "yes" >&6; }
30483 tst_allow_alarm="yes"
30484 else
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30486$as_echo "no" >&6; }
30487 tst_allow_alarm="no"
30488 fi
30489 fi
30490 #
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30492$as_echo_n "checking if alarm might be used... " >&6; }
30493 if test "$tst_links_alarm" = "yes" &&
30494 test "$tst_proto_alarm" = "yes" &&
30495 test "$tst_compi_alarm" = "yes" &&
30496 test "$tst_allow_alarm" = "yes"; then
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30498$as_echo "yes" >&6; }
30499
30500cat >>confdefs.h <<_ACEOF
30501#define HAVE_ALARM 1
30502_ACEOF
30503
30504 curl_cv_func_alarm="yes"
30505 else
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507$as_echo "no" >&6; }
30508 curl_cv_func_alarm="no"
30509 fi
30510
30511
30512curl_includes_string="\
30513/* includes start */
30514#ifdef HAVE_SYS_TYPES_H
30515# include <sys/types.h>
30516#endif
30517#ifdef HAVE_STRING_H
30518# include <string.h>
30519#endif
30520#ifdef HAVE_STRINGS_H
30521# include <strings.h>
30522#endif
30523/* includes end */"
30524 for ac_header in sys/types.h string.h strings.h
30525do :
30526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30527ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30528"
30529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30530 cat >>confdefs.h <<_ACEOF
30531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30532_ACEOF
30533
30534fi
30535
30536done
30537
30538
30539
30540curl_includes_libgen="\
30541/* includes start */
30542#ifdef HAVE_SYS_TYPES_H
30543# include <sys/types.h>
30544#endif
30545#ifdef HAVE_LIBGEN_H
30546# include <libgen.h>
30547#endif
30548/* includes end */"
30549 for ac_header in sys/types.h libgen.h
30550do :
30551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30552ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30553"
30554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30555 cat >>confdefs.h <<_ACEOF
30556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30557_ACEOF
30558
30559fi
30560
30561done
30562
30563
30564
30565 #
30566 tst_links_basename="unknown"
30567 tst_proto_basename="unknown"
30568 tst_compi_basename="unknown"
30569 tst_allow_basename="unknown"
30570 #
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30572$as_echo_n "checking if basename can be linked... " >&6; }
30573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30574/* end confdefs.h. */
30575
30576
30577#define basename innocuous_basename
30578#ifdef __STDC__
30579# include <limits.h>
30580#else
30581# include <assert.h>
30582#endif
30583#undef basename
30584#ifdef __cplusplus
30585extern "C"
30586#endif
30587char basename ();
30588#if defined __stub_basename || defined __stub___basename
30589choke me
30590#endif
30591
30592int main (void)
30593{
30594return basename ();
30595 ;
30596 return 0;
30597}
30598
30599_ACEOF
30600if ac_fn_c_try_link "$LINENO"; then :
30601
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30603$as_echo "yes" >&6; }
30604 tst_links_basename="yes"
30605
30606else
30607
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30609$as_echo "no" >&6; }
30610 tst_links_basename="no"
30611
30612fi
30613rm -f core conftest.err conftest.$ac_objext \
30614 conftest$ac_exeext conftest.$ac_ext
30615 #
30616 if test "$tst_links_basename" = "yes"; then
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30618$as_echo_n "checking if basename is prototyped... " >&6; }
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h. */
30621
30622 $curl_includes_string
30623 $curl_includes_libgen
30624 $curl_includes_unistd
30625
30626_ACEOF
30627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30628 $EGREP "basename" >/dev/null 2>&1; then :
30629
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30631$as_echo "yes" >&6; }
30632 tst_proto_basename="yes"
30633
30634else
30635
30636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30637$as_echo "no" >&6; }
30638 tst_proto_basename="no"
30639
30640fi
30641rm -f conftest*
30642
30643 fi
30644 #
30645 if test "$tst_proto_basename" = "yes"; then
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30647$as_echo_n "checking if basename is compilable... " >&6; }
30648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30649/* end confdefs.h. */
30650
30651
30652 $curl_includes_string
30653 $curl_includes_libgen
30654 $curl_includes_unistd
30655
30656int main (void)
30657{
30658
30659 if(0 != basename(0))
30660 return 1;
30661
30662 ;
30663 return 0;
30664}
30665
30666_ACEOF
30667if ac_fn_c_try_compile "$LINENO"; then :
30668
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30670$as_echo "yes" >&6; }
30671 tst_compi_basename="yes"
30672
30673else
30674
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30676$as_echo "no" >&6; }
30677 tst_compi_basename="no"
30678
30679fi
30680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30681 fi
30682 #
30683 if test "$tst_compi_basename" = "yes"; then
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30685$as_echo_n "checking if basename usage allowed... " >&6; }
30686 if test "x$curl_disallow_basename" != "xyes"; then
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30688$as_echo "yes" >&6; }
30689 tst_allow_basename="yes"
30690 else
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30692$as_echo "no" >&6; }
30693 tst_allow_basename="no"
30694 fi
30695 fi
30696 #
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30698$as_echo_n "checking if basename might be used... " >&6; }
30699 if test "$tst_links_basename" = "yes" &&
30700 test "$tst_proto_basename" = "yes" &&
30701 test "$tst_compi_basename" = "yes" &&
30702 test "$tst_allow_basename" = "yes"; then
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30704$as_echo "yes" >&6; }
30705
30706cat >>confdefs.h <<_ACEOF
30707#define HAVE_BASENAME 1
30708_ACEOF
30709
30710 curl_cv_func_basename="yes"
30711 else
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30713$as_echo "no" >&6; }
30714 curl_cv_func_basename="no"
30715 fi
30716
30717
30718curl_includes_socket="\
30719/* includes start */
30720#ifdef HAVE_SYS_TYPES_H
30721# include <sys/types.h>
30722#endif
30723#ifdef HAVE_SOCKET_H
30724# include <socket.h>
30725#endif
30726/* includes end */"
30727 for ac_header in sys/types.h socket.h
30728do :
30729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30731"
30732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30733 cat >>confdefs.h <<_ACEOF
30734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30735_ACEOF
30736
30737fi
30738
30739done
30740
30741
30742
30743 #
30744 tst_links_closesocket="unknown"
30745 tst_proto_closesocket="unknown"
30746 tst_compi_closesocket="unknown"
30747 tst_allow_closesocket="unknown"
30748 #
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30750$as_echo_n "checking if closesocket can be linked... " >&6; }
30751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30752/* end confdefs.h. */
30753
30754
30755 $curl_includes_winsock2
30756 $curl_includes_socket
30757
30758int main (void)
30759{
30760
30761 if(0 != closesocket(0))
30762 return 1;
30763
30764 ;
30765 return 0;
30766}
30767
30768_ACEOF
30769if ac_fn_c_try_link "$LINENO"; then :
30770
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30772$as_echo "yes" >&6; }
30773 tst_links_closesocket="yes"
30774
30775else
30776
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778$as_echo "no" >&6; }
30779 tst_links_closesocket="no"
30780
30781fi
30782rm -f core conftest.err conftest.$ac_objext \
30783 conftest$ac_exeext conftest.$ac_ext
30784 #
30785 if test "$tst_links_closesocket" = "yes"; then
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30787$as_echo_n "checking if closesocket is prototyped... " >&6; }
30788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30789/* end confdefs.h. */
30790
30791 $curl_includes_winsock2
30792 $curl_includes_socket
30793
30794_ACEOF
30795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30796 $EGREP "closesocket" >/dev/null 2>&1; then :
30797
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30799$as_echo "yes" >&6; }
30800 tst_proto_closesocket="yes"
30801
30802else
30803
30804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30805$as_echo "no" >&6; }
30806 tst_proto_closesocket="no"
30807
30808fi
30809rm -f conftest*
30810
30811 fi
30812 #
30813 if test "$tst_proto_closesocket" = "yes"; then
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30815$as_echo_n "checking if closesocket is compilable... " >&6; }
30816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30817/* end confdefs.h. */
30818
30819
30820 $curl_includes_winsock2
30821 $curl_includes_socket
30822
30823int main (void)
30824{
30825
30826 if(0 != closesocket(0))
30827 return 1;
30828
30829 ;
30830 return 0;
30831}
30832
30833_ACEOF
30834if ac_fn_c_try_compile "$LINENO"; then :
30835
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30837$as_echo "yes" >&6; }
30838 tst_compi_closesocket="yes"
30839
30840else
30841
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
30844 tst_compi_closesocket="no"
30845
30846fi
30847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30848 fi
30849 #
30850 if test "$tst_compi_closesocket" = "yes"; then
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30852$as_echo_n "checking if closesocket usage allowed... " >&6; }
30853 if test "x$curl_disallow_closesocket" != "xyes"; then
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30855$as_echo "yes" >&6; }
30856 tst_allow_closesocket="yes"
30857 else
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859$as_echo "no" >&6; }
30860 tst_allow_closesocket="no"
30861 fi
30862 fi
30863 #
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30865$as_echo_n "checking if closesocket might be used... " >&6; }
30866 if test "$tst_links_closesocket" = "yes" &&
30867 test "$tst_proto_closesocket" = "yes" &&
30868 test "$tst_compi_closesocket" = "yes" &&
30869 test "$tst_allow_closesocket" = "yes"; then
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30871$as_echo "yes" >&6; }
30872
30873cat >>confdefs.h <<_ACEOF
30874#define HAVE_CLOSESOCKET 1
30875_ACEOF
30876
30877 curl_cv_func_closesocket="yes"
30878 else
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30880$as_echo "no" >&6; }
30881 curl_cv_func_closesocket="no"
30882 fi
30883
30884
30885 #
30886 tst_links_closesocket_camel="unknown"
30887 tst_proto_closesocket_camel="unknown"
30888 tst_compi_closesocket_camel="unknown"
30889 tst_allow_closesocket_camel="unknown"
30890 #
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30892$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30894/* end confdefs.h. */
30895
30896
30897 $curl_includes_sys_socket
30898
30899int main (void)
30900{
30901
30902 if(0 != CloseSocket(0))
30903 return 1;
30904
30905 ;
30906 return 0;
30907}
30908
30909_ACEOF
30910if ac_fn_c_try_link "$LINENO"; then :
30911
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30913$as_echo "yes" >&6; }
30914 tst_links_closesocket_camel="yes"
30915
30916else
30917
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30919$as_echo "no" >&6; }
30920 tst_links_closesocket_camel="no"
30921
30922fi
30923rm -f core conftest.err conftest.$ac_objext \
30924 conftest$ac_exeext conftest.$ac_ext
30925 #
30926 if test "$tst_links_closesocket_camel" = "yes"; then
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30928$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30930/* end confdefs.h. */
30931
30932 $curl_includes_sys_socket
30933
30934_ACEOF
30935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30936 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30937
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30939$as_echo "yes" >&6; }
30940 tst_proto_closesocket_camel="yes"
30941
30942else
30943
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30945$as_echo "no" >&6; }
30946 tst_proto_closesocket_camel="no"
30947
30948fi
30949rm -f conftest*
30950
30951 fi
30952 #
30953 if test "$tst_proto_closesocket_camel" = "yes"; then
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30955$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30957/* end confdefs.h. */
30958
30959
30960 $curl_includes_sys_socket
30961
30962int main (void)
30963{
30964
30965 if(0 != CloseSocket(0))
30966 return 1;
30967
30968 ;
30969 return 0;
30970}
30971
30972_ACEOF
30973if ac_fn_c_try_compile "$LINENO"; then :
30974
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30976$as_echo "yes" >&6; }
30977 tst_compi_closesocket_camel="yes"
30978
30979else
30980
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30982$as_echo "no" >&6; }
30983 tst_compi_closesocket_camel="no"
30984
30985fi
30986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30987 fi
30988 #
30989 if test "$tst_compi_closesocket_camel" = "yes"; then
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30991$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30992 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30994$as_echo "yes" >&6; }
30995 tst_allow_closesocket_camel="yes"
30996 else
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30998$as_echo "no" >&6; }
30999 tst_allow_closesocket_camel="no"
31000 fi
31001 fi
31002 #
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31004$as_echo_n "checking if CloseSocket might be used... " >&6; }
31005 if test "$tst_links_closesocket_camel" = "yes" &&
31006 test "$tst_proto_closesocket_camel" = "yes" &&
31007 test "$tst_compi_closesocket_camel" = "yes" &&
31008 test "$tst_allow_closesocket_camel" = "yes"; then
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010$as_echo "yes" >&6; }
31011
31012cat >>confdefs.h <<_ACEOF
31013#define HAVE_CLOSESOCKET_CAMEL 1
31014_ACEOF
31015
31016 curl_cv_func_closesocket_camel="yes"
31017 else
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31019$as_echo "no" >&6; }
31020 curl_cv_func_closesocket_camel="no"
31021 fi
31022
31023
31024 #
31025 tst_links_connect="unknown"
31026 tst_proto_connect="unknown"
31027 tst_compi_connect="unknown"
31028 tst_allow_connect="unknown"
31029 #
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31031$as_echo_n "checking if connect can be linked... " >&6; }
31032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31033/* end confdefs.h. */
31034
31035
31036 $curl_includes_winsock2
31037 $curl_includes_sys_socket
31038 $curl_includes_socket
31039
31040int main (void)
31041{
31042
31043 if(0 != connect(0, 0, 0))
31044 return 1;
31045
31046 ;
31047 return 0;
31048}
31049
31050_ACEOF
31051if ac_fn_c_try_link "$LINENO"; then :
31052
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31054$as_echo "yes" >&6; }
31055 tst_links_connect="yes"
31056
31057else
31058
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31060$as_echo "no" >&6; }
31061 tst_links_connect="no"
31062
31063fi
31064rm -f core conftest.err conftest.$ac_objext \
31065 conftest$ac_exeext conftest.$ac_ext
31066 #
31067 if test "$tst_links_connect" = "yes"; then
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31069$as_echo_n "checking if connect is prototyped... " >&6; }
31070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31071/* end confdefs.h. */
31072
31073 $curl_includes_winsock2
31074 $curl_includes_sys_socket
31075 $curl_includes_socket
31076
31077_ACEOF
31078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31079 $EGREP "connect" >/dev/null 2>&1; then :
31080
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31082$as_echo "yes" >&6; }
31083 tst_proto_connect="yes"
31084
31085else
31086
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31088$as_echo "no" >&6; }
31089 tst_proto_connect="no"
31090
31091fi
31092rm -f conftest*
31093
31094 fi
31095 #
31096 if test "$tst_proto_connect" = "yes"; then
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31098$as_echo_n "checking if connect is compilable... " >&6; }
31099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31100/* end confdefs.h. */
31101
31102
31103 $curl_includes_winsock2
31104 $curl_includes_sys_socket
31105 $curl_includes_socket
31106
31107int main (void)
31108{
31109
31110 if(0 != connect(0, 0, 0))
31111 return 1;
31112
31113 ;
31114 return 0;
31115}
31116
31117_ACEOF
31118if ac_fn_c_try_compile "$LINENO"; then :
31119
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31121$as_echo "yes" >&6; }
31122 tst_compi_connect="yes"
31123
31124else
31125
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31127$as_echo "no" >&6; }
31128 tst_compi_connect="no"
31129
31130fi
31131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31132 fi
31133 #
31134 if test "$tst_compi_connect" = "yes"; then
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31136$as_echo_n "checking if connect usage allowed... " >&6; }
31137 if test "x$curl_disallow_connect" != "xyes"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31139$as_echo "yes" >&6; }
31140 tst_allow_connect="yes"
31141 else
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31143$as_echo "no" >&6; }
31144 tst_allow_connect="no"
31145 fi
31146 fi
31147 #
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31149$as_echo_n "checking if connect might be used... " >&6; }
31150 if test "$tst_links_connect" = "yes" &&
31151 test "$tst_proto_connect" = "yes" &&
31152 test "$tst_compi_connect" = "yes" &&
31153 test "$tst_allow_connect" = "yes"; then
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31155$as_echo "yes" >&6; }
31156
31157cat >>confdefs.h <<_ACEOF
31158#define HAVE_CONNECT 1
31159_ACEOF
31160
31161 curl_cv_func_connect="yes"
31162 else
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31164$as_echo "no" >&6; }
31165 curl_cv_func_connect="no"
31166 fi
31167
31168
31169curl_includes_fcntl="\
31170/* includes start */
31171#ifdef HAVE_SYS_TYPES_H
31172# include <sys/types.h>
31173#endif
31174#ifdef HAVE_UNISTD_H
31175# include <unistd.h>
31176#endif
31177#ifdef HAVE_FCNTL_H
31178# include <fcntl.h>
31179#endif
31180/* includes end */"
31181 for ac_header in sys/types.h unistd.h fcntl.h
31182do :
31183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31184ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31185"
31186if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31187 cat >>confdefs.h <<_ACEOF
31188#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31189_ACEOF
31190
31191fi
31192
31193done
31194
31195
31196
31197 #
31198 tst_links_fcntl="unknown"
31199 tst_proto_fcntl="unknown"
31200 tst_compi_fcntl="unknown"
31201 tst_allow_fcntl="unknown"
31202 #
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31204$as_echo_n "checking if fcntl can be linked... " >&6; }
31205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31206/* end confdefs.h. */
31207
31208
31209#define fcntl innocuous_fcntl
31210#ifdef __STDC__
31211# include <limits.h>
31212#else
31213# include <assert.h>
31214#endif
31215#undef fcntl
31216#ifdef __cplusplus
31217extern "C"
31218#endif
31219char fcntl ();
31220#if defined __stub_fcntl || defined __stub___fcntl
31221choke me
31222#endif
31223
31224int main (void)
31225{
31226return fcntl ();
31227 ;
31228 return 0;
31229}
31230
31231_ACEOF
31232if ac_fn_c_try_link "$LINENO"; then :
31233
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31235$as_echo "yes" >&6; }
31236 tst_links_fcntl="yes"
31237
31238else
31239
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31241$as_echo "no" >&6; }
31242 tst_links_fcntl="no"
31243
31244fi
31245rm -f core conftest.err conftest.$ac_objext \
31246 conftest$ac_exeext conftest.$ac_ext
31247 #
31248 if test "$tst_links_fcntl" = "yes"; then
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31250$as_echo_n "checking if fcntl is prototyped... " >&6; }
31251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31252/* end confdefs.h. */
31253
31254 $curl_includes_fcntl
31255
31256_ACEOF
31257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31258 $EGREP "fcntl" >/dev/null 2>&1; then :
31259
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31261$as_echo "yes" >&6; }
31262 tst_proto_fcntl="yes"
31263
31264else
31265
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31267$as_echo "no" >&6; }
31268 tst_proto_fcntl="no"
31269
31270fi
31271rm -f conftest*
31272
31273 fi
31274 #
31275 if test "$tst_proto_fcntl" = "yes"; then
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31277$as_echo_n "checking if fcntl is compilable... " >&6; }
31278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31279/* end confdefs.h. */
31280
31281
31282 $curl_includes_fcntl
31283
31284int main (void)
31285{
31286
31287 if(0 != fcntl(0, 0, 0))
31288 return 1;
31289
31290 ;
31291 return 0;
31292}
31293
31294_ACEOF
31295if ac_fn_c_try_compile "$LINENO"; then :
31296
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31298$as_echo "yes" >&6; }
31299 tst_compi_fcntl="yes"
31300
31301else
31302
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31304$as_echo "no" >&6; }
31305 tst_compi_fcntl="no"
31306
31307fi
31308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31309 fi
31310 #
31311 if test "$tst_compi_fcntl" = "yes"; then
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31313$as_echo_n "checking if fcntl usage allowed... " >&6; }
31314 if test "x$curl_disallow_fcntl" != "xyes"; then
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31316$as_echo "yes" >&6; }
31317 tst_allow_fcntl="yes"
31318 else
31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31320$as_echo "no" >&6; }
31321 tst_allow_fcntl="no"
31322 fi
31323 fi
31324 #
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31326$as_echo_n "checking if fcntl might be used... " >&6; }
31327 if test "$tst_links_fcntl" = "yes" &&
31328 test "$tst_proto_fcntl" = "yes" &&
31329 test "$tst_compi_fcntl" = "yes" &&
31330 test "$tst_allow_fcntl" = "yes"; then
31331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31332$as_echo "yes" >&6; }
31333
31334cat >>confdefs.h <<_ACEOF
31335#define HAVE_FCNTL 1
31336_ACEOF
31337
31338 curl_cv_func_fcntl="yes"
31339
31340 #
31341 tst_compi_fcntl_o_nonblock="unknown"
31342 tst_allow_fcntl_o_nonblock="unknown"
31343 #
31344 case $host_os in
31345 sunos4* | aix3* | beos*)
31346 curl_disallow_fcntl_o_nonblock="yes"
31347 ;;
31348 esac
31349 #
31350 if test "$curl_cv_func_fcntl" = "yes"; then
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31352$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31354/* end confdefs.h. */
31355
31356
31357 $curl_includes_fcntl
31358
31359int main (void)
31360{
31361
31362 int flags = 0;
31363 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31364 return 1;
31365
31366 ;
31367 return 0;
31368}
31369
31370_ACEOF
31371if ac_fn_c_try_compile "$LINENO"; then :
31372
31373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31374$as_echo "yes" >&6; }
31375 tst_compi_fcntl_o_nonblock="yes"
31376
31377else
31378
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31380$as_echo "no" >&6; }
31381 tst_compi_fcntl_o_nonblock="no"
31382
31383fi
31384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 fi
31386 #
31387 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31389$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31390 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31392$as_echo "yes" >&6; }
31393 tst_allow_fcntl_o_nonblock="yes"
31394 else
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31396$as_echo "no" >&6; }
31397 tst_allow_fcntl_o_nonblock="no"
31398 fi
31399 fi
31400 #
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31402$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31403 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31404 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31406$as_echo "yes" >&6; }
31407
31408cat >>confdefs.h <<_ACEOF
31409#define HAVE_FCNTL_O_NONBLOCK 1
31410_ACEOF
31411
31412 curl_cv_func_fcntl_o_nonblock="yes"
31413 else
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31415$as_echo "no" >&6; }
31416 curl_cv_func_fcntl_o_nonblock="no"
31417 fi
31418
31419 else
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421$as_echo "no" >&6; }
31422 curl_cv_func_fcntl="no"
31423 fi
31424
31425
31426curl_includes_stdio="\
31427/* includes start */
31428#ifdef HAVE_SYS_TYPES_H
31429# include <sys/types.h>
31430#endif
31431#ifdef HAVE_STDIO_H
31432# include <stdio.h>
31433#endif
31434/* includes end */"
31435 for ac_header in sys/types.h stdio.h
31436do :
31437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31439"
31440if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31441 cat >>confdefs.h <<_ACEOF
31442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31443_ACEOF
31444
31445fi
31446
31447done
31448
31449
31450
31451 #
31452 tst_links_fdopen="unknown"
31453 tst_proto_fdopen="unknown"
31454 tst_compi_fdopen="unknown"
31455 tst_allow_fdopen="unknown"
31456 #
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31458$as_echo_n "checking if fdopen can be linked... " >&6; }
31459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31460/* end confdefs.h. */
31461
31462
31463#define fdopen innocuous_fdopen
31464#ifdef __STDC__
31465# include <limits.h>
31466#else
31467# include <assert.h>
31468#endif
31469#undef fdopen
31470#ifdef __cplusplus
31471extern "C"
31472#endif
31473char fdopen ();
31474#if defined __stub_fdopen || defined __stub___fdopen
31475choke me
31476#endif
31477
31478int main (void)
31479{
31480return fdopen ();
31481 ;
31482 return 0;
31483}
31484
31485_ACEOF
31486if ac_fn_c_try_link "$LINENO"; then :
31487
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31489$as_echo "yes" >&6; }
31490 tst_links_fdopen="yes"
31491
31492else
31493
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31495$as_echo "no" >&6; }
31496 tst_links_fdopen="no"
31497
31498fi
31499rm -f core conftest.err conftest.$ac_objext \
31500 conftest$ac_exeext conftest.$ac_ext
31501 #
31502 if test "$tst_links_fdopen" = "yes"; then
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31504$as_echo_n "checking if fdopen is prototyped... " >&6; }
31505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506/* end confdefs.h. */
31507
31508 $curl_includes_stdio
31509
31510_ACEOF
31511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31512 $EGREP "fdopen" >/dev/null 2>&1; then :
31513
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31515$as_echo "yes" >&6; }
31516 tst_proto_fdopen="yes"
31517
31518else
31519
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31521$as_echo "no" >&6; }
31522 tst_proto_fdopen="no"
31523
31524fi
31525rm -f conftest*
31526
31527 fi
31528 #
31529 if test "$tst_proto_fdopen" = "yes"; then
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31531$as_echo_n "checking if fdopen is compilable... " >&6; }
31532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31533/* end confdefs.h. */
31534
31535
31536 $curl_includes_stdio
31537
31538int main (void)
31539{
31540
31541 if(0 != fdopen(0, 0))
31542 return 1;
31543
31544 ;
31545 return 0;
31546}
31547
31548_ACEOF
31549if ac_fn_c_try_compile "$LINENO"; then :
31550
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31552$as_echo "yes" >&6; }
31553 tst_compi_fdopen="yes"
31554
31555else
31556
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31558$as_echo "no" >&6; }
31559 tst_compi_fdopen="no"
31560
31561fi
31562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31563 fi
31564 #
31565 if test "$tst_compi_fdopen" = "yes"; then
31566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31567$as_echo_n "checking if fdopen usage allowed... " >&6; }
31568 if test "x$curl_disallow_fdopen" != "xyes"; then
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31570$as_echo "yes" >&6; }
31571 tst_allow_fdopen="yes"
31572 else
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31574$as_echo "no" >&6; }
31575 tst_allow_fdopen="no"
31576 fi
31577 fi
31578 #
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31580$as_echo_n "checking if fdopen might be used... " >&6; }
31581 if test "$tst_links_fdopen" = "yes" &&
31582 test "$tst_proto_fdopen" = "yes" &&
31583 test "$tst_compi_fdopen" = "yes" &&
31584 test "$tst_allow_fdopen" = "yes"; then
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31586$as_echo "yes" >&6; }
31587
31588cat >>confdefs.h <<_ACEOF
31589#define HAVE_FDOPEN 1
31590_ACEOF
31591
31592 curl_cv_func_fdopen="yes"
31593 else
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31595$as_echo "no" >&6; }
31596 curl_cv_func_fdopen="no"
31597 fi
31598
31599
31600curl_includes_netdb="\
31601/* includes start */
31602#ifdef HAVE_SYS_TYPES_H
31603# include <sys/types.h>
31604#endif
31605#ifdef HAVE_NETDB_H
31606# include <netdb.h>
31607#endif
31608/* includes end */"
31609 for ac_header in sys/types.h netdb.h
31610do :
31611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31612ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31613"
31614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31615 cat >>confdefs.h <<_ACEOF
31616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31617_ACEOF
31618
31619fi
31620
31621done
31622
31623
31624
31625 #
31626 tst_links_freeaddrinfo="unknown"
31627 tst_proto_freeaddrinfo="unknown"
31628 tst_compi_freeaddrinfo="unknown"
31629 tst_allow_freeaddrinfo="unknown"
31630 #
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31632$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31634/* end confdefs.h. */
31635
31636
31637 $curl_includes_ws2tcpip
31638 $curl_includes_sys_socket
31639 $curl_includes_netdb
31640
31641int main (void)
31642{
31643
31644 freeaddrinfo(0);
31645
31646 ;
31647 return 0;
31648}
31649
31650_ACEOF
31651if ac_fn_c_try_link "$LINENO"; then :
31652
31653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31654$as_echo "yes" >&6; }
31655 tst_links_freeaddrinfo="yes"
31656
31657else
31658
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660$as_echo "no" >&6; }
31661 tst_links_freeaddrinfo="no"
31662
31663fi
31664rm -f core conftest.err conftest.$ac_objext \
31665 conftest$ac_exeext conftest.$ac_ext
31666 #
31667 if test "$tst_links_freeaddrinfo" = "yes"; then
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31669$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31671/* end confdefs.h. */
31672
31673 $curl_includes_ws2tcpip
31674 $curl_includes_sys_socket
31675 $curl_includes_netdb
31676
31677_ACEOF
31678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31679 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31680
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31682$as_echo "yes" >&6; }
31683 tst_proto_freeaddrinfo="yes"
31684
31685else
31686
31687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31688$as_echo "no" >&6; }
31689 tst_proto_freeaddrinfo="no"
31690
31691fi
31692rm -f conftest*
31693
31694 fi
31695 #
31696 if test "$tst_proto_freeaddrinfo" = "yes"; then
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31698$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31700/* end confdefs.h. */
31701
31702
31703 $curl_includes_ws2tcpip
31704 $curl_includes_sys_socket
31705 $curl_includes_netdb
31706
31707int main (void)
31708{
31709
31710 freeaddrinfo(0);
31711
31712 ;
31713 return 0;
31714}
31715
31716_ACEOF
31717if ac_fn_c_try_compile "$LINENO"; then :
31718
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31720$as_echo "yes" >&6; }
31721 tst_compi_freeaddrinfo="yes"
31722
31723else
31724
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31726$as_echo "no" >&6; }
31727 tst_compi_freeaddrinfo="no"
31728
31729fi
31730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31731 fi
31732 #
31733 if test "$tst_compi_freeaddrinfo" = "yes"; then
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31735$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31736 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31738$as_echo "yes" >&6; }
31739 tst_allow_freeaddrinfo="yes"
31740 else
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31742$as_echo "no" >&6; }
31743 tst_allow_freeaddrinfo="no"
31744 fi
31745 fi
31746 #
31747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31748$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31749 if test "$tst_links_freeaddrinfo" = "yes" &&
31750 test "$tst_proto_freeaddrinfo" = "yes" &&
31751 test "$tst_compi_freeaddrinfo" = "yes" &&
31752 test "$tst_allow_freeaddrinfo" = "yes"; then
31753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31754$as_echo "yes" >&6; }
31755
31756cat >>confdefs.h <<_ACEOF
31757#define HAVE_FREEADDRINFO 1
31758_ACEOF
31759
31760 curl_cv_func_freeaddrinfo="yes"
31761 else
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31763$as_echo "no" >&6; }
31764 curl_cv_func_freeaddrinfo="no"
31765 fi
31766
31767
31768curl_includes_ifaddrs="\
31769/* includes start */
31770#ifdef HAVE_SYS_TYPES_H
31771# include <sys/types.h>
31772#endif
31773#ifdef HAVE_SYS_SOCKET_H
31774# include <sys/socket.h>
31775#endif
31776#ifdef HAVE_NETINET_IN_H
31777# include <netinet/in.h>
31778#endif
31779#ifdef HAVE_IFADDRS_H
31780# include <ifaddrs.h>
31781#endif
31782/* includes end */"
31783 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31784do :
31785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31787"
31788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31789 cat >>confdefs.h <<_ACEOF
31790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31791_ACEOF
31792
31793fi
31794
31795done
31796
31797
31798
31799 #
31800 tst_links_freeifaddrs="unknown"
31801 tst_proto_freeifaddrs="unknown"
31802 tst_compi_freeifaddrs="unknown"
31803 tst_allow_freeifaddrs="unknown"
31804 #
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31806$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808/* end confdefs.h. */
31809
31810
31811#define freeifaddrs innocuous_freeifaddrs
31812#ifdef __STDC__
31813# include <limits.h>
31814#else
31815# include <assert.h>
31816#endif
31817#undef freeifaddrs
31818#ifdef __cplusplus
31819extern "C"
31820#endif
31821char freeifaddrs ();
31822#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31823choke me
31824#endif
31825
31826int main (void)
31827{
31828return freeifaddrs ();
31829 ;
31830 return 0;
31831}
31832
31833_ACEOF
31834if ac_fn_c_try_link "$LINENO"; then :
31835
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31837$as_echo "yes" >&6; }
31838 tst_links_freeifaddrs="yes"
31839
31840else
31841
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31843$as_echo "no" >&6; }
31844 tst_links_freeifaddrs="no"
31845
31846fi
31847rm -f core conftest.err conftest.$ac_objext \
31848 conftest$ac_exeext conftest.$ac_ext
31849 #
31850 if test "$tst_links_freeifaddrs" = "yes"; then
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31852$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31854/* end confdefs.h. */
31855
31856 $curl_includes_ifaddrs
31857
31858_ACEOF
31859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31860 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31861
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31863$as_echo "yes" >&6; }
31864 tst_proto_freeifaddrs="yes"
31865
31866else
31867
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31869$as_echo "no" >&6; }
31870 tst_proto_freeifaddrs="no"
31871
31872fi
31873rm -f conftest*
31874
31875 fi
31876 #
31877 if test "$tst_proto_freeifaddrs" = "yes"; then
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31879$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31881/* end confdefs.h. */
31882
31883
31884 $curl_includes_ifaddrs
31885
31886int main (void)
31887{
31888
31889 freeifaddrs(0);
31890
31891 ;
31892 return 0;
31893}
31894
31895_ACEOF
31896if ac_fn_c_try_compile "$LINENO"; then :
31897
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31899$as_echo "yes" >&6; }
31900 tst_compi_freeifaddrs="yes"
31901
31902else
31903
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31905$as_echo "no" >&6; }
31906 tst_compi_freeifaddrs="no"
31907
31908fi
31909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910 fi
31911 #
31912 if test "$tst_compi_freeifaddrs" = "yes"; then
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31914$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31915 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31917$as_echo "yes" >&6; }
31918 tst_allow_freeifaddrs="yes"
31919 else
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31921$as_echo "no" >&6; }
31922 tst_allow_freeifaddrs="no"
31923 fi
31924 fi
31925 #
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31927$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31928 if test "$tst_links_freeifaddrs" = "yes" &&
31929 test "$tst_proto_freeifaddrs" = "yes" &&
31930 test "$tst_compi_freeifaddrs" = "yes" &&
31931 test "$tst_allow_freeifaddrs" = "yes"; then
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31933$as_echo "yes" >&6; }
31934
31935cat >>confdefs.h <<_ACEOF
31936#define HAVE_FREEIFADDRS 1
31937_ACEOF
31938
31939 curl_cv_func_freeifaddrs="yes"
31940 else
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943 curl_cv_func_freeifaddrs="no"
31944 fi
31945
31946
31947curl_includes_sys_xattr="\
31948/* includes start */
31949#ifdef HAVE_SYS_TYPES_H
31950# include <sys/types.h>
31951#endif
31952#ifdef HAVE_SYS_XATTR_H
31953# include <sys/xattr.h>
31954#endif
31955/* includes end */"
31956 for ac_header in sys/types.h sys/xattr.h
31957do :
31958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31960"
31961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31962 cat >>confdefs.h <<_ACEOF
31963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31964_ACEOF
31965
31966fi
31967
31968done
31969
31970
31971
31972 #
31973 tst_links_fsetxattr="unknown"
31974 tst_proto_fsetxattr="unknown"
31975 tst_compi_fsetxattr="unknown"
31976 tst_allow_fsetxattr="unknown"
31977 tst_nargs_fsetxattr="unknown"
31978 #
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31980$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31982/* end confdefs.h. */
31983
31984
31985#define fsetxattr innocuous_fsetxattr
31986#ifdef __STDC__
31987# include <limits.h>
31988#else
31989# include <assert.h>
31990#endif
31991#undef fsetxattr
31992#ifdef __cplusplus
31993extern "C"
31994#endif
31995char fsetxattr ();
31996#if defined __stub_fsetxattr || defined __stub___fsetxattr
31997choke me
31998#endif
31999
32000int main (void)
32001{
32002return fsetxattr ();
32003 ;
32004 return 0;
32005}
32006
32007_ACEOF
32008if ac_fn_c_try_link "$LINENO"; then :
32009
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32011$as_echo "yes" >&6; }
32012 tst_links_fsetxattr="yes"
32013
32014else
32015
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32017$as_echo "no" >&6; }
32018 tst_links_fsetxattr="no"
32019
32020fi
32021rm -f core conftest.err conftest.$ac_objext \
32022 conftest$ac_exeext conftest.$ac_ext
32023 #
32024 if test "$tst_links_fsetxattr" = "yes"; then
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32026$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32028/* end confdefs.h. */
32029
32030 $curl_includes_sys_xattr
32031
32032_ACEOF
32033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32034 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32035
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037$as_echo "yes" >&6; }
32038 tst_proto_fsetxattr="yes"
32039
32040else
32041
32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32043$as_echo "no" >&6; }
32044 tst_proto_fsetxattr="no"
32045
32046fi
32047rm -f conftest*
32048
32049 fi
32050 #
32051 if test "$tst_proto_fsetxattr" = "yes"; then
32052 if test "$tst_nargs_fsetxattr" = "unknown"; then
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32054$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32056/* end confdefs.h. */
32057
32058
32059 $curl_includes_sys_xattr
32060
32061int main (void)
32062{
32063
32064 if(0 != fsetxattr(0, 0, 0, 0, 0))
32065 return 1;
32066
32067 ;
32068 return 0;
32069}
32070
32071_ACEOF
32072if ac_fn_c_try_compile "$LINENO"; then :
32073
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32075$as_echo "yes" >&6; }
32076 tst_compi_fsetxattr="yes"
32077 tst_nargs_fsetxattr="5"
32078
32079else
32080
32081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32082$as_echo "no" >&6; }
32083 tst_compi_fsetxattr="no"
32084
32085fi
32086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087 fi
32088 if test "$tst_nargs_fsetxattr" = "unknown"; then
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32090$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32092/* end confdefs.h. */
32093
32094
32095 $curl_includes_sys_xattr
32096
32097int main (void)
32098{
32099
32100 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32101 return 1;
32102
32103 ;
32104 return 0;
32105}
32106
32107_ACEOF
32108if ac_fn_c_try_compile "$LINENO"; then :
32109
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32111$as_echo "yes" >&6; }
32112 tst_compi_fsetxattr="yes"
32113 tst_nargs_fsetxattr="6"
32114
32115else
32116
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32118$as_echo "no" >&6; }
32119 tst_compi_fsetxattr="no"
32120
32121fi
32122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32123 fi
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32125$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32126 if test "$tst_compi_fsetxattr" = "yes"; then
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32128$as_echo "yes" >&6; }
32129 else
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32131$as_echo "no" >&6; }
32132 fi
32133 fi
32134 #
32135 if test "$tst_compi_fsetxattr" = "yes"; then
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32137$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32138 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32140$as_echo "yes" >&6; }
32141 tst_allow_fsetxattr="yes"
32142 else
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32144$as_echo "no" >&6; }
32145 tst_allow_fsetxattr="no"
32146 fi
32147 fi
32148 #
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32150$as_echo_n "checking if fsetxattr might be used... " >&6; }
32151 if test "$tst_links_fsetxattr" = "yes" &&
32152 test "$tst_proto_fsetxattr" = "yes" &&
32153 test "$tst_compi_fsetxattr" = "yes" &&
32154 test "$tst_allow_fsetxattr" = "yes"; then
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32156$as_echo "yes" >&6; }
32157
32158cat >>confdefs.h <<_ACEOF
32159#define HAVE_FSETXATTR 1
32160_ACEOF
32161
32162 #
32163 if test "$tst_nargs_fsetxattr" -eq "5"; then
32164
32165$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32166
32167 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32168
32169$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32170
32171 fi
32172 #
32173 curl_cv_func_fsetxattr="yes"
32174 else
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32176$as_echo "no" >&6; }
32177 curl_cv_func_fsetxattr="no"
32178 fi
32179
32180
32181 #
32182 tst_links_ftruncate="unknown"
32183 tst_proto_ftruncate="unknown"
32184 tst_compi_ftruncate="unknown"
32185 tst_allow_ftruncate="unknown"
32186 #
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32188$as_echo_n "checking if ftruncate can be linked... " >&6; }
32189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32190/* end confdefs.h. */
32191
32192
32193#define ftruncate innocuous_ftruncate
32194#ifdef __STDC__
32195# include <limits.h>
32196#else
32197# include <assert.h>
32198#endif
32199#undef ftruncate
32200#ifdef __cplusplus
32201extern "C"
32202#endif
32203char ftruncate ();
32204#if defined __stub_ftruncate || defined __stub___ftruncate
32205choke me
32206#endif
32207
32208int main (void)
32209{
32210return ftruncate ();
32211 ;
32212 return 0;
32213}
32214
32215_ACEOF
32216if ac_fn_c_try_link "$LINENO"; then :
32217
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32219$as_echo "yes" >&6; }
32220 tst_links_ftruncate="yes"
32221
32222else
32223
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32225$as_echo "no" >&6; }
32226 tst_links_ftruncate="no"
32227
32228fi
32229rm -f core conftest.err conftest.$ac_objext \
32230 conftest$ac_exeext conftest.$ac_ext
32231 #
32232 if test "$tst_links_ftruncate" = "yes"; then
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32234$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32236/* end confdefs.h. */
32237
32238 $curl_includes_unistd
32239
32240_ACEOF
32241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32242 $EGREP "ftruncate" >/dev/null 2>&1; then :
32243
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32245$as_echo "yes" >&6; }
32246 tst_proto_ftruncate="yes"
32247
32248else
32249
32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32251$as_echo "no" >&6; }
32252 tst_proto_ftruncate="no"
32253
32254fi
32255rm -f conftest*
32256
32257 fi
32258 #
32259 if test "$tst_proto_ftruncate" = "yes"; then
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32261$as_echo_n "checking if ftruncate is compilable... " >&6; }
32262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32263/* end confdefs.h. */
32264
32265
32266 $curl_includes_unistd
32267
32268int main (void)
32269{
32270
32271 if(0 != ftruncate(0, 0))
32272 return 1;
32273
32274 ;
32275 return 0;
32276}
32277
32278_ACEOF
32279if ac_fn_c_try_compile "$LINENO"; then :
32280
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32282$as_echo "yes" >&6; }
32283 tst_compi_ftruncate="yes"
32284
32285else
32286
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32288$as_echo "no" >&6; }
32289 tst_compi_ftruncate="no"
32290
32291fi
32292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32293 fi
32294 #
32295 if test "$tst_compi_ftruncate" = "yes"; then
32296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32297$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32298 if test "x$curl_disallow_ftruncate" != "xyes"; then
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32300$as_echo "yes" >&6; }
32301 tst_allow_ftruncate="yes"
32302 else
32303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32304$as_echo "no" >&6; }
32305 tst_allow_ftruncate="no"
32306 fi
32307 fi
32308 #
32309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32310$as_echo_n "checking if ftruncate might be used... " >&6; }
32311 if test "$tst_links_ftruncate" = "yes" &&
32312 test "$tst_proto_ftruncate" = "yes" &&
32313 test "$tst_compi_ftruncate" = "yes" &&
32314 test "$tst_allow_ftruncate" = "yes"; then
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32316$as_echo "yes" >&6; }
32317
32318cat >>confdefs.h <<_ACEOF
32319#define HAVE_FTRUNCATE 1
32320_ACEOF
32321
32322 curl_cv_func_ftruncate="yes"
32323 else
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32325$as_echo "no" >&6; }
32326 curl_cv_func_ftruncate="no"
32327 fi
32328
32329
32330curl_includes_stdlib="\
32331/* includes start */
32332#ifdef HAVE_SYS_TYPES_H
32333# include <sys/types.h>
32334#endif
32335#ifdef HAVE_STDLIB_H
32336# include <stdlib.h>
32337#endif
32338/* includes end */"
32339 for ac_header in sys/types.h stdlib.h
32340do :
32341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32342ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32343"
32344if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32345 cat >>confdefs.h <<_ACEOF
32346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32347_ACEOF
32348
32349fi
32350
32351done
32352
32353
32354
32355 #
32356 tst_links_getaddrinfo="unknown"
32357 tst_proto_getaddrinfo="unknown"
32358 tst_compi_getaddrinfo="unknown"
32359 tst_works_getaddrinfo="unknown"
32360 tst_allow_getaddrinfo="unknown"
32361 tst_tsafe_getaddrinfo="unknown"
32362 #
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32364$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366/* end confdefs.h. */
32367
32368
32369 $curl_includes_ws2tcpip
32370 $curl_includes_sys_socket
32371 $curl_includes_netdb
32372
32373int main (void)
32374{
32375
32376 if(0 != getaddrinfo(0, 0, 0, 0))
32377 return 1;
32378
32379 ;
32380 return 0;
32381}
32382
32383_ACEOF
32384if ac_fn_c_try_link "$LINENO"; then :
32385
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32387$as_echo "yes" >&6; }
32388 tst_links_getaddrinfo="yes"
32389
32390else
32391
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32393$as_echo "no" >&6; }
32394 tst_links_getaddrinfo="no"
32395
32396fi
32397rm -f core conftest.err conftest.$ac_objext \
32398 conftest$ac_exeext conftest.$ac_ext
32399 #
32400 if test "$tst_links_getaddrinfo" = "yes"; then
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32402$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32404/* end confdefs.h. */
32405
32406 $curl_includes_ws2tcpip
32407 $curl_includes_sys_socket
32408 $curl_includes_netdb
32409
32410_ACEOF
32411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32412 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32413
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32415$as_echo "yes" >&6; }
32416 tst_proto_getaddrinfo="yes"
32417
32418else
32419
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32421$as_echo "no" >&6; }
32422 tst_proto_getaddrinfo="no"
32423
32424fi
32425rm -f conftest*
32426
32427 fi
32428 #
32429 if test "$tst_proto_getaddrinfo" = "yes"; then
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32431$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32433/* end confdefs.h. */
32434
32435
32436 $curl_includes_ws2tcpip
32437 $curl_includes_sys_socket
32438 $curl_includes_netdb
32439
32440int main (void)
32441{
32442
32443 if(0 != getaddrinfo(0, 0, 0, 0))
32444 return 1;
32445
32446 ;
32447 return 0;
32448}
32449
32450_ACEOF
32451if ac_fn_c_try_compile "$LINENO"; then :
32452
32453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32454$as_echo "yes" >&6; }
32455 tst_compi_getaddrinfo="yes"
32456
32457else
32458
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32460$as_echo "no" >&6; }
32461 tst_compi_getaddrinfo="no"
32462
32463fi
32464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32465 fi
32466 #
32467 if test "x$cross_compiling" != "xyes" &&
32468 test "$tst_compi_getaddrinfo" = "yes"; then
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32470$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32471 if test "$cross_compiling" = yes; then :
32472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32474as_fn_error $? "cannot run test program while cross compiling
32475See \`config.log' for more details" "$LINENO" 5; }
32476else
32477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32478/* end confdefs.h. */
32479
32480
32481 $curl_includes_ws2tcpip
32482 $curl_includes_stdlib
32483 $curl_includes_string
32484 $curl_includes_sys_socket
32485 $curl_includes_netdb
32486
32487int main (void)
32488{
32489
32490 struct addrinfo hints;
32491 struct addrinfo *ai = 0;
32492 int error;
32493
32494 #ifdef HAVE_WINSOCK2_H
32495 WSADATA wsa;
32496 if (WSAStartup(MAKEWORD(2,2), &wsa))
32497 exit(2);
32498 #endif
32499
32500 memset(&hints, 0, sizeof(hints));
32501 hints.ai_flags = AI_NUMERICHOST;
32502 hints.ai_family = AF_UNSPEC;
32503 hints.ai_socktype = SOCK_STREAM;
32504 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32505 if(error || !ai)
32506 exit(1); /* fail */
32507 else
32508 exit(0);
32509
32510 ;
32511 return 0;
32512}
32513
32514_ACEOF
32515if ac_fn_c_try_run "$LINENO"; then :
32516
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32518$as_echo "yes" >&6; }
32519 tst_works_getaddrinfo="yes"
32520
32521else
32522
32523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32524$as_echo "no" >&6; }
32525 tst_works_getaddrinfo="no"
32526
32527fi
32528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32529 conftest.$ac_objext conftest.beam conftest.$ac_ext
32530fi
32531
32532 fi
32533 #
32534 if test "$tst_compi_getaddrinfo" = "yes" &&
32535 test "$tst_works_getaddrinfo" != "no"; then
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32537$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32538 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540$as_echo "yes" >&6; }
32541 tst_allow_getaddrinfo="yes"
32542 else
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32544$as_echo "no" >&6; }
32545 tst_allow_getaddrinfo="no"
32546 fi
32547 fi
32548 #
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32550$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32551 if test "$tst_links_getaddrinfo" = "yes" &&
32552 test "$tst_proto_getaddrinfo" = "yes" &&
32553 test "$tst_compi_getaddrinfo" = "yes" &&
32554 test "$tst_allow_getaddrinfo" = "yes" &&
32555 test "$tst_works_getaddrinfo" != "no"; then
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32557$as_echo "yes" >&6; }
32558
32559cat >>confdefs.h <<_ACEOF
32560#define HAVE_GETADDRINFO 1
32561_ACEOF
32562
32563 curl_cv_func_getaddrinfo="yes"
32564 else
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566$as_echo "no" >&6; }
32567 curl_cv_func_getaddrinfo="no"
32568 curl_cv_func_getaddrinfo_threadsafe="no"
32569 fi
32570 #
32571 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32573$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32574 case $host_os in
32575 aix[1234].* | aix5.[01].*)
32576 tst_tsafe_getaddrinfo="no"
32577 ;;
32578 aix*)
32579 tst_tsafe_getaddrinfo="yes"
32580 ;;
32581 darwin[12345].*)
32582 tst_tsafe_getaddrinfo="no"
32583 ;;
32584 darwin*)
32585 tst_tsafe_getaddrinfo="yes"
32586 ;;
32587 freebsd[1234].* | freebsd5.[1234]*)
32588 tst_tsafe_getaddrinfo="no"
32589 ;;
32590 freebsd*)
32591 tst_tsafe_getaddrinfo="yes"
32592 ;;
32593 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32594 tst_tsafe_getaddrinfo="no"
32595 ;;
32596 hpux*)
32597 tst_tsafe_getaddrinfo="yes"
32598 ;;
32599 netbsd[123].*)
32600 tst_tsafe_getaddrinfo="no"
32601 ;;
32602 netbsd*)
32603 tst_tsafe_getaddrinfo="yes"
32604 ;;
32605 *bsd*)
32606 tst_tsafe_getaddrinfo="no"
32607 ;;
32608 solaris2*)
32609 tst_tsafe_getaddrinfo="yes"
32610 ;;
32611 esac
32612 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32613 test "$curl_cv_native_windows" = "yes"; then
32614 tst_tsafe_getaddrinfo="yes"
32615 fi
32616 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32617
32618
32619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32620/* end confdefs.h. */
32621
32622
32623 $curl_includes_sys_socket
32624 $curl_includes_netdb
32625
32626int main (void)
32627{
32628#ifdef h_errno
32629 return 0;
32630#else
32631 force compilation error
32632#endif
32633}
32634
32635
32636_ACEOF
32637if ac_fn_c_try_compile "$LINENO"; then :
32638
32639 tst_symbol_defined="yes"
32640
32641else
32642
32643 tst_symbol_defined="no"
32644
32645fi
32646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32647 if test "$tst_symbol_defined" = "yes"; then
32648 curl_cv_have_def_h_errno=yes
32649
32650 else
32651 curl_cv_have_def_h_errno=no
32652
32653 fi
32654
32655 if test "$curl_cv_have_def_h_errno" = "yes"; then
32656 tst_h_errno_macro="yes"
32657 else
32658 tst_h_errno_macro="no"
32659 fi
32660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32661/* end confdefs.h. */
32662
32663
32664 $curl_includes_sys_socket
32665 $curl_includes_netdb
32666
32667int main (void)
32668{
32669
32670 h_errno = 2;
32671 if(0 != h_errno)
32672 return 1;
32673
32674 ;
32675 return 0;
32676}
32677
32678_ACEOF
32679if ac_fn_c_try_compile "$LINENO"; then :
32680
32681 tst_h_errno_modifiable_lvalue="yes"
32682
32683else
32684
32685 tst_h_errno_modifiable_lvalue="no"
32686
32687fi
32688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32690/* end confdefs.h. */
32691
32692
32693
32694int main (void)
32695{
32696
32697#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32698 return 0;
32699#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32700 return 0;
32701#else
32702 force compilation error
32703#endif
32704
32705 ;
32706 return 0;
32707}
32708
32709_ACEOF
32710if ac_fn_c_try_compile "$LINENO"; then :
32711
32712 tst_h_errno_sbs_issue_7="yes"
32713
32714else
32715
32716 tst_h_errno_sbs_issue_7="no"
32717
32718fi
32719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32720 if test "$tst_h_errno_macro" = "no" &&
32721 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32722 test "$tst_h_errno_sbs_issue_7" = "no"; then
32723 tst_tsafe_getaddrinfo="no"
32724 else
32725 tst_tsafe_getaddrinfo="yes"
32726 fi
32727 fi
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32729$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32730 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32731
32732cat >>confdefs.h <<_ACEOF
32733#define HAVE_GETADDRINFO_THREADSAFE 1
32734_ACEOF
32735
32736 curl_cv_func_getaddrinfo_threadsafe="yes"
32737 else
32738 curl_cv_func_getaddrinfo_threadsafe="no"
32739 fi
32740 fi
32741
32742
32743 #
32744 tst_links_gai_strerror="unknown"
32745 tst_proto_gai_strerror="unknown"
32746 tst_compi_gai_strerror="unknown"
32747 tst_allow_gai_strerror="unknown"
32748 #
32749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32750$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752/* end confdefs.h. */
32753
32754
32755 $curl_includes_winsock2
32756 $curl_includes_netdb
32757
32758int main (void)
32759{
32760
32761 if(0 != gai_strerror(0))
32762 return 1;
32763
32764 ;
32765 return 0;
32766}
32767
32768_ACEOF
32769if ac_fn_c_try_link "$LINENO"; then :
32770
32771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32772$as_echo "yes" >&6; }
32773 tst_links_gai_strerror="yes"
32774
32775else
32776
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32778$as_echo "no" >&6; }
32779 tst_links_gai_strerror="no"
32780
32781fi
32782rm -f core conftest.err conftest.$ac_objext \
32783 conftest$ac_exeext conftest.$ac_ext
32784 #
32785 if test "$tst_links_gai_strerror" = "yes"; then
32786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32787$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32789/* end confdefs.h. */
32790
32791 $curl_includes_winsock2
32792 $curl_includes_netdb
32793
32794_ACEOF
32795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32796 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32797
32798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32799$as_echo "yes" >&6; }
32800 tst_proto_gai_strerror="yes"
32801
32802else
32803
32804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32805$as_echo "no" >&6; }
32806 tst_proto_gai_strerror="no"
32807
32808fi
32809rm -f conftest*
32810
32811 fi
32812 #
32813 if test "$tst_proto_gai_strerror" = "yes"; then
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32815$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32817/* end confdefs.h. */
32818
32819
32820 $curl_includes_winsock2
32821 $curl_includes_netdb
32822
32823int main (void)
32824{
32825
32826 if(0 != gai_strerror(0))
32827 return 1;
32828
32829 ;
32830 return 0;
32831}
32832
32833_ACEOF
32834if ac_fn_c_try_compile "$LINENO"; then :
32835
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32837$as_echo "yes" >&6; }
32838 tst_compi_gai_strerror="yes"
32839
32840else
32841
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32843$as_echo "no" >&6; }
32844 tst_compi_gai_strerror="no"
32845
32846fi
32847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 fi
32849 #
32850 if test "$tst_compi_gai_strerror" = "yes"; then
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32852$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32853 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32855$as_echo "yes" >&6; }
32856 tst_allow_gai_strerror="yes"
32857 else
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32859$as_echo "no" >&6; }
32860 tst_allow_gai_strerror="no"
32861 fi
32862 fi
32863 #
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32865$as_echo_n "checking if gai_strerror might be used... " >&6; }
32866 if test "$tst_links_gai_strerror" = "yes" &&
32867 test "$tst_proto_gai_strerror" = "yes" &&
32868 test "$tst_compi_gai_strerror" = "yes" &&
32869 test "$tst_allow_gai_strerror" = "yes"; then
32870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32871$as_echo "yes" >&6; }
32872
32873cat >>confdefs.h <<_ACEOF
32874#define HAVE_GAI_STRERROR 1
32875_ACEOF
32876
32877 curl_cv_func_gai_strerror="yes"
32878 else
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32880$as_echo "no" >&6; }
32881 curl_cv_func_gai_strerror="no"
32882 fi
32883
32884
32885 #
32886 tst_links_gethostbyaddr="unknown"
32887 tst_proto_gethostbyaddr="unknown"
32888 tst_compi_gethostbyaddr="unknown"
32889 tst_allow_gethostbyaddr="unknown"
32890 #
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32892$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32894/* end confdefs.h. */
32895
32896
32897 $curl_includes_winsock2
32898 $curl_includes_netdb
32899
32900int main (void)
32901{
32902
32903 if(0 != gethostbyaddr(0, 0, 0))
32904 return 1;
32905
32906 ;
32907 return 0;
32908}
32909
32910_ACEOF
32911if ac_fn_c_try_link "$LINENO"; then :
32912
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914$as_echo "yes" >&6; }
32915 tst_links_gethostbyaddr="yes"
32916
32917else
32918
32919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32920$as_echo "no" >&6; }
32921 tst_links_gethostbyaddr="no"
32922
32923fi
32924rm -f core conftest.err conftest.$ac_objext \
32925 conftest$ac_exeext conftest.$ac_ext
32926 #
32927 if test "$tst_links_gethostbyaddr" = "yes"; then
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32929$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32931/* end confdefs.h. */
32932
32933 $curl_includes_winsock2
32934 $curl_includes_netdb
32935
32936_ACEOF
32937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32938 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32939
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941$as_echo "yes" >&6; }
32942 tst_proto_gethostbyaddr="yes"
32943
32944else
32945
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947$as_echo "no" >&6; }
32948 tst_proto_gethostbyaddr="no"
32949
32950fi
32951rm -f conftest*
32952
32953 fi
32954 #
32955 if test "$tst_proto_gethostbyaddr" = "yes"; then
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32957$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32959/* end confdefs.h. */
32960
32961
32962 $curl_includes_winsock2
32963 $curl_includes_netdb
32964
32965int main (void)
32966{
32967
32968 if(0 != gethostbyaddr(0, 0, 0))
32969 return 1;
32970
32971 ;
32972 return 0;
32973}
32974
32975_ACEOF
32976if ac_fn_c_try_compile "$LINENO"; then :
32977
32978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32979$as_echo "yes" >&6; }
32980 tst_compi_gethostbyaddr="yes"
32981
32982else
32983
32984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32985$as_echo "no" >&6; }
32986 tst_compi_gethostbyaddr="no"
32987
32988fi
32989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32990 fi
32991 #
32992 if test "$tst_compi_gethostbyaddr" = "yes"; then
32993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32994$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32995 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32997$as_echo "yes" >&6; }
32998 tst_allow_gethostbyaddr="yes"
32999 else
33000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33001$as_echo "no" >&6; }
33002 tst_allow_gethostbyaddr="no"
33003 fi
33004 fi
33005 #
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33007$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33008 if test "$tst_links_gethostbyaddr" = "yes" &&
33009 test "$tst_proto_gethostbyaddr" = "yes" &&
33010 test "$tst_compi_gethostbyaddr" = "yes" &&
33011 test "$tst_allow_gethostbyaddr" = "yes"; then
33012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33013$as_echo "yes" >&6; }
33014
33015cat >>confdefs.h <<_ACEOF
33016#define HAVE_GETHOSTBYADDR 1
33017_ACEOF
33018
33019 curl_cv_func_gethostbyaddr="yes"
33020 else
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022$as_echo "no" >&6; }
33023 curl_cv_func_gethostbyaddr="no"
33024 fi
33025
33026
33027 #
33028 tst_links_gethostbyaddr_r="unknown"
33029 tst_proto_gethostbyaddr_r="unknown"
33030 tst_compi_gethostbyaddr_r="unknown"
33031 tst_allow_gethostbyaddr_r="unknown"
33032 tst_nargs_gethostbyaddr_r="unknown"
33033 #
33034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33035$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33037/* end confdefs.h. */
33038
33039
33040#define gethostbyaddr_r innocuous_gethostbyaddr_r
33041#ifdef __STDC__
33042# include <limits.h>
33043#else
33044# include <assert.h>
33045#endif
33046#undef gethostbyaddr_r
33047#ifdef __cplusplus
33048extern "C"
33049#endif
33050char gethostbyaddr_r ();
33051#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33052choke me
33053#endif
33054
33055int main (void)
33056{
33057return gethostbyaddr_r ();
33058 ;
33059 return 0;
33060}
33061
33062_ACEOF
33063if ac_fn_c_try_link "$LINENO"; then :
33064
33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33066$as_echo "yes" >&6; }
33067 tst_links_gethostbyaddr_r="yes"
33068
33069else
33070
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33072$as_echo "no" >&6; }
33073 tst_links_gethostbyaddr_r="no"
33074
33075fi
33076rm -f core conftest.err conftest.$ac_objext \
33077 conftest$ac_exeext conftest.$ac_ext
33078 #
33079 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33081$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33083/* end confdefs.h. */
33084
33085 $curl_includes_netdb
33086
33087_ACEOF
33088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33089 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33090
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33092$as_echo "yes" >&6; }
33093 tst_proto_gethostbyaddr_r="yes"
33094
33095else
33096
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33098$as_echo "no" >&6; }
33099 tst_proto_gethostbyaddr_r="no"
33100
33101fi
33102rm -f conftest*
33103
33104 fi
33105 #
33106 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33107 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33109$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33111/* end confdefs.h. */
33112
33113
33114 $curl_includes_netdb
33115
33116int main (void)
33117{
33118
33119 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33120 return 1;
33121
33122 ;
33123 return 0;
33124}
33125
33126_ACEOF
33127if ac_fn_c_try_compile "$LINENO"; then :
33128
33129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33130$as_echo "yes" >&6; }
33131 tst_compi_gethostbyaddr_r="yes"
33132 tst_nargs_gethostbyaddr_r="5"
33133
33134else
33135
33136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33137$as_echo "no" >&6; }
33138 tst_compi_gethostbyaddr_r="no"
33139
33140fi
33141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33142 fi
33143 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33145$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33147/* end confdefs.h. */
33148
33149
33150 $curl_includes_netdb
33151
33152int main (void)
33153{
33154
33155 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33156 return 1;
33157
33158 ;
33159 return 0;
33160}
33161
33162_ACEOF
33163if ac_fn_c_try_compile "$LINENO"; then :
33164
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33166$as_echo "yes" >&6; }
33167 tst_compi_gethostbyaddr_r="yes"
33168 tst_nargs_gethostbyaddr_r="7"
33169
33170else
33171
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173$as_echo "no" >&6; }
33174 tst_compi_gethostbyaddr_r="no"
33175
33176fi
33177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33178 fi
33179 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33181$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33183/* end confdefs.h. */
33184
33185
33186 $curl_includes_netdb
33187
33188int main (void)
33189{
33190
33191 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33192 return 1;
33193
33194 ;
33195 return 0;
33196}
33197
33198_ACEOF
33199if ac_fn_c_try_compile "$LINENO"; then :
33200
33201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33202$as_echo "yes" >&6; }
33203 tst_compi_gethostbyaddr_r="yes"
33204 tst_nargs_gethostbyaddr_r="8"
33205
33206else
33207
33208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33209$as_echo "no" >&6; }
33210 tst_compi_gethostbyaddr_r="no"
33211
33212fi
33213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 fi
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33216$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33217 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33219$as_echo "yes" >&6; }
33220 else
33221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33222$as_echo "no" >&6; }
33223 fi
33224 fi
33225 #
33226 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33228$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33229 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33231$as_echo "yes" >&6; }
33232 tst_allow_gethostbyaddr_r="yes"
33233 else
33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235$as_echo "no" >&6; }
33236 tst_allow_gethostbyaddr_r="no"
33237 fi
33238 fi
33239 #
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33241$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33242 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33243 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33244 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33245 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33247$as_echo "yes" >&6; }
33248
33249cat >>confdefs.h <<_ACEOF
33250#define HAVE_GETHOSTBYADDR_R 1
33251_ACEOF
33252
33253 #
33254 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33255
33256$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33257
33258 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33259
33260$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33261
33262 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33263
33264$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33265
33266 fi
33267 #
33268 curl_cv_func_gethostbyaddr_r="yes"
33269 else
33270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33271$as_echo "no" >&6; }
33272 curl_cv_func_gethostbyaddr_r="no"
33273 fi
33274
33275
33276 #
33277 tst_links_gethostbyname="unknown"
33278 tst_proto_gethostbyname="unknown"
33279 tst_compi_gethostbyname="unknown"
33280 tst_allow_gethostbyname="unknown"
33281 #
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33283$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33285/* end confdefs.h. */
33286
33287
33288 $curl_includes_winsock2
33289 $curl_includes_netdb
33290
33291int main (void)
33292{
33293
33294 if(0 != gethostbyname(0))
33295 return 1;
33296
33297 ;
33298 return 0;
33299}
33300
33301_ACEOF
33302if ac_fn_c_try_link "$LINENO"; then :
33303
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305$as_echo "yes" >&6; }
33306 tst_links_gethostbyname="yes"
33307
33308else
33309
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311$as_echo "no" >&6; }
33312 tst_links_gethostbyname="no"
33313
33314fi
33315rm -f core conftest.err conftest.$ac_objext \
33316 conftest$ac_exeext conftest.$ac_ext
33317 #
33318 if test "$tst_links_gethostbyname" = "yes"; then
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33320$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33322/* end confdefs.h. */
33323
33324 $curl_includes_winsock2
33325 $curl_includes_netdb
33326
33327_ACEOF
33328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33329 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33330
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332$as_echo "yes" >&6; }
33333 tst_proto_gethostbyname="yes"
33334
33335else
33336
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33338$as_echo "no" >&6; }
33339 tst_proto_gethostbyname="no"
33340
33341fi
33342rm -f conftest*
33343
33344 fi
33345 #
33346 if test "$tst_proto_gethostbyname" = "yes"; then
33347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33348$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33350/* end confdefs.h. */
33351
33352
33353 $curl_includes_winsock2
33354 $curl_includes_netdb
33355
33356int main (void)
33357{
33358
33359 if(0 != gethostbyname(0))
33360 return 1;
33361
33362 ;
33363 return 0;
33364}
33365
33366_ACEOF
33367if ac_fn_c_try_compile "$LINENO"; then :
33368
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33370$as_echo "yes" >&6; }
33371 tst_compi_gethostbyname="yes"
33372
33373else
33374
33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33376$as_echo "no" >&6; }
33377 tst_compi_gethostbyname="no"
33378
33379fi
33380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 fi
33382 #
33383 if test "$tst_compi_gethostbyname" = "yes"; then
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33385$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33386 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33388$as_echo "yes" >&6; }
33389 tst_allow_gethostbyname="yes"
33390 else
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33392$as_echo "no" >&6; }
33393 tst_allow_gethostbyname="no"
33394 fi
33395 fi
33396 #
33397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33398$as_echo_n "checking if gethostbyname might be used... " >&6; }
33399 if test "$tst_links_gethostbyname" = "yes" &&
33400 test "$tst_proto_gethostbyname" = "yes" &&
33401 test "$tst_compi_gethostbyname" = "yes" &&
33402 test "$tst_allow_gethostbyname" = "yes"; then
33403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33404$as_echo "yes" >&6; }
33405
33406cat >>confdefs.h <<_ACEOF
33407#define HAVE_GETHOSTBYNAME 1
33408_ACEOF
33409
33410 curl_cv_func_gethostbyname="yes"
33411 else
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33413$as_echo "no" >&6; }
33414 curl_cv_func_gethostbyname="no"
33415 fi
33416
33417
33418 #
33419 tst_links_gethostbyname_r="unknown"
33420 tst_proto_gethostbyname_r="unknown"
33421 tst_compi_gethostbyname_r="unknown"
33422 tst_allow_gethostbyname_r="unknown"
33423 tst_nargs_gethostbyname_r="unknown"
33424 #
33425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33426$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33428/* end confdefs.h. */
33429
33430
33431#define gethostbyname_r innocuous_gethostbyname_r
33432#ifdef __STDC__
33433# include <limits.h>
33434#else
33435# include <assert.h>
33436#endif
33437#undef gethostbyname_r
33438#ifdef __cplusplus
33439extern "C"
33440#endif
33441char gethostbyname_r ();
33442#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33443choke me
33444#endif
33445
33446int main (void)
33447{
33448return gethostbyname_r ();
33449 ;
33450 return 0;
33451}
33452
33453_ACEOF
33454if ac_fn_c_try_link "$LINENO"; then :
33455
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33457$as_echo "yes" >&6; }
33458 tst_links_gethostbyname_r="yes"
33459
33460else
33461
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33463$as_echo "no" >&6; }
33464 tst_links_gethostbyname_r="no"
33465
33466fi
33467rm -f core conftest.err conftest.$ac_objext \
33468 conftest$ac_exeext conftest.$ac_ext
33469 #
33470 if test "$tst_links_gethostbyname_r" = "yes"; then
33471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33472$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33474/* end confdefs.h. */
33475
33476 $curl_includes_netdb
33477
33478_ACEOF
33479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33480 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33481
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483$as_echo "yes" >&6; }
33484 tst_proto_gethostbyname_r="yes"
33485
33486else
33487
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33489$as_echo "no" >&6; }
33490 tst_proto_gethostbyname_r="no"
33491
33492fi
33493rm -f conftest*
33494
33495 fi
33496 #
33497 if test "$tst_proto_gethostbyname_r" = "yes"; then
33498 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33500$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33502/* end confdefs.h. */
33503
33504
33505 $curl_includes_netdb
33506
33507int main (void)
33508{
33509
33510 if(0 != gethostbyname_r(0, 0, 0))
33511 return 1;
33512
33513 ;
33514 return 0;
33515}
33516
33517_ACEOF
33518if ac_fn_c_try_compile "$LINENO"; then :
33519
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33521$as_echo "yes" >&6; }
33522 tst_compi_gethostbyname_r="yes"
33523 tst_nargs_gethostbyname_r="3"
33524
33525else
33526
33527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33528$as_echo "no" >&6; }
33529 tst_compi_gethostbyname_r="no"
33530
33531fi
33532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533 fi
33534 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33536$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33538/* end confdefs.h. */
33539
33540
33541 $curl_includes_netdb
33542
33543int main (void)
33544{
33545
33546 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33547 return 1;
33548
33549 ;
33550 return 0;
33551}
33552
33553_ACEOF
33554if ac_fn_c_try_compile "$LINENO"; then :
33555
33556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33557$as_echo "yes" >&6; }
33558 tst_compi_gethostbyname_r="yes"
33559 tst_nargs_gethostbyname_r="5"
33560
33561else
33562
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564$as_echo "no" >&6; }
33565 tst_compi_gethostbyname_r="no"
33566
33567fi
33568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33569 fi
33570 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33572$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33574/* end confdefs.h. */
33575
33576
33577 $curl_includes_netdb
33578
33579int main (void)
33580{
33581
33582 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33583 return 1;
33584
33585 ;
33586 return 0;
33587}
33588
33589_ACEOF
33590if ac_fn_c_try_compile "$LINENO"; then :
33591
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33593$as_echo "yes" >&6; }
33594 tst_compi_gethostbyname_r="yes"
33595 tst_nargs_gethostbyname_r="6"
33596
33597else
33598
33599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33600$as_echo "no" >&6; }
33601 tst_compi_gethostbyname_r="no"
33602
33603fi
33604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33605 fi
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33607$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33608 if test "$tst_compi_gethostbyname_r" = "yes"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33610$as_echo "yes" >&6; }
33611 else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614 fi
33615 fi
33616 #
33617 if test "$tst_compi_gethostbyname_r" = "yes"; then
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33619$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33620 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622$as_echo "yes" >&6; }
33623 tst_allow_gethostbyname_r="yes"
33624 else
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33626$as_echo "no" >&6; }
33627 tst_allow_gethostbyname_r="no"
33628 fi
33629 fi
33630 #
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33632$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33633 if test "$tst_links_gethostbyname_r" = "yes" &&
33634 test "$tst_proto_gethostbyname_r" = "yes" &&
33635 test "$tst_compi_gethostbyname_r" = "yes" &&
33636 test "$tst_allow_gethostbyname_r" = "yes"; then
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33638$as_echo "yes" >&6; }
33639
33640cat >>confdefs.h <<_ACEOF
33641#define HAVE_GETHOSTBYNAME_R 1
33642_ACEOF
33643
33644 #
33645 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33646
33647$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33648
33649 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33650
33651$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33652
33653 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33654
33655$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33656
33657 fi
33658 #
33659 curl_cv_func_gethostbyname_r="yes"
33660 else
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33662$as_echo "no" >&6; }
33663 curl_cv_func_gethostbyname_r="no"
33664 fi
33665
33666
33667 #
33668 tst_links_gethostname="unknown"
33669 tst_proto_gethostname="unknown"
33670 tst_compi_gethostname="unknown"
33671 tst_allow_gethostname="unknown"
33672 #
33673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33674$as_echo_n "checking if gethostname can be linked... " >&6; }
33675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33676/* end confdefs.h. */
33677
33678
33679 $curl_includes_winsock2
33680 $curl_includes_unistd
33681
33682int main (void)
33683{
33684
33685 if(0 != gethostname(0, 0))
33686 return 1;
33687
33688 ;
33689 return 0;
33690}
33691
33692_ACEOF
33693if ac_fn_c_try_link "$LINENO"; then :
33694
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696$as_echo "yes" >&6; }
33697 tst_links_gethostname="yes"
33698
33699else
33700
33701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33702$as_echo "no" >&6; }
33703 tst_links_gethostname="no"
33704
33705fi
33706rm -f core conftest.err conftest.$ac_objext \
33707 conftest$ac_exeext conftest.$ac_ext
33708 #
33709 if test "$tst_links_gethostname" = "yes"; then
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33711$as_echo_n "checking if gethostname is prototyped... " >&6; }
33712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33713/* end confdefs.h. */
33714
33715 $curl_includes_winsock2
33716 $curl_includes_unistd
33717
33718_ACEOF
33719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33720 $EGREP "gethostname" >/dev/null 2>&1; then :
33721
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723$as_echo "yes" >&6; }
33724 tst_proto_gethostname="yes"
33725
33726else
33727
33728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33729$as_echo "no" >&6; }
33730 tst_proto_gethostname="no"
33731
33732fi
33733rm -f conftest*
33734
33735 fi
33736 #
33737 if test "$tst_proto_gethostname" = "yes"; then
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33739$as_echo_n "checking if gethostname is compilable... " >&6; }
33740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33741/* end confdefs.h. */
33742
33743
33744 $curl_includes_winsock2
33745 $curl_includes_unistd
33746
33747int main (void)
33748{
33749
33750 if(0 != gethostname(0, 0))
33751 return 1;
33752
33753 ;
33754 return 0;
33755}
33756
33757_ACEOF
33758if ac_fn_c_try_compile "$LINENO"; then :
33759
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33761$as_echo "yes" >&6; }
33762 tst_compi_gethostname="yes"
33763
33764else
33765
33766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33767$as_echo "no" >&6; }
33768 tst_compi_gethostname="no"
33769
33770fi
33771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33772 fi
33773 #
33774 if test "$tst_compi_gethostname" = "yes"; then
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33776$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33777 tst_gethostname_type_arg2="unknown"
33778 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33779 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33780 if test "$tst_gethostname_type_arg2" = "unknown"; then
33781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33782/* end confdefs.h. */
33783
33784
33785 $curl_includes_winsock2
33786 $curl_includes_unistd
33787 $curl_preprocess_callconv
33788 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33789
33790int main (void)
33791{
33792
33793 if(0 != gethostname(0, 0))
33794 return 1;
33795
33796 ;
33797 return 0;
33798}
33799
33800_ACEOF
33801if ac_fn_c_try_compile "$LINENO"; then :
33802
33803 tst_gethostname_type_arg2="$tst_arg2"
33804
33805fi
33806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33807 fi
33808 done
33809 done
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33811$as_echo "$tst_gethostname_type_arg2" >&6; }
33812 if test "$tst_gethostname_type_arg2" != "unknown"; then
33813
33814cat >>confdefs.h <<_ACEOF
33815#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33816_ACEOF
33817
33818 fi
33819 fi
33820 #
33821 if test "$tst_compi_gethostname" = "yes"; then
33822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33823$as_echo_n "checking if gethostname usage allowed... " >&6; }
33824 if test "x$curl_disallow_gethostname" != "xyes"; then
33825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33826$as_echo "yes" >&6; }
33827 tst_allow_gethostname="yes"
33828 else
33829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33830$as_echo "no" >&6; }
33831 tst_allow_gethostname="no"
33832 fi
33833 fi
33834 #
33835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33836$as_echo_n "checking if gethostname might be used... " >&6; }
33837 if test "$tst_links_gethostname" = "yes" &&
33838 test "$tst_proto_gethostname" = "yes" &&
33839 test "$tst_compi_gethostname" = "yes" &&
33840 test "$tst_allow_gethostname" = "yes"; then
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33842$as_echo "yes" >&6; }
33843
33844cat >>confdefs.h <<_ACEOF
33845#define HAVE_GETHOSTNAME 1
33846_ACEOF
33847
33848 curl_cv_func_gethostname="yes"
33849 else
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33851$as_echo "no" >&6; }
33852 curl_cv_func_gethostname="no"
33853 fi
33854
33855
33856 #
33857 tst_links_getifaddrs="unknown"
33858 tst_proto_getifaddrs="unknown"
33859 tst_compi_getifaddrs="unknown"
33860 tst_works_getifaddrs="unknown"
33861 tst_allow_getifaddrs="unknown"
33862 #
33863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33864$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33866/* end confdefs.h. */
33867
33868
33869#define getifaddrs innocuous_getifaddrs
33870#ifdef __STDC__
33871# include <limits.h>
33872#else
33873# include <assert.h>
33874#endif
33875#undef getifaddrs
33876#ifdef __cplusplus
33877extern "C"
33878#endif
33879char getifaddrs ();
33880#if defined __stub_getifaddrs || defined __stub___getifaddrs
33881choke me
33882#endif
33883
33884int main (void)
33885{
33886return getifaddrs ();
33887 ;
33888 return 0;
33889}
33890
33891_ACEOF
33892if ac_fn_c_try_link "$LINENO"; then :
33893
33894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33895$as_echo "yes" >&6; }
33896 tst_links_getifaddrs="yes"
33897
33898else
33899
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33901$as_echo "no" >&6; }
33902 tst_links_getifaddrs="no"
33903
33904fi
33905rm -f core conftest.err conftest.$ac_objext \
33906 conftest$ac_exeext conftest.$ac_ext
33907 #
33908 if test "$tst_links_getifaddrs" = "yes"; then
33909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33910$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33912/* end confdefs.h. */
33913
33914 $curl_includes_ifaddrs
33915
33916_ACEOF
33917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33918 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33919
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33921$as_echo "yes" >&6; }
33922 tst_proto_getifaddrs="yes"
33923
33924else
33925
33926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33927$as_echo "no" >&6; }
33928 tst_proto_getifaddrs="no"
33929
33930fi
33931rm -f conftest*
33932
33933 fi
33934 #
33935 if test "$tst_proto_getifaddrs" = "yes"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33937$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33939/* end confdefs.h. */
33940
33941
33942 $curl_includes_ifaddrs
33943
33944int main (void)
33945{
33946
33947 if(0 != getifaddrs(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_getifaddrs="yes"
33960
33961else
33962
33963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33964$as_echo "no" >&6; }
33965 tst_compi_getifaddrs="no"
33966
33967fi
33968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33969 fi
33970 #
33971 if test "x$cross_compiling" != "xyes" &&
33972 test "$tst_compi_getifaddrs" = "yes"; then
33973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33974$as_echo_n "checking if getifaddrs seems to work... " >&6; }
33975 if test "$cross_compiling" = yes; then :
33976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33978as_fn_error $? "cannot run test program while cross compiling
33979See \`config.log' for more details" "$LINENO" 5; }
33980else
33981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33982/* end confdefs.h. */
33983
33984
33985 $curl_includes_stdlib
33986 $curl_includes_ifaddrs
33987
33988int main (void)
33989{
33990
33991 struct ifaddrs *ifa = 0;
33992 int error;
33993
33994 error = getifaddrs(&ifa);
33995 if(error || !ifa)
33996 exit(1); /* fail */
33997 else
33998 exit(0);
33999
34000 ;
34001 return 0;
34002}
34003
34004_ACEOF
34005if ac_fn_c_try_run "$LINENO"; then :
34006
34007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34008$as_echo "yes" >&6; }
34009 tst_works_getifaddrs="yes"
34010
34011else
34012
34013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34014$as_echo "no" >&6; }
34015 tst_works_getifaddrs="no"
34016
34017fi
34018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34019 conftest.$ac_objext conftest.beam conftest.$ac_ext
34020fi
34021
34022 fi
34023 #
34024 if test "$tst_compi_getifaddrs" = "yes" &&
34025 test "$tst_works_getifaddrs" != "no"; then
34026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34027$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34028 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030$as_echo "yes" >&6; }
34031 tst_allow_getifaddrs="yes"
34032 else
34033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34034$as_echo "no" >&6; }
34035 tst_allow_getifaddrs="no"
34036 fi
34037 fi
34038 #
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34040$as_echo_n "checking if getifaddrs might be used... " >&6; }
34041 if test "$tst_links_getifaddrs" = "yes" &&
34042 test "$tst_proto_getifaddrs" = "yes" &&
34043 test "$tst_compi_getifaddrs" = "yes" &&
34044 test "$tst_allow_getifaddrs" = "yes" &&
34045 test "$tst_works_getifaddrs" != "no"; then
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34047$as_echo "yes" >&6; }
34048
34049cat >>confdefs.h <<_ACEOF
34050#define HAVE_GETIFADDRS 1
34051_ACEOF
34052
34053 curl_cv_func_getifaddrs="yes"
34054 else
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056$as_echo "no" >&6; }
34057 curl_cv_func_getifaddrs="no"
34058 fi
34059
34060
34061 #
34062 tst_links_getservbyport_r="unknown"
34063 tst_proto_getservbyport_r="unknown"
34064 tst_compi_getservbyport_r="unknown"
34065 tst_allow_getservbyport_r="unknown"
34066 tst_nargs_getservbyport_r="unknown"
34067 #
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34069$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34071/* end confdefs.h. */
34072
34073
34074#define getservbyport_r innocuous_getservbyport_r
34075#ifdef __STDC__
34076# include <limits.h>
34077#else
34078# include <assert.h>
34079#endif
34080#undef getservbyport_r
34081#ifdef __cplusplus
34082extern "C"
34083#endif
34084char getservbyport_r ();
34085#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34086choke me
34087#endif
34088
34089int main (void)
34090{
34091return getservbyport_r ();
34092 ;
34093 return 0;
34094}
34095
34096_ACEOF
34097if ac_fn_c_try_link "$LINENO"; then :
34098
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34100$as_echo "yes" >&6; }
34101 tst_links_getservbyport_r="yes"
34102
34103else
34104
34105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34106$as_echo "no" >&6; }
34107 tst_links_getservbyport_r="no"
34108
34109fi
34110rm -f core conftest.err conftest.$ac_objext \
34111 conftest$ac_exeext conftest.$ac_ext
34112 #
34113 if test "$tst_links_getservbyport_r" = "yes"; then
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34115$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34117/* end confdefs.h. */
34118
34119 $curl_includes_netdb
34120
34121_ACEOF
34122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34123 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34124
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126$as_echo "yes" >&6; }
34127 tst_proto_getservbyport_r="yes"
34128
34129else
34130
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34132$as_echo "no" >&6; }
34133 tst_proto_getservbyport_r="no"
34134
34135fi
34136rm -f conftest*
34137
34138 fi
34139 #
34140 if test "$tst_proto_getservbyport_r" = "yes"; then
34141 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34143$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34145/* end confdefs.h. */
34146
34147
34148 $curl_includes_netdb
34149
34150int main (void)
34151{
34152
34153 if(0 != getservbyport_r(0, 0, 0, 0))
34154 return 1;
34155
34156 ;
34157 return 0;
34158}
34159
34160_ACEOF
34161if ac_fn_c_try_compile "$LINENO"; then :
34162
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34164$as_echo "yes" >&6; }
34165 tst_compi_getservbyport_r="yes"
34166 tst_nargs_getservbyport_r="4"
34167
34168else
34169
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34171$as_echo "no" >&6; }
34172 tst_compi_getservbyport_r="no"
34173
34174fi
34175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34176 fi
34177 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34179$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34181/* end confdefs.h. */
34182
34183
34184 $curl_includes_netdb
34185
34186int main (void)
34187{
34188
34189 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34190 return 1;
34191
34192 ;
34193 return 0;
34194}
34195
34196_ACEOF
34197if ac_fn_c_try_compile "$LINENO"; then :
34198
34199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34200$as_echo "yes" >&6; }
34201 tst_compi_getservbyport_r="yes"
34202 tst_nargs_getservbyport_r="5"
34203
34204else
34205
34206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34207$as_echo "no" >&6; }
34208 tst_compi_getservbyport_r="no"
34209
34210fi
34211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34212 fi
34213 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34215$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34217/* end confdefs.h. */
34218
34219
34220 $curl_includes_netdb
34221
34222int main (void)
34223{
34224
34225 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34226 return 1;
34227
34228 ;
34229 return 0;
34230}
34231
34232_ACEOF
34233if ac_fn_c_try_compile "$LINENO"; then :
34234
34235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34236$as_echo "yes" >&6; }
34237 tst_compi_getservbyport_r="yes"
34238 tst_nargs_getservbyport_r="6"
34239
34240else
34241
34242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34243$as_echo "no" >&6; }
34244 tst_compi_getservbyport_r="no"
34245
34246fi
34247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34248 fi
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34250$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34251 if test "$tst_compi_getservbyport_r" = "yes"; then
34252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34253$as_echo "yes" >&6; }
34254 else
34255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34256$as_echo "no" >&6; }
34257 fi
34258 fi
34259 #
34260 if test "$tst_compi_getservbyport_r" = "yes"; then
34261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34262$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34263 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34265$as_echo "yes" >&6; }
34266 tst_allow_getservbyport_r="yes"
34267 else
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34269$as_echo "no" >&6; }
34270 tst_allow_getservbyport_r="no"
34271 fi
34272 fi
34273 #
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34275$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34276 if test "$tst_links_getservbyport_r" = "yes" &&
34277 test "$tst_proto_getservbyport_r" = "yes" &&
34278 test "$tst_compi_getservbyport_r" = "yes" &&
34279 test "$tst_allow_getservbyport_r" = "yes"; then
34280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34281$as_echo "yes" >&6; }
34282
34283cat >>confdefs.h <<_ACEOF
34284#define HAVE_GETSERVBYPORT_R 1
34285_ACEOF
34286
34287
34288cat >>confdefs.h <<_ACEOF
34289#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34290_ACEOF
34291
34292 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34293
34294$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34295
34296 else
34297
34298$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34299
34300 fi
34301 curl_cv_func_getservbyport_r="yes"
34302 else
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34304$as_echo "no" >&6; }
34305 curl_cv_func_getservbyport_r="no"
34306 fi
34307
34308
34309curl_includes_time="\
34310/* includes start */
34311#ifdef HAVE_SYS_TYPES_H
34312# include <sys/types.h>
34313#endif
34314#ifdef HAVE_SYS_TIME_H
34315# include <sys/time.h>
34316# ifdef TIME_WITH_SYS_TIME
34317# include <time.h>
34318# endif
34319#else
34320# ifdef HAVE_TIME_H
34321# include <time.h>
34322# endif
34323#endif
34324/* includes end */"
34325 for ac_header in sys/types.h sys/time.h time.h
34326do :
34327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34329"
34330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34331 cat >>confdefs.h <<_ACEOF
34332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34333_ACEOF
34334
34335fi
34336
34337done
34338
34339
34340
34341 #
34342 tst_links_gmtime_r="unknown"
34343 tst_proto_gmtime_r="unknown"
34344 tst_compi_gmtime_r="unknown"
34345 tst_works_gmtime_r="unknown"
34346 tst_allow_gmtime_r="unknown"
34347 #
34348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34349$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34351/* end confdefs.h. */
34352
34353
34354#define gmtime_r innocuous_gmtime_r
34355#ifdef __STDC__
34356# include <limits.h>
34357#else
34358# include <assert.h>
34359#endif
34360#undef gmtime_r
34361#ifdef __cplusplus
34362extern "C"
34363#endif
34364char gmtime_r ();
34365#if defined __stub_gmtime_r || defined __stub___gmtime_r
34366choke me
34367#endif
34368
34369int main (void)
34370{
34371return gmtime_r ();
34372 ;
34373 return 0;
34374}
34375
34376_ACEOF
34377if ac_fn_c_try_link "$LINENO"; then :
34378
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34380$as_echo "yes" >&6; }
34381 tst_links_gmtime_r="yes"
34382
34383else
34384
34385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34386$as_echo "no" >&6; }
34387 tst_links_gmtime_r="no"
34388
34389fi
34390rm -f core conftest.err conftest.$ac_objext \
34391 conftest$ac_exeext conftest.$ac_ext
34392 #
34393 if test "$tst_links_gmtime_r" = "yes"; then
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34395$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34397/* end confdefs.h. */
34398
34399 $curl_includes_time
34400
34401_ACEOF
34402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34403 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34404
34405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34406$as_echo "yes" >&6; }
34407 tst_proto_gmtime_r="yes"
34408
34409else
34410
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34412$as_echo "no" >&6; }
34413 tst_proto_gmtime_r="no"
34414
34415fi
34416rm -f conftest*
34417
34418 fi
34419 #
34420 if test "$tst_proto_gmtime_r" = "yes"; then
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34422$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34424/* end confdefs.h. */
34425
34426
34427 $curl_includes_time
34428
34429int main (void)
34430{
34431
34432 if(0 != gmtime_r(0, 0))
34433 return 1;
34434
34435 ;
34436 return 0;
34437}
34438
34439_ACEOF
34440if ac_fn_c_try_compile "$LINENO"; then :
34441
34442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34443$as_echo "yes" >&6; }
34444 tst_compi_gmtime_r="yes"
34445
34446else
34447
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34449$as_echo "no" >&6; }
34450 tst_compi_gmtime_r="no"
34451
34452fi
34453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34454 fi
34455 #
34456 if test "x$cross_compiling" != "xyes" &&
34457 test "$tst_compi_gmtime_r" = "yes"; then
34458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34459$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34460 if test "$cross_compiling" = yes; then :
34461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34463as_fn_error $? "cannot run test program while cross compiling
34464See \`config.log' for more details" "$LINENO" 5; }
34465else
34466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467/* end confdefs.h. */
34468
34469
34470 $curl_includes_stdlib
34471 $curl_includes_time
34472
34473int main (void)
34474{
34475
34476 time_t local = 1170352587;
34477 struct tm *gmt = 0;
34478 struct tm result;
34479 gmt = gmtime_r(&local, &result);
34480 if(gmt)
34481 exit(0);
34482 else
34483 exit(1);
34484
34485 ;
34486 return 0;
34487}
34488
34489_ACEOF
34490if ac_fn_c_try_run "$LINENO"; then :
34491
34492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34493$as_echo "yes" >&6; }
34494 tst_works_gmtime_r="yes"
34495
34496else
34497
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34499$as_echo "no" >&6; }
34500 tst_works_gmtime_r="no"
34501
34502fi
34503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34504 conftest.$ac_objext conftest.beam conftest.$ac_ext
34505fi
34506
34507 fi
34508 #
34509 if test "$tst_compi_gmtime_r" = "yes" &&
34510 test "$tst_works_gmtime_r" != "no"; then
34511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34512$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34513 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34515$as_echo "yes" >&6; }
34516 tst_allow_gmtime_r="yes"
34517 else
34518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34519$as_echo "no" >&6; }
34520 tst_allow_gmtime_r="no"
34521 fi
34522 fi
34523 #
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34525$as_echo_n "checking if gmtime_r might be used... " >&6; }
34526 if test "$tst_links_gmtime_r" = "yes" &&
34527 test "$tst_proto_gmtime_r" = "yes" &&
34528 test "$tst_compi_gmtime_r" = "yes" &&
34529 test "$tst_allow_gmtime_r" = "yes" &&
34530 test "$tst_works_gmtime_r" != "no"; then
34531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34532$as_echo "yes" >&6; }
34533
34534cat >>confdefs.h <<_ACEOF
34535#define HAVE_GMTIME_R 1
34536_ACEOF
34537
34538 curl_cv_func_gmtime_r="yes"
34539 else
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34541$as_echo "no" >&6; }
34542 curl_cv_func_gmtime_r="no"
34543 fi
34544
34545
34546curl_includes_arpa_inet="\
34547/* includes start */
34548#ifdef HAVE_SYS_TYPES_H
34549# include <sys/types.h>
34550#endif
34551#ifdef HAVE_SYS_SOCKET_H
34552# include <sys/socket.h>
34553#endif
34554#ifdef HAVE_NETINET_IN_H
34555# include <netinet/in.h>
34556#endif
34557#ifdef HAVE_ARPA_INET_H
34558# include <arpa/inet.h>
34559#endif
34560#ifdef HAVE_WINSOCK2_H
34561#include <winsock2.h>
34562#include <ws2tcpip.h>
34563#endif
34564/* includes end */"
34565 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34566do :
34567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34569"
34570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34571 cat >>confdefs.h <<_ACEOF
34572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34573_ACEOF
34574
34575fi
34576
34577done
34578
34579
34580
34581 #
34582 tst_links_inet_ntoa_r="unknown"
34583 tst_proto_inet_ntoa_r="unknown"
34584 tst_compi_inet_ntoa_r="unknown"
34585 tst_allow_inet_ntoa_r="unknown"
34586 tst_nargs_inet_ntoa_r="unknown"
34587 #
34588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34589$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34591/* end confdefs.h. */
34592
34593
34594#define inet_ntoa_r innocuous_inet_ntoa_r
34595#ifdef __STDC__
34596# include <limits.h>
34597#else
34598# include <assert.h>
34599#endif
34600#undef inet_ntoa_r
34601#ifdef __cplusplus
34602extern "C"
34603#endif
34604char inet_ntoa_r ();
34605#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34606choke me
34607#endif
34608
34609int main (void)
34610{
34611return inet_ntoa_r ();
34612 ;
34613 return 0;
34614}
34615
34616_ACEOF
34617if ac_fn_c_try_link "$LINENO"; then :
34618
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34620$as_echo "yes" >&6; }
34621 tst_links_inet_ntoa_r="yes"
34622
34623else
34624
34625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34626$as_echo "no" >&6; }
34627 tst_links_inet_ntoa_r="no"
34628
34629fi
34630rm -f core conftest.err conftest.$ac_objext \
34631 conftest$ac_exeext conftest.$ac_ext
34632 #
34633 if test "$tst_links_inet_ntoa_r" = "yes"; then
34634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34635$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34637/* end confdefs.h. */
34638
34639 $curl_includes_arpa_inet
34640
34641_ACEOF
34642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34643 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34644
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34646$as_echo "yes" >&6; }
34647 tst_proto_inet_ntoa_r="yes"
34648
34649else
34650
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34652$as_echo "no" >&6; }
34653 tst_proto_inet_ntoa_r="no"
34654
34655fi
34656rm -f conftest*
34657
34658 fi
34659 #
34660 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34661 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34663$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34665/* end confdefs.h. */
34666
34667
34668 $curl_includes_arpa_inet
34669
34670int main (void)
34671{
34672
34673 struct in_addr addr;
34674 if(0 != inet_ntoa_r(addr, 0))
34675 return 1;
34676
34677 ;
34678 return 0;
34679}
34680
34681_ACEOF
34682if ac_fn_c_try_compile "$LINENO"; then :
34683
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34685$as_echo "yes" >&6; }
34686 tst_compi_inet_ntoa_r="yes"
34687 tst_nargs_inet_ntoa_r="2"
34688
34689else
34690
34691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34692$as_echo "no" >&6; }
34693 tst_compi_inet_ntoa_r="no"
34694
34695fi
34696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34697 fi
34698 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34700$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34702/* end confdefs.h. */
34703
34704
34705 $curl_includes_arpa_inet
34706
34707int main (void)
34708{
34709
34710 struct in_addr addr;
34711 if(0 != inet_ntoa_r(addr, 0, 0))
34712 return 1;
34713
34714 ;
34715 return 0;
34716}
34717
34718_ACEOF
34719if ac_fn_c_try_compile "$LINENO"; then :
34720
34721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34722$as_echo "yes" >&6; }
34723 tst_compi_inet_ntoa_r="yes"
34724 tst_nargs_inet_ntoa_r="3"
34725
34726else
34727
34728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34729$as_echo "no" >&6; }
34730 tst_compi_inet_ntoa_r="no"
34731
34732fi
34733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34734 fi
34735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34736$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34737 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34739$as_echo "yes" >&6; }
34740 else
34741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34742$as_echo "no" >&6; }
34743 fi
34744 fi
34745 #
34746 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34748$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34749 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34751$as_echo "yes" >&6; }
34752 tst_allow_inet_ntoa_r="yes"
34753 else
34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34755$as_echo "no" >&6; }
34756 tst_allow_inet_ntoa_r="no"
34757 fi
34758 fi
34759 #
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34761$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34762 if test "$tst_links_inet_ntoa_r" = "yes" &&
34763 test "$tst_proto_inet_ntoa_r" = "yes" &&
34764 test "$tst_compi_inet_ntoa_r" = "yes" &&
34765 test "$tst_allow_inet_ntoa_r" = "yes"; then
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34767$as_echo "yes" >&6; }
34768
34769cat >>confdefs.h <<_ACEOF
34770#define HAVE_INET_NTOA_R 1
34771_ACEOF
34772
34773 #
34774 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34775
34776$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34777
34778 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34779
34780$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34781
34782 fi
34783 #
34784 curl_cv_func_inet_ntoa_r="yes"
34785 else
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34787$as_echo "no" >&6; }
34788 curl_cv_func_inet_ntoa_r="no"
34789 fi
34790
34791
34792 #
34793 tst_links_inet_ntop="unknown"
34794 tst_proto_inet_ntop="unknown"
34795 tst_compi_inet_ntop="unknown"
34796 tst_works_inet_ntop="unknown"
34797 tst_allow_inet_ntop="unknown"
34798 #
34799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34800$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34802/* end confdefs.h. */
34803
34804
34805#define inet_ntop innocuous_inet_ntop
34806#ifdef __STDC__
34807# include <limits.h>
34808#else
34809# include <assert.h>
34810#endif
34811#undef inet_ntop
34812#ifdef __cplusplus
34813extern "C"
34814#endif
34815char inet_ntop ();
34816#if defined __stub_inet_ntop || defined __stub___inet_ntop
34817choke me
34818#endif
34819
34820int main (void)
34821{
34822return inet_ntop ();
34823 ;
34824 return 0;
34825}
34826
34827_ACEOF
34828if ac_fn_c_try_link "$LINENO"; then :
34829
34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34831$as_echo "yes" >&6; }
34832 tst_links_inet_ntop="yes"
34833
34834else
34835
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34837$as_echo "no" >&6; }
34838 tst_links_inet_ntop="no"
34839
34840fi
34841rm -f core conftest.err conftest.$ac_objext \
34842 conftest$ac_exeext conftest.$ac_ext
34843 #
34844 if test "$tst_links_inet_ntop" = "yes"; then
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34846$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34848/* end confdefs.h. */
34849
34850 $curl_includes_arpa_inet
34851
34852_ACEOF
34853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34854 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34855
34856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34857$as_echo "yes" >&6; }
34858 tst_proto_inet_ntop="yes"
34859
34860else
34861
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34863$as_echo "no" >&6; }
34864 tst_proto_inet_ntop="no"
34865
34866fi
34867rm -f conftest*
34868
34869 fi
34870 #
34871 if test "$tst_proto_inet_ntop" = "yes"; then
34872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34873$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34875/* end confdefs.h. */
34876
34877
34878 $curl_includes_arpa_inet
34879
34880int main (void)
34881{
34882
34883 if(0 != inet_ntop(0, 0, 0, 0))
34884 return 1;
34885
34886 ;
34887 return 0;
34888}
34889
34890_ACEOF
34891if ac_fn_c_try_compile "$LINENO"; then :
34892
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34894$as_echo "yes" >&6; }
34895 tst_compi_inet_ntop="yes"
34896
34897else
34898
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34900$as_echo "no" >&6; }
34901 tst_compi_inet_ntop="no"
34902
34903fi
34904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34905 fi
34906 #
34907 if test "x$cross_compiling" != "xyes" &&
34908 test "$tst_compi_inet_ntop" = "yes"; then
34909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34910$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34911 if test "$cross_compiling" = yes; then :
34912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34914as_fn_error $? "cannot run test program while cross compiling
34915See \`config.log' for more details" "$LINENO" 5; }
34916else
34917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34918/* end confdefs.h. */
34919
34920
34921 $curl_includes_stdlib
34922 $curl_includes_arpa_inet
34923 $curl_includes_string
34924
34925int main (void)
34926{
34927
34928 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34929 char ipv4res[sizeof "255.255.255.255"];
34930 unsigned char ipv6a[26];
34931 unsigned char ipv4a[5];
34932 char *ipv6ptr = 0;
34933 char *ipv4ptr = 0;
34934 /* - */
34935 ipv4res[0] = '\0';
34936 ipv4a[0] = 0xc0;
34937 ipv4a[1] = 0xa8;
34938 ipv4a[2] = 0x64;
34939 ipv4a[3] = 0x01;
34940 ipv4a[4] = 0x01;
34941 /* - */
34942 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34943 if(!ipv4ptr)
34944 exit(1); /* fail */
34945 if(ipv4ptr != ipv4res)
34946 exit(1); /* fail */
34947 if(!ipv4ptr[0])
34948 exit(1); /* fail */
34949 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34950 exit(1); /* fail */
34951 /* - */
34952 ipv6res[0] = '\0';
34953 memset(ipv6a, 0, sizeof(ipv6a));
34954 ipv6a[0] = 0xfe;
34955 ipv6a[1] = 0x80;
34956 ipv6a[8] = 0x02;
34957 ipv6a[9] = 0x14;
34958 ipv6a[10] = 0x4f;
34959 ipv6a[11] = 0xff;
34960 ipv6a[12] = 0xfe;
34961 ipv6a[13] = 0x0b;
34962 ipv6a[14] = 0x76;
34963 ipv6a[15] = 0xc8;
34964 ipv6a[25] = 0x01;
34965 /* - */
34966 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34967 if(!ipv6ptr)
34968 exit(1); /* fail */
34969 if(ipv6ptr != ipv6res)
34970 exit(1); /* fail */
34971 if(!ipv6ptr[0])
34972 exit(1); /* fail */
34973 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34974 exit(1); /* fail */
34975 /* - */
34976 exit(0);
34977
34978 ;
34979 return 0;
34980}
34981
34982_ACEOF
34983if ac_fn_c_try_run "$LINENO"; then :
34984
34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34986$as_echo "yes" >&6; }
34987 tst_works_inet_ntop="yes"
34988
34989else
34990
34991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34992$as_echo "no" >&6; }
34993 tst_works_inet_ntop="no"
34994
34995fi
34996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34997 conftest.$ac_objext conftest.beam conftest.$ac_ext
34998fi
34999
35000 fi
35001 #
35002 if test "$tst_compi_inet_ntop" = "yes" &&
35003 test "$tst_works_inet_ntop" != "no"; then
35004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35005$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35006 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35008$as_echo "yes" >&6; }
35009 tst_allow_inet_ntop="yes"
35010 else
35011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35012$as_echo "no" >&6; }
35013 tst_allow_inet_ntop="no"
35014 fi
35015 fi
35016 #
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35018$as_echo_n "checking if inet_ntop might be used... " >&6; }
35019 if test "$tst_links_inet_ntop" = "yes" &&
35020 test "$tst_proto_inet_ntop" = "yes" &&
35021 test "$tst_compi_inet_ntop" = "yes" &&
35022 test "$tst_allow_inet_ntop" = "yes" &&
35023 test "$tst_works_inet_ntop" != "no"; then
35024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35025$as_echo "yes" >&6; }
35026
35027cat >>confdefs.h <<_ACEOF
35028#define HAVE_INET_NTOP 1
35029_ACEOF
35030
35031 curl_cv_func_inet_ntop="yes"
35032 else
35033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35034$as_echo "no" >&6; }
35035 curl_cv_func_inet_ntop="no"
35036 fi
35037
35038
35039 #
35040 tst_links_inet_pton="unknown"
35041 tst_proto_inet_pton="unknown"
35042 tst_compi_inet_pton="unknown"
35043 tst_works_inet_pton="unknown"
35044 tst_allow_inet_pton="unknown"
35045 #
35046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35047$as_echo_n "checking if inet_pton can be linked... " >&6; }
35048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35049/* end confdefs.h. */
35050
35051
35052#define inet_pton innocuous_inet_pton
35053#ifdef __STDC__
35054# include <limits.h>
35055#else
35056# include <assert.h>
35057#endif
35058#undef inet_pton
35059#ifdef __cplusplus
35060extern "C"
35061#endif
35062char inet_pton ();
35063#if defined __stub_inet_pton || defined __stub___inet_pton
35064choke me
35065#endif
35066
35067int main (void)
35068{
35069return inet_pton ();
35070 ;
35071 return 0;
35072}
35073
35074_ACEOF
35075if ac_fn_c_try_link "$LINENO"; then :
35076
35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35078$as_echo "yes" >&6; }
35079 tst_links_inet_pton="yes"
35080
35081else
35082
35083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35084$as_echo "no" >&6; }
35085 tst_links_inet_pton="no"
35086
35087fi
35088rm -f core conftest.err conftest.$ac_objext \
35089 conftest$ac_exeext conftest.$ac_ext
35090 #
35091 if test "$tst_links_inet_pton" = "yes"; then
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35093$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35095/* end confdefs.h. */
35096
35097 $curl_includes_arpa_inet
35098
35099_ACEOF
35100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35101 $EGREP "inet_pton" >/dev/null 2>&1; then :
35102
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35104$as_echo "yes" >&6; }
35105 tst_proto_inet_pton="yes"
35106
35107else
35108
35109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35110$as_echo "no" >&6; }
35111 tst_proto_inet_pton="no"
35112
35113fi
35114rm -f conftest*
35115
35116 fi
35117 #
35118 if test "$tst_proto_inet_pton" = "yes"; then
35119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35120$as_echo_n "checking if inet_pton is compilable... " >&6; }
35121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35122/* end confdefs.h. */
35123
35124
35125 $curl_includes_arpa_inet
35126
35127int main (void)
35128{
35129
35130 if(0 != inet_pton(0, 0, 0))
35131 return 1;
35132
35133 ;
35134 return 0;
35135}
35136
35137_ACEOF
35138if ac_fn_c_try_compile "$LINENO"; then :
35139
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35141$as_echo "yes" >&6; }
35142 tst_compi_inet_pton="yes"
35143
35144else
35145
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35147$as_echo "no" >&6; }
35148 tst_compi_inet_pton="no"
35149
35150fi
35151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35152 fi
35153 #
35154 if test "x$cross_compiling" != "xyes" &&
35155 test "$tst_compi_inet_pton" = "yes"; then
35156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35157$as_echo_n "checking if inet_pton seems to work... " >&6; }
35158 if test "$cross_compiling" = yes; then :
35159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35161as_fn_error $? "cannot run test program while cross compiling
35162See \`config.log' for more details" "$LINENO" 5; }
35163else
35164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35165/* end confdefs.h. */
35166
35167
35168 $curl_includes_stdlib
35169 $curl_includes_arpa_inet
35170 $curl_includes_string
35171
35172int main (void)
35173{
35174
35175 unsigned char ipv6a[16+1];
35176 unsigned char ipv4a[4+1];
35177 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35178 const char *ipv4src = "192.168.100.1";
35179 /* - */
35180 memset(ipv4a, 1, sizeof(ipv4a));
35181 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35182 exit(1); /* fail */
35183 /* - */
35184 if( (ipv4a[0] != 0xc0) ||
35185 (ipv4a[1] != 0xa8) ||
35186 (ipv4a[2] != 0x64) ||
35187 (ipv4a[3] != 0x01) ||
35188 (ipv4a[4] != 0x01) )
35189 exit(1); /* fail */
35190 /* - */
35191 memset(ipv6a, 1, sizeof(ipv6a));
35192 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35193 exit(1); /* fail */
35194 /* - */
35195 if( (ipv6a[0] != 0xfe) ||
35196 (ipv6a[1] != 0x80) ||
35197 (ipv6a[8] != 0x02) ||
35198 (ipv6a[9] != 0x14) ||
35199 (ipv6a[10] != 0x4f) ||
35200 (ipv6a[11] != 0xff) ||
35201 (ipv6a[12] != 0xfe) ||
35202 (ipv6a[13] != 0x0b) ||
35203 (ipv6a[14] != 0x76) ||
35204 (ipv6a[15] != 0xc8) ||
35205 (ipv6a[16] != 0x01) )
35206 exit(1); /* fail */
35207 /* - */
35208 if( (ipv6a[2] != 0x0) ||
35209 (ipv6a[3] != 0x0) ||
35210 (ipv6a[4] != 0x0) ||
35211 (ipv6a[5] != 0x0) ||
35212 (ipv6a[6] != 0x0) ||
35213 (ipv6a[7] != 0x0) )
35214 exit(1); /* fail */
35215 /* - */
35216 exit(0);
35217
35218 ;
35219 return 0;
35220}
35221
35222_ACEOF
35223if ac_fn_c_try_run "$LINENO"; then :
35224
35225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35226$as_echo "yes" >&6; }
35227 tst_works_inet_pton="yes"
35228
35229else
35230
35231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35232$as_echo "no" >&6; }
35233 tst_works_inet_pton="no"
35234
35235fi
35236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35237 conftest.$ac_objext conftest.beam conftest.$ac_ext
35238fi
35239
35240 fi
35241 #
35242 if test "$tst_compi_inet_pton" = "yes" &&
35243 test "$tst_works_inet_pton" != "no"; then
35244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35245$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35246 if test "x$curl_disallow_inet_pton" != "xyes"; then
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35248$as_echo "yes" >&6; }
35249 tst_allow_inet_pton="yes"
35250 else
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35252$as_echo "no" >&6; }
35253 tst_allow_inet_pton="no"
35254 fi
35255 fi
35256 #
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35258$as_echo_n "checking if inet_pton might be used... " >&6; }
35259 if test "$tst_links_inet_pton" = "yes" &&
35260 test "$tst_proto_inet_pton" = "yes" &&
35261 test "$tst_compi_inet_pton" = "yes" &&
35262 test "$tst_allow_inet_pton" = "yes" &&
35263 test "$tst_works_inet_pton" != "no"; then
35264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35265$as_echo "yes" >&6; }
35266
35267cat >>confdefs.h <<_ACEOF
35268#define HAVE_INET_PTON 1
35269_ACEOF
35270
35271 curl_cv_func_inet_pton="yes"
35272 else
35273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35274$as_echo "no" >&6; }
35275 curl_cv_func_inet_pton="no"
35276 fi
35277
35278
35279curl_includes_stropts="\
35280/* includes start */
35281#ifdef HAVE_SYS_TYPES_H
35282# include <sys/types.h>
35283#endif
35284#ifdef HAVE_UNISTD_H
35285# include <unistd.h>
35286#endif
35287#ifdef HAVE_SYS_SOCKET_H
35288# include <sys/socket.h>
35289#endif
35290#ifdef HAVE_SYS_IOCTL_H
35291# include <sys/ioctl.h>
35292#endif
35293#ifdef HAVE_STROPTS_H
35294# include <stropts.h>
35295#endif
35296/* includes end */"
35297 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35298do :
35299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35300ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35301"
35302if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35303 cat >>confdefs.h <<_ACEOF
35304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35305_ACEOF
35306
35307fi
35308
35309done
35310
35311
35312
35313 #
35314 tst_links_ioctl="unknown"
35315 tst_proto_ioctl="unknown"
35316 tst_compi_ioctl="unknown"
35317 tst_allow_ioctl="unknown"
35318 #
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35320$as_echo_n "checking if ioctl can be linked... " >&6; }
35321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35322/* end confdefs.h. */
35323
35324
35325#define ioctl innocuous_ioctl
35326#ifdef __STDC__
35327# include <limits.h>
35328#else
35329# include <assert.h>
35330#endif
35331#undef ioctl
35332#ifdef __cplusplus
35333extern "C"
35334#endif
35335char ioctl ();
35336#if defined __stub_ioctl || defined __stub___ioctl
35337choke me
35338#endif
35339
35340int main (void)
35341{
35342return ioctl ();
35343 ;
35344 return 0;
35345}
35346
35347_ACEOF
35348if ac_fn_c_try_link "$LINENO"; then :
35349
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35351$as_echo "yes" >&6; }
35352 tst_links_ioctl="yes"
35353
35354else
35355
35356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35357$as_echo "no" >&6; }
35358 tst_links_ioctl="no"
35359
35360fi
35361rm -f core conftest.err conftest.$ac_objext \
35362 conftest$ac_exeext conftest.$ac_ext
35363 #
35364 if test "$tst_links_ioctl" = "yes"; then
35365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35366$as_echo_n "checking if ioctl is prototyped... " >&6; }
35367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35368/* end confdefs.h. */
35369
35370 $curl_includes_stropts
35371
35372_ACEOF
35373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35374 $EGREP "ioctl" >/dev/null 2>&1; then :
35375
35376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35377$as_echo "yes" >&6; }
35378 tst_proto_ioctl="yes"
35379
35380else
35381
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35383$as_echo "no" >&6; }
35384 tst_proto_ioctl="no"
35385
35386fi
35387rm -f conftest*
35388
35389 fi
35390 #
35391 if test "$tst_proto_ioctl" = "yes"; then
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35393$as_echo_n "checking if ioctl is compilable... " >&6; }
35394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35395/* end confdefs.h. */
35396
35397
35398 $curl_includes_stropts
35399
35400int main (void)
35401{
35402
35403 if(0 != ioctl(0, 0, 0))
35404 return 1;
35405
35406 ;
35407 return 0;
35408}
35409
35410_ACEOF
35411if ac_fn_c_try_compile "$LINENO"; then :
35412
35413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35414$as_echo "yes" >&6; }
35415 tst_compi_ioctl="yes"
35416
35417else
35418
35419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35420$as_echo "no" >&6; }
35421 tst_compi_ioctl="no"
35422
35423fi
35424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35425 fi
35426 #
35427 if test "$tst_compi_ioctl" = "yes"; then
35428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35429$as_echo_n "checking if ioctl usage allowed... " >&6; }
35430 if test "x$curl_disallow_ioctl" != "xyes"; then
35431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35432$as_echo "yes" >&6; }
35433 tst_allow_ioctl="yes"
35434 else
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35436$as_echo "no" >&6; }
35437 tst_allow_ioctl="no"
35438 fi
35439 fi
35440 #
35441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35442$as_echo_n "checking if ioctl might be used... " >&6; }
35443 if test "$tst_links_ioctl" = "yes" &&
35444 test "$tst_proto_ioctl" = "yes" &&
35445 test "$tst_compi_ioctl" = "yes" &&
35446 test "$tst_allow_ioctl" = "yes"; then
35447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35448$as_echo "yes" >&6; }
35449
35450cat >>confdefs.h <<_ACEOF
35451#define HAVE_IOCTL 1
35452_ACEOF
35453
35454 curl_cv_func_ioctl="yes"
35455
35456 #
35457 tst_compi_ioctl_fionbio="unknown"
35458 tst_allow_ioctl_fionbio="unknown"
35459 #
35460 if test "$curl_cv_func_ioctl" = "yes"; then
35461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35462$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35464/* end confdefs.h. */
35465
35466
35467 $curl_includes_stropts
35468
35469int main (void)
35470{
35471
35472 int flags = 0;
35473 if(0 != ioctl(0, FIONBIO, &flags))
35474 return 1;
35475
35476 ;
35477 return 0;
35478}
35479
35480_ACEOF
35481if ac_fn_c_try_compile "$LINENO"; then :
35482
35483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35484$as_echo "yes" >&6; }
35485 tst_compi_ioctl_fionbio="yes"
35486
35487else
35488
35489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35490$as_echo "no" >&6; }
35491 tst_compi_ioctl_fionbio="no"
35492
35493fi
35494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35495 fi
35496 #
35497 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35499$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35500 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35502$as_echo "yes" >&6; }
35503 tst_allow_ioctl_fionbio="yes"
35504 else
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35506$as_echo "no" >&6; }
35507 tst_allow_ioctl_fionbio="no"
35508 fi
35509 fi
35510 #
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35512$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35513 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35514 test "$tst_allow_ioctl_fionbio" = "yes"; then
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35516$as_echo "yes" >&6; }
35517
35518cat >>confdefs.h <<_ACEOF
35519#define HAVE_IOCTL_FIONBIO 1
35520_ACEOF
35521
35522 curl_cv_func_ioctl_fionbio="yes"
35523 else
35524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35525$as_echo "no" >&6; }
35526 curl_cv_func_ioctl_fionbio="no"
35527 fi
35528
35529
35530 #
35531 tst_compi_ioctl_siocgifaddr="unknown"
35532 tst_allow_ioctl_siocgifaddr="unknown"
35533 #
35534 if test "$curl_cv_func_ioctl" = "yes"; then
35535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35536$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35538/* end confdefs.h. */
35539
35540
35541 $curl_includes_stropts
35542 #include <net/if.h>
35543
35544int main (void)
35545{
35546
35547 struct ifreq ifr;
35548 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35549 return 1;
35550
35551 ;
35552 return 0;
35553}
35554
35555_ACEOF
35556if ac_fn_c_try_compile "$LINENO"; then :
35557
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35559$as_echo "yes" >&6; }
35560 tst_compi_ioctl_siocgifaddr="yes"
35561
35562else
35563
35564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35565$as_echo "no" >&6; }
35566 tst_compi_ioctl_siocgifaddr="no"
35567
35568fi
35569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35570 fi
35571 #
35572 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35574$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35575 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35577$as_echo "yes" >&6; }
35578 tst_allow_ioctl_siocgifaddr="yes"
35579 else
35580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35581$as_echo "no" >&6; }
35582 tst_allow_ioctl_siocgifaddr="no"
35583 fi
35584 fi
35585 #
35586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35587$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35588 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35589 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35591$as_echo "yes" >&6; }
35592
35593cat >>confdefs.h <<_ACEOF
35594#define HAVE_IOCTL_SIOCGIFADDR 1
35595_ACEOF
35596
35597 curl_cv_func_ioctl_siocgifaddr="yes"
35598 else
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35600$as_echo "no" >&6; }
35601 curl_cv_func_ioctl_siocgifaddr="no"
35602 fi
35603
35604 else
35605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35606$as_echo "no" >&6; }
35607 curl_cv_func_ioctl="no"
35608 fi
35609
35610
35611 #
35612 tst_links_ioctlsocket="unknown"
35613 tst_proto_ioctlsocket="unknown"
35614 tst_compi_ioctlsocket="unknown"
35615 tst_allow_ioctlsocket="unknown"
35616 #
35617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35618$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35620/* end confdefs.h. */
35621
35622
35623 $curl_includes_winsock2
35624
35625int main (void)
35626{
35627
35628 if(0 != ioctlsocket(0, 0, 0))
35629 return 1;
35630
35631 ;
35632 return 0;
35633}
35634
35635_ACEOF
35636if ac_fn_c_try_link "$LINENO"; then :
35637
35638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35639$as_echo "yes" >&6; }
35640 tst_links_ioctlsocket="yes"
35641
35642else
35643
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35645$as_echo "no" >&6; }
35646 tst_links_ioctlsocket="no"
35647
35648fi
35649rm -f core conftest.err conftest.$ac_objext \
35650 conftest$ac_exeext conftest.$ac_ext
35651 #
35652 if test "$tst_links_ioctlsocket" = "yes"; then
35653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35654$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35656/* end confdefs.h. */
35657
35658 $curl_includes_winsock2
35659
35660_ACEOF
35661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35662 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35663
35664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35665$as_echo "yes" >&6; }
35666 tst_proto_ioctlsocket="yes"
35667
35668else
35669
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35671$as_echo "no" >&6; }
35672 tst_proto_ioctlsocket="no"
35673
35674fi
35675rm -f conftest*
35676
35677 fi
35678 #
35679 if test "$tst_proto_ioctlsocket" = "yes"; then
35680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35681$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35683/* end confdefs.h. */
35684
35685
35686 $curl_includes_winsock2
35687
35688int main (void)
35689{
35690
35691 if(0 != ioctlsocket(0, 0, 0))
35692 return 1;
35693
35694 ;
35695 return 0;
35696}
35697
35698_ACEOF
35699if ac_fn_c_try_compile "$LINENO"; then :
35700
35701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35702$as_echo "yes" >&6; }
35703 tst_compi_ioctlsocket="yes"
35704
35705else
35706
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35708$as_echo "no" >&6; }
35709 tst_compi_ioctlsocket="no"
35710
35711fi
35712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35713 fi
35714 #
35715 if test "$tst_compi_ioctlsocket" = "yes"; then
35716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35717$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35718 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35720$as_echo "yes" >&6; }
35721 tst_allow_ioctlsocket="yes"
35722 else
35723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35724$as_echo "no" >&6; }
35725 tst_allow_ioctlsocket="no"
35726 fi
35727 fi
35728 #
35729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35730$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35731 if test "$tst_links_ioctlsocket" = "yes" &&
35732 test "$tst_proto_ioctlsocket" = "yes" &&
35733 test "$tst_compi_ioctlsocket" = "yes" &&
35734 test "$tst_allow_ioctlsocket" = "yes"; then
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35736$as_echo "yes" >&6; }
35737
35738cat >>confdefs.h <<_ACEOF
35739#define HAVE_IOCTLSOCKET 1
35740_ACEOF
35741
35742 curl_cv_func_ioctlsocket="yes"
35743
35744 #
35745 tst_compi_ioctlsocket_fionbio="unknown"
35746 tst_allow_ioctlsocket_fionbio="unknown"
35747 #
35748 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35750$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35752/* end confdefs.h. */
35753
35754
35755 $curl_includes_winsock2
35756
35757int main (void)
35758{
35759
35760 int flags = 0;
35761 if(0 != ioctlsocket(0, FIONBIO, &flags))
35762 return 1;
35763
35764 ;
35765 return 0;
35766}
35767
35768_ACEOF
35769if ac_fn_c_try_compile "$LINENO"; then :
35770
35771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35772$as_echo "yes" >&6; }
35773 tst_compi_ioctlsocket_fionbio="yes"
35774
35775else
35776
35777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35778$as_echo "no" >&6; }
35779 tst_compi_ioctlsocket_fionbio="no"
35780
35781fi
35782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35783 fi
35784 #
35785 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35787$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35788 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35790$as_echo "yes" >&6; }
35791 tst_allow_ioctlsocket_fionbio="yes"
35792 else
35793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35794$as_echo "no" >&6; }
35795 tst_allow_ioctlsocket_fionbio="no"
35796 fi
35797 fi
35798 #
35799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35800$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35801 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35802 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35804$as_echo "yes" >&6; }
35805
35806cat >>confdefs.h <<_ACEOF
35807#define HAVE_IOCTLSOCKET_FIONBIO 1
35808_ACEOF
35809
35810 curl_cv_func_ioctlsocket_fionbio="yes"
35811 else
35812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35813$as_echo "no" >&6; }
35814 curl_cv_func_ioctlsocket_fionbio="no"
35815 fi
35816
35817 else
35818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35819$as_echo "no" >&6; }
35820 curl_cv_func_ioctlsocket="no"
35821 fi
35822
35823
35824 #
35825 tst_links_ioctlsocket_camel="unknown"
35826 tst_proto_ioctlsocket_camel="unknown"
35827 tst_compi_ioctlsocket_camel="unknown"
35828 tst_allow_ioctlsocket_camel="unknown"
35829 #
35830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35831$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35833/* end confdefs.h. */
35834
35835
35836#define IoctlSocket innocuous_IoctlSocket
35837#ifdef __STDC__
35838# include <limits.h>
35839#else
35840# include <assert.h>
35841#endif
35842#undef IoctlSocket
35843#ifdef __cplusplus
35844extern "C"
35845#endif
35846char IoctlSocket ();
35847#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35848choke me
35849#endif
35850
35851int main (void)
35852{
35853return IoctlSocket ();
35854 ;
35855 return 0;
35856}
35857
35858_ACEOF
35859if ac_fn_c_try_link "$LINENO"; then :
35860
35861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35862$as_echo "yes" >&6; }
35863 tst_links_ioctlsocket_camel="yes"
35864
35865else
35866
35867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35868$as_echo "no" >&6; }
35869 tst_links_ioctlsocket_camel="no"
35870
35871fi
35872rm -f core conftest.err conftest.$ac_objext \
35873 conftest$ac_exeext conftest.$ac_ext
35874 #
35875 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35877$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35879/* end confdefs.h. */
35880
35881 $curl_includes_stropts
35882
35883_ACEOF
35884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35885 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35886
35887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35888$as_echo "yes" >&6; }
35889 tst_proto_ioctlsocket_camel="yes"
35890
35891else
35892
35893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35894$as_echo "no" >&6; }
35895 tst_proto_ioctlsocket_camel="no"
35896
35897fi
35898rm -f conftest*
35899
35900 fi
35901 #
35902 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35904$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35906/* end confdefs.h. */
35907
35908
35909 $curl_includes_stropts
35910
35911int main (void)
35912{
35913
35914 if(0 != IoctlSocket(0, 0, 0))
35915 return 1;
35916
35917 ;
35918 return 0;
35919}
35920
35921_ACEOF
35922if ac_fn_c_try_compile "$LINENO"; then :
35923
35924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35925$as_echo "yes" >&6; }
35926 tst_compi_ioctlsocket_camel="yes"
35927
35928else
35929
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35931$as_echo "no" >&6; }
35932 tst_compi_ioctlsocket_camel="no"
35933
35934fi
35935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35936 fi
35937 #
35938 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35940$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35941 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943$as_echo "yes" >&6; }
35944 tst_allow_ioctlsocket_camel="yes"
35945 else
35946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35947$as_echo "no" >&6; }
35948 tst_allow_ioctlsocket_camel="no"
35949 fi
35950 fi
35951 #
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35953$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35954 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35955 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35956 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35957 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35959$as_echo "yes" >&6; }
35960
35961cat >>confdefs.h <<_ACEOF
35962#define HAVE_IOCTLSOCKET_CAMEL 1
35963_ACEOF
35964
35965 curl_cv_func_ioctlsocket_camel="yes"
35966
35967 #
35968 tst_compi_ioctlsocket_camel_fionbio="unknown"
35969 tst_allow_ioctlsocket_camel_fionbio="unknown"
35970 #
35971 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35973$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35975/* end confdefs.h. */
35976
35977
35978 $curl_includes_stropts
35979
35980int main (void)
35981{
35982
35983 long flags = 0;
35984 if(0 != ioctlsocket(0, FIONBIO, &flags))
35985 return 1;
35986
35987 ;
35988 return 0;
35989}
35990
35991_ACEOF
35992if ac_fn_c_try_compile "$LINENO"; then :
35993
35994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35995$as_echo "yes" >&6; }
35996 tst_compi_ioctlsocket_camel_fionbio="yes"
35997
35998else
35999
36000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36001$as_echo "no" >&6; }
36002 tst_compi_ioctlsocket_camel_fionbio="no"
36003
36004fi
36005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36006 fi
36007 #
36008 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36010$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36011 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36013$as_echo "yes" >&6; }
36014 tst_allow_ioctlsocket_camel_fionbio="yes"
36015 else
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017$as_echo "no" >&6; }
36018 tst_allow_ioctlsocket_camel_fionbio="no"
36019 fi
36020 fi
36021 #
36022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36023$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36024 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36025 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36027$as_echo "yes" >&6; }
36028
36029cat >>confdefs.h <<_ACEOF
36030#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36031_ACEOF
36032
36033 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36034 else
36035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36036$as_echo "no" >&6; }
36037 curl_cv_func_ioctlsocket_camel_fionbio="no"
36038 fi
36039
36040 else
36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36042$as_echo "no" >&6; }
36043 curl_cv_func_ioctlsocket_camel="no"
36044 fi
36045
36046
36047 #
36048 tst_links_localtime_r="unknown"
36049 tst_proto_localtime_r="unknown"
36050 tst_compi_localtime_r="unknown"
36051 tst_works_localtime_r="unknown"
36052 tst_allow_localtime_r="unknown"
36053 #
36054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36055$as_echo_n "checking if localtime_r can be linked... " >&6; }
36056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36057/* end confdefs.h. */
36058
36059
36060#define localtime_r innocuous_localtime_r
36061#ifdef __STDC__
36062# include <limits.h>
36063#else
36064# include <assert.h>
36065#endif
36066#undef localtime_r
36067#ifdef __cplusplus
36068extern "C"
36069#endif
36070char localtime_r ();
36071#if defined __stub_localtime_r || defined __stub___localtime_r
36072choke me
36073#endif
36074
36075int main (void)
36076{
36077return localtime_r ();
36078 ;
36079 return 0;
36080}
36081
36082_ACEOF
36083if ac_fn_c_try_link "$LINENO"; then :
36084
36085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36086$as_echo "yes" >&6; }
36087 tst_links_localtime_r="yes"
36088
36089else
36090
36091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36092$as_echo "no" >&6; }
36093 tst_links_localtime_r="no"
36094
36095fi
36096rm -f core conftest.err conftest.$ac_objext \
36097 conftest$ac_exeext conftest.$ac_ext
36098 #
36099 if test "$tst_links_localtime_r" = "yes"; then
36100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36101$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36103/* end confdefs.h. */
36104
36105 $curl_includes_time
36106
36107_ACEOF
36108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36109 $EGREP "localtime_r" >/dev/null 2>&1; then :
36110
36111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36112$as_echo "yes" >&6; }
36113 tst_proto_localtime_r="yes"
36114
36115else
36116
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36118$as_echo "no" >&6; }
36119 tst_proto_localtime_r="no"
36120
36121fi
36122rm -f conftest*
36123
36124 fi
36125 #
36126 if test "$tst_proto_localtime_r" = "yes"; then
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36128$as_echo_n "checking if localtime_r is compilable... " >&6; }
36129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36130/* end confdefs.h. */
36131
36132
36133 $curl_includes_time
36134
36135int main (void)
36136{
36137
36138 if(0 != localtime_r(0, 0))
36139 return 1;
36140
36141 ;
36142 return 0;
36143}
36144
36145_ACEOF
36146if ac_fn_c_try_compile "$LINENO"; then :
36147
36148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36149$as_echo "yes" >&6; }
36150 tst_compi_localtime_r="yes"
36151
36152else
36153
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36155$as_echo "no" >&6; }
36156 tst_compi_localtime_r="no"
36157
36158fi
36159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36160 fi
36161 #
36162 if test "x$cross_compiling" != "xyes" &&
36163 test "$tst_compi_localtime_r" = "yes"; then
36164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36165$as_echo_n "checking if localtime_r seems to work... " >&6; }
36166 if test "$cross_compiling" = yes; then :
36167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36169as_fn_error $? "cannot run test program while cross compiling
36170See \`config.log' for more details" "$LINENO" 5; }
36171else
36172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36173/* end confdefs.h. */
36174
36175
36176 $curl_includes_stdlib
36177 $curl_includes_time
36178
36179int main (void)
36180{
36181
36182 time_t clock = 1170352587;
36183 struct tm *tmp = 0;
36184 struct tm result;
36185 tmp = localtime_r(&clock, &result);
36186 if(tmp)
36187 exit(0);
36188 else
36189 exit(1);
36190
36191 ;
36192 return 0;
36193}
36194
36195_ACEOF
36196if ac_fn_c_try_run "$LINENO"; then :
36197
36198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36199$as_echo "yes" >&6; }
36200 tst_works_localtime_r="yes"
36201
36202else
36203
36204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36205$as_echo "no" >&6; }
36206 tst_works_localtime_r="no"
36207
36208fi
36209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36210 conftest.$ac_objext conftest.beam conftest.$ac_ext
36211fi
36212
36213 fi
36214 #
36215 if test "$tst_compi_localtime_r" = "yes" &&
36216 test "$tst_works_localtime_r" != "no"; then
36217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36218$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36219 if test "x$curl_disallow_localtime_r" != "xyes"; then
36220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36221$as_echo "yes" >&6; }
36222 tst_allow_localtime_r="yes"
36223 else
36224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36225$as_echo "no" >&6; }
36226 tst_allow_localtime_r="no"
36227 fi
36228 fi
36229 #
36230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36231$as_echo_n "checking if localtime_r might be used... " >&6; }
36232 if test "$tst_links_localtime_r" = "yes" &&
36233 test "$tst_proto_localtime_r" = "yes" &&
36234 test "$tst_compi_localtime_r" = "yes" &&
36235 test "$tst_allow_localtime_r" = "yes" &&
36236 test "$tst_works_localtime_r" != "no"; then
36237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36238$as_echo "yes" >&6; }
36239
36240cat >>confdefs.h <<_ACEOF
36241#define HAVE_LOCALTIME_R 1
36242_ACEOF
36243
36244 curl_cv_func_localtime_r="yes"
36245 else
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36247$as_echo "no" >&6; }
36248 curl_cv_func_localtime_r="no"
36249 fi
36250
36251
36252 #
36253 tst_links_memrchr="unknown"
36254 tst_macro_memrchr="unknown"
36255 tst_proto_memrchr="unknown"
36256 tst_compi_memrchr="unknown"
36257 tst_allow_memrchr="unknown"
36258 #
36259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36260$as_echo_n "checking if memrchr can be linked... " >&6; }
36261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36262/* end confdefs.h. */
36263
36264
36265#define memrchr innocuous_memrchr
36266#ifdef __STDC__
36267# include <limits.h>
36268#else
36269# include <assert.h>
36270#endif
36271#undef memrchr
36272#ifdef __cplusplus
36273extern "C"
36274#endif
36275char memrchr ();
36276#if defined __stub_memrchr || defined __stub___memrchr
36277choke me
36278#endif
36279
36280int main (void)
36281{
36282return memrchr ();
36283 ;
36284 return 0;
36285}
36286
36287_ACEOF
36288if ac_fn_c_try_link "$LINENO"; then :
36289
36290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36291$as_echo "yes" >&6; }
36292 tst_links_memrchr="yes"
36293
36294else
36295
36296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36297$as_echo "no" >&6; }
36298 tst_links_memrchr="no"
36299
36300fi
36301rm -f core conftest.err conftest.$ac_objext \
36302 conftest$ac_exeext conftest.$ac_ext
36303 #
36304 if test "$tst_links_memrchr" = "no"; then
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36306$as_echo_n "checking if memrchr seems a macro... " >&6; }
36307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36308/* end confdefs.h. */
36309
36310
36311 $curl_includes_string
36312
36313int main (void)
36314{
36315
36316 if(0 != memrchr(0, 0, 0))
36317 return 1;
36318
36319 ;
36320 return 0;
36321}
36322
36323_ACEOF
36324if ac_fn_c_try_link "$LINENO"; then :
36325
36326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36327$as_echo "yes" >&6; }
36328 tst_macro_memrchr="yes"
36329
36330else
36331
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333$as_echo "no" >&6; }
36334 tst_macro_memrchr="no"
36335
36336fi
36337rm -f core conftest.err conftest.$ac_objext \
36338 conftest$ac_exeext conftest.$ac_ext
36339 fi
36340 #
36341 if test "$tst_links_memrchr" = "yes"; then
36342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36343$as_echo_n "checking if memrchr is prototyped... " >&6; }
36344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36345/* end confdefs.h. */
36346
36347 $curl_includes_string
36348
36349_ACEOF
36350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36351 $EGREP "memrchr" >/dev/null 2>&1; then :
36352
36353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36354$as_echo "yes" >&6; }
36355 tst_proto_memrchr="yes"
36356
36357else
36358
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360$as_echo "no" >&6; }
36361 tst_proto_memrchr="no"
36362
36363fi
36364rm -f conftest*
36365
36366 fi
36367 #
36368 if test "$tst_proto_memrchr" = "yes" ||
36369 test "$tst_macro_memrchr" = "yes"; then
36370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36371$as_echo_n "checking if memrchr is compilable... " >&6; }
36372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373/* end confdefs.h. */
36374
36375
36376 $curl_includes_string
36377
36378int main (void)
36379{
36380
36381 if(0 != memrchr(0, 0, 0))
36382 return 1;
36383
36384 ;
36385 return 0;
36386}
36387
36388_ACEOF
36389if ac_fn_c_try_compile "$LINENO"; then :
36390
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36392$as_echo "yes" >&6; }
36393 tst_compi_memrchr="yes"
36394
36395else
36396
36397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36398$as_echo "no" >&6; }
36399 tst_compi_memrchr="no"
36400
36401fi
36402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36403 fi
36404 #
36405 if test "$tst_compi_memrchr" = "yes"; then
36406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36407$as_echo_n "checking if memrchr usage allowed... " >&6; }
36408 if test "x$curl_disallow_memrchr" != "xyes"; then
36409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36410$as_echo "yes" >&6; }
36411 tst_allow_memrchr="yes"
36412 else
36413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36414$as_echo "no" >&6; }
36415 tst_allow_memrchr="no"
36416 fi
36417 fi
36418 #
36419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36420$as_echo_n "checking if memrchr might be used... " >&6; }
36421 if (test "$tst_proto_memrchr" = "yes" ||
36422 test "$tst_macro_memrchr" = "yes") &&
36423 test "$tst_compi_memrchr" = "yes" &&
36424 test "$tst_allow_memrchr" = "yes"; then
36425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36426$as_echo "yes" >&6; }
36427
36428cat >>confdefs.h <<_ACEOF
36429#define HAVE_MEMRCHR 1
36430_ACEOF
36431
36432 curl_cv_func_memrchr="yes"
36433 else
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36435$as_echo "no" >&6; }
36436 curl_cv_func_memrchr="no"
36437 fi
36438
36439
36440 #
36441 tst_links_poll="unknown"
36442 tst_proto_poll="unknown"
36443 tst_compi_poll="unknown"
36444 tst_works_poll="unknown"
36445 tst_allow_poll="unknown"
36446 #
36447 case $host_os in
36448 darwin*|interix*)
36449 curl_disallow_poll="yes"
36450 tst_compi_poll="no"
36451 ;;
36452 esac
36453 #
36454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36455$as_echo_n "checking if poll can be linked... " >&6; }
36456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36457/* end confdefs.h. */
36458
36459
36460 $curl_includes_poll
36461
36462int main (void)
36463{
36464
36465 if(0 != poll(0, 0, 0))
36466 return 1;
36467
36468 ;
36469 return 0;
36470}
36471
36472_ACEOF
36473if ac_fn_c_try_link "$LINENO"; then :
36474
36475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36476$as_echo "yes" >&6; }
36477 tst_links_poll="yes"
36478
36479else
36480
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36482$as_echo "no" >&6; }
36483 tst_links_poll="no"
36484
36485fi
36486rm -f core conftest.err conftest.$ac_objext \
36487 conftest$ac_exeext conftest.$ac_ext
36488 #
36489 if test "$tst_links_poll" = "yes"; then
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36491$as_echo_n "checking if poll is prototyped... " >&6; }
36492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36493/* end confdefs.h. */
36494
36495 $curl_includes_poll
36496
36497_ACEOF
36498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36499 $EGREP "poll" >/dev/null 2>&1; then :
36500
36501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36502$as_echo "yes" >&6; }
36503 tst_proto_poll="yes"
36504
36505else
36506
36507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36508$as_echo "no" >&6; }
36509 tst_proto_poll="no"
36510
36511fi
36512rm -f conftest*
36513
36514 fi
36515 #
36516 if test "$tst_proto_poll" = "yes"; then
36517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36518$as_echo_n "checking if poll is compilable... " >&6; }
36519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36520/* end confdefs.h. */
36521
36522
36523 $curl_includes_poll
36524
36525int main (void)
36526{
36527
36528 if(0 != poll(0, 0, 0))
36529 return 1;
36530
36531 ;
36532 return 0;
36533}
36534
36535_ACEOF
36536if ac_fn_c_try_compile "$LINENO"; then :
36537
36538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36539$as_echo "yes" >&6; }
36540 tst_compi_poll="yes"
36541
36542else
36543
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36545$as_echo "no" >&6; }
36546 tst_compi_poll="no"
36547
36548fi
36549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36550 fi
36551 #
36552 if test "x$cross_compiling" != "xyes" &&
36553 test "$tst_compi_poll" = "yes"; then
36554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36555$as_echo_n "checking if poll seems to work... " >&6; }
36556 if test "$cross_compiling" = yes; then :
36557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36559as_fn_error $? "cannot run test program while cross compiling
36560See \`config.log' for more details" "$LINENO" 5; }
36561else
36562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36563/* end confdefs.h. */
36564
36565
36566 $curl_includes_stdlib
36567 $curl_includes_poll
36568 $curl_includes_time
36569
36570int main (void)
36571{
36572
36573 /* detect the original poll() breakage */
36574 if(0 != poll(0, 0, 10))
36575 exit(1); /* fail */
36576 else {
36577 /* detect the 10.12 poll() breakage */
36578 struct timeval before, after;
36579 int rc;
36580 size_t us;
36581
36582 gettimeofday(&before, NULL);
36583 rc = poll(NULL, 0, 500);
36584 gettimeofday(&after, NULL);
36585
36586 us = (after.tv_sec - before.tv_sec) * 1000000 +
36587 (after.tv_usec - before.tv_usec);
36588
36589 if(us < 400000)
36590 exit(1);
36591 }
36592
36593 ;
36594 return 0;
36595}
36596
36597_ACEOF
36598if ac_fn_c_try_run "$LINENO"; then :
36599
36600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36601$as_echo "yes" >&6; }
36602 tst_works_poll="yes"
36603
36604else
36605
36606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36607$as_echo "no" >&6; }
36608 tst_works_poll="no"
36609
36610fi
36611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36612 conftest.$ac_objext conftest.beam conftest.$ac_ext
36613fi
36614
36615 fi
36616 #
36617 if test "$tst_compi_poll" = "yes" &&
36618 test "$tst_works_poll" != "no"; then
36619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36620$as_echo_n "checking if poll usage allowed... " >&6; }
36621 if test "x$curl_disallow_poll" != "xyes"; then
36622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36623$as_echo "yes" >&6; }
36624 tst_allow_poll="yes"
36625 else
36626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36627$as_echo "no" >&6; }
36628 tst_allow_poll="no"
36629 fi
36630 fi
36631 #
36632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36633$as_echo_n "checking if poll might be used... " >&6; }
36634 if test "$tst_links_poll" = "yes" &&
36635 test "$tst_proto_poll" = "yes" &&
36636 test "$tst_compi_poll" = "yes" &&
36637 test "$tst_allow_poll" = "yes" &&
36638 test "$tst_works_poll" != "no"; then
36639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36640$as_echo "yes" >&6; }
36641
36642cat >>confdefs.h <<_ACEOF
36643#define HAVE_POLL 1
36644_ACEOF
36645
36646
36647cat >>confdefs.h <<_ACEOF
36648#define HAVE_POLL_FINE 1
36649_ACEOF
36650
36651 curl_cv_func_poll="yes"
36652 else
36653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36654$as_echo "no" >&6; }
36655 curl_cv_func_poll="no"
36656 fi
36657
36658
36659 #
36660 tst_links_setsockopt="unknown"
36661 tst_proto_setsockopt="unknown"
36662 tst_compi_setsockopt="unknown"
36663 tst_allow_setsockopt="unknown"
36664 #
36665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36666$as_echo_n "checking if setsockopt can be linked... " >&6; }
36667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36668/* end confdefs.h. */
36669
36670
36671 $curl_includes_winsock2
36672 $curl_includes_sys_socket
36673
36674int main (void)
36675{
36676
36677 if(0 != setsockopt(0, 0, 0, 0, 0))
36678 return 1;
36679
36680 ;
36681 return 0;
36682}
36683
36684_ACEOF
36685if ac_fn_c_try_link "$LINENO"; then :
36686
36687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36688$as_echo "yes" >&6; }
36689 tst_links_setsockopt="yes"
36690
36691else
36692
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36694$as_echo "no" >&6; }
36695 tst_links_setsockopt="no"
36696
36697fi
36698rm -f core conftest.err conftest.$ac_objext \
36699 conftest$ac_exeext conftest.$ac_ext
36700 #
36701 if test "$tst_links_setsockopt" = "yes"; then
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36703$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36705/* end confdefs.h. */
36706
36707 $curl_includes_winsock2
36708 $curl_includes_sys_socket
36709
36710_ACEOF
36711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36712 $EGREP "setsockopt" >/dev/null 2>&1; then :
36713
36714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36715$as_echo "yes" >&6; }
36716 tst_proto_setsockopt="yes"
36717
36718else
36719
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36721$as_echo "no" >&6; }
36722 tst_proto_setsockopt="no"
36723
36724fi
36725rm -f conftest*
36726
36727 fi
36728 #
36729 if test "$tst_proto_setsockopt" = "yes"; then
36730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36731$as_echo_n "checking if setsockopt is compilable... " >&6; }
36732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36733/* end confdefs.h. */
36734
36735
36736 $curl_includes_winsock2
36737 $curl_includes_sys_socket
36738
36739int main (void)
36740{
36741
36742 if(0 != setsockopt(0, 0, 0, 0, 0))
36743 return 1;
36744
36745 ;
36746 return 0;
36747}
36748
36749_ACEOF
36750if ac_fn_c_try_compile "$LINENO"; then :
36751
36752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36753$as_echo "yes" >&6; }
36754 tst_compi_setsockopt="yes"
36755
36756else
36757
36758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36759$as_echo "no" >&6; }
36760 tst_compi_setsockopt="no"
36761
36762fi
36763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36764 fi
36765 #
36766 if test "$tst_compi_setsockopt" = "yes"; then
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36768$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36769 if test "x$curl_disallow_setsockopt" != "xyes"; then
36770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36771$as_echo "yes" >&6; }
36772 tst_allow_setsockopt="yes"
36773 else
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36775$as_echo "no" >&6; }
36776 tst_allow_setsockopt="no"
36777 fi
36778 fi
36779 #
36780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36781$as_echo_n "checking if setsockopt might be used... " >&6; }
36782 if test "$tst_links_setsockopt" = "yes" &&
36783 test "$tst_proto_setsockopt" = "yes" &&
36784 test "$tst_compi_setsockopt" = "yes" &&
36785 test "$tst_allow_setsockopt" = "yes"; then
36786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36787$as_echo "yes" >&6; }
36788
36789cat >>confdefs.h <<_ACEOF
36790#define HAVE_SETSOCKOPT 1
36791_ACEOF
36792
36793 curl_cv_func_setsockopt="yes"
36794
36795 #
36796 tst_compi_setsockopt_so_nonblock="unknown"
36797 tst_allow_setsockopt_so_nonblock="unknown"
36798 #
36799 if test "$curl_cv_func_setsockopt" = "yes"; then
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36801$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36803/* end confdefs.h. */
36804
36805
36806 $curl_includes_winsock2
36807 $curl_includes_sys_socket
36808
36809int main (void)
36810{
36811
36812 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36813 return 1;
36814
36815 ;
36816 return 0;
36817}
36818
36819_ACEOF
36820if ac_fn_c_try_compile "$LINENO"; then :
36821
36822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36823$as_echo "yes" >&6; }
36824 tst_compi_setsockopt_so_nonblock="yes"
36825
36826else
36827
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36829$as_echo "no" >&6; }
36830 tst_compi_setsockopt_so_nonblock="no"
36831
36832fi
36833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36834 fi
36835 #
36836 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36838$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36839 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36841$as_echo "yes" >&6; }
36842 tst_allow_setsockopt_so_nonblock="yes"
36843 else
36844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36845$as_echo "no" >&6; }
36846 tst_allow_setsockopt_so_nonblock="no"
36847 fi
36848 fi
36849 #
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36851$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36852 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36853 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36855$as_echo "yes" >&6; }
36856
36857cat >>confdefs.h <<_ACEOF
36858#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36859_ACEOF
36860
36861 curl_cv_func_setsockopt_so_nonblock="yes"
36862 else
36863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36864$as_echo "no" >&6; }
36865 curl_cv_func_setsockopt_so_nonblock="no"
36866 fi
36867
36868 else
36869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36870$as_echo "no" >&6; }
36871 curl_cv_func_setsockopt="no"
36872 fi
36873
36874
36875curl_includes_signal="\
36876/* includes start */
36877#ifdef HAVE_SYS_TYPES_H
36878# include <sys/types.h>
36879#endif
36880#ifdef HAVE_SIGNAL_H
36881# include <signal.h>
36882#endif
36883/* includes end */"
36884 for ac_header in sys/types.h signal.h
36885do :
36886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36887ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36888"
36889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36890 cat >>confdefs.h <<_ACEOF
36891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36892_ACEOF
36893
36894fi
36895
36896done
36897
36898
36899
36900 #
36901 tst_links_sigaction="unknown"
36902 tst_proto_sigaction="unknown"
36903 tst_compi_sigaction="unknown"
36904 tst_allow_sigaction="unknown"
36905 #
36906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36907$as_echo_n "checking if sigaction can be linked... " >&6; }
36908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36909/* end confdefs.h. */
36910
36911
36912#define sigaction innocuous_sigaction
36913#ifdef __STDC__
36914# include <limits.h>
36915#else
36916# include <assert.h>
36917#endif
36918#undef sigaction
36919#ifdef __cplusplus
36920extern "C"
36921#endif
36922char sigaction ();
36923#if defined __stub_sigaction || defined __stub___sigaction
36924choke me
36925#endif
36926
36927int main (void)
36928{
36929return sigaction ();
36930 ;
36931 return 0;
36932}
36933
36934_ACEOF
36935if ac_fn_c_try_link "$LINENO"; then :
36936
36937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36938$as_echo "yes" >&6; }
36939 tst_links_sigaction="yes"
36940
36941else
36942
36943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36944$as_echo "no" >&6; }
36945 tst_links_sigaction="no"
36946
36947fi
36948rm -f core conftest.err conftest.$ac_objext \
36949 conftest$ac_exeext conftest.$ac_ext
36950 #
36951 if test "$tst_links_sigaction" = "yes"; then
36952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36953$as_echo_n "checking if sigaction is prototyped... " >&6; }
36954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36955/* end confdefs.h. */
36956
36957 $curl_includes_signal
36958
36959_ACEOF
36960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36961 $EGREP "sigaction" >/dev/null 2>&1; then :
36962
36963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36964$as_echo "yes" >&6; }
36965 tst_proto_sigaction="yes"
36966
36967else
36968
36969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36970$as_echo "no" >&6; }
36971 tst_proto_sigaction="no"
36972
36973fi
36974rm -f conftest*
36975
36976 fi
36977 #
36978 if test "$tst_proto_sigaction" = "yes"; then
36979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36980$as_echo_n "checking if sigaction is compilable... " >&6; }
36981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36982/* end confdefs.h. */
36983
36984
36985 $curl_includes_signal
36986
36987int main (void)
36988{
36989
36990 if(0 != sigaction(0, 0, 0))
36991 return 1;
36992
36993 ;
36994 return 0;
36995}
36996
36997_ACEOF
36998if ac_fn_c_try_compile "$LINENO"; then :
36999
37000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37001$as_echo "yes" >&6; }
37002 tst_compi_sigaction="yes"
37003
37004else
37005
37006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37007$as_echo "no" >&6; }
37008 tst_compi_sigaction="no"
37009
37010fi
37011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37012 fi
37013 #
37014 if test "$tst_compi_sigaction" = "yes"; then
37015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37016$as_echo_n "checking if sigaction usage allowed... " >&6; }
37017 if test "x$curl_disallow_sigaction" != "xyes"; then
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37019$as_echo "yes" >&6; }
37020 tst_allow_sigaction="yes"
37021 else
37022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37023$as_echo "no" >&6; }
37024 tst_allow_sigaction="no"
37025 fi
37026 fi
37027 #
37028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37029$as_echo_n "checking if sigaction might be used... " >&6; }
37030 if test "$tst_links_sigaction" = "yes" &&
37031 test "$tst_proto_sigaction" = "yes" &&
37032 test "$tst_compi_sigaction" = "yes" &&
37033 test "$tst_allow_sigaction" = "yes"; then
37034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37035$as_echo "yes" >&6; }
37036
37037cat >>confdefs.h <<_ACEOF
37038#define HAVE_SIGACTION 1
37039_ACEOF
37040
37041 curl_cv_func_sigaction="yes"
37042 else
37043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37044$as_echo "no" >&6; }
37045 curl_cv_func_sigaction="no"
37046 fi
37047
37048
37049 #
37050 tst_links_siginterrupt="unknown"
37051 tst_proto_siginterrupt="unknown"
37052 tst_compi_siginterrupt="unknown"
37053 tst_allow_siginterrupt="unknown"
37054 #
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37056$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37058/* end confdefs.h. */
37059
37060
37061#define siginterrupt innocuous_siginterrupt
37062#ifdef __STDC__
37063# include <limits.h>
37064#else
37065# include <assert.h>
37066#endif
37067#undef siginterrupt
37068#ifdef __cplusplus
37069extern "C"
37070#endif
37071char siginterrupt ();
37072#if defined __stub_siginterrupt || defined __stub___siginterrupt
37073choke me
37074#endif
37075
37076int main (void)
37077{
37078return siginterrupt ();
37079 ;
37080 return 0;
37081}
37082
37083_ACEOF
37084if ac_fn_c_try_link "$LINENO"; then :
37085
37086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37087$as_echo "yes" >&6; }
37088 tst_links_siginterrupt="yes"
37089
37090else
37091
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37093$as_echo "no" >&6; }
37094 tst_links_siginterrupt="no"
37095
37096fi
37097rm -f core conftest.err conftest.$ac_objext \
37098 conftest$ac_exeext conftest.$ac_ext
37099 #
37100 if test "$tst_links_siginterrupt" = "yes"; then
37101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37102$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37104/* end confdefs.h. */
37105
37106 $curl_includes_signal
37107
37108_ACEOF
37109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37110 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37111
37112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37113$as_echo "yes" >&6; }
37114 tst_proto_siginterrupt="yes"
37115
37116else
37117
37118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37119$as_echo "no" >&6; }
37120 tst_proto_siginterrupt="no"
37121
37122fi
37123rm -f conftest*
37124
37125 fi
37126 #
37127 if test "$tst_proto_siginterrupt" = "yes"; then
37128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37129$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37131/* end confdefs.h. */
37132
37133
37134 $curl_includes_signal
37135
37136int main (void)
37137{
37138
37139 if(0 != siginterrupt(0, 0))
37140 return 1;
37141
37142 ;
37143 return 0;
37144}
37145
37146_ACEOF
37147if ac_fn_c_try_compile "$LINENO"; then :
37148
37149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37150$as_echo "yes" >&6; }
37151 tst_compi_siginterrupt="yes"
37152
37153else
37154
37155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37156$as_echo "no" >&6; }
37157 tst_compi_siginterrupt="no"
37158
37159fi
37160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161 fi
37162 #
37163 if test "$tst_compi_siginterrupt" = "yes"; then
37164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37165$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37166 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37168$as_echo "yes" >&6; }
37169 tst_allow_siginterrupt="yes"
37170 else
37171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37172$as_echo "no" >&6; }
37173 tst_allow_siginterrupt="no"
37174 fi
37175 fi
37176 #
37177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37178$as_echo_n "checking if siginterrupt might be used... " >&6; }
37179 if test "$tst_links_siginterrupt" = "yes" &&
37180 test "$tst_proto_siginterrupt" = "yes" &&
37181 test "$tst_compi_siginterrupt" = "yes" &&
37182 test "$tst_allow_siginterrupt" = "yes"; then
37183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37184$as_echo "yes" >&6; }
37185
37186cat >>confdefs.h <<_ACEOF
37187#define HAVE_SIGINTERRUPT 1
37188_ACEOF
37189
37190 curl_cv_func_siginterrupt="yes"
37191 else
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37193$as_echo "no" >&6; }
37194 curl_cv_func_siginterrupt="no"
37195 fi
37196
37197
37198 #
37199 tst_links_signal="unknown"
37200 tst_proto_signal="unknown"
37201 tst_compi_signal="unknown"
37202 tst_allow_signal="unknown"
37203 #
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37205$as_echo_n "checking if signal can be linked... " >&6; }
37206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37207/* end confdefs.h. */
37208
37209
37210#define signal innocuous_signal
37211#ifdef __STDC__
37212# include <limits.h>
37213#else
37214# include <assert.h>
37215#endif
37216#undef signal
37217#ifdef __cplusplus
37218extern "C"
37219#endif
37220char signal ();
37221#if defined __stub_signal || defined __stub___signal
37222choke me
37223#endif
37224
37225int main (void)
37226{
37227return signal ();
37228 ;
37229 return 0;
37230}
37231
37232_ACEOF
37233if ac_fn_c_try_link "$LINENO"; then :
37234
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236$as_echo "yes" >&6; }
37237 tst_links_signal="yes"
37238
37239else
37240
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37242$as_echo "no" >&6; }
37243 tst_links_signal="no"
37244
37245fi
37246rm -f core conftest.err conftest.$ac_objext \
37247 conftest$ac_exeext conftest.$ac_ext
37248 #
37249 if test "$tst_links_signal" = "yes"; then
37250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37251$as_echo_n "checking if signal is prototyped... " >&6; }
37252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37253/* end confdefs.h. */
37254
37255 $curl_includes_signal
37256
37257_ACEOF
37258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37259 $EGREP "signal" >/dev/null 2>&1; then :
37260
37261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37262$as_echo "yes" >&6; }
37263 tst_proto_signal="yes"
37264
37265else
37266
37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37268$as_echo "no" >&6; }
37269 tst_proto_signal="no"
37270
37271fi
37272rm -f conftest*
37273
37274 fi
37275 #
37276 if test "$tst_proto_signal" = "yes"; then
37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37278$as_echo_n "checking if signal is compilable... " >&6; }
37279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37280/* end confdefs.h. */
37281
37282
37283 $curl_includes_signal
37284
37285int main (void)
37286{
37287
37288 if(0 != signal(0, 0))
37289 return 1;
37290
37291 ;
37292 return 0;
37293}
37294
37295_ACEOF
37296if ac_fn_c_try_compile "$LINENO"; then :
37297
37298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37299$as_echo "yes" >&6; }
37300 tst_compi_signal="yes"
37301
37302else
37303
37304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37305$as_echo "no" >&6; }
37306 tst_compi_signal="no"
37307
37308fi
37309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37310 fi
37311 #
37312 if test "$tst_compi_signal" = "yes"; then
37313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37314$as_echo_n "checking if signal usage allowed... " >&6; }
37315 if test "x$curl_disallow_signal" != "xyes"; then
37316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37317$as_echo "yes" >&6; }
37318 tst_allow_signal="yes"
37319 else
37320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37321$as_echo "no" >&6; }
37322 tst_allow_signal="no"
37323 fi
37324 fi
37325 #
37326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37327$as_echo_n "checking if signal might be used... " >&6; }
37328 if test "$tst_links_signal" = "yes" &&
37329 test "$tst_proto_signal" = "yes" &&
37330 test "$tst_compi_signal" = "yes" &&
37331 test "$tst_allow_signal" = "yes"; then
37332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37333$as_echo "yes" >&6; }
37334
37335cat >>confdefs.h <<_ACEOF
37336#define HAVE_SIGNAL 1
37337_ACEOF
37338
37339 curl_cv_func_signal="yes"
37340 else
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37342$as_echo "no" >&6; }
37343 curl_cv_func_signal="no"
37344 fi
37345
37346
37347curl_includes_setjmp="\
37348/* includes start */
37349#ifdef HAVE_SYS_TYPES_H
37350# include <sys/types.h>
37351#endif
37352#ifdef HAVE_SETJMP_H
37353# include <setjmp.h>
37354#endif
37355/* includes end */"
37356 for ac_header in sys/types.h setjmp.h
37357do :
37358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37359ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37360"
37361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37362 cat >>confdefs.h <<_ACEOF
37363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37364_ACEOF
37365
37366fi
37367
37368done
37369
37370
37371
37372 #
37373 tst_links_sigsetjmp="unknown"
37374 tst_macro_sigsetjmp="unknown"
37375 tst_proto_sigsetjmp="unknown"
37376 tst_compi_sigsetjmp="unknown"
37377 tst_allow_sigsetjmp="unknown"
37378 #
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37380$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37382/* end confdefs.h. */
37383
37384
37385#define sigsetjmp innocuous_sigsetjmp
37386#ifdef __STDC__
37387# include <limits.h>
37388#else
37389# include <assert.h>
37390#endif
37391#undef sigsetjmp
37392#ifdef __cplusplus
37393extern "C"
37394#endif
37395char sigsetjmp ();
37396#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37397choke me
37398#endif
37399
37400int main (void)
37401{
37402return sigsetjmp ();
37403 ;
37404 return 0;
37405}
37406
37407_ACEOF
37408if ac_fn_c_try_link "$LINENO"; then :
37409
37410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37411$as_echo "yes" >&6; }
37412 tst_links_sigsetjmp="yes"
37413
37414else
37415
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37417$as_echo "no" >&6; }
37418 tst_links_sigsetjmp="no"
37419
37420fi
37421rm -f core conftest.err conftest.$ac_objext \
37422 conftest$ac_exeext conftest.$ac_ext
37423 #
37424 if test "$tst_links_sigsetjmp" = "no"; then
37425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37426$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37428/* end confdefs.h. */
37429
37430
37431 $curl_includes_setjmp
37432
37433int main (void)
37434{
37435
37436 sigjmp_buf env;
37437 if(0 != sigsetjmp(env, 0))
37438 return 1;
37439
37440 ;
37441 return 0;
37442}
37443
37444_ACEOF
37445if ac_fn_c_try_link "$LINENO"; then :
37446
37447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37448$as_echo "yes" >&6; }
37449 tst_macro_sigsetjmp="yes"
37450
37451else
37452
37453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37454$as_echo "no" >&6; }
37455 tst_macro_sigsetjmp="no"
37456
37457fi
37458rm -f core conftest.err conftest.$ac_objext \
37459 conftest$ac_exeext conftest.$ac_ext
37460 fi
37461 #
37462 if test "$tst_links_sigsetjmp" = "yes"; then
37463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37464$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37466/* end confdefs.h. */
37467
37468 $curl_includes_setjmp
37469
37470_ACEOF
37471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37472 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37473
37474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37475$as_echo "yes" >&6; }
37476 tst_proto_sigsetjmp="yes"
37477
37478else
37479
37480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37481$as_echo "no" >&6; }
37482 tst_proto_sigsetjmp="no"
37483
37484fi
37485rm -f conftest*
37486
37487 fi
37488 #
37489 if test "$tst_proto_sigsetjmp" = "yes" ||
37490 test "$tst_macro_sigsetjmp" = "yes"; then
37491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37492$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37494/* end confdefs.h. */
37495
37496
37497 $curl_includes_setjmp
37498
37499int main (void)
37500{
37501
37502 sigjmp_buf env;
37503 if(0 != sigsetjmp(env, 0))
37504 return 1;
37505
37506 ;
37507 return 0;
37508}
37509
37510_ACEOF
37511if ac_fn_c_try_compile "$LINENO"; then :
37512
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37514$as_echo "yes" >&6; }
37515 tst_compi_sigsetjmp="yes"
37516
37517else
37518
37519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37520$as_echo "no" >&6; }
37521 tst_compi_sigsetjmp="no"
37522
37523fi
37524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37525 fi
37526 #
37527 if test "$tst_compi_sigsetjmp" = "yes"; then
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37529$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37530 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37532$as_echo "yes" >&6; }
37533 tst_allow_sigsetjmp="yes"
37534 else
37535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37536$as_echo "no" >&6; }
37537 tst_allow_sigsetjmp="no"
37538 fi
37539 fi
37540 #
37541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37542$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37543 if (test "$tst_proto_sigsetjmp" = "yes" ||
37544 test "$tst_macro_sigsetjmp" = "yes") &&
37545 test "$tst_compi_sigsetjmp" = "yes" &&
37546 test "$tst_allow_sigsetjmp" = "yes"; then
37547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37548$as_echo "yes" >&6; }
37549
37550cat >>confdefs.h <<_ACEOF
37551#define HAVE_SIGSETJMP 1
37552_ACEOF
37553
37554 curl_cv_func_sigsetjmp="yes"
37555 else
37556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37557$as_echo "no" >&6; }
37558 curl_cv_func_sigsetjmp="no"
37559 fi
37560
37561
37562 #
37563 tst_links_socket="unknown"
37564 tst_proto_socket="unknown"
37565 tst_compi_socket="unknown"
37566 tst_allow_socket="unknown"
37567 #
37568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37569$as_echo_n "checking if socket can be linked... " >&6; }
37570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37571/* end confdefs.h. */
37572
37573
37574 $curl_includes_winsock2
37575 $curl_includes_sys_socket
37576 $curl_includes_socket
37577
37578int main (void)
37579{
37580
37581 if(0 != socket(0, 0, 0))
37582 return 1;
37583
37584 ;
37585 return 0;
37586}
37587
37588_ACEOF
37589if ac_fn_c_try_link "$LINENO"; then :
37590
37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37592$as_echo "yes" >&6; }
37593 tst_links_socket="yes"
37594
37595else
37596
37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37598$as_echo "no" >&6; }
37599 tst_links_socket="no"
37600
37601fi
37602rm -f core conftest.err conftest.$ac_objext \
37603 conftest$ac_exeext conftest.$ac_ext
37604 #
37605 if test "$tst_links_socket" = "yes"; then
37606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37607$as_echo_n "checking if socket is prototyped... " >&6; }
37608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37609/* end confdefs.h. */
37610
37611 $curl_includes_winsock2
37612 $curl_includes_sys_socket
37613 $curl_includes_socket
37614
37615_ACEOF
37616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37617 $EGREP "socket" >/dev/null 2>&1; then :
37618
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37620$as_echo "yes" >&6; }
37621 tst_proto_socket="yes"
37622
37623else
37624
37625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37626$as_echo "no" >&6; }
37627 tst_proto_socket="no"
37628
37629fi
37630rm -f conftest*
37631
37632 fi
37633 #
37634 if test "$tst_proto_socket" = "yes"; then
37635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37636$as_echo_n "checking if socket is compilable... " >&6; }
37637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37638/* end confdefs.h. */
37639
37640
37641 $curl_includes_winsock2
37642 $curl_includes_sys_socket
37643 $curl_includes_socket
37644
37645int main (void)
37646{
37647
37648 if(0 != socket(0, 0, 0))
37649 return 1;
37650
37651 ;
37652 return 0;
37653}
37654
37655_ACEOF
37656if ac_fn_c_try_compile "$LINENO"; then :
37657
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37659$as_echo "yes" >&6; }
37660 tst_compi_socket="yes"
37661
37662else
37663
37664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37665$as_echo "no" >&6; }
37666 tst_compi_socket="no"
37667
37668fi
37669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37670 fi
37671 #
37672 if test "$tst_compi_socket" = "yes"; then
37673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37674$as_echo_n "checking if socket usage allowed... " >&6; }
37675 if test "x$curl_disallow_socket" != "xyes"; then
37676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37677$as_echo "yes" >&6; }
37678 tst_allow_socket="yes"
37679 else
37680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37681$as_echo "no" >&6; }
37682 tst_allow_socket="no"
37683 fi
37684 fi
37685 #
37686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37687$as_echo_n "checking if socket might be used... " >&6; }
37688 if test "$tst_links_socket" = "yes" &&
37689 test "$tst_proto_socket" = "yes" &&
37690 test "$tst_compi_socket" = "yes" &&
37691 test "$tst_allow_socket" = "yes"; then
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37693$as_echo "yes" >&6; }
37694
37695cat >>confdefs.h <<_ACEOF
37696#define HAVE_SOCKET 1
37697_ACEOF
37698
37699 curl_cv_func_socket="yes"
37700 else
37701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37702$as_echo "no" >&6; }
37703 curl_cv_func_socket="no"
37704 fi
37705
37706
37707 #
37708 tst_links_socketpair="unknown"
37709 tst_proto_socketpair="unknown"
37710 tst_compi_socketpair="unknown"
37711 tst_allow_socketpair="unknown"
37712 #
37713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37714$as_echo_n "checking if socketpair can be linked... " >&6; }
37715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37716/* end confdefs.h. */
37717
37718
37719#define socketpair innocuous_socketpair
37720#ifdef __STDC__
37721# include <limits.h>
37722#else
37723# include <assert.h>
37724#endif
37725#undef socketpair
37726#ifdef __cplusplus
37727extern "C"
37728#endif
37729char socketpair ();
37730#if defined __stub_socketpair || defined __stub___socketpair
37731choke me
37732#endif
37733
37734int main (void)
37735{
37736return socketpair ();
37737 ;
37738 return 0;
37739}
37740
37741_ACEOF
37742if ac_fn_c_try_link "$LINENO"; then :
37743
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37745$as_echo "yes" >&6; }
37746 tst_links_socketpair="yes"
37747
37748else
37749
37750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37751$as_echo "no" >&6; }
37752 tst_links_socketpair="no"
37753
37754fi
37755rm -f core conftest.err conftest.$ac_objext \
37756 conftest$ac_exeext conftest.$ac_ext
37757 #
37758 if test "$tst_links_socketpair" = "yes"; then
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37760$as_echo_n "checking if socketpair is prototyped... " >&6; }
37761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37762/* end confdefs.h. */
37763
37764 $curl_includes_sys_socket
37765 $curl_includes_socket
37766
37767_ACEOF
37768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37769 $EGREP "socketpair" >/dev/null 2>&1; then :
37770
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37772$as_echo "yes" >&6; }
37773 tst_proto_socketpair="yes"
37774
37775else
37776
37777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37778$as_echo "no" >&6; }
37779 tst_proto_socketpair="no"
37780
37781fi
37782rm -f conftest*
37783
37784 fi
37785 #
37786 if test "$tst_proto_socketpair" = "yes"; then
37787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37788$as_echo_n "checking if socketpair is compilable... " >&6; }
37789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37790/* end confdefs.h. */
37791
37792
37793 $curl_includes_sys_socket
37794 $curl_includes_socket
37795
37796int main (void)
37797{
37798
37799 int sv[2];
37800 if(0 != socketpair(0, 0, 0, sv))
37801 return 1;
37802
37803 ;
37804 return 0;
37805}
37806
37807_ACEOF
37808if ac_fn_c_try_compile "$LINENO"; then :
37809
37810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37811$as_echo "yes" >&6; }
37812 tst_compi_socketpair="yes"
37813
37814else
37815
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37817$as_echo "no" >&6; }
37818 tst_compi_socketpair="no"
37819
37820fi
37821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37822 fi
37823 #
37824 if test "$tst_compi_socketpair" = "yes"; then
37825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37826$as_echo_n "checking if socketpair usage allowed... " >&6; }
37827 if test "x$curl_disallow_socketpair" != "xyes"; then
37828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37829$as_echo "yes" >&6; }
37830 tst_allow_socketpair="yes"
37831 else
37832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37833$as_echo "no" >&6; }
37834 tst_allow_socketpair="no"
37835 fi
37836 fi
37837 #
37838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37839$as_echo_n "checking if socketpair might be used... " >&6; }
37840 if test "$tst_links_socketpair" = "yes" &&
37841 test "$tst_proto_socketpair" = "yes" &&
37842 test "$tst_compi_socketpair" = "yes" &&
37843 test "$tst_allow_socketpair" = "yes"; then
37844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37845$as_echo "yes" >&6; }
37846
37847cat >>confdefs.h <<_ACEOF
37848#define HAVE_SOCKETPAIR 1
37849_ACEOF
37850
37851 curl_cv_func_socketpair="yes"
37852 else
37853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37854$as_echo "no" >&6; }
37855 curl_cv_func_socketpair="no"
37856 fi
37857
37858
37859 #
37860 tst_links_strcasecmp="unknown"
37861 tst_proto_strcasecmp="unknown"
37862 tst_compi_strcasecmp="unknown"
37863 tst_allow_strcasecmp="unknown"
37864 #
37865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37866$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37868/* end confdefs.h. */
37869
37870
37871#define strcasecmp innocuous_strcasecmp
37872#ifdef __STDC__
37873# include <limits.h>
37874#else
37875# include <assert.h>
37876#endif
37877#undef strcasecmp
37878#ifdef __cplusplus
37879extern "C"
37880#endif
37881char strcasecmp ();
37882#if defined __stub_strcasecmp || defined __stub___strcasecmp
37883choke me
37884#endif
37885
37886int main (void)
37887{
37888return strcasecmp ();
37889 ;
37890 return 0;
37891}
37892
37893_ACEOF
37894if ac_fn_c_try_link "$LINENO"; then :
37895
37896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37897$as_echo "yes" >&6; }
37898 tst_links_strcasecmp="yes"
37899
37900else
37901
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37903$as_echo "no" >&6; }
37904 tst_links_strcasecmp="no"
37905
37906fi
37907rm -f core conftest.err conftest.$ac_objext \
37908 conftest$ac_exeext conftest.$ac_ext
37909 #
37910 if test "$tst_links_strcasecmp" = "yes"; then
37911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37912$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37914/* end confdefs.h. */
37915
37916 $curl_includes_string
37917
37918_ACEOF
37919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37920 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37921
37922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37923$as_echo "yes" >&6; }
37924 tst_proto_strcasecmp="yes"
37925
37926else
37927
37928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37929$as_echo "no" >&6; }
37930 tst_proto_strcasecmp="no"
37931
37932fi
37933rm -f conftest*
37934
37935 fi
37936 #
37937 if test "$tst_proto_strcasecmp" = "yes"; then
37938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37939$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37941/* end confdefs.h. */
37942
37943
37944 $curl_includes_string
37945
37946int main (void)
37947{
37948
37949 if(0 != strcasecmp(0, 0))
37950 return 1;
37951
37952 ;
37953 return 0;
37954}
37955
37956_ACEOF
37957if ac_fn_c_try_compile "$LINENO"; then :
37958
37959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960$as_echo "yes" >&6; }
37961 tst_compi_strcasecmp="yes"
37962
37963else
37964
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966$as_echo "no" >&6; }
37967 tst_compi_strcasecmp="no"
37968
37969fi
37970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37971 fi
37972 #
37973 if test "$tst_compi_strcasecmp" = "yes"; then
37974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37975$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37976 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37978$as_echo "yes" >&6; }
37979 tst_allow_strcasecmp="yes"
37980 else
37981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37982$as_echo "no" >&6; }
37983 tst_allow_strcasecmp="no"
37984 fi
37985 fi
37986 #
37987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37988$as_echo_n "checking if strcasecmp might be used... " >&6; }
37989 if test "$tst_links_strcasecmp" = "yes" &&
37990 test "$tst_proto_strcasecmp" = "yes" &&
37991 test "$tst_compi_strcasecmp" = "yes" &&
37992 test "$tst_allow_strcasecmp" = "yes"; then
37993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37994$as_echo "yes" >&6; }
37995
37996cat >>confdefs.h <<_ACEOF
37997#define HAVE_STRCASECMP 1
37998_ACEOF
37999
38000 curl_cv_func_strcasecmp="yes"
38001 else
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38003$as_echo "no" >&6; }
38004 curl_cv_func_strcasecmp="no"
38005 fi
38006
38007
38008 #
38009 tst_links_strcmpi="unknown"
38010 tst_proto_strcmpi="unknown"
38011 tst_compi_strcmpi="unknown"
38012 tst_allow_strcmpi="unknown"
38013 #
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38015$as_echo_n "checking if strcmpi can be linked... " >&6; }
38016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38017/* end confdefs.h. */
38018
38019
38020#define strcmpi innocuous_strcmpi
38021#ifdef __STDC__
38022# include <limits.h>
38023#else
38024# include <assert.h>
38025#endif
38026#undef strcmpi
38027#ifdef __cplusplus
38028extern "C"
38029#endif
38030char strcmpi ();
38031#if defined __stub_strcmpi || defined __stub___strcmpi
38032choke me
38033#endif
38034
38035int main (void)
38036{
38037return strcmpi ();
38038 ;
38039 return 0;
38040}
38041
38042_ACEOF
38043if ac_fn_c_try_link "$LINENO"; then :
38044
38045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38046$as_echo "yes" >&6; }
38047 tst_links_strcmpi="yes"
38048
38049else
38050
38051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38052$as_echo "no" >&6; }
38053 tst_links_strcmpi="no"
38054
38055fi
38056rm -f core conftest.err conftest.$ac_objext \
38057 conftest$ac_exeext conftest.$ac_ext
38058 #
38059 if test "$tst_links_strcmpi" = "yes"; then
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38061$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38063/* end confdefs.h. */
38064
38065 $curl_includes_string
38066
38067_ACEOF
38068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38069 $EGREP "strcmpi" >/dev/null 2>&1; then :
38070
38071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38072$as_echo "yes" >&6; }
38073 tst_proto_strcmpi="yes"
38074
38075else
38076
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38078$as_echo "no" >&6; }
38079 tst_proto_strcmpi="no"
38080
38081fi
38082rm -f conftest*
38083
38084 fi
38085 #
38086 if test "$tst_proto_strcmpi" = "yes"; then
38087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38088$as_echo_n "checking if strcmpi is compilable... " >&6; }
38089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38090/* end confdefs.h. */
38091
38092
38093 $curl_includes_string
38094
38095int main (void)
38096{
38097
38098 if(0 != strcmpi(0, 0))
38099 return 1;
38100
38101 ;
38102 return 0;
38103}
38104
38105_ACEOF
38106if ac_fn_c_try_compile "$LINENO"; then :
38107
38108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38109$as_echo "yes" >&6; }
38110 tst_compi_strcmpi="yes"
38111
38112else
38113
38114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38115$as_echo "no" >&6; }
38116 tst_compi_strcmpi="no"
38117
38118fi
38119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38120 fi
38121 #
38122 if test "$tst_compi_strcmpi" = "yes"; then
38123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38124$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38125 if test "x$curl_disallow_strcmpi" != "xyes"; then
38126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38127$as_echo "yes" >&6; }
38128 tst_allow_strcmpi="yes"
38129 else
38130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38131$as_echo "no" >&6; }
38132 tst_allow_strcmpi="no"
38133 fi
38134 fi
38135 #
38136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38137$as_echo_n "checking if strcmpi might be used... " >&6; }
38138 if test "$tst_links_strcmpi" = "yes" &&
38139 test "$tst_proto_strcmpi" = "yes" &&
38140 test "$tst_compi_strcmpi" = "yes" &&
38141 test "$tst_allow_strcmpi" = "yes"; then
38142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38143$as_echo "yes" >&6; }
38144
38145cat >>confdefs.h <<_ACEOF
38146#define HAVE_STRCMPI 1
38147_ACEOF
38148
38149 curl_cv_func_strcmpi="yes"
38150 else
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38152$as_echo "no" >&6; }
38153 curl_cv_func_strcmpi="no"
38154 fi
38155
38156
38157 #
38158 tst_links_strdup="unknown"
38159 tst_proto_strdup="unknown"
38160 tst_compi_strdup="unknown"
38161 tst_allow_strdup="unknown"
38162 #
38163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38164$as_echo_n "checking if strdup can be linked... " >&6; }
38165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38166/* end confdefs.h. */
38167
38168
38169#define strdup innocuous_strdup
38170#ifdef __STDC__
38171# include <limits.h>
38172#else
38173# include <assert.h>
38174#endif
38175#undef strdup
38176#ifdef __cplusplus
38177extern "C"
38178#endif
38179char strdup ();
38180#if defined __stub_strdup || defined __stub___strdup
38181choke me
38182#endif
38183
38184int main (void)
38185{
38186return strdup ();
38187 ;
38188 return 0;
38189}
38190
38191_ACEOF
38192if ac_fn_c_try_link "$LINENO"; then :
38193
38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38195$as_echo "yes" >&6; }
38196 tst_links_strdup="yes"
38197
38198else
38199
38200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38201$as_echo "no" >&6; }
38202 tst_links_strdup="no"
38203
38204fi
38205rm -f core conftest.err conftest.$ac_objext \
38206 conftest$ac_exeext conftest.$ac_ext
38207 #
38208 if test "$tst_links_strdup" = "yes"; then
38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38210$as_echo_n "checking if strdup is prototyped... " >&6; }
38211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38212/* end confdefs.h. */
38213
38214 $curl_includes_string
38215
38216_ACEOF
38217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38218 $EGREP "strdup" >/dev/null 2>&1; then :
38219
38220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38221$as_echo "yes" >&6; }
38222 tst_proto_strdup="yes"
38223
38224else
38225
38226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38227$as_echo "no" >&6; }
38228 tst_proto_strdup="no"
38229
38230fi
38231rm -f conftest*
38232
38233 fi
38234 #
38235 if test "$tst_proto_strdup" = "yes"; then
38236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38237$as_echo_n "checking if strdup is compilable... " >&6; }
38238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38239/* end confdefs.h. */
38240
38241
38242 $curl_includes_string
38243
38244int main (void)
38245{
38246
38247 if(0 != strdup(0))
38248 return 1;
38249
38250 ;
38251 return 0;
38252}
38253
38254_ACEOF
38255if ac_fn_c_try_compile "$LINENO"; then :
38256
38257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38258$as_echo "yes" >&6; }
38259 tst_compi_strdup="yes"
38260
38261else
38262
38263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38264$as_echo "no" >&6; }
38265 tst_compi_strdup="no"
38266
38267fi
38268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38269 fi
38270 #
38271 if test "$tst_compi_strdup" = "yes"; then
38272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38273$as_echo_n "checking if strdup usage allowed... " >&6; }
38274 if test "x$curl_disallow_strdup" != "xyes"; then
38275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38276$as_echo "yes" >&6; }
38277 tst_allow_strdup="yes"
38278 else
38279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38280$as_echo "no" >&6; }
38281 tst_allow_strdup="no"
38282 fi
38283 fi
38284 #
38285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38286$as_echo_n "checking if strdup might be used... " >&6; }
38287 if test "$tst_links_strdup" = "yes" &&
38288 test "$tst_proto_strdup" = "yes" &&
38289 test "$tst_compi_strdup" = "yes" &&
38290 test "$tst_allow_strdup" = "yes"; then
38291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38292$as_echo "yes" >&6; }
38293
38294cat >>confdefs.h <<_ACEOF
38295#define HAVE_STRDUP 1
38296_ACEOF
38297
38298 curl_cv_func_strdup="yes"
38299 else
38300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38301$as_echo "no" >&6; }
38302 curl_cv_func_strdup="no"
38303 fi
38304
38305
38306 #
38307 tst_links_strerror_r="unknown"
38308 tst_proto_strerror_r="unknown"
38309 tst_compi_strerror_r="unknown"
38310 tst_glibc_strerror_r="unknown"
38311 tst_posix_strerror_r="unknown"
38312 tst_allow_strerror_r="unknown"
38313 tst_works_glibc_strerror_r="unknown"
38314 tst_works_posix_strerror_r="unknown"
38315 tst_glibc_strerror_r_type_arg3="unknown"
38316 tst_posix_strerror_r_type_arg3="unknown"
38317 #
38318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38319$as_echo_n "checking if strerror_r can be linked... " >&6; }
38320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38321/* end confdefs.h. */
38322
38323
38324#define strerror_r innocuous_strerror_r
38325#ifdef __STDC__
38326# include <limits.h>
38327#else
38328# include <assert.h>
38329#endif
38330#undef strerror_r
38331#ifdef __cplusplus
38332extern "C"
38333#endif
38334char strerror_r ();
38335#if defined __stub_strerror_r || defined __stub___strerror_r
38336choke me
38337#endif
38338
38339int main (void)
38340{
38341return strerror_r ();
38342 ;
38343 return 0;
38344}
38345
38346_ACEOF
38347if ac_fn_c_try_link "$LINENO"; then :
38348
38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38350$as_echo "yes" >&6; }
38351 tst_links_strerror_r="yes"
38352
38353else
38354
38355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38356$as_echo "no" >&6; }
38357 tst_links_strerror_r="no"
38358
38359fi
38360rm -f core conftest.err conftest.$ac_objext \
38361 conftest$ac_exeext conftest.$ac_ext
38362 #
38363 if test "$tst_links_strerror_r" = "yes"; then
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38365$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38367/* end confdefs.h. */
38368
38369 $curl_includes_string
38370
38371_ACEOF
38372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38373 $EGREP "strerror_r" >/dev/null 2>&1; then :
38374
38375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38376$as_echo "yes" >&6; }
38377 tst_proto_strerror_r="yes"
38378
38379else
38380
38381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38382$as_echo "no" >&6; }
38383 tst_proto_strerror_r="no"
38384
38385fi
38386rm -f conftest*
38387
38388 fi
38389 #
38390 if test "$tst_proto_strerror_r" = "yes"; then
38391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38392$as_echo_n "checking if strerror_r is compilable... " >&6; }
38393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38394/* end confdefs.h. */
38395
38396
38397 $curl_includes_string
38398
38399int main (void)
38400{
38401
38402 if(0 != strerror_r(0, 0, 0))
38403 return 1;
38404
38405 ;
38406 return 0;
38407}
38408
38409_ACEOF
38410if ac_fn_c_try_compile "$LINENO"; then :
38411
38412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38413$as_echo "yes" >&6; }
38414 tst_compi_strerror_r="yes"
38415
38416else
38417
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419$as_echo "no" >&6; }
38420 tst_compi_strerror_r="no"
38421
38422fi
38423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38424 fi
38425 #
38426 if test "$tst_compi_strerror_r" = "yes"; then
38427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38428$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38429 tst_glibc_strerror_r_type_arg3="unknown"
38430 for arg3 in 'size_t' 'int' 'unsigned int'; do
38431 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38433/* end confdefs.h. */
38434
38435
38436 $curl_includes_string
38437 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38438
38439int main (void)
38440{
38441
38442 if(0 != strerror_r(0, 0, 0))
38443 return 1;
38444
38445 ;
38446 return 0;
38447}
38448
38449_ACEOF
38450if ac_fn_c_try_compile "$LINENO"; then :
38451
38452 tst_glibc_strerror_r_type_arg3="$arg3"
38453
38454fi
38455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38456 fi
38457 done
38458 case "$tst_glibc_strerror_r_type_arg3" in
38459 unknown)
38460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38461$as_echo "no" >&6; }
38462 tst_glibc_strerror_r="no"
38463 ;;
38464 *)
38465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38466$as_echo "yes" >&6; }
38467 tst_glibc_strerror_r="yes"
38468 ;;
38469 esac
38470 fi
38471 #
38472 if test "x$cross_compiling" != "xyes" &&
38473 test "$tst_glibc_strerror_r" = "yes"; then
38474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38475$as_echo_n "checking if strerror_r seems to work... " >&6; }
38476 if test "$cross_compiling" = yes; then :
38477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38479as_fn_error $? "cannot run test program while cross compiling
38480See \`config.log' for more details" "$LINENO" 5; }
38481else
38482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38483/* end confdefs.h. */
38484
38485
38486 $curl_includes_stdlib
38487 $curl_includes_string
38488# include <errno.h>
38489
38490int main (void)
38491{
38492
38493 char buffer[1024];
38494 char *string = 0;
38495 buffer[0] = '\0';
38496 string = strerror_r(EACCES, buffer, sizeof(buffer));
38497 if(!string)
38498 exit(1); /* fail */
38499 if(!string[0])
38500 exit(1); /* fail */
38501 else
38502 exit(0);
38503
38504 ;
38505 return 0;
38506}
38507
38508_ACEOF
38509if ac_fn_c_try_run "$LINENO"; then :
38510
38511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38512$as_echo "yes" >&6; }
38513 tst_works_glibc_strerror_r="yes"
38514
38515else
38516
38517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38518$as_echo "no" >&6; }
38519 tst_works_glibc_strerror_r="no"
38520
38521fi
38522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38523 conftest.$ac_objext conftest.beam conftest.$ac_ext
38524fi
38525
38526 fi
38527 #
38528 if test "$tst_compi_strerror_r" = "yes" &&
38529 test "$tst_works_glibc_strerror_r" != "yes"; then
38530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38531$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38532 tst_posix_strerror_r_type_arg3="unknown"
38533 for arg3 in 'size_t' 'int' 'unsigned int'; do
38534 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38536/* end confdefs.h. */
38537
38538
38539 $curl_includes_string
38540 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38541
38542int main (void)
38543{
38544
38545 if(0 != strerror_r(0, 0, 0))
38546 return 1;
38547
38548 ;
38549 return 0;
38550}
38551
38552_ACEOF
38553if ac_fn_c_try_compile "$LINENO"; then :
38554
38555 tst_posix_strerror_r_type_arg3="$arg3"
38556
38557fi
38558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38559 fi
38560 done
38561 case "$tst_posix_strerror_r_type_arg3" in
38562 unknown)
38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564$as_echo "no" >&6; }
38565 tst_posix_strerror_r="no"
38566 ;;
38567 *)
38568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38569$as_echo "yes" >&6; }
38570 tst_posix_strerror_r="yes"
38571 ;;
38572 esac
38573 fi
38574 #
38575 if test "x$cross_compiling" != "xyes" &&
38576 test "$tst_posix_strerror_r" = "yes"; then
38577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38578$as_echo_n "checking if strerror_r seems to work... " >&6; }
38579 if test "$cross_compiling" = yes; then :
38580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38582as_fn_error $? "cannot run test program while cross compiling
38583See \`config.log' for more details" "$LINENO" 5; }
38584else
38585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38586/* end confdefs.h. */
38587
38588
38589 $curl_includes_stdlib
38590 $curl_includes_string
38591# include <errno.h>
38592
38593int main (void)
38594{
38595
38596 char buffer[1024];
38597 int error = 1;
38598 buffer[0] = '\0';
38599 error = strerror_r(EACCES, buffer, sizeof(buffer));
38600 if(error)
38601 exit(1); /* fail */
38602 if(buffer[0] == '\0')
38603 exit(1); /* fail */
38604 else
38605 exit(0);
38606
38607 ;
38608 return 0;
38609}
38610
38611_ACEOF
38612if ac_fn_c_try_run "$LINENO"; then :
38613
38614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38615$as_echo "yes" >&6; }
38616 tst_works_posix_strerror_r="yes"
38617
38618else
38619
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38621$as_echo "no" >&6; }
38622 tst_works_posix_strerror_r="no"
38623
38624fi
38625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38626 conftest.$ac_objext conftest.beam conftest.$ac_ext
38627fi
38628
38629 fi
38630 #
38631 if test "$tst_works_glibc_strerror_r" = "yes"; then
38632 tst_posix_strerror_r="no"
38633 fi
38634 if test "$tst_works_posix_strerror_r" = "yes"; then
38635 tst_glibc_strerror_r="no"
38636 fi
38637 if test "$tst_glibc_strerror_r" = "yes" &&
38638 test "$tst_works_glibc_strerror_r" != "no" &&
38639 test "$tst_posix_strerror_r" != "yes"; then
38640 tst_allow_strerror_r="check"
38641 fi
38642 if test "$tst_posix_strerror_r" = "yes" &&
38643 test "$tst_works_posix_strerror_r" != "no" &&
38644 test "$tst_glibc_strerror_r" != "yes"; then
38645 tst_allow_strerror_r="check"
38646 fi
38647 if test "$tst_allow_strerror_r" = "check"; then
38648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38649$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38650 if test "x$curl_disallow_strerror_r" != "xyes"; then
38651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38652$as_echo "yes" >&6; }
38653 tst_allow_strerror_r="yes"
38654 else
38655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38656$as_echo "no" >&6; }
38657 tst_allow_strerror_r="no"
38658 fi
38659 fi
38660 #
38661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38662$as_echo_n "checking if strerror_r might be used... " >&6; }
38663 if test "$tst_links_strerror_r" = "yes" &&
38664 test "$tst_proto_strerror_r" = "yes" &&
38665 test "$tst_compi_strerror_r" = "yes" &&
38666 test "$tst_allow_strerror_r" = "yes"; then
38667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38668$as_echo "yes" >&6; }
38669 if test "$tst_glibc_strerror_r" = "yes"; then
38670
38671cat >>confdefs.h <<_ACEOF
38672#define HAVE_STRERROR_R 1
38673_ACEOF
38674
38675
38676cat >>confdefs.h <<_ACEOF
38677#define HAVE_GLIBC_STRERROR_R 1
38678_ACEOF
38679
38680
38681cat >>confdefs.h <<_ACEOF
38682#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38683_ACEOF
38684
38685 fi
38686 if test "$tst_posix_strerror_r" = "yes"; then
38687
38688cat >>confdefs.h <<_ACEOF
38689#define HAVE_STRERROR_R 1
38690_ACEOF
38691
38692
38693cat >>confdefs.h <<_ACEOF
38694#define HAVE_POSIX_STRERROR_R 1
38695_ACEOF
38696
38697
38698cat >>confdefs.h <<_ACEOF
38699#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38700_ACEOF
38701
38702 fi
38703 curl_cv_func_strerror_r="yes"
38704 else
38705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38706$as_echo "no" >&6; }
38707 curl_cv_func_strerror_r="no"
38708 fi
38709 #
38710 if test "$tst_compi_strerror_r" = "yes" &&
38711 test "$tst_allow_strerror_r" = "unknown"; then
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38713$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38714 fi
38715 #
38716
38717
38718 #
38719 tst_links_stricmp="unknown"
38720 tst_proto_stricmp="unknown"
38721 tst_compi_stricmp="unknown"
38722 tst_allow_stricmp="unknown"
38723 #
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38725$as_echo_n "checking if stricmp can be linked... " >&6; }
38726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38727/* end confdefs.h. */
38728
38729
38730#define stricmp innocuous_stricmp
38731#ifdef __STDC__
38732# include <limits.h>
38733#else
38734# include <assert.h>
38735#endif
38736#undef stricmp
38737#ifdef __cplusplus
38738extern "C"
38739#endif
38740char stricmp ();
38741#if defined __stub_stricmp || defined __stub___stricmp
38742choke me
38743#endif
38744
38745int main (void)
38746{
38747return stricmp ();
38748 ;
38749 return 0;
38750}
38751
38752_ACEOF
38753if ac_fn_c_try_link "$LINENO"; then :
38754
38755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38756$as_echo "yes" >&6; }
38757 tst_links_stricmp="yes"
38758
38759else
38760
38761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38762$as_echo "no" >&6; }
38763 tst_links_stricmp="no"
38764
38765fi
38766rm -f core conftest.err conftest.$ac_objext \
38767 conftest$ac_exeext conftest.$ac_ext
38768 #
38769 if test "$tst_links_stricmp" = "yes"; then
38770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38771$as_echo_n "checking if stricmp is prototyped... " >&6; }
38772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38773/* end confdefs.h. */
38774
38775 $curl_includes_string
38776
38777_ACEOF
38778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38779 $EGREP "stricmp" >/dev/null 2>&1; then :
38780
38781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38782$as_echo "yes" >&6; }
38783 tst_proto_stricmp="yes"
38784
38785else
38786
38787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788$as_echo "no" >&6; }
38789 tst_proto_stricmp="no"
38790
38791fi
38792rm -f conftest*
38793
38794 fi
38795 #
38796 if test "$tst_proto_stricmp" = "yes"; then
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38798$as_echo_n "checking if stricmp is compilable... " >&6; }
38799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38800/* end confdefs.h. */
38801
38802
38803 $curl_includes_string
38804
38805int main (void)
38806{
38807
38808 if(0 != stricmp(0, 0))
38809 return 1;
38810
38811 ;
38812 return 0;
38813}
38814
38815_ACEOF
38816if ac_fn_c_try_compile "$LINENO"; then :
38817
38818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38819$as_echo "yes" >&6; }
38820 tst_compi_stricmp="yes"
38821
38822else
38823
38824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38825$as_echo "no" >&6; }
38826 tst_compi_stricmp="no"
38827
38828fi
38829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38830 fi
38831 #
38832 if test "$tst_compi_stricmp" = "yes"; then
38833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38834$as_echo_n "checking if stricmp usage allowed... " >&6; }
38835 if test "x$curl_disallow_stricmp" != "xyes"; then
38836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38837$as_echo "yes" >&6; }
38838 tst_allow_stricmp="yes"
38839 else
38840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38841$as_echo "no" >&6; }
38842 tst_allow_stricmp="no"
38843 fi
38844 fi
38845 #
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38847$as_echo_n "checking if stricmp might be used... " >&6; }
38848 if test "$tst_links_stricmp" = "yes" &&
38849 test "$tst_proto_stricmp" = "yes" &&
38850 test "$tst_compi_stricmp" = "yes" &&
38851 test "$tst_allow_stricmp" = "yes"; then
38852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38853$as_echo "yes" >&6; }
38854
38855cat >>confdefs.h <<_ACEOF
38856#define HAVE_STRICMP 1
38857_ACEOF
38858
38859 curl_cv_func_stricmp="yes"
38860 else
38861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38862$as_echo "no" >&6; }
38863 curl_cv_func_stricmp="no"
38864 fi
38865
38866
38867 #
38868 tst_links_strncasecmp="unknown"
38869 tst_proto_strncasecmp="unknown"
38870 tst_compi_strncasecmp="unknown"
38871 tst_allow_strncasecmp="unknown"
38872 #
38873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38874$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38876/* end confdefs.h. */
38877
38878
38879#define strncasecmp innocuous_strncasecmp
38880#ifdef __STDC__
38881# include <limits.h>
38882#else
38883# include <assert.h>
38884#endif
38885#undef strncasecmp
38886#ifdef __cplusplus
38887extern "C"
38888#endif
38889char strncasecmp ();
38890#if defined __stub_strncasecmp || defined __stub___strncasecmp
38891choke me
38892#endif
38893
38894int main (void)
38895{
38896return strncasecmp ();
38897 ;
38898 return 0;
38899}
38900
38901_ACEOF
38902if ac_fn_c_try_link "$LINENO"; then :
38903
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905$as_echo "yes" >&6; }
38906 tst_links_strncasecmp="yes"
38907
38908else
38909
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911$as_echo "no" >&6; }
38912 tst_links_strncasecmp="no"
38913
38914fi
38915rm -f core conftest.err conftest.$ac_objext \
38916 conftest$ac_exeext conftest.$ac_ext
38917 #
38918 if test "$tst_links_strncasecmp" = "yes"; then
38919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38920$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38922/* end confdefs.h. */
38923
38924 $curl_includes_string
38925
38926_ACEOF
38927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38928 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38929
38930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38931$as_echo "yes" >&6; }
38932 tst_proto_strncasecmp="yes"
38933
38934else
38935
38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38937$as_echo "no" >&6; }
38938 tst_proto_strncasecmp="no"
38939
38940fi
38941rm -f conftest*
38942
38943 fi
38944 #
38945 if test "$tst_proto_strncasecmp" = "yes"; then
38946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38947$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38949/* end confdefs.h. */
38950
38951
38952 $curl_includes_string
38953
38954int main (void)
38955{
38956
38957 if(0 != strncasecmp(0, 0, 0))
38958 return 1;
38959
38960 ;
38961 return 0;
38962}
38963
38964_ACEOF
38965if ac_fn_c_try_compile "$LINENO"; then :
38966
38967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38968$as_echo "yes" >&6; }
38969 tst_compi_strncasecmp="yes"
38970
38971else
38972
38973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38974$as_echo "no" >&6; }
38975 tst_compi_strncasecmp="no"
38976
38977fi
38978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38979 fi
38980 #
38981 if test "$tst_compi_strncasecmp" = "yes"; then
38982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38983$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38984 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38986$as_echo "yes" >&6; }
38987 tst_allow_strncasecmp="yes"
38988 else
38989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38990$as_echo "no" >&6; }
38991 tst_allow_strncasecmp="no"
38992 fi
38993 fi
38994 #
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38996$as_echo_n "checking if strncasecmp might be used... " >&6; }
38997 if test "$tst_links_strncasecmp" = "yes" &&
38998 test "$tst_proto_strncasecmp" = "yes" &&
38999 test "$tst_compi_strncasecmp" = "yes" &&
39000 test "$tst_allow_strncasecmp" = "yes"; then
39001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39002$as_echo "yes" >&6; }
39003
39004cat >>confdefs.h <<_ACEOF
39005#define HAVE_STRNCASECMP 1
39006_ACEOF
39007
39008 curl_cv_func_strncasecmp="yes"
39009 else
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39011$as_echo "no" >&6; }
39012 curl_cv_func_strncasecmp="no"
39013 fi
39014
39015
39016 #
39017 tst_links_strncmpi="unknown"
39018 tst_proto_strncmpi="unknown"
39019 tst_compi_strncmpi="unknown"
39020 tst_allow_strncmpi="unknown"
39021 #
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39023$as_echo_n "checking if strncmpi can be linked... " >&6; }
39024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39025/* end confdefs.h. */
39026
39027
39028#define strncmpi innocuous_strncmpi
39029#ifdef __STDC__
39030# include <limits.h>
39031#else
39032# include <assert.h>
39033#endif
39034#undef strncmpi
39035#ifdef __cplusplus
39036extern "C"
39037#endif
39038char strncmpi ();
39039#if defined __stub_strncmpi || defined __stub___strncmpi
39040choke me
39041#endif
39042
39043int main (void)
39044{
39045return strncmpi ();
39046 ;
39047 return 0;
39048}
39049
39050_ACEOF
39051if ac_fn_c_try_link "$LINENO"; then :
39052
39053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054$as_echo "yes" >&6; }
39055 tst_links_strncmpi="yes"
39056
39057else
39058
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060$as_echo "no" >&6; }
39061 tst_links_strncmpi="no"
39062
39063fi
39064rm -f core conftest.err conftest.$ac_objext \
39065 conftest$ac_exeext conftest.$ac_ext
39066 #
39067 if test "$tst_links_strncmpi" = "yes"; then
39068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39069$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39071/* end confdefs.h. */
39072
39073 $curl_includes_string
39074
39075_ACEOF
39076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39077 $EGREP "strncmpi" >/dev/null 2>&1; then :
39078
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39080$as_echo "yes" >&6; }
39081 tst_proto_strncmpi="yes"
39082
39083else
39084
39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086$as_echo "no" >&6; }
39087 tst_proto_strncmpi="no"
39088
39089fi
39090rm -f conftest*
39091
39092 fi
39093 #
39094 if test "$tst_proto_strncmpi" = "yes"; then
39095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39096$as_echo_n "checking if strncmpi is compilable... " >&6; }
39097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39098/* end confdefs.h. */
39099
39100
39101 $curl_includes_string
39102
39103int main (void)
39104{
39105
39106 if(0 != strncmpi(0, 0))
39107 return 1;
39108
39109 ;
39110 return 0;
39111}
39112
39113_ACEOF
39114if ac_fn_c_try_compile "$LINENO"; then :
39115
39116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39117$as_echo "yes" >&6; }
39118 tst_compi_strncmpi="yes"
39119
39120else
39121
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39123$as_echo "no" >&6; }
39124 tst_compi_strncmpi="no"
39125
39126fi
39127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39128 fi
39129 #
39130 if test "$tst_compi_strncmpi" = "yes"; then
39131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39132$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39133 if test "x$curl_disallow_strncmpi" != "xyes"; then
39134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39135$as_echo "yes" >&6; }
39136 tst_allow_strncmpi="yes"
39137 else
39138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139$as_echo "no" >&6; }
39140 tst_allow_strncmpi="no"
39141 fi
39142 fi
39143 #
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39145$as_echo_n "checking if strncmpi might be used... " >&6; }
39146 if test "$tst_links_strncmpi" = "yes" &&
39147 test "$tst_proto_strncmpi" = "yes" &&
39148 test "$tst_compi_strncmpi" = "yes" &&
39149 test "$tst_allow_strncmpi" = "yes"; then
39150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39151$as_echo "yes" >&6; }
39152
39153cat >>confdefs.h <<_ACEOF
39154#define HAVE_STRNCMPI 1
39155_ACEOF
39156
39157 curl_cv_func_strncmpi="yes"
39158 else
39159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39160$as_echo "no" >&6; }
39161 curl_cv_func_strncmpi="no"
39162 fi
39163
39164
39165 #
39166 tst_links_strnicmp="unknown"
39167 tst_proto_strnicmp="unknown"
39168 tst_compi_strnicmp="unknown"
39169 tst_allow_strnicmp="unknown"
39170 #
39171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39172$as_echo_n "checking if strnicmp can be linked... " >&6; }
39173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39174/* end confdefs.h. */
39175
39176
39177#define strnicmp innocuous_strnicmp
39178#ifdef __STDC__
39179# include <limits.h>
39180#else
39181# include <assert.h>
39182#endif
39183#undef strnicmp
39184#ifdef __cplusplus
39185extern "C"
39186#endif
39187char strnicmp ();
39188#if defined __stub_strnicmp || defined __stub___strnicmp
39189choke me
39190#endif
39191
39192int main (void)
39193{
39194return strnicmp ();
39195 ;
39196 return 0;
39197}
39198
39199_ACEOF
39200if ac_fn_c_try_link "$LINENO"; then :
39201
39202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39203$as_echo "yes" >&6; }
39204 tst_links_strnicmp="yes"
39205
39206else
39207
39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39209$as_echo "no" >&6; }
39210 tst_links_strnicmp="no"
39211
39212fi
39213rm -f core conftest.err conftest.$ac_objext \
39214 conftest$ac_exeext conftest.$ac_ext
39215 #
39216 if test "$tst_links_strnicmp" = "yes"; then
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39218$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39220/* end confdefs.h. */
39221
39222 $curl_includes_string
39223
39224_ACEOF
39225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39226 $EGREP "strnicmp" >/dev/null 2>&1; then :
39227
39228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39229$as_echo "yes" >&6; }
39230 tst_proto_strnicmp="yes"
39231
39232else
39233
39234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39235$as_echo "no" >&6; }
39236 tst_proto_strnicmp="no"
39237
39238fi
39239rm -f conftest*
39240
39241 fi
39242 #
39243 if test "$tst_proto_strnicmp" = "yes"; then
39244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39245$as_echo_n "checking if strnicmp is compilable... " >&6; }
39246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39247/* end confdefs.h. */
39248
39249
39250 $curl_includes_string
39251
39252int main (void)
39253{
39254
39255 if(0 != strnicmp(0, 0))
39256 return 1;
39257
39258 ;
39259 return 0;
39260}
39261
39262_ACEOF
39263if ac_fn_c_try_compile "$LINENO"; then :
39264
39265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39266$as_echo "yes" >&6; }
39267 tst_compi_strnicmp="yes"
39268
39269else
39270
39271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39272$as_echo "no" >&6; }
39273 tst_compi_strnicmp="no"
39274
39275fi
39276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39277 fi
39278 #
39279 if test "$tst_compi_strnicmp" = "yes"; then
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39281$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39282 if test "x$curl_disallow_strnicmp" != "xyes"; then
39283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39284$as_echo "yes" >&6; }
39285 tst_allow_strnicmp="yes"
39286 else
39287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39288$as_echo "no" >&6; }
39289 tst_allow_strnicmp="no"
39290 fi
39291 fi
39292 #
39293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39294$as_echo_n "checking if strnicmp might be used... " >&6; }
39295 if test "$tst_links_strnicmp" = "yes" &&
39296 test "$tst_proto_strnicmp" = "yes" &&
39297 test "$tst_compi_strnicmp" = "yes" &&
39298 test "$tst_allow_strnicmp" = "yes"; then
39299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39300$as_echo "yes" >&6; }
39301
39302cat >>confdefs.h <<_ACEOF
39303#define HAVE_STRNICMP 1
39304_ACEOF
39305
39306 curl_cv_func_strnicmp="yes"
39307 else
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39309$as_echo "no" >&6; }
39310 curl_cv_func_strnicmp="no"
39311 fi
39312
39313
39314 #
39315 tst_links_strstr="unknown"
39316 tst_proto_strstr="unknown"
39317 tst_compi_strstr="unknown"
39318 tst_allow_strstr="unknown"
39319 #
39320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39321$as_echo_n "checking if strstr can be linked... " >&6; }
39322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39323/* end confdefs.h. */
39324
39325
39326#define strstr innocuous_strstr
39327#ifdef __STDC__
39328# include <limits.h>
39329#else
39330# include <assert.h>
39331#endif
39332#undef strstr
39333#ifdef __cplusplus
39334extern "C"
39335#endif
39336char strstr ();
39337#if defined __stub_strstr || defined __stub___strstr
39338choke me
39339#endif
39340
39341int main (void)
39342{
39343return strstr ();
39344 ;
39345 return 0;
39346}
39347
39348_ACEOF
39349if ac_fn_c_try_link "$LINENO"; then :
39350
39351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39352$as_echo "yes" >&6; }
39353 tst_links_strstr="yes"
39354
39355else
39356
39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39358$as_echo "no" >&6; }
39359 tst_links_strstr="no"
39360
39361fi
39362rm -f core conftest.err conftest.$ac_objext \
39363 conftest$ac_exeext conftest.$ac_ext
39364 #
39365 if test "$tst_links_strstr" = "yes"; then
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39367$as_echo_n "checking if strstr is prototyped... " >&6; }
39368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39369/* end confdefs.h. */
39370
39371 $curl_includes_string
39372
39373_ACEOF
39374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39375 $EGREP "strstr" >/dev/null 2>&1; then :
39376
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39378$as_echo "yes" >&6; }
39379 tst_proto_strstr="yes"
39380
39381else
39382
39383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39384$as_echo "no" >&6; }
39385 tst_proto_strstr="no"
39386
39387fi
39388rm -f conftest*
39389
39390 fi
39391 #
39392 if test "$tst_proto_strstr" = "yes"; then
39393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39394$as_echo_n "checking if strstr is compilable... " >&6; }
39395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39396/* end confdefs.h. */
39397
39398
39399 $curl_includes_string
39400
39401int main (void)
39402{
39403
39404 if(0 != strstr(0, 0))
39405 return 1;
39406
39407 ;
39408 return 0;
39409}
39410
39411_ACEOF
39412if ac_fn_c_try_compile "$LINENO"; then :
39413
39414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39415$as_echo "yes" >&6; }
39416 tst_compi_strstr="yes"
39417
39418else
39419
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39421$as_echo "no" >&6; }
39422 tst_compi_strstr="no"
39423
39424fi
39425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39426 fi
39427 #
39428 if test "$tst_compi_strstr" = "yes"; then
39429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39430$as_echo_n "checking if strstr usage allowed... " >&6; }
39431 if test "x$curl_disallow_strstr" != "xyes"; then
39432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39433$as_echo "yes" >&6; }
39434 tst_allow_strstr="yes"
39435 else
39436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39437$as_echo "no" >&6; }
39438 tst_allow_strstr="no"
39439 fi
39440 fi
39441 #
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39443$as_echo_n "checking if strstr might be used... " >&6; }
39444 if test "$tst_links_strstr" = "yes" &&
39445 test "$tst_proto_strstr" = "yes" &&
39446 test "$tst_compi_strstr" = "yes" &&
39447 test "$tst_allow_strstr" = "yes"; then
39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39449$as_echo "yes" >&6; }
39450
39451cat >>confdefs.h <<_ACEOF
39452#define HAVE_STRSTR 1
39453_ACEOF
39454
39455 curl_cv_func_strstr="yes"
39456 else
39457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39458$as_echo "no" >&6; }
39459 curl_cv_func_strstr="no"
39460 fi
39461
39462
39463 #
39464 tst_links_strtok_r="unknown"
39465 tst_proto_strtok_r="unknown"
39466 tst_compi_strtok_r="unknown"
39467 tst_allow_strtok_r="unknown"
39468 #
39469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39470$as_echo_n "checking if strtok_r can be linked... " >&6; }
39471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39472/* end confdefs.h. */
39473
39474
39475#define strtok_r innocuous_strtok_r
39476#ifdef __STDC__
39477# include <limits.h>
39478#else
39479# include <assert.h>
39480#endif
39481#undef strtok_r
39482#ifdef __cplusplus
39483extern "C"
39484#endif
39485char strtok_r ();
39486#if defined __stub_strtok_r || defined __stub___strtok_r
39487choke me
39488#endif
39489
39490int main (void)
39491{
39492return strtok_r ();
39493 ;
39494 return 0;
39495}
39496
39497_ACEOF
39498if ac_fn_c_try_link "$LINENO"; then :
39499
39500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39501$as_echo "yes" >&6; }
39502 tst_links_strtok_r="yes"
39503
39504else
39505
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39507$as_echo "no" >&6; }
39508 tst_links_strtok_r="no"
39509
39510fi
39511rm -f core conftest.err conftest.$ac_objext \
39512 conftest$ac_exeext conftest.$ac_ext
39513 #
39514 if test "$tst_links_strtok_r" = "yes"; then
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39516$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39518/* end confdefs.h. */
39519
39520 $curl_includes_string
39521
39522_ACEOF
39523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39524 $EGREP "strtok_r" >/dev/null 2>&1; then :
39525
39526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39527$as_echo "yes" >&6; }
39528 tst_proto_strtok_r="yes"
39529
39530else
39531
39532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39533$as_echo "no" >&6; }
39534 tst_proto_strtok_r="no"
39535
39536fi
39537rm -f conftest*
39538
39539 fi
39540 #
39541 if test "$tst_proto_strtok_r" = "yes"; then
39542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39543$as_echo_n "checking if strtok_r is compilable... " >&6; }
39544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39545/* end confdefs.h. */
39546
39547
39548 $curl_includes_string
39549
39550int main (void)
39551{
39552
39553 if(0 != strtok_r(0, 0, 0))
39554 return 1;
39555
39556 ;
39557 return 0;
39558}
39559
39560_ACEOF
39561if ac_fn_c_try_compile "$LINENO"; then :
39562
39563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39564$as_echo "yes" >&6; }
39565 tst_compi_strtok_r="yes"
39566
39567else
39568
39569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39570$as_echo "no" >&6; }
39571 tst_compi_strtok_r="no"
39572
39573fi
39574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39575 fi
39576 #
39577 if test "$tst_compi_strtok_r" = "yes"; then
39578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39579$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39580 if test "x$curl_disallow_strtok_r" != "xyes"; then
39581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39582$as_echo "yes" >&6; }
39583 tst_allow_strtok_r="yes"
39584 else
39585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39586$as_echo "no" >&6; }
39587 tst_allow_strtok_r="no"
39588 fi
39589 fi
39590 #
39591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39592$as_echo_n "checking if strtok_r might be used... " >&6; }
39593 if test "$tst_links_strtok_r" = "yes" &&
39594 test "$tst_proto_strtok_r" = "yes" &&
39595 test "$tst_compi_strtok_r" = "yes" &&
39596 test "$tst_allow_strtok_r" = "yes"; then
39597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39598$as_echo "yes" >&6; }
39599
39600cat >>confdefs.h <<_ACEOF
39601#define HAVE_STRTOK_R 1
39602_ACEOF
39603
39604 curl_cv_func_strtok_r="yes"
39605 else
39606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39607$as_echo "no" >&6; }
39608 curl_cv_func_strtok_r="no"
39609 fi
39610
39611
39612 #
39613 tst_links_strtoll="unknown"
39614 tst_proto_strtoll="unknown"
39615 tst_compi_strtoll="unknown"
39616 tst_allow_strtoll="unknown"
39617 #
39618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39619$as_echo_n "checking if strtoll can be linked... " >&6; }
39620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39621/* end confdefs.h. */
39622
39623
39624#define strtoll innocuous_strtoll
39625#ifdef __STDC__
39626# include <limits.h>
39627#else
39628# include <assert.h>
39629#endif
39630#undef strtoll
39631#ifdef __cplusplus
39632extern "C"
39633#endif
39634char strtoll ();
39635#if defined __stub_strtoll || defined __stub___strtoll
39636choke me
39637#endif
39638
39639int main (void)
39640{
39641return strtoll ();
39642 ;
39643 return 0;
39644}
39645
39646_ACEOF
39647if ac_fn_c_try_link "$LINENO"; then :
39648
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39650$as_echo "yes" >&6; }
39651 tst_links_strtoll="yes"
39652
39653else
39654
39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656$as_echo "no" >&6; }
39657 tst_links_strtoll="no"
39658
39659fi
39660rm -f core conftest.err conftest.$ac_objext \
39661 conftest$ac_exeext conftest.$ac_ext
39662 #
39663 if test "$tst_links_strtoll" = "yes"; then
39664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39665$as_echo_n "checking if strtoll is prototyped... " >&6; }
39666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39667/* end confdefs.h. */
39668
39669 $curl_includes_stdlib
39670
39671_ACEOF
39672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39673 $EGREP "strtoll" >/dev/null 2>&1; then :
39674
39675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39676$as_echo "yes" >&6; }
39677 tst_proto_strtoll="yes"
39678
39679else
39680
39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39682$as_echo "no" >&6; }
39683 tst_proto_strtoll="no"
39684
39685fi
39686rm -f conftest*
39687
39688 fi
39689 #
39690 if test "$tst_proto_strtoll" = "yes"; then
39691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39692$as_echo_n "checking if strtoll is compilable... " >&6; }
39693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39694/* end confdefs.h. */
39695
39696
39697 $curl_includes_stdlib
39698
39699int main (void)
39700{
39701
39702 if(0 != strtoll(0, 0, 0))
39703 return 1;
39704
39705 ;
39706 return 0;
39707}
39708
39709_ACEOF
39710if ac_fn_c_try_compile "$LINENO"; then :
39711
39712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39713$as_echo "yes" >&6; }
39714 tst_compi_strtoll="yes"
39715
39716else
39717
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39719$as_echo "no" >&6; }
39720 tst_compi_strtoll="no"
39721
39722fi
39723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39724 fi
39725 #
39726 if test "$tst_compi_strtoll" = "yes"; then
39727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39728$as_echo_n "checking if strtoll usage allowed... " >&6; }
39729 if test "x$curl_disallow_strtoll" != "xyes"; then
39730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39731$as_echo "yes" >&6; }
39732 tst_allow_strtoll="yes"
39733 else
39734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39735$as_echo "no" >&6; }
39736 tst_allow_strtoll="no"
39737 fi
39738 fi
39739 #
39740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39741$as_echo_n "checking if strtoll might be used... " >&6; }
39742 if test "$tst_links_strtoll" = "yes" &&
39743 test "$tst_proto_strtoll" = "yes" &&
39744 test "$tst_compi_strtoll" = "yes" &&
39745 test "$tst_allow_strtoll" = "yes"; then
39746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39747$as_echo "yes" >&6; }
39748
39749cat >>confdefs.h <<_ACEOF
39750#define HAVE_STRTOLL 1
39751_ACEOF
39752
39753 curl_cv_func_strtoll="yes"
39754 else
39755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39756$as_echo "no" >&6; }
39757 curl_cv_func_strtoll="no"
39758 fi
39759
39760
39761curl_includes_sys_uio="\
39762/* includes start */
39763#ifdef HAVE_SYS_TYPES_H
39764# include <sys/types.h>
39765#endif
39766#ifdef HAVE_SYS_UIO_H
39767# include <sys/uio.h>
39768#endif
39769/* includes end */"
39770 for ac_header in sys/types.h sys/uio.h
39771do :
39772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39773ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39774"
39775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39776 cat >>confdefs.h <<_ACEOF
39777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39778_ACEOF
39779
39780fi
39781
39782done
39783
39784
39785
39786 #
39787 tst_links_writev="unknown"
39788 tst_proto_writev="unknown"
39789 tst_compi_writev="unknown"
39790 tst_allow_writev="unknown"
39791 #
39792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39793$as_echo_n "checking if writev can be linked... " >&6; }
39794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39795/* end confdefs.h. */
39796
39797
39798#define writev innocuous_writev
39799#ifdef __STDC__
39800# include <limits.h>
39801#else
39802# include <assert.h>
39803#endif
39804#undef writev
39805#ifdef __cplusplus
39806extern "C"
39807#endif
39808char writev ();
39809#if defined __stub_writev || defined __stub___writev
39810choke me
39811#endif
39812
39813int main (void)
39814{
39815return writev ();
39816 ;
39817 return 0;
39818}
39819
39820_ACEOF
39821if ac_fn_c_try_link "$LINENO"; then :
39822
39823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39824$as_echo "yes" >&6; }
39825 tst_links_writev="yes"
39826
39827else
39828
39829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39830$as_echo "no" >&6; }
39831 tst_links_writev="no"
39832
39833fi
39834rm -f core conftest.err conftest.$ac_objext \
39835 conftest$ac_exeext conftest.$ac_ext
39836 #
39837 if test "$tst_links_writev" = "yes"; then
39838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39839$as_echo_n "checking if writev is prototyped... " >&6; }
39840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39841/* end confdefs.h. */
39842
39843 $curl_includes_sys_uio
39844
39845_ACEOF
39846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39847 $EGREP "writev" >/dev/null 2>&1; then :
39848
39849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39850$as_echo "yes" >&6; }
39851 tst_proto_writev="yes"
39852
39853else
39854
39855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39856$as_echo "no" >&6; }
39857 tst_proto_writev="no"
39858
39859fi
39860rm -f conftest*
39861
39862 fi
39863 #
39864 if test "$tst_proto_writev" = "yes"; then
39865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39866$as_echo_n "checking if writev is compilable... " >&6; }
39867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39868/* end confdefs.h. */
39869
39870
39871 $curl_includes_sys_uio
39872
39873int main (void)
39874{
39875
39876 if(0 != writev(0, 0, 0))
39877 return 1;
39878
39879 ;
39880 return 0;
39881}
39882
39883_ACEOF
39884if ac_fn_c_try_compile "$LINENO"; then :
39885
39886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39887$as_echo "yes" >&6; }
39888 tst_compi_writev="yes"
39889
39890else
39891
39892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39893$as_echo "no" >&6; }
39894 tst_compi_writev="no"
39895
39896fi
39897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39898 fi
39899 #
39900 if test "$tst_compi_writev" = "yes"; then
39901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39902$as_echo_n "checking if writev usage allowed... " >&6; }
39903 if test "x$curl_disallow_writev" != "xyes"; then
39904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39905$as_echo "yes" >&6; }
39906 tst_allow_writev="yes"
39907 else
39908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39909$as_echo "no" >&6; }
39910 tst_allow_writev="no"
39911 fi
39912 fi
39913 #
39914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39915$as_echo_n "checking if writev might be used... " >&6; }
39916 if test "$tst_links_writev" = "yes" &&
39917 test "$tst_proto_writev" = "yes" &&
39918 test "$tst_compi_writev" = "yes" &&
39919 test "$tst_allow_writev" = "yes"; then
39920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39921$as_echo "yes" >&6; }
39922
39923cat >>confdefs.h <<_ACEOF
39924#define HAVE_WRITEV 1
39925_ACEOF
39926
39927 curl_cv_func_writev="yes"
39928 else
39929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39930$as_echo "no" >&6; }
39931 curl_cv_func_writev="no"
39932 fi
39933
39934
39935case $host in
39936 *msdosdjgpp)
39937 ac_cv_func_pipe=no
39938 skipcheck_pipe=yes
39939 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39940$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39941 ;;
39942esac
39943
39944for ac_func in geteuid \
39945 getpass_r \
39946 getppid \
39947 getpwuid \
39948 getpwuid_r \
39949 getrlimit \
39950 gettimeofday \
39951 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010039952 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039953 pipe \
39954 setlocale \
39955 setmode \
39956 setrlimit \
39957 utime \
39958 utimes
39959
39960do :
39961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39964 cat >>confdefs.h <<_ACEOF
39965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39966_ACEOF
39967
39968
39969else
39970
39971 func="$ac_func"
39972 eval skipcheck=\$skipcheck_$func
39973 if test "x$skipcheck" != "xyes"; then
39974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39975$as_echo_n "checking deeper for $func... " >&6; }
39976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39977/* end confdefs.h. */
39978
39979
39980
39981int main (void)
39982{
39983
39984 $func ();
39985
39986 ;
39987 return 0;
39988}
39989
39990_ACEOF
39991if ac_fn_c_try_link "$LINENO"; then :
39992
39993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39994$as_echo "yes" >&6; }
39995 eval "ac_cv_func_$func=yes"
39996
39997cat >>confdefs.h <<_ACEOF
39998#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39999_ACEOF
40000
40001
40002else
40003
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40005$as_echo "but still no" >&6; }
40006
40007fi
40008rm -f core conftest.err conftest.$ac_objext \
40009 conftest$ac_exeext conftest.$ac_ext
40010 fi
40011
40012fi
40013done
40014
40015
40016
40017 for ac_header in sys/types.h sys/socket.h netdb.h
40018do :
40019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40022 cat >>confdefs.h <<_ACEOF
40023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40024_ACEOF
40025
40026fi
40027
40028done
40029
40030 #
40031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
40032$as_echo_n "checking for getnameinfo... " >&6; }
40033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40034/* end confdefs.h. */
40035
40036
40037#define getnameinfo innocuous_getnameinfo
40038#ifdef __STDC__
40039# include <limits.h>
40040#else
40041# include <assert.h>
40042#endif
40043#undef getnameinfo
40044#ifdef __cplusplus
40045extern "C"
40046#endif
40047char getnameinfo ();
40048#if defined __stub_getnameinfo || defined __stub___getnameinfo
40049choke me
40050#endif
40051
40052int main (void)
40053{
40054return getnameinfo ();
40055 ;
40056 return 0;
40057}
40058
40059_ACEOF
40060if ac_fn_c_try_link "$LINENO"; then :
40061
40062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40063$as_echo "yes" >&6; }
40064 curl_cv_getnameinfo="yes"
40065
40066else
40067
40068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40069$as_echo "no" >&6; }
40070 curl_cv_getnameinfo="no"
40071
40072fi
40073rm -f core conftest.err conftest.$ac_objext \
40074 conftest$ac_exeext conftest.$ac_ext
40075 #
40076 if test "$curl_cv_getnameinfo" != "yes"; then
40077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
40078$as_echo_n "checking deeper for getnameinfo... " >&6; }
40079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40080/* end confdefs.h. */
40081
40082
40083
40084int main (void)
40085{
40086
40087 getnameinfo();
40088
40089 ;
40090 return 0;
40091}
40092
40093_ACEOF
40094if ac_fn_c_try_link "$LINENO"; then :
40095
40096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40097$as_echo "yes" >&6; }
40098 curl_cv_getnameinfo="yes"
40099
40100else
40101
40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40103$as_echo "but still no" >&6; }
40104 curl_cv_getnameinfo="no"
40105
40106fi
40107rm -f core conftest.err conftest.$ac_objext \
40108 conftest$ac_exeext conftest.$ac_ext
40109 fi
40110 #
40111 if test "$curl_cv_getnameinfo" != "yes"; then
40112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
40113$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
40114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40115/* end confdefs.h. */
40116
40117
40118#undef inline
40119#ifdef HAVE_WINDOWS_H
40120#ifndef WIN32_LEAN_AND_MEAN
40121#define WIN32_LEAN_AND_MEAN
40122#endif
40123#include <windows.h>
40124#ifdef HAVE_WINSOCK2_H
40125#include <winsock2.h>
40126#ifdef HAVE_WS2TCPIP_H
40127#include <ws2tcpip.h>
40128#endif
40129#endif
40130#else
40131#ifdef HAVE_SYS_TYPES_H
40132#include <sys/types.h>
40133#endif
40134#ifdef HAVE_SYS_SOCKET_H
40135#include <sys/socket.h>
40136#endif
40137#ifdef HAVE_NETDB_H
40138#include <netdb.h>
40139#endif
40140#endif
40141
40142int main (void)
40143{
40144
40145 getnameinfo(0, 0, 0, 0, 0, 0, 0);
40146
40147 ;
40148 return 0;
40149}
40150
40151_ACEOF
40152if ac_fn_c_try_link "$LINENO"; then :
40153
40154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40155$as_echo "yes" >&6; }
40156 curl_cv_getnameinfo="yes"
40157
40158else
40159
40160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40161$as_echo "but still no" >&6; }
40162 curl_cv_getnameinfo="no"
40163
40164fi
40165rm -f core conftest.err conftest.$ac_objext \
40166 conftest$ac_exeext conftest.$ac_ext
40167 fi
40168 #
40169 if test "$curl_cv_getnameinfo" = "yes"; then
40170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40171$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40172if ${curl_cv_func_getnameinfo_args+:} false; then :
40173 $as_echo_n "(cached) " >&6
40174else
40175
40176 curl_cv_func_getnameinfo_args="unknown"
40177 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40178 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40179 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40180 for gni_arg7 in 'int' 'unsigned int'; do
40181 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40183/* end confdefs.h. */
40184
40185
40186#undef inline
40187#ifdef HAVE_WINDOWS_H
40188#ifndef WIN32_LEAN_AND_MEAN
40189#define WIN32_LEAN_AND_MEAN
40190#endif
40191#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40192#undef _WIN32_WINNT
40193#define _WIN32_WINNT 0x0501
40194#endif
40195#include <windows.h>
40196#ifdef HAVE_WINSOCK2_H
40197#include <winsock2.h>
40198#ifdef HAVE_WS2TCPIP_H
40199#include <ws2tcpip.h>
40200#endif
40201#endif
40202#define GNICALLCONV WSAAPI
40203#else
40204#ifdef HAVE_SYS_TYPES_H
40205#include <sys/types.h>
40206#endif
40207#ifdef HAVE_SYS_SOCKET_H
40208#include <sys/socket.h>
40209#endif
40210#ifdef HAVE_NETDB_H
40211#include <netdb.h>
40212#endif
40213#define GNICALLCONV
40214#endif
40215 extern int GNICALLCONV
40216#ifdef __ANDROID__
40217__attribute__((overloadable))
40218#endif
40219 getnameinfo($gni_arg1, $gni_arg2,
40220 char *, $gni_arg46,
40221 char *, $gni_arg46,
40222 $gni_arg7);
40223
40224int main (void)
40225{
40226
40227 $gni_arg2 salen=0;
40228 $gni_arg46 hostlen=0;
40229 $gni_arg46 servlen=0;
40230 $gni_arg7 flags=0;
40231 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40232
40233 ;
40234 return 0;
40235}
40236
40237_ACEOF
40238if ac_fn_c_try_compile "$LINENO"; then :
40239
40240 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40241
40242fi
40243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40244 fi
40245 done
40246 done
40247 done
40248 done
40249
40250fi
40251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40252$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40253 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40255$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40257$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40258 else
40259 gni_prev_IFS=$IFS; IFS=','
40260 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40261 IFS=$gni_prev_IFS
40262 shift
40263 #
40264 gni_qual_type_arg1=$1
40265 #
40266
40267cat >>confdefs.h <<_ACEOF
40268#define GETNAMEINFO_TYPE_ARG2 $2
40269_ACEOF
40270
40271
40272cat >>confdefs.h <<_ACEOF
40273#define GETNAMEINFO_TYPE_ARG46 $3
40274_ACEOF
40275
40276
40277cat >>confdefs.h <<_ACEOF
40278#define GETNAMEINFO_TYPE_ARG7 $4
40279_ACEOF
40280
40281 #
40282 prev_sh_opts=$-
40283 #
40284 case $prev_sh_opts in
40285 *f*)
40286 ;;
40287 *)
40288 set -f
40289 ;;
40290 esac
40291 #
40292 case "$gni_qual_type_arg1" in
40293 const*)
40294 gni_qual_arg1=const
40295 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40296 ;;
40297 *)
40298 gni_qual_arg1=
40299 gni_type_arg1=$gni_qual_type_arg1
40300 ;;
40301 esac
40302 #
40303
40304cat >>confdefs.h <<_ACEOF
40305#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40306_ACEOF
40307
40308
40309cat >>confdefs.h <<_ACEOF
40310#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40311_ACEOF
40312
40313 #
40314 case $prev_sh_opts in
40315 *f*)
40316 ;;
40317 *)
40318 set +f
40319 ;;
40320 esac
40321 #
40322
40323cat >>confdefs.h <<_ACEOF
40324#define HAVE_GETNAMEINFO 1
40325_ACEOF
40326
40327 curl_cv_func_getnameinfo="yes"
40328 fi
40329 fi
40330
40331
40332if test "$ipv6" = "yes"; then
40333 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40334
40335$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40336
40337 IPV6_ENABLED=1
40338
40339 fi
40340
40341 for ac_header in stdio.h sys/types.h sys/socket.h \
40342 netdb.h netinet/in.h arpa/inet.h
40343do :
40344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40345ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40346if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40347 cat >>confdefs.h <<_ACEOF
40348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40349_ACEOF
40350
40351fi
40352
40353done
40354
40355 #
40356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40357$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40358if ${curl_cv_working_ni_withscopeid+:} false; then :
40359 $as_echo_n "(cached) " >&6
40360else
40361
40362 if test "$cross_compiling" = yes; then :
40363
40364 # Program is not run when cross-compiling. So we assume
40365 # NI_WITHSCOPEID will work if we are able to compile it.
40366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40367/* end confdefs.h. */
40368
40369
40370#include <sys/types.h>
40371#include <sys/socket.h>
40372#include <netdb.h>
40373
40374int main (void)
40375{
40376
40377 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40378
40379 ;
40380 return 0;
40381}
40382
40383_ACEOF
40384if ac_fn_c_try_compile "$LINENO"; then :
40385
40386 curl_cv_working_ni_withscopeid="yes"
40387
40388else
40389
40390 curl_cv_working_ni_withscopeid="no"
40391
40392fi
40393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40394
40395else
40396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40397/* end confdefs.h. */
40398
40399
40400#ifdef HAVE_STDLIB_H
40401#include <stdlib.h>
40402#endif
40403#ifdef HAVE_STDIO_H
40404#include <stdio.h>
40405#endif
40406#ifdef HAVE_SYS_TYPES_H
40407#include <sys/types.h>
40408#endif
40409#ifdef HAVE_SYS_SOCKET_H
40410#include <sys/socket.h>
40411#endif
40412#ifdef HAVE_NETDB_H
40413#include <netdb.h>
40414#endif
40415#ifdef HAVE_NETINET_IN_H
40416#include <netinet/in.h>
40417#endif
40418#ifdef HAVE_ARPA_INET_H
40419#include <arpa/inet.h>
40420#endif
40421
40422int main (void)
40423{
40424
40425#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40426#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40427 struct sockaddr_storage sa;
40428#else
40429 unsigned char sa[256];
40430#endif
40431 char hostbuf[NI_MAXHOST];
40432 int rc;
40433 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40434 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40435 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40436 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40437 if(fd < 0) {
40438 perror("socket()");
40439 return 1; /* Error creating socket */
40440 }
40441 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40442 if(rc) {
40443 perror("getsockname()");
40444 return 2; /* Error retrieving socket name */
40445 }
40446 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40447 if(rc) {
40448 printf("rc = %s\n", gai_strerror(rc));
40449 return 3; /* Error translating socket address */
40450 }
40451 return 0; /* Ok, NI_WITHSCOPEID works */
40452#else
40453 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40454#endif
40455
40456 ;
40457 return 0;
40458} # AC-LANG-PROGRAM
40459
40460_ACEOF
40461if ac_fn_c_try_run "$LINENO"; then :
40462
40463 # Exit code == 0. Program worked.
40464 curl_cv_working_ni_withscopeid="yes"
40465
40466else
40467
40468 # Exit code != 0. Program failed.
40469 curl_cv_working_ni_withscopeid="no"
40470
40471fi
40472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40473 conftest.$ac_objext conftest.beam conftest.$ac_ext
40474fi
40475 # AC-RUN-IFELSE
40476
40477fi
40478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40479$as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40480 case "$curl_cv_working_ni_withscopeid" in
40481 yes)
40482
40483$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40484
40485 ;;
40486 esac
40487
40488fi
40489
40490
40491 #
40492 tst_method="unknown"
40493
40494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40495$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40496 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40497 tst_method="fcntl O_NONBLOCK"
40498 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40499 tst_method="ioctl FIONBIO"
40500 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40501 tst_method="ioctlsocket FIONBIO"
40502 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40503 tst_method="IoctlSocket FIONBIO"
40504 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40505 tst_method="setsockopt SO_NONBLOCK"
40506 fi
40507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40508$as_echo "$tst_method" >&6; }
40509 if test "$tst_method" = "unknown"; then
40510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40511$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40512 fi
40513
40514
40515
40516# Extract the first word of "perl", so it can be a program name with args.
40517set dummy perl; ac_word=$2
40518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40519$as_echo_n "checking for $ac_word... " >&6; }
40520if ${ac_cv_path_PERL+:} false; then :
40521 $as_echo_n "(cached) " >&6
40522else
40523 case $PERL in
40524 [\\/]* | ?:[\\/]*)
40525 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40526 ;;
40527 *)
40528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40529as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40530for as_dir in $as_dummy
40531do
40532 IFS=$as_save_IFS
40533 test -z "$as_dir" && as_dir=.
40534 for ac_exec_ext in '' $ac_executable_extensions; do
40535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40536 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40538 break 2
40539 fi
40540done
40541 done
40542IFS=$as_save_IFS
40543
40544 ;;
40545esac
40546fi
40547PERL=$ac_cv_path_PERL
40548if test -n "$PERL"; then
40549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40550$as_echo "$PERL" >&6; }
40551else
40552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40553$as_echo "no" >&6; }
40554fi
40555
40556
40557
40558
40559for ac_prog in gnroff nroff
40560do
40561 # Extract the first word of "$ac_prog", so it can be a program name with args.
40562set dummy $ac_prog; ac_word=$2
40563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40564$as_echo_n "checking for $ac_word... " >&6; }
40565if ${ac_cv_path_NROFF+:} false; then :
40566 $as_echo_n "(cached) " >&6
40567else
40568 case $NROFF in
40569 [\\/]* | ?:[\\/]*)
40570 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40571 ;;
40572 *)
40573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40574as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40575for as_dir in $as_dummy
40576do
40577 IFS=$as_save_IFS
40578 test -z "$as_dir" && as_dir=.
40579 for ac_exec_ext in '' $ac_executable_extensions; do
40580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40581 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40583 break 2
40584 fi
40585done
40586 done
40587IFS=$as_save_IFS
40588
40589 ;;
40590esac
40591fi
40592NROFF=$ac_cv_path_NROFF
40593if test -n "$NROFF"; then
40594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40595$as_echo "$NROFF" >&6; }
40596else
40597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40598$as_echo "no" >&6; }
40599fi
40600
40601
40602 test -n "$NROFF" && break
40603done
40604
40605
40606
40607if test -n "$NROFF"; then
40608
40609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40610$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40611 MANOPT="-man"
40612 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40613 if test -z "$mancheck"; then
40614 MANOPT="-mandoc"
40615 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40616 if test -z "$mancheck"; then
40617 MANOPT=""
40618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40619$as_echo "failed" >&6; }
40620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40621$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40622 else
40623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40624$as_echo "$MANOPT" >&6; }
40625 fi
40626 else
40627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40628$as_echo "$MANOPT" >&6; }
40629 fi
40630
40631fi
40632
40633if test -z "$MANOPT"
40634then
40635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40636$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40637 USE_MANUAL="no";
40638fi
40639
40640
40641if test "$USE_MANUAL" = "1"; then
40642
40643$as_echo "#define USE_MANUAL 1" >>confdefs.h
40644
40645 curl_manual_msg="enabled"
40646fi
40647
40648 if test x"$USE_MANUAL" = x1; then
40649 USE_MANUAL_TRUE=
40650 USE_MANUAL_FALSE='#'
40651else
40652 USE_MANUAL_TRUE='#'
40653 USE_MANUAL_FALSE=
40654fi
40655
40656
40657
40658
40659
40660 #
40661 if test "$want_ares" = "yes"; then
40662 clean_CPPFLAGS="$CPPFLAGS"
40663 clean_LDFLAGS="$LDFLAGS"
40664 clean_LIBS="$LIBS"
40665 embedded_ares="unknown"
40666 configure_runpath=`pwd`
40667 embedded_ares_builddir="$configure_runpath/ares"
40668 if test -n "$want_ares_path"; then
40669 ares_CPPFLAGS="-I$want_ares_path/include"
40670 ares_LDFLAGS="-L$want_ares_path/lib"
40671 ares_LIBS="-lcares"
40672 else
40673 if test -d "$srcdir/ares"; then
40674 embedded_ares="yes"
40675 subdirs="$subdirs ares"
40676
40677 ares_CPPFLAGS=""
40678 ares_LDFLAGS="-L$embedded_ares_builddir"
40679 ares_LIBS="-lcares"
40680 else
40681 ares_CPPFLAGS=""
40682 ares_LDFLAGS=""
40683 ares_LIBS="-lcares"
40684 fi
40685 fi
40686 #
40687 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40688 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40689 LIBS="$ares_LIBS $clean_LIBS"
40690 #
40691 if test "$embedded_ares" != "yes"; then
40692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40693$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40695/* end confdefs.h. */
40696
40697
40698#include <ares.h>
40699 /* set of dummy functions in case c-ares was built with debug */
40700 void curl_dofree() { }
40701 void curl_sclose() { }
40702 void curl_domalloc() { }
40703 void curl_docalloc() { }
40704 void curl_socket() { }
40705
40706int main (void)
40707{
40708
40709 ares_channel channel;
40710 ares_cancel(channel); /* added in 1.2.0 */
40711 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40712 ares_dup(&channel, channel); /* added in 1.6.0 */
40713
40714 ;
40715 return 0;
40716}
40717
40718_ACEOF
40719if ac_fn_c_try_link "$LINENO"; then :
40720
40721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40722$as_echo "yes" >&6; }
40723
40724else
40725
40726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40727$as_echo "no" >&6; }
40728 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40729 CPPFLAGS="$clean_CPPFLAGS"
40730 LDFLAGS="$clean_LDFLAGS"
40731 LIBS="$clean_LIBS"
40732 # prevent usage
40733 want_ares="no"
40734
40735fi
40736rm -f core conftest.err conftest.$ac_objext \
40737 conftest$ac_exeext conftest.$ac_ext
40738 fi
40739 if test "$want_ares" = "yes"; then
40740
40741$as_echo "#define USE_ARES 1" >>confdefs.h
40742
40743 USE_ARES=1
40744
40745 curl_res_msg="c-ares"
40746 fi
40747 fi
40748
40749 if test x$embedded_ares = xyes; then
40750 USE_EMBEDDED_ARES_TRUE=
40751 USE_EMBEDDED_ARES_FALSE='#'
40752else
40753 USE_EMBEDDED_ARES_TRUE='#'
40754 USE_EMBEDDED_ARES_FALSE=
40755fi
40756
40757
40758if test "x$curl_cv_native_windows" != "xyes" &&
40759 test "x$enable_shared" = "xyes"; then
40760 build_libhostname=yes
40761else
40762 build_libhostname=no
40763fi
40764 if test x$build_libhostname = xyes; then
40765 BUILD_LIBHOSTNAME_TRUE=
40766 BUILD_LIBHOSTNAME_FALSE='#'
40767else
40768 BUILD_LIBHOSTNAME_TRUE='#'
40769 BUILD_LIBHOSTNAME_FALSE=
40770fi
40771
40772
40773if test "x$want_ares" != xyes; then
40774
40775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40776$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40777 OPT_THRES="default"
40778 # Check whether --enable-threaded_resolver was given.
40779if test "${enable_threaded_resolver+set}" = set; then :
40780 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40781fi
40782
40783 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040784 no)
40785 want_thres="no"
40786 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040787 *)
40788 want_thres="yes"
40789 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040790 esac
40791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40792$as_echo "$want_thres" >&6; }
40793
40794fi
40795
40796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40797$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40798# Check whether --enable-pthreads was given.
40799if test "${enable_pthreads+set}" = set; then :
40800 enableval=$enable_pthreads; case "$enableval" in
40801 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40802$as_echo "no" >&6; }
40803 want_pthreads=no
40804 ;;
40805 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40806$as_echo "yes" >&6; }
40807 want_pthreads=yes
40808 ;;
40809 esac
40810else
40811
40812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40813$as_echo "auto" >&6; }
40814 want_pthreads=auto
40815
40816
40817fi
40818
40819
40820if test "$want_pthreads" != "no"; then
40821 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40822 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40823 fi
40824 if test "$dontwant_rt" != "no"; then
40825 if test "$want_pthreads" = "yes"; then
40826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40827$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40828 fi
40829 want_pthreads=no
40830 fi
40831fi
40832
40833if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40834 want_pthreads=no
40835fi
40836
40837if test "$want_pthreads" != "no"; then
40838 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40839if test "x$ac_cv_header_pthread_h" = xyes; then :
40840
40841$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40842
40843 save_CFLAGS="$CFLAGS"
40844
40845 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40846if test "x$ac_cv_func_pthread_create" = xyes; then :
40847 USE_THREADS_POSIX=1
40848fi
40849
40850
40851 if test "$USE_THREADS_POSIX" != "1"
40852 then
40853 CFLAGS="$CFLAGS -pthread"
40854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40855$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40856if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40857 $as_echo_n "(cached) " >&6
40858else
40859 ac_check_lib_save_LIBS=$LIBS
40860LIBS="-lpthread $LIBS"
40861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40862/* end confdefs.h. */
40863
40864
40865#ifdef __cplusplus
40866extern "C"
40867#endif
40868char pthread_create ();
40869int main (void)
40870{
40871return pthread_create ();
40872 ;
40873 return 0;
40874}
40875_ACEOF
40876if ac_fn_c_try_link "$LINENO"; then :
40877 ac_cv_lib_pthread_pthread_create=yes
40878else
40879 ac_cv_lib_pthread_pthread_create=no
40880fi
40881rm -f core conftest.err conftest.$ac_objext \
40882 conftest$ac_exeext conftest.$ac_ext
40883LIBS=$ac_check_lib_save_LIBS
40884fi
40885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40886$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40887if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40888 USE_THREADS_POSIX=1
40889else
40890 CFLAGS="$save_CFLAGS"
40891fi
40892
40893 fi
40894
40895 if test "x$USE_THREADS_POSIX" = "x1"
40896 then
40897
40898$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40899
40900 curl_res_msg="POSIX threaded"
40901 fi
40902
40903fi
40904
40905
40906fi
40907
40908if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40909 if test "$want_pthreads" = "yes"; then
40910 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40911 fi
40912 if test "$curl_cv_native_windows" = "yes"; then
40913 USE_THREADS_WIN32=1
40914
40915$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40916
40917 curl_res_msg="Win32 threaded"
40918 else
40919 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40920 fi
40921fi
40922
40923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40924$as_echo_n "checking whether to enable verbose strings... " >&6; }
40925# Check whether --enable-verbose was given.
40926if test "${enable_verbose+set}" = set; then :
40927 enableval=$enable_verbose; case "$enableval" in
40928 no)
40929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40930$as_echo "no" >&6; }
40931
40932$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40933
40934 curl_verbose_msg="no"
40935 ;;
40936 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40937$as_echo "yes" >&6; }
40938 ;;
40939 esac
40940else
40941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40942$as_echo "yes" >&6; }
40943
40944fi
40945
40946
40947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40948$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40949# Check whether --enable-sspi was given.
40950if test "${enable_sspi+set}" = set; then :
40951 enableval=$enable_sspi; case "$enableval" in
40952 yes)
40953 if test "$curl_cv_native_windows" = "yes"; then
40954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40955$as_echo "yes" >&6; }
40956
40957$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40958
40959 USE_WINDOWS_SSPI=1
40960
40961 curl_sspi_msg="enabled"
40962 else
40963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40964$as_echo "no" >&6; }
40965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40966$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40967 fi
40968 ;;
40969 *)
40970 if test "x$WINSSL_ENABLED" = "x1"; then
40971 # --with-winssl implies --enable-sspi
40972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40973$as_echo "yes" >&6; }
40974 else
40975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40976$as_echo "no" >&6; }
40977 fi
40978 ;;
40979 esac
40980else
40981 if test "x$WINSSL_ENABLED" = "x1"; then
40982 # --with-winssl implies --enable-sspi
40983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40984$as_echo "yes" >&6; }
40985 else
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40987$as_echo "no" >&6; }
40988 fi
40989
40990fi
40991
40992
40993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40994$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40995# Check whether --enable-crypto-auth was given.
40996if test "${enable_crypto_auth+set}" = set; then :
40997 enableval=$enable_crypto_auth; case "$enableval" in
40998 no)
40999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41000$as_echo "no" >&6; }
41001
41002$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41003
41004 CURL_DISABLE_CRYPTO_AUTH=1
41005 ;;
41006 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41007$as_echo "yes" >&6; }
41008 ;;
41009 esac
41010else
41011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41012$as_echo "yes" >&6; }
41013
41014fi
41015
41016
41017
41018 OPT_NTLM_WB="default"
41019 # Check whether --enable-ntlm-wb was given.
41020if test "${enable_ntlm_wb+set}" = set; then :
41021 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41022fi
41023
41024 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41025 case "$OPT_NTLM_WB" in
41026 no)
41027 want_ntlm_wb="no"
41028 ;;
41029 default)
41030 want_ntlm_wb="yes"
41031 ;;
41032 *)
41033 want_ntlm_wb="yes"
41034 if test -n "$enableval" && test "$enableval" != "yes"; then
41035 want_ntlm_wb_file="$enableval"
41036 fi
41037 ;;
41038 esac
41039
41040
41041
41042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41043$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41044 if test "$curl_cv_native_windows" = "yes" ||
41045 test "x$SSL_ENABLED" = "x"; then
41046 want_ntlm_wb_file=""
41047 want_ntlm_wb="no"
41048 fi
41049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41050$as_echo "$want_ntlm_wb" >&6; }
41051 if test "$want_ntlm_wb" = "yes"; then
41052
41053$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41054
41055
41056cat >>confdefs.h <<_ACEOF
41057#define NTLM_WB_FILE "$want_ntlm_wb_file"
41058_ACEOF
41059
41060 NTLM_WB_ENABLED=1
41061 fi
41062
41063
41064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41065$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41066# Check whether --enable-tls-srp was given.
41067if test "${enable_tls_srp+set}" = set; then :
41068 enableval=$enable_tls_srp; case "$enableval" in
41069 no)
41070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41071$as_echo "no" >&6; }
41072
41073$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41074
41075 want_tls_srp=no
41076 ;;
41077 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41078$as_echo "yes" >&6; }
41079 want_tls_srp=yes
41080 ;;
41081 esac
41082else
41083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41084$as_echo "yes" >&6; }
41085 want_tls_srp=yes
41086
41087fi
41088
41089
41090if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41091
41092$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41093
41094 USE_TLS_SRP=1
41095 curl_tls_srp_msg="enabled"
41096fi
41097
41098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41099$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41100# Check whether --enable-unix-sockets was given.
41101if test "${enable_unix_sockets+set}" = set; then :
41102 enableval=$enable_unix_sockets; case "$enableval" in
41103 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41104$as_echo "no" >&6; }
41105 want_unix_sockets=no
41106 ;;
41107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41108$as_echo "yes" >&6; }
41109 want_unix_sockets=yes
41110 ;;
41111 esac
41112else
41113
41114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41115$as_echo "auto" >&6; }
41116 want_unix_sockets=auto
41117
41118
41119fi
41120
41121if test "x$want_unix_sockets" != "xno"; then
41122 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41123 #include <sys/un.h>
41124
41125"
41126if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41127
41128
41129$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41130
41131 USE_UNIX_SOCKETS=1
41132
41133 curl_unix_sockets_msg="enabled"
41134
41135else
41136
41137 if test "x$want_unix_sockets" = "xyes"; then
41138 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41139 fi
41140
41141fi
41142
41143fi
41144
41145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41146$as_echo_n "checking whether to enable support for cookies... " >&6; }
41147# Check whether --enable-cookies was given.
41148if test "${enable_cookies+set}" = set; then :
41149 enableval=$enable_cookies; case "$enableval" in
41150 no)
41151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41152$as_echo "no" >&6; }
41153
41154$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41155
41156 ;;
41157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41158$as_echo "yes" >&6; }
41159 ;;
41160 esac
41161else
41162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41163$as_echo "yes" >&6; }
41164
41165fi
41166
41167
41168
41169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41170$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41171 CFLAG_CURL_SYMBOL_HIDING=""
41172 doing_symbol_hiding="no"
41173 if test x"$curl_cv_native_windows" != "xyes" &&
41174 test "$want_symbol_hiding" = "yes" &&
41175 test "$supports_symbol_hiding" = "yes"; then
41176 doing_symbol_hiding="yes"
41177 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41178
41179cat >>confdefs.h <<_ACEOF
41180#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41181_ACEOF
41182
41183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41184$as_echo "yes" >&6; }
41185 else
41186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41187$as_echo "no" >&6; }
41188 fi
41189 if test x$doing_symbol_hiding = xyes; then
41190 DOING_CURL_SYMBOL_HIDING_TRUE=
41191 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41192else
41193 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41194 DOING_CURL_SYMBOL_HIDING_FALSE=
41195fi
41196
41197
41198
41199
Elliott Hughes82be86d2017-09-20 17:00:17 -070041200LIBCURL_LIBS=$LIBS
41201
41202
41203
41204
41205
41206BLANK_AT_MAKETIME=
41207
41208
41209 if test x$cross_compiling = xyes; then
41210 CROSSCOMPILING_TRUE=
41211 CROSSCOMPILING_FALSE='#'
41212else
41213 CROSSCOMPILING_TRUE='#'
41214 CROSSCOMPILING_FALSE=
41215fi
41216
41217
41218ENABLE_SHARED="$enable_shared"
41219
41220
41221ENABLE_STATIC="$enable_static"
41222
41223
41224
41225
41226if test "x$OPENSSL_ENABLED" = "x1"; then
41227 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41228elif test -n "$SSL_ENABLED"; then
41229 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41230fi
41231if test "x$IPV6_ENABLED" = "x1"; then
41232 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41233fi
41234if test "x$USE_UNIX_SOCKETS" = "x1"; then
41235 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41236fi
41237if test "x$HAVE_LIBZ" = "x1"; then
41238 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41239fi
Alex Deymo486467e2017-12-19 19:04:07 +010041240if test "x$HAVE_BROTLI" = "x1"; then
41241 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41242fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041243if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41244 -o "x$USE_THREADS_WIN32" = "x1"; then
41245 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41246fi
41247if test "x$IDN_ENABLED" = "x1"; then
41248 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41249fi
41250if test "x$USE_WINDOWS_SSPI" = "x1"; then
41251 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41252fi
41253
41254if test "x$HAVE_GSSAPI" = "x1"; then
41255 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41256fi
41257
41258if test "x$curl_psl_msg" = "xyes"; then
41259 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41260fi
41261
41262if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41263 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41264 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41265fi
41266
41267if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41268 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41269 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41270fi
41271
41272if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41273 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41274 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41275 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41276 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41277
41278 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41279 "x$NTLM_WB_ENABLED" = "x1"; then
41280 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41281 fi
41282 fi
41283fi
41284
41285if test "x$USE_TLS_SRP" = "x1"; then
41286 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41287fi
41288
41289if test "x$USE_NGHTTP2" = "x1"; then
41290 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41291fi
41292
Alex Deymo486467e2017-12-19 19:04:07 +010041293if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41294 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41295fi
41296
Elliott Hughes82be86d2017-09-20 17:00:17 -070041297if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41298 -o "x$NSS_ENABLED" = "x1"; then
41299 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41300fi
41301
41302
41303
41304if test "x$CURL_DISABLE_HTTP" != "x1"; then
41305 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41306 if test "x$SSL_ENABLED" = "x1"; then
41307 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41308 fi
41309fi
41310if test "x$CURL_DISABLE_FTP" != "x1"; then
41311 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41312 if test "x$SSL_ENABLED" = "x1"; then
41313 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41314 fi
41315fi
41316if test "x$CURL_DISABLE_FILE" != "x1"; then
41317 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41318fi
41319if test "x$CURL_DISABLE_TELNET" != "x1"; then
41320 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41321fi
41322if test "x$CURL_DISABLE_LDAP" != "x1"; then
41323 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41324 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41325 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41326 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41327 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41328 fi
41329 fi
41330fi
41331if test "x$CURL_DISABLE_DICT" != "x1"; then
41332 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41333fi
41334if test "x$CURL_DISABLE_TFTP" != "x1"; then
41335 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41336fi
41337if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41338 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41339fi
41340if test "x$CURL_DISABLE_POP3" != "x1"; then
41341 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41342 if test "x$SSL_ENABLED" = "x1"; then
41343 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41344 fi
41345fi
41346if test "x$CURL_DISABLE_IMAP" != "x1"; then
41347 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41348 if test "x$SSL_ENABLED" = "x1"; then
41349 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41350 fi
41351fi
41352if test "x$CURL_DISABLE_SMB" != "x1" \
41353 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41354 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41355 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41356 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41357 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41358 if test "x$SSL_ENABLED" = "x1"; then
41359 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41360 fi
41361fi
41362if test "x$CURL_DISABLE_SMTP" != "x1"; then
41363 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41364 if test "x$SSL_ENABLED" = "x1"; then
41365 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41366 fi
41367fi
41368if test "x$USE_LIBSSH2" = "x1"; then
41369 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41370 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41371fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041372if test "x$USE_LIBSSH" = "x1"; then
41373 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41374 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41375fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041376if test "x$CURL_DISABLE_RTSP" != "x1"; then
41377 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41378fi
41379if test "x$USE_LIBRTMP" = "x1"; then
41380 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41381fi
41382
41383SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41384
41385
41386
41387
41388squeeze CFLAGS
41389squeeze CPPFLAGS
41390squeeze DEFS
41391squeeze LDFLAGS
41392squeeze LIBS
41393
41394squeeze LIBCURL_LIBS
41395squeeze CURL_NETWORK_LIBS
41396squeeze CURL_NETWORK_AND_TIME_LIBS
41397
41398squeeze SUPPORT_FEATURES
41399squeeze SUPPORT_PROTOCOLS
41400
41401
41402
41403 xc_bad_var_libs=no
41404 for xc_word in $LIBS; do
41405 case "$xc_word" in
41406 -l* | --library=*)
41407 :
41408 ;;
41409 *)
41410 xc_bad_var_libs=yes
41411 ;;
41412 esac
41413 done
41414 if test $xc_bad_var_libs = yes; then
41415 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41416$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41417 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41418$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41419 fi
41420
41421
41422 xc_bad_var_ldflags=no
41423 for xc_word in $LDFLAGS; do
41424 case "$xc_word" in
41425 -D*)
41426 xc_bad_var_ldflags=yes
41427 ;;
41428 -U*)
41429 xc_bad_var_ldflags=yes
41430 ;;
41431 -I*)
41432 xc_bad_var_ldflags=yes
41433 ;;
41434 -l* | --library=*)
41435 xc_bad_var_ldflags=yes
41436 ;;
41437 esac
41438 done
41439 if test $xc_bad_var_ldflags = yes; then
41440 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41441$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41442 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41443 for xc_word in $LDFLAGS; do
41444 case "$xc_word" in
41445 -D*)
41446 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41447$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41448 ;;
41449 -U*)
41450 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41451$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41452 ;;
41453 -I*)
41454 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41455$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41456 ;;
41457 -l* | --library=*)
41458 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41459$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41460 ;;
41461 esac
41462 done
41463 fi
41464
41465
41466 xc_bad_var_cppflags=no
41467 for xc_word in $CPPFLAGS; do
41468 case "$xc_word" in
41469 -rpath*)
41470 xc_bad_var_cppflags=yes
41471 ;;
41472 -L* | --library-path=*)
41473 xc_bad_var_cppflags=yes
41474 ;;
41475 -l* | --library=*)
41476 xc_bad_var_cppflags=yes
41477 ;;
41478 esac
41479 done
41480 if test $xc_bad_var_cppflags = yes; then
41481 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41482$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41483 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41484 for xc_word in $CPPFLAGS; do
41485 case "$xc_word" in
41486 -rpath*)
41487 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41488$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41489 ;;
41490 -L* | --library-path=*)
41491 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41492$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41493 ;;
41494 -l* | --library=*)
41495 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41496$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41497 ;;
41498 esac
41499 done
41500 fi
41501
41502
41503 xc_bad_var_cflags=no
41504 for xc_word in $CFLAGS; do
41505 case "$xc_word" in
41506 -D*)
41507 xc_bad_var_cflags=yes
41508 ;;
41509 -U*)
41510 xc_bad_var_cflags=yes
41511 ;;
41512 -I*)
41513 xc_bad_var_cflags=yes
41514 ;;
41515 -rpath*)
41516 xc_bad_var_cflags=yes
41517 ;;
41518 -L* | --library-path=*)
41519 xc_bad_var_cflags=yes
41520 ;;
41521 -l* | --library=*)
41522 xc_bad_var_cflags=yes
41523 ;;
41524 esac
41525 done
41526 if test $xc_bad_var_cflags = yes; then
41527 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41528$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41529 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41530 for xc_word in $CFLAGS; do
41531 case "$xc_word" in
41532 -D*)
41533 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41534$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41535 ;;
41536 -U*)
41537 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41538$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41539 ;;
41540 -I*)
41541 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41542$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41543 ;;
41544 -rpath*)
41545 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41546$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41547 ;;
41548 -L* | --library-path=*)
41549 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41550$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41551 ;;
41552 -l* | --library=*)
41553 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41554$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41555 ;;
41556 esac
41557 done
41558 fi
41559
41560 if test $xc_bad_var_libs = yes ||
41561 test $xc_bad_var_cflags = yes ||
41562 test $xc_bad_var_ldflags = yes ||
41563 test $xc_bad_var_cppflags = yes; then
41564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41565$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41566 fi
41567
41568
Elliott Hughes0128fe42018-02-27 14:57:55 -080041569SSL_BACKENDS=${ssl_backends}
41570
41571
Elliott Hughes82be86d2017-09-20 17:00:17 -070041572if test "x$want_curldebug_assumed" = "xyes" &&
41573 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41574 ac_configure_args="$ac_configure_args --enable-curldebug"
41575fi
41576
Alex Deymo486467e2017-12-19 19:04:07 +010041577ac_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 -070041578
41579cat >confcache <<\_ACEOF
41580# This file is a shell script that caches the results of configure
41581# tests run on this system so they can be shared between configure
41582# scripts and configure runs, see configure's option --config-cache.
41583# It is not useful on other systems. If it contains results you don't
41584# want to keep, you may remove or edit it.
41585#
41586# config.status only pays attention to the cache file if you give it
41587# the --recheck option to rerun configure.
41588#
41589# `ac_cv_env_foo' variables (set or unset) will be overridden when
41590# loading this file, other *unset* `ac_cv_foo' will be assigned the
41591# following values.
41592
41593_ACEOF
41594
41595# The following way of writing the cache mishandles newlines in values,
41596# but we know of no workaround that is simple, portable, and efficient.
41597# So, we kill variables containing newlines.
41598# Ultrix sh set writes to stderr and can't be redirected directly,
41599# and sets the high bit in the cache file unless we assign to the vars.
41600(
41601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41602 eval ac_val=\$$ac_var
41603 case $ac_val in #(
41604 *${as_nl}*)
41605 case $ac_var in #(
41606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41608 esac
41609 case $ac_var in #(
41610 _ | IFS | as_nl) ;; #(
41611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41612 *) { eval $ac_var=; unset $ac_var;} ;;
41613 esac ;;
41614 esac
41615 done
41616
41617 (set) 2>&1 |
41618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41619 *${as_nl}ac_space=\ *)
41620 # `set' does not quote correctly, so add quotes: double-quote
41621 # substitution turns \\\\ into \\, and sed turns \\ into \.
41622 sed -n \
41623 "s/'/'\\\\''/g;
41624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41625 ;; #(
41626 *)
41627 # `set' quotes correctly as required by POSIX, so do not add quotes.
41628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41629 ;;
41630 esac |
41631 sort
41632) |
41633 sed '
41634 /^ac_cv_env_/b end
41635 t clear
41636 :clear
41637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41638 t end
41639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41640 :end' >>confcache
41641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41642 if test -w "$cache_file"; then
41643 if test "x$cache_file" != "x/dev/null"; then
41644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41645$as_echo "$as_me: updating cache $cache_file" >&6;}
41646 if test ! -f "$cache_file" || test -h "$cache_file"; then
41647 cat confcache >"$cache_file"
41648 else
41649 case $cache_file in #(
41650 */* | ?:*)
41651 mv -f confcache "$cache_file"$$ &&
41652 mv -f "$cache_file"$$ "$cache_file" ;; #(
41653 *)
41654 mv -f confcache "$cache_file" ;;
41655 esac
41656 fi
41657 fi
41658 else
41659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41661 fi
41662fi
41663rm -f confcache
41664
41665test "x$prefix" = xNONE && prefix=$ac_default_prefix
41666# Let make expand exec_prefix.
41667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41668
41669DEFS=-DHAVE_CONFIG_H
41670
41671ac_libobjs=
41672ac_ltlibobjs=
41673U=
41674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41675 # 1. Remove the extension, and $U if already installed.
41676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41679 # will be set to the directory where LIBOBJS objects are built.
41680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41682done
41683LIBOBJS=$ac_libobjs
41684
41685LTLIBOBJS=$ac_ltlibobjs
41686
41687
41688if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41689 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41690Usually this means the macro was only invoked conditionally." "$LINENO" 5
41691fi
41692if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41693 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41694Usually this means the macro was only invoked conditionally." "$LINENO" 5
41695fi
41696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41697$as_echo_n "checking that generated files are newer than configure... " >&6; }
41698 if test -n "$am_sleep_pid"; then
41699 # Hide warnings about reused PIDs.
41700 wait $am_sleep_pid 2>/dev/null
41701 fi
41702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41703$as_echo "done" >&6; }
41704if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41705 as_fn_error $? "conditional \"AMDEP\" was never defined.
41706Usually this means the macro was only invoked conditionally." "$LINENO" 5
41707fi
41708if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41709 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41710Usually this means the macro was only invoked conditionally." "$LINENO" 5
41711fi
41712 if test -n "$EXEEXT"; then
41713 am__EXEEXT_TRUE=
41714 am__EXEEXT_FALSE='#'
41715else
41716 am__EXEEXT_TRUE='#'
41717 am__EXEEXT_FALSE=
41718fi
41719
41720if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41721 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41722Usually this means the macro was only invoked conditionally." "$LINENO" 5
41723fi
41724if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41725 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41726Usually this means the macro was only invoked conditionally." "$LINENO" 5
41727fi
41728if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41729 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41730Usually this means the macro was only invoked conditionally." "$LINENO" 5
41731fi
41732if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41733 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41734Usually this means the macro was only invoked conditionally." "$LINENO" 5
41735fi
41736if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41737 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41738Usually this means the macro was only invoked conditionally." "$LINENO" 5
41739fi
41740if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41741 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41742Usually this means the macro was only invoked conditionally." "$LINENO" 5
41743fi
41744if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41745 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41746Usually this means the macro was only invoked conditionally." "$LINENO" 5
41747fi
41748if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41749 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41750Usually this means the macro was only invoked conditionally." "$LINENO" 5
41751fi
41752if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41753 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41754Usually this means the macro was only invoked conditionally." "$LINENO" 5
41755fi
Alex Deymo486467e2017-12-19 19:04:07 +010041756if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41757 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41758Usually this means the macro was only invoked conditionally." "$LINENO" 5
41759fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041760if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41761 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41762Usually this means the macro was only invoked conditionally." "$LINENO" 5
41763fi
41764if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41765 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41766Usually this means the macro was only invoked conditionally." "$LINENO" 5
41767fi
41768if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41769 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41770Usually this means the macro was only invoked conditionally." "$LINENO" 5
41771fi
41772if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41773 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41774Usually this means the macro was only invoked conditionally." "$LINENO" 5
41775fi
41776if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41777 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41778Usually this means the macro was only invoked conditionally." "$LINENO" 5
41779fi
41780if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41781 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41782Usually this means the macro was only invoked conditionally." "$LINENO" 5
41783fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041784if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41785 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41786Usually this means the macro was only invoked conditionally." "$LINENO" 5
41787fi
41788
41789: "${CONFIG_STATUS=./config.status}"
41790ac_write_fail=0
41791ac_clean_files_save=$ac_clean_files
41792ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41793{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41794$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41795as_write_fail=0
41796cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41797#! $SHELL
41798# Generated by $as_me.
41799# Run this file to recreate the current configuration.
41800# Compiler output produced by configure, useful for debugging
41801# configure, is in config.log if it exists.
41802
41803debug=false
41804ac_cs_recheck=false
41805ac_cs_silent=false
41806
41807SHELL=\${CONFIG_SHELL-$SHELL}
41808export SHELL
41809_ASEOF
41810cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41811## -------------------- ##
41812## M4sh Initialization. ##
41813## -------------------- ##
41814
41815# Be more Bourne compatible
41816DUALCASE=1; export DUALCASE # for MKS sh
41817if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41818 emulate sh
41819 NULLCMD=:
41820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41821 # is contrary to our usage. Disable this feature.
41822 alias -g '${1+"$@"}'='"$@"'
41823 setopt NO_GLOB_SUBST
41824else
41825 case `(set -o) 2>/dev/null` in #(
41826 *posix*) :
41827 set -o posix ;; #(
41828 *) :
41829 ;;
41830esac
41831fi
41832
41833
41834as_nl='
41835'
41836export as_nl
41837# Printing a long string crashes Solaris 7 /usr/bin/printf.
41838as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41839as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41840as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41841# Prefer a ksh shell builtin over an external printf program on Solaris,
41842# but without wasting forks for bash or zsh.
41843if test -z "$BASH_VERSION$ZSH_VERSION" \
41844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41845 as_echo='print -r --'
41846 as_echo_n='print -rn --'
41847elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41848 as_echo='printf %s\n'
41849 as_echo_n='printf %s'
41850else
41851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41853 as_echo_n='/usr/ucb/echo -n'
41854 else
41855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41856 as_echo_n_body='eval
41857 arg=$1;
41858 case $arg in #(
41859 *"$as_nl"*)
41860 expr "X$arg" : "X\\(.*\\)$as_nl";
41861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41862 esac;
41863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41864 '
41865 export as_echo_n_body
41866 as_echo_n='sh -c $as_echo_n_body as_echo'
41867 fi
41868 export as_echo_body
41869 as_echo='sh -c $as_echo_body as_echo'
41870fi
41871
41872
41873
41874# IFS
41875# We need space, tab and new line, in precisely that order. Quoting is
41876# there to prevent editors from complaining about space-tab.
41877# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41878# splitting by setting IFS to empty value.)
41879IFS=" "" $as_nl"
41880
41881# Find who we are. Look in the path if we contain no directory separator.
41882as_myself=
41883case $0 in #((
41884 *[\\/]* ) as_myself=$0 ;;
41885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41886for as_dir in $PATH
41887do
41888 IFS=$as_save_IFS
41889 test -z "$as_dir" && as_dir=.
41890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41891 done
41892IFS=$as_save_IFS
41893
41894 ;;
41895esac
41896# We did not find ourselves, most probably we were run as `sh COMMAND'
41897# in which case we are not to be found in the path.
41898if test "x$as_myself" = x; then
41899 as_myself=$0
41900fi
41901if test ! -f "$as_myself"; then
41902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41903 exit 1
41904fi
41905
41906# Unset variables that we do not need and which cause bugs (e.g. in
41907# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41908# suppresses any "Segmentation fault" message there. '((' could
41909# trigger a bug in pdksh 5.2.14.
41910for as_var in BASH_ENV ENV MAIL MAILPATH
41911do eval test x\${$as_var+set} = xset \
41912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41913done
41914PS1='$ '
41915PS2='> '
41916PS4='+ '
41917
41918# NLS nuisances.
41919LC_ALL=C
41920export LC_ALL
41921LANGUAGE=C
41922export LANGUAGE
41923
41924# CDPATH.
41925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41926
41927
41928# as_fn_error STATUS ERROR [LINENO LOG_FD]
41929# ----------------------------------------
41930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41932# script with STATUS, using 1 if that was 0.
41933as_fn_error ()
41934{
41935 as_status=$1; test $as_status -eq 0 && as_status=1
41936 if test "$4"; then
41937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41939 fi
41940 $as_echo "$as_me: error: $2" >&2
41941 as_fn_exit $as_status
41942} # as_fn_error
41943
41944
41945# as_fn_set_status STATUS
41946# -----------------------
41947# Set $? to STATUS, without forking.
41948as_fn_set_status ()
41949{
41950 return $1
41951} # as_fn_set_status
41952
41953# as_fn_exit STATUS
41954# -----------------
41955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41956as_fn_exit ()
41957{
41958 set +e
41959 as_fn_set_status $1
41960 exit $1
41961} # as_fn_exit
41962
41963# as_fn_unset VAR
41964# ---------------
41965# Portably unset VAR.
41966as_fn_unset ()
41967{
41968 { eval $1=; unset $1;}
41969}
41970as_unset=as_fn_unset
41971# as_fn_append VAR VALUE
41972# ----------------------
41973# Append the text in VALUE to the end of the definition contained in VAR. Take
41974# advantage of any shell optimizations that allow amortized linear growth over
41975# repeated appends, instead of the typical quadratic growth present in naive
41976# implementations.
41977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41978 eval 'as_fn_append ()
41979 {
41980 eval $1+=\$2
41981 }'
41982else
41983 as_fn_append ()
41984 {
41985 eval $1=\$$1\$2
41986 }
41987fi # as_fn_append
41988
41989# as_fn_arith ARG...
41990# ------------------
41991# Perform arithmetic evaluation on the ARGs, and store the result in the
41992# global $as_val. Take advantage of shells that can avoid forks. The arguments
41993# must be portable across $(()) and expr.
41994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41995 eval 'as_fn_arith ()
41996 {
41997 as_val=$(( $* ))
41998 }'
41999else
42000 as_fn_arith ()
42001 {
42002 as_val=`expr "$@" || test $? -eq 1`
42003 }
42004fi # as_fn_arith
42005
42006
42007if expr a : '\(a\)' >/dev/null 2>&1 &&
42008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42009 as_expr=expr
42010else
42011 as_expr=false
42012fi
42013
42014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42015 as_basename=basename
42016else
42017 as_basename=false
42018fi
42019
42020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42021 as_dirname=dirname
42022else
42023 as_dirname=false
42024fi
42025
42026as_me=`$as_basename -- "$0" ||
42027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42028 X"$0" : 'X\(//\)$' \| \
42029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42030$as_echo X/"$0" |
42031 sed '/^.*\/\([^/][^/]*\)\/*$/{
42032 s//\1/
42033 q
42034 }
42035 /^X\/\(\/\/\)$/{
42036 s//\1/
42037 q
42038 }
42039 /^X\/\(\/\).*/{
42040 s//\1/
42041 q
42042 }
42043 s/.*/./; q'`
42044
42045# Avoid depending upon Character Ranges.
42046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42049as_cr_digits='0123456789'
42050as_cr_alnum=$as_cr_Letters$as_cr_digits
42051
42052ECHO_C= ECHO_N= ECHO_T=
42053case `echo -n x` in #(((((
42054-n*)
42055 case `echo 'xy\c'` in
42056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42057 xy) ECHO_C='\c';;
42058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42059 ECHO_T=' ';;
42060 esac;;
42061*)
42062 ECHO_N='-n';;
42063esac
42064
42065rm -f conf$$ conf$$.exe conf$$.file
42066if test -d conf$$.dir; then
42067 rm -f conf$$.dir/conf$$.file
42068else
42069 rm -f conf$$.dir
42070 mkdir conf$$.dir 2>/dev/null
42071fi
42072if (echo >conf$$.file) 2>/dev/null; then
42073 if ln -s conf$$.file conf$$ 2>/dev/null; then
42074 as_ln_s='ln -s'
42075 # ... but there are two gotchas:
42076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42078 # In both cases, we have to default to `cp -pR'.
42079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42080 as_ln_s='cp -pR'
42081 elif ln conf$$.file conf$$ 2>/dev/null; then
42082 as_ln_s=ln
42083 else
42084 as_ln_s='cp -pR'
42085 fi
42086else
42087 as_ln_s='cp -pR'
42088fi
42089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42090rmdir conf$$.dir 2>/dev/null
42091
42092
42093# as_fn_mkdir_p
42094# -------------
42095# Create "$as_dir" as a directory, including parents if necessary.
42096as_fn_mkdir_p ()
42097{
42098
42099 case $as_dir in #(
42100 -*) as_dir=./$as_dir;;
42101 esac
42102 test -d "$as_dir" || eval $as_mkdir_p || {
42103 as_dirs=
42104 while :; do
42105 case $as_dir in #(
42106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42107 *) as_qdir=$as_dir;;
42108 esac
42109 as_dirs="'$as_qdir' $as_dirs"
42110 as_dir=`$as_dirname -- "$as_dir" ||
42111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42112 X"$as_dir" : 'X\(//\)[^/]' \| \
42113 X"$as_dir" : 'X\(//\)$' \| \
42114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42115$as_echo X"$as_dir" |
42116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42117 s//\1/
42118 q
42119 }
42120 /^X\(\/\/\)[^/].*/{
42121 s//\1/
42122 q
42123 }
42124 /^X\(\/\/\)$/{
42125 s//\1/
42126 q
42127 }
42128 /^X\(\/\).*/{
42129 s//\1/
42130 q
42131 }
42132 s/.*/./; q'`
42133 test -d "$as_dir" && break
42134 done
42135 test -z "$as_dirs" || eval "mkdir $as_dirs"
42136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42137
42138
42139} # as_fn_mkdir_p
42140if mkdir -p . 2>/dev/null; then
42141 as_mkdir_p='mkdir -p "$as_dir"'
42142else
42143 test -d ./-p && rmdir ./-p
42144 as_mkdir_p=false
42145fi
42146
42147
42148# as_fn_executable_p FILE
42149# -----------------------
42150# Test if FILE is an executable regular file.
42151as_fn_executable_p ()
42152{
42153 test -f "$1" && test -x "$1"
42154} # as_fn_executable_p
42155as_test_x='test -x'
42156as_executable_p=as_fn_executable_p
42157
42158# Sed expression to map a string onto a valid CPP name.
42159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42160
42161# Sed expression to map a string onto a valid variable name.
42162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42163
42164
42165exec 6>&1
42166## ----------------------------------- ##
42167## Main body of $CONFIG_STATUS script. ##
42168## ----------------------------------- ##
42169_ASEOF
42170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42171
42172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42173# Save the log message, to keep $0 and so on meaningful, and to
42174# report actual input values of CONFIG_FILES etc. instead of their
42175# values after options handling.
42176ac_log="
42177This file was extended by curl $as_me -, which was
42178generated by GNU Autoconf 2.69. Invocation command line was
42179
42180 CONFIG_FILES = $CONFIG_FILES
42181 CONFIG_HEADERS = $CONFIG_HEADERS
42182 CONFIG_LINKS = $CONFIG_LINKS
42183 CONFIG_COMMANDS = $CONFIG_COMMANDS
42184 $ $0 $@
42185
42186on `(hostname || uname -n) 2>/dev/null | sed 1q`
42187"
42188
42189_ACEOF
42190
42191case $ac_config_files in *"
42192"*) set x $ac_config_files; shift; ac_config_files=$*;;
42193esac
42194
42195case $ac_config_headers in *"
42196"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42197esac
42198
42199
42200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42201# Files that config.status was made for.
42202config_files="$ac_config_files"
42203config_headers="$ac_config_headers"
42204config_commands="$ac_config_commands"
42205
42206_ACEOF
42207
42208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42209ac_cs_usage="\
42210\`$as_me' instantiates files and other configuration actions
42211from templates according to the current configuration. Unless the files
42212and actions are specified as TAGs, all are instantiated by default.
42213
42214Usage: $0 [OPTION]... [TAG]...
42215
42216 -h, --help print this help, then exit
42217 -V, --version print version number and configuration settings, then exit
42218 --config print configuration, then exit
42219 -q, --quiet, --silent
42220 do not print progress messages
42221 -d, --debug don't remove temporary files
42222 --recheck update $as_me by reconfiguring in the same conditions
42223 --file=FILE[:TEMPLATE]
42224 instantiate the configuration file FILE
42225 --header=FILE[:TEMPLATE]
42226 instantiate the configuration header FILE
42227
42228Configuration files:
42229$config_files
42230
42231Configuration headers:
42232$config_headers
42233
42234Configuration commands:
42235$config_commands
42236
42237Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42238
42239_ACEOF
42240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42241ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42242ac_cs_version="\\
42243curl config.status -
42244configured by $0, generated by GNU Autoconf 2.69,
42245 with options \\"\$ac_cs_config\\"
42246
42247Copyright (C) 2012 Free Software Foundation, Inc.
42248This config.status script is free software; the Free Software Foundation
42249gives unlimited permission to copy, distribute and modify it."
42250
42251ac_pwd='$ac_pwd'
42252srcdir='$srcdir'
42253INSTALL='$INSTALL'
42254MKDIR_P='$MKDIR_P'
42255AWK='$AWK'
42256test -n "\$AWK" || AWK=awk
42257_ACEOF
42258
42259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42260# The default lists apply if the user does not specify any file.
42261ac_need_defaults=:
42262while test $# != 0
42263do
42264 case $1 in
42265 --*=?*)
42266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42268 ac_shift=:
42269 ;;
42270 --*=)
42271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42272 ac_optarg=
42273 ac_shift=:
42274 ;;
42275 *)
42276 ac_option=$1
42277 ac_optarg=$2
42278 ac_shift=shift
42279 ;;
42280 esac
42281
42282 case $ac_option in
42283 # Handling of the options.
42284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42285 ac_cs_recheck=: ;;
42286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42287 $as_echo "$ac_cs_version"; exit ;;
42288 --config | --confi | --conf | --con | --co | --c )
42289 $as_echo "$ac_cs_config"; exit ;;
42290 --debug | --debu | --deb | --de | --d | -d )
42291 debug=: ;;
42292 --file | --fil | --fi | --f )
42293 $ac_shift
42294 case $ac_optarg in
42295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42296 '') as_fn_error $? "missing file argument" ;;
42297 esac
42298 as_fn_append CONFIG_FILES " '$ac_optarg'"
42299 ac_need_defaults=false;;
42300 --header | --heade | --head | --hea )
42301 $ac_shift
42302 case $ac_optarg in
42303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42304 esac
42305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42306 ac_need_defaults=false;;
42307 --he | --h)
42308 # Conflict between --help and --header
42309 as_fn_error $? "ambiguous option: \`$1'
42310Try \`$0 --help' for more information.";;
42311 --help | --hel | -h )
42312 $as_echo "$ac_cs_usage"; exit ;;
42313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42315 ac_cs_silent=: ;;
42316
42317 # This is an error.
42318 -*) as_fn_error $? "unrecognized option: \`$1'
42319Try \`$0 --help' for more information." ;;
42320
42321 *) as_fn_append ac_config_targets " $1"
42322 ac_need_defaults=false ;;
42323
42324 esac
42325 shift
42326done
42327
42328ac_configure_extra_args=
42329
42330if $ac_cs_silent; then
42331 exec 6>/dev/null
42332 ac_configure_extra_args="$ac_configure_extra_args --silent"
42333fi
42334
42335_ACEOF
42336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42337if \$ac_cs_recheck; then
42338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42339 shift
42340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42341 CONFIG_SHELL='$SHELL'
42342 export CONFIG_SHELL
42343 exec "\$@"
42344fi
42345
42346_ACEOF
42347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42348exec 5>>config.log
42349{
42350 echo
42351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42352## Running $as_me. ##
42353_ASBOX
42354 $as_echo "$ac_log"
42355} >&5
42356
42357_ACEOF
42358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42359#
42360# INIT-COMMANDS
42361#
42362AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42363
42364
42365# The HP-UX ksh and POSIX shell print the target directory to stdout
42366# if CDPATH is set.
42367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42368
42369sed_quote_subst='$sed_quote_subst'
42370double_quote_subst='$double_quote_subst'
42371delay_variable_subst='$delay_variable_subst'
42372macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42373macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42374AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42375DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42376OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42377enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42378enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42379pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42380enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42381shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42382SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42383ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42384PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42385host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42386host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42387host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42388build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42389build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42390build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42391SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42392Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42393GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42394EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42395FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42396LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42397NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42398LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42399max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42400ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42401exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42402lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42403lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42404lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42405lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42406lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42407reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42408reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42409deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42410file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42411file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42412want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42413sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42414AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42415AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42416archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42417STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42418RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42419old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42420old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42421old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42422lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42423CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42424CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42425compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42426GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42427lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42428lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42429lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42430lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42431lt_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"`'
42432lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42433nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42434lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42435lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42436objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42437MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42438lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42439lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42440lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42441lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42442lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42443need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42444MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42445DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42446NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42447LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42448OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42449OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42450libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42451shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42452extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42453archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42454enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42455export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42456whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42457compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42458old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42459old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42460archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42461archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42462module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42463module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42464with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42465allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42466no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42467hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42468hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42469hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42470hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42471hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42472hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42473hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42474inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42475link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42476always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42477export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42478exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42479include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42480prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42481postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42482file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42483variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42484need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42485need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42486version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42487runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42488shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42489shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42490libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42491library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42492soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42493install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42494postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42495postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42496finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42497finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42498hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42499sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42500configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42501configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42502hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42503enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42504enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42505enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42506old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42507striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42508
42509LTCC='$LTCC'
42510LTCFLAGS='$LTCFLAGS'
42511compiler='$compiler_DEFAULT'
42512
42513# A function that is used when there is no print builtin or printf.
42514func_fallback_echo ()
42515{
42516 eval 'cat <<_LTECHO_EOF
42517\$1
42518_LTECHO_EOF'
42519}
42520
42521# Quote evaled strings.
42522for var in AS \
42523DLLTOOL \
42524OBJDUMP \
42525SHELL \
42526ECHO \
42527PATH_SEPARATOR \
42528SED \
42529GREP \
42530EGREP \
42531FGREP \
42532LD \
42533NM \
42534LN_S \
42535lt_SP2NL \
42536lt_NL2SP \
42537reload_flag \
42538deplibs_check_method \
42539file_magic_cmd \
42540file_magic_glob \
42541want_nocaseglob \
42542sharedlib_from_linklib_cmd \
42543AR \
42544AR_FLAGS \
42545archiver_list_spec \
42546STRIP \
42547RANLIB \
42548CC \
42549CFLAGS \
42550compiler \
42551lt_cv_sys_global_symbol_pipe \
42552lt_cv_sys_global_symbol_to_cdecl \
42553lt_cv_sys_global_symbol_to_import \
42554lt_cv_sys_global_symbol_to_c_name_address \
42555lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42556lt_cv_nm_interface \
42557nm_file_list_spec \
42558lt_cv_truncate_bin \
42559lt_prog_compiler_no_builtin_flag \
42560lt_prog_compiler_pic \
42561lt_prog_compiler_wl \
42562lt_prog_compiler_static \
42563lt_cv_prog_compiler_c_o \
42564need_locks \
42565MANIFEST_TOOL \
42566DSYMUTIL \
42567NMEDIT \
42568LIPO \
42569OTOOL \
42570OTOOL64 \
42571shrext_cmds \
42572export_dynamic_flag_spec \
42573whole_archive_flag_spec \
42574compiler_needs_object \
42575with_gnu_ld \
42576allow_undefined_flag \
42577no_undefined_flag \
42578hardcode_libdir_flag_spec \
42579hardcode_libdir_separator \
42580exclude_expsyms \
42581include_expsyms \
42582file_list_spec \
42583variables_saved_for_relink \
42584libname_spec \
42585library_names_spec \
42586soname_spec \
42587install_override_mode \
42588finish_eval \
42589old_striplib \
42590striplib; do
42591 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42592 *[\\\\\\\`\\"\\\$]*)
42593 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42594 ;;
42595 *)
42596 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42597 ;;
42598 esac
42599done
42600
42601# Double-quote double-evaled strings.
42602for var in reload_cmds \
42603old_postinstall_cmds \
42604old_postuninstall_cmds \
42605old_archive_cmds \
42606extract_expsyms_cmds \
42607old_archive_from_new_cmds \
42608old_archive_from_expsyms_cmds \
42609archive_cmds \
42610archive_expsym_cmds \
42611module_cmds \
42612module_expsym_cmds \
42613export_symbols_cmds \
42614prelink_cmds \
42615postlink_cmds \
42616postinstall_cmds \
42617postuninstall_cmds \
42618finish_cmds \
42619sys_lib_search_path_spec \
42620configure_time_dlsearch_path \
42621configure_time_lt_sys_library_path; do
42622 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42623 *[\\\\\\\`\\"\\\$]*)
42624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42625 ;;
42626 *)
42627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42628 ;;
42629 esac
42630done
42631
42632ac_aux_dir='$ac_aux_dir'
42633
42634# See if we are running on zsh, and set the options that allow our
42635# commands through without removal of \ escapes INIT.
42636if test -n "\${ZSH_VERSION+set}"; then
42637 setopt NO_GLOB_SUBST
42638fi
42639
42640
42641 PACKAGE='$PACKAGE'
42642 VERSION='$VERSION'
42643 RM='$RM'
42644 ofile='$ofile'
42645
42646
42647
42648
42649_ACEOF
42650
42651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42652
42653# Handling of arguments.
42654for ac_config_target in $ac_config_targets
42655do
42656 case $ac_config_target in
42657 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42661 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42662 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42663 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42664 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42665 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42666 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42667 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42668 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42669 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42670 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42671 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42672 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42673 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42674 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42675 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42676 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42677 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42678 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042679 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42680 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42681 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42682 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42683 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42684 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42685 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42686 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42687 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42688 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42689 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42690 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42691 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42692 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42693 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42694 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42695
42696 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42697 esac
42698done
42699
42700
42701# If the user did not use the arguments to specify the items to instantiate,
42702# then the envvar interface is used. Set only those that are not.
42703# We use the long form for the default assignment because of an extremely
42704# bizarre bug on SunOS 4.1.3.
42705if $ac_need_defaults; then
42706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42709fi
42710
42711# Have a temporary directory for convenience. Make it in the build tree
42712# simply because there is no reason against having it here, and in addition,
42713# creating and moving files from /tmp can sometimes cause problems.
42714# Hook for its removal unless debugging.
42715# Note that there is a small window in which the directory will not be cleaned:
42716# after its creation but before its name has been assigned to `$tmp'.
42717$debug ||
42718{
42719 tmp= ac_tmp=
42720 trap 'exit_status=$?
42721 : "${ac_tmp:=$tmp}"
42722 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42723' 0
42724 trap 'as_fn_exit 1' 1 2 13 15
42725}
42726# Create a (secure) tmp directory for tmp files.
42727
42728{
42729 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42730 test -d "$tmp"
42731} ||
42732{
42733 tmp=./conf$$-$RANDOM
42734 (umask 077 && mkdir "$tmp")
42735} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42736ac_tmp=$tmp
42737
42738# Set up the scripts for CONFIG_FILES section.
42739# No need to generate them if there are no CONFIG_FILES.
42740# This happens for instance with `./config.status config.h'.
42741if test -n "$CONFIG_FILES"; then
42742
42743
42744ac_cr=`echo X | tr X '\015'`
42745# On cygwin, bash can eat \r inside `` if the user requested igncr.
42746# But we know of no other shell where ac_cr would be empty at this
42747# point, so we can use a bashism as a fallback.
42748if test "x$ac_cr" = x; then
42749 eval ac_cr=\$\'\\r\'
42750fi
42751ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42752if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42753 ac_cs_awk_cr='\\r'
42754else
42755 ac_cs_awk_cr=$ac_cr
42756fi
42757
42758echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42759_ACEOF
42760
42761
42762{
42763 echo "cat >conf$$subs.awk <<_ACEOF" &&
42764 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42765 echo "_ACEOF"
42766} >conf$$subs.sh ||
42767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42768ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42769ac_delim='%!_!# '
42770for ac_last_try in false false false false false :; do
42771 . ./conf$$subs.sh ||
42772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42773
42774 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42775 if test $ac_delim_n = $ac_delim_num; then
42776 break
42777 elif $ac_last_try; then
42778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42779 else
42780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42781 fi
42782done
42783rm -f conf$$subs.sh
42784
42785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42786cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42787_ACEOF
42788sed -n '
42789h
42790s/^/S["/; s/!.*/"]=/
42791p
42792g
42793s/^[^!]*!//
42794:repl
42795t repl
42796s/'"$ac_delim"'$//
42797t delim
42798:nl
42799h
42800s/\(.\{148\}\)..*/\1/
42801t more1
42802s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42803p
42804n
42805b repl
42806:more1
42807s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42808p
42809g
42810s/.\{148\}//
42811t nl
42812:delim
42813h
42814s/\(.\{148\}\)..*/\1/
42815t more2
42816s/["\\]/\\&/g; s/^/"/; s/$/"/
42817p
42818b
42819:more2
42820s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42821p
42822g
42823s/.\{148\}//
42824t delim
42825' <conf$$subs.awk | sed '
42826/^[^""]/{
42827 N
42828 s/\n//
42829}
42830' >>$CONFIG_STATUS || ac_write_fail=1
42831rm -f conf$$subs.awk
42832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42833_ACAWK
42834cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42835 for (key in S) S_is_set[key] = 1
42836 FS = ""
42837
42838}
42839{
42840 line = $ 0
42841 nfields = split(line, field, "@")
42842 substed = 0
42843 len = length(field[1])
42844 for (i = 2; i < nfields; i++) {
42845 key = field[i]
42846 keylen = length(key)
42847 if (S_is_set[key]) {
42848 value = S[key]
42849 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42850 len += length(value) + length(field[++i])
42851 substed = 1
42852 } else
42853 len += 1 + keylen
42854 }
42855
42856 print line
42857}
42858
42859_ACAWK
42860_ACEOF
42861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42862if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42863 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42864else
42865 cat
42866fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42867 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42868_ACEOF
42869
42870# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42871# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42872# trailing colons and then remove the whole line if VPATH becomes empty
42873# (actually we leave an empty line to preserve line numbers).
42874if test "x$srcdir" = x.; then
42875 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42876h
42877s///
42878s/^/:/
42879s/[ ]*$/:/
42880s/:\$(srcdir):/:/g
42881s/:\${srcdir}:/:/g
42882s/:@srcdir@:/:/g
42883s/^:*//
42884s/:*$//
42885x
42886s/\(=[ ]*\).*/\1/
42887G
42888s/\n//
42889s/^[^=]*=[ ]*$//
42890}'
42891fi
42892
42893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42894fi # test -n "$CONFIG_FILES"
42895
42896# Set up the scripts for CONFIG_HEADERS section.
42897# No need to generate them if there are no CONFIG_HEADERS.
42898# This happens for instance with `./config.status Makefile'.
42899if test -n "$CONFIG_HEADERS"; then
42900cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42901BEGIN {
42902_ACEOF
42903
42904# Transform confdefs.h into an awk script `defines.awk', embedded as
42905# here-document in config.status, that substitutes the proper values into
42906# config.h.in to produce config.h.
42907
42908# Create a delimiter string that does not exist in confdefs.h, to ease
42909# handling of long lines.
42910ac_delim='%!_!# '
42911for ac_last_try in false false :; do
42912 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42913 if test -z "$ac_tt"; then
42914 break
42915 elif $ac_last_try; then
42916 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42917 else
42918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42919 fi
42920done
42921
42922# For the awk script, D is an array of macro values keyed by name,
42923# likewise P contains macro parameters if any. Preserve backslash
42924# newline sequences.
42925
42926ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42927sed -n '
42928s/.\{148\}/&'"$ac_delim"'/g
42929t rset
42930:rset
42931s/^[ ]*#[ ]*define[ ][ ]*/ /
42932t def
42933d
42934:def
42935s/\\$//
42936t bsnl
42937s/["\\]/\\&/g
42938s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42939D["\1"]=" \3"/p
42940s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42941d
42942:bsnl
42943s/["\\]/\\&/g
42944s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42945D["\1"]=" \3\\\\\\n"\\/p
42946t cont
42947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42948t cont
42949d
42950:cont
42951n
42952s/.\{148\}/&'"$ac_delim"'/g
42953t clear
42954:clear
42955s/\\$//
42956t bsnlc
42957s/["\\]/\\&/g; s/^/"/; s/$/"/p
42958d
42959:bsnlc
42960s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42961b cont
42962' <confdefs.h | sed '
42963s/'"$ac_delim"'/"\\\
42964"/g' >>$CONFIG_STATUS || ac_write_fail=1
42965
42966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42967 for (key in D) D_is_set[key] = 1
42968 FS = ""
42969}
42970/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42971 line = \$ 0
42972 split(line, arg, " ")
42973 if (arg[1] == "#") {
42974 defundef = arg[2]
42975 mac1 = arg[3]
42976 } else {
42977 defundef = substr(arg[1], 2)
42978 mac1 = arg[2]
42979 }
42980 split(mac1, mac2, "(") #)
42981 macro = mac2[1]
42982 prefix = substr(line, 1, index(line, defundef) - 1)
42983 if (D_is_set[macro]) {
42984 # Preserve the white space surrounding the "#".
42985 print prefix "define", macro P[macro] D[macro]
42986 next
42987 } else {
42988 # Replace #undef with comments. This is necessary, for example,
42989 # in the case of _POSIX_SOURCE, which is predefined and required
42990 # on some systems where configure will not decide to define it.
42991 if (defundef == "undef") {
42992 print "/*", prefix defundef, macro, "*/"
42993 next
42994 }
42995 }
42996}
42997{ print }
42998_ACAWK
42999_ACEOF
43000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43001 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43002fi # test -n "$CONFIG_HEADERS"
43003
43004
43005eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43006shift
43007for ac_tag
43008do
43009 case $ac_tag in
43010 :[FHLC]) ac_mode=$ac_tag; continue;;
43011 esac
43012 case $ac_mode$ac_tag in
43013 :[FHL]*:*);;
43014 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43015 :[FH]-) ac_tag=-:-;;
43016 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43017 esac
43018 ac_save_IFS=$IFS
43019 IFS=:
43020 set x $ac_tag
43021 IFS=$ac_save_IFS
43022 shift
43023 ac_file=$1
43024 shift
43025
43026 case $ac_mode in
43027 :L) ac_source=$1;;
43028 :[FH])
43029 ac_file_inputs=
43030 for ac_f
43031 do
43032 case $ac_f in
43033 -) ac_f="$ac_tmp/stdin";;
43034 *) # Look for the file first in the build tree, then in the source tree
43035 # (if the path is not absolute). The absolute path cannot be DOS-style,
43036 # because $ac_f cannot contain `:'.
43037 test -f "$ac_f" ||
43038 case $ac_f in
43039 [\\/$]*) false;;
43040 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43041 esac ||
43042 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43043 esac
43044 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43045 as_fn_append ac_file_inputs " '$ac_f'"
43046 done
43047
43048 # Let's still pretend it is `configure' which instantiates (i.e., don't
43049 # use $as_me), people would be surprised to read:
43050 # /* config.h. Generated by config.status. */
43051 configure_input='Generated from '`
43052 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43053 `' by configure.'
43054 if test x"$ac_file" != x-; then
43055 configure_input="$ac_file. $configure_input"
43056 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43057$as_echo "$as_me: creating $ac_file" >&6;}
43058 fi
43059 # Neutralize special characters interpreted by sed in replacement strings.
43060 case $configure_input in #(
43061 *\&* | *\|* | *\\* )
43062 ac_sed_conf_input=`$as_echo "$configure_input" |
43063 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43064 *) ac_sed_conf_input=$configure_input;;
43065 esac
43066
43067 case $ac_tag in
43068 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43070 esac
43071 ;;
43072 esac
43073
43074 ac_dir=`$as_dirname -- "$ac_file" ||
43075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43076 X"$ac_file" : 'X\(//\)[^/]' \| \
43077 X"$ac_file" : 'X\(//\)$' \| \
43078 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43079$as_echo X"$ac_file" |
43080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43081 s//\1/
43082 q
43083 }
43084 /^X\(\/\/\)[^/].*/{
43085 s//\1/
43086 q
43087 }
43088 /^X\(\/\/\)$/{
43089 s//\1/
43090 q
43091 }
43092 /^X\(\/\).*/{
43093 s//\1/
43094 q
43095 }
43096 s/.*/./; q'`
43097 as_dir="$ac_dir"; as_fn_mkdir_p
43098 ac_builddir=.
43099
43100case "$ac_dir" in
43101.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43102*)
43103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43104 # A ".." for each directory in $ac_dir_suffix.
43105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43106 case $ac_top_builddir_sub in
43107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43109 esac ;;
43110esac
43111ac_abs_top_builddir=$ac_pwd
43112ac_abs_builddir=$ac_pwd$ac_dir_suffix
43113# for backward compatibility:
43114ac_top_builddir=$ac_top_build_prefix
43115
43116case $srcdir in
43117 .) # We are building in place.
43118 ac_srcdir=.
43119 ac_top_srcdir=$ac_top_builddir_sub
43120 ac_abs_top_srcdir=$ac_pwd ;;
43121 [\\/]* | ?:[\\/]* ) # Absolute name.
43122 ac_srcdir=$srcdir$ac_dir_suffix;
43123 ac_top_srcdir=$srcdir
43124 ac_abs_top_srcdir=$srcdir ;;
43125 *) # Relative name.
43126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43127 ac_top_srcdir=$ac_top_build_prefix$srcdir
43128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43129esac
43130ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43131
43132
43133 case $ac_mode in
43134 :F)
43135 #
43136 # CONFIG_FILE
43137 #
43138
43139 case $INSTALL in
43140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43142 esac
43143 ac_MKDIR_P=$MKDIR_P
43144 case $MKDIR_P in
43145 [\\/$]* | ?:[\\/]* ) ;;
43146 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43147 esac
43148_ACEOF
43149
43150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43151# If the template does not know about datarootdir, expand it.
43152# FIXME: This hack should be removed a few years after 2.60.
43153ac_datarootdir_hack=; ac_datarootdir_seen=
43154ac_sed_dataroot='
43155/datarootdir/ {
43156 p
43157 q
43158}
43159/@datadir@/p
43160/@docdir@/p
43161/@infodir@/p
43162/@localedir@/p
43163/@mandir@/p'
43164case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43165*datarootdir*) ac_datarootdir_seen=yes;;
43166*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43168$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43169_ACEOF
43170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43171 ac_datarootdir_hack='
43172 s&@datadir@&$datadir&g
43173 s&@docdir@&$docdir&g
43174 s&@infodir@&$infodir&g
43175 s&@localedir@&$localedir&g
43176 s&@mandir@&$mandir&g
43177 s&\\\${datarootdir}&$datarootdir&g' ;;
43178esac
43179_ACEOF
43180
43181# Neutralize VPATH when `$srcdir' = `.'.
43182# Shell code in configure.ac might set extrasub.
43183# FIXME: do we really want to maintain this feature?
43184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43185ac_sed_extra="$ac_vpsub
43186$extrasub
43187_ACEOF
43188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43189:t
43190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43191s|@configure_input@|$ac_sed_conf_input|;t t
43192s&@top_builddir@&$ac_top_builddir_sub&;t t
43193s&@top_build_prefix@&$ac_top_build_prefix&;t t
43194s&@srcdir@&$ac_srcdir&;t t
43195s&@abs_srcdir@&$ac_abs_srcdir&;t t
43196s&@top_srcdir@&$ac_top_srcdir&;t t
43197s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43198s&@builddir@&$ac_builddir&;t t
43199s&@abs_builddir@&$ac_abs_builddir&;t t
43200s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43201s&@INSTALL@&$ac_INSTALL&;t t
43202s&@MKDIR_P@&$ac_MKDIR_P&;t t
43203$ac_datarootdir_hack
43204"
43205eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43206 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43207
43208test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43209 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43211 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43213which seems to be undefined. Please make sure it is defined" >&5
43214$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43215which seems to be undefined. Please make sure it is defined" >&2;}
43216
43217 rm -f "$ac_tmp/stdin"
43218 case $ac_file in
43219 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43220 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43221 esac \
43222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43223 ;;
43224 :H)
43225 #
43226 # CONFIG_HEADER
43227 #
43228 if test x"$ac_file" != x-; then
43229 {
43230 $as_echo "/* $configure_input */" \
43231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43232 } >"$ac_tmp/config.h" \
43233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43234 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43235 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43236$as_echo "$as_me: $ac_file is unchanged" >&6;}
43237 else
43238 rm -f "$ac_file"
43239 mv "$ac_tmp/config.h" "$ac_file" \
43240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43241 fi
43242 else
43243 $as_echo "/* $configure_input */" \
43244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43245 || as_fn_error $? "could not create -" "$LINENO" 5
43246 fi
43247# Compute "$ac_file"'s index in $config_headers.
43248_am_arg="$ac_file"
43249_am_stamp_count=1
43250for _am_header in $config_headers :; do
43251 case $_am_header in
43252 $_am_arg | $_am_arg:* )
43253 break ;;
43254 * )
43255 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43256 esac
43257done
43258echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43259$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43260 X"$_am_arg" : 'X\(//\)[^/]' \| \
43261 X"$_am_arg" : 'X\(//\)$' \| \
43262 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43263$as_echo X"$_am_arg" |
43264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43265 s//\1/
43266 q
43267 }
43268 /^X\(\/\/\)[^/].*/{
43269 s//\1/
43270 q
43271 }
43272 /^X\(\/\/\)$/{
43273 s//\1/
43274 q
43275 }
43276 /^X\(\/\).*/{
43277 s//\1/
43278 q
43279 }
43280 s/.*/./; q'`/stamp-h$_am_stamp_count
43281 ;;
43282
43283 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43284$as_echo "$as_me: executing $ac_file commands" >&6;}
43285 ;;
43286 esac
43287
43288
43289 case $ac_file$ac_mode in
43290 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43291 # Older Autoconf quotes --file arguments for eval, but not when files
43292 # are listed without --file. Let's play safe and only enable the eval
43293 # if we detect the quoting.
43294 case $CONFIG_FILES in
43295 *\'*) eval set x "$CONFIG_FILES" ;;
43296 *) set x $CONFIG_FILES ;;
43297 esac
43298 shift
43299 for mf
43300 do
43301 # Strip MF so we end up with the name of the file.
43302 mf=`echo "$mf" | sed -e 's/:.*$//'`
43303 # Check whether this is an Automake generated Makefile or not.
43304 # We used to match only the files named 'Makefile.in', but
43305 # some people rename them; so instead we look at the file content.
43306 # Grep'ing the first line is not enough: some people post-process
43307 # each Makefile.in and add a new line on top of each file to say so.
43308 # Grep'ing the whole file is not good either: AIX grep has a line
43309 # limit of 2048, but all sed's we know have understand at least 4000.
43310 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43311 dirpart=`$as_dirname -- "$mf" ||
43312$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43313 X"$mf" : 'X\(//\)[^/]' \| \
43314 X"$mf" : 'X\(//\)$' \| \
43315 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43316$as_echo X"$mf" |
43317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43318 s//\1/
43319 q
43320 }
43321 /^X\(\/\/\)[^/].*/{
43322 s//\1/
43323 q
43324 }
43325 /^X\(\/\/\)$/{
43326 s//\1/
43327 q
43328 }
43329 /^X\(\/\).*/{
43330 s//\1/
43331 q
43332 }
43333 s/.*/./; q'`
43334 else
43335 continue
43336 fi
43337 # Extract the definition of DEPDIR, am__include, and am__quote
43338 # from the Makefile without running 'make'.
43339 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43340 test -z "$DEPDIR" && continue
43341 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43342 test -z "$am__include" && continue
43343 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43344 # Find all dependency output files, they are included files with
43345 # $(DEPDIR) in their names. We invoke sed twice because it is the
43346 # simplest approach to changing $(DEPDIR) to its actual value in the
43347 # expansion.
43348 for file in `sed -n "
43349 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43350 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43351 # Make sure the directory exists.
43352 test -f "$dirpart/$file" && continue
43353 fdir=`$as_dirname -- "$file" ||
43354$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43355 X"$file" : 'X\(//\)[^/]' \| \
43356 X"$file" : 'X\(//\)$' \| \
43357 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43358$as_echo X"$file" |
43359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43360 s//\1/
43361 q
43362 }
43363 /^X\(\/\/\)[^/].*/{
43364 s//\1/
43365 q
43366 }
43367 /^X\(\/\/\)$/{
43368 s//\1/
43369 q
43370 }
43371 /^X\(\/\).*/{
43372 s//\1/
43373 q
43374 }
43375 s/.*/./; q'`
43376 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43377 # echo "creating $dirpart/$file"
43378 echo '# dummy' > "$dirpart/$file"
43379 done
43380 done
43381}
43382 ;;
43383 "libtool":C)
43384
43385 # See if we are running on zsh, and set the options that allow our
43386 # commands through without removal of \ escapes.
43387 if test -n "${ZSH_VERSION+set}"; then
43388 setopt NO_GLOB_SUBST
43389 fi
43390
43391 cfgfile=${ofile}T
43392 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43393 $RM "$cfgfile"
43394
43395 cat <<_LT_EOF >> "$cfgfile"
43396#! $SHELL
43397# Generated automatically by $as_me ($PACKAGE) $VERSION
43398# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43399
43400# Provide generalized library-building support services.
43401# Written by Gordon Matzigkeit, 1996
43402
43403# Copyright (C) 2014 Free Software Foundation, Inc.
43404# This is free software; see the source for copying conditions. There is NO
43405# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43406
43407# GNU Libtool is free software; you can redistribute it and/or modify
43408# it under the terms of the GNU General Public License as published by
43409# the Free Software Foundation; either version 2 of of the License, or
43410# (at your option) any later version.
43411#
43412# As a special exception to the GNU General Public License, if you
43413# distribute this file as part of a program or library that is built
43414# using GNU Libtool, you may include this file under the same
43415# distribution terms that you use for the rest of that program.
43416#
43417# GNU Libtool is distributed in the hope that it will be useful, but
43418# WITHOUT ANY WARRANTY; without even the implied warranty of
43419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43420# GNU General Public License for more details.
43421#
43422# You should have received a copy of the GNU General Public License
43423# along with this program. If not, see <http://www.gnu.org/licenses/>.
43424
43425
43426# The names of the tagged configurations supported by this script.
43427available_tags=''
43428
43429# Configured defaults for sys_lib_dlsearch_path munging.
43430: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43431
43432# ### BEGIN LIBTOOL CONFIG
43433
43434# Which release of libtool.m4 was used?
43435macro_version=$macro_version
43436macro_revision=$macro_revision
43437
43438# Assembler program.
43439AS=$lt_AS
43440
43441# DLL creation program.
43442DLLTOOL=$lt_DLLTOOL
43443
43444# Object dumper program.
43445OBJDUMP=$lt_OBJDUMP
43446
43447# Whether or not to build shared libraries.
43448build_libtool_libs=$enable_shared
43449
43450# Whether or not to build static libraries.
43451build_old_libs=$enable_static
43452
43453# What type of objects to build.
43454pic_mode=$pic_mode
43455
43456# Whether or not to optimize for fast installation.
43457fast_install=$enable_fast_install
43458
43459# Shared archive member basename,for filename based shared library versioning on AIX.
43460shared_archive_member_spec=$shared_archive_member_spec
43461
43462# Shell to use when invoking shell scripts.
43463SHELL=$lt_SHELL
43464
43465# An echo program that protects backslashes.
43466ECHO=$lt_ECHO
43467
43468# The PATH separator for the build system.
43469PATH_SEPARATOR=$lt_PATH_SEPARATOR
43470
43471# The host system.
43472host_alias=$host_alias
43473host=$host
43474host_os=$host_os
43475
43476# The build system.
43477build_alias=$build_alias
43478build=$build
43479build_os=$build_os
43480
43481# A sed program that does not truncate output.
43482SED=$lt_SED
43483
43484# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43485Xsed="\$SED -e 1s/^X//"
43486
43487# A grep program that handles long lines.
43488GREP=$lt_GREP
43489
43490# An ERE matcher.
43491EGREP=$lt_EGREP
43492
43493# A literal string matcher.
43494FGREP=$lt_FGREP
43495
43496# A BSD- or MS-compatible name lister.
43497NM=$lt_NM
43498
43499# Whether we need soft or hard links.
43500LN_S=$lt_LN_S
43501
43502# What is the maximum length of a command?
43503max_cmd_len=$max_cmd_len
43504
43505# Object file suffix (normally "o").
43506objext=$ac_objext
43507
43508# Executable file suffix (normally "").
43509exeext=$exeext
43510
43511# whether the shell understands "unset".
43512lt_unset=$lt_unset
43513
43514# turn spaces into newlines.
43515SP2NL=$lt_lt_SP2NL
43516
43517# turn newlines into spaces.
43518NL2SP=$lt_lt_NL2SP
43519
43520# convert \$build file names to \$host format.
43521to_host_file_cmd=$lt_cv_to_host_file_cmd
43522
43523# convert \$build files to toolchain format.
43524to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43525
43526# Method to check whether dependent libraries are shared objects.
43527deplibs_check_method=$lt_deplibs_check_method
43528
43529# Command to use when deplibs_check_method = "file_magic".
43530file_magic_cmd=$lt_file_magic_cmd
43531
43532# How to find potential files when deplibs_check_method = "file_magic".
43533file_magic_glob=$lt_file_magic_glob
43534
43535# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43536want_nocaseglob=$lt_want_nocaseglob
43537
43538# Command to associate shared and link libraries.
43539sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43540
43541# The archiver.
43542AR=$lt_AR
43543
43544# Flags to create an archive.
43545AR_FLAGS=$lt_AR_FLAGS
43546
43547# How to feed a file listing to the archiver.
43548archiver_list_spec=$lt_archiver_list_spec
43549
43550# A symbol stripping program.
43551STRIP=$lt_STRIP
43552
43553# Commands used to install an old-style archive.
43554RANLIB=$lt_RANLIB
43555old_postinstall_cmds=$lt_old_postinstall_cmds
43556old_postuninstall_cmds=$lt_old_postuninstall_cmds
43557
43558# Whether to use a lock for old archive extraction.
43559lock_old_archive_extraction=$lock_old_archive_extraction
43560
43561# A C compiler.
43562LTCC=$lt_CC
43563
43564# LTCC compiler flags.
43565LTCFLAGS=$lt_CFLAGS
43566
43567# Take the output of nm and produce a listing of raw symbols and C names.
43568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43569
43570# Transform the output of nm in a proper C declaration.
43571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43572
43573# Transform the output of nm into a list of symbols to manually relocate.
43574global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43575
43576# Transform the output of nm in a C name address pair.
43577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43578
43579# Transform the output of nm in a C name address pair when lib prefix is needed.
43580global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43581
43582# The name lister interface.
43583nm_interface=$lt_lt_cv_nm_interface
43584
43585# Specify filename containing input files for \$NM.
43586nm_file_list_spec=$lt_nm_file_list_spec
43587
43588# The root where to search for dependent libraries,and where our libraries should be installed.
43589lt_sysroot=$lt_sysroot
43590
43591# Command to truncate a binary pipe.
43592lt_truncate_bin=$lt_lt_cv_truncate_bin
43593
43594# The name of the directory that contains temporary libtool files.
43595objdir=$objdir
43596
43597# Used to examine libraries when file_magic_cmd begins with "file".
43598MAGIC_CMD=$MAGIC_CMD
43599
43600# Must we lock files when doing compilation?
43601need_locks=$lt_need_locks
43602
43603# Manifest tool.
43604MANIFEST_TOOL=$lt_MANIFEST_TOOL
43605
43606# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43607DSYMUTIL=$lt_DSYMUTIL
43608
43609# Tool to change global to local symbols on Mac OS X.
43610NMEDIT=$lt_NMEDIT
43611
43612# Tool to manipulate fat objects and archives on Mac OS X.
43613LIPO=$lt_LIPO
43614
43615# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43616OTOOL=$lt_OTOOL
43617
43618# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43619OTOOL64=$lt_OTOOL64
43620
43621# Old archive suffix (normally "a").
43622libext=$libext
43623
43624# Shared library suffix (normally ".so").
43625shrext_cmds=$lt_shrext_cmds
43626
43627# The commands to extract the exported symbol list from a shared archive.
43628extract_expsyms_cmds=$lt_extract_expsyms_cmds
43629
43630# Variables whose values should be saved in libtool wrapper scripts and
43631# restored at link time.
43632variables_saved_for_relink=$lt_variables_saved_for_relink
43633
43634# Do we need the "lib" prefix for modules?
43635need_lib_prefix=$need_lib_prefix
43636
43637# Do we need a version for libraries?
43638need_version=$need_version
43639
43640# Library versioning type.
43641version_type=$version_type
43642
43643# Shared library runtime path variable.
43644runpath_var=$runpath_var
43645
43646# Shared library path variable.
43647shlibpath_var=$shlibpath_var
43648
43649# Is shlibpath searched before the hard-coded library search path?
43650shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43651
43652# Format of library name prefix.
43653libname_spec=$lt_libname_spec
43654
43655# List of archive names. First name is the real one, the rest are links.
43656# The last name is the one that the linker finds with -lNAME
43657library_names_spec=$lt_library_names_spec
43658
43659# The coded name of the library, if different from the real name.
43660soname_spec=$lt_soname_spec
43661
43662# Permission mode override for installation of shared libraries.
43663install_override_mode=$lt_install_override_mode
43664
43665# Command to use after installation of a shared archive.
43666postinstall_cmds=$lt_postinstall_cmds
43667
43668# Command to use after uninstallation of a shared archive.
43669postuninstall_cmds=$lt_postuninstall_cmds
43670
43671# Commands used to finish a libtool library installation in a directory.
43672finish_cmds=$lt_finish_cmds
43673
43674# As "finish_cmds", except a single script fragment to be evaled but
43675# not shown.
43676finish_eval=$lt_finish_eval
43677
43678# Whether we should hardcode library paths into libraries.
43679hardcode_into_libs=$hardcode_into_libs
43680
43681# Compile-time system search path for libraries.
43682sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43683
43684# Detected run-time system search path for libraries.
43685sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43686
43687# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43688configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43689
43690# Whether dlopen is supported.
43691dlopen_support=$enable_dlopen
43692
43693# Whether dlopen of programs is supported.
43694dlopen_self=$enable_dlopen_self
43695
43696# Whether dlopen of statically linked programs is supported.
43697dlopen_self_static=$enable_dlopen_self_static
43698
43699# Commands to strip libraries.
43700old_striplib=$lt_old_striplib
43701striplib=$lt_striplib
43702
43703
43704# The linker used to build libraries.
43705LD=$lt_LD
43706
43707# How to create reloadable object files.
43708reload_flag=$lt_reload_flag
43709reload_cmds=$lt_reload_cmds
43710
43711# Commands used to build an old-style archive.
43712old_archive_cmds=$lt_old_archive_cmds
43713
43714# A language specific compiler.
43715CC=$lt_compiler
43716
43717# Is the compiler the GNU compiler?
43718with_gcc=$GCC
43719
43720# Compiler flag to turn off builtin functions.
43721no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43722
43723# Additional compiler flags for building library objects.
43724pic_flag=$lt_lt_prog_compiler_pic
43725
43726# How to pass a linker flag through the compiler.
43727wl=$lt_lt_prog_compiler_wl
43728
43729# Compiler flag to prevent dynamic linking.
43730link_static_flag=$lt_lt_prog_compiler_static
43731
43732# Does compiler simultaneously support -c and -o options?
43733compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43734
43735# Whether or not to add -lc for building shared libraries.
43736build_libtool_need_lc=$archive_cmds_need_lc
43737
43738# Whether or not to disallow shared libs when runtime libs are static.
43739allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43740
43741# Compiler flag to allow reflexive dlopens.
43742export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43743
43744# Compiler flag to generate shared objects directly from archives.
43745whole_archive_flag_spec=$lt_whole_archive_flag_spec
43746
43747# Whether the compiler copes with passing no objects directly.
43748compiler_needs_object=$lt_compiler_needs_object
43749
43750# Create an old-style archive from a shared archive.
43751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43752
43753# Create a temporary old-style archive to link instead of a shared archive.
43754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43755
43756# Commands used to build a shared archive.
43757archive_cmds=$lt_archive_cmds
43758archive_expsym_cmds=$lt_archive_expsym_cmds
43759
43760# Commands used to build a loadable module if different from building
43761# a shared archive.
43762module_cmds=$lt_module_cmds
43763module_expsym_cmds=$lt_module_expsym_cmds
43764
43765# Whether we are building with GNU ld or not.
43766with_gnu_ld=$lt_with_gnu_ld
43767
43768# Flag that allows shared libraries with undefined symbols to be built.
43769allow_undefined_flag=$lt_allow_undefined_flag
43770
43771# Flag that enforces no undefined symbols.
43772no_undefined_flag=$lt_no_undefined_flag
43773
43774# Flag to hardcode \$libdir into a binary during linking.
43775# This must work even if \$libdir does not exist
43776hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43777
43778# Whether we need a single "-rpath" flag with a separated argument.
43779hardcode_libdir_separator=$lt_hardcode_libdir_separator
43780
43781# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43782# DIR into the resulting binary.
43783hardcode_direct=$hardcode_direct
43784
43785# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43786# DIR into the resulting binary and the resulting library dependency is
43787# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43788# library is relocated.
43789hardcode_direct_absolute=$hardcode_direct_absolute
43790
43791# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43792# into the resulting binary.
43793hardcode_minus_L=$hardcode_minus_L
43794
43795# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43796# into the resulting binary.
43797hardcode_shlibpath_var=$hardcode_shlibpath_var
43798
43799# Set to "yes" if building a shared library automatically hardcodes DIR
43800# into the library and all subsequent libraries and executables linked
43801# against it.
43802hardcode_automatic=$hardcode_automatic
43803
43804# Set to yes if linker adds runtime paths of dependent libraries
43805# to runtime path list.
43806inherit_rpath=$inherit_rpath
43807
43808# Whether libtool must link a program against all its dependency libraries.
43809link_all_deplibs=$link_all_deplibs
43810
43811# Set to "yes" if exported symbols are required.
43812always_export_symbols=$always_export_symbols
43813
43814# The commands to list exported symbols.
43815export_symbols_cmds=$lt_export_symbols_cmds
43816
43817# Symbols that should not be listed in the preloaded symbols.
43818exclude_expsyms=$lt_exclude_expsyms
43819
43820# Symbols that must always be exported.
43821include_expsyms=$lt_include_expsyms
43822
43823# Commands necessary for linking programs (against libraries) with templates.
43824prelink_cmds=$lt_prelink_cmds
43825
43826# Commands necessary for finishing linking programs.
43827postlink_cmds=$lt_postlink_cmds
43828
43829# Specify filename containing input files.
43830file_list_spec=$lt_file_list_spec
43831
43832# How to hardcode a shared library path into an executable.
43833hardcode_action=$hardcode_action
43834
43835# ### END LIBTOOL CONFIG
43836
43837_LT_EOF
43838
43839 cat <<'_LT_EOF' >> "$cfgfile"
43840
43841# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43842
43843# func_munge_path_list VARIABLE PATH
43844# -----------------------------------
43845# VARIABLE is name of variable containing _space_ separated list of
43846# directories to be munged by the contents of PATH, which is string
43847# having a format:
43848# "DIR[:DIR]:"
43849# string "DIR[ DIR]" will be prepended to VARIABLE
43850# ":DIR[:DIR]"
43851# string "DIR[ DIR]" will be appended to VARIABLE
43852# "DIRP[:DIRP]::[DIRA:]DIRA"
43853# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43854# "DIRA[ DIRA]" will be appended to VARIABLE
43855# "DIR[:DIR]"
43856# VARIABLE will be replaced by "DIR[ DIR]"
43857func_munge_path_list ()
43858{
43859 case x$2 in
43860 x)
43861 ;;
43862 *:)
43863 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43864 ;;
43865 x:*)
43866 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43867 ;;
43868 *::*)
43869 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43870 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43871 ;;
43872 *)
43873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43874 ;;
43875 esac
43876}
43877
43878
43879# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43880func_cc_basename ()
43881{
43882 for cc_temp in $*""; do
43883 case $cc_temp in
43884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43886 \-*) ;;
43887 *) break;;
43888 esac
43889 done
43890 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43891}
43892
43893
43894# ### END FUNCTIONS SHARED WITH CONFIGURE
43895
43896_LT_EOF
43897
43898 case $host_os in
43899 aix3*)
43900 cat <<\_LT_EOF >> "$cfgfile"
43901# AIX sometimes has problems with the GCC collect2 program. For some
43902# reason, if we set the COLLECT_NAMES environment variable, the problems
43903# vanish in a puff of smoke.
43904if test set != "${COLLECT_NAMES+set}"; then
43905 COLLECT_NAMES=
43906 export COLLECT_NAMES
43907fi
43908_LT_EOF
43909 ;;
43910 esac
43911
43912
43913ltmain=$ac_aux_dir/ltmain.sh
43914
43915
43916 # We use sed instead of cat because bash on DJGPP gets confused if
43917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43918 # text mode, it properly converts lines to CR/LF. This bash problem
43919 # is reportedly fixed, but why not run on old versions too?
43920 sed '$q' "$ltmain" >> "$cfgfile" \
43921 || (rm -f "$cfgfile"; exit 1)
43922
43923 mv -f "$cfgfile" "$ofile" ||
43924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43925 chmod +x "$ofile"
43926
43927 ;;
43928
43929 esac
43930done # for ac_tag
43931
43932
43933as_fn_exit 0
43934_ACEOF
43935ac_clean_files=$ac_clean_files_save
43936
43937test $ac_write_fail = 0 ||
43938 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43939
43940
43941# configure is writing to config.log, and then calls config.status.
43942# config.status does its own redirection, appending to config.log.
43943# Unfortunately, on DOS this fails, as config.log is still kept open
43944# by configure, so config.status won't be able to write to it; its
43945# output is simply discarded. So we exec the FD to /dev/null,
43946# effectively closing config.log, so it can be properly (re)opened and
43947# appended to by config.status. When coming back to configure, we
43948# need to make the FD available again.
43949if test "$no_create" != yes; then
43950 ac_cs_success=:
43951 ac_config_status_args=
43952 test "$silent" = yes &&
43953 ac_config_status_args="$ac_config_status_args --quiet"
43954 exec 5>/dev/null
43955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43956 exec 5>>config.log
43957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43958 # would make configure fail if this is the last instruction.
43959 $ac_cs_success || as_fn_exit 1
43960fi
43961
43962#
43963# CONFIG_SUBDIRS section.
43964#
43965if test "$no_recursion" != yes; then
43966
43967 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43968 # so they do not pile up.
43969 ac_sub_configure_args=
43970 ac_prev=
43971 eval "set x $ac_configure_args"
43972 shift
43973 for ac_arg
43974 do
43975 if test -n "$ac_prev"; then
43976 ac_prev=
43977 continue
43978 fi
43979 case $ac_arg in
43980 -cache-file | --cache-file | --cache-fil | --cache-fi \
43981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43982 ac_prev=cache_file ;;
43983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43985 | --c=*)
43986 ;;
43987 --config-cache | -C)
43988 ;;
43989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43990 ac_prev=srcdir ;;
43991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43992 ;;
43993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43994 ac_prev=prefix ;;
43995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43996 ;;
43997 --disable-option-checking)
43998 ;;
43999 *)
44000 case $ac_arg in
44001 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44002 esac
44003 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44004 esac
44005 done
44006
44007 # Always prepend --prefix to ensure using the same prefix
44008 # in subdir configurations.
44009 ac_arg="--prefix=$prefix"
44010 case $ac_arg in
44011 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44012 esac
44013 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44014
44015 # Pass --silent
44016 if test "$silent" = yes; then
44017 ac_sub_configure_args="--silent $ac_sub_configure_args"
44018 fi
44019
44020 # Always prepend --disable-option-checking to silence warnings, since
44021 # different subdirs can have different --enable and --with options.
44022 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44023
44024 ac_popdir=`pwd`
44025 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44026
44027 # Do not complain, so a configure script can configure whichever
44028 # parts of a large source tree are present.
44029 test -d "$srcdir/$ac_dir" || continue
44030
44031 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44032 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44033 $as_echo "$ac_msg" >&6
44034 as_dir="$ac_dir"; as_fn_mkdir_p
44035 ac_builddir=.
44036
44037case "$ac_dir" in
44038.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44039*)
44040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44041 # A ".." for each directory in $ac_dir_suffix.
44042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44043 case $ac_top_builddir_sub in
44044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44046 esac ;;
44047esac
44048ac_abs_top_builddir=$ac_pwd
44049ac_abs_builddir=$ac_pwd$ac_dir_suffix
44050# for backward compatibility:
44051ac_top_builddir=$ac_top_build_prefix
44052
44053case $srcdir in
44054 .) # We are building in place.
44055 ac_srcdir=.
44056 ac_top_srcdir=$ac_top_builddir_sub
44057 ac_abs_top_srcdir=$ac_pwd ;;
44058 [\\/]* | ?:[\\/]* ) # Absolute name.
44059 ac_srcdir=$srcdir$ac_dir_suffix;
44060 ac_top_srcdir=$srcdir
44061 ac_abs_top_srcdir=$srcdir ;;
44062 *) # Relative name.
44063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44064 ac_top_srcdir=$ac_top_build_prefix$srcdir
44065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44066esac
44067ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44068
44069
44070 cd "$ac_dir"
44071
44072 # Check for guested configure; otherwise get Cygnus style configure.
44073 if test -f "$ac_srcdir/configure.gnu"; then
44074 ac_sub_configure=$ac_srcdir/configure.gnu
44075 elif test -f "$ac_srcdir/configure"; then
44076 ac_sub_configure=$ac_srcdir/configure
44077 elif test -f "$ac_srcdir/configure.in"; then
44078 # This should be Cygnus configure.
44079 ac_sub_configure=$ac_aux_dir/configure
44080 else
44081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44082$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44083 ac_sub_configure=
44084 fi
44085
44086 # The recursion is here.
44087 if test -n "$ac_sub_configure"; then
44088 # Make the cache file name correct relative to the subdirectory.
44089 case $cache_file in
44090 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44091 *) # Relative name.
44092 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44093 esac
44094
44095 { $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
44096$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44097 # The eval makes quoting arguments work.
44098 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44099 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44100 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44101 fi
44102
44103 cd "$ac_popdir"
44104 done
44105fi
44106if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44108$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44109fi
44110
44111
44112
44113 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44114 if test -z "$tmp_cpp"; then
44115 tmp_cpp='cpp'
44116 fi
44117 cat >./tests/configurehelp.pm <<_EOF
44118# This is a generated file. Do not edit.
44119
44120package configurehelp;
44121
44122use strict;
44123use warnings;
44124use Exporter;
44125
44126use vars qw(
44127 @ISA
44128 @EXPORT_OK
44129 \$Cpreprocessor
44130 );
44131
44132@ISA = qw(Exporter);
44133
44134@EXPORT_OK = qw(
44135 \$Cpreprocessor
44136 );
44137
44138\$Cpreprocessor = '$tmp_cpp';
44139
441401;
44141_EOF
44142
44143
44144
44145## ---------------------------------- ##
44146## Start of distclean amending code ##
44147## ---------------------------------- ##
44148
44149for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44150do
44151
44152if test ! -f "$xc_subdir/Makefile"; then
44153 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44154 exit 1
44155fi
44156
44157# Fetch dependency tracking file list from Makefile include lines.
44158
44159xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44160xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44161
44162# --disable-dependency-tracking might have been used, consequently
44163# there is nothing to amend without a dependency tracking file list.
44164
44165if test $xc_cnt_words -gt 0; then
44166
44167{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44168$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44169
44170# Build Makefile specific patch hunk.
44171
44172xc_p="$xc_subdir/xc_patch.tmp"
44173
44174xc_rm_depfiles=`echo "$xc_inc_lines" \
44175 | $SED 's%include% -rm -f%' 2>/dev/null`
44176
44177xc_dep_subdirs=`echo "$xc_inc_lines" \
44178 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44179 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44180 | sort | uniq`
44181
44182echo "$xc_rm_depfiles" >$xc_p
44183
44184for xc_dep_dir in $xc_dep_subdirs; do
44185 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44186 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44187 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44188 echo "${xc_tab}fi" >>$xc_p
44189done
44190
44191# Build Makefile patching sed scripts.
44192
44193xc_s1="$xc_subdir/xc_script_1.tmp"
44194xc_s2="$xc_subdir/xc_script_2.tmp"
44195xc_s3="$xc_subdir/xc_script_3.tmp"
44196
44197cat >$xc_s1 <<\_EOT
44198/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44199 s/^.*(DEPDIR)/___xc_depdir_line___/
44200}
44201/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44202 s/^.*(DEPDIR)/___xc_depdir_line___/
44203}
44204_EOT
44205
44206cat >$xc_s2 <<\_EOT
44207/___xc_depdir_line___$/{
44208 N
44209 /___xc_depdir_line___$/D
44210}
44211_EOT
44212
44213cat >$xc_s3 <<_EOT
44214/^___xc_depdir_line___/{
44215 r $xc_p
44216 d
44217}
44218_EOT
44219
44220# Apply patch to Makefile and cleanup.
44221
44222$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44223$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44224$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44225
44226if test -f "$xc_subdir/Makefile.tmp3"; then
44227 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44228fi
44229
44230test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44231test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44232test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44233
44234test -f "$xc_p" && rm -f "$xc_p"
44235test -f "$xc_s1" && rm -f "$xc_s1"
44236test -f "$xc_s2" && rm -f "$xc_s2"
44237test -f "$xc_s3" && rm -f "$xc_s3"
44238
44239fi
44240
44241done
44242
44243## -------------------------------- ##
44244## End of distclean amending code ##
44245## -------------------------------- ##
44246
44247
44248
44249{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44250
44251 curl version: ${CURLVERSION}
44252 Host setup: ${host}
44253 Install prefix: ${prefix}
44254 Compiler: ${CC}
44255 SSL support: ${curl_ssl_msg}
44256 SSH support: ${curl_ssh_msg}
44257 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044258 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044259 GSS-API support: ${curl_gss_msg}
44260 TLS-SRP support: ${curl_tls_srp_msg}
44261 resolver: ${curl_res_msg}
44262 IPv6 support: ${curl_ipv6_msg}
44263 Unix sockets support: ${curl_unix_sockets_msg}
44264 IDN support: ${curl_idn_msg}
44265 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44266 Built-in manual: ${curl_manual_msg}
44267 --libcurl option: ${curl_libcurl_msg}
44268 Verbose errors: ${curl_verbose_msg}
44269 SSPI support: ${curl_sspi_msg}
44270 ca cert bundle: ${ca}${ca_warning}
44271 ca cert path: ${capath}${capath_warning}
44272 ca fallback: ${with_ca_fallback}
44273 LDAP support: ${curl_ldap_msg}
44274 LDAPS support: ${curl_ldaps_msg}
44275 RTSP support: ${curl_rtsp_msg}
44276 RTMP support: ${curl_rtmp_msg}
44277 metalink support: ${curl_mtlnk_msg}
44278 PSL support: ${curl_psl_msg}
44279 HTTP2 support: ${curl_h2_msg}
44280 Protocols: ${SUPPORT_PROTOCOLS}
44281" >&5
44282$as_echo "$as_me: Configured to build curl/libcurl:
44283
44284 curl version: ${CURLVERSION}
44285 Host setup: ${host}
44286 Install prefix: ${prefix}
44287 Compiler: ${CC}
44288 SSL support: ${curl_ssl_msg}
44289 SSH support: ${curl_ssh_msg}
44290 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044291 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044292 GSS-API support: ${curl_gss_msg}
44293 TLS-SRP support: ${curl_tls_srp_msg}
44294 resolver: ${curl_res_msg}
44295 IPv6 support: ${curl_ipv6_msg}
44296 Unix sockets support: ${curl_unix_sockets_msg}
44297 IDN support: ${curl_idn_msg}
44298 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44299 Built-in manual: ${curl_manual_msg}
44300 --libcurl option: ${curl_libcurl_msg}
44301 Verbose errors: ${curl_verbose_msg}
44302 SSPI support: ${curl_sspi_msg}
44303 ca cert bundle: ${ca}${ca_warning}
44304 ca cert path: ${capath}${capath_warning}
44305 ca fallback: ${with_ca_fallback}
44306 LDAP support: ${curl_ldap_msg}
44307 LDAPS support: ${curl_ldaps_msg}
44308 RTSP support: ${curl_rtsp_msg}
44309 RTMP support: ${curl_rtmp_msg}
44310 metalink support: ${curl_mtlnk_msg}
44311 PSL support: ${curl_psl_msg}
44312 HTTP2 support: ${curl_h2_msg}
44313 Protocols: ${SUPPORT_PROTOCOLS}
44314" >&6;}