blob: e1ca812ed1c43ff2cfe9ee099899fe41b64e1c19 [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15# This configure script may be copied, distributed and modified under the
16# terms of the curl license; see COPYING for more details
17
18## -------------------------------- ##
19## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20## -------------------------------- ##
21
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab=' '
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "x$xc_tst_str" in # ((
61 xsuccess)
62 :
63 ;;
64 *)
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67 exit 1
68 ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "x$xc_tst_str" in # ((
78 xsuccess)
79 :
80 ;;
81 *)
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83 exit 1
84 ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "x$xc_tst_str" in # ((
94 xsuccess)
95 :
96 ;;
97 *)
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99 exit 1
100 ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "x$xc_tst_str" in # ((
110 x7)
111 :
112 ;;
113 *)
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115 exit 1
116 ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126case "x$xc_tst_str" in # ((
127 xsuccess)
128 :
129 ;;
130 *)
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132 exit 1
133 ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "x$xc_tst_str" in # ((
144 xsuccess)
145 :
146 ;;
147 *)
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149 exit 1
150 ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "x$xc_tst_str" in # ((
161 xsuccess)
162 :
163 ;;
164 *)
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166 exit 1
167 ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "x$xc_tst_str" in # ((
178 x4)
179 :
180 ;;
181 *)
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183 exit 1
184 ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "x$xc_tst_str" in # ((
199 x3)
200 :
201 ;;
202 *)
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204 exit 1
205 ;;
206esac
207
208#
209# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210#
211
212# Directory count in 'PATH' when using a colon separator.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
236 # Stop dead until user provides 'PATH_SEPARATOR' definition.
237 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238 exit 1
239 fi
240else
241 # Separator with the greater directory count is the auto-detected one.
242 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243 xc_tst_auto_separator=';'
244 else
245 xc_tst_auto_separator=':'
246 fi
247 if test -z "$PATH_SEPARATOR"; then
248 # Simply use the auto-detected one when not already set.
249 PATH_SEPARATOR=$xc_tst_auto_separator
250 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252 fi
253fi
254xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256xc_configure_preamble_result='yes'
257
258
259## -------------------- ##
260## M4sh Initialization. ##
261## -------------------- ##
262
263# Be more Bourne compatible
264DUALCASE=1; export DUALCASE # for MKS sh
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266 emulate sh
267 NULLCMD=:
268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
273 case `(set -o) 2>/dev/null` in #(
274 *posix*) :
275 set -o posix ;; #(
276 *) :
277 ;;
278esac
279fi
280
281
282as_nl='
283'
284export as_nl
285# Printing a long string crashes Solaris 7 /usr/bin/printf.
286as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289# Prefer a ksh shell builtin over an external printf program on Solaris,
290# but without wasting forks for bash or zsh.
291if test -z "$BASH_VERSION$ZSH_VERSION" \
292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293 as_echo='print -r --'
294 as_echo_n='print -rn --'
295elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296 as_echo='printf %s\n'
297 as_echo_n='printf %s'
298else
299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301 as_echo_n='/usr/ucb/echo -n'
302 else
303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304 as_echo_n_body='eval
305 arg=$1;
306 case $arg in #(
307 *"$as_nl"*)
308 expr "X$arg" : "X\\(.*\\)$as_nl";
309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310 esac;
311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312 '
313 export as_echo_n_body
314 as_echo_n='sh -c $as_echo_n_body as_echo'
315 fi
316 export as_echo_body
317 as_echo='sh -c $as_echo_body as_echo'
318fi
319
320
321
322# IFS
323# We need space, tab and new line, in precisely that order. Quoting is
324# there to prevent editors from complaining about space-tab.
325# (If _AS_PATH_WALK were called with IFS unset, it would disable word
326# splitting by setting IFS to empty value.)
327IFS=" "" $as_nl"
328
329# Find who we are. Look in the path if we contain no directory separator.
330as_myself=
331case $0 in #((
332 *[\\/]* ) as_myself=$0 ;;
333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334for as_dir in $PATH
335do
336 IFS=$as_save_IFS
337 test -z "$as_dir" && as_dir=.
338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339 done
340IFS=$as_save_IFS
341
342 ;;
343esac
344# We did not find ourselves, most probably we were run as `sh COMMAND'
345# in which case we are not to be found in the path.
346if test "x$as_myself" = x; then
347 as_myself=$0
348fi
349if test ! -f "$as_myself"; then
350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351 exit 1
352fi
353
354# Unset variables that we do not need and which cause bugs (e.g. in
355# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
356# suppresses any "Segmentation fault" message there. '((' could
357# trigger a bug in pdksh 5.2.14.
358for as_var in BASH_ENV ENV MAIL MAILPATH
359do eval test x\${$as_var+set} = xset \
360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361done
362PS1='$ '
363PS2='> '
364PS4='+ '
365
366# NLS nuisances.
367LC_ALL=C
368export LC_ALL
369LANGUAGE=C
370export LANGUAGE
371
372# CDPATH.
373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375# Use a proper internal environment variable to ensure we don't fall
376 # into an infinite loop, continuously re-executing ourselves.
377 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378 _as_can_reexec=no; export _as_can_reexec;
379 # We cannot yet assume a decent shell, so we have to provide a
380# neutralization value for shells without unset; and this also
381# works around shells that cannot unset nonexistent variables.
382# Preserve -v and -x to the replacement shell.
383BASH_ENV=/dev/null
384ENV=/dev/null
385(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386case $- in # ((((
387 *v*x* | *x*v* ) as_opts=-vx ;;
388 *v* ) as_opts=-v ;;
389 *x* ) as_opts=-x ;;
390 * ) as_opts= ;;
391esac
392exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393# Admittedly, this is quite paranoid, since all the known shells bail
394# out after a failed `exec'.
395$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396as_fn_exit 255
397 fi
398 # We don't want this to propagate to other subprocesses.
399 { _as_can_reexec=; unset _as_can_reexec;}
400if test "x$CONFIG_SHELL" = x; then
401 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402 emulate sh
403 NULLCMD=:
404 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405 # is contrary to our usage. Disable this feature.
406 alias -g '\${1+\"\$@\"}'='\"\$@\"'
407 setopt NO_GLOB_SUBST
408else
409 case \`(set -o) 2>/dev/null\` in #(
410 *posix*) :
411 set -o posix ;; #(
412 *) :
413 ;;
414esac
415fi
416"
417 as_required="as_fn_return () { (exit \$1); }
418as_fn_success () { as_fn_return 0; }
419as_fn_failure () { as_fn_return 1; }
420as_fn_ret_success () { return 0; }
421as_fn_ret_failure () { return 1; }
422
423exitcode=0
424as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430else
431 exitcode=1; echo positional parameters were not saved.
432fi
433test x\$exitcode = x0 || exit 1
434test -x / || exit 1"
435 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439test \$(( 1 + 1 )) = 2 || exit 1
440
441 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 PATH=/empty FPATH=/empty; export PATH FPATH
446 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448 if (eval "$as_required") 2>/dev/null; then :
449 as_have_required=yes
450else
451 as_have_required=no
452fi
453 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455else
456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457as_found=false
458for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459do
460 IFS=$as_save_IFS
461 test -z "$as_dir" && as_dir=.
462 as_found=:
463 case $as_dir in #(
464 /*)
465 for as_base in sh bash ksh sh5; do
466 # Try only shells that exist, to save several forks.
467 as_shell=$as_dir/$as_base
468 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470 CONFIG_SHELL=$as_shell as_have_required=yes
471 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472 break 2
473fi
474fi
475 done;;
476 esac
477 as_found=false
478done
479$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
482fi; }
483IFS=$as_save_IFS
484
485
486 if test "x$CONFIG_SHELL" != x; then :
487 export CONFIG_SHELL
488 # We cannot yet assume a decent shell, so we have to provide a
489# neutralization value for shells without unset; and this also
490# works around shells that cannot unset nonexistent variables.
491# Preserve -v and -x to the replacement shell.
492BASH_ENV=/dev/null
493ENV=/dev/null
494(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495case $- in # ((((
496 *v*x* | *x*v* ) as_opts=-vx ;;
497 *v* ) as_opts=-v ;;
498 *x* ) as_opts=-x ;;
499 * ) as_opts= ;;
500esac
501exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502# Admittedly, this is quite paranoid, since all the known shells bail
503# out after a failed `exec'.
504$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505exit 255
506fi
507
508 if test x$as_have_required = xno; then :
509 $as_echo "$0: This script requires a shell more modern than all"
510 $as_echo "$0: the shells that I found on your system."
511 if test x${ZSH_VERSION+set} = xset ; then
512 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514 else
515 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516$0: mailing list: https://curl.haxx.se/mail/ about your
517$0: system, including any error possibly output before this
518$0: message. Then install a modern shell, or manually run
519$0: the script under such a shell if you do have one."
520 fi
521 exit 1
522fi
523fi
524fi
525SHELL=${CONFIG_SHELL-/bin/sh}
526export SHELL
527# Unset more variables known to interfere with behavior of common tools.
528CLICOLOR_FORCE= GREP_OPTIONS=
529unset CLICOLOR_FORCE GREP_OPTIONS
530
531## --------------------- ##
532## M4sh Shell Functions. ##
533## --------------------- ##
534# as_fn_unset VAR
535# ---------------
536# Portably unset VAR.
537as_fn_unset ()
538{
539 { eval $1=; unset $1;}
540}
541as_unset=as_fn_unset
542
543# as_fn_set_status STATUS
544# -----------------------
545# Set $? to STATUS, without forking.
546as_fn_set_status ()
547{
548 return $1
549} # as_fn_set_status
550
551# as_fn_exit STATUS
552# -----------------
553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554as_fn_exit ()
555{
556 set +e
557 as_fn_set_status $1
558 exit $1
559} # as_fn_exit
560
561# as_fn_mkdir_p
562# -------------
563# Create "$as_dir" as a directory, including parents if necessary.
564as_fn_mkdir_p ()
565{
566
567 case $as_dir in #(
568 -*) as_dir=./$as_dir;;
569 esac
570 test -d "$as_dir" || eval $as_mkdir_p || {
571 as_dirs=
572 while :; do
573 case $as_dir in #(
574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575 *) as_qdir=$as_dir;;
576 esac
577 as_dirs="'$as_qdir' $as_dirs"
578 as_dir=`$as_dirname -- "$as_dir" ||
579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580 X"$as_dir" : 'X\(//\)[^/]' \| \
581 X"$as_dir" : 'X\(//\)$' \| \
582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583$as_echo X"$as_dir" |
584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585 s//\1/
586 q
587 }
588 /^X\(\/\/\)[^/].*/{
589 s//\1/
590 q
591 }
592 /^X\(\/\/\)$/{
593 s//\1/
594 q
595 }
596 /^X\(\/\).*/{
597 s//\1/
598 q
599 }
600 s/.*/./; q'`
601 test -d "$as_dir" && break
602 done
603 test -z "$as_dirs" || eval "mkdir $as_dirs"
604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607} # as_fn_mkdir_p
608
609# as_fn_executable_p FILE
610# -----------------------
611# Test if FILE is an executable regular file.
612as_fn_executable_p ()
613{
614 test -f "$1" && test -x "$1"
615} # as_fn_executable_p
616# as_fn_append VAR VALUE
617# ----------------------
618# Append the text in VALUE to the end of the definition contained in VAR. Take
619# advantage of any shell optimizations that allow amortized linear growth over
620# repeated appends, instead of the typical quadratic growth present in naive
621# implementations.
622if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623 eval 'as_fn_append ()
624 {
625 eval $1+=\$2
626 }'
627else
628 as_fn_append ()
629 {
630 eval $1=\$$1\$2
631 }
632fi # as_fn_append
633
634# as_fn_arith ARG...
635# ------------------
636# Perform arithmetic evaluation on the ARGs, and store the result in the
637# global $as_val. Take advantage of shells that can avoid forks. The arguments
638# must be portable across $(()) and expr.
639if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640 eval 'as_fn_arith ()
641 {
642 as_val=$(( $* ))
643 }'
644else
645 as_fn_arith ()
646 {
647 as_val=`expr "$@" || test $? -eq 1`
648 }
649fi # as_fn_arith
650
651
652# as_fn_error STATUS ERROR [LINENO LOG_FD]
653# ----------------------------------------
654# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656# script with STATUS, using 1 if that was 0.
657as_fn_error ()
658{
659 as_status=$1; test $as_status -eq 0 && as_status=1
660 if test "$4"; then
661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663 fi
664 $as_echo "$as_me: error: $2" >&2
665 as_fn_exit $as_status
666} # as_fn_error
667
668if expr a : '\(a\)' >/dev/null 2>&1 &&
669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
670 as_expr=expr
671else
672 as_expr=false
673fi
674
675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676 as_basename=basename
677else
678 as_basename=false
679fi
680
681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682 as_dirname=dirname
683else
684 as_dirname=false
685fi
686
687as_me=`$as_basename -- "$0" ||
688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691$as_echo X/"$0" |
692 sed '/^.*\/\([^/][^/]*\)\/*$/{
693 s//\1/
694 q
695 }
696 /^X\/\(\/\/\)$/{
697 s//\1/
698 q
699 }
700 /^X\/\(\/\).*/{
701 s//\1/
702 q
703 }
704 s/.*/./; q'`
705
706# Avoid depending upon Character Ranges.
707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710as_cr_digits='0123456789'
711as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714 as_lineno_1=$LINENO as_lineno_1a=$LINENO
715 as_lineno_2=$LINENO as_lineno_2a=$LINENO
716 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
719 sed -n '
720 p
721 /[$]LINENO/=
722 ' <$as_myself |
723 sed '
724 s/[$]LINENO.*/&-/
725 t lineno
726 b
727 :lineno
728 N
729 :loop
730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731 t loop
732 s/-\n.*//
733 ' >$as_me.lineno &&
734 chmod +x "$as_me.lineno" ||
735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738 # already done that, so ensure we don't try to do so again and fall
739 # in an infinite loop. This has already happened in practice.
740 _as_can_reexec=no; export _as_can_reexec
741 # Don't try to exec as it changes $[0], causing all sort of problems
742 # (the dirname of $[0] is not the place where we might find the
743 # original and so on. Autoconf is especially sensitive to this).
744 . "./$as_me.lineno"
745 # Exit status is that of the last command.
746 exit
747}
748
749ECHO_C= ECHO_N= ECHO_T=
750case `echo -n x` in #(((((
751-n*)
752 case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
754 xy) ECHO_C='\c';;
755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
756 ECHO_T=' ';;
757 esac;;
758*)
759 ECHO_N='-n';;
760esac
761
762rm -f conf$$ conf$$.exe conf$$.file
763if test -d conf$$.dir; then
764 rm -f conf$$.dir/conf$$.file
765else
766 rm -f conf$$.dir
767 mkdir conf$$.dir 2>/dev/null
768fi
769if (echo >conf$$.file) 2>/dev/null; then
770 if ln -s conf$$.file conf$$ 2>/dev/null; then
771 as_ln_s='ln -s'
772 # ... but there are two gotchas:
773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775 # In both cases, we have to default to `cp -pR'.
776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777 as_ln_s='cp -pR'
778 elif ln conf$$.file conf$$ 2>/dev/null; then
779 as_ln_s=ln
780 else
781 as_ln_s='cp -pR'
782 fi
783else
784 as_ln_s='cp -pR'
785fi
786rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787rmdir conf$$.dir 2>/dev/null
788
789if mkdir -p . 2>/dev/null; then
790 as_mkdir_p='mkdir -p "$as_dir"'
791else
792 test -d ./-p && rmdir ./-p
793 as_mkdir_p=false
794fi
795
796as_test_x='test -x'
797as_executable_p=as_fn_executable_p
798
799# Sed expression to map a string onto a valid CPP name.
800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802# Sed expression to map a string onto a valid variable name.
803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808test -n "$DJDIR" || exec 7<&0 </dev/null
809exec 6>&1
810
811# Name of the host.
812# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813# so uname gets run too.
814ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816#
817# Initializations.
818#
819ac_default_prefix=/usr/local
820ac_clean_files=
821ac_config_libobj_dir=.
822LIBOBJS=
823cross_compiling=no
824subdirs=
825MFLAGS=
826MAKEFLAGS=
827
828# Identity of this package.
829PACKAGE_NAME='curl'
830PACKAGE_TARNAME='curl'
831PACKAGE_VERSION='-'
832PACKAGE_STRING='curl -'
833PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
834PACKAGE_URL=''
835
836ac_unique_file="lib/urldata.h"
837# Factoring default headers for most tests.
838ac_includes_default="\
839#include <stdio.h>
840#ifdef HAVE_SYS_TYPES_H
841# include <sys/types.h>
842#endif
843#ifdef HAVE_SYS_STAT_H
844# include <sys/stat.h>
845#endif
846#ifdef STDC_HEADERS
847# include <stdlib.h>
848# include <stddef.h>
849#else
850# ifdef HAVE_STDLIB_H
851# include <stdlib.h>
852# endif
853#endif
854#ifdef HAVE_STRING_H
855# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856# include <memory.h>
857# endif
858# include <string.h>
859#endif
860#ifdef HAVE_STRINGS_H
861# include <strings.h>
862#endif
863#ifdef HAVE_INTTYPES_H
864# include <inttypes.h>
865#endif
866#ifdef HAVE_STDINT_H
867# include <stdint.h>
868#endif
869#ifdef HAVE_UNISTD_H
870# include <unistd.h>
871#endif"
872
873enable_option_checking=no
874ac_subst_vars='am__EXEEXT_FALSE
875am__EXEEXT_TRUE
876LTLIBOBJS
877LIBOBJS
878SUPPORT_PROTOCOLS
879SUPPORT_FEATURES
880ENABLE_STATIC
881ENABLE_SHARED
882CROSSCOMPILING_FALSE
883CROSSCOMPILING_TRUE
884BLANK_AT_MAKETIME
885CURL_NETWORK_AND_TIME_LIBS
886CURL_NETWORK_LIBS
887LIBCURL_LIBS
888SONAME_BUMP_FALSE
889SONAME_BUMP_TRUE
890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
913USE_LIBSSH2
914LIBMETALINK_CPPFLAGS
915LIBMETALINK_LDFLAGS
916LIBMETALINK_LIBS
917USE_LIBPSL_FALSE
918USE_LIBPSL_TRUE
919CURL_CA_BUNDLE
920SSL_ENABLED
921USE_AXTLS
922NSS_LIBS
923USE_NSS
924USE_CYASSL
925USE_MBEDTLS
926USE_POLARSSL
927HAVE_GNUTLS_SRP
928USE_GNUTLS_NETTLE
929USE_GNUTLS
930HAVE_OPENSSL_SRP
931RANDOM_FILE
932SSL_LIBS
933USE_DARWINSSL
934USE_WINDOWS_SSPI
935USE_SCHANNEL
936USE_OPENLDAP
937ZLIB_LIBS
938HAVE_LIBZ_FALSE
939HAVE_LIBZ_TRUE
940HAVE_LIBZ
941PKGCONFIG
942CURL_DISABLE_GOPHER
943CURL_DISABLE_SMTP
944CURL_DISABLE_SMB
945CURL_DISABLE_IMAP
946CURL_DISABLE_POP3
947CURL_DISABLE_TFTP
948CURL_DISABLE_TELNET
949CURL_DISABLE_DICT
950CURL_DISABLE_PROXY
951HAVE_LDAP_SSL
952CURL_DISABLE_LDAPS
953CURL_DISABLE_LDAP
954CURL_DISABLE_FILE
955CURL_DISABLE_FTP
956CURL_DISABLE_RTSP
957CURL_DISABLE_HTTP
958DOING_NATIVE_WINDOWS_FALSE
959DOING_NATIVE_WINDOWS_TRUE
960BUILD_UNITTESTS_FALSE
961BUILD_UNITTESTS_TRUE
962CURLDEBUG_FALSE
963CURLDEBUG_TRUE
964USE_EXPLICIT_LIB_DEPS_FALSE
965USE_EXPLICIT_LIB_DEPS_TRUE
966REQUIRE_LIB_DEPS
967CPPFLAG_CURL_STATICLIB
968USE_CPPFLAG_CURL_STATICLIB_FALSE
969USE_CPPFLAG_CURL_STATICLIB_TRUE
970CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
971CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
972CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
973CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
974CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
975CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
976LT_SYS_LIBRARY_PATH
977OTOOL64
978OTOOL
979LIPO
980NMEDIT
981DSYMUTIL
982MANIFEST_TOOL
983RANLIB
984ac_ct_AR
985LN_S
986NM
987ac_ct_DUMPBIN
988DUMPBIN
989LD
990FGREP
991LIBTOOL
992OBJDUMP
993DLLTOOL
994AS
995host_os
996host_vendor
997host_cpu
998host
999build_os
1000build_vendor
1001build_cpu
1002build
1003PKGADD_VENDOR
1004PKGADD_NAME
1005PKGADD_PKG
1006VERSIONNUM
1007CURLVERSION
1008am__fastdepCC_FALSE
1009am__fastdepCC_TRUE
1010CCDEPMODE
1011am__nodep
1012AMDEPBACKSLASH
1013AMDEP_FALSE
1014AMDEP_TRUE
1015am__quote
1016am__include
1017DEPDIR
1018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038CPP
1039OBJEXT
1040EXEEXT
1041ac_ct_CC
1042CPPFLAGS
1043LDFLAGS
1044CFLAGS
1045CC
1046INSTALL_DATA
1047INSTALL_SCRIPT
1048INSTALL_PROGRAM
1049libext
1050AR
1051EGREP
1052GREP
1053CURL_CFLAG_EXTRAS
1054CONFIGURE_OPTIONS
1055CODE_COVERAGE_RULES
1056CODE_COVERAGE_LDFLAGS
1057CODE_COVERAGE_LIBS
1058CODE_COVERAGE_CXXFLAGS
1059CODE_COVERAGE_CFLAGS
1060CODE_COVERAGE_CPPFLAGS
1061GENHTML
1062LCOV
1063GCOV
1064CODE_COVERAGE_ENABLED
1065CODE_COVERAGE_ENABLED_FALSE
1066CODE_COVERAGE_ENABLED_TRUE
1067SED
1068AM_BACKSLASH
1069AM_DEFAULT_VERBOSITY
1070AM_DEFAULT_V
1071AM_V
1072MAINT
1073MAINTAINER_MODE_FALSE
1074MAINTAINER_MODE_TRUE
1075target_alias
1076host_alias
1077build_alias
1078LIBS
1079ECHO_T
1080ECHO_N
1081ECHO_C
1082DEFS
1083mandir
1084localedir
1085libdir
1086psdir
1087pdfdir
1088dvidir
1089htmldir
1090infodir
1091docdir
1092oldincludedir
1093includedir
1094runstatedir
1095localstatedir
1096sharedstatedir
1097sysconfdir
1098datadir
1099datarootdir
1100libexecdir
1101sbindir
1102bindir
1103program_transform_name
1104prefix
1105exec_prefix
1106PACKAGE_URL
1107PACKAGE_BUGREPORT
1108PACKAGE_STRING
1109PACKAGE_VERSION
1110PACKAGE_TARNAME
1111PACKAGE_NAME
1112SHELL
1113PATH_SEPARATOR'
1114ac_subst_files=''
1115ac_user_opts='
1116enable_option_checking
1117enable_maintainer_mode
1118enable_silent_rules
1119enable_debug
1120enable_optimize
1121enable_warnings
1122enable_werror
1123enable_curldebug
1124enable_symbol_hiding
1125enable_hidden_symbols
1126enable_ares
1127enable_rt
1128with_gcov
1129enable_code_coverage
1130enable_dependency_tracking
1131enable_largefile
1132enable_shared
1133enable_static
1134with_pic
1135enable_fast_install
1136with_aix_soname
1137with_gnu_ld
1138with_sysroot
1139enable_libtool_lock
1140enable_http
1141enable_ftp
1142enable_file
1143enable_ldap
1144enable_ldaps
1145enable_rtsp
1146enable_proxy
1147enable_dict
1148enable_telnet
1149enable_tftp
1150enable_pop3
1151enable_imap
1152enable_smb
1153enable_smtp
1154enable_gopher
1155enable_manual
1156enable_libcurl_option
1157enable_libgcc
1158with_zlib
1159with_ldap_lib
1160with_lber_lib
1161enable_ipv6
1162with_gssapi_includes
1163with_gssapi_libs
1164with_gssapi
1165with_winssl
1166with_darwinssl
1167with_ssl
1168with_egd_socket
1169with_random
1170with_gnutls
1171with_polarssl
1172with_mbedtls
1173with_cyassl
1174with_nss
1175with_axtls
1176with_ca_bundle
1177with_ca_path
1178with_ca_fallback
1179with_libpsl
1180with_libmetalink
1181with_libssh2
1182with_librtmp
1183enable_versioned_symbols
1184with_winidn
1185with_libidn2
1186with_nghttp2
1187with_zsh_functions_dir
1188enable_threaded_resolver
1189enable_pthreads
1190enable_verbose
1191enable_sspi
1192enable_crypto_auth
1193enable_ntlm_wb
1194enable_tls_srp
1195enable_unix_sockets
1196enable_cookies
1197enable_soname_bump
1198'
1199 ac_precious_vars='build_alias
1200host_alias
1201target_alias
1202CC
1203CFLAGS
1204LDFLAGS
1205LIBS
1206CPPFLAGS
1207CPP
1208LT_SYS_LIBRARY_PATH'
1209ac_subdirs_all='ares'
1210
1211# Initialize some variables set by options.
1212ac_init_help=
1213ac_init_version=false
1214ac_unrecognized_opts=
1215ac_unrecognized_sep=
1216# The variables have the same names as the options, with
1217# dashes changed to underlines.
1218cache_file=/dev/null
1219exec_prefix=NONE
1220no_create=
1221no_recursion=
1222prefix=NONE
1223program_prefix=NONE
1224program_suffix=NONE
1225program_transform_name=s,x,x,
1226silent=
1227site=
1228srcdir=
1229verbose=
1230x_includes=NONE
1231x_libraries=NONE
1232
1233# Installation directory options.
1234# These are left unexpanded so users can "make install exec_prefix=/foo"
1235# and all the variables that are supposed to be based on exec_prefix
1236# by default will actually change.
1237# Use braces instead of parens because sh, perl, etc. also accept them.
1238# (The list follows the same order as the GNU Coding Standards.)
1239bindir='${exec_prefix}/bin'
1240sbindir='${exec_prefix}/sbin'
1241libexecdir='${exec_prefix}/libexec'
1242datarootdir='${prefix}/share'
1243datadir='${datarootdir}'
1244sysconfdir='${prefix}/etc'
1245sharedstatedir='${prefix}/com'
1246localstatedir='${prefix}/var'
1247runstatedir='${localstatedir}/run'
1248includedir='${prefix}/include'
1249oldincludedir='/usr/include'
1250docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1251infodir='${datarootdir}/info'
1252htmldir='${docdir}'
1253dvidir='${docdir}'
1254pdfdir='${docdir}'
1255psdir='${docdir}'
1256libdir='${exec_prefix}/lib'
1257localedir='${datarootdir}/locale'
1258mandir='${datarootdir}/man'
1259
1260ac_prev=
1261ac_dashdash=
1262for ac_option
1263do
1264 # If the previous option needs an argument, assign it.
1265 if test -n "$ac_prev"; then
1266 eval $ac_prev=\$ac_option
1267 ac_prev=
1268 continue
1269 fi
1270
1271 case $ac_option in
1272 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1273 *=) ac_optarg= ;;
1274 *) ac_optarg=yes ;;
1275 esac
1276
1277 # Accept the important Cygnus configure options, so we can diagnose typos.
1278
1279 case $ac_dashdash$ac_option in
1280 --)
1281 ac_dashdash=yes ;;
1282
1283 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1284 ac_prev=bindir ;;
1285 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1286 bindir=$ac_optarg ;;
1287
1288 -build | --build | --buil | --bui | --bu)
1289 ac_prev=build_alias ;;
1290 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1291 build_alias=$ac_optarg ;;
1292
1293 -cache-file | --cache-file | --cache-fil | --cache-fi \
1294 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1295 ac_prev=cache_file ;;
1296 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1297 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1298 cache_file=$ac_optarg ;;
1299
1300 --config-cache | -C)
1301 cache_file=config.cache ;;
1302
1303 -datadir | --datadir | --datadi | --datad)
1304 ac_prev=datadir ;;
1305 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1306 datadir=$ac_optarg ;;
1307
1308 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1309 | --dataroo | --dataro | --datar)
1310 ac_prev=datarootdir ;;
1311 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1312 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1313 datarootdir=$ac_optarg ;;
1314
1315 -disable-* | --disable-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error $? "invalid feature name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324"enable_$ac_useropt"
1325"*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval enable_$ac_useropt=no ;;
1330
1331 -docdir | --docdir | --docdi | --doc | --do)
1332 ac_prev=docdir ;;
1333 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1334 docdir=$ac_optarg ;;
1335
1336 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1337 ac_prev=dvidir ;;
1338 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1339 dvidir=$ac_optarg ;;
1340
1341 -enable-* | --enable-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error $? "invalid feature name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1349 *"
1350"enable_$ac_useropt"
1351"*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval enable_$ac_useropt=\$ac_optarg ;;
1356
1357 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1358 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1359 | --exec | --exe | --ex)
1360 ac_prev=exec_prefix ;;
1361 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1362 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1363 | --exec=* | --exe=* | --ex=*)
1364 exec_prefix=$ac_optarg ;;
1365
1366 -gas | --gas | --ga | --g)
1367 # Obsolete; use --with-gas.
1368 with_gas=yes ;;
1369
1370 -help | --help | --hel | --he | -h)
1371 ac_init_help=long ;;
1372 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1373 ac_init_help=recursive ;;
1374 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1375 ac_init_help=short ;;
1376
1377 -host | --host | --hos | --ho)
1378 ac_prev=host_alias ;;
1379 -host=* | --host=* | --hos=* | --ho=*)
1380 host_alias=$ac_optarg ;;
1381
1382 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1383 ac_prev=htmldir ;;
1384 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1385 | --ht=*)
1386 htmldir=$ac_optarg ;;
1387
1388 -includedir | --includedir | --includedi | --included | --include \
1389 | --includ | --inclu | --incl | --inc)
1390 ac_prev=includedir ;;
1391 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1392 | --includ=* | --inclu=* | --incl=* | --inc=*)
1393 includedir=$ac_optarg ;;
1394
1395 -infodir | --infodir | --infodi | --infod | --info | --inf)
1396 ac_prev=infodir ;;
1397 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1398 infodir=$ac_optarg ;;
1399
1400 -libdir | --libdir | --libdi | --libd)
1401 ac_prev=libdir ;;
1402 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1403 libdir=$ac_optarg ;;
1404
1405 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1406 | --libexe | --libex | --libe)
1407 ac_prev=libexecdir ;;
1408 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1409 | --libexe=* | --libex=* | --libe=*)
1410 libexecdir=$ac_optarg ;;
1411
1412 -localedir | --localedir | --localedi | --localed | --locale)
1413 ac_prev=localedir ;;
1414 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1415 localedir=$ac_optarg ;;
1416
1417 -localstatedir | --localstatedir | --localstatedi | --localstated \
1418 | --localstate | --localstat | --localsta | --localst | --locals)
1419 ac_prev=localstatedir ;;
1420 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1421 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1422 localstatedir=$ac_optarg ;;
1423
1424 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1425 ac_prev=mandir ;;
1426 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1427 mandir=$ac_optarg ;;
1428
1429 -nfp | --nfp | --nf)
1430 # Obsolete; use --without-fp.
1431 with_fp=no ;;
1432
1433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1434 | --no-cr | --no-c | -n)
1435 no_create=yes ;;
1436
1437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1439 no_recursion=yes ;;
1440
1441 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1442 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1443 | --oldin | --oldi | --old | --ol | --o)
1444 ac_prev=oldincludedir ;;
1445 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1446 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1447 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1448 oldincludedir=$ac_optarg ;;
1449
1450 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1451 ac_prev=prefix ;;
1452 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1453 prefix=$ac_optarg ;;
1454
1455 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1456 | --program-pre | --program-pr | --program-p)
1457 ac_prev=program_prefix ;;
1458 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1459 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1460 program_prefix=$ac_optarg ;;
1461
1462 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1463 | --program-suf | --program-su | --program-s)
1464 ac_prev=program_suffix ;;
1465 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1466 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1467 program_suffix=$ac_optarg ;;
1468
1469 -program-transform-name | --program-transform-name \
1470 | --program-transform-nam | --program-transform-na \
1471 | --program-transform-n | --program-transform- \
1472 | --program-transform | --program-transfor \
1473 | --program-transfo | --program-transf \
1474 | --program-trans | --program-tran \
1475 | --progr-tra | --program-tr | --program-t)
1476 ac_prev=program_transform_name ;;
1477 -program-transform-name=* | --program-transform-name=* \
1478 | --program-transform-nam=* | --program-transform-na=* \
1479 | --program-transform-n=* | --program-transform-=* \
1480 | --program-transform=* | --program-transfor=* \
1481 | --program-transfo=* | --program-transf=* \
1482 | --program-trans=* | --program-tran=* \
1483 | --progr-tra=* | --program-tr=* | --program-t=*)
1484 program_transform_name=$ac_optarg ;;
1485
1486 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1487 ac_prev=pdfdir ;;
1488 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1489 pdfdir=$ac_optarg ;;
1490
1491 -psdir | --psdir | --psdi | --psd | --ps)
1492 ac_prev=psdir ;;
1493 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1494 psdir=$ac_optarg ;;
1495
1496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1497 | -silent | --silent | --silen | --sile | --sil)
1498 silent=yes ;;
1499
1500 -runstatedir | --runstatedir | --runstatedi | --runstated \
1501 | --runstate | --runstat | --runsta | --runst | --runs \
1502 | --run | --ru | --r)
1503 ac_prev=runstatedir ;;
1504 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1505 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1506 | --run=* | --ru=* | --r=*)
1507 runstatedir=$ac_optarg ;;
1508
1509 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1510 ac_prev=sbindir ;;
1511 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1512 | --sbi=* | --sb=*)
1513 sbindir=$ac_optarg ;;
1514
1515 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1516 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1517 | --sharedst | --shareds | --shared | --share | --shar \
1518 | --sha | --sh)
1519 ac_prev=sharedstatedir ;;
1520 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1521 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1522 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1523 | --sha=* | --sh=*)
1524 sharedstatedir=$ac_optarg ;;
1525
1526 -site | --site | --sit)
1527 ac_prev=site ;;
1528 -site=* | --site=* | --sit=*)
1529 site=$ac_optarg ;;
1530
1531 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1532 ac_prev=srcdir ;;
1533 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1534 srcdir=$ac_optarg ;;
1535
1536 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1537 | --syscon | --sysco | --sysc | --sys | --sy)
1538 ac_prev=sysconfdir ;;
1539 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1540 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1541 sysconfdir=$ac_optarg ;;
1542
1543 -target | --target | --targe | --targ | --tar | --ta | --t)
1544 ac_prev=target_alias ;;
1545 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1546 target_alias=$ac_optarg ;;
1547
1548 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1549 verbose=yes ;;
1550
1551 -version | --version | --versio | --versi | --vers | -V)
1552 ac_init_version=: ;;
1553
1554 -with-* | --with-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1558 as_fn_error $? "invalid package name: $ac_useropt"
1559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563"with_$ac_useropt"
1564"*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval with_$ac_useropt=\$ac_optarg ;;
1569
1570 -without-* | --without-*)
1571 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1572 # Reject names that are not valid shell variable names.
1573 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1574 as_fn_error $? "invalid package name: $ac_useropt"
1575 ac_useropt_orig=$ac_useropt
1576 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1577 case $ac_user_opts in
1578 *"
1579"with_$ac_useropt"
1580"*) ;;
1581 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1582 ac_unrecognized_sep=', ';;
1583 esac
1584 eval with_$ac_useropt=no ;;
1585
1586 --x)
1587 # Obsolete; use --with-x.
1588 with_x=yes ;;
1589
1590 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1591 | --x-incl | --x-inc | --x-in | --x-i)
1592 ac_prev=x_includes ;;
1593 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1594 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1595 x_includes=$ac_optarg ;;
1596
1597 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1598 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1599 ac_prev=x_libraries ;;
1600 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1601 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1602 x_libraries=$ac_optarg ;;
1603
1604 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1605Try \`$0 --help' for more information"
1606 ;;
1607
1608 *=*)
1609 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1610 # Reject names that are not valid shell variable names.
1611 case $ac_envvar in #(
1612 '' | [0-9]* | *[!_$as_cr_alnum]* )
1613 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1614 esac
1615 eval $ac_envvar=\$ac_optarg
1616 export $ac_envvar ;;
1617
1618 *)
1619 # FIXME: should be removed in autoconf 3.0.
1620 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1621 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1622 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1623 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1624 ;;
1625
1626 esac
1627done
1628
1629if test -n "$ac_prev"; then
1630 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1631 as_fn_error $? "missing argument to $ac_option"
1632fi
1633
1634if test -n "$ac_unrecognized_opts"; then
1635 case $enable_option_checking in
1636 no) ;;
1637 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1638 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1639 esac
1640fi
1641
1642# Check all directory arguments for consistency.
1643for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1644 datadir sysconfdir sharedstatedir localstatedir includedir \
1645 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1646 libdir localedir mandir runstatedir
1647do
1648 eval ac_val=\$$ac_var
1649 # Remove trailing slashes.
1650 case $ac_val in
1651 */ )
1652 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1653 eval $ac_var=\$ac_val;;
1654 esac
1655 # Be sure to have absolute directory names.
1656 case $ac_val in
1657 [\\/$]* | ?:[\\/]* ) continue;;
1658 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1659 esac
1660 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1661done
1662
1663# There might be people who depend on the old broken behavior: `$host'
1664# used to hold the argument of --host etc.
1665# FIXME: To remove some day.
1666build=$build_alias
1667host=$host_alias
1668target=$target_alias
1669
1670# FIXME: To remove some day.
1671if test "x$host_alias" != x; then
1672 if test "x$build_alias" = x; then
1673 cross_compiling=maybe
1674 elif test "x$build_alias" != "x$host_alias"; then
1675 cross_compiling=yes
1676 fi
1677fi
1678
1679ac_tool_prefix=
1680test -n "$host_alias" && ac_tool_prefix=$host_alias-
1681
1682test "$silent" = yes && exec 6>/dev/null
1683
1684
1685ac_pwd=`pwd` && test -n "$ac_pwd" &&
1686ac_ls_di=`ls -di .` &&
1687ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1688 as_fn_error $? "working directory cannot be determined"
1689test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1690 as_fn_error $? "pwd does not report name of working directory"
1691
1692
1693# Find the source files, if location was not specified.
1694if test -z "$srcdir"; then
1695 ac_srcdir_defaulted=yes
1696 # Try the directory containing this script, then the parent directory.
1697 ac_confdir=`$as_dirname -- "$as_myself" ||
1698$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1699 X"$as_myself" : 'X\(//\)[^/]' \| \
1700 X"$as_myself" : 'X\(//\)$' \| \
1701 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1702$as_echo X"$as_myself" |
1703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1704 s//\1/
1705 q
1706 }
1707 /^X\(\/\/\)[^/].*/{
1708 s//\1/
1709 q
1710 }
1711 /^X\(\/\/\)$/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\).*/{
1716 s//\1/
1717 q
1718 }
1719 s/.*/./; q'`
1720 srcdir=$ac_confdir
1721 if test ! -r "$srcdir/$ac_unique_file"; then
1722 srcdir=..
1723 fi
1724else
1725 ac_srcdir_defaulted=no
1726fi
1727if test ! -r "$srcdir/$ac_unique_file"; then
1728 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1729 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1730fi
1731ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1732ac_abs_confdir=`(
1733 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1734 pwd)`
1735# When building in place, set srcdir=.
1736if test "$ac_abs_confdir" = "$ac_pwd"; then
1737 srcdir=.
1738fi
1739# Remove unnecessary trailing slashes from srcdir.
1740# Double slashes in file names in object file debugging info
1741# mess up M-x gdb in Emacs.
1742case $srcdir in
1743*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1744esac
1745for ac_var in $ac_precious_vars; do
1746 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1747 eval ac_env_${ac_var}_value=\$${ac_var}
1748 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1749 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1750done
1751
1752#
1753# Report the --help message.
1754#
1755if test "$ac_init_help" = "long"; then
1756 # Omit some internal or obsolete options to make the list less imposing.
1757 # This message is too long to be a string in the A/UX 3.1 sh.
1758 cat <<_ACEOF
1759\`configure' configures curl - to adapt to many kinds of systems.
1760
1761Usage: $0 [OPTION]... [VAR=VALUE]...
1762
1763To assign environment variables (e.g., CC, CFLAGS...), specify them as
1764VAR=VALUE. See below for descriptions of some of the useful variables.
1765
1766Defaults for the options are specified in brackets.
1767
1768Configuration:
1769 -h, --help display this help and exit
1770 --help=short display options specific to this package
1771 --help=recursive display the short help of all the included packages
1772 -V, --version display version information and exit
1773 -q, --quiet, --silent do not print \`checking ...' messages
1774 --cache-file=FILE cache test results in FILE [disabled]
1775 -C, --config-cache alias for \`--cache-file=config.cache'
1776 -n, --no-create do not create output files
1777 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1778
1779Installation directories:
1780 --prefix=PREFIX install architecture-independent files in PREFIX
1781 [$ac_default_prefix]
1782 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1783 [PREFIX]
1784
1785By default, \`make install' will install all the files in
1786\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1787an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1788for instance \`--prefix=\$HOME'.
1789
1790For better control, use the options below.
1791
1792Fine tuning of the installation directories:
1793 --bindir=DIR user executables [EPREFIX/bin]
1794 --sbindir=DIR system admin executables [EPREFIX/sbin]
1795 --libexecdir=DIR program executables [EPREFIX/libexec]
1796 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1797 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1798 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1799 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1800 --libdir=DIR object code libraries [EPREFIX/lib]
1801 --includedir=DIR C header files [PREFIX/include]
1802 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1803 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1804 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1805 --infodir=DIR info documentation [DATAROOTDIR/info]
1806 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1807 --mandir=DIR man documentation [DATAROOTDIR/man]
1808 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1809 --htmldir=DIR html documentation [DOCDIR]
1810 --dvidir=DIR dvi documentation [DOCDIR]
1811 --pdfdir=DIR pdf documentation [DOCDIR]
1812 --psdir=DIR ps documentation [DOCDIR]
1813_ACEOF
1814
1815 cat <<\_ACEOF
1816
1817Program names:
1818 --program-prefix=PREFIX prepend PREFIX to installed program names
1819 --program-suffix=SUFFIX append SUFFIX to installed program names
1820 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1821
1822System types:
1823 --build=BUILD configure for building on BUILD [guessed]
1824 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1825_ACEOF
1826fi
1827
1828if test -n "$ac_init_help"; then
1829 case $ac_init_help in
1830 short | recursive ) echo "Configuration of curl -:";;
1831 esac
1832 cat <<\_ACEOF
1833
1834Optional Features:
1835 --disable-option-checking ignore unrecognized --enable/--with options
1836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1838 --enable-maintainer-mode
1839 enable make rules and dependencies not useful (and
1840 sometimes confusing) to the casual installer
1841 --enable-silent-rules less verbose build output (undo: "make V=1")
1842 --disable-silent-rules verbose build output (undo: "make V=0")
1843 --enable-debug Enable debug build options
1844 --disable-debug Disable debug build options
1845 --enable-optimize Enable compiler optimizations
1846 --disable-optimize Disable compiler optimizations
1847 --enable-warnings Enable strict compiler warnings
1848 --disable-warnings Disable strict compiler warnings
1849 --enable-werror Enable compiler warnings as errors
1850 --disable-werror Disable compiler warnings as errors
1851 --enable-curldebug Enable curl debug memory tracking
1852 --disable-curldebug Disable curl debug memory tracking
1853 --enable-symbol-hiding Enable hiding of library internal symbols
1854 --disable-symbol-hiding Disable hiding of library internal symbols
1855 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1856 --disable-hidden-symbols
1857 To be deprecated, use --disable-symbol-hiding
1858 --enable-ares[=PATH] Enable c-ares for DNS lookups
1859 --disable-ares Disable c-ares for DNS lookups
1860 --disable-rt disable dependency on -lrt
1861 --enable-code-coverage Whether to enable code coverage support
1862 --enable-dependency-tracking
1863 do not reject slow dependency extractors
1864 --disable-dependency-tracking
1865 speeds up one-time build
1866 --disable-largefile omit support for large files
1867 --enable-shared[=PKGS] build shared libraries [default=yes]
1868 --enable-static[=PKGS] build static libraries [default=yes]
1869 --enable-fast-install[=PKGS]
1870 optimize for fast installation [default=yes]
1871 --disable-libtool-lock avoid locking (might break parallel builds)
1872 --enable-http Enable HTTP support
1873 --disable-http Disable HTTP support
1874 --enable-ftp Enable FTP support
1875 --disable-ftp Disable FTP support
1876 --enable-file Enable FILE support
1877 --disable-file Disable FILE support
1878 --enable-ldap Enable LDAP support
1879 --disable-ldap Disable LDAP support
1880 --enable-ldaps Enable LDAPS support
1881 --disable-ldaps Disable LDAPS support
1882 --enable-rtsp Enable RTSP support
1883 --disable-rtsp Disable RTSP support
1884 --enable-proxy Enable proxy support
1885 --disable-proxy Disable proxy support
1886 --enable-dict Enable DICT support
1887 --disable-dict Disable DICT support
1888 --enable-telnet Enable TELNET support
1889 --disable-telnet Disable TELNET support
1890 --enable-tftp Enable TFTP support
1891 --disable-tftp Disable TFTP support
1892 --enable-pop3 Enable POP3 support
1893 --disable-pop3 Disable POP3 support
1894 --enable-imap Enable IMAP support
1895 --disable-imap Disable IMAP support
1896 --enable-smb Enable SMB/CIFS support
1897 --disable-smb Disable SMB/CIFS support
1898 --enable-smtp Enable SMTP support
1899 --disable-smtp Disable SMTP support
1900 --enable-gopher Enable Gopher support
1901 --disable-gopher Disable Gopher support
1902 --enable-manual Enable built-in manual
1903 --disable-manual Disable built-in manual
1904 --enable-libcurl-option Enable --libcurl C code generation support
1905 --disable-libcurl-option
1906 Disable --libcurl C code generation support
1907 --enable-libgcc use libgcc when linking
1908 --enable-ipv6 Enable IPv6 (with IPv4) support
1909 --disable-ipv6 Disable IPv6 support
1910 --enable-versioned-symbols
1911 Enable versioned symbols in shared library
1912 --disable-versioned-symbols
1913 Disable versioned symbols in shared library
1914 --enable-threaded-resolver
1915 Enable threaded resolver
1916 --disable-threaded-resolver
1917 Disable threaded resolver
1918 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1919 --disable-pthreads Disable POSIX threads
1920 --enable-verbose Enable verbose strings
1921 --disable-verbose Disable verbose strings
1922 --enable-sspi Enable SSPI
1923 --disable-sspi Disable SSPI
1924 --enable-crypto-auth Enable cryptographic authentication
1925 --disable-crypto-auth Disable cryptographic authentication
1926 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1927 helper, where FILE is ntlm_auth's absolute filename
1928 (default: /usr/bin/ntlm_auth)
1929 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1930 helper
1931 --enable-tls-srp Enable TLS-SRP authentication
1932 --disable-tls-srp Disable TLS-SRP authentication
1933 --enable-unix-sockets Enable Unix domain sockets
1934 --disable-unix-sockets Disable Unix domain sockets
1935 --enable-cookies Enable cookies support
1936 --disable-cookies Disable cookies support
1937 --enable-soname-bump Enable enforced SONAME bump
1938 --disable-soname-bump Disable enforced SONAME bump
1939
1940Optional Packages:
1941 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1942 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1943 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1944 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1945 both]
1946 --with-aix-soname=aix|svr4|both
1947 shared library versioning (aka "SONAME") variant to
1948 provide on AIX, [default=aix].
1949 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1950 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1951 compiler's sysroot if not specified).
1952 --with-zlib=PATH search for zlib in PATH
1953 --without-zlib disable use of zlib
1954 --with-ldap-lib=libname Specify name of ldap lib file
1955 --with-lber-lib=libname Specify name of lber lib file
1956 --with-gssapi-includes=DIR
1957 Specify location of GSS-API headers
1958 --with-gssapi-libs=DIR Specify location of GSS-API libs
1959 --with-gssapi=DIR Where to look for GSS-API
1960 --with-winssl enable Windows native SSL/TLS
1961 --without-winssl disable Windows native SSL/TLS
1962 --with-darwinssl enable Apple OS native SSL/TLS
1963 --without-darwinssl disable Apple OS native SSL/TLS
1964 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1965 installation (default: /usr/local/ssl); when
1966 possible, set the PKG_CONFIG_PATH environment
1967 variable instead of using this option
1968 --without-ssl disable OpenSSL
1969 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1970 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1971 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1972 installation root
1973 --without-gnutls disable GnuTLS detection
1974 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1975 installation root
1976 --without-polarssl disable PolarSSL detection
1977 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1978 installation root
1979 --without-mbedtls disable mbedTLS detection
1980 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1981 installation root (default: system lib default)
1982 --without-cyassl disable CyaSSL detection
1983 --with-nss=PATH where to look for NSS, PATH points to the
1984 installation root
1985 --without-nss disable NSS detection
1986 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1987 installation prefix (default: /usr/local). Ignored
1988 if another SSL engine is selected.
1989 --without-axtls disable axTLS
1990 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
1991 /etc/ca-bundle.crt)
1992 --without-ca-bundle Don't use a default CA bundle
1993 --with-ca-path=DIRECTORY
1994 Path to a directory containing CA certificates
1995 stored individually, with their filenames in a hash
1996 format. This option can be used with OpenSSL, GnuTLS
1997 and PolarSSL backends. Refer to OpenSSL c_rehash for
1998 details. (example: /etc/certificates)
1999 --without-ca-path Don't use a default CA path
2000 --with-ca-fallback Use the built in CA store of the SSL library
2001 --without-ca-fallback Don't use the built in CA store of the SSL library
2002 --without-libpsl disable support for libpsl cookie checking
2003 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2004 installation root
2005 --without-libmetalink disable libmetalink detection
2006 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2007 LIBSSH2 installation; when possible, set the
2008 PKG_CONFIG_PATH environment variable instead of
2009 using this option
2010 --without-libssh2 disable LIBSSH2
2011 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2012 LIBRTMP installation; when possible, set the
2013 PKG_CONFIG_PATH environment variable instead of
2014 using this option
2015 --without-librtmp disable LIBRTMP
2016 --with-winidn=PATH enable Windows native IDN
2017 --without-winidn disable Windows native IDN
2018 --with-libidn2=PATH Enable libidn2 usage
2019 --without-libidn2 Disable libidn2 usage
2020 --with-nghttp2=PATH Enable nghttp2 usage
2021 --without-nghttp2 Disable nghttp2 usage
2022 --with-zsh-functions-dir=PATH
2023 Install zsh completions to PATH
2024 --without-zsh-functions-dir
2025 Do not install zsh completions
2026
2027Some influential environment variables:
2028 CC C compiler command
2029 CFLAGS C compiler flags
2030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2031 nonstandard directory <lib dir>
2032 LIBS libraries to pass to the linker, e.g. -l<library>
2033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2034 you have headers in a nonstandard directory <include dir>
2035 CPP C preprocessor
2036 LT_SYS_LIBRARY_PATH
2037 User-defined run-time library search path.
2038
2039Use these variables to override the choices made by `configure' or to help
2040it to find libraries and programs with nonstandard names/locations.
2041
2042Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2043_ACEOF
2044ac_status=$?
2045fi
2046
2047if test "$ac_init_help" = "recursive"; then
2048 # If there are subdirs, report their specific --help.
2049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2050 test -d "$ac_dir" ||
2051 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2052 continue
2053 ac_builddir=.
2054
2055case "$ac_dir" in
2056.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2057*)
2058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2059 # A ".." for each directory in $ac_dir_suffix.
2060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2061 case $ac_top_builddir_sub in
2062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2064 esac ;;
2065esac
2066ac_abs_top_builddir=$ac_pwd
2067ac_abs_builddir=$ac_pwd$ac_dir_suffix
2068# for backward compatibility:
2069ac_top_builddir=$ac_top_build_prefix
2070
2071case $srcdir in
2072 .) # We are building in place.
2073 ac_srcdir=.
2074 ac_top_srcdir=$ac_top_builddir_sub
2075 ac_abs_top_srcdir=$ac_pwd ;;
2076 [\\/]* | ?:[\\/]* ) # Absolute name.
2077 ac_srcdir=$srcdir$ac_dir_suffix;
2078 ac_top_srcdir=$srcdir
2079 ac_abs_top_srcdir=$srcdir ;;
2080 *) # Relative name.
2081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2082 ac_top_srcdir=$ac_top_build_prefix$srcdir
2083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2084esac
2085ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2086
2087 cd "$ac_dir" || { ac_status=$?; continue; }
2088 # Check for guested configure.
2089 if test -f "$ac_srcdir/configure.gnu"; then
2090 echo &&
2091 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2092 elif test -f "$ac_srcdir/configure"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure" --help=recursive
2095 else
2096 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2097 fi || ac_status=$?
2098 cd "$ac_pwd" || { ac_status=$?; break; }
2099 done
2100fi
2101
2102test -n "$ac_init_help" && exit $ac_status
2103if $ac_init_version; then
2104 cat <<\_ACEOF
2105curl configure -
2106generated by GNU Autoconf 2.69
2107
2108Copyright (C) 2012 Free Software Foundation, Inc.
2109This configure script is free software; the Free Software Foundation
2110gives unlimited permission to copy, distribute and modify it.
2111
2112Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2113This configure script may be copied, distributed and modified under the
2114terms of the curl license; see COPYING for more details
2115_ACEOF
2116 exit
2117fi
2118
2119## ------------------------ ##
2120## Autoconf initialization. ##
2121## ------------------------ ##
2122
2123# ac_fn_c_try_compile LINENO
2124# --------------------------
2125# Try to compile conftest.$ac_ext, and return whether this succeeded.
2126ac_fn_c_try_compile ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext
2130 if { { ac_try="$ac_compile"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_compile") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_c_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest.$ac_objext; then :
2149 ac_retval=0
2150else
2151 $as_echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155fi
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2158
2159} # ac_fn_c_try_compile
2160
2161# ac_fn_c_try_cpp LINENO
2162# ----------------------
2163# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2164ac_fn_c_try_cpp ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { { ac_try="$ac_cpp conftest.$ac_ext"
2168case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171esac
2172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173$as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } > conftest.i && {
2183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 }; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192fi
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 as_fn_set_status $ac_retval
2195
2196} # ac_fn_c_try_cpp
2197
2198# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2199# -------------------------------------------------------
2200# Tests whether HEADER exists and can be compiled using the include files in
2201# INCLUDES, setting the cache variable VAR accordingly.
2202ac_fn_c_check_header_compile ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206$as_echo_n "checking for $2... " >&6; }
2207if eval \${$3+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h. */
2212$4
2213#include <$2>
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"; then :
2216 eval "$3=yes"
2217else
2218 eval "$3=no"
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221fi
2222eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224$as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226
2227} # ac_fn_c_check_header_compile
2228
2229# ac_fn_c_try_run LINENO
2230# ----------------------
2231# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2232# that executables *can* be run.
2233ac_fn_c_try_run ()
2234{
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 if { { ac_try="$ac_link"
2237case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2240esac
2241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242$as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_link") 2>&5
2244 ac_status=$?
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2247 { { case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_try") 2>&5
2254 ac_status=$?
2255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256 test $ac_status = 0; }; }; then :
2257 ac_retval=0
2258else
2259 $as_echo "$as_me: program exited with status $ac_status" >&5
2260 $as_echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 ac_retval=$ac_status
2264fi
2265 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status $ac_retval
2268
2269} # ac_fn_c_try_run
2270
2271# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2272# --------------------------------------------
2273# Tries to find the compile-time value of EXPR in a program that includes
2274# INCLUDES, setting VAR accordingly. Returns whether the value could be
2275# computed
2276ac_fn_c_compute_int ()
2277{
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 if test "$cross_compiling" = yes; then
2280 # Depending upon the size, compute the lo and hi bounds.
2281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h. */
2283$4
2284int main (void)
2285{
2286static int test_array [1 - 2 * !(($2) >= 0)];
2287test_array [0] = 0;
2288return test_array [0];
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_lo=0 ac_mid=0
2296 while :; do
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h. */
2299$4
2300int main (void)
2301{
2302static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303test_array [0] = 0;
2304return test_array [0];
2305
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310if ac_fn_c_try_compile "$LINENO"; then :
2311 ac_hi=$ac_mid; break
2312else
2313 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2314 if test $ac_lo -le $ac_mid; then
2315 ac_lo= ac_hi=
2316 break
2317 fi
2318 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2319fi
2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 done
2322else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324/* end confdefs.h. */
2325$4
2326int main (void)
2327{
2328static int test_array [1 - 2 * !(($2) < 0)];
2329test_array [0] = 0;
2330return test_array [0];
2331
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337 ac_hi=-1 ac_mid=-1
2338 while :; do
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340/* end confdefs.h. */
2341$4
2342int main (void)
2343{
2344static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2345test_array [0] = 0;
2346return test_array [0];
2347
2348 ;
2349 return 0;
2350}
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353 ac_lo=$ac_mid; break
2354else
2355 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2356 if test $ac_mid -le $ac_hi; then
2357 ac_lo= ac_hi=
2358 break
2359 fi
2360 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 done
2364else
2365 ac_lo= ac_hi=
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368fi
2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370# Binary search between lo and hi bounds.
2371while test "x$ac_lo" != "x$ac_hi"; do
2372 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h. */
2375$4
2376int main (void)
2377{
2378static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2379test_array [0] = 0;
2380return test_array [0];
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387 ac_hi=$ac_mid
2388else
2389 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392done
2393case $ac_lo in #((
2394?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2395'') ac_retval=1 ;;
2396esac
2397 else
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399/* end confdefs.h. */
2400$4
2401static long int longval () { return $2; }
2402static unsigned long int ulongval () { return $2; }
2403#include <stdio.h>
2404#include <stdlib.h>
2405int main (void)
2406{
2407
2408 FILE *f = fopen ("conftest.val", "w");
2409 if (! f)
2410 return 1;
2411 if (($2) < 0)
2412 {
2413 long int i = longval ();
2414 if (i != ($2))
2415 return 1;
2416 fprintf (f, "%ld", i);
2417 }
2418 else
2419 {
2420 unsigned long int i = ulongval ();
2421 if (i != ($2))
2422 return 1;
2423 fprintf (f, "%lu", i);
2424 }
2425 /* Do not output a trailing newline, as this causes \r\n confusion
2426 on some platforms. */
2427 return ferror (f) || fclose (f) != 0;
2428
2429 ;
2430 return 0;
2431}
2432_ACEOF
2433if ac_fn_c_try_run "$LINENO"; then :
2434 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2435else
2436 ac_retval=1
2437fi
2438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2439 conftest.$ac_objext conftest.beam conftest.$ac_ext
2440rm -f conftest.val
2441
2442 fi
2443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444 as_fn_set_status $ac_retval
2445
2446} # ac_fn_c_compute_int
2447
2448# ac_fn_c_try_link LINENO
2449# -----------------------
2450# Try to link conftest.$ac_ext, and return whether this succeeded.
2451ac_fn_c_try_link ()
2452{
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 rm -f conftest.$ac_objext conftest$ac_exeext
2455 if { { ac_try="$ac_link"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461$as_echo "$ac_try_echo"; } >&5
2462 (eval "$ac_link") 2>conftest.err
2463 ac_status=$?
2464 if test -s conftest.err; then
2465 grep -v '^ *+' conftest.err >conftest.er1
2466 cat conftest.er1 >&5
2467 mv -f conftest.er1 conftest.err
2468 fi
2469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470 test $ac_status = 0; } && {
2471 test -z "$ac_c_werror_flag" ||
2472 test ! -s conftest.err
2473 } && test -s conftest$ac_exeext && {
2474 test "$cross_compiling" = yes ||
2475 test -x conftest$ac_exeext
2476 }; then :
2477 ac_retval=0
2478else
2479 $as_echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 ac_retval=1
2483fi
2484 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2485 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2486 # interfere with the next link command; also delete a directory that is
2487 # left behind by Apple's compiler. We do this before executing the actions.
2488 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 as_fn_set_status $ac_retval
2491
2492} # ac_fn_c_try_link
2493
2494# ac_fn_c_check_func LINENO FUNC VAR
2495# ----------------------------------
2496# Tests whether FUNC exists, setting the cache variable VAR accordingly
2497ac_fn_c_check_func ()
2498{
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501$as_echo_n "checking for $2... " >&6; }
2502if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506/* end confdefs.h. */
2507
2508#define $2 innocuous_$2
2509#ifdef __STDC__
2510# include <limits.h>
2511#else
2512# include <assert.h>
2513#endif
2514#undef $2
2515#ifdef __cplusplus
2516extern "C"
2517#endif
2518char $2 ();
2519#if defined __stub_$2 || defined __stub___$2
2520choke me
2521#endif
2522
2523int main (void)
2524{
2525return $2 ();
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530if ac_fn_c_try_link "$LINENO"; then :
2531 eval "$3=yes"
2532else
2533 eval "$3=no"
2534fi
2535rm -f core conftest.err conftest.$ac_objext \
2536 conftest$ac_exeext conftest.$ac_ext
2537fi
2538eval ac_res=\$$3
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540$as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542
2543} # ac_fn_c_check_func
2544
2545# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2546# -------------------------------------------------------
2547# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2548# the include files in INCLUDES and setting the cache variable VAR
2549# accordingly.
2550ac_fn_c_check_header_mongrel ()
2551{
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 if eval \${$3+:} false; then :
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555$as_echo_n "checking for $2... " >&6; }
2556if eval \${$3+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558fi
2559eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561$as_echo "$ac_res" >&6; }
2562else
2563 # Is the header compilable?
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2565$as_echo_n "checking $2 usability... " >&6; }
2566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$4
2569#include <$2>
2570_ACEOF
2571if ac_fn_c_try_compile "$LINENO"; then :
2572 ac_header_compiler=yes
2573else
2574 ac_header_compiler=no
2575fi
2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2578$as_echo "$ac_header_compiler" >&6; }
2579
2580# Is the header present?
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2582$as_echo_n "checking $2 presence... " >&6; }
2583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585#include <$2>
2586_ACEOF
2587if ac_fn_c_try_cpp "$LINENO"; then :
2588 ac_header_preproc=yes
2589else
2590 ac_header_preproc=no
2591fi
2592rm -f conftest.err conftest.i conftest.$ac_ext
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2594$as_echo "$ac_header_preproc" >&6; }
2595
2596# So? What about this header?
2597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2598 yes:no: )
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2600$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2602$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2603 ;;
2604 no:yes:* )
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2606$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2608$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2610$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2612$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2614$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2615( $as_echo "## ----------------------------------------------------------------------- ##
2616## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2617## ----------------------------------------------------------------------- ##"
2618 ) | sed "s/^/$as_me: WARNING: /" >&2
2619 ;;
2620esac
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2622$as_echo_n "checking for $2... " >&6; }
2623if eval \${$3+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625else
2626 eval "$3=\$ac_header_compiler"
2627fi
2628eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630$as_echo "$ac_res" >&6; }
2631fi
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633
2634} # ac_fn_c_check_header_mongrel
2635
2636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2637# -------------------------------------------
2638# Tests whether TYPE exists after having included INCLUDES, setting cache
2639# variable VAR accordingly.
2640ac_fn_c_check_type ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644$as_echo_n "checking for $2... " >&6; }
2645if eval \${$3+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 eval "$3=no"
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int main (void)
2653{
2654if (sizeof ($2))
2655 return 0;
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h. */
2663$4
2664int main (void)
2665{
2666if (sizeof (($2)))
2667 return 0;
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672if ac_fn_c_try_compile "$LINENO"; then :
2673
2674else
2675 eval "$3=yes"
2676fi
2677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683$as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685
2686} # ac_fn_c_check_type
2687
2688# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2689# ----------------------------------------------------
2690# Tries to find if the field MEMBER exists in type AGGR, after including
2691# INCLUDES, setting cache variable VAR accordingly.
2692ac_fn_c_check_member ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2696$as_echo_n "checking for $2.$3... " >&6; }
2697if eval \${$4+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h. */
2702$5
2703int main (void)
2704{
2705static $2 ac_aggr;
2706if (ac_aggr.$3)
2707return 0;
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 eval "$4=yes"
2714else
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716/* end confdefs.h. */
2717$5
2718int main (void)
2719{
2720static $2 ac_aggr;
2721if (sizeof ac_aggr.$3)
2722return 0;
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_compile "$LINENO"; then :
2728 eval "$4=yes"
2729else
2730 eval "$4=no"
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735fi
2736eval ac_res=\$$4
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738$as_echo "$ac_res" >&6; }
2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2740
2741} # ac_fn_c_check_member
2742cat >config.log <<_ACEOF
2743This file contains any messages produced by compilers while
2744running configure, to aid debugging if configure makes a mistake.
2745
2746It was created by curl $as_me -, which was
2747generated by GNU Autoconf 2.69. Invocation command line was
2748
2749 $ $0 $@
2750
2751_ACEOF
2752exec 5>>config.log
2753{
2754cat <<_ASUNAME
2755## --------- ##
2756## Platform. ##
2757## --------- ##
2758
2759hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2760uname -m = `(uname -m) 2>/dev/null || echo unknown`
2761uname -r = `(uname -r) 2>/dev/null || echo unknown`
2762uname -s = `(uname -s) 2>/dev/null || echo unknown`
2763uname -v = `(uname -v) 2>/dev/null || echo unknown`
2764
2765/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2766/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2767
2768/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2769/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2770/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2771/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2772/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2773/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2774/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2775
2776_ASUNAME
2777
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2784 done
2785IFS=$as_save_IFS
2786
2787} >&5
2788
2789cat >&5 <<_ACEOF
2790
2791
2792## ----------- ##
2793## Core tests. ##
2794## ----------- ##
2795
2796_ACEOF
2797
2798
2799# Keep a trace of the command line.
2800# Strip out --no-create and --no-recursion so they do not pile up.
2801# Strip out --silent because we don't want to record it for future runs.
2802# Also quote any args containing shell meta-characters.
2803# Make two passes to allow for proper duplicate-argument suppression.
2804ac_configure_args=
2805ac_configure_args0=
2806ac_configure_args1=
2807ac_must_keep_next=false
2808for ac_pass in 1 2
2809do
2810 for ac_arg
2811 do
2812 case $ac_arg in
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2816 continue ;;
2817 *\'*)
2818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 esac
2820 case $ac_pass in
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2822 2)
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2826 else
2827 case $ac_arg in
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2834 esac
2835 ;;
2836 -* ) ac_must_keep_next=true ;;
2837 esac
2838 fi
2839 as_fn_append ac_configure_args " '$ac_arg'"
2840 ;;
2841 esac
2842 done
2843done
2844{ ac_configure_args0=; unset ac_configure_args0;}
2845{ ac_configure_args1=; unset ac_configure_args1;}
2846
2847# When interrupted or exit'd, cleanup temporary files, and complete
2848# config.log. We remove comments because anyway the quotes in there
2849# would cause problems or look ugly.
2850# WARNING: Use '\'' to represent an apostrophe within the trap.
2851# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2854 {
2855 echo
2856
2857 $as_echo "## ---------------- ##
2858## Cache variables. ##
2859## ---------------- ##"
2860 echo
2861 # The following way of writing the cache mishandles newlines in values,
2862(
2863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2864 eval ac_val=\$$ac_var
2865 case $ac_val in #(
2866 *${as_nl}*)
2867 case $ac_var in #(
2868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2870 esac
2871 case $ac_var in #(
2872 _ | IFS | as_nl) ;; #(
2873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2874 *) { eval $ac_var=; unset $ac_var;} ;;
2875 esac ;;
2876 esac
2877 done
2878 (set) 2>&1 |
2879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2880 *${as_nl}ac_space=\ *)
2881 sed -n \
2882 "s/'\''/'\''\\\\'\'''\''/g;
2883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2884 ;; #(
2885 *)
2886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2887 ;;
2888 esac |
2889 sort
2890)
2891 echo
2892
2893 $as_echo "## ----------------- ##
2894## Output variables. ##
2895## ----------------- ##"
2896 echo
2897 for ac_var in $ac_subst_vars
2898 do
2899 eval ac_val=\$$ac_var
2900 case $ac_val in
2901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2902 esac
2903 $as_echo "$ac_var='\''$ac_val'\''"
2904 done | sort
2905 echo
2906
2907 if test -n "$ac_subst_files"; then
2908 $as_echo "## ------------------- ##
2909## File substitutions. ##
2910## ------------------- ##"
2911 echo
2912 for ac_var in $ac_subst_files
2913 do
2914 eval ac_val=\$$ac_var
2915 case $ac_val in
2916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917 esac
2918 $as_echo "$ac_var='\''$ac_val'\''"
2919 done | sort
2920 echo
2921 fi
2922
2923 if test -s confdefs.h; then
2924 $as_echo "## ----------- ##
2925## confdefs.h. ##
2926## ----------- ##"
2927 echo
2928 cat confdefs.h
2929 echo
2930 fi
2931 test "$ac_signal" != 0 &&
2932 $as_echo "$as_me: caught signal $ac_signal"
2933 $as_echo "$as_me: exit $exit_status"
2934 } >&5
2935 rm -f core *.core core.conftest.* &&
2936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2937 exit $exit_status
2938' 0
2939for ac_signal in 1 2 13 15; do
2940 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2941done
2942ac_signal=0
2943
2944# confdefs.h avoids OS command line length limits that DEFS can exceed.
2945rm -f -r conftest* confdefs.h
2946
2947$as_echo "/* confdefs.h */" > confdefs.h
2948
2949# Predefined preprocessor variables.
2950
2951cat >>confdefs.h <<_ACEOF
2952#define PACKAGE_NAME "$PACKAGE_NAME"
2953_ACEOF
2954
2955cat >>confdefs.h <<_ACEOF
2956#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2957_ACEOF
2958
2959cat >>confdefs.h <<_ACEOF
2960#define PACKAGE_VERSION "$PACKAGE_VERSION"
2961_ACEOF
2962
2963cat >>confdefs.h <<_ACEOF
2964#define PACKAGE_STRING "$PACKAGE_STRING"
2965_ACEOF
2966
2967cat >>confdefs.h <<_ACEOF
2968#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2969_ACEOF
2970
2971cat >>confdefs.h <<_ACEOF
2972#define PACKAGE_URL "$PACKAGE_URL"
2973_ACEOF
2974
2975
2976# Let the site file select an alternate cache file if it wants to.
2977# Prefer an explicitly selected file to automatically selected ones.
2978ac_site_file1=NONE
2979ac_site_file2=NONE
2980if test -n "$CONFIG_SITE"; then
2981 # We do not want a PATH search for config.site.
2982 case $CONFIG_SITE in #((
2983 -*) ac_site_file1=./$CONFIG_SITE;;
2984 */*) ac_site_file1=$CONFIG_SITE;;
2985 *) ac_site_file1=./$CONFIG_SITE;;
2986 esac
2987elif test "x$prefix" != xNONE; then
2988 ac_site_file1=$prefix/share/config.site
2989 ac_site_file2=$prefix/etc/config.site
2990else
2991 ac_site_file1=$ac_default_prefix/share/config.site
2992 ac_site_file2=$ac_default_prefix/etc/config.site
2993fi
2994for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2995do
2996 test "x$ac_site_file" = xNONE && continue
2997 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2999$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3000 sed 's/^/| /' "$ac_site_file" >&5
3001 . "$ac_site_file" \
3002 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004as_fn_error $? "failed to load site script $ac_site_file
3005See \`config.log' for more details" "$LINENO" 5; }
3006 fi
3007done
3008
3009if test -r "$cache_file"; then
3010 # Some versions of bash will fail to source /dev/null (special files
3011 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3012 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3014$as_echo "$as_me: loading cache $cache_file" >&6;}
3015 case $cache_file in
3016 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3017 *) . "./$cache_file";;
3018 esac
3019 fi
3020else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3022$as_echo "$as_me: creating cache $cache_file" >&6;}
3023 >$cache_file
3024fi
3025
3026# Check that the precious variables saved in the cache have kept the same
3027# value.
3028ac_cache_corrupted=false
3029for ac_var in $ac_precious_vars; do
3030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3031 eval ac_new_set=\$ac_env_${ac_var}_set
3032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3033 eval ac_new_val=\$ac_env_${ac_var}_value
3034 case $ac_old_set,$ac_new_set in
3035 set,)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3037$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3038 ac_cache_corrupted=: ;;
3039 ,set)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3041$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3042 ac_cache_corrupted=: ;;
3043 ,);;
3044 *)
3045 if test "x$ac_old_val" != "x$ac_new_val"; then
3046 # differences in whitespace do not lead to failure.
3047 ac_old_val_w=`echo x $ac_old_val`
3048 ac_new_val_w=`echo x $ac_new_val`
3049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3051$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3052 ac_cache_corrupted=:
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3055$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3056 eval $ac_var=\$ac_old_val
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3059$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3061$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3062 fi;;
3063 esac
3064 # Pass precious variables to config.status.
3065 if test "$ac_new_set" = set; then
3066 case $ac_new_val in
3067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3068 *) ac_arg=$ac_var=$ac_new_val ;;
3069 esac
3070 case " $ac_configure_args " in
3071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3072 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3073 esac
3074 fi
3075done
3076if $ac_cache_corrupted; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3080$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3081 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3082fi
3083## -------------------- ##
3084## Main body of script. ##
3085## -------------------- ##
3086
3087ac_ext=c
3088ac_cpp='$CPP $CPPFLAGS'
3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092
3093
3094
3095
3096
3097
3098
3099# using curl-override.m4
3100
3101
3102
3103
3104
3105ac_config_headers="$ac_config_headers lib/curl_config.h"
3106
3107
3108
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3110$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3111 # Check whether --enable-maintainer-mode was given.
3112if test "${enable_maintainer_mode+set}" = set; then :
3113 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3114else
3115 USE_MAINTAINER_MODE=no
3116fi
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3119$as_echo "$USE_MAINTAINER_MODE" >&6; }
3120 if test $USE_MAINTAINER_MODE = yes; then
3121 MAINTAINER_MODE_TRUE=
3122 MAINTAINER_MODE_FALSE='#'
3123else
3124 MAINTAINER_MODE_TRUE='#'
3125 MAINTAINER_MODE_FALSE=
3126fi
3127
3128 MAINT=$MAINTAINER_MODE_TRUE
3129
3130
3131# Check whether --enable-silent-rules was given.
3132if test "${enable_silent_rules+set}" = set; then :
3133 enableval=$enable_silent_rules;
3134fi
3135
3136case $enable_silent_rules in # (((
3137 yes) AM_DEFAULT_VERBOSITY=0;;
3138 no) AM_DEFAULT_VERBOSITY=1;;
3139 *) AM_DEFAULT_VERBOSITY=0;;
3140esac
3141am_make=${MAKE-make}
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3144if ${am_cv_make_support_nested_variables+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146else
3147 if $as_echo 'TRUE=$(BAR$(V))
3148BAR0=false
3149BAR1=true
3150V=1
3151am__doit:
3152 @$(TRUE)
3153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3154 am_cv_make_support_nested_variables=yes
3155else
3156 am_cv_make_support_nested_variables=no
3157fi
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3160$as_echo "$am_cv_make_support_nested_variables" >&6; }
3161if test $am_cv_make_support_nested_variables = yes; then
3162 AM_V='$(V)'
3163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3164else
3165 AM_V=$AM_DEFAULT_VERBOSITY
3166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3167fi
3168AM_BACKSLASH='\'
3169
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3173$as_echo_n "checking whether to enable debug build options... " >&6; }
3174 OPT_DEBUG_BUILD="default"
3175 # Check whether --enable-debug was given.
3176if test "${enable_debug+set}" = set; then :
3177 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3178fi
3179
3180 case "$OPT_DEBUG_BUILD" in
3181 no)
3182 want_debug="no"
3183 ;;
3184 default)
3185 want_debug="no"
3186 ;;
3187 *)
3188 want_debug="yes"
3189 ;;
3190 esac
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3192$as_echo "$want_debug" >&6; }
3193
3194
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3196$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3197 OPT_COMPILER_OPTIMIZE="default"
3198 # Check whether --enable-optimize was given.
3199if test "${enable_optimize+set}" = set; then :
3200 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3201fi
3202
3203 case "$OPT_COMPILER_OPTIMIZE" in
3204 no)
3205 want_optimize="no"
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208 ;;
3209 default)
3210 if test "$want_debug" = "yes"; then
3211 want_optimize="assume_no"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3213$as_echo "(assumed) no" >&6; }
3214 else
3215 want_optimize="assume_yes"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3217$as_echo "(assumed) yes" >&6; }
3218 fi
3219 ;;
3220 *)
3221 want_optimize="yes"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223$as_echo "yes" >&6; }
3224 ;;
3225 esac
3226
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3229$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3230 OPT_COMPILER_WARNINGS="default"
3231 # Check whether --enable-warnings was given.
3232if test "${enable_warnings+set}" = set; then :
3233 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3234fi
3235
3236 case "$OPT_COMPILER_WARNINGS" in
3237 no)
3238 want_warnings="no"
3239 ;;
3240 default)
3241 want_warnings="$want_debug"
3242 ;;
3243 *)
3244 want_warnings="yes"
3245 ;;
3246 esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3248$as_echo "$want_warnings" >&6; }
3249
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3252$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3253 OPT_COMPILER_WERROR="default"
3254 # Check whether --enable-werror was given.
3255if test "${enable_werror+set}" = set; then :
3256 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3257fi
3258
3259 case "$OPT_COMPILER_WERROR" in
3260 no)
3261 want_werror="no"
3262 ;;
3263 default)
3264 want_werror="no"
3265 ;;
3266 *)
3267 want_werror="yes"
3268 ;;
3269 esac
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3271$as_echo "$want_werror" >&6; }
3272
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3275$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3276 OPT_CURLDEBUG_BUILD="default"
3277 # Check whether --enable-curldebug was given.
3278if test "${enable_curldebug+set}" = set; then :
3279 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3280fi
3281
3282 case "$OPT_CURLDEBUG_BUILD" in
3283 no)
3284 want_curldebug="no"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287 ;;
3288 default)
3289 if test "$want_debug" = "yes"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3291$as_echo "(assumed) yes" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295 fi
3296 want_curldebug_assumed="yes"
3297 want_curldebug="$want_debug"
3298 ;;
3299 *)
3300 want_curldebug="yes"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302$as_echo "yes" >&6; }
3303 ;;
3304 esac
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3308$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3309 OPT_SYMBOL_HIDING="default"
3310 # Check whether --enable-symbol-hiding was given.
3311if test "${enable_symbol_hiding+set}" = set; then :
3312 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3313fi
3314
3315 # Check whether --enable-hidden-symbols was given.
3316if test "${enable_hidden_symbols+set}" = set; then :
3317 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3318fi
3319
3320 case "$OPT_SYMBOL_HIDING" in
3321 no)
3322 want_symbol_hiding="no"
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325 ;;
3326 default)
3327 want_symbol_hiding="yes"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330 ;;
3331 *)
3332 want_symbol_hiding="yes"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334$as_echo "yes" >&6; }
3335 ;;
3336 esac
3337
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3340$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3341 OPT_ARES="default"
3342 # Check whether --enable-ares was given.
3343if test "${enable_ares+set}" = set; then :
3344 enableval=$enable_ares; OPT_ARES=$enableval
3345fi
3346
3347 case "$OPT_ARES" in
3348 no)
3349 want_ares="no"
3350 ;;
3351 default)
3352 want_ares="no"
3353 ;;
3354 *)
3355 want_ares="yes"
3356 if test -n "$enableval" && test "$enableval" != "yes"; then
3357 want_ares_path="$enableval"
3358 fi
3359 ;;
3360 esac
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3362$as_echo "$want_ares" >&6; }
3363
3364
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3366$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3367 OPT_RT="default"
3368 # Check whether --enable-rt was given.
3369if test "${enable_rt+set}" = set; then :
3370 enableval=$enable_rt; OPT_RT=$enableval
3371fi
3372
3373 case "$OPT_RT" in
3374 no)
3375 dontwant_rt="yes"
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377$as_echo "yes" >&6; }
3378 ;;
3379 default)
3380 dontwant_rt="no"
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3382$as_echo "(assumed no)" >&6; }
3383 ;;
3384 *)
3385 dontwant_rt="no"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388 ;;
3389 esac
3390
3391
3392#
3393# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3394#
3395
3396if test -z "$xc_configure_preamble_result"; then
3397 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3398fi
3399
3400#
3401# Check that 'PATH_SEPARATOR' has already been set.
3402#
3403
3404if test -z "$xc_PATH_SEPARATOR"; then
3405 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3406fi
3407if test -z "$PATH_SEPARATOR"; then
3408 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3411$as_echo_n "checking for path separator... " >&6; }
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3413$as_echo "$PATH_SEPARATOR" >&6; }
3414if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3416$as_echo_n "checking for initial path separator... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3418$as_echo "$xc_PATH_SEPARATOR" >&6; }
3419 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3420fi
3421
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3423$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3424if ${ac_cv_path_SED+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426else
3427 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3428 for ac_i in 1 2 3 4 5 6 7; do
3429 ac_script="$ac_script$as_nl$ac_script"
3430 done
3431 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3432 { ac_script=; unset ac_script;}
3433 if test -z "$SED"; then
3434 ac_path_SED_found=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_prog in sed gsed; do
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3444 as_fn_executable_p "$ac_path_SED" || continue
3445# Check for GNU ac_path_SED and select it if it is found.
3446 # Check for GNU $ac_path_SED
3447case `"$ac_path_SED" --version 2>&1` in
3448*GNU*)
3449 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3450*)
3451 ac_count=0
3452 $as_echo_n 0123456789 >"conftest.in"
3453 while :
3454 do
3455 cat "conftest.in" "conftest.in" >"conftest.tmp"
3456 mv "conftest.tmp" "conftest.in"
3457 cp "conftest.in" "conftest.nl"
3458 $as_echo '' >> "conftest.nl"
3459 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3461 as_fn_arith $ac_count + 1 && ac_count=$as_val
3462 if test $ac_count -gt ${ac_path_SED_max-0}; then
3463 # Best one so far, save it but keep looking for a better one
3464 ac_cv_path_SED="$ac_path_SED"
3465 ac_path_SED_max=$ac_count
3466 fi
3467 # 10*(2^10) chars as input seems more than enough
3468 test $ac_count -gt 10 && break
3469 done
3470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3471esac
3472
3473 $ac_path_SED_found && break 3
3474 done
3475 done
3476 done
3477IFS=$as_save_IFS
3478 if test -z "$ac_cv_path_SED"; then
3479 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3480 fi
3481else
3482 ac_cv_path_SED=$SED
3483fi
3484
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3487$as_echo "$ac_cv_path_SED" >&6; }
3488 SED="$ac_cv_path_SED"
3489 rm -f conftest.sed
3490
3491
3492
3493
3494 # allow to override gcov location
3495
3496# Check whether --with-gcov was given.
3497if test "${with_gcov+set}" = set; then :
3498 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3499else
3500 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3501fi
3502
3503
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3505$as_echo_n "checking whether to build with code coverage support... " >&6; }
3506 # Check whether --enable-code-coverage was given.
3507if test "${enable_code_coverage+set}" = set; then :
3508 enableval=$enable_code_coverage;
3509else
3510 enable_code_coverage=no
3511fi
3512
3513
3514 if test x$enable_code_coverage = xyes; then
3515 CODE_COVERAGE_ENABLED_TRUE=
3516 CODE_COVERAGE_ENABLED_FALSE='#'
3517else
3518 CODE_COVERAGE_ENABLED_TRUE='#'
3519 CODE_COVERAGE_ENABLED_FALSE=
3520fi
3521
3522 CODE_COVERAGE_ENABLED=$enable_code_coverage
3523
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3525$as_echo "$enable_code_coverage" >&6; }
3526
3527 if test "$enable_code_coverage" = "yes" ; then :
3528
3529 # check for gcov
3530 if test -n "$ac_tool_prefix"; then
3531 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3532set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if ${ac_cv_prog_GCOV+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537else
3538 if test -n "$GCOV"; then
3539 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552done
3553 done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558GCOV=$ac_cv_prog_GCOV
3559if test -n "$GCOV"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3561$as_echo "$GCOV" >&6; }
3562else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567
3568fi
3569if test -z "$ac_cv_prog_GCOV"; then
3570 ac_ct_GCOV=$GCOV
3571 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3572set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574$as_echo_n "checking for $ac_word... " >&6; }
3575if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577else
3578 if test -n "$ac_ct_GCOV"; then
3579 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3580else
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592done
3593 done
3594IFS=$as_save_IFS
3595
3596fi
3597fi
3598ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3599if test -n "$ac_ct_GCOV"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3601$as_echo "$ac_ct_GCOV" >&6; }
3602else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604$as_echo "no" >&6; }
3605fi
3606
3607 if test "x$ac_ct_GCOV" = x; then
3608 GCOV=":"
3609 else
3610 case $cross_compiling:$ac_tool_warned in
3611yes:)
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614ac_tool_warned=yes ;;
3615esac
3616 GCOV=$ac_ct_GCOV
3617 fi
3618else
3619 GCOV="$ac_cv_prog_GCOV"
3620fi
3621
3622 if test "X$GCOV" = "X:"; then :
3623 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3624fi
3625
3626
3627 if test "$GCC" = "no" ; then :
3628
3629 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3630
3631fi
3632
3633 # Extract the first word of "lcov", so it can be a program name with args.
3634set dummy lcov; ac_word=$2
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636$as_echo_n "checking for $ac_word... " >&6; }
3637if ${ac_cv_prog_LCOV+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639else
3640 if test -n "$LCOV"; then
3641 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_LCOV="lcov"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654done
3655 done
3656IFS=$as_save_IFS
3657
3658fi
3659fi
3660LCOV=$ac_cv_prog_LCOV
3661if test -n "$LCOV"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3663$as_echo "$LCOV" >&6; }
3664else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
3667fi
3668
3669
3670 # Extract the first word of "genhtml", so it can be a program name with args.
3671set dummy genhtml; ac_word=$2
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
3674if ${ac_cv_prog_GENHTML+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676else
3677 if test -n "$GENHTML"; then
3678 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_GENHTML="genhtml"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691done
3692 done
3693IFS=$as_save_IFS
3694
3695fi
3696fi
3697GENHTML=$ac_cv_prog_GENHTML
3698if test -n "$GENHTML"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3700$as_echo "$GENHTML" >&6; }
3701else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704fi
3705
3706
3707
3708 if test -z "$LCOV" ; then :
3709
3710 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3711
3712fi
3713
3714 if test -z "$GENHTML" ; then :
3715
3716 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3717
3718fi
3719
3720 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3721 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3722 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3723 CODE_COVERAGE_LIBS="-lgcov"
3724 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3725
3726
3727
3728
3729
3730
3731
3732 CODE_COVERAGE_RULES_CHECK='
3733 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3734 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3735'
3736 CODE_COVERAGE_RULES_CAPTURE='
3737 $(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)
3738 $(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)
3739 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3740 $(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)
3741 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3742'
3743 CODE_COVERAGE_RULES_CLEAN='
3744clean: code-coverage-clean
3745distclean: code-coverage-clean
3746code-coverage-clean:
3747 -$(LCOV) --directory $(top_builddir) -z
3748 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3749 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3750'
3751
3752else
3753
3754 CODE_COVERAGE_RULES_CHECK='
3755 @echo "Need to reconfigure with --enable-code-coverage"
3756'
3757 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
3758 CODE_COVERAGE_RULES_CLEAN=''
3759
3760fi
3761
3762CODE_COVERAGE_RULES='
3763# Code coverage
3764#
3765# Optional:
3766# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3767# Multiple directories may be specified, separated by whitespace.
3768# (Default: $(top_builddir))
3769# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3770# by lcov for code coverage. (Default:
3771# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3772# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3773# reports to be created. (Default:
3774# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3775# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
3776# set to 0 to disable it and leave empty to stay with the default.
3777# (Default: empty)
3778# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
3779# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3780# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
3781# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3782# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3783# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
3784# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3785# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
3786# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3787# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
3788# lcov instance. (Default: empty)
3789# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
3790# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3791# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
3792# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3793# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3794# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3795# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3796#
3797# The generated report will be titled using the $(PACKAGE_NAME) and
3798# $(PACKAGE_VERSION). In order to add the current git hash to the title,
3799# use the git-version-gen script, available online.
3800
3801# Optional variables
3802CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3803CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3804CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3805CODE_COVERAGE_BRANCH_COVERAGE ?=
3806CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3807--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3808CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3809CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3810CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3811CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3812CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
3813CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3814CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
3815$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3816--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3817CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3818CODE_COVERAGE_IGNORE_PATTERN ?=
3819
3820GITIGNOREFILES ?=
3821GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3822
3823code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
3824code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
3825code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
3826 $(CODE_COVERAGE_OUTPUT_FILE);
3827code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
3828code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
3829code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
3830 $(CODE_COVERAGE_IGNORE_PATTERN);
3831code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
3832code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
3833code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
3834code_coverage_quiet = $(code_coverage_quiet_$(V))
3835code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
3836code_coverage_quiet_0 = --quiet
3837
3838# sanitizes the test-name: replaces with underscores: dashes and dots
3839code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
3840
3841# Use recursive makes in order to ignore errors during check
3842check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
3843
3844# Capture code coverage data
3845code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
3846
3847# Hook rule executed before code-coverage-capture, overridable by the user
3848code-coverage-capture-hook:
3849
3850'"$CODE_COVERAGE_RULES_CLEAN"'
3851
3852A''M_DISTCHECK_CONFIGURE_FLAGS ?=
3853A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3854
3855.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3856'
3857
3858
3859
3860
3861
3862#
3863# save the configure arguments
3864#
3865CONFIGURE_OPTIONS="\"$ac_configure_args\""
3866
3867
3868CURL_CFLAG_EXTRAS=""
3869if test X"$want_werror" = Xyes; then
3870 CURL_CFLAG_EXTRAS="-Werror"
3871fi
3872
3873
3874if test -z "$SED"; then
3875 # Extract the first word of "sed", so it can be a program name with args.
3876set dummy sed; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if ${ac_cv_path_SED+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881else
3882 case $SED in
3883 [\\/]* | ?:[\\/]*)
3884 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3885 ;;
3886 *)
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888as_dummy="$PATH:/usr/bin:/usr/local/bin"
3889for as_dir in $as_dummy
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
3900 done
3901IFS=$as_save_IFS
3902
3903 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3904 ;;
3905esac
3906fi
3907SED=$ac_cv_path_SED
3908if test -n "$SED"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3910$as_echo "$SED" >&6; }
3911else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913$as_echo "no" >&6; }
3914fi
3915
3916
3917 if test -z "$SED" || test "$SED" = "not_found"; then
3918 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3919 fi
3920fi
3921
3922
3923if test -z "$GREP"; then
3924 # Extract the first word of "grep", so it can be a program name with args.
3925set dummy grep; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
3928if ${ac_cv_path_GREP+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930else
3931 case $GREP in
3932 [\\/]* | ?:[\\/]*)
3933 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3934 ;;
3935 *)
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937as_dummy="$PATH:/usr/bin:/usr/local/bin"
3938for as_dir in $as_dummy
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
3951
3952 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3953 ;;
3954esac
3955fi
3956GREP=$ac_cv_path_GREP
3957if test -n "$GREP"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3959$as_echo "$GREP" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966 if test -z "$GREP" || test "$GREP" = "not_found"; then
3967 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3968 fi
3969fi
3970
3971
3972if test -z "$EGREP"; then
3973 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3975$as_echo_n "checking for egrep... " >&6; }
3976 EGREP="$GREP -E"
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3978$as_echo "$EGREP" >&6; }
3979 else
3980 # Extract the first word of "egrep", so it can be a program name with args.
3981set dummy egrep; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if ${ac_cv_path_EGREP+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986else
3987 case $EGREP in
3988 [\\/]* | ?:[\\/]*)
3989 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3990 ;;
3991 *)
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993as_dummy="$PATH:/usr/bin:/usr/local/bin"
3994for as_dir in $as_dummy
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004done
4005 done
4006IFS=$as_save_IFS
4007
4008 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4009 ;;
4010esac
4011fi
4012EGREP=$ac_cv_path_EGREP
4013if test -n "$EGREP"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4015$as_echo "$EGREP" >&6; }
4016else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019fi
4020
4021
4022 fi
4023fi
4024if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4025 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
4026fi
4027
4028
4029if test -z "$AR"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4032set dummy ${ac_tool_prefix}ar; ac_word=$2
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if ${ac_cv_path_AR+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 case $AR in
4039 [\\/]* | ?:[\\/]*)
4040 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4041 ;;
4042 *)
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044as_dummy="$PATH:/usr/bin:/usr/local/bin"
4045for as_dir in $as_dummy
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056 done
4057IFS=$as_save_IFS
4058
4059 ;;
4060esac
4061fi
4062AR=$ac_cv_path_AR
4063if test -n "$AR"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4065$as_echo "$AR" >&6; }
4066else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071
4072fi
4073if test -z "$ac_cv_path_AR"; then
4074 ac_pt_AR=$AR
4075 # Extract the first word of "ar", so it can be a program name with args.
4076set dummy ar; ac_word=$2
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
4079if ${ac_cv_path_ac_pt_AR+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081else
4082 case $ac_pt_AR in
4083 [\\/]* | ?:[\\/]*)
4084 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4085 ;;
4086 *)
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088as_dummy="$PATH:/usr/bin:/usr/local/bin"
4089for as_dir in $as_dummy
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099done
4100 done
4101IFS=$as_save_IFS
4102
4103 ;;
4104esac
4105fi
4106ac_pt_AR=$ac_cv_path_ac_pt_AR
4107if test -n "$ac_pt_AR"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4109$as_echo "$ac_pt_AR" >&6; }
4110else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112$as_echo "no" >&6; }
4113fi
4114
4115 if test "x$ac_pt_AR" = x; then
4116 AR="not_found"
4117 else
4118 case $cross_compiling:$ac_tool_warned in
4119yes:)
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4122ac_tool_warned=yes ;;
4123esac
4124 AR=$ac_pt_AR
4125 fi
4126else
4127 AR="$ac_cv_path_AR"
4128fi
4129
4130 if test -z "$AR" || test "$AR" = "not_found"; then
4131 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4132 fi
4133fi
4134
4135
4136
4137
4138CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4139
4140 xc_prog_cc_prev_IFS=$IFS
4141 xc_prog_cc_prev_LIBS=$LIBS
4142 xc_prog_cc_prev_CFLAGS=$CFLAGS
4143 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4144 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4145
4146
4147
4148 xc_bad_var_libs=no
4149 for xc_word in $LIBS; do
4150 case "$xc_word" in
4151 -l* | --library=*)
4152 :
4153 ;;
4154 *)
4155 xc_bad_var_libs=yes
4156 ;;
4157 esac
4158 done
4159 if test $xc_bad_var_libs = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4161$as_echo "$as_me: using LIBS: $LIBS" >&6;}
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4163$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4164 fi
4165
4166
4167 xc_bad_var_ldflags=no
4168 for xc_word in $LDFLAGS; do
4169 case "$xc_word" in
4170 -D*)
4171 xc_bad_var_ldflags=yes
4172 ;;
4173 -U*)
4174 xc_bad_var_ldflags=yes
4175 ;;
4176 -I*)
4177 xc_bad_var_ldflags=yes
4178 ;;
4179 -l* | --library=*)
4180 xc_bad_var_ldflags=yes
4181 ;;
4182 esac
4183 done
4184 if test $xc_bad_var_ldflags = yes; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4186$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4187 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4188 for xc_word in $LDFLAGS; do
4189 case "$xc_word" in
4190 -D*)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4192$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4193 ;;
4194 -U*)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4196$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4197 ;;
4198 -I*)
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4200$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4201 ;;
4202 -l* | --library=*)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4204$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4205 ;;
4206 esac
4207 done
4208 fi
4209
4210
4211 xc_bad_var_cppflags=no
4212 for xc_word in $CPPFLAGS; do
4213 case "$xc_word" in
4214 -rpath*)
4215 xc_bad_var_cppflags=yes
4216 ;;
4217 -L* | --library-path=*)
4218 xc_bad_var_cppflags=yes
4219 ;;
4220 -l* | --library=*)
4221 xc_bad_var_cppflags=yes
4222 ;;
4223 esac
4224 done
4225 if test $xc_bad_var_cppflags = yes; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4227$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4228 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4229 for xc_word in $CPPFLAGS; do
4230 case "$xc_word" in
4231 -rpath*)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4233$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4234 ;;
4235 -L* | --library-path=*)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4237$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4238 ;;
4239 -l* | --library=*)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4241$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4242 ;;
4243 esac
4244 done
4245 fi
4246
4247
4248 xc_bad_var_cflags=no
4249 for xc_word in $CFLAGS; do
4250 case "$xc_word" in
4251 -D*)
4252 xc_bad_var_cflags=yes
4253 ;;
4254 -U*)
4255 xc_bad_var_cflags=yes
4256 ;;
4257 -I*)
4258 xc_bad_var_cflags=yes
4259 ;;
4260 -rpath*)
4261 xc_bad_var_cflags=yes
4262 ;;
4263 -L* | --library-path=*)
4264 xc_bad_var_cflags=yes
4265 ;;
4266 -l* | --library=*)
4267 xc_bad_var_cflags=yes
4268 ;;
4269 esac
4270 done
4271 if test $xc_bad_var_cflags = yes; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4273$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4274 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4275 for xc_word in $CFLAGS; do
4276 case "$xc_word" in
4277 -D*)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4279$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4280 ;;
4281 -U*)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4283$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4284 ;;
4285 -I*)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4287$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4288 ;;
4289 -rpath*)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4291$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4292 ;;
4293 -L* | --library-path=*)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4295$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4296 ;;
4297 -l* | --library=*)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4299$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4300 ;;
4301 esac
4302 done
4303 fi
4304
4305 if test $xc_bad_var_libs = yes ||
4306 test $xc_bad_var_cflags = yes ||
4307 test $xc_bad_var_ldflags = yes ||
4308 test $xc_bad_var_cppflags = yes; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4310$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4311 fi
4312
4313ac_aux_dir=
4314for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4315 if test -f "$ac_dir/install-sh"; then
4316 ac_aux_dir=$ac_dir
4317 ac_install_sh="$ac_aux_dir/install-sh -c"
4318 break
4319 elif test -f "$ac_dir/install.sh"; then
4320 ac_aux_dir=$ac_dir
4321 ac_install_sh="$ac_aux_dir/install.sh -c"
4322 break
4323 elif test -f "$ac_dir/shtool"; then
4324 ac_aux_dir=$ac_dir
4325 ac_install_sh="$ac_aux_dir/shtool install -c"
4326 break
4327 fi
4328done
4329if test -z "$ac_aux_dir"; then
4330 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4331fi
4332
4333# These three variables are undocumented and unsupported,
4334# and are intended to be withdrawn in a future Autoconf release.
4335# They can cause serious problems if a builder's source tree is in a directory
4336# whose full name contains unusual characters.
4337ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4338ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4339ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4340
4341
4342# Find a good install program. We prefer a C program (faster),
4343# so one script is as good as another. But avoid the broken or
4344# incompatible versions:
4345# SysV /etc/install, /usr/sbin/install
4346# SunOS /usr/etc/install
4347# IRIX /sbin/install
4348# AIX /bin/install
4349# AmigaOS /C/install, which installs bootblocks on floppy discs
4350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4353# OS/2's system install, which has a completely different semantic
4354# ./install, which can be erroneously created by make from ./install.sh.
4355# Reject install programs that cannot install multiple files.
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4357$as_echo_n "checking for a BSD-compatible install... " >&6; }
4358if test -z "$INSTALL"; then
4359if ${ac_cv_path_install+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 # Account for people who put trailing slashes in PATH elements.
4368case $as_dir/ in #((
4369 ./ | .// | /[cC]/* | \
4370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4371 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4372 /usr/ucb/* ) ;;
4373 *)
4374 # OSF1 and SCO ODT 3.0 have their own names for install.
4375 # Don't use installbsd from OSF since it installs stuff as root
4376 # by default.
4377 for ac_prog in ginstall scoinst install; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4380 if test $ac_prog = install &&
4381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4382 # AIX install. It has an incompatible calling convention.
4383 :
4384 elif test $ac_prog = install &&
4385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386 # program-specific install script used by HP pwplus--don't use.
4387 :
4388 else
4389 rm -rf conftest.one conftest.two conftest.dir
4390 echo one > conftest.one
4391 echo two > conftest.two
4392 mkdir conftest.dir
4393 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4394 test -s conftest.one && test -s conftest.two &&
4395 test -s conftest.dir/conftest.one &&
4396 test -s conftest.dir/conftest.two
4397 then
4398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4399 break 3
4400 fi
4401 fi
4402 fi
4403 done
4404 done
4405 ;;
4406esac
4407
4408 done
4409IFS=$as_save_IFS
4410
4411rm -rf conftest.one conftest.two conftest.dir
4412
4413fi
4414 if test "${ac_cv_path_install+set}" = set; then
4415 INSTALL=$ac_cv_path_install
4416 else
4417 # As a last resort, use the slow shell script. Don't cache a
4418 # value for INSTALL within a source directory, because that will
4419 # break other packages using the cache if that directory is
4420 # removed, or if the value is a relative name.
4421 INSTALL=$ac_install_sh
4422 fi
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4425$as_echo "$INSTALL" >&6; }
4426
4427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4428# It thinks the first close brace ends the variable substitution.
4429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4430
4431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4432
4433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4434
4435# Expand $ac_aux_dir to an absolute path.
4436am_aux_dir=`cd "$ac_aux_dir" && pwd`
4437
4438ac_ext=c
4439ac_cpp='$CPP $CPPFLAGS'
4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4445set dummy ${ac_tool_prefix}gcc; ac_word=$2
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447$as_echo_n "checking for $ac_word... " >&6; }
4448if ${ac_cv_prog_CC+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465done
4466 done
4467IFS=$as_save_IFS
4468
4469fi
4470fi
4471CC=$ac_cv_prog_CC
4472if test -n "$CC"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4474$as_echo "$CC" >&6; }
4475else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
4479
4480
4481fi
4482if test -z "$ac_cv_prog_CC"; then
4483 ac_ct_CC=$CC
4484 # Extract the first word of "gcc", so it can be a program name with args.
4485set dummy gcc; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_prog_ac_ct_CC+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -n "$ac_ct_CC"; then
4492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_CC="gcc"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506 done
4507IFS=$as_save_IFS
4508
4509fi
4510fi
4511ac_ct_CC=$ac_cv_prog_ac_ct_CC
4512if test -n "$ac_ct_CC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4514$as_echo "$ac_ct_CC" >&6; }
4515else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518fi
4519
4520 if test "x$ac_ct_CC" = x; then
4521 CC=""
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524yes:)
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527ac_tool_warned=yes ;;
4528esac
4529 CC=$ac_ct_CC
4530 fi
4531else
4532 CC="$ac_cv_prog_CC"
4533fi
4534
4535if test -z "$CC"; then
4536 if test -n "$ac_tool_prefix"; then
4537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4538set dummy ${ac_tool_prefix}cc; ac_word=$2
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540$as_echo_n "checking for $ac_word... " >&6; }
4541if ${ac_cv_prog_CC+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543else
4544 if test -n "$CC"; then
4545 ac_cv_prog_CC="$CC" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_prog_CC="${ac_tool_prefix}cc"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4557 fi
4558done
4559 done
4560IFS=$as_save_IFS
4561
4562fi
4563fi
4564CC=$ac_cv_prog_CC
4565if test -n "$CC"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4567$as_echo "$CC" >&6; }
4568else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571fi
4572
4573
4574 fi
4575fi
4576if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578set dummy cc; ac_word=$2
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580$as_echo_n "checking for $ac_word... " >&6; }
4581if ${ac_cv_prog_CC+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586else
4587 ac_prog_rejected=no
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_CC="cc"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604 done
4605IFS=$as_save_IFS
4606
4607if test $ac_prog_rejected = yes; then
4608 # We found a bogon in the path, so make sure we never use it.
4609 set dummy $ac_cv_prog_CC
4610 shift
4611 if test $# != 0; then
4612 # We chose a different compiler from the bogus one.
4613 # However, it has the same basename, so the bogon will be chosen
4614 # first if we set CC to just the basename; use the full file name.
4615 shift
4616 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4617 fi
4618fi
4619fi
4620fi
4621CC=$ac_cv_prog_CC
4622if test -n "$CC"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4624$as_echo "$CC" >&6; }
4625else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
4628fi
4629
4630
4631fi
4632if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 for ac_prog in cl.exe
4635 do
4636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
4640if ${ac_cv_prog_CC+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666$as_echo "$CC" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673 test -n "$CC" && break
4674 done
4675fi
4676if test -z "$CC"; then
4677 ac_ct_CC=$CC
4678 for ac_prog in cl.exe
4679do
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681set dummy $ac_prog; ac_word=$2
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
4684if ${ac_cv_prog_ac_ct_CC+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686else
4687 if test -n "$ac_ct_CC"; then
4688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_ac_ct_CC="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702 done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707ac_ct_CC=$ac_cv_prog_ac_ct_CC
4708if test -n "$ac_ct_CC"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4710$as_echo "$ac_ct_CC" >&6; }
4711else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716
4717 test -n "$ac_ct_CC" && break
4718done
4719
4720 if test "x$ac_ct_CC" = x; then
4721 CC=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724yes:)
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727ac_tool_warned=yes ;;
4728esac
4729 CC=$ac_ct_CC
4730 fi
4731fi
4732
4733fi
4734
4735
4736test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738as_fn_error $? "no acceptable C compiler found in \$PATH
4739See \`config.log' for more details" "$LINENO" 5; }
4740
4741# Provide some information about the compiler.
4742$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4743set X $ac_compile
4744ac_compiler=$2
4745for ac_option in --version -v -V -qversion; do
4746 { { ac_try="$ac_compiler $ac_option >&5"
4747case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750esac
4751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752$as_echo "$ac_try_echo"; } >&5
4753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4754 ac_status=$?
4755 if test -s conftest.err; then
4756 sed '10a\
4757... rest of stderr output deleted ...
4758 10q' conftest.err >conftest.er1
4759 cat conftest.er1 >&5
4760 fi
4761 rm -f conftest.er1 conftest.err
4762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }
4764done
4765
4766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768
4769int main (void)
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776ac_clean_files_save=$ac_clean_files
4777ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4778# Try to create an executable without -o first, disregard a.out.
4779# It will help us diagnose broken compilers, and finding out an intuition
4780# of exeext.
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4782$as_echo_n "checking whether the C compiler works... " >&6; }
4783ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4784
4785# The possible output files:
4786ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4787
4788ac_rmfiles=
4789for ac_file in $ac_files
4790do
4791 case $ac_file in
4792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4794 esac
4795done
4796rm -f $ac_rmfiles
4797
4798if { { ac_try="$ac_link_default"
4799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
4803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
4805 (eval "$ac_link_default") 2>&5
4806 ac_status=$?
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
4809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4811# in a Makefile. We should not override ac_cv_exeext if it was cached,
4812# so that the user can short-circuit this test for compilers unknown to
4813# Autoconf.
4814for ac_file in $ac_files ''
4815do
4816 test -f "$ac_file" || continue
4817 case $ac_file in
4818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4819 ;;
4820 [ab].out )
4821 # We found the default executable, but exeext='' is most
4822 # certainly right.
4823 break;;
4824 *.* )
4825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4826 then :; else
4827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4828 fi
4829 # We set ac_cv_exeext here because the later test for it is not
4830 # safe: cross compilers may not add the suffix if given an `-o'
4831 # argument, so we may need to know it at that point already.
4832 # Even if this section looks crufty: it has the advantage of
4833 # actually working.
4834 break;;
4835 * )
4836 break;;
4837 esac
4838done
4839test "$ac_cv_exeext" = no && ac_cv_exeext=
4840
4841else
4842 ac_file=''
4843fi
4844if test -z "$ac_file"; then :
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
4847$as_echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852as_fn_error 77 "C compiler cannot create executables
4853See \`config.log' for more details" "$LINENO" 5; }
4854else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856$as_echo "yes" >&6; }
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4859$as_echo_n "checking for C compiler default output file name... " >&6; }
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4861$as_echo "$ac_file" >&6; }
4862ac_exeext=$ac_cv_exeext
4863
4864rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4865ac_clean_files=$ac_clean_files_save
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4867$as_echo_n "checking for suffix of executables... " >&6; }
4868if { { ac_try="$ac_link"
4869case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872esac
4873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874$as_echo "$ac_try_echo"; } >&5
4875 (eval "$ac_link") 2>&5
4876 ac_status=$?
4877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }; then :
4879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4880# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4881# work properly (i.e., refer to `conftest.exe'), while it won't with
4882# `rm'.
4883for ac_file in conftest.exe conftest conftest.*; do
4884 test -f "$ac_file" || continue
4885 case $ac_file in
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4888 break;;
4889 * ) break;;
4890 esac
4891done
4892else
4893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4895as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4896See \`config.log' for more details" "$LINENO" 5; }
4897fi
4898rm -f conftest conftest$ac_cv_exeext
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4900$as_echo "$ac_cv_exeext" >&6; }
4901
4902rm -f conftest.$ac_ext
4903EXEEXT=$ac_cv_exeext
4904ac_exeext=$EXEEXT
4905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907#include <stdio.h>
4908int main (void)
4909{
4910FILE *f = fopen ("conftest.out", "w");
4911 return ferror (f) || fclose (f) != 0;
4912
4913 ;
4914 return 0;
4915}
4916_ACEOF
4917ac_clean_files="$ac_clean_files conftest.out"
4918# Check that the compiler produces executables we can run. If not, either
4919# the compiler is broken, or we cross compile.
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4921$as_echo_n "checking whether we are cross compiling... " >&6; }
4922if test "$cross_compiling" != yes; then
4923 { { ac_try="$ac_link"
4924case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927esac
4928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929$as_echo "$ac_try_echo"; } >&5
4930 (eval "$ac_link") 2>&5
4931 ac_status=$?
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934 if { ac_try='./conftest$ac_cv_exeext'
4935 { { case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940$as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_try") 2>&5
4942 ac_status=$?
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }; }; then
4945 cross_compiling=no
4946 else
4947 if test "$cross_compiling" = maybe; then
4948 cross_compiling=yes
4949 else
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952as_fn_error $? "cannot run C compiled programs.
4953If you meant to cross compile, use \`--host'.
4954See \`config.log' for more details" "$LINENO" 5; }
4955 fi
4956 fi
4957fi
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4959$as_echo "$cross_compiling" >&6; }
4960
4961rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4962ac_clean_files=$ac_clean_files_save
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4964$as_echo_n "checking for suffix of object files... " >&6; }
4965if ${ac_cv_objext+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967else
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h. */
4970
4971int main (void)
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978rm -f conftest.o conftest.obj
4979if { { ac_try="$ac_compile"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
4984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985$as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_compile") 2>&5
4987 ac_status=$?
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then :
4990 for ac_file in conftest.o conftest.obj conftest.*; do
4991 test -f "$ac_file" || continue;
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4995 break;;
4996 esac
4997done
4998else
4999 $as_echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5004as_fn_error $? "cannot compute suffix of object files: cannot compile
5005See \`config.log' for more details" "$LINENO" 5; }
5006fi
5007rm -f conftest.$ac_cv_objext conftest.$ac_ext
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5010$as_echo "$ac_cv_objext" >&6; }
5011OBJEXT=$ac_cv_objext
5012ac_objext=$OBJEXT
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5014$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5015if ${ac_cv_c_compiler_gnu+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h. */
5020
5021int main (void)
5022{
5023#ifndef __GNUC__
5024 choke me
5025#endif
5026
5027 ;
5028 return 0;
5029}
5030_ACEOF
5031if ac_fn_c_try_compile "$LINENO"; then :
5032 ac_compiler_gnu=yes
5033else
5034 ac_compiler_gnu=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037ac_cv_c_compiler_gnu=$ac_compiler_gnu
5038
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5041$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5042if test $ac_compiler_gnu = yes; then
5043 GCC=yes
5044else
5045 GCC=
5046fi
5047ac_test_CFLAGS=${CFLAGS+set}
5048ac_save_CFLAGS=$CFLAGS
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5050$as_echo_n "checking whether $CC accepts -g... " >&6; }
5051if ${ac_cv_prog_cc_g+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 ac_save_c_werror_flag=$ac_c_werror_flag
5055 ac_c_werror_flag=yes
5056 ac_cv_prog_cc_g=no
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h. */
5060
5061int main (void)
5062{
5063
5064 ;
5065 return 0;
5066}
5067_ACEOF
5068if ac_fn_c_try_compile "$LINENO"; then :
5069 ac_cv_prog_cc_g=yes
5070else
5071 CFLAGS=""
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073/* end confdefs.h. */
5074
5075int main (void)
5076{
5077
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"; then :
5083
5084else
5085 ac_c_werror_flag=$ac_save_c_werror_flag
5086 CFLAGS="-g"
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
5089
5090int main (void)
5091{
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
5097if ac_fn_c_try_compile "$LINENO"; then :
5098 ac_cv_prog_cc_g=yes
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_c_werror_flag=$ac_save_c_werror_flag
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5108$as_echo "$ac_cv_prog_cc_g" >&6; }
5109if test "$ac_test_CFLAGS" = set; then
5110 CFLAGS=$ac_save_CFLAGS
5111elif test $ac_cv_prog_cc_g = yes; then
5112 if test "$GCC" = yes; then
5113 CFLAGS="-g -O2"
5114 else
5115 CFLAGS="-g"
5116 fi
5117else
5118 if test "$GCC" = yes; then
5119 CFLAGS="-O2"
5120 else
5121 CFLAGS=
5122 fi
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5125$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5126if ${ac_cv_prog_cc_c89+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128else
5129 ac_cv_prog_cc_c89=no
5130ac_save_CC=$CC
5131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h. */
5133#include <stdarg.h>
5134#include <stdio.h>
5135struct stat;
5136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5137struct buf { int x; };
5138FILE * (*rcsopen) (struct buf *, struct stat *, int);
5139static char *e (p, i)
5140 char **p;
5141 int i;
5142{
5143 return p[i];
5144}
5145static char *f (char * (*g) (char **, int), char **p, ...)
5146{
5147 char *s;
5148 va_list v;
5149 va_start (v,p);
5150 s = g (p, va_arg (v,int));
5151 va_end (v);
5152 return s;
5153}
5154
5155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5156 function prototypes and stuff, but not '\xHH' hex character constants.
5157 These don't provoke an error unfortunately, instead are silently treated
5158 as 'x'. The following induces an error, until -std is added to get
5159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5160 array size at least. It's necessary to write '\x00'==0 to get something
5161 that's true only with -std. */
5162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5163
5164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5165 inside strings and character constants. */
5166#define FOO(x) 'x'
5167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5168
5169int test (int i, double x);
5170struct s1 {int (*f) (int a);};
5171struct s2 {int (*f) (double a);};
5172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5173int argc;
5174char **argv;
5175int main (void)
5176{
5177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5184do
5185 CC="$ac_save_CC $ac_arg"
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 ac_cv_prog_cc_c89=$ac_arg
5188fi
5189rm -f core conftest.err conftest.$ac_objext
5190 test "x$ac_cv_prog_cc_c89" != "xno" && break
5191done
5192rm -f conftest.$ac_ext
5193CC=$ac_save_CC
5194
5195fi
5196# AC_CACHE_VAL
5197case "x$ac_cv_prog_cc_c89" in
5198 x)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5200$as_echo "none needed" >&6; } ;;
5201 xno)
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5203$as_echo "unsupported" >&6; } ;;
5204 *)
5205 CC="$CC $ac_cv_prog_cc_c89"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5208esac
5209if test "x$ac_cv_prog_cc_c89" != xno; then :
5210
5211fi
5212
5213ac_ext=c
5214ac_cpp='$CPP $CPPFLAGS'
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
5219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5225$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5226if ${am_cv_prog_cc_c_o+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228else
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h. */
5231
5232int main (void)
5233{
5234
5235 ;
5236 return 0;
5237}
5238_ACEOF
5239 # Make sure it works both with $CC and with simple cc.
5240 # Following AC_PROG_CC_C_O, we do the test twice because some
5241 # compilers refuse to overwrite an existing .o file with -o,
5242 # though they will create one.
5243 am_cv_prog_cc_c_o=yes
5244 for am_i in 1 2; do
5245 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5246 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } \
5250 && test -f conftest2.$ac_objext; then
5251 : OK
5252 else
5253 am_cv_prog_cc_c_o=no
5254 break
5255 fi
5256 done
5257 rm -f core conftest*
5258 unset am_i
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5261$as_echo "$am_cv_prog_cc_c_o" >&6; }
5262if test "$am_cv_prog_cc_c_o" != yes; then
5263 # Losing compiler, so override with the script.
5264 # FIXME: It is wrong to rewrite CC.
5265 # But if we don't then we get into trouble of one sort or another.
5266 # A longer-term fix would be to have automake use am__CC in this case,
5267 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5268 CC="$am_aux_dir/compile $CC"
5269fi
5270ac_ext=c
5271ac_cpp='$CPP $CPPFLAGS'
5272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275
5276
5277
5278ac_ext=c
5279ac_cpp='$CPP $CPPFLAGS'
5280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5284$as_echo_n "checking how to run the C preprocessor... " >&6; }
5285# On Suns, sometimes $CPP names a directory.
5286if test -n "$CPP" && test -d "$CPP"; then
5287 CPP=
5288fi
5289if test -z "$CPP"; then
5290 if ${ac_cv_prog_CPP+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 # Double quotes because CPP needs to be expanded
5294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5295 do
5296 ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
5320rm -f conftest.err conftest.i conftest.$ac_ext
5321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336rm -f conftest.err conftest.i conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.i conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then :
5342 break
5343fi
5344
5345 done
5346 ac_cv_prog_CPP=$CPP
5347
5348fi
5349 CPP=$ac_cv_prog_CPP
5350else
5351 ac_cv_prog_CPP=$CPP
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5354$as_echo "$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366#ifdef __STDC__
5367# include <limits.h>
5368#else
5369# include <assert.h>
5370#endif
5371 Syntax error
5372_ACEOF
5373if ac_fn_c_try_cpp "$LINENO"; then :
5374
5375else
5376 # Broken: fails on valid input.
5377continue
5378fi
5379rm -f conftest.err conftest.i conftest.$ac_ext
5380
5381 # OK, works on sane cases. Now check whether nonexistent headers
5382 # can be detected and how.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if ac_fn_c_try_cpp "$LINENO"; then :
5388 # Broken: success on invalid input.
5389continue
5390else
5391 # Passes both tests.
5392ac_preproc_ok=:
5393break
5394fi
5395rm -f conftest.err conftest.i conftest.$ac_ext
5396
5397done
5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5399rm -f conftest.i conftest.err conftest.$ac_ext
5400if $ac_preproc_ok; then :
5401
5402else
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5405as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5406See \`config.log' for more details" "$LINENO" 5; }
5407fi
5408
5409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416 IFS=$xc_prog_cc_prev_IFS
5417 LIBS=$xc_prog_cc_prev_LIBS
5418 CFLAGS=$xc_prog_cc_prev_CFLAGS
5419 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5420 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5421
5422
5423
5424
5425
5426am__api_version='1.15'
5427
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5429$as_echo_n "checking whether build environment is sane... " >&6; }
5430# Reject unsafe characters in $srcdir or the absolute working directory
5431# name. Accept space and tab only in the latter.
5432am_lf='
5433'
5434case `pwd` in
5435 *[\\\"\#\$\&\'\`$am_lf]*)
5436 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5437esac
5438case $srcdir in
5439 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5440 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5441esac
5442
5443# Do 'set' in a subshell so we don't clobber the current shell's
5444# arguments. Must try -L first in case configure is actually a
5445# symlink; some systems play weird games with the mod time of symlinks
5446# (eg FreeBSD returns the mod time of the symlink's containing
5447# directory).
5448if (
5449 am_has_slept=no
5450 for am_try in 1 2; do
5451 echo "timestamp, slept: $am_has_slept" > conftest.file
5452 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5453 if test "$*" = "X"; then
5454 # -L didn't work.
5455 set X `ls -t "$srcdir/configure" conftest.file`
5456 fi
5457 if test "$*" != "X $srcdir/configure conftest.file" \
5458 && test "$*" != "X conftest.file $srcdir/configure"; then
5459
5460 # If neither matched, then we have a broken ls. This can happen
5461 # if, for instance, CONFIG_SHELL is bash and it inherits a
5462 # broken ls alias from the environment. This has actually
5463 # happened. Such a system could not be considered "sane".
5464 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5465 alias in your environment" "$LINENO" 5
5466 fi
5467 if test "$2" = conftest.file || test $am_try -eq 2; then
5468 break
5469 fi
5470 # Just in case.
5471 sleep 1
5472 am_has_slept=yes
5473 done
5474 test "$2" = conftest.file
5475 )
5476then
5477 # Ok.
5478 :
5479else
5480 as_fn_error $? "newly created file is older than distributed files!
5481Check your system clock" "$LINENO" 5
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5484$as_echo "yes" >&6; }
5485# If we didn't sleep, we still need to ensure time stamps of config.status and
5486# generated files are strictly newer.
5487am_sleep_pid=
5488if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5489 ( sleep 1 ) &
5490 am_sleep_pid=$!
5491fi
5492
5493rm -f conftest.file
5494
5495test "$program_prefix" != NONE &&
5496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5497# Use a double $ so make ignores it.
5498test "$program_suffix" != NONE &&
5499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5500# Double any \ or $.
5501# By default was `s,x,x', remove it if useless.
5502ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5503program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5504
5505if test x"${MISSING+set}" != xset; then
5506 case $am_aux_dir in
5507 *\ * | *\ *)
5508 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5509 *)
5510 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5511 esac
5512fi
5513# Use eval to expand $SHELL
5514if eval "$MISSING --is-lightweight"; then
5515 am_missing_run="$MISSING "
5516else
5517 am_missing_run=
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5519$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5520fi
5521
5522if test x"${install_sh+set}" != xset; then
5523 case $am_aux_dir in
5524 *\ * | *\ *)
5525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5526 *)
5527 install_sh="\${SHELL} $am_aux_dir/install-sh"
5528 esac
5529fi
5530
5531# Installed binaries are usually stripped using 'strip' when the user
5532# run "make install-strip". However 'strip' might not be the right
5533# tool to use in cross-compilation environments, therefore Automake
5534# will honor the 'STRIP' environment variable to overrule this program.
5535if test "$cross_compiling" != no; then
5536 if test -n "$ac_tool_prefix"; then
5537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5538set dummy ${ac_tool_prefix}strip; ac_word=$2
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if ${ac_cv_prog_STRIP+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 if test -n "$STRIP"; then
5545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559 done
5560IFS=$as_save_IFS
5561
5562fi
5563fi
5564STRIP=$ac_cv_prog_STRIP
5565if test -n "$STRIP"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5567$as_echo "$STRIP" >&6; }
5568else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573
5574fi
5575if test -z "$ac_cv_prog_STRIP"; then
5576 ac_ct_STRIP=$STRIP
5577 # Extract the first word of "strip", so it can be a program name with args.
5578set dummy strip; ac_word=$2
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580$as_echo_n "checking for $ac_word... " >&6; }
5581if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583else
5584 if test -n "$ac_ct_STRIP"; then
5585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_ac_ct_STRIP="strip"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598done
5599 done
5600IFS=$as_save_IFS
5601
5602fi
5603fi
5604ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5605if test -n "$ac_ct_STRIP"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5607$as_echo "$ac_ct_STRIP" >&6; }
5608else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610$as_echo "no" >&6; }
5611fi
5612
5613 if test "x$ac_ct_STRIP" = x; then
5614 STRIP=":"
5615 else
5616 case $cross_compiling:$ac_tool_warned in
5617yes:)
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620ac_tool_warned=yes ;;
5621esac
5622 STRIP=$ac_ct_STRIP
5623 fi
5624else
5625 STRIP="$ac_cv_prog_STRIP"
5626fi
5627
5628fi
5629INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5630
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5632$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5633if test -z "$MKDIR_P"; then
5634 if ${ac_cv_path_mkdir+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5639do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_prog in mkdir gmkdir; do
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5646 'mkdir (GNU coreutils) '* | \
5647 'mkdir (coreutils) '* | \
5648 'mkdir (fileutils) '4.1*)
5649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5650 break 3;;
5651 esac
5652 done
5653 done
5654 done
5655IFS=$as_save_IFS
5656
5657fi
5658
5659 test -d ./--version && rmdir ./--version
5660 if test "${ac_cv_path_mkdir+set}" = set; then
5661 MKDIR_P="$ac_cv_path_mkdir -p"
5662 else
5663 # As a last resort, use the slow shell script. Don't cache a
5664 # value for MKDIR_P within a source directory, because that will
5665 # break other packages using the cache if that directory is
5666 # removed, or if the value is a relative name.
5667 MKDIR_P="$ac_install_sh -d"
5668 fi
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5671$as_echo "$MKDIR_P" >&6; }
5672
5673for ac_prog in gawk mawk nawk awk
5674do
5675 # Extract the first word of "$ac_prog", so it can be a program name with args.
5676set dummy $ac_prog; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_AWK+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681else
5682 if test -n "$AWK"; then
5683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_AWK="$ac_prog"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696done
5697 done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702AWK=$ac_cv_prog_AWK
5703if test -n "$AWK"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5705$as_echo "$AWK" >&6; }
5706else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712 test -n "$AWK" && break
5713done
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5716$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5717set x ${MAKE-make}
5718ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5719if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721else
5722 cat >conftest.make <<\_ACEOF
5723SHELL = /bin/sh
5724all:
5725 @echo '@@@%%%=$(MAKE)=@@@%%%'
5726_ACEOF
5727# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5728case `${MAKE-make} -f conftest.make 2>/dev/null` in
5729 *@@@%%%=?*=@@@%%%*)
5730 eval ac_cv_prog_make_${ac_make}_set=yes;;
5731 *)
5732 eval ac_cv_prog_make_${ac_make}_set=no;;
5733esac
5734rm -f conftest.make
5735fi
5736if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738$as_echo "yes" >&6; }
5739 SET_MAKE=
5740else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743 SET_MAKE="MAKE=${MAKE-make}"
5744fi
5745
5746rm -rf .tst 2>/dev/null
5747mkdir .tst 2>/dev/null
5748if test -d .tst; then
5749 am__leading_dot=.
5750else
5751 am__leading_dot=_
5752fi
5753rmdir .tst 2>/dev/null
5754
5755DEPDIR="${am__leading_dot}deps"
5756
5757ac_config_commands="$ac_config_commands depfiles"
5758
5759
5760am_make=${MAKE-make}
5761cat > confinc << 'END'
5762am__doit:
5763 @echo this is the am__doit target
5764.PHONY: am__doit
5765END
5766# If we don't find an include directive, just comment out the code.
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5768$as_echo_n "checking for style of include used by $am_make... " >&6; }
5769am__include="#"
5770am__quote=
5771_am_result=none
5772# First try GNU make style include.
5773echo "include confinc" > confmf
5774# Ignore all kinds of additional output from 'make'.
5775case `$am_make -s -f confmf 2> /dev/null` in #(
5776*the\ am__doit\ target*)
5777 am__include=include
5778 am__quote=
5779 _am_result=GNU
5780 ;;
5781esac
5782# Now try BSD make style include.
5783if test "$am__include" = "#"; then
5784 echo '.include "confinc"' > confmf
5785 case `$am_make -s -f confmf 2> /dev/null` in #(
5786 *the\ am__doit\ target*)
5787 am__include=.include
5788 am__quote="\""
5789 _am_result=BSD
5790 ;;
5791 esac
5792fi
5793
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5796$as_echo "$_am_result" >&6; }
5797rm -f confinc confmf
5798
5799# Check whether --enable-dependency-tracking was given.
5800if test "${enable_dependency_tracking+set}" = set; then :
5801 enableval=$enable_dependency_tracking;
5802fi
5803
5804if test "x$enable_dependency_tracking" != xno; then
5805 am_depcomp="$ac_aux_dir/depcomp"
5806 AMDEPBACKSLASH='\'
5807 am__nodep='_no'
5808fi
5809 if test "x$enable_dependency_tracking" != xno; then
5810 AMDEP_TRUE=
5811 AMDEP_FALSE='#'
5812else
5813 AMDEP_TRUE='#'
5814 AMDEP_FALSE=
5815fi
5816
5817
5818## --------------------------------------- ##
5819## Start of automake initialization code ##
5820## --------------------------------------- ##
5821
5822if test "`cd $srcdir && pwd`" != "`pwd`"; then
5823 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5824 # is not polluted with repeated "-I."
5825 am__isrc=' -I$(srcdir)'
5826 # test to see if srcdir already configured
5827 if test -f $srcdir/config.status; then
5828 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5829 fi
5830fi
5831
5832# test whether we have cygpath
5833if test -z "$CYGPATH_W"; then
5834 if (cygpath --version) >/dev/null 2>/dev/null; then
5835 CYGPATH_W='cygpath -w'
5836 else
5837 CYGPATH_W=echo
5838 fi
5839fi
5840
5841
5842# Define the identity of the package.
5843 PACKAGE='curl'
5844 VERSION='-'
5845
5846
5847cat >>confdefs.h <<_ACEOF
5848#define PACKAGE "$PACKAGE"
5849_ACEOF
5850
5851
5852cat >>confdefs.h <<_ACEOF
5853#define VERSION "$VERSION"
5854_ACEOF
5855
5856# Some tools Automake needs.
5857
5858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5859
5860
5861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5862
5863
5864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5865
5866
5867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5868
5869
5870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5871
5872# For better backward compatibility. To be removed once Automake 1.9.x
5873# dies out for good. For more background, see:
5874# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5875# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5876mkdir_p='$(MKDIR_P)'
5877
5878# We need awk for the "check" target (and possibly the TAP driver). The
5879# system "awk" is bad on some platforms.
5880# Always define AMTAR for backward compatibility. Yes, it's still used
5881# in the wild :-( We should find a proper way to deprecate it ...
5882AMTAR='$${TAR-tar}'
5883
5884
5885# We'll loop over all known methods to create a tar archive until one works.
5886_am_tools='gnutar pax cpio none'
5887
5888am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5889
5890
5891
5892
5893
5894depcc="$CC" am_compiler_list=
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5897$as_echo_n "checking dependency style of $depcc... " >&6; }
5898if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900else
5901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5902 # We make a subdir and do the tests there. Otherwise we can end up
5903 # making bogus files that we don't know about and never remove. For
5904 # instance it was reported that on HP-UX the gcc test will end up
5905 # making a dummy file named 'D' -- because '-MD' means "put the output
5906 # in D".
5907 rm -rf conftest.dir
5908 mkdir conftest.dir
5909 # Copy depcomp to subdir because otherwise we won't find it if we're
5910 # using a relative directory.
5911 cp "$am_depcomp" conftest.dir
5912 cd conftest.dir
5913 # We will build objects and dependencies in a subdirectory because
5914 # it helps to detect inapplicable dependency modes. For instance
5915 # both Tru64's cc and ICC support -MD to output dependencies as a
5916 # side effect of compilation, but ICC will put the dependencies in
5917 # the current directory while Tru64 will put them in the object
5918 # directory.
5919 mkdir sub
5920
5921 am_cv_CC_dependencies_compiler_type=none
5922 if test "$am_compiler_list" = ""; then
5923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5924 fi
5925 am__universal=false
5926 case " $depcc " in #(
5927 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5928 esac
5929
5930 for depmode in $am_compiler_list; do
5931 # Setup a source with many dependencies, because some compilers
5932 # like to wrap large dependency lists on column 80 (with \), and
5933 # we should not choose a depcomp mode which is confused by this.
5934 #
5935 # We need to recreate these files for each test, as the compiler may
5936 # overwrite some of them when testing with obscure command lines.
5937 # This happens at least with the AIX C compiler.
5938 : > sub/conftest.c
5939 for i in 1 2 3 4 5 6; do
5940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5941 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5942 # Solaris 10 /bin/sh.
5943 echo '/* dummy */' > sub/conftst$i.h
5944 done
5945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5946
5947 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5948 # mode. It turns out that the SunPro C++ compiler does not properly
5949 # handle '-M -o', and we need to detect this. Also, some Intel
5950 # versions had trouble with output in subdirs.
5951 am__obj=sub/conftest.${OBJEXT-o}
5952 am__minus_obj="-o $am__obj"
5953 case $depmode in
5954 gcc)
5955 # This depmode causes a compiler race in universal mode.
5956 test "$am__universal" = false || continue
5957 ;;
5958 nosideeffect)
5959 # After this tag, mechanisms are not by side-effect, so they'll
5960 # only be used when explicitly requested.
5961 if test "x$enable_dependency_tracking" = xyes; then
5962 continue
5963 else
5964 break
5965 fi
5966 ;;
5967 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5968 # This compiler won't grok '-c -o', but also, the minuso test has
5969 # not run yet. These depmodes are late enough in the game, and
5970 # so weak that their functioning should not be impacted.
5971 am__obj=conftest.${OBJEXT-o}
5972 am__minus_obj=
5973 ;;
5974 none) break ;;
5975 esac
5976 if depmode=$depmode \
5977 source=sub/conftest.c object=$am__obj \
5978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5980 >/dev/null 2>conftest.err &&
5981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5985 # icc doesn't choke on unknown options, it will just issue warnings
5986 # or remarks (even with -Werror). So we grep stderr for any message
5987 # that says an option was ignored or not supported.
5988 # When given -MP, icc 7.0 and 7.1 complain thusly:
5989 # icc: Command line warning: ignoring option '-M'; no argument required
5990 # The diagnosis changed in icc 8.0:
5991 # icc: Command line remark: option '-MP' not supported
5992 if (grep 'ignoring option' conftest.err ||
5993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5994 am_cv_CC_dependencies_compiler_type=$depmode
5995 break
5996 fi
5997 fi
5998 done
5999
6000 cd ..
6001 rm -rf conftest.dir
6002else
6003 am_cv_CC_dependencies_compiler_type=none
6004fi
6005
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6008$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6009CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6010
6011 if
6012 test "x$enable_dependency_tracking" != xno \
6013 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6014 am__fastdepCC_TRUE=
6015 am__fastdepCC_FALSE='#'
6016else
6017 am__fastdepCC_TRUE='#'
6018 am__fastdepCC_FALSE=
6019fi
6020
6021
6022
6023# POSIX will say in a future version that running "rm -f" with no argument
6024# is OK; and we want to be able to make that assumption in our Makefile
6025# recipes. So use an aggressive probe to check that the usage we want is
6026# actually supported "in the wild" to an acceptable degree.
6027# See automake bug#10828.
6028# To make any issue more visible, cause the running configure to be aborted
6029# by default if the 'rm' program in use doesn't match our expectations; the
6030# user can still override this though.
6031if rm -f && rm -fr && rm -rf; then : OK; else
6032 cat >&2 <<'END'
6033Oops!
6034
6035Your 'rm' program seems unable to run without file operands specified
6036on the command line, even when the '-f' option is present. This is contrary
6037to the behaviour of most rm programs out there, and not conforming with
6038the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6039
6040Please tell bug-automake@gnu.org about your system, including the value
6041of your $PATH and any error possibly output before this message. This
6042can help us improve future automake versions.
6043
6044END
6045 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6046 echo 'Configuration will proceed anyway, since you have set the' >&2
6047 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6048 echo >&2
6049 else
6050 cat >&2 <<'END'
6051Aborting the configuration process, to ensure you take notice of the issue.
6052
6053You can download and install GNU coreutils to get an 'rm' implementation
6054that behaves properly: <http://www.gnu.org/software/coreutils/>.
6055
6056If you want to complete the configuration process using your problematic
6057'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6058to "yes", and re-run configure.
6059
6060END
6061 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6062 fi
6063fi
6064
6065## ------------------------------------- ##
6066## End of automake initialization code ##
6067## ------------------------------------- ##
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6071$as_echo_n "checking curl version... " >&6; }
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6073$as_echo "$CURLVERSION" >&6; }
6074
6075
6076
6077VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6078
6079
6080PKGADD_PKG="HAXXcurl"
6081PKGADD_NAME="curl - a client that groks URLs"
6082PKGADD_VENDOR="curl.haxx.se"
6083
6084
6085
6086
6087 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6088 curl_ssh_msg="no (--with-libssh2)"
6089 curl_zlib_msg="no (--with-zlib)"
6090 curl_gss_msg="no (--with-gssapi)"
6091curl_tls_srp_msg="no (--enable-tls-srp)"
6092 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6093 curl_ipv6_msg="no (--enable-ipv6)"
6094curl_unix_sockets_msg="no (--enable-unix-sockets)"
6095 curl_idn_msg="no (--with-{libidn2,winidn})"
6096 curl_manual_msg="no (--enable-manual)"
6097curl_libcurl_msg="enabled (--disable-libcurl-option)"
6098curl_verbose_msg="enabled (--disable-verbose)"
6099 curl_sspi_msg="no (--enable-sspi)"
6100 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6101 curl_ldaps_msg="no (--enable-ldaps)"
6102 curl_rtsp_msg="no (--enable-rtsp)"
6103 curl_rtmp_msg="no (--with-librtmp)"
6104 curl_mtlnk_msg="no (--with-libmetalink)"
6105 curl_psl_msg="no (--with-libpsl)"
6106
6107 init_ssl_msg=${curl_ssl_msg}
6108
6109INITIAL_LDFLAGS=$LDFLAGS
6110INITIAL_LIBS=$LIBS
6111
6112
6113# Make sure we can run config.sub.
6114$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6115 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6118$as_echo_n "checking build system type... " >&6; }
6119if ${ac_cv_build+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121else
6122 ac_build_alias=$build_alias
6123test "x$ac_build_alias" = x &&
6124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6125test "x$ac_build_alias" = x &&
6126 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6127ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6128 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6129
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6132$as_echo "$ac_cv_build" >&6; }
6133case $ac_cv_build in
6134*-*-*) ;;
6135*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6136esac
6137build=$ac_cv_build
6138ac_save_IFS=$IFS; IFS='-'
6139set x $ac_cv_build
6140shift
6141build_cpu=$1
6142build_vendor=$2
6143shift; shift
6144# Remember, the first character of IFS is used to create $*,
6145# except with old shells:
6146build_os=$*
6147IFS=$ac_save_IFS
6148case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6149
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6152$as_echo_n "checking host system type... " >&6; }
6153if ${ac_cv_host+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155else
6156 if test "x$host_alias" = x; then
6157 ac_cv_host=$ac_cv_build
6158else
6159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6160 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6161fi
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6165$as_echo "$ac_cv_host" >&6; }
6166case $ac_cv_host in
6167*-*-*) ;;
6168*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6169esac
6170host=$ac_cv_host
6171ac_save_IFS=$IFS; IFS='-'
6172set x $ac_cv_host
6173shift
6174host_cpu=$1
6175host_vendor=$2
6176shift; shift
6177# Remember, the first character of IFS is used to create $*,
6178# except with old shells:
6179host_os=$*
6180IFS=$ac_save_IFS
6181case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6182
6183
6184
6185cat >>confdefs.h <<_ACEOF
6186#define OS "${host}"
6187_ACEOF
6188
6189
6190
6191
6192
6193curl_includes_inttypes="\
6194/* includes start */
6195#ifdef HAVE_SYS_TYPES_H
6196# include <sys/types.h>
6197#endif
6198#ifdef HAVE_STDINT_H
6199# include <stdint.h>
6200#endif
6201#ifdef HAVE_INTTYPES_H
6202# include <inttypes.h>
6203#endif
6204/* includes end */"
6205 case $host_os in
6206 irix*)
6207 ac_cv_header_stdint_h="no"
6208 ;;
6209 esac
6210 for ac_header in sys/types.h stdint.h inttypes.h
6211do :
6212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
6214"
6215if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6216 cat >>confdefs.h <<_ACEOF
6217#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6218_ACEOF
6219
6220fi
6221
6222done
6223
6224
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6227$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6228if ${ac_cv_path_GREP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 if test -z "$GREP"; then
6232 ac_path_GREP_found=false
6233 # Loop through the user's path and test for each of PROGNAME-LIST
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_prog in grep ggrep; do
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6242 as_fn_executable_p "$ac_path_GREP" || continue
6243# Check for GNU ac_path_GREP and select it if it is found.
6244 # Check for GNU $ac_path_GREP
6245case `"$ac_path_GREP" --version 2>&1` in
6246*GNU*)
6247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6248*)
6249 ac_count=0
6250 $as_echo_n 0123456789 >"conftest.in"
6251 while :
6252 do
6253 cat "conftest.in" "conftest.in" >"conftest.tmp"
6254 mv "conftest.tmp" "conftest.in"
6255 cp "conftest.in" "conftest.nl"
6256 $as_echo 'GREP' >> "conftest.nl"
6257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6259 as_fn_arith $ac_count + 1 && ac_count=$as_val
6260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6261 # Best one so far, save it but keep looking for a better one
6262 ac_cv_path_GREP="$ac_path_GREP"
6263 ac_path_GREP_max=$ac_count
6264 fi
6265 # 10*(2^10) chars as input seems more than enough
6266 test $ac_count -gt 10 && break
6267 done
6268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6269esac
6270
6271 $ac_path_GREP_found && break 3
6272 done
6273 done
6274 done
6275IFS=$as_save_IFS
6276 if test -z "$ac_cv_path_GREP"; then
6277 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6278 fi
6279else
6280 ac_cv_path_GREP=$GREP
6281fi
6282
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6285$as_echo "$ac_cv_path_GREP" >&6; }
6286 GREP="$ac_cv_path_GREP"
6287
6288
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6290$as_echo_n "checking for egrep... " >&6; }
6291if ${ac_cv_path_EGREP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293else
6294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6295 then ac_cv_path_EGREP="$GREP -E"
6296 else
6297 if test -z "$EGREP"; then
6298 ac_path_EGREP_found=false
6299 # Loop through the user's path and test for each of PROGNAME-LIST
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_prog in egrep; do
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6308 as_fn_executable_p "$ac_path_EGREP" || continue
6309# Check for GNU ac_path_EGREP and select it if it is found.
6310 # Check for GNU $ac_path_EGREP
6311case `"$ac_path_EGREP" --version 2>&1` in
6312*GNU*)
6313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6314*)
6315 ac_count=0
6316 $as_echo_n 0123456789 >"conftest.in"
6317 while :
6318 do
6319 cat "conftest.in" "conftest.in" >"conftest.tmp"
6320 mv "conftest.tmp" "conftest.in"
6321 cp "conftest.in" "conftest.nl"
6322 $as_echo 'EGREP' >> "conftest.nl"
6323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6325 as_fn_arith $ac_count + 1 && ac_count=$as_val
6326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6327 # Best one so far, save it but keep looking for a better one
6328 ac_cv_path_EGREP="$ac_path_EGREP"
6329 ac_path_EGREP_max=$ac_count
6330 fi
6331 # 10*(2^10) chars as input seems more than enough
6332 test $ac_count -gt 10 && break
6333 done
6334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6335esac
6336
6337 $ac_path_EGREP_found && break 3
6338 done
6339 done
6340 done
6341IFS=$as_save_IFS
6342 if test -z "$ac_cv_path_EGREP"; then
6343 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6344 fi
6345else
6346 ac_cv_path_EGREP=$EGREP
6347fi
6348
6349 fi
6350fi
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6352$as_echo "$ac_cv_path_EGREP" >&6; }
6353 EGREP="$ac_cv_path_EGREP"
6354
6355
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6357$as_echo_n "checking for ANSI C header files... " >&6; }
6358if ${ac_cv_header_stdc+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363#include <stdlib.h>
6364#include <stdarg.h>
6365#include <string.h>
6366#include <float.h>
6367
6368int main (void)
6369{
6370
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"; then :
6376 ac_cv_header_stdc=yes
6377else
6378 ac_cv_header_stdc=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381
6382if test $ac_cv_header_stdc = yes; then
6383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h. */
6386#include <string.h>
6387
6388_ACEOF
6389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6390 $EGREP "memchr" >/dev/null 2>&1; then :
6391
6392else
6393 ac_cv_header_stdc=no
6394fi
6395rm -f conftest*
6396
6397fi
6398
6399if test $ac_cv_header_stdc = yes; then
6400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h. */
6403#include <stdlib.h>
6404
6405_ACEOF
6406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "free" >/dev/null 2>&1; then :
6408
6409else
6410 ac_cv_header_stdc=no
6411fi
6412rm -f conftest*
6413
6414fi
6415
6416if test $ac_cv_header_stdc = yes; then
6417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418 if test "$cross_compiling" = yes; then :
6419 :
6420else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h. */
6423#include <ctype.h>
6424#include <stdlib.h>
6425#if ((' ' & 0x0FF) == 0x020)
6426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6428#else
6429# define ISLOWER(c) \
6430 (('a' <= (c) && (c) <= 'i') \
6431 || ('j' <= (c) && (c) <= 'r') \
6432 || ('s' <= (c) && (c) <= 'z'))
6433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6434#endif
6435
6436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6437int
6438main ()
6439{
6440 int i;
6441 for (i = 0; i < 256; i++)
6442 if (XOR (islower (i), ISLOWER (i))
6443 || toupper (i) != TOUPPER (i))
6444 return 2;
6445 return 0;
6446}
6447_ACEOF
6448if ac_fn_c_try_run "$LINENO"; then :
6449
6450else
6451 ac_cv_header_stdc=no
6452fi
6453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6454 conftest.$ac_objext conftest.beam conftest.$ac_ext
6455fi
6456
6457fi
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6460$as_echo "$ac_cv_header_stdc" >&6; }
6461if test $ac_cv_header_stdc = yes; then
6462
6463$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6464
6465fi
6466
6467# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6468for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6469 inttypes.h stdint.h unistd.h
6470do :
6471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6473"
6474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6475 cat >>confdefs.h <<_ACEOF
6476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477_ACEOF
6478
6479fi
6480
6481done
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6486$as_echo_n "checking if cpp -P is needed... " >&6; }
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h. */
6489
6490 #include <errno.h>
6491TEST EINVAL TEST
6492
6493_ACEOF
6494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6496 cpp=no
6497else
6498 cpp=yes
6499fi
6500rm -f conftest*
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6503$as_echo "$cpp" >&6; }
6504
6505 if test "x$cpp" = "xyes"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6507$as_echo_n "checking if cpp -P works... " >&6; }
6508 OLDCPPFLAGS=$CPPFLAGS
6509 CPPFLAGS="$CPPFLAGS -P"
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512
6513 #include <errno.h>
6514TEST EINVAL TEST
6515
6516_ACEOF
6517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6518 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6519 cpp_p=yes
6520else
6521 cpp_p=no
6522fi
6523rm -f conftest*
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6526$as_echo "$cpp_p" >&6; }
6527
6528 if test "x$cpp_p" = "xno"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6530$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6531 # without -P
6532 CPPPFLAG=""
6533 else
6534 # with -P
6535 CPPPFLAG="-P"
6536 fi
6537 CPPFLAGS=$OLDCPPFLAGS
6538 else
6539 # without -P
6540 CPPPFLAG=""
6541 fi
6542
6543
6544 #
6545 #
6546 if test -z "$SED"; then
6547 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6548 fi
6549 #
6550 # The cast to long int works around a bug in the HP C Compiler
6551# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6552# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6553# This bug is HP SR number 8606223364.
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6555$as_echo_n "checking size of long... " >&6; }
6556if ${ac_cv_sizeof_long+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6560
6561else
6562 if test "$ac_cv_type_long" = yes; then
6563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565as_fn_error 77 "cannot compute sizeof (long)
6566See \`config.log' for more details" "$LINENO" 5; }
6567 else
6568 ac_cv_sizeof_long=0
6569 fi
6570fi
6571
6572fi
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6574$as_echo "$ac_cv_sizeof_long" >&6; }
6575
6576
6577
6578cat >>confdefs.h <<_ACEOF
6579#define SIZEOF_LONG $ac_cv_sizeof_long
6580_ACEOF
6581
6582
6583 # The cast to long int works around a bug in the HP C Compiler
6584# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6585# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6586# This bug is HP SR number 8606223364.
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6588$as_echo_n "checking size of void*... " >&6; }
6589if ${ac_cv_sizeof_voidp+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591else
6592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6593
6594else
6595 if test "$ac_cv_type_voidp" = yes; then
6596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6598as_fn_error 77 "cannot compute sizeof (void*)
6599See \`config.log' for more details" "$LINENO" 5; }
6600 else
6601 ac_cv_sizeof_voidp=0
6602 fi
6603fi
6604
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6607$as_echo "$ac_cv_sizeof_voidp" >&6; }
6608
6609
6610
6611cat >>confdefs.h <<_ACEOF
6612#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6613_ACEOF
6614
6615
6616 #
6617 if test -z "$ac_cv_sizeof_long" ||
6618 test "$ac_cv_sizeof_long" -eq "0"; then
6619 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6620 fi
6621 if test -z "$ac_cv_sizeof_voidp" ||
6622 test "$ac_cv_sizeof_voidp" -eq "0"; then
6623 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6624 fi
6625 #
6626 x_LP64_long=""
6627 x_LP32_long=""
6628 #
6629 if test "$ac_cv_sizeof_long" -eq "8" &&
6630 test "$ac_cv_sizeof_voidp" -ge "8"; then
6631 x_LP64_long="long"
6632 elif test "$ac_cv_sizeof_long" -eq "4" &&
6633 test "$ac_cv_sizeof_voidp" -ge "4"; then
6634 x_LP32_long="long"
6635 fi
6636 #
6637 #
6638 curl_typeof_curl_off_t="unknown"
6639 curl_sizeof_curl_off_t="unknown"
6640 curl_format_curl_off_t="unknown"
6641 curl_format_curl_off_tu="unknown"
6642 #
6643 if test "$curl_typeof_curl_off_t" = "unknown"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6645$as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6646 for t8 in \
6647 "$x_LP64_long" \
6648 'int64_t' \
6649 '__int64' \
6650 'long long' \
6651 '__longlong' \
6652 '__longlong_t' ; do
6653
6654 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6655 tmp_includes=""
6656 tmp_source=""
6657 tmp_fmt=""
6658 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6659 int64_t)
6660 tmp_includes="$curl_includes_inttypes"
6661 tmp_source="char f[] = PRId64;"
6662 tmp_fmt="PRId64"
6663 ;;
6664 int32_t)
6665 tmp_includes="$curl_includes_inttypes"
6666 tmp_source="char f[] = PRId32;"
6667 tmp_fmt="PRId32"
6668 ;;
6669 int16_t)
6670 tmp_includes="$curl_includes_inttypes"
6671 tmp_source="char f[] = PRId16;"
6672 tmp_fmt="PRId16"
6673 ;;
6674 esac
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678
6679 $tmp_includes
6680 typedef $t8 curl_off_t;
6681 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6682
6683int main (void)
6684{
6685
6686 $tmp_source
6687 curl_off_t dummy;
6688
6689 ;
6690 return 0;
6691}
6692
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695
6696 if test -z "$tmp_fmt"; then
6697 curl_typeof_curl_off_t="$t8"
6698 curl_sizeof_curl_off_t="8"
6699 else
6700
6701 OLDCPPFLAGS=$CPPFLAGS
6702 # CPPPFLAG comes from CURL_CPP_P
6703 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6704 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6705 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6706 if test -z "$SED"; then
6707 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6708 fi
6709 if test -z "$GREP"; then
6710 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6711 fi
6712
6713 tmp_exp=""
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h. */
6716
6717 $curl_includes_inttypes
6718#ifdef $tmp_fmt
6719CURL_DEF_TOKEN $tmp_fmt
6720#endif
6721
6722
6723_ACEOF
6724if ac_fn_c_try_cpp "$LINENO"; then :
6725
6726 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6727 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6728 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6729 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6730 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6731 tmp_exp=""
6732 fi
6733
6734fi
6735rm -f conftest.err conftest.i conftest.$ac_ext
6736 if test -z "$tmp_exp"; then
6737 eval "$as_ac_HaveDef=no"
6738
6739 else
6740 eval "$as_ac_HaveDef=yes"
6741 eval "$as_ac_Def=\$tmp_exp"
6742
6743 fi
6744 CPPFLAGS=$OLDCPPFLAGS
6745
6746 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6747 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6748 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6749 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6750 curl_typeof_curl_off_t="$t8"
6751 curl_sizeof_curl_off_t="8"
6752 fi
6753 fi
6754
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 fi
6758
6759 done
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6761$as_echo "$curl_typeof_curl_off_t" >&6; }
6762 fi
6763 if test "$curl_typeof_curl_off_t" = "unknown"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6765$as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6766 for t4 in \
6767 "$x_LP32_long" \
6768 'int32_t' \
6769 '__int32' \
6770 'int' ; do
6771
6772 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6773 tmp_includes=""
6774 tmp_source=""
6775 tmp_fmt=""
6776 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6777 int64_t)
6778 tmp_includes="$curl_includes_inttypes"
6779 tmp_source="char f[] = PRId64;"
6780 tmp_fmt="PRId64"
6781 ;;
6782 int32_t)
6783 tmp_includes="$curl_includes_inttypes"
6784 tmp_source="char f[] = PRId32;"
6785 tmp_fmt="PRId32"
6786 ;;
6787 int16_t)
6788 tmp_includes="$curl_includes_inttypes"
6789 tmp_source="char f[] = PRId16;"
6790 tmp_fmt="PRId16"
6791 ;;
6792 esac
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h. */
6795
6796
6797 $tmp_includes
6798 typedef $t4 curl_off_t;
6799 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6800
6801int main (void)
6802{
6803
6804 $tmp_source
6805 curl_off_t dummy;
6806
6807 ;
6808 return 0;
6809}
6810
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813
6814 if test -z "$tmp_fmt"; then
6815 curl_typeof_curl_off_t="$t4"
6816 curl_sizeof_curl_off_t="4"
6817 else
6818
6819 OLDCPPFLAGS=$CPPFLAGS
6820 # CPPPFLAG comes from CURL_CPP_P
6821 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6822 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6823 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6824 if test -z "$SED"; then
6825 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6826 fi
6827 if test -z "$GREP"; then
6828 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6829 fi
6830
6831 tmp_exp=""
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h. */
6834
6835 $curl_includes_inttypes
6836#ifdef $tmp_fmt
6837CURL_DEF_TOKEN $tmp_fmt
6838#endif
6839
6840
6841_ACEOF
6842if ac_fn_c_try_cpp "$LINENO"; then :
6843
6844 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6845 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6846 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6847 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6848 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6849 tmp_exp=""
6850 fi
6851
6852fi
6853rm -f conftest.err conftest.i conftest.$ac_ext
6854 if test -z "$tmp_exp"; then
6855 eval "$as_ac_HaveDef=no"
6856
6857 else
6858 eval "$as_ac_HaveDef=yes"
6859 eval "$as_ac_Def=\$tmp_exp"
6860
6861 fi
6862 CPPFLAGS=$OLDCPPFLAGS
6863
6864 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6865 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6866 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6867 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6868 curl_typeof_curl_off_t="$t4"
6869 curl_sizeof_curl_off_t="4"
6870 fi
6871 fi
6872
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 fi
6876
6877 done
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6879$as_echo "$curl_typeof_curl_off_t" >&6; }
6880 fi
6881 if test "$curl_typeof_curl_off_t" = "unknown"; then
6882 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6883 fi
6884 #
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6886$as_echo_n "checking size of curl_off_t... " >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6888$as_echo "$curl_sizeof_curl_off_t" >&6; }
6889 #
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6891$as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6892 if test "$curl_format_curl_off_t" != "unknown"; then
6893 x_pull_headers="yes"
6894 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6895 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6896 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6897 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6898 else
6899 x_pull_headers="no"
6900 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6901 long_long | __longlong | __longlong_t)
6902 curl_format_curl_off_t="lld"
6903 curl_format_curl_off_tu="llu"
6904 ;;
6905 long)
6906 curl_format_curl_off_t="ld"
6907 curl_format_curl_off_tu="lu"
6908 ;;
6909 int)
6910 curl_format_curl_off_t="d"
6911 curl_format_curl_off_tu="u"
6912 ;;
6913 __int64)
6914 curl_format_curl_off_t="I64d"
6915 curl_format_curl_off_tu="I64u"
6916 ;;
6917 __int32)
6918 curl_format_curl_off_t="I32d"
6919 curl_format_curl_off_tu="I32u"
6920 ;;
6921 __int16)
6922 curl_format_curl_off_t="I16d"
6923 curl_format_curl_off_tu="I16u"
6924 ;;
6925 *)
6926 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6927 ;;
6928 esac
6929 fi
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6931$as_echo "\"$curl_format_curl_off_t\"" >&6; }
6932 #
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6934$as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6936$as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6937 #
6938
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6940$as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6941 #
6942 curl_suffix_curl_off_t="unknown"
6943 curl_suffix_curl_off_tu="unknown"
6944 #
6945 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6946 long_long | __longlong | __longlong_t)
6947 tst_suffixes="LL::"
6948 ;;
6949 long)
6950 tst_suffixes="L::"
6951 ;;
6952 int)
6953 tst_suffixes="::"
6954 ;;
6955 __int64 | int64_t)
6956 tst_suffixes="LL:i64::"
6957 ;;
6958 __int32 | int32_t)
6959 tst_suffixes="L:i32::"
6960 ;;
6961 __int16 | int16_t)
6962 tst_suffixes="L:i16::"
6963 ;;
6964 *)
6965 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6966 ;;
6967 esac
6968 #
6969 old_IFS=$IFS; IFS=':'
6970 for tmp_ssuf in $tst_suffixes ; do
6971 IFS=$old_IFS
6972 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6973 case $tmp_ssuf in
6974 i64 | i32 | i16)
6975 tmp_usuf="u$tmp_ssuf"
6976 ;;
6977 LL | L)
6978 tmp_usuf="U$tmp_ssuf"
6979 ;;
6980 *)
6981 tmp_usuf=""
6982 ;;
6983 esac
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h. */
6986
6987
6988 $curl_includes_inttypes
6989 typedef $curl_typeof_curl_off_t new_t;
6990
6991int main (void)
6992{
6993
6994 new_t s1;
6995 new_t s2;
6996 s1 = -10$tmp_ssuf ;
6997 s2 = 20$tmp_ssuf ;
6998 if(s1 > s2)
6999 return 1;
7000
7001 ;
7002 return 0;
7003}
7004
7005_ACEOF
7006if ac_fn_c_try_compile "$LINENO"; then :
7007
7008 curl_suffix_curl_off_t="$tmp_ssuf"
7009 curl_suffix_curl_off_tu="$tmp_usuf"
7010
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 done
7015 IFS=$old_IFS
7016 #
7017 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
7018 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
7021$as_echo "$curl_suffix_curl_off_t" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
7023$as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
7025$as_echo "$curl_suffix_curl_off_tu" >&6; }
7026 fi
7027 #
7028
7029 #
7030 if test "$x_pull_headers" = "yes"; then
7031 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
7032
7033cat >>confdefs.h <<_EOF
7034#define CURL_PULL_SYS_TYPES_H 1
7035_EOF
7036
7037 fi
7038 if test "x$ac_cv_header_stdint_h" = "xyes"; then
7039
7040cat >>confdefs.h <<_EOF
7041#define CURL_PULL_STDINT_H 1
7042_EOF
7043
7044 fi
7045 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
7046
7047cat >>confdefs.h <<_EOF
7048#define CURL_PULL_INTTYPES_H 1
7049_EOF
7050
7051 fi
7052 fi
7053 #
7054
7055cat >>confdefs.h <<_EOF
7056#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
7057_EOF
7058
7059
7060cat >>confdefs.h <<_EOF
7061#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
7062_EOF
7063
7064
7065cat >>confdefs.h <<_EOF
7066#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
7067_EOF
7068
7069
7070cat >>confdefs.h <<_EOF
7071#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
7072_EOF
7073
7074
7075cat >>confdefs.h <<_EOF
7076#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
7077_EOF
7078
7079
7080cat >>confdefs.h <<_EOF
7081#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
7082_EOF
7083
7084
7085cat >>confdefs.h <<_EOF
7086#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
7087_EOF
7088
7089 #
7090
7091
7092
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7095$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h. */
7098
7099#ifdef _AIX
7100 yes_this_is_aix
7101#endif
7102
7103_ACEOF
7104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
7106
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108$as_echo "yes" >&6; }
7109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7110
7111
7112else
7113
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116
7117fi
7118rm -f conftest*
7119
7120
7121
7122
7123 #
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7125$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h. */
7128
7129
7130
7131int main (void)
7132{
7133
7134#ifdef _THREAD_SAFE
7135 int dummy=1;
7136#else
7137 force compilation error
7138#endif
7139
7140 ;
7141 return 0;
7142}
7143
7144_ACEOF
7145if ac_fn_c_try_compile "$LINENO"; then :
7146
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7148$as_echo "yes" >&6; }
7149 tmp_thread_safe_initially_defined="yes"
7150
7151else
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155 tmp_thread_safe_initially_defined="no"
7156
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 #
7160 if test "$tmp_thread_safe_initially_defined" = "no"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7162$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
7163
7164 case $host_os in
7165 aix[123].* | aix4.[012].*)
7166 tmp_need_thread_safe="no"
7167 ;;
7168 aix*)
7169 tmp_need_thread_safe="yes"
7170 ;;
7171 *)
7172 tmp_need_thread_safe="no"
7173 ;;
7174 esac
7175
7176 if test "$tmp_need_thread_safe" = "yes"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7178$as_echo "yes" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182 fi
7183 fi
7184 #
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7186$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
7187 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7188 test "$tmp_need_thread_safe" = "yes"; then
7189
7190
7191$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
7192
7193cat >>confdefs.h <<_EOF
7194#ifndef _THREAD_SAFE
7195# define _THREAD_SAFE
7196#endif
7197_EOF
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7200$as_echo "yes" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
7204 fi
7205 #
7206
7207
7208 #
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7210$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h. */
7213
7214
7215
7216int main (void)
7217{
7218
7219#ifdef _REENTRANT
7220 int dummy=1;
7221#else
7222 force compilation error
7223#endif
7224
7225 ;
7226 return 0;
7227}
7228
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"; then :
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233$as_echo "yes" >&6; }
7234 tmp_reentrant_initially_defined="yes"
7235
7236else
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240 tmp_reentrant_initially_defined="no"
7241
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 #
7245 if test "$tmp_reentrant_initially_defined" = "no"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7247$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
7248
7249 case $host_os in
7250 solaris*)
7251 tmp_need_reentrant="yes"
7252 ;;
7253 *)
7254 tmp_need_reentrant="no"
7255 ;;
7256 esac
7257
7258 if test "$tmp_need_reentrant" = "no"; then
7259
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h. */
7262
7263
7264#include <errno.h>
7265
7266int main (void)
7267{
7268
7269 if(0 != errno)
7270 return 1;
7271
7272 ;
7273 return 0;
7274}
7275
7276_ACEOF
7277if ac_fn_c_try_compile "$LINENO"; then :
7278
7279 tmp_errno="yes"
7280
7281else
7282
7283 tmp_errno="no"
7284
7285fi
7286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 if test "$tmp_errno" = "yes"; then
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h. */
7290
7291
7292#include <errno.h>
7293
7294int main (void)
7295{
7296
7297#ifdef errno
7298 int dummy=1;
7299#else
7300 force compilation error
7301#endif
7302
7303 ;
7304 return 0;
7305}
7306
7307_ACEOF
7308if ac_fn_c_try_compile "$LINENO"; then :
7309
7310 tmp_errno="errno_macro_defined"
7311
7312else
7313
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h. */
7316
7317
7318#define _REENTRANT
7319#include <errno.h>
7320
7321int main (void)
7322{
7323
7324#ifdef errno
7325 int dummy=1;
7326#else
7327 force compilation error
7328#endif
7329
7330 ;
7331 return 0;
7332}
7333
7334_ACEOF
7335if ac_fn_c_try_compile "$LINENO"; then :
7336
7337 tmp_errno="errno_macro_needs_reentrant"
7338 tmp_need_reentrant="yes"
7339
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346
7347 fi
7348 if test "$tmp_need_reentrant" = "no"; then
7349
7350 if test "$tmp_need_reentrant" = "no"; then
7351
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h. */
7354
7355
7356#define gmtime_r innocuous_gmtime_r
7357#ifdef __STDC__
7358# include <limits.h>
7359#else
7360# include <assert.h>
7361#endif
7362#undef gmtime_r
7363#ifdef __cplusplus
7364extern "C"
7365#endif
7366char gmtime_r ();
7367#if defined __stub_gmtime_r || defined __stub___gmtime_r
7368choke me
7369#endif
7370
7371int main (void)
7372{
7373return gmtime_r ();
7374 ;
7375 return 0;
7376}
7377
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"; then :
7380
7381 tmp_gmtime_r="yes"
7382
7383else
7384
7385 tmp_gmtime_r="no"
7386
7387fi
7388rm -f core conftest.err conftest.$ac_objext \
7389 conftest$ac_exeext conftest.$ac_ext
7390 if test "$tmp_gmtime_r" = "yes"; then
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392/* end confdefs.h. */
7393
7394#include <sys/types.h>
7395#include <time.h>
7396
7397_ACEOF
7398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399 $EGREP "gmtime_r" >/dev/null 2>&1; then :
7400
7401 tmp_gmtime_r="proto_declared"
7402
7403else
7404
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h. */
7407
7408#define _REENTRANT
7409#include <sys/types.h>
7410#include <time.h>
7411
7412_ACEOF
7413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7414 $EGREP "gmtime_r" >/dev/null 2>&1; then :
7415
7416 tmp_gmtime_r="proto_needs_reentrant"
7417 tmp_need_reentrant="yes"
7418
7419fi
7420rm -f conftest*
7421
7422
7423fi
7424rm -f conftest*
7425
7426 fi
7427
7428 fi
7429 if test "$tmp_need_reentrant" = "no"; then
7430
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h. */
7433
7434
7435#define localtime_r innocuous_localtime_r
7436#ifdef __STDC__
7437# include <limits.h>
7438#else
7439# include <assert.h>
7440#endif
7441#undef localtime_r
7442#ifdef __cplusplus
7443extern "C"
7444#endif
7445char localtime_r ();
7446#if defined __stub_localtime_r || defined __stub___localtime_r
7447choke me
7448#endif
7449
7450int main (void)
7451{
7452return localtime_r ();
7453 ;
7454 return 0;
7455}
7456
7457_ACEOF
7458if ac_fn_c_try_link "$LINENO"; then :
7459
7460 tmp_localtime_r="yes"
7461
7462else
7463
7464 tmp_localtime_r="no"
7465
7466fi
7467rm -f core conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7469 if test "$tmp_localtime_r" = "yes"; then
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
7472
7473#include <sys/types.h>
7474#include <time.h>
7475
7476_ACEOF
7477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7478 $EGREP "localtime_r" >/dev/null 2>&1; then :
7479
7480 tmp_localtime_r="proto_declared"
7481
7482else
7483
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h. */
7486
7487#define _REENTRANT
7488#include <sys/types.h>
7489#include <time.h>
7490
7491_ACEOF
7492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493 $EGREP "localtime_r" >/dev/null 2>&1; then :
7494
7495 tmp_localtime_r="proto_needs_reentrant"
7496 tmp_need_reentrant="yes"
7497
7498fi
7499rm -f conftest*
7500
7501
7502fi
7503rm -f conftest*
7504
7505 fi
7506
7507 fi
7508 if test "$tmp_need_reentrant" = "no"; then
7509
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h. */
7512
7513
7514#define strerror_r innocuous_strerror_r
7515#ifdef __STDC__
7516# include <limits.h>
7517#else
7518# include <assert.h>
7519#endif
7520#undef strerror_r
7521#ifdef __cplusplus
7522extern "C"
7523#endif
7524char strerror_r ();
7525#if defined __stub_strerror_r || defined __stub___strerror_r
7526choke me
7527#endif
7528
7529int main (void)
7530{
7531return strerror_r ();
7532 ;
7533 return 0;
7534}
7535
7536_ACEOF
7537if ac_fn_c_try_link "$LINENO"; then :
7538
7539 tmp_strerror_r="yes"
7540
7541else
7542
7543 tmp_strerror_r="no"
7544
7545fi
7546rm -f core conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548 if test "$tmp_strerror_r" = "yes"; then
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h. */
7551
7552#include <sys/types.h>
7553#include <string.h>
7554
7555_ACEOF
7556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7557 $EGREP "strerror_r" >/dev/null 2>&1; then :
7558
7559 tmp_strerror_r="proto_declared"
7560
7561else
7562
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h. */
7565
7566#define _REENTRANT
7567#include <sys/types.h>
7568#include <string.h>
7569
7570_ACEOF
7571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7572 $EGREP "strerror_r" >/dev/null 2>&1; then :
7573
7574 tmp_strerror_r="proto_needs_reentrant"
7575 tmp_need_reentrant="yes"
7576
7577fi
7578rm -f conftest*
7579
7580
7581fi
7582rm -f conftest*
7583
7584 fi
7585
7586 fi
7587 if test "$tmp_need_reentrant" = "no"; then
7588
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h. */
7591
7592
7593#define strtok_r innocuous_strtok_r
7594#ifdef __STDC__
7595# include <limits.h>
7596#else
7597# include <assert.h>
7598#endif
7599#undef strtok_r
7600#ifdef __cplusplus
7601extern "C"
7602#endif
7603char strtok_r ();
7604#if defined __stub_strtok_r || defined __stub___strtok_r
7605choke me
7606#endif
7607
7608int main (void)
7609{
7610return strtok_r ();
7611 ;
7612 return 0;
7613}
7614
7615_ACEOF
7616if ac_fn_c_try_link "$LINENO"; then :
7617
7618 tmp_strtok_r="yes"
7619
7620else
7621
7622 tmp_strtok_r="no"
7623
7624fi
7625rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 if test "$tmp_strtok_r" = "yes"; then
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630
7631#include <sys/types.h>
7632#include <string.h>
7633
7634_ACEOF
7635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7636 $EGREP "strtok_r" >/dev/null 2>&1; then :
7637
7638 tmp_strtok_r="proto_declared"
7639
7640else
7641
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h. */
7644
7645#define _REENTRANT
7646#include <sys/types.h>
7647#include <string.h>
7648
7649_ACEOF
7650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7651 $EGREP "strtok_r" >/dev/null 2>&1; then :
7652
7653 tmp_strtok_r="proto_needs_reentrant"
7654 tmp_need_reentrant="yes"
7655
7656fi
7657rm -f conftest*
7658
7659
7660fi
7661rm -f conftest*
7662
7663 fi
7664
7665 fi
7666 if test "$tmp_need_reentrant" = "no"; then
7667
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h. */
7670
7671
7672#define inet_ntoa_r innocuous_inet_ntoa_r
7673#ifdef __STDC__
7674# include <limits.h>
7675#else
7676# include <assert.h>
7677#endif
7678#undef inet_ntoa_r
7679#ifdef __cplusplus
7680extern "C"
7681#endif
7682char inet_ntoa_r ();
7683#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7684choke me
7685#endif
7686
7687int main (void)
7688{
7689return inet_ntoa_r ();
7690 ;
7691 return 0;
7692}
7693
7694_ACEOF
7695if ac_fn_c_try_link "$LINENO"; then :
7696
7697 tmp_inet_ntoa_r="yes"
7698
7699else
7700
7701 tmp_inet_ntoa_r="no"
7702
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 if test "$tmp_inet_ntoa_r" = "yes"; then
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h. */
7709
7710#include <sys/types.h>
7711#include <sys/socket.h>
7712#include <netinet/in.h>
7713#include <arpa/inet.h>
7714
7715_ACEOF
7716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7718
7719 tmp_inet_ntoa_r="proto_declared"
7720
7721else
7722
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h. */
7725
7726#define _REENTRANT
7727#include <sys/types.h>
7728#include <sys/socket.h>
7729#include <netinet/in.h>
7730#include <arpa/inet.h>
7731
7732_ACEOF
7733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7735
7736 tmp_inet_ntoa_r="proto_needs_reentrant"
7737 tmp_need_reentrant="yes"
7738
7739fi
7740rm -f conftest*
7741
7742
7743fi
7744rm -f conftest*
7745
7746 fi
7747
7748 fi
7749 if test "$tmp_need_reentrant" = "no"; then
7750
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h. */
7753
7754
7755#define gethostbyaddr_r innocuous_gethostbyaddr_r
7756#ifdef __STDC__
7757# include <limits.h>
7758#else
7759# include <assert.h>
7760#endif
7761#undef gethostbyaddr_r
7762#ifdef __cplusplus
7763extern "C"
7764#endif
7765char gethostbyaddr_r ();
7766#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7767choke me
7768#endif
7769
7770int main (void)
7771{
7772return gethostbyaddr_r ();
7773 ;
7774 return 0;
7775}
7776
7777_ACEOF
7778if ac_fn_c_try_link "$LINENO"; then :
7779
7780 tmp_gethostbyaddr_r="yes"
7781
7782else
7783
7784 tmp_gethostbyaddr_r="no"
7785
7786fi
7787rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 if test "$tmp_gethostbyaddr_r" = "yes"; then
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h. */
7792
7793#include <sys/types.h>
7794#include <netdb.h>
7795
7796_ACEOF
7797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7798 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7799
7800 tmp_gethostbyaddr_r="proto_declared"
7801
7802else
7803
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h. */
7806
7807#define _REENTRANT
7808#include <sys/types.h>
7809#include <netdb.h>
7810
7811_ACEOF
7812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7814
7815 tmp_gethostbyaddr_r="proto_needs_reentrant"
7816 tmp_need_reentrant="yes"
7817
7818fi
7819rm -f conftest*
7820
7821
7822fi
7823rm -f conftest*
7824
7825 fi
7826
7827 fi
7828 if test "$tmp_need_reentrant" = "no"; then
7829
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832
7833
7834#define gethostbyname_r innocuous_gethostbyname_r
7835#ifdef __STDC__
7836# include <limits.h>
7837#else
7838# include <assert.h>
7839#endif
7840#undef gethostbyname_r
7841#ifdef __cplusplus
7842extern "C"
7843#endif
7844char gethostbyname_r ();
7845#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7846choke me
7847#endif
7848
7849int main (void)
7850{
7851return gethostbyname_r ();
7852 ;
7853 return 0;
7854}
7855
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"; then :
7858
7859 tmp_gethostbyname_r="yes"
7860
7861else
7862
7863 tmp_gethostbyname_r="no"
7864
7865fi
7866rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 if test "$tmp_gethostbyname_r" = "yes"; then
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870/* end confdefs.h. */
7871
7872#include <sys/types.h>
7873#include <netdb.h>
7874
7875_ACEOF
7876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7877 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7878
7879 tmp_gethostbyname_r="proto_declared"
7880
7881else
7882
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h. */
7885
7886#define _REENTRANT
7887#include <sys/types.h>
7888#include <netdb.h>
7889
7890_ACEOF
7891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7892 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7893
7894 tmp_gethostbyname_r="proto_needs_reentrant"
7895 tmp_need_reentrant="yes"
7896
7897fi
7898rm -f conftest*
7899
7900
7901fi
7902rm -f conftest*
7903
7904 fi
7905
7906 fi
7907 if test "$tmp_need_reentrant" = "no"; then
7908
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h. */
7911
7912
7913#define getprotobyname_r innocuous_getprotobyname_r
7914#ifdef __STDC__
7915# include <limits.h>
7916#else
7917# include <assert.h>
7918#endif
7919#undef getprotobyname_r
7920#ifdef __cplusplus
7921extern "C"
7922#endif
7923char getprotobyname_r ();
7924#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7925choke me
7926#endif
7927
7928int main (void)
7929{
7930return getprotobyname_r ();
7931 ;
7932 return 0;
7933}
7934
7935_ACEOF
7936if ac_fn_c_try_link "$LINENO"; then :
7937
7938 tmp_getprotobyname_r="yes"
7939
7940else
7941
7942 tmp_getprotobyname_r="no"
7943
7944fi
7945rm -f core conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7947 if test "$tmp_getprotobyname_r" = "yes"; then
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950
7951#include <sys/types.h>
7952#include <netdb.h>
7953
7954_ACEOF
7955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7957
7958 tmp_getprotobyname_r="proto_declared"
7959
7960else
7961
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h. */
7964
7965#define _REENTRANT
7966#include <sys/types.h>
7967#include <netdb.h>
7968
7969_ACEOF
7970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7972
7973 tmp_getprotobyname_r="proto_needs_reentrant"
7974 tmp_need_reentrant="yes"
7975
7976fi
7977rm -f conftest*
7978
7979
7980fi
7981rm -f conftest*
7982
7983 fi
7984
7985 fi
7986 if test "$tmp_need_reentrant" = "no"; then
7987
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h. */
7990
7991
7992#define getservbyport_r innocuous_getservbyport_r
7993#ifdef __STDC__
7994# include <limits.h>
7995#else
7996# include <assert.h>
7997#endif
7998#undef getservbyport_r
7999#ifdef __cplusplus
8000extern "C"
8001#endif
8002char getservbyport_r ();
8003#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
8004choke me
8005#endif
8006
8007int main (void)
8008{
8009return getservbyport_r ();
8010 ;
8011 return 0;
8012}
8013
8014_ACEOF
8015if ac_fn_c_try_link "$LINENO"; then :
8016
8017 tmp_getservbyport_r="yes"
8018
8019else
8020
8021 tmp_getservbyport_r="no"
8022
8023fi
8024rm -f core conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 if test "$tmp_getservbyport_r" = "yes"; then
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h. */
8029
8030#include <sys/types.h>
8031#include <netdb.h>
8032
8033_ACEOF
8034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
8036
8037 tmp_getservbyport_r="proto_declared"
8038
8039else
8040
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h. */
8043
8044#define _REENTRANT
8045#include <sys/types.h>
8046#include <netdb.h>
8047
8048_ACEOF
8049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8050 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
8051
8052 tmp_getservbyport_r="proto_needs_reentrant"
8053 tmp_need_reentrant="yes"
8054
8055fi
8056rm -f conftest*
8057
8058
8059fi
8060rm -f conftest*
8061
8062 fi
8063
8064 fi
8065
8066 fi
8067 if test "$tmp_need_reentrant" = "yes"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069$as_echo "yes" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
8073 fi
8074 fi
8075 #
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8077$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
8078 if test "$tmp_reentrant_initially_defined" = "yes" ||
8079 test "$tmp_need_reentrant" = "yes"; then
8080
8081
8082$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
8083
8084cat >>confdefs.h <<_EOF
8085#ifndef _REENTRANT
8086# define _REENTRANT
8087#endif
8088_EOF
8089
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091$as_echo "yes" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
8095 fi
8096 #
8097
8098
8099# Check whether --enable-largefile was given.
8100if test "${enable_largefile+set}" = set; then :
8101 enableval=$enable_largefile;
8102fi
8103
8104if test "$enable_largefile" != no; then
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8107$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8108if ${ac_cv_sys_largefile_CC+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110else
8111 ac_cv_sys_largefile_CC=no
8112 if test "$GCC" != yes; then
8113 ac_save_CC=$CC
8114 while :; do
8115 # IRIX 6.2 and later do not support large files by default,
8116 # so use the C compiler's -n32 option if that helps.
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h. */
8119#include <sys/types.h>
8120 /* Check that off_t can represent 2**63 - 1 correctly.
8121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8122 since some C++ compilers masquerading as C compilers
8123 incorrectly reject 9223372036854775807. */
8124#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8126 && LARGE_OFF_T % 2147483647 == 1)
8127 ? 1 : -1];
8128int main (void)
8129{
8130
8131 ;
8132 return 0;
8133}
8134_ACEOF
8135 if ac_fn_c_try_compile "$LINENO"; then :
8136 break
8137fi
8138rm -f core conftest.err conftest.$ac_objext
8139 CC="$CC -n32"
8140 if ac_fn_c_try_compile "$LINENO"; then :
8141 ac_cv_sys_largefile_CC=' -n32'; break
8142fi
8143rm -f core conftest.err conftest.$ac_objext
8144 break
8145 done
8146 CC=$ac_save_CC
8147 rm -f conftest.$ac_ext
8148 fi
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8151$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8152 if test "$ac_cv_sys_largefile_CC" != no; then
8153 CC=$CC$ac_cv_sys_largefile_CC
8154 fi
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8157$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8158if ${ac_cv_sys_file_offset_bits+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160else
8161 while :; do
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h. */
8164#include <sys/types.h>
8165 /* Check that off_t can represent 2**63 - 1 correctly.
8166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8167 since some C++ compilers masquerading as C compilers
8168 incorrectly reject 9223372036854775807. */
8169#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8171 && LARGE_OFF_T % 2147483647 == 1)
8172 ? 1 : -1];
8173int main (void)
8174{
8175
8176 ;
8177 return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"; then :
8181 ac_cv_sys_file_offset_bits=no; break
8182fi
8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h. */
8186#define _FILE_OFFSET_BITS 64
8187#include <sys/types.h>
8188 /* Check that off_t can represent 2**63 - 1 correctly.
8189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8190 since some C++ compilers masquerading as C compilers
8191 incorrectly reject 9223372036854775807. */
8192#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8194 && LARGE_OFF_T % 2147483647 == 1)
8195 ? 1 : -1];
8196int main (void)
8197{
8198
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203if ac_fn_c_try_compile "$LINENO"; then :
8204 ac_cv_sys_file_offset_bits=64; break
8205fi
8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 ac_cv_sys_file_offset_bits=unknown
8208 break
8209done
8210fi
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8212$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8213case $ac_cv_sys_file_offset_bits in #(
8214 no | unknown) ;;
8215 *)
8216cat >>confdefs.h <<_ACEOF
8217#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8218_ACEOF
8219;;
8220esac
8221rm -rf conftest*
8222 if test $ac_cv_sys_file_offset_bits = unknown; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8224$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8225if ${ac_cv_sys_large_files+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227else
8228 while :; do
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h. */
8231#include <sys/types.h>
8232 /* Check that off_t can represent 2**63 - 1 correctly.
8233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8234 since some C++ compilers masquerading as C compilers
8235 incorrectly reject 9223372036854775807. */
8236#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8238 && LARGE_OFF_T % 2147483647 == 1)
8239 ? 1 : -1];
8240int main (void)
8241{
8242
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247if ac_fn_c_try_compile "$LINENO"; then :
8248 ac_cv_sys_large_files=no; break
8249fi
8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252/* end confdefs.h. */
8253#define _LARGE_FILES 1
8254#include <sys/types.h>
8255 /* Check that off_t can represent 2**63 - 1 correctly.
8256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8257 since some C++ compilers masquerading as C compilers
8258 incorrectly reject 9223372036854775807. */
8259#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8261 && LARGE_OFF_T % 2147483647 == 1)
8262 ? 1 : -1];
8263int main (void)
8264{
8265
8266 ;
8267 return 0;
8268}
8269_ACEOF
8270if ac_fn_c_try_compile "$LINENO"; then :
8271 ac_cv_sys_large_files=1; break
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 ac_cv_sys_large_files=unknown
8275 break
8276done
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8279$as_echo "$ac_cv_sys_large_files" >&6; }
8280case $ac_cv_sys_large_files in #(
8281 no | unknown) ;;
8282 *)
8283cat >>confdefs.h <<_ACEOF
8284#define _LARGE_FILES $ac_cv_sys_large_files
8285_ACEOF
8286;;
8287esac
8288rm -rf conftest*
8289 fi
8290
8291
8292fi
8293
8294
8295case `pwd` in
8296 *\ * | *\ *)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8298$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8299esac
8300
8301
8302
8303macro_version='2.4.6'
8304macro_revision='2.4.6'
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318ltmain=$ac_aux_dir/ltmain.sh
8319
8320# Backslashify metacharacters that are still active within
8321# double-quoted strings.
8322sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8323
8324# Same as above, but do not quote variable references.
8325double_quote_subst='s/\(["`\\]\)/\\\1/g'
8326
8327# Sed substitution to delay expansion of an escaped shell variable in a
8328# double_quote_subst'ed string.
8329delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8330
8331# Sed substitution to delay expansion of an escaped single quote.
8332delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8333
8334# Sed substitution to avoid accidental globbing in evaled expressions
8335no_glob_subst='s/\*/\\\*/g'
8336
8337ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8338ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8339ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8340
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8342$as_echo_n "checking how to print strings... " >&6; }
8343# Test print first, because it will be a builtin if present.
8344if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8345 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8346 ECHO='print -r --'
8347elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8348 ECHO='printf %s\n'
8349else
8350 # Use this function as a fallback that always works.
8351 func_fallback_echo ()
8352 {
8353 eval 'cat <<_LTECHO_EOF
8354$1
8355_LTECHO_EOF'
8356 }
8357 ECHO='func_fallback_echo'
8358fi
8359
8360# func_echo_all arg...
8361# Invoke $ECHO with all args, space-separated.
8362func_echo_all ()
8363{
8364 $ECHO ""
8365}
8366
8367case $ECHO in
8368 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8369$as_echo "printf" >&6; } ;;
8370 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8371$as_echo "print -r" >&6; } ;;
8372 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8373$as_echo "cat" >&6; } ;;
8374esac
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8390$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8391if ${ac_cv_path_SED+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393else
8394 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8395 for ac_i in 1 2 3 4 5 6 7; do
8396 ac_script="$ac_script$as_nl$ac_script"
8397 done
8398 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8399 { ac_script=; unset ac_script;}
8400 if test -z "$SED"; then
8401 ac_path_SED_found=false
8402 # Loop through the user's path and test for each of PROGNAME-LIST
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_prog in sed gsed; do
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8411 as_fn_executable_p "$ac_path_SED" || continue
8412# Check for GNU ac_path_SED and select it if it is found.
8413 # Check for GNU $ac_path_SED
8414case `"$ac_path_SED" --version 2>&1` in
8415*GNU*)
8416 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8417*)
8418 ac_count=0
8419 $as_echo_n 0123456789 >"conftest.in"
8420 while :
8421 do
8422 cat "conftest.in" "conftest.in" >"conftest.tmp"
8423 mv "conftest.tmp" "conftest.in"
8424 cp "conftest.in" "conftest.nl"
8425 $as_echo '' >> "conftest.nl"
8426 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8428 as_fn_arith $ac_count + 1 && ac_count=$as_val
8429 if test $ac_count -gt ${ac_path_SED_max-0}; then
8430 # Best one so far, save it but keep looking for a better one
8431 ac_cv_path_SED="$ac_path_SED"
8432 ac_path_SED_max=$ac_count
8433 fi
8434 # 10*(2^10) chars as input seems more than enough
8435 test $ac_count -gt 10 && break
8436 done
8437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8438esac
8439
8440 $ac_path_SED_found && break 3
8441 done
8442 done
8443 done
8444IFS=$as_save_IFS
8445 if test -z "$ac_cv_path_SED"; then
8446 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8447 fi
8448else
8449 ac_cv_path_SED=$SED
8450fi
8451
8452fi
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8454$as_echo "$ac_cv_path_SED" >&6; }
8455 SED="$ac_cv_path_SED"
8456 rm -f conftest.sed
8457
8458test -z "$SED" && SED=sed
8459Xsed="$SED -e 1s/^X//"
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8472$as_echo_n "checking for fgrep... " >&6; }
8473if ${ac_cv_path_FGREP+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475else
8476 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8477 then ac_cv_path_FGREP="$GREP -F"
8478 else
8479 if test -z "$FGREP"; then
8480 ac_path_FGREP_found=false
8481 # Loop through the user's path and test for each of PROGNAME-LIST
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8484do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_prog in fgrep; do
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8490 as_fn_executable_p "$ac_path_FGREP" || continue
8491# Check for GNU ac_path_FGREP and select it if it is found.
8492 # Check for GNU $ac_path_FGREP
8493case `"$ac_path_FGREP" --version 2>&1` in
8494*GNU*)
8495 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8496*)
8497 ac_count=0
8498 $as_echo_n 0123456789 >"conftest.in"
8499 while :
8500 do
8501 cat "conftest.in" "conftest.in" >"conftest.tmp"
8502 mv "conftest.tmp" "conftest.in"
8503 cp "conftest.in" "conftest.nl"
8504 $as_echo 'FGREP' >> "conftest.nl"
8505 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8507 as_fn_arith $ac_count + 1 && ac_count=$as_val
8508 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8509 # Best one so far, save it but keep looking for a better one
8510 ac_cv_path_FGREP="$ac_path_FGREP"
8511 ac_path_FGREP_max=$ac_count
8512 fi
8513 # 10*(2^10) chars as input seems more than enough
8514 test $ac_count -gt 10 && break
8515 done
8516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8517esac
8518
8519 $ac_path_FGREP_found && break 3
8520 done
8521 done
8522 done
8523IFS=$as_save_IFS
8524 if test -z "$ac_cv_path_FGREP"; then
8525 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8526 fi
8527else
8528 ac_cv_path_FGREP=$FGREP
8529fi
8530
8531 fi
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8534$as_echo "$ac_cv_path_FGREP" >&6; }
8535 FGREP="$ac_cv_path_FGREP"
8536
8537
8538test -z "$GREP" && GREP=grep
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558# Check whether --with-gnu-ld was given.
8559if test "${with_gnu_ld+set}" = set; then :
8560 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8561else
8562 with_gnu_ld=no
8563fi
8564
8565ac_prog=ld
8566if test yes = "$GCC"; then
8567 # Check if gcc -print-prog-name=ld gives a path.
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8569$as_echo_n "checking for ld used by $CC... " >&6; }
8570 case $host in
8571 *-*-mingw*)
8572 # gcc leaves a trailing carriage return, which upsets mingw
8573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8574 *)
8575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8576 esac
8577 case $ac_prog in
8578 # Accept absolute paths.
8579 [\\/]* | ?:[\\/]*)
8580 re_direlt='/[^/][^/]*/\.\./'
8581 # Canonicalize the pathname of ld
8582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8585 done
8586 test -z "$LD" && LD=$ac_prog
8587 ;;
8588 "")
8589 # If it fails, then pretend we aren't using GCC.
8590 ac_prog=ld
8591 ;;
8592 *)
8593 # If it is relative, then search for the first ld in PATH.
8594 with_gnu_ld=unknown
8595 ;;
8596 esac
8597elif test yes = "$with_gnu_ld"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8599$as_echo_n "checking for GNU ld... " >&6; }
8600else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8602$as_echo_n "checking for non-GNU ld... " >&6; }
8603fi
8604if ${lt_cv_path_LD+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606else
8607 if test -z "$LD"; then
8608 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8609 for ac_dir in $PATH; do
8610 IFS=$lt_save_ifs
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8613 lt_cv_path_LD=$ac_dir/$ac_prog
8614 # Check to see if the program is GNU ld. I'd rather use --version,
8615 # but apparently some variants of GNU ld only accept -v.
8616 # Break only if it was the GNU/non-GNU ld that we prefer.
8617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8618 *GNU* | *'with BFD'*)
8619 test no != "$with_gnu_ld" && break
8620 ;;
8621 *)
8622 test yes != "$with_gnu_ld" && break
8623 ;;
8624 esac
8625 fi
8626 done
8627 IFS=$lt_save_ifs
8628else
8629 lt_cv_path_LD=$LD # Let the user override the test with a path.
8630fi
8631fi
8632
8633LD=$lt_cv_path_LD
8634if test -n "$LD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636$as_echo "$LD" >&6; }
8637else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8643$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8644if ${lt_cv_prog_gnu_ld+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646else
8647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8648case `$LD -v 2>&1 </dev/null` in
8649*GNU* | *'with BFD'*)
8650 lt_cv_prog_gnu_ld=yes
8651 ;;
8652*)
8653 lt_cv_prog_gnu_ld=no
8654 ;;
8655esac
8656fi
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8658$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8659with_gnu_ld=$lt_cv_prog_gnu_ld
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8670$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8671if ${lt_cv_path_NM+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673else
8674 if test -n "$NM"; then
8675 # Let the user override the test.
8676 lt_cv_path_NM=$NM
8677else
8678 lt_nm_to_check=${ac_tool_prefix}nm
8679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8680 lt_nm_to_check="$lt_nm_to_check nm"
8681 fi
8682 for lt_tmp_nm in $lt_nm_to_check; do
8683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8685 IFS=$lt_save_ifs
8686 test -z "$ac_dir" && ac_dir=.
8687 tmp_nm=$ac_dir/$lt_tmp_nm
8688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8689 # Check to see if the nm accepts a BSD-compat flag.
8690 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8691 # nm: unknown option "B" ignored
8692 # Tru64's nm complains that /dev/null is an invalid object file
8693 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8694 case $build_os in
8695 mingw*) lt_bad_file=conftest.nm/nofile ;;
8696 *) lt_bad_file=/dev/null ;;
8697 esac
8698 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8699 *$lt_bad_file* | *'Invalid file or object type'*)
8700 lt_cv_path_NM="$tmp_nm -B"
8701 break 2
8702 ;;
8703 *)
8704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8705 */dev/null*)
8706 lt_cv_path_NM="$tmp_nm -p"
8707 break 2
8708 ;;
8709 *)
8710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8711 continue # so that we can try to find one that supports BSD flags
8712 ;;
8713 esac
8714 ;;
8715 esac
8716 fi
8717 done
8718 IFS=$lt_save_ifs
8719 done
8720 : ${lt_cv_path_NM=no}
8721fi
8722fi
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8724$as_echo "$lt_cv_path_NM" >&6; }
8725if test no != "$lt_cv_path_NM"; then
8726 NM=$lt_cv_path_NM
8727else
8728 # Didn't find any BSD compatible name lister, look for dumpbin.
8729 if test -n "$DUMPBIN"; then :
8730 # Let the user override the test.
8731 else
8732 if test -n "$ac_tool_prefix"; then
8733 for ac_prog in dumpbin "link -dump"
8734 do
8735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8736set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738$as_echo_n "checking for $ac_word... " >&6; }
8739if ${ac_cv_prog_DUMPBIN+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741else
8742 if test -n "$DUMPBIN"; then
8743 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757 done
8758IFS=$as_save_IFS
8759
8760fi
8761fi
8762DUMPBIN=$ac_cv_prog_DUMPBIN
8763if test -n "$DUMPBIN"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8765$as_echo "$DUMPBIN" >&6; }
8766else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768$as_echo "no" >&6; }
8769fi
8770
8771
8772 test -n "$DUMPBIN" && break
8773 done
8774fi
8775if test -z "$DUMPBIN"; then
8776 ac_ct_DUMPBIN=$DUMPBIN
8777 for ac_prog in dumpbin "link -dump"
8778do
8779 # Extract the first word of "$ac_prog", so it can be a program name with args.
8780set dummy $ac_prog; ac_word=$2
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$ac_ct_DUMPBIN"; then
8787 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800done
8801 done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8807if test -n "$ac_ct_DUMPBIN"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8809$as_echo "$ac_ct_DUMPBIN" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816 test -n "$ac_ct_DUMPBIN" && break
8817done
8818
8819 if test "x$ac_ct_DUMPBIN" = x; then
8820 DUMPBIN=":"
8821 else
8822 case $cross_compiling:$ac_tool_warned in
8823yes:)
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8826ac_tool_warned=yes ;;
8827esac
8828 DUMPBIN=$ac_ct_DUMPBIN
8829 fi
8830fi
8831
8832 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8833 *COFF*)
8834 DUMPBIN="$DUMPBIN -symbols -headers"
8835 ;;
8836 *)
8837 DUMPBIN=:
8838 ;;
8839 esac
8840 fi
8841
8842 if test : != "$DUMPBIN"; then
8843 NM=$DUMPBIN
8844 fi
8845fi
8846test -z "$NM" && NM=nm
8847
8848
8849
8850
8851
8852
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8854$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8855if ${lt_cv_nm_interface+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857else
8858 lt_cv_nm_interface="BSD nm"
8859 echo "int some_variable = 0;" > conftest.$ac_ext
8860 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8861 (eval "$ac_compile" 2>conftest.err)
8862 cat conftest.err >&5
8863 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8864 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8865 cat conftest.err >&5
8866 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8867 cat conftest.out >&5
8868 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8869 lt_cv_nm_interface="MS dumpbin"
8870 fi
8871 rm -f conftest*
8872fi
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8874$as_echo "$lt_cv_nm_interface" >&6; }
8875
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8877$as_echo_n "checking whether ln -s works... " >&6; }
8878LN_S=$as_ln_s
8879if test "$LN_S" = "ln -s"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8881$as_echo "yes" >&6; }
8882else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8884$as_echo "no, using $LN_S" >&6; }
8885fi
8886
8887# find the maximum length of command line arguments
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8889$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8890if ${lt_cv_sys_max_cmd_len+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892else
8893 i=0
8894 teststring=ABCD
8895
8896 case $build_os in
8897 msdosdjgpp*)
8898 # On DJGPP, this test can blow up pretty badly due to problems in libc
8899 # (any single argument exceeding 2000 bytes causes a buffer overrun
8900 # during glob expansion). Even if it were fixed, the result of this
8901 # check would be larger than it should be.
8902 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8903 ;;
8904
8905 gnu*)
8906 # Under GNU Hurd, this test is not required because there is
8907 # no limit to the length of command line arguments.
8908 # Libtool will interpret -1 as no limit whatsoever
8909 lt_cv_sys_max_cmd_len=-1;
8910 ;;
8911
8912 cygwin* | mingw* | cegcc*)
8913 # On Win9x/ME, this test blows up -- it succeeds, but takes
8914 # about 5 minutes as the teststring grows exponentially.
8915 # Worse, since 9x/ME are not pre-emptively multitasking,
8916 # you end up with a "frozen" computer, even though with patience
8917 # the test eventually succeeds (with a max line length of 256k).
8918 # Instead, let's just punt: use the minimum linelength reported by
8919 # all of the supported platforms: 8192 (on NT/2K/XP).
8920 lt_cv_sys_max_cmd_len=8192;
8921 ;;
8922
8923 mint*)
8924 # On MiNT this can take a long time and run out of memory.
8925 lt_cv_sys_max_cmd_len=8192;
8926 ;;
8927
8928 amigaos*)
8929 # On AmigaOS with pdksh, this test takes hours, literally.
8930 # So we just punt and use a minimum line length of 8192.
8931 lt_cv_sys_max_cmd_len=8192;
8932 ;;
8933
8934 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8935 # This has been around since 386BSD, at least. Likely further.
8936 if test -x /sbin/sysctl; then
8937 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8938 elif test -x /usr/sbin/sysctl; then
8939 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8940 else
8941 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8942 fi
8943 # And add a safety zone
8944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8946 ;;
8947
8948 interix*)
8949 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8950 lt_cv_sys_max_cmd_len=196608
8951 ;;
8952
8953 os2*)
8954 # The test takes a long time on OS/2.
8955 lt_cv_sys_max_cmd_len=8192
8956 ;;
8957
8958 osf*)
8959 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8960 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8961 # nice to cause kernel panics so lets avoid the loop below.
8962 # First set a reasonable default.
8963 lt_cv_sys_max_cmd_len=16384
8964 #
8965 if test -x /sbin/sysconfig; then
8966 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8967 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8968 esac
8969 fi
8970 ;;
8971 sco3.2v5*)
8972 lt_cv_sys_max_cmd_len=102400
8973 ;;
8974 sysv5* | sco5v6* | sysv4.2uw2*)
8975 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8976 if test -n "$kargmax"; then
8977 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8978 else
8979 lt_cv_sys_max_cmd_len=32768
8980 fi
8981 ;;
8982 *)
8983 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8984 if test -n "$lt_cv_sys_max_cmd_len" && \
8985 test undefined != "$lt_cv_sys_max_cmd_len"; then
8986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8988 else
8989 # Make teststring a little bigger before we do anything with it.
8990 # a 1K string should be a reasonable start.
8991 for i in 1 2 3 4 5 6 7 8; do
8992 teststring=$teststring$teststring
8993 done
8994 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8995 # If test is not a shell built-in, we'll probably end up computing a
8996 # maximum length that is only half of the actual maximum length, but
8997 # we can't tell.
8998 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8999 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9000 test 17 != "$i" # 1/2 MB should be enough
9001 do
9002 i=`expr $i + 1`
9003 teststring=$teststring$teststring
9004 done
9005 # Only check the string length outside the loop.
9006 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9007 teststring=
9008 # Add a significant safety factor because C++ compilers can tack on
9009 # massive amounts of additional arguments before passing them to the
9010 # linker. It appears as though 1/2 is a usable value.
9011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9012 fi
9013 ;;
9014 esac
9015
9016fi
9017
9018if test -n "$lt_cv_sys_max_cmd_len"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9020$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9021else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9023$as_echo "none" >&6; }
9024fi
9025max_cmd_len=$lt_cv_sys_max_cmd_len
9026
9027
9028
9029
9030
9031
9032: ${CP="cp -f"}
9033: ${MV="mv -f"}
9034: ${RM="rm -f"}
9035
9036if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9037 lt_unset=unset
9038else
9039 lt_unset=false
9040fi
9041
9042
9043
9044
9045
9046# test EBCDIC or ASCII
9047case `echo X|tr X '\101'` in
9048 A) # ASCII based system
9049 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9050 lt_SP2NL='tr \040 \012'
9051 lt_NL2SP='tr \015\012 \040\040'
9052 ;;
9053 *) # EBCDIC based system
9054 lt_SP2NL='tr \100 \n'
9055 lt_NL2SP='tr \r\n \100\100'
9056 ;;
9057esac
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9068$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9069if ${lt_cv_to_host_file_cmd+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071else
9072 case $host in
9073 *-*-mingw* )
9074 case $build in
9075 *-*-mingw* ) # actually msys
9076 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9077 ;;
9078 *-*-cygwin* )
9079 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9080 ;;
9081 * ) # otherwise, assume *nix
9082 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9083 ;;
9084 esac
9085 ;;
9086 *-*-cygwin* )
9087 case $build in
9088 *-*-mingw* ) # actually msys
9089 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9090 ;;
9091 *-*-cygwin* )
9092 lt_cv_to_host_file_cmd=func_convert_file_noop
9093 ;;
9094 * ) # otherwise, assume *nix
9095 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9096 ;;
9097 esac
9098 ;;
9099 * ) # unhandled hosts (and "normal" native builds)
9100 lt_cv_to_host_file_cmd=func_convert_file_noop
9101 ;;
9102esac
9103
9104fi
9105
9106to_host_file_cmd=$lt_cv_to_host_file_cmd
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9108$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9109
9110
9111
9112
9113
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9115$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9116if ${lt_cv_to_tool_file_cmd+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118else
9119 #assume ordinary cross tools, or native build.
9120lt_cv_to_tool_file_cmd=func_convert_file_noop
9121case $host in
9122 *-*-mingw* )
9123 case $build in
9124 *-*-mingw* ) # actually msys
9125 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9126 ;;
9127 esac
9128 ;;
9129esac
9130
9131fi
9132
9133to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9135$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9136
9137
9138
9139
9140
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9142$as_echo_n "checking for $LD option to reload object files... " >&6; }
9143if ${lt_cv_ld_reload_flag+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145else
9146 lt_cv_ld_reload_flag='-r'
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9149$as_echo "$lt_cv_ld_reload_flag" >&6; }
9150reload_flag=$lt_cv_ld_reload_flag
9151case $reload_flag in
9152"" | " "*) ;;
9153*) reload_flag=" $reload_flag" ;;
9154esac
9155reload_cmds='$LD$reload_flag -o $output$reload_objs'
9156case $host_os in
9157 cygwin* | mingw* | pw32* | cegcc*)
9158 if test yes != "$GCC"; then
9159 reload_cmds=false
9160 fi
9161 ;;
9162 darwin*)
9163 if test yes = "$GCC"; then
9164 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9165 else
9166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9167 fi
9168 ;;
9169esac
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179if test -n "$ac_tool_prefix"; then
9180 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9181set dummy ${ac_tool_prefix}objdump; ac_word=$2
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183$as_echo_n "checking for $ac_word... " >&6; }
9184if ${ac_cv_prog_OBJDUMP+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186else
9187 if test -n "$OBJDUMP"; then
9188 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9189else
9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191for as_dir in $PATH
9192do
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9200 fi
9201done
9202 done
9203IFS=$as_save_IFS
9204
9205fi
9206fi
9207OBJDUMP=$ac_cv_prog_OBJDUMP
9208if test -n "$OBJDUMP"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9210$as_echo "$OBJDUMP" >&6; }
9211else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213$as_echo "no" >&6; }
9214fi
9215
9216
9217fi
9218if test -z "$ac_cv_prog_OBJDUMP"; then
9219 ac_ct_OBJDUMP=$OBJDUMP
9220 # Extract the first word of "objdump", so it can be a program name with args.
9221set dummy objdump; ac_word=$2
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223$as_echo_n "checking for $ac_word... " >&6; }
9224if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226else
9227 if test -n "$ac_ct_OBJDUMP"; then
9228 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9229else
9230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231for as_dir in $PATH
9232do
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9240 fi
9241done
9242 done
9243IFS=$as_save_IFS
9244
9245fi
9246fi
9247ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9248if test -n "$ac_ct_OBJDUMP"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9250$as_echo "$ac_ct_OBJDUMP" >&6; }
9251else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253$as_echo "no" >&6; }
9254fi
9255
9256 if test "x$ac_ct_OBJDUMP" = x; then
9257 OBJDUMP="false"
9258 else
9259 case $cross_compiling:$ac_tool_warned in
9260yes:)
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9263ac_tool_warned=yes ;;
9264esac
9265 OBJDUMP=$ac_ct_OBJDUMP
9266 fi
9267else
9268 OBJDUMP="$ac_cv_prog_OBJDUMP"
9269fi
9270
9271test -z "$OBJDUMP" && OBJDUMP=objdump
9272
9273
9274
9275
9276
9277
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9279$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9280if ${lt_cv_deplibs_check_method+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282else
9283 lt_cv_file_magic_cmd='$MAGIC_CMD'
9284lt_cv_file_magic_test_file=
9285lt_cv_deplibs_check_method='unknown'
9286# Need to set the preceding variable on all platforms that support
9287# interlibrary dependencies.
9288# 'none' -- dependencies not supported.
9289# 'unknown' -- same as none, but documents that we really don't know.
9290# 'pass_all' -- all dependencies passed with no checks.
9291# 'test_compile' -- check by making test program.
9292# 'file_magic [[regex]]' -- check by looking for files in library path
9293# that responds to the $file_magic_cmd with a given extended regex.
9294# If you have 'file' or equivalent on your system and you're not sure
9295# whether 'pass_all' will *always* work, you probably want this one.
9296
9297case $host_os in
9298aix[4-9]*)
9299 lt_cv_deplibs_check_method=pass_all
9300 ;;
9301
9302beos*)
9303 lt_cv_deplibs_check_method=pass_all
9304 ;;
9305
9306bsdi[45]*)
9307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9308 lt_cv_file_magic_cmd='/usr/bin/file -L'
9309 lt_cv_file_magic_test_file=/shlib/libc.so
9310 ;;
9311
9312cygwin*)
9313 # func_win32_libid is a shell function defined in ltmain.sh
9314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9315 lt_cv_file_magic_cmd='func_win32_libid'
9316 ;;
9317
9318mingw* | pw32*)
9319 # Base MSYS/MinGW do not provide the 'file' command needed by
9320 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9321 # unless we find 'file', for example because we are cross-compiling.
9322 if ( file / ) >/dev/null 2>&1; then
9323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9324 lt_cv_file_magic_cmd='func_win32_libid'
9325 else
9326 # Keep this pattern in sync with the one in func_win32_libid.
9327 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9328 lt_cv_file_magic_cmd='$OBJDUMP -f'
9329 fi
9330 ;;
9331
9332cegcc*)
9333 # use the weaker test based on 'objdump'. See mingw*.
9334 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9335 lt_cv_file_magic_cmd='$OBJDUMP -f'
9336 ;;
9337
9338darwin* | rhapsody*)
9339 lt_cv_deplibs_check_method=pass_all
9340 ;;
9341
9342freebsd* | dragonfly*)
9343 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9344 case $host_cpu in
9345 i*86 )
9346 # Not sure whether the presence of OpenBSD here was a mistake.
9347 # Let's accept both of them until this is cleared up.
9348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9349 lt_cv_file_magic_cmd=/usr/bin/file
9350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9351 ;;
9352 esac
9353 else
9354 lt_cv_deplibs_check_method=pass_all
9355 fi
9356 ;;
9357
9358haiku*)
9359 lt_cv_deplibs_check_method=pass_all
9360 ;;
9361
9362hpux10.20* | hpux11*)
9363 lt_cv_file_magic_cmd=/usr/bin/file
9364 case $host_cpu in
9365 ia64*)
9366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9368 ;;
9369 hppa*64*)
9370 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]'
9371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9372 ;;
9373 *)
9374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9375 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9376 ;;
9377 esac
9378 ;;
9379
9380interix[3-9]*)
9381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9383 ;;
9384
9385irix5* | irix6* | nonstopux*)
9386 case $LD in
9387 *-32|*"-32 ") libmagic=32-bit;;
9388 *-n32|*"-n32 ") libmagic=N32;;
9389 *-64|*"-64 ") libmagic=64-bit;;
9390 *) libmagic=never-match;;
9391 esac
9392 lt_cv_deplibs_check_method=pass_all
9393 ;;
9394
9395# This must be glibc/ELF.
9396linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9397 lt_cv_deplibs_check_method=pass_all
9398 ;;
9399
9400netbsd* | netbsdelf*-gnu)
9401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9403 else
9404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9405 fi
9406 ;;
9407
9408newos6*)
9409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9410 lt_cv_file_magic_cmd=/usr/bin/file
9411 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9412 ;;
9413
9414*nto* | *qnx*)
9415 lt_cv_deplibs_check_method=pass_all
9416 ;;
9417
9418openbsd* | bitrig*)
9419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9421 else
9422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9423 fi
9424 ;;
9425
9426osf3* | osf4* | osf5*)
9427 lt_cv_deplibs_check_method=pass_all
9428 ;;
9429
9430rdos*)
9431 lt_cv_deplibs_check_method=pass_all
9432 ;;
9433
9434solaris*)
9435 lt_cv_deplibs_check_method=pass_all
9436 ;;
9437
9438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9439 lt_cv_deplibs_check_method=pass_all
9440 ;;
9441
9442sysv4 | sysv4.3*)
9443 case $host_vendor in
9444 motorola)
9445 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]'
9446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9447 ;;
9448 ncr)
9449 lt_cv_deplibs_check_method=pass_all
9450 ;;
9451 sequent)
9452 lt_cv_file_magic_cmd='/bin/file'
9453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9454 ;;
9455 sni)
9456 lt_cv_file_magic_cmd='/bin/file'
9457 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9458 lt_cv_file_magic_test_file=/lib/libc.so
9459 ;;
9460 siemens)
9461 lt_cv_deplibs_check_method=pass_all
9462 ;;
9463 pc)
9464 lt_cv_deplibs_check_method=pass_all
9465 ;;
9466 esac
9467 ;;
9468
9469tpf*)
9470 lt_cv_deplibs_check_method=pass_all
9471 ;;
9472os2*)
9473 lt_cv_deplibs_check_method=pass_all
9474 ;;
9475esac
9476
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9479$as_echo "$lt_cv_deplibs_check_method" >&6; }
9480
9481file_magic_glob=
9482want_nocaseglob=no
9483if test "$build" = "$host"; then
9484 case $host_os in
9485 mingw* | pw32*)
9486 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9487 want_nocaseglob=yes
9488 else
9489 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9490 fi
9491 ;;
9492 esac
9493fi
9494
9495file_magic_cmd=$lt_cv_file_magic_cmd
9496deplibs_check_method=$lt_cv_deplibs_check_method
9497test -z "$deplibs_check_method" && deplibs_check_method=unknown
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520if test -n "$ac_tool_prefix"; then
9521 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9522set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524$as_echo_n "checking for $ac_word... " >&6; }
9525if ${ac_cv_prog_DLLTOOL+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527else
9528 if test -n "$DLLTOOL"; then
9529 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9530else
9531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532for as_dir in $PATH
9533do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
9536 for ac_exec_ext in '' $ac_executable_extensions; do
9537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 break 2
9541 fi
9542done
9543 done
9544IFS=$as_save_IFS
9545
9546fi
9547fi
9548DLLTOOL=$ac_cv_prog_DLLTOOL
9549if test -n "$DLLTOOL"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9551$as_echo "$DLLTOOL" >&6; }
9552else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554$as_echo "no" >&6; }
9555fi
9556
9557
9558fi
9559if test -z "$ac_cv_prog_DLLTOOL"; then
9560 ac_ct_DLLTOOL=$DLLTOOL
9561 # Extract the first word of "dlltool", so it can be a program name with args.
9562set dummy dlltool; ac_word=$2
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564$as_echo_n "checking for $ac_word... " >&6; }
9565if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567else
9568 if test -n "$ac_ct_DLLTOOL"; then
9569 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9570else
9571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572for as_dir in $PATH
9573do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9581 fi
9582done
9583 done
9584IFS=$as_save_IFS
9585
9586fi
9587fi
9588ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9589if test -n "$ac_ct_DLLTOOL"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9591$as_echo "$ac_ct_DLLTOOL" >&6; }
9592else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
9595fi
9596
9597 if test "x$ac_ct_DLLTOOL" = x; then
9598 DLLTOOL="false"
9599 else
9600 case $cross_compiling:$ac_tool_warned in
9601yes:)
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9604ac_tool_warned=yes ;;
9605esac
9606 DLLTOOL=$ac_ct_DLLTOOL
9607 fi
9608else
9609 DLLTOOL="$ac_cv_prog_DLLTOOL"
9610fi
9611
9612test -z "$DLLTOOL" && DLLTOOL=dlltool
9613
9614
9615
9616
9617
9618
9619
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9621$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9622if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624else
9625 lt_cv_sharedlib_from_linklib_cmd='unknown'
9626
9627case $host_os in
9628cygwin* | mingw* | pw32* | cegcc*)
9629 # two different shell functions defined in ltmain.sh;
9630 # decide which one to use based on capabilities of $DLLTOOL
9631 case `$DLLTOOL --help 2>&1` in
9632 *--identify-strict*)
9633 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9634 ;;
9635 *)
9636 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9637 ;;
9638 esac
9639 ;;
9640*)
9641 # fallback: assume linklib IS sharedlib
9642 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9643 ;;
9644esac
9645
9646fi
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9648$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9649sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9650test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9651
9652
9653
9654
9655
9656
9657
9658if test -n "$ac_tool_prefix"; then
9659 for ac_prog in ar
9660 do
9661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9662set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if ${ac_cv_prog_AR+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667else
9668 if test -n "$AR"; then
9669 ac_cv_prog_AR="$AR" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9681 fi
9682done
9683 done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688AR=$ac_cv_prog_AR
9689if test -n "$AR"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9691$as_echo "$AR" >&6; }
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697
9698 test -n "$AR" && break
9699 done
9700fi
9701if test -z "$AR"; then
9702 ac_ct_AR=$AR
9703 for ac_prog in ar
9704do
9705 # Extract the first word of "$ac_prog", so it can be a program name with args.
9706set dummy $ac_prog; ac_word=$2
9707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708$as_echo_n "checking for $ac_word... " >&6; }
9709if ${ac_cv_prog_ac_ct_AR+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711else
9712 if test -n "$ac_ct_AR"; then
9713 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9714else
9715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716for as_dir in $PATH
9717do
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9722 ac_cv_prog_ac_ct_AR="$ac_prog"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726done
9727 done
9728IFS=$as_save_IFS
9729
9730fi
9731fi
9732ac_ct_AR=$ac_cv_prog_ac_ct_AR
9733if test -n "$ac_ct_AR"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9735$as_echo "$ac_ct_AR" >&6; }
9736else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738$as_echo "no" >&6; }
9739fi
9740
9741
9742 test -n "$ac_ct_AR" && break
9743done
9744
9745 if test "x$ac_ct_AR" = x; then
9746 AR="false"
9747 else
9748 case $cross_compiling:$ac_tool_warned in
9749yes:)
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9752ac_tool_warned=yes ;;
9753esac
9754 AR=$ac_ct_AR
9755 fi
9756fi
9757
9758: ${AR=ar}
9759: ${AR_FLAGS=cru}
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9772$as_echo_n "checking for archiver @FILE support... " >&6; }
9773if ${lt_cv_ar_at_file+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775else
9776 lt_cv_ar_at_file=no
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h. */
9779
9780int main (void)
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_compile "$LINENO"; then :
9788 echo conftest.$ac_objext > conftest.lst
9789 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9791 (eval $lt_ar_try) 2>&5
9792 ac_status=$?
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; }
9795 if test 0 -eq "$ac_status"; then
9796 # Ensure the archiver fails upon bogus file names.
9797 rm -f conftest.$ac_objext libconftest.a
9798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9799 (eval $lt_ar_try) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }
9803 if test 0 -ne "$ac_status"; then
9804 lt_cv_ar_at_file=@
9805 fi
9806 fi
9807 rm -f conftest.* libconftest.a
9808
9809fi
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9814$as_echo "$lt_cv_ar_at_file" >&6; }
9815
9816if test no = "$lt_cv_ar_at_file"; then
9817 archiver_list_spec=
9818else
9819 archiver_list_spec=$lt_cv_ar_at_file
9820fi
9821
9822
9823
9824
9825
9826
9827
9828if test -n "$ac_tool_prefix"; then
9829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9830set dummy ${ac_tool_prefix}strip; ac_word=$2
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9832$as_echo_n "checking for $ac_word... " >&6; }
9833if ${ac_cv_prog_STRIP+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835else
9836 if test -n "$STRIP"; then
9837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9838else
9839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840for as_dir in $PATH
9841do
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
9845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 break 2
9849 fi
9850done
9851 done
9852IFS=$as_save_IFS
9853
9854fi
9855fi
9856STRIP=$ac_cv_prog_STRIP
9857if test -n "$STRIP"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9859$as_echo "$STRIP" >&6; }
9860else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
9863fi
9864
9865
9866fi
9867if test -z "$ac_cv_prog_STRIP"; then
9868 ac_ct_STRIP=$STRIP
9869 # Extract the first word of "strip", so it can be a program name with args.
9870set dummy strip; ac_word=$2
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872$as_echo_n "checking for $ac_word... " >&6; }
9873if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875else
9876 if test -n "$ac_ct_STRIP"; then
9877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9878else
9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880for as_dir in $PATH
9881do
9882 IFS=$as_save_IFS
9883 test -z "$as_dir" && as_dir=.
9884 for ac_exec_ext in '' $ac_executable_extensions; do
9885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9886 ac_cv_prog_ac_ct_STRIP="strip"
9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 break 2
9889 fi
9890done
9891 done
9892IFS=$as_save_IFS
9893
9894fi
9895fi
9896ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9897if test -n "$ac_ct_STRIP"; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9899$as_echo "$ac_ct_STRIP" >&6; }
9900else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902$as_echo "no" >&6; }
9903fi
9904
9905 if test "x$ac_ct_STRIP" = x; then
9906 STRIP=":"
9907 else
9908 case $cross_compiling:$ac_tool_warned in
9909yes:)
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9912ac_tool_warned=yes ;;
9913esac
9914 STRIP=$ac_ct_STRIP
9915 fi
9916else
9917 STRIP="$ac_cv_prog_STRIP"
9918fi
9919
9920test -z "$STRIP" && STRIP=:
9921
9922
9923
9924
9925
9926
9927if test -n "$ac_tool_prefix"; then
9928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9929set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9931$as_echo_n "checking for $ac_word... " >&6; }
9932if ${ac_cv_prog_RANLIB+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934else
9935 if test -n "$RANLIB"; then
9936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9937else
9938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939for as_dir in $PATH
9940do
9941 IFS=$as_save_IFS
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 break 2
9948 fi
9949done
9950 done
9951IFS=$as_save_IFS
9952
9953fi
9954fi
9955RANLIB=$ac_cv_prog_RANLIB
9956if test -n "$RANLIB"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9958$as_echo "$RANLIB" >&6; }
9959else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961$as_echo "no" >&6; }
9962fi
9963
9964
9965fi
9966if test -z "$ac_cv_prog_RANLIB"; then
9967 ac_ct_RANLIB=$RANLIB
9968 # Extract the first word of "ranlib", so it can be a program name with args.
9969set dummy ranlib; ac_word=$2
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971$as_echo_n "checking for $ac_word... " >&6; }
9972if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9973 $as_echo_n "(cached) " >&6
9974else
9975 if test -n "$ac_ct_RANLIB"; then
9976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9985 ac_cv_prog_ac_ct_RANLIB="ranlib"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9988 fi
9989done
9990 done
9991IFS=$as_save_IFS
9992
9993fi
9994fi
9995ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9996if test -n "$ac_ct_RANLIB"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9998$as_echo "$ac_ct_RANLIB" >&6; }
9999else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
10002fi
10003
10004 if test "x$ac_ct_RANLIB" = x; then
10005 RANLIB=":"
10006 else
10007 case $cross_compiling:$ac_tool_warned in
10008yes:)
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10011ac_tool_warned=yes ;;
10012esac
10013 RANLIB=$ac_ct_RANLIB
10014 fi
10015else
10016 RANLIB="$ac_cv_prog_RANLIB"
10017fi
10018
10019test -z "$RANLIB" && RANLIB=:
10020
10021
10022
10023
10024
10025
10026# Determine commands to create old-style static archives.
10027old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10028old_postinstall_cmds='chmod 644 $oldlib'
10029old_postuninstall_cmds=
10030
10031if test -n "$RANLIB"; then
10032 case $host_os in
10033 bitrig* | openbsd*)
10034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10035 ;;
10036 *)
10037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10038 ;;
10039 esac
10040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10041fi
10042
10043case $host_os in
10044 darwin*)
10045 lock_old_archive_extraction=yes ;;
10046 *)
10047 lock_old_archive_extraction=no ;;
10048esac
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088# If no C compiler was specified, use CC.
10089LTCC=${LTCC-"$CC"}
10090
10091# If no C compiler flags were specified, use CFLAGS.
10092LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10093
10094# Allow CC to be a program name with arguments.
10095compiler=$CC
10096
10097
10098# Check for command to grab the raw symbol name followed by C symbol from nm.
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10100$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10101if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103else
10104
10105# These are sane defaults that work on at least a few old systems.
10106# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10107
10108# Character class describing NM global symbol codes.
10109symcode='[BCDEGRST]'
10110
10111# Regexp to match symbols that can be accessed directly from C.
10112sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10113
10114# Define system-specific variables.
10115case $host_os in
10116aix*)
10117 symcode='[BCDT]'
10118 ;;
10119cygwin* | mingw* | pw32* | cegcc*)
10120 symcode='[ABCDGISTW]'
10121 ;;
10122hpux*)
10123 if test ia64 = "$host_cpu"; then
10124 symcode='[ABCDEGRST]'
10125 fi
10126 ;;
10127irix* | nonstopux*)
10128 symcode='[BCDEGRST]'
10129 ;;
10130osf*)
10131 symcode='[BCDEGQRST]'
10132 ;;
10133solaris*)
10134 symcode='[BDRT]'
10135 ;;
10136sco3.2v5*)
10137 symcode='[DT]'
10138 ;;
10139sysv4.2uw2*)
10140 symcode='[DT]'
10141 ;;
10142sysv5* | sco5v6* | unixware* | OpenUNIX*)
10143 symcode='[ABDT]'
10144 ;;
10145sysv4)
10146 symcode='[DFNSTU]'
10147 ;;
10148esac
10149
10150# If we're using GNU nm, then use its standard symbol codes.
10151case `$NM -V 2>&1` in
10152*GNU* | *'with BFD'*)
10153 symcode='[ABCDGIRSTW]' ;;
10154esac
10155
10156if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10157 # Gets list of data symbols to import.
10158 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10159 # Adjust the below global symbol transforms to fixup imported variables.
10160 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10161 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10162 lt_c_name_lib_hook="\
10163 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10164 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10165else
10166 # Disable hooks by default.
10167 lt_cv_sys_global_symbol_to_import=
10168 lt_cdecl_hook=
10169 lt_c_name_hook=
10170 lt_c_name_lib_hook=
10171fi
10172
10173# Transform an extracted symbol line into a proper C declaration.
10174# Some systems (esp. on ia64) link data and code symbols differently,
10175# so use this general approach.
10176lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10177$lt_cdecl_hook\
10178" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10179" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10180
10181# Transform an extracted symbol line into symbol name and symbol address
10182lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10183$lt_c_name_hook\
10184" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10185" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10186
10187# Transform an extracted symbol line into symbol name with lib prefix and
10188# symbol address.
10189lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10190$lt_c_name_lib_hook\
10191" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10192" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10193" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10194
10195# Handle CRLF in mingw tool chain
10196opt_cr=
10197case $build_os in
10198mingw*)
10199 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10200 ;;
10201esac
10202
10203# Try without a prefix underscore, then with it.
10204for ac_symprfx in "" "_"; do
10205
10206 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10207 symxfrm="\\1 $ac_symprfx\\2 \\2"
10208
10209 # Write the raw and C identifiers.
10210 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10211 # Fake it for dumpbin and say T for any non-static function,
10212 # D for any global variable and I for any imported variable.
10213 # Also find C++ and __fastcall symbols from MSVC++,
10214 # which start with @ or ?.
10215 lt_cv_sys_global_symbol_pipe="$AWK '"\
10216" {last_section=section; section=\$ 3};"\
10217" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10218" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10219" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10220" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10221" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10222" \$ 0!~/External *\|/{next};"\
10223" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10224" {if(hide[section]) next};"\
10225" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10226" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10227" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10228" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10229" ' prfx=^$ac_symprfx"
10230 else
10231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10232 fi
10233 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10234
10235 # Check to see that the pipe works correctly.
10236 pipe_works=no
10237
10238 rm -f conftest*
10239 cat > conftest.$ac_ext <<_LT_EOF
10240#ifdef __cplusplus
10241extern "C" {
10242#endif
10243char nm_test_var;
10244void nm_test_func(void);
10245void nm_test_func(void){}
10246#ifdef __cplusplus
10247}
10248#endif
10249int main(){nm_test_var='a';nm_test_func();return(0);}
10250_LT_EOF
10251
10252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10253 (eval $ac_compile) 2>&5
10254 ac_status=$?
10255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10256 test $ac_status = 0; }; then
10257 # Now try to grab the symbols.
10258 nlist=conftest.nm
10259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10260 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10261 ac_status=$?
10262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263 test $ac_status = 0; } && test -s "$nlist"; then
10264 # Try sorting and uniquifying the output.
10265 if sort "$nlist" | uniq > "$nlist"T; then
10266 mv -f "$nlist"T "$nlist"
10267 else
10268 rm -f "$nlist"T
10269 fi
10270
10271 # Make sure that we snagged all the symbols we need.
10272 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10273 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10274 cat <<_LT_EOF > conftest.$ac_ext
10275/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10276#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10277/* DATA imports from DLLs on WIN32 can't be const, because runtime
10278 relocations are performed -- see ld's documentation on pseudo-relocs. */
10279# define LT_DLSYM_CONST
10280#elif defined __osf__
10281/* This system does not cope well with relocations in const data. */
10282# define LT_DLSYM_CONST
10283#else
10284# define LT_DLSYM_CONST const
10285#endif
10286
10287#ifdef __cplusplus
10288extern "C" {
10289#endif
10290
10291_LT_EOF
10292 # Now generate the symbol file.
10293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10294
10295 cat <<_LT_EOF >> conftest.$ac_ext
10296
10297/* The mapping between symbol names and symbols. */
10298LT_DLSYM_CONST struct {
10299 const char *name;
10300 void *address;
10301}
10302lt__PROGRAM__LTX_preloaded_symbols[] =
10303{
10304 { "@PROGRAM@", (void *) 0 },
10305_LT_EOF
10306 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10307 cat <<\_LT_EOF >> conftest.$ac_ext
10308 {0, (void *) 0}
10309};
10310
10311/* This works around a problem in FreeBSD linker */
10312#ifdef FREEBSD_WORKAROUND
10313static const void *lt_preloaded_setup() {
10314 return lt__PROGRAM__LTX_preloaded_symbols;
10315}
10316#endif
10317
10318#ifdef __cplusplus
10319}
10320#endif
10321_LT_EOF
10322 # Now try linking the two files.
10323 mv -f conftest.$ac_objext conftstm.$ac_objext
10324 lt_globsym_save_LIBS=$LIBS
10325 lt_globsym_save_CFLAGS=$CFLAGS
10326 LIBS=conftstm.$ac_objext
10327 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10329 (eval $ac_link) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10333 pipe_works=yes
10334 fi
10335 LIBS=$lt_globsym_save_LIBS
10336 CFLAGS=$lt_globsym_save_CFLAGS
10337 else
10338 echo "cannot find nm_test_func in $nlist" >&5
10339 fi
10340 else
10341 echo "cannot find nm_test_var in $nlist" >&5
10342 fi
10343 else
10344 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10345 fi
10346 else
10347 echo "$progname: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10349 fi
10350 rm -rf conftest* conftst*
10351
10352 # Do not use the global_symbol_pipe unless it works.
10353 if test yes = "$pipe_works"; then
10354 break
10355 else
10356 lt_cv_sys_global_symbol_pipe=
10357 fi
10358done
10359
10360fi
10361
10362if test -z "$lt_cv_sys_global_symbol_pipe"; then
10363 lt_cv_sys_global_symbol_to_cdecl=
10364fi
10365if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10367$as_echo "failed" >&6; }
10368else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10370$as_echo "ok" >&6; }
10371fi
10372
10373# Response file support.
10374if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10375 nm_file_list_spec='@'
10376elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10377 nm_file_list_spec='@'
10378fi
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10417$as_echo_n "checking for sysroot... " >&6; }
10418
10419# Check whether --with-sysroot was given.
10420if test "${with_sysroot+set}" = set; then :
10421 withval=$with_sysroot;
10422else
10423 with_sysroot=no
10424fi
10425
10426
10427lt_sysroot=
10428case $with_sysroot in #(
10429 yes)
10430 if test yes = "$GCC"; then
10431 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10432 fi
10433 ;; #(
10434 /*)
10435 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10436 ;; #(
10437 no|'')
10438 ;; #(
10439 *)
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10441$as_echo "$with_sysroot" >&6; }
10442 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10443 ;;
10444esac
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10447$as_echo "${lt_sysroot:-no}" >&6; }
10448
10449
10450
10451
10452
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10454$as_echo_n "checking for a working dd... " >&6; }
10455if ${ac_cv_path_lt_DD+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457else
10458 printf 0123456789abcdef0123456789abcdef >conftest.i
10459cat conftest.i conftest.i >conftest2.i
10460: ${lt_DD:=$DD}
10461if test -z "$lt_DD"; then
10462 ac_path_lt_DD_found=false
10463 # Loop through the user's path and test for each of PROGNAME-LIST
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_prog in dd; do
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10472 as_fn_executable_p "$ac_path_lt_DD" || continue
10473if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10474 cmp -s conftest.i conftest.out \
10475 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10476fi
10477 $ac_path_lt_DD_found && break 3
10478 done
10479 done
10480 done
10481IFS=$as_save_IFS
10482 if test -z "$ac_cv_path_lt_DD"; then
10483 :
10484 fi
10485else
10486 ac_cv_path_lt_DD=$lt_DD
10487fi
10488
10489rm -f conftest.i conftest2.i conftest.out
10490fi
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10492$as_echo "$ac_cv_path_lt_DD" >&6; }
10493
10494
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10496$as_echo_n "checking how to truncate binary pipes... " >&6; }
10497if ${lt_cv_truncate_bin+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499else
10500 printf 0123456789abcdef0123456789abcdef >conftest.i
10501cat conftest.i conftest.i >conftest2.i
10502lt_cv_truncate_bin=
10503if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10504 cmp -s conftest.i conftest.out \
10505 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10506fi
10507rm -f conftest.i conftest2.i conftest.out
10508test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10511$as_echo "$lt_cv_truncate_bin" >&6; }
10512
10513
10514
10515
10516
10517
10518
10519# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10520func_cc_basename ()
10521{
10522 for cc_temp in $*""; do
10523 case $cc_temp in
10524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10526 \-*) ;;
10527 *) break;;
10528 esac
10529 done
10530 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10531}
10532
10533# Check whether --enable-libtool-lock was given.
10534if test "${enable_libtool_lock+set}" = set; then :
10535 enableval=$enable_libtool_lock;
10536fi
10537
10538test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10539
10540# Some flags need to be propagated to the compiler or linker for good
10541# libtool support.
10542case $host in
10543ia64-*-hpux*)
10544 # Find out what ABI is being produced by ac_compile, and set mode
10545 # options accordingly.
10546 echo 'int i;' > conftest.$ac_ext
10547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10548 (eval $ac_compile) 2>&5
10549 ac_status=$?
10550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551 test $ac_status = 0; }; then
10552 case `/usr/bin/file conftest.$ac_objext` in
10553 *ELF-32*)
10554 HPUX_IA64_MODE=32
10555 ;;
10556 *ELF-64*)
10557 HPUX_IA64_MODE=64
10558 ;;
10559 esac
10560 fi
10561 rm -rf conftest*
10562 ;;
10563*-*-irix6*)
10564 # Find out what ABI is being produced by ac_compile, and set linker
10565 # options accordingly.
10566 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10568 (eval $ac_compile) 2>&5
10569 ac_status=$?
10570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10571 test $ac_status = 0; }; then
10572 if test yes = "$lt_cv_prog_gnu_ld"; then
10573 case `/usr/bin/file conftest.$ac_objext` in
10574 *32-bit*)
10575 LD="${LD-ld} -melf32bsmip"
10576 ;;
10577 *N32*)
10578 LD="${LD-ld} -melf32bmipn32"
10579 ;;
10580 *64-bit*)
10581 LD="${LD-ld} -melf64bmip"
10582 ;;
10583 esac
10584 else
10585 case `/usr/bin/file conftest.$ac_objext` in
10586 *32-bit*)
10587 LD="${LD-ld} -32"
10588 ;;
10589 *N32*)
10590 LD="${LD-ld} -n32"
10591 ;;
10592 *64-bit*)
10593 LD="${LD-ld} -64"
10594 ;;
10595 esac
10596 fi
10597 fi
10598 rm -rf conftest*
10599 ;;
10600
10601mips64*-*linux*)
10602 # Find out what ABI is being produced by ac_compile, and set linker
10603 # options accordingly.
10604 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10606 (eval $ac_compile) 2>&5
10607 ac_status=$?
10608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10609 test $ac_status = 0; }; then
10610 emul=elf
10611 case `/usr/bin/file conftest.$ac_objext` in
10612 *32-bit*)
10613 emul="${emul}32"
10614 ;;
10615 *64-bit*)
10616 emul="${emul}64"
10617 ;;
10618 esac
10619 case `/usr/bin/file conftest.$ac_objext` in
10620 *MSB*)
10621 emul="${emul}btsmip"
10622 ;;
10623 *LSB*)
10624 emul="${emul}ltsmip"
10625 ;;
10626 esac
10627 case `/usr/bin/file conftest.$ac_objext` in
10628 *N32*)
10629 emul="${emul}n32"
10630 ;;
10631 esac
10632 LD="${LD-ld} -m $emul"
10633 fi
10634 rm -rf conftest*
10635 ;;
10636
10637x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10638s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10639 # Find out what ABI is being produced by ac_compile, and set linker
10640 # options accordingly. Note that the listed cases only cover the
10641 # situations where additional linker options are needed (such as when
10642 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10643 # vice versa); the common cases where no linker options are needed do
10644 # not appear in the list.
10645 echo 'int i;' > conftest.$ac_ext
10646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10647 (eval $ac_compile) 2>&5
10648 ac_status=$?
10649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10650 test $ac_status = 0; }; then
10651 case `/usr/bin/file conftest.o` in
10652 *32-bit*)
10653 case $host in
10654 x86_64-*kfreebsd*-gnu)
10655 LD="${LD-ld} -m elf_i386_fbsd"
10656 ;;
10657 x86_64-*linux*)
10658 case `/usr/bin/file conftest.o` in
10659 *x86-64*)
10660 LD="${LD-ld} -m elf32_x86_64"
10661 ;;
10662 *)
10663 LD="${LD-ld} -m elf_i386"
10664 ;;
10665 esac
10666 ;;
10667 powerpc64le-*linux*)
10668 LD="${LD-ld} -m elf32lppclinux"
10669 ;;
10670 powerpc64-*linux*)
10671 LD="${LD-ld} -m elf32ppclinux"
10672 ;;
10673 s390x-*linux*)
10674 LD="${LD-ld} -m elf_s390"
10675 ;;
10676 sparc64-*linux*)
10677 LD="${LD-ld} -m elf32_sparc"
10678 ;;
10679 esac
10680 ;;
10681 *64-bit*)
10682 case $host in
10683 x86_64-*kfreebsd*-gnu)
10684 LD="${LD-ld} -m elf_x86_64_fbsd"
10685 ;;
10686 x86_64-*linux*)
10687 LD="${LD-ld} -m elf_x86_64"
10688 ;;
10689 powerpcle-*linux*)
10690 LD="${LD-ld} -m elf64lppc"
10691 ;;
10692 powerpc-*linux*)
10693 LD="${LD-ld} -m elf64ppc"
10694 ;;
10695 s390*-*linux*|s390*-*tpf*)
10696 LD="${LD-ld} -m elf64_s390"
10697 ;;
10698 sparc*-*linux*)
10699 LD="${LD-ld} -m elf64_sparc"
10700 ;;
10701 esac
10702 ;;
10703 esac
10704 fi
10705 rm -rf conftest*
10706 ;;
10707
10708*-*-sco3.2v5*)
10709 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10710 SAVE_CFLAGS=$CFLAGS
10711 CFLAGS="$CFLAGS -belf"
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10713$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10714if ${lt_cv_cc_needs_belf+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716else
10717 ac_ext=c
10718ac_cpp='$CPP $CPPFLAGS'
10719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h. */
10725
10726int main (void)
10727{
10728
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733if ac_fn_c_try_link "$LINENO"; then :
10734 lt_cv_cc_needs_belf=yes
10735else
10736 lt_cv_cc_needs_belf=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 ac_ext=c
10741ac_cpp='$CPP $CPPFLAGS'
10742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744ac_compiler_gnu=$ac_cv_c_compiler_gnu
10745
10746fi
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10748$as_echo "$lt_cv_cc_needs_belf" >&6; }
10749 if test yes != "$lt_cv_cc_needs_belf"; then
10750 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10751 CFLAGS=$SAVE_CFLAGS
10752 fi
10753 ;;
10754*-*solaris*)
10755 # Find out what ABI is being produced by ac_compile, and set linker
10756 # options accordingly.
10757 echo 'int i;' > conftest.$ac_ext
10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10759 (eval $ac_compile) 2>&5
10760 ac_status=$?
10761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; }; then
10763 case `/usr/bin/file conftest.o` in
10764 *64-bit*)
10765 case $lt_cv_prog_gnu_ld in
10766 yes*)
10767 case $host in
10768 i?86-*-solaris*|x86_64-*-solaris*)
10769 LD="${LD-ld} -m elf_x86_64"
10770 ;;
10771 sparc*-*-solaris*)
10772 LD="${LD-ld} -m elf64_sparc"
10773 ;;
10774 esac
10775 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10776 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10777 LD=${LD-ld}_sol2
10778 fi
10779 ;;
10780 *)
10781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10782 LD="${LD-ld} -64"
10783 fi
10784 ;;
10785 esac
10786 ;;
10787 esac
10788 fi
10789 rm -rf conftest*
10790 ;;
10791esac
10792
10793need_locks=$enable_libtool_lock
10794
10795if test -n "$ac_tool_prefix"; then
10796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10797set dummy ${ac_tool_prefix}mt; ac_word=$2
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799$as_echo_n "checking for $ac_word... " >&6; }
10800if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802else
10803 if test -n "$MANIFEST_TOOL"; then
10804 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10805else
10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $PATH
10808do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10813 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817done
10818 done
10819IFS=$as_save_IFS
10820
10821fi
10822fi
10823MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10824if test -n "$MANIFEST_TOOL"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10826$as_echo "$MANIFEST_TOOL" >&6; }
10827else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
10830fi
10831
10832
10833fi
10834if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10835 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10836 # Extract the first word of "mt", so it can be a program name with args.
10837set dummy mt; ac_word=$2
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839$as_echo_n "checking for $ac_word... " >&6; }
10840if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842else
10843 if test -n "$ac_ct_MANIFEST_TOOL"; then
10844 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10845else
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858 done
10859IFS=$as_save_IFS
10860
10861fi
10862fi
10863ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10864if test -n "$ac_ct_MANIFEST_TOOL"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10866$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10867else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869$as_echo "no" >&6; }
10870fi
10871
10872 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10873 MANIFEST_TOOL=":"
10874 else
10875 case $cross_compiling:$ac_tool_warned in
10876yes:)
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10879ac_tool_warned=yes ;;
10880esac
10881 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10882 fi
10883else
10884 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10885fi
10886
10887test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10889$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10890if ${lt_cv_path_mainfest_tool+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892else
10893 lt_cv_path_mainfest_tool=no
10894 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10895 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10896 cat conftest.err >&5
10897 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10898 lt_cv_path_mainfest_tool=yes
10899 fi
10900 rm -f conftest*
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10903$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10904if test yes != "$lt_cv_path_mainfest_tool"; then
10905 MANIFEST_TOOL=:
10906fi
10907
10908
10909
10910
10911
10912
10913 case $host_os in
10914 rhapsody* | darwin*)
10915 if test -n "$ac_tool_prefix"; then
10916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10917set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919$as_echo_n "checking for $ac_word... " >&6; }
10920if ${ac_cv_prog_DSYMUTIL+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923 if test -n "$DSYMUTIL"; then
10924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10925else
10926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927for as_dir in $PATH
10928do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937done
10938 done
10939IFS=$as_save_IFS
10940
10941fi
10942fi
10943DSYMUTIL=$ac_cv_prog_DSYMUTIL
10944if test -n "$DSYMUTIL"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10946$as_echo "$DSYMUTIL" >&6; }
10947else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949$as_echo "no" >&6; }
10950fi
10951
10952
10953fi
10954if test -z "$ac_cv_prog_DSYMUTIL"; then
10955 ac_ct_DSYMUTIL=$DSYMUTIL
10956 # Extract the first word of "dsymutil", so it can be a program name with args.
10957set dummy dsymutil; ac_word=$2
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
10960if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 if test -n "$ac_ct_DSYMUTIL"; then
10964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10965else
10966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977done
10978 done
10979IFS=$as_save_IFS
10980
10981fi
10982fi
10983ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10984if test -n "$ac_ct_DSYMUTIL"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10986$as_echo "$ac_ct_DSYMUTIL" >&6; }
10987else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
10990fi
10991
10992 if test "x$ac_ct_DSYMUTIL" = x; then
10993 DSYMUTIL=":"
10994 else
10995 case $cross_compiling:$ac_tool_warned in
10996yes:)
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10999ac_tool_warned=yes ;;
11000esac
11001 DSYMUTIL=$ac_ct_DSYMUTIL
11002 fi
11003else
11004 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11005fi
11006
11007 if test -n "$ac_tool_prefix"; then
11008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11009set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011$as_echo_n "checking for $ac_word... " >&6; }
11012if ${ac_cv_prog_NMEDIT+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014else
11015 if test -n "$NMEDIT"; then
11016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030 done
11031IFS=$as_save_IFS
11032
11033fi
11034fi
11035NMEDIT=$ac_cv_prog_NMEDIT
11036if test -n "$NMEDIT"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11038$as_echo "$NMEDIT" >&6; }
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043
11044
11045fi
11046if test -z "$ac_cv_prog_NMEDIT"; then
11047 ac_ct_NMEDIT=$NMEDIT
11048 # Extract the first word of "nmedit", so it can be a program name with args.
11049set dummy nmedit; ac_word=$2
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051$as_echo_n "checking for $ac_word... " >&6; }
11052if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054else
11055 if test -n "$ac_ct_NMEDIT"; then
11056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11068 fi
11069done
11070 done
11071IFS=$as_save_IFS
11072
11073fi
11074fi
11075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11076if test -n "$ac_ct_NMEDIT"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11078$as_echo "$ac_ct_NMEDIT" >&6; }
11079else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
11082fi
11083
11084 if test "x$ac_ct_NMEDIT" = x; then
11085 NMEDIT=":"
11086 else
11087 case $cross_compiling:$ac_tool_warned in
11088yes:)
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11091ac_tool_warned=yes ;;
11092esac
11093 NMEDIT=$ac_ct_NMEDIT
11094 fi
11095else
11096 NMEDIT="$ac_cv_prog_NMEDIT"
11097fi
11098
11099 if test -n "$ac_tool_prefix"; then
11100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11101set dummy ${ac_tool_prefix}lipo; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
11104if ${ac_cv_prog_LIPO+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106else
11107 if test -n "$LIPO"; then
11108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11109else
11110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $PATH
11112do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121done
11122 done
11123IFS=$as_save_IFS
11124
11125fi
11126fi
11127LIPO=$ac_cv_prog_LIPO
11128if test -n "$LIPO"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11130$as_echo "$LIPO" >&6; }
11131else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136
11137fi
11138if test -z "$ac_cv_prog_LIPO"; then
11139 ac_ct_LIPO=$LIPO
11140 # Extract the first word of "lipo", so it can be a program name with args.
11141set dummy lipo; ac_word=$2
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143$as_echo_n "checking for $ac_word... " >&6; }
11144if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146else
11147 if test -n "$ac_ct_LIPO"; then
11148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11149else
11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157 ac_cv_prog_ac_ct_LIPO="lipo"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161done
11162 done
11163IFS=$as_save_IFS
11164
11165fi
11166fi
11167ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11168if test -n "$ac_ct_LIPO"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11170$as_echo "$ac_ct_LIPO" >&6; }
11171else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
11174fi
11175
11176 if test "x$ac_ct_LIPO" = x; then
11177 LIPO=":"
11178 else
11179 case $cross_compiling:$ac_tool_warned in
11180yes:)
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11183ac_tool_warned=yes ;;
11184esac
11185 LIPO=$ac_ct_LIPO
11186 fi
11187else
11188 LIPO="$ac_cv_prog_LIPO"
11189fi
11190
11191 if test -n "$ac_tool_prefix"; then
11192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11193set dummy ${ac_tool_prefix}otool; ac_word=$2
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if ${ac_cv_prog_OTOOL+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198else
11199 if test -n "$OTOOL"; then
11200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214 done
11215IFS=$as_save_IFS
11216
11217fi
11218fi
11219OTOOL=$ac_cv_prog_OTOOL
11220if test -n "$OTOOL"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11222$as_echo "$OTOOL" >&6; }
11223else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
11226fi
11227
11228
11229fi
11230if test -z "$ac_cv_prog_OTOOL"; then
11231 ac_ct_OTOOL=$OTOOL
11232 # Extract the first word of "otool", so it can be a program name with args.
11233set dummy otool; ac_word=$2
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238else
11239 if test -n "$ac_ct_OTOOL"; then
11240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11241else
11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_prog_ac_ct_OTOOL="otool"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253done
11254 done
11255IFS=$as_save_IFS
11256
11257fi
11258fi
11259ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11260if test -n "$ac_ct_OTOOL"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11262$as_echo "$ac_ct_OTOOL" >&6; }
11263else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266fi
11267
11268 if test "x$ac_ct_OTOOL" = x; then
11269 OTOOL=":"
11270 else
11271 case $cross_compiling:$ac_tool_warned in
11272yes:)
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11275ac_tool_warned=yes ;;
11276esac
11277 OTOOL=$ac_ct_OTOOL
11278 fi
11279else
11280 OTOOL="$ac_cv_prog_OTOOL"
11281fi
11282
11283 if test -n "$ac_tool_prefix"; then
11284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11285set dummy ${ac_tool_prefix}otool64; ac_word=$2
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if ${ac_cv_prog_OTOOL64+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290else
11291 if test -n "$OTOOL64"; then
11292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11293else
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306 done
11307IFS=$as_save_IFS
11308
11309fi
11310fi
11311OTOOL64=$ac_cv_prog_OTOOL64
11312if test -n "$OTOOL64"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11314$as_echo "$OTOOL64" >&6; }
11315else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317$as_echo "no" >&6; }
11318fi
11319
11320
11321fi
11322if test -z "$ac_cv_prog_OTOOL64"; then
11323 ac_ct_OTOOL64=$OTOOL64
11324 # Extract the first word of "otool64", so it can be a program name with args.
11325set dummy otool64; ac_word=$2
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327$as_echo_n "checking for $ac_word... " >&6; }
11328if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11329 $as_echo_n "(cached) " >&6
11330else
11331 if test -n "$ac_ct_OTOOL64"; then
11332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11333else
11334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_ac_ct_OTOOL64="otool64"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345done
11346 done
11347IFS=$as_save_IFS
11348
11349fi
11350fi
11351ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11352if test -n "$ac_ct_OTOOL64"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11354$as_echo "$ac_ct_OTOOL64" >&6; }
11355else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357$as_echo "no" >&6; }
11358fi
11359
11360 if test "x$ac_ct_OTOOL64" = x; then
11361 OTOOL64=":"
11362 else
11363 case $cross_compiling:$ac_tool_warned in
11364yes:)
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11367ac_tool_warned=yes ;;
11368esac
11369 OTOOL64=$ac_ct_OTOOL64
11370 fi
11371else
11372 OTOOL64="$ac_cv_prog_OTOOL64"
11373fi
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11402$as_echo_n "checking for -single_module linker flag... " >&6; }
11403if ${lt_cv_apple_cc_single_mod+:} false; then :
11404 $as_echo_n "(cached) " >&6
11405else
11406 lt_cv_apple_cc_single_mod=no
11407 if test -z "$LT_MULTI_MODULE"; then
11408 # By default we will add the -single_module flag. You can override
11409 # by either setting the environment variable LT_MULTI_MODULE
11410 # non-empty at configure time, or by adding -multi_module to the
11411 # link flags.
11412 rm -rf libconftest.dylib*
11413 echo "int foo(void){return 1;}" > conftest.c
11414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11415-dynamiclib -Wl,-single_module conftest.c" >&5
11416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11418 _lt_result=$?
11419 # If there is a non-empty error log, and "single_module"
11420 # appears in it, assume the flag caused a linker warning
11421 if test -s conftest.err && $GREP single_module conftest.err; then
11422 cat conftest.err >&5
11423 # Otherwise, if the output was created with a 0 exit code from
11424 # the compiler, it worked.
11425 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11426 lt_cv_apple_cc_single_mod=yes
11427 else
11428 cat conftest.err >&5
11429 fi
11430 rm -rf libconftest.dylib*
11431 rm -f conftest.*
11432 fi
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11435$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11438$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11439if ${lt_cv_ld_exported_symbols_list+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441else
11442 lt_cv_ld_exported_symbols_list=no
11443 save_LDFLAGS=$LDFLAGS
11444 echo "_main" > conftest.sym
11445 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447/* end confdefs.h. */
11448
11449int main (void)
11450{
11451
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457 lt_cv_ld_exported_symbols_list=yes
11458else
11459 lt_cv_ld_exported_symbols_list=no
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LDFLAGS=$save_LDFLAGS
11464
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11467$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11468
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11470$as_echo_n "checking for -force_load linker flag... " >&6; }
11471if ${lt_cv_ld_force_load+:} false; then :
11472 $as_echo_n "(cached) " >&6
11473else
11474 lt_cv_ld_force_load=no
11475 cat > conftest.c << _LT_EOF
11476int forced_loaded() { return 2;}
11477_LT_EOF
11478 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11479 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11480 echo "$AR cru libconftest.a conftest.o" >&5
11481 $AR cru libconftest.a conftest.o 2>&5
11482 echo "$RANLIB libconftest.a" >&5
11483 $RANLIB libconftest.a 2>&5
11484 cat > conftest.c << _LT_EOF
11485int main() { return 0;}
11486_LT_EOF
11487 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11488 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11489 _lt_result=$?
11490 if test -s conftest.err && $GREP force_load conftest.err; then
11491 cat conftest.err >&5
11492 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11493 lt_cv_ld_force_load=yes
11494 else
11495 cat conftest.err >&5
11496 fi
11497 rm -f conftest.err libconftest.a conftest conftest.c
11498 rm -rf conftest.dSYM
11499
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11502$as_echo "$lt_cv_ld_force_load" >&6; }
11503 case $host_os in
11504 rhapsody* | darwin1.[012])
11505 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11506 darwin1.*)
11507 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11508 darwin*) # darwin 5.x on
11509 # if running on 10.5 or later, the deployment target defaults
11510 # to the OS version, if on x86, and 10.4, the deployment
11511 # target defaults to 10.4. Don't you love it?
11512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11514 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11515 10.[012][,.]*)
11516 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11517 10.*)
11518 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11519 esac
11520 ;;
11521 esac
11522 if test yes = "$lt_cv_apple_cc_single_mod"; then
11523 _lt_dar_single_mod='$single_module'
11524 fi
11525 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11526 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11527 else
11528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11529 fi
11530 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11531 _lt_dsymutil='~$DSYMUTIL $lib || :'
11532 else
11533 _lt_dsymutil=
11534 fi
11535 ;;
11536 esac
11537
11538# func_munge_path_list VARIABLE PATH
11539# -----------------------------------
11540# VARIABLE is name of variable containing _space_ separated list of
11541# directories to be munged by the contents of PATH, which is string
11542# having a format:
11543# "DIR[:DIR]:"
11544# string "DIR[ DIR]" will be prepended to VARIABLE
11545# ":DIR[:DIR]"
11546# string "DIR[ DIR]" will be appended to VARIABLE
11547# "DIRP[:DIRP]::[DIRA:]DIRA"
11548# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11549# "DIRA[ DIRA]" will be appended to VARIABLE
11550# "DIR[:DIR]"
11551# VARIABLE will be replaced by "DIR[ DIR]"
11552func_munge_path_list ()
11553{
11554 case x$2 in
11555 x)
11556 ;;
11557 *:)
11558 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11559 ;;
11560 x:*)
11561 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11562 ;;
11563 *::*)
11564 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11565 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11566 ;;
11567 *)
11568 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11569 ;;
11570 esac
11571}
11572
11573for ac_header in dlfcn.h
11574do :
11575 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11576"
11577if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11578 cat >>confdefs.h <<_ACEOF
11579#define HAVE_DLFCN_H 1
11580_ACEOF
11581
11582fi
11583
11584done
11585
11586# ------------------------------------ #
11587# Determine libtool default behavior #
11588# ------------------------------------ #
11589
11590#
11591# Default behavior is to enable shared and static libraries on systems
11592# where libtool knows how to build both library versions, and does not
11593# require separate configuration and build runs for each flavor.
11594#
11595
11596xc_lt_want_enable_shared='yes'
11597xc_lt_want_enable_static='yes'
11598
11599#
11600# User may have disabled shared or static libraries.
11601#
11602case "x$enable_shared" in # (
11603 xno)
11604 xc_lt_want_enable_shared='no'
11605 ;;
11606esac
11607case "x$enable_static" in # (
11608 xno)
11609 xc_lt_want_enable_static='no'
11610 ;;
11611esac
11612if test "x$xc_lt_want_enable_shared" = 'xno' &&
11613 test "x$xc_lt_want_enable_static" = 'xno'; then
11614 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11615fi
11616
11617#
11618# Default behavior on systems that require independent configuration
11619# and build runs for shared and static is to enable shared libraries
11620# and disable static ones. On these systems option '--disable-shared'
11621# must be used in order to build a proper static library.
11622#
11623
11624if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11625 test "x$xc_lt_want_enable_static" = 'xyes'; then
11626 case $host_os in # (
11627 pw32* | cegcc* | os2* | aix*)
11628 xc_lt_want_enable_static='no'
11629 ;;
11630 esac
11631fi
11632
11633#
11634# Make libtool aware of current shared and static library preferences
11635# taking in account that, depending on host characteristics, libtool
11636# may modify these option preferences later in this configure script.
11637#
11638
11639enable_shared=$xc_lt_want_enable_shared
11640enable_static=$xc_lt_want_enable_static
11641
11642#
11643# Default behavior is to build PIC objects for shared libraries and
11644# non-PIC objects for static libraries.
11645#
11646
11647xc_lt_want_with_pic='default'
11648
11649#
11650# User may have specified PIC preference.
11651#
11652
11653case "x$with_pic" in # ((
11654 xno)
11655 xc_lt_want_with_pic='no'
11656 ;;
11657 xyes)
11658 xc_lt_want_with_pic='yes'
11659 ;;
11660esac
11661
11662#
11663# Default behavior on some systems where building a shared library out
11664# of non-PIC compiled objects will fail with following linker error
11665# "relocation R_X86_64_32 can not be used when making a shared object"
11666# is to build PIC objects even for static libraries. This behavior may
11667# be overridden using 'configure --disable-shared --without-pic'.
11668#
11669
11670if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11671 case $host_cpu in # (
11672 x86_64 | amd64 | ia64)
11673 case $host_os in # (
11674 linux* | freebsd*)
11675 xc_lt_want_with_pic='yes'
11676 ;;
11677 esac
11678 ;;
11679 esac
11680fi
11681
11682#
11683# Make libtool aware of current PIC preference taking in account that,
11684# depending on host characteristics, libtool may modify PIC default
11685# behavior to fit host system idiosyncrasies later in this script.
11686#
11687
11688with_pic=$xc_lt_want_with_pic
11689
11690## ----------------------- ##
11691## Start of libtool code ##
11692## ----------------------- ##
11693
11694
11695
11696
11697# Set options
11698enable_win32_dll=yes
11699
11700case $host in
11701*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11702 if test -n "$ac_tool_prefix"; then
11703 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11704set dummy ${ac_tool_prefix}as; ac_word=$2
11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706$as_echo_n "checking for $ac_word... " >&6; }
11707if ${ac_cv_prog_AS+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709else
11710 if test -n "$AS"; then
11711 ac_cv_prog_AS="$AS" # Let the user override the test.
11712else
11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_prog_AS="${ac_tool_prefix}as"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724done
11725 done
11726IFS=$as_save_IFS
11727
11728fi
11729fi
11730AS=$ac_cv_prog_AS
11731if test -n "$AS"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11733$as_echo "$AS" >&6; }
11734else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736$as_echo "no" >&6; }
11737fi
11738
11739
11740fi
11741if test -z "$ac_cv_prog_AS"; then
11742 ac_ct_AS=$AS
11743 # Extract the first word of "as", so it can be a program name with args.
11744set dummy as; ac_word=$2
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746$as_echo_n "checking for $ac_word... " >&6; }
11747if ${ac_cv_prog_ac_ct_AS+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749else
11750 if test -n "$ac_ct_AS"; then
11751 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11752else
11753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754for as_dir in $PATH
11755do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11760 ac_cv_prog_ac_ct_AS="as"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764done
11765 done
11766IFS=$as_save_IFS
11767
11768fi
11769fi
11770ac_ct_AS=$ac_cv_prog_ac_ct_AS
11771if test -n "$ac_ct_AS"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11773$as_echo "$ac_ct_AS" >&6; }
11774else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776$as_echo "no" >&6; }
11777fi
11778
11779 if test "x$ac_ct_AS" = x; then
11780 AS="false"
11781 else
11782 case $cross_compiling:$ac_tool_warned in
11783yes:)
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11786ac_tool_warned=yes ;;
11787esac
11788 AS=$ac_ct_AS
11789 fi
11790else
11791 AS="$ac_cv_prog_AS"
11792fi
11793
11794 if test -n "$ac_tool_prefix"; then
11795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11796set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798$as_echo_n "checking for $ac_word... " >&6; }
11799if ${ac_cv_prog_DLLTOOL+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801else
11802 if test -n "$DLLTOOL"; then
11803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11804else
11805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $PATH
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816done
11817 done
11818IFS=$as_save_IFS
11819
11820fi
11821fi
11822DLLTOOL=$ac_cv_prog_DLLTOOL
11823if test -n "$DLLTOOL"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11825$as_echo "$DLLTOOL" >&6; }
11826else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828$as_echo "no" >&6; }
11829fi
11830
11831
11832fi
11833if test -z "$ac_cv_prog_DLLTOOL"; then
11834 ac_ct_DLLTOOL=$DLLTOOL
11835 # Extract the first word of "dlltool", so it can be a program name with args.
11836set dummy dlltool; ac_word=$2
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838$as_echo_n "checking for $ac_word... " >&6; }
11839if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841else
11842 if test -n "$ac_ct_DLLTOOL"; then
11843 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11844else
11845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846for as_dir in $PATH
11847do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856done
11857 done
11858IFS=$as_save_IFS
11859
11860fi
11861fi
11862ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11863if test -n "$ac_ct_DLLTOOL"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11865$as_echo "$ac_ct_DLLTOOL" >&6; }
11866else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
11869fi
11870
11871 if test "x$ac_ct_DLLTOOL" = x; then
11872 DLLTOOL="false"
11873 else
11874 case $cross_compiling:$ac_tool_warned in
11875yes:)
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11878ac_tool_warned=yes ;;
11879esac
11880 DLLTOOL=$ac_ct_DLLTOOL
11881 fi
11882else
11883 DLLTOOL="$ac_cv_prog_DLLTOOL"
11884fi
11885
11886 if test -n "$ac_tool_prefix"; then
11887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11888set dummy ${ac_tool_prefix}objdump; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_prog_OBJDUMP+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893else
11894 if test -n "$OBJDUMP"; then
11895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908done
11909 done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914OBJDUMP=$ac_cv_prog_OBJDUMP
11915if test -n "$OBJDUMP"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11917$as_echo "$OBJDUMP" >&6; }
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923
11924fi
11925if test -z "$ac_cv_prog_OBJDUMP"; then
11926 ac_ct_OBJDUMP=$OBJDUMP
11927 # Extract the first word of "objdump", so it can be a program name with args.
11928set dummy objdump; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
11931if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933else
11934 if test -n "$ac_ct_OBJDUMP"; then
11935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948done
11949 done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11955if test -n "$ac_ct_OBJDUMP"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11957$as_echo "$ac_ct_OBJDUMP" >&6; }
11958else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963 if test "x$ac_ct_OBJDUMP" = x; then
11964 OBJDUMP="false"
11965 else
11966 case $cross_compiling:$ac_tool_warned in
11967yes:)
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970ac_tool_warned=yes ;;
11971esac
11972 OBJDUMP=$ac_ct_OBJDUMP
11973 fi
11974else
11975 OBJDUMP="$ac_cv_prog_OBJDUMP"
11976fi
11977
11978 ;;
11979esac
11980
11981test -z "$AS" && AS=as
11982
11983
11984
11985
11986
11987test -z "$DLLTOOL" && DLLTOOL=dlltool
11988
11989
11990
11991
11992
11993test -z "$OBJDUMP" && OBJDUMP=objdump
11994
11995
11996
11997
11998
11999
12000
12001 enable_dlopen=no
12002
12003
12004
12005 # Check whether --enable-shared was given.
12006if test "${enable_shared+set}" = set; then :
12007 enableval=$enable_shared; p=${PACKAGE-default}
12008 case $enableval in
12009 yes) enable_shared=yes ;;
12010 no) enable_shared=no ;;
12011 *)
12012 enable_shared=no
12013 # Look at the argument we got. We use all the common list separators.
12014 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12015 for pkg in $enableval; do
12016 IFS=$lt_save_ifs
12017 if test "X$pkg" = "X$p"; then
12018 enable_shared=yes
12019 fi
12020 done
12021 IFS=$lt_save_ifs
12022 ;;
12023 esac
12024else
12025 enable_shared=yes
12026fi
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036 # Check whether --enable-static was given.
12037if test "${enable_static+set}" = set; then :
12038 enableval=$enable_static; p=${PACKAGE-default}
12039 case $enableval in
12040 yes) enable_static=yes ;;
12041 no) enable_static=no ;;
12042 *)
12043 enable_static=no
12044 # Look at the argument we got. We use all the common list separators.
12045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12046 for pkg in $enableval; do
12047 IFS=$lt_save_ifs
12048 if test "X$pkg" = "X$p"; then
12049 enable_static=yes
12050 fi
12051 done
12052 IFS=$lt_save_ifs
12053 ;;
12054 esac
12055else
12056 enable_static=yes
12057fi
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068# Check whether --with-pic was given.
12069if test "${with_pic+set}" = set; then :
12070 withval=$with_pic; lt_p=${PACKAGE-default}
12071 case $withval in
12072 yes|no) pic_mode=$withval ;;
12073 *)
12074 pic_mode=default
12075 # Look at the argument we got. We use all the common list separators.
12076 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12077 for lt_pkg in $withval; do
12078 IFS=$lt_save_ifs
12079 if test "X$lt_pkg" = "X$lt_p"; then
12080 pic_mode=yes
12081 fi
12082 done
12083 IFS=$lt_save_ifs
12084 ;;
12085 esac
12086else
12087 pic_mode=default
12088fi
12089
12090
12091
12092
12093
12094
12095
12096
12097 # Check whether --enable-fast-install was given.
12098if test "${enable_fast_install+set}" = set; then :
12099 enableval=$enable_fast_install; p=${PACKAGE-default}
12100 case $enableval in
12101 yes) enable_fast_install=yes ;;
12102 no) enable_fast_install=no ;;
12103 *)
12104 enable_fast_install=no
12105 # Look at the argument we got. We use all the common list separators.
12106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12107 for pkg in $enableval; do
12108 IFS=$lt_save_ifs
12109 if test "X$pkg" = "X$p"; then
12110 enable_fast_install=yes
12111 fi
12112 done
12113 IFS=$lt_save_ifs
12114 ;;
12115 esac
12116else
12117 enable_fast_install=yes
12118fi
12119
12120
12121
12122
12123
12124
12125
12126
12127 shared_archive_member_spec=
12128case $host,$enable_shared in
12129power*-*-aix[5-9]*,yes)
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12131$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
12132
12133# Check whether --with-aix-soname was given.
12134if test "${with_aix_soname+set}" = set; then :
12135 withval=$with_aix_soname; case $withval in
12136 aix|svr4|both)
12137 ;;
12138 *)
12139 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12140 ;;
12141 esac
12142 lt_cv_with_aix_soname=$with_aix_soname
12143else
12144 if ${lt_cv_with_aix_soname+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146else
12147 lt_cv_with_aix_soname=aix
12148fi
12149
12150 with_aix_soname=$lt_cv_with_aix_soname
12151fi
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12154$as_echo "$with_aix_soname" >&6; }
12155 if test aix != "$with_aix_soname"; then
12156 # For the AIX way of multilib, we name the shared archive member
12157 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12158 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12159 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12160 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12161 if test 64 = "${OBJECT_MODE-32}"; then
12162 shared_archive_member_spec=shr_64
12163 else
12164 shared_archive_member_spec=shr
12165 fi
12166 fi
12167 ;;
12168*)
12169 with_aix_soname=aix
12170 ;;
12171esac
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182# This can be used to rebuild libtool when needed
12183LIBTOOL_DEPS=$ltmain
12184
12185# Always use our own libtool.
12186LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217test -z "$LN_S" && LN_S="ln -s"
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232if test -n "${ZSH_VERSION+set}"; then
12233 setopt NO_GLOB_SUBST
12234fi
12235
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12237$as_echo_n "checking for objdir... " >&6; }
12238if ${lt_cv_objdir+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240else
12241 rm -f .libs 2>/dev/null
12242mkdir .libs 2>/dev/null
12243if test -d .libs; then
12244 lt_cv_objdir=.libs
12245else
12246 # MS-DOS does not allow filenames that begin with a dot.
12247 lt_cv_objdir=_libs
12248fi
12249rmdir .libs 2>/dev/null
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12252$as_echo "$lt_cv_objdir" >&6; }
12253objdir=$lt_cv_objdir
12254
12255
12256
12257
12258
12259cat >>confdefs.h <<_ACEOF
12260#define LT_OBJDIR "$lt_cv_objdir/"
12261_ACEOF
12262
12263
12264
12265
12266case $host_os in
12267aix3*)
12268 # AIX sometimes has problems with the GCC collect2 program. For some
12269 # reason, if we set the COLLECT_NAMES environment variable, the problems
12270 # vanish in a puff of smoke.
12271 if test set != "${COLLECT_NAMES+set}"; then
12272 COLLECT_NAMES=
12273 export COLLECT_NAMES
12274 fi
12275 ;;
12276esac
12277
12278# Global variables:
12279ofile=libtool
12280can_build_shared=yes
12281
12282# All known linkers require a '.a' archive for static linking (except MSVC,
12283# which needs '.lib').
12284libext=a
12285
12286with_gnu_ld=$lt_cv_prog_gnu_ld
12287
12288old_CC=$CC
12289old_CFLAGS=$CFLAGS
12290
12291# Set sane defaults for various variables
12292test -z "$CC" && CC=cc
12293test -z "$LTCC" && LTCC=$CC
12294test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12295test -z "$LD" && LD=ld
12296test -z "$ac_objext" && ac_objext=o
12297
12298func_cc_basename $compiler
12299cc_basename=$func_cc_basename_result
12300
12301
12302# Only perform the check for file, if the check method requires it
12303test -z "$MAGIC_CMD" && MAGIC_CMD=file
12304case $deplibs_check_method in
12305file_magic*)
12306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12308$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12309if ${lt_cv_path_MAGIC_CMD+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311else
12312 case $MAGIC_CMD in
12313[\\/*] | ?:[\\/]*)
12314 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12315 ;;
12316*)
12317 lt_save_MAGIC_CMD=$MAGIC_CMD
12318 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12320 for ac_dir in $ac_dummy; do
12321 IFS=$lt_save_ifs
12322 test -z "$ac_dir" && ac_dir=.
12323 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12324 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12325 if test -n "$file_magic_test_file"; then
12326 case $deplibs_check_method in
12327 "file_magic "*)
12328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12331 $EGREP "$file_magic_regex" > /dev/null; then
12332 :
12333 else
12334 cat <<_LT_EOF 1>&2
12335
12336*** Warning: the command libtool uses to detect shared libraries,
12337*** $file_magic_cmd, produces output that libtool cannot recognize.
12338*** The result is that libtool may fail to recognize shared libraries
12339*** as such. This will affect the creation of libtool libraries that
12340*** depend on shared libraries, but programs linked with such libtool
12341*** libraries will work regardless of this problem. Nevertheless, you
12342*** may want to report the problem to your system manager and/or to
12343*** bug-libtool@gnu.org
12344
12345_LT_EOF
12346 fi ;;
12347 esac
12348 fi
12349 break
12350 fi
12351 done
12352 IFS=$lt_save_ifs
12353 MAGIC_CMD=$lt_save_MAGIC_CMD
12354 ;;
12355esac
12356fi
12357
12358MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12359if test -n "$MAGIC_CMD"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12361$as_echo "$MAGIC_CMD" >&6; }
12362else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364$as_echo "no" >&6; }
12365fi
12366
12367
12368
12369
12370
12371if test -z "$lt_cv_path_MAGIC_CMD"; then
12372 if test -n "$ac_tool_prefix"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12374$as_echo_n "checking for file... " >&6; }
12375if ${lt_cv_path_MAGIC_CMD+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377else
12378 case $MAGIC_CMD in
12379[\\/*] | ?:[\\/]*)
12380 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12381 ;;
12382*)
12383 lt_save_MAGIC_CMD=$MAGIC_CMD
12384 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12385 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12386 for ac_dir in $ac_dummy; do
12387 IFS=$lt_save_ifs
12388 test -z "$ac_dir" && ac_dir=.
12389 if test -f "$ac_dir/file"; then
12390 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12391 if test -n "$file_magic_test_file"; then
12392 case $deplibs_check_method in
12393 "file_magic "*)
12394 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12395 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12397 $EGREP "$file_magic_regex" > /dev/null; then
12398 :
12399 else
12400 cat <<_LT_EOF 1>&2
12401
12402*** Warning: the command libtool uses to detect shared libraries,
12403*** $file_magic_cmd, produces output that libtool cannot recognize.
12404*** The result is that libtool may fail to recognize shared libraries
12405*** as such. This will affect the creation of libtool libraries that
12406*** depend on shared libraries, but programs linked with such libtool
12407*** libraries will work regardless of this problem. Nevertheless, you
12408*** may want to report the problem to your system manager and/or to
12409*** bug-libtool@gnu.org
12410
12411_LT_EOF
12412 fi ;;
12413 esac
12414 fi
12415 break
12416 fi
12417 done
12418 IFS=$lt_save_ifs
12419 MAGIC_CMD=$lt_save_MAGIC_CMD
12420 ;;
12421esac
12422fi
12423
12424MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12425if test -n "$MAGIC_CMD"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12427$as_echo "$MAGIC_CMD" >&6; }
12428else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430$as_echo "no" >&6; }
12431fi
12432
12433
12434 else
12435 MAGIC_CMD=:
12436 fi
12437fi
12438
12439 fi
12440 ;;
12441esac
12442
12443# Use C for the default configuration in the libtool script
12444
12445lt_save_CC=$CC
12446ac_ext=c
12447ac_cpp='$CPP $CPPFLAGS'
12448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12450ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451
12452
12453# Source file extension for C test sources.
12454ac_ext=c
12455
12456# Object file extension for compiled C test sources.
12457objext=o
12458objext=$objext
12459
12460# Code to be used in simple compile tests
12461lt_simple_compile_test_code="int some_variable = 0;"
12462
12463# Code to be used in simple link tests
12464lt_simple_link_test_code='int main(){return(0);}'
12465
12466
12467
12468
12469
12470
12471
12472# If no C compiler was specified, use CC.
12473LTCC=${LTCC-"$CC"}
12474
12475# If no C compiler flags were specified, use CFLAGS.
12476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12477
12478# Allow CC to be a program name with arguments.
12479compiler=$CC
12480
12481# Save the default compiler, since it gets overwritten when the other
12482# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12483compiler_DEFAULT=$CC
12484
12485# save warnings/boilerplate of simple test code
12486ac_outfile=conftest.$ac_objext
12487echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12488eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12489_lt_compiler_boilerplate=`cat conftest.err`
12490$RM conftest*
12491
12492ac_outfile=conftest.$ac_objext
12493echo "$lt_simple_link_test_code" >conftest.$ac_ext
12494eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12495_lt_linker_boilerplate=`cat conftest.err`
12496$RM -r conftest*
12497
12498
12499## CAVEAT EMPTOR:
12500## There is no encapsulation within the following macros, do not change
12501## the running order or otherwise move them around unless you know exactly
12502## what you are doing...
12503if test -n "$compiler"; then
12504
12505lt_prog_compiler_no_builtin_flag=
12506
12507if test yes = "$GCC"; then
12508 case $cc_basename in
12509 nvcc*)
12510 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12511 *)
12512 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12513 esac
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12516$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12517if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519else
12520 lt_cv_prog_compiler_rtti_exceptions=no
12521 ac_outfile=conftest.$ac_objext
12522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12523 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12524 # Insert the option either (1) after the last *FLAGS variable, or
12525 # (2) before a word containing "conftest.", or (3) at the end.
12526 # Note that $ac_compile itself does not contain backslashes and begins
12527 # with a dollar sign (not a hyphen), so the echo should work correctly.
12528 # The option is referenced via a variable to avoid confusing sed.
12529 lt_compile=`echo "$ac_compile" | $SED \
12530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12532 -e 's:$: $lt_compiler_flag:'`
12533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12534 (eval "$lt_compile" 2>conftest.err)
12535 ac_status=$?
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 if (exit $ac_status) && test -s "$ac_outfile"; then
12539 # The compiler can only warn and ignore the option if not recognized
12540 # So say no if there are warnings other than the usual output.
12541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12544 lt_cv_prog_compiler_rtti_exceptions=yes
12545 fi
12546 fi
12547 $RM conftest*
12548
12549fi
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12551$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12552
12553if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12554 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12555else
12556 :
12557fi
12558
12559fi
12560
12561
12562
12563
12564
12565
12566 lt_prog_compiler_wl=
12567lt_prog_compiler_pic=
12568lt_prog_compiler_static=
12569
12570
12571 if test yes = "$GCC"; then
12572 lt_prog_compiler_wl='-Wl,'
12573 lt_prog_compiler_static='-static'
12574
12575 case $host_os in
12576 aix*)
12577 # All AIX code is PIC.
12578 if test ia64 = "$host_cpu"; then
12579 # AIX 5 now supports IA64 processor
12580 lt_prog_compiler_static='-Bstatic'
12581 fi
12582 lt_prog_compiler_pic='-fPIC'
12583 ;;
12584
12585 amigaos*)
12586 case $host_cpu in
12587 powerpc)
12588 # see comment about AmigaOS4 .so support
12589 lt_prog_compiler_pic='-fPIC'
12590 ;;
12591 m68k)
12592 # FIXME: we need at least 68020 code to build shared libraries, but
12593 # adding the '-m68020' flag to GCC prevents building anything better,
12594 # like '-m68040'.
12595 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12596 ;;
12597 esac
12598 ;;
12599
12600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12601 # PIC is the default for these OSes.
12602 ;;
12603
12604 mingw* | cygwin* | pw32* | os2* | cegcc*)
12605 # This hack is so that the source file can tell whether it is being
12606 # built for inclusion in a dll (and should export symbols for example).
12607 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12608 # (--disable-auto-import) libraries
12609 lt_prog_compiler_pic='-DDLL_EXPORT'
12610 case $host_os in
12611 os2*)
12612 lt_prog_compiler_static='$wl-static'
12613 ;;
12614 esac
12615 ;;
12616
12617 darwin* | rhapsody*)
12618 # PIC is the default on this platform
12619 # Common symbols not allowed in MH_DYLIB files
12620 lt_prog_compiler_pic='-fno-common'
12621 ;;
12622
12623 haiku*)
12624 # PIC is the default for Haiku.
12625 # The "-static" flag exists, but is broken.
12626 lt_prog_compiler_static=
12627 ;;
12628
12629 hpux*)
12630 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12631 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12632 # sets the default TLS model and affects inlining.
12633 case $host_cpu in
12634 hppa*64*)
12635 # +Z the default
12636 ;;
12637 *)
12638 lt_prog_compiler_pic='-fPIC'
12639 ;;
12640 esac
12641 ;;
12642
12643 interix[3-9]*)
12644 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12645 # Instead, we relocate shared libraries at runtime.
12646 ;;
12647
12648 msdosdjgpp*)
12649 # Just because we use GCC doesn't mean we suddenly get shared libraries
12650 # on systems that don't support them.
12651 lt_prog_compiler_can_build_shared=no
12652 enable_shared=no
12653 ;;
12654
12655 *nto* | *qnx*)
12656 # QNX uses GNU C++, but need to define -shared option too, otherwise
12657 # it will coredump.
12658 lt_prog_compiler_pic='-fPIC -shared'
12659 ;;
12660
12661 sysv4*MP*)
12662 if test -d /usr/nec; then
12663 lt_prog_compiler_pic=-Kconform_pic
12664 fi
12665 ;;
12666
12667 *)
12668 lt_prog_compiler_pic='-fPIC'
12669 ;;
12670 esac
12671
12672 case $cc_basename in
12673 nvcc*) # Cuda Compiler Driver 2.2
12674 lt_prog_compiler_wl='-Xlinker '
12675 if test -n "$lt_prog_compiler_pic"; then
12676 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12677 fi
12678 ;;
12679 esac
12680 else
12681 # PORTME Check for flag to pass linker flags through the system compiler.
12682 case $host_os in
12683 aix*)
12684 lt_prog_compiler_wl='-Wl,'
12685 if test ia64 = "$host_cpu"; then
12686 # AIX 5 now supports IA64 processor
12687 lt_prog_compiler_static='-Bstatic'
12688 else
12689 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12690 fi
12691 ;;
12692
12693 darwin* | rhapsody*)
12694 # PIC is the default on this platform
12695 # Common symbols not allowed in MH_DYLIB files
12696 lt_prog_compiler_pic='-fno-common'
12697 case $cc_basename in
12698 nagfor*)
12699 # NAG Fortran compiler
12700 lt_prog_compiler_wl='-Wl,-Wl,,'
12701 lt_prog_compiler_pic='-PIC'
12702 lt_prog_compiler_static='-Bstatic'
12703 ;;
12704 esac
12705 ;;
12706
12707 mingw* | cygwin* | pw32* | os2* | cegcc*)
12708 # This hack is so that the source file can tell whether it is being
12709 # built for inclusion in a dll (and should export symbols for example).
12710 lt_prog_compiler_pic='-DDLL_EXPORT'
12711 case $host_os in
12712 os2*)
12713 lt_prog_compiler_static='$wl-static'
12714 ;;
12715 esac
12716 ;;
12717
12718 hpux9* | hpux10* | hpux11*)
12719 lt_prog_compiler_wl='-Wl,'
12720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12721 # not for PA HP-UX.
12722 case $host_cpu in
12723 hppa*64*|ia64*)
12724 # +Z the default
12725 ;;
12726 *)
12727 lt_prog_compiler_pic='+Z'
12728 ;;
12729 esac
12730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12731 lt_prog_compiler_static='$wl-a ${wl}archive'
12732 ;;
12733
12734 irix5* | irix6* | nonstopux*)
12735 lt_prog_compiler_wl='-Wl,'
12736 # PIC (with -KPIC) is the default.
12737 lt_prog_compiler_static='-non_shared'
12738 ;;
12739
12740 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12741 case $cc_basename in
12742 # old Intel for x86_64, which still supported -KPIC.
12743 ecc*)
12744 lt_prog_compiler_wl='-Wl,'
12745 lt_prog_compiler_pic='-KPIC'
12746 lt_prog_compiler_static='-static'
12747 ;;
12748 # icc used to be incompatible with GCC.
12749 # ICC 10 doesn't accept -KPIC any more.
12750 icc* | ifort*)
12751 lt_prog_compiler_wl='-Wl,'
12752 lt_prog_compiler_pic='-fPIC'
12753 lt_prog_compiler_static='-static'
12754 ;;
12755 # Lahey Fortran 8.1.
12756 lf95*)
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_pic='--shared'
12759 lt_prog_compiler_static='--static'
12760 ;;
12761 nagfor*)
12762 # NAG Fortran compiler
12763 lt_prog_compiler_wl='-Wl,-Wl,,'
12764 lt_prog_compiler_pic='-PIC'
12765 lt_prog_compiler_static='-Bstatic'
12766 ;;
12767 tcc*)
12768 # Fabrice Bellard et al's Tiny C Compiler
12769 lt_prog_compiler_wl='-Wl,'
12770 lt_prog_compiler_pic='-fPIC'
12771 lt_prog_compiler_static='-static'
12772 ;;
12773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12774 # Portland Group compilers (*not* the Pentium gcc compiler,
12775 # which looks to be a dead project)
12776 lt_prog_compiler_wl='-Wl,'
12777 lt_prog_compiler_pic='-fpic'
12778 lt_prog_compiler_static='-Bstatic'
12779 ;;
12780 ccc*)
12781 lt_prog_compiler_wl='-Wl,'
12782 # All Alpha code is PIC.
12783 lt_prog_compiler_static='-non_shared'
12784 ;;
12785 xl* | bgxl* | bgf* | mpixl*)
12786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12787 lt_prog_compiler_wl='-Wl,'
12788 lt_prog_compiler_pic='-qpic'
12789 lt_prog_compiler_static='-qstaticlink'
12790 ;;
12791 *)
12792 case `$CC -V 2>&1 | sed 5q` in
12793 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12795 lt_prog_compiler_pic='-KPIC'
12796 lt_prog_compiler_static='-Bstatic'
12797 lt_prog_compiler_wl=''
12798 ;;
12799 *Sun\ F* | *Sun*Fortran*)
12800 lt_prog_compiler_pic='-KPIC'
12801 lt_prog_compiler_static='-Bstatic'
12802 lt_prog_compiler_wl='-Qoption ld '
12803 ;;
12804 *Sun\ C*)
12805 # Sun C 5.9
12806 lt_prog_compiler_pic='-KPIC'
12807 lt_prog_compiler_static='-Bstatic'
12808 lt_prog_compiler_wl='-Wl,'
12809 ;;
12810 *Intel*\ [CF]*Compiler*)
12811 lt_prog_compiler_wl='-Wl,'
12812 lt_prog_compiler_pic='-fPIC'
12813 lt_prog_compiler_static='-static'
12814 ;;
12815 *Portland\ Group*)
12816 lt_prog_compiler_wl='-Wl,'
12817 lt_prog_compiler_pic='-fpic'
12818 lt_prog_compiler_static='-Bstatic'
12819 ;;
12820 esac
12821 ;;
12822 esac
12823 ;;
12824
12825 newsos6)
12826 lt_prog_compiler_pic='-KPIC'
12827 lt_prog_compiler_static='-Bstatic'
12828 ;;
12829
12830 *nto* | *qnx*)
12831 # QNX uses GNU C++, but need to define -shared option too, otherwise
12832 # it will coredump.
12833 lt_prog_compiler_pic='-fPIC -shared'
12834 ;;
12835
12836 osf3* | osf4* | osf5*)
12837 lt_prog_compiler_wl='-Wl,'
12838 # All OSF/1 code is PIC.
12839 lt_prog_compiler_static='-non_shared'
12840 ;;
12841
12842 rdos*)
12843 lt_prog_compiler_static='-non_shared'
12844 ;;
12845
12846 solaris*)
12847 lt_prog_compiler_pic='-KPIC'
12848 lt_prog_compiler_static='-Bstatic'
12849 case $cc_basename in
12850 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12851 lt_prog_compiler_wl='-Qoption ld ';;
12852 *)
12853 lt_prog_compiler_wl='-Wl,';;
12854 esac
12855 ;;
12856
12857 sunos4*)
12858 lt_prog_compiler_wl='-Qoption ld '
12859 lt_prog_compiler_pic='-PIC'
12860 lt_prog_compiler_static='-Bstatic'
12861 ;;
12862
12863 sysv4 | sysv4.2uw2* | sysv4.3*)
12864 lt_prog_compiler_wl='-Wl,'
12865 lt_prog_compiler_pic='-KPIC'
12866 lt_prog_compiler_static='-Bstatic'
12867 ;;
12868
12869 sysv4*MP*)
12870 if test -d /usr/nec; then
12871 lt_prog_compiler_pic='-Kconform_pic'
12872 lt_prog_compiler_static='-Bstatic'
12873 fi
12874 ;;
12875
12876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12877 lt_prog_compiler_wl='-Wl,'
12878 lt_prog_compiler_pic='-KPIC'
12879 lt_prog_compiler_static='-Bstatic'
12880 ;;
12881
12882 unicos*)
12883 lt_prog_compiler_wl='-Wl,'
12884 lt_prog_compiler_can_build_shared=no
12885 ;;
12886
12887 uts4*)
12888 lt_prog_compiler_pic='-pic'
12889 lt_prog_compiler_static='-Bstatic'
12890 ;;
12891
12892 *)
12893 lt_prog_compiler_can_build_shared=no
12894 ;;
12895 esac
12896 fi
12897
12898case $host_os in
12899 # For platforms that do not support PIC, -DPIC is meaningless:
12900 *djgpp*)
12901 lt_prog_compiler_pic=
12902 ;;
12903 *)
12904 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12905 ;;
12906esac
12907
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12909$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12910if ${lt_cv_prog_compiler_pic+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912else
12913 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12916$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12917lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12918
12919#
12920# Check to make sure the PIC flag actually works.
12921#
12922if test -n "$lt_prog_compiler_pic"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12924$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12925if ${lt_cv_prog_compiler_pic_works+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927else
12928 lt_cv_prog_compiler_pic_works=no
12929 ac_outfile=conftest.$ac_objext
12930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12931 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12932 # Insert the option either (1) after the last *FLAGS variable, or
12933 # (2) before a word containing "conftest.", or (3) at the end.
12934 # Note that $ac_compile itself does not contain backslashes and begins
12935 # with a dollar sign (not a hyphen), so the echo should work correctly.
12936 # The option is referenced via a variable to avoid confusing sed.
12937 lt_compile=`echo "$ac_compile" | $SED \
12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940 -e 's:$: $lt_compiler_flag:'`
12941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12942 (eval "$lt_compile" 2>conftest.err)
12943 ac_status=$?
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 if (exit $ac_status) && test -s "$ac_outfile"; then
12947 # The compiler can only warn and ignore the option if not recognized
12948 # So say no if there are warnings other than the usual output.
12949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12952 lt_cv_prog_compiler_pic_works=yes
12953 fi
12954 fi
12955 $RM conftest*
12956
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12959$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12960
12961if test yes = "$lt_cv_prog_compiler_pic_works"; then
12962 case $lt_prog_compiler_pic in
12963 "" | " "*) ;;
12964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12965 esac
12966else
12967 lt_prog_compiler_pic=
12968 lt_prog_compiler_can_build_shared=no
12969fi
12970
12971fi
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983#
12984# Check to make sure the static flag actually works.
12985#
12986wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12988$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12989if ${lt_cv_prog_compiler_static_works+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991else
12992 lt_cv_prog_compiler_static_works=no
12993 save_LDFLAGS=$LDFLAGS
12994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12997 # The linker can only warn and ignore the option if not recognized
12998 # So say no if there are warnings
12999 if test -s conftest.err; then
13000 # Append any errors to the config.log.
13001 cat conftest.err 1>&5
13002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13004 if diff conftest.exp conftest.er2 >/dev/null; then
13005 lt_cv_prog_compiler_static_works=yes
13006 fi
13007 else
13008 lt_cv_prog_compiler_static_works=yes
13009 fi
13010 fi
13011 $RM -r conftest*
13012 LDFLAGS=$save_LDFLAGS
13013
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13016$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13017
13018if test yes = "$lt_cv_prog_compiler_static_works"; then
13019 :
13020else
13021 lt_prog_compiler_static=
13022fi
13023
13024
13025
13026
13027
13028
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13031$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13032if ${lt_cv_prog_compiler_c_o+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034else
13035 lt_cv_prog_compiler_c_o=no
13036 $RM -r conftest 2>/dev/null
13037 mkdir conftest
13038 cd conftest
13039 mkdir out
13040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13041
13042 lt_compiler_flag="-o out/conftest2.$ac_objext"
13043 # Insert the option either (1) after the last *FLAGS variable, or
13044 # (2) before a word containing "conftest.", or (3) at the end.
13045 # Note that $ac_compile itself does not contain backslashes and begins
13046 # with a dollar sign (not a hyphen), so the echo should work correctly.
13047 lt_compile=`echo "$ac_compile" | $SED \
13048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13050 -e 's:$: $lt_compiler_flag:'`
13051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13052 (eval "$lt_compile" 2>out/conftest.err)
13053 ac_status=$?
13054 cat out/conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13057 then
13058 # The compiler can only warn and ignore the option if not recognized
13059 # So say no if there are warnings
13060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13063 lt_cv_prog_compiler_c_o=yes
13064 fi
13065 fi
13066 chmod u+w . 2>&5
13067 $RM conftest*
13068 # SGI C++ compiler will create directory out/ii_files/ for
13069 # template instantiation
13070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13071 $RM out/* && rmdir out
13072 cd ..
13073 $RM -r conftest
13074 $RM conftest*
13075
13076fi
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13078$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13079
13080
13081
13082
13083
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13086$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13087if ${lt_cv_prog_compiler_c_o+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089else
13090 lt_cv_prog_compiler_c_o=no
13091 $RM -r conftest 2>/dev/null
13092 mkdir conftest
13093 cd conftest
13094 mkdir out
13095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13096
13097 lt_compiler_flag="-o out/conftest2.$ac_objext"
13098 # Insert the option either (1) after the last *FLAGS variable, or
13099 # (2) before a word containing "conftest.", or (3) at the end.
13100 # Note that $ac_compile itself does not contain backslashes and begins
13101 # with a dollar sign (not a hyphen), so the echo should work correctly.
13102 lt_compile=`echo "$ac_compile" | $SED \
13103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13105 -e 's:$: $lt_compiler_flag:'`
13106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13107 (eval "$lt_compile" 2>out/conftest.err)
13108 ac_status=$?
13109 cat out/conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13112 then
13113 # The compiler can only warn and ignore the option if not recognized
13114 # So say no if there are warnings
13115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13118 lt_cv_prog_compiler_c_o=yes
13119 fi
13120 fi
13121 chmod u+w . 2>&5
13122 $RM conftest*
13123 # SGI C++ compiler will create directory out/ii_files/ for
13124 # template instantiation
13125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13126 $RM out/* && rmdir out
13127 cd ..
13128 $RM -r conftest
13129 $RM conftest*
13130
13131fi
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13133$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13134
13135
13136
13137
13138hard_links=nottested
13139if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13140 # do not overwrite the value of need_locks provided by the user
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13142$as_echo_n "checking if we can lock with hard links... " >&6; }
13143 hard_links=yes
13144 $RM conftest*
13145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13146 touch conftest.a
13147 ln conftest.a conftest.b 2>&5 || hard_links=no
13148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13150$as_echo "$hard_links" >&6; }
13151 if test no = "$hard_links"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13153$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13154 need_locks=warn
13155 fi
13156else
13157 need_locks=no
13158fi
13159
13160
13161
13162
13163
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13166$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13167
13168 runpath_var=
13169 allow_undefined_flag=
13170 always_export_symbols=no
13171 archive_cmds=
13172 archive_expsym_cmds=
13173 compiler_needs_object=no
13174 enable_shared_with_static_runtimes=no
13175 export_dynamic_flag_spec=
13176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13177 hardcode_automatic=no
13178 hardcode_direct=no
13179 hardcode_direct_absolute=no
13180 hardcode_libdir_flag_spec=
13181 hardcode_libdir_separator=
13182 hardcode_minus_L=no
13183 hardcode_shlibpath_var=unsupported
13184 inherit_rpath=no
13185 link_all_deplibs=unknown
13186 module_cmds=
13187 module_expsym_cmds=
13188 old_archive_from_new_cmds=
13189 old_archive_from_expsyms_cmds=
13190 thread_safe_flag_spec=
13191 whole_archive_flag_spec=
13192 # include_expsyms should be a list of space-separated symbols to be *always*
13193 # included in the symbol list
13194 include_expsyms=
13195 # exclude_expsyms can be an extended regexp of symbols to exclude
13196 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13197 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13198 # as well as any symbol that contains 'd'.
13199 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13200 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13201 # platforms (ab)use it in PIC code, but their linkers get confused if
13202 # the symbol is explicitly referenced. Since portable code cannot
13203 # rely on this symbol name, it's probably fine to never include it in
13204 # preloaded symbol tables.
13205 # Exclude shared library initialization/finalization symbols.
13206 extract_expsyms_cmds=
13207
13208 case $host_os in
13209 cygwin* | mingw* | pw32* | cegcc*)
13210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13211 # When not using gcc, we currently assume that we are using
13212 # Microsoft Visual C++.
13213 if test yes != "$GCC"; then
13214 with_gnu_ld=no
13215 fi
13216 ;;
13217 interix*)
13218 # we just hope/assume this is gcc and not c89 (= MSVC++)
13219 with_gnu_ld=yes
13220 ;;
13221 openbsd* | bitrig*)
13222 with_gnu_ld=no
13223 ;;
13224 linux* | k*bsd*-gnu | gnu*)
13225 link_all_deplibs=no
13226 ;;
13227 esac
13228
13229 ld_shlibs=yes
13230
13231 # On some targets, GNU ld is compatible enough with the native linker
13232 # that we're better off using the native interface for both.
13233 lt_use_gnu_ld_interface=no
13234 if test yes = "$with_gnu_ld"; then
13235 case $host_os in
13236 aix*)
13237 # The AIX port of GNU ld has always aspired to compatibility
13238 # with the native linker. However, as the warning in the GNU ld
13239 # block says, versions before 2.19.5* couldn't really create working
13240 # shared libraries, regardless of the interface used.
13241 case `$LD -v 2>&1` in
13242 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13243 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13244 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13245 *)
13246 lt_use_gnu_ld_interface=yes
13247 ;;
13248 esac
13249 ;;
13250 *)
13251 lt_use_gnu_ld_interface=yes
13252 ;;
13253 esac
13254 fi
13255
13256 if test yes = "$lt_use_gnu_ld_interface"; then
13257 # If archive_cmds runs LD, not CC, wlarc should be empty
13258 wlarc='$wl'
13259
13260 # Set some defaults for GNU ld with shared library support. These
13261 # are reset later if shared libraries are not supported. Putting them
13262 # here allows them to be overridden if necessary.
13263 runpath_var=LD_RUN_PATH
13264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13265 export_dynamic_flag_spec='$wl--export-dynamic'
13266 # ancient GNU ld didn't support --whole-archive et. al.
13267 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13268 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13269 else
13270 whole_archive_flag_spec=
13271 fi
13272 supports_anon_versioning=no
13273 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13274 *GNU\ gold*) supports_anon_versioning=yes ;;
13275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13278 *\ 2.11.*) ;; # other 2.11 versions
13279 *) supports_anon_versioning=yes ;;
13280 esac
13281
13282 # See if GNU ld supports shared libraries.
13283 case $host_os in
13284 aix[3-9]*)
13285 # On AIX/PPC, the GNU linker is very broken
13286 if test ia64 != "$host_cpu"; then
13287 ld_shlibs=no
13288 cat <<_LT_EOF 1>&2
13289
13290*** Warning: the GNU linker, at least up to release 2.19, is reported
13291*** to be unable to reliably create shared libraries on AIX.
13292*** Therefore, libtool is disabling shared libraries support. If you
13293*** really care for shared libraries, you may want to install binutils
13294*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13295*** You will then need to restart the configuration process.
13296
13297_LT_EOF
13298 fi
13299 ;;
13300
13301 amigaos*)
13302 case $host_cpu in
13303 powerpc)
13304 # see comment about AmigaOS4 .so support
13305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13306 archive_expsym_cmds=''
13307 ;;
13308 m68k)
13309 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)'
13310 hardcode_libdir_flag_spec='-L$libdir'
13311 hardcode_minus_L=yes
13312 ;;
13313 esac
13314 ;;
13315
13316 beos*)
13317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13318 allow_undefined_flag=unsupported
13319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13320 # support --undefined. This deserves some investigation. FIXME
13321 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13322 else
13323 ld_shlibs=no
13324 fi
13325 ;;
13326
13327 cygwin* | mingw* | pw32* | cegcc*)
13328 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13329 # as there is no search path for DLLs.
13330 hardcode_libdir_flag_spec='-L$libdir'
13331 export_dynamic_flag_spec='$wl--export-all-symbols'
13332 allow_undefined_flag=unsupported
13333 always_export_symbols=no
13334 enable_shared_with_static_runtimes=yes
13335 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'
13336 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13337
13338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13340 # If the export-symbols file already is a .def file, use it as
13341 # is; otherwise, prepend EXPORTS...
13342 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13343 cp $export_symbols $output_objdir/$soname.def;
13344 else
13345 echo EXPORTS > $output_objdir/$soname.def;
13346 cat $export_symbols >> $output_objdir/$soname.def;
13347 fi~
13348 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13349 else
13350 ld_shlibs=no
13351 fi
13352 ;;
13353
13354 haiku*)
13355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13356 link_all_deplibs=yes
13357 ;;
13358
13359 os2*)
13360 hardcode_libdir_flag_spec='-L$libdir'
13361 hardcode_minus_L=yes
13362 allow_undefined_flag=unsupported
13363 shrext_cmds=.dll
13364 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13367 $ECHO EXPORTS >> $output_objdir/$libname.def~
13368 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13369 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13370 emximp -o $lib $output_objdir/$libname.def'
13371 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13372 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13373 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13374 $ECHO EXPORTS >> $output_objdir/$libname.def~
13375 prefix_cmds="$SED"~
13376 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13377 prefix_cmds="$prefix_cmds -e 1d";
13378 fi~
13379 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13380 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13381 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13382 emximp -o $lib $output_objdir/$libname.def'
13383 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13384 enable_shared_with_static_runtimes=yes
13385 ;;
13386
13387 interix[3-9]*)
13388 hardcode_direct=no
13389 hardcode_shlibpath_var=no
13390 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13391 export_dynamic_flag_spec='$wl-E'
13392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13393 # Instead, shared libraries are loaded at an image base (0x10000000 by
13394 # default) and relocated if they conflict, which is a slow very memory
13395 # consuming and fragmenting process. To avoid this, we pick a random,
13396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13399 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'
13400 ;;
13401
13402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13403 tmp_diet=no
13404 if test linux-dietlibc = "$host_os"; then
13405 case $cc_basename in
13406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13407 esac
13408 fi
13409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13410 && test no = "$tmp_diet"
13411 then
13412 tmp_addflag=' $pic_flag'
13413 tmp_sharedflag='-shared'
13414 case $cc_basename,$host_cpu in
13415 pgcc*) # Portland Group C compiler
13416 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'
13417 tmp_addflag=' $pic_flag'
13418 ;;
13419 pgf77* | pgf90* | pgf95* | pgfortran*)
13420 # Portland Group f77 and f90 compilers
13421 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'
13422 tmp_addflag=' $pic_flag -Mnomain' ;;
13423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13424 tmp_addflag=' -i_dynamic' ;;
13425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13426 tmp_addflag=' -i_dynamic -nofor_main' ;;
13427 ifc* | ifort*) # Intel Fortran compiler
13428 tmp_addflag=' -nofor_main' ;;
13429 lf95*) # Lahey Fortran 8.1
13430 whole_archive_flag_spec=
13431 tmp_sharedflag='--shared' ;;
13432 nagfor*) # NAGFOR 5.3
13433 tmp_sharedflag='-Wl,-shared' ;;
13434 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13435 tmp_sharedflag='-qmkshrobj'
13436 tmp_addflag= ;;
13437 nvcc*) # Cuda Compiler Driver 2.2
13438 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'
13439 compiler_needs_object=yes
13440 ;;
13441 esac
13442 case `$CC -V 2>&1 | sed 5q` in
13443 *Sun\ C*) # Sun C 5.9
13444 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'
13445 compiler_needs_object=yes
13446 tmp_sharedflag='-G' ;;
13447 *Sun\ F*) # Sun Fortran 8.3
13448 tmp_sharedflag='-G' ;;
13449 esac
13450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13451
13452 if test yes = "$supports_anon_versioning"; then
13453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455 echo "local: *; };" >> $output_objdir/$libname.ver~
13456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13457 fi
13458
13459 case $cc_basename in
13460 tcc*)
13461 export_dynamic_flag_spec='-rdynamic'
13462 ;;
13463 xlf* | bgf* | bgxlf* | mpixlf*)
13464 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13465 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13467 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13468 if test yes = "$supports_anon_versioning"; then
13469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13471 echo "local: *; };" >> $output_objdir/$libname.ver~
13472 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13473 fi
13474 ;;
13475 esac
13476 else
13477 ld_shlibs=no
13478 fi
13479 ;;
13480
13481 netbsd* | netbsdelf*-gnu)
13482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13484 wlarc=
13485 else
13486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13488 fi
13489 ;;
13490
13491 solaris*)
13492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13493 ld_shlibs=no
13494 cat <<_LT_EOF 1>&2
13495
13496*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13497*** create shared libraries on Solaris systems. Therefore, libtool
13498*** is disabling shared libraries support. We urge you to upgrade GNU
13499*** binutils to release 2.9.1 or newer. Another option is to modify
13500*** your PATH or compiler configuration so that the native linker is
13501*** used, and then restart.
13502
13503_LT_EOF
13504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13506 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13507 else
13508 ld_shlibs=no
13509 fi
13510 ;;
13511
13512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13513 case `$LD -v 2>&1` in
13514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13515 ld_shlibs=no
13516 cat <<_LT_EOF 1>&2
13517
13518*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13519*** reliably create shared libraries on SCO systems. Therefore, libtool
13520*** is disabling shared libraries support. We urge you to upgrade GNU
13521*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13522*** your PATH or compiler configuration so that the native linker is
13523*** used, and then restart.
13524
13525_LT_EOF
13526 ;;
13527 *)
13528 # For security reasons, it is highly recommended that you always
13529 # use absolute paths for naming shared libraries, and exclude the
13530 # DT_RUNPATH tag from executables and libraries. But doing so
13531 # requires that you compile everything twice, which is a pain.
13532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13536 else
13537 ld_shlibs=no
13538 fi
13539 ;;
13540 esac
13541 ;;
13542
13543 sunos4*)
13544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13545 wlarc=
13546 hardcode_direct=yes
13547 hardcode_shlibpath_var=no
13548 ;;
13549
13550 *)
13551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13553 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13554 else
13555 ld_shlibs=no
13556 fi
13557 ;;
13558 esac
13559
13560 if test no = "$ld_shlibs"; then
13561 runpath_var=
13562 hardcode_libdir_flag_spec=
13563 export_dynamic_flag_spec=
13564 whole_archive_flag_spec=
13565 fi
13566 else
13567 # PORTME fill in a description of your system's linker (not GNU ld)
13568 case $host_os in
13569 aix3*)
13570 allow_undefined_flag=unsupported
13571 always_export_symbols=yes
13572 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'
13573 # Note: this linker hardcodes the directories in LIBPATH if there
13574 # are no directories specified by -L.
13575 hardcode_minus_L=yes
13576 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13577 # Neither direct hardcoding nor static linking is supported with a
13578 # broken collect2.
13579 hardcode_direct=unsupported
13580 fi
13581 ;;
13582
13583 aix[4-9]*)
13584 if test ia64 = "$host_cpu"; then
13585 # On IA64, the linker does run time linking by default, so we don't
13586 # have to do anything special.
13587 aix_use_runtimelinking=no
13588 exp_sym_flag='-Bexport'
13589 no_entry_flag=
13590 else
13591 # If we're using GNU nm, then we don't want the "-C" option.
13592 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13593 # Without the "-l" option, or with the "-B" option, AIX nm treats
13594 # weak defined symbols like other global defined symbols, whereas
13595 # GNU nm marks them as "W".
13596 # While the 'weak' keyword is ignored in the Export File, we need
13597 # it in the Import File for the 'aix-soname' feature, so we have
13598 # to replace the "-B" option with "-P" for AIX nm.
13599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13600 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'
13601 else
13602 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'
13603 fi
13604 aix_use_runtimelinking=no
13605
13606 # Test if we are trying to use run time linking or normal
13607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13608 # have runtime linking enabled, and use it for executables.
13609 # For shared libraries, we enable/disable runtime linking
13610 # depending on the kind of the shared library created -
13611 # when "with_aix_soname,aix_use_runtimelinking" is:
13612 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13613 # "aix,yes" lib.so shared, rtl:yes, for executables
13614 # lib.a static archive
13615 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13616 # lib.a(lib.so.V) shared, rtl:no, for executables
13617 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13618 # lib.a(lib.so.V) shared, rtl:no
13619 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13620 # lib.a static archive
13621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13622 for ld_flag in $LDFLAGS; do
13623 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13624 aix_use_runtimelinking=yes
13625 break
13626 fi
13627 done
13628 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13629 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13630 # so we don't have lib.a shared libs to link our executables.
13631 # We have to force runtime linking in this case.
13632 aix_use_runtimelinking=yes
13633 LDFLAGS="$LDFLAGS -Wl,-brtl"
13634 fi
13635 ;;
13636 esac
13637
13638 exp_sym_flag='-bexport'
13639 no_entry_flag='-bnoentry'
13640 fi
13641
13642 # When large executables or shared objects are built, AIX ld can
13643 # have problems creating the table of contents. If linking a library
13644 # or program results in "error TOC overflow" add -mminimal-toc to
13645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13647
13648 archive_cmds=''
13649 hardcode_direct=yes
13650 hardcode_direct_absolute=yes
13651 hardcode_libdir_separator=':'
13652 link_all_deplibs=yes
13653 file_list_spec='$wl-f,'
13654 case $with_aix_soname,$aix_use_runtimelinking in
13655 aix,*) ;; # traditional, no import file
13656 svr4,* | *,yes) # use import file
13657 # The Import File defines what to hardcode.
13658 hardcode_direct=no
13659 hardcode_direct_absolute=no
13660 ;;
13661 esac
13662
13663 if test yes = "$GCC"; then
13664 case $host_os in aix4.[012]|aix4.[012].*)
13665 # We only want to do this on AIX 4.2 and lower, the check
13666 # below for broken collect2 doesn't work under 4.3+
13667 collect2name=`$CC -print-prog-name=collect2`
13668 if test -f "$collect2name" &&
13669 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13670 then
13671 # We have reworked collect2
13672 :
13673 else
13674 # We have old collect2
13675 hardcode_direct=unsupported
13676 # It fails to find uninstalled libraries when the uninstalled
13677 # path is not listed in the libpath. Setting hardcode_minus_L
13678 # to unsupported forces relinking
13679 hardcode_minus_L=yes
13680 hardcode_libdir_flag_spec='-L$libdir'
13681 hardcode_libdir_separator=
13682 fi
13683 ;;
13684 esac
13685 shared_flag='-shared'
13686 if test yes = "$aix_use_runtimelinking"; then
13687 shared_flag="$shared_flag "'$wl-G'
13688 fi
13689 # Need to ensure runtime linking is disabled for the traditional
13690 # shared library, or the linker may eventually find shared libraries
13691 # /with/ Import File - we do not want to mix them.
13692 shared_flag_aix='-shared'
13693 shared_flag_svr4='-shared $wl-G'
13694 else
13695 # not using gcc
13696 if test ia64 = "$host_cpu"; then
13697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13698 # chokes on -Wl,-G. The following line is correct:
13699 shared_flag='-G'
13700 else
13701 if test yes = "$aix_use_runtimelinking"; then
13702 shared_flag='$wl-G'
13703 else
13704 shared_flag='$wl-bM:SRE'
13705 fi
13706 shared_flag_aix='$wl-bM:SRE'
13707 shared_flag_svr4='$wl-G'
13708 fi
13709 fi
13710
13711 export_dynamic_flag_spec='$wl-bexpall'
13712 # It seems that -bexpall does not export symbols beginning with
13713 # underscore (_), so it is better to generate a list of symbols to export.
13714 always_export_symbols=yes
13715 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13716 # Warning - without using the other runtime loading flags (-brtl),
13717 # -berok will link without error, but may produce a broken library.
13718 allow_undefined_flag='-berok'
13719 # Determine the default libpath from the value encoded in an
13720 # empty executable.
13721 if test set = "${lt_cv_aix_libpath+set}"; then
13722 aix_libpath=$lt_cv_aix_libpath
13723else
13724 if ${lt_cv_aix_libpath_+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726else
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728/* end confdefs.h. */
13729
13730int main (void)
13731{
13732
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737if ac_fn_c_try_link "$LINENO"; then :
13738
13739 lt_aix_libpath_sed='
13740 /Import File Strings/,/^$/ {
13741 /^0/ {
13742 s/^0 *\([^ ]*\) *$/\1/
13743 p
13744 }
13745 }'
13746 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13747 # Check for a 64-bit object if we didn't find anything.
13748 if test -z "$lt_cv_aix_libpath_"; then
13749 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13750 fi
13751fi
13752rm -f core conftest.err conftest.$ac_objext \
13753 conftest$ac_exeext conftest.$ac_ext
13754 if test -z "$lt_cv_aix_libpath_"; then
13755 lt_cv_aix_libpath_=/usr/lib:/lib
13756 fi
13757
13758fi
13759
13760 aix_libpath=$lt_cv_aix_libpath_
13761fi
13762
13763 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13764 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
13765 else
13766 if test ia64 = "$host_cpu"; then
13767 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13768 allow_undefined_flag="-z nodefs"
13769 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"
13770 else
13771 # Determine the default libpath from the value encoded in an
13772 # empty executable.
13773 if test set = "${lt_cv_aix_libpath+set}"; then
13774 aix_libpath=$lt_cv_aix_libpath
13775else
13776 if ${lt_cv_aix_libpath_+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778else
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780/* end confdefs.h. */
13781
13782int main (void)
13783{
13784
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789if ac_fn_c_try_link "$LINENO"; then :
13790
13791 lt_aix_libpath_sed='
13792 /Import File Strings/,/^$/ {
13793 /^0/ {
13794 s/^0 *\([^ ]*\) *$/\1/
13795 p
13796 }
13797 }'
13798 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13799 # Check for a 64-bit object if we didn't find anything.
13800 if test -z "$lt_cv_aix_libpath_"; then
13801 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13802 fi
13803fi
13804rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 if test -z "$lt_cv_aix_libpath_"; then
13807 lt_cv_aix_libpath_=/usr/lib:/lib
13808 fi
13809
13810fi
13811
13812 aix_libpath=$lt_cv_aix_libpath_
13813fi
13814
13815 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13816 # Warning - without using the other run time loading flags,
13817 # -berok will link without error, but may produce a broken library.
13818 no_undefined_flag=' $wl-bernotok'
13819 allow_undefined_flag=' $wl-berok'
13820 if test yes = "$with_gnu_ld"; then
13821 # We only use this code for GNU lds that support --whole-archive.
13822 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13823 else
13824 # Exported symbols can be pulled into shared objects from archives
13825 whole_archive_flag_spec='$convenience'
13826 fi
13827 archive_cmds_need_lc=yes
13828 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13829 # -brtl affects multiple linker settings, -berok does not and is overridden later
13830 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13831 if test svr4 != "$with_aix_soname"; then
13832 # This is similar to how AIX traditionally builds its shared libraries.
13833 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'
13834 fi
13835 if test aix != "$with_aix_soname"; then
13836 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'
13837 else
13838 # used by -dlpreopen to get the symbols
13839 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13840 fi
13841 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13842 fi
13843 fi
13844 ;;
13845
13846 amigaos*)
13847 case $host_cpu in
13848 powerpc)
13849 # see comment about AmigaOS4 .so support
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13851 archive_expsym_cmds=''
13852 ;;
13853 m68k)
13854 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)'
13855 hardcode_libdir_flag_spec='-L$libdir'
13856 hardcode_minus_L=yes
13857 ;;
13858 esac
13859 ;;
13860
13861 bsdi[45]*)
13862 export_dynamic_flag_spec=-rdynamic
13863 ;;
13864
13865 cygwin* | mingw* | pw32* | cegcc*)
13866 # When not using gcc, we currently assume that we are using
13867 # Microsoft Visual C++.
13868 # hardcode_libdir_flag_spec is actually meaningless, as there is
13869 # no search path for DLLs.
13870 case $cc_basename in
13871 cl*)
13872 # Native MSVC
13873 hardcode_libdir_flag_spec=' '
13874 allow_undefined_flag=unsupported
13875 always_export_symbols=yes
13876 file_list_spec='@'
13877 # Tell ltmain to make .lib files, not .a files.
13878 libext=lib
13879 # Tell ltmain to make .dll files, not .so files.
13880 shrext_cmds=.dll
13881 # FIXME: Setting linknames here is a bad hack.
13882 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13883 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13884 cp "$export_symbols" "$output_objdir/$soname.def";
13885 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13886 else
13887 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13888 fi~
13889 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13890 linknames='
13891 # The linker will not automatically build a static lib if we build a DLL.
13892 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13893 enable_shared_with_static_runtimes=yes
13894 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13896 # Don't use ranlib
13897 old_postinstall_cmds='chmod 644 $oldlib'
13898 postlink_cmds='lt_outputfile="@OUTPUT@"~
13899 lt_tool_outputfile="@TOOL_OUTPUT@"~
13900 case $lt_outputfile in
13901 *.exe|*.EXE) ;;
13902 *)
13903 lt_outputfile=$lt_outputfile.exe
13904 lt_tool_outputfile=$lt_tool_outputfile.exe
13905 ;;
13906 esac~
13907 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13908 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13909 $RM "$lt_outputfile.manifest";
13910 fi'
13911 ;;
13912 *)
13913 # Assume MSVC wrapper
13914 hardcode_libdir_flag_spec=' '
13915 allow_undefined_flag=unsupported
13916 # Tell ltmain to make .lib files, not .a files.
13917 libext=lib
13918 # Tell ltmain to make .dll files, not .so files.
13919 shrext_cmds=.dll
13920 # FIXME: Setting linknames here is a bad hack.
13921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13922 # The linker will automatically build a .lib file if we build a DLL.
13923 old_archive_from_new_cmds='true'
13924 # FIXME: Should let the user specify the lib program.
13925 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13926 enable_shared_with_static_runtimes=yes
13927 ;;
13928 esac
13929 ;;
13930
13931 darwin* | rhapsody*)
13932
13933
13934 archive_cmds_need_lc=no
13935 hardcode_direct=no
13936 hardcode_automatic=yes
13937 hardcode_shlibpath_var=unsupported
13938 if test yes = "$lt_cv_ld_force_load"; then
13939 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\"`'
13940
13941 else
13942 whole_archive_flag_spec=''
13943 fi
13944 link_all_deplibs=yes
13945 allow_undefined_flag=$_lt_dar_allow_undefined
13946 case $cc_basename in
13947 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13948 *) _lt_dar_can_shared=$GCC ;;
13949 esac
13950 if test yes = "$_lt_dar_can_shared"; then
13951 output_verbose_link_cmd=func_echo_all
13952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13954 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"
13955 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"
13956
13957 else
13958 ld_shlibs=no
13959 fi
13960
13961 ;;
13962
13963 dgux*)
13964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13965 hardcode_libdir_flag_spec='-L$libdir'
13966 hardcode_shlibpath_var=no
13967 ;;
13968
13969 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13970 # support. Future versions do this automatically, but an explicit c++rt0.o
13971 # does not break anything, and helps significantly (at the cost of a little
13972 # extra space).
13973 freebsd2.2*)
13974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13975 hardcode_libdir_flag_spec='-R$libdir'
13976 hardcode_direct=yes
13977 hardcode_shlibpath_var=no
13978 ;;
13979
13980 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13981 freebsd2.*)
13982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_direct=yes
13984 hardcode_minus_L=yes
13985 hardcode_shlibpath_var=no
13986 ;;
13987
13988 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13989 freebsd* | dragonfly*)
13990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13991 hardcode_libdir_flag_spec='-R$libdir'
13992 hardcode_direct=yes
13993 hardcode_shlibpath_var=no
13994 ;;
13995
13996 hpux9*)
13997 if test yes = "$GCC"; then
13998 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'
13999 else
14000 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'
14001 fi
14002 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14003 hardcode_libdir_separator=:
14004 hardcode_direct=yes
14005
14006 # hardcode_minus_L: Not really in the search PATH,
14007 # but as the default location of the library.
14008 hardcode_minus_L=yes
14009 export_dynamic_flag_spec='$wl-E'
14010 ;;
14011
14012 hpux10*)
14013 if test yes,no = "$GCC,$with_gnu_ld"; then
14014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14015 else
14016 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14017 fi
14018 if test no = "$with_gnu_ld"; then
14019 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14020 hardcode_libdir_separator=:
14021 hardcode_direct=yes
14022 hardcode_direct_absolute=yes
14023 export_dynamic_flag_spec='$wl-E'
14024 # hardcode_minus_L: Not really in the search PATH,
14025 # but as the default location of the library.
14026 hardcode_minus_L=yes
14027 fi
14028 ;;
14029
14030 hpux11*)
14031 if test yes,no = "$GCC,$with_gnu_ld"; then
14032 case $host_cpu in
14033 hppa*64*)
14034 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 ;;
14036 ia64*)
14037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14038 ;;
14039 *)
14040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14041 ;;
14042 esac
14043 else
14044 case $host_cpu in
14045 hppa*64*)
14046 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14047 ;;
14048 ia64*)
14049 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14050 ;;
14051 *)
14052
14053 # Older versions of the 11.00 compiler do not understand -b yet
14054 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14056$as_echo_n "checking if $CC understands -b... " >&6; }
14057if ${lt_cv_prog_compiler__b+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059else
14060 lt_cv_prog_compiler__b=no
14061 save_LDFLAGS=$LDFLAGS
14062 LDFLAGS="$LDFLAGS -b"
14063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14065 # The linker can only warn and ignore the option if not recognized
14066 # So say no if there are warnings
14067 if test -s conftest.err; then
14068 # Append any errors to the config.log.
14069 cat conftest.err 1>&5
14070 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14072 if diff conftest.exp conftest.er2 >/dev/null; then
14073 lt_cv_prog_compiler__b=yes
14074 fi
14075 else
14076 lt_cv_prog_compiler__b=yes
14077 fi
14078 fi
14079 $RM -r conftest*
14080 LDFLAGS=$save_LDFLAGS
14081
14082fi
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14084$as_echo "$lt_cv_prog_compiler__b" >&6; }
14085
14086if test yes = "$lt_cv_prog_compiler__b"; then
14087 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14088else
14089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14090fi
14091
14092 ;;
14093 esac
14094 fi
14095 if test no = "$with_gnu_ld"; then
14096 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14097 hardcode_libdir_separator=:
14098
14099 case $host_cpu in
14100 hppa*64*|ia64*)
14101 hardcode_direct=no
14102 hardcode_shlibpath_var=no
14103 ;;
14104 *)
14105 hardcode_direct=yes
14106 hardcode_direct_absolute=yes
14107 export_dynamic_flag_spec='$wl-E'
14108
14109 # hardcode_minus_L: Not really in the search PATH,
14110 # but as the default location of the library.
14111 hardcode_minus_L=yes
14112 ;;
14113 esac
14114 fi
14115 ;;
14116
14117 irix5* | irix6* | nonstopux*)
14118 if test yes = "$GCC"; then
14119 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'
14120 # Try to use the -exported_symbol ld option, if it does not
14121 # work, assume that -exports_file does not work either and
14122 # implicitly export all symbols.
14123 # This should be the same for all languages, so no per-tag cache variable.
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14125$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14126if ${lt_cv_irix_exported_symbol+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128else
14129 save_LDFLAGS=$LDFLAGS
14130 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h. */
14133int foo (void) { return 0; }
14134_ACEOF
14135if ac_fn_c_try_link "$LINENO"; then :
14136 lt_cv_irix_exported_symbol=yes
14137else
14138 lt_cv_irix_exported_symbol=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LDFLAGS=$save_LDFLAGS
14143fi
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14145$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14146 if test yes = "$lt_cv_irix_exported_symbol"; then
14147 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'
14148 fi
14149 link_all_deplibs=no
14150 else
14151 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'
14152 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'
14153 fi
14154 archive_cmds_need_lc='no'
14155 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14156 hardcode_libdir_separator=:
14157 inherit_rpath=yes
14158 link_all_deplibs=yes
14159 ;;
14160
14161 linux*)
14162 case $cc_basename in
14163 tcc*)
14164 # Fabrice Bellard et al's Tiny C Compiler
14165 ld_shlibs=yes
14166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14167 ;;
14168 esac
14169 ;;
14170
14171 netbsd* | netbsdelf*-gnu)
14172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14174 else
14175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14176 fi
14177 hardcode_libdir_flag_spec='-R$libdir'
14178 hardcode_direct=yes
14179 hardcode_shlibpath_var=no
14180 ;;
14181
14182 newsos6)
14183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14184 hardcode_direct=yes
14185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14186 hardcode_libdir_separator=:
14187 hardcode_shlibpath_var=no
14188 ;;
14189
14190 *nto* | *qnx*)
14191 ;;
14192
14193 openbsd* | bitrig*)
14194 if test -f /usr/libexec/ld.so; then
14195 hardcode_direct=yes
14196 hardcode_shlibpath_var=no
14197 hardcode_direct_absolute=yes
14198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14201 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14202 export_dynamic_flag_spec='$wl-E'
14203 else
14204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14205 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14206 fi
14207 else
14208 ld_shlibs=no
14209 fi
14210 ;;
14211
14212 os2*)
14213 hardcode_libdir_flag_spec='-L$libdir'
14214 hardcode_minus_L=yes
14215 allow_undefined_flag=unsupported
14216 shrext_cmds=.dll
14217 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14218 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14219 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14220 $ECHO EXPORTS >> $output_objdir/$libname.def~
14221 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14222 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14223 emximp -o $lib $output_objdir/$libname.def'
14224 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14225 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14226 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14227 $ECHO EXPORTS >> $output_objdir/$libname.def~
14228 prefix_cmds="$SED"~
14229 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14230 prefix_cmds="$prefix_cmds -e 1d";
14231 fi~
14232 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14233 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14234 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14235 emximp -o $lib $output_objdir/$libname.def'
14236 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14237 enable_shared_with_static_runtimes=yes
14238 ;;
14239
14240 osf3*)
14241 if test yes = "$GCC"; then
14242 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14243 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'
14244 else
14245 allow_undefined_flag=' -expect_unresolved \*'
14246 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'
14247 fi
14248 archive_cmds_need_lc='no'
14249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14250 hardcode_libdir_separator=:
14251 ;;
14252
14253 osf4* | osf5*) # as osf3* with the addition of -msym flag
14254 if test yes = "$GCC"; then
14255 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14256 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'
14257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14258 else
14259 allow_undefined_flag=' -expect_unresolved \*'
14260 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'
14261 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~
14262 $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'
14263
14264 # Both c and cxx compiler support -rpath directly
14265 hardcode_libdir_flag_spec='-rpath $libdir'
14266 fi
14267 archive_cmds_need_lc='no'
14268 hardcode_libdir_separator=:
14269 ;;
14270
14271 solaris*)
14272 no_undefined_flag=' -z defs'
14273 if test yes = "$GCC"; then
14274 wlarc='$wl'
14275 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14277 $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'
14278 else
14279 case `$CC -V 2>&1` in
14280 *"Compilers 5.0"*)
14281 wlarc=''
14282 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14284 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14285 ;;
14286 *)
14287 wlarc='$wl'
14288 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14290 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14291 ;;
14292 esac
14293 fi
14294 hardcode_libdir_flag_spec='-R$libdir'
14295 hardcode_shlibpath_var=no
14296 case $host_os in
14297 solaris2.[0-5] | solaris2.[0-5].*) ;;
14298 *)
14299 # The compiler driver will combine and reorder linker options,
14300 # but understands '-z linker_flag'. GCC discards it without '$wl',
14301 # but is careful enough not to reorder.
14302 # Supported since Solaris 2.6 (maybe 2.5.1?)
14303 if test yes = "$GCC"; then
14304 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14305 else
14306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14307 fi
14308 ;;
14309 esac
14310 link_all_deplibs=yes
14311 ;;
14312
14313 sunos4*)
14314 if test sequent = "$host_vendor"; then
14315 # Use $CC to link under sequent, because it throws in some extra .o
14316 # files that make .init and .fini sections work.
14317 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14318 else
14319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14320 fi
14321 hardcode_libdir_flag_spec='-L$libdir'
14322 hardcode_direct=yes
14323 hardcode_minus_L=yes
14324 hardcode_shlibpath_var=no
14325 ;;
14326
14327 sysv4)
14328 case $host_vendor in
14329 sni)
14330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 hardcode_direct=yes # is this really true???
14332 ;;
14333 siemens)
14334 ## LD is ld it makes a PLAMLIB
14335 ## CC just makes a GrossModule.
14336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14337 reload_cmds='$CC -r -o $output$reload_objs'
14338 hardcode_direct=no
14339 ;;
14340 motorola)
14341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14343 ;;
14344 esac
14345 runpath_var='LD_RUN_PATH'
14346 hardcode_shlibpath_var=no
14347 ;;
14348
14349 sysv4.3*)
14350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14351 hardcode_shlibpath_var=no
14352 export_dynamic_flag_spec='-Bexport'
14353 ;;
14354
14355 sysv4*MP*)
14356 if test -d /usr/nec; then
14357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_shlibpath_var=no
14359 runpath_var=LD_RUN_PATH
14360 hardcode_runpath_var=yes
14361 ld_shlibs=yes
14362 fi
14363 ;;
14364
14365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14366 no_undefined_flag='$wl-z,text'
14367 archive_cmds_need_lc=no
14368 hardcode_shlibpath_var=no
14369 runpath_var='LD_RUN_PATH'
14370
14371 if test yes = "$GCC"; then
14372 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14373 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14374 else
14375 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14376 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14377 fi
14378 ;;
14379
14380 sysv5* | sco3.2v5* | sco5v6*)
14381 # Note: We CANNOT use -z defs as we might desire, because we do not
14382 # link with -lc, and that would cause any symbols used from libc to
14383 # always be unresolved, which means just about no library would
14384 # ever link correctly. If we're not using GNU ld we use -z text
14385 # though, which does catch some bad symbols but isn't as heavy-handed
14386 # as -z defs.
14387 no_undefined_flag='$wl-z,text'
14388 allow_undefined_flag='$wl-z,nodefs'
14389 archive_cmds_need_lc=no
14390 hardcode_shlibpath_var=no
14391 hardcode_libdir_flag_spec='$wl-R,$libdir'
14392 hardcode_libdir_separator=':'
14393 link_all_deplibs=yes
14394 export_dynamic_flag_spec='$wl-Bexport'
14395 runpath_var='LD_RUN_PATH'
14396
14397 if test yes = "$GCC"; then
14398 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14400 else
14401 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14402 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 fi
14404 ;;
14405
14406 uts4*)
14407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_libdir_flag_spec='-L$libdir'
14409 hardcode_shlibpath_var=no
14410 ;;
14411
14412 *)
14413 ld_shlibs=no
14414 ;;
14415 esac
14416
14417 if test sni = "$host_vendor"; then
14418 case $host in
14419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14420 export_dynamic_flag_spec='$wl-Blargedynsym'
14421 ;;
14422 esac
14423 fi
14424 fi
14425
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14427$as_echo "$ld_shlibs" >&6; }
14428test no = "$ld_shlibs" && can_build_shared=no
14429
14430with_gnu_ld=$with_gnu_ld
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446#
14447# Do we need to explicitly link libc?
14448#
14449case "x$archive_cmds_need_lc" in
14450x|xyes)
14451 # Assume -lc should be added
14452 archive_cmds_need_lc=yes
14453
14454 if test yes,yes = "$GCC,$enable_shared"; then
14455 case $archive_cmds in
14456 *'~'*)
14457 # FIXME: we may have to deal with multi-command sequences.
14458 ;;
14459 '$CC '*)
14460 # Test whether the compiler implicitly links with -lc since on some
14461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14462 # to ld, don't add -lc before -lgcc.
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14464$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14465if ${lt_cv_archive_cmds_need_lc+:} false; then :
14466 $as_echo_n "(cached) " >&6
14467else
14468 $RM conftest*
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470
14471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14472 (eval $ac_compile) 2>&5
14473 ac_status=$?
14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; } 2>conftest.err; then
14476 soname=conftest
14477 lib=conftest
14478 libobjs=conftest.$ac_objext
14479 deplibs=
14480 wl=$lt_prog_compiler_wl
14481 pic_flag=$lt_prog_compiler_pic
14482 compiler_flags=-v
14483 linker_flags=-v
14484 verstring=
14485 output_objdir=.
14486 libname=conftest
14487 lt_save_allow_undefined_flag=$allow_undefined_flag
14488 allow_undefined_flag=
14489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14490 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14491 ac_status=$?
14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493 test $ac_status = 0; }
14494 then
14495 lt_cv_archive_cmds_need_lc=no
14496 else
14497 lt_cv_archive_cmds_need_lc=yes
14498 fi
14499 allow_undefined_flag=$lt_save_allow_undefined_flag
14500 else
14501 cat conftest.err 1>&5
14502 fi
14503 $RM conftest*
14504
14505fi
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14507$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14508 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14509 ;;
14510 esac
14511 fi
14512 ;;
14513esac
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14667$as_echo_n "checking dynamic linker characteristics... " >&6; }
14668
14669if test yes = "$GCC"; then
14670 case $host_os in
14671 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14672 *) lt_awk_arg='/^libraries:/' ;;
14673 esac
14674 case $host_os in
14675 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14676 *) lt_sed_strip_eq='s|=/|/|g' ;;
14677 esac
14678 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14679 case $lt_search_path_spec in
14680 *\;*)
14681 # if the path contains ";" then we assume it to be the separator
14682 # otherwise default to the standard path separator (i.e. ":") - it is
14683 # assumed that no part of a normal pathname contains ";" but that should
14684 # okay in the real world where ";" in dirpaths is itself problematic.
14685 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14686 ;;
14687 *)
14688 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14689 ;;
14690 esac
14691 # Ok, now we have the path, separated by spaces, we can step through it
14692 # and add multilib dir if necessary...
14693 lt_tmp_lt_search_path_spec=
14694 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14695 # ...but if some path component already ends with the multilib dir we assume
14696 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14697 case "$lt_multi_os_dir; $lt_search_path_spec " in
14698 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14699 lt_multi_os_dir=
14700 ;;
14701 esac
14702 for lt_sys_path in $lt_search_path_spec; do
14703 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14705 elif test -n "$lt_multi_os_dir"; then
14706 test -d "$lt_sys_path" && \
14707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14708 fi
14709 done
14710 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14711BEGIN {RS = " "; FS = "/|\n";} {
14712 lt_foo = "";
14713 lt_count = 0;
14714 for (lt_i = NF; lt_i > 0; lt_i--) {
14715 if ($lt_i != "" && $lt_i != ".") {
14716 if ($lt_i == "..") {
14717 lt_count++;
14718 } else {
14719 if (lt_count == 0) {
14720 lt_foo = "/" $lt_i lt_foo;
14721 } else {
14722 lt_count--;
14723 }
14724 }
14725 }
14726 }
14727 if (lt_foo != "") { lt_freq[lt_foo]++; }
14728 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14729}'`
14730 # AWK program above erroneously prepends '/' to C:/dos/paths
14731 # for these hosts.
14732 case $host_os in
14733 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14734 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14735 esac
14736 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14737else
14738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14739fi
14740library_names_spec=
14741libname_spec='lib$name'
14742soname_spec=
14743shrext_cmds=.so
14744postinstall_cmds=
14745postuninstall_cmds=
14746finish_cmds=
14747finish_eval=
14748shlibpath_var=
14749shlibpath_overrides_runpath=unknown
14750version_type=none
14751dynamic_linker="$host_os ld.so"
14752sys_lib_dlsearch_path_spec="/lib /usr/lib"
14753need_lib_prefix=unknown
14754hardcode_into_libs=no
14755
14756# when you set need_version to no, make sure it does not cause -set_version
14757# flags to be left without arguments
14758need_version=unknown
14759
14760
14761
14762case $host_os in
14763aix3*)
14764 version_type=linux # correct to gnu/linux during the next big refactor
14765 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14766 shlibpath_var=LIBPATH
14767
14768 # AIX 3 has no versioning support, so we append a major version to the name.
14769 soname_spec='$libname$release$shared_ext$major'
14770 ;;
14771
14772aix[4-9]*)
14773 version_type=linux # correct to gnu/linux during the next big refactor
14774 need_lib_prefix=no
14775 need_version=no
14776 hardcode_into_libs=yes
14777 if test ia64 = "$host_cpu"; then
14778 # AIX 5 supports IA64
14779 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 else
14782 # With GCC up to 2.95.x, collect2 would create an import file
14783 # for dependence libraries. The import file would start with
14784 # the line '#! .'. This would cause the generated library to
14785 # depend on '.', always an invalid library. This was fixed in
14786 # development snapshots of GCC prior to 3.0.
14787 case $host_os in
14788 aix4 | aix4.[01] | aix4.[01].*)
14789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14790 echo ' yes '
14791 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14792 :
14793 else
14794 can_build_shared=no
14795 fi
14796 ;;
14797 esac
14798 # Using Import Files as archive members, it is possible to support
14799 # filename-based versioning of shared library archives on AIX. While
14800 # this would work for both with and without runtime linking, it will
14801 # prevent static linking of such archives. So we do filename-based
14802 # shared library versioning with .so extension only, which is used
14803 # when both runtime linking and shared linking is enabled.
14804 # Unfortunately, runtime linking may impact performance, so we do
14805 # not want this to be the default eventually. Also, we use the
14806 # versioned .so libs for executables only if there is the -brtl
14807 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14808 # To allow for filename-based versioning support, we need to create
14809 # libNAME.so.V as an archive file, containing:
14810 # *) an Import File, referring to the versioned filename of the
14811 # archive as well as the shared archive member, telling the
14812 # bitwidth (32 or 64) of that shared object, and providing the
14813 # list of exported symbols of that shared object, eventually
14814 # decorated with the 'weak' keyword
14815 # *) the shared object with the F_LOADONLY flag set, to really avoid
14816 # it being seen by the linker.
14817 # At run time we better use the real file rather than another symlink,
14818 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14819
14820 case $with_aix_soname,$aix_use_runtimelinking in
14821 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14822 # soname into executable. Probably we can add versioning support to
14823 # collect2, so additional links can be useful in future.
14824 aix,yes) # traditional libtool
14825 dynamic_linker='AIX unversionable lib.so'
14826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14827 # instead of lib<name>.a to let people know that these are not
14828 # typical AIX shared libraries.
14829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14830 ;;
14831 aix,no) # traditional AIX only
14832 dynamic_linker='AIX lib.a(lib.so.V)'
14833 # We preserve .a as extension for shared libraries through AIX4.2
14834 # and later when we are not doing run time linking.
14835 library_names_spec='$libname$release.a $libname.a'
14836 soname_spec='$libname$release$shared_ext$major'
14837 ;;
14838 svr4,*) # full svr4 only
14839 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14840 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14841 # We do not specify a path in Import Files, so LIBPATH fires.
14842 shlibpath_overrides_runpath=yes
14843 ;;
14844 *,yes) # both, prefer svr4
14845 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14846 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14847 # unpreferred sharedlib libNAME.a needs extra handling
14848 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"'
14849 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"'
14850 # We do not specify a path in Import Files, so LIBPATH fires.
14851 shlibpath_overrides_runpath=yes
14852 ;;
14853 *,no) # both, prefer aix
14854 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14855 library_names_spec='$libname$release.a $libname.a'
14856 soname_spec='$libname$release$shared_ext$major'
14857 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14858 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)'
14859 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"'
14860 ;;
14861 esac
14862 shlibpath_var=LIBPATH
14863 fi
14864 ;;
14865
14866amigaos*)
14867 case $host_cpu in
14868 powerpc)
14869 # Since July 2007 AmigaOS4 officially supports .so libraries.
14870 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14872 ;;
14873 m68k)
14874 library_names_spec='$libname.ixlibrary $libname.a'
14875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14876 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'
14877 ;;
14878 esac
14879 ;;
14880
14881beos*)
14882 library_names_spec='$libname$shared_ext'
14883 dynamic_linker="$host_os ld.so"
14884 shlibpath_var=LIBRARY_PATH
14885 ;;
14886
14887bsdi[45]*)
14888 version_type=linux # correct to gnu/linux during the next big refactor
14889 need_version=no
14890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14891 soname_spec='$libname$release$shared_ext$major'
14892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14893 shlibpath_var=LD_LIBRARY_PATH
14894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14896 # the default ld.so.conf also contains /usr/contrib/lib and
14897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14898 # libtool to hard-code these into programs
14899 ;;
14900
14901cygwin* | mingw* | pw32* | cegcc*)
14902 version_type=windows
14903 shrext_cmds=.dll
14904 need_version=no
14905 need_lib_prefix=no
14906
14907 case $GCC,$cc_basename in
14908 yes,*)
14909 # gcc
14910 library_names_spec='$libname.dll.a'
14911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14912 postinstall_cmds='base_file=`basename \$file`~
14913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14914 dldir=$destdir/`dirname \$dlpath`~
14915 test -d \$dldir || mkdir -p \$dldir~
14916 $install_prog $dir/$dlname \$dldir/$dlname~
14917 chmod a+x \$dldir/$dlname~
14918 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14919 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14920 fi'
14921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14922 dlpath=$dir/\$dldll~
14923 $RM \$dlpath'
14924 shlibpath_overrides_runpath=yes
14925
14926 case $host_os in
14927 cygwin*)
14928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14929 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14930
14931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14932 ;;
14933 mingw* | cegcc*)
14934 # MinGW DLLs use traditional 'lib' prefix
14935 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14936 ;;
14937 pw32*)
14938 # pw32 DLLs use 'pw' prefix rather than 'lib'
14939 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14940 ;;
14941 esac
14942 dynamic_linker='Win32 ld.exe'
14943 ;;
14944
14945 *,cl*)
14946 # Native MSVC
14947 libname_spec='$name'
14948 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14949 library_names_spec='$libname.dll.lib'
14950
14951 case $build_os in
14952 mingw*)
14953 sys_lib_search_path_spec=
14954 lt_save_ifs=$IFS
14955 IFS=';'
14956 for lt_path in $LIB
14957 do
14958 IFS=$lt_save_ifs
14959 # Let DOS variable expansion print the short 8.3 style file name.
14960 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14961 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14962 done
14963 IFS=$lt_save_ifs
14964 # Convert to MSYS style.
14965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14966 ;;
14967 cygwin*)
14968 # Convert to unix form, then to dos form, then back to unix form
14969 # but this time dos style (no spaces!) so that the unix form looks
14970 # like /cygdrive/c/PROGRA~1:/cygdr...
14971 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14972 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14973 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14974 ;;
14975 *)
14976 sys_lib_search_path_spec=$LIB
14977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14978 # It is most probably a Windows format PATH.
14979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14980 else
14981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14982 fi
14983 # FIXME: find the short name or the path components, as spaces are
14984 # common. (e.g. "Program Files" -> "PROGRA~1")
14985 ;;
14986 esac
14987
14988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14989 postinstall_cmds='base_file=`basename \$file`~
14990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14991 dldir=$destdir/`dirname \$dlpath`~
14992 test -d \$dldir || mkdir -p \$dldir~
14993 $install_prog $dir/$dlname \$dldir/$dlname'
14994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14995 dlpath=$dir/\$dldll~
14996 $RM \$dlpath'
14997 shlibpath_overrides_runpath=yes
14998 dynamic_linker='Win32 link.exe'
14999 ;;
15000
15001 *)
15002 # Assume MSVC wrapper
15003 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15004 dynamic_linker='Win32 ld.exe'
15005 ;;
15006 esac
15007 # FIXME: first we should search . and the directory the executable is in
15008 shlibpath_var=PATH
15009 ;;
15010
15011darwin* | rhapsody*)
15012 dynamic_linker="$host_os dyld"
15013 version_type=darwin
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15017 soname_spec='$libname$release$major$shared_ext'
15018 shlibpath_overrides_runpath=yes
15019 shlibpath_var=DYLD_LIBRARY_PATH
15020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15021
15022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15024 ;;
15025
15026dgux*)
15027 version_type=linux # correct to gnu/linux during the next big refactor
15028 need_lib_prefix=no
15029 need_version=no
15030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15031 soname_spec='$libname$release$shared_ext$major'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 ;;
15034
15035freebsd* | dragonfly*)
15036 # DragonFly does not have aout. When/if they implement a new
15037 # versioning mechanism, adjust this.
15038 if test -x /usr/bin/objformat; then
15039 objformat=`/usr/bin/objformat`
15040 else
15041 case $host_os in
15042 freebsd[23].*) objformat=aout ;;
15043 *) objformat=elf ;;
15044 esac
15045 fi
15046 version_type=freebsd-$objformat
15047 case $version_type in
15048 freebsd-elf*)
15049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15050 soname_spec='$libname$release$shared_ext$major'
15051 need_version=no
15052 need_lib_prefix=no
15053 ;;
15054 freebsd-*)
15055 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15056 need_version=yes
15057 ;;
15058 esac
15059 shlibpath_var=LD_LIBRARY_PATH
15060 case $host_os in
15061 freebsd2.*)
15062 shlibpath_overrides_runpath=yes
15063 ;;
15064 freebsd3.[01]* | freebsdelf3.[01]*)
15065 shlibpath_overrides_runpath=yes
15066 hardcode_into_libs=yes
15067 ;;
15068 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15069 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15070 shlibpath_overrides_runpath=no
15071 hardcode_into_libs=yes
15072 ;;
15073 *) # from 4.6 on, and DragonFly
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15076 ;;
15077 esac
15078 ;;
15079
15080haiku*)
15081 version_type=linux # correct to gnu/linux during the next big refactor
15082 need_lib_prefix=no
15083 need_version=no
15084 dynamic_linker="$host_os runtime_loader"
15085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15086 soname_spec='$libname$release$shared_ext$major'
15087 shlibpath_var=LIBRARY_PATH
15088 shlibpath_overrides_runpath=no
15089 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15090 hardcode_into_libs=yes
15091 ;;
15092
15093hpux9* | hpux10* | hpux11*)
15094 # Give a soname corresponding to the major version so that dld.sl refuses to
15095 # link against other versions.
15096 version_type=sunos
15097 need_lib_prefix=no
15098 need_version=no
15099 case $host_cpu in
15100 ia64*)
15101 shrext_cmds='.so'
15102 hardcode_into_libs=yes
15103 dynamic_linker="$host_os dld.so"
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15107 soname_spec='$libname$release$shared_ext$major'
15108 if test 32 = "$HPUX_IA64_MODE"; then
15109 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15110 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15111 else
15112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15113 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15114 fi
15115 ;;
15116 hppa*64*)
15117 shrext_cmds='.sl'
15118 hardcode_into_libs=yes
15119 dynamic_linker="$host_os dld.sl"
15120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15123 soname_spec='$libname$release$shared_ext$major'
15124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126 ;;
15127 *)
15128 shrext_cmds='.sl'
15129 dynamic_linker="$host_os dld.sl"
15130 shlibpath_var=SHLIB_PATH
15131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15133 soname_spec='$libname$release$shared_ext$major'
15134 ;;
15135 esac
15136 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15137 postinstall_cmds='chmod 555 $lib'
15138 # or fails outright, so override atomically:
15139 install_override_mode=555
15140 ;;
15141
15142interix[3-9]*)
15143 version_type=linux # correct to gnu/linux during the next big refactor
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15147 soname_spec='$libname$release$shared_ext$major'
15148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=no
15151 hardcode_into_libs=yes
15152 ;;
15153
15154irix5* | irix6* | nonstopux*)
15155 case $host_os in
15156 nonstopux*) version_type=nonstopux ;;
15157 *)
15158 if test yes = "$lt_cv_prog_gnu_ld"; then
15159 version_type=linux # correct to gnu/linux during the next big refactor
15160 else
15161 version_type=irix
15162 fi ;;
15163 esac
15164 need_lib_prefix=no
15165 need_version=no
15166 soname_spec='$libname$release$shared_ext$major'
15167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15168 case $host_os in
15169 irix5* | nonstopux*)
15170 libsuff= shlibsuff=
15171 ;;
15172 *)
15173 case $LD in # libtool.m4 will add one of these switches to LD
15174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15175 libsuff= shlibsuff= libmagic=32-bit;;
15176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15177 libsuff=32 shlibsuff=N32 libmagic=N32;;
15178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15180 *) libsuff= shlibsuff= libmagic=never-match;;
15181 esac
15182 ;;
15183 esac
15184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15185 shlibpath_overrides_runpath=no
15186 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15187 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15188 hardcode_into_libs=yes
15189 ;;
15190
15191# No shared lib support for Linux oldld, aout, or coff.
15192linux*oldld* | linux*aout* | linux*coff*)
15193 dynamic_linker=no
15194 ;;
15195
15196linux*android*)
15197 version_type=none # Android doesn't support versioned libraries.
15198 need_lib_prefix=no
15199 need_version=no
15200 library_names_spec='$libname$release$shared_ext'
15201 soname_spec='$libname$release$shared_ext'
15202 finish_cmds=
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=yes
15205
15206 # This implies no fast_install, which is unacceptable.
15207 # Some rework will be needed to allow for fast_install
15208 # before this can be enabled.
15209 hardcode_into_libs=yes
15210
15211 dynamic_linker='Android linker'
15212 # Don't embed -rpath directories since the linker doesn't support them.
15213 hardcode_libdir_flag_spec='-L$libdir'
15214 ;;
15215
15216# This must be glibc/ELF.
15217linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15218 version_type=linux # correct to gnu/linux during the next big refactor
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15222 soname_spec='$libname$release$shared_ext$major'
15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15224 shlibpath_var=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath=no
15226
15227 # Some binutils ld are patched to set DT_RUNPATH
15228 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15229 $as_echo_n "(cached) " >&6
15230else
15231 lt_cv_shlibpath_overrides_runpath=no
15232 save_LDFLAGS=$LDFLAGS
15233 save_libdir=$libdir
15234 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15235 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h. */
15238
15239int main (void)
15240{
15241
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246if ac_fn_c_try_link "$LINENO"; then :
15247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15248 lt_cv_shlibpath_overrides_runpath=yes
15249fi
15250fi
15251rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
15253 LDFLAGS=$save_LDFLAGS
15254 libdir=$save_libdir
15255
15256fi
15257
15258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15259
15260 # This implies no fast_install, which is unacceptable.
15261 # Some rework will be needed to allow for fast_install
15262 # before this can be enabled.
15263 hardcode_into_libs=yes
15264
15265 # Ideally, we could use ldconfig to report *all* directores which are
15266 # searched for libraries, however this is still not possible. Aside from not
15267 # being certain /sbin/ldconfig is available, command
15268 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15269 # even though it is searched at run-time. Try to do the best guess by
15270 # appending ld.so.conf contents (and includes) to the search path.
15271 if test -f /etc/ld.so.conf; then
15272 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' ' '`
15273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15274 fi
15275
15276 # We used to test for /lib/ld.so.1 and disable shared libraries on
15277 # powerpc, because MkLinux only supported shared libraries with the
15278 # GNU dynamic linker. Since this was broken with cross compilers,
15279 # most powerpc-linux boxes support dynamic linking these days and
15280 # people can always --disable-shared, the test was removed, and we
15281 # assume the GNU/Linux dynamic linker is in use.
15282 dynamic_linker='GNU/Linux ld.so'
15283 ;;
15284
15285netbsdelf*-gnu)
15286 version_type=linux
15287 need_lib_prefix=no
15288 need_version=no
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=no
15293 hardcode_into_libs=yes
15294 dynamic_linker='NetBSD ld.elf_so'
15295 ;;
15296
15297netbsd*)
15298 version_type=sunos
15299 need_lib_prefix=no
15300 need_version=no
15301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15304 dynamic_linker='NetBSD (a.out) ld.so'
15305 else
15306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15307 soname_spec='$libname$release$shared_ext$major'
15308 dynamic_linker='NetBSD ld.elf_so'
15309 fi
15310 shlibpath_var=LD_LIBRARY_PATH
15311 shlibpath_overrides_runpath=yes
15312 hardcode_into_libs=yes
15313 ;;
15314
15315newsos6)
15316 version_type=linux # correct to gnu/linux during the next big refactor
15317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 ;;
15321
15322*nto* | *qnx*)
15323 version_type=qnx
15324 need_lib_prefix=no
15325 need_version=no
15326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15327 soname_spec='$libname$release$shared_ext$major'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 shlibpath_overrides_runpath=no
15330 hardcode_into_libs=yes
15331 dynamic_linker='ldqnx.so'
15332 ;;
15333
15334openbsd* | bitrig*)
15335 version_type=sunos
15336 sys_lib_dlsearch_path_spec=/usr/lib
15337 need_lib_prefix=no
15338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15339 need_version=no
15340 else
15341 need_version=yes
15342 fi
15343 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=yes
15347 ;;
15348
15349os2*)
15350 libname_spec='$name'
15351 version_type=windows
15352 shrext_cmds=.dll
15353 need_version=no
15354 need_lib_prefix=no
15355 # OS/2 can only load a DLL with a base name of 8 characters or less.
15356 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15357 v=$($ECHO $release$versuffix | tr -d .-);
15358 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15359 $ECHO $n$v`$shared_ext'
15360 library_names_spec='${libname}_dll.$libext'
15361 dynamic_linker='OS/2 ld.exe'
15362 shlibpath_var=BEGINLIBPATH
15363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15365 postinstall_cmds='base_file=`basename \$file`~
15366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15367 dldir=$destdir/`dirname \$dlpath`~
15368 test -d \$dldir || mkdir -p \$dldir~
15369 $install_prog $dir/$dlname \$dldir/$dlname~
15370 chmod a+x \$dldir/$dlname~
15371 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15372 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15373 fi'
15374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15375 dlpath=$dir/\$dldll~
15376 $RM \$dlpath'
15377 ;;
15378
15379osf3* | osf4* | osf5*)
15380 version_type=osf
15381 need_lib_prefix=no
15382 need_version=no
15383 soname_spec='$libname$release$shared_ext$major'
15384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 ;;
15389
15390rdos*)
15391 dynamic_linker=no
15392 ;;
15393
15394solaris*)
15395 version_type=linux # correct to gnu/linux during the next big refactor
15396 need_lib_prefix=no
15397 need_version=no
15398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15399 soname_spec='$libname$release$shared_ext$major'
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes
15402 hardcode_into_libs=yes
15403 # ldd complains unless libraries are executable
15404 postinstall_cmds='chmod +x $lib'
15405 ;;
15406
15407sunos4*)
15408 version_type=sunos
15409 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 shlibpath_overrides_runpath=yes
15413 if test yes = "$with_gnu_ld"; then
15414 need_lib_prefix=no
15415 fi
15416 need_version=yes
15417 ;;
15418
15419sysv4 | sysv4.3*)
15420 version_type=linux # correct to gnu/linux during the next big refactor
15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15422 soname_spec='$libname$release$shared_ext$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 case $host_vendor in
15425 sni)
15426 shlibpath_overrides_runpath=no
15427 need_lib_prefix=no
15428 runpath_var=LD_RUN_PATH
15429 ;;
15430 siemens)
15431 need_lib_prefix=no
15432 ;;
15433 motorola)
15434 need_lib_prefix=no
15435 need_version=no
15436 shlibpath_overrides_runpath=no
15437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15438 ;;
15439 esac
15440 ;;
15441
15442sysv4*MP*)
15443 if test -d /usr/nec; then
15444 version_type=linux # correct to gnu/linux during the next big refactor
15445 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15446 soname_spec='$libname$shared_ext.$major'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 fi
15449 ;;
15450
15451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15452 version_type=sco
15453 need_lib_prefix=no
15454 need_version=no
15455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15456 soname_spec='$libname$release$shared_ext$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15460 if test yes = "$with_gnu_ld"; then
15461 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15462 else
15463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15464 case $host_os in
15465 sco3.2v5*)
15466 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15467 ;;
15468 esac
15469 fi
15470 sys_lib_dlsearch_path_spec='/usr/lib'
15471 ;;
15472
15473tpf*)
15474 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15475 version_type=linux # correct to gnu/linux during the next big refactor
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 hardcode_into_libs=yes
15482 ;;
15483
15484uts4*)
15485 version_type=linux # correct to gnu/linux during the next big refactor
15486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15487 soname_spec='$libname$release$shared_ext$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 ;;
15490
15491*)
15492 dynamic_linker=no
15493 ;;
15494esac
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15496$as_echo "$dynamic_linker" >&6; }
15497test no = "$dynamic_linker" && can_build_shared=no
15498
15499variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15500if test yes = "$GCC"; then
15501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15502fi
15503
15504if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15505 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15506fi
15507
15508if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15509 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15510fi
15511
15512# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15513configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15514
15515# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15516func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15517
15518# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15519configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15618$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15619hardcode_action=
15620if test -n "$hardcode_libdir_flag_spec" ||
15621 test -n "$runpath_var" ||
15622 test yes = "$hardcode_automatic"; then
15623
15624 # We can hardcode non-existent directories.
15625 if test no != "$hardcode_direct" &&
15626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15627 # have to relink, otherwise we might link with an installed library
15628 # when we should be linking with a yet-to-be-installed one
15629 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15630 test no != "$hardcode_minus_L"; then
15631 # Linking always hardcodes the temporary library directory.
15632 hardcode_action=relink
15633 else
15634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15635 hardcode_action=immediate
15636 fi
15637else
15638 # We cannot hardcode anything, or else we can only hardcode existing
15639 # directories.
15640 hardcode_action=unsupported
15641fi
15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15643$as_echo "$hardcode_action" >&6; }
15644
15645if test relink = "$hardcode_action" ||
15646 test yes = "$inherit_rpath"; then
15647 # Fast installation is not supported
15648 enable_fast_install=no
15649elif test yes = "$shlibpath_overrides_runpath" ||
15650 test no = "$enable_shared"; then
15651 # Fast installation is not necessary
15652 enable_fast_install=needless
15653fi
15654
15655
15656
15657
15658
15659
15660 if test yes != "$enable_dlopen"; then
15661 enable_dlopen=unknown
15662 enable_dlopen_self=unknown
15663 enable_dlopen_self_static=unknown
15664else
15665 lt_cv_dlopen=no
15666 lt_cv_dlopen_libs=
15667
15668 case $host_os in
15669 beos*)
15670 lt_cv_dlopen=load_add_on
15671 lt_cv_dlopen_libs=
15672 lt_cv_dlopen_self=yes
15673 ;;
15674
15675 mingw* | pw32* | cegcc*)
15676 lt_cv_dlopen=LoadLibrary
15677 lt_cv_dlopen_libs=
15678 ;;
15679
15680 cygwin*)
15681 lt_cv_dlopen=dlopen
15682 lt_cv_dlopen_libs=
15683 ;;
15684
15685 darwin*)
15686 # if libdl is installed we need to link against it
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15688$as_echo_n "checking for dlopen in -ldl... " >&6; }
15689if ${ac_cv_lib_dl_dlopen+:} false; then :
15690 $as_echo_n "(cached) " >&6
15691else
15692 ac_check_lib_save_LIBS=$LIBS
15693LIBS="-ldl $LIBS"
15694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695/* end confdefs.h. */
15696
15697
15698#ifdef __cplusplus
15699extern "C"
15700#endif
15701char dlopen ();
15702int main (void)
15703{
15704return dlopen ();
15705 ;
15706 return 0;
15707}
15708_ACEOF
15709if ac_fn_c_try_link "$LINENO"; then :
15710 ac_cv_lib_dl_dlopen=yes
15711else
15712 ac_cv_lib_dl_dlopen=no
15713fi
15714rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716LIBS=$ac_check_lib_save_LIBS
15717fi
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15719$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15720if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15721 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15722else
15723
15724 lt_cv_dlopen=dyld
15725 lt_cv_dlopen_libs=
15726 lt_cv_dlopen_self=yes
15727
15728fi
15729
15730 ;;
15731
15732 tpf*)
15733 # Don't try to run any link tests for TPF. We know it's impossible
15734 # because TPF is a cross-compiler, and we know how we open DSOs.
15735 lt_cv_dlopen=dlopen
15736 lt_cv_dlopen_libs=
15737 lt_cv_dlopen_self=no
15738 ;;
15739
15740 *)
15741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15742if test "x$ac_cv_func_shl_load" = xyes; then :
15743 lt_cv_dlopen=shl_load
15744else
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15746$as_echo_n "checking for shl_load in -ldld... " >&6; }
15747if ${ac_cv_lib_dld_shl_load+:} false; then :
15748 $as_echo_n "(cached) " >&6
15749else
15750 ac_check_lib_save_LIBS=$LIBS
15751LIBS="-ldld $LIBS"
15752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753/* end confdefs.h. */
15754
15755
15756#ifdef __cplusplus
15757extern "C"
15758#endif
15759char shl_load ();
15760int main (void)
15761{
15762return shl_load ();
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767if ac_fn_c_try_link "$LINENO"; then :
15768 ac_cv_lib_dld_shl_load=yes
15769else
15770 ac_cv_lib_dld_shl_load=no
15771fi
15772rm -f core conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
15774LIBS=$ac_check_lib_save_LIBS
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15777$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15778if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15779 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15780else
15781 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15782if test "x$ac_cv_func_dlopen" = xyes; then :
15783 lt_cv_dlopen=dlopen
15784else
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15786$as_echo_n "checking for dlopen in -ldl... " >&6; }
15787if ${ac_cv_lib_dl_dlopen+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789else
15790 ac_check_lib_save_LIBS=$LIBS
15791LIBS="-ldl $LIBS"
15792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h. */
15794
15795
15796#ifdef __cplusplus
15797extern "C"
15798#endif
15799char dlopen ();
15800int main (void)
15801{
15802return dlopen ();
15803 ;
15804 return 0;
15805}
15806_ACEOF
15807if ac_fn_c_try_link "$LINENO"; then :
15808 ac_cv_lib_dl_dlopen=yes
15809else
15810 ac_cv_lib_dl_dlopen=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15814LIBS=$ac_check_lib_save_LIBS
15815fi
15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15817$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15818if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15819 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15820else
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15822$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15823if ${ac_cv_lib_svld_dlopen+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825else
15826 ac_check_lib_save_LIBS=$LIBS
15827LIBS="-lsvld $LIBS"
15828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h. */
15830
15831
15832#ifdef __cplusplus
15833extern "C"
15834#endif
15835char dlopen ();
15836int main (void)
15837{
15838return dlopen ();
15839 ;
15840 return 0;
15841}
15842_ACEOF
15843if ac_fn_c_try_link "$LINENO"; then :
15844 ac_cv_lib_svld_dlopen=yes
15845else
15846 ac_cv_lib_svld_dlopen=no
15847fi
15848rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850LIBS=$ac_check_lib_save_LIBS
15851fi
15852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15853$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15854if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15855 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15856else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15858$as_echo_n "checking for dld_link in -ldld... " >&6; }
15859if ${ac_cv_lib_dld_dld_link+:} false; then :
15860 $as_echo_n "(cached) " >&6
15861else
15862 ac_check_lib_save_LIBS=$LIBS
15863LIBS="-ldld $LIBS"
15864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865/* end confdefs.h. */
15866
15867
15868#ifdef __cplusplus
15869extern "C"
15870#endif
15871char dld_link ();
15872int main (void)
15873{
15874return dld_link ();
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879if ac_fn_c_try_link "$LINENO"; then :
15880 ac_cv_lib_dld_dld_link=yes
15881else
15882 ac_cv_lib_dld_dld_link=no
15883fi
15884rm -f core conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15886LIBS=$ac_check_lib_save_LIBS
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15889$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15890if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15891 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15892fi
15893
15894
15895fi
15896
15897
15898fi
15899
15900
15901fi
15902
15903
15904fi
15905
15906
15907fi
15908
15909 ;;
15910 esac
15911
15912 if test no = "$lt_cv_dlopen"; then
15913 enable_dlopen=no
15914 else
15915 enable_dlopen=yes
15916 fi
15917
15918 case $lt_cv_dlopen in
15919 dlopen)
15920 save_CPPFLAGS=$CPPFLAGS
15921 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15922
15923 save_LDFLAGS=$LDFLAGS
15924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15925
15926 save_LIBS=$LIBS
15927 LIBS="$lt_cv_dlopen_libs $LIBS"
15928
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15930$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15931if ${lt_cv_dlopen_self+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933else
15934 if test yes = "$cross_compiling"; then :
15935 lt_cv_dlopen_self=cross
15936else
15937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15938 lt_status=$lt_dlunknown
15939 cat > conftest.$ac_ext <<_LT_EOF
15940#line $LINENO "configure"
15941#include "confdefs.h"
15942
15943#if HAVE_DLFCN_H
15944#include <dlfcn.h>
15945#endif
15946
15947#include <stdio.h>
15948
15949#ifdef RTLD_GLOBAL
15950# define LT_DLGLOBAL RTLD_GLOBAL
15951#else
15952# ifdef DL_GLOBAL
15953# define LT_DLGLOBAL DL_GLOBAL
15954# else
15955# define LT_DLGLOBAL 0
15956# endif
15957#endif
15958
15959/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15960 find out it does not work in some platform. */
15961#ifndef LT_DLLAZY_OR_NOW
15962# ifdef RTLD_LAZY
15963# define LT_DLLAZY_OR_NOW RTLD_LAZY
15964# else
15965# ifdef DL_LAZY
15966# define LT_DLLAZY_OR_NOW DL_LAZY
15967# else
15968# ifdef RTLD_NOW
15969# define LT_DLLAZY_OR_NOW RTLD_NOW
15970# else
15971# ifdef DL_NOW
15972# define LT_DLLAZY_OR_NOW DL_NOW
15973# else
15974# define LT_DLLAZY_OR_NOW 0
15975# endif
15976# endif
15977# endif
15978# endif
15979#endif
15980
15981/* When -fvisibility=hidden is used, assume the code has been annotated
15982 correspondingly for the symbols needed. */
15983#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15984int fnord () __attribute__((visibility("default")));
15985#endif
15986
15987int fnord () { return 42; }
15988int main ()
15989{
15990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15991 int status = $lt_dlunknown;
15992
15993 if (self)
15994 {
15995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15996 else
15997 {
15998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15999 else puts (dlerror ());
16000 }
16001 /* dlclose (self); */
16002 }
16003 else
16004 puts (dlerror ());
16005
16006 return status;
16007}
16008_LT_EOF
16009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16010 (eval $ac_link) 2>&5
16011 ac_status=$?
16012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16014 (./conftest; exit; ) >&5 2>/dev/null
16015 lt_status=$?
16016 case x$lt_status in
16017 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16018 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16019 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16020 esac
16021 else :
16022 # compilation failed
16023 lt_cv_dlopen_self=no
16024 fi
16025fi
16026rm -fr conftest*
16027
16028
16029fi
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16031$as_echo "$lt_cv_dlopen_self" >&6; }
16032
16033 if test yes = "$lt_cv_dlopen_self"; then
16034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16036$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16037if ${lt_cv_dlopen_self_static+:} false; then :
16038 $as_echo_n "(cached) " >&6
16039else
16040 if test yes = "$cross_compiling"; then :
16041 lt_cv_dlopen_self_static=cross
16042else
16043 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16044 lt_status=$lt_dlunknown
16045 cat > conftest.$ac_ext <<_LT_EOF
16046#line $LINENO "configure"
16047#include "confdefs.h"
16048
16049#if HAVE_DLFCN_H
16050#include <dlfcn.h>
16051#endif
16052
16053#include <stdio.h>
16054
16055#ifdef RTLD_GLOBAL
16056# define LT_DLGLOBAL RTLD_GLOBAL
16057#else
16058# ifdef DL_GLOBAL
16059# define LT_DLGLOBAL DL_GLOBAL
16060# else
16061# define LT_DLGLOBAL 0
16062# endif
16063#endif
16064
16065/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16066 find out it does not work in some platform. */
16067#ifndef LT_DLLAZY_OR_NOW
16068# ifdef RTLD_LAZY
16069# define LT_DLLAZY_OR_NOW RTLD_LAZY
16070# else
16071# ifdef DL_LAZY
16072# define LT_DLLAZY_OR_NOW DL_LAZY
16073# else
16074# ifdef RTLD_NOW
16075# define LT_DLLAZY_OR_NOW RTLD_NOW
16076# else
16077# ifdef DL_NOW
16078# define LT_DLLAZY_OR_NOW DL_NOW
16079# else
16080# define LT_DLLAZY_OR_NOW 0
16081# endif
16082# endif
16083# endif
16084# endif
16085#endif
16086
16087/* When -fvisibility=hidden is used, assume the code has been annotated
16088 correspondingly for the symbols needed. */
16089#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16090int fnord () __attribute__((visibility("default")));
16091#endif
16092
16093int fnord () { return 42; }
16094int main ()
16095{
16096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16097 int status = $lt_dlunknown;
16098
16099 if (self)
16100 {
16101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16102 else
16103 {
16104 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16105 else puts (dlerror ());
16106 }
16107 /* dlclose (self); */
16108 }
16109 else
16110 puts (dlerror ());
16111
16112 return status;
16113}
16114_LT_EOF
16115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16116 (eval $ac_link) 2>&5
16117 ac_status=$?
16118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16119 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16120 (./conftest; exit; ) >&5 2>/dev/null
16121 lt_status=$?
16122 case x$lt_status in
16123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16125 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16126 esac
16127 else :
16128 # compilation failed
16129 lt_cv_dlopen_self_static=no
16130 fi
16131fi
16132rm -fr conftest*
16133
16134
16135fi
16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16137$as_echo "$lt_cv_dlopen_self_static" >&6; }
16138 fi
16139
16140 CPPFLAGS=$save_CPPFLAGS
16141 LDFLAGS=$save_LDFLAGS
16142 LIBS=$save_LIBS
16143 ;;
16144 esac
16145
16146 case $lt_cv_dlopen_self in
16147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16148 *) enable_dlopen_self=unknown ;;
16149 esac
16150
16151 case $lt_cv_dlopen_self_static in
16152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16153 *) enable_dlopen_self_static=unknown ;;
16154 esac
16155fi
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173striplib=
16174old_striplib=
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16176$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16177if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16178 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16179 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181$as_echo "yes" >&6; }
16182else
16183# FIXME - insert some real tests, host_os isn't really good enough
16184 case $host_os in
16185 darwin*)
16186 if test -n "$STRIP"; then
16187 striplib="$STRIP -x"
16188 old_striplib="$STRIP -S"
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16190$as_echo "yes" >&6; }
16191 else
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16193$as_echo "no" >&6; }
16194 fi
16195 ;;
16196 *)
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198$as_echo "no" >&6; }
16199 ;;
16200 esac
16201fi
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214 # Report what library types will actually be built
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16216$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16218$as_echo "$can_build_shared" >&6; }
16219
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16221$as_echo_n "checking whether to build shared libraries... " >&6; }
16222 test no = "$can_build_shared" && enable_shared=no
16223
16224 # On AIX, shared libraries and static libraries use the same namespace, and
16225 # are all built from PIC.
16226 case $host_os in
16227 aix3*)
16228 test yes = "$enable_shared" && enable_static=no
16229 if test -n "$RANLIB"; then
16230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16231 postinstall_cmds='$RANLIB $lib'
16232 fi
16233 ;;
16234
16235 aix[4-9]*)
16236 if test ia64 != "$host_cpu"; then
16237 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16238 yes,aix,yes) ;; # shared object as lib.so file only
16239 yes,svr4,*) ;; # shared object as lib.so archive member only
16240 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16241 esac
16242 fi
16243 ;;
16244 esac
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16246$as_echo "$enable_shared" >&6; }
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16249$as_echo_n "checking whether to build static libraries... " >&6; }
16250 # Make sure either enable_shared or enable_static is yes.
16251 test yes = "$enable_shared" || enable_static=yes
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16253$as_echo "$enable_static" >&6; }
16254
16255
16256
16257
16258fi
16259ac_ext=c
16260ac_cpp='$CPP $CPPFLAGS'
16261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16263ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264
16265CC=$lt_save_CC
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281 ac_config_commands="$ac_config_commands libtool"
16282
16283
16284
16285
16286# Only expand once:
16287
16288
16289## --------------------- ##
16290## End of libtool code ##
16291## --------------------- ##
16292
16293#
16294# Verify if finally libtool shared libraries will be built
16295#
16296
16297case "x$enable_shared" in # ((
16298 xyes | xno)
16299 xc_lt_build_shared=$enable_shared
16300 ;;
16301 *)
16302 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16303 ;;
16304esac
16305
16306#
16307# Verify if finally libtool static libraries will be built
16308#
16309
16310case "x$enable_static" in # ((
16311 xyes | xno)
16312 xc_lt_build_static=$enable_static
16313 ;;
16314 *)
16315 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16316 ;;
16317esac
16318
16319#
16320# Verify if libtool shared libraries should be linked using flag -version-info
16321#
16322
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16324$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
16325xc_lt_shlib_use_version_info='yes'
16326if test "x$version_type" = 'xnone'; then
16327 xc_lt_shlib_use_version_info='no'
16328fi
16329case $host_os in # (
16330 amigaos*)
16331 xc_lt_shlib_use_version_info='yes'
16332 ;;
16333esac
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16335$as_echo "$xc_lt_shlib_use_version_info" >&6; }
16336
16337#
16338# Verify if libtool shared libraries should be linked using flag -no-undefined
16339#
16340
16341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16342$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
16343xc_lt_shlib_use_no_undefined='no'
16344if test "x$allow_undefined" = 'xno'; then
16345 xc_lt_shlib_use_no_undefined='yes'
16346elif test "x$allow_undefined_flag" = 'xunsupported'; then
16347 xc_lt_shlib_use_no_undefined='yes'
16348fi
16349case $host_os in # (
16350 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16351 xc_lt_shlib_use_no_undefined='yes'
16352 ;;
16353esac
16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16355$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
16356
16357#
16358# Verify if libtool shared libraries should be linked using flag -mimpure-text
16359#
16360
16361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16362$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
16363xc_lt_shlib_use_mimpure_text='no'
16364case $host_os in # (
16365 solaris2*)
16366 if test "x$GCC" = 'xyes'; then
16367 xc_lt_shlib_use_mimpure_text='yes'
16368 fi
16369 ;;
16370esac
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16372$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
16373
16374#
16375# Find out whether libtool libraries would be built wit PIC
16376#
16377
16378case "x$pic_mode" in # ((((
16379 xdefault)
16380 xc_lt_build_shared_with_pic='yes'
16381 xc_lt_build_static_with_pic='no'
16382 ;;
16383 xyes)
16384 xc_lt_build_shared_with_pic='yes'
16385 xc_lt_build_static_with_pic='yes'
16386 ;;
16387 xno)
16388 xc_lt_build_shared_with_pic='no'
16389 xc_lt_build_static_with_pic='no'
16390 ;;
16391 *)
16392 xc_lt_build_shared_with_pic='unknown'
16393 xc_lt_build_static_with_pic='unknown'
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16395$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16396 ;;
16397esac
16398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16399$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16401$as_echo "$xc_lt_build_shared_with_pic" >&6; }
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16403$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
16404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16405$as_echo "$xc_lt_build_static_with_pic" >&6; }
16406
16407#
16408# Verify if libtool shared libraries will be built while static not built
16409#
16410
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16412$as_echo_n "checking whether to build shared libraries only... " >&6; }
16413if test "$xc_lt_build_shared" = 'yes' &&
16414 test "$xc_lt_build_static" = 'no'; then
16415 xc_lt_build_shared_only='yes'
16416else
16417 xc_lt_build_shared_only='no'
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16420$as_echo "$xc_lt_build_shared_only" >&6; }
16421
16422#
16423# Verify if libtool static libraries will be built while shared not built
16424#
16425
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16427$as_echo_n "checking whether to build static libraries only... " >&6; }
16428if test "$xc_lt_build_static" = 'yes' &&
16429 test "$xc_lt_build_shared" = 'no'; then
16430 xc_lt_build_static_only='yes'
16431else
16432 xc_lt_build_static_only='no'
16433fi
16434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16435$as_echo "$xc_lt_build_static_only" >&6; }
16436
16437
16438
16439
16440#
16441# Automake conditionals based on libtool related checks
16442#
16443
16444 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16445 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16446 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16447else
16448 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16449 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16450fi
16451
16452 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16453 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16454 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16455else
16456 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16457 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16458fi
16459
16460 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16461 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16462 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16463else
16464 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16465 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16466fi
16467
16468
16469#
16470# Due to libtool and automake machinery limitations of not allowing
16471# specifying separate CPPFLAGS or CFLAGS when compiling objects for
16472# inclusion of these in shared or static libraries, we are forced to
16473# build using separate configure runs for shared and static libraries
16474# on systems where different CPPFLAGS or CFLAGS are mandatory in order
16475# to compile objects for each kind of library. Notice that relying on
16476# the '-DPIC' CFLAG that libtool provides is not valid given that the
16477# user might for example choose to build static libraries with PIC.
16478#
16479
16480#
16481# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16482# targeting a static library and not building its shared counterpart.
16483#
16484
16485 if test "x$xc_lt_build_static_only" = 'xyes'; then
16486 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16487 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16488else
16489 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16490 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16491fi
16492
16493
16494#
16495# Make staticlib CPPFLAG variable and its definition visible in output
16496# files unconditionally, providing an empty definition unless strictly
16497# targeting a static library and not building its shared counterpart.
16498#
16499
16500CPPFLAG_CURL_STATICLIB=
16501if test "x$xc_lt_build_static_only" = 'xyes'; then
16502 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16503fi
16504
16505
16506
16507# Determine whether all dependent libraries must be specified when linking
16508if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16509then
16510 REQUIRE_LIB_DEPS=no
16511else
16512 REQUIRE_LIB_DEPS=yes
16513fi
16514
16515 if test x$REQUIRE_LIB_DEPS = xyes; then
16516 USE_EXPLICIT_LIB_DEPS_TRUE=
16517 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16518else
16519 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16520 USE_EXPLICIT_LIB_DEPS_FALSE=
16521fi
16522
16523
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16525$as_echo_n "checking for inline... " >&6; }
16526if ${ac_cv_c_inline+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528else
16529 ac_cv_c_inline=no
16530for ac_kw in inline __inline__ __inline; do
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532/* end confdefs.h. */
16533#ifndef __cplusplus
16534typedef int foo_t;
16535static $ac_kw foo_t static_foo () {return 0; }
16536$ac_kw foo_t foo () {return 0; }
16537#endif
16538
16539_ACEOF
16540if ac_fn_c_try_compile "$LINENO"; then :
16541 ac_cv_c_inline=$ac_kw
16542fi
16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 test "$ac_cv_c_inline" != no && break
16545done
16546
16547fi
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16549$as_echo "$ac_cv_c_inline" >&6; }
16550
16551case $ac_cv_c_inline in
16552 inline | yes) ;;
16553 *)
16554 case $ac_cv_c_inline in
16555 no) ac_val=;;
16556 *) ac_val=$ac_cv_c_inline;;
16557 esac
16558 cat >>confdefs.h <<_ACEOF
16559#ifndef __cplusplus
16560#define inline $ac_val
16561#endif
16562_ACEOF
16563 ;;
16564esac
16565
16566
16567
16568
16569 #
16570 compiler_id="unknown"
16571 compiler_num="0"
16572 #
16573 flags_dbg_all="unknown"
16574 flags_dbg_yes="unknown"
16575 flags_dbg_off="unknown"
16576 flags_opt_all="unknown"
16577 flags_opt_yes="unknown"
16578 flags_opt_off="unknown"
16579 #
16580 flags_prefer_cppflags="no"
16581 #
16582
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16584$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16585
16586 OLDCPPFLAGS=$CPPFLAGS
16587 # CPPPFLAG comes from CURL_CPP_P
16588 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16589 if test -z "$SED"; then
16590 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16591 fi
16592 if test -z "$GREP"; then
16593 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16594 fi
16595
16596 tmp_exp=""
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598/* end confdefs.h. */
16599
16600
16601#ifdef __DECC
16602CURL_DEF_TOKEN __DECC
16603#endif
16604
16605
16606_ACEOF
16607if ac_fn_c_try_cpp "$LINENO"; then :
16608
16609 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16610 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16611 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16612 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16613 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16614 tmp_exp=""
16615 fi
16616
16617fi
16618rm -f conftest.err conftest.i conftest.$ac_ext
16619 if test -z "$tmp_exp"; then
16620 curl_cv_have_def___DECC=no
16621
16622 else
16623 curl_cv_have_def___DECC=yes
16624 curl_cv_def___DECC=$tmp_exp
16625
16626 fi
16627 CPPFLAGS=$OLDCPPFLAGS
16628
16629
16630 OLDCPPFLAGS=$CPPFLAGS
16631 # CPPPFLAG comes from CURL_CPP_P
16632 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16633 if test -z "$SED"; then
16634 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16635 fi
16636 if test -z "$GREP"; then
16637 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16638 fi
16639
16640 tmp_exp=""
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642/* end confdefs.h. */
16643
16644
16645#ifdef __DECC_VER
16646CURL_DEF_TOKEN __DECC_VER
16647#endif
16648
16649
16650_ACEOF
16651if ac_fn_c_try_cpp "$LINENO"; then :
16652
16653 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16654 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16655 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16656 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16657 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16658 tmp_exp=""
16659 fi
16660
16661fi
16662rm -f conftest.err conftest.i conftest.$ac_ext
16663 if test -z "$tmp_exp"; then
16664 curl_cv_have_def___DECC_VER=no
16665
16666 else
16667 curl_cv_have_def___DECC_VER=yes
16668 curl_cv_def___DECC_VER=$tmp_exp
16669
16670 fi
16671 CPPFLAGS=$OLDCPPFLAGS
16672
16673 if test "$curl_cv_have_def___DECC" = "yes" &&
16674 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16676$as_echo "yes" >&6; }
16677 compiler_id="DEC_C"
16678 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16679 flags_dbg_yes="-g2"
16680 flags_dbg_off=""
16681 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16682 flags_opt_yes="-O1"
16683 flags_opt_off="-O0"
16684 else
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686$as_echo "no" >&6; }
16687 fi
16688
16689
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16691$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16692
16693 OLDCPPFLAGS=$CPPFLAGS
16694 # CPPPFLAG comes from CURL_CPP_P
16695 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16696 if test -z "$SED"; then
16697 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16698 fi
16699 if test -z "$GREP"; then
16700 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16701 fi
16702
16703 tmp_exp=""
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705/* end confdefs.h. */
16706
16707
16708#ifdef __HP_cc
16709CURL_DEF_TOKEN __HP_cc
16710#endif
16711
16712
16713_ACEOF
16714if ac_fn_c_try_cpp "$LINENO"; then :
16715
16716 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16717 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16718 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16719 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16720 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16721 tmp_exp=""
16722 fi
16723
16724fi
16725rm -f conftest.err conftest.i conftest.$ac_ext
16726 if test -z "$tmp_exp"; then
16727 curl_cv_have_def___HP_cc=no
16728
16729 else
16730 curl_cv_have_def___HP_cc=yes
16731 curl_cv_def___HP_cc=$tmp_exp
16732
16733 fi
16734 CPPFLAGS=$OLDCPPFLAGS
16735
16736 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16738$as_echo "yes" >&6; }
16739 compiler_id="HP_UX_C"
16740 flags_dbg_all="-g -s"
16741 flags_dbg_yes="-g"
16742 flags_dbg_off="-s"
16743 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16744 flags_opt_yes="+O2"
16745 flags_opt_off="+O0"
16746 else
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748$as_echo "no" >&6; }
16749 fi
16750
16751
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16753$as_echo_n "checking if compiler is IBM C... " >&6; }
16754
16755 OLDCPPFLAGS=$CPPFLAGS
16756 # CPPPFLAG comes from CURL_CPP_P
16757 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16758 if test -z "$SED"; then
16759 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16760 fi
16761 if test -z "$GREP"; then
16762 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16763 fi
16764
16765 tmp_exp=""
16766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767/* end confdefs.h. */
16768
16769
16770#ifdef __IBMC__
16771CURL_DEF_TOKEN __IBMC__
16772#endif
16773
16774
16775_ACEOF
16776if ac_fn_c_try_cpp "$LINENO"; then :
16777
16778 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16779 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16780 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16781 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16782 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16783 tmp_exp=""
16784 fi
16785
16786fi
16787rm -f conftest.err conftest.i conftest.$ac_ext
16788 if test -z "$tmp_exp"; then
16789 curl_cv_have_def___IBMC__=no
16790
16791 else
16792 curl_cv_have_def___IBMC__=yes
16793 curl_cv_def___IBMC__=$tmp_exp
16794
16795 fi
16796 CPPFLAGS=$OLDCPPFLAGS
16797
16798 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16800$as_echo "yes" >&6; }
16801 compiler_id="IBM_C"
16802 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16803 flags_dbg_yes="-g"
16804 flags_dbg_off=""
16805 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16806 flags_opt_all="$flags_opt_all -qnooptimize"
16807 flags_opt_all="$flags_opt_all -qoptimize=0"
16808 flags_opt_all="$flags_opt_all -qoptimize=1"
16809 flags_opt_all="$flags_opt_all -qoptimize=2"
16810 flags_opt_all="$flags_opt_all -qoptimize=3"
16811 flags_opt_all="$flags_opt_all -qoptimize=4"
16812 flags_opt_all="$flags_opt_all -qoptimize=5"
16813 flags_opt_yes="-O2"
16814 flags_opt_off="-qnooptimize"
16815 flags_prefer_cppflags="yes"
16816 else
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16818$as_echo "no" >&6; }
16819 fi
16820
16821
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16823$as_echo_n "checking if compiler is Intel C... " >&6; }
16824
16825 OLDCPPFLAGS=$CPPFLAGS
16826 # CPPPFLAG comes from CURL_CPP_P
16827 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16828 if test -z "$SED"; then
16829 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16830 fi
16831 if test -z "$GREP"; then
16832 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16833 fi
16834
16835 tmp_exp=""
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837/* end confdefs.h. */
16838
16839
16840#ifdef __INTEL_COMPILER
16841CURL_DEF_TOKEN __INTEL_COMPILER
16842#endif
16843
16844
16845_ACEOF
16846if ac_fn_c_try_cpp "$LINENO"; then :
16847
16848 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16849 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16850 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16851 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16852 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16853 tmp_exp=""
16854 fi
16855
16856fi
16857rm -f conftest.err conftest.i conftest.$ac_ext
16858 if test -z "$tmp_exp"; then
16859 curl_cv_have_def___INTEL_COMPILER=no
16860
16861 else
16862 curl_cv_have_def___INTEL_COMPILER=yes
16863 curl_cv_def___INTEL_COMPILER=$tmp_exp
16864
16865 fi
16866 CPPFLAGS=$OLDCPPFLAGS
16867
16868 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16870$as_echo "yes" >&6; }
16871 compiler_num="$curl_cv_def___INTEL_COMPILER"
16872
16873 OLDCPPFLAGS=$CPPFLAGS
16874 # CPPPFLAG comes from CURL_CPP_P
16875 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16876 if test -z "$SED"; then
16877 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16878 fi
16879 if test -z "$GREP"; then
16880 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16881 fi
16882
16883 tmp_exp=""
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885/* end confdefs.h. */
16886
16887
16888#ifdef __unix__
16889CURL_DEF_TOKEN __unix__
16890#endif
16891
16892
16893_ACEOF
16894if ac_fn_c_try_cpp "$LINENO"; then :
16895
16896 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16897 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16898 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16899 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16900 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16901 tmp_exp=""
16902 fi
16903
16904fi
16905rm -f conftest.err conftest.i conftest.$ac_ext
16906 if test -z "$tmp_exp"; then
16907 curl_cv_have_def___unix__=no
16908
16909 else
16910 curl_cv_have_def___unix__=yes
16911 curl_cv_def___unix__=$tmp_exp
16912
16913 fi
16914 CPPFLAGS=$OLDCPPFLAGS
16915
16916 if test "$curl_cv_have_def___unix__" = "yes"; then
16917 compiler_id="INTEL_UNIX_C"
16918 flags_dbg_all="-g -g0"
16919 flags_dbg_yes="-g"
16920 flags_dbg_off=""
16921 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16922 flags_opt_yes="-O2"
16923 flags_opt_off="-O0"
16924 else
16925 compiler_id="INTEL_WINDOWS_C"
16926 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16927 flags_dbg_all="$flags_dbg_all /debug"
16928 flags_dbg_all="$flags_dbg_all /debug:none"
16929 flags_dbg_all="$flags_dbg_all /debug:minimal"
16930 flags_dbg_all="$flags_dbg_all /debug:partial"
16931 flags_dbg_all="$flags_dbg_all /debug:full"
16932 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16933 flags_dbg_all="$flags_dbg_all /debug:extended"
16934 flags_dbg_yes="/Zi /Oy-"
16935 flags_dbg_off="/debug:none /Oy-"
16936 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16937 flags_opt_yes="/O2"
16938 flags_opt_off="/Od"
16939 fi
16940 else
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942$as_echo "no" >&6; }
16943 fi
16944
16945
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16947$as_echo_n "checking if compiler is clang... " >&6; }
16948
16949 OLDCPPFLAGS=$CPPFLAGS
16950 # CPPPFLAG comes from CURL_CPP_P
16951 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16952 if test -z "$SED"; then
16953 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16954 fi
16955 if test -z "$GREP"; then
16956 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16957 fi
16958
16959 tmp_exp=""
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961/* end confdefs.h. */
16962
16963
16964#ifdef __clang__
16965CURL_DEF_TOKEN __clang__
16966#endif
16967
16968
16969_ACEOF
16970if ac_fn_c_try_cpp "$LINENO"; then :
16971
16972 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16973 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16974 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16975 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16976 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16977 tmp_exp=""
16978 fi
16979
16980fi
16981rm -f conftest.err conftest.i conftest.$ac_ext
16982 if test -z "$tmp_exp"; then
16983 curl_cv_have_def___clang__=no
16984
16985 else
16986 curl_cv_have_def___clang__=yes
16987 curl_cv_def___clang__=$tmp_exp
16988
16989 fi
16990 CPPFLAGS=$OLDCPPFLAGS
16991
16992 if test "$curl_cv_have_def___clang__" = "yes"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16994$as_echo "yes" >&6; }
16995 compiler_id="CLANG"
16996 fullclangver=`$CC -v 2>&1 | grep version`
16997 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16998 if test -z "$clangver"; then
16999 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17000 clangver=`3.7`
17001 else
17002 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17003 fi
17004 fi
17005 clangvhi=`echo $clangver | cut -d . -f1`
17006 clangvlo=`echo $clangver | cut -d . -f2`
17007 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17008 flags_dbg_all="-g -g0 -g1 -g2 -g3"
17009 flags_dbg_all="$flags_dbg_all -ggdb"
17010 flags_dbg_all="$flags_dbg_all -gstabs"
17011 flags_dbg_all="$flags_dbg_all -gstabs+"
17012 flags_dbg_all="$flags_dbg_all -gcoff"
17013 flags_dbg_all="$flags_dbg_all -gxcoff"
17014 flags_dbg_all="$flags_dbg_all -gdwarf-2"
17015 flags_dbg_all="$flags_dbg_all -gvms"
17016 flags_dbg_yes="-g"
17017 flags_dbg_off=""
17018 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17019 flags_opt_yes="-Os"
17020 flags_opt_off="-O0"
17021 else
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023$as_echo "no" >&6; }
17024 fi
17025
17026
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17028$as_echo_n "checking if compiler is GNU C... " >&6; }
17029
17030 OLDCPPFLAGS=$CPPFLAGS
17031 # CPPPFLAG comes from CURL_CPP_P
17032 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17033 if test -z "$SED"; then
17034 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17035 fi
17036 if test -z "$GREP"; then
17037 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17038 fi
17039
17040 tmp_exp=""
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042/* end confdefs.h. */
17043
17044
17045#ifdef __GNUC__
17046CURL_DEF_TOKEN __GNUC__
17047#endif
17048
17049
17050_ACEOF
17051if ac_fn_c_try_cpp "$LINENO"; then :
17052
17053 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17054 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17055 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17056 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17057 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17058 tmp_exp=""
17059 fi
17060
17061fi
17062rm -f conftest.err conftest.i conftest.$ac_ext
17063 if test -z "$tmp_exp"; then
17064 curl_cv_have_def___GNUC__=no
17065
17066 else
17067 curl_cv_have_def___GNUC__=yes
17068 curl_cv_def___GNUC__=$tmp_exp
17069
17070 fi
17071 CPPFLAGS=$OLDCPPFLAGS
17072
17073 if test "$curl_cv_have_def___GNUC__" = "yes" &&
17074 test "$compiler_id" = "unknown"; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076$as_echo "yes" >&6; }
17077 compiler_id="GNU_C"
17078 gccver=`$CC -dumpversion`
17079 gccvhi=`echo $gccver | cut -d . -f1`
17080 gccvlo=`echo $gccver | cut -d . -f2`
17081 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17082 flags_dbg_all="-g -g0 -g1 -g2 -g3"
17083 flags_dbg_all="$flags_dbg_all -ggdb"
17084 flags_dbg_all="$flags_dbg_all -gstabs"
17085 flags_dbg_all="$flags_dbg_all -gstabs+"
17086 flags_dbg_all="$flags_dbg_all -gcoff"
17087 flags_dbg_all="$flags_dbg_all -gxcoff"
17088 flags_dbg_all="$flags_dbg_all -gdwarf-2"
17089 flags_dbg_all="$flags_dbg_all -gvms"
17090 flags_dbg_yes="-g"
17091 flags_dbg_off=""
17092 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17093 flags_opt_yes="-O2"
17094 flags_opt_off="-O0"
17095
17096 OLDCPPFLAGS=$CPPFLAGS
17097 # CPPPFLAG comes from CURL_CPP_P
17098 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17099 if test -z "$SED"; then
17100 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17101 fi
17102 if test -z "$GREP"; then
17103 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17104 fi
17105
17106 tmp_exp=""
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h. */
17109
17110
17111#ifdef _WIN32
17112CURL_DEF_TOKEN _WIN32
17113#endif
17114
17115
17116_ACEOF
17117if ac_fn_c_try_cpp "$LINENO"; then :
17118
17119 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17120 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17121 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17122 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17123 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17124 tmp_exp=""
17125 fi
17126
17127fi
17128rm -f conftest.err conftest.i conftest.$ac_ext
17129 if test -z "$tmp_exp"; then
17130 curl_cv_have_def__WIN32=no
17131
17132 else
17133 curl_cv_have_def__WIN32=yes
17134 curl_cv_def__WIN32=$tmp_exp
17135
17136 fi
17137 CPPFLAGS=$OLDCPPFLAGS
17138
17139 else
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141$as_echo "no" >&6; }
17142 fi
17143
17144
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17146$as_echo_n "checking if compiler is LCC... " >&6; }
17147
17148 OLDCPPFLAGS=$CPPFLAGS
17149 # CPPPFLAG comes from CURL_CPP_P
17150 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17151 if test -z "$SED"; then
17152 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17153 fi
17154 if test -z "$GREP"; then
17155 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17156 fi
17157
17158 tmp_exp=""
17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17160/* end confdefs.h. */
17161
17162
17163#ifdef __LCC__
17164CURL_DEF_TOKEN __LCC__
17165#endif
17166
17167
17168_ACEOF
17169if ac_fn_c_try_cpp "$LINENO"; then :
17170
17171 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17172 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17173 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17174 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17175 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17176 tmp_exp=""
17177 fi
17178
17179fi
17180rm -f conftest.err conftest.i conftest.$ac_ext
17181 if test -z "$tmp_exp"; then
17182 curl_cv_have_def___LCC__=no
17183
17184 else
17185 curl_cv_have_def___LCC__=yes
17186 curl_cv_def___LCC__=$tmp_exp
17187
17188 fi
17189 CPPFLAGS=$OLDCPPFLAGS
17190
17191 if test "$curl_cv_have_def___LCC__" = "yes"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193$as_echo "yes" >&6; }
17194 compiler_id="LCC"
17195 flags_dbg_all="-g"
17196 flags_dbg_yes="-g"
17197 flags_dbg_off=""
17198 flags_opt_all=""
17199 flags_opt_yes=""
17200 flags_opt_off=""
17201 else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203$as_echo "no" >&6; }
17204 fi
17205
17206
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17208$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
17209
17210 OLDCPPFLAGS=$CPPFLAGS
17211 # CPPPFLAG comes from CURL_CPP_P
17212 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17213 if test -z "$SED"; then
17214 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17215 fi
17216 if test -z "$GREP"; then
17217 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17218 fi
17219
17220 tmp_exp=""
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h. */
17223
17224
17225#ifdef __GNUC__
17226CURL_DEF_TOKEN __GNUC__
17227#endif
17228
17229
17230_ACEOF
17231if ac_fn_c_try_cpp "$LINENO"; then :
17232
17233 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17234 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17235 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17236 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17237 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17238 tmp_exp=""
17239 fi
17240
17241fi
17242rm -f conftest.err conftest.i conftest.$ac_ext
17243 if test -z "$tmp_exp"; then
17244 curl_cv_have_def___GNUC__=no
17245
17246 else
17247 curl_cv_have_def___GNUC__=yes
17248 curl_cv_def___GNUC__=$tmp_exp
17249
17250 fi
17251 CPPFLAGS=$OLDCPPFLAGS
17252
17253
17254 OLDCPPFLAGS=$CPPFLAGS
17255 # CPPPFLAG comes from CURL_CPP_P
17256 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17257 if test -z "$SED"; then
17258 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17259 fi
17260 if test -z "$GREP"; then
17261 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17262 fi
17263
17264 tmp_exp=""
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266/* end confdefs.h. */
17267
17268
17269#ifdef _COMPILER_VERSION
17270CURL_DEF_TOKEN _COMPILER_VERSION
17271#endif
17272
17273
17274_ACEOF
17275if ac_fn_c_try_cpp "$LINENO"; then :
17276
17277 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17278 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17279 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17280 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17281 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17282 tmp_exp=""
17283 fi
17284
17285fi
17286rm -f conftest.err conftest.i conftest.$ac_ext
17287 if test -z "$tmp_exp"; then
17288 curl_cv_have_def__COMPILER_VERSION=no
17289
17290 else
17291 curl_cv_have_def__COMPILER_VERSION=yes
17292 curl_cv_def__COMPILER_VERSION=$tmp_exp
17293
17294 fi
17295 CPPFLAGS=$OLDCPPFLAGS
17296
17297
17298 OLDCPPFLAGS=$CPPFLAGS
17299 # CPPPFLAG comes from CURL_CPP_P
17300 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17301 if test -z "$SED"; then
17302 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17303 fi
17304 if test -z "$GREP"; then
17305 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17306 fi
17307
17308 tmp_exp=""
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h. */
17311
17312
17313#ifdef _SGI_COMPILER_VERSION
17314CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17315#endif
17316
17317
17318_ACEOF
17319if ac_fn_c_try_cpp "$LINENO"; then :
17320
17321 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17322 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17323 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17324 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17325 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17326 tmp_exp=""
17327 fi
17328
17329fi
17330rm -f conftest.err conftest.i conftest.$ac_ext
17331 if test -z "$tmp_exp"; then
17332 curl_cv_have_def__SGI_COMPILER_VERSION=no
17333
17334 else
17335 curl_cv_have_def__SGI_COMPILER_VERSION=yes
17336 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17337
17338 fi
17339 CPPFLAGS=$OLDCPPFLAGS
17340
17341 if test "$curl_cv_have_def___GNUC__" = "no" &&
17342 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17343 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345$as_echo "yes" >&6; }
17346 compiler_id="SGI_MIPSPRO_C"
17347 flags_dbg_all="-g -g0 -g1 -g2 -g3"
17348 flags_dbg_yes="-g"
17349 flags_dbg_off=""
17350 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17351 flags_opt_yes="-O2"
17352 flags_opt_off="-O0"
17353 else
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355$as_echo "no" >&6; }
17356 fi
17357
17358
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17360$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
17361
17362 OLDCPPFLAGS=$CPPFLAGS
17363 # CPPPFLAG comes from CURL_CPP_P
17364 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17365 if test -z "$SED"; then
17366 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17367 fi
17368 if test -z "$GREP"; then
17369 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17370 fi
17371
17372 tmp_exp=""
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h. */
17375
17376
17377#ifdef __GNUC__
17378CURL_DEF_TOKEN __GNUC__
17379#endif
17380
17381
17382_ACEOF
17383if ac_fn_c_try_cpp "$LINENO"; then :
17384
17385 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17386 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17387 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17388 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17389 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17390 tmp_exp=""
17391 fi
17392
17393fi
17394rm -f conftest.err conftest.i conftest.$ac_ext
17395 if test -z "$tmp_exp"; then
17396 curl_cv_have_def___GNUC__=no
17397
17398 else
17399 curl_cv_have_def___GNUC__=yes
17400 curl_cv_def___GNUC__=$tmp_exp
17401
17402 fi
17403 CPPFLAGS=$OLDCPPFLAGS
17404
17405
17406 OLDCPPFLAGS=$CPPFLAGS
17407 # CPPPFLAG comes from CURL_CPP_P
17408 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17409 if test -z "$SED"; then
17410 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17411 fi
17412 if test -z "$GREP"; then
17413 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17414 fi
17415
17416 tmp_exp=""
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418/* end confdefs.h. */
17419
17420
17421#ifdef __sgi
17422CURL_DEF_TOKEN __sgi
17423#endif
17424
17425
17426_ACEOF
17427if ac_fn_c_try_cpp "$LINENO"; then :
17428
17429 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17430 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17431 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17432 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17433 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17434 tmp_exp=""
17435 fi
17436
17437fi
17438rm -f conftest.err conftest.i conftest.$ac_ext
17439 if test -z "$tmp_exp"; then
17440 curl_cv_have_def___sgi=no
17441
17442 else
17443 curl_cv_have_def___sgi=yes
17444 curl_cv_def___sgi=$tmp_exp
17445
17446 fi
17447 CPPFLAGS=$OLDCPPFLAGS
17448
17449 if test "$curl_cv_have_def___GNUC__" = "no" &&
17450 test "$curl_cv_have_def___sgi" = "yes" &&
17451 test "$compiler_id" = "unknown"; then
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453$as_echo "yes" >&6; }
17454 compiler_id="SGI_MIPS_C"
17455 flags_dbg_all="-g -g0 -g1 -g2 -g3"
17456 flags_dbg_yes="-g"
17457 flags_dbg_off=""
17458 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17459 flags_opt_yes="-O2"
17460 flags_opt_off="-O0"
17461 else
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17463$as_echo "no" >&6; }
17464 fi
17465
17466
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17468$as_echo_n "checking if compiler is SunPro C... " >&6; }
17469
17470 OLDCPPFLAGS=$CPPFLAGS
17471 # CPPPFLAG comes from CURL_CPP_P
17472 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17473 if test -z "$SED"; then
17474 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17475 fi
17476 if test -z "$GREP"; then
17477 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17478 fi
17479
17480 tmp_exp=""
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482/* end confdefs.h. */
17483
17484
17485#ifdef __SUNPRO_C
17486CURL_DEF_TOKEN __SUNPRO_C
17487#endif
17488
17489
17490_ACEOF
17491if ac_fn_c_try_cpp "$LINENO"; then :
17492
17493 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17494 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17495 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17496 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17497 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17498 tmp_exp=""
17499 fi
17500
17501fi
17502rm -f conftest.err conftest.i conftest.$ac_ext
17503 if test -z "$tmp_exp"; then
17504 curl_cv_have_def___SUNPRO_C=no
17505
17506 else
17507 curl_cv_have_def___SUNPRO_C=yes
17508 curl_cv_def___SUNPRO_C=$tmp_exp
17509
17510 fi
17511 CPPFLAGS=$OLDCPPFLAGS
17512
17513 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17515$as_echo "yes" >&6; }
17516 compiler_id="SUNPRO_C"
17517 flags_dbg_all="-g -s"
17518 flags_dbg_yes="-g"
17519 flags_dbg_off="-s"
17520 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17521 flags_opt_yes="-xO2"
17522 flags_opt_off=""
17523 else
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
17526 fi
17527
17528
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17530$as_echo_n "checking if compiler is Tiny C... " >&6; }
17531
17532 OLDCPPFLAGS=$CPPFLAGS
17533 # CPPPFLAG comes from CURL_CPP_P
17534 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17535 if test -z "$SED"; then
17536 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17537 fi
17538 if test -z "$GREP"; then
17539 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17540 fi
17541
17542 tmp_exp=""
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544/* end confdefs.h. */
17545
17546
17547#ifdef __TINYC__
17548CURL_DEF_TOKEN __TINYC__
17549#endif
17550
17551
17552_ACEOF
17553if ac_fn_c_try_cpp "$LINENO"; then :
17554
17555 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17556 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17557 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17558 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17559 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17560 tmp_exp=""
17561 fi
17562
17563fi
17564rm -f conftest.err conftest.i conftest.$ac_ext
17565 if test -z "$tmp_exp"; then
17566 curl_cv_have_def___TINYC__=no
17567
17568 else
17569 curl_cv_have_def___TINYC__=yes
17570 curl_cv_def___TINYC__=$tmp_exp
17571
17572 fi
17573 CPPFLAGS=$OLDCPPFLAGS
17574
17575 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577$as_echo "yes" >&6; }
17578 compiler_id="TINY_C"
17579 flags_dbg_all="-g -b"
17580 flags_dbg_yes="-g"
17581 flags_dbg_off=""
17582 flags_opt_all=""
17583 flags_opt_yes=""
17584 flags_opt_off=""
17585 else
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17587$as_echo "no" >&6; }
17588 fi
17589
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17592$as_echo_n "checking if compiler is Watcom C... " >&6; }
17593
17594 OLDCPPFLAGS=$CPPFLAGS
17595 # CPPPFLAG comes from CURL_CPP_P
17596 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17597 if test -z "$SED"; then
17598 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17599 fi
17600 if test -z "$GREP"; then
17601 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17602 fi
17603
17604 tmp_exp=""
17605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17606/* end confdefs.h. */
17607
17608
17609#ifdef __WATCOMC__
17610CURL_DEF_TOKEN __WATCOMC__
17611#endif
17612
17613
17614_ACEOF
17615if ac_fn_c_try_cpp "$LINENO"; then :
17616
17617 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17618 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17619 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17620 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17621 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17622 tmp_exp=""
17623 fi
17624
17625fi
17626rm -f conftest.err conftest.i conftest.$ac_ext
17627 if test -z "$tmp_exp"; then
17628 curl_cv_have_def___WATCOMC__=no
17629
17630 else
17631 curl_cv_have_def___WATCOMC__=yes
17632 curl_cv_def___WATCOMC__=$tmp_exp
17633
17634 fi
17635 CPPFLAGS=$OLDCPPFLAGS
17636
17637 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17639$as_echo "yes" >&6; }
17640
17641 OLDCPPFLAGS=$CPPFLAGS
17642 # CPPPFLAG comes from CURL_CPP_P
17643 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17644 if test -z "$SED"; then
17645 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17646 fi
17647 if test -z "$GREP"; then
17648 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17649 fi
17650
17651 tmp_exp=""
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h. */
17654
17655
17656#ifdef __UNIX__
17657CURL_DEF_TOKEN __UNIX__
17658#endif
17659
17660
17661_ACEOF
17662if ac_fn_c_try_cpp "$LINENO"; then :
17663
17664 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17665 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17666 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17667 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17668 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17669 tmp_exp=""
17670 fi
17671
17672fi
17673rm -f conftest.err conftest.i conftest.$ac_ext
17674 if test -z "$tmp_exp"; then
17675 curl_cv_have_def___UNIX__=no
17676
17677 else
17678 curl_cv_have_def___UNIX__=yes
17679 curl_cv_def___UNIX__=$tmp_exp
17680
17681 fi
17682 CPPFLAGS=$OLDCPPFLAGS
17683
17684 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17685 compiler_id="WATCOM_UNIX_C"
17686 flags_dbg_all="-g1 -g1+ -g2 -g3"
17687 flags_dbg_yes="-g2"
17688 flags_dbg_off=""
17689 flags_opt_all="-O0 -O1 -O2 -O3"
17690 flags_opt_yes="-O2"
17691 flags_opt_off="-O0"
17692 else
17693 compiler_id="WATCOM_WINDOWS_C"
17694 flags_dbg_all=""
17695 flags_dbg_yes=""
17696 flags_dbg_off=""
17697 flags_opt_all=""
17698 flags_opt_yes=""
17699 flags_opt_off=""
17700 fi
17701 else
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703$as_echo "no" >&6; }
17704 fi
17705
17706 #
17707 if test "$compiler_id" = "unknown"; then
17708 cat <<_EOF 1>&2
17709***
17710*** Warning: This configure script does not have information about the
17711*** compiler you are using, relative to the flags required to enable or
17712*** disable generation of debug info, optimization options or warnings.
17713***
17714*** Whatever settings are present in CFLAGS will be used for this run.
17715***
17716*** If you wish to help the curl project to better support your compiler
17717*** you can report this and the required info on the libcurl development
17718*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17719***
17720_EOF
17721 fi
17722
17723
17724squeeze() {
17725 _sqz_result=""
17726 eval _sqz_input=\$$1
17727 for _sqz_token in $_sqz_input; do
17728 if test -z "$_sqz_result"; then
17729 _sqz_result="$_sqz_token"
17730 else
17731 _sqz_result="$_sqz_result $_sqz_token"
17732 fi
17733 done
17734 eval $1=\$_sqz_result
17735 return 0
17736}
17737
17738
17739 #
17740 if test "$compiler_id" != "unknown"; then
17741 #
17742 if test "$compiler_id" = "GNU_C" ||
17743 test "$compiler_id" = "CLANG"; then
17744
17745 if test "$compiler_id" = "GNU_C" ||
17746 test "$compiler_id" = "CLANG"; then
17747 tmp_has_include="no"
17748 tmp_chg_FLAGS="$CFLAGS"
17749 for word1 in $tmp_chg_FLAGS; do
17750 case "$word1" in
17751 -I*)
17752 tmp_has_include="yes"
17753 ;;
17754 esac
17755 done
17756 if test "$tmp_has_include" = "yes"; then
17757 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17758 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17759 CFLAGS="$tmp_chg_FLAGS"
17760 squeeze CFLAGS
17761 fi
17762 tmp_has_include="no"
17763 tmp_chg_FLAGS="$CPPFLAGS"
17764 for word1 in $tmp_chg_FLAGS; do
17765 case "$word1" in
17766 -I*)
17767 tmp_has_include="yes"
17768 ;;
17769 esac
17770 done
17771 if test "$tmp_has_include" = "yes"; then
17772 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17773 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17774 CPPFLAGS="$tmp_chg_FLAGS"
17775 squeeze CPPFLAGS
17776 fi
17777 fi
17778
17779 fi
17780 #
17781 tmp_save_CPPFLAGS="$CPPFLAGS"
17782 tmp_save_CFLAGS="$CFLAGS"
17783 tmp_CPPFLAGS=""
17784 tmp_CFLAGS=""
17785 #
17786 case "$compiler_id" in
17787 #
17788 CLANG)
17789 #
17790 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17791 ;;
17792 #
17793 DEC_C)
17794 #
17795 tmp_CFLAGS="$tmp_CFLAGS -std1"
17796 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17797 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17798 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17799 ;;
17800 #
17801 GNU_C)
17802 #
17803 if test "$compiler_num" -ge "295"; then
17804 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17805 fi
17806 ;;
17807 #
17808 HP_UX_C)
17809 #
17810 tmp_CFLAGS="$tmp_CFLAGS -z"
17811 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17812 ;;
17813 #
17814 IBM_C)
17815 #
17816 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17817 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17818 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17819 ;;
17820 #
17821 INTEL_UNIX_C)
17822 #
17823 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17824 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17825 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17826 ;;
17827 #
17828 INTEL_WINDOWS_C)
17829 #
17830 tmp_CFLAGS="$tmp_CFLAGS"
17831 ;;
17832 #
17833 LCC)
17834 #
17835 tmp_CFLAGS="$tmp_CFLAGS -n"
17836 ;;
17837 #
17838 SGI_MIPS_C)
17839 #
17840 tmp_CFLAGS="$tmp_CFLAGS"
17841 ;;
17842 #
17843 SGI_MIPSPRO_C)
17844 #
17845 tmp_CFLAGS="$tmp_CFLAGS"
17846 ;;
17847 #
17848 SUNPRO_C)
17849 #
17850 tmp_CFLAGS="$tmp_CFLAGS"
17851 ;;
17852 #
17853 TINY_C)
17854 #
17855 tmp_CFLAGS="$tmp_CFLAGS"
17856 ;;
17857 #
17858 WATCOM_UNIX_C)
17859 #
17860 tmp_CFLAGS="$tmp_CFLAGS"
17861 ;;
17862 #
17863 WATCOM_WINDOWS_C)
17864 #
17865 tmp_CFLAGS="$tmp_CFLAGS"
17866 ;;
17867 #
17868 esac
17869 #
17870 squeeze tmp_CPPFLAGS
17871 squeeze tmp_CFLAGS
17872 #
17873 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17875$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17876 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17877 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17878 squeeze CPPFLAGS
17879 squeeze CFLAGS
17880
17881 tmp_compiler_works="unknown"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883/* end confdefs.h. */
17884
17885
17886
17887int main (void)
17888{
17889
17890 int i = 1;
17891 return i;
17892
17893 ;
17894 return 0;
17895}
17896
17897_ACEOF
17898if ac_fn_c_try_compile "$LINENO"; then :
17899
17900 tmp_compiler_works="yes"
17901
17902else
17903
17904 tmp_compiler_works="no"
17905 echo " " >&6
17906 sed 's/^/cc-fail: /' conftest.err >&6
17907 echo " " >&6
17908
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 if test "$tmp_compiler_works" = "yes"; then
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913/* end confdefs.h. */
17914
17915
17916
17917int main (void)
17918{
17919
17920 int i = 1;
17921 return i;
17922
17923 ;
17924 return 0;
17925}
17926
17927_ACEOF
17928if ac_fn_c_try_link "$LINENO"; then :
17929
17930 tmp_compiler_works="yes"
17931
17932else
17933
17934 tmp_compiler_works="no"
17935 echo " " >&6
17936 sed 's/^/link-fail: /' conftest.err >&6
17937 echo " " >&6
17938
17939fi
17940rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
17942 fi
17943 if test "x$cross_compiling" != "xyes" &&
17944 test "$tmp_compiler_works" = "yes"; then
17945 if test "$cross_compiling" = yes; then :
17946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17948as_fn_error $? "cannot run test program while cross compiling
17949See \`config.log' for more details" "$LINENO" 5; }
17950else
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952/* end confdefs.h. */
17953
17954
17955# ifdef __STDC__
17956# include <stdlib.h>
17957# endif
17958
17959int main (void)
17960{
17961
17962 int i = 0;
17963 exit(i);
17964
17965 ;
17966 return 0;
17967}
17968
17969_ACEOF
17970if ac_fn_c_try_run "$LINENO"; then :
17971
17972 tmp_compiler_works="yes"
17973
17974else
17975
17976 tmp_compiler_works="no"
17977 echo " " >&6
17978 echo "run-fail: test program exited with status $ac_status" >&6
17979 echo " " >&6
17980
17981fi
17982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17983 conftest.$ac_objext conftest.beam conftest.$ac_ext
17984fi
17985
17986 fi
17987 if test "$tmp_compiler_works" = "yes"; then
17988
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17990$as_echo "yes" >&6; }
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17992$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17993
17994 else
17995
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17997$as_echo "no" >&6; }
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17999$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18000 CPPFLAGS="$tmp_save_CPPFLAGS"
18001 CFLAGS="$tmp_save_CFLAGS"
18002
18003 fi
18004
18005 fi
18006 #
18007 fi
18008
18009
18010 #
18011 if test "$compiler_id" != "unknown"; then
18012 #
18013 tmp_save_CFLAGS="$CFLAGS"
18014 tmp_save_CPPFLAGS="$CPPFLAGS"
18015 #
18016 tmp_options=""
18017 tmp_CFLAGS="$CFLAGS"
18018 tmp_CPPFLAGS="$CPPFLAGS"
18019
18020 ac_var_stripped=""
18021 for word1 in $tmp_CFLAGS; do
18022 ac_var_strip_word="no"
18023 for word2 in $flags_dbg_all; do
18024 if test "$word1" = "$word2"; then
18025 ac_var_strip_word="yes"
18026 fi
18027 done
18028 if test "$ac_var_strip_word" = "no"; then
18029 ac_var_stripped="$ac_var_stripped $word1"
18030 fi
18031 done
18032 tmp_CFLAGS="$ac_var_stripped"
18033 squeeze tmp_CFLAGS
18034
18035
18036 ac_var_stripped=""
18037 for word1 in $tmp_CPPFLAGS; do
18038 ac_var_strip_word="no"
18039 for word2 in $flags_dbg_all; do
18040 if test "$word1" = "$word2"; then
18041 ac_var_strip_word="yes"
18042 fi
18043 done
18044 if test "$ac_var_strip_word" = "no"; then
18045 ac_var_stripped="$ac_var_stripped $word1"
18046 fi
18047 done
18048 tmp_CPPFLAGS="$ac_var_stripped"
18049 squeeze tmp_CPPFLAGS
18050
18051 #
18052 if test "$want_debug" = "yes"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18054$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
18055 tmp_options="$flags_dbg_yes"
18056 fi
18057 if test "$want_debug" = "no"; then
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
18059$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
18060 tmp_options="$flags_dbg_off"
18061 fi
18062 #
18063 if test "$flags_prefer_cppflags" = "yes"; then
18064 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18065 CFLAGS="$tmp_CFLAGS"
18066 else
18067 CPPFLAGS="$tmp_CPPFLAGS"
18068 CFLAGS="$tmp_CFLAGS $tmp_options"
18069 fi
18070 squeeze CPPFLAGS
18071 squeeze CFLAGS
18072
18073 tmp_compiler_works="unknown"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075/* end confdefs.h. */
18076
18077
18078
18079int main (void)
18080{
18081
18082 int i = 1;
18083 return i;
18084
18085 ;
18086 return 0;
18087}
18088
18089_ACEOF
18090if ac_fn_c_try_compile "$LINENO"; then :
18091
18092 tmp_compiler_works="yes"
18093
18094else
18095
18096 tmp_compiler_works="no"
18097 echo " " >&6
18098 sed 's/^/cc-fail: /' conftest.err >&6
18099 echo " " >&6
18100
18101fi
18102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103 if test "$tmp_compiler_works" = "yes"; then
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h. */
18106
18107
18108
18109int main (void)
18110{
18111
18112 int i = 1;
18113 return i;
18114
18115 ;
18116 return 0;
18117}
18118
18119_ACEOF
18120if ac_fn_c_try_link "$LINENO"; then :
18121
18122 tmp_compiler_works="yes"
18123
18124else
18125
18126 tmp_compiler_works="no"
18127 echo " " >&6
18128 sed 's/^/link-fail: /' conftest.err >&6
18129 echo " " >&6
18130
18131fi
18132rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 fi
18135 if test "x$cross_compiling" != "xyes" &&
18136 test "$tmp_compiler_works" = "yes"; then
18137 if test "$cross_compiling" = yes; then :
18138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18140as_fn_error $? "cannot run test program while cross compiling
18141See \`config.log' for more details" "$LINENO" 5; }
18142else
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h. */
18145
18146
18147# ifdef __STDC__
18148# include <stdlib.h>
18149# endif
18150
18151int main (void)
18152{
18153
18154 int i = 0;
18155 exit(i);
18156
18157 ;
18158 return 0;
18159}
18160
18161_ACEOF
18162if ac_fn_c_try_run "$LINENO"; then :
18163
18164 tmp_compiler_works="yes"
18165
18166else
18167
18168 tmp_compiler_works="no"
18169 echo " " >&6
18170 echo "run-fail: test program exited with status $ac_status" >&6
18171 echo " " >&6
18172
18173fi
18174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18175 conftest.$ac_objext conftest.beam conftest.$ac_ext
18176fi
18177
18178 fi
18179 if test "$tmp_compiler_works" = "yes"; then
18180
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18182$as_echo "yes" >&6; }
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18184$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
18185
18186 else
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189$as_echo "no" >&6; }
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18191$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18192 CPPFLAGS="$tmp_save_CPPFLAGS"
18193 CFLAGS="$tmp_save_CFLAGS"
18194
18195 fi
18196
18197 #
18198 fi
18199
18200
18201 #
18202 if test "$compiler_id" != "unknown"; then
18203 #
18204 tmp_save_CFLAGS="$CFLAGS"
18205 tmp_save_CPPFLAGS="$CPPFLAGS"
18206 #
18207 tmp_options=""
18208 tmp_CFLAGS="$CFLAGS"
18209 tmp_CPPFLAGS="$CPPFLAGS"
18210 honor_optimize_option="yes"
18211 #
18212 #
18213 if test "$want_optimize" = "assume_no" ||
18214 test "$want_optimize" = "assume_yes"; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18216$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
18217
18218
18219 ac_var_match_word="no"
18220 for word1 in $tmp_CFLAGS; do
18221 for word2 in $flags_opt_all; do
18222 if test "$word1" = "$word2"; then
18223 ac_var_match_word="yes"
18224 fi
18225 done
18226 done
18227
18228 if test "$ac_var_match_word" = "yes"; then
18229
18230 honor_optimize_option="no"
18231
18232
18233 fi
18234
18235
18236
18237 ac_var_match_word="no"
18238 for word1 in $tmp_CPPFLAGS; do
18239 for word2 in $flags_opt_all; do
18240 if test "$word1" = "$word2"; then
18241 ac_var_match_word="yes"
18242 fi
18243 done
18244 done
18245
18246 if test "$ac_var_match_word" = "yes"; then
18247
18248 honor_optimize_option="no"
18249
18250
18251 fi
18252
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18254$as_echo "$honor_optimize_option" >&6; }
18255 if test "$honor_optimize_option" = "yes"; then
18256 if test "$want_optimize" = "assume_yes"; then
18257 want_optimize="yes"
18258 fi
18259 if test "$want_optimize" = "assume_no"; then
18260 want_optimize="no"
18261 fi
18262 fi
18263 fi
18264 #
18265 if test "$honor_optimize_option" = "yes"; then
18266
18267 ac_var_stripped=""
18268 for word1 in $tmp_CFLAGS; do
18269 ac_var_strip_word="no"
18270 for word2 in $flags_opt_all; do
18271 if test "$word1" = "$word2"; then
18272 ac_var_strip_word="yes"
18273 fi
18274 done
18275 if test "$ac_var_strip_word" = "no"; then
18276 ac_var_stripped="$ac_var_stripped $word1"
18277 fi
18278 done
18279 tmp_CFLAGS="$ac_var_stripped"
18280 squeeze tmp_CFLAGS
18281
18282
18283 ac_var_stripped=""
18284 for word1 in $tmp_CPPFLAGS; do
18285 ac_var_strip_word="no"
18286 for word2 in $flags_opt_all; do
18287 if test "$word1" = "$word2"; then
18288 ac_var_strip_word="yes"
18289 fi
18290 done
18291 if test "$ac_var_strip_word" = "no"; then
18292 ac_var_stripped="$ac_var_stripped $word1"
18293 fi
18294 done
18295 tmp_CPPFLAGS="$ac_var_stripped"
18296 squeeze tmp_CPPFLAGS
18297
18298 if test "$want_optimize" = "yes"; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18300$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
18301 tmp_options="$flags_opt_yes"
18302 fi
18303 if test "$want_optimize" = "no"; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18305$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
18306 tmp_options="$flags_opt_off"
18307 fi
18308 if test "$flags_prefer_cppflags" = "yes"; then
18309 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18310 CFLAGS="$tmp_CFLAGS"
18311 else
18312 CPPFLAGS="$tmp_CPPFLAGS"
18313 CFLAGS="$tmp_CFLAGS $tmp_options"
18314 fi
18315 squeeze CPPFLAGS
18316 squeeze CFLAGS
18317
18318 tmp_compiler_works="unknown"
18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320/* end confdefs.h. */
18321
18322
18323
18324int main (void)
18325{
18326
18327 int i = 1;
18328 return i;
18329
18330 ;
18331 return 0;
18332}
18333
18334_ACEOF
18335if ac_fn_c_try_compile "$LINENO"; then :
18336
18337 tmp_compiler_works="yes"
18338
18339else
18340
18341 tmp_compiler_works="no"
18342 echo " " >&6
18343 sed 's/^/cc-fail: /' conftest.err >&6
18344 echo " " >&6
18345
18346fi
18347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 if test "$tmp_compiler_works" = "yes"; then
18349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350/* end confdefs.h. */
18351
18352
18353
18354int main (void)
18355{
18356
18357 int i = 1;
18358 return i;
18359
18360 ;
18361 return 0;
18362}
18363
18364_ACEOF
18365if ac_fn_c_try_link "$LINENO"; then :
18366
18367 tmp_compiler_works="yes"
18368
18369else
18370
18371 tmp_compiler_works="no"
18372 echo " " >&6
18373 sed 's/^/link-fail: /' conftest.err >&6
18374 echo " " >&6
18375
18376fi
18377rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 fi
18380 if test "x$cross_compiling" != "xyes" &&
18381 test "$tmp_compiler_works" = "yes"; then
18382 if test "$cross_compiling" = yes; then :
18383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18385as_fn_error $? "cannot run test program while cross compiling
18386See \`config.log' for more details" "$LINENO" 5; }
18387else
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389/* end confdefs.h. */
18390
18391
18392# ifdef __STDC__
18393# include <stdlib.h>
18394# endif
18395
18396int main (void)
18397{
18398
18399 int i = 0;
18400 exit(i);
18401
18402 ;
18403 return 0;
18404}
18405
18406_ACEOF
18407if ac_fn_c_try_run "$LINENO"; then :
18408
18409 tmp_compiler_works="yes"
18410
18411else
18412
18413 tmp_compiler_works="no"
18414 echo " " >&6
18415 echo "run-fail: test program exited with status $ac_status" >&6
18416 echo " " >&6
18417
18418fi
18419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18420 conftest.$ac_objext conftest.beam conftest.$ac_ext
18421fi
18422
18423 fi
18424 if test "$tmp_compiler_works" = "yes"; then
18425
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18427$as_echo "yes" >&6; }
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18429$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
18430
18431 else
18432
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18434$as_echo "no" >&6; }
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18436$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18437 CPPFLAGS="$tmp_save_CPPFLAGS"
18438 CFLAGS="$tmp_save_CFLAGS"
18439
18440 fi
18441
18442 fi
18443 #
18444 fi
18445
18446
18447 #
18448 if test "$compiler_id" != "unknown"; then
18449 #
18450 tmp_save_CPPFLAGS="$CPPFLAGS"
18451 tmp_save_CFLAGS="$CFLAGS"
18452 tmp_CPPFLAGS=""
18453 tmp_CFLAGS=""
18454 #
18455 case "$compiler_id" in
18456 #
18457 CLANG)
18458 #
18459 if test "$want_warnings" = "yes"; then
18460 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18461 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18462 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18463 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18464 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18465 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18466 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18467 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18468 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18469 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18470 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18471 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18472 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18473 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18474 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18475 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18476 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18477 #
18478 if test "$compiler_num" -ge "101"; then
18479 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18480 fi
18481 #
18482 if test "$compiler_num" -ge "208"; then
18483 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
18484 fi
18485 #
18486 if test "$compiler_num" -ge "209"; then
18487 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
18488 fi
18489 #
18490 if test "$compiler_num" -ge "302"; then
18491 case $host_os in
18492 cygwin* | mingw*)
18493 ;;
18494 *)
18495 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
18496 ;;
18497 esac
18498 fi
18499 #
18500 if test "$compiler_num" -ge "306"; then
18501 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18502 fi
18503 #
18504 if test "$compiler_num" -ge "309"; then
18505 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
18506 fi
18507 fi
18508 ;;
18509 #
18510 DEC_C)
18511 #
18512 if test "$want_warnings" = "yes"; then
18513 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18514 fi
18515 ;;
18516 #
18517 GNU_C)
18518 #
18519 if test "$want_warnings" = "yes"; then
18520 #
18521 if test "x$cross_compiling" != "xyes" ||
18522 test "$compiler_num" -ge "300"; then
18523 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18524 fi
18525 #
18526 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18527 #
18528 if test "$compiler_num" -ge "104"; then
18529 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18530 if test "x$cross_compiling" != "xyes" ||
18531 test "$compiler_num" -ge "300"; then
18532 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18533 fi
18534 fi
18535 #
18536 if test "$compiler_num" -ge "207"; then
18537 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18538 if test "x$cross_compiling" != "xyes" ||
18539 test "$compiler_num" -ge "300"; then
18540 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18541 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18542 fi
18543 fi
18544 #
18545 if test "$compiler_num" -ge "295"; then
18546 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18547 fi
18548 #
18549 if test "$compiler_num" -ge "296"; then
18550 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18551 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18552 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18553 fi
18554 #
18555 if test "$compiler_num" -ge "297"; then
18556 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18557 fi
18558 #
18559 if test "$compiler_num" -ge "300"; then
18560 tmp_CFLAGS="$tmp_CFLAGS"
18561 fi
18562 #
18563 if test "$compiler_num" -ge "303"; then
18564 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18565 fi
18566 #
18567 if test "$compiler_num" -ge "304"; then
18568 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18569 fi
18570 #
18571 if test "$compiler_num" -ge "400"; then
18572 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18573 fi
18574 #
18575 if test "$compiler_num" -ge "402"; then
18576 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18577 fi
18578 #
18579 if test "$compiler_num" -ge "403"; then
18580 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18581 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18582 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18583 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18584 fi
18585 #
18586 if test "$compiler_num" -ge "405"; then
18587 if test "$curl_cv_have_def__WIN32" = "yes"; then
18588 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18589 fi
18590 fi
18591 #
18592 if test "$compiler_num" -ge "406"; then
18593 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18594 fi
18595 #
18596 fi
18597 #
18598 if test "$compiler_num" -ge "300"; then
18599 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18600 else
18601 if test "x$cross_compiling" = "xyes"; then
18602 if test "$compiler_num" -ge "104"; then
18603 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18604 fi
18605 if test "$compiler_num" -ge "207"; then
18606 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18607 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18608 fi
18609 fi
18610 fi
18611 ;;
18612 #
18613 HP_UX_C)
18614 #
18615 if test "$want_warnings" = "yes"; then
18616 tmp_CFLAGS="$tmp_CFLAGS +w1"
18617 fi
18618 ;;
18619 #
18620 IBM_C)
18621 #
18622 tmp_CFLAGS="$tmp_CFLAGS"
18623 ;;
18624 #
18625 INTEL_UNIX_C)
18626 #
18627 if test "$want_warnings" = "yes"; then
18628 if test "$compiler_num" -gt "600"; then
18629 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18630 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18631 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18632 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18633 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18634 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18635 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18636 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18637 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18638 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18639 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18640 fi
18641 fi
18642 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18643 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18644 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18645 if test "$compiler_num" -ge "1000"; then
18646 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18647 fi
18648 ;;
18649 #
18650 INTEL_WINDOWS_C)
18651 #
18652 tmp_CFLAGS="$tmp_CFLAGS"
18653 ;;
18654 #
18655 LCC)
18656 #
18657 if test "$want_warnings" = "yes"; then
18658 tmp_CFLAGS="$tmp_CFLAGS"
18659 fi
18660 ;;
18661 #
18662 SGI_MIPS_C)
18663 #
18664 if test "$want_warnings" = "yes"; then
18665 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18666 fi
18667 ;;
18668 #
18669 SGI_MIPSPRO_C)
18670 #
18671 if test "$want_warnings" = "yes"; then
18672 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18673 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18674 fi
18675 ;;
18676 #
18677 SUNPRO_C)
18678 #
18679 if test "$want_warnings" = "yes"; then
18680 tmp_CFLAGS="$tmp_CFLAGS -v"
18681 fi
18682 ;;
18683 #
18684 TINY_C)
18685 #
18686 if test "$want_warnings" = "yes"; then
18687 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18688 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18689 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18690 fi
18691 ;;
18692 #
18693 WATCOM_UNIX_C)
18694 #
18695 if test "$want_warnings" = "yes"; then
18696 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18697 fi
18698 ;;
18699 #
18700 WATCOM_WINDOWS_C)
18701 #
18702 tmp_CFLAGS="$tmp_CFLAGS"
18703 ;;
18704 #
18705 esac
18706 #
18707 squeeze tmp_CPPFLAGS
18708 squeeze tmp_CFLAGS
18709 #
18710 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18712$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18713 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18714 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18715 squeeze CPPFLAGS
18716 squeeze CFLAGS
18717
18718 tmp_compiler_works="unknown"
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720/* end confdefs.h. */
18721
18722
18723
18724int main (void)
18725{
18726
18727 int i = 1;
18728 return i;
18729
18730 ;
18731 return 0;
18732}
18733
18734_ACEOF
18735if ac_fn_c_try_compile "$LINENO"; then :
18736
18737 tmp_compiler_works="yes"
18738
18739else
18740
18741 tmp_compiler_works="no"
18742 echo " " >&6
18743 sed 's/^/cc-fail: /' conftest.err >&6
18744 echo " " >&6
18745
18746fi
18747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 if test "$tmp_compiler_works" = "yes"; then
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750/* end confdefs.h. */
18751
18752
18753
18754int main (void)
18755{
18756
18757 int i = 1;
18758 return i;
18759
18760 ;
18761 return 0;
18762}
18763
18764_ACEOF
18765if ac_fn_c_try_link "$LINENO"; then :
18766
18767 tmp_compiler_works="yes"
18768
18769else
18770
18771 tmp_compiler_works="no"
18772 echo " " >&6
18773 sed 's/^/link-fail: /' conftest.err >&6
18774 echo " " >&6
18775
18776fi
18777rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779 fi
18780 if test "x$cross_compiling" != "xyes" &&
18781 test "$tmp_compiler_works" = "yes"; then
18782 if test "$cross_compiling" = yes; then :
18783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18785as_fn_error $? "cannot run test program while cross compiling
18786See \`config.log' for more details" "$LINENO" 5; }
18787else
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789/* end confdefs.h. */
18790
18791
18792# ifdef __STDC__
18793# include <stdlib.h>
18794# endif
18795
18796int main (void)
18797{
18798
18799 int i = 0;
18800 exit(i);
18801
18802 ;
18803 return 0;
18804}
18805
18806_ACEOF
18807if ac_fn_c_try_run "$LINENO"; then :
18808
18809 tmp_compiler_works="yes"
18810
18811else
18812
18813 tmp_compiler_works="no"
18814 echo " " >&6
18815 echo "run-fail: test program exited with status $ac_status" >&6
18816 echo " " >&6
18817
18818fi
18819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18820 conftest.$ac_objext conftest.beam conftest.$ac_ext
18821fi
18822
18823 fi
18824 if test "$tmp_compiler_works" = "yes"; then
18825
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18827$as_echo "yes" >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18829$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18830
18831 else
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834$as_echo "no" >&6; }
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18836$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18837 CPPFLAGS="$tmp_save_CPPFLAGS"
18838 CFLAGS="$tmp_save_CFLAGS"
18839
18840 fi
18841
18842 fi
18843 #
18844 fi
18845
18846
18847if test "$compiler_id" = "INTEL_UNIX_C"; then
18848 #
18849 if test "$compiler_num" -ge "1000"; then
18850 CFLAGS="$CFLAGS -shared-intel"
18851 elif test "$compiler_num" -ge "900"; then
18852 CFLAGS="$CFLAGS -i-dynamic"
18853 fi
18854 #
18855fi
18856
18857
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18859$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861/* end confdefs.h. */
18862
18863
18864
18865int main (void)
18866{
18867
18868 force compilation error
18869
18870 ;
18871 return 0;
18872}
18873
18874_ACEOF
18875if ac_fn_c_try_compile "$LINENO"; then :
18876
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878$as_echo "no" >&6; }
18879 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18880
18881else
18882
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884$as_echo "yes" >&6; }
18885
18886fi
18887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18888
18889
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18891$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893/* end confdefs.h. */
18894
18895
18896 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18897
18898int main (void)
18899{
18900
18901 bad_t dummy;
18902
18903 ;
18904 return 0;
18905}
18906
18907_ACEOF
18908if ac_fn_c_try_compile "$LINENO"; then :
18909
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911$as_echo "no" >&6; }
18912 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18913
18914else
18915
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18917$as_echo "yes" >&6; }
18918
18919fi
18920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921
18922
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18924$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926/* end confdefs.h. */
18927
18928
18929# include <stdlib.h>
18930 int rand(int n);
18931 int rand(int n)
18932 {
18933 if(n)
18934 return ++n;
18935 else
18936 return n;
18937 }
18938
18939int main (void)
18940{
18941
18942 int i[2]={0,0};
18943 int j = rand(i[0]);
18944 if(j)
18945 return j;
18946
18947 ;
18948 return 0;
18949}
18950
18951_ACEOF
18952if ac_fn_c_try_compile "$LINENO"; then :
18953
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955$as_echo "no" >&6; }
18956 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18957
18958else
18959
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18961$as_echo "yes" >&6; }
18962
18963fi
18964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965
18966
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18968$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18969 supports_symbol_hiding="no"
18970 symbol_hiding_CFLAGS=""
18971 symbol_hiding_EXTERN=""
18972 tmp_CFLAGS=""
18973 tmp_EXTERN=""
18974 case "$compiler_id" in
18975 CLANG)
18976 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18977 tmp_CFLAGS="-fvisibility=hidden"
18978 supports_symbol_hiding="yes"
18979 ;;
18980 GNU_C)
18981 if test "$compiler_num" -ge "304"; then
18982 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18983 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18984 tmp_CFLAGS="-fvisibility=hidden"
18985 supports_symbol_hiding="yes"
18986 fi
18987 fi
18988 ;;
18989 INTEL_UNIX_C)
18990 if test "$compiler_num" -ge "900"; then
18991 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18992 tmp_save_CFLAGS="$CFLAGS"
18993 CFLAGS="$CFLAGS -fvisibility=hidden"
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995/* end confdefs.h. */
18996
18997
18998# include <stdio.h>
18999
19000int main (void)
19001{
19002
19003 printf("icc fvisibility bug test");
19004
19005 ;
19006 return 0;
19007}
19008
19009_ACEOF
19010if ac_fn_c_try_link "$LINENO"; then :
19011
19012 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19013 tmp_CFLAGS="-fvisibility=hidden"
19014 supports_symbol_hiding="yes"
19015
19016fi
19017rm -f core conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19019 CFLAGS="$tmp_save_CFLAGS"
19020 fi
19021 fi
19022 ;;
19023 SUNPRO_C)
19024 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
19025 tmp_EXTERN="__global"
19026 tmp_CFLAGS="-xldscope=hidden"
19027 supports_symbol_hiding="yes"
19028 fi
19029 ;;
19030 esac
19031 if test "$supports_symbol_hiding" = "yes"; then
19032 tmp_save_CFLAGS="$CFLAGS"
19033 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19034 squeeze CFLAGS
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036/* end confdefs.h. */
19037
19038
19039 $tmp_EXTERN char *dummy(char *buff);
19040 char *dummy(char *buff)
19041 {
19042 if(buff)
19043 return ++buff;
19044 else
19045 return buff;
19046 }
19047
19048int main (void)
19049{
19050
19051 char b[16];
19052 char *r = dummy(&b[0]);
19053 if(r)
19054 return (int)*r;
19055
19056 ;
19057 return 0;
19058}
19059
19060_ACEOF
19061if ac_fn_c_try_compile "$LINENO"; then :
19062
19063 supports_symbol_hiding="yes"
19064 if test -f conftest.err; then
19065 grep 'visibility' conftest.err >/dev/null
19066 if test "$?" -eq "0"; then
19067 supports_symbol_hiding="no"
19068 fi
19069 fi
19070
19071else
19072
19073 supports_symbol_hiding="no"
19074 echo " " >&6
19075 sed 's/^/cc-src: /' conftest.$ac_ext >&6
19076 sed 's/^/cc-err: /' conftest.err >&6
19077 echo " " >&6
19078
19079fi
19080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 CFLAGS="$tmp_save_CFLAGS"
19082 fi
19083 if test "$supports_symbol_hiding" = "yes"; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19085$as_echo "yes" >&6; }
19086 symbol_hiding_CFLAGS="$tmp_CFLAGS"
19087 symbol_hiding_EXTERN="$tmp_EXTERN"
19088 else
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090$as_echo "no" >&6; }
19091 fi
19092
19093
19094
19095 supports_curldebug="unknown"
19096 if test "$want_curldebug" = "yes"; then
19097 if test "x$enable_shared" != "xno" &&
19098 test "x$enable_shared" != "xyes"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
19100$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
19101 supports_curldebug="no"
19102 fi
19103 if test "x$enable_static" != "xno" &&
19104 test "x$enable_static" != "xyes"; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
19106$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
19107 supports_curldebug="no"
19108 fi
19109 if test "$supports_curldebug" != "no"; then
19110 if test "$enable_shared" = "yes" &&
19111 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19112 supports_curldebug="no"
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
19114$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
19115 fi
19116 fi
19117 fi
19118 #
19119 if test "$want_curldebug" = "yes"; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
19121$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
19122 test "$supports_curldebug" = "no" || supports_curldebug="yes"
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
19124$as_echo "$supports_curldebug" >&6; }
19125 if test "$supports_curldebug" = "no"; then
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
19127$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
19128 want_curldebug="no"
19129 fi
19130 fi
19131 #
19132 if test "$want_curldebug" = "yes"; then
19133 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
19134 squeeze CPPFLAGS
19135 fi
19136 if test "$want_debug" = "yes"; then
19137 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
19138 squeeze CPPFLAGS
19139 fi
19140
19141 if test x$want_curldebug = xyes; then
19142 CURLDEBUG_TRUE=
19143 CURLDEBUG_FALSE='#'
19144else
19145 CURLDEBUG_TRUE='#'
19146 CURLDEBUG_FALSE=
19147fi
19148
19149
19150supports_unittests=yes
19151# cross-compilation of unit tests static library/programs fails when
19152# libcurl shared library is built. This might be due to a libtool or
19153# automake issue. In this case we disable unit tests.
19154if test "x$cross_compiling" != "xno" &&
19155 test "x$enable_shared" != "xno"; then
19156 supports_unittests=no
19157fi
19158
19159# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
19160# a problem related with OpenSSL headers and library versions not matching.
19161# Disable unit tests while time to further investigate this is found.
19162case $host in
19163 mips-sgi-irix6.5)
19164 if test "$compiler_id" = "GNU_C"; then
19165 supports_unittests=no
19166 fi
19167 ;;
19168esac
19169
19170# All AIX autobuilds fails unit tests linking against unittests library
19171# due to unittests library being built with no symbols or members. Libtool ?
19172# Disable unit tests while time to further investigate this is found.
19173case $host_os in
19174 aix*)
19175 supports_unittests=no
19176 ;;
19177esac
19178
19179if test "x$want_debug" = "xyes" &&
19180 test "x$supports_unittests" = "xyes"; then
19181 want_unittests=yes
19182else
19183 want_unittests=no
19184fi
19185 if test x$want_unittests = xyes; then
19186 BUILD_UNITTESTS_TRUE=
19187 BUILD_UNITTESTS_FALSE='#'
19188else
19189 BUILD_UNITTESTS_TRUE='#'
19190 BUILD_UNITTESTS_FALSE=
19191fi
19192
19193
19194
19195
19196
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19198$as_echo_n "checking for windows.h... " >&6; }
19199if ${curl_cv_header_windows_h+:} false; then :
19200 $as_echo_n "(cached) " >&6
19201else
19202
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204/* end confdefs.h. */
19205
19206
19207#undef inline
19208#ifndef WIN32_LEAN_AND_MEAN
19209#define WIN32_LEAN_AND_MEAN
19210#endif
19211#include <windows.h>
19212
19213int main (void)
19214{
19215
19216#if defined(__CYGWIN__) || defined(__CEGCC__)
19217 HAVE_WINDOWS_H shall not be defined.
19218#else
19219 int dummy=2*WINVER;
19220#endif
19221
19222 ;
19223 return 0;
19224}
19225
19226_ACEOF
19227if ac_fn_c_try_compile "$LINENO"; then :
19228
19229 curl_cv_header_windows_h="yes"
19230
19231else
19232
19233 curl_cv_header_windows_h="no"
19234
19235fi
19236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237
19238fi
19239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
19240$as_echo "$curl_cv_header_windows_h" >&6; }
19241 case "$curl_cv_header_windows_h" in
19242 yes)
19243
19244cat >>confdefs.h <<_ACEOF
19245#define HAVE_WINDOWS_H 1
19246_ACEOF
19247
19248 ;;
19249 esac
19250
19251
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
19253$as_echo_n "checking whether build target is a native Windows one... " >&6; }
19254if ${curl_cv_native_windows+:} false; then :
19255 $as_echo_n "(cached) " >&6
19256else
19257
19258 if test "$curl_cv_header_windows_h" = "no"; then
19259 curl_cv_native_windows="no"
19260 else
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262/* end confdefs.h. */
19263
19264
19265
19266int main (void)
19267{
19268
19269#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
19270 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
19271 int dummy=1;
19272#else
19273 Not a native Windows build target.
19274#endif
19275
19276 ;
19277 return 0;
19278}
19279
19280_ACEOF
19281if ac_fn_c_try_compile "$LINENO"; then :
19282
19283 curl_cv_native_windows="yes"
19284
19285else
19286
19287 curl_cv_native_windows="no"
19288
19289fi
19290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292
19293fi
19294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
19295$as_echo "$curl_cv_native_windows" >&6; }
19296 if test "x$curl_cv_native_windows" = xyes; then
19297 DOING_NATIVE_WINDOWS_TRUE=
19298 DOING_NATIVE_WINDOWS_FALSE='#'
19299else
19300 DOING_NATIVE_WINDOWS_TRUE='#'
19301 DOING_NATIVE_WINDOWS_FALSE=
19302fi
19303
19304
19305case X-"$curl_cv_native_windows" in
19306 X-yes)
19307
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19309$as_echo_n "checking for winsock.h... " >&6; }
19310if ${curl_cv_header_winsock_h+:} false; then :
19311 $as_echo_n "(cached) " >&6
19312else
19313
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315/* end confdefs.h. */
19316
19317
19318#undef inline
19319#ifndef WIN32_LEAN_AND_MEAN
19320#define WIN32_LEAN_AND_MEAN
19321#endif
19322#include <windows.h>
19323#include <winsock.h>
19324
19325int main (void)
19326{
19327
19328#if defined(__CYGWIN__) || defined(__CEGCC__)
19329 HAVE_WINSOCK_H shall not be defined.
19330#else
19331 int dummy=WSACleanup();
19332#endif
19333
19334 ;
19335 return 0;
19336}
19337
19338_ACEOF
19339if ac_fn_c_try_compile "$LINENO"; then :
19340
19341 curl_cv_header_winsock_h="yes"
19342
19343else
19344
19345 curl_cv_header_winsock_h="no"
19346
19347fi
19348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349
19350fi
19351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
19352$as_echo "$curl_cv_header_winsock_h" >&6; }
19353 case "$curl_cv_header_winsock_h" in
19354 yes)
19355
19356cat >>confdefs.h <<_ACEOF
19357#define HAVE_WINSOCK_H 1
19358_ACEOF
19359
19360 ;;
19361 esac
19362
19363
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19365$as_echo_n "checking for winsock2.h... " >&6; }
19366if ${curl_cv_header_winsock2_h+:} false; then :
19367 $as_echo_n "(cached) " >&6
19368else
19369
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371/* end confdefs.h. */
19372
19373
19374#undef inline
19375#ifndef WIN32_LEAN_AND_MEAN
19376#define WIN32_LEAN_AND_MEAN
19377#endif
19378#include <windows.h>
19379#include <winsock2.h>
19380
19381int main (void)
19382{
19383
19384#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19385 HAVE_WINSOCK2_H shall not be defined.
19386#else
19387 int dummy=2*IPPROTO_ESP;
19388#endif
19389
19390 ;
19391 return 0;
19392}
19393
19394_ACEOF
19395if ac_fn_c_try_compile "$LINENO"; then :
19396
19397 curl_cv_header_winsock2_h="yes"
19398
19399else
19400
19401 curl_cv_header_winsock2_h="no"
19402
19403fi
19404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405
19406fi
19407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
19408$as_echo "$curl_cv_header_winsock2_h" >&6; }
19409 case "$curl_cv_header_winsock2_h" in
19410 yes)
19411
19412cat >>confdefs.h <<_ACEOF
19413#define HAVE_WINSOCK2_H 1
19414_ACEOF
19415
19416 ;;
19417 esac
19418
19419
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
19421$as_echo_n "checking for ws2tcpip.h... " >&6; }
19422if ${curl_cv_header_ws2tcpip_h+:} false; then :
19423 $as_echo_n "(cached) " >&6
19424else
19425
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427/* end confdefs.h. */
19428
19429
19430#undef inline
19431#ifndef WIN32_LEAN_AND_MEAN
19432#define WIN32_LEAN_AND_MEAN
19433#endif
19434#include <windows.h>
19435#include <winsock2.h>
19436#include <ws2tcpip.h>
19437
19438int main (void)
19439{
19440
19441#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19442 HAVE_WS2TCPIP_H shall not be defined.
19443#else
19444 int dummy=2*IP_PKTINFO;
19445#endif
19446
19447 ;
19448 return 0;
19449}
19450
19451_ACEOF
19452if ac_fn_c_try_compile "$LINENO"; then :
19453
19454 curl_cv_header_ws2tcpip_h="yes"
19455
19456else
19457
19458 curl_cv_header_ws2tcpip_h="no"
19459
19460fi
19461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462
19463fi
19464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
19465$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
19466 case "$curl_cv_header_ws2tcpip_h" in
19467 yes)
19468
19469cat >>confdefs.h <<_ACEOF
19470#define HAVE_WS2TCPIP_H 1
19471_ACEOF
19472
19473 ;;
19474 esac
19475
19476
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
19478$as_echo_n "checking for winldap.h... " >&6; }
19479if ${curl_cv_header_winldap_h+:} false; then :
19480 $as_echo_n "(cached) " >&6
19481else
19482
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h. */
19485
19486
19487#undef inline
19488#ifdef HAVE_WINDOWS_H
19489#ifndef WIN32_LEAN_AND_MEAN
19490#define WIN32_LEAN_AND_MEAN
19491#endif
19492#include <windows.h>
19493#endif
19494#include <winldap.h>
19495
19496int main (void)
19497{
19498
19499#if defined(__CYGWIN__) || defined(__CEGCC__)
19500 HAVE_WINLDAP_H shall not be defined.
19501#else
19502 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19503 ULONG res = ldap_unbind(ldp);
19504#endif
19505
19506 ;
19507 return 0;
19508}
19509
19510_ACEOF
19511if ac_fn_c_try_compile "$LINENO"; then :
19512
19513 curl_cv_header_winldap_h="yes"
19514
19515else
19516
19517 curl_cv_header_winldap_h="no"
19518
19519fi
19520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521
19522fi
19523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19524$as_echo "$curl_cv_header_winldap_h" >&6; }
19525 case "$curl_cv_header_winldap_h" in
19526 yes)
19527
19528cat >>confdefs.h <<_ACEOF
19529#define HAVE_WINLDAP_H 1
19530_ACEOF
19531
19532 ;;
19533 esac
19534
19535
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19537$as_echo_n "checking for winber.h... " >&6; }
19538if ${curl_cv_header_winber_h+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540else
19541
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543/* end confdefs.h. */
19544
19545
19546#undef inline
19547#ifdef HAVE_WINDOWS_H
19548#ifndef WIN32_LEAN_AND_MEAN
19549#define WIN32_LEAN_AND_MEAN
19550#endif
19551#include <windows.h>
19552#endif
19553#include <winldap.h>
19554#include <winber.h>
19555
19556int main (void)
19557{
19558
19559#if defined(__CYGWIN__) || defined(__CEGCC__)
19560 HAVE_WINBER_H shall not be defined.
19561#else
19562 BERVAL *bvp = NULL;
19563 BerElement *bep = ber_init(bvp);
19564 ber_free(bep, 1);
19565#endif
19566
19567 ;
19568 return 0;
19569}
19570
19571_ACEOF
19572if ac_fn_c_try_compile "$LINENO"; then :
19573
19574 curl_cv_header_winber_h="yes"
19575
19576else
19577
19578 curl_cv_header_winber_h="no"
19579
19580fi
19581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583fi
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19585$as_echo "$curl_cv_header_winber_h" >&6; }
19586 case "$curl_cv_header_winber_h" in
19587 yes)
19588
19589cat >>confdefs.h <<_ACEOF
19590#define HAVE_WINBER_H 1
19591_ACEOF
19592
19593 ;;
19594 esac
19595
19596 ;;
19597 *)
19598 curl_cv_header_winsock_h="no"
19599 curl_cv_header_winsock2_h="no"
19600 curl_cv_header_ws2tcpip_h="no"
19601 curl_cv_header_winldap_h="no"
19602 curl_cv_header_winber_h="no"
19603 ;;
19604esac
19605
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19607$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19608 curl_win32_file_api="no"
19609 if test "$curl_cv_header_windows_h" = "yes"; then
19610 if test x"$enable_largefile" != "xno"; then
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612/* end confdefs.h. */
19613
19614
19615
19616int main (void)
19617{
19618
19619#if !defined(_WIN32_WCE) && \
19620 (defined(__MINGW32__) || \
19621 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19622 int dummy=1;
19623#else
19624 WIN32 large file API not supported.
19625#endif
19626
19627 ;
19628 return 0;
19629}
19630
19631_ACEOF
19632if ac_fn_c_try_compile "$LINENO"; then :
19633
19634 curl_win32_file_api="win32_large_files"
19635
19636fi
19637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 fi
19639 if test "$curl_win32_file_api" = "no"; then
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641/* end confdefs.h. */
19642
19643
19644
19645int main (void)
19646{
19647
19648#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19649 int dummy=1;
19650#else
19651 WIN32 small file API not supported.
19652#endif
19653
19654 ;
19655 return 0;
19656}
19657
19658_ACEOF
19659if ac_fn_c_try_compile "$LINENO"; then :
19660
19661 curl_win32_file_api="win32_small_files"
19662
19663fi
19664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665 fi
19666 fi
19667 case "$curl_win32_file_api" in
19668 win32_large_files)
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19670$as_echo "yes (large file enabled)" >&6; }
19671
19672cat >>confdefs.h <<_ACEOF
19673#define USE_WIN32_LARGE_FILES 1
19674_ACEOF
19675
19676 ;;
19677 win32_small_files)
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19679$as_echo "yes (large file disabled)" >&6; }
19680
19681cat >>confdefs.h <<_ACEOF
19682#define USE_WIN32_SMALL_FILES 1
19683_ACEOF
19684
19685 ;;
19686 *)
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688$as_echo "no" >&6; }
19689 ;;
19690 esac
19691
19692
19693
19694
19695 tst_cflags="no"
19696 case $host_os in
19697 darwin*)
19698 tst_cflags="yes"
19699 ;;
19700 esac
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19703$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19705$as_echo "$tst_cflags" >&6; };
19706
19707 if test "$tst_cflags" = "yes"; then
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19709$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19710 min=""
19711 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19712 min="-mmacosx-version-min=10.8"
19713 CFLAGS="$CFLAGS $min"
19714 fi
19715 if test -z "$min"; then
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19717$as_echo "set by user" >&6; }
19718 else
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19720$as_echo "$min set" >&6; }
19721 fi
19722
19723 old_CFLAGS=$CFLAGS
19724 CFLAGS="$CFLAGS -Werror=partial-availability"
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19726$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19728/* end confdefs.h. */
19729
19730int main (void)
19731{
19732
19733 ;
19734 return 0;
19735}
19736_ACEOF
19737if ac_fn_c_try_compile "$LINENO"; then :
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19739$as_echo "yes" >&6; }
19740else
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742$as_echo "no" >&6; }
19743 CFLAGS=$old_CFLAGS
19744fi
19745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746 fi
19747
19748
19749
19750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19751$as_echo_n "checking whether to support http... " >&6; }
19752# Check whether --enable-http was given.
19753if test "${enable_http+set}" = set; then :
19754 enableval=$enable_http; case "$enableval" in
19755 no)
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757$as_echo "no" >&6; }
19758
19759$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19760
19761 disable_http="yes"
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19763$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19764 CURL_DISABLE_HTTP=1
19765
19766
19767$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19768
19769 CURL_DISABLE_RTSP=1
19770
19771 ;;
19772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19773$as_echo "yes" >&6; }
19774 ;;
19775 esac
19776else
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19778$as_echo "yes" >&6; }
19779
19780fi
19781
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19783$as_echo_n "checking whether to support ftp... " >&6; }
19784# Check whether --enable-ftp was given.
19785if test "${enable_ftp+set}" = set; then :
19786 enableval=$enable_ftp; case "$enableval" in
19787 no)
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19789$as_echo "no" >&6; }
19790
19791$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19792
19793 CURL_DISABLE_FTP=1
19794
19795 ;;
19796 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19797$as_echo "yes" >&6; }
19798 ;;
19799 esac
19800else
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19802$as_echo "yes" >&6; }
19803
19804fi
19805
19806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19807$as_echo_n "checking whether to support file... " >&6; }
19808# Check whether --enable-file was given.
19809if test "${enable_file+set}" = set; then :
19810 enableval=$enable_file; case "$enableval" in
19811 no)
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19813$as_echo "no" >&6; }
19814
19815$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19816
19817 CURL_DISABLE_FILE=1
19818
19819 ;;
19820 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821$as_echo "yes" >&6; }
19822 ;;
19823 esac
19824else
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19826$as_echo "yes" >&6; }
19827
19828fi
19829
19830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19831$as_echo_n "checking whether to support ldap... " >&6; }
19832# Check whether --enable-ldap was given.
19833if test "${enable_ldap+set}" = set; then :
19834 enableval=$enable_ldap; case "$enableval" in
19835 no)
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19837$as_echo "no" >&6; }
19838
19839$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19840
19841 CURL_DISABLE_LDAP=1
19842
19843 ;;
19844 *)
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19846$as_echo "yes" >&6; }
19847 ;;
19848 esac
19849else
19850
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19852$as_echo "yes" >&6; }
19853
19854fi
19855
19856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19857$as_echo_n "checking whether to support ldaps... " >&6; }
19858# Check whether --enable-ldaps was given.
19859if test "${enable_ldaps+set}" = set; then :
19860 enableval=$enable_ldaps; case "$enableval" in
19861 no)
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863$as_echo "no" >&6; }
19864
19865$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19866
19867 CURL_DISABLE_LDAPS=1
19868
19869 ;;
19870 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19872$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19873
19874$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19875
19876 CURL_DISABLE_LDAPS=1
19877
19878 else
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19880$as_echo "yes" >&6; }
19881
19882$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19883
19884 HAVE_LDAP_SSL=1
19885
19886 fi
19887 ;;
19888 esac
19889else
19890
19891 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19893$as_echo "no" >&6; }
19894
19895$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19896
19897 CURL_DISABLE_LDAPS=1
19898
19899 else
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19901$as_echo "yes" >&6; }
19902
19903$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19904
19905 HAVE_LDAP_SSL=1
19906
19907 fi
19908
19909fi
19910
19911
19912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19913$as_echo_n "checking whether to support rtsp... " >&6; }
19914# Check whether --enable-rtsp was given.
19915if test "${enable_rtsp+set}" = set; then :
19916 enableval=$enable_rtsp; case "$enableval" in
19917 no)
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19919$as_echo "no" >&6; }
19920
19921$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19922
19923 CURL_DISABLE_RTSP=1
19924
19925 ;;
19926 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19927 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19928 else
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19930$as_echo "yes" >&6; }
19931 curl_rtsp_msg="enabled"
19932 fi
19933 ;;
19934 esac
19935else
19936 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19938$as_echo "yes" >&6; }
19939 curl_rtsp_msg="enabled"
19940 else
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942$as_echo "no" >&6; }
19943 fi
19944
19945fi
19946
19947
19948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19949$as_echo_n "checking whether to support proxies... " >&6; }
19950# Check whether --enable-proxy was given.
19951if test "${enable_proxy+set}" = set; then :
19952 enableval=$enable_proxy; case "$enableval" in
19953 no)
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955$as_echo "no" >&6; }
19956
19957$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19958
19959 CURL_DISABLE_PROXY=1
19960
19961 ;;
19962 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19963$as_echo "yes" >&6; }
19964 ;;
19965 esac
19966else
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19968$as_echo "yes" >&6; }
19969
19970fi
19971
19972
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19974$as_echo_n "checking whether to support dict... " >&6; }
19975# Check whether --enable-dict was given.
19976if test "${enable_dict+set}" = set; then :
19977 enableval=$enable_dict; case "$enableval" in
19978 no)
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19980$as_echo "no" >&6; }
19981
19982$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19983
19984 CURL_DISABLE_DICT=1
19985
19986 ;;
19987 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19988$as_echo "yes" >&6; }
19989 ;;
19990 esac
19991else
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19993$as_echo "yes" >&6; }
19994
19995fi
19996
19997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19998$as_echo_n "checking whether to support telnet... " >&6; }
19999# Check whether --enable-telnet was given.
20000if test "${enable_telnet+set}" = set; then :
20001 enableval=$enable_telnet; case "$enableval" in
20002 no)
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004$as_echo "no" >&6; }
20005
20006$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
20007
20008 CURL_DISABLE_TELNET=1
20009
20010 ;;
20011 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012$as_echo "yes" >&6; }
20013 ;;
20014 esac
20015else
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20017$as_echo "yes" >&6; }
20018
20019fi
20020
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
20022$as_echo_n "checking whether to support tftp... " >&6; }
20023# Check whether --enable-tftp was given.
20024if test "${enable_tftp+set}" = set; then :
20025 enableval=$enable_tftp; case "$enableval" in
20026 no)
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028$as_echo "no" >&6; }
20029
20030$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
20031
20032 CURL_DISABLE_TFTP=1
20033
20034 ;;
20035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036$as_echo "yes" >&6; }
20037 ;;
20038 esac
20039else
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20041$as_echo "yes" >&6; }
20042
20043fi
20044
20045
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
20047$as_echo_n "checking whether to support pop3... " >&6; }
20048# Check whether --enable-pop3 was given.
20049if test "${enable_pop3+set}" = set; then :
20050 enableval=$enable_pop3; case "$enableval" in
20051 no)
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20053$as_echo "no" >&6; }
20054
20055$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
20056
20057 CURL_DISABLE_POP3=1
20058
20059 ;;
20060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20061$as_echo "yes" >&6; }
20062 ;;
20063 esac
20064else
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066$as_echo "yes" >&6; }
20067
20068fi
20069
20070
20071
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
20073$as_echo_n "checking whether to support imap... " >&6; }
20074# Check whether --enable-imap was given.
20075if test "${enable_imap+set}" = set; then :
20076 enableval=$enable_imap; case "$enableval" in
20077 no)
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20079$as_echo "no" >&6; }
20080
20081$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
20082
20083 CURL_DISABLE_IMAP=1
20084
20085 ;;
20086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20087$as_echo "yes" >&6; }
20088 ;;
20089 esac
20090else
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20092$as_echo "yes" >&6; }
20093
20094fi
20095
20096
20097
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
20099$as_echo_n "checking whether to support smb... " >&6; }
20100# Check whether --enable-smb was given.
20101if test "${enable_smb+set}" = set; then :
20102 enableval=$enable_smb; case "$enableval" in
20103 no)
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20105$as_echo "no" >&6; }
20106
20107$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
20108
20109 CURL_DISABLE_SMB=1
20110
20111 ;;
20112 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20113$as_echo "yes" >&6; }
20114 ;;
20115 esac
20116else
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20118$as_echo "yes" >&6; }
20119
20120fi
20121
20122
20123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
20124$as_echo_n "checking whether to support smtp... " >&6; }
20125# Check whether --enable-smtp was given.
20126if test "${enable_smtp+set}" = set; then :
20127 enableval=$enable_smtp; case "$enableval" in
20128 no)
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130$as_echo "no" >&6; }
20131
20132$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
20133
20134 CURL_DISABLE_SMTP=1
20135
20136 ;;
20137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138$as_echo "yes" >&6; }
20139 ;;
20140 esac
20141else
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20143$as_echo "yes" >&6; }
20144
20145fi
20146
20147
20148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
20149$as_echo_n "checking whether to support gopher... " >&6; }
20150# Check whether --enable-gopher was given.
20151if test "${enable_gopher+set}" = set; then :
20152 enableval=$enable_gopher; case "$enableval" in
20153 no)
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155$as_echo "no" >&6; }
20156
20157$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
20158
20159 CURL_DISABLE_GOPHER=1
20160
20161 ;;
20162 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20163$as_echo "yes" >&6; }
20164 ;;
20165 esac
20166else
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20168$as_echo "yes" >&6; }
20169
20170fi
20171
20172
20173
20174
20175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
20176$as_echo_n "checking whether to provide built-in manual... " >&6; }
20177# Check whether --enable-manual was given.
20178if test "${enable_manual+set}" = set; then :
20179 enableval=$enable_manual; case "$enableval" in
20180 no)
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182$as_echo "no" >&6; }
20183 ;;
20184 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20185$as_echo "yes" >&6; }
20186 USE_MANUAL="1"
20187 ;;
20188 esac
20189else
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20191$as_echo "yes" >&6; }
20192 USE_MANUAL="1"
20193
20194fi
20195
20196
20197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
20198$as_echo_n "checking whether to enable generation of C code... " >&6; }
20199# Check whether --enable-libcurl_option was given.
20200if test "${enable_libcurl_option+set}" = set; then :
20201 enableval=$enable_libcurl_option; case "$enableval" in
20202 no)
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20204$as_echo "no" >&6; }
20205
20206$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
20207
20208 curl_libcurl_msg="no"
20209 ;;
20210 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20211$as_echo "yes" >&6; }
20212 ;;
20213 esac
20214else
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20216$as_echo "yes" >&6; }
20217
20218fi
20219
20220
20221
20222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
20223$as_echo_n "checking whether to use libgcc... " >&6; }
20224# Check whether --enable-libgcc was given.
20225if test "${enable_libgcc+set}" = set; then :
20226 enableval=$enable_libgcc; case "$enableval" in
20227 yes)
20228 LIBS="-lgcc $LIBS"
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230$as_echo "yes" >&6; }
20231 ;;
20232 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20233$as_echo "no" >&6; }
20234 ;;
20235 esac
20236else
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238$as_echo "no" >&6; }
20239
20240fi
20241
20242
20243
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
20245$as_echo_n "checking if X/Open network library is required... " >&6; }
20246 tst_lib_xnet_required="no"
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248/* end confdefs.h. */
20249
20250
20251int main (void)
20252{
20253#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
20254 return 0;
20255#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
20256 return 0;
20257#else
20258 force compilation error
20259#endif
20260}
20261
20262
20263_ACEOF
20264if ac_fn_c_try_compile "$LINENO"; then :
20265
20266 tst_lib_xnet_required="yes"
20267 LIBS="-lxnet $LIBS"
20268
20269fi
20270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
20272$as_echo "$tst_lib_xnet_required" >&6; }
20273
20274
20275ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20276if test "x$ac_cv_func_gethostbyname" = xyes; then :
20277 HAVE_GETHOSTBYNAME="1"
20278
20279else
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20281$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20282if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20283 $as_echo_n "(cached) " >&6
20284else
20285 ac_check_lib_save_LIBS=$LIBS
20286LIBS="-lnsl $LIBS"
20287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20288/* end confdefs.h. */
20289
20290
20291#ifdef __cplusplus
20292extern "C"
20293#endif
20294char gethostbyname ();
20295int main (void)
20296{
20297return gethostbyname ();
20298 ;
20299 return 0;
20300}
20301_ACEOF
20302if ac_fn_c_try_link "$LINENO"; then :
20303 ac_cv_lib_nsl_gethostbyname=yes
20304else
20305 ac_cv_lib_nsl_gethostbyname=no
20306fi
20307rm -f core conftest.err conftest.$ac_objext \
20308 conftest$ac_exeext conftest.$ac_ext
20309LIBS=$ac_check_lib_save_LIBS
20310fi
20311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20312$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20313if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20314 HAVE_GETHOSTBYNAME="1"
20315 LIBS="-lnsl $LIBS"
20316
20317fi
20318
20319
20320fi
20321
20322
20323if test "$HAVE_GETHOSTBYNAME" != "1"
20324then
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
20326$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
20327if ${ac_cv_lib_socket_gethostbyname+:} false; then :
20328 $as_echo_n "(cached) " >&6
20329else
20330 ac_check_lib_save_LIBS=$LIBS
20331LIBS="-lsocket $LIBS"
20332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333/* end confdefs.h. */
20334
20335
20336#ifdef __cplusplus
20337extern "C"
20338#endif
20339char gethostbyname ();
20340int main (void)
20341{
20342return gethostbyname ();
20343 ;
20344 return 0;
20345}
20346_ACEOF
20347if ac_fn_c_try_link "$LINENO"; then :
20348 ac_cv_lib_socket_gethostbyname=yes
20349else
20350 ac_cv_lib_socket_gethostbyname=no
20351fi
20352rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354LIBS=$ac_check_lib_save_LIBS
20355fi
20356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
20357$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
20358if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
20359 HAVE_GETHOSTBYNAME="1"
20360 LIBS="-lsocket $LIBS"
20361
20362fi
20363
20364fi
20365
20366if test "$HAVE_GETHOSTBYNAME" != "1"
20367then
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
20369$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
20370if ${ac_cv_lib_watt_gethostbyname+:} false; then :
20371 $as_echo_n "(cached) " >&6
20372else
20373 ac_check_lib_save_LIBS=$LIBS
20374LIBS="-lwatt $LIBS"
20375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376/* end confdefs.h. */
20377
20378
20379#ifdef __cplusplus
20380extern "C"
20381#endif
20382char gethostbyname ();
20383int main (void)
20384{
20385return gethostbyname ();
20386 ;
20387 return 0;
20388}
20389_ACEOF
20390if ac_fn_c_try_link "$LINENO"; then :
20391 ac_cv_lib_watt_gethostbyname=yes
20392else
20393 ac_cv_lib_watt_gethostbyname=no
20394fi
20395rm -f core conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397LIBS=$ac_check_lib_save_LIBS
20398fi
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
20400$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
20401if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
20402 HAVE_GETHOSTBYNAME="1"
20403 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
20404 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
20405 LIBS="-lwatt $LIBS"
20406
20407fi
20408
20409fi
20410
20411if test "$HAVE_GETHOSTBYNAME" != "1"
20412then
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
20414$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
20415 my_ac_save_LIBS=$LIBS
20416 LIBS="-lnsl -lsocket $LIBS"
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418/* end confdefs.h. */
20419
20420
20421
20422int main (void)
20423{
20424
20425 gethostbyname();
20426
20427 ;
20428 return 0;
20429}
20430
20431_ACEOF
20432if ac_fn_c_try_link "$LINENO"; then :
20433
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20435$as_echo "yes" >&6; }
20436 HAVE_GETHOSTBYNAME="1"
20437
20438else
20439
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441$as_echo "no" >&6; }
20442 LIBS=$my_ac_save_LIBS
20443
20444fi
20445rm -f core conftest.err conftest.$ac_objext \
20446 conftest$ac_exeext conftest.$ac_ext
20447fi
20448
20449if test "$HAVE_GETHOSTBYNAME" != "1"
20450then
20451 if test "$curl_cv_header_windows_h" = "yes"; then
20452 if test "$curl_cv_header_winsock_h" = "yes"; then
20453 case $host in
20454 *-*-mingw32ce*)
20455 winsock_LIB="-lwinsock"
20456 ;;
20457 *)
20458 winsock_LIB="-lwsock32"
20459 ;;
20460 esac
20461 fi
20462 if test "$curl_cv_header_winsock2_h" = "yes"; then
20463 winsock_LIB="-lws2_32"
20464 fi
20465 if test ! -z "$winsock_LIB"; then
20466 my_ac_save_LIBS=$LIBS
20467 LIBS="$winsock_LIB $LIBS"
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
20469$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471/* end confdefs.h. */
20472
20473
20474#ifdef HAVE_WINDOWS_H
20475#ifndef WIN32_LEAN_AND_MEAN
20476#define WIN32_LEAN_AND_MEAN
20477#endif
20478#include <windows.h>
20479#ifdef HAVE_WINSOCK2_H
20480#include <winsock2.h>
20481#else
20482#ifdef HAVE_WINSOCK_H
20483#include <winsock.h>
20484#endif
20485#endif
20486#endif
20487
20488int main (void)
20489{
20490
20491 gethostbyname("www.dummysite.com");
20492
20493 ;
20494 return 0;
20495}
20496
20497_ACEOF
20498if ac_fn_c_try_link "$LINENO"; then :
20499
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501$as_echo "yes" >&6; }
20502 HAVE_GETHOSTBYNAME="1"
20503
20504else
20505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20507$as_echo "no" >&6; }
20508 winsock_LIB=""
20509 LIBS=$my_ac_save_LIBS
20510
20511fi
20512rm -f core conftest.err conftest.$ac_objext \
20513 conftest$ac_exeext conftest.$ac_ext
20514 fi
20515 fi
20516fi
20517
20518if test "$HAVE_GETHOSTBYNAME" != "1"
20519then
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20521$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523/* end confdefs.h. */
20524
20525
20526/* Older Minix versions may need <net/gen/netdb.h> here instead */
20527#include <netdb.h>
20528
20529int main (void)
20530{
20531
20532 gethostbyname("www.dummysite.com");
20533
20534 ;
20535 return 0;
20536}
20537
20538_ACEOF
20539if ac_fn_c_try_link "$LINENO"; then :
20540
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20542$as_echo "yes" >&6; }
20543 HAVE_GETHOSTBYNAME="1"
20544
20545else
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20548$as_echo "no" >&6; }
20549
20550fi
20551rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20553fi
20554
20555if test "$HAVE_GETHOSTBYNAME" != "1"
20556then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20558$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560/* end confdefs.h. */
20561
20562
20563#include <stdio.h>
20564#include <netdb.h>
20565
20566int main (void)
20567{
20568
20569 gethostbyname("www.dummysite.com");
20570
20571 ;
20572 return 0;
20573}
20574
20575_ACEOF
20576if ac_fn_c_try_link "$LINENO"; then :
20577
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20579$as_echo "yes" >&6; }
20580 HAVE_GETHOSTBYNAME="1"
20581
20582else
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20585$as_echo "no" >&6; }
20586
20587fi
20588rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20590fi
20591
20592if test "$HAVE_GETHOSTBYNAME" != "1"
20593then
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20595$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20596if ${ac_cv_lib_network_gethostbyname+:} false; then :
20597 $as_echo_n "(cached) " >&6
20598else
20599 ac_check_lib_save_LIBS=$LIBS
20600LIBS="-lnetwork $LIBS"
20601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602/* end confdefs.h. */
20603
20604
20605#ifdef __cplusplus
20606extern "C"
20607#endif
20608char gethostbyname ();
20609int main (void)
20610{
20611return gethostbyname ();
20612 ;
20613 return 0;
20614}
20615_ACEOF
20616if ac_fn_c_try_link "$LINENO"; then :
20617 ac_cv_lib_network_gethostbyname=yes
20618else
20619 ac_cv_lib_network_gethostbyname=no
20620fi
20621rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20623LIBS=$ac_check_lib_save_LIBS
20624fi
20625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20626$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20627if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20628 HAVE_GETHOSTBYNAME="1"
20629 LIBS="-lnetwork $LIBS"
20630
20631fi
20632
20633fi
20634
20635if test "$HAVE_GETHOSTBYNAME" != "1"
20636then
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20638$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20639if ${ac_cv_lib_net_gethostbyname+:} false; then :
20640 $as_echo_n "(cached) " >&6
20641else
20642 ac_check_lib_save_LIBS=$LIBS
20643LIBS="-lnet $LIBS"
20644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645/* end confdefs.h. */
20646
20647
20648#ifdef __cplusplus
20649extern "C"
20650#endif
20651char gethostbyname ();
20652int main (void)
20653{
20654return gethostbyname ();
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659if ac_fn_c_try_link "$LINENO"; then :
20660 ac_cv_lib_net_gethostbyname=yes
20661else
20662 ac_cv_lib_net_gethostbyname=no
20663fi
20664rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20666LIBS=$ac_check_lib_save_LIBS
20667fi
20668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20669$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20670if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20671 HAVE_GETHOSTBYNAME="1"
20672 LIBS="-lnet $LIBS"
20673
20674fi
20675
20676fi
20677
20678
20679if test "$HAVE_GETHOSTBYNAME" != "1"; then
20680 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20681fi
20682
20683
20684curl_includes_winsock2="\
20685/* includes start */
20686#ifdef HAVE_WINDOWS_H
20687# ifndef WIN32_LEAN_AND_MEAN
20688# define WIN32_LEAN_AND_MEAN
20689# endif
20690# include <windows.h>
20691# ifdef HAVE_WINSOCK2_H
20692# include <winsock2.h>
20693# else
20694# ifdef HAVE_WINSOCK_H
20695# include <winsock.h>
20696# endif
20697# endif
20698#endif
20699/* includes end */"
20700
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20702$as_echo_n "checking for windows.h... " >&6; }
20703if ${curl_cv_header_windows_h+:} false; then :
20704 $as_echo_n "(cached) " >&6
20705else
20706
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708/* end confdefs.h. */
20709
20710
20711#undef inline
20712#ifndef WIN32_LEAN_AND_MEAN
20713#define WIN32_LEAN_AND_MEAN
20714#endif
20715#include <windows.h>
20716
20717int main (void)
20718{
20719
20720#if defined(__CYGWIN__) || defined(__CEGCC__)
20721 HAVE_WINDOWS_H shall not be defined.
20722#else
20723 int dummy=2*WINVER;
20724#endif
20725
20726 ;
20727 return 0;
20728}
20729
20730_ACEOF
20731if ac_fn_c_try_compile "$LINENO"; then :
20732
20733 curl_cv_header_windows_h="yes"
20734
20735else
20736
20737 curl_cv_header_windows_h="no"
20738
20739fi
20740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741
20742fi
20743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20744$as_echo "$curl_cv_header_windows_h" >&6; }
20745 case "$curl_cv_header_windows_h" in
20746 yes)
20747
20748cat >>confdefs.h <<_ACEOF
20749#define HAVE_WINDOWS_H 1
20750_ACEOF
20751
20752 ;;
20753 esac
20754
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20757$as_echo_n "checking for winsock.h... " >&6; }
20758if ${curl_cv_header_winsock_h+:} false; then :
20759 $as_echo_n "(cached) " >&6
20760else
20761
20762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20763/* end confdefs.h. */
20764
20765
20766#undef inline
20767#ifndef WIN32_LEAN_AND_MEAN
20768#define WIN32_LEAN_AND_MEAN
20769#endif
20770#include <windows.h>
20771#include <winsock.h>
20772
20773int main (void)
20774{
20775
20776#if defined(__CYGWIN__) || defined(__CEGCC__)
20777 HAVE_WINSOCK_H shall not be defined.
20778#else
20779 int dummy=WSACleanup();
20780#endif
20781
20782 ;
20783 return 0;
20784}
20785
20786_ACEOF
20787if ac_fn_c_try_compile "$LINENO"; then :
20788
20789 curl_cv_header_winsock_h="yes"
20790
20791else
20792
20793 curl_cv_header_winsock_h="no"
20794
20795fi
20796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20797
20798fi
20799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20800$as_echo "$curl_cv_header_winsock_h" >&6; }
20801 case "$curl_cv_header_winsock_h" in
20802 yes)
20803
20804cat >>confdefs.h <<_ACEOF
20805#define HAVE_WINSOCK_H 1
20806_ACEOF
20807
20808 ;;
20809 esac
20810
20811
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20813$as_echo_n "checking for winsock2.h... " >&6; }
20814if ${curl_cv_header_winsock2_h+:} false; then :
20815 $as_echo_n "(cached) " >&6
20816else
20817
20818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819/* end confdefs.h. */
20820
20821
20822#undef inline
20823#ifndef WIN32_LEAN_AND_MEAN
20824#define WIN32_LEAN_AND_MEAN
20825#endif
20826#include <windows.h>
20827#include <winsock2.h>
20828
20829int main (void)
20830{
20831
20832#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20833 HAVE_WINSOCK2_H shall not be defined.
20834#else
20835 int dummy=2*IPPROTO_ESP;
20836#endif
20837
20838 ;
20839 return 0;
20840}
20841
20842_ACEOF
20843if ac_fn_c_try_compile "$LINENO"; then :
20844
20845 curl_cv_header_winsock2_h="yes"
20846
20847else
20848
20849 curl_cv_header_winsock2_h="no"
20850
20851fi
20852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853
20854fi
20855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20856$as_echo "$curl_cv_header_winsock2_h" >&6; }
20857 case "$curl_cv_header_winsock2_h" in
20858 yes)
20859
20860cat >>confdefs.h <<_ACEOF
20861#define HAVE_WINSOCK2_H 1
20862_ACEOF
20863
20864 ;;
20865 esac
20866
20867
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20870$as_echo_n "checking for connect in libraries... " >&6; }
20871 tst_connect_save_LIBS="$LIBS"
20872 tst_connect_need_LIBS="unknown"
20873 for tst_lib in '' '-lsocket' ; do
20874 if test "$tst_connect_need_LIBS" = "unknown"; then
20875 LIBS="$tst_lib $tst_connect_save_LIBS"
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877/* end confdefs.h. */
20878
20879
20880 $curl_includes_winsock2
20881 #ifndef HAVE_WINDOWS_H
20882 int connect(int, void*, int);
20883 #endif
20884
20885int main (void)
20886{
20887
20888 if(0 != connect(0, 0, 0))
20889 return 1;
20890
20891 ;
20892 return 0;
20893}
20894
20895_ACEOF
20896if ac_fn_c_try_link "$LINENO"; then :
20897
20898 tst_connect_need_LIBS="$tst_lib"
20899
20900fi
20901rm -f core conftest.err conftest.$ac_objext \
20902 conftest$ac_exeext conftest.$ac_ext
20903 fi
20904 done
20905 LIBS="$tst_connect_save_LIBS"
20906 #
20907 case X-"$tst_connect_need_LIBS" in
20908 X-unknown)
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20910$as_echo "cannot find connect" >&6; }
20911 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20912 ;;
20913 X-)
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20915$as_echo "yes" >&6; }
20916 ;;
20917 *)
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20919$as_echo "$tst_connect_need_LIBS" >&6; }
20920 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20921 ;;
20922 esac
20923
20924
20925CURL_NETWORK_LIBS=$LIBS
20926
20927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20928$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20929if ${ac_cv_header_time+:} false; then :
20930 $as_echo_n "(cached) " >&6
20931else
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933/* end confdefs.h. */
20934#include <sys/types.h>
20935#include <sys/time.h>
20936#include <time.h>
20937
20938int main (void)
20939{
20940if ((struct tm *) 0)
20941return 0;
20942 ;
20943 return 0;
20944}
20945_ACEOF
20946if ac_fn_c_try_compile "$LINENO"; then :
20947 ac_cv_header_time=yes
20948else
20949 ac_cv_header_time=no
20950fi
20951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952fi
20953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20954$as_echo "$ac_cv_header_time" >&6; }
20955if test $ac_cv_header_time = yes; then
20956
20957$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20958
20959fi
20960
20961
20962 for ac_header in sys/types.h sys/time.h time.h
20963do :
20964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20965ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20967 cat >>confdefs.h <<_ACEOF
20968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20969_ACEOF
20970
20971fi
20972
20973done
20974
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20976$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20977 #
20978 if test "x$dontwant_rt" = "xno" ; then
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980/* end confdefs.h. */
20981
20982
20983#ifdef HAVE_SYS_TYPES_H
20984#include <sys/types.h>
20985#endif
20986#ifdef HAVE_SYS_TIME_H
20987#include <sys/time.h>
20988#ifdef TIME_WITH_SYS_TIME
20989#include <time.h>
20990#endif
20991#else
20992#ifdef HAVE_TIME_H
20993#include <time.h>
20994#endif
20995#endif
20996
20997int main (void)
20998{
20999
21000 struct timespec ts;
21001 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21002
21003 ;
21004 return 0;
21005}
21006
21007_ACEOF
21008if ac_fn_c_try_compile "$LINENO"; then :
21009
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21011$as_echo "yes" >&6; }
21012 curl_func_clock_gettime="yes"
21013
21014else
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017$as_echo "no" >&6; }
21018 curl_func_clock_gettime="no"
21019
21020fi
21021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21022 fi
21023
21024
21025 #
21026 if test "$curl_func_clock_gettime" = "yes"; then
21027 #
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
21029$as_echo_n "checking for clock_gettime in libraries... " >&6; }
21030 #
21031 curl_cv_save_LIBS="$LIBS"
21032 curl_cv_gclk_LIBS="unknown"
21033 #
21034 for x_xlibs in '' '-lrt' '-lposix4' ; do
21035 if test "$curl_cv_gclk_LIBS" = "unknown"; then
21036 if test -z "$x_xlibs"; then
21037 LIBS="$curl_cv_save_LIBS"
21038 else
21039 LIBS="$x_xlibs $curl_cv_save_LIBS"
21040 fi
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042/* end confdefs.h. */
21043
21044
21045#ifdef HAVE_SYS_TYPES_H
21046#include <sys/types.h>
21047#endif
21048#ifdef HAVE_SYS_TIME_H
21049#include <sys/time.h>
21050#ifdef TIME_WITH_SYS_TIME
21051#include <time.h>
21052#endif
21053#else
21054#ifdef HAVE_TIME_H
21055#include <time.h>
21056#endif
21057#endif
21058
21059int main (void)
21060{
21061
21062 struct timespec ts;
21063 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21064
21065 ;
21066 return 0;
21067}
21068
21069_ACEOF
21070if ac_fn_c_try_link "$LINENO"; then :
21071
21072 curl_cv_gclk_LIBS="$x_xlibs"
21073
21074fi
21075rm -f core conftest.err conftest.$ac_objext \
21076 conftest$ac_exeext conftest.$ac_ext
21077 fi
21078 done
21079 #
21080 LIBS="$curl_cv_save_LIBS"
21081 #
21082 case X-"$curl_cv_gclk_LIBS" in
21083 X-unknown)
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
21085$as_echo "cannot find clock_gettime" >&6; }
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21087$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21088 curl_func_clock_gettime="no"
21089 ;;
21090 X-)
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21092$as_echo "no additional lib required" >&6; }
21093 curl_func_clock_gettime="yes"
21094 ;;
21095 *)
21096 if test -z "$curl_cv_save_LIBS"; then
21097 LIBS="$curl_cv_gclk_LIBS"
21098 else
21099 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
21102$as_echo "$curl_cv_gclk_LIBS" >&6; }
21103 curl_func_clock_gettime="yes"
21104 ;;
21105 esac
21106 #
21107 if test "x$cross_compiling" != "xyes" &&
21108 test "$curl_func_clock_gettime" = "yes"; then
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
21110$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
21111 if test "$cross_compiling" = yes; then :
21112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21114as_fn_error $? "cannot run test program while cross compiling
21115See \`config.log' for more details" "$LINENO" 5; }
21116else
21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118/* end confdefs.h. */
21119
21120
21121#ifdef HAVE_STDLIB_H
21122#include <stdlib.h>
21123#endif
21124#ifdef HAVE_SYS_TYPES_H
21125#include <sys/types.h>
21126#endif
21127#ifdef HAVE_SYS_TIME_H
21128#include <sys/time.h>
21129#ifdef TIME_WITH_SYS_TIME
21130#include <time.h>
21131#endif
21132#else
21133#ifdef HAVE_TIME_H
21134#include <time.h>
21135#endif
21136#endif
21137
21138int main (void)
21139{
21140
21141 struct timespec ts;
21142 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
21143 exit(0);
21144 else
21145 exit(1);
21146
21147 ;
21148 return 0;
21149}
21150
21151_ACEOF
21152if ac_fn_c_try_run "$LINENO"; then :
21153
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21155$as_echo "yes" >&6; }
21156
21157else
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160$as_echo "no" >&6; }
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21162$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21163 curl_func_clock_gettime="no"
21164 LIBS="$curl_cv_save_LIBS"
21165
21166fi
21167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21168 conftest.$ac_objext conftest.beam conftest.$ac_ext
21169fi
21170
21171 fi
21172 #
21173 case "$curl_func_clock_gettime" in
21174 yes)
21175
21176cat >>confdefs.h <<_ACEOF
21177#define HAVE_CLOCK_GETTIME_MONOTONIC 1
21178_ACEOF
21179
21180 ;;
21181 esac
21182 #
21183 fi
21184 #
21185
21186
21187CURL_NETWORK_AND_TIME_LIBS=$LIBS
21188
21189
21190
21191clean_CPPFLAGS=$CPPFLAGS
21192clean_LDFLAGS=$LDFLAGS
21193clean_LIBS=$LIBS
21194ZLIB_LIBS=""
21195
21196# Check whether --with-zlib was given.
21197if test "${with_zlib+set}" = set; then :
21198 withval=$with_zlib; OPT_ZLIB="$withval"
21199fi
21200
21201
21202if test "$OPT_ZLIB" = "no" ; then
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
21204$as_echo "$as_me: WARNING: zlib disabled" >&2;}
21205else
21206 if test "$OPT_ZLIB" = "yes" ; then
21207 OPT_ZLIB=""
21208 fi
21209
21210 if test -z "$OPT_ZLIB" ; then
21211
21212 if test -n "$PKG_CONFIG"; then
21213 PKGCONFIG="$PKG_CONFIG"
21214 else
21215 if test -n "$ac_tool_prefix"; then
21216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21217set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21219$as_echo_n "checking for $ac_word... " >&6; }
21220if ${ac_cv_path_PKGCONFIG+:} false; then :
21221 $as_echo_n "(cached) " >&6
21222else
21223 case $PKGCONFIG in
21224 [\\/]* | ?:[\\/]*)
21225 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21226 ;;
21227 *)
21228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21229as_dummy="$PATH:/usr/bin:/usr/local/bin"
21230for as_dir in $as_dummy
21231do
21232 IFS=$as_save_IFS
21233 test -z "$as_dir" && as_dir=.
21234 for ac_exec_ext in '' $ac_executable_extensions; do
21235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21236 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21238 break 2
21239 fi
21240done
21241 done
21242IFS=$as_save_IFS
21243
21244 ;;
21245esac
21246fi
21247PKGCONFIG=$ac_cv_path_PKGCONFIG
21248if test -n "$PKGCONFIG"; then
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21250$as_echo "$PKGCONFIG" >&6; }
21251else
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253$as_echo "no" >&6; }
21254fi
21255
21256
21257fi
21258if test -z "$ac_cv_path_PKGCONFIG"; then
21259 ac_pt_PKGCONFIG=$PKGCONFIG
21260 # Extract the first word of "pkg-config", so it can be a program name with args.
21261set dummy pkg-config; ac_word=$2
21262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21263$as_echo_n "checking for $ac_word... " >&6; }
21264if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21265 $as_echo_n "(cached) " >&6
21266else
21267 case $ac_pt_PKGCONFIG in
21268 [\\/]* | ?:[\\/]*)
21269 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21270 ;;
21271 *)
21272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21273as_dummy="$PATH:/usr/bin:/usr/local/bin"
21274for as_dir in $as_dummy
21275do
21276 IFS=$as_save_IFS
21277 test -z "$as_dir" && as_dir=.
21278 for ac_exec_ext in '' $ac_executable_extensions; do
21279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21280 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21282 break 2
21283 fi
21284done
21285 done
21286IFS=$as_save_IFS
21287
21288 ;;
21289esac
21290fi
21291ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21292if test -n "$ac_pt_PKGCONFIG"; then
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21294$as_echo "$ac_pt_PKGCONFIG" >&6; }
21295else
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21297$as_echo "no" >&6; }
21298fi
21299
21300 if test "x$ac_pt_PKGCONFIG" = x; then
21301 PKGCONFIG="no"
21302 else
21303 case $cross_compiling:$ac_tool_warned in
21304yes:)
21305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21307ac_tool_warned=yes ;;
21308esac
21309 PKGCONFIG=$ac_pt_PKGCONFIG
21310 fi
21311else
21312 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21313fi
21314
21315 fi
21316
21317 if test "x$PKGCONFIG" != "xno"; then
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
21319$as_echo_n "checking for zlib options with pkg-config... " >&6; }
21320 itexists=`
21321 if test -n ""; then
21322 PKG_CONFIG_LIBDIR=""
21323 export PKG_CONFIG_LIBDIR
21324 fi
21325 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
21326
21327 if test -z "$itexists"; then
21328 PKGCONFIG="no"
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21330$as_echo "no" >&6; }
21331 else
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21333$as_echo "found" >&6; }
21334 fi
21335 fi
21336
21337
21338 if test "$PKGCONFIG" != "no" ; then
21339 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
21340 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
21341 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
21342 OPT_ZLIB=""
21343 HAVE_LIBZ="1"
21344 fi
21345
21346 if test -z "$HAVE_LIBZ"; then
21347
21348
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
21350$as_echo_n "checking for inflateEnd in -lz... " >&6; }
21351if ${ac_cv_lib_z_inflateEnd+:} false; then :
21352 $as_echo_n "(cached) " >&6
21353else
21354 ac_check_lib_save_LIBS=$LIBS
21355LIBS="-lz $LIBS"
21356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357/* end confdefs.h. */
21358
21359
21360#ifdef __cplusplus
21361extern "C"
21362#endif
21363char inflateEnd ();
21364int main (void)
21365{
21366return inflateEnd ();
21367 ;
21368 return 0;
21369}
21370_ACEOF
21371if ac_fn_c_try_link "$LINENO"; then :
21372 ac_cv_lib_z_inflateEnd=yes
21373else
21374 ac_cv_lib_z_inflateEnd=no
21375fi
21376rm -f core conftest.err conftest.$ac_objext \
21377 conftest$ac_exeext conftest.$ac_ext
21378LIBS=$ac_check_lib_save_LIBS
21379fi
21380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
21381$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
21382if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
21383 HAVE_LIBZ="1"
21384 LIBS="-lz $LIBS"
21385else
21386 OPT_ZLIB="/usr/local"
21387fi
21388
21389 fi
21390 fi
21391
21392 if test -n "$OPT_ZLIB"; then
21393 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
21394 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
21395 fi
21396
21397 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21398if test "x$ac_cv_header_zlib_h" = xyes; then :
21399
21400 HAVE_ZLIB_H="1"
21401 if test "$HAVE_LIBZ" != "1"; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
21403$as_echo_n "checking for gzread in -lz... " >&6; }
21404if ${ac_cv_lib_z_gzread+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406else
21407 ac_check_lib_save_LIBS=$LIBS
21408LIBS="-lz $LIBS"
21409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410/* end confdefs.h. */
21411
21412
21413#ifdef __cplusplus
21414extern "C"
21415#endif
21416char gzread ();
21417int main (void)
21418{
21419return gzread ();
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424if ac_fn_c_try_link "$LINENO"; then :
21425 ac_cv_lib_z_gzread=yes
21426else
21427 ac_cv_lib_z_gzread=no
21428fi
21429rm -f core conftest.err conftest.$ac_objext \
21430 conftest$ac_exeext conftest.$ac_ext
21431LIBS=$ac_check_lib_save_LIBS
21432fi
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
21434$as_echo "$ac_cv_lib_z_gzread" >&6; }
21435if test "x$ac_cv_lib_z_gzread" = xyes; then :
21436
21437 HAVE_LIBZ="1"
21438 LIBS="-lz $LIBS"
21439
21440else
21441 CPPFLAGS=$clean_CPPFLAGS
21442 LDFLAGS=$clean_LDFLAGS
21443fi
21444
21445 fi
21446
21447else
21448
21449 CPPFLAGS=$clean_CPPFLAGS
21450 LDFLAGS=$clean_LDFLAGS
21451
21452fi
21453
21454
21455
21456 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
21457 then
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
21459$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
21460 HAVE_LIBZ=""
21461 CPPFLAGS=$clean_CPPFLAGS
21462 LDFLAGS=$clean_LDFLAGS
21463 LIBS=$clean_LIBS
21464 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
21465 then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
21467$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
21468 CPPFLAGS=$clean_CPPFLAGS
21469 LDFLAGS=$clean_LDFLAGS
21470 LIBS=$clean_LIBS
21471 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
21472 then
21473
21474
21475$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
21476
21477
21478$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21479
21480
21481 ZLIB_LIBS="-lz"
21482 LIBS="-lz $clean_LIBS"
21483
21484 AMFIXLIB="1"
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
21486$as_echo "$as_me: found both libz and libz.h header" >&6;}
21487 curl_zlib_msg="enabled"
21488 fi
21489fi
21490
21491 if test x"$AMFIXLIB" = x1; then
21492 HAVE_LIBZ_TRUE=
21493 HAVE_LIBZ_FALSE='#'
21494else
21495 HAVE_LIBZ_TRUE='#'
21496 HAVE_LIBZ_FALSE=
21497fi
21498
21499
21500
21501
21502LDAPLIBNAME=""
21503
21504# Check whether --with-ldap-lib was given.
21505if test "${with_ldap_lib+set}" = set; then :
21506 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21507fi
21508
21509
21510LBERLIBNAME=""
21511
21512# Check whether --with-lber-lib was given.
21513if test "${with_lber_lib+set}" = set; then :
21514 withval=$with_lber_lib; LBERLIBNAME="$withval"
21515fi
21516
21517
21518if test x$CURL_DISABLE_LDAP != x1 ; then
21519
21520
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21522$as_echo_n "checking for lber.h... " >&6; }
21523if ${curl_cv_header_lber_h+:} false; then :
21524 $as_echo_n "(cached) " >&6
21525else
21526
21527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528/* end confdefs.h. */
21529
21530
21531#undef inline
21532#ifdef HAVE_WINDOWS_H
21533#ifndef WIN32_LEAN_AND_MEAN
21534#define WIN32_LEAN_AND_MEAN
21535#endif
21536#include <windows.h>
21537#else
21538#ifdef HAVE_SYS_TYPES_H
21539#include <sys/types.h>
21540#endif
21541#endif
21542#ifndef NULL
21543#define NULL (void *)0
21544#endif
21545#include <lber.h>
21546
21547int main (void)
21548{
21549
21550 BerValue *bvp = NULL;
21551 BerElement *bep = ber_init(bvp);
21552 ber_free(bep, 1);
21553
21554 ;
21555 return 0;
21556}
21557
21558_ACEOF
21559if ac_fn_c_try_compile "$LINENO"; then :
21560
21561 curl_cv_header_lber_h="yes"
21562
21563else
21564
21565 curl_cv_header_lber_h="no"
21566
21567fi
21568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569
21570fi
21571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21572$as_echo "$curl_cv_header_lber_h" >&6; }
21573 if test "$curl_cv_header_lber_h" = "yes"; then
21574
21575cat >>confdefs.h <<_ACEOF
21576#define HAVE_LBER_H 1
21577_ACEOF
21578
21579 #
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581/* end confdefs.h. */
21582
21583
21584#undef inline
21585#ifdef HAVE_WINDOWS_H
21586#ifndef WIN32_LEAN_AND_MEAN
21587#define WIN32_LEAN_AND_MEAN
21588#endif
21589#include <windows.h>
21590#else
21591#ifdef HAVE_SYS_TYPES_H
21592#include <sys/types.h>
21593#endif
21594#endif
21595#ifndef NULL
21596#define NULL (void *)0
21597#endif
21598#ifndef LDAP_DEPRECATED
21599#define LDAP_DEPRECATED 1
21600#endif
21601#include <ldap.h>
21602
21603int main (void)
21604{
21605
21606 BerValue *bvp = NULL;
21607 BerElement *bep = ber_init(bvp);
21608 ber_free(bep, 1);
21609
21610 ;
21611 return 0;
21612}
21613
21614_ACEOF
21615if ac_fn_c_try_compile "$LINENO"; then :
21616
21617 curl_cv_need_header_lber_h="no"
21618
21619else
21620
21621 curl_cv_need_header_lber_h="yes"
21622
21623fi
21624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 #
21626 case "$curl_cv_need_header_lber_h" in
21627 yes)
21628
21629cat >>confdefs.h <<_ACEOF
21630#define NEED_LBER_H 1
21631_ACEOF
21632
21633 ;;
21634 esac
21635 fi
21636
21637
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21639$as_echo_n "checking for ldap.h... " >&6; }
21640if ${curl_cv_header_ldap_h+:} false; then :
21641 $as_echo_n "(cached) " >&6
21642else
21643
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645/* end confdefs.h. */
21646
21647
21648#undef inline
21649#ifdef HAVE_WINDOWS_H
21650#ifndef WIN32_LEAN_AND_MEAN
21651#define WIN32_LEAN_AND_MEAN
21652#endif
21653#include <windows.h>
21654#else
21655#ifdef HAVE_SYS_TYPES_H
21656#include <sys/types.h>
21657#endif
21658#endif
21659#ifndef LDAP_DEPRECATED
21660#define LDAP_DEPRECATED 1
21661#endif
21662#ifdef NEED_LBER_H
21663#include <lber.h>
21664#endif
21665#include <ldap.h>
21666
21667int main (void)
21668{
21669
21670 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21671 int res = ldap_unbind(ldp);
21672
21673 ;
21674 return 0;
21675}
21676
21677_ACEOF
21678if ac_fn_c_try_compile "$LINENO"; then :
21679
21680 curl_cv_header_ldap_h="yes"
21681
21682else
21683
21684 curl_cv_header_ldap_h="no"
21685
21686fi
21687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688
21689fi
21690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21691$as_echo "$curl_cv_header_ldap_h" >&6; }
21692 case "$curl_cv_header_ldap_h" in
21693 yes)
21694
21695cat >>confdefs.h <<_ACEOF
21696#define HAVE_LDAP_H 1
21697_ACEOF
21698
21699 ;;
21700 esac
21701
21702
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21704$as_echo_n "checking for ldapssl.h... " >&6; }
21705if ${curl_cv_header_ldapssl_h+:} false; then :
21706 $as_echo_n "(cached) " >&6
21707else
21708
21709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21710/* end confdefs.h. */
21711
21712
21713#undef inline
21714#ifdef HAVE_WINDOWS_H
21715#ifndef WIN32_LEAN_AND_MEAN
21716#define WIN32_LEAN_AND_MEAN
21717#endif
21718#include <windows.h>
21719#else
21720#ifdef HAVE_SYS_TYPES_H
21721#include <sys/types.h>
21722#endif
21723#endif
21724#ifndef NULL
21725#define NULL (void *)0
21726#endif
21727#ifndef LDAP_DEPRECATED
21728#define LDAP_DEPRECATED 1
21729#endif
21730#ifdef NEED_LBER_H
21731#include <lber.h>
21732#endif
21733#ifdef HAVE_LDAP_H
21734#include <ldap.h>
21735#endif
21736#include <ldapssl.h>
21737
21738int main (void)
21739{
21740
21741 char *cert_label = NULL;
21742 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21743
21744 ;
21745 return 0;
21746}
21747
21748_ACEOF
21749if ac_fn_c_try_compile "$LINENO"; then :
21750
21751 curl_cv_header_ldapssl_h="yes"
21752
21753else
21754
21755 curl_cv_header_ldapssl_h="no"
21756
21757fi
21758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759
21760fi
21761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21762$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21763 case "$curl_cv_header_ldapssl_h" in
21764 yes)
21765
21766cat >>confdefs.h <<_ACEOF
21767#define HAVE_LDAPSSL_H 1
21768_ACEOF
21769
21770 ;;
21771 esac
21772
21773
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21775$as_echo_n "checking for ldap_ssl.h... " >&6; }
21776if ${curl_cv_header_ldap_ssl_h+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778else
21779
21780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781/* end confdefs.h. */
21782
21783
21784#undef inline
21785#ifdef HAVE_WINDOWS_H
21786#ifndef WIN32_LEAN_AND_MEAN
21787#define WIN32_LEAN_AND_MEAN
21788#endif
21789#include <windows.h>
21790#else
21791#ifdef HAVE_SYS_TYPES_H
21792#include <sys/types.h>
21793#endif
21794#endif
21795#ifndef LDAP_DEPRECATED
21796#define LDAP_DEPRECATED 1
21797#endif
21798#ifdef NEED_LBER_H
21799#include <lber.h>
21800#endif
21801#ifdef HAVE_LDAP_H
21802#include <ldap.h>
21803#endif
21804#include <ldap_ssl.h>
21805
21806int main (void)
21807{
21808
21809 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21810
21811 ;
21812 return 0;
21813}
21814
21815_ACEOF
21816if ac_fn_c_try_compile "$LINENO"; then :
21817
21818 curl_cv_header_ldap_ssl_h="yes"
21819
21820else
21821
21822 curl_cv_header_ldap_ssl_h="no"
21823
21824fi
21825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826
21827fi
21828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21829$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21830 case "$curl_cv_header_ldap_ssl_h" in
21831 yes)
21832
21833cat >>confdefs.h <<_ACEOF
21834#define HAVE_LDAP_SSL_H 1
21835_ACEOF
21836
21837 ;;
21838 esac
21839
21840
21841 if test -z "$LDAPLIBNAME" ; then
21842 if test "$curl_cv_native_windows" = "yes"; then
21843 LDAPLIBNAME="wldap32"
21844 LBERLIBNAME="no"
21845 fi
21846 fi
21847
21848 if test "$LDAPLIBNAME" ; then
21849 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21851$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21852if eval \${$as_ac_Lib+:} false; then :
21853 $as_echo_n "(cached) " >&6
21854else
21855 ac_check_lib_save_LIBS=$LIBS
21856LIBS="-l"$LDAPLIBNAME" $LIBS"
21857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858/* end confdefs.h. */
21859
21860
21861#ifdef __cplusplus
21862extern "C"
21863#endif
21864char ldap_init ();
21865int main (void)
21866{
21867return ldap_init ();
21868 ;
21869 return 0;
21870}
21871_ACEOF
21872if ac_fn_c_try_link "$LINENO"; then :
21873 eval "$as_ac_Lib=yes"
21874else
21875 eval "$as_ac_Lib=no"
21876fi
21877rm -f core conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21879LIBS=$ac_check_lib_save_LIBS
21880fi
21881eval ac_res=\$$as_ac_Lib
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21883$as_echo "$ac_res" >&6; }
21884if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21885 cat >>confdefs.h <<_ACEOF
21886#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21887_ACEOF
21888
21889 LIBS="-l"$LDAPLIBNAME" $LIBS"
21890
21891else
21892
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21894$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21895
21896$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21897
21898 CURL_DISABLE_LDAP=1
21899
21900
21901$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21902
21903 CURL_DISABLE_LDAPS=1
21904
21905fi
21906
21907 else
21908
21909 #
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21911$as_echo_n "checking for LDAP libraries... " >&6; }
21912 #
21913 u_libs=""
21914 #
21915
21916 #
21917 curl_cv_save_LIBS="$LIBS"
21918 curl_cv_ldap_LIBS="unknown"
21919 #
21920 for x_nlibs in '' "$u_libs" \
21921 '-lldap' \
21922 '-lldap -llber' \
21923 '-llber -lldap' \
21924 '-lldapssl -lldapx -lldapsdk' \
21925 '-lldapsdk -lldapx -lldapssl' ; do
21926 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21927 if test -z "$x_nlibs"; then
21928 LIBS="$curl_cv_save_LIBS"
21929 else
21930 LIBS="$x_nlibs $curl_cv_save_LIBS"
21931 fi
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933/* end confdefs.h. */
21934
21935
21936#undef inline
21937#ifdef HAVE_WINDOWS_H
21938#ifndef WIN32_LEAN_AND_MEAN
21939#define WIN32_LEAN_AND_MEAN
21940#endif
21941#include <windows.h>
21942#else
21943#ifdef HAVE_SYS_TYPES_H
21944#include <sys/types.h>
21945#endif
21946#endif
21947#ifndef NULL
21948#define NULL (void *)0
21949#endif
21950#ifndef LDAP_DEPRECATED
21951#define LDAP_DEPRECATED 1
21952#endif
21953#ifdef NEED_LBER_H
21954#include <lber.h>
21955#endif
21956#ifdef HAVE_LDAP_H
21957#include <ldap.h>
21958#endif
21959
21960int main (void)
21961{
21962
21963 BerValue *bvp = NULL;
21964 BerElement *bep = ber_init(bvp);
21965 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21966 int res = ldap_unbind(ldp);
21967 ber_free(bep, 1);
21968
21969 ;
21970 return 0;
21971}
21972
21973_ACEOF
21974if ac_fn_c_try_link "$LINENO"; then :
21975
21976 curl_cv_ldap_LIBS="$x_nlibs"
21977
21978fi
21979rm -f core conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21981 fi
21982 done
21983 #
21984 LIBS="$curl_cv_save_LIBS"
21985 #
21986 case X-"$curl_cv_ldap_LIBS" in
21987 X-unknown)
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21989$as_echo "cannot find LDAP libraries" >&6; }
21990 ;;
21991 X-)
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21993$as_echo "no additional lib required" >&6; }
21994 ;;
21995 *)
21996 if test -z "$curl_cv_save_LIBS"; then
21997 LIBS="$curl_cv_ldap_LIBS"
21998 else
21999 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
22000 fi
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
22002$as_echo "$curl_cv_ldap_LIBS" >&6; }
22003 ;;
22004 esac
22005 #
22006
22007 case X-"$curl_cv_ldap_LIBS" in
22008 X-unknown)
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
22010$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
22011
22012$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22013
22014 CURL_DISABLE_LDAP=1
22015
22016
22017$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22018
22019 CURL_DISABLE_LDAPS=1
22020
22021 ;;
22022 esac
22023 fi
22024fi
22025
22026if test x$CURL_DISABLE_LDAP != x1 ; then
22027
22028 if test "$LBERLIBNAME" ; then
22029 if test "$LBERLIBNAME" != "no" ; then
22030 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
22031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
22032$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
22033if eval \${$as_ac_Lib+:} false; then :
22034 $as_echo_n "(cached) " >&6
22035else
22036 ac_check_lib_save_LIBS=$LIBS
22037LIBS="-l"$LBERLIBNAME" $LIBS"
22038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039/* end confdefs.h. */
22040
22041
22042#ifdef __cplusplus
22043extern "C"
22044#endif
22045char ber_free ();
22046int main (void)
22047{
22048return ber_free ();
22049 ;
22050 return 0;
22051}
22052_ACEOF
22053if ac_fn_c_try_link "$LINENO"; then :
22054 eval "$as_ac_Lib=yes"
22055else
22056 eval "$as_ac_Lib=no"
22057fi
22058rm -f core conftest.err conftest.$ac_objext \
22059 conftest$ac_exeext conftest.$ac_ext
22060LIBS=$ac_check_lib_save_LIBS
22061fi
22062eval ac_res=\$$as_ac_Lib
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22064$as_echo "$ac_res" >&6; }
22065if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22066 cat >>confdefs.h <<_ACEOF
22067#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
22068_ACEOF
22069
22070 LIBS="-l"$LBERLIBNAME" $LIBS"
22071
22072else
22073
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
22075$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
22076
22077$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22078
22079 CURL_DISABLE_LDAP=1
22080
22081
22082$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22083
22084 CURL_DISABLE_LDAPS=1
22085
22086fi
22087
22088 fi
22089 fi
22090fi
22091
22092if test x$CURL_DISABLE_LDAP != x1 ; then
22093 for ac_func in ldap_url_parse ldap_init_fd
22094do :
22095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22097if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22098 cat >>confdefs.h <<_ACEOF
22099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22100_ACEOF
22101
22102fi
22103done
22104
22105
22106 if test "$LDAPLIBNAME" = "wldap32"; then
22107 curl_ldap_msg="enabled (winldap)"
22108
22109$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
22110
22111 else
22112 curl_ldap_msg="enabled (OpenLDAP)"
22113 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
22114
22115$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
22116
22117 USE_OPENLDAP=1
22118
22119 fi
22120 fi
22121fi
22122
22123if test x$CURL_DISABLE_LDAPS != x1 ; then
22124 curl_ldaps_msg="enabled"
22125fi
22126
22127
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
22129$as_echo_n "checking whether to enable IPv6... " >&6; }
22130# Check whether --enable-ipv6 was given.
22131if test "${enable_ipv6+set}" = set; then :
22132 enableval=$enable_ipv6; case "$enableval" in
22133 no)
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22135$as_echo "no" >&6; }
22136 ipv6=no
22137 ;;
22138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22139$as_echo "yes" >&6; }
22140 ipv6=yes
22141 ;;
22142 esac
22143else
22144 if test "$cross_compiling" = yes; then :
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22146$as_echo "yes" >&6; }
22147 ipv6=yes
22148
22149else
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151/* end confdefs.h. */
22152 /* is AF_INET6 available? */
22153#include <sys/types.h>
22154#ifdef HAVE_WINSOCK2_H
22155#include <winsock2.h>
22156#else
22157#include <sys/socket.h>
22158#endif
22159#include <stdlib.h> /* for exit() */
22160main()
22161{
22162 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22163 exit(1);
22164 else
22165 exit(0);
22166}
22167
22168_ACEOF
22169if ac_fn_c_try_run "$LINENO"; then :
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22171$as_echo "yes" >&6; }
22172 ipv6=yes
22173else
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175$as_echo "no" >&6; }
22176 ipv6=no
22177fi
22178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22179 conftest.$ac_objext conftest.beam conftest.$ac_ext
22180fi
22181
22182fi
22183
22184
22185if test "$ipv6" = "yes"; then
22186 curl_ipv6_msg="enabled"
22187fi
22188
22189# Check if struct sockaddr_in6 have sin6_scope_id member
22190if test "$ipv6" = yes; then
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
22192$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194/* end confdefs.h. */
22195
22196#include <sys/types.h>
22197#ifdef HAVE_WINSOCK2_H
22198#include <winsock2.h>
22199#include <ws2tcpip.h>
22200#else
22201#include <netinet/in.h>
22202#endif
22203int main (void)
22204{
22205struct sockaddr_in6 s; s.sin6_scope_id = 0;
22206 ;
22207 return 0;
22208}
22209_ACEOF
22210if ac_fn_c_try_compile "$LINENO"; then :
22211 have_sin6_scope_id=yes
22212fi
22213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 if test "$have_sin6_scope_id" = yes; then
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22216$as_echo "yes" >&6; }
22217
22218$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
22219
22220 else
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22222$as_echo "no" >&6; }
22223 fi
22224fi
22225
22226
22227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
22228$as_echo_n "checking if argv can be written to... " >&6; }
22229if test "$cross_compiling" = yes; then :
22230
22231 curl_cv_writable_argv=cross
22232
22233else
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235/* end confdefs.h. */
22236
22237
22238int main(int argc, char ** argv) {
22239 argv[0][0] = ' ';
22240 return (argv[0][0] == ' ')?0:1;
22241}
22242
22243
22244_ACEOF
22245if ac_fn_c_try_run "$LINENO"; then :
22246
22247 curl_cv_writable_argv=yes
22248
22249else
22250
22251 curl_cv_writable_argv=no
22252
22253fi
22254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22255 conftest.$ac_objext conftest.beam conftest.$ac_ext
22256fi
22257
22258case $curl_cv_writable_argv in
22259yes)
22260
22261$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22262
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22264$as_echo "yes" >&6; }
22265 ;;
22266no)
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268$as_echo "no" >&6; }
22269 ;;
22270*)
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22272$as_echo "no" >&6; }
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22274$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22275 ;;
22276esac
22277
22278
22279
22280GSSAPI_ROOT="/usr"
22281
22282# Check whether --with-gssapi-includes was given.
22283if test "${with_gssapi_includes+set}" = set; then :
22284 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22285 want_gss="yes"
22286
22287fi
22288
22289
22290
22291# Check whether --with-gssapi-libs was given.
22292if test "${with_gssapi_libs+set}" = set; then :
22293 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22294 want_gss="yes"
22295
22296fi
22297
22298
22299
22300# Check whether --with-gssapi was given.
22301if test "${with_gssapi+set}" = set; then :
22302 withval=$with_gssapi;
22303 GSSAPI_ROOT="$withval"
22304 if test x"$GSSAPI_ROOT" != xno; then
22305 want_gss="yes"
22306 if test x"$GSSAPI_ROOT" = xyes; then
22307 GSSAPI_ROOT="/usr"
22308 fi
22309 fi
22310
22311fi
22312
22313
22314: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22315
22316save_CPPFLAGS="$CPPFLAGS"
22317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22318$as_echo_n "checking if GSS-API support is requested... " >&6; }
22319if test x"$want_gss" = xyes; then
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22321$as_echo "yes" >&6; }
22322
22323 if test -z "$GSSAPI_INCS"; then
22324 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22325 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22326 elif test -f "$KRB5CONFIG"; then
22327 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22328 elif test "$GSSAPI_ROOT" != "yes"; then
22329 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22330 fi
22331 fi
22332
22333 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22334
22335 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22336if test "x$ac_cv_header_gss_h" = xyes; then :
22337
22338
22339$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22340
22341 gnu_gss=yes
22342
22343else
22344
22345 for ac_header in gssapi/gssapi.h
22346do :
22347 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22348if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22349 cat >>confdefs.h <<_ACEOF
22350#define HAVE_GSSAPI_GSSAPI_H 1
22351_ACEOF
22352
22353else
22354 not_mit=1
22355fi
22356
22357done
22358
22359 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22360do :
22361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22362ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22363$ac_includes_default
22364#ifdef HAVE_GSSAPI_GSSAPI_H
22365#include <gssapi/gssapi.h>
22366#endif
22367
22368"
22369if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22370 cat >>confdefs.h <<_ACEOF
22371#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22372_ACEOF
22373
22374else
22375 not_mit=1
22376fi
22377
22378done
22379
22380 if test "x$not_mit" = "x1"; then
22381 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22382if test "x$ac_cv_header_gssapi_h" = xyes; then :
22383
22384
22385$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22386
22387
22388else
22389
22390 want_gss=no
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22392$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22393
22394
22395fi
22396
22397
22398 else
22399
22400$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22401
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22403$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405/* end confdefs.h. */
22406
22407
22408#include <gssapi/gssapi.h>
22409#include <gssapi/gssapi_generic.h>
22410#include <gssapi/gssapi_krb5.h>
22411
22412int main (void)
22413{
22414
22415 gss_import_name(
22416 (OM_uint32 *)0,
22417 (gss_buffer_t)0,
22418 GSS_C_NT_HOSTBASED_SERVICE,
22419 (gss_name_t *)0);
22420
22421 ;
22422 return 0;
22423}
22424
22425_ACEOF
22426if ac_fn_c_try_compile "$LINENO"; then :
22427
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22429$as_echo "yes" >&6; }
22430
22431else
22432
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22434$as_echo "no" >&6; }
22435
22436$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22437
22438
22439fi
22440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 fi
22442
22443
22444fi
22445
22446
22447else
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22449$as_echo "no" >&6; }
22450fi
22451if test x"$want_gss" = xyes; then
22452
22453$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22454
22455 HAVE_GSSAPI=1
22456 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22457
22458 if test -n "$gnu_gss"; then
22459 curl_gss_msg="enabled (GNU GSS)"
22460 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22461 LIBS="-lgss $LIBS"
22462 elif test -z "$GSSAPI_LIB_DIR"; then
22463 case $host in
22464 *-*-darwin*)
22465 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22466 ;;
22467 *)
22468 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22469 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22470 LIBS="$gss_libs $LIBS"
22471 elif test -f "$KRB5CONFIG"; then
22472 gss_libs=`$KRB5CONFIG --libs gssapi`
22473 LIBS="$gss_libs $LIBS"
22474 else
22475 case $host in
22476 *-hp-hpux*)
22477 gss_libname="gss"
22478 ;;
22479 *)
22480 gss_libname="gssapi"
22481 ;;
22482 esac
22483
22484 if test "$GSSAPI_ROOT" != "yes"; then
22485 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22486 LIBS="-l$gss_libname $LIBS"
22487 else
22488 LIBS="-l$gss_libname $LIBS"
22489 fi
22490 fi
22491 ;;
22492 esac
22493 else
22494 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22495 case $host in
22496 *-hp-hpux*)
22497 LIBS="-lgss $LIBS"
22498 ;;
22499 *)
22500 LIBS="-lgssapi $LIBS"
22501 ;;
22502 esac
22503 fi
22504else
22505 CPPFLAGS="$save_CPPFLAGS"
22506fi
22507
22508
22509OPT_WINSSL=no
22510
22511# Check whether --with-winssl was given.
22512if test "${with_winssl+set}" = set; then :
22513 withval=$with_winssl; OPT_WINSSL=$withval
22514fi
22515
22516
22517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22518$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22519if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22520 if test "x$OPT_WINSSL" != "xno" &&
22521 test "x$curl_cv_native_windows" = "xyes"; then
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22523$as_echo "yes" >&6; }
22524
22525$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22526
22527 USE_SCHANNEL=1
22528
22529 curl_ssl_msg="enabled (Windows-native)"
22530 WINSSL_ENABLED=1
22531 # --with-winssl implies --enable-sspi
22532
22533$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22534
22535 USE_WINDOWS_SSPI=1
22536
22537 curl_sspi_msg="enabled"
22538 LIBS="-lcrypt32 $LIBS"
22539 else
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541$as_echo "no" >&6; }
22542 fi
22543else
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22545$as_echo "no" >&6; }
22546fi
22547
22548OPT_DARWINSSL=no
22549
22550# Check whether --with-darwinssl was given.
22551if test "${with_darwinssl+set}" = set; then :
22552 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22553fi
22554
22555
22556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22557$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22558if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22559 if test "x$OPT_DARWINSSL" != "xno" &&
22560 test -d "/System/Library/Frameworks/Security.framework"; then
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22562$as_echo "yes" >&6; }
22563
22564$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22565
22566 USE_DARWINSSL=1
22567
22568 curl_ssl_msg="enabled (Apple OS-native)"
22569 DARWINSSL_ENABLED=1
22570 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22571 else
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22573$as_echo "no" >&6; }
22574 fi
22575else
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22577$as_echo "no" >&6; }
22578fi
22579
22580
22581OPT_SSL=off
22582ca="no"
22583
22584# Check whether --with-ssl was given.
22585if test "${with_ssl+set}" = set; then :
22586 withval=$with_ssl; OPT_SSL=$withval
22587fi
22588
22589
22590if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22591 CLEANLDFLAGS="$LDFLAGS"
22592 CLEANCPPFLAGS="$CPPFLAGS"
22593 CLEANLIBS="$LIBS"
22594
22595 case $host in
22596 *-*-msys* | *-*-mingw*)
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22598$as_echo_n "checking for gdi32... " >&6; }
22599 my_ac_save_LIBS=$LIBS
22600 LIBS="-lgdi32 $LIBS"
22601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22602/* end confdefs.h. */
22603#include <windef.h>
22604 #include <wingdi.h>
22605int main (void)
22606{
22607GdiFlush();
22608 ;
22609 return 0;
22610}
22611_ACEOF
22612if ac_fn_c_try_link "$LINENO"; then :
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22614$as_echo "yes" >&6; }
22615else
22616 LIBS=$my_ac_save_LIBS
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22618$as_echo "no" >&6; }
22619
22620fi
22621rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623 ;;
22624 esac
22625
22626 case "$OPT_SSL" in
22627 yes)
22628 if test x$cross_compiling != xyes; then
22629 PKGTEST="yes"
22630 fi
22631 PREFIX_OPENSSL=/usr/local/ssl
22632 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22633 ;;
22634 off)
22635 if test x$cross_compiling != xyes; then
22636 PKGTEST="yes"
22637 fi
22638 PREFIX_OPENSSL=
22639 ;;
22640 *)
22641 PKGTEST="no"
22642 PREFIX_OPENSSL=$OPT_SSL
22643
22644 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22646$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22647 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22648 PKGTEST="yes"
22649 fi
22650
22651 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22652 if test "$PREFIX_OPENSSL" != "/usr" ; then
22653 SSL_LDFLAGS="-L$LIB_OPENSSL"
22654 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22655 fi
22656 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22657 ;;
22658 esac
22659
22660 if test "$PKGTEST" = "yes"; then
22661
22662
22663 if test -n "$PKG_CONFIG"; then
22664 PKGCONFIG="$PKG_CONFIG"
22665 else
22666 if test -n "$ac_tool_prefix"; then
22667 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22668set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22670$as_echo_n "checking for $ac_word... " >&6; }
22671if ${ac_cv_path_PKGCONFIG+:} false; then :
22672 $as_echo_n "(cached) " >&6
22673else
22674 case $PKGCONFIG in
22675 [\\/]* | ?:[\\/]*)
22676 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22677 ;;
22678 *)
22679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680as_dummy="$PATH:/usr/bin:/usr/local/bin"
22681for as_dir in $as_dummy
22682do
22683 IFS=$as_save_IFS
22684 test -z "$as_dir" && as_dir=.
22685 for ac_exec_ext in '' $ac_executable_extensions; do
22686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22687 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22689 break 2
22690 fi
22691done
22692 done
22693IFS=$as_save_IFS
22694
22695 ;;
22696esac
22697fi
22698PKGCONFIG=$ac_cv_path_PKGCONFIG
22699if test -n "$PKGCONFIG"; then
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22701$as_echo "$PKGCONFIG" >&6; }
22702else
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22704$as_echo "no" >&6; }
22705fi
22706
22707
22708fi
22709if test -z "$ac_cv_path_PKGCONFIG"; then
22710 ac_pt_PKGCONFIG=$PKGCONFIG
22711 # Extract the first word of "pkg-config", so it can be a program name with args.
22712set dummy pkg-config; ac_word=$2
22713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22714$as_echo_n "checking for $ac_word... " >&6; }
22715if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22716 $as_echo_n "(cached) " >&6
22717else
22718 case $ac_pt_PKGCONFIG in
22719 [\\/]* | ?:[\\/]*)
22720 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22721 ;;
22722 *)
22723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22724as_dummy="$PATH:/usr/bin:/usr/local/bin"
22725for as_dir in $as_dummy
22726do
22727 IFS=$as_save_IFS
22728 test -z "$as_dir" && as_dir=.
22729 for ac_exec_ext in '' $ac_executable_extensions; do
22730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22731 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22733 break 2
22734 fi
22735done
22736 done
22737IFS=$as_save_IFS
22738
22739 ;;
22740esac
22741fi
22742ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22743if test -n "$ac_pt_PKGCONFIG"; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22745$as_echo "$ac_pt_PKGCONFIG" >&6; }
22746else
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22748$as_echo "no" >&6; }
22749fi
22750
22751 if test "x$ac_pt_PKGCONFIG" = x; then
22752 PKGCONFIG="no"
22753 else
22754 case $cross_compiling:$ac_tool_warned in
22755yes:)
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22758ac_tool_warned=yes ;;
22759esac
22760 PKGCONFIG=$ac_pt_PKGCONFIG
22761 fi
22762else
22763 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22764fi
22765
22766 fi
22767
22768 if test "x$PKGCONFIG" != "xno"; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22770$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22771 itexists=`
22772 if test -n "$OPENSSL_PCDIR"; then
22773 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22774 export PKG_CONFIG_LIBDIR
22775 fi
22776 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22777
22778 if test -z "$itexists"; then
22779 PKGCONFIG="no"
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22781$as_echo "no" >&6; }
22782 else
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22784$as_echo "found" >&6; }
22785 fi
22786 fi
22787
22788
22789 if test "$PKGCONFIG" != "no" ; then
22790 SSL_LIBS=`
22791 if test -n "$OPENSSL_PCDIR"; then
22792 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22793 export PKG_CONFIG_LIBDIR
22794 fi
22795 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22796
22797 SSL_LDFLAGS=`
22798 if test -n "$OPENSSL_PCDIR"; then
22799 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22800 export PKG_CONFIG_LIBDIR
22801 fi
22802 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22803
22804 SSL_CPPFLAGS=`
22805 if test -n "$OPENSSL_PCDIR"; then
22806 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22807 export PKG_CONFIG_LIBDIR
22808 fi
22809 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22810
22811
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22813$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22815$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22817$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22818
22819 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22820
22821 LIBS="$SSL_LIBS $LIBS"
22822 fi
22823 fi
22824
22825 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22826 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22827
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22829$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22830if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22831 $as_echo_n "(cached) " >&6
22832else
22833 ac_check_lib_save_LIBS=$LIBS
22834LIBS="-lcrypto $LIBS"
22835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836/* end confdefs.h. */
22837
22838
22839#ifdef __cplusplus
22840extern "C"
22841#endif
22842char HMAC_Update ();
22843int main (void)
22844{
22845return HMAC_Update ();
22846 ;
22847 return 0;
22848}
22849_ACEOF
22850if ac_fn_c_try_link "$LINENO"; then :
22851 ac_cv_lib_crypto_HMAC_Update=yes
22852else
22853 ac_cv_lib_crypto_HMAC_Update=no
22854fi
22855rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857LIBS=$ac_check_lib_save_LIBS
22858fi
22859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22860$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22861if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22862
22863 HAVECRYPTO="yes"
22864 LIBS="-lcrypto $LIBS"
22865
22866else
22867
22868 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22869 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22871$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22872if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22873 $as_echo_n "(cached) " >&6
22874else
22875 ac_check_lib_save_LIBS=$LIBS
22876LIBS="-lcrypto $LIBS"
22877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22878/* end confdefs.h. */
22879
22880
22881#ifdef __cplusplus
22882extern "C"
22883#endif
22884char HMAC_Init_ex ();
22885int main (void)
22886{
22887return HMAC_Init_ex ();
22888 ;
22889 return 0;
22890}
22891_ACEOF
22892if ac_fn_c_try_link "$LINENO"; then :
22893 ac_cv_lib_crypto_HMAC_Init_ex=yes
22894else
22895 ac_cv_lib_crypto_HMAC_Init_ex=no
22896fi
22897rm -f core conftest.err conftest.$ac_objext \
22898 conftest$ac_exeext conftest.$ac_ext
22899LIBS=$ac_check_lib_save_LIBS
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22902$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22903if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22904
22905 HAVECRYPTO="yes"
22906 LIBS="-lcrypto $LIBS"
22907else
22908
22909
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22911$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22912 LIBS="-ldl $LIBS"
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914/* end confdefs.h. */
22915
22916 #include <openssl/err.h>
22917
22918int main (void)
22919{
22920
22921 ERR_clear_error();
22922
22923 ;
22924 return 0;
22925}
22926_ACEOF
22927if ac_fn_c_try_link "$LINENO"; then :
22928
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22930$as_echo "yes" >&6; }
22931 HAVECRYPTO="yes"
22932
22933else
22934
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936$as_echo "no" >&6; }
22937
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22939$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22940 LIBS="-lpthread $LIBS"
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942/* end confdefs.h. */
22943
22944 #include <openssl/err.h>
22945
22946int main (void)
22947{
22948
22949 ERR_clear_error();
22950
22951 ;
22952 return 0;
22953}
22954_ACEOF
22955if ac_fn_c_try_link "$LINENO"; then :
22956
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22958$as_echo "yes" >&6; }
22959 HAVECRYPTO="yes"
22960
22961else
22962
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22964$as_echo "no" >&6; }
22965 LDFLAGS="$CLEANLDFLAGS"
22966 CPPFLAGS="$CLEANCPPFLAGS"
22967 LIBS="$CLEANLIBS"
22968
22969
22970fi
22971rm -f core conftest.err conftest.$ac_objext \
22972 conftest$ac_exeext conftest.$ac_ext
22973
22974
22975fi
22976rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
22978
22979
22980fi
22981
22982
22983fi
22984
22985
22986 if test X"$HAVECRYPTO" = X"yes"; then
22987
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22989$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22990if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22991 $as_echo_n "(cached) " >&6
22992else
22993 ac_check_lib_save_LIBS=$LIBS
22994LIBS="-lssl $LIBS"
22995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996/* end confdefs.h. */
22997
22998
22999#ifdef __cplusplus
23000extern "C"
23001#endif
23002char SSL_connect ();
23003int main (void)
23004{
23005return SSL_connect ();
23006 ;
23007 return 0;
23008}
23009_ACEOF
23010if ac_fn_c_try_link "$LINENO"; then :
23011 ac_cv_lib_ssl_SSL_connect=yes
23012else
23013 ac_cv_lib_ssl_SSL_connect=no
23014fi
23015rm -f core conftest.err conftest.$ac_objext \
23016 conftest$ac_exeext conftest.$ac_ext
23017LIBS=$ac_check_lib_save_LIBS
23018fi
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
23020$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
23021if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
23022 cat >>confdefs.h <<_ACEOF
23023#define HAVE_LIBSSL 1
23024_ACEOF
23025
23026 LIBS="-lssl $LIBS"
23027
23028fi
23029
23030
23031 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
23033$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
23034 OLIBS=$LIBS
23035 LIBS="-lRSAglue -lrsaref $LIBS"
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
23037$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
23038if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040else
23041 ac_check_lib_save_LIBS=$LIBS
23042LIBS="-lssl $LIBS"
23043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044/* end confdefs.h. */
23045
23046
23047#ifdef __cplusplus
23048extern "C"
23049#endif
23050char SSL_connect ();
23051int main (void)
23052{
23053return SSL_connect ();
23054 ;
23055 return 0;
23056}
23057_ACEOF
23058if ac_fn_c_try_link "$LINENO"; then :
23059 ac_cv_lib_ssl_SSL_connect=yes
23060else
23061 ac_cv_lib_ssl_SSL_connect=no
23062fi
23063rm -f core conftest.err conftest.$ac_objext \
23064 conftest$ac_exeext conftest.$ac_ext
23065LIBS=$ac_check_lib_save_LIBS
23066fi
23067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
23068$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
23069if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
23070 cat >>confdefs.h <<_ACEOF
23071#define HAVE_LIBSSL 1
23072_ACEOF
23073
23074 LIBS="-lssl $LIBS"
23075
23076fi
23077
23078 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23080$as_echo "no" >&6; }
23081 LIBS=$OLIBS
23082 else
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23084$as_echo "yes" >&6; }
23085 fi
23086
23087 else
23088
23089 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
23090 openssl/pem.h openssl/ssl.h openssl/err.h
23091do :
23092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23093ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23094if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23095 cat >>confdefs.h <<_ACEOF
23096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23097_ACEOF
23098 curl_ssl_msg="enabled (OpenSSL)"
23099 OPENSSL_ENABLED=1
23100
23101$as_echo "#define USE_OPENSSL 1" >>confdefs.h
23102
23103fi
23104
23105done
23106
23107
23108 if test $ac_cv_header_openssl_x509_h = no; then
23109 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
23110do :
23111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23112ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23114 cat >>confdefs.h <<_ACEOF
23115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23116_ACEOF
23117
23118fi
23119
23120done
23121
23122
23123 if test $ac_cv_header_x509_h = yes &&
23124 test $ac_cv_header_crypto_h = yes &&
23125 test $ac_cv_header_ssl_h = yes; then
23126 curl_ssl_msg="enabled (OpenSSL)"
23127 OPENSSL_ENABLED=1
23128 fi
23129 fi
23130 fi
23131
23132 if test X"$OPENSSL_ENABLED" = X"1"; then
23133 for ac_header in openssl/pkcs12.h
23134do :
23135 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
23136if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
23137 cat >>confdefs.h <<_ACEOF
23138#define HAVE_OPENSSL_PKCS12_H 1
23139_ACEOF
23140
23141fi
23142
23143done
23144
23145 else
23146 LIBS="$CLEANLIBS"
23147 fi
23148
23149 if test X"$OPT_SSL" != Xoff &&
23150 test "$OPENSSL_ENABLED" != "1"; then
23151 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
23152 fi
23153 fi
23154
23155 if test X"$OPENSSL_ENABLED" = X"1"; then
23156 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
23157if test "x$ac_cv_func_ENGINE_init" = xyes; then :
23158
23159 for ac_header in openssl/engine.h
23160do :
23161 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
23162if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
23163 cat >>confdefs.h <<_ACEOF
23164#define HAVE_OPENSSL_ENGINE_H 1
23165_ACEOF
23166
23167fi
23168
23169done
23170
23171 for ac_func in ENGINE_load_builtin_engines
23172do :
23173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23175if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23176 cat >>confdefs.h <<_ACEOF
23177#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23178_ACEOF
23179
23180fi
23181done
23182
23183
23184fi
23185
23186
23187
23188 for ac_func in RAND_egd \
23189 ENGINE_cleanup \
23190 SSL_get_shutdown \
23191 SSLv2_client_method
23192do :
23193 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23194ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23195if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23196 cat >>confdefs.h <<_ACEOF
23197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23198_ACEOF
23199
23200fi
23201done
23202
23203
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
23205$as_echo_n "checking for BoringSSL... " >&6; }
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207/* end confdefs.h. */
23208
23209
23210 #include <openssl/base.h>
23211
23212int main (void)
23213{
23214
23215 #ifndef OPENSSL_IS_BORINGSSL
23216 #error not boringssl
23217 #endif
23218
23219 ;
23220 return 0;
23221}
23222
23223_ACEOF
23224if ac_fn_c_try_compile "$LINENO"; then :
23225
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227$as_echo "yes" >&6; }
23228
23229cat >>confdefs.h <<_ACEOF
23230#define HAVE_BORINGSSL 1
23231_ACEOF
23232
23233 curl_ssl_msg="enabled (BoringSSL)"
23234
23235else
23236
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23238$as_echo "no" >&6; }
23239
23240fi
23241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23244$as_echo_n "checking for libressl... " >&6; }
23245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246/* end confdefs.h. */
23247
23248
23249#include <openssl/opensslv.h>
23250
23251int main (void)
23252{
23253
23254 int dummy = LIBRESSL_VERSION_NUMBER;
23255
23256 ;
23257 return 0;
23258}
23259
23260_ACEOF
23261if ac_fn_c_try_compile "$LINENO"; then :
23262
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264$as_echo "yes" >&6; }
23265
23266cat >>confdefs.h <<_ACEOF
23267#define HAVE_LIBRESSL 1
23268_ACEOF
23269
23270 curl_ssl_msg="enabled (libressl)"
23271
23272else
23273
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23275$as_echo "no" >&6; }
23276
23277fi
23278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 fi
23280
23281 if test "$OPENSSL_ENABLED" = "1"; then
23282 if test -n "$LIB_OPENSSL"; then
23283 if test "x$cross_compiling" != "xyes"; then
23284 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23285 export LD_LIBRARY_PATH
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23287$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23288 fi
23289 fi
23290
23291 #
23292
23293 #
23294 tst_api="unknown"
23295 #
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23297$as_echo_n "checking for OpenSSL headers version... " >&6; }
23298
23299 OLDCPPFLAGS=$CPPFLAGS
23300 # CPPPFLAG comes from CURL_CPP_P
23301 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23302 if test -z "$SED"; then
23303 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23304 fi
23305 if test -z "$GREP"; then
23306 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23307 fi
23308
23309 tmp_exp=""
23310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311/* end confdefs.h. */
23312
23313
23314# ifdef USE_OPENSSL
23315# include <openssl/crypto.h>
23316# else
23317# include <crypto.h>
23318# endif
23319
23320#ifdef OPENSSL_VERSION_NUMBER
23321CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23322#endif
23323
23324
23325_ACEOF
23326if ac_fn_c_try_cpp "$LINENO"; then :
23327
23328 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23329 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23330 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23331 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23332 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23333 tmp_exp=""
23334 fi
23335
23336fi
23337rm -f conftest.err conftest.i conftest.$ac_ext
23338 if test -z "$tmp_exp"; then
23339 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23340
23341 else
23342 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23343 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23344
23345 fi
23346 CPPFLAGS=$OLDCPPFLAGS
23347
23348 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23349 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23350 case "x$tst_verlen" in
23351 x6)
23352 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23353 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23354 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23355 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23356 ;;
23357 x11|x10)
23358 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23359 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23360 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23361 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23362 ;;
23363 *)
23364 tst_api="unknown"
23365 ;;
23366 esac
23367 case $tst_api in
23368 0x110) tst_show="1.1.0" ;;
23369 0x102) tst_show="1.0.2" ;;
23370 0x101) tst_show="1.0.1" ;;
23371 0x100) tst_show="1.0.0" ;;
23372 0x099) tst_show="0.9.9" ;;
23373 0x098) tst_show="0.9.8" ;;
23374 0x097) tst_show="0.9.7" ;;
23375 0x096) tst_show="0.9.6" ;;
23376 0x095) tst_show="0.9.5" ;;
23377 0x094) tst_show="0.9.4" ;;
23378 0x093) tst_show="0.9.3" ;;
23379 0x092) tst_show="0.9.2" ;;
23380 0x091) tst_show="0.9.1" ;;
23381 *) tst_show="unknown" ;;
23382 esac
23383 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23384 else
23385 tst_show="unknown"
23386 fi
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23388$as_echo "$tst_show" >&6; }
23389 #
23390 curl_openssl_api_headers=$tst_api
23391
23392
23393 #
23394 tst_api="unknown"
23395 #
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23397$as_echo_n "checking for OpenSSL library version... " >&6; }
23398 if test "$tst_api" = "unknown"; then
23399 case $host in
23400 *-*-vms*)
23401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23402/* end confdefs.h. */
23403
23404
23405#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23406#ifdef __STDC__
23407# include <limits.h>
23408#else
23409# include <assert.h>
23410#endif
23411#undef SSL_CTX_set_not_resumbl_sess_cb
23412#ifdef __cplusplus
23413extern "C"
23414#endif
23415char SSL_CTX_set_not_resumbl_sess_cb ();
23416#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23417choke me
23418#endif
23419
23420int main (void)
23421{
23422return SSL_CTX_set_not_resumbl_sess_cb ();
23423 ;
23424 return 0;
23425}
23426
23427_ACEOF
23428if ac_fn_c_try_link "$LINENO"; then :
23429
23430 tst_api="0x110"
23431
23432fi
23433rm -f core conftest.err conftest.$ac_objext \
23434 conftest$ac_exeext conftest.$ac_ext
23435 ;;
23436 *)
23437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23438/* end confdefs.h. */
23439
23440
23441#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23442#ifdef __STDC__
23443# include <limits.h>
23444#else
23445# include <assert.h>
23446#endif
23447#undef SSL_CTX_set_not_resumable_session_callback
23448#ifdef __cplusplus
23449extern "C"
23450#endif
23451char SSL_CTX_set_not_resumable_session_callback ();
23452#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23453choke me
23454#endif
23455
23456int main (void)
23457{
23458return SSL_CTX_set_not_resumable_session_callback ();
23459 ;
23460 return 0;
23461}
23462
23463_ACEOF
23464if ac_fn_c_try_link "$LINENO"; then :
23465
23466 tst_api="0x110"
23467
23468fi
23469rm -f core conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
23471 ;;
23472 esac
23473 fi
23474 if test "$tst_api" = "unknown"; then
23475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23476/* end confdefs.h. */
23477
23478
23479#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23480#ifdef __STDC__
23481# include <limits.h>
23482#else
23483# include <assert.h>
23484#endif
23485#undef SSL_CONF_CTX_new
23486#ifdef __cplusplus
23487extern "C"
23488#endif
23489char SSL_CONF_CTX_new ();
23490#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23491choke me
23492#endif
23493
23494int main (void)
23495{
23496return SSL_CONF_CTX_new ();
23497 ;
23498 return 0;
23499}
23500
23501_ACEOF
23502if ac_fn_c_try_link "$LINENO"; then :
23503
23504 tst_api="0x102"
23505
23506fi
23507rm -f core conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23509 fi
23510 if test "$tst_api" = "unknown"; then
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512/* end confdefs.h. */
23513
23514
23515#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23516#ifdef __STDC__
23517# include <limits.h>
23518#else
23519# include <assert.h>
23520#endif
23521#undef SSL_renegotiate_abbreviated
23522#ifdef __cplusplus
23523extern "C"
23524#endif
23525char SSL_renegotiate_abbreviated ();
23526#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23527choke me
23528#endif
23529
23530int main (void)
23531{
23532return SSL_renegotiate_abbreviated ();
23533 ;
23534 return 0;
23535}
23536
23537_ACEOF
23538if ac_fn_c_try_link "$LINENO"; then :
23539
23540 tst_api="0x101"
23541
23542fi
23543rm -f core conftest.err conftest.$ac_objext \
23544 conftest$ac_exeext conftest.$ac_ext
23545 fi
23546 if test "$tst_api" = "unknown"; then
23547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23548/* end confdefs.h. */
23549
23550
23551#define OBJ_add_sigid innocuous_OBJ_add_sigid
23552#ifdef __STDC__
23553# include <limits.h>
23554#else
23555# include <assert.h>
23556#endif
23557#undef OBJ_add_sigid
23558#ifdef __cplusplus
23559extern "C"
23560#endif
23561char OBJ_add_sigid ();
23562#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23563choke me
23564#endif
23565
23566int main (void)
23567{
23568return OBJ_add_sigid ();
23569 ;
23570 return 0;
23571}
23572
23573_ACEOF
23574if ac_fn_c_try_link "$LINENO"; then :
23575
23576 tst_api="0x100"
23577
23578fi
23579rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 fi
23582 if test "$tst_api" = "unknown"; then
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584/* end confdefs.h. */
23585
23586
23587#define ERR_set_mark innocuous_ERR_set_mark
23588#ifdef __STDC__
23589# include <limits.h>
23590#else
23591# include <assert.h>
23592#endif
23593#undef ERR_set_mark
23594#ifdef __cplusplus
23595extern "C"
23596#endif
23597char ERR_set_mark ();
23598#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23599choke me
23600#endif
23601
23602int main (void)
23603{
23604return ERR_set_mark ();
23605 ;
23606 return 0;
23607}
23608
23609_ACEOF
23610if ac_fn_c_try_link "$LINENO"; then :
23611
23612 tst_api="0x098"
23613
23614fi
23615rm -f core conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
23617 fi
23618 if test "$tst_api" = "unknown"; then
23619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23620/* end confdefs.h. */
23621
23622
23623#define ERR_peek_last_error innocuous_ERR_peek_last_error
23624#ifdef __STDC__
23625# include <limits.h>
23626#else
23627# include <assert.h>
23628#endif
23629#undef ERR_peek_last_error
23630#ifdef __cplusplus
23631extern "C"
23632#endif
23633char ERR_peek_last_error ();
23634#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23635choke me
23636#endif
23637
23638int main (void)
23639{
23640return ERR_peek_last_error ();
23641 ;
23642 return 0;
23643}
23644
23645_ACEOF
23646if ac_fn_c_try_link "$LINENO"; then :
23647
23648 tst_api="0x097"
23649
23650fi
23651rm -f core conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23653 fi
23654 if test "$tst_api" = "unknown"; then
23655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656/* end confdefs.h. */
23657
23658
23659#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23660#ifdef __STDC__
23661# include <limits.h>
23662#else
23663# include <assert.h>
23664#endif
23665#undef c2i_ASN1_OBJECT
23666#ifdef __cplusplus
23667extern "C"
23668#endif
23669char c2i_ASN1_OBJECT ();
23670#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23671choke me
23672#endif
23673
23674int main (void)
23675{
23676return c2i_ASN1_OBJECT ();
23677 ;
23678 return 0;
23679}
23680
23681_ACEOF
23682if ac_fn_c_try_link "$LINENO"; then :
23683
23684 tst_api="0x096"
23685
23686fi
23687rm -f core conftest.err conftest.$ac_objext \
23688 conftest$ac_exeext conftest.$ac_ext
23689 fi
23690 if test "$tst_api" = "unknown"; then
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692/* end confdefs.h. */
23693
23694
23695#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23696#ifdef __STDC__
23697# include <limits.h>
23698#else
23699# include <assert.h>
23700#endif
23701#undef SSL_CTX_set_purpose
23702#ifdef __cplusplus
23703extern "C"
23704#endif
23705char SSL_CTX_set_purpose ();
23706#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23707choke me
23708#endif
23709
23710int main (void)
23711{
23712return SSL_CTX_set_purpose ();
23713 ;
23714 return 0;
23715}
23716
23717_ACEOF
23718if ac_fn_c_try_link "$LINENO"; then :
23719
23720 tst_api="0x095"
23721
23722fi
23723rm -f core conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23725 fi
23726 if test "$tst_api" = "unknown"; then
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728/* end confdefs.h. */
23729
23730
23731#define OBJ_obj2txt innocuous_OBJ_obj2txt
23732#ifdef __STDC__
23733# include <limits.h>
23734#else
23735# include <assert.h>
23736#endif
23737#undef OBJ_obj2txt
23738#ifdef __cplusplus
23739extern "C"
23740#endif
23741char OBJ_obj2txt ();
23742#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23743choke me
23744#endif
23745
23746int main (void)
23747{
23748return OBJ_obj2txt ();
23749 ;
23750 return 0;
23751}
23752
23753_ACEOF
23754if ac_fn_c_try_link "$LINENO"; then :
23755
23756 tst_api="0x094"
23757
23758fi
23759rm -f core conftest.err conftest.$ac_objext \
23760 conftest$ac_exeext conftest.$ac_ext
23761 fi
23762 if test "$tst_api" = "unknown"; then
23763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23764/* end confdefs.h. */
23765
23766
23767#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23768#ifdef __STDC__
23769# include <limits.h>
23770#else
23771# include <assert.h>
23772#endif
23773#undef SSL_get_verify_depth
23774#ifdef __cplusplus
23775extern "C"
23776#endif
23777char SSL_get_verify_depth ();
23778#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23779choke me
23780#endif
23781
23782int main (void)
23783{
23784return SSL_get_verify_depth ();
23785 ;
23786 return 0;
23787}
23788
23789_ACEOF
23790if ac_fn_c_try_link "$LINENO"; then :
23791
23792 tst_api="0x093"
23793
23794fi
23795rm -f core conftest.err conftest.$ac_objext \
23796 conftest$ac_exeext conftest.$ac_ext
23797 fi
23798 if test "$tst_api" = "unknown"; then
23799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23800/* end confdefs.h. */
23801
23802
23803#define SSL_library_init innocuous_SSL_library_init
23804#ifdef __STDC__
23805# include <limits.h>
23806#else
23807# include <assert.h>
23808#endif
23809#undef SSL_library_init
23810#ifdef __cplusplus
23811extern "C"
23812#endif
23813char SSL_library_init ();
23814#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23815choke me
23816#endif
23817
23818int main (void)
23819{
23820return SSL_library_init ();
23821 ;
23822 return 0;
23823}
23824
23825_ACEOF
23826if ac_fn_c_try_link "$LINENO"; then :
23827
23828 tst_api="0x092"
23829
23830fi
23831rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23833 fi
23834 if test "$tst_api" = "unknown"; then
23835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23836/* end confdefs.h. */
23837
23838
23839#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23840#ifdef __STDC__
23841# include <limits.h>
23842#else
23843# include <assert.h>
23844#endif
23845#undef SSL_CTX_set_cipher_list
23846#ifdef __cplusplus
23847extern "C"
23848#endif
23849char SSL_CTX_set_cipher_list ();
23850#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23851choke me
23852#endif
23853
23854int main (void)
23855{
23856return SSL_CTX_set_cipher_list ();
23857 ;
23858 return 0;
23859}
23860
23861_ACEOF
23862if ac_fn_c_try_link "$LINENO"; then :
23863
23864 tst_api="0x091"
23865
23866fi
23867rm -f core conftest.err conftest.$ac_objext \
23868 conftest$ac_exeext conftest.$ac_ext
23869 fi
23870 case $tst_api in
23871 0x110) tst_show="1.1.0" ;;
23872 0x102) tst_show="1.0.2" ;;
23873 0x101) tst_show="1.0.1" ;;
23874 0x100) tst_show="1.0.0" ;;
23875 0x099) tst_show="0.9.9" ;;
23876 0x098) tst_show="0.9.8" ;;
23877 0x097) tst_show="0.9.7" ;;
23878 0x096) tst_show="0.9.6" ;;
23879 0x095) tst_show="0.9.5" ;;
23880 0x094) tst_show="0.9.4" ;;
23881 0x093) tst_show="0.9.3" ;;
23882 0x092) tst_show="0.9.2" ;;
23883 0x091) tst_show="0.9.1" ;;
23884 *) tst_show="unknown" ;;
23885 esac
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23887$as_echo "$tst_show" >&6; }
23888 #
23889 curl_openssl_api_library=$tst_api
23890
23891 #
23892 tst_match="yes"
23893 #
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23895$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23896 if test "$curl_openssl_api_headers" = "unknown" ||
23897 test "$curl_openssl_api_library" = "unknown"; then
23898 tst_match="fail"
23899 tst_warns="Can not compare OpenSSL headers and library versions."
23900 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23901 tst_match="no"
23902 tst_warns="OpenSSL headers and library versions do not match."
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23905$as_echo "$tst_match" >&6; }
23906 if test "$tst_match" != "yes"; then
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23908$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23909 fi
23910
23911 fi
23912
23913fi
23914
23915
23916if test X"$OPENSSL_ENABLED" = X"1"; then
23917
23918# Check whether --with-egd-socket was given.
23919if test "${with_egd_socket+set}" = set; then :
23920 withval=$with_egd_socket; EGD_SOCKET="$withval"
23921
23922fi
23923
23924 if test -n "$EGD_SOCKET" ; then
23925
23926cat >>confdefs.h <<_ACEOF
23927#define EGD_SOCKET "$EGD_SOCKET"
23928_ACEOF
23929
23930 fi
23931
23932
23933# Check whether --with-random was given.
23934if test "${with_random+set}" = set; then :
23935 withval=$with_random; RANDOM_FILE="$withval"
23936else
23937
23938 if test x$cross_compiling != xyes; then
23939 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23941$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23942if eval \${$as_ac_File+:} false; then :
23943 $as_echo_n "(cached) " >&6
23944else
23945 test "$cross_compiling" = yes &&
23946 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23947if test -r ""/dev/urandom""; then
23948 eval "$as_ac_File=yes"
23949else
23950 eval "$as_ac_File=no"
23951fi
23952fi
23953eval ac_res=\$$as_ac_File
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23955$as_echo "$ac_res" >&6; }
23956if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23957 RANDOM_FILE="/dev/urandom"
23958fi
23959
23960 else
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23962$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23963 fi
23964
23965
23966fi
23967
23968 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23969
23970
23971cat >>confdefs.h <<_ACEOF
23972#define RANDOM_FILE "$RANDOM_FILE"
23973_ACEOF
23974
23975 fi
23976fi
23977
23978if test "$OPENSSL_ENABLED" = "1"; then
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23980$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23981if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23982 $as_echo_n "(cached) " >&6
23983else
23984 ac_check_lib_save_LIBS=$LIBS
23985LIBS="-lcrypto $LIBS"
23986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987/* end confdefs.h. */
23988
23989
23990#ifdef __cplusplus
23991extern "C"
23992#endif
23993char SRP_Calc_client_key ();
23994int main (void)
23995{
23996return SRP_Calc_client_key ();
23997 ;
23998 return 0;
23999}
24000_ACEOF
24001if ac_fn_c_try_link "$LINENO"; then :
24002 ac_cv_lib_crypto_SRP_Calc_client_key=yes
24003else
24004 ac_cv_lib_crypto_SRP_Calc_client_key=no
24005fi
24006rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
24008LIBS=$ac_check_lib_save_LIBS
24009fi
24010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
24011$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
24012if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
24013
24014
24015$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
24016
24017 HAVE_OPENSSL_SRP=1
24018
24019
24020fi
24021
24022fi
24023
24024
24025OPT_GNUTLS=no
24026
24027
24028# Check whether --with-gnutls was given.
24029if test "${with_gnutls+set}" = set; then :
24030 withval=$with_gnutls; OPT_GNUTLS=$withval
24031fi
24032
24033
24034if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24035
24036 if test X"$OPT_GNUTLS" != Xno; then
24037
24038 addld=""
24039 addlib=""
24040 gtlslib=""
24041 version=""
24042 addcflags=""
24043
24044 if test "x$OPT_GNUTLS" = "xyes"; then
24045
24046 if test -n "$PKG_CONFIG"; then
24047 PKGCONFIG="$PKG_CONFIG"
24048 else
24049 if test -n "$ac_tool_prefix"; then
24050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24053$as_echo_n "checking for $ac_word... " >&6; }
24054if ${ac_cv_path_PKGCONFIG+:} false; then :
24055 $as_echo_n "(cached) " >&6
24056else
24057 case $PKGCONFIG in
24058 [\\/]* | ?:[\\/]*)
24059 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24060 ;;
24061 *)
24062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24063as_dummy="$PATH:/usr/bin:/usr/local/bin"
24064for as_dir in $as_dummy
24065do
24066 IFS=$as_save_IFS
24067 test -z "$as_dir" && as_dir=.
24068 for ac_exec_ext in '' $ac_executable_extensions; do
24069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24070 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24072 break 2
24073 fi
24074done
24075 done
24076IFS=$as_save_IFS
24077
24078 ;;
24079esac
24080fi
24081PKGCONFIG=$ac_cv_path_PKGCONFIG
24082if test -n "$PKGCONFIG"; then
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24084$as_echo "$PKGCONFIG" >&6; }
24085else
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24087$as_echo "no" >&6; }
24088fi
24089
24090
24091fi
24092if test -z "$ac_cv_path_PKGCONFIG"; then
24093 ac_pt_PKGCONFIG=$PKGCONFIG
24094 # Extract the first word of "pkg-config", so it can be a program name with args.
24095set dummy pkg-config; ac_word=$2
24096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24097$as_echo_n "checking for $ac_word... " >&6; }
24098if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24099 $as_echo_n "(cached) " >&6
24100else
24101 case $ac_pt_PKGCONFIG in
24102 [\\/]* | ?:[\\/]*)
24103 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24104 ;;
24105 *)
24106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24107as_dummy="$PATH:/usr/bin:/usr/local/bin"
24108for as_dir in $as_dummy
24109do
24110 IFS=$as_save_IFS
24111 test -z "$as_dir" && as_dir=.
24112 for ac_exec_ext in '' $ac_executable_extensions; do
24113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24114 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24116 break 2
24117 fi
24118done
24119 done
24120IFS=$as_save_IFS
24121
24122 ;;
24123esac
24124fi
24125ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24126if test -n "$ac_pt_PKGCONFIG"; then
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24128$as_echo "$ac_pt_PKGCONFIG" >&6; }
24129else
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24131$as_echo "no" >&6; }
24132fi
24133
24134 if test "x$ac_pt_PKGCONFIG" = x; then
24135 PKGCONFIG="no"
24136 else
24137 case $cross_compiling:$ac_tool_warned in
24138yes:)
24139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24141ac_tool_warned=yes ;;
24142esac
24143 PKGCONFIG=$ac_pt_PKGCONFIG
24144 fi
24145else
24146 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24147fi
24148
24149 fi
24150
24151 if test "x$PKGCONFIG" != "xno"; then
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
24153$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
24154 itexists=`
24155 if test -n ""; then
24156 PKG_CONFIG_LIBDIR=""
24157 export PKG_CONFIG_LIBDIR
24158 fi
24159 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
24160
24161 if test -z "$itexists"; then
24162 PKGCONFIG="no"
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164$as_echo "no" >&6; }
24165 else
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24167$as_echo "found" >&6; }
24168 fi
24169 fi
24170
24171
24172 if test "$PKGCONFIG" != "no" ; then
24173 addlib=`$PKGCONFIG --libs-only-l gnutls`
24174 addld=`$PKGCONFIG --libs-only-L gnutls`
24175 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
24176 version=`$PKGCONFIG --modversion gnutls`
24177 gtlslib=`echo $addld | $SED -e 's/-L//'`
24178 else
24179 check=`libgnutls-config --version 2>/dev/null`
24180 if test -n "$check"; then
24181 addlib=`libgnutls-config --libs`
24182 addcflags=`libgnutls-config --cflags`
24183 version=`libgnutls-config --version`
24184 gtlslib=`libgnutls-config --prefix`/lib$libsuff
24185 fi
24186 fi
24187 else
24188 cfg=$OPT_GNUTLS/bin/libgnutls-config
24189 check=`$cfg --version 2>/dev/null`
24190 if test -n "$check"; then
24191 addlib=`$cfg --libs`
24192 addcflags=`$cfg --cflags`
24193 version=`$cfg --version`
24194 gtlslib=`$cfg --prefix`/lib$libsuff
24195 else
24196 addlib=-lgnutls
24197 addld=-L$OPT_GNUTLS/lib$libsuff
24198 addcflags=-I$OPT_GNUTLS/include
24199 version="" # we just don't know
24200 gtlslib=$OPT_GNUTLS/lib$libsuff
24201 fi
24202 fi
24203
24204 if test -z "$version"; then
24205 version="unknown"
24206 fi
24207
24208 if test -n "$addlib"; then
24209
24210 CLEANLIBS="$LIBS"
24211 CLEANCPPFLAGS="$CPPFLAGS"
24212 CLEANLDFLAGS="$LDFLAGS"
24213
24214 LIBS="$addlib $LIBS"
24215 LDFLAGS="$LDFLAGS $addld"
24216 if test "$addcflags" != "-I/usr/include"; then
24217 CPPFLAGS="$CPPFLAGS $addcflags"
24218 fi
24219
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24221$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24222if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24223 $as_echo_n "(cached) " >&6
24224else
24225 ac_check_lib_save_LIBS=$LIBS
24226LIBS="-lgnutls $LIBS"
24227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24228/* end confdefs.h. */
24229
24230
24231#ifdef __cplusplus
24232extern "C"
24233#endif
24234char gnutls_check_version ();
24235int main (void)
24236{
24237return gnutls_check_version ();
24238 ;
24239 return 0;
24240}
24241_ACEOF
24242if ac_fn_c_try_link "$LINENO"; then :
24243 ac_cv_lib_gnutls_gnutls_check_version=yes
24244else
24245 ac_cv_lib_gnutls_gnutls_check_version=no
24246fi
24247rm -f core conftest.err conftest.$ac_objext \
24248 conftest$ac_exeext conftest.$ac_ext
24249LIBS=$ac_check_lib_save_LIBS
24250fi
24251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24252$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24253if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24254
24255
24256$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24257
24258 USE_GNUTLS=1
24259
24260 GNUTLS_ENABLED=1
24261 USE_GNUTLS="yes"
24262 curl_ssl_msg="enabled (GnuTLS)"
24263
24264else
24265
24266 LIBS="$CLEANLIBS"
24267 CPPFLAGS="$CLEANCPPFLAGS"
24268
24269fi
24270
24271
24272 if test "x$USE_GNUTLS" = "xyes"; then
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24274$as_echo "$as_me: detected GnuTLS version $version" >&6;}
24275
24276 if test -n "$gtlslib"; then
24277 if test "x$cross_compiling" != "xyes"; then
24278 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24279 export LD_LIBRARY_PATH
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24281$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24282 fi
24283 fi
24284 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24285do :
24286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24288if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24289 cat >>confdefs.h <<_ACEOF
24290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24291_ACEOF
24292
24293fi
24294done
24295
24296 fi
24297
24298 fi
24299
24300 fi
24301fi
24302
24303
24304if test "$GNUTLS_ENABLED" = "1"; then
24305 USE_GNUTLS_NETTLE=
24306 # First check if we can detect either crypto library via transitive linking
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24308$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24309if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24310 $as_echo_n "(cached) " >&6
24311else
24312 ac_check_lib_save_LIBS=$LIBS
24313LIBS="-lgnutls $LIBS"
24314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315/* end confdefs.h. */
24316
24317
24318#ifdef __cplusplus
24319extern "C"
24320#endif
24321char nettle_MD5Init ();
24322int main (void)
24323{
24324return nettle_MD5Init ();
24325 ;
24326 return 0;
24327}
24328_ACEOF
24329if ac_fn_c_try_link "$LINENO"; then :
24330 ac_cv_lib_gnutls_nettle_MD5Init=yes
24331else
24332 ac_cv_lib_gnutls_nettle_MD5Init=no
24333fi
24334rm -f core conftest.err conftest.$ac_objext \
24335 conftest$ac_exeext conftest.$ac_ext
24336LIBS=$ac_check_lib_save_LIBS
24337fi
24338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24339$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24340if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24341 USE_GNUTLS_NETTLE=1
24342fi
24343
24344 if test "$USE_GNUTLS_NETTLE" = ""; then
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24346$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24347if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24348 $as_echo_n "(cached) " >&6
24349else
24350 ac_check_lib_save_LIBS=$LIBS
24351LIBS="-lgnutls $LIBS"
24352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24353/* end confdefs.h. */
24354
24355
24356#ifdef __cplusplus
24357extern "C"
24358#endif
24359char gcry_control ();
24360int main (void)
24361{
24362return gcry_control ();
24363 ;
24364 return 0;
24365}
24366_ACEOF
24367if ac_fn_c_try_link "$LINENO"; then :
24368 ac_cv_lib_gnutls_gcry_control=yes
24369else
24370 ac_cv_lib_gnutls_gcry_control=no
24371fi
24372rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24374LIBS=$ac_check_lib_save_LIBS
24375fi
24376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24377$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24378if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24379 USE_GNUTLS_NETTLE=0
24380fi
24381
24382 fi
24383 # If not, try linking directly to both of them to see if they are available
24384 if test "$USE_GNUTLS_NETTLE" = ""; then
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24386$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24387if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24388 $as_echo_n "(cached) " >&6
24389else
24390 ac_check_lib_save_LIBS=$LIBS
24391LIBS="-lnettle $LIBS"
24392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393/* end confdefs.h. */
24394
24395
24396#ifdef __cplusplus
24397extern "C"
24398#endif
24399char nettle_MD5Init ();
24400int main (void)
24401{
24402return nettle_MD5Init ();
24403 ;
24404 return 0;
24405}
24406_ACEOF
24407if ac_fn_c_try_link "$LINENO"; then :
24408 ac_cv_lib_nettle_nettle_MD5Init=yes
24409else
24410 ac_cv_lib_nettle_nettle_MD5Init=no
24411fi
24412rm -f core conftest.err conftest.$ac_objext \
24413 conftest$ac_exeext conftest.$ac_ext
24414LIBS=$ac_check_lib_save_LIBS
24415fi
24416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24417$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24418if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24419 USE_GNUTLS_NETTLE=1
24420fi
24421
24422 fi
24423 if test "$USE_GNUTLS_NETTLE" = ""; then
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24425$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24426if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24427 $as_echo_n "(cached) " >&6
24428else
24429 ac_check_lib_save_LIBS=$LIBS
24430LIBS="-lgcrypt $LIBS"
24431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24432/* end confdefs.h. */
24433
24434
24435#ifdef __cplusplus
24436extern "C"
24437#endif
24438char gcry_control ();
24439int main (void)
24440{
24441return gcry_control ();
24442 ;
24443 return 0;
24444}
24445_ACEOF
24446if ac_fn_c_try_link "$LINENO"; then :
24447 ac_cv_lib_gcrypt_gcry_control=yes
24448else
24449 ac_cv_lib_gcrypt_gcry_control=no
24450fi
24451rm -f core conftest.err conftest.$ac_objext \
24452 conftest$ac_exeext conftest.$ac_ext
24453LIBS=$ac_check_lib_save_LIBS
24454fi
24455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24456$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24457if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24458 USE_GNUTLS_NETTLE=0
24459fi
24460
24461 fi
24462 if test "$USE_GNUTLS_NETTLE" = ""; then
24463 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24464 fi
24465 if test "$USE_GNUTLS_NETTLE" = "1"; then
24466
24467$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24468
24469 USE_GNUTLS_NETTLE=1
24470
24471 LIBS="-lnettle $LIBS"
24472 else
24473 LIBS="-lgcrypt $LIBS"
24474 fi
24475fi
24476
24477if test "$GNUTLS_ENABLED" = "1"; then
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24479$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24480if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24481 $as_echo_n "(cached) " >&6
24482else
24483 ac_check_lib_save_LIBS=$LIBS
24484LIBS="-lgnutls $LIBS"
24485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486/* end confdefs.h. */
24487
24488
24489#ifdef __cplusplus
24490extern "C"
24491#endif
24492char gnutls_srp_verifier ();
24493int main (void)
24494{
24495return gnutls_srp_verifier ();
24496 ;
24497 return 0;
24498}
24499_ACEOF
24500if ac_fn_c_try_link "$LINENO"; then :
24501 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24502else
24503 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24504fi
24505rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
24507LIBS=$ac_check_lib_save_LIBS
24508fi
24509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24510$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24511if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24512
24513
24514$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24515
24516 HAVE_GNUTLS_SRP=1
24517
24518
24519fi
24520
24521fi
24522
24523
24524OPT_POLARSSL=no
24525
24526_cppflags=$CPPFLAGS
24527_ldflags=$LDFLAGS
24528
24529# Check whether --with-polarssl was given.
24530if test "${with_polarssl+set}" = set; then :
24531 withval=$with_polarssl; OPT_POLARSSL=$withval
24532fi
24533
24534
24535if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24536
24537 if test X"$OPT_POLARSSL" != Xno; then
24538
24539 if test "$OPT_POLARSSL" = "yes"; then
24540 OPT_POLARSSL=""
24541 fi
24542
24543 if test -z "$OPT_POLARSSL" ; then
24544
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24546$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24547if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24548 $as_echo_n "(cached) " >&6
24549else
24550 ac_check_lib_save_LIBS=$LIBS
24551LIBS="-lpolarssl $LIBS"
24552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553/* end confdefs.h. */
24554
24555
24556#ifdef __cplusplus
24557extern "C"
24558#endif
24559char havege_init ();
24560int main (void)
24561{
24562return havege_init ();
24563 ;
24564 return 0;
24565}
24566_ACEOF
24567if ac_fn_c_try_link "$LINENO"; then :
24568 ac_cv_lib_polarssl_havege_init=yes
24569else
24570 ac_cv_lib_polarssl_havege_init=no
24571fi
24572rm -f core conftest.err conftest.$ac_objext \
24573 conftest$ac_exeext conftest.$ac_ext
24574LIBS=$ac_check_lib_save_LIBS
24575fi
24576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24577$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24578if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24579
24580
24581$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24582
24583 USE_POLARSSL=1
24584
24585 POLARSSL_ENABLED=1
24586 USE_POLARSSL="yes"
24587 curl_ssl_msg="enabled (PolarSSL)"
24588
24589fi
24590
24591 fi
24592
24593 addld=""
24594 addlib=""
24595 addcflags=""
24596 polarssllib=""
24597
24598 if test "x$USE_POLARSSL" != "xyes"; then
24599 addld=-L$OPT_POLARSSL/lib$libsuff
24600 addcflags=-I$OPT_POLARSSL/include
24601 polarssllib=$OPT_POLARSSL/lib$libsuff
24602
24603 LDFLAGS="$LDFLAGS $addld"
24604 if test "$addcflags" != "-I/usr/include"; then
24605 CPPFLAGS="$CPPFLAGS $addcflags"
24606 fi
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24609$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24610if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24611 $as_echo_n "(cached) " >&6
24612else
24613 ac_check_lib_save_LIBS=$LIBS
24614LIBS="-lpolarssl $LIBS"
24615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24616/* end confdefs.h. */
24617
24618
24619#ifdef __cplusplus
24620extern "C"
24621#endif
24622char ssl_init ();
24623int main (void)
24624{
24625return ssl_init ();
24626 ;
24627 return 0;
24628}
24629_ACEOF
24630if ac_fn_c_try_link "$LINENO"; then :
24631 ac_cv_lib_polarssl_ssl_init=yes
24632else
24633 ac_cv_lib_polarssl_ssl_init=no
24634fi
24635rm -f core conftest.err conftest.$ac_objext \
24636 conftest$ac_exeext conftest.$ac_ext
24637LIBS=$ac_check_lib_save_LIBS
24638fi
24639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24640$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24641if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24642
24643
24644$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24645
24646 USE_POLARSSL=1
24647
24648 POLARSSL_ENABLED=1
24649 USE_POLARSSL="yes"
24650 curl_ssl_msg="enabled (PolarSSL)"
24651
24652else
24653
24654 CPPFLAGS=$_cppflags
24655 LDFLAGS=$_ldflags
24656
24657fi
24658
24659 fi
24660
24661 if test "x$USE_POLARSSL" = "xyes"; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24663$as_echo "$as_me: detected PolarSSL" >&6;}
24664
24665 LIBS="-lpolarssl $LIBS"
24666
24667 if test -n "$polarssllib"; then
24668 if test "x$cross_compiling" != "xyes"; then
24669 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24670 export LD_LIBRARY_PATH
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24672$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24673 fi
24674 fi
24675 fi
24676
24677 fi
24678fi
24679
24680
24681OPT_MBEDTLS=no
24682
24683_cppflags=$CPPFLAGS
24684_ldflags=$LDFLAGS
24685
24686# Check whether --with-mbedtls was given.
24687if test "${with_mbedtls+set}" = set; then :
24688 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24689fi
24690
24691
24692if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24693
24694 if test X"$OPT_MBEDTLS" != Xno; then
24695
24696 if test "$OPT_MBEDTLS" = "yes"; then
24697 OPT_MBEDTLS=""
24698 fi
24699
24700 if test -z "$OPT_MBEDTLS" ; then
24701
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24703$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24704if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24705 $as_echo_n "(cached) " >&6
24706else
24707 ac_check_lib_save_LIBS=$LIBS
24708LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710/* end confdefs.h. */
24711
24712
24713#ifdef __cplusplus
24714extern "C"
24715#endif
24716char mbedtls_havege_init ();
24717int main (void)
24718{
24719return mbedtls_havege_init ();
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724if ac_fn_c_try_link "$LINENO"; then :
24725 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24726else
24727 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24728fi
24729rm -f core conftest.err conftest.$ac_objext \
24730 conftest$ac_exeext conftest.$ac_ext
24731LIBS=$ac_check_lib_save_LIBS
24732fi
24733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24734$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24735if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24736
24737
24738$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24739
24740 USE_MBEDTLS=1
24741
24742 MBEDTLS_ENABLED=1
24743 USE_MBEDTLS="yes"
24744 curl_ssl_msg="enabled (mbedTLS)"
24745
24746fi
24747
24748 fi
24749
24750 addld=""
24751 addlib=""
24752 addcflags=""
24753 mbedtlslib=""
24754
24755 if test "x$USE_MBEDTLS" != "xyes"; then
24756 addld=-L$OPT_MBEDTLS/lib$libsuff
24757 addcflags=-I$OPT_MBEDTLS/include
24758 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24759
24760 LDFLAGS="$LDFLAGS $addld"
24761 if test "$addcflags" != "-I/usr/include"; then
24762 CPPFLAGS="$CPPFLAGS $addcflags"
24763 fi
24764
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24766$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24767if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24768 $as_echo_n "(cached) " >&6
24769else
24770 ac_check_lib_save_LIBS=$LIBS
24771LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24773/* end confdefs.h. */
24774
24775
24776#ifdef __cplusplus
24777extern "C"
24778#endif
24779char mbedtls_ssl_init ();
24780int main (void)
24781{
24782return mbedtls_ssl_init ();
24783 ;
24784 return 0;
24785}
24786_ACEOF
24787if ac_fn_c_try_link "$LINENO"; then :
24788 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24789else
24790 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24791fi
24792rm -f core conftest.err conftest.$ac_objext \
24793 conftest$ac_exeext conftest.$ac_ext
24794LIBS=$ac_check_lib_save_LIBS
24795fi
24796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24797$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24798if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24799
24800
24801$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24802
24803 USE_MBEDTLS=1
24804
24805 MBEDTLS_ENABLED=1
24806 USE_MBEDTLS="yes"
24807 curl_ssl_msg="enabled (mbedTLS)"
24808
24809else
24810
24811 CPPFLAGS=$_cppflags
24812 LDFLAGS=$_ldflags
24813
24814fi
24815
24816 fi
24817
24818 if test "x$USE_MBEDTLS" = "xyes"; then
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24820$as_echo "$as_me: detected mbedTLS" >&6;}
24821
24822 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24823
24824 if test -n "$mbedtlslib"; then
24825 if test "x$cross_compiling" != "xyes"; then
24826 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24827 export LD_LIBRARY_PATH
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24829$as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24830 fi
24831 fi
24832 fi
24833
24834 fi
24835fi
24836
24837
24838OPT_CYASSL=no
24839
24840_cppflags=$CPPFLAGS
24841_ldflags=$LDFLAGS
24842
24843# Check whether --with-cyassl was given.
24844if test "${with_cyassl+set}" = set; then :
24845 withval=$with_cyassl; OPT_CYASSL=$withval
24846fi
24847
24848
24849if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24850
24851 if test X"$OPT_CYASSL" != Xno; then
24852
24853 if test "$OPT_CYASSL" = "yes"; then
24854 OPT_CYASSL=""
24855 fi
24856
24857
24858 cyassllibname=cyassl
24859
24860 if test -z "$OPT_CYASSL" ; then
24861
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24863$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24864if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24865 $as_echo_n "(cached) " >&6
24866else
24867 ac_check_lib_save_LIBS=$LIBS
24868LIBS="-lcyassl $LIBS"
24869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870/* end confdefs.h. */
24871
24872
24873#ifdef __cplusplus
24874extern "C"
24875#endif
24876char CyaSSL_Init ();
24877int main (void)
24878{
24879return CyaSSL_Init ();
24880 ;
24881 return 0;
24882}
24883_ACEOF
24884if ac_fn_c_try_link "$LINENO"; then :
24885 ac_cv_lib_cyassl_CyaSSL_Init=yes
24886else
24887 ac_cv_lib_cyassl_CyaSSL_Init=no
24888fi
24889rm -f core conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
24891LIBS=$ac_check_lib_save_LIBS
24892fi
24893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24894$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24895if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24896
24897
24898$as_echo "#define USE_CYASSL 1" >>confdefs.h
24899
24900 USE_CYASSL=1
24901
24902 CYASSL_ENABLED=1
24903 USE_CYASSL="yes"
24904 curl_ssl_msg="enabled (CyaSSL)"
24905
24906fi
24907
24908 fi
24909
24910 addld=""
24911 addlib=""
24912 addcflags=""
24913 cyassllib=""
24914
24915 if test "x$USE_CYASSL" != "xyes"; then
24916 addld=-L$OPT_CYASSL/lib$libsuff
24917 addcflags=-I$OPT_CYASSL/include
24918 cyassllib=$OPT_CYASSL/lib$libsuff
24919
24920 LDFLAGS="$LDFLAGS $addld"
24921 if test "$addcflags" != "-I/usr/include"; then
24922 CPPFLAGS="$CPPFLAGS $addcflags"
24923 fi
24924
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24926$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24927if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24928 $as_echo_n "(cached) " >&6
24929else
24930 ac_check_lib_save_LIBS=$LIBS
24931LIBS="-lcyassl $LIBS"
24932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933/* end confdefs.h. */
24934
24935
24936#ifdef __cplusplus
24937extern "C"
24938#endif
24939char CyaSSL_Init ();
24940int main (void)
24941{
24942return CyaSSL_Init ();
24943 ;
24944 return 0;
24945}
24946_ACEOF
24947if ac_fn_c_try_link "$LINENO"; then :
24948 ac_cv_lib_cyassl_CyaSSL_Init=yes
24949else
24950 ac_cv_lib_cyassl_CyaSSL_Init=no
24951fi
24952rm -f core conftest.err conftest.$ac_objext \
24953 conftest$ac_exeext conftest.$ac_ext
24954LIBS=$ac_check_lib_save_LIBS
24955fi
24956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24957$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24958if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24959
24960
24961$as_echo "#define USE_CYASSL 1" >>confdefs.h
24962
24963 USE_CYASSL=1
24964
24965 CYASSL_ENABLED=1
24966 USE_CYASSL="yes"
24967 curl_ssl_msg="enabled (CyaSSL)"
24968
24969else
24970
24971 CPPFLAGS=$_cppflags
24972 LDFLAGS=$_ldflags
24973 cyassllib=""
24974
24975fi
24976
24977 fi
24978
24979 addld=""
24980 addlib=""
24981 addcflags=""
24982
24983 if test "x$USE_CYASSL" != "xyes"; then
24984 addld=-L$OPT_CYASSL/lib$libsuff
24985 addcflags=-I$OPT_CYASSL/include
24986 cyassllib=$OPT_CYASSL/lib$libsuff
24987
24988 LDFLAGS="$LDFLAGS $addld"
24989 if test "$addcflags" != "-I/usr/include"; then
24990 CPPFLAGS="$CPPFLAGS $addcflags"
24991 fi
24992
24993 cyassllibname=wolfssl
24994 my_ac_save_LIBS="$LIBS"
24995 LIBS="-l$cyassllibname -lm $LIBS"
24996
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24998$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000/* end confdefs.h. */
25001
25002
25003/* These aren't needed for detection and confuse WolfSSL.
25004 They are set up properly later if it is detected. */
25005#undef SIZEOF_LONG
25006#undef SIZEOF_LONG_LONG
25007#include <cyassl/ssl.h>
25008
25009int main (void)
25010{
25011
25012 return CyaSSL_Init();
25013
25014 ;
25015 return 0;
25016}
25017
25018_ACEOF
25019if ac_fn_c_try_link "$LINENO"; then :
25020
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25022$as_echo "yes" >&6; }
25023
25024$as_echo "#define USE_CYASSL 1" >>confdefs.h
25025
25026 USE_CYASSL=1
25027
25028 CYASSL_ENABLED=1
25029 USE_CYASSL="yes"
25030 curl_ssl_msg="enabled (WolfSSL)"
25031
25032else
25033
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25035$as_echo "no" >&6; }
25036 CPPFLAGS=$_cppflags
25037 LDFLAGS=$_ldflags
25038 cyassllib=""
25039
25040fi
25041rm -f core conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
25043 LIBS="$my_ac_save_LIBS"
25044 fi
25045
25046 if test "x$USE_CYASSL" = "xyes"; then
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
25048$as_echo "$as_me: detected $cyassllibname" >&6;}
25049
25050 # The cast to long int works around a bug in the HP C Compiler
25051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25053# This bug is HP SR number 8606223364.
25054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
25055$as_echo_n "checking size of long long... " >&6; }
25056if ${ac_cv_sizeof_long_long+:} false; then :
25057 $as_echo_n "(cached) " >&6
25058else
25059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
25060
25061else
25062 if test "$ac_cv_type_long_long" = yes; then
25063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25065as_fn_error 77 "cannot compute sizeof (long long)
25066See \`config.log' for more details" "$LINENO" 5; }
25067 else
25068 ac_cv_sizeof_long_long=0
25069 fi
25070fi
25071
25072fi
25073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
25074$as_echo "$ac_cv_sizeof_long_long" >&6; }
25075
25076
25077
25078cat >>confdefs.h <<_ACEOF
25079#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25080_ACEOF
25081
25082
25083
25084 for ac_header in cyassl/options.h
25085do :
25086 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
25087if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
25088 cat >>confdefs.h <<_ACEOF
25089#define HAVE_CYASSL_OPTIONS_H 1
25090_ACEOF
25091
25092fi
25093
25094done
25095
25096
25097 for ac_header in cyassl/error-ssl.h
25098do :
25099 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
25100if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
25101 cat >>confdefs.h <<_ACEOF
25102#define HAVE_CYASSL_ERROR_SSL_H 1
25103_ACEOF
25104
25105fi
25106
25107done
25108
25109
25110 LIBS="-l$cyassllibname -lm $LIBS"
25111
25112 if test "x$cyassllibname" = "xwolfssl"; then
25113 for ac_func in wolfSSLv3_client_method \
25114 wolfSSL_CTX_UseSupportedCurve \
25115 wolfSSL_get_peer_certificate \
25116 wolfSSL_UseALPN
25117do :
25118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25119ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25120if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25121 cat >>confdefs.h <<_ACEOF
25122#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25123_ACEOF
25124
25125fi
25126done
25127
25128 else
25129 for ac_func in CyaSSL_CTX_UseSupportedCurve \
25130 CyaSSL_get_peer_certificate
25131do :
25132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25133ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25134if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25135 cat >>confdefs.h <<_ACEOF
25136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25137_ACEOF
25138
25139fi
25140done
25141
25142 fi
25143
25144 if test -n "$cyassllib"; then
25145 if test "x$cross_compiling" != "xyes"; then
25146 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
25147 export LD_LIBRARY_PATH
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
25149$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
25150 fi
25151 fi
25152
25153 fi
25154
25155 fi
25156fi
25157
25158
25159OPT_NSS=no
25160
25161
25162# Check whether --with-nss was given.
25163if test "${with_nss+set}" = set; then :
25164 withval=$with_nss; OPT_NSS=$withval
25165fi
25166
25167
25168if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25169
25170 if test X"$OPT_NSS" != Xno; then
25171
25172 addld=""
25173 addlib=""
25174 addcflags=""
25175 nssprefix=""
25176 version=""
25177
25178 if test "x$OPT_NSS" = "xyes"; then
25179
25180
25181 if test -n "$PKG_CONFIG"; then
25182 PKGCONFIG="$PKG_CONFIG"
25183 else
25184 if test -n "$ac_tool_prefix"; then
25185 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25186set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25188$as_echo_n "checking for $ac_word... " >&6; }
25189if ${ac_cv_path_PKGCONFIG+:} false; then :
25190 $as_echo_n "(cached) " >&6
25191else
25192 case $PKGCONFIG in
25193 [\\/]* | ?:[\\/]*)
25194 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25195 ;;
25196 *)
25197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198as_dummy="$PATH:/usr/bin:/usr/local/bin"
25199for as_dir in $as_dummy
25200do
25201 IFS=$as_save_IFS
25202 test -z "$as_dir" && as_dir=.
25203 for ac_exec_ext in '' $ac_executable_extensions; do
25204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25205 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25207 break 2
25208 fi
25209done
25210 done
25211IFS=$as_save_IFS
25212
25213 ;;
25214esac
25215fi
25216PKGCONFIG=$ac_cv_path_PKGCONFIG
25217if test -n "$PKGCONFIG"; then
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25219$as_echo "$PKGCONFIG" >&6; }
25220else
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25222$as_echo "no" >&6; }
25223fi
25224
25225
25226fi
25227if test -z "$ac_cv_path_PKGCONFIG"; then
25228 ac_pt_PKGCONFIG=$PKGCONFIG
25229 # Extract the first word of "pkg-config", so it can be a program name with args.
25230set dummy pkg-config; ac_word=$2
25231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25232$as_echo_n "checking for $ac_word... " >&6; }
25233if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25234 $as_echo_n "(cached) " >&6
25235else
25236 case $ac_pt_PKGCONFIG in
25237 [\\/]* | ?:[\\/]*)
25238 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25239 ;;
25240 *)
25241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25242as_dummy="$PATH:/usr/bin:/usr/local/bin"
25243for as_dir in $as_dummy
25244do
25245 IFS=$as_save_IFS
25246 test -z "$as_dir" && as_dir=.
25247 for ac_exec_ext in '' $ac_executable_extensions; do
25248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25249 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25251 break 2
25252 fi
25253done
25254 done
25255IFS=$as_save_IFS
25256
25257 ;;
25258esac
25259fi
25260ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25261if test -n "$ac_pt_PKGCONFIG"; then
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25263$as_echo "$ac_pt_PKGCONFIG" >&6; }
25264else
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25266$as_echo "no" >&6; }
25267fi
25268
25269 if test "x$ac_pt_PKGCONFIG" = x; then
25270 PKGCONFIG="no"
25271 else
25272 case $cross_compiling:$ac_tool_warned in
25273yes:)
25274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25276ac_tool_warned=yes ;;
25277esac
25278 PKGCONFIG=$ac_pt_PKGCONFIG
25279 fi
25280else
25281 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25282fi
25283
25284 fi
25285
25286 if test "x$PKGCONFIG" != "xno"; then
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25288$as_echo_n "checking for nss options with pkg-config... " >&6; }
25289 itexists=`
25290 if test -n ""; then
25291 PKG_CONFIG_LIBDIR=""
25292 export PKG_CONFIG_LIBDIR
25293 fi
25294 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25295
25296 if test -z "$itexists"; then
25297 PKGCONFIG="no"
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25299$as_echo "no" >&6; }
25300 else
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25302$as_echo "found" >&6; }
25303 fi
25304 fi
25305
25306
25307 if test "$PKGCONFIG" != "no" ; then
25308 addlib=`$PKGCONFIG --libs nss`
25309 addcflags=`$PKGCONFIG --cflags nss`
25310 version=`$PKGCONFIG --modversion nss`
25311 nssprefix=`$PKGCONFIG --variable=prefix nss`
25312 else
25313
25314 check=`nss-config --version 2>/dev/null`
25315 if test -n "$check"; then
25316 addlib=`nss-config --libs`
25317 addcflags=`nss-config --cflags`
25318 version=`nss-config --version`
25319 nssprefix=`nss-config --prefix`
25320 else
25321 addlib="-lnss3"
25322 addcflags=""
25323 version="unknown"
25324 fi
25325 fi
25326 else
25327 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25328 if test -f "$NSS_PCDIR/nss.pc"; then
25329
25330 if test -n "$PKG_CONFIG"; then
25331 PKGCONFIG="$PKG_CONFIG"
25332 else
25333 if test -n "$ac_tool_prefix"; then
25334 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25335set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25337$as_echo_n "checking for $ac_word... " >&6; }
25338if ${ac_cv_path_PKGCONFIG+:} false; then :
25339 $as_echo_n "(cached) " >&6
25340else
25341 case $PKGCONFIG in
25342 [\\/]* | ?:[\\/]*)
25343 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25344 ;;
25345 *)
25346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25347as_dummy="$PATH:/usr/bin:/usr/local/bin"
25348for as_dir in $as_dummy
25349do
25350 IFS=$as_save_IFS
25351 test -z "$as_dir" && as_dir=.
25352 for ac_exec_ext in '' $ac_executable_extensions; do
25353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25354 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25356 break 2
25357 fi
25358done
25359 done
25360IFS=$as_save_IFS
25361
25362 ;;
25363esac
25364fi
25365PKGCONFIG=$ac_cv_path_PKGCONFIG
25366if test -n "$PKGCONFIG"; then
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25368$as_echo "$PKGCONFIG" >&6; }
25369else
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25371$as_echo "no" >&6; }
25372fi
25373
25374
25375fi
25376if test -z "$ac_cv_path_PKGCONFIG"; then
25377 ac_pt_PKGCONFIG=$PKGCONFIG
25378 # Extract the first word of "pkg-config", so it can be a program name with args.
25379set dummy pkg-config; ac_word=$2
25380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25381$as_echo_n "checking for $ac_word... " >&6; }
25382if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25383 $as_echo_n "(cached) " >&6
25384else
25385 case $ac_pt_PKGCONFIG in
25386 [\\/]* | ?:[\\/]*)
25387 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25388 ;;
25389 *)
25390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25391as_dummy="$PATH:/usr/bin:/usr/local/bin"
25392for as_dir in $as_dummy
25393do
25394 IFS=$as_save_IFS
25395 test -z "$as_dir" && as_dir=.
25396 for ac_exec_ext in '' $ac_executable_extensions; do
25397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25398 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25400 break 2
25401 fi
25402done
25403 done
25404IFS=$as_save_IFS
25405
25406 ;;
25407esac
25408fi
25409ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25410if test -n "$ac_pt_PKGCONFIG"; then
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25412$as_echo "$ac_pt_PKGCONFIG" >&6; }
25413else
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25415$as_echo "no" >&6; }
25416fi
25417
25418 if test "x$ac_pt_PKGCONFIG" = x; then
25419 PKGCONFIG="no"
25420 else
25421 case $cross_compiling:$ac_tool_warned in
25422yes:)
25423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25425ac_tool_warned=yes ;;
25426esac
25427 PKGCONFIG=$ac_pt_PKGCONFIG
25428 fi
25429else
25430 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25431fi
25432
25433 fi
25434
25435 if test "x$PKGCONFIG" != "xno"; then
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25437$as_echo_n "checking for nss options with pkg-config... " >&6; }
25438 itexists=`
25439 if test -n "$NSS_PCDIR"; then
25440 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25441 export PKG_CONFIG_LIBDIR
25442 fi
25443 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25444
25445 if test -z "$itexists"; then
25446 PKGCONFIG="no"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448$as_echo "no" >&6; }
25449 else
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25451$as_echo "found" >&6; }
25452 fi
25453 fi
25454
25455 if test "$PKGCONFIG" != "no" ; then
25456 addld=`
25457 if test -n "$NSS_PCDIR"; then
25458 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25459 export PKG_CONFIG_LIBDIR
25460 fi
25461 $PKGCONFIG --libs-only-L nss`
25462 addlib=`
25463 if test -n "$NSS_PCDIR"; then
25464 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25465 export PKG_CONFIG_LIBDIR
25466 fi
25467 $PKGCONFIG --libs-only-l nss`
25468 addcflags=`
25469 if test -n "$NSS_PCDIR"; then
25470 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25471 export PKG_CONFIG_LIBDIR
25472 fi
25473 $PKGCONFIG --cflags nss`
25474 version=`
25475 if test -n "$NSS_PCDIR"; then
25476 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25477 export PKG_CONFIG_LIBDIR
25478 fi
25479 $PKGCONFIG --modversion nss`
25480 nssprefix=`
25481 if test -n "$NSS_PCDIR"; then
25482 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25483 export PKG_CONFIG_LIBDIR
25484 fi
25485 $PKGCONFIG --variable=prefix nss`
25486 fi
25487 fi
25488 fi
25489
25490 if test -z "$addlib"; then
25491 # Without pkg-config, we'll kludge in some defaults
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25493$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25494 addld="-L$OPT_NSS/lib"
25495 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25496 addcflags="-I$OPT_NSS/include"
25497 version="unknown"
25498 nssprefix=$OPT_NSS
25499 fi
25500
25501 CLEANLDFLAGS="$LDFLAGS"
25502 CLEANLIBS="$LIBS"
25503 CLEANCPPFLAGS="$CPPFLAGS"
25504
25505 LDFLAGS="$addld $LDFLAGS"
25506 LIBS="$addlib $LIBS"
25507 if test "$addcflags" != "-I/usr/include"; then
25508 CPPFLAGS="$CPPFLAGS $addcflags"
25509 fi
25510
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25512$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25513if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25514 $as_echo_n "(cached) " >&6
25515else
25516 ac_check_lib_save_LIBS=$LIBS
25517LIBS="-lnss3 $LIBS"
25518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519/* end confdefs.h. */
25520
25521
25522#ifdef __cplusplus
25523extern "C"
25524#endif
25525char SSL_VersionRangeSet ();
25526int main (void)
25527{
25528return SSL_VersionRangeSet ();
25529 ;
25530 return 0;
25531}
25532_ACEOF
25533if ac_fn_c_try_link "$LINENO"; then :
25534 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25535else
25536 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25537fi
25538rm -f core conftest.err conftest.$ac_objext \
25539 conftest$ac_exeext conftest.$ac_ext
25540LIBS=$ac_check_lib_save_LIBS
25541fi
25542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25543$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25544if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25545
25546
25547$as_echo "#define USE_NSS 1" >>confdefs.h
25548
25549 USE_NSS=1
25550
25551 USE_NSS="yes"
25552 NSS_ENABLED=1
25553 curl_ssl_msg="enabled (NSS)"
25554
25555else
25556
25557 LDFLAGS="$CLEANLDFLAGS"
25558 LIBS="$CLEANLIBS"
25559 CPPFLAGS="$CLEANCPPFLAGS"
25560
25561fi
25562
25563
25564 if test "x$USE_NSS" = "xyes"; then
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25566$as_echo "$as_me: detected NSS version $version" >&6;}
25567
25568 NSS_LIBS=$addlib
25569
25570
25571 if test "x$cross_compiling" != "xyes"; then
25572 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25573 export LD_LIBRARY_PATH
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25575$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25576 fi
25577
25578 fi
25579 fi
25580fi
25581OPT_AXTLS=off
25582
25583
25584# Check whether --with-axtls was given.
25585if test "${with_axtls+set}" = set; then :
25586 withval=$with_axtls; OPT_AXTLS=$withval
25587fi
25588
25589
25590if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25591 if test X"$OPT_AXTLS" != Xno; then
25592 CLEANLDFLAGS="$LDFLAGS"
25593 CLEANCPPFLAGS="$CPPFLAGS"
25594 CLEANLIBS="$LIBS"
25595
25596 case "$OPT_AXTLS" in
25597 yes)
25598 PREFIX_AXTLS=/usr/local
25599 LIB_AXTLS="$PREFIX_AXTLS/lib"
25600 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25601 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25602 ;;
25603 off)
25604 PREFIX_AXTLS=
25605 ;;
25606 *)
25607 PREFIX_AXTLS=$OPT_AXTLS
25608 LIB_AXTLS="$PREFIX_AXTLS/lib"
25609 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25610 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25611 ;;
25612 esac
25613
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25615$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25616if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25617 $as_echo_n "(cached) " >&6
25618else
25619 ac_check_lib_save_LIBS=$LIBS
25620LIBS="-laxtls $LIBS"
25621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25622/* end confdefs.h. */
25623
25624
25625#ifdef __cplusplus
25626extern "C"
25627#endif
25628char ssl_version ();
25629int main (void)
25630{
25631return ssl_version ();
25632 ;
25633 return 0;
25634}
25635_ACEOF
25636if ac_fn_c_try_link "$LINENO"; then :
25637 ac_cv_lib_axtls_ssl_version=yes
25638else
25639 ac_cv_lib_axtls_ssl_version=no
25640fi
25641rm -f core conftest.err conftest.$ac_objext \
25642 conftest$ac_exeext conftest.$ac_ext
25643LIBS=$ac_check_lib_save_LIBS
25644fi
25645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25646$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25647if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25648
25649 LIBS="-laxtls $LIBS"
25650
25651$as_echo "#define USE_AXTLS 1" >>confdefs.h
25652
25653 USE_AXTLS=1
25654
25655 AXTLS_ENABLED=1
25656 USE_AXTLS="yes"
25657 curl_ssl_msg="enabled (axTLS)"
25658
25659 if test "x$cross_compiling" != "xyes"; then
25660 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25661 export LD_LIBRARY_PATH
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25663$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25664 fi
25665
25666else
25667
25668 LDFLAGS="$CLEANLDFLAGS"
25669 CPPFLAGS="$CLEANCPPFLAGS"
25670 LIBS="$CLEANLIBS"
25671
25672fi
25673
25674 fi
25675fi
25676
25677if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25679$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25680 { $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
25681$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;}
25682else
25683 # SSL is enabled, genericly
25684
25685 SSL_ENABLED="1"
25686fi
25687
25688
25689
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25692$as_echo_n "checking default CA cert bundle/path... " >&6; }
25693
25694
25695# Check whether --with-ca-bundle was given.
25696if test "${with_ca_bundle+set}" = set; then :
25697 withval=$with_ca_bundle;
25698 want_ca="$withval"
25699 if test "x$want_ca" = "xyes"; then
25700 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25701 fi
25702
25703else
25704 want_ca="unset"
25705fi
25706
25707
25708# Check whether --with-ca-path was given.
25709if test "${with_ca_path+set}" = set; then :
25710 withval=$with_ca_path;
25711 want_capath="$withval"
25712 if test "x$want_capath" = "xyes"; then
25713 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25714 fi
25715
25716else
25717 want_capath="unset"
25718fi
25719
25720
25721 ca_warning=" (warning: certs not found)"
25722 capath_warning=" (warning: certs not found)"
25723 check_capath=""
25724
25725 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25726 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25727 ca="$want_ca"
25728 capath="$want_capath"
25729 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25730 ca="$want_ca"
25731 capath="no"
25732 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25733 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25734 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25735 fi
25736 capath="$want_capath"
25737 ca="no"
25738 else
25739 ca="no"
25740 capath="no"
25741 if test "x$cross_compiling" != "xyes"; then
25742 if test "x$want_ca" = "xunset"; then
25743 if test "x$prefix" != xNONE; then
25744 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25745 else
25746 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25747 fi
25748
25749 for a in /etc/ssl/certs/ca-certificates.crt \
25750 /etc/pki/tls/certs/ca-bundle.crt \
25751 /usr/share/ssl/certs/ca-bundle.crt \
25752 /usr/local/share/certs/ca-root-nss.crt \
25753 /etc/ssl/cert.pem \
25754 "$cac"; do
25755 if test -f "$a"; then
25756 ca="$a"
25757 break
25758 fi
25759 done
25760 fi
25761 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25762 "x$OPENSSL_ENABLED" = "x1"; then
25763 check_capath="/etc/ssl/certs/"
25764 fi
25765 else
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25767$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25768 fi
25769 fi
25770
25771 if test "x$ca" = "xno" || test -f "$ca"; then
25772 ca_warning=""
25773 fi
25774
25775 if test "x$capath" != "xno"; then
25776 check_capath="$capath"
25777 fi
25778
25779 if test ! -z "$check_capath"; then
25780 for a in "$check_capath"; do
25781 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
25782 if test "x$capath" = "xno"; then
25783 capath="$a"
25784 fi
25785 capath_warning=""
25786 break
25787 fi
25788 done
25789 fi
25790
25791 if test "x$capath" = "xno"; then
25792 capath_warning=""
25793 fi
25794
25795 if test "x$ca" != "xno"; then
25796 CURL_CA_BUNDLE='"'$ca'"'
25797
25798cat >>confdefs.h <<_ACEOF
25799#define CURL_CA_BUNDLE "$ca"
25800_ACEOF
25801
25802
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25804$as_echo "$ca" >&6; }
25805 fi
25806 if test "x$capath" != "xno"; then
25807 CURL_CA_PATH="\"$capath\""
25808
25809cat >>confdefs.h <<_ACEOF
25810#define CURL_CA_PATH "$capath"
25811_ACEOF
25812
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25814$as_echo "$capath (capath)" >&6; }
25815 fi
25816 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818$as_echo "no" >&6; }
25819 fi
25820
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25822$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25823
25824# Check whether --with-ca-fallback was given.
25825if test "${with_ca_fallback+set}" = set; then :
25826 withval=$with_ca_fallback;
25827 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25828 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25829 fi
25830
25831else
25832 with_ca_fallback="no"
25833fi
25834
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25836$as_echo "$with_ca_fallback" >&6; }
25837 if test "x$with_ca_fallback" = "xyes"; then
25838 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25839 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25840 fi
25841
25842cat >>confdefs.h <<_ACEOF
25843#define CURL_CA_FALLBACK 1
25844_ACEOF
25845
25846 fi
25847
25848
25849
25850
25851# Check whether --with-libpsl was given.
25852if test "${with_libpsl+set}" = set; then :
25853 withval=$with_libpsl; with_libpsl=$withval
25854else
25855 with_libpsl=yes
25856fi
25857
25858if test $with_libpsl != "no"; then
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25860$as_echo_n "checking for library containing psl_builtin... " >&6; }
25861if ${ac_cv_search_psl_builtin+:} false; then :
25862 $as_echo_n "(cached) " >&6
25863else
25864 ac_func_search_save_LIBS=$LIBS
25865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866/* end confdefs.h. */
25867
25868
25869#ifdef __cplusplus
25870extern "C"
25871#endif
25872char psl_builtin ();
25873int main (void)
25874{
25875return psl_builtin ();
25876 ;
25877 return 0;
25878}
25879_ACEOF
25880for ac_lib in '' psl; do
25881 if test -z "$ac_lib"; then
25882 ac_res="none required"
25883 else
25884 ac_res=-l$ac_lib
25885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25886 fi
25887 if ac_fn_c_try_link "$LINENO"; then :
25888 ac_cv_search_psl_builtin=$ac_res
25889fi
25890rm -f core conftest.err conftest.$ac_objext \
25891 conftest$ac_exeext
25892 if ${ac_cv_search_psl_builtin+:} false; then :
25893 break
25894fi
25895done
25896if ${ac_cv_search_psl_builtin+:} false; then :
25897
25898else
25899 ac_cv_search_psl_builtin=no
25900fi
25901rm conftest.$ac_ext
25902LIBS=$ac_func_search_save_LIBS
25903fi
25904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25905$as_echo "$ac_cv_search_psl_builtin" >&6; }
25906ac_res=$ac_cv_search_psl_builtin
25907if test "$ac_res" != no; then :
25908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25909 curl_psl_msg="yes";
25910
25911$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25912
25913
25914else
25915 curl_psl_msg="no (libpsl not found)";
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25917$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25918
25919
25920fi
25921
25922fi
25923 if test "$curl_psl_msg" = "yes"; then
25924 USE_LIBPSL_TRUE=
25925 USE_LIBPSL_FALSE='#'
25926else
25927 USE_LIBPSL_TRUE='#'
25928 USE_LIBPSL_FALSE=
25929fi
25930
25931
25932
25933OPT_LIBMETALINK=no
25934
25935
25936# Check whether --with-libmetalink was given.
25937if test "${with_libmetalink+set}" = set; then :
25938 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25939fi
25940
25941
25942if test X"$OPT_LIBMETALINK" != Xno; then
25943
25944 addld=""
25945 addlib=""
25946 addcflags=""
25947 version=""
25948 libmetalinklib=""
25949
25950 PKGTEST="no"
25951 if test "x$OPT_LIBMETALINK" = "xyes"; then
25952 PKGTEST="yes"
25953
25954 if test -n "$PKG_CONFIG"; then
25955 PKGCONFIG="$PKG_CONFIG"
25956 else
25957 if test -n "$ac_tool_prefix"; then
25958 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25959set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25961$as_echo_n "checking for $ac_word... " >&6; }
25962if ${ac_cv_path_PKGCONFIG+:} false; then :
25963 $as_echo_n "(cached) " >&6
25964else
25965 case $PKGCONFIG in
25966 [\\/]* | ?:[\\/]*)
25967 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25968 ;;
25969 *)
25970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25971as_dummy="$PATH:/usr/bin:/usr/local/bin"
25972for as_dir in $as_dummy
25973do
25974 IFS=$as_save_IFS
25975 test -z "$as_dir" && as_dir=.
25976 for ac_exec_ext in '' $ac_executable_extensions; do
25977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25978 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25980 break 2
25981 fi
25982done
25983 done
25984IFS=$as_save_IFS
25985
25986 ;;
25987esac
25988fi
25989PKGCONFIG=$ac_cv_path_PKGCONFIG
25990if test -n "$PKGCONFIG"; then
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25992$as_echo "$PKGCONFIG" >&6; }
25993else
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995$as_echo "no" >&6; }
25996fi
25997
25998
25999fi
26000if test -z "$ac_cv_path_PKGCONFIG"; then
26001 ac_pt_PKGCONFIG=$PKGCONFIG
26002 # Extract the first word of "pkg-config", so it can be a program name with args.
26003set dummy pkg-config; ac_word=$2
26004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26005$as_echo_n "checking for $ac_word... " >&6; }
26006if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26007 $as_echo_n "(cached) " >&6
26008else
26009 case $ac_pt_PKGCONFIG in
26010 [\\/]* | ?:[\\/]*)
26011 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26012 ;;
26013 *)
26014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26015as_dummy="$PATH:/usr/bin:/usr/local/bin"
26016for as_dir in $as_dummy
26017do
26018 IFS=$as_save_IFS
26019 test -z "$as_dir" && as_dir=.
26020 for ac_exec_ext in '' $ac_executable_extensions; do
26021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26022 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26024 break 2
26025 fi
26026done
26027 done
26028IFS=$as_save_IFS
26029
26030 ;;
26031esac
26032fi
26033ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26034if test -n "$ac_pt_PKGCONFIG"; then
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26036$as_echo "$ac_pt_PKGCONFIG" >&6; }
26037else
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26039$as_echo "no" >&6; }
26040fi
26041
26042 if test "x$ac_pt_PKGCONFIG" = x; then
26043 PKGCONFIG="no"
26044 else
26045 case $cross_compiling:$ac_tool_warned in
26046yes:)
26047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26049ac_tool_warned=yes ;;
26050esac
26051 PKGCONFIG=$ac_pt_PKGCONFIG
26052 fi
26053else
26054 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26055fi
26056
26057 fi
26058
26059 if test "x$PKGCONFIG" != "xno"; then
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26061$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26062 itexists=`
26063 if test -n ""; then
26064 PKG_CONFIG_LIBDIR=""
26065 export PKG_CONFIG_LIBDIR
26066 fi
26067 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26068
26069 if test -z "$itexists"; then
26070 PKGCONFIG="no"
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072$as_echo "no" >&6; }
26073 else
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26075$as_echo "found" >&6; }
26076 fi
26077 fi
26078
26079 else
26080 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
26082$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
26083 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
26084 PKGTEST="yes"
26085 fi
26086 if test "$PKGTEST" = "yes"; then
26087
26088 if test -n "$PKG_CONFIG"; then
26089 PKGCONFIG="$PKG_CONFIG"
26090 else
26091 if test -n "$ac_tool_prefix"; then
26092 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26093set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26095$as_echo_n "checking for $ac_word... " >&6; }
26096if ${ac_cv_path_PKGCONFIG+:} false; then :
26097 $as_echo_n "(cached) " >&6
26098else
26099 case $PKGCONFIG in
26100 [\\/]* | ?:[\\/]*)
26101 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26102 ;;
26103 *)
26104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26105as_dummy="$PATH:/usr/bin:/usr/local/bin"
26106for as_dir in $as_dummy
26107do
26108 IFS=$as_save_IFS
26109 test -z "$as_dir" && as_dir=.
26110 for ac_exec_ext in '' $ac_executable_extensions; do
26111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26112 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26114 break 2
26115 fi
26116done
26117 done
26118IFS=$as_save_IFS
26119
26120 ;;
26121esac
26122fi
26123PKGCONFIG=$ac_cv_path_PKGCONFIG
26124if test -n "$PKGCONFIG"; then
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26126$as_echo "$PKGCONFIG" >&6; }
26127else
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26129$as_echo "no" >&6; }
26130fi
26131
26132
26133fi
26134if test -z "$ac_cv_path_PKGCONFIG"; then
26135 ac_pt_PKGCONFIG=$PKGCONFIG
26136 # Extract the first word of "pkg-config", so it can be a program name with args.
26137set dummy pkg-config; ac_word=$2
26138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26139$as_echo_n "checking for $ac_word... " >&6; }
26140if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26141 $as_echo_n "(cached) " >&6
26142else
26143 case $ac_pt_PKGCONFIG in
26144 [\\/]* | ?:[\\/]*)
26145 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26146 ;;
26147 *)
26148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26149as_dummy="$PATH:/usr/bin:/usr/local/bin"
26150for as_dir in $as_dummy
26151do
26152 IFS=$as_save_IFS
26153 test -z "$as_dir" && as_dir=.
26154 for ac_exec_ext in '' $ac_executable_extensions; do
26155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26156 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26158 break 2
26159 fi
26160done
26161 done
26162IFS=$as_save_IFS
26163
26164 ;;
26165esac
26166fi
26167ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26168if test -n "$ac_pt_PKGCONFIG"; then
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26170$as_echo "$ac_pt_PKGCONFIG" >&6; }
26171else
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26173$as_echo "no" >&6; }
26174fi
26175
26176 if test "x$ac_pt_PKGCONFIG" = x; then
26177 PKGCONFIG="no"
26178 else
26179 case $cross_compiling:$ac_tool_warned in
26180yes:)
26181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26183ac_tool_warned=yes ;;
26184esac
26185 PKGCONFIG=$ac_pt_PKGCONFIG
26186 fi
26187else
26188 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26189fi
26190
26191 fi
26192
26193 if test "x$PKGCONFIG" != "xno"; then
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26195$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26196 itexists=`
26197 if test -n "$LIBMETALINK_PCDIR"; then
26198 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26199 export PKG_CONFIG_LIBDIR
26200 fi
26201 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26202
26203 if test -z "$itexists"; then
26204 PKGCONFIG="no"
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206$as_echo "no" >&6; }
26207 else
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26209$as_echo "found" >&6; }
26210 fi
26211 fi
26212
26213 fi
26214 fi
26215 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26216 addlib=`
26217 if test -n "$LIBMETALINK_PCDIR"; then
26218 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26219 export PKG_CONFIG_LIBDIR
26220 fi
26221 $PKGCONFIG --libs-only-l libmetalink`
26222 addld=`
26223 if test -n "$LIBMETALINK_PCDIR"; then
26224 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26225 export PKG_CONFIG_LIBDIR
26226 fi
26227 $PKGCONFIG --libs-only-L libmetalink`
26228 addcflags=`
26229 if test -n "$LIBMETALINK_PCDIR"; then
26230 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26231 export PKG_CONFIG_LIBDIR
26232 fi
26233 $PKGCONFIG --cflags-only-I libmetalink`
26234 version=`
26235 if test -n "$LIBMETALINK_PCDIR"; then
26236 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26237 export PKG_CONFIG_LIBDIR
26238 fi
26239 $PKGCONFIG --modversion libmetalink`
26240 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26241 fi
26242 if test -n "$addlib"; then
26243
26244 clean_CPPFLAGS="$CPPFLAGS"
26245 clean_LDFLAGS="$LDFLAGS"
26246 clean_LIBS="$LIBS"
26247 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26248 LDFLAGS="$clean_LDFLAGS $addld"
26249 LIBS="$addlib $clean_LIBS"
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26251$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253/* end confdefs.h. */
26254
26255
26256# include <metalink/metalink.h>
26257
26258int main (void)
26259{
26260
26261 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26262 return 1;
26263
26264 ;
26265 return 0;
26266}
26267
26268_ACEOF
26269if ac_fn_c_try_link "$LINENO"; then :
26270
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26272$as_echo "yes ($version)" >&6; }
26273 want_metalink="yes"
26274
26275else
26276
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26278$as_echo "no ($version)" >&6; }
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26280$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26281 want_metalink="no"
26282
26283fi
26284rm -f core conftest.err conftest.$ac_objext \
26285 conftest$ac_exeext conftest.$ac_ext
26286 CPPFLAGS="$clean_CPPFLAGS"
26287 LDFLAGS="$clean_LDFLAGS"
26288 LIBS="$clean_LIBS"
26289 if test "$want_metalink" = "yes"; then
26290
26291$as_echo "#define USE_METALINK 1" >>confdefs.h
26292
26293 LIBMETALINK_LIBS=$addlib
26294 LIBMETALINK_LDFLAGS=$addld
26295 LIBMETALINK_CPPFLAGS=$addcflags
26296
26297
26298
26299 curl_mtlnk_msg="enabled"
26300 fi
26301
26302 fi
26303fi
26304
26305
26306OPT_LIBSSH2=off
26307
26308# Check whether --with-libssh2 was given.
26309if test "${with_libssh2+set}" = set; then :
26310 withval=$with_libssh2; OPT_LIBSSH2=$withval
26311fi
26312
26313
26314if test X"$OPT_LIBSSH2" != Xno; then
26315 CLEANLDFLAGS="$LDFLAGS"
26316 CLEANCPPFLAGS="$CPPFLAGS"
26317 CLEANLIBS="$LIBS"
26318
26319 case "$OPT_LIBSSH2" in
26320 yes)
26321
26322 if test -n "$PKG_CONFIG"; then
26323 PKGCONFIG="$PKG_CONFIG"
26324 else
26325 if test -n "$ac_tool_prefix"; then
26326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26327set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26329$as_echo_n "checking for $ac_word... " >&6; }
26330if ${ac_cv_path_PKGCONFIG+:} false; then :
26331 $as_echo_n "(cached) " >&6
26332else
26333 case $PKGCONFIG in
26334 [\\/]* | ?:[\\/]*)
26335 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26336 ;;
26337 *)
26338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26339as_dummy="$PATH:/usr/bin:/usr/local/bin"
26340for as_dir in $as_dummy
26341do
26342 IFS=$as_save_IFS
26343 test -z "$as_dir" && as_dir=.
26344 for ac_exec_ext in '' $ac_executable_extensions; do
26345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26346 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26348 break 2
26349 fi
26350done
26351 done
26352IFS=$as_save_IFS
26353
26354 ;;
26355esac
26356fi
26357PKGCONFIG=$ac_cv_path_PKGCONFIG
26358if test -n "$PKGCONFIG"; then
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26360$as_echo "$PKGCONFIG" >&6; }
26361else
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26363$as_echo "no" >&6; }
26364fi
26365
26366
26367fi
26368if test -z "$ac_cv_path_PKGCONFIG"; then
26369 ac_pt_PKGCONFIG=$PKGCONFIG
26370 # Extract the first word of "pkg-config", so it can be a program name with args.
26371set dummy pkg-config; ac_word=$2
26372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26373$as_echo_n "checking for $ac_word... " >&6; }
26374if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26375 $as_echo_n "(cached) " >&6
26376else
26377 case $ac_pt_PKGCONFIG in
26378 [\\/]* | ?:[\\/]*)
26379 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26380 ;;
26381 *)
26382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26383as_dummy="$PATH:/usr/bin:/usr/local/bin"
26384for as_dir in $as_dummy
26385do
26386 IFS=$as_save_IFS
26387 test -z "$as_dir" && as_dir=.
26388 for ac_exec_ext in '' $ac_executable_extensions; do
26389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26390 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26392 break 2
26393 fi
26394done
26395 done
26396IFS=$as_save_IFS
26397
26398 ;;
26399esac
26400fi
26401ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26402if test -n "$ac_pt_PKGCONFIG"; then
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26404$as_echo "$ac_pt_PKGCONFIG" >&6; }
26405else
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26407$as_echo "no" >&6; }
26408fi
26409
26410 if test "x$ac_pt_PKGCONFIG" = x; then
26411 PKGCONFIG="no"
26412 else
26413 case $cross_compiling:$ac_tool_warned in
26414yes:)
26415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26417ac_tool_warned=yes ;;
26418esac
26419 PKGCONFIG=$ac_pt_PKGCONFIG
26420 fi
26421else
26422 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26423fi
26424
26425 fi
26426
26427 if test "x$PKGCONFIG" != "xno"; then
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26429$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26430 itexists=`
26431 if test -n ""; then
26432 PKG_CONFIG_LIBDIR=""
26433 export PKG_CONFIG_LIBDIR
26434 fi
26435 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26436
26437 if test -z "$itexists"; then
26438 PKGCONFIG="no"
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26440$as_echo "no" >&6; }
26441 else
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26443$as_echo "found" >&6; }
26444 fi
26445 fi
26446
26447
26448 if test "$PKGCONFIG" != "no" ; then
26449 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26450 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26451 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26452 version=`$PKGCONFIG --modversion libssh2`
26453 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26454 fi
26455
26456 ;;
26457 off)
26458 ;;
26459 *)
26460 PREFIX_SSH2=$OPT_LIBSSH2
26461 ;;
26462 esac
26463
26464 if test -n "$PREFIX_SSH2"; then
26465 LIB_SSH2="-lssh2"
26466 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26467 CPP_SSH2=-I${PREFIX_SSH2}/include
26468 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26469 fi
26470
26471 LDFLAGS="$LDFLAGS $LD_SSH2"
26472 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26473 LIBS="$LIB_SSH2 $LIBS"
26474
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26476$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26477if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26478 $as_echo_n "(cached) " >&6
26479else
26480 ac_check_lib_save_LIBS=$LIBS
26481LIBS="-lssh2 $LIBS"
26482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26483/* end confdefs.h. */
26484
26485
26486#ifdef __cplusplus
26487extern "C"
26488#endif
26489char libssh2_channel_open_ex ();
26490int main (void)
26491{
26492return libssh2_channel_open_ex ();
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497if ac_fn_c_try_link "$LINENO"; then :
26498 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26499else
26500 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26501fi
26502rm -f core conftest.err conftest.$ac_objext \
26503 conftest$ac_exeext conftest.$ac_ext
26504LIBS=$ac_check_lib_save_LIBS
26505fi
26506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26507$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26508if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26509 cat >>confdefs.h <<_ACEOF
26510#define HAVE_LIBSSH2 1
26511_ACEOF
26512
26513 LIBS="-lssh2 $LIBS"
26514
26515fi
26516
26517
26518 for ac_header in libssh2.h
26519do :
26520 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26521if test "x$ac_cv_header_libssh2_h" = xyes; then :
26522 cat >>confdefs.h <<_ACEOF
26523#define HAVE_LIBSSH2_H 1
26524_ACEOF
26525 curl_ssh_msg="enabled (libSSH2)"
26526 LIBSSH2_ENABLED=1
26527
26528$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26529
26530 USE_LIBSSH2=1
26531
26532
26533fi
26534
26535done
26536
26537
26538 if test X"$OPT_LIBSSH2" != Xoff &&
26539 test "$LIBSSH2_ENABLED" != "1"; then
26540 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26541 fi
26542
26543 if test "$LIBSSH2_ENABLED" = "1"; then
26544 if test -n "$DIR_SSH2"; then
26545
26546 if test "x$cross_compiling" != "xyes"; then
26547 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26548 export LD_LIBRARY_PATH
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26550$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26551 fi
26552 fi
26553 else
26554 LDFLAGS=$CLEANLDFLAGS
26555 CPPFLAGS=$CLEANCPPFLAGS
26556 LIBS=$CLEANLIBS
26557 fi
26558fi
26559
26560
26561OPT_LIBRTMP=off
26562
26563# Check whether --with-librtmp was given.
26564if test "${with_librtmp+set}" = set; then :
26565 withval=$with_librtmp; OPT_LIBRTMP=$withval
26566fi
26567
26568
26569if test X"$OPT_LIBRTMP" != Xno; then
26570 CLEANLDFLAGS="$LDFLAGS"
26571 CLEANCPPFLAGS="$CPPFLAGS"
26572 CLEANLIBS="$LIBS"
26573
26574 case "$OPT_LIBRTMP" in
26575 yes)
26576
26577 if test -n "$PKG_CONFIG"; then
26578 PKGCONFIG="$PKG_CONFIG"
26579 else
26580 if test -n "$ac_tool_prefix"; then
26581 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26582set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26584$as_echo_n "checking for $ac_word... " >&6; }
26585if ${ac_cv_path_PKGCONFIG+:} false; then :
26586 $as_echo_n "(cached) " >&6
26587else
26588 case $PKGCONFIG in
26589 [\\/]* | ?:[\\/]*)
26590 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26591 ;;
26592 *)
26593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26594as_dummy="$PATH:/usr/bin:/usr/local/bin"
26595for as_dir in $as_dummy
26596do
26597 IFS=$as_save_IFS
26598 test -z "$as_dir" && as_dir=.
26599 for ac_exec_ext in '' $ac_executable_extensions; do
26600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26601 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26603 break 2
26604 fi
26605done
26606 done
26607IFS=$as_save_IFS
26608
26609 ;;
26610esac
26611fi
26612PKGCONFIG=$ac_cv_path_PKGCONFIG
26613if test -n "$PKGCONFIG"; then
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26615$as_echo "$PKGCONFIG" >&6; }
26616else
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26618$as_echo "no" >&6; }
26619fi
26620
26621
26622fi
26623if test -z "$ac_cv_path_PKGCONFIG"; then
26624 ac_pt_PKGCONFIG=$PKGCONFIG
26625 # Extract the first word of "pkg-config", so it can be a program name with args.
26626set dummy pkg-config; ac_word=$2
26627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26628$as_echo_n "checking for $ac_word... " >&6; }
26629if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26630 $as_echo_n "(cached) " >&6
26631else
26632 case $ac_pt_PKGCONFIG in
26633 [\\/]* | ?:[\\/]*)
26634 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26635 ;;
26636 *)
26637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26638as_dummy="$PATH:/usr/bin:/usr/local/bin"
26639for as_dir in $as_dummy
26640do
26641 IFS=$as_save_IFS
26642 test -z "$as_dir" && as_dir=.
26643 for ac_exec_ext in '' $ac_executable_extensions; do
26644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26645 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26647 break 2
26648 fi
26649done
26650 done
26651IFS=$as_save_IFS
26652
26653 ;;
26654esac
26655fi
26656ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26657if test -n "$ac_pt_PKGCONFIG"; then
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26659$as_echo "$ac_pt_PKGCONFIG" >&6; }
26660else
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26662$as_echo "no" >&6; }
26663fi
26664
26665 if test "x$ac_pt_PKGCONFIG" = x; then
26666 PKGCONFIG="no"
26667 else
26668 case $cross_compiling:$ac_tool_warned in
26669yes:)
26670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26672ac_tool_warned=yes ;;
26673esac
26674 PKGCONFIG=$ac_pt_PKGCONFIG
26675 fi
26676else
26677 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26678fi
26679
26680 fi
26681
26682 if test "x$PKGCONFIG" != "xno"; then
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26684$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26685 itexists=`
26686 if test -n ""; then
26687 PKG_CONFIG_LIBDIR=""
26688 export PKG_CONFIG_LIBDIR
26689 fi
26690 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26691
26692 if test -z "$itexists"; then
26693 PKGCONFIG="no"
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26695$as_echo "no" >&6; }
26696 else
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26698$as_echo "found" >&6; }
26699 fi
26700 fi
26701
26702
26703 if test "$PKGCONFIG" != "no" ; then
26704 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26705 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26706 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26707 version=`$PKGCONFIG --modversion librtmp`
26708 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26709 else
26710 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26711 fi
26712
26713 ;;
26714 off)
26715 LIB_RTMP="-lrtmp"
26716 ;;
26717 *)
26718 LIB_RTMP="-lrtmp"
26719 PREFIX_RTMP=$OPT_LIBRTMP
26720 ;;
26721 esac
26722
26723 if test -n "$PREFIX_RTMP"; then
26724 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26725 CPP_RTMP=-I${PREFIX_RTMP}/include
26726 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26727 fi
26728
26729 LDFLAGS="$LDFLAGS $LD_RTMP"
26730 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26731 LIBS="$LIB_RTMP $LIBS"
26732
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26734$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26735if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26736 $as_echo_n "(cached) " >&6
26737else
26738 ac_check_lib_save_LIBS=$LIBS
26739LIBS="-lrtmp $LIBS"
26740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741/* end confdefs.h. */
26742
26743
26744#ifdef __cplusplus
26745extern "C"
26746#endif
26747char RTMP_Init ();
26748int main (void)
26749{
26750return RTMP_Init ();
26751 ;
26752 return 0;
26753}
26754_ACEOF
26755if ac_fn_c_try_link "$LINENO"; then :
26756 ac_cv_lib_rtmp_RTMP_Init=yes
26757else
26758 ac_cv_lib_rtmp_RTMP_Init=no
26759fi
26760rm -f core conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
26762LIBS=$ac_check_lib_save_LIBS
26763fi
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26765$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26766if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26767
26768 for ac_header in librtmp/rtmp.h
26769do :
26770 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26771if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26772 cat >>confdefs.h <<_ACEOF
26773#define HAVE_LIBRTMP_RTMP_H 1
26774_ACEOF
26775 curl_rtmp_msg="enabled (librtmp)"
26776 LIBRTMP_ENABLED=1
26777
26778$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26779
26780 USE_LIBRTMP=1
26781
26782
26783fi
26784
26785done
26786
26787
26788else
26789 LDFLAGS=$CLEANLDFLAGS
26790 CPPFLAGS=$CLEANCPPFLAGS
26791 LIBS=$CLEANLIBS
26792
26793fi
26794
26795
26796 if test X"$OPT_LIBRTMP" != Xoff &&
26797 test "$LIBRTMP_ENABLED" != "1"; then
26798 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26799 fi
26800
26801fi
26802
26803
26804versioned_symbols_flavour=
26805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26806$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26807# Check whether --enable-versioned-symbols was given.
26808if test "${enable_versioned_symbols+set}" = set; then :
26809 enableval=$enable_versioned_symbols; case "$enableval" in
26810 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26811$as_echo "yes" >&6; }
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26813$as_echo_n "checking if libraries can be versioned... " >&6; }
26814 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26815 if test -z "$GLD"; then
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26817$as_echo "no" >&6; }
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26819$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26820 else
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26822$as_echo "yes" >&6; }
26823 if test "x$OPENSSL_ENABLED" = "x1"; then
26824 versioned_symbols_flavour="OPENSSL_"
26825 elif test "x$GNUTLS_ENABLED" = "x1"; then
26826 versioned_symbols_flavour="GNUTLS_"
26827 elif test "x$NSS_ENABLED" = "x1"; then
26828 versioned_symbols_flavour="NSS_"
26829 elif test "x$POLARSSL_ENABLED" = "x1"; then
26830 versioned_symbols_flavour="POLARSSL_"
26831 elif test "x$CYASSL_ENABLED" = "x1"; then
26832 versioned_symbols_flavour="CYASSL_"
26833 elif test "x$AXTLS_ENABLED" = "x1"; then
26834 versioned_symbols_flavour="AXTLS_"
26835 elif test "x$WINSSL_ENABLED" = "x1"; then
26836 versioned_symbols_flavour="WINSSL_"
26837 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26838 versioned_symbols_flavour="DARWINSSL_"
26839 else
26840 versioned_symbols_flavour=""
26841 fi
26842 versioned_symbols="yes"
26843 fi
26844 ;;
26845
26846 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26847$as_echo "no" >&6; }
26848 ;;
26849 esac
26850
26851else
26852
26853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26854$as_echo "no" >&6; }
26855
26856
26857fi
26858
26859
26860CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26861
26862 if test "x$versioned_symbols" = 'xyes'; then
26863 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26864 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26865else
26866 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26867 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26868fi
26869
26870
26871
26872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26873$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26874OPT_WINIDN="default"
26875
26876# Check whether --with-winidn was given.
26877if test "${with_winidn+set}" = set; then :
26878 withval=$with_winidn; OPT_WINIDN=$withval
26879fi
26880
26881case "$OPT_WINIDN" in
26882 no|default)
26883 want_winidn="no"
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885$as_echo "no" >&6; }
26886 ;;
26887 yes)
26888 want_winidn="yes"
26889 want_winidn_path="default"
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26891$as_echo "yes" >&6; }
26892 ;;
26893 *)
26894 want_winidn="yes"
26895 want_winidn_path="$withval"
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26897$as_echo "yes ($withval)" >&6; }
26898 ;;
26899esac
26900
26901if test "$want_winidn" = "yes"; then
26902 clean_CPPFLAGS="$CPPFLAGS"
26903 clean_LDFLAGS="$LDFLAGS"
26904 clean_LIBS="$LIBS"
26905 WINIDN_LIBS="-lnormaliz"
26906 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26907 #
26908 if test "$want_winidn_path" != "default"; then
26909 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26910 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26911 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26912 fi
26913 #
26914 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26915 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26916 LIBS="$WINIDN_LIBS $LIBS"
26917 #
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26919$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921/* end confdefs.h. */
26922
26923
26924 #include <windows.h>
26925
26926int main (void)
26927{
26928
26929 IdnToUnicode(0, NULL, 0, NULL, 0);
26930
26931 ;
26932 return 0;
26933}
26934
26935_ACEOF
26936if ac_fn_c_try_link "$LINENO"; then :
26937
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26939$as_echo "yes" >&6; }
26940 tst_links_winidn="yes"
26941
26942else
26943
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26945$as_echo "no" >&6; }
26946 tst_links_winidn="no"
26947
26948fi
26949rm -f core conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext conftest.$ac_ext
26951 #
26952 if test "$tst_links_winidn" = "yes"; then
26953
26954$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26955
26956
26957$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26958
26959 IDN_ENABLED=1
26960
26961 curl_idn_msg="enabled (Windows-native)"
26962 else
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26964$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26965 CPPFLAGS="$clean_CPPFLAGS"
26966 LDFLAGS="$clean_LDFLAGS"
26967 LIBS="$clean_LIBS"
26968 fi
26969fi
26970
26971
26972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26973$as_echo_n "checking whether to build with libidn2... " >&6; }
26974OPT_IDN="default"
26975
26976# Check whether --with-libidn2 was given.
26977if test "${with_libidn2+set}" = set; then :
26978 withval=$with_libidn2; OPT_IDN=$withval
26979fi
26980
26981case "$OPT_IDN" in
26982 no)
26983 want_idn="no"
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26985$as_echo "no" >&6; }
26986 ;;
26987 default)
26988 want_idn="yes"
26989 want_idn_path="default"
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26991$as_echo "(assumed) yes" >&6; }
26992 ;;
26993 yes)
26994 want_idn="yes"
26995 want_idn_path="default"
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26997$as_echo "yes" >&6; }
26998 ;;
26999 *)
27000 want_idn="yes"
27001 want_idn_path="$withval"
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27003$as_echo "yes ($withval)" >&6; }
27004 ;;
27005esac
27006
27007if test "$want_idn" = "yes"; then
27008 clean_CPPFLAGS="$CPPFLAGS"
27009 clean_LDFLAGS="$LDFLAGS"
27010 clean_LIBS="$LIBS"
27011 PKGCONFIG="no"
27012 #
27013 if test "$want_idn_path" != "default"; then
27014 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27015
27016 if test -n "$PKG_CONFIG"; then
27017 PKGCONFIG="$PKG_CONFIG"
27018 else
27019 if test -n "$ac_tool_prefix"; then
27020 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27021set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27023$as_echo_n "checking for $ac_word... " >&6; }
27024if ${ac_cv_path_PKGCONFIG+:} false; then :
27025 $as_echo_n "(cached) " >&6
27026else
27027 case $PKGCONFIG in
27028 [\\/]* | ?:[\\/]*)
27029 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27030 ;;
27031 *)
27032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27033as_dummy="$PATH:/usr/bin:/usr/local/bin"
27034for as_dir in $as_dummy
27035do
27036 IFS=$as_save_IFS
27037 test -z "$as_dir" && as_dir=.
27038 for ac_exec_ext in '' $ac_executable_extensions; do
27039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27040 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27042 break 2
27043 fi
27044done
27045 done
27046IFS=$as_save_IFS
27047
27048 ;;
27049esac
27050fi
27051PKGCONFIG=$ac_cv_path_PKGCONFIG
27052if test -n "$PKGCONFIG"; then
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27054$as_echo "$PKGCONFIG" >&6; }
27055else
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27057$as_echo "no" >&6; }
27058fi
27059
27060
27061fi
27062if test -z "$ac_cv_path_PKGCONFIG"; then
27063 ac_pt_PKGCONFIG=$PKGCONFIG
27064 # Extract the first word of "pkg-config", so it can be a program name with args.
27065set dummy pkg-config; ac_word=$2
27066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27067$as_echo_n "checking for $ac_word... " >&6; }
27068if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27069 $as_echo_n "(cached) " >&6
27070else
27071 case $ac_pt_PKGCONFIG in
27072 [\\/]* | ?:[\\/]*)
27073 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27074 ;;
27075 *)
27076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27077as_dummy="$PATH:/usr/bin:/usr/local/bin"
27078for as_dir in $as_dummy
27079do
27080 IFS=$as_save_IFS
27081 test -z "$as_dir" && as_dir=.
27082 for ac_exec_ext in '' $ac_executable_extensions; do
27083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27084 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27086 break 2
27087 fi
27088done
27089 done
27090IFS=$as_save_IFS
27091
27092 ;;
27093esac
27094fi
27095ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27096if test -n "$ac_pt_PKGCONFIG"; then
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27098$as_echo "$ac_pt_PKGCONFIG" >&6; }
27099else
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101$as_echo "no" >&6; }
27102fi
27103
27104 if test "x$ac_pt_PKGCONFIG" = x; then
27105 PKGCONFIG="no"
27106 else
27107 case $cross_compiling:$ac_tool_warned in
27108yes:)
27109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27111ac_tool_warned=yes ;;
27112esac
27113 PKGCONFIG=$ac_pt_PKGCONFIG
27114 fi
27115else
27116 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27117fi
27118
27119 fi
27120
27121 if test "x$PKGCONFIG" != "xno"; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27123$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27124 itexists=`
27125 if test -n "$IDN_PCDIR"; then
27126 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27127 export PKG_CONFIG_LIBDIR
27128 fi
27129 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27130
27131 if test -z "$itexists"; then
27132 PKGCONFIG="no"
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27134$as_echo "no" >&6; }
27135 else
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27137$as_echo "found" >&6; }
27138 fi
27139 fi
27140
27141 if test "$PKGCONFIG" != "no"; then
27142 IDN_LIBS=`
27143 if test -n "$IDN_PCDIR"; then
27144 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27145 export PKG_CONFIG_LIBDIR
27146 fi
27147 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27148 IDN_LDFLAGS=`
27149 if test -n "$IDN_PCDIR"; then
27150 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27151 export PKG_CONFIG_LIBDIR
27152 fi
27153 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27154 IDN_CPPFLAGS=`
27155 if test -n "$IDN_PCDIR"; then
27156 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27157 export PKG_CONFIG_LIBDIR
27158 fi
27159 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27160 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27161 else
27162 IDN_LIBS="-lidn2"
27163 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27164 IDN_CPPFLAGS="-I$want_idn_path/include"
27165 IDN_DIR="$want_idn_path/lib$libsuff"
27166 fi
27167 else
27168
27169 if test -n "$PKG_CONFIG"; then
27170 PKGCONFIG="$PKG_CONFIG"
27171 else
27172 if test -n "$ac_tool_prefix"; then
27173 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27174set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27176$as_echo_n "checking for $ac_word... " >&6; }
27177if ${ac_cv_path_PKGCONFIG+:} false; then :
27178 $as_echo_n "(cached) " >&6
27179else
27180 case $PKGCONFIG in
27181 [\\/]* | ?:[\\/]*)
27182 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27183 ;;
27184 *)
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186as_dummy="$PATH:/usr/bin:/usr/local/bin"
27187for as_dir in $as_dummy
27188do
27189 IFS=$as_save_IFS
27190 test -z "$as_dir" && as_dir=.
27191 for ac_exec_ext in '' $ac_executable_extensions; do
27192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27193 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27195 break 2
27196 fi
27197done
27198 done
27199IFS=$as_save_IFS
27200
27201 ;;
27202esac
27203fi
27204PKGCONFIG=$ac_cv_path_PKGCONFIG
27205if test -n "$PKGCONFIG"; then
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27207$as_echo "$PKGCONFIG" >&6; }
27208else
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27210$as_echo "no" >&6; }
27211fi
27212
27213
27214fi
27215if test -z "$ac_cv_path_PKGCONFIG"; then
27216 ac_pt_PKGCONFIG=$PKGCONFIG
27217 # Extract the first word of "pkg-config", so it can be a program name with args.
27218set dummy pkg-config; ac_word=$2
27219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27220$as_echo_n "checking for $ac_word... " >&6; }
27221if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27222 $as_echo_n "(cached) " >&6
27223else
27224 case $ac_pt_PKGCONFIG in
27225 [\\/]* | ?:[\\/]*)
27226 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27227 ;;
27228 *)
27229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27230as_dummy="$PATH:/usr/bin:/usr/local/bin"
27231for as_dir in $as_dummy
27232do
27233 IFS=$as_save_IFS
27234 test -z "$as_dir" && as_dir=.
27235 for ac_exec_ext in '' $ac_executable_extensions; do
27236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27237 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27239 break 2
27240 fi
27241done
27242 done
27243IFS=$as_save_IFS
27244
27245 ;;
27246esac
27247fi
27248ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27249if test -n "$ac_pt_PKGCONFIG"; then
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27251$as_echo "$ac_pt_PKGCONFIG" >&6; }
27252else
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27254$as_echo "no" >&6; }
27255fi
27256
27257 if test "x$ac_pt_PKGCONFIG" = x; then
27258 PKGCONFIG="no"
27259 else
27260 case $cross_compiling:$ac_tool_warned in
27261yes:)
27262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27264ac_tool_warned=yes ;;
27265esac
27266 PKGCONFIG=$ac_pt_PKGCONFIG
27267 fi
27268else
27269 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27270fi
27271
27272 fi
27273
27274 if test "x$PKGCONFIG" != "xno"; then
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27276$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27277 itexists=`
27278 if test -n ""; then
27279 PKG_CONFIG_LIBDIR=""
27280 export PKG_CONFIG_LIBDIR
27281 fi
27282 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27283
27284 if test -z "$itexists"; then
27285 PKGCONFIG="no"
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27287$as_echo "no" >&6; }
27288 else
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27290$as_echo "found" >&6; }
27291 fi
27292 fi
27293
27294 if test "$PKGCONFIG" != "no"; then
27295 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27296 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27297 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27298 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27299 else
27300 IDN_LIBS="-lidn2"
27301 fi
27302 fi
27303 #
27304 if test "$PKGCONFIG" != "no"; then
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27306$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27308$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27310$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27312$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27313 else
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27315$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27317$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27319$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27321$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27322 fi
27323 #
27324 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27325 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27326 LIBS="$IDN_LIBS $LIBS"
27327 #
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27329$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27331/* end confdefs.h. */
27332
27333
27334#define idn2_lookup_ul innocuous_idn2_lookup_ul
27335#ifdef __STDC__
27336# include <limits.h>
27337#else
27338# include <assert.h>
27339#endif
27340#undef idn2_lookup_ul
27341#ifdef __cplusplus
27342extern "C"
27343#endif
27344char idn2_lookup_ul ();
27345#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27346choke me
27347#endif
27348
27349int main (void)
27350{
27351return idn2_lookup_ul ();
27352 ;
27353 return 0;
27354}
27355
27356_ACEOF
27357if ac_fn_c_try_link "$LINENO"; then :
27358
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27360$as_echo "yes" >&6; }
27361 tst_links_libidn="yes"
27362
27363else
27364
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366$as_echo "no" >&6; }
27367 tst_links_libidn="no"
27368
27369fi
27370rm -f core conftest.err conftest.$ac_objext \
27371 conftest$ac_exeext conftest.$ac_ext
27372 #
27373 for ac_header in idn2.h
27374do :
27375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27378 cat >>confdefs.h <<_ACEOF
27379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27380_ACEOF
27381
27382fi
27383
27384done
27385
27386
27387 if test "$tst_links_libidn" = "yes"; then
27388
27389$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27390
27391
27392 IDN_ENABLED=1
27393
27394 curl_idn_msg="enabled (libidn2)"
27395 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27396 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27397 export LD_LIBRARY_PATH
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27399$as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27400 fi
27401 else
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27403$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27404 CPPFLAGS="$clean_CPPFLAGS"
27405 LDFLAGS="$clean_LDFLAGS"
27406 LIBS="$clean_LIBS"
27407 fi
27408fi
27409
27410
27411
27412
27413
27414OPT_H2="yes"
27415
27416if test "x$disable_http" = "xyes"; then
27417 # without HTTP, nghttp2 is no use
27418 OPT_H2="no"
27419fi
27420
27421
27422# Check whether --with-nghttp2 was given.
27423if test "${with_nghttp2+set}" = set; then :
27424 withval=$with_nghttp2; OPT_H2=$withval
27425fi
27426
27427case "$OPT_H2" in
27428 no)
27429 want_h2="no"
27430 ;;
27431 yes)
27432 want_h2="default"
27433 want_h2_path=""
27434 ;;
27435 *)
27436 want_h2="yes"
27437 want_h2_path="$withval/lib/pkgconfig"
27438 ;;
27439esac
27440
27441curl_h2_msg="disabled (--with-nghttp2)"
27442if test X"$want_h2" != Xno; then
27443 CLEANLDFLAGS="$LDFLAGS"
27444 CLEANCPPFLAGS="$CPPFLAGS"
27445 CLEANLIBS="$LIBS"
27446
27447
27448 if test -n "$PKG_CONFIG"; then
27449 PKGCONFIG="$PKG_CONFIG"
27450 else
27451 if test -n "$ac_tool_prefix"; then
27452 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27453set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27455$as_echo_n "checking for $ac_word... " >&6; }
27456if ${ac_cv_path_PKGCONFIG+:} false; then :
27457 $as_echo_n "(cached) " >&6
27458else
27459 case $PKGCONFIG in
27460 [\\/]* | ?:[\\/]*)
27461 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27462 ;;
27463 *)
27464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27465as_dummy="$PATH:/usr/bin:/usr/local/bin"
27466for as_dir in $as_dummy
27467do
27468 IFS=$as_save_IFS
27469 test -z "$as_dir" && as_dir=.
27470 for ac_exec_ext in '' $ac_executable_extensions; do
27471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27472 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27474 break 2
27475 fi
27476done
27477 done
27478IFS=$as_save_IFS
27479
27480 ;;
27481esac
27482fi
27483PKGCONFIG=$ac_cv_path_PKGCONFIG
27484if test -n "$PKGCONFIG"; then
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27486$as_echo "$PKGCONFIG" >&6; }
27487else
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27489$as_echo "no" >&6; }
27490fi
27491
27492
27493fi
27494if test -z "$ac_cv_path_PKGCONFIG"; then
27495 ac_pt_PKGCONFIG=$PKGCONFIG
27496 # Extract the first word of "pkg-config", so it can be a program name with args.
27497set dummy pkg-config; ac_word=$2
27498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27499$as_echo_n "checking for $ac_word... " >&6; }
27500if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27501 $as_echo_n "(cached) " >&6
27502else
27503 case $ac_pt_PKGCONFIG in
27504 [\\/]* | ?:[\\/]*)
27505 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27506 ;;
27507 *)
27508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27509as_dummy="$PATH:/usr/bin:/usr/local/bin"
27510for as_dir in $as_dummy
27511do
27512 IFS=$as_save_IFS
27513 test -z "$as_dir" && as_dir=.
27514 for ac_exec_ext in '' $ac_executable_extensions; do
27515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27516 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27518 break 2
27519 fi
27520done
27521 done
27522IFS=$as_save_IFS
27523
27524 ;;
27525esac
27526fi
27527ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27528if test -n "$ac_pt_PKGCONFIG"; then
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27530$as_echo "$ac_pt_PKGCONFIG" >&6; }
27531else
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27533$as_echo "no" >&6; }
27534fi
27535
27536 if test "x$ac_pt_PKGCONFIG" = x; then
27537 PKGCONFIG="no"
27538 else
27539 case $cross_compiling:$ac_tool_warned in
27540yes:)
27541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27543ac_tool_warned=yes ;;
27544esac
27545 PKGCONFIG=$ac_pt_PKGCONFIG
27546 fi
27547else
27548 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27549fi
27550
27551 fi
27552
27553 if test "x$PKGCONFIG" != "xno"; then
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27555$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27556 itexists=`
27557 if test -n "$want_h2_path"; then
27558 PKG_CONFIG_LIBDIR="$want_h2_path"
27559 export PKG_CONFIG_LIBDIR
27560 fi
27561 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27562
27563 if test -z "$itexists"; then
27564 PKGCONFIG="no"
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27566$as_echo "no" >&6; }
27567 else
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27569$as_echo "found" >&6; }
27570 fi
27571 fi
27572
27573
27574 if test "$PKGCONFIG" != "no" ; then
27575 LIB_H2=`
27576 if test -n "$want_h2_path"; then
27577 PKG_CONFIG_LIBDIR="$want_h2_path"
27578 export PKG_CONFIG_LIBDIR
27579 fi
27580
27581 $PKGCONFIG --libs-only-l libnghttp2`
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27583$as_echo "$as_me: -l is $LIB_H2" >&6;}
27584
27585 CPP_H2=`
27586 if test -n "$want_h2_path"; then
27587 PKG_CONFIG_LIBDIR="$want_h2_path"
27588 export PKG_CONFIG_LIBDIR
27589 fi
27590 $PKGCONFIG --cflags-only-I libnghttp2`
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27592$as_echo "$as_me: -I is $CPP_H2" >&6;}
27593
27594 LD_H2=`
27595 if test -n "$want_h2_path"; then
27596 PKG_CONFIG_LIBDIR="$want_h2_path"
27597 export PKG_CONFIG_LIBDIR
27598 fi
27599
27600 $PKGCONFIG --libs-only-L libnghttp2`
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27602$as_echo "$as_me: -L is $LD_H2" >&6;}
27603
27604 LDFLAGS="$LDFLAGS $LD_H2"
27605 CPPFLAGS="$CPPFLAGS $CPP_H2"
27606 LIBS="$LIB_H2 $LIBS"
27607
27608 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27609 # >= 1.0.0
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27611$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27612if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27613 $as_echo_n "(cached) " >&6
27614else
27615 ac_check_lib_save_LIBS=$LIBS
27616LIBS="-lnghttp2 $LIBS"
27617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618/* end confdefs.h. */
27619
27620
27621#ifdef __cplusplus
27622extern "C"
27623#endif
27624char nghttp2_option_set_no_recv_client_magic ();
27625int main (void)
27626{
27627return nghttp2_option_set_no_recv_client_magic ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
27632if ac_fn_c_try_link "$LINENO"; then :
27633 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27634else
27635 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27636fi
27637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
27639LIBS=$ac_check_lib_save_LIBS
27640fi
27641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27642$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27643if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27644
27645 for ac_header in nghttp2/nghttp2.h
27646do :
27647 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27648if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27649 cat >>confdefs.h <<_ACEOF
27650#define HAVE_NGHTTP2_NGHTTP2_H 1
27651_ACEOF
27652 curl_h2_msg="enabled (nghttp2)"
27653 NGHTTP2_ENABLED=1
27654
27655$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27656
27657 USE_NGHTTP2=1
27658
27659
27660fi
27661
27662done
27663
27664
27665else
27666 LDFLAGS=$CLEANLDFLAGS
27667 CPPFLAGS=$CLEANCPPFLAGS
27668 LIBS=$CLEANLIBS
27669
27670fi
27671
27672
27673 else
27674 if test X"$want_h2" != Xdefault; then
27675 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27676 fi
27677 fi
27678
27679fi
27680
27681
27682OPT_ZSH_FPATH=default
27683
27684# Check whether --with-zsh-functions-dir was given.
27685if test "${with_zsh_functions_dir+set}" = set; then :
27686 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27687fi
27688
27689case "$OPT_ZSH_FPATH" in
27690 no)
27691 ;;
27692 default|yes)
27693 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27694
27695 ;;
27696 *)
27697 ZSH_FUNCTIONS_DIR="$withval"
27698
27699 ;;
27700esac
27701
27702
27703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27704$as_echo_n "checking for ANSI C header files... " >&6; }
27705if ${ac_cv_header_stdc+:} false; then :
27706 $as_echo_n "(cached) " >&6
27707else
27708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27709/* end confdefs.h. */
27710#include <stdlib.h>
27711#include <stdarg.h>
27712#include <string.h>
27713#include <float.h>
27714
27715int main (void)
27716{
27717
27718 ;
27719 return 0;
27720}
27721_ACEOF
27722if ac_fn_c_try_compile "$LINENO"; then :
27723 ac_cv_header_stdc=yes
27724else
27725 ac_cv_header_stdc=no
27726fi
27727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728
27729if test $ac_cv_header_stdc = yes; then
27730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732/* end confdefs.h. */
27733#include <string.h>
27734
27735_ACEOF
27736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27737 $EGREP "memchr" >/dev/null 2>&1; then :
27738
27739else
27740 ac_cv_header_stdc=no
27741fi
27742rm -f conftest*
27743
27744fi
27745
27746if test $ac_cv_header_stdc = yes; then
27747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27749/* end confdefs.h. */
27750#include <stdlib.h>
27751
27752_ACEOF
27753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27754 $EGREP "free" >/dev/null 2>&1; then :
27755
27756else
27757 ac_cv_header_stdc=no
27758fi
27759rm -f conftest*
27760
27761fi
27762
27763if test $ac_cv_header_stdc = yes; then
27764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27765 if test "$cross_compiling" = yes; then :
27766 :
27767else
27768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27769/* end confdefs.h. */
27770#include <ctype.h>
27771#include <stdlib.h>
27772#if ((' ' & 0x0FF) == 0x020)
27773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27775#else
27776# define ISLOWER(c) \
27777 (('a' <= (c) && (c) <= 'i') \
27778 || ('j' <= (c) && (c) <= 'r') \
27779 || ('s' <= (c) && (c) <= 'z'))
27780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27781#endif
27782
27783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27784int
27785main ()
27786{
27787 int i;
27788 for (i = 0; i < 256; i++)
27789 if (XOR (islower (i), ISLOWER (i))
27790 || toupper (i) != TOUPPER (i))
27791 return 2;
27792 return 0;
27793}
27794_ACEOF
27795if ac_fn_c_try_run "$LINENO"; then :
27796
27797else
27798 ac_cv_header_stdc=no
27799fi
27800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27801 conftest.$ac_objext conftest.beam conftest.$ac_ext
27802fi
27803
27804fi
27805fi
27806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27807$as_echo "$ac_cv_header_stdc" >&6; }
27808if test $ac_cv_header_stdc = yes; then
27809
27810$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27811
27812fi
27813
27814
27815
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27817$as_echo_n "checking for malloc.h... " >&6; }
27818if ${curl_cv_header_malloc_h+:} false; then :
27819 $as_echo_n "(cached) " >&6
27820else
27821
27822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823/* end confdefs.h. */
27824
27825
27826#include <malloc.h>
27827
27828int main (void)
27829{
27830
27831 void *p = malloc(10);
27832 void *q = calloc(10,10);
27833 free(p);
27834 free(q);
27835
27836 ;
27837 return 0;
27838}
27839
27840_ACEOF
27841if ac_fn_c_try_compile "$LINENO"; then :
27842
27843 curl_cv_header_malloc_h="yes"
27844
27845else
27846
27847 curl_cv_header_malloc_h="no"
27848
27849fi
27850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27851
27852fi
27853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27854$as_echo "$curl_cv_header_malloc_h" >&6; }
27855 if test "$curl_cv_header_malloc_h" = "yes"; then
27856
27857cat >>confdefs.h <<_ACEOF
27858#define HAVE_MALLOC_H 1
27859_ACEOF
27860
27861 #
27862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863/* end confdefs.h. */
27864
27865
27866#include <stdlib.h>
27867
27868int main (void)
27869{
27870
27871 void *p = malloc(10);
27872 void *q = calloc(10,10);
27873 free(p);
27874 free(q);
27875
27876 ;
27877 return 0;
27878}
27879
27880_ACEOF
27881if ac_fn_c_try_compile "$LINENO"; then :
27882
27883 curl_cv_need_header_malloc_h="no"
27884
27885else
27886
27887 curl_cv_need_header_malloc_h="yes"
27888
27889fi
27890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27891 #
27892 case "$curl_cv_need_header_malloc_h" in
27893 yes)
27894
27895cat >>confdefs.h <<_ACEOF
27896#define NEED_MALLOC_H 1
27897_ACEOF
27898
27899 ;;
27900 esac
27901 fi
27902
27903
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27905$as_echo_n "checking for memory.h... " >&6; }
27906if ${curl_cv_header_memory_h+:} false; then :
27907 $as_echo_n "(cached) " >&6
27908else
27909
27910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27911/* end confdefs.h. */
27912
27913
27914#include <memory.h>
27915
27916int main (void)
27917{
27918
27919 void *p = malloc(10);
27920 void *q = calloc(10,10);
27921 free(p);
27922 free(q);
27923
27924 ;
27925 return 0;
27926}
27927
27928_ACEOF
27929if ac_fn_c_try_compile "$LINENO"; then :
27930
27931 curl_cv_header_memory_h="yes"
27932
27933else
27934
27935 curl_cv_header_memory_h="no"
27936
27937fi
27938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939
27940fi
27941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27942$as_echo "$curl_cv_header_memory_h" >&6; }
27943 if test "$curl_cv_header_memory_h" = "yes"; then
27944
27945cat >>confdefs.h <<_ACEOF
27946#define HAVE_MEMORY_H 1
27947_ACEOF
27948
27949 #
27950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951/* end confdefs.h. */
27952
27953
27954#include <stdlib.h>
27955
27956int main (void)
27957{
27958
27959 void *p = malloc(10);
27960 void *q = calloc(10,10);
27961 free(p);
27962 free(q);
27963
27964 ;
27965 return 0;
27966}
27967
27968_ACEOF
27969if ac_fn_c_try_compile "$LINENO"; then :
27970
27971 curl_cv_need_header_memory_h="no"
27972
27973else
27974
27975 curl_cv_need_header_memory_h="yes"
27976
27977fi
27978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27979 #
27980 case "$curl_cv_need_header_memory_h" in
27981 yes)
27982
27983cat >>confdefs.h <<_ACEOF
27984#define NEED_MEMORY_H 1
27985_ACEOF
27986
27987 ;;
27988 esac
27989 fi
27990
27991
27992for ac_header in sys/types.h \
27993 sys/time.h \
27994 sys/select.h \
27995 sys/socket.h \
27996 sys/ioctl.h \
27997 sys/uio.h \
27998 assert.h \
27999 unistd.h \
28000 stdlib.h \
28001 limits.h \
28002 arpa/inet.h \
28003 net/if.h \
28004 netinet/in.h \
28005 sys/un.h \
28006 netinet/tcp.h \
28007 netdb.h \
28008 sys/sockio.h \
28009 sys/stat.h \
28010 sys/param.h \
28011 termios.h \
28012 termio.h \
28013 sgtty.h \
28014 fcntl.h \
28015 alloca.h \
28016 time.h \
28017 io.h \
28018 pwd.h \
28019 utime.h \
28020 sys/utime.h \
28021 sys/poll.h \
28022 poll.h \
28023 socket.h \
28024 sys/resource.h \
28025 libgen.h \
28026 locale.h \
28027 errno.h \
28028 stdbool.h \
28029 arpa/tftp.h \
28030 sys/filio.h \
28031 sys/wait.h \
28032 setjmp.h
28033do :
28034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28035ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28036#ifdef HAVE_SYS_TYPES_H
28037#include <sys/types.h>
28038#endif
28039#ifdef HAVE_SYS_TIME_H
28040#include <sys/time.h>
28041#endif
28042#ifdef HAVE_SYS_SELECT_H
28043#include <sys/select.h>
28044#endif
28045#ifdef HAVE_SYS_SOCKET_H
28046#include <sys/socket.h>
28047#endif
28048#ifdef HAVE_NETINET_IN_H
28049#include <netinet/in.h>
28050#endif
28051#ifdef HAVE_SYS_UN_H
28052#include <sys/un.h>
28053#endif
28054
28055
28056"
28057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28058 cat >>confdefs.h <<_ACEOF
28059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28060_ACEOF
28061
28062fi
28063
28064done
28065
28066
28067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28068$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28069if ${ac_cv_c_const+:} false; then :
28070 $as_echo_n "(cached) " >&6
28071else
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073/* end confdefs.h. */
28074
28075int main (void)
28076{
28077
28078#ifndef __cplusplus
28079 /* Ultrix mips cc rejects this sort of thing. */
28080 typedef int charset[2];
28081 const charset cs = { 0, 0 };
28082 /* SunOS 4.1.1 cc rejects this. */
28083 char const *const *pcpcc;
28084 char **ppc;
28085 /* NEC SVR4.0.2 mips cc rejects this. */
28086 struct point {int x, y;};
28087 static struct point const zero = {0,0};
28088 /* AIX XL C 1.02.0.0 rejects this.
28089 It does not let you subtract one const X* pointer from another in
28090 an arm of an if-expression whose if-part is not a constant
28091 expression */
28092 const char *g = "string";
28093 pcpcc = &g + (g ? g-g : 0);
28094 /* HPUX 7.0 cc rejects these. */
28095 ++pcpcc;
28096 ppc = (char**) pcpcc;
28097 pcpcc = (char const *const *) ppc;
28098 { /* SCO 3.2v4 cc rejects this sort of thing. */
28099 char tx;
28100 char *t = &tx;
28101 char const *s = 0 ? (char *) 0 : (char const *) 0;
28102
28103 *t++ = 0;
28104 if (s) return 0;
28105 }
28106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28107 int x[] = {25, 17};
28108 const int *foo = &x[0];
28109 ++foo;
28110 }
28111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28112 typedef const int *iptr;
28113 iptr p = 0;
28114 ++p;
28115 }
28116 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28118 struct s { int j; const int *ap[3]; } bx;
28119 struct s *b = &bx; b->j = 5;
28120 }
28121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28122 const int foo = 10;
28123 if (!foo) return 0;
28124 }
28125 return !cs[0] && !zero.x;
28126#endif
28127
28128 ;
28129 return 0;
28130}
28131_ACEOF
28132if ac_fn_c_try_compile "$LINENO"; then :
28133 ac_cv_c_const=yes
28134else
28135 ac_cv_c_const=no
28136fi
28137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28138fi
28139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28140$as_echo "$ac_cv_c_const" >&6; }
28141if test $ac_cv_c_const = no; then
28142
28143$as_echo "#define const /**/" >>confdefs.h
28144
28145fi
28146
28147
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28149$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28150if ${curl_cv_variadic_macros_c99+:} false; then :
28151 $as_echo_n "(cached) " >&6
28152else
28153
28154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28155/* end confdefs.h. */
28156
28157
28158#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28159#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28160 int fun3(int arg1, int arg2, int arg3);
28161 int fun2(int arg1, int arg2);
28162 int fun3(int arg1, int arg2, int arg3)
28163 { return arg1 + arg2 + arg3; }
28164 int fun2(int arg1, int arg2)
28165 { return arg1 + arg2; }
28166
28167int main (void)
28168{
28169
28170 int res3 = c99_vmacro3(1, 2, 3);
28171 int res2 = c99_vmacro2(1, 2);
28172
28173 ;
28174 return 0;
28175}
28176
28177_ACEOF
28178if ac_fn_c_try_compile "$LINENO"; then :
28179
28180 curl_cv_variadic_macros_c99="yes"
28181
28182else
28183
28184 curl_cv_variadic_macros_c99="no"
28185
28186fi
28187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188
28189fi
28190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28191$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28192 case "$curl_cv_variadic_macros_c99" in
28193 yes)
28194
28195cat >>confdefs.h <<_ACEOF
28196#define HAVE_VARIADIC_MACROS_C99 1
28197_ACEOF
28198
28199 ;;
28200 esac
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28202$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28203if ${curl_cv_variadic_macros_gcc+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205else
28206
28207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208/* end confdefs.h. */
28209
28210
28211#define gcc_vmacro3(first, args...) fun3(first, args)
28212#define gcc_vmacro2(first, args...) fun2(first, args)
28213 int fun3(int arg1, int arg2, int arg3);
28214 int fun2(int arg1, int arg2);
28215 int fun3(int arg1, int arg2, int arg3)
28216 { return arg1 + arg2 + arg3; }
28217 int fun2(int arg1, int arg2)
28218 { return arg1 + arg2; }
28219
28220int main (void)
28221{
28222
28223 int res3 = gcc_vmacro3(1, 2, 3);
28224 int res2 = gcc_vmacro2(1, 2);
28225
28226 ;
28227 return 0;
28228}
28229
28230_ACEOF
28231if ac_fn_c_try_compile "$LINENO"; then :
28232
28233 curl_cv_variadic_macros_gcc="yes"
28234
28235else
28236
28237 curl_cv_variadic_macros_gcc="no"
28238
28239fi
28240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241
28242fi
28243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28244$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28245 case "$curl_cv_variadic_macros_gcc" in
28246 yes)
28247
28248cat >>confdefs.h <<_ACEOF
28249#define HAVE_VARIADIC_MACROS_GCC 1
28250_ACEOF
28251
28252 ;;
28253 esac
28254
28255ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28256if test "x$ac_cv_type_size_t" = xyes; then :
28257
28258else
28259
28260cat >>confdefs.h <<_ACEOF
28261#define size_t unsigned int
28262_ACEOF
28263
28264fi
28265
28266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28267$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28268if ${ac_cv_header_time+:} false; then :
28269 $as_echo_n "(cached) " >&6
28270else
28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272/* end confdefs.h. */
28273#include <sys/types.h>
28274#include <sys/time.h>
28275#include <time.h>
28276
28277int main (void)
28278{
28279if ((struct tm *) 0)
28280return 0;
28281 ;
28282 return 0;
28283}
28284_ACEOF
28285if ac_fn_c_try_compile "$LINENO"; then :
28286 ac_cv_header_time=yes
28287else
28288 ac_cv_header_time=no
28289fi
28290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291fi
28292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28293$as_echo "$ac_cv_header_time" >&6; }
28294if test $ac_cv_header_time = yes; then
28295
28296$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28297
28298fi
28299
28300
28301 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28302do :
28303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28306 cat >>confdefs.h <<_ACEOF
28307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28308_ACEOF
28309
28310fi
28311
28312done
28313
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28315$as_echo_n "checking for struct timeval... " >&6; }
28316if ${curl_cv_struct_timeval+:} false; then :
28317 $as_echo_n "(cached) " >&6
28318else
28319
28320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321/* end confdefs.h. */
28322
28323
28324#undef inline
28325#ifdef HAVE_WINDOWS_H
28326#ifndef WIN32_LEAN_AND_MEAN
28327#define WIN32_LEAN_AND_MEAN
28328#endif
28329#include <windows.h>
28330#ifdef HAVE_WINSOCK2_H
28331#include <winsock2.h>
28332#else
28333#ifdef HAVE_WINSOCK_H
28334#include <winsock.h>
28335#endif
28336#endif
28337#endif
28338#ifdef HAVE_SYS_TYPES_H
28339#include <sys/types.h>
28340#endif
28341#ifdef HAVE_SYS_TIME_H
28342#include <sys/time.h>
28343#ifdef TIME_WITH_SYS_TIME
28344#include <time.h>
28345#endif
28346#else
28347#ifdef HAVE_TIME_H
28348#include <time.h>
28349#endif
28350#endif
28351#ifdef HAVE_SYS_SOCKET_H
28352#include <sys/socket.h>
28353#endif
28354
28355int main (void)
28356{
28357
28358 struct timeval ts;
28359 ts.tv_sec = 0;
28360 ts.tv_usec = 0;
28361
28362 ;
28363 return 0;
28364}
28365
28366_ACEOF
28367if ac_fn_c_try_compile "$LINENO"; then :
28368
28369 curl_cv_struct_timeval="yes"
28370
28371else
28372
28373 curl_cv_struct_timeval="no"
28374
28375fi
28376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377
28378fi
28379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28380$as_echo "$curl_cv_struct_timeval" >&6; }
28381 case "$curl_cv_struct_timeval" in
28382 yes)
28383
28384cat >>confdefs.h <<_ACEOF
28385#define HAVE_STRUCT_TIMEVAL 1
28386_ACEOF
28387
28388 ;;
28389 esac
28390
28391
28392
28393 if test "x$cross_compiling" != xyes; then
28394
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28396$as_echo_n "checking run-time libs availability... " >&6; }
28397 if test "$cross_compiling" = yes; then :
28398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28400as_fn_error $? "cannot run test program while cross compiling
28401See \`config.log' for more details" "$LINENO" 5; }
28402else
28403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28404/* end confdefs.h. */
28405
28406main()
28407{
28408 return 0;
28409}
28410
28411_ACEOF
28412if ac_fn_c_try_run "$LINENO"; then :
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28414$as_echo "fine" >&6; }
28415else
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28417$as_echo "failed" >&6; }
28418 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28419
28420fi
28421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28422 conftest.$ac_objext conftest.beam conftest.$ac_ext
28423fi
28424
28425
28426 fi
28427
28428
28429# The cast to long int works around a bug in the HP C Compiler
28430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28432# This bug is HP SR number 8606223364.
28433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28434$as_echo_n "checking size of size_t... " >&6; }
28435if ${ac_cv_sizeof_size_t+:} false; then :
28436 $as_echo_n "(cached) " >&6
28437else
28438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28439
28440else
28441 if test "$ac_cv_type_size_t" = yes; then
28442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28444as_fn_error 77 "cannot compute sizeof (size_t)
28445See \`config.log' for more details" "$LINENO" 5; }
28446 else
28447 ac_cv_sizeof_size_t=0
28448 fi
28449fi
28450
28451fi
28452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28453$as_echo "$ac_cv_sizeof_size_t" >&6; }
28454
28455
28456
28457cat >>confdefs.h <<_ACEOF
28458#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28459_ACEOF
28460
28461
28462# The cast to long int works around a bug in the HP C Compiler
28463# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28464# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28465# This bug is HP SR number 8606223364.
28466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28467$as_echo_n "checking size of long... " >&6; }
28468if ${ac_cv_sizeof_long+:} false; then :
28469 $as_echo_n "(cached) " >&6
28470else
28471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28472
28473else
28474 if test "$ac_cv_type_long" = yes; then
28475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28477as_fn_error 77 "cannot compute sizeof (long)
28478See \`config.log' for more details" "$LINENO" 5; }
28479 else
28480 ac_cv_sizeof_long=0
28481 fi
28482fi
28483
28484fi
28485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28486$as_echo "$ac_cv_sizeof_long" >&6; }
28487
28488
28489
28490cat >>confdefs.h <<_ACEOF
28491#define SIZEOF_LONG $ac_cv_sizeof_long
28492_ACEOF
28493
28494
28495# The cast to long int works around a bug in the HP C Compiler
28496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28498# This bug is HP SR number 8606223364.
28499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28500$as_echo_n "checking size of int... " >&6; }
28501if ${ac_cv_sizeof_int+:} false; then :
28502 $as_echo_n "(cached) " >&6
28503else
28504 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28505
28506else
28507 if test "$ac_cv_type_int" = yes; then
28508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28510as_fn_error 77 "cannot compute sizeof (int)
28511See \`config.log' for more details" "$LINENO" 5; }
28512 else
28513 ac_cv_sizeof_int=0
28514 fi
28515fi
28516
28517fi
28518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28519$as_echo "$ac_cv_sizeof_int" >&6; }
28520
28521
28522
28523cat >>confdefs.h <<_ACEOF
28524#define SIZEOF_INT $ac_cv_sizeof_int
28525_ACEOF
28526
28527
28528# The cast to long int works around a bug in the HP C Compiler
28529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28531# This bug is HP SR number 8606223364.
28532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28533$as_echo_n "checking size of short... " >&6; }
28534if ${ac_cv_sizeof_short+:} false; then :
28535 $as_echo_n "(cached) " >&6
28536else
28537 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28538
28539else
28540 if test "$ac_cv_type_short" = yes; then
28541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28543as_fn_error 77 "cannot compute sizeof (short)
28544See \`config.log' for more details" "$LINENO" 5; }
28545 else
28546 ac_cv_sizeof_short=0
28547 fi
28548fi
28549
28550fi
28551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28552$as_echo "$ac_cv_sizeof_short" >&6; }
28553
28554
28555
28556cat >>confdefs.h <<_ACEOF
28557#define SIZEOF_SHORT $ac_cv_sizeof_short
28558_ACEOF
28559
28560
28561
28562 if test -z "$ac_cv_sizeof_long" ||
28563 test "$ac_cv_sizeof_long" -eq "0"; then
28564 as_fn_error $? "cannot find out size of long." "$LINENO" 5
28565 fi
28566
28567cat >>confdefs.h <<_EOF
28568#define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28569_EOF
28570
28571
28572# The cast to long int works around a bug in the HP C Compiler
28573# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28574# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28575# This bug is HP SR number 8606223364.
28576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28577$as_echo_n "checking size of time_t... " >&6; }
28578if ${ac_cv_sizeof_time_t+:} false; then :
28579 $as_echo_n "(cached) " >&6
28580else
28581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28582
28583else
28584 if test "$ac_cv_type_time_t" = yes; then
28585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28587as_fn_error 77 "cannot compute sizeof (time_t)
28588See \`config.log' for more details" "$LINENO" 5; }
28589 else
28590 ac_cv_sizeof_time_t=0
28591 fi
28592fi
28593
28594fi
28595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28596$as_echo "$ac_cv_sizeof_time_t" >&6; }
28597
28598
28599
28600cat >>confdefs.h <<_ACEOF
28601#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28602_ACEOF
28603
28604
28605# The cast to long int works around a bug in the HP C Compiler
28606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28608# This bug is HP SR number 8606223364.
28609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28610$as_echo_n "checking size of off_t... " >&6; }
28611if ${ac_cv_sizeof_off_t+:} false; then :
28612 $as_echo_n "(cached) " >&6
28613else
28614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28615
28616else
28617 if test "$ac_cv_type_off_t" = yes; then
28618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28620as_fn_error 77 "cannot compute sizeof (off_t)
28621See \`config.log' for more details" "$LINENO" 5; }
28622 else
28623 ac_cv_sizeof_off_t=0
28624 fi
28625fi
28626
28627fi
28628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28629$as_echo "$ac_cv_sizeof_off_t" >&6; }
28630
28631
28632
28633cat >>confdefs.h <<_ACEOF
28634#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28635_ACEOF
28636
28637
28638
28639soname_bump=no
28640if test x"$curl_cv_native_windows" != "xyes" &&
28641 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28643$as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28645$as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28646 soname_bump=yes
28647fi
28648
28649
28650ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28651if test "x$ac_cv_type_long_long" = xyes; then :
28652
28653$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28654
28655 longlong="yes"
28656
28657fi
28658
28659
28660if test "xyes" = "x$longlong"; then
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28662$as_echo_n "checking if numberLL works... " >&6; }
28663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28664/* end confdefs.h. */
28665
28666
28667
28668int main (void)
28669{
28670
28671 long long val = 1000LL;
28672
28673 ;
28674 return 0;
28675}
28676
28677_ACEOF
28678if ac_fn_c_try_compile "$LINENO"; then :
28679
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28681$as_echo "yes" >&6; }
28682
28683$as_echo "#define HAVE_LL 1" >>confdefs.h
28684
28685
28686else
28687
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28689$as_echo "no" >&6; }
28690
28691fi
28692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28693fi
28694
28695
28696# check for ssize_t
28697ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28698if test "x$ac_cv_type_ssize_t" = xyes; then :
28699
28700else
28701
28702$as_echo "#define ssize_t int" >>confdefs.h
28703
28704fi
28705
28706
28707# check for bool type
28708ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28709#ifdef HAVE_SYS_TYPES_H
28710#include <sys/types.h>
28711#endif
28712#ifdef HAVE_STDBOOL_H
28713#include <stdbool.h>
28714#endif
28715
28716"
28717if test "x$ac_cv_type_bool" = xyes; then :
28718
28719
28720$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28721
28722
28723fi
28724
28725
28726
28727curl_includes_ws2tcpip="\
28728/* includes start */
28729#ifdef HAVE_WINDOWS_H
28730# ifndef WIN32_LEAN_AND_MEAN
28731# define WIN32_LEAN_AND_MEAN
28732# endif
28733# include <windows.h>
28734# ifdef HAVE_WINSOCK2_H
28735# include <winsock2.h>
28736# ifdef HAVE_WS2TCPIP_H
28737# include <ws2tcpip.h>
28738# endif
28739# endif
28740#endif
28741/* includes end */"
28742
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28744$as_echo_n "checking for windows.h... " >&6; }
28745if ${curl_cv_header_windows_h+:} false; then :
28746 $as_echo_n "(cached) " >&6
28747else
28748
28749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28750/* end confdefs.h. */
28751
28752
28753#undef inline
28754#ifndef WIN32_LEAN_AND_MEAN
28755#define WIN32_LEAN_AND_MEAN
28756#endif
28757#include <windows.h>
28758
28759int main (void)
28760{
28761
28762#if defined(__CYGWIN__) || defined(__CEGCC__)
28763 HAVE_WINDOWS_H shall not be defined.
28764#else
28765 int dummy=2*WINVER;
28766#endif
28767
28768 ;
28769 return 0;
28770}
28771
28772_ACEOF
28773if ac_fn_c_try_compile "$LINENO"; then :
28774
28775 curl_cv_header_windows_h="yes"
28776
28777else
28778
28779 curl_cv_header_windows_h="no"
28780
28781fi
28782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28783
28784fi
28785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28786$as_echo "$curl_cv_header_windows_h" >&6; }
28787 case "$curl_cv_header_windows_h" in
28788 yes)
28789
28790cat >>confdefs.h <<_ACEOF
28791#define HAVE_WINDOWS_H 1
28792_ACEOF
28793
28794 ;;
28795 esac
28796
28797
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28799$as_echo_n "checking for winsock2.h... " >&6; }
28800if ${curl_cv_header_winsock2_h+:} false; then :
28801 $as_echo_n "(cached) " >&6
28802else
28803
28804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28805/* end confdefs.h. */
28806
28807
28808#undef inline
28809#ifndef WIN32_LEAN_AND_MEAN
28810#define WIN32_LEAN_AND_MEAN
28811#endif
28812#include <windows.h>
28813#include <winsock2.h>
28814
28815int main (void)
28816{
28817
28818#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28819 HAVE_WINSOCK2_H shall not be defined.
28820#else
28821 int dummy=2*IPPROTO_ESP;
28822#endif
28823
28824 ;
28825 return 0;
28826}
28827
28828_ACEOF
28829if ac_fn_c_try_compile "$LINENO"; then :
28830
28831 curl_cv_header_winsock2_h="yes"
28832
28833else
28834
28835 curl_cv_header_winsock2_h="no"
28836
28837fi
28838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839
28840fi
28841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28842$as_echo "$curl_cv_header_winsock2_h" >&6; }
28843 case "$curl_cv_header_winsock2_h" in
28844 yes)
28845
28846cat >>confdefs.h <<_ACEOF
28847#define HAVE_WINSOCK2_H 1
28848_ACEOF
28849
28850 ;;
28851 esac
28852
28853
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28855$as_echo_n "checking for ws2tcpip.h... " >&6; }
28856if ${curl_cv_header_ws2tcpip_h+:} false; then :
28857 $as_echo_n "(cached) " >&6
28858else
28859
28860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861/* end confdefs.h. */
28862
28863
28864#undef inline
28865#ifndef WIN32_LEAN_AND_MEAN
28866#define WIN32_LEAN_AND_MEAN
28867#endif
28868#include <windows.h>
28869#include <winsock2.h>
28870#include <ws2tcpip.h>
28871
28872int main (void)
28873{
28874
28875#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28876 HAVE_WS2TCPIP_H shall not be defined.
28877#else
28878 int dummy=2*IP_PKTINFO;
28879#endif
28880
28881 ;
28882 return 0;
28883}
28884
28885_ACEOF
28886if ac_fn_c_try_compile "$LINENO"; then :
28887
28888 curl_cv_header_ws2tcpip_h="yes"
28889
28890else
28891
28892 curl_cv_header_ws2tcpip_h="no"
28893
28894fi
28895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28896
28897fi
28898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28899$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28900 case "$curl_cv_header_ws2tcpip_h" in
28901 yes)
28902
28903cat >>confdefs.h <<_ACEOF
28904#define HAVE_WS2TCPIP_H 1
28905_ACEOF
28906
28907 ;;
28908 esac
28909
28910
28911
28912curl_includes_sys_socket="\
28913/* includes start */
28914#ifdef HAVE_SYS_TYPES_H
28915# include <sys/types.h>
28916#endif
28917#ifdef HAVE_SYS_SOCKET_H
28918# include <sys/socket.h>
28919#endif
28920/* includes end */"
28921 for ac_header in sys/types.h sys/socket.h
28922do :
28923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28924ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28925"
28926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28927 cat >>confdefs.h <<_ACEOF
28928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28929_ACEOF
28930
28931fi
28932
28933done
28934
28935
28936
28937curl_preprocess_callconv="\
28938/* preprocess start */
28939#ifdef HAVE_WINDOWS_H
28940# define FUNCALLCONV __stdcall
28941#else
28942# define FUNCALLCONV
28943#endif
28944/* preprocess end */"
28945
28946
28947 #
28948 #
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28950$as_echo_n "checking for curl_socklen_t data type... " >&6; }
28951 curl_typeof_curl_socklen_t="unknown"
28952 for arg1 in int SOCKET; do
28953 for arg2 in 'struct sockaddr' void; do
28954 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28955 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28957/* end confdefs.h. */
28958
28959
28960 $curl_includes_ws2tcpip
28961 $curl_includes_sys_socket
28962 $curl_preprocess_callconv
28963 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28964
28965int main (void)
28966{
28967
28968 $t *lenptr = 0;
28969 if(0 != getpeername(0, 0, lenptr))
28970 return 1;
28971
28972 ;
28973 return 0;
28974}
28975
28976_ACEOF
28977if ac_fn_c_try_compile "$LINENO"; then :
28978
28979 curl_typeof_curl_socklen_t="$t"
28980
28981fi
28982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28983 fi
28984 done
28985 done
28986 done
28987 for t in socklen_t int; do
28988 if test "$curl_typeof_curl_socklen_t" = "void"; then
28989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28990/* end confdefs.h. */
28991
28992
28993 $curl_includes_sys_socket
28994 typedef $t curl_socklen_t;
28995
28996int main (void)
28997{
28998
28999 curl_socklen_t dummy;
29000
29001 ;
29002 return 0;
29003}
29004
29005_ACEOF
29006if ac_fn_c_try_compile "$LINENO"; then :
29007
29008 curl_typeof_curl_socklen_t="$t"
29009
29010fi
29011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29012 fi
29013 done
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29015$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29016 if test "$curl_typeof_curl_socklen_t" = "void" ||
29017 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29018 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29019 fi
29020 #
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29022$as_echo_n "checking size of curl_socklen_t... " >&6; }
29023 curl_sizeof_curl_socklen_t="unknown"
29024 curl_pull_headers_socklen_t="unknown"
29025 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29026 tst_pull_header_checks='none ws2tcpip'
29027 tst_size_checks='4'
29028 else
29029 tst_pull_header_checks='none systypes syssocket'
29030 tst_size_checks='4 8 2'
29031 fi
29032 for tst_size in $tst_size_checks; do
29033 for tst_pull_headers in $tst_pull_header_checks; do
29034 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29035 case $tst_pull_headers in
29036 ws2tcpip)
29037 tmp_includes="$curl_includes_ws2tcpip"
29038 ;;
29039 systypes)
29040 tmp_includes="$curl_includes_sys_types"
29041 ;;
29042 syssocket)
29043 tmp_includes="$curl_includes_sys_socket"
29044 ;;
29045 *)
29046 tmp_includes=""
29047 ;;
29048 esac
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050/* end confdefs.h. */
29051
29052
29053 $tmp_includes
29054 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29055 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29056
29057int main (void)
29058{
29059
29060 curl_socklen_t dummy;
29061
29062 ;
29063 return 0;
29064}
29065
29066_ACEOF
29067if ac_fn_c_try_compile "$LINENO"; then :
29068
29069 curl_sizeof_curl_socklen_t="$tst_size"
29070 curl_pull_headers_socklen_t="$tst_pull_headers"
29071
29072fi
29073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 fi
29075 done
29076 done
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29078$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29079 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29080 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29081 fi
29082 #
29083 case $curl_pull_headers_socklen_t in
29084 ws2tcpip)
29085
29086cat >>confdefs.h <<_EOF
29087#define CURL_PULL_WS2TCPIP_H 1
29088_EOF
29089
29090 ;;
29091 systypes)
29092
29093cat >>confdefs.h <<_EOF
29094#define CURL_PULL_SYS_TYPES_H 1
29095_EOF
29096
29097 ;;
29098 syssocket)
29099
29100cat >>confdefs.h <<_EOF
29101#define CURL_PULL_SYS_TYPES_H 1
29102_EOF
29103
29104
29105cat >>confdefs.h <<_EOF
29106#define CURL_PULL_SYS_SOCKET_H 1
29107_EOF
29108
29109 ;;
29110 esac
29111
29112cat >>confdefs.h <<_EOF
29113#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29114_EOF
29115
29116
29117cat >>confdefs.h <<_EOF
29118#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29119_EOF
29120
29121
29122
29123
29124curl_includes_poll="\
29125/* includes start */
29126#ifdef HAVE_SYS_TYPES_H
29127# include <sys/types.h>
29128#endif
29129#ifdef HAVE_POLL_H
29130# include <poll.h>
29131#endif
29132#ifdef HAVE_SYS_POLL_H
29133# include <sys/poll.h>
29134#endif
29135/* includes end */"
29136 for ac_header in sys/types.h poll.h sys/poll.h
29137do :
29138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29139ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29140"
29141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29142 cat >>confdefs.h <<_ACEOF
29143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29144_ACEOF
29145
29146fi
29147
29148done
29149
29150
29151
29152 #
29153 tst_poll_events_macro_defined="unknown"
29154 #
29155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29156/* end confdefs.h. */
29157
29158
29159 $curl_includes_poll
29160
29161int main (void)
29162{
29163
29164#if defined(events) || defined(revents)
29165 return 0;
29166#else
29167 force compilation error
29168#endif
29169
29170 ;
29171 return 0;
29172}
29173
29174_ACEOF
29175if ac_fn_c_try_compile "$LINENO"; then :
29176
29177 tst_poll_events_macro_defined="yes"
29178
29179else
29180
29181 tst_poll_events_macro_defined="no"
29182
29183fi
29184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29185 #
29186 if test "$tst_poll_events_macro_defined" = "yes"; then
29187 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29188
29189cat >>confdefs.h <<_EOF
29190#define CURL_PULL_SYS_POLL_H 1
29191_EOF
29192
29193 fi
29194 fi
29195 #
29196
29197
29198
29199 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29200#undef inline
29201#ifdef HAVE_WINDOWS_H
29202#ifndef WIN32_LEAN_AND_MEAN
29203#define WIN32_LEAN_AND_MEAN
29204#endif
29205#include <windows.h>
29206#ifdef HAVE_WINSOCK2_H
29207#include <winsock2.h>
29208#else
29209#ifdef HAVE_WINSOCK_H
29210#include <winsock.h>
29211#endif
29212#endif
29213#else
29214#ifdef HAVE_SYS_TYPES_H
29215#include <sys/types.h>
29216#endif
29217#ifdef HAVE_SYS_SOCKET_H
29218#include <sys/socket.h>
29219#endif
29220#ifdef HAVE_NETINET_IN_H
29221#include <netinet/in.h>
29222#endif
29223#ifdef HAVE_ARPA_INET_H
29224#include <arpa/inet.h>
29225#endif
29226#endif
29227
29228"
29229if test "x$ac_cv_type_in_addr_t" = xyes; then :
29230
29231else
29232
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29234$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29235if ${curl_cv_in_addr_t_equiv+:} false; then :
29236 $as_echo_n "(cached) " >&6
29237else
29238
29239 curl_cv_in_addr_t_equiv="unknown"
29240 for t in "unsigned long" int size_t unsigned long; do
29241 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29243/* end confdefs.h. */
29244
29245
29246#undef inline
29247#ifdef HAVE_WINDOWS_H
29248#ifndef WIN32_LEAN_AND_MEAN
29249#define WIN32_LEAN_AND_MEAN
29250#endif
29251#include <windows.h>
29252#ifdef HAVE_WINSOCK2_H
29253#include <winsock2.h>
29254#else
29255#ifdef HAVE_WINSOCK_H
29256#include <winsock.h>
29257#endif
29258#endif
29259#else
29260#ifdef HAVE_SYS_TYPES_H
29261#include <sys/types.h>
29262#endif
29263#ifdef HAVE_SYS_SOCKET_H
29264#include <sys/socket.h>
29265#endif
29266#ifdef HAVE_NETINET_IN_H
29267#include <netinet/in.h>
29268#endif
29269#ifdef HAVE_ARPA_INET_H
29270#include <arpa/inet.h>
29271#endif
29272#endif
29273
29274int main (void)
29275{
29276
29277 $t data = inet_addr ("1.2.3.4");
29278
29279 ;
29280 return 0;
29281}
29282
29283_ACEOF
29284if ac_fn_c_try_link "$LINENO"; then :
29285
29286 curl_cv_in_addr_t_equiv="$t"
29287
29288fi
29289rm -f core conftest.err conftest.$ac_objext \
29290 conftest$ac_exeext conftest.$ac_ext
29291 fi
29292 done
29293
29294fi
29295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29296$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29297 case "$curl_cv_in_addr_t_equiv" in
29298 unknown)
29299 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29300 ;;
29301 *)
29302
29303cat >>confdefs.h <<_ACEOF
29304#define in_addr_t $curl_cv_in_addr_t_equiv
29305_ACEOF
29306
29307 ;;
29308 esac
29309
29310fi
29311
29312
29313
29314
29315 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29316#undef inline
29317#ifdef HAVE_WINDOWS_H
29318#ifndef WIN32_LEAN_AND_MEAN
29319#define WIN32_LEAN_AND_MEAN
29320#endif
29321#include <windows.h>
29322#ifdef HAVE_WINSOCK2_H
29323#include <winsock2.h>
29324#endif
29325#else
29326#ifdef HAVE_SYS_TYPES_H
29327#include <sys/types.h>
29328#endif
29329#ifdef HAVE_SYS_SOCKET_H
29330#include <sys/socket.h>
29331#endif
29332#ifdef HAVE_NETINET_IN_H
29333#include <netinet/in.h>
29334#endif
29335#ifdef HAVE_ARPA_INET_H
29336#include <arpa/inet.h>
29337#endif
29338#endif
29339
29340"
29341if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29342
29343$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29344
29345fi
29346
29347
29348
29349
29350 for ac_header in signal.h
29351do :
29352 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29353if test "x$ac_cv_header_signal_h" = xyes; then :
29354 cat >>confdefs.h <<_ACEOF
29355#define HAVE_SIGNAL_H 1
29356_ACEOF
29357
29358fi
29359
29360done
29361
29362 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29363#ifdef HAVE_SIGNAL_H
29364#include <signal.h>
29365#endif
29366
29367"
29368if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29369
29370
29371$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29372
29373
29374fi
29375
29376 case "$ac_cv_type_sig_atomic_t" in
29377 yes)
29378 #
29379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29380$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29382/* end confdefs.h. */
29383
29384
29385#ifdef HAVE_SIGNAL_H
29386#include <signal.h>
29387#endif
29388
29389int main (void)
29390{
29391
29392 static volatile sig_atomic_t dummy = 0;
29393
29394 ;
29395 return 0;
29396}
29397
29398_ACEOF
29399if ac_fn_c_try_link "$LINENO"; then :
29400
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29402$as_echo "no" >&6; }
29403 curl_cv_sig_atomic_t_volatile="no"
29404
29405else
29406
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29408$as_echo "yes" >&6; }
29409 curl_cv_sig_atomic_t_volatile="yes"
29410
29411fi
29412rm -f core conftest.err conftest.$ac_objext \
29413 conftest$ac_exeext conftest.$ac_ext
29414 #
29415 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29416
29417$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29418
29419 fi
29420 ;;
29421 esac
29422
29423
29424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29425$as_echo_n "checking return type of signal handlers... " >&6; }
29426if ${ac_cv_type_signal+:} false; then :
29427 $as_echo_n "(cached) " >&6
29428else
29429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29430/* end confdefs.h. */
29431#include <sys/types.h>
29432#include <signal.h>
29433
29434int main (void)
29435{
29436return *(signal (0, 0)) (0) == 1;
29437 ;
29438 return 0;
29439}
29440_ACEOF
29441if ac_fn_c_try_compile "$LINENO"; then :
29442 ac_cv_type_signal=int
29443else
29444 ac_cv_type_signal=void
29445fi
29446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29447fi
29448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29449$as_echo "$ac_cv_type_signal" >&6; }
29450
29451cat >>confdefs.h <<_ACEOF
29452#define RETSIGTYPE $ac_cv_type_signal
29453_ACEOF
29454
29455
29456
29457
29458 for ac_header in sys/select.h sys/socket.h
29459do :
29460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29461ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29463 cat >>confdefs.h <<_ACEOF
29464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29465_ACEOF
29466
29467fi
29468
29469done
29470
29471 #
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29473$as_echo_n "checking for select... " >&6; }
29474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29475/* end confdefs.h. */
29476
29477
29478#undef inline
29479#ifdef HAVE_WINDOWS_H
29480#ifndef WIN32_LEAN_AND_MEAN
29481#define WIN32_LEAN_AND_MEAN
29482#endif
29483#include <windows.h>
29484#ifdef HAVE_WINSOCK2_H
29485#include <winsock2.h>
29486#else
29487#ifdef HAVE_WINSOCK_H
29488#include <winsock.h>
29489#endif
29490#endif
29491#endif
29492#ifdef HAVE_SYS_TYPES_H
29493#include <sys/types.h>
29494#endif
29495#ifdef HAVE_SYS_TIME_H
29496#include <sys/time.h>
29497#ifdef TIME_WITH_SYS_TIME
29498#include <time.h>
29499#endif
29500#else
29501#ifdef HAVE_TIME_H
29502#include <time.h>
29503#endif
29504#endif
29505#ifndef HAVE_WINDOWS_H
29506#ifdef HAVE_SYS_SELECT_H
29507#include <sys/select.h>
29508#endif
29509#ifdef HAVE_SYS_SOCKET_H
29510#include <sys/socket.h>
29511#endif
29512#endif
29513
29514int main (void)
29515{
29516
29517 select(0, 0, 0, 0, 0);
29518
29519 ;
29520 return 0;
29521}
29522
29523_ACEOF
29524if ac_fn_c_try_link "$LINENO"; then :
29525
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29527$as_echo "yes" >&6; }
29528 curl_cv_select="yes"
29529
29530else
29531
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533$as_echo "no" >&6; }
29534 curl_cv_select="no"
29535
29536fi
29537rm -f core conftest.err conftest.$ac_objext \
29538 conftest$ac_exeext conftest.$ac_ext
29539 #
29540 if test "$curl_cv_select" = "yes"; then
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29542$as_echo_n "checking types of args and return type for select... " >&6; }
29543if ${curl_cv_func_select_args+:} false; then :
29544 $as_echo_n "(cached) " >&6
29545else
29546
29547 curl_cv_func_select_args="unknown"
29548 for sel_retv in 'int' 'ssize_t'; do
29549 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29550 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29551 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29552 if test "$curl_cv_func_select_args" = "unknown"; then
29553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29554/* end confdefs.h. */
29555
29556
29557#undef inline
29558#ifdef HAVE_WINDOWS_H
29559#ifndef WIN32_LEAN_AND_MEAN
29560#define WIN32_LEAN_AND_MEAN
29561#endif
29562#include <windows.h>
29563#ifdef HAVE_WINSOCK2_H
29564#include <winsock2.h>
29565#else
29566#ifdef HAVE_WINSOCK_H
29567#include <winsock.h>
29568#endif
29569#endif
29570#define SELECTCALLCONV PASCAL
29571#endif
29572#ifdef HAVE_SYS_TYPES_H
29573#include <sys/types.h>
29574#endif
29575#ifdef HAVE_SYS_TIME_H
29576#include <sys/time.h>
29577#ifdef TIME_WITH_SYS_TIME
29578#include <time.h>
29579#endif
29580#else
29581#ifdef HAVE_TIME_H
29582#include <time.h>
29583#endif
29584#endif
29585#ifndef HAVE_WINDOWS_H
29586#ifdef HAVE_SYS_SELECT_H
29587#include <sys/select.h>
29588#endif
29589#ifdef HAVE_SYS_SOCKET_H
29590#include <sys/socket.h>
29591#endif
29592#define SELECTCALLCONV
29593#endif
29594#ifndef HAVE_STRUCT_TIMEVAL
29595 struct timeval {
29596 long tv_sec;
29597 long tv_usec;
29598 };
29599#endif
29600 extern $sel_retv SELECTCALLCONV
29601#ifdef __ANDROID__
29602__attribute__((overloadable))
29603#endif
29604 select($sel_arg1,
29605 $sel_arg234,
29606 $sel_arg234,
29607 $sel_arg234,
29608 $sel_arg5);
29609
29610int main (void)
29611{
29612
29613 $sel_arg1 nfds=0;
29614 $sel_arg234 rfds=0;
29615 $sel_arg234 wfds=0;
29616 $sel_arg234 efds=0;
29617 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29618
29619 ;
29620 return 0;
29621}
29622
29623_ACEOF
29624if ac_fn_c_try_compile "$LINENO"; then :
29625
29626 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29627
29628fi
29629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630 fi
29631 done
29632 done
29633 done
29634 done
29635
29636fi
29637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29638$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29639 if test "$curl_cv_func_select_args" = "unknown"; then
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29641$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29643$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29644 else
29645 select_prev_IFS=$IFS; IFS=','
29646 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29647 IFS=$select_prev_IFS
29648 shift
29649 #
29650 sel_qual_type_arg5=$3
29651 #
29652
29653cat >>confdefs.h <<_ACEOF
29654#define SELECT_TYPE_ARG1 $1
29655_ACEOF
29656
29657
29658cat >>confdefs.h <<_ACEOF
29659#define SELECT_TYPE_ARG234 $2
29660_ACEOF
29661
29662
29663cat >>confdefs.h <<_ACEOF
29664#define SELECT_TYPE_RETV $4
29665_ACEOF
29666
29667 #
29668 prev_sh_opts=$-
29669 #
29670 case $prev_sh_opts in
29671 *f*)
29672 ;;
29673 *)
29674 set -f
29675 ;;
29676 esac
29677 #
29678 case "$sel_qual_type_arg5" in
29679 const*)
29680 sel_qual_arg5=const
29681 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29682 ;;
29683 *)
29684 sel_qual_arg5=
29685 sel_type_arg5=$sel_qual_type_arg5
29686 ;;
29687 esac
29688 #
29689
29690cat >>confdefs.h <<_ACEOF
29691#define SELECT_QUAL_ARG5 $sel_qual_arg5
29692_ACEOF
29693
29694
29695cat >>confdefs.h <<_ACEOF
29696#define SELECT_TYPE_ARG5 $sel_type_arg5
29697_ACEOF
29698
29699 #
29700 case $prev_sh_opts in
29701 *f*)
29702 ;;
29703 *)
29704 set +f
29705 ;;
29706 esac
29707 #
29708
29709cat >>confdefs.h <<_ACEOF
29710#define HAVE_SELECT 1
29711_ACEOF
29712
29713 curl_cv_func_select="yes"
29714 fi
29715 fi
29716
29717
29718
29719 for ac_header in sys/types.h sys/socket.h
29720do :
29721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29722ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29723if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29724 cat >>confdefs.h <<_ACEOF
29725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29726_ACEOF
29727
29728fi
29729
29730done
29731
29732 #
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29734$as_echo_n "checking for recv... " >&6; }
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736/* end confdefs.h. */
29737
29738
29739#undef inline
29740#ifdef HAVE_WINDOWS_H
29741#ifndef WIN32_LEAN_AND_MEAN
29742#define WIN32_LEAN_AND_MEAN
29743#endif
29744#include <windows.h>
29745#ifdef HAVE_WINSOCK2_H
29746#include <winsock2.h>
29747#else
29748#ifdef HAVE_WINSOCK_H
29749#include <winsock.h>
29750#endif
29751#endif
29752#else
29753#ifdef HAVE_SYS_TYPES_H
29754#include <sys/types.h>
29755#endif
29756#ifdef HAVE_SYS_SOCKET_H
29757#include <sys/socket.h>
29758#endif
29759#endif
29760
29761int main (void)
29762{
29763
29764 recv(0, 0, 0, 0);
29765
29766 ;
29767 return 0;
29768}
29769
29770_ACEOF
29771if ac_fn_c_try_link "$LINENO"; then :
29772
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29774$as_echo "yes" >&6; }
29775 curl_cv_recv="yes"
29776
29777else
29778
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29780$as_echo "no" >&6; }
29781 curl_cv_recv="no"
29782
29783fi
29784rm -f core conftest.err conftest.$ac_objext \
29785 conftest$ac_exeext conftest.$ac_ext
29786 #
29787 if test "$curl_cv_recv" = "yes"; then
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29789$as_echo_n "checking types of args and return type for recv... " >&6; }
29790if ${curl_cv_func_recv_args+:} false; then :
29791 $as_echo_n "(cached) " >&6
29792else
29793
29794 curl_cv_func_recv_args="unknown"
29795 for recv_retv in 'int' 'ssize_t'; do
29796 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29797 for recv_arg2 in 'char *' 'void *'; do
29798 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29799 for recv_arg4 in 'int' 'unsigned int'; do
29800 if test "$curl_cv_func_recv_args" = "unknown"; then
29801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29802/* end confdefs.h. */
29803
29804
29805#undef inline
29806#ifdef HAVE_WINDOWS_H
29807#ifndef WIN32_LEAN_AND_MEAN
29808#define WIN32_LEAN_AND_MEAN
29809#endif
29810#include <windows.h>
29811#ifdef HAVE_WINSOCK2_H
29812#include <winsock2.h>
29813#else
29814#ifdef HAVE_WINSOCK_H
29815#include <winsock.h>
29816#endif
29817#endif
29818#define RECVCALLCONV PASCAL
29819#else
29820#ifdef HAVE_SYS_TYPES_H
29821#include <sys/types.h>
29822#endif
29823#ifdef HAVE_SYS_SOCKET_H
29824#include <sys/socket.h>
29825#endif
29826#define RECVCALLCONV
29827#endif
29828 extern $recv_retv RECVCALLCONV
29829#ifdef __ANDROID__
29830__attribute__((overloadable))
29831#endif
29832 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29833
29834int main (void)
29835{
29836
29837 $recv_arg1 s=0;
29838 $recv_arg2 buf=0;
29839 $recv_arg3 len=0;
29840 $recv_arg4 flags=0;
29841 $recv_retv res = recv(s, buf, len, flags);
29842
29843 ;
29844 return 0;
29845}
29846
29847_ACEOF
29848if ac_fn_c_try_compile "$LINENO"; then :
29849
29850 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29851
29852fi
29853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29854 fi
29855 done
29856 done
29857 done
29858 done
29859 done
29860
29861fi
29862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29863$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29864 if test "$curl_cv_func_recv_args" = "unknown"; then
29865 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29866 else
29867 recv_prev_IFS=$IFS; IFS=','
29868 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29869 IFS=$recv_prev_IFS
29870 shift
29871 #
29872
29873cat >>confdefs.h <<_ACEOF
29874#define RECV_TYPE_ARG1 $1
29875_ACEOF
29876
29877
29878cat >>confdefs.h <<_ACEOF
29879#define RECV_TYPE_ARG2 $2
29880_ACEOF
29881
29882
29883cat >>confdefs.h <<_ACEOF
29884#define RECV_TYPE_ARG3 $3
29885_ACEOF
29886
29887
29888cat >>confdefs.h <<_ACEOF
29889#define RECV_TYPE_ARG4 $4
29890_ACEOF
29891
29892
29893cat >>confdefs.h <<_ACEOF
29894#define RECV_TYPE_RETV $5
29895_ACEOF
29896
29897 #
29898
29899cat >>confdefs.h <<_ACEOF
29900#define HAVE_RECV 1
29901_ACEOF
29902
29903 curl_cv_func_recv="yes"
29904 fi
29905 else
29906 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29907 fi
29908
29909
29910 for ac_header in sys/types.h sys/socket.h
29911do :
29912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29913ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29914if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29915 cat >>confdefs.h <<_ACEOF
29916#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29917_ACEOF
29918
29919fi
29920
29921done
29922
29923 #
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29925$as_echo_n "checking for send... " >&6; }
29926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29927/* end confdefs.h. */
29928
29929
29930#undef inline
29931#ifdef HAVE_WINDOWS_H
29932#ifndef WIN32_LEAN_AND_MEAN
29933#define WIN32_LEAN_AND_MEAN
29934#endif
29935#include <windows.h>
29936#ifdef HAVE_WINSOCK2_H
29937#include <winsock2.h>
29938#else
29939#ifdef HAVE_WINSOCK_H
29940#include <winsock.h>
29941#endif
29942#endif
29943#else
29944#ifdef HAVE_SYS_TYPES_H
29945#include <sys/types.h>
29946#endif
29947#ifdef HAVE_SYS_SOCKET_H
29948#include <sys/socket.h>
29949#endif
29950#endif
29951
29952int main (void)
29953{
29954
29955 send(0, 0, 0, 0);
29956
29957 ;
29958 return 0;
29959}
29960
29961_ACEOF
29962if ac_fn_c_try_link "$LINENO"; then :
29963
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29965$as_echo "yes" >&6; }
29966 curl_cv_send="yes"
29967
29968else
29969
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29971$as_echo "no" >&6; }
29972 curl_cv_send="no"
29973
29974fi
29975rm -f core conftest.err conftest.$ac_objext \
29976 conftest$ac_exeext conftest.$ac_ext
29977 #
29978 if test "$curl_cv_send" = "yes"; then
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29980$as_echo_n "checking types of args and return type for send... " >&6; }
29981if ${curl_cv_func_send_args+:} false; then :
29982 $as_echo_n "(cached) " >&6
29983else
29984
29985 curl_cv_func_send_args="unknown"
29986 for send_retv in 'int' 'ssize_t'; do
29987 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29988 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29989 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29990 for send_arg4 in 'int' 'unsigned int'; do
29991 if test "$curl_cv_func_send_args" = "unknown"; then
29992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29993/* end confdefs.h. */
29994
29995
29996#undef inline
29997#ifdef HAVE_WINDOWS_H
29998#ifndef WIN32_LEAN_AND_MEAN
29999#define WIN32_LEAN_AND_MEAN
30000#endif
30001#include <windows.h>
30002#ifdef HAVE_WINSOCK2_H
30003#include <winsock2.h>
30004#else
30005#ifdef HAVE_WINSOCK_H
30006#include <winsock.h>
30007#endif
30008#endif
30009#define SENDCALLCONV PASCAL
30010#else
30011#ifdef HAVE_SYS_TYPES_H
30012#include <sys/types.h>
30013#endif
30014#ifdef HAVE_SYS_SOCKET_H
30015#include <sys/socket.h>
30016#endif
30017#define SENDCALLCONV
30018#endif
30019 extern $send_retv SENDCALLCONV
30020#ifdef __ANDROID__
30021__attribute__((overloadable))
30022#endif
30023 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30024
30025int main (void)
30026{
30027
30028 $send_arg1 s=0;
30029 $send_arg3 len=0;
30030 $send_arg4 flags=0;
30031 $send_retv res = send(s, 0, len, flags);
30032
30033 ;
30034 return 0;
30035}
30036
30037_ACEOF
30038if ac_fn_c_try_compile "$LINENO"; then :
30039
30040 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30041
30042fi
30043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30044 fi
30045 done
30046 done
30047 done
30048 done
30049 done
30050
30051fi
30052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30053$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30054 if test "$curl_cv_func_send_args" = "unknown"; then
30055 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30056 else
30057 send_prev_IFS=$IFS; IFS=','
30058 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30059 IFS=$send_prev_IFS
30060 shift
30061 #
30062 send_qual_type_arg2=$2
30063 #
30064
30065cat >>confdefs.h <<_ACEOF
30066#define SEND_TYPE_ARG1 $1
30067_ACEOF
30068
30069
30070cat >>confdefs.h <<_ACEOF
30071#define SEND_TYPE_ARG3 $3
30072_ACEOF
30073
30074
30075cat >>confdefs.h <<_ACEOF
30076#define SEND_TYPE_ARG4 $4
30077_ACEOF
30078
30079
30080cat >>confdefs.h <<_ACEOF
30081#define SEND_TYPE_RETV $5
30082_ACEOF
30083
30084 #
30085 prev_sh_opts=$-
30086 #
30087 case $prev_sh_opts in
30088 *f*)
30089 ;;
30090 *)
30091 set -f
30092 ;;
30093 esac
30094 #
30095 case "$send_qual_type_arg2" in
30096 const*)
30097 send_qual_arg2=const
30098 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30099 ;;
30100 *)
30101 send_qual_arg2=
30102 send_type_arg2=$send_qual_type_arg2
30103 ;;
30104 esac
30105 #
30106
30107cat >>confdefs.h <<_ACEOF
30108#define SEND_QUAL_ARG2 $send_qual_arg2
30109_ACEOF
30110
30111
30112cat >>confdefs.h <<_ACEOF
30113#define SEND_TYPE_ARG2 $send_type_arg2
30114_ACEOF
30115
30116 #
30117 case $prev_sh_opts in
30118 *f*)
30119 ;;
30120 *)
30121 set +f
30122 ;;
30123 esac
30124 #
30125
30126cat >>confdefs.h <<_ACEOF
30127#define HAVE_SEND 1
30128_ACEOF
30129
30130 curl_cv_func_send="yes"
30131 fi
30132 else
30133 as_fn_error $? "Unable to link function send" "$LINENO" 5
30134 fi
30135
30136
30137 for ac_header in sys/types.h sys/socket.h
30138do :
30139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30140ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30142 cat >>confdefs.h <<_ACEOF
30143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30144_ACEOF
30145
30146fi
30147
30148done
30149
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30151$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30152if ${curl_cv_msg_nosignal+:} false; then :
30153 $as_echo_n "(cached) " >&6
30154else
30155
30156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30157/* end confdefs.h. */
30158
30159
30160#undef inline
30161#ifdef HAVE_WINDOWS_H
30162#ifndef WIN32_LEAN_AND_MEAN
30163#define WIN32_LEAN_AND_MEAN
30164#endif
30165#include <windows.h>
30166#ifdef HAVE_WINSOCK2_H
30167#include <winsock2.h>
30168#else
30169#ifdef HAVE_WINSOCK_H
30170#include <winsock.h>
30171#endif
30172#endif
30173#else
30174#ifdef HAVE_SYS_TYPES_H
30175#include <sys/types.h>
30176#endif
30177#ifdef HAVE_SYS_SOCKET_H
30178#include <sys/socket.h>
30179#endif
30180#endif
30181
30182int main (void)
30183{
30184
30185 int flag=MSG_NOSIGNAL;
30186
30187 ;
30188 return 0;
30189}
30190
30191_ACEOF
30192if ac_fn_c_try_compile "$LINENO"; then :
30193
30194 curl_cv_msg_nosignal="yes"
30195
30196else
30197
30198 curl_cv_msg_nosignal="no"
30199
30200fi
30201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30202
30203fi
30204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30205$as_echo "$curl_cv_msg_nosignal" >&6; }
30206 case "$curl_cv_msg_nosignal" in
30207 yes)
30208
30209cat >>confdefs.h <<_ACEOF
30210#define HAVE_MSG_NOSIGNAL 1
30211_ACEOF
30212
30213 ;;
30214 esac
30215
30216
30217
30218curl_includes_unistd="\
30219/* includes start */
30220#ifdef HAVE_SYS_TYPES_H
30221# include <sys/types.h>
30222#endif
30223#ifdef HAVE_UNISTD_H
30224# include <unistd.h>
30225#endif
30226/* includes end */"
30227 for ac_header in sys/types.h unistd.h
30228do :
30229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30230ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30231"
30232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30233 cat >>confdefs.h <<_ACEOF
30234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30235_ACEOF
30236
30237fi
30238
30239done
30240
30241
30242
30243 #
30244 tst_links_alarm="unknown"
30245 tst_proto_alarm="unknown"
30246 tst_compi_alarm="unknown"
30247 tst_allow_alarm="unknown"
30248 #
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30250$as_echo_n "checking if alarm can be linked... " >&6; }
30251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30252/* end confdefs.h. */
30253
30254
30255#define alarm innocuous_alarm
30256#ifdef __STDC__
30257# include <limits.h>
30258#else
30259# include <assert.h>
30260#endif
30261#undef alarm
30262#ifdef __cplusplus
30263extern "C"
30264#endif
30265char alarm ();
30266#if defined __stub_alarm || defined __stub___alarm
30267choke me
30268#endif
30269
30270int main (void)
30271{
30272return alarm ();
30273 ;
30274 return 0;
30275}
30276
30277_ACEOF
30278if ac_fn_c_try_link "$LINENO"; then :
30279
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30281$as_echo "yes" >&6; }
30282 tst_links_alarm="yes"
30283
30284else
30285
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30287$as_echo "no" >&6; }
30288 tst_links_alarm="no"
30289
30290fi
30291rm -f core conftest.err conftest.$ac_objext \
30292 conftest$ac_exeext conftest.$ac_ext
30293 #
30294 if test "$tst_links_alarm" = "yes"; then
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30296$as_echo_n "checking if alarm is prototyped... " >&6; }
30297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30298/* end confdefs.h. */
30299
30300 $curl_includes_unistd
30301
30302_ACEOF
30303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30304 $EGREP "alarm" >/dev/null 2>&1; then :
30305
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30307$as_echo "yes" >&6; }
30308 tst_proto_alarm="yes"
30309
30310else
30311
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30313$as_echo "no" >&6; }
30314 tst_proto_alarm="no"
30315
30316fi
30317rm -f conftest*
30318
30319 fi
30320 #
30321 if test "$tst_proto_alarm" = "yes"; then
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30323$as_echo_n "checking if alarm is compilable... " >&6; }
30324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30325/* end confdefs.h. */
30326
30327
30328 $curl_includes_unistd
30329
30330int main (void)
30331{
30332
30333 if(0 != alarm(0))
30334 return 1;
30335
30336 ;
30337 return 0;
30338}
30339
30340_ACEOF
30341if ac_fn_c_try_compile "$LINENO"; then :
30342
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30344$as_echo "yes" >&6; }
30345 tst_compi_alarm="yes"
30346
30347else
30348
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30350$as_echo "no" >&6; }
30351 tst_compi_alarm="no"
30352
30353fi
30354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30355 fi
30356 #
30357 if test "$tst_compi_alarm" = "yes"; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30359$as_echo_n "checking if alarm usage allowed... " >&6; }
30360 if test "x$curl_disallow_alarm" != "xyes"; then
30361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30362$as_echo "yes" >&6; }
30363 tst_allow_alarm="yes"
30364 else
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30366$as_echo "no" >&6; }
30367 tst_allow_alarm="no"
30368 fi
30369 fi
30370 #
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30372$as_echo_n "checking if alarm might be used... " >&6; }
30373 if test "$tst_links_alarm" = "yes" &&
30374 test "$tst_proto_alarm" = "yes" &&
30375 test "$tst_compi_alarm" = "yes" &&
30376 test "$tst_allow_alarm" = "yes"; then
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30378$as_echo "yes" >&6; }
30379
30380cat >>confdefs.h <<_ACEOF
30381#define HAVE_ALARM 1
30382_ACEOF
30383
30384 curl_cv_func_alarm="yes"
30385 else
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387$as_echo "no" >&6; }
30388 curl_cv_func_alarm="no"
30389 fi
30390
30391
30392curl_includes_string="\
30393/* includes start */
30394#ifdef HAVE_SYS_TYPES_H
30395# include <sys/types.h>
30396#endif
30397#ifdef HAVE_STRING_H
30398# include <string.h>
30399#endif
30400#ifdef HAVE_STRINGS_H
30401# include <strings.h>
30402#endif
30403/* includes end */"
30404 for ac_header in sys/types.h string.h strings.h
30405do :
30406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30407ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30408"
30409if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30410 cat >>confdefs.h <<_ACEOF
30411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30412_ACEOF
30413
30414fi
30415
30416done
30417
30418
30419
30420curl_includes_libgen="\
30421/* includes start */
30422#ifdef HAVE_SYS_TYPES_H
30423# include <sys/types.h>
30424#endif
30425#ifdef HAVE_LIBGEN_H
30426# include <libgen.h>
30427#endif
30428/* includes end */"
30429 for ac_header in sys/types.h libgen.h
30430do :
30431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30432ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30433"
30434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30435 cat >>confdefs.h <<_ACEOF
30436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30437_ACEOF
30438
30439fi
30440
30441done
30442
30443
30444
30445 #
30446 tst_links_basename="unknown"
30447 tst_proto_basename="unknown"
30448 tst_compi_basename="unknown"
30449 tst_allow_basename="unknown"
30450 #
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30452$as_echo_n "checking if basename can be linked... " >&6; }
30453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30454/* end confdefs.h. */
30455
30456
30457#define basename innocuous_basename
30458#ifdef __STDC__
30459# include <limits.h>
30460#else
30461# include <assert.h>
30462#endif
30463#undef basename
30464#ifdef __cplusplus
30465extern "C"
30466#endif
30467char basename ();
30468#if defined __stub_basename || defined __stub___basename
30469choke me
30470#endif
30471
30472int main (void)
30473{
30474return basename ();
30475 ;
30476 return 0;
30477}
30478
30479_ACEOF
30480if ac_fn_c_try_link "$LINENO"; then :
30481
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30483$as_echo "yes" >&6; }
30484 tst_links_basename="yes"
30485
30486else
30487
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30489$as_echo "no" >&6; }
30490 tst_links_basename="no"
30491
30492fi
30493rm -f core conftest.err conftest.$ac_objext \
30494 conftest$ac_exeext conftest.$ac_ext
30495 #
30496 if test "$tst_links_basename" = "yes"; then
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30498$as_echo_n "checking if basename is prototyped... " >&6; }
30499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30500/* end confdefs.h. */
30501
30502 $curl_includes_string
30503 $curl_includes_libgen
30504 $curl_includes_unistd
30505
30506_ACEOF
30507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30508 $EGREP "basename" >/dev/null 2>&1; then :
30509
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30511$as_echo "yes" >&6; }
30512 tst_proto_basename="yes"
30513
30514else
30515
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30517$as_echo "no" >&6; }
30518 tst_proto_basename="no"
30519
30520fi
30521rm -f conftest*
30522
30523 fi
30524 #
30525 if test "$tst_proto_basename" = "yes"; then
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30527$as_echo_n "checking if basename is compilable... " >&6; }
30528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30529/* end confdefs.h. */
30530
30531
30532 $curl_includes_string
30533 $curl_includes_libgen
30534 $curl_includes_unistd
30535
30536int main (void)
30537{
30538
30539 if(0 != basename(0))
30540 return 1;
30541
30542 ;
30543 return 0;
30544}
30545
30546_ACEOF
30547if ac_fn_c_try_compile "$LINENO"; then :
30548
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30550$as_echo "yes" >&6; }
30551 tst_compi_basename="yes"
30552
30553else
30554
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30556$as_echo "no" >&6; }
30557 tst_compi_basename="no"
30558
30559fi
30560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561 fi
30562 #
30563 if test "$tst_compi_basename" = "yes"; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30565$as_echo_n "checking if basename usage allowed... " >&6; }
30566 if test "x$curl_disallow_basename" != "xyes"; then
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30568$as_echo "yes" >&6; }
30569 tst_allow_basename="yes"
30570 else
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572$as_echo "no" >&6; }
30573 tst_allow_basename="no"
30574 fi
30575 fi
30576 #
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30578$as_echo_n "checking if basename might be used... " >&6; }
30579 if test "$tst_links_basename" = "yes" &&
30580 test "$tst_proto_basename" = "yes" &&
30581 test "$tst_compi_basename" = "yes" &&
30582 test "$tst_allow_basename" = "yes"; then
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30584$as_echo "yes" >&6; }
30585
30586cat >>confdefs.h <<_ACEOF
30587#define HAVE_BASENAME 1
30588_ACEOF
30589
30590 curl_cv_func_basename="yes"
30591 else
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30593$as_echo "no" >&6; }
30594 curl_cv_func_basename="no"
30595 fi
30596
30597
30598curl_includes_socket="\
30599/* includes start */
30600#ifdef HAVE_SYS_TYPES_H
30601# include <sys/types.h>
30602#endif
30603#ifdef HAVE_SOCKET_H
30604# include <socket.h>
30605#endif
30606/* includes end */"
30607 for ac_header in sys/types.h socket.h
30608do :
30609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30611"
30612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30613 cat >>confdefs.h <<_ACEOF
30614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30615_ACEOF
30616
30617fi
30618
30619done
30620
30621
30622
30623 #
30624 tst_links_closesocket="unknown"
30625 tst_proto_closesocket="unknown"
30626 tst_compi_closesocket="unknown"
30627 tst_allow_closesocket="unknown"
30628 #
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30630$as_echo_n "checking if closesocket can be linked... " >&6; }
30631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30632/* end confdefs.h. */
30633
30634
30635 $curl_includes_winsock2
30636 $curl_includes_socket
30637
30638int main (void)
30639{
30640
30641 if(0 != closesocket(0))
30642 return 1;
30643
30644 ;
30645 return 0;
30646}
30647
30648_ACEOF
30649if ac_fn_c_try_link "$LINENO"; then :
30650
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652$as_echo "yes" >&6; }
30653 tst_links_closesocket="yes"
30654
30655else
30656
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30658$as_echo "no" >&6; }
30659 tst_links_closesocket="no"
30660
30661fi
30662rm -f core conftest.err conftest.$ac_objext \
30663 conftest$ac_exeext conftest.$ac_ext
30664 #
30665 if test "$tst_links_closesocket" = "yes"; then
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30667$as_echo_n "checking if closesocket is prototyped... " >&6; }
30668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30669/* end confdefs.h. */
30670
30671 $curl_includes_winsock2
30672 $curl_includes_socket
30673
30674_ACEOF
30675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30676 $EGREP "closesocket" >/dev/null 2>&1; then :
30677
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30679$as_echo "yes" >&6; }
30680 tst_proto_closesocket="yes"
30681
30682else
30683
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30685$as_echo "no" >&6; }
30686 tst_proto_closesocket="no"
30687
30688fi
30689rm -f conftest*
30690
30691 fi
30692 #
30693 if test "$tst_proto_closesocket" = "yes"; then
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30695$as_echo_n "checking if closesocket is compilable... " >&6; }
30696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30697/* end confdefs.h. */
30698
30699
30700 $curl_includes_winsock2
30701 $curl_includes_socket
30702
30703int main (void)
30704{
30705
30706 if(0 != closesocket(0))
30707 return 1;
30708
30709 ;
30710 return 0;
30711}
30712
30713_ACEOF
30714if ac_fn_c_try_compile "$LINENO"; then :
30715
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717$as_echo "yes" >&6; }
30718 tst_compi_closesocket="yes"
30719
30720else
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
30724 tst_compi_closesocket="no"
30725
30726fi
30727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30728 fi
30729 #
30730 if test "$tst_compi_closesocket" = "yes"; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30732$as_echo_n "checking if closesocket usage allowed... " >&6; }
30733 if test "x$curl_disallow_closesocket" != "xyes"; then
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30735$as_echo "yes" >&6; }
30736 tst_allow_closesocket="yes"
30737 else
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30739$as_echo "no" >&6; }
30740 tst_allow_closesocket="no"
30741 fi
30742 fi
30743 #
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30745$as_echo_n "checking if closesocket might be used... " >&6; }
30746 if test "$tst_links_closesocket" = "yes" &&
30747 test "$tst_proto_closesocket" = "yes" &&
30748 test "$tst_compi_closesocket" = "yes" &&
30749 test "$tst_allow_closesocket" = "yes"; then
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30751$as_echo "yes" >&6; }
30752
30753cat >>confdefs.h <<_ACEOF
30754#define HAVE_CLOSESOCKET 1
30755_ACEOF
30756
30757 curl_cv_func_closesocket="yes"
30758 else
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30760$as_echo "no" >&6; }
30761 curl_cv_func_closesocket="no"
30762 fi
30763
30764
30765 #
30766 tst_links_closesocket_camel="unknown"
30767 tst_proto_closesocket_camel="unknown"
30768 tst_compi_closesocket_camel="unknown"
30769 tst_allow_closesocket_camel="unknown"
30770 #
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30772$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30774/* end confdefs.h. */
30775
30776
30777 $curl_includes_sys_socket
30778
30779int main (void)
30780{
30781
30782 if(0 != CloseSocket(0))
30783 return 1;
30784
30785 ;
30786 return 0;
30787}
30788
30789_ACEOF
30790if ac_fn_c_try_link "$LINENO"; then :
30791
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30793$as_echo "yes" >&6; }
30794 tst_links_closesocket_camel="yes"
30795
30796else
30797
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799$as_echo "no" >&6; }
30800 tst_links_closesocket_camel="no"
30801
30802fi
30803rm -f core conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
30805 #
30806 if test "$tst_links_closesocket_camel" = "yes"; then
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30808$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30810/* end confdefs.h. */
30811
30812 $curl_includes_sys_socket
30813
30814_ACEOF
30815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30816 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30817
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30819$as_echo "yes" >&6; }
30820 tst_proto_closesocket_camel="yes"
30821
30822else
30823
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825$as_echo "no" >&6; }
30826 tst_proto_closesocket_camel="no"
30827
30828fi
30829rm -f conftest*
30830
30831 fi
30832 #
30833 if test "$tst_proto_closesocket_camel" = "yes"; then
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30835$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30837/* end confdefs.h. */
30838
30839
30840 $curl_includes_sys_socket
30841
30842int main (void)
30843{
30844
30845 if(0 != CloseSocket(0))
30846 return 1;
30847
30848 ;
30849 return 0;
30850}
30851
30852_ACEOF
30853if ac_fn_c_try_compile "$LINENO"; then :
30854
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856$as_echo "yes" >&6; }
30857 tst_compi_closesocket_camel="yes"
30858
30859else
30860
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862$as_echo "no" >&6; }
30863 tst_compi_closesocket_camel="no"
30864
30865fi
30866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30867 fi
30868 #
30869 if test "$tst_compi_closesocket_camel" = "yes"; then
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30871$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30872 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30874$as_echo "yes" >&6; }
30875 tst_allow_closesocket_camel="yes"
30876 else
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30878$as_echo "no" >&6; }
30879 tst_allow_closesocket_camel="no"
30880 fi
30881 fi
30882 #
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30884$as_echo_n "checking if CloseSocket might be used... " >&6; }
30885 if test "$tst_links_closesocket_camel" = "yes" &&
30886 test "$tst_proto_closesocket_camel" = "yes" &&
30887 test "$tst_compi_closesocket_camel" = "yes" &&
30888 test "$tst_allow_closesocket_camel" = "yes"; then
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30890$as_echo "yes" >&6; }
30891
30892cat >>confdefs.h <<_ACEOF
30893#define HAVE_CLOSESOCKET_CAMEL 1
30894_ACEOF
30895
30896 curl_cv_func_closesocket_camel="yes"
30897 else
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30899$as_echo "no" >&6; }
30900 curl_cv_func_closesocket_camel="no"
30901 fi
30902
30903
30904 #
30905 tst_links_connect="unknown"
30906 tst_proto_connect="unknown"
30907 tst_compi_connect="unknown"
30908 tst_allow_connect="unknown"
30909 #
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30911$as_echo_n "checking if connect can be linked... " >&6; }
30912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30913/* end confdefs.h. */
30914
30915
30916 $curl_includes_winsock2
30917 $curl_includes_sys_socket
30918 $curl_includes_socket
30919
30920int main (void)
30921{
30922
30923 if(0 != connect(0, 0, 0))
30924 return 1;
30925
30926 ;
30927 return 0;
30928}
30929
30930_ACEOF
30931if ac_fn_c_try_link "$LINENO"; then :
30932
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30934$as_echo "yes" >&6; }
30935 tst_links_connect="yes"
30936
30937else
30938
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940$as_echo "no" >&6; }
30941 tst_links_connect="no"
30942
30943fi
30944rm -f core conftest.err conftest.$ac_objext \
30945 conftest$ac_exeext conftest.$ac_ext
30946 #
30947 if test "$tst_links_connect" = "yes"; then
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30949$as_echo_n "checking if connect is prototyped... " >&6; }
30950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30951/* end confdefs.h. */
30952
30953 $curl_includes_winsock2
30954 $curl_includes_sys_socket
30955 $curl_includes_socket
30956
30957_ACEOF
30958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30959 $EGREP "connect" >/dev/null 2>&1; then :
30960
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962$as_echo "yes" >&6; }
30963 tst_proto_connect="yes"
30964
30965else
30966
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968$as_echo "no" >&6; }
30969 tst_proto_connect="no"
30970
30971fi
30972rm -f conftest*
30973
30974 fi
30975 #
30976 if test "$tst_proto_connect" = "yes"; then
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30978$as_echo_n "checking if connect is compilable... " >&6; }
30979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30980/* end confdefs.h. */
30981
30982
30983 $curl_includes_winsock2
30984 $curl_includes_sys_socket
30985 $curl_includes_socket
30986
30987int main (void)
30988{
30989
30990 if(0 != connect(0, 0, 0))
30991 return 1;
30992
30993 ;
30994 return 0;
30995}
30996
30997_ACEOF
30998if ac_fn_c_try_compile "$LINENO"; then :
30999
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31001$as_echo "yes" >&6; }
31002 tst_compi_connect="yes"
31003
31004else
31005
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31007$as_echo "no" >&6; }
31008 tst_compi_connect="no"
31009
31010fi
31011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31012 fi
31013 #
31014 if test "$tst_compi_connect" = "yes"; then
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31016$as_echo_n "checking if connect usage allowed... " >&6; }
31017 if test "x$curl_disallow_connect" != "xyes"; then
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31019$as_echo "yes" >&6; }
31020 tst_allow_connect="yes"
31021 else
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31023$as_echo "no" >&6; }
31024 tst_allow_connect="no"
31025 fi
31026 fi
31027 #
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31029$as_echo_n "checking if connect might be used... " >&6; }
31030 if test "$tst_links_connect" = "yes" &&
31031 test "$tst_proto_connect" = "yes" &&
31032 test "$tst_compi_connect" = "yes" &&
31033 test "$tst_allow_connect" = "yes"; then
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31035$as_echo "yes" >&6; }
31036
31037cat >>confdefs.h <<_ACEOF
31038#define HAVE_CONNECT 1
31039_ACEOF
31040
31041 curl_cv_func_connect="yes"
31042 else
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31044$as_echo "no" >&6; }
31045 curl_cv_func_connect="no"
31046 fi
31047
31048
31049curl_includes_fcntl="\
31050/* includes start */
31051#ifdef HAVE_SYS_TYPES_H
31052# include <sys/types.h>
31053#endif
31054#ifdef HAVE_UNISTD_H
31055# include <unistd.h>
31056#endif
31057#ifdef HAVE_FCNTL_H
31058# include <fcntl.h>
31059#endif
31060/* includes end */"
31061 for ac_header in sys/types.h unistd.h fcntl.h
31062do :
31063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31064ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31065"
31066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31067 cat >>confdefs.h <<_ACEOF
31068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31069_ACEOF
31070
31071fi
31072
31073done
31074
31075
31076
31077 #
31078 tst_links_fcntl="unknown"
31079 tst_proto_fcntl="unknown"
31080 tst_compi_fcntl="unknown"
31081 tst_allow_fcntl="unknown"
31082 #
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31084$as_echo_n "checking if fcntl can be linked... " >&6; }
31085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31086/* end confdefs.h. */
31087
31088
31089#define fcntl innocuous_fcntl
31090#ifdef __STDC__
31091# include <limits.h>
31092#else
31093# include <assert.h>
31094#endif
31095#undef fcntl
31096#ifdef __cplusplus
31097extern "C"
31098#endif
31099char fcntl ();
31100#if defined __stub_fcntl || defined __stub___fcntl
31101choke me
31102#endif
31103
31104int main (void)
31105{
31106return fcntl ();
31107 ;
31108 return 0;
31109}
31110
31111_ACEOF
31112if ac_fn_c_try_link "$LINENO"; then :
31113
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31115$as_echo "yes" >&6; }
31116 tst_links_fcntl="yes"
31117
31118else
31119
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31121$as_echo "no" >&6; }
31122 tst_links_fcntl="no"
31123
31124fi
31125rm -f core conftest.err conftest.$ac_objext \
31126 conftest$ac_exeext conftest.$ac_ext
31127 #
31128 if test "$tst_links_fcntl" = "yes"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31130$as_echo_n "checking if fcntl is prototyped... " >&6; }
31131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31132/* end confdefs.h. */
31133
31134 $curl_includes_fcntl
31135
31136_ACEOF
31137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31138 $EGREP "fcntl" >/dev/null 2>&1; then :
31139
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31141$as_echo "yes" >&6; }
31142 tst_proto_fcntl="yes"
31143
31144else
31145
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31147$as_echo "no" >&6; }
31148 tst_proto_fcntl="no"
31149
31150fi
31151rm -f conftest*
31152
31153 fi
31154 #
31155 if test "$tst_proto_fcntl" = "yes"; then
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31157$as_echo_n "checking if fcntl is compilable... " >&6; }
31158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31159/* end confdefs.h. */
31160
31161
31162 $curl_includes_fcntl
31163
31164int main (void)
31165{
31166
31167 if(0 != fcntl(0, 0, 0))
31168 return 1;
31169
31170 ;
31171 return 0;
31172}
31173
31174_ACEOF
31175if ac_fn_c_try_compile "$LINENO"; then :
31176
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31178$as_echo "yes" >&6; }
31179 tst_compi_fcntl="yes"
31180
31181else
31182
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31184$as_echo "no" >&6; }
31185 tst_compi_fcntl="no"
31186
31187fi
31188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31189 fi
31190 #
31191 if test "$tst_compi_fcntl" = "yes"; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31193$as_echo_n "checking if fcntl usage allowed... " >&6; }
31194 if test "x$curl_disallow_fcntl" != "xyes"; then
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196$as_echo "yes" >&6; }
31197 tst_allow_fcntl="yes"
31198 else
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31200$as_echo "no" >&6; }
31201 tst_allow_fcntl="no"
31202 fi
31203 fi
31204 #
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31206$as_echo_n "checking if fcntl might be used... " >&6; }
31207 if test "$tst_links_fcntl" = "yes" &&
31208 test "$tst_proto_fcntl" = "yes" &&
31209 test "$tst_compi_fcntl" = "yes" &&
31210 test "$tst_allow_fcntl" = "yes"; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31212$as_echo "yes" >&6; }
31213
31214cat >>confdefs.h <<_ACEOF
31215#define HAVE_FCNTL 1
31216_ACEOF
31217
31218 curl_cv_func_fcntl="yes"
31219
31220 #
31221 tst_compi_fcntl_o_nonblock="unknown"
31222 tst_allow_fcntl_o_nonblock="unknown"
31223 #
31224 case $host_os in
31225 sunos4* | aix3* | beos*)
31226 curl_disallow_fcntl_o_nonblock="yes"
31227 ;;
31228 esac
31229 #
31230 if test "$curl_cv_func_fcntl" = "yes"; then
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31232$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31234/* end confdefs.h. */
31235
31236
31237 $curl_includes_fcntl
31238
31239int main (void)
31240{
31241
31242 int flags = 0;
31243 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31244 return 1;
31245
31246 ;
31247 return 0;
31248}
31249
31250_ACEOF
31251if ac_fn_c_try_compile "$LINENO"; then :
31252
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31254$as_echo "yes" >&6; }
31255 tst_compi_fcntl_o_nonblock="yes"
31256
31257else
31258
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31260$as_echo "no" >&6; }
31261 tst_compi_fcntl_o_nonblock="no"
31262
31263fi
31264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31265 fi
31266 #
31267 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31269$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31270 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31272$as_echo "yes" >&6; }
31273 tst_allow_fcntl_o_nonblock="yes"
31274 else
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31276$as_echo "no" >&6; }
31277 tst_allow_fcntl_o_nonblock="no"
31278 fi
31279 fi
31280 #
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31282$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31283 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31284 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31286$as_echo "yes" >&6; }
31287
31288cat >>confdefs.h <<_ACEOF
31289#define HAVE_FCNTL_O_NONBLOCK 1
31290_ACEOF
31291
31292 curl_cv_func_fcntl_o_nonblock="yes"
31293 else
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31295$as_echo "no" >&6; }
31296 curl_cv_func_fcntl_o_nonblock="no"
31297 fi
31298
31299 else
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31301$as_echo "no" >&6; }
31302 curl_cv_func_fcntl="no"
31303 fi
31304
31305
31306curl_includes_stdio="\
31307/* includes start */
31308#ifdef HAVE_SYS_TYPES_H
31309# include <sys/types.h>
31310#endif
31311#ifdef HAVE_STDIO_H
31312# include <stdio.h>
31313#endif
31314/* includes end */"
31315 for ac_header in sys/types.h stdio.h
31316do :
31317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31318ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31319"
31320if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31321 cat >>confdefs.h <<_ACEOF
31322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31323_ACEOF
31324
31325fi
31326
31327done
31328
31329
31330
31331 #
31332 tst_links_fdopen="unknown"
31333 tst_proto_fdopen="unknown"
31334 tst_compi_fdopen="unknown"
31335 tst_allow_fdopen="unknown"
31336 #
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31338$as_echo_n "checking if fdopen can be linked... " >&6; }
31339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31340/* end confdefs.h. */
31341
31342
31343#define fdopen innocuous_fdopen
31344#ifdef __STDC__
31345# include <limits.h>
31346#else
31347# include <assert.h>
31348#endif
31349#undef fdopen
31350#ifdef __cplusplus
31351extern "C"
31352#endif
31353char fdopen ();
31354#if defined __stub_fdopen || defined __stub___fdopen
31355choke me
31356#endif
31357
31358int main (void)
31359{
31360return fdopen ();
31361 ;
31362 return 0;
31363}
31364
31365_ACEOF
31366if ac_fn_c_try_link "$LINENO"; then :
31367
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31369$as_echo "yes" >&6; }
31370 tst_links_fdopen="yes"
31371
31372else
31373
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375$as_echo "no" >&6; }
31376 tst_links_fdopen="no"
31377
31378fi
31379rm -f core conftest.err conftest.$ac_objext \
31380 conftest$ac_exeext conftest.$ac_ext
31381 #
31382 if test "$tst_links_fdopen" = "yes"; then
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31384$as_echo_n "checking if fdopen is prototyped... " >&6; }
31385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31386/* end confdefs.h. */
31387
31388 $curl_includes_stdio
31389
31390_ACEOF
31391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31392 $EGREP "fdopen" >/dev/null 2>&1; then :
31393
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31395$as_echo "yes" >&6; }
31396 tst_proto_fdopen="yes"
31397
31398else
31399
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31401$as_echo "no" >&6; }
31402 tst_proto_fdopen="no"
31403
31404fi
31405rm -f conftest*
31406
31407 fi
31408 #
31409 if test "$tst_proto_fdopen" = "yes"; then
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31411$as_echo_n "checking if fdopen is compilable... " >&6; }
31412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31413/* end confdefs.h. */
31414
31415
31416 $curl_includes_stdio
31417
31418int main (void)
31419{
31420
31421 if(0 != fdopen(0, 0))
31422 return 1;
31423
31424 ;
31425 return 0;
31426}
31427
31428_ACEOF
31429if ac_fn_c_try_compile "$LINENO"; then :
31430
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31432$as_echo "yes" >&6; }
31433 tst_compi_fdopen="yes"
31434
31435else
31436
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31438$as_echo "no" >&6; }
31439 tst_compi_fdopen="no"
31440
31441fi
31442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31443 fi
31444 #
31445 if test "$tst_compi_fdopen" = "yes"; then
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31447$as_echo_n "checking if fdopen usage allowed... " >&6; }
31448 if test "x$curl_disallow_fdopen" != "xyes"; then
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31450$as_echo "yes" >&6; }
31451 tst_allow_fdopen="yes"
31452 else
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31454$as_echo "no" >&6; }
31455 tst_allow_fdopen="no"
31456 fi
31457 fi
31458 #
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31460$as_echo_n "checking if fdopen might be used... " >&6; }
31461 if test "$tst_links_fdopen" = "yes" &&
31462 test "$tst_proto_fdopen" = "yes" &&
31463 test "$tst_compi_fdopen" = "yes" &&
31464 test "$tst_allow_fdopen" = "yes"; then
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31466$as_echo "yes" >&6; }
31467
31468cat >>confdefs.h <<_ACEOF
31469#define HAVE_FDOPEN 1
31470_ACEOF
31471
31472 curl_cv_func_fdopen="yes"
31473 else
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31475$as_echo "no" >&6; }
31476 curl_cv_func_fdopen="no"
31477 fi
31478
31479
31480curl_includes_netdb="\
31481/* includes start */
31482#ifdef HAVE_SYS_TYPES_H
31483# include <sys/types.h>
31484#endif
31485#ifdef HAVE_NETDB_H
31486# include <netdb.h>
31487#endif
31488/* includes end */"
31489 for ac_header in sys/types.h netdb.h
31490do :
31491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31492ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31493"
31494if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31495 cat >>confdefs.h <<_ACEOF
31496#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31497_ACEOF
31498
31499fi
31500
31501done
31502
31503
31504
31505 #
31506 tst_links_freeaddrinfo="unknown"
31507 tst_proto_freeaddrinfo="unknown"
31508 tst_compi_freeaddrinfo="unknown"
31509 tst_allow_freeaddrinfo="unknown"
31510 #
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31512$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31514/* end confdefs.h. */
31515
31516
31517 $curl_includes_ws2tcpip
31518 $curl_includes_sys_socket
31519 $curl_includes_netdb
31520
31521int main (void)
31522{
31523
31524 freeaddrinfo(0);
31525
31526 ;
31527 return 0;
31528}
31529
31530_ACEOF
31531if ac_fn_c_try_link "$LINENO"; then :
31532
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31534$as_echo "yes" >&6; }
31535 tst_links_freeaddrinfo="yes"
31536
31537else
31538
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31540$as_echo "no" >&6; }
31541 tst_links_freeaddrinfo="no"
31542
31543fi
31544rm -f core conftest.err conftest.$ac_objext \
31545 conftest$ac_exeext conftest.$ac_ext
31546 #
31547 if test "$tst_links_freeaddrinfo" = "yes"; then
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31549$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31551/* end confdefs.h. */
31552
31553 $curl_includes_ws2tcpip
31554 $curl_includes_sys_socket
31555 $curl_includes_netdb
31556
31557_ACEOF
31558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31559 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31560
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31562$as_echo "yes" >&6; }
31563 tst_proto_freeaddrinfo="yes"
31564
31565else
31566
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31568$as_echo "no" >&6; }
31569 tst_proto_freeaddrinfo="no"
31570
31571fi
31572rm -f conftest*
31573
31574 fi
31575 #
31576 if test "$tst_proto_freeaddrinfo" = "yes"; then
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31578$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31580/* end confdefs.h. */
31581
31582
31583 $curl_includes_ws2tcpip
31584 $curl_includes_sys_socket
31585 $curl_includes_netdb
31586
31587int main (void)
31588{
31589
31590 freeaddrinfo(0);
31591
31592 ;
31593 return 0;
31594}
31595
31596_ACEOF
31597if ac_fn_c_try_compile "$LINENO"; then :
31598
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31600$as_echo "yes" >&6; }
31601 tst_compi_freeaddrinfo="yes"
31602
31603else
31604
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31606$as_echo "no" >&6; }
31607 tst_compi_freeaddrinfo="no"
31608
31609fi
31610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31611 fi
31612 #
31613 if test "$tst_compi_freeaddrinfo" = "yes"; then
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31615$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31616 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31618$as_echo "yes" >&6; }
31619 tst_allow_freeaddrinfo="yes"
31620 else
31621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31622$as_echo "no" >&6; }
31623 tst_allow_freeaddrinfo="no"
31624 fi
31625 fi
31626 #
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31628$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31629 if test "$tst_links_freeaddrinfo" = "yes" &&
31630 test "$tst_proto_freeaddrinfo" = "yes" &&
31631 test "$tst_compi_freeaddrinfo" = "yes" &&
31632 test "$tst_allow_freeaddrinfo" = "yes"; then
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31634$as_echo "yes" >&6; }
31635
31636cat >>confdefs.h <<_ACEOF
31637#define HAVE_FREEADDRINFO 1
31638_ACEOF
31639
31640 curl_cv_func_freeaddrinfo="yes"
31641 else
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31643$as_echo "no" >&6; }
31644 curl_cv_func_freeaddrinfo="no"
31645 fi
31646
31647
31648curl_includes_ifaddrs="\
31649/* includes start */
31650#ifdef HAVE_SYS_TYPES_H
31651# include <sys/types.h>
31652#endif
31653#ifdef HAVE_SYS_SOCKET_H
31654# include <sys/socket.h>
31655#endif
31656#ifdef HAVE_NETINET_IN_H
31657# include <netinet/in.h>
31658#endif
31659#ifdef HAVE_IFADDRS_H
31660# include <ifaddrs.h>
31661#endif
31662/* includes end */"
31663 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31664do :
31665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31666ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31667"
31668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31669 cat >>confdefs.h <<_ACEOF
31670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31671_ACEOF
31672
31673fi
31674
31675done
31676
31677
31678
31679 #
31680 tst_links_freeifaddrs="unknown"
31681 tst_proto_freeifaddrs="unknown"
31682 tst_compi_freeifaddrs="unknown"
31683 tst_allow_freeifaddrs="unknown"
31684 #
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31686$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688/* end confdefs.h. */
31689
31690
31691#define freeifaddrs innocuous_freeifaddrs
31692#ifdef __STDC__
31693# include <limits.h>
31694#else
31695# include <assert.h>
31696#endif
31697#undef freeifaddrs
31698#ifdef __cplusplus
31699extern "C"
31700#endif
31701char freeifaddrs ();
31702#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31703choke me
31704#endif
31705
31706int main (void)
31707{
31708return freeifaddrs ();
31709 ;
31710 return 0;
31711}
31712
31713_ACEOF
31714if ac_fn_c_try_link "$LINENO"; then :
31715
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31717$as_echo "yes" >&6; }
31718 tst_links_freeifaddrs="yes"
31719
31720else
31721
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31723$as_echo "no" >&6; }
31724 tst_links_freeifaddrs="no"
31725
31726fi
31727rm -f core conftest.err conftest.$ac_objext \
31728 conftest$ac_exeext conftest.$ac_ext
31729 #
31730 if test "$tst_links_freeifaddrs" = "yes"; then
31731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31732$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31734/* end confdefs.h. */
31735
31736 $curl_includes_ifaddrs
31737
31738_ACEOF
31739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31740 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31741
31742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31743$as_echo "yes" >&6; }
31744 tst_proto_freeifaddrs="yes"
31745
31746else
31747
31748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31749$as_echo "no" >&6; }
31750 tst_proto_freeifaddrs="no"
31751
31752fi
31753rm -f conftest*
31754
31755 fi
31756 #
31757 if test "$tst_proto_freeifaddrs" = "yes"; then
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31759$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31761/* end confdefs.h. */
31762
31763
31764 $curl_includes_ifaddrs
31765
31766int main (void)
31767{
31768
31769 freeifaddrs(0);
31770
31771 ;
31772 return 0;
31773}
31774
31775_ACEOF
31776if ac_fn_c_try_compile "$LINENO"; then :
31777
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31779$as_echo "yes" >&6; }
31780 tst_compi_freeifaddrs="yes"
31781
31782else
31783
31784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31785$as_echo "no" >&6; }
31786 tst_compi_freeifaddrs="no"
31787
31788fi
31789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31790 fi
31791 #
31792 if test "$tst_compi_freeifaddrs" = "yes"; then
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31794$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31795 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797$as_echo "yes" >&6; }
31798 tst_allow_freeifaddrs="yes"
31799 else
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31801$as_echo "no" >&6; }
31802 tst_allow_freeifaddrs="no"
31803 fi
31804 fi
31805 #
31806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31807$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31808 if test "$tst_links_freeifaddrs" = "yes" &&
31809 test "$tst_proto_freeifaddrs" = "yes" &&
31810 test "$tst_compi_freeifaddrs" = "yes" &&
31811 test "$tst_allow_freeifaddrs" = "yes"; then
31812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31813$as_echo "yes" >&6; }
31814
31815cat >>confdefs.h <<_ACEOF
31816#define HAVE_FREEIFADDRS 1
31817_ACEOF
31818
31819 curl_cv_func_freeifaddrs="yes"
31820 else
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822$as_echo "no" >&6; }
31823 curl_cv_func_freeifaddrs="no"
31824 fi
31825
31826
31827curl_includes_sys_xattr="\
31828/* includes start */
31829#ifdef HAVE_SYS_TYPES_H
31830# include <sys/types.h>
31831#endif
31832#ifdef HAVE_SYS_XATTR_H
31833# include <sys/xattr.h>
31834#endif
31835/* includes end */"
31836 for ac_header in sys/types.h sys/xattr.h
31837do :
31838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31839ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31840"
31841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31842 cat >>confdefs.h <<_ACEOF
31843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31844_ACEOF
31845
31846fi
31847
31848done
31849
31850
31851
31852 #
31853 tst_links_fsetxattr="unknown"
31854 tst_proto_fsetxattr="unknown"
31855 tst_compi_fsetxattr="unknown"
31856 tst_allow_fsetxattr="unknown"
31857 tst_nargs_fsetxattr="unknown"
31858 #
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31860$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31862/* end confdefs.h. */
31863
31864
31865#define fsetxattr innocuous_fsetxattr
31866#ifdef __STDC__
31867# include <limits.h>
31868#else
31869# include <assert.h>
31870#endif
31871#undef fsetxattr
31872#ifdef __cplusplus
31873extern "C"
31874#endif
31875char fsetxattr ();
31876#if defined __stub_fsetxattr || defined __stub___fsetxattr
31877choke me
31878#endif
31879
31880int main (void)
31881{
31882return fsetxattr ();
31883 ;
31884 return 0;
31885}
31886
31887_ACEOF
31888if ac_fn_c_try_link "$LINENO"; then :
31889
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31891$as_echo "yes" >&6; }
31892 tst_links_fsetxattr="yes"
31893
31894else
31895
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897$as_echo "no" >&6; }
31898 tst_links_fsetxattr="no"
31899
31900fi
31901rm -f core conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
31903 #
31904 if test "$tst_links_fsetxattr" = "yes"; then
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31906$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31908/* end confdefs.h. */
31909
31910 $curl_includes_sys_xattr
31911
31912_ACEOF
31913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31914 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31915
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31917$as_echo "yes" >&6; }
31918 tst_proto_fsetxattr="yes"
31919
31920else
31921
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31923$as_echo "no" >&6; }
31924 tst_proto_fsetxattr="no"
31925
31926fi
31927rm -f conftest*
31928
31929 fi
31930 #
31931 if test "$tst_proto_fsetxattr" = "yes"; then
31932 if test "$tst_nargs_fsetxattr" = "unknown"; then
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31934$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936/* end confdefs.h. */
31937
31938
31939 $curl_includes_sys_xattr
31940
31941int main (void)
31942{
31943
31944 if(0 != fsetxattr(0, 0, 0, 0, 0))
31945 return 1;
31946
31947 ;
31948 return 0;
31949}
31950
31951_ACEOF
31952if ac_fn_c_try_compile "$LINENO"; then :
31953
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31955$as_echo "yes" >&6; }
31956 tst_compi_fsetxattr="yes"
31957 tst_nargs_fsetxattr="5"
31958
31959else
31960
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31962$as_echo "no" >&6; }
31963 tst_compi_fsetxattr="no"
31964
31965fi
31966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31967 fi
31968 if test "$tst_nargs_fsetxattr" = "unknown"; then
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31970$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31972/* end confdefs.h. */
31973
31974
31975 $curl_includes_sys_xattr
31976
31977int main (void)
31978{
31979
31980 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31981 return 1;
31982
31983 ;
31984 return 0;
31985}
31986
31987_ACEOF
31988if ac_fn_c_try_compile "$LINENO"; then :
31989
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31991$as_echo "yes" >&6; }
31992 tst_compi_fsetxattr="yes"
31993 tst_nargs_fsetxattr="6"
31994
31995else
31996
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31998$as_echo "no" >&6; }
31999 tst_compi_fsetxattr="no"
32000
32001fi
32002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32003 fi
32004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32005$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32006 if test "$tst_compi_fsetxattr" = "yes"; then
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32008$as_echo "yes" >&6; }
32009 else
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32011$as_echo "no" >&6; }
32012 fi
32013 fi
32014 #
32015 if test "$tst_compi_fsetxattr" = "yes"; then
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32017$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32018 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32020$as_echo "yes" >&6; }
32021 tst_allow_fsetxattr="yes"
32022 else
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32024$as_echo "no" >&6; }
32025 tst_allow_fsetxattr="no"
32026 fi
32027 fi
32028 #
32029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32030$as_echo_n "checking if fsetxattr might be used... " >&6; }
32031 if test "$tst_links_fsetxattr" = "yes" &&
32032 test "$tst_proto_fsetxattr" = "yes" &&
32033 test "$tst_compi_fsetxattr" = "yes" &&
32034 test "$tst_allow_fsetxattr" = "yes"; then
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036$as_echo "yes" >&6; }
32037
32038cat >>confdefs.h <<_ACEOF
32039#define HAVE_FSETXATTR 1
32040_ACEOF
32041
32042 #
32043 if test "$tst_nargs_fsetxattr" -eq "5"; then
32044
32045$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32046
32047 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32048
32049$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32050
32051 fi
32052 #
32053 curl_cv_func_fsetxattr="yes"
32054 else
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32056$as_echo "no" >&6; }
32057 curl_cv_func_fsetxattr="no"
32058 fi
32059
32060
32061 #
32062 tst_links_ftruncate="unknown"
32063 tst_proto_ftruncate="unknown"
32064 tst_compi_ftruncate="unknown"
32065 tst_allow_ftruncate="unknown"
32066 #
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32068$as_echo_n "checking if ftruncate can be linked... " >&6; }
32069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32070/* end confdefs.h. */
32071
32072
32073#define ftruncate innocuous_ftruncate
32074#ifdef __STDC__
32075# include <limits.h>
32076#else
32077# include <assert.h>
32078#endif
32079#undef ftruncate
32080#ifdef __cplusplus
32081extern "C"
32082#endif
32083char ftruncate ();
32084#if defined __stub_ftruncate || defined __stub___ftruncate
32085choke me
32086#endif
32087
32088int main (void)
32089{
32090return ftruncate ();
32091 ;
32092 return 0;
32093}
32094
32095_ACEOF
32096if ac_fn_c_try_link "$LINENO"; then :
32097
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32099$as_echo "yes" >&6; }
32100 tst_links_ftruncate="yes"
32101
32102else
32103
32104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32105$as_echo "no" >&6; }
32106 tst_links_ftruncate="no"
32107
32108fi
32109rm -f core conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
32111 #
32112 if test "$tst_links_ftruncate" = "yes"; then
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32114$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32116/* end confdefs.h. */
32117
32118 $curl_includes_unistd
32119
32120_ACEOF
32121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32122 $EGREP "ftruncate" >/dev/null 2>&1; then :
32123
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32125$as_echo "yes" >&6; }
32126 tst_proto_ftruncate="yes"
32127
32128else
32129
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32131$as_echo "no" >&6; }
32132 tst_proto_ftruncate="no"
32133
32134fi
32135rm -f conftest*
32136
32137 fi
32138 #
32139 if test "$tst_proto_ftruncate" = "yes"; then
32140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32141$as_echo_n "checking if ftruncate is compilable... " >&6; }
32142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32143/* end confdefs.h. */
32144
32145
32146 $curl_includes_unistd
32147
32148int main (void)
32149{
32150
32151 if(0 != ftruncate(0, 0))
32152 return 1;
32153
32154 ;
32155 return 0;
32156}
32157
32158_ACEOF
32159if ac_fn_c_try_compile "$LINENO"; then :
32160
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32162$as_echo "yes" >&6; }
32163 tst_compi_ftruncate="yes"
32164
32165else
32166
32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168$as_echo "no" >&6; }
32169 tst_compi_ftruncate="no"
32170
32171fi
32172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32173 fi
32174 #
32175 if test "$tst_compi_ftruncate" = "yes"; then
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32177$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32178 if test "x$curl_disallow_ftruncate" != "xyes"; then
32179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32180$as_echo "yes" >&6; }
32181 tst_allow_ftruncate="yes"
32182 else
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32184$as_echo "no" >&6; }
32185 tst_allow_ftruncate="no"
32186 fi
32187 fi
32188 #
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32190$as_echo_n "checking if ftruncate might be used... " >&6; }
32191 if test "$tst_links_ftruncate" = "yes" &&
32192 test "$tst_proto_ftruncate" = "yes" &&
32193 test "$tst_compi_ftruncate" = "yes" &&
32194 test "$tst_allow_ftruncate" = "yes"; then
32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32196$as_echo "yes" >&6; }
32197
32198cat >>confdefs.h <<_ACEOF
32199#define HAVE_FTRUNCATE 1
32200_ACEOF
32201
32202 curl_cv_func_ftruncate="yes"
32203 else
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32205$as_echo "no" >&6; }
32206 curl_cv_func_ftruncate="no"
32207 fi
32208
32209
32210curl_includes_stdlib="\
32211/* includes start */
32212#ifdef HAVE_SYS_TYPES_H
32213# include <sys/types.h>
32214#endif
32215#ifdef HAVE_STDLIB_H
32216# include <stdlib.h>
32217#endif
32218/* includes end */"
32219 for ac_header in sys/types.h stdlib.h
32220do :
32221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32222ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32223"
32224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32225 cat >>confdefs.h <<_ACEOF
32226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32227_ACEOF
32228
32229fi
32230
32231done
32232
32233
32234
32235 #
32236 tst_links_getaddrinfo="unknown"
32237 tst_proto_getaddrinfo="unknown"
32238 tst_compi_getaddrinfo="unknown"
32239 tst_works_getaddrinfo="unknown"
32240 tst_allow_getaddrinfo="unknown"
32241 tst_tsafe_getaddrinfo="unknown"
32242 #
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32244$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32246/* end confdefs.h. */
32247
32248
32249 $curl_includes_ws2tcpip
32250 $curl_includes_sys_socket
32251 $curl_includes_netdb
32252
32253int main (void)
32254{
32255
32256 if(0 != getaddrinfo(0, 0, 0, 0))
32257 return 1;
32258
32259 ;
32260 return 0;
32261}
32262
32263_ACEOF
32264if ac_fn_c_try_link "$LINENO"; then :
32265
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32267$as_echo "yes" >&6; }
32268 tst_links_getaddrinfo="yes"
32269
32270else
32271
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32273$as_echo "no" >&6; }
32274 tst_links_getaddrinfo="no"
32275
32276fi
32277rm -f core conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
32279 #
32280 if test "$tst_links_getaddrinfo" = "yes"; then
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32282$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32284/* end confdefs.h. */
32285
32286 $curl_includes_ws2tcpip
32287 $curl_includes_sys_socket
32288 $curl_includes_netdb
32289
32290_ACEOF
32291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32292 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32293
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295$as_echo "yes" >&6; }
32296 tst_proto_getaddrinfo="yes"
32297
32298else
32299
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301$as_echo "no" >&6; }
32302 tst_proto_getaddrinfo="no"
32303
32304fi
32305rm -f conftest*
32306
32307 fi
32308 #
32309 if test "$tst_proto_getaddrinfo" = "yes"; then
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32311$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32313/* end confdefs.h. */
32314
32315
32316 $curl_includes_ws2tcpip
32317 $curl_includes_sys_socket
32318 $curl_includes_netdb
32319
32320int main (void)
32321{
32322
32323 if(0 != getaddrinfo(0, 0, 0, 0))
32324 return 1;
32325
32326 ;
32327 return 0;
32328}
32329
32330_ACEOF
32331if ac_fn_c_try_compile "$LINENO"; then :
32332
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32334$as_echo "yes" >&6; }
32335 tst_compi_getaddrinfo="yes"
32336
32337else
32338
32339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32340$as_echo "no" >&6; }
32341 tst_compi_getaddrinfo="no"
32342
32343fi
32344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32345 fi
32346 #
32347 if test "x$cross_compiling" != "xyes" &&
32348 test "$tst_compi_getaddrinfo" = "yes"; then
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32350$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32351 if test "$cross_compiling" = yes; then :
32352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32354as_fn_error $? "cannot run test program while cross compiling
32355See \`config.log' for more details" "$LINENO" 5; }
32356else
32357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32358/* end confdefs.h. */
32359
32360
32361 $curl_includes_ws2tcpip
32362 $curl_includes_stdlib
32363 $curl_includes_string
32364 $curl_includes_sys_socket
32365 $curl_includes_netdb
32366
32367int main (void)
32368{
32369
32370 struct addrinfo hints;
32371 struct addrinfo *ai = 0;
32372 int error;
32373
32374 #ifdef HAVE_WINSOCK2_H
32375 WSADATA wsa;
32376 if (WSAStartup(MAKEWORD(2,2), &wsa))
32377 exit(2);
32378 #endif
32379
32380 memset(&hints, 0, sizeof(hints));
32381 hints.ai_flags = AI_NUMERICHOST;
32382 hints.ai_family = AF_UNSPEC;
32383 hints.ai_socktype = SOCK_STREAM;
32384 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32385 if(error || !ai)
32386 exit(1); /* fail */
32387 else
32388 exit(0);
32389
32390 ;
32391 return 0;
32392}
32393
32394_ACEOF
32395if ac_fn_c_try_run "$LINENO"; then :
32396
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32398$as_echo "yes" >&6; }
32399 tst_works_getaddrinfo="yes"
32400
32401else
32402
32403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404$as_echo "no" >&6; }
32405 tst_works_getaddrinfo="no"
32406
32407fi
32408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32409 conftest.$ac_objext conftest.beam conftest.$ac_ext
32410fi
32411
32412 fi
32413 #
32414 if test "$tst_compi_getaddrinfo" = "yes" &&
32415 test "$tst_works_getaddrinfo" != "no"; then
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32417$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32418 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32420$as_echo "yes" >&6; }
32421 tst_allow_getaddrinfo="yes"
32422 else
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32424$as_echo "no" >&6; }
32425 tst_allow_getaddrinfo="no"
32426 fi
32427 fi
32428 #
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32430$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32431 if test "$tst_links_getaddrinfo" = "yes" &&
32432 test "$tst_proto_getaddrinfo" = "yes" &&
32433 test "$tst_compi_getaddrinfo" = "yes" &&
32434 test "$tst_allow_getaddrinfo" = "yes" &&
32435 test "$tst_works_getaddrinfo" != "no"; then
32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32437$as_echo "yes" >&6; }
32438
32439cat >>confdefs.h <<_ACEOF
32440#define HAVE_GETADDRINFO 1
32441_ACEOF
32442
32443 curl_cv_func_getaddrinfo="yes"
32444 else
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32446$as_echo "no" >&6; }
32447 curl_cv_func_getaddrinfo="no"
32448 curl_cv_func_getaddrinfo_threadsafe="no"
32449 fi
32450 #
32451 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32453$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32454 case $host_os in
32455 aix[1234].* | aix5.[01].*)
32456 tst_tsafe_getaddrinfo="no"
32457 ;;
32458 aix*)
32459 tst_tsafe_getaddrinfo="yes"
32460 ;;
32461 darwin[12345].*)
32462 tst_tsafe_getaddrinfo="no"
32463 ;;
32464 darwin*)
32465 tst_tsafe_getaddrinfo="yes"
32466 ;;
32467 freebsd[1234].* | freebsd5.[1234]*)
32468 tst_tsafe_getaddrinfo="no"
32469 ;;
32470 freebsd*)
32471 tst_tsafe_getaddrinfo="yes"
32472 ;;
32473 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32474 tst_tsafe_getaddrinfo="no"
32475 ;;
32476 hpux*)
32477 tst_tsafe_getaddrinfo="yes"
32478 ;;
32479 netbsd[123].*)
32480 tst_tsafe_getaddrinfo="no"
32481 ;;
32482 netbsd*)
32483 tst_tsafe_getaddrinfo="yes"
32484 ;;
32485 *bsd*)
32486 tst_tsafe_getaddrinfo="no"
32487 ;;
32488 solaris2*)
32489 tst_tsafe_getaddrinfo="yes"
32490 ;;
32491 esac
32492 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32493 test "$curl_cv_native_windows" = "yes"; then
32494 tst_tsafe_getaddrinfo="yes"
32495 fi
32496 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32497
32498
32499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32500/* end confdefs.h. */
32501
32502
32503 $curl_includes_sys_socket
32504 $curl_includes_netdb
32505
32506int main (void)
32507{
32508#ifdef h_errno
32509 return 0;
32510#else
32511 force compilation error
32512#endif
32513}
32514
32515
32516_ACEOF
32517if ac_fn_c_try_compile "$LINENO"; then :
32518
32519 tst_symbol_defined="yes"
32520
32521else
32522
32523 tst_symbol_defined="no"
32524
32525fi
32526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32527 if test "$tst_symbol_defined" = "yes"; then
32528 curl_cv_have_def_h_errno=yes
32529
32530 else
32531 curl_cv_have_def_h_errno=no
32532
32533 fi
32534
32535 if test "$curl_cv_have_def_h_errno" = "yes"; then
32536 tst_h_errno_macro="yes"
32537 else
32538 tst_h_errno_macro="no"
32539 fi
32540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32541/* end confdefs.h. */
32542
32543
32544 $curl_includes_sys_socket
32545 $curl_includes_netdb
32546
32547int main (void)
32548{
32549
32550 h_errno = 2;
32551 if(0 != h_errno)
32552 return 1;
32553
32554 ;
32555 return 0;
32556}
32557
32558_ACEOF
32559if ac_fn_c_try_compile "$LINENO"; then :
32560
32561 tst_h_errno_modifiable_lvalue="yes"
32562
32563else
32564
32565 tst_h_errno_modifiable_lvalue="no"
32566
32567fi
32568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32570/* end confdefs.h. */
32571
32572
32573
32574int main (void)
32575{
32576
32577#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32578 return 0;
32579#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32580 return 0;
32581#else
32582 force compilation error
32583#endif
32584
32585 ;
32586 return 0;
32587}
32588
32589_ACEOF
32590if ac_fn_c_try_compile "$LINENO"; then :
32591
32592 tst_h_errno_sbs_issue_7="yes"
32593
32594else
32595
32596 tst_h_errno_sbs_issue_7="no"
32597
32598fi
32599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32600 if test "$tst_h_errno_macro" = "no" &&
32601 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32602 test "$tst_h_errno_sbs_issue_7" = "no"; then
32603 tst_tsafe_getaddrinfo="no"
32604 else
32605 tst_tsafe_getaddrinfo="yes"
32606 fi
32607 fi
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32609$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32610 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32611
32612cat >>confdefs.h <<_ACEOF
32613#define HAVE_GETADDRINFO_THREADSAFE 1
32614_ACEOF
32615
32616 curl_cv_func_getaddrinfo_threadsafe="yes"
32617 else
32618 curl_cv_func_getaddrinfo_threadsafe="no"
32619 fi
32620 fi
32621
32622
32623 #
32624 tst_links_gai_strerror="unknown"
32625 tst_proto_gai_strerror="unknown"
32626 tst_compi_gai_strerror="unknown"
32627 tst_allow_gai_strerror="unknown"
32628 #
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32630$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32632/* end confdefs.h. */
32633
32634
32635 $curl_includes_winsock2
32636 $curl_includes_netdb
32637
32638int main (void)
32639{
32640
32641 if(0 != gai_strerror(0))
32642 return 1;
32643
32644 ;
32645 return 0;
32646}
32647
32648_ACEOF
32649if ac_fn_c_try_link "$LINENO"; then :
32650
32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32652$as_echo "yes" >&6; }
32653 tst_links_gai_strerror="yes"
32654
32655else
32656
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32658$as_echo "no" >&6; }
32659 tst_links_gai_strerror="no"
32660
32661fi
32662rm -f core conftest.err conftest.$ac_objext \
32663 conftest$ac_exeext conftest.$ac_ext
32664 #
32665 if test "$tst_links_gai_strerror" = "yes"; then
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32667$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32669/* end confdefs.h. */
32670
32671 $curl_includes_winsock2
32672 $curl_includes_netdb
32673
32674_ACEOF
32675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32676 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32677
32678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32679$as_echo "yes" >&6; }
32680 tst_proto_gai_strerror="yes"
32681
32682else
32683
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32685$as_echo "no" >&6; }
32686 tst_proto_gai_strerror="no"
32687
32688fi
32689rm -f conftest*
32690
32691 fi
32692 #
32693 if test "$tst_proto_gai_strerror" = "yes"; then
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32695$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32697/* end confdefs.h. */
32698
32699
32700 $curl_includes_winsock2
32701 $curl_includes_netdb
32702
32703int main (void)
32704{
32705
32706 if(0 != gai_strerror(0))
32707 return 1;
32708
32709 ;
32710 return 0;
32711}
32712
32713_ACEOF
32714if ac_fn_c_try_compile "$LINENO"; then :
32715
32716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32717$as_echo "yes" >&6; }
32718 tst_compi_gai_strerror="yes"
32719
32720else
32721
32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32723$as_echo "no" >&6; }
32724 tst_compi_gai_strerror="no"
32725
32726fi
32727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32728 fi
32729 #
32730 if test "$tst_compi_gai_strerror" = "yes"; then
32731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32732$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32733 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32735$as_echo "yes" >&6; }
32736 tst_allow_gai_strerror="yes"
32737 else
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32739$as_echo "no" >&6; }
32740 tst_allow_gai_strerror="no"
32741 fi
32742 fi
32743 #
32744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32745$as_echo_n "checking if gai_strerror might be used... " >&6; }
32746 if test "$tst_links_gai_strerror" = "yes" &&
32747 test "$tst_proto_gai_strerror" = "yes" &&
32748 test "$tst_compi_gai_strerror" = "yes" &&
32749 test "$tst_allow_gai_strerror" = "yes"; then
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32751$as_echo "yes" >&6; }
32752
32753cat >>confdefs.h <<_ACEOF
32754#define HAVE_GAI_STRERROR 1
32755_ACEOF
32756
32757 curl_cv_func_gai_strerror="yes"
32758 else
32759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32760$as_echo "no" >&6; }
32761 curl_cv_func_gai_strerror="no"
32762 fi
32763
32764
32765 #
32766 tst_links_gethostbyaddr="unknown"
32767 tst_proto_gethostbyaddr="unknown"
32768 tst_compi_gethostbyaddr="unknown"
32769 tst_allow_gethostbyaddr="unknown"
32770 #
32771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32772$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32774/* end confdefs.h. */
32775
32776
32777 $curl_includes_winsock2
32778 $curl_includes_netdb
32779
32780int main (void)
32781{
32782
32783 if(0 != gethostbyaddr(0, 0, 0))
32784 return 1;
32785
32786 ;
32787 return 0;
32788}
32789
32790_ACEOF
32791if ac_fn_c_try_link "$LINENO"; then :
32792
32793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32794$as_echo "yes" >&6; }
32795 tst_links_gethostbyaddr="yes"
32796
32797else
32798
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32800$as_echo "no" >&6; }
32801 tst_links_gethostbyaddr="no"
32802
32803fi
32804rm -f core conftest.err conftest.$ac_objext \
32805 conftest$ac_exeext conftest.$ac_ext
32806 #
32807 if test "$tst_links_gethostbyaddr" = "yes"; then
32808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32809$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32811/* end confdefs.h. */
32812
32813 $curl_includes_winsock2
32814 $curl_includes_netdb
32815
32816_ACEOF
32817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32818 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32819
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32821$as_echo "yes" >&6; }
32822 tst_proto_gethostbyaddr="yes"
32823
32824else
32825
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32827$as_echo "no" >&6; }
32828 tst_proto_gethostbyaddr="no"
32829
32830fi
32831rm -f conftest*
32832
32833 fi
32834 #
32835 if test "$tst_proto_gethostbyaddr" = "yes"; then
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32837$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32839/* end confdefs.h. */
32840
32841
32842 $curl_includes_winsock2
32843 $curl_includes_netdb
32844
32845int main (void)
32846{
32847
32848 if(0 != gethostbyaddr(0, 0, 0))
32849 return 1;
32850
32851 ;
32852 return 0;
32853}
32854
32855_ACEOF
32856if ac_fn_c_try_compile "$LINENO"; then :
32857
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32859$as_echo "yes" >&6; }
32860 tst_compi_gethostbyaddr="yes"
32861
32862else
32863
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32865$as_echo "no" >&6; }
32866 tst_compi_gethostbyaddr="no"
32867
32868fi
32869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32870 fi
32871 #
32872 if test "$tst_compi_gethostbyaddr" = "yes"; then
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32874$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32875 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32877$as_echo "yes" >&6; }
32878 tst_allow_gethostbyaddr="yes"
32879 else
32880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32881$as_echo "no" >&6; }
32882 tst_allow_gethostbyaddr="no"
32883 fi
32884 fi
32885 #
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32887$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32888 if test "$tst_links_gethostbyaddr" = "yes" &&
32889 test "$tst_proto_gethostbyaddr" = "yes" &&
32890 test "$tst_compi_gethostbyaddr" = "yes" &&
32891 test "$tst_allow_gethostbyaddr" = "yes"; then
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32893$as_echo "yes" >&6; }
32894
32895cat >>confdefs.h <<_ACEOF
32896#define HAVE_GETHOSTBYADDR 1
32897_ACEOF
32898
32899 curl_cv_func_gethostbyaddr="yes"
32900 else
32901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32902$as_echo "no" >&6; }
32903 curl_cv_func_gethostbyaddr="no"
32904 fi
32905
32906
32907 #
32908 tst_links_gethostbyaddr_r="unknown"
32909 tst_proto_gethostbyaddr_r="unknown"
32910 tst_compi_gethostbyaddr_r="unknown"
32911 tst_allow_gethostbyaddr_r="unknown"
32912 tst_nargs_gethostbyaddr_r="unknown"
32913 #
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32915$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32917/* end confdefs.h. */
32918
32919
32920#define gethostbyaddr_r innocuous_gethostbyaddr_r
32921#ifdef __STDC__
32922# include <limits.h>
32923#else
32924# include <assert.h>
32925#endif
32926#undef gethostbyaddr_r
32927#ifdef __cplusplus
32928extern "C"
32929#endif
32930char gethostbyaddr_r ();
32931#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32932choke me
32933#endif
32934
32935int main (void)
32936{
32937return gethostbyaddr_r ();
32938 ;
32939 return 0;
32940}
32941
32942_ACEOF
32943if ac_fn_c_try_link "$LINENO"; then :
32944
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32946$as_echo "yes" >&6; }
32947 tst_links_gethostbyaddr_r="yes"
32948
32949else
32950
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32952$as_echo "no" >&6; }
32953 tst_links_gethostbyaddr_r="no"
32954
32955fi
32956rm -f core conftest.err conftest.$ac_objext \
32957 conftest$ac_exeext conftest.$ac_ext
32958 #
32959 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32961$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32963/* end confdefs.h. */
32964
32965 $curl_includes_netdb
32966
32967_ACEOF
32968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32969 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32970
32971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32972$as_echo "yes" >&6; }
32973 tst_proto_gethostbyaddr_r="yes"
32974
32975else
32976
32977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32978$as_echo "no" >&6; }
32979 tst_proto_gethostbyaddr_r="no"
32980
32981fi
32982rm -f conftest*
32983
32984 fi
32985 #
32986 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32987 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32989$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32991/* end confdefs.h. */
32992
32993
32994 $curl_includes_netdb
32995
32996int main (void)
32997{
32998
32999 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33000 return 1;
33001
33002 ;
33003 return 0;
33004}
33005
33006_ACEOF
33007if ac_fn_c_try_compile "$LINENO"; then :
33008
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33010$as_echo "yes" >&6; }
33011 tst_compi_gethostbyaddr_r="yes"
33012 tst_nargs_gethostbyaddr_r="5"
33013
33014else
33015
33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33017$as_echo "no" >&6; }
33018 tst_compi_gethostbyaddr_r="no"
33019
33020fi
33021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33022 fi
33023 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33025$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33027/* end confdefs.h. */
33028
33029
33030 $curl_includes_netdb
33031
33032int main (void)
33033{
33034
33035 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33036 return 1;
33037
33038 ;
33039 return 0;
33040}
33041
33042_ACEOF
33043if ac_fn_c_try_compile "$LINENO"; then :
33044
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33046$as_echo "yes" >&6; }
33047 tst_compi_gethostbyaddr_r="yes"
33048 tst_nargs_gethostbyaddr_r="7"
33049
33050else
33051
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33053$as_echo "no" >&6; }
33054 tst_compi_gethostbyaddr_r="no"
33055
33056fi
33057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33058 fi
33059 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33061$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33063/* end confdefs.h. */
33064
33065
33066 $curl_includes_netdb
33067
33068int main (void)
33069{
33070
33071 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33072 return 1;
33073
33074 ;
33075 return 0;
33076}
33077
33078_ACEOF
33079if ac_fn_c_try_compile "$LINENO"; then :
33080
33081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33082$as_echo "yes" >&6; }
33083 tst_compi_gethostbyaddr_r="yes"
33084 tst_nargs_gethostbyaddr_r="8"
33085
33086else
33087
33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33089$as_echo "no" >&6; }
33090 tst_compi_gethostbyaddr_r="no"
33091
33092fi
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094 fi
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33096$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33097 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33099$as_echo "yes" >&6; }
33100 else
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33102$as_echo "no" >&6; }
33103 fi
33104 fi
33105 #
33106 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33108$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33109 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33111$as_echo "yes" >&6; }
33112 tst_allow_gethostbyaddr_r="yes"
33113 else
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33115$as_echo "no" >&6; }
33116 tst_allow_gethostbyaddr_r="no"
33117 fi
33118 fi
33119 #
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33121$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33122 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33123 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33124 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33125 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33127$as_echo "yes" >&6; }
33128
33129cat >>confdefs.h <<_ACEOF
33130#define HAVE_GETHOSTBYADDR_R 1
33131_ACEOF
33132
33133 #
33134 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33135
33136$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33137
33138 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33139
33140$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33141
33142 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33143
33144$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33145
33146 fi
33147 #
33148 curl_cv_func_gethostbyaddr_r="yes"
33149 else
33150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33151$as_echo "no" >&6; }
33152 curl_cv_func_gethostbyaddr_r="no"
33153 fi
33154
33155
33156 #
33157 tst_links_gethostbyname="unknown"
33158 tst_proto_gethostbyname="unknown"
33159 tst_compi_gethostbyname="unknown"
33160 tst_allow_gethostbyname="unknown"
33161 #
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33163$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33165/* end confdefs.h. */
33166
33167
33168 $curl_includes_winsock2
33169 $curl_includes_netdb
33170
33171int main (void)
33172{
33173
33174 if(0 != gethostbyname(0))
33175 return 1;
33176
33177 ;
33178 return 0;
33179}
33180
33181_ACEOF
33182if ac_fn_c_try_link "$LINENO"; then :
33183
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33185$as_echo "yes" >&6; }
33186 tst_links_gethostbyname="yes"
33187
33188else
33189
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33191$as_echo "no" >&6; }
33192 tst_links_gethostbyname="no"
33193
33194fi
33195rm -f core conftest.err conftest.$ac_objext \
33196 conftest$ac_exeext conftest.$ac_ext
33197 #
33198 if test "$tst_links_gethostbyname" = "yes"; then
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33200$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33202/* end confdefs.h. */
33203
33204 $curl_includes_winsock2
33205 $curl_includes_netdb
33206
33207_ACEOF
33208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33209 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33210
33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33212$as_echo "yes" >&6; }
33213 tst_proto_gethostbyname="yes"
33214
33215else
33216
33217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33218$as_echo "no" >&6; }
33219 tst_proto_gethostbyname="no"
33220
33221fi
33222rm -f conftest*
33223
33224 fi
33225 #
33226 if test "$tst_proto_gethostbyname" = "yes"; then
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33228$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33230/* end confdefs.h. */
33231
33232
33233 $curl_includes_winsock2
33234 $curl_includes_netdb
33235
33236int main (void)
33237{
33238
33239 if(0 != gethostbyname(0))
33240 return 1;
33241
33242 ;
33243 return 0;
33244}
33245
33246_ACEOF
33247if ac_fn_c_try_compile "$LINENO"; then :
33248
33249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33250$as_echo "yes" >&6; }
33251 tst_compi_gethostbyname="yes"
33252
33253else
33254
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33256$as_echo "no" >&6; }
33257 tst_compi_gethostbyname="no"
33258
33259fi
33260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33261 fi
33262 #
33263 if test "$tst_compi_gethostbyname" = "yes"; then
33264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33265$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33266 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33268$as_echo "yes" >&6; }
33269 tst_allow_gethostbyname="yes"
33270 else
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33272$as_echo "no" >&6; }
33273 tst_allow_gethostbyname="no"
33274 fi
33275 fi
33276 #
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33278$as_echo_n "checking if gethostbyname might be used... " >&6; }
33279 if test "$tst_links_gethostbyname" = "yes" &&
33280 test "$tst_proto_gethostbyname" = "yes" &&
33281 test "$tst_compi_gethostbyname" = "yes" &&
33282 test "$tst_allow_gethostbyname" = "yes"; then
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33284$as_echo "yes" >&6; }
33285
33286cat >>confdefs.h <<_ACEOF
33287#define HAVE_GETHOSTBYNAME 1
33288_ACEOF
33289
33290 curl_cv_func_gethostbyname="yes"
33291 else
33292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33293$as_echo "no" >&6; }
33294 curl_cv_func_gethostbyname="no"
33295 fi
33296
33297
33298 #
33299 tst_links_gethostbyname_r="unknown"
33300 tst_proto_gethostbyname_r="unknown"
33301 tst_compi_gethostbyname_r="unknown"
33302 tst_allow_gethostbyname_r="unknown"
33303 tst_nargs_gethostbyname_r="unknown"
33304 #
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33306$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33308/* end confdefs.h. */
33309
33310
33311#define gethostbyname_r innocuous_gethostbyname_r
33312#ifdef __STDC__
33313# include <limits.h>
33314#else
33315# include <assert.h>
33316#endif
33317#undef gethostbyname_r
33318#ifdef __cplusplus
33319extern "C"
33320#endif
33321char gethostbyname_r ();
33322#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33323choke me
33324#endif
33325
33326int main (void)
33327{
33328return gethostbyname_r ();
33329 ;
33330 return 0;
33331}
33332
33333_ACEOF
33334if ac_fn_c_try_link "$LINENO"; then :
33335
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33337$as_echo "yes" >&6; }
33338 tst_links_gethostbyname_r="yes"
33339
33340else
33341
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33343$as_echo "no" >&6; }
33344 tst_links_gethostbyname_r="no"
33345
33346fi
33347rm -f core conftest.err conftest.$ac_objext \
33348 conftest$ac_exeext conftest.$ac_ext
33349 #
33350 if test "$tst_links_gethostbyname_r" = "yes"; then
33351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33352$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33354/* end confdefs.h. */
33355
33356 $curl_includes_netdb
33357
33358_ACEOF
33359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33360 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33361
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33363$as_echo "yes" >&6; }
33364 tst_proto_gethostbyname_r="yes"
33365
33366else
33367
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33369$as_echo "no" >&6; }
33370 tst_proto_gethostbyname_r="no"
33371
33372fi
33373rm -f conftest*
33374
33375 fi
33376 #
33377 if test "$tst_proto_gethostbyname_r" = "yes"; then
33378 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33380$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33382/* end confdefs.h. */
33383
33384
33385 $curl_includes_netdb
33386
33387int main (void)
33388{
33389
33390 if(0 != gethostbyname_r(0, 0, 0))
33391 return 1;
33392
33393 ;
33394 return 0;
33395}
33396
33397_ACEOF
33398if ac_fn_c_try_compile "$LINENO"; then :
33399
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401$as_echo "yes" >&6; }
33402 tst_compi_gethostbyname_r="yes"
33403 tst_nargs_gethostbyname_r="3"
33404
33405else
33406
33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33408$as_echo "no" >&6; }
33409 tst_compi_gethostbyname_r="no"
33410
33411fi
33412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33413 fi
33414 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33416$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33418/* end confdefs.h. */
33419
33420
33421 $curl_includes_netdb
33422
33423int main (void)
33424{
33425
33426 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33427 return 1;
33428
33429 ;
33430 return 0;
33431}
33432
33433_ACEOF
33434if ac_fn_c_try_compile "$LINENO"; then :
33435
33436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33437$as_echo "yes" >&6; }
33438 tst_compi_gethostbyname_r="yes"
33439 tst_nargs_gethostbyname_r="5"
33440
33441else
33442
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33444$as_echo "no" >&6; }
33445 tst_compi_gethostbyname_r="no"
33446
33447fi
33448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33449 fi
33450 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33452$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33454/* end confdefs.h. */
33455
33456
33457 $curl_includes_netdb
33458
33459int main (void)
33460{
33461
33462 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33463 return 1;
33464
33465 ;
33466 return 0;
33467}
33468
33469_ACEOF
33470if ac_fn_c_try_compile "$LINENO"; then :
33471
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33473$as_echo "yes" >&6; }
33474 tst_compi_gethostbyname_r="yes"
33475 tst_nargs_gethostbyname_r="6"
33476
33477else
33478
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33480$as_echo "no" >&6; }
33481 tst_compi_gethostbyname_r="no"
33482
33483fi
33484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33485 fi
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33487$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33488 if test "$tst_compi_gethostbyname_r" = "yes"; then
33489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33490$as_echo "yes" >&6; }
33491 else
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33493$as_echo "no" >&6; }
33494 fi
33495 fi
33496 #
33497 if test "$tst_compi_gethostbyname_r" = "yes"; then
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33499$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33500 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33502$as_echo "yes" >&6; }
33503 tst_allow_gethostbyname_r="yes"
33504 else
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506$as_echo "no" >&6; }
33507 tst_allow_gethostbyname_r="no"
33508 fi
33509 fi
33510 #
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33512$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33513 if test "$tst_links_gethostbyname_r" = "yes" &&
33514 test "$tst_proto_gethostbyname_r" = "yes" &&
33515 test "$tst_compi_gethostbyname_r" = "yes" &&
33516 test "$tst_allow_gethostbyname_r" = "yes"; then
33517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33518$as_echo "yes" >&6; }
33519
33520cat >>confdefs.h <<_ACEOF
33521#define HAVE_GETHOSTBYNAME_R 1
33522_ACEOF
33523
33524 #
33525 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33526
33527$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33528
33529 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33530
33531$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33532
33533 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33534
33535$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33536
33537 fi
33538 #
33539 curl_cv_func_gethostbyname_r="yes"
33540 else
33541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542$as_echo "no" >&6; }
33543 curl_cv_func_gethostbyname_r="no"
33544 fi
33545
33546
33547 #
33548 tst_links_gethostname="unknown"
33549 tst_proto_gethostname="unknown"
33550 tst_compi_gethostname="unknown"
33551 tst_allow_gethostname="unknown"
33552 #
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33554$as_echo_n "checking if gethostname can be linked... " >&6; }
33555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33556/* end confdefs.h. */
33557
33558
33559 $curl_includes_winsock2
33560 $curl_includes_unistd
33561
33562int main (void)
33563{
33564
33565 if(0 != gethostname(0, 0))
33566 return 1;
33567
33568 ;
33569 return 0;
33570}
33571
33572_ACEOF
33573if ac_fn_c_try_link "$LINENO"; then :
33574
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33576$as_echo "yes" >&6; }
33577 tst_links_gethostname="yes"
33578
33579else
33580
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33582$as_echo "no" >&6; }
33583 tst_links_gethostname="no"
33584
33585fi
33586rm -f core conftest.err conftest.$ac_objext \
33587 conftest$ac_exeext conftest.$ac_ext
33588 #
33589 if test "$tst_links_gethostname" = "yes"; then
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33591$as_echo_n "checking if gethostname is prototyped... " >&6; }
33592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33593/* end confdefs.h. */
33594
33595 $curl_includes_winsock2
33596 $curl_includes_unistd
33597
33598_ACEOF
33599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33600 $EGREP "gethostname" >/dev/null 2>&1; then :
33601
33602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33603$as_echo "yes" >&6; }
33604 tst_proto_gethostname="yes"
33605
33606else
33607
33608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33609$as_echo "no" >&6; }
33610 tst_proto_gethostname="no"
33611
33612fi
33613rm -f conftest*
33614
33615 fi
33616 #
33617 if test "$tst_proto_gethostname" = "yes"; then
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33619$as_echo_n "checking if gethostname is compilable... " >&6; }
33620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33621/* end confdefs.h. */
33622
33623
33624 $curl_includes_winsock2
33625 $curl_includes_unistd
33626
33627int main (void)
33628{
33629
33630 if(0 != gethostname(0, 0))
33631 return 1;
33632
33633 ;
33634 return 0;
33635}
33636
33637_ACEOF
33638if ac_fn_c_try_compile "$LINENO"; then :
33639
33640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33641$as_echo "yes" >&6; }
33642 tst_compi_gethostname="yes"
33643
33644else
33645
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647$as_echo "no" >&6; }
33648 tst_compi_gethostname="no"
33649
33650fi
33651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33652 fi
33653 #
33654 if test "$tst_compi_gethostname" = "yes"; then
33655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33656$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33657 tst_gethostname_type_arg2="unknown"
33658 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33659 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33660 if test "$tst_gethostname_type_arg2" = "unknown"; then
33661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33662/* end confdefs.h. */
33663
33664
33665 $curl_includes_winsock2
33666 $curl_includes_unistd
33667 $curl_preprocess_callconv
33668 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33669
33670int main (void)
33671{
33672
33673 if(0 != gethostname(0, 0))
33674 return 1;
33675
33676 ;
33677 return 0;
33678}
33679
33680_ACEOF
33681if ac_fn_c_try_compile "$LINENO"; then :
33682
33683 tst_gethostname_type_arg2="$tst_arg2"
33684
33685fi
33686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33687 fi
33688 done
33689 done
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33691$as_echo "$tst_gethostname_type_arg2" >&6; }
33692 if test "$tst_gethostname_type_arg2" != "unknown"; then
33693
33694cat >>confdefs.h <<_ACEOF
33695#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33696_ACEOF
33697
33698 fi
33699 fi
33700 #
33701 if test "$tst_compi_gethostname" = "yes"; then
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33703$as_echo_n "checking if gethostname usage allowed... " >&6; }
33704 if test "x$curl_disallow_gethostname" != "xyes"; then
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33706$as_echo "yes" >&6; }
33707 tst_allow_gethostname="yes"
33708 else
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33710$as_echo "no" >&6; }
33711 tst_allow_gethostname="no"
33712 fi
33713 fi
33714 #
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33716$as_echo_n "checking if gethostname might be used... " >&6; }
33717 if test "$tst_links_gethostname" = "yes" &&
33718 test "$tst_proto_gethostname" = "yes" &&
33719 test "$tst_compi_gethostname" = "yes" &&
33720 test "$tst_allow_gethostname" = "yes"; then
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33722$as_echo "yes" >&6; }
33723
33724cat >>confdefs.h <<_ACEOF
33725#define HAVE_GETHOSTNAME 1
33726_ACEOF
33727
33728 curl_cv_func_gethostname="yes"
33729 else
33730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33731$as_echo "no" >&6; }
33732 curl_cv_func_gethostname="no"
33733 fi
33734
33735
33736 #
33737 tst_links_getifaddrs="unknown"
33738 tst_proto_getifaddrs="unknown"
33739 tst_compi_getifaddrs="unknown"
33740 tst_works_getifaddrs="unknown"
33741 tst_allow_getifaddrs="unknown"
33742 #
33743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33744$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33746/* end confdefs.h. */
33747
33748
33749#define getifaddrs innocuous_getifaddrs
33750#ifdef __STDC__
33751# include <limits.h>
33752#else
33753# include <assert.h>
33754#endif
33755#undef getifaddrs
33756#ifdef __cplusplus
33757extern "C"
33758#endif
33759char getifaddrs ();
33760#if defined __stub_getifaddrs || defined __stub___getifaddrs
33761choke me
33762#endif
33763
33764int main (void)
33765{
33766return getifaddrs ();
33767 ;
33768 return 0;
33769}
33770
33771_ACEOF
33772if ac_fn_c_try_link "$LINENO"; then :
33773
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33775$as_echo "yes" >&6; }
33776 tst_links_getifaddrs="yes"
33777
33778else
33779
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33781$as_echo "no" >&6; }
33782 tst_links_getifaddrs="no"
33783
33784fi
33785rm -f core conftest.err conftest.$ac_objext \
33786 conftest$ac_exeext conftest.$ac_ext
33787 #
33788 if test "$tst_links_getifaddrs" = "yes"; then
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33790$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33792/* end confdefs.h. */
33793
33794 $curl_includes_ifaddrs
33795
33796_ACEOF
33797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33798 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33799
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33801$as_echo "yes" >&6; }
33802 tst_proto_getifaddrs="yes"
33803
33804else
33805
33806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33807$as_echo "no" >&6; }
33808 tst_proto_getifaddrs="no"
33809
33810fi
33811rm -f conftest*
33812
33813 fi
33814 #
33815 if test "$tst_proto_getifaddrs" = "yes"; then
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33817$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33819/* end confdefs.h. */
33820
33821
33822 $curl_includes_ifaddrs
33823
33824int main (void)
33825{
33826
33827 if(0 != getifaddrs(0))
33828 return 1;
33829
33830 ;
33831 return 0;
33832}
33833
33834_ACEOF
33835if ac_fn_c_try_compile "$LINENO"; then :
33836
33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33838$as_echo "yes" >&6; }
33839 tst_compi_getifaddrs="yes"
33840
33841else
33842
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33844$as_echo "no" >&6; }
33845 tst_compi_getifaddrs="no"
33846
33847fi
33848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33849 fi
33850 #
33851 if test "x$cross_compiling" != "xyes" &&
33852 test "$tst_compi_getifaddrs" = "yes"; then
33853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33854$as_echo_n "checking if getifaddrs seems to work... " >&6; }
33855 if test "$cross_compiling" = yes; then :
33856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33858as_fn_error $? "cannot run test program while cross compiling
33859See \`config.log' for more details" "$LINENO" 5; }
33860else
33861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33862/* end confdefs.h. */
33863
33864
33865 $curl_includes_stdlib
33866 $curl_includes_ifaddrs
33867
33868int main (void)
33869{
33870
33871 struct ifaddrs *ifa = 0;
33872 int error;
33873
33874 error = getifaddrs(&ifa);
33875 if(error || !ifa)
33876 exit(1); /* fail */
33877 else
33878 exit(0);
33879
33880 ;
33881 return 0;
33882}
33883
33884_ACEOF
33885if ac_fn_c_try_run "$LINENO"; then :
33886
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33888$as_echo "yes" >&6; }
33889 tst_works_getifaddrs="yes"
33890
33891else
33892
33893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33894$as_echo "no" >&6; }
33895 tst_works_getifaddrs="no"
33896
33897fi
33898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33899 conftest.$ac_objext conftest.beam conftest.$ac_ext
33900fi
33901
33902 fi
33903 #
33904 if test "$tst_compi_getifaddrs" = "yes" &&
33905 test "$tst_works_getifaddrs" != "no"; then
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33907$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33908 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33910$as_echo "yes" >&6; }
33911 tst_allow_getifaddrs="yes"
33912 else
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33914$as_echo "no" >&6; }
33915 tst_allow_getifaddrs="no"
33916 fi
33917 fi
33918 #
33919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33920$as_echo_n "checking if getifaddrs might be used... " >&6; }
33921 if test "$tst_links_getifaddrs" = "yes" &&
33922 test "$tst_proto_getifaddrs" = "yes" &&
33923 test "$tst_compi_getifaddrs" = "yes" &&
33924 test "$tst_allow_getifaddrs" = "yes" &&
33925 test "$tst_works_getifaddrs" != "no"; then
33926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33927$as_echo "yes" >&6; }
33928
33929cat >>confdefs.h <<_ACEOF
33930#define HAVE_GETIFADDRS 1
33931_ACEOF
33932
33933 curl_cv_func_getifaddrs="yes"
33934 else
33935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33936$as_echo "no" >&6; }
33937 curl_cv_func_getifaddrs="no"
33938 fi
33939
33940
33941 #
33942 tst_links_getservbyport_r="unknown"
33943 tst_proto_getservbyport_r="unknown"
33944 tst_compi_getservbyport_r="unknown"
33945 tst_allow_getservbyport_r="unknown"
33946 tst_nargs_getservbyport_r="unknown"
33947 #
33948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33949$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33951/* end confdefs.h. */
33952
33953
33954#define getservbyport_r innocuous_getservbyport_r
33955#ifdef __STDC__
33956# include <limits.h>
33957#else
33958# include <assert.h>
33959#endif
33960#undef getservbyport_r
33961#ifdef __cplusplus
33962extern "C"
33963#endif
33964char getservbyport_r ();
33965#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33966choke me
33967#endif
33968
33969int main (void)
33970{
33971return getservbyport_r ();
33972 ;
33973 return 0;
33974}
33975
33976_ACEOF
33977if ac_fn_c_try_link "$LINENO"; then :
33978
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33980$as_echo "yes" >&6; }
33981 tst_links_getservbyport_r="yes"
33982
33983else
33984
33985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33986$as_echo "no" >&6; }
33987 tst_links_getservbyport_r="no"
33988
33989fi
33990rm -f core conftest.err conftest.$ac_objext \
33991 conftest$ac_exeext conftest.$ac_ext
33992 #
33993 if test "$tst_links_getservbyport_r" = "yes"; then
33994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33995$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33997/* end confdefs.h. */
33998
33999 $curl_includes_netdb
34000
34001_ACEOF
34002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34003 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34004
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34006$as_echo "yes" >&6; }
34007 tst_proto_getservbyport_r="yes"
34008
34009else
34010
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34012$as_echo "no" >&6; }
34013 tst_proto_getservbyport_r="no"
34014
34015fi
34016rm -f conftest*
34017
34018 fi
34019 #
34020 if test "$tst_proto_getservbyport_r" = "yes"; then
34021 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34023$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025/* end confdefs.h. */
34026
34027
34028 $curl_includes_netdb
34029
34030int main (void)
34031{
34032
34033 if(0 != getservbyport_r(0, 0, 0, 0))
34034 return 1;
34035
34036 ;
34037 return 0;
34038}
34039
34040_ACEOF
34041if ac_fn_c_try_compile "$LINENO"; then :
34042
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34044$as_echo "yes" >&6; }
34045 tst_compi_getservbyport_r="yes"
34046 tst_nargs_getservbyport_r="4"
34047
34048else
34049
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34051$as_echo "no" >&6; }
34052 tst_compi_getservbyport_r="no"
34053
34054fi
34055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34056 fi
34057 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34059$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34061/* end confdefs.h. */
34062
34063
34064 $curl_includes_netdb
34065
34066int main (void)
34067{
34068
34069 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34070 return 1;
34071
34072 ;
34073 return 0;
34074}
34075
34076_ACEOF
34077if ac_fn_c_try_compile "$LINENO"; then :
34078
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34080$as_echo "yes" >&6; }
34081 tst_compi_getservbyport_r="yes"
34082 tst_nargs_getservbyport_r="5"
34083
34084else
34085
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34087$as_echo "no" >&6; }
34088 tst_compi_getservbyport_r="no"
34089
34090fi
34091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34092 fi
34093 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34095$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34097/* end confdefs.h. */
34098
34099
34100 $curl_includes_netdb
34101
34102int main (void)
34103{
34104
34105 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34106 return 1;
34107
34108 ;
34109 return 0;
34110}
34111
34112_ACEOF
34113if ac_fn_c_try_compile "$LINENO"; then :
34114
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34116$as_echo "yes" >&6; }
34117 tst_compi_getservbyport_r="yes"
34118 tst_nargs_getservbyport_r="6"
34119
34120else
34121
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34123$as_echo "no" >&6; }
34124 tst_compi_getservbyport_r="no"
34125
34126fi
34127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34128 fi
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34130$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34131 if test "$tst_compi_getservbyport_r" = "yes"; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133$as_echo "yes" >&6; }
34134 else
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136$as_echo "no" >&6; }
34137 fi
34138 fi
34139 #
34140 if test "$tst_compi_getservbyport_r" = "yes"; then
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34142$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34143 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34145$as_echo "yes" >&6; }
34146 tst_allow_getservbyport_r="yes"
34147 else
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34149$as_echo "no" >&6; }
34150 tst_allow_getservbyport_r="no"
34151 fi
34152 fi
34153 #
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34155$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34156 if test "$tst_links_getservbyport_r" = "yes" &&
34157 test "$tst_proto_getservbyport_r" = "yes" &&
34158 test "$tst_compi_getservbyport_r" = "yes" &&
34159 test "$tst_allow_getservbyport_r" = "yes"; then
34160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34161$as_echo "yes" >&6; }
34162
34163cat >>confdefs.h <<_ACEOF
34164#define HAVE_GETSERVBYPORT_R 1
34165_ACEOF
34166
34167
34168cat >>confdefs.h <<_ACEOF
34169#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34170_ACEOF
34171
34172 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34173
34174$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34175
34176 else
34177
34178$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34179
34180 fi
34181 curl_cv_func_getservbyport_r="yes"
34182 else
34183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34184$as_echo "no" >&6; }
34185 curl_cv_func_getservbyport_r="no"
34186 fi
34187
34188
34189curl_includes_time="\
34190/* includes start */
34191#ifdef HAVE_SYS_TYPES_H
34192# include <sys/types.h>
34193#endif
34194#ifdef HAVE_SYS_TIME_H
34195# include <sys/time.h>
34196# ifdef TIME_WITH_SYS_TIME
34197# include <time.h>
34198# endif
34199#else
34200# ifdef HAVE_TIME_H
34201# include <time.h>
34202# endif
34203#endif
34204/* includes end */"
34205 for ac_header in sys/types.h sys/time.h time.h
34206do :
34207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34208ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34209"
34210if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34211 cat >>confdefs.h <<_ACEOF
34212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34213_ACEOF
34214
34215fi
34216
34217done
34218
34219
34220
34221 #
34222 tst_links_gmtime_r="unknown"
34223 tst_proto_gmtime_r="unknown"
34224 tst_compi_gmtime_r="unknown"
34225 tst_works_gmtime_r="unknown"
34226 tst_allow_gmtime_r="unknown"
34227 #
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34229$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231/* end confdefs.h. */
34232
34233
34234#define gmtime_r innocuous_gmtime_r
34235#ifdef __STDC__
34236# include <limits.h>
34237#else
34238# include <assert.h>
34239#endif
34240#undef gmtime_r
34241#ifdef __cplusplus
34242extern "C"
34243#endif
34244char gmtime_r ();
34245#if defined __stub_gmtime_r || defined __stub___gmtime_r
34246choke me
34247#endif
34248
34249int main (void)
34250{
34251return gmtime_r ();
34252 ;
34253 return 0;
34254}
34255
34256_ACEOF
34257if ac_fn_c_try_link "$LINENO"; then :
34258
34259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34260$as_echo "yes" >&6; }
34261 tst_links_gmtime_r="yes"
34262
34263else
34264
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34266$as_echo "no" >&6; }
34267 tst_links_gmtime_r="no"
34268
34269fi
34270rm -f core conftest.err conftest.$ac_objext \
34271 conftest$ac_exeext conftest.$ac_ext
34272 #
34273 if test "$tst_links_gmtime_r" = "yes"; then
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34275$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34277/* end confdefs.h. */
34278
34279 $curl_includes_time
34280
34281_ACEOF
34282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34283 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34284
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34286$as_echo "yes" >&6; }
34287 tst_proto_gmtime_r="yes"
34288
34289else
34290
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34292$as_echo "no" >&6; }
34293 tst_proto_gmtime_r="no"
34294
34295fi
34296rm -f conftest*
34297
34298 fi
34299 #
34300 if test "$tst_proto_gmtime_r" = "yes"; then
34301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34302$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34304/* end confdefs.h. */
34305
34306
34307 $curl_includes_time
34308
34309int main (void)
34310{
34311
34312 if(0 != gmtime_r(0, 0))
34313 return 1;
34314
34315 ;
34316 return 0;
34317}
34318
34319_ACEOF
34320if ac_fn_c_try_compile "$LINENO"; then :
34321
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34323$as_echo "yes" >&6; }
34324 tst_compi_gmtime_r="yes"
34325
34326else
34327
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34329$as_echo "no" >&6; }
34330 tst_compi_gmtime_r="no"
34331
34332fi
34333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34334 fi
34335 #
34336 if test "x$cross_compiling" != "xyes" &&
34337 test "$tst_compi_gmtime_r" = "yes"; then
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34339$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34340 if test "$cross_compiling" = yes; then :
34341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34343as_fn_error $? "cannot run test program while cross compiling
34344See \`config.log' for more details" "$LINENO" 5; }
34345else
34346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34347/* end confdefs.h. */
34348
34349
34350 $curl_includes_stdlib
34351 $curl_includes_time
34352
34353int main (void)
34354{
34355
34356 time_t local = 1170352587;
34357 struct tm *gmt = 0;
34358 struct tm result;
34359 gmt = gmtime_r(&local, &result);
34360 if(gmt)
34361 exit(0);
34362 else
34363 exit(1);
34364
34365 ;
34366 return 0;
34367}
34368
34369_ACEOF
34370if ac_fn_c_try_run "$LINENO"; then :
34371
34372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34373$as_echo "yes" >&6; }
34374 tst_works_gmtime_r="yes"
34375
34376else
34377
34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34379$as_echo "no" >&6; }
34380 tst_works_gmtime_r="no"
34381
34382fi
34383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34384 conftest.$ac_objext conftest.beam conftest.$ac_ext
34385fi
34386
34387 fi
34388 #
34389 if test "$tst_compi_gmtime_r" = "yes" &&
34390 test "$tst_works_gmtime_r" != "no"; then
34391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34392$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34393 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34395$as_echo "yes" >&6; }
34396 tst_allow_gmtime_r="yes"
34397 else
34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34399$as_echo "no" >&6; }
34400 tst_allow_gmtime_r="no"
34401 fi
34402 fi
34403 #
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34405$as_echo_n "checking if gmtime_r might be used... " >&6; }
34406 if test "$tst_links_gmtime_r" = "yes" &&
34407 test "$tst_proto_gmtime_r" = "yes" &&
34408 test "$tst_compi_gmtime_r" = "yes" &&
34409 test "$tst_allow_gmtime_r" = "yes" &&
34410 test "$tst_works_gmtime_r" != "no"; then
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34412$as_echo "yes" >&6; }
34413
34414cat >>confdefs.h <<_ACEOF
34415#define HAVE_GMTIME_R 1
34416_ACEOF
34417
34418 curl_cv_func_gmtime_r="yes"
34419 else
34420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34421$as_echo "no" >&6; }
34422 curl_cv_func_gmtime_r="no"
34423 fi
34424
34425
34426curl_includes_arpa_inet="\
34427/* includes start */
34428#ifdef HAVE_SYS_TYPES_H
34429# include <sys/types.h>
34430#endif
34431#ifdef HAVE_SYS_SOCKET_H
34432# include <sys/socket.h>
34433#endif
34434#ifdef HAVE_NETINET_IN_H
34435# include <netinet/in.h>
34436#endif
34437#ifdef HAVE_ARPA_INET_H
34438# include <arpa/inet.h>
34439#endif
34440#ifdef HAVE_WINSOCK2_H
34441#include <winsock2.h>
34442#include <ws2tcpip.h>
34443#endif
34444/* includes end */"
34445 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34446do :
34447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34448ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34449"
34450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34451 cat >>confdefs.h <<_ACEOF
34452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34453_ACEOF
34454
34455fi
34456
34457done
34458
34459
34460
34461 #
34462 tst_links_inet_ntoa_r="unknown"
34463 tst_proto_inet_ntoa_r="unknown"
34464 tst_compi_inet_ntoa_r="unknown"
34465 tst_allow_inet_ntoa_r="unknown"
34466 tst_nargs_inet_ntoa_r="unknown"
34467 #
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34469$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34471/* end confdefs.h. */
34472
34473
34474#define inet_ntoa_r innocuous_inet_ntoa_r
34475#ifdef __STDC__
34476# include <limits.h>
34477#else
34478# include <assert.h>
34479#endif
34480#undef inet_ntoa_r
34481#ifdef __cplusplus
34482extern "C"
34483#endif
34484char inet_ntoa_r ();
34485#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34486choke me
34487#endif
34488
34489int main (void)
34490{
34491return inet_ntoa_r ();
34492 ;
34493 return 0;
34494}
34495
34496_ACEOF
34497if ac_fn_c_try_link "$LINENO"; then :
34498
34499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34500$as_echo "yes" >&6; }
34501 tst_links_inet_ntoa_r="yes"
34502
34503else
34504
34505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34506$as_echo "no" >&6; }
34507 tst_links_inet_ntoa_r="no"
34508
34509fi
34510rm -f core conftest.err conftest.$ac_objext \
34511 conftest$ac_exeext conftest.$ac_ext
34512 #
34513 if test "$tst_links_inet_ntoa_r" = "yes"; then
34514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34515$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34517/* end confdefs.h. */
34518
34519 $curl_includes_arpa_inet
34520
34521_ACEOF
34522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34523 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34524
34525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34526$as_echo "yes" >&6; }
34527 tst_proto_inet_ntoa_r="yes"
34528
34529else
34530
34531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34532$as_echo "no" >&6; }
34533 tst_proto_inet_ntoa_r="no"
34534
34535fi
34536rm -f conftest*
34537
34538 fi
34539 #
34540 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34541 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34543$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34545/* end confdefs.h. */
34546
34547
34548 $curl_includes_arpa_inet
34549
34550int main (void)
34551{
34552
34553 struct in_addr addr;
34554 if(0 != inet_ntoa_r(addr, 0))
34555 return 1;
34556
34557 ;
34558 return 0;
34559}
34560
34561_ACEOF
34562if ac_fn_c_try_compile "$LINENO"; then :
34563
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34565$as_echo "yes" >&6; }
34566 tst_compi_inet_ntoa_r="yes"
34567 tst_nargs_inet_ntoa_r="2"
34568
34569else
34570
34571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572$as_echo "no" >&6; }
34573 tst_compi_inet_ntoa_r="no"
34574
34575fi
34576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34577 fi
34578 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34580$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34582/* end confdefs.h. */
34583
34584
34585 $curl_includes_arpa_inet
34586
34587int main (void)
34588{
34589
34590 struct in_addr addr;
34591 if(0 != inet_ntoa_r(addr, 0, 0))
34592 return 1;
34593
34594 ;
34595 return 0;
34596}
34597
34598_ACEOF
34599if ac_fn_c_try_compile "$LINENO"; then :
34600
34601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34602$as_echo "yes" >&6; }
34603 tst_compi_inet_ntoa_r="yes"
34604 tst_nargs_inet_ntoa_r="3"
34605
34606else
34607
34608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34609$as_echo "no" >&6; }
34610 tst_compi_inet_ntoa_r="no"
34611
34612fi
34613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34614 fi
34615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34616$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34617 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619$as_echo "yes" >&6; }
34620 else
34621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34622$as_echo "no" >&6; }
34623 fi
34624 fi
34625 #
34626 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34628$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34629 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34631$as_echo "yes" >&6; }
34632 tst_allow_inet_ntoa_r="yes"
34633 else
34634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34635$as_echo "no" >&6; }
34636 tst_allow_inet_ntoa_r="no"
34637 fi
34638 fi
34639 #
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34641$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34642 if test "$tst_links_inet_ntoa_r" = "yes" &&
34643 test "$tst_proto_inet_ntoa_r" = "yes" &&
34644 test "$tst_compi_inet_ntoa_r" = "yes" &&
34645 test "$tst_allow_inet_ntoa_r" = "yes"; then
34646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34647$as_echo "yes" >&6; }
34648
34649cat >>confdefs.h <<_ACEOF
34650#define HAVE_INET_NTOA_R 1
34651_ACEOF
34652
34653 #
34654 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34655
34656$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34657
34658 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34659
34660$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34661
34662 fi
34663 #
34664 curl_cv_func_inet_ntoa_r="yes"
34665 else
34666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34667$as_echo "no" >&6; }
34668 curl_cv_func_inet_ntoa_r="no"
34669 fi
34670
34671
34672 #
34673 tst_links_inet_ntop="unknown"
34674 tst_proto_inet_ntop="unknown"
34675 tst_compi_inet_ntop="unknown"
34676 tst_works_inet_ntop="unknown"
34677 tst_allow_inet_ntop="unknown"
34678 #
34679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34680$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34682/* end confdefs.h. */
34683
34684
34685#define inet_ntop innocuous_inet_ntop
34686#ifdef __STDC__
34687# include <limits.h>
34688#else
34689# include <assert.h>
34690#endif
34691#undef inet_ntop
34692#ifdef __cplusplus
34693extern "C"
34694#endif
34695char inet_ntop ();
34696#if defined __stub_inet_ntop || defined __stub___inet_ntop
34697choke me
34698#endif
34699
34700int main (void)
34701{
34702return inet_ntop ();
34703 ;
34704 return 0;
34705}
34706
34707_ACEOF
34708if ac_fn_c_try_link "$LINENO"; then :
34709
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34711$as_echo "yes" >&6; }
34712 tst_links_inet_ntop="yes"
34713
34714else
34715
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34717$as_echo "no" >&6; }
34718 tst_links_inet_ntop="no"
34719
34720fi
34721rm -f core conftest.err conftest.$ac_objext \
34722 conftest$ac_exeext conftest.$ac_ext
34723 #
34724 if test "$tst_links_inet_ntop" = "yes"; then
34725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34726$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34728/* end confdefs.h. */
34729
34730 $curl_includes_arpa_inet
34731
34732_ACEOF
34733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34734 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34735
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34737$as_echo "yes" >&6; }
34738 tst_proto_inet_ntop="yes"
34739
34740else
34741
34742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34743$as_echo "no" >&6; }
34744 tst_proto_inet_ntop="no"
34745
34746fi
34747rm -f conftest*
34748
34749 fi
34750 #
34751 if test "$tst_proto_inet_ntop" = "yes"; then
34752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34753$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34755/* end confdefs.h. */
34756
34757
34758 $curl_includes_arpa_inet
34759
34760int main (void)
34761{
34762
34763 if(0 != inet_ntop(0, 0, 0, 0))
34764 return 1;
34765
34766 ;
34767 return 0;
34768}
34769
34770_ACEOF
34771if ac_fn_c_try_compile "$LINENO"; then :
34772
34773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34774$as_echo "yes" >&6; }
34775 tst_compi_inet_ntop="yes"
34776
34777else
34778
34779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34780$as_echo "no" >&6; }
34781 tst_compi_inet_ntop="no"
34782
34783fi
34784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34785 fi
34786 #
34787 if test "x$cross_compiling" != "xyes" &&
34788 test "$tst_compi_inet_ntop" = "yes"; then
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34790$as_echo_n "checking if inet_ntop seems to work... " >&6; }
34791 if test "$cross_compiling" = yes; then :
34792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34794as_fn_error $? "cannot run test program while cross compiling
34795See \`config.log' for more details" "$LINENO" 5; }
34796else
34797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34798/* end confdefs.h. */
34799
34800
34801 $curl_includes_stdlib
34802 $curl_includes_arpa_inet
34803 $curl_includes_string
34804
34805int main (void)
34806{
34807
34808 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34809 char ipv4res[sizeof "255.255.255.255"];
34810 unsigned char ipv6a[26];
34811 unsigned char ipv4a[5];
34812 char *ipv6ptr = 0;
34813 char *ipv4ptr = 0;
34814 /* - */
34815 ipv4res[0] = '\0';
34816 ipv4a[0] = 0xc0;
34817 ipv4a[1] = 0xa8;
34818 ipv4a[2] = 0x64;
34819 ipv4a[3] = 0x01;
34820 ipv4a[4] = 0x01;
34821 /* - */
34822 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34823 if(!ipv4ptr)
34824 exit(1); /* fail */
34825 if(ipv4ptr != ipv4res)
34826 exit(1); /* fail */
34827 if(!ipv4ptr[0])
34828 exit(1); /* fail */
34829 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34830 exit(1); /* fail */
34831 /* - */
34832 ipv6res[0] = '\0';
34833 memset(ipv6a, 0, sizeof(ipv6a));
34834 ipv6a[0] = 0xfe;
34835 ipv6a[1] = 0x80;
34836 ipv6a[8] = 0x02;
34837 ipv6a[9] = 0x14;
34838 ipv6a[10] = 0x4f;
34839 ipv6a[11] = 0xff;
34840 ipv6a[12] = 0xfe;
34841 ipv6a[13] = 0x0b;
34842 ipv6a[14] = 0x76;
34843 ipv6a[15] = 0xc8;
34844 ipv6a[25] = 0x01;
34845 /* - */
34846 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34847 if(!ipv6ptr)
34848 exit(1); /* fail */
34849 if(ipv6ptr != ipv6res)
34850 exit(1); /* fail */
34851 if(!ipv6ptr[0])
34852 exit(1); /* fail */
34853 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34854 exit(1); /* fail */
34855 /* - */
34856 exit(0);
34857
34858 ;
34859 return 0;
34860}
34861
34862_ACEOF
34863if ac_fn_c_try_run "$LINENO"; then :
34864
34865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34866$as_echo "yes" >&6; }
34867 tst_works_inet_ntop="yes"
34868
34869else
34870
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34872$as_echo "no" >&6; }
34873 tst_works_inet_ntop="no"
34874
34875fi
34876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34877 conftest.$ac_objext conftest.beam conftest.$ac_ext
34878fi
34879
34880 fi
34881 #
34882 if test "$tst_compi_inet_ntop" = "yes" &&
34883 test "$tst_works_inet_ntop" != "no"; then
34884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34885$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34886 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34888$as_echo "yes" >&6; }
34889 tst_allow_inet_ntop="yes"
34890 else
34891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34892$as_echo "no" >&6; }
34893 tst_allow_inet_ntop="no"
34894 fi
34895 fi
34896 #
34897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34898$as_echo_n "checking if inet_ntop might be used... " >&6; }
34899 if test "$tst_links_inet_ntop" = "yes" &&
34900 test "$tst_proto_inet_ntop" = "yes" &&
34901 test "$tst_compi_inet_ntop" = "yes" &&
34902 test "$tst_allow_inet_ntop" = "yes" &&
34903 test "$tst_works_inet_ntop" != "no"; then
34904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34905$as_echo "yes" >&6; }
34906
34907cat >>confdefs.h <<_ACEOF
34908#define HAVE_INET_NTOP 1
34909_ACEOF
34910
34911 curl_cv_func_inet_ntop="yes"
34912 else
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34914$as_echo "no" >&6; }
34915 curl_cv_func_inet_ntop="no"
34916 fi
34917
34918
34919 #
34920 tst_links_inet_pton="unknown"
34921 tst_proto_inet_pton="unknown"
34922 tst_compi_inet_pton="unknown"
34923 tst_works_inet_pton="unknown"
34924 tst_allow_inet_pton="unknown"
34925 #
34926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34927$as_echo_n "checking if inet_pton can be linked... " >&6; }
34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34929/* end confdefs.h. */
34930
34931
34932#define inet_pton innocuous_inet_pton
34933#ifdef __STDC__
34934# include <limits.h>
34935#else
34936# include <assert.h>
34937#endif
34938#undef inet_pton
34939#ifdef __cplusplus
34940extern "C"
34941#endif
34942char inet_pton ();
34943#if defined __stub_inet_pton || defined __stub___inet_pton
34944choke me
34945#endif
34946
34947int main (void)
34948{
34949return inet_pton ();
34950 ;
34951 return 0;
34952}
34953
34954_ACEOF
34955if ac_fn_c_try_link "$LINENO"; then :
34956
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34958$as_echo "yes" >&6; }
34959 tst_links_inet_pton="yes"
34960
34961else
34962
34963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964$as_echo "no" >&6; }
34965 tst_links_inet_pton="no"
34966
34967fi
34968rm -f core conftest.err conftest.$ac_objext \
34969 conftest$ac_exeext conftest.$ac_ext
34970 #
34971 if test "$tst_links_inet_pton" = "yes"; then
34972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34973$as_echo_n "checking if inet_pton is prototyped... " >&6; }
34974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34975/* end confdefs.h. */
34976
34977 $curl_includes_arpa_inet
34978
34979_ACEOF
34980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34981 $EGREP "inet_pton" >/dev/null 2>&1; then :
34982
34983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34984$as_echo "yes" >&6; }
34985 tst_proto_inet_pton="yes"
34986
34987else
34988
34989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34990$as_echo "no" >&6; }
34991 tst_proto_inet_pton="no"
34992
34993fi
34994rm -f conftest*
34995
34996 fi
34997 #
34998 if test "$tst_proto_inet_pton" = "yes"; then
34999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35000$as_echo_n "checking if inet_pton is compilable... " >&6; }
35001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35002/* end confdefs.h. */
35003
35004
35005 $curl_includes_arpa_inet
35006
35007int main (void)
35008{
35009
35010 if(0 != inet_pton(0, 0, 0))
35011 return 1;
35012
35013 ;
35014 return 0;
35015}
35016
35017_ACEOF
35018if ac_fn_c_try_compile "$LINENO"; then :
35019
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35021$as_echo "yes" >&6; }
35022 tst_compi_inet_pton="yes"
35023
35024else
35025
35026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35027$as_echo "no" >&6; }
35028 tst_compi_inet_pton="no"
35029
35030fi
35031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35032 fi
35033 #
35034 if test "x$cross_compiling" != "xyes" &&
35035 test "$tst_compi_inet_pton" = "yes"; then
35036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35037$as_echo_n "checking if inet_pton seems to work... " >&6; }
35038 if test "$cross_compiling" = yes; then :
35039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35041as_fn_error $? "cannot run test program while cross compiling
35042See \`config.log' for more details" "$LINENO" 5; }
35043else
35044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35045/* end confdefs.h. */
35046
35047
35048 $curl_includes_stdlib
35049 $curl_includes_arpa_inet
35050 $curl_includes_string
35051
35052int main (void)
35053{
35054
35055 unsigned char ipv6a[16+1];
35056 unsigned char ipv4a[4+1];
35057 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35058 const char *ipv4src = "192.168.100.1";
35059 /* - */
35060 memset(ipv4a, 1, sizeof(ipv4a));
35061 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35062 exit(1); /* fail */
35063 /* - */
35064 if( (ipv4a[0] != 0xc0) ||
35065 (ipv4a[1] != 0xa8) ||
35066 (ipv4a[2] != 0x64) ||
35067 (ipv4a[3] != 0x01) ||
35068 (ipv4a[4] != 0x01) )
35069 exit(1); /* fail */
35070 /* - */
35071 memset(ipv6a, 1, sizeof(ipv6a));
35072 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35073 exit(1); /* fail */
35074 /* - */
35075 if( (ipv6a[0] != 0xfe) ||
35076 (ipv6a[1] != 0x80) ||
35077 (ipv6a[8] != 0x02) ||
35078 (ipv6a[9] != 0x14) ||
35079 (ipv6a[10] != 0x4f) ||
35080 (ipv6a[11] != 0xff) ||
35081 (ipv6a[12] != 0xfe) ||
35082 (ipv6a[13] != 0x0b) ||
35083 (ipv6a[14] != 0x76) ||
35084 (ipv6a[15] != 0xc8) ||
35085 (ipv6a[16] != 0x01) )
35086 exit(1); /* fail */
35087 /* - */
35088 if( (ipv6a[2] != 0x0) ||
35089 (ipv6a[3] != 0x0) ||
35090 (ipv6a[4] != 0x0) ||
35091 (ipv6a[5] != 0x0) ||
35092 (ipv6a[6] != 0x0) ||
35093 (ipv6a[7] != 0x0) )
35094 exit(1); /* fail */
35095 /* - */
35096 exit(0);
35097
35098 ;
35099 return 0;
35100}
35101
35102_ACEOF
35103if ac_fn_c_try_run "$LINENO"; then :
35104
35105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35106$as_echo "yes" >&6; }
35107 tst_works_inet_pton="yes"
35108
35109else
35110
35111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35112$as_echo "no" >&6; }
35113 tst_works_inet_pton="no"
35114
35115fi
35116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35117 conftest.$ac_objext conftest.beam conftest.$ac_ext
35118fi
35119
35120 fi
35121 #
35122 if test "$tst_compi_inet_pton" = "yes" &&
35123 test "$tst_works_inet_pton" != "no"; then
35124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35125$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35126 if test "x$curl_disallow_inet_pton" != "xyes"; then
35127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35128$as_echo "yes" >&6; }
35129 tst_allow_inet_pton="yes"
35130 else
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35132$as_echo "no" >&6; }
35133 tst_allow_inet_pton="no"
35134 fi
35135 fi
35136 #
35137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35138$as_echo_n "checking if inet_pton might be used... " >&6; }
35139 if test "$tst_links_inet_pton" = "yes" &&
35140 test "$tst_proto_inet_pton" = "yes" &&
35141 test "$tst_compi_inet_pton" = "yes" &&
35142 test "$tst_allow_inet_pton" = "yes" &&
35143 test "$tst_works_inet_pton" != "no"; then
35144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35145$as_echo "yes" >&6; }
35146
35147cat >>confdefs.h <<_ACEOF
35148#define HAVE_INET_PTON 1
35149_ACEOF
35150
35151 curl_cv_func_inet_pton="yes"
35152 else
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35154$as_echo "no" >&6; }
35155 curl_cv_func_inet_pton="no"
35156 fi
35157
35158
35159curl_includes_stropts="\
35160/* includes start */
35161#ifdef HAVE_SYS_TYPES_H
35162# include <sys/types.h>
35163#endif
35164#ifdef HAVE_UNISTD_H
35165# include <unistd.h>
35166#endif
35167#ifdef HAVE_SYS_SOCKET_H
35168# include <sys/socket.h>
35169#endif
35170#ifdef HAVE_SYS_IOCTL_H
35171# include <sys/ioctl.h>
35172#endif
35173#ifdef HAVE_STROPTS_H
35174# include <stropts.h>
35175#endif
35176/* includes end */"
35177 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35178do :
35179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35180ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35181"
35182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35183 cat >>confdefs.h <<_ACEOF
35184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35185_ACEOF
35186
35187fi
35188
35189done
35190
35191
35192
35193 #
35194 tst_links_ioctl="unknown"
35195 tst_proto_ioctl="unknown"
35196 tst_compi_ioctl="unknown"
35197 tst_allow_ioctl="unknown"
35198 #
35199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35200$as_echo_n "checking if ioctl can be linked... " >&6; }
35201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35202/* end confdefs.h. */
35203
35204
35205#define ioctl innocuous_ioctl
35206#ifdef __STDC__
35207# include <limits.h>
35208#else
35209# include <assert.h>
35210#endif
35211#undef ioctl
35212#ifdef __cplusplus
35213extern "C"
35214#endif
35215char ioctl ();
35216#if defined __stub_ioctl || defined __stub___ioctl
35217choke me
35218#endif
35219
35220int main (void)
35221{
35222return ioctl ();
35223 ;
35224 return 0;
35225}
35226
35227_ACEOF
35228if ac_fn_c_try_link "$LINENO"; then :
35229
35230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35231$as_echo "yes" >&6; }
35232 tst_links_ioctl="yes"
35233
35234else
35235
35236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35237$as_echo "no" >&6; }
35238 tst_links_ioctl="no"
35239
35240fi
35241rm -f core conftest.err conftest.$ac_objext \
35242 conftest$ac_exeext conftest.$ac_ext
35243 #
35244 if test "$tst_links_ioctl" = "yes"; then
35245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35246$as_echo_n "checking if ioctl is prototyped... " >&6; }
35247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35248/* end confdefs.h. */
35249
35250 $curl_includes_stropts
35251
35252_ACEOF
35253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35254 $EGREP "ioctl" >/dev/null 2>&1; then :
35255
35256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35257$as_echo "yes" >&6; }
35258 tst_proto_ioctl="yes"
35259
35260else
35261
35262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35263$as_echo "no" >&6; }
35264 tst_proto_ioctl="no"
35265
35266fi
35267rm -f conftest*
35268
35269 fi
35270 #
35271 if test "$tst_proto_ioctl" = "yes"; then
35272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35273$as_echo_n "checking if ioctl is compilable... " >&6; }
35274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35275/* end confdefs.h. */
35276
35277
35278 $curl_includes_stropts
35279
35280int main (void)
35281{
35282
35283 if(0 != ioctl(0, 0, 0))
35284 return 1;
35285
35286 ;
35287 return 0;
35288}
35289
35290_ACEOF
35291if ac_fn_c_try_compile "$LINENO"; then :
35292
35293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35294$as_echo "yes" >&6; }
35295 tst_compi_ioctl="yes"
35296
35297else
35298
35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35300$as_echo "no" >&6; }
35301 tst_compi_ioctl="no"
35302
35303fi
35304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 fi
35306 #
35307 if test "$tst_compi_ioctl" = "yes"; then
35308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35309$as_echo_n "checking if ioctl usage allowed... " >&6; }
35310 if test "x$curl_disallow_ioctl" != "xyes"; then
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35312$as_echo "yes" >&6; }
35313 tst_allow_ioctl="yes"
35314 else
35315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35316$as_echo "no" >&6; }
35317 tst_allow_ioctl="no"
35318 fi
35319 fi
35320 #
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35322$as_echo_n "checking if ioctl might be used... " >&6; }
35323 if test "$tst_links_ioctl" = "yes" &&
35324 test "$tst_proto_ioctl" = "yes" &&
35325 test "$tst_compi_ioctl" = "yes" &&
35326 test "$tst_allow_ioctl" = "yes"; then
35327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35328$as_echo "yes" >&6; }
35329
35330cat >>confdefs.h <<_ACEOF
35331#define HAVE_IOCTL 1
35332_ACEOF
35333
35334 curl_cv_func_ioctl="yes"
35335
35336 #
35337 tst_compi_ioctl_fionbio="unknown"
35338 tst_allow_ioctl_fionbio="unknown"
35339 #
35340 if test "$curl_cv_func_ioctl" = "yes"; then
35341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35342$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35344/* end confdefs.h. */
35345
35346
35347 $curl_includes_stropts
35348
35349int main (void)
35350{
35351
35352 int flags = 0;
35353 if(0 != ioctl(0, FIONBIO, &flags))
35354 return 1;
35355
35356 ;
35357 return 0;
35358}
35359
35360_ACEOF
35361if ac_fn_c_try_compile "$LINENO"; then :
35362
35363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35364$as_echo "yes" >&6; }
35365 tst_compi_ioctl_fionbio="yes"
35366
35367else
35368
35369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35370$as_echo "no" >&6; }
35371 tst_compi_ioctl_fionbio="no"
35372
35373fi
35374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35375 fi
35376 #
35377 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35379$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35380 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35382$as_echo "yes" >&6; }
35383 tst_allow_ioctl_fionbio="yes"
35384 else
35385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35386$as_echo "no" >&6; }
35387 tst_allow_ioctl_fionbio="no"
35388 fi
35389 fi
35390 #
35391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35392$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35393 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35394 test "$tst_allow_ioctl_fionbio" = "yes"; then
35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35396$as_echo "yes" >&6; }
35397
35398cat >>confdefs.h <<_ACEOF
35399#define HAVE_IOCTL_FIONBIO 1
35400_ACEOF
35401
35402 curl_cv_func_ioctl_fionbio="yes"
35403 else
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405$as_echo "no" >&6; }
35406 curl_cv_func_ioctl_fionbio="no"
35407 fi
35408
35409
35410 #
35411 tst_compi_ioctl_siocgifaddr="unknown"
35412 tst_allow_ioctl_siocgifaddr="unknown"
35413 #
35414 if test "$curl_cv_func_ioctl" = "yes"; then
35415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35416$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35418/* end confdefs.h. */
35419
35420
35421 $curl_includes_stropts
35422 #include <net/if.h>
35423
35424int main (void)
35425{
35426
35427 struct ifreq ifr;
35428 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35429 return 1;
35430
35431 ;
35432 return 0;
35433}
35434
35435_ACEOF
35436if ac_fn_c_try_compile "$LINENO"; then :
35437
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35439$as_echo "yes" >&6; }
35440 tst_compi_ioctl_siocgifaddr="yes"
35441
35442else
35443
35444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35445$as_echo "no" >&6; }
35446 tst_compi_ioctl_siocgifaddr="no"
35447
35448fi
35449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35450 fi
35451 #
35452 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35454$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35455 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35457$as_echo "yes" >&6; }
35458 tst_allow_ioctl_siocgifaddr="yes"
35459 else
35460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35461$as_echo "no" >&6; }
35462 tst_allow_ioctl_siocgifaddr="no"
35463 fi
35464 fi
35465 #
35466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35467$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35468 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35469 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35471$as_echo "yes" >&6; }
35472
35473cat >>confdefs.h <<_ACEOF
35474#define HAVE_IOCTL_SIOCGIFADDR 1
35475_ACEOF
35476
35477 curl_cv_func_ioctl_siocgifaddr="yes"
35478 else
35479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35480$as_echo "no" >&6; }
35481 curl_cv_func_ioctl_siocgifaddr="no"
35482 fi
35483
35484 else
35485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35486$as_echo "no" >&6; }
35487 curl_cv_func_ioctl="no"
35488 fi
35489
35490
35491 #
35492 tst_links_ioctlsocket="unknown"
35493 tst_proto_ioctlsocket="unknown"
35494 tst_compi_ioctlsocket="unknown"
35495 tst_allow_ioctlsocket="unknown"
35496 #
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35498$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35500/* end confdefs.h. */
35501
35502
35503 $curl_includes_winsock2
35504
35505int main (void)
35506{
35507
35508 if(0 != ioctlsocket(0, 0, 0))
35509 return 1;
35510
35511 ;
35512 return 0;
35513}
35514
35515_ACEOF
35516if ac_fn_c_try_link "$LINENO"; then :
35517
35518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35519$as_echo "yes" >&6; }
35520 tst_links_ioctlsocket="yes"
35521
35522else
35523
35524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35525$as_echo "no" >&6; }
35526 tst_links_ioctlsocket="no"
35527
35528fi
35529rm -f core conftest.err conftest.$ac_objext \
35530 conftest$ac_exeext conftest.$ac_ext
35531 #
35532 if test "$tst_links_ioctlsocket" = "yes"; then
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35534$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35536/* end confdefs.h. */
35537
35538 $curl_includes_winsock2
35539
35540_ACEOF
35541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35542 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35543
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35545$as_echo "yes" >&6; }
35546 tst_proto_ioctlsocket="yes"
35547
35548else
35549
35550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551$as_echo "no" >&6; }
35552 tst_proto_ioctlsocket="no"
35553
35554fi
35555rm -f conftest*
35556
35557 fi
35558 #
35559 if test "$tst_proto_ioctlsocket" = "yes"; then
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35561$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35563/* end confdefs.h. */
35564
35565
35566 $curl_includes_winsock2
35567
35568int main (void)
35569{
35570
35571 if(0 != ioctlsocket(0, 0, 0))
35572 return 1;
35573
35574 ;
35575 return 0;
35576}
35577
35578_ACEOF
35579if ac_fn_c_try_compile "$LINENO"; then :
35580
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35582$as_echo "yes" >&6; }
35583 tst_compi_ioctlsocket="yes"
35584
35585else
35586
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35588$as_echo "no" >&6; }
35589 tst_compi_ioctlsocket="no"
35590
35591fi
35592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35593 fi
35594 #
35595 if test "$tst_compi_ioctlsocket" = "yes"; then
35596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35597$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35598 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35600$as_echo "yes" >&6; }
35601 tst_allow_ioctlsocket="yes"
35602 else
35603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604$as_echo "no" >&6; }
35605 tst_allow_ioctlsocket="no"
35606 fi
35607 fi
35608 #
35609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35610$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35611 if test "$tst_links_ioctlsocket" = "yes" &&
35612 test "$tst_proto_ioctlsocket" = "yes" &&
35613 test "$tst_compi_ioctlsocket" = "yes" &&
35614 test "$tst_allow_ioctlsocket" = "yes"; then
35615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35616$as_echo "yes" >&6; }
35617
35618cat >>confdefs.h <<_ACEOF
35619#define HAVE_IOCTLSOCKET 1
35620_ACEOF
35621
35622 curl_cv_func_ioctlsocket="yes"
35623
35624 #
35625 tst_compi_ioctlsocket_fionbio="unknown"
35626 tst_allow_ioctlsocket_fionbio="unknown"
35627 #
35628 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35630$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35632/* end confdefs.h. */
35633
35634
35635 $curl_includes_winsock2
35636
35637int main (void)
35638{
35639
35640 int flags = 0;
35641 if(0 != ioctlsocket(0, FIONBIO, &flags))
35642 return 1;
35643
35644 ;
35645 return 0;
35646}
35647
35648_ACEOF
35649if ac_fn_c_try_compile "$LINENO"; then :
35650
35651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35652$as_echo "yes" >&6; }
35653 tst_compi_ioctlsocket_fionbio="yes"
35654
35655else
35656
35657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35658$as_echo "no" >&6; }
35659 tst_compi_ioctlsocket_fionbio="no"
35660
35661fi
35662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35663 fi
35664 #
35665 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35667$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35668 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670$as_echo "yes" >&6; }
35671 tst_allow_ioctlsocket_fionbio="yes"
35672 else
35673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35674$as_echo "no" >&6; }
35675 tst_allow_ioctlsocket_fionbio="no"
35676 fi
35677 fi
35678 #
35679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35680$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35681 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35682 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35684$as_echo "yes" >&6; }
35685
35686cat >>confdefs.h <<_ACEOF
35687#define HAVE_IOCTLSOCKET_FIONBIO 1
35688_ACEOF
35689
35690 curl_cv_func_ioctlsocket_fionbio="yes"
35691 else
35692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35693$as_echo "no" >&6; }
35694 curl_cv_func_ioctlsocket_fionbio="no"
35695 fi
35696
35697 else
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699$as_echo "no" >&6; }
35700 curl_cv_func_ioctlsocket="no"
35701 fi
35702
35703
35704 #
35705 tst_links_ioctlsocket_camel="unknown"
35706 tst_proto_ioctlsocket_camel="unknown"
35707 tst_compi_ioctlsocket_camel="unknown"
35708 tst_allow_ioctlsocket_camel="unknown"
35709 #
35710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35711$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35713/* end confdefs.h. */
35714
35715
35716#define IoctlSocket innocuous_IoctlSocket
35717#ifdef __STDC__
35718# include <limits.h>
35719#else
35720# include <assert.h>
35721#endif
35722#undef IoctlSocket
35723#ifdef __cplusplus
35724extern "C"
35725#endif
35726char IoctlSocket ();
35727#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35728choke me
35729#endif
35730
35731int main (void)
35732{
35733return IoctlSocket ();
35734 ;
35735 return 0;
35736}
35737
35738_ACEOF
35739if ac_fn_c_try_link "$LINENO"; then :
35740
35741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35742$as_echo "yes" >&6; }
35743 tst_links_ioctlsocket_camel="yes"
35744
35745else
35746
35747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35748$as_echo "no" >&6; }
35749 tst_links_ioctlsocket_camel="no"
35750
35751fi
35752rm -f core conftest.err conftest.$ac_objext \
35753 conftest$ac_exeext conftest.$ac_ext
35754 #
35755 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35757$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35759/* end confdefs.h. */
35760
35761 $curl_includes_stropts
35762
35763_ACEOF
35764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35765 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35766
35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35768$as_echo "yes" >&6; }
35769 tst_proto_ioctlsocket_camel="yes"
35770
35771else
35772
35773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35774$as_echo "no" >&6; }
35775 tst_proto_ioctlsocket_camel="no"
35776
35777fi
35778rm -f conftest*
35779
35780 fi
35781 #
35782 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35784$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35786/* end confdefs.h. */
35787
35788
35789 $curl_includes_stropts
35790
35791int main (void)
35792{
35793
35794 if(0 != IoctlSocket(0, 0, 0))
35795 return 1;
35796
35797 ;
35798 return 0;
35799}
35800
35801_ACEOF
35802if ac_fn_c_try_compile "$LINENO"; then :
35803
35804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35805$as_echo "yes" >&6; }
35806 tst_compi_ioctlsocket_camel="yes"
35807
35808else
35809
35810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35811$as_echo "no" >&6; }
35812 tst_compi_ioctlsocket_camel="no"
35813
35814fi
35815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35816 fi
35817 #
35818 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35820$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35821 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35823$as_echo "yes" >&6; }
35824 tst_allow_ioctlsocket_camel="yes"
35825 else
35826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35827$as_echo "no" >&6; }
35828 tst_allow_ioctlsocket_camel="no"
35829 fi
35830 fi
35831 #
35832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35833$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35834 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35835 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35836 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35837 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35839$as_echo "yes" >&6; }
35840
35841cat >>confdefs.h <<_ACEOF
35842#define HAVE_IOCTLSOCKET_CAMEL 1
35843_ACEOF
35844
35845 curl_cv_func_ioctlsocket_camel="yes"
35846
35847 #
35848 tst_compi_ioctlsocket_camel_fionbio="unknown"
35849 tst_allow_ioctlsocket_camel_fionbio="unknown"
35850 #
35851 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35853$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35855/* end confdefs.h. */
35856
35857
35858 $curl_includes_stropts
35859
35860int main (void)
35861{
35862
35863 long flags = 0;
35864 if(0 != ioctlsocket(0, FIONBIO, &flags))
35865 return 1;
35866
35867 ;
35868 return 0;
35869}
35870
35871_ACEOF
35872if ac_fn_c_try_compile "$LINENO"; then :
35873
35874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35875$as_echo "yes" >&6; }
35876 tst_compi_ioctlsocket_camel_fionbio="yes"
35877
35878else
35879
35880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35881$as_echo "no" >&6; }
35882 tst_compi_ioctlsocket_camel_fionbio="no"
35883
35884fi
35885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886 fi
35887 #
35888 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35890$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35891 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35893$as_echo "yes" >&6; }
35894 tst_allow_ioctlsocket_camel_fionbio="yes"
35895 else
35896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35897$as_echo "no" >&6; }
35898 tst_allow_ioctlsocket_camel_fionbio="no"
35899 fi
35900 fi
35901 #
35902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35903$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35904 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35905 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35907$as_echo "yes" >&6; }
35908
35909cat >>confdefs.h <<_ACEOF
35910#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35911_ACEOF
35912
35913 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35914 else
35915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35916$as_echo "no" >&6; }
35917 curl_cv_func_ioctlsocket_camel_fionbio="no"
35918 fi
35919
35920 else
35921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35922$as_echo "no" >&6; }
35923 curl_cv_func_ioctlsocket_camel="no"
35924 fi
35925
35926
35927 #
35928 tst_links_localtime_r="unknown"
35929 tst_proto_localtime_r="unknown"
35930 tst_compi_localtime_r="unknown"
35931 tst_works_localtime_r="unknown"
35932 tst_allow_localtime_r="unknown"
35933 #
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35935$as_echo_n "checking if localtime_r can be linked... " >&6; }
35936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35937/* end confdefs.h. */
35938
35939
35940#define localtime_r innocuous_localtime_r
35941#ifdef __STDC__
35942# include <limits.h>
35943#else
35944# include <assert.h>
35945#endif
35946#undef localtime_r
35947#ifdef __cplusplus
35948extern "C"
35949#endif
35950char localtime_r ();
35951#if defined __stub_localtime_r || defined __stub___localtime_r
35952choke me
35953#endif
35954
35955int main (void)
35956{
35957return localtime_r ();
35958 ;
35959 return 0;
35960}
35961
35962_ACEOF
35963if ac_fn_c_try_link "$LINENO"; then :
35964
35965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35966$as_echo "yes" >&6; }
35967 tst_links_localtime_r="yes"
35968
35969else
35970
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972$as_echo "no" >&6; }
35973 tst_links_localtime_r="no"
35974
35975fi
35976rm -f core conftest.err conftest.$ac_objext \
35977 conftest$ac_exeext conftest.$ac_ext
35978 #
35979 if test "$tst_links_localtime_r" = "yes"; then
35980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35981$as_echo_n "checking if localtime_r is prototyped... " >&6; }
35982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35983/* end confdefs.h. */
35984
35985 $curl_includes_time
35986
35987_ACEOF
35988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35989 $EGREP "localtime_r" >/dev/null 2>&1; then :
35990
35991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35992$as_echo "yes" >&6; }
35993 tst_proto_localtime_r="yes"
35994
35995else
35996
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35998$as_echo "no" >&6; }
35999 tst_proto_localtime_r="no"
36000
36001fi
36002rm -f conftest*
36003
36004 fi
36005 #
36006 if test "$tst_proto_localtime_r" = "yes"; then
36007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36008$as_echo_n "checking if localtime_r is compilable... " >&6; }
36009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36010/* end confdefs.h. */
36011
36012
36013 $curl_includes_time
36014
36015int main (void)
36016{
36017
36018 if(0 != localtime_r(0, 0))
36019 return 1;
36020
36021 ;
36022 return 0;
36023}
36024
36025_ACEOF
36026if ac_fn_c_try_compile "$LINENO"; then :
36027
36028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029$as_echo "yes" >&6; }
36030 tst_compi_localtime_r="yes"
36031
36032else
36033
36034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36035$as_echo "no" >&6; }
36036 tst_compi_localtime_r="no"
36037
36038fi
36039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36040 fi
36041 #
36042 if test "x$cross_compiling" != "xyes" &&
36043 test "$tst_compi_localtime_r" = "yes"; then
36044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36045$as_echo_n "checking if localtime_r seems to work... " >&6; }
36046 if test "$cross_compiling" = yes; then :
36047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36049as_fn_error $? "cannot run test program while cross compiling
36050See \`config.log' for more details" "$LINENO" 5; }
36051else
36052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36053/* end confdefs.h. */
36054
36055
36056 $curl_includes_stdlib
36057 $curl_includes_time
36058
36059int main (void)
36060{
36061
36062 time_t clock = 1170352587;
36063 struct tm *tmp = 0;
36064 struct tm result;
36065 tmp = localtime_r(&clock, &result);
36066 if(tmp)
36067 exit(0);
36068 else
36069 exit(1);
36070
36071 ;
36072 return 0;
36073}
36074
36075_ACEOF
36076if ac_fn_c_try_run "$LINENO"; then :
36077
36078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36079$as_echo "yes" >&6; }
36080 tst_works_localtime_r="yes"
36081
36082else
36083
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36085$as_echo "no" >&6; }
36086 tst_works_localtime_r="no"
36087
36088fi
36089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36090 conftest.$ac_objext conftest.beam conftest.$ac_ext
36091fi
36092
36093 fi
36094 #
36095 if test "$tst_compi_localtime_r" = "yes" &&
36096 test "$tst_works_localtime_r" != "no"; then
36097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36098$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36099 if test "x$curl_disallow_localtime_r" != "xyes"; then
36100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36101$as_echo "yes" >&6; }
36102 tst_allow_localtime_r="yes"
36103 else
36104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36105$as_echo "no" >&6; }
36106 tst_allow_localtime_r="no"
36107 fi
36108 fi
36109 #
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36111$as_echo_n "checking if localtime_r might be used... " >&6; }
36112 if test "$tst_links_localtime_r" = "yes" &&
36113 test "$tst_proto_localtime_r" = "yes" &&
36114 test "$tst_compi_localtime_r" = "yes" &&
36115 test "$tst_allow_localtime_r" = "yes" &&
36116 test "$tst_works_localtime_r" != "no"; then
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36118$as_echo "yes" >&6; }
36119
36120cat >>confdefs.h <<_ACEOF
36121#define HAVE_LOCALTIME_R 1
36122_ACEOF
36123
36124 curl_cv_func_localtime_r="yes"
36125 else
36126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36127$as_echo "no" >&6; }
36128 curl_cv_func_localtime_r="no"
36129 fi
36130
36131
36132 #
36133 tst_links_memrchr="unknown"
36134 tst_macro_memrchr="unknown"
36135 tst_proto_memrchr="unknown"
36136 tst_compi_memrchr="unknown"
36137 tst_allow_memrchr="unknown"
36138 #
36139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36140$as_echo_n "checking if memrchr can be linked... " >&6; }
36141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36142/* end confdefs.h. */
36143
36144
36145#define memrchr innocuous_memrchr
36146#ifdef __STDC__
36147# include <limits.h>
36148#else
36149# include <assert.h>
36150#endif
36151#undef memrchr
36152#ifdef __cplusplus
36153extern "C"
36154#endif
36155char memrchr ();
36156#if defined __stub_memrchr || defined __stub___memrchr
36157choke me
36158#endif
36159
36160int main (void)
36161{
36162return memrchr ();
36163 ;
36164 return 0;
36165}
36166
36167_ACEOF
36168if ac_fn_c_try_link "$LINENO"; then :
36169
36170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36171$as_echo "yes" >&6; }
36172 tst_links_memrchr="yes"
36173
36174else
36175
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36177$as_echo "no" >&6; }
36178 tst_links_memrchr="no"
36179
36180fi
36181rm -f core conftest.err conftest.$ac_objext \
36182 conftest$ac_exeext conftest.$ac_ext
36183 #
36184 if test "$tst_links_memrchr" = "no"; then
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36186$as_echo_n "checking if memrchr seems a macro... " >&6; }
36187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36188/* end confdefs.h. */
36189
36190
36191 $curl_includes_string
36192
36193int main (void)
36194{
36195
36196 if(0 != memrchr(0, 0, 0))
36197 return 1;
36198
36199 ;
36200 return 0;
36201}
36202
36203_ACEOF
36204if ac_fn_c_try_link "$LINENO"; then :
36205
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36207$as_echo "yes" >&6; }
36208 tst_macro_memrchr="yes"
36209
36210else
36211
36212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36213$as_echo "no" >&6; }
36214 tst_macro_memrchr="no"
36215
36216fi
36217rm -f core conftest.err conftest.$ac_objext \
36218 conftest$ac_exeext conftest.$ac_ext
36219 fi
36220 #
36221 if test "$tst_links_memrchr" = "yes"; then
36222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36223$as_echo_n "checking if memrchr is prototyped... " >&6; }
36224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36225/* end confdefs.h. */
36226
36227 $curl_includes_string
36228
36229_ACEOF
36230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36231 $EGREP "memrchr" >/dev/null 2>&1; then :
36232
36233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36234$as_echo "yes" >&6; }
36235 tst_proto_memrchr="yes"
36236
36237else
36238
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36240$as_echo "no" >&6; }
36241 tst_proto_memrchr="no"
36242
36243fi
36244rm -f conftest*
36245
36246 fi
36247 #
36248 if test "$tst_proto_memrchr" = "yes" ||
36249 test "$tst_macro_memrchr" = "yes"; then
36250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36251$as_echo_n "checking if memrchr is compilable... " >&6; }
36252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36253/* end confdefs.h. */
36254
36255
36256 $curl_includes_string
36257
36258int main (void)
36259{
36260
36261 if(0 != memrchr(0, 0, 0))
36262 return 1;
36263
36264 ;
36265 return 0;
36266}
36267
36268_ACEOF
36269if ac_fn_c_try_compile "$LINENO"; then :
36270
36271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36272$as_echo "yes" >&6; }
36273 tst_compi_memrchr="yes"
36274
36275else
36276
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36278$as_echo "no" >&6; }
36279 tst_compi_memrchr="no"
36280
36281fi
36282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36283 fi
36284 #
36285 if test "$tst_compi_memrchr" = "yes"; then
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36287$as_echo_n "checking if memrchr usage allowed... " >&6; }
36288 if test "x$curl_disallow_memrchr" != "xyes"; then
36289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36290$as_echo "yes" >&6; }
36291 tst_allow_memrchr="yes"
36292 else
36293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36294$as_echo "no" >&6; }
36295 tst_allow_memrchr="no"
36296 fi
36297 fi
36298 #
36299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36300$as_echo_n "checking if memrchr might be used... " >&6; }
36301 if (test "$tst_proto_memrchr" = "yes" ||
36302 test "$tst_macro_memrchr" = "yes") &&
36303 test "$tst_compi_memrchr" = "yes" &&
36304 test "$tst_allow_memrchr" = "yes"; then
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36306$as_echo "yes" >&6; }
36307
36308cat >>confdefs.h <<_ACEOF
36309#define HAVE_MEMRCHR 1
36310_ACEOF
36311
36312 curl_cv_func_memrchr="yes"
36313 else
36314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36315$as_echo "no" >&6; }
36316 curl_cv_func_memrchr="no"
36317 fi
36318
36319
36320 #
36321 tst_links_poll="unknown"
36322 tst_proto_poll="unknown"
36323 tst_compi_poll="unknown"
36324 tst_works_poll="unknown"
36325 tst_allow_poll="unknown"
36326 #
36327 case $host_os in
36328 darwin*|interix*)
36329 curl_disallow_poll="yes"
36330 tst_compi_poll="no"
36331 ;;
36332 esac
36333 #
36334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36335$as_echo_n "checking if poll can be linked... " >&6; }
36336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36337/* end confdefs.h. */
36338
36339
36340 $curl_includes_poll
36341
36342int main (void)
36343{
36344
36345 if(0 != poll(0, 0, 0))
36346 return 1;
36347
36348 ;
36349 return 0;
36350}
36351
36352_ACEOF
36353if ac_fn_c_try_link "$LINENO"; then :
36354
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36356$as_echo "yes" >&6; }
36357 tst_links_poll="yes"
36358
36359else
36360
36361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36362$as_echo "no" >&6; }
36363 tst_links_poll="no"
36364
36365fi
36366rm -f core conftest.err conftest.$ac_objext \
36367 conftest$ac_exeext conftest.$ac_ext
36368 #
36369 if test "$tst_links_poll" = "yes"; then
36370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36371$as_echo_n "checking if poll is prototyped... " >&6; }
36372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373/* end confdefs.h. */
36374
36375 $curl_includes_poll
36376
36377_ACEOF
36378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36379 $EGREP "poll" >/dev/null 2>&1; then :
36380
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36382$as_echo "yes" >&6; }
36383 tst_proto_poll="yes"
36384
36385else
36386
36387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36388$as_echo "no" >&6; }
36389 tst_proto_poll="no"
36390
36391fi
36392rm -f conftest*
36393
36394 fi
36395 #
36396 if test "$tst_proto_poll" = "yes"; then
36397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36398$as_echo_n "checking if poll is compilable... " >&6; }
36399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36400/* end confdefs.h. */
36401
36402
36403 $curl_includes_poll
36404
36405int main (void)
36406{
36407
36408 if(0 != poll(0, 0, 0))
36409 return 1;
36410
36411 ;
36412 return 0;
36413}
36414
36415_ACEOF
36416if ac_fn_c_try_compile "$LINENO"; then :
36417
36418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36419$as_echo "yes" >&6; }
36420 tst_compi_poll="yes"
36421
36422else
36423
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36425$as_echo "no" >&6; }
36426 tst_compi_poll="no"
36427
36428fi
36429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36430 fi
36431 #
36432 if test "x$cross_compiling" != "xyes" &&
36433 test "$tst_compi_poll" = "yes"; then
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36435$as_echo_n "checking if poll seems to work... " >&6; }
36436 if test "$cross_compiling" = yes; then :
36437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36439as_fn_error $? "cannot run test program while cross compiling
36440See \`config.log' for more details" "$LINENO" 5; }
36441else
36442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36443/* end confdefs.h. */
36444
36445
36446 $curl_includes_stdlib
36447 $curl_includes_poll
36448 $curl_includes_time
36449
36450int main (void)
36451{
36452
36453 /* detect the original poll() breakage */
36454 if(0 != poll(0, 0, 10))
36455 exit(1); /* fail */
36456 else {
36457 /* detect the 10.12 poll() breakage */
36458 struct timeval before, after;
36459 int rc;
36460 size_t us;
36461
36462 gettimeofday(&before, NULL);
36463 rc = poll(NULL, 0, 500);
36464 gettimeofday(&after, NULL);
36465
36466 us = (after.tv_sec - before.tv_sec) * 1000000 +
36467 (after.tv_usec - before.tv_usec);
36468
36469 if(us < 400000)
36470 exit(1);
36471 }
36472
36473 ;
36474 return 0;
36475}
36476
36477_ACEOF
36478if ac_fn_c_try_run "$LINENO"; then :
36479
36480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36481$as_echo "yes" >&6; }
36482 tst_works_poll="yes"
36483
36484else
36485
36486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36487$as_echo "no" >&6; }
36488 tst_works_poll="no"
36489
36490fi
36491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36492 conftest.$ac_objext conftest.beam conftest.$ac_ext
36493fi
36494
36495 fi
36496 #
36497 if test "$tst_compi_poll" = "yes" &&
36498 test "$tst_works_poll" != "no"; then
36499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36500$as_echo_n "checking if poll usage allowed... " >&6; }
36501 if test "x$curl_disallow_poll" != "xyes"; then
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36503$as_echo "yes" >&6; }
36504 tst_allow_poll="yes"
36505 else
36506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36507$as_echo "no" >&6; }
36508 tst_allow_poll="no"
36509 fi
36510 fi
36511 #
36512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36513$as_echo_n "checking if poll might be used... " >&6; }
36514 if test "$tst_links_poll" = "yes" &&
36515 test "$tst_proto_poll" = "yes" &&
36516 test "$tst_compi_poll" = "yes" &&
36517 test "$tst_allow_poll" = "yes" &&
36518 test "$tst_works_poll" != "no"; then
36519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36520$as_echo "yes" >&6; }
36521
36522cat >>confdefs.h <<_ACEOF
36523#define HAVE_POLL 1
36524_ACEOF
36525
36526
36527cat >>confdefs.h <<_ACEOF
36528#define HAVE_POLL_FINE 1
36529_ACEOF
36530
36531 curl_cv_func_poll="yes"
36532 else
36533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36534$as_echo "no" >&6; }
36535 curl_cv_func_poll="no"
36536 fi
36537
36538
36539 #
36540 tst_links_setsockopt="unknown"
36541 tst_proto_setsockopt="unknown"
36542 tst_compi_setsockopt="unknown"
36543 tst_allow_setsockopt="unknown"
36544 #
36545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36546$as_echo_n "checking if setsockopt can be linked... " >&6; }
36547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36548/* end confdefs.h. */
36549
36550
36551 $curl_includes_winsock2
36552 $curl_includes_sys_socket
36553
36554int main (void)
36555{
36556
36557 if(0 != setsockopt(0, 0, 0, 0, 0))
36558 return 1;
36559
36560 ;
36561 return 0;
36562}
36563
36564_ACEOF
36565if ac_fn_c_try_link "$LINENO"; then :
36566
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36568$as_echo "yes" >&6; }
36569 tst_links_setsockopt="yes"
36570
36571else
36572
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36574$as_echo "no" >&6; }
36575 tst_links_setsockopt="no"
36576
36577fi
36578rm -f core conftest.err conftest.$ac_objext \
36579 conftest$ac_exeext conftest.$ac_ext
36580 #
36581 if test "$tst_links_setsockopt" = "yes"; then
36582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36583$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36585/* end confdefs.h. */
36586
36587 $curl_includes_winsock2
36588 $curl_includes_sys_socket
36589
36590_ACEOF
36591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36592 $EGREP "setsockopt" >/dev/null 2>&1; then :
36593
36594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36595$as_echo "yes" >&6; }
36596 tst_proto_setsockopt="yes"
36597
36598else
36599
36600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36601$as_echo "no" >&6; }
36602 tst_proto_setsockopt="no"
36603
36604fi
36605rm -f conftest*
36606
36607 fi
36608 #
36609 if test "$tst_proto_setsockopt" = "yes"; then
36610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36611$as_echo_n "checking if setsockopt is compilable... " >&6; }
36612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36613/* end confdefs.h. */
36614
36615
36616 $curl_includes_winsock2
36617 $curl_includes_sys_socket
36618
36619int main (void)
36620{
36621
36622 if(0 != setsockopt(0, 0, 0, 0, 0))
36623 return 1;
36624
36625 ;
36626 return 0;
36627}
36628
36629_ACEOF
36630if ac_fn_c_try_compile "$LINENO"; then :
36631
36632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36633$as_echo "yes" >&6; }
36634 tst_compi_setsockopt="yes"
36635
36636else
36637
36638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36639$as_echo "no" >&6; }
36640 tst_compi_setsockopt="no"
36641
36642fi
36643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36644 fi
36645 #
36646 if test "$tst_compi_setsockopt" = "yes"; then
36647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36648$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36649 if test "x$curl_disallow_setsockopt" != "xyes"; then
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36651$as_echo "yes" >&6; }
36652 tst_allow_setsockopt="yes"
36653 else
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36655$as_echo "no" >&6; }
36656 tst_allow_setsockopt="no"
36657 fi
36658 fi
36659 #
36660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36661$as_echo_n "checking if setsockopt might be used... " >&6; }
36662 if test "$tst_links_setsockopt" = "yes" &&
36663 test "$tst_proto_setsockopt" = "yes" &&
36664 test "$tst_compi_setsockopt" = "yes" &&
36665 test "$tst_allow_setsockopt" = "yes"; then
36666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36667$as_echo "yes" >&6; }
36668
36669cat >>confdefs.h <<_ACEOF
36670#define HAVE_SETSOCKOPT 1
36671_ACEOF
36672
36673 curl_cv_func_setsockopt="yes"
36674
36675 #
36676 tst_compi_setsockopt_so_nonblock="unknown"
36677 tst_allow_setsockopt_so_nonblock="unknown"
36678 #
36679 if test "$curl_cv_func_setsockopt" = "yes"; then
36680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36681$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36683/* end confdefs.h. */
36684
36685
36686 $curl_includes_winsock2
36687 $curl_includes_sys_socket
36688
36689int main (void)
36690{
36691
36692 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36693 return 1;
36694
36695 ;
36696 return 0;
36697}
36698
36699_ACEOF
36700if ac_fn_c_try_compile "$LINENO"; then :
36701
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36703$as_echo "yes" >&6; }
36704 tst_compi_setsockopt_so_nonblock="yes"
36705
36706else
36707
36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36709$as_echo "no" >&6; }
36710 tst_compi_setsockopt_so_nonblock="no"
36711
36712fi
36713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36714 fi
36715 #
36716 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36718$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36719 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36721$as_echo "yes" >&6; }
36722 tst_allow_setsockopt_so_nonblock="yes"
36723 else
36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36725$as_echo "no" >&6; }
36726 tst_allow_setsockopt_so_nonblock="no"
36727 fi
36728 fi
36729 #
36730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36731$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36732 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36733 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36735$as_echo "yes" >&6; }
36736
36737cat >>confdefs.h <<_ACEOF
36738#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36739_ACEOF
36740
36741 curl_cv_func_setsockopt_so_nonblock="yes"
36742 else
36743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36744$as_echo "no" >&6; }
36745 curl_cv_func_setsockopt_so_nonblock="no"
36746 fi
36747
36748 else
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36750$as_echo "no" >&6; }
36751 curl_cv_func_setsockopt="no"
36752 fi
36753
36754
36755curl_includes_signal="\
36756/* includes start */
36757#ifdef HAVE_SYS_TYPES_H
36758# include <sys/types.h>
36759#endif
36760#ifdef HAVE_SIGNAL_H
36761# include <signal.h>
36762#endif
36763/* includes end */"
36764 for ac_header in sys/types.h signal.h
36765do :
36766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36768"
36769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36770 cat >>confdefs.h <<_ACEOF
36771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36772_ACEOF
36773
36774fi
36775
36776done
36777
36778
36779
36780 #
36781 tst_links_sigaction="unknown"
36782 tst_proto_sigaction="unknown"
36783 tst_compi_sigaction="unknown"
36784 tst_allow_sigaction="unknown"
36785 #
36786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36787$as_echo_n "checking if sigaction can be linked... " >&6; }
36788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36789/* end confdefs.h. */
36790
36791
36792#define sigaction innocuous_sigaction
36793#ifdef __STDC__
36794# include <limits.h>
36795#else
36796# include <assert.h>
36797#endif
36798#undef sigaction
36799#ifdef __cplusplus
36800extern "C"
36801#endif
36802char sigaction ();
36803#if defined __stub_sigaction || defined __stub___sigaction
36804choke me
36805#endif
36806
36807int main (void)
36808{
36809return sigaction ();
36810 ;
36811 return 0;
36812}
36813
36814_ACEOF
36815if ac_fn_c_try_link "$LINENO"; then :
36816
36817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36818$as_echo "yes" >&6; }
36819 tst_links_sigaction="yes"
36820
36821else
36822
36823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36824$as_echo "no" >&6; }
36825 tst_links_sigaction="no"
36826
36827fi
36828rm -f core conftest.err conftest.$ac_objext \
36829 conftest$ac_exeext conftest.$ac_ext
36830 #
36831 if test "$tst_links_sigaction" = "yes"; then
36832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36833$as_echo_n "checking if sigaction is prototyped... " >&6; }
36834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36835/* end confdefs.h. */
36836
36837 $curl_includes_signal
36838
36839_ACEOF
36840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36841 $EGREP "sigaction" >/dev/null 2>&1; then :
36842
36843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36844$as_echo "yes" >&6; }
36845 tst_proto_sigaction="yes"
36846
36847else
36848
36849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36850$as_echo "no" >&6; }
36851 tst_proto_sigaction="no"
36852
36853fi
36854rm -f conftest*
36855
36856 fi
36857 #
36858 if test "$tst_proto_sigaction" = "yes"; then
36859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36860$as_echo_n "checking if sigaction is compilable... " >&6; }
36861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36862/* end confdefs.h. */
36863
36864
36865 $curl_includes_signal
36866
36867int main (void)
36868{
36869
36870 if(0 != sigaction(0, 0, 0))
36871 return 1;
36872
36873 ;
36874 return 0;
36875}
36876
36877_ACEOF
36878if ac_fn_c_try_compile "$LINENO"; then :
36879
36880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36881$as_echo "yes" >&6; }
36882 tst_compi_sigaction="yes"
36883
36884else
36885
36886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36887$as_echo "no" >&6; }
36888 tst_compi_sigaction="no"
36889
36890fi
36891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892 fi
36893 #
36894 if test "$tst_compi_sigaction" = "yes"; then
36895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36896$as_echo_n "checking if sigaction usage allowed... " >&6; }
36897 if test "x$curl_disallow_sigaction" != "xyes"; then
36898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36899$as_echo "yes" >&6; }
36900 tst_allow_sigaction="yes"
36901 else
36902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36903$as_echo "no" >&6; }
36904 tst_allow_sigaction="no"
36905 fi
36906 fi
36907 #
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36909$as_echo_n "checking if sigaction might be used... " >&6; }
36910 if test "$tst_links_sigaction" = "yes" &&
36911 test "$tst_proto_sigaction" = "yes" &&
36912 test "$tst_compi_sigaction" = "yes" &&
36913 test "$tst_allow_sigaction" = "yes"; then
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36915$as_echo "yes" >&6; }
36916
36917cat >>confdefs.h <<_ACEOF
36918#define HAVE_SIGACTION 1
36919_ACEOF
36920
36921 curl_cv_func_sigaction="yes"
36922 else
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924$as_echo "no" >&6; }
36925 curl_cv_func_sigaction="no"
36926 fi
36927
36928
36929 #
36930 tst_links_siginterrupt="unknown"
36931 tst_proto_siginterrupt="unknown"
36932 tst_compi_siginterrupt="unknown"
36933 tst_allow_siginterrupt="unknown"
36934 #
36935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36936$as_echo_n "checking if siginterrupt can be linked... " >&6; }
36937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36938/* end confdefs.h. */
36939
36940
36941#define siginterrupt innocuous_siginterrupt
36942#ifdef __STDC__
36943# include <limits.h>
36944#else
36945# include <assert.h>
36946#endif
36947#undef siginterrupt
36948#ifdef __cplusplus
36949extern "C"
36950#endif
36951char siginterrupt ();
36952#if defined __stub_siginterrupt || defined __stub___siginterrupt
36953choke me
36954#endif
36955
36956int main (void)
36957{
36958return siginterrupt ();
36959 ;
36960 return 0;
36961}
36962
36963_ACEOF
36964if ac_fn_c_try_link "$LINENO"; then :
36965
36966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36967$as_echo "yes" >&6; }
36968 tst_links_siginterrupt="yes"
36969
36970else
36971
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36973$as_echo "no" >&6; }
36974 tst_links_siginterrupt="no"
36975
36976fi
36977rm -f core conftest.err conftest.$ac_objext \
36978 conftest$ac_exeext conftest.$ac_ext
36979 #
36980 if test "$tst_links_siginterrupt" = "yes"; then
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36982$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36984/* end confdefs.h. */
36985
36986 $curl_includes_signal
36987
36988_ACEOF
36989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36990 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36991
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36993$as_echo "yes" >&6; }
36994 tst_proto_siginterrupt="yes"
36995
36996else
36997
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36999$as_echo "no" >&6; }
37000 tst_proto_siginterrupt="no"
37001
37002fi
37003rm -f conftest*
37004
37005 fi
37006 #
37007 if test "$tst_proto_siginterrupt" = "yes"; then
37008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37009$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37011/* end confdefs.h. */
37012
37013
37014 $curl_includes_signal
37015
37016int main (void)
37017{
37018
37019 if(0 != siginterrupt(0, 0))
37020 return 1;
37021
37022 ;
37023 return 0;
37024}
37025
37026_ACEOF
37027if ac_fn_c_try_compile "$LINENO"; then :
37028
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37030$as_echo "yes" >&6; }
37031 tst_compi_siginterrupt="yes"
37032
37033else
37034
37035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37036$as_echo "no" >&6; }
37037 tst_compi_siginterrupt="no"
37038
37039fi
37040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37041 fi
37042 #
37043 if test "$tst_compi_siginterrupt" = "yes"; then
37044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37045$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37046 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37048$as_echo "yes" >&6; }
37049 tst_allow_siginterrupt="yes"
37050 else
37051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37052$as_echo "no" >&6; }
37053 tst_allow_siginterrupt="no"
37054 fi
37055 fi
37056 #
37057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37058$as_echo_n "checking if siginterrupt might be used... " >&6; }
37059 if test "$tst_links_siginterrupt" = "yes" &&
37060 test "$tst_proto_siginterrupt" = "yes" &&
37061 test "$tst_compi_siginterrupt" = "yes" &&
37062 test "$tst_allow_siginterrupt" = "yes"; then
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37064$as_echo "yes" >&6; }
37065
37066cat >>confdefs.h <<_ACEOF
37067#define HAVE_SIGINTERRUPT 1
37068_ACEOF
37069
37070 curl_cv_func_siginterrupt="yes"
37071 else
37072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37073$as_echo "no" >&6; }
37074 curl_cv_func_siginterrupt="no"
37075 fi
37076
37077
37078 #
37079 tst_links_signal="unknown"
37080 tst_proto_signal="unknown"
37081 tst_compi_signal="unknown"
37082 tst_allow_signal="unknown"
37083 #
37084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37085$as_echo_n "checking if signal can be linked... " >&6; }
37086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37087/* end confdefs.h. */
37088
37089
37090#define signal innocuous_signal
37091#ifdef __STDC__
37092# include <limits.h>
37093#else
37094# include <assert.h>
37095#endif
37096#undef signal
37097#ifdef __cplusplus
37098extern "C"
37099#endif
37100char signal ();
37101#if defined __stub_signal || defined __stub___signal
37102choke me
37103#endif
37104
37105int main (void)
37106{
37107return signal ();
37108 ;
37109 return 0;
37110}
37111
37112_ACEOF
37113if ac_fn_c_try_link "$LINENO"; then :
37114
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37116$as_echo "yes" >&6; }
37117 tst_links_signal="yes"
37118
37119else
37120
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37122$as_echo "no" >&6; }
37123 tst_links_signal="no"
37124
37125fi
37126rm -f core conftest.err conftest.$ac_objext \
37127 conftest$ac_exeext conftest.$ac_ext
37128 #
37129 if test "$tst_links_signal" = "yes"; then
37130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37131$as_echo_n "checking if signal is prototyped... " >&6; }
37132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37133/* end confdefs.h. */
37134
37135 $curl_includes_signal
37136
37137_ACEOF
37138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37139 $EGREP "signal" >/dev/null 2>&1; then :
37140
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37142$as_echo "yes" >&6; }
37143 tst_proto_signal="yes"
37144
37145else
37146
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37148$as_echo "no" >&6; }
37149 tst_proto_signal="no"
37150
37151fi
37152rm -f conftest*
37153
37154 fi
37155 #
37156 if test "$tst_proto_signal" = "yes"; then
37157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37158$as_echo_n "checking if signal is compilable... " >&6; }
37159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37160/* end confdefs.h. */
37161
37162
37163 $curl_includes_signal
37164
37165int main (void)
37166{
37167
37168 if(0 != signal(0, 0))
37169 return 1;
37170
37171 ;
37172 return 0;
37173}
37174
37175_ACEOF
37176if ac_fn_c_try_compile "$LINENO"; then :
37177
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37179$as_echo "yes" >&6; }
37180 tst_compi_signal="yes"
37181
37182else
37183
37184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37185$as_echo "no" >&6; }
37186 tst_compi_signal="no"
37187
37188fi
37189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37190 fi
37191 #
37192 if test "$tst_compi_signal" = "yes"; then
37193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37194$as_echo_n "checking if signal usage allowed... " >&6; }
37195 if test "x$curl_disallow_signal" != "xyes"; then
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37197$as_echo "yes" >&6; }
37198 tst_allow_signal="yes"
37199 else
37200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37201$as_echo "no" >&6; }
37202 tst_allow_signal="no"
37203 fi
37204 fi
37205 #
37206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37207$as_echo_n "checking if signal might be used... " >&6; }
37208 if test "$tst_links_signal" = "yes" &&
37209 test "$tst_proto_signal" = "yes" &&
37210 test "$tst_compi_signal" = "yes" &&
37211 test "$tst_allow_signal" = "yes"; then
37212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37213$as_echo "yes" >&6; }
37214
37215cat >>confdefs.h <<_ACEOF
37216#define HAVE_SIGNAL 1
37217_ACEOF
37218
37219 curl_cv_func_signal="yes"
37220 else
37221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37222$as_echo "no" >&6; }
37223 curl_cv_func_signal="no"
37224 fi
37225
37226
37227curl_includes_setjmp="\
37228/* includes start */
37229#ifdef HAVE_SYS_TYPES_H
37230# include <sys/types.h>
37231#endif
37232#ifdef HAVE_SETJMP_H
37233# include <setjmp.h>
37234#endif
37235/* includes end */"
37236 for ac_header in sys/types.h setjmp.h
37237do :
37238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37239ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37240"
37241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37242 cat >>confdefs.h <<_ACEOF
37243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37244_ACEOF
37245
37246fi
37247
37248done
37249
37250
37251
37252 #
37253 tst_links_sigsetjmp="unknown"
37254 tst_macro_sigsetjmp="unknown"
37255 tst_proto_sigsetjmp="unknown"
37256 tst_compi_sigsetjmp="unknown"
37257 tst_allow_sigsetjmp="unknown"
37258 #
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37260$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37262/* end confdefs.h. */
37263
37264
37265#define sigsetjmp innocuous_sigsetjmp
37266#ifdef __STDC__
37267# include <limits.h>
37268#else
37269# include <assert.h>
37270#endif
37271#undef sigsetjmp
37272#ifdef __cplusplus
37273extern "C"
37274#endif
37275char sigsetjmp ();
37276#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37277choke me
37278#endif
37279
37280int main (void)
37281{
37282return sigsetjmp ();
37283 ;
37284 return 0;
37285}
37286
37287_ACEOF
37288if ac_fn_c_try_link "$LINENO"; then :
37289
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37291$as_echo "yes" >&6; }
37292 tst_links_sigsetjmp="yes"
37293
37294else
37295
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37297$as_echo "no" >&6; }
37298 tst_links_sigsetjmp="no"
37299
37300fi
37301rm -f core conftest.err conftest.$ac_objext \
37302 conftest$ac_exeext conftest.$ac_ext
37303 #
37304 if test "$tst_links_sigsetjmp" = "no"; then
37305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37306$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37308/* end confdefs.h. */
37309
37310
37311 $curl_includes_setjmp
37312
37313int main (void)
37314{
37315
37316 sigjmp_buf env;
37317 if(0 != sigsetjmp(env, 0))
37318 return 1;
37319
37320 ;
37321 return 0;
37322}
37323
37324_ACEOF
37325if ac_fn_c_try_link "$LINENO"; then :
37326
37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37328$as_echo "yes" >&6; }
37329 tst_macro_sigsetjmp="yes"
37330
37331else
37332
37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37334$as_echo "no" >&6; }
37335 tst_macro_sigsetjmp="no"
37336
37337fi
37338rm -f core conftest.err conftest.$ac_objext \
37339 conftest$ac_exeext conftest.$ac_ext
37340 fi
37341 #
37342 if test "$tst_links_sigsetjmp" = "yes"; then
37343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37344$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37346/* end confdefs.h. */
37347
37348 $curl_includes_setjmp
37349
37350_ACEOF
37351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37352 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37353
37354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37355$as_echo "yes" >&6; }
37356 tst_proto_sigsetjmp="yes"
37357
37358else
37359
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37361$as_echo "no" >&6; }
37362 tst_proto_sigsetjmp="no"
37363
37364fi
37365rm -f conftest*
37366
37367 fi
37368 #
37369 if test "$tst_proto_sigsetjmp" = "yes" ||
37370 test "$tst_macro_sigsetjmp" = "yes"; then
37371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37372$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37374/* end confdefs.h. */
37375
37376
37377 $curl_includes_setjmp
37378
37379int main (void)
37380{
37381
37382 sigjmp_buf env;
37383 if(0 != sigsetjmp(env, 0))
37384 return 1;
37385
37386 ;
37387 return 0;
37388}
37389
37390_ACEOF
37391if ac_fn_c_try_compile "$LINENO"; then :
37392
37393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37394$as_echo "yes" >&6; }
37395 tst_compi_sigsetjmp="yes"
37396
37397else
37398
37399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37400$as_echo "no" >&6; }
37401 tst_compi_sigsetjmp="no"
37402
37403fi
37404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37405 fi
37406 #
37407 if test "$tst_compi_sigsetjmp" = "yes"; then
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37409$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37410 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37412$as_echo "yes" >&6; }
37413 tst_allow_sigsetjmp="yes"
37414 else
37415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37416$as_echo "no" >&6; }
37417 tst_allow_sigsetjmp="no"
37418 fi
37419 fi
37420 #
37421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37422$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37423 if (test "$tst_proto_sigsetjmp" = "yes" ||
37424 test "$tst_macro_sigsetjmp" = "yes") &&
37425 test "$tst_compi_sigsetjmp" = "yes" &&
37426 test "$tst_allow_sigsetjmp" = "yes"; then
37427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37428$as_echo "yes" >&6; }
37429
37430cat >>confdefs.h <<_ACEOF
37431#define HAVE_SIGSETJMP 1
37432_ACEOF
37433
37434 curl_cv_func_sigsetjmp="yes"
37435 else
37436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37437$as_echo "no" >&6; }
37438 curl_cv_func_sigsetjmp="no"
37439 fi
37440
37441
37442 #
37443 tst_links_socket="unknown"
37444 tst_proto_socket="unknown"
37445 tst_compi_socket="unknown"
37446 tst_allow_socket="unknown"
37447 #
37448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37449$as_echo_n "checking if socket can be linked... " >&6; }
37450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37451/* end confdefs.h. */
37452
37453
37454 $curl_includes_winsock2
37455 $curl_includes_sys_socket
37456 $curl_includes_socket
37457
37458int main (void)
37459{
37460
37461 if(0 != socket(0, 0, 0))
37462 return 1;
37463
37464 ;
37465 return 0;
37466}
37467
37468_ACEOF
37469if ac_fn_c_try_link "$LINENO"; then :
37470
37471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37472$as_echo "yes" >&6; }
37473 tst_links_socket="yes"
37474
37475else
37476
37477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37478$as_echo "no" >&6; }
37479 tst_links_socket="no"
37480
37481fi
37482rm -f core conftest.err conftest.$ac_objext \
37483 conftest$ac_exeext conftest.$ac_ext
37484 #
37485 if test "$tst_links_socket" = "yes"; then
37486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37487$as_echo_n "checking if socket is prototyped... " >&6; }
37488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37489/* end confdefs.h. */
37490
37491 $curl_includes_winsock2
37492 $curl_includes_sys_socket
37493 $curl_includes_socket
37494
37495_ACEOF
37496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37497 $EGREP "socket" >/dev/null 2>&1; then :
37498
37499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37500$as_echo "yes" >&6; }
37501 tst_proto_socket="yes"
37502
37503else
37504
37505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37506$as_echo "no" >&6; }
37507 tst_proto_socket="no"
37508
37509fi
37510rm -f conftest*
37511
37512 fi
37513 #
37514 if test "$tst_proto_socket" = "yes"; then
37515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37516$as_echo_n "checking if socket is compilable... " >&6; }
37517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37518/* end confdefs.h. */
37519
37520
37521 $curl_includes_winsock2
37522 $curl_includes_sys_socket
37523 $curl_includes_socket
37524
37525int main (void)
37526{
37527
37528 if(0 != socket(0, 0, 0))
37529 return 1;
37530
37531 ;
37532 return 0;
37533}
37534
37535_ACEOF
37536if ac_fn_c_try_compile "$LINENO"; then :
37537
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539$as_echo "yes" >&6; }
37540 tst_compi_socket="yes"
37541
37542else
37543
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545$as_echo "no" >&6; }
37546 tst_compi_socket="no"
37547
37548fi
37549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37550 fi
37551 #
37552 if test "$tst_compi_socket" = "yes"; then
37553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37554$as_echo_n "checking if socket usage allowed... " >&6; }
37555 if test "x$curl_disallow_socket" != "xyes"; then
37556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37557$as_echo "yes" >&6; }
37558 tst_allow_socket="yes"
37559 else
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37561$as_echo "no" >&6; }
37562 tst_allow_socket="no"
37563 fi
37564 fi
37565 #
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37567$as_echo_n "checking if socket might be used... " >&6; }
37568 if test "$tst_links_socket" = "yes" &&
37569 test "$tst_proto_socket" = "yes" &&
37570 test "$tst_compi_socket" = "yes" &&
37571 test "$tst_allow_socket" = "yes"; then
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37573$as_echo "yes" >&6; }
37574
37575cat >>confdefs.h <<_ACEOF
37576#define HAVE_SOCKET 1
37577_ACEOF
37578
37579 curl_cv_func_socket="yes"
37580 else
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37582$as_echo "no" >&6; }
37583 curl_cv_func_socket="no"
37584 fi
37585
37586
37587 #
37588 tst_links_socketpair="unknown"
37589 tst_proto_socketpair="unknown"
37590 tst_compi_socketpair="unknown"
37591 tst_allow_socketpair="unknown"
37592 #
37593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37594$as_echo_n "checking if socketpair can be linked... " >&6; }
37595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37596/* end confdefs.h. */
37597
37598
37599#define socketpair innocuous_socketpair
37600#ifdef __STDC__
37601# include <limits.h>
37602#else
37603# include <assert.h>
37604#endif
37605#undef socketpair
37606#ifdef __cplusplus
37607extern "C"
37608#endif
37609char socketpair ();
37610#if defined __stub_socketpair || defined __stub___socketpair
37611choke me
37612#endif
37613
37614int main (void)
37615{
37616return socketpair ();
37617 ;
37618 return 0;
37619}
37620
37621_ACEOF
37622if ac_fn_c_try_link "$LINENO"; then :
37623
37624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37625$as_echo "yes" >&6; }
37626 tst_links_socketpair="yes"
37627
37628else
37629
37630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37631$as_echo "no" >&6; }
37632 tst_links_socketpair="no"
37633
37634fi
37635rm -f core conftest.err conftest.$ac_objext \
37636 conftest$ac_exeext conftest.$ac_ext
37637 #
37638 if test "$tst_links_socketpair" = "yes"; then
37639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37640$as_echo_n "checking if socketpair is prototyped... " >&6; }
37641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37642/* end confdefs.h. */
37643
37644 $curl_includes_sys_socket
37645 $curl_includes_socket
37646
37647_ACEOF
37648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37649 $EGREP "socketpair" >/dev/null 2>&1; then :
37650
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37652$as_echo "yes" >&6; }
37653 tst_proto_socketpair="yes"
37654
37655else
37656
37657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37658$as_echo "no" >&6; }
37659 tst_proto_socketpair="no"
37660
37661fi
37662rm -f conftest*
37663
37664 fi
37665 #
37666 if test "$tst_proto_socketpair" = "yes"; then
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37668$as_echo_n "checking if socketpair is compilable... " >&6; }
37669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37670/* end confdefs.h. */
37671
37672
37673 $curl_includes_sys_socket
37674 $curl_includes_socket
37675
37676int main (void)
37677{
37678
37679 int sv[2];
37680 if(0 != socketpair(0, 0, 0, sv))
37681 return 1;
37682
37683 ;
37684 return 0;
37685}
37686
37687_ACEOF
37688if ac_fn_c_try_compile "$LINENO"; then :
37689
37690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37691$as_echo "yes" >&6; }
37692 tst_compi_socketpair="yes"
37693
37694else
37695
37696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37697$as_echo "no" >&6; }
37698 tst_compi_socketpair="no"
37699
37700fi
37701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37702 fi
37703 #
37704 if test "$tst_compi_socketpair" = "yes"; then
37705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37706$as_echo_n "checking if socketpair usage allowed... " >&6; }
37707 if test "x$curl_disallow_socketpair" != "xyes"; then
37708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37709$as_echo "yes" >&6; }
37710 tst_allow_socketpair="yes"
37711 else
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37713$as_echo "no" >&6; }
37714 tst_allow_socketpair="no"
37715 fi
37716 fi
37717 #
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37719$as_echo_n "checking if socketpair might be used... " >&6; }
37720 if test "$tst_links_socketpair" = "yes" &&
37721 test "$tst_proto_socketpair" = "yes" &&
37722 test "$tst_compi_socketpair" = "yes" &&
37723 test "$tst_allow_socketpair" = "yes"; then
37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37725$as_echo "yes" >&6; }
37726
37727cat >>confdefs.h <<_ACEOF
37728#define HAVE_SOCKETPAIR 1
37729_ACEOF
37730
37731 curl_cv_func_socketpair="yes"
37732 else
37733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37734$as_echo "no" >&6; }
37735 curl_cv_func_socketpair="no"
37736 fi
37737
37738
37739 #
37740 tst_links_strcasecmp="unknown"
37741 tst_proto_strcasecmp="unknown"
37742 tst_compi_strcasecmp="unknown"
37743 tst_allow_strcasecmp="unknown"
37744 #
37745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37746$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37748/* end confdefs.h. */
37749
37750
37751#define strcasecmp innocuous_strcasecmp
37752#ifdef __STDC__
37753# include <limits.h>
37754#else
37755# include <assert.h>
37756#endif
37757#undef strcasecmp
37758#ifdef __cplusplus
37759extern "C"
37760#endif
37761char strcasecmp ();
37762#if defined __stub_strcasecmp || defined __stub___strcasecmp
37763choke me
37764#endif
37765
37766int main (void)
37767{
37768return strcasecmp ();
37769 ;
37770 return 0;
37771}
37772
37773_ACEOF
37774if ac_fn_c_try_link "$LINENO"; then :
37775
37776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37777$as_echo "yes" >&6; }
37778 tst_links_strcasecmp="yes"
37779
37780else
37781
37782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37783$as_echo "no" >&6; }
37784 tst_links_strcasecmp="no"
37785
37786fi
37787rm -f core conftest.err conftest.$ac_objext \
37788 conftest$ac_exeext conftest.$ac_ext
37789 #
37790 if test "$tst_links_strcasecmp" = "yes"; then
37791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37792$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37794/* end confdefs.h. */
37795
37796 $curl_includes_string
37797
37798_ACEOF
37799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37800 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37801
37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37803$as_echo "yes" >&6; }
37804 tst_proto_strcasecmp="yes"
37805
37806else
37807
37808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37809$as_echo "no" >&6; }
37810 tst_proto_strcasecmp="no"
37811
37812fi
37813rm -f conftest*
37814
37815 fi
37816 #
37817 if test "$tst_proto_strcasecmp" = "yes"; then
37818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37819$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37821/* end confdefs.h. */
37822
37823
37824 $curl_includes_string
37825
37826int main (void)
37827{
37828
37829 if(0 != strcasecmp(0, 0))
37830 return 1;
37831
37832 ;
37833 return 0;
37834}
37835
37836_ACEOF
37837if ac_fn_c_try_compile "$LINENO"; then :
37838
37839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37840$as_echo "yes" >&6; }
37841 tst_compi_strcasecmp="yes"
37842
37843else
37844
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37846$as_echo "no" >&6; }
37847 tst_compi_strcasecmp="no"
37848
37849fi
37850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37851 fi
37852 #
37853 if test "$tst_compi_strcasecmp" = "yes"; then
37854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37855$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37856 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37858$as_echo "yes" >&6; }
37859 tst_allow_strcasecmp="yes"
37860 else
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37862$as_echo "no" >&6; }
37863 tst_allow_strcasecmp="no"
37864 fi
37865 fi
37866 #
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37868$as_echo_n "checking if strcasecmp might be used... " >&6; }
37869 if test "$tst_links_strcasecmp" = "yes" &&
37870 test "$tst_proto_strcasecmp" = "yes" &&
37871 test "$tst_compi_strcasecmp" = "yes" &&
37872 test "$tst_allow_strcasecmp" = "yes"; then
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874$as_echo "yes" >&6; }
37875
37876cat >>confdefs.h <<_ACEOF
37877#define HAVE_STRCASECMP 1
37878_ACEOF
37879
37880 curl_cv_func_strcasecmp="yes"
37881 else
37882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37883$as_echo "no" >&6; }
37884 curl_cv_func_strcasecmp="no"
37885 fi
37886
37887
37888 #
37889 tst_links_strcmpi="unknown"
37890 tst_proto_strcmpi="unknown"
37891 tst_compi_strcmpi="unknown"
37892 tst_allow_strcmpi="unknown"
37893 #
37894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37895$as_echo_n "checking if strcmpi can be linked... " >&6; }
37896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37897/* end confdefs.h. */
37898
37899
37900#define strcmpi innocuous_strcmpi
37901#ifdef __STDC__
37902# include <limits.h>
37903#else
37904# include <assert.h>
37905#endif
37906#undef strcmpi
37907#ifdef __cplusplus
37908extern "C"
37909#endif
37910char strcmpi ();
37911#if defined __stub_strcmpi || defined __stub___strcmpi
37912choke me
37913#endif
37914
37915int main (void)
37916{
37917return strcmpi ();
37918 ;
37919 return 0;
37920}
37921
37922_ACEOF
37923if ac_fn_c_try_link "$LINENO"; then :
37924
37925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37926$as_echo "yes" >&6; }
37927 tst_links_strcmpi="yes"
37928
37929else
37930
37931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37932$as_echo "no" >&6; }
37933 tst_links_strcmpi="no"
37934
37935fi
37936rm -f core conftest.err conftest.$ac_objext \
37937 conftest$ac_exeext conftest.$ac_ext
37938 #
37939 if test "$tst_links_strcmpi" = "yes"; then
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37941$as_echo_n "checking if strcmpi is prototyped... " >&6; }
37942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37943/* end confdefs.h. */
37944
37945 $curl_includes_string
37946
37947_ACEOF
37948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37949 $EGREP "strcmpi" >/dev/null 2>&1; then :
37950
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37952$as_echo "yes" >&6; }
37953 tst_proto_strcmpi="yes"
37954
37955else
37956
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37958$as_echo "no" >&6; }
37959 tst_proto_strcmpi="no"
37960
37961fi
37962rm -f conftest*
37963
37964 fi
37965 #
37966 if test "$tst_proto_strcmpi" = "yes"; then
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37968$as_echo_n "checking if strcmpi is compilable... " >&6; }
37969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37970/* end confdefs.h. */
37971
37972
37973 $curl_includes_string
37974
37975int main (void)
37976{
37977
37978 if(0 != strcmpi(0, 0))
37979 return 1;
37980
37981 ;
37982 return 0;
37983}
37984
37985_ACEOF
37986if ac_fn_c_try_compile "$LINENO"; then :
37987
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37989$as_echo "yes" >&6; }
37990 tst_compi_strcmpi="yes"
37991
37992else
37993
37994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37995$as_echo "no" >&6; }
37996 tst_compi_strcmpi="no"
37997
37998fi
37999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38000 fi
38001 #
38002 if test "$tst_compi_strcmpi" = "yes"; then
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38004$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38005 if test "x$curl_disallow_strcmpi" != "xyes"; then
38006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38007$as_echo "yes" >&6; }
38008 tst_allow_strcmpi="yes"
38009 else
38010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38011$as_echo "no" >&6; }
38012 tst_allow_strcmpi="no"
38013 fi
38014 fi
38015 #
38016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38017$as_echo_n "checking if strcmpi might be used... " >&6; }
38018 if test "$tst_links_strcmpi" = "yes" &&
38019 test "$tst_proto_strcmpi" = "yes" &&
38020 test "$tst_compi_strcmpi" = "yes" &&
38021 test "$tst_allow_strcmpi" = "yes"; then
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38023$as_echo "yes" >&6; }
38024
38025cat >>confdefs.h <<_ACEOF
38026#define HAVE_STRCMPI 1
38027_ACEOF
38028
38029 curl_cv_func_strcmpi="yes"
38030 else
38031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38032$as_echo "no" >&6; }
38033 curl_cv_func_strcmpi="no"
38034 fi
38035
38036
38037 #
38038 tst_links_strdup="unknown"
38039 tst_proto_strdup="unknown"
38040 tst_compi_strdup="unknown"
38041 tst_allow_strdup="unknown"
38042 #
38043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38044$as_echo_n "checking if strdup can be linked... " >&6; }
38045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38046/* end confdefs.h. */
38047
38048
38049#define strdup innocuous_strdup
38050#ifdef __STDC__
38051# include <limits.h>
38052#else
38053# include <assert.h>
38054#endif
38055#undef strdup
38056#ifdef __cplusplus
38057extern "C"
38058#endif
38059char strdup ();
38060#if defined __stub_strdup || defined __stub___strdup
38061choke me
38062#endif
38063
38064int main (void)
38065{
38066return strdup ();
38067 ;
38068 return 0;
38069}
38070
38071_ACEOF
38072if ac_fn_c_try_link "$LINENO"; then :
38073
38074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38075$as_echo "yes" >&6; }
38076 tst_links_strdup="yes"
38077
38078else
38079
38080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38081$as_echo "no" >&6; }
38082 tst_links_strdup="no"
38083
38084fi
38085rm -f core conftest.err conftest.$ac_objext \
38086 conftest$ac_exeext conftest.$ac_ext
38087 #
38088 if test "$tst_links_strdup" = "yes"; then
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38090$as_echo_n "checking if strdup is prototyped... " >&6; }
38091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38092/* end confdefs.h. */
38093
38094 $curl_includes_string
38095
38096_ACEOF
38097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38098 $EGREP "strdup" >/dev/null 2>&1; then :
38099
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38101$as_echo "yes" >&6; }
38102 tst_proto_strdup="yes"
38103
38104else
38105
38106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107$as_echo "no" >&6; }
38108 tst_proto_strdup="no"
38109
38110fi
38111rm -f conftest*
38112
38113 fi
38114 #
38115 if test "$tst_proto_strdup" = "yes"; then
38116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38117$as_echo_n "checking if strdup is compilable... " >&6; }
38118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38119/* end confdefs.h. */
38120
38121
38122 $curl_includes_string
38123
38124int main (void)
38125{
38126
38127 if(0 != strdup(0))
38128 return 1;
38129
38130 ;
38131 return 0;
38132}
38133
38134_ACEOF
38135if ac_fn_c_try_compile "$LINENO"; then :
38136
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38138$as_echo "yes" >&6; }
38139 tst_compi_strdup="yes"
38140
38141else
38142
38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38144$as_echo "no" >&6; }
38145 tst_compi_strdup="no"
38146
38147fi
38148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38149 fi
38150 #
38151 if test "$tst_compi_strdup" = "yes"; then
38152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38153$as_echo_n "checking if strdup usage allowed... " >&6; }
38154 if test "x$curl_disallow_strdup" != "xyes"; then
38155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38156$as_echo "yes" >&6; }
38157 tst_allow_strdup="yes"
38158 else
38159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38160$as_echo "no" >&6; }
38161 tst_allow_strdup="no"
38162 fi
38163 fi
38164 #
38165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38166$as_echo_n "checking if strdup might be used... " >&6; }
38167 if test "$tst_links_strdup" = "yes" &&
38168 test "$tst_proto_strdup" = "yes" &&
38169 test "$tst_compi_strdup" = "yes" &&
38170 test "$tst_allow_strdup" = "yes"; then
38171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38172$as_echo "yes" >&6; }
38173
38174cat >>confdefs.h <<_ACEOF
38175#define HAVE_STRDUP 1
38176_ACEOF
38177
38178 curl_cv_func_strdup="yes"
38179 else
38180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38181$as_echo "no" >&6; }
38182 curl_cv_func_strdup="no"
38183 fi
38184
38185
38186 #
38187 tst_links_strerror_r="unknown"
38188 tst_proto_strerror_r="unknown"
38189 tst_compi_strerror_r="unknown"
38190 tst_glibc_strerror_r="unknown"
38191 tst_posix_strerror_r="unknown"
38192 tst_allow_strerror_r="unknown"
38193 tst_works_glibc_strerror_r="unknown"
38194 tst_works_posix_strerror_r="unknown"
38195 tst_glibc_strerror_r_type_arg3="unknown"
38196 tst_posix_strerror_r_type_arg3="unknown"
38197 #
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38199$as_echo_n "checking if strerror_r can be linked... " >&6; }
38200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38201/* end confdefs.h. */
38202
38203
38204#define strerror_r innocuous_strerror_r
38205#ifdef __STDC__
38206# include <limits.h>
38207#else
38208# include <assert.h>
38209#endif
38210#undef strerror_r
38211#ifdef __cplusplus
38212extern "C"
38213#endif
38214char strerror_r ();
38215#if defined __stub_strerror_r || defined __stub___strerror_r
38216choke me
38217#endif
38218
38219int main (void)
38220{
38221return strerror_r ();
38222 ;
38223 return 0;
38224}
38225
38226_ACEOF
38227if ac_fn_c_try_link "$LINENO"; then :
38228
38229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38230$as_echo "yes" >&6; }
38231 tst_links_strerror_r="yes"
38232
38233else
38234
38235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38236$as_echo "no" >&6; }
38237 tst_links_strerror_r="no"
38238
38239fi
38240rm -f core conftest.err conftest.$ac_objext \
38241 conftest$ac_exeext conftest.$ac_ext
38242 #
38243 if test "$tst_links_strerror_r" = "yes"; then
38244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38245$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38247/* end confdefs.h. */
38248
38249 $curl_includes_string
38250
38251_ACEOF
38252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38253 $EGREP "strerror_r" >/dev/null 2>&1; then :
38254
38255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38256$as_echo "yes" >&6; }
38257 tst_proto_strerror_r="yes"
38258
38259else
38260
38261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38262$as_echo "no" >&6; }
38263 tst_proto_strerror_r="no"
38264
38265fi
38266rm -f conftest*
38267
38268 fi
38269 #
38270 if test "$tst_proto_strerror_r" = "yes"; then
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38272$as_echo_n "checking if strerror_r is compilable... " >&6; }
38273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38274/* end confdefs.h. */
38275
38276
38277 $curl_includes_string
38278
38279int main (void)
38280{
38281
38282 if(0 != strerror_r(0, 0, 0))
38283 return 1;
38284
38285 ;
38286 return 0;
38287}
38288
38289_ACEOF
38290if ac_fn_c_try_compile "$LINENO"; then :
38291
38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38293$as_echo "yes" >&6; }
38294 tst_compi_strerror_r="yes"
38295
38296else
38297
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38299$as_echo "no" >&6; }
38300 tst_compi_strerror_r="no"
38301
38302fi
38303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38304 fi
38305 #
38306 if test "$tst_compi_strerror_r" = "yes"; then
38307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38308$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38309 tst_glibc_strerror_r_type_arg3="unknown"
38310 for arg3 in 'size_t' 'int' 'unsigned int'; do
38311 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38313/* end confdefs.h. */
38314
38315
38316 $curl_includes_string
38317 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38318
38319int main (void)
38320{
38321
38322 if(0 != strerror_r(0, 0, 0))
38323 return 1;
38324
38325 ;
38326 return 0;
38327}
38328
38329_ACEOF
38330if ac_fn_c_try_compile "$LINENO"; then :
38331
38332 tst_glibc_strerror_r_type_arg3="$arg3"
38333
38334fi
38335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38336 fi
38337 done
38338 case "$tst_glibc_strerror_r_type_arg3" in
38339 unknown)
38340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38341$as_echo "no" >&6; }
38342 tst_glibc_strerror_r="no"
38343 ;;
38344 *)
38345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38346$as_echo "yes" >&6; }
38347 tst_glibc_strerror_r="yes"
38348 ;;
38349 esac
38350 fi
38351 #
38352 if test "x$cross_compiling" != "xyes" &&
38353 test "$tst_glibc_strerror_r" = "yes"; then
38354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38355$as_echo_n "checking if strerror_r seems to work... " >&6; }
38356 if test "$cross_compiling" = yes; then :
38357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38359as_fn_error $? "cannot run test program while cross compiling
38360See \`config.log' for more details" "$LINENO" 5; }
38361else
38362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38363/* end confdefs.h. */
38364
38365
38366 $curl_includes_stdlib
38367 $curl_includes_string
38368# include <errno.h>
38369
38370int main (void)
38371{
38372
38373 char buffer[1024];
38374 char *string = 0;
38375 buffer[0] = '\0';
38376 string = strerror_r(EACCES, buffer, sizeof(buffer));
38377 if(!string)
38378 exit(1); /* fail */
38379 if(!string[0])
38380 exit(1); /* fail */
38381 else
38382 exit(0);
38383
38384 ;
38385 return 0;
38386}
38387
38388_ACEOF
38389if ac_fn_c_try_run "$LINENO"; then :
38390
38391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38392$as_echo "yes" >&6; }
38393 tst_works_glibc_strerror_r="yes"
38394
38395else
38396
38397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38398$as_echo "no" >&6; }
38399 tst_works_glibc_strerror_r="no"
38400
38401fi
38402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38403 conftest.$ac_objext conftest.beam conftest.$ac_ext
38404fi
38405
38406 fi
38407 #
38408 if test "$tst_compi_strerror_r" = "yes" &&
38409 test "$tst_works_glibc_strerror_r" != "yes"; then
38410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38411$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38412 tst_posix_strerror_r_type_arg3="unknown"
38413 for arg3 in 'size_t' 'int' 'unsigned int'; do
38414 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38416/* end confdefs.h. */
38417
38418
38419 $curl_includes_string
38420 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38421
38422int main (void)
38423{
38424
38425 if(0 != strerror_r(0, 0, 0))
38426 return 1;
38427
38428 ;
38429 return 0;
38430}
38431
38432_ACEOF
38433if ac_fn_c_try_compile "$LINENO"; then :
38434
38435 tst_posix_strerror_r_type_arg3="$arg3"
38436
38437fi
38438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38439 fi
38440 done
38441 case "$tst_posix_strerror_r_type_arg3" in
38442 unknown)
38443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38444$as_echo "no" >&6; }
38445 tst_posix_strerror_r="no"
38446 ;;
38447 *)
38448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38449$as_echo "yes" >&6; }
38450 tst_posix_strerror_r="yes"
38451 ;;
38452 esac
38453 fi
38454 #
38455 if test "x$cross_compiling" != "xyes" &&
38456 test "$tst_posix_strerror_r" = "yes"; then
38457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38458$as_echo_n "checking if strerror_r seems to work... " >&6; }
38459 if test "$cross_compiling" = yes; then :
38460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38462as_fn_error $? "cannot run test program while cross compiling
38463See \`config.log' for more details" "$LINENO" 5; }
38464else
38465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38466/* end confdefs.h. */
38467
38468
38469 $curl_includes_stdlib
38470 $curl_includes_string
38471# include <errno.h>
38472
38473int main (void)
38474{
38475
38476 char buffer[1024];
38477 int error = 1;
38478 buffer[0] = '\0';
38479 error = strerror_r(EACCES, buffer, sizeof(buffer));
38480 if(error)
38481 exit(1); /* fail */
38482 if(buffer[0] == '\0')
38483 exit(1); /* fail */
38484 else
38485 exit(0);
38486
38487 ;
38488 return 0;
38489}
38490
38491_ACEOF
38492if ac_fn_c_try_run "$LINENO"; then :
38493
38494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38495$as_echo "yes" >&6; }
38496 tst_works_posix_strerror_r="yes"
38497
38498else
38499
38500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38501$as_echo "no" >&6; }
38502 tst_works_posix_strerror_r="no"
38503
38504fi
38505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38506 conftest.$ac_objext conftest.beam conftest.$ac_ext
38507fi
38508
38509 fi
38510 #
38511 if test "$tst_works_glibc_strerror_r" = "yes"; then
38512 tst_posix_strerror_r="no"
38513 fi
38514 if test "$tst_works_posix_strerror_r" = "yes"; then
38515 tst_glibc_strerror_r="no"
38516 fi
38517 if test "$tst_glibc_strerror_r" = "yes" &&
38518 test "$tst_works_glibc_strerror_r" != "no" &&
38519 test "$tst_posix_strerror_r" != "yes"; then
38520 tst_allow_strerror_r="check"
38521 fi
38522 if test "$tst_posix_strerror_r" = "yes" &&
38523 test "$tst_works_posix_strerror_r" != "no" &&
38524 test "$tst_glibc_strerror_r" != "yes"; then
38525 tst_allow_strerror_r="check"
38526 fi
38527 if test "$tst_allow_strerror_r" = "check"; then
38528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38529$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38530 if test "x$curl_disallow_strerror_r" != "xyes"; then
38531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38532$as_echo "yes" >&6; }
38533 tst_allow_strerror_r="yes"
38534 else
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38536$as_echo "no" >&6; }
38537 tst_allow_strerror_r="no"
38538 fi
38539 fi
38540 #
38541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38542$as_echo_n "checking if strerror_r might be used... " >&6; }
38543 if test "$tst_links_strerror_r" = "yes" &&
38544 test "$tst_proto_strerror_r" = "yes" &&
38545 test "$tst_compi_strerror_r" = "yes" &&
38546 test "$tst_allow_strerror_r" = "yes"; then
38547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38548$as_echo "yes" >&6; }
38549 if test "$tst_glibc_strerror_r" = "yes"; then
38550
38551cat >>confdefs.h <<_ACEOF
38552#define HAVE_STRERROR_R 1
38553_ACEOF
38554
38555
38556cat >>confdefs.h <<_ACEOF
38557#define HAVE_GLIBC_STRERROR_R 1
38558_ACEOF
38559
38560
38561cat >>confdefs.h <<_ACEOF
38562#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38563_ACEOF
38564
38565 fi
38566 if test "$tst_posix_strerror_r" = "yes"; then
38567
38568cat >>confdefs.h <<_ACEOF
38569#define HAVE_STRERROR_R 1
38570_ACEOF
38571
38572
38573cat >>confdefs.h <<_ACEOF
38574#define HAVE_POSIX_STRERROR_R 1
38575_ACEOF
38576
38577
38578cat >>confdefs.h <<_ACEOF
38579#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38580_ACEOF
38581
38582 fi
38583 curl_cv_func_strerror_r="yes"
38584 else
38585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38586$as_echo "no" >&6; }
38587 curl_cv_func_strerror_r="no"
38588 fi
38589 #
38590 if test "$tst_compi_strerror_r" = "yes" &&
38591 test "$tst_allow_strerror_r" = "unknown"; then
38592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38593$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38594 fi
38595 #
38596
38597
38598 #
38599 tst_links_stricmp="unknown"
38600 tst_proto_stricmp="unknown"
38601 tst_compi_stricmp="unknown"
38602 tst_allow_stricmp="unknown"
38603 #
38604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38605$as_echo_n "checking if stricmp can be linked... " >&6; }
38606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38607/* end confdefs.h. */
38608
38609
38610#define stricmp innocuous_stricmp
38611#ifdef __STDC__
38612# include <limits.h>
38613#else
38614# include <assert.h>
38615#endif
38616#undef stricmp
38617#ifdef __cplusplus
38618extern "C"
38619#endif
38620char stricmp ();
38621#if defined __stub_stricmp || defined __stub___stricmp
38622choke me
38623#endif
38624
38625int main (void)
38626{
38627return stricmp ();
38628 ;
38629 return 0;
38630}
38631
38632_ACEOF
38633if ac_fn_c_try_link "$LINENO"; then :
38634
38635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38636$as_echo "yes" >&6; }
38637 tst_links_stricmp="yes"
38638
38639else
38640
38641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38642$as_echo "no" >&6; }
38643 tst_links_stricmp="no"
38644
38645fi
38646rm -f core conftest.err conftest.$ac_objext \
38647 conftest$ac_exeext conftest.$ac_ext
38648 #
38649 if test "$tst_links_stricmp" = "yes"; then
38650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38651$as_echo_n "checking if stricmp is prototyped... " >&6; }
38652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38653/* end confdefs.h. */
38654
38655 $curl_includes_string
38656
38657_ACEOF
38658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38659 $EGREP "stricmp" >/dev/null 2>&1; then :
38660
38661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38662$as_echo "yes" >&6; }
38663 tst_proto_stricmp="yes"
38664
38665else
38666
38667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38668$as_echo "no" >&6; }
38669 tst_proto_stricmp="no"
38670
38671fi
38672rm -f conftest*
38673
38674 fi
38675 #
38676 if test "$tst_proto_stricmp" = "yes"; then
38677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38678$as_echo_n "checking if stricmp is compilable... " >&6; }
38679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38680/* end confdefs.h. */
38681
38682
38683 $curl_includes_string
38684
38685int main (void)
38686{
38687
38688 if(0 != stricmp(0, 0))
38689 return 1;
38690
38691 ;
38692 return 0;
38693}
38694
38695_ACEOF
38696if ac_fn_c_try_compile "$LINENO"; then :
38697
38698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38699$as_echo "yes" >&6; }
38700 tst_compi_stricmp="yes"
38701
38702else
38703
38704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38705$as_echo "no" >&6; }
38706 tst_compi_stricmp="no"
38707
38708fi
38709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38710 fi
38711 #
38712 if test "$tst_compi_stricmp" = "yes"; then
38713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38714$as_echo_n "checking if stricmp usage allowed... " >&6; }
38715 if test "x$curl_disallow_stricmp" != "xyes"; then
38716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38717$as_echo "yes" >&6; }
38718 tst_allow_stricmp="yes"
38719 else
38720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38721$as_echo "no" >&6; }
38722 tst_allow_stricmp="no"
38723 fi
38724 fi
38725 #
38726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38727$as_echo_n "checking if stricmp might be used... " >&6; }
38728 if test "$tst_links_stricmp" = "yes" &&
38729 test "$tst_proto_stricmp" = "yes" &&
38730 test "$tst_compi_stricmp" = "yes" &&
38731 test "$tst_allow_stricmp" = "yes"; then
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38733$as_echo "yes" >&6; }
38734
38735cat >>confdefs.h <<_ACEOF
38736#define HAVE_STRICMP 1
38737_ACEOF
38738
38739 curl_cv_func_stricmp="yes"
38740 else
38741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38742$as_echo "no" >&6; }
38743 curl_cv_func_stricmp="no"
38744 fi
38745
38746
38747 #
38748 tst_links_strncasecmp="unknown"
38749 tst_proto_strncasecmp="unknown"
38750 tst_compi_strncasecmp="unknown"
38751 tst_allow_strncasecmp="unknown"
38752 #
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38754$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38756/* end confdefs.h. */
38757
38758
38759#define strncasecmp innocuous_strncasecmp
38760#ifdef __STDC__
38761# include <limits.h>
38762#else
38763# include <assert.h>
38764#endif
38765#undef strncasecmp
38766#ifdef __cplusplus
38767extern "C"
38768#endif
38769char strncasecmp ();
38770#if defined __stub_strncasecmp || defined __stub___strncasecmp
38771choke me
38772#endif
38773
38774int main (void)
38775{
38776return strncasecmp ();
38777 ;
38778 return 0;
38779}
38780
38781_ACEOF
38782if ac_fn_c_try_link "$LINENO"; then :
38783
38784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38785$as_echo "yes" >&6; }
38786 tst_links_strncasecmp="yes"
38787
38788else
38789
38790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38791$as_echo "no" >&6; }
38792 tst_links_strncasecmp="no"
38793
38794fi
38795rm -f core conftest.err conftest.$ac_objext \
38796 conftest$ac_exeext conftest.$ac_ext
38797 #
38798 if test "$tst_links_strncasecmp" = "yes"; then
38799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38800$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38802/* end confdefs.h. */
38803
38804 $curl_includes_string
38805
38806_ACEOF
38807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38808 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38809
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38811$as_echo "yes" >&6; }
38812 tst_proto_strncasecmp="yes"
38813
38814else
38815
38816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38817$as_echo "no" >&6; }
38818 tst_proto_strncasecmp="no"
38819
38820fi
38821rm -f conftest*
38822
38823 fi
38824 #
38825 if test "$tst_proto_strncasecmp" = "yes"; then
38826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38827$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38829/* end confdefs.h. */
38830
38831
38832 $curl_includes_string
38833
38834int main (void)
38835{
38836
38837 if(0 != strncasecmp(0, 0, 0))
38838 return 1;
38839
38840 ;
38841 return 0;
38842}
38843
38844_ACEOF
38845if ac_fn_c_try_compile "$LINENO"; then :
38846
38847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38848$as_echo "yes" >&6; }
38849 tst_compi_strncasecmp="yes"
38850
38851else
38852
38853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38854$as_echo "no" >&6; }
38855 tst_compi_strncasecmp="no"
38856
38857fi
38858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38859 fi
38860 #
38861 if test "$tst_compi_strncasecmp" = "yes"; then
38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38863$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38864 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866$as_echo "yes" >&6; }
38867 tst_allow_strncasecmp="yes"
38868 else
38869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870$as_echo "no" >&6; }
38871 tst_allow_strncasecmp="no"
38872 fi
38873 fi
38874 #
38875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38876$as_echo_n "checking if strncasecmp might be used... " >&6; }
38877 if test "$tst_links_strncasecmp" = "yes" &&
38878 test "$tst_proto_strncasecmp" = "yes" &&
38879 test "$tst_compi_strncasecmp" = "yes" &&
38880 test "$tst_allow_strncasecmp" = "yes"; then
38881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38882$as_echo "yes" >&6; }
38883
38884cat >>confdefs.h <<_ACEOF
38885#define HAVE_STRNCASECMP 1
38886_ACEOF
38887
38888 curl_cv_func_strncasecmp="yes"
38889 else
38890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38891$as_echo "no" >&6; }
38892 curl_cv_func_strncasecmp="no"
38893 fi
38894
38895
38896 #
38897 tst_links_strncmpi="unknown"
38898 tst_proto_strncmpi="unknown"
38899 tst_compi_strncmpi="unknown"
38900 tst_allow_strncmpi="unknown"
38901 #
38902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38903$as_echo_n "checking if strncmpi can be linked... " >&6; }
38904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38905/* end confdefs.h. */
38906
38907
38908#define strncmpi innocuous_strncmpi
38909#ifdef __STDC__
38910# include <limits.h>
38911#else
38912# include <assert.h>
38913#endif
38914#undef strncmpi
38915#ifdef __cplusplus
38916extern "C"
38917#endif
38918char strncmpi ();
38919#if defined __stub_strncmpi || defined __stub___strncmpi
38920choke me
38921#endif
38922
38923int main (void)
38924{
38925return strncmpi ();
38926 ;
38927 return 0;
38928}
38929
38930_ACEOF
38931if ac_fn_c_try_link "$LINENO"; then :
38932
38933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38934$as_echo "yes" >&6; }
38935 tst_links_strncmpi="yes"
38936
38937else
38938
38939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38940$as_echo "no" >&6; }
38941 tst_links_strncmpi="no"
38942
38943fi
38944rm -f core conftest.err conftest.$ac_objext \
38945 conftest$ac_exeext conftest.$ac_ext
38946 #
38947 if test "$tst_links_strncmpi" = "yes"; then
38948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38949$as_echo_n "checking if strncmpi is prototyped... " >&6; }
38950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951/* end confdefs.h. */
38952
38953 $curl_includes_string
38954
38955_ACEOF
38956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38957 $EGREP "strncmpi" >/dev/null 2>&1; then :
38958
38959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38960$as_echo "yes" >&6; }
38961 tst_proto_strncmpi="yes"
38962
38963else
38964
38965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38966$as_echo "no" >&6; }
38967 tst_proto_strncmpi="no"
38968
38969fi
38970rm -f conftest*
38971
38972 fi
38973 #
38974 if test "$tst_proto_strncmpi" = "yes"; then
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38976$as_echo_n "checking if strncmpi is compilable... " >&6; }
38977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38978/* end confdefs.h. */
38979
38980
38981 $curl_includes_string
38982
38983int main (void)
38984{
38985
38986 if(0 != strncmpi(0, 0))
38987 return 1;
38988
38989 ;
38990 return 0;
38991}
38992
38993_ACEOF
38994if ac_fn_c_try_compile "$LINENO"; then :
38995
38996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38997$as_echo "yes" >&6; }
38998 tst_compi_strncmpi="yes"
38999
39000else
39001
39002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39003$as_echo "no" >&6; }
39004 tst_compi_strncmpi="no"
39005
39006fi
39007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39008 fi
39009 #
39010 if test "$tst_compi_strncmpi" = "yes"; then
39011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39012$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39013 if test "x$curl_disallow_strncmpi" != "xyes"; then
39014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39015$as_echo "yes" >&6; }
39016 tst_allow_strncmpi="yes"
39017 else
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39019$as_echo "no" >&6; }
39020 tst_allow_strncmpi="no"
39021 fi
39022 fi
39023 #
39024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39025$as_echo_n "checking if strncmpi might be used... " >&6; }
39026 if test "$tst_links_strncmpi" = "yes" &&
39027 test "$tst_proto_strncmpi" = "yes" &&
39028 test "$tst_compi_strncmpi" = "yes" &&
39029 test "$tst_allow_strncmpi" = "yes"; then
39030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39031$as_echo "yes" >&6; }
39032
39033cat >>confdefs.h <<_ACEOF
39034#define HAVE_STRNCMPI 1
39035_ACEOF
39036
39037 curl_cv_func_strncmpi="yes"
39038 else
39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39040$as_echo "no" >&6; }
39041 curl_cv_func_strncmpi="no"
39042 fi
39043
39044
39045 #
39046 tst_links_strnicmp="unknown"
39047 tst_proto_strnicmp="unknown"
39048 tst_compi_strnicmp="unknown"
39049 tst_allow_strnicmp="unknown"
39050 #
39051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39052$as_echo_n "checking if strnicmp can be linked... " >&6; }
39053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39054/* end confdefs.h. */
39055
39056
39057#define strnicmp innocuous_strnicmp
39058#ifdef __STDC__
39059# include <limits.h>
39060#else
39061# include <assert.h>
39062#endif
39063#undef strnicmp
39064#ifdef __cplusplus
39065extern "C"
39066#endif
39067char strnicmp ();
39068#if defined __stub_strnicmp || defined __stub___strnicmp
39069choke me
39070#endif
39071
39072int main (void)
39073{
39074return strnicmp ();
39075 ;
39076 return 0;
39077}
39078
39079_ACEOF
39080if ac_fn_c_try_link "$LINENO"; then :
39081
39082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39083$as_echo "yes" >&6; }
39084 tst_links_strnicmp="yes"
39085
39086else
39087
39088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39089$as_echo "no" >&6; }
39090 tst_links_strnicmp="no"
39091
39092fi
39093rm -f core conftest.err conftest.$ac_objext \
39094 conftest$ac_exeext conftest.$ac_ext
39095 #
39096 if test "$tst_links_strnicmp" = "yes"; then
39097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39098$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39100/* end confdefs.h. */
39101
39102 $curl_includes_string
39103
39104_ACEOF
39105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39106 $EGREP "strnicmp" >/dev/null 2>&1; then :
39107
39108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39109$as_echo "yes" >&6; }
39110 tst_proto_strnicmp="yes"
39111
39112else
39113
39114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39115$as_echo "no" >&6; }
39116 tst_proto_strnicmp="no"
39117
39118fi
39119rm -f conftest*
39120
39121 fi
39122 #
39123 if test "$tst_proto_strnicmp" = "yes"; then
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39125$as_echo_n "checking if strnicmp is compilable... " >&6; }
39126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39127/* end confdefs.h. */
39128
39129
39130 $curl_includes_string
39131
39132int main (void)
39133{
39134
39135 if(0 != strnicmp(0, 0))
39136 return 1;
39137
39138 ;
39139 return 0;
39140}
39141
39142_ACEOF
39143if ac_fn_c_try_compile "$LINENO"; then :
39144
39145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39146$as_echo "yes" >&6; }
39147 tst_compi_strnicmp="yes"
39148
39149else
39150
39151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39152$as_echo "no" >&6; }
39153 tst_compi_strnicmp="no"
39154
39155fi
39156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39157 fi
39158 #
39159 if test "$tst_compi_strnicmp" = "yes"; then
39160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39161$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39162 if test "x$curl_disallow_strnicmp" != "xyes"; then
39163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39164$as_echo "yes" >&6; }
39165 tst_allow_strnicmp="yes"
39166 else
39167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39168$as_echo "no" >&6; }
39169 tst_allow_strnicmp="no"
39170 fi
39171 fi
39172 #
39173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39174$as_echo_n "checking if strnicmp might be used... " >&6; }
39175 if test "$tst_links_strnicmp" = "yes" &&
39176 test "$tst_proto_strnicmp" = "yes" &&
39177 test "$tst_compi_strnicmp" = "yes" &&
39178 test "$tst_allow_strnicmp" = "yes"; then
39179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39180$as_echo "yes" >&6; }
39181
39182cat >>confdefs.h <<_ACEOF
39183#define HAVE_STRNICMP 1
39184_ACEOF
39185
39186 curl_cv_func_strnicmp="yes"
39187 else
39188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39189$as_echo "no" >&6; }
39190 curl_cv_func_strnicmp="no"
39191 fi
39192
39193
39194 #
39195 tst_links_strstr="unknown"
39196 tst_proto_strstr="unknown"
39197 tst_compi_strstr="unknown"
39198 tst_allow_strstr="unknown"
39199 #
39200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39201$as_echo_n "checking if strstr can be linked... " >&6; }
39202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39203/* end confdefs.h. */
39204
39205
39206#define strstr innocuous_strstr
39207#ifdef __STDC__
39208# include <limits.h>
39209#else
39210# include <assert.h>
39211#endif
39212#undef strstr
39213#ifdef __cplusplus
39214extern "C"
39215#endif
39216char strstr ();
39217#if defined __stub_strstr || defined __stub___strstr
39218choke me
39219#endif
39220
39221int main (void)
39222{
39223return strstr ();
39224 ;
39225 return 0;
39226}
39227
39228_ACEOF
39229if ac_fn_c_try_link "$LINENO"; then :
39230
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39232$as_echo "yes" >&6; }
39233 tst_links_strstr="yes"
39234
39235else
39236
39237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39238$as_echo "no" >&6; }
39239 tst_links_strstr="no"
39240
39241fi
39242rm -f core conftest.err conftest.$ac_objext \
39243 conftest$ac_exeext conftest.$ac_ext
39244 #
39245 if test "$tst_links_strstr" = "yes"; then
39246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39247$as_echo_n "checking if strstr is prototyped... " >&6; }
39248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39249/* end confdefs.h. */
39250
39251 $curl_includes_string
39252
39253_ACEOF
39254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39255 $EGREP "strstr" >/dev/null 2>&1; then :
39256
39257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39258$as_echo "yes" >&6; }
39259 tst_proto_strstr="yes"
39260
39261else
39262
39263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39264$as_echo "no" >&6; }
39265 tst_proto_strstr="no"
39266
39267fi
39268rm -f conftest*
39269
39270 fi
39271 #
39272 if test "$tst_proto_strstr" = "yes"; then
39273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39274$as_echo_n "checking if strstr is compilable... " >&6; }
39275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39276/* end confdefs.h. */
39277
39278
39279 $curl_includes_string
39280
39281int main (void)
39282{
39283
39284 if(0 != strstr(0, 0))
39285 return 1;
39286
39287 ;
39288 return 0;
39289}
39290
39291_ACEOF
39292if ac_fn_c_try_compile "$LINENO"; then :
39293
39294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39295$as_echo "yes" >&6; }
39296 tst_compi_strstr="yes"
39297
39298else
39299
39300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39301$as_echo "no" >&6; }
39302 tst_compi_strstr="no"
39303
39304fi
39305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39306 fi
39307 #
39308 if test "$tst_compi_strstr" = "yes"; then
39309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39310$as_echo_n "checking if strstr usage allowed... " >&6; }
39311 if test "x$curl_disallow_strstr" != "xyes"; then
39312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39313$as_echo "yes" >&6; }
39314 tst_allow_strstr="yes"
39315 else
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39317$as_echo "no" >&6; }
39318 tst_allow_strstr="no"
39319 fi
39320 fi
39321 #
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39323$as_echo_n "checking if strstr might be used... " >&6; }
39324 if test "$tst_links_strstr" = "yes" &&
39325 test "$tst_proto_strstr" = "yes" &&
39326 test "$tst_compi_strstr" = "yes" &&
39327 test "$tst_allow_strstr" = "yes"; then
39328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39329$as_echo "yes" >&6; }
39330
39331cat >>confdefs.h <<_ACEOF
39332#define HAVE_STRSTR 1
39333_ACEOF
39334
39335 curl_cv_func_strstr="yes"
39336 else
39337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39338$as_echo "no" >&6; }
39339 curl_cv_func_strstr="no"
39340 fi
39341
39342
39343 #
39344 tst_links_strtok_r="unknown"
39345 tst_proto_strtok_r="unknown"
39346 tst_compi_strtok_r="unknown"
39347 tst_allow_strtok_r="unknown"
39348 #
39349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39350$as_echo_n "checking if strtok_r can be linked... " >&6; }
39351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39352/* end confdefs.h. */
39353
39354
39355#define strtok_r innocuous_strtok_r
39356#ifdef __STDC__
39357# include <limits.h>
39358#else
39359# include <assert.h>
39360#endif
39361#undef strtok_r
39362#ifdef __cplusplus
39363extern "C"
39364#endif
39365char strtok_r ();
39366#if defined __stub_strtok_r || defined __stub___strtok_r
39367choke me
39368#endif
39369
39370int main (void)
39371{
39372return strtok_r ();
39373 ;
39374 return 0;
39375}
39376
39377_ACEOF
39378if ac_fn_c_try_link "$LINENO"; then :
39379
39380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39381$as_echo "yes" >&6; }
39382 tst_links_strtok_r="yes"
39383
39384else
39385
39386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39387$as_echo "no" >&6; }
39388 tst_links_strtok_r="no"
39389
39390fi
39391rm -f core conftest.err conftest.$ac_objext \
39392 conftest$ac_exeext conftest.$ac_ext
39393 #
39394 if test "$tst_links_strtok_r" = "yes"; then
39395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39396$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39398/* end confdefs.h. */
39399
39400 $curl_includes_string
39401
39402_ACEOF
39403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39404 $EGREP "strtok_r" >/dev/null 2>&1; then :
39405
39406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39407$as_echo "yes" >&6; }
39408 tst_proto_strtok_r="yes"
39409
39410else
39411
39412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39413$as_echo "no" >&6; }
39414 tst_proto_strtok_r="no"
39415
39416fi
39417rm -f conftest*
39418
39419 fi
39420 #
39421 if test "$tst_proto_strtok_r" = "yes"; then
39422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39423$as_echo_n "checking if strtok_r is compilable... " >&6; }
39424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39425/* end confdefs.h. */
39426
39427
39428 $curl_includes_string
39429
39430int main (void)
39431{
39432
39433 if(0 != strtok_r(0, 0, 0))
39434 return 1;
39435
39436 ;
39437 return 0;
39438}
39439
39440_ACEOF
39441if ac_fn_c_try_compile "$LINENO"; then :
39442
39443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39444$as_echo "yes" >&6; }
39445 tst_compi_strtok_r="yes"
39446
39447else
39448
39449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39450$as_echo "no" >&6; }
39451 tst_compi_strtok_r="no"
39452
39453fi
39454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39455 fi
39456 #
39457 if test "$tst_compi_strtok_r" = "yes"; then
39458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39459$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39460 if test "x$curl_disallow_strtok_r" != "xyes"; then
39461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39462$as_echo "yes" >&6; }
39463 tst_allow_strtok_r="yes"
39464 else
39465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39466$as_echo "no" >&6; }
39467 tst_allow_strtok_r="no"
39468 fi
39469 fi
39470 #
39471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39472$as_echo_n "checking if strtok_r might be used... " >&6; }
39473 if test "$tst_links_strtok_r" = "yes" &&
39474 test "$tst_proto_strtok_r" = "yes" &&
39475 test "$tst_compi_strtok_r" = "yes" &&
39476 test "$tst_allow_strtok_r" = "yes"; then
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39478$as_echo "yes" >&6; }
39479
39480cat >>confdefs.h <<_ACEOF
39481#define HAVE_STRTOK_R 1
39482_ACEOF
39483
39484 curl_cv_func_strtok_r="yes"
39485 else
39486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39487$as_echo "no" >&6; }
39488 curl_cv_func_strtok_r="no"
39489 fi
39490
39491
39492 #
39493 tst_links_strtoll="unknown"
39494 tst_proto_strtoll="unknown"
39495 tst_compi_strtoll="unknown"
39496 tst_allow_strtoll="unknown"
39497 #
39498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39499$as_echo_n "checking if strtoll can be linked... " >&6; }
39500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39501/* end confdefs.h. */
39502
39503
39504#define strtoll innocuous_strtoll
39505#ifdef __STDC__
39506# include <limits.h>
39507#else
39508# include <assert.h>
39509#endif
39510#undef strtoll
39511#ifdef __cplusplus
39512extern "C"
39513#endif
39514char strtoll ();
39515#if defined __stub_strtoll || defined __stub___strtoll
39516choke me
39517#endif
39518
39519int main (void)
39520{
39521return strtoll ();
39522 ;
39523 return 0;
39524}
39525
39526_ACEOF
39527if ac_fn_c_try_link "$LINENO"; then :
39528
39529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39530$as_echo "yes" >&6; }
39531 tst_links_strtoll="yes"
39532
39533else
39534
39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39536$as_echo "no" >&6; }
39537 tst_links_strtoll="no"
39538
39539fi
39540rm -f core conftest.err conftest.$ac_objext \
39541 conftest$ac_exeext conftest.$ac_ext
39542 #
39543 if test "$tst_links_strtoll" = "yes"; then
39544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39545$as_echo_n "checking if strtoll is prototyped... " >&6; }
39546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39547/* end confdefs.h. */
39548
39549 $curl_includes_stdlib
39550
39551_ACEOF
39552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39553 $EGREP "strtoll" >/dev/null 2>&1; then :
39554
39555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39556$as_echo "yes" >&6; }
39557 tst_proto_strtoll="yes"
39558
39559else
39560
39561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39562$as_echo "no" >&6; }
39563 tst_proto_strtoll="no"
39564
39565fi
39566rm -f conftest*
39567
39568 fi
39569 #
39570 if test "$tst_proto_strtoll" = "yes"; then
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39572$as_echo_n "checking if strtoll is compilable... " >&6; }
39573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39574/* end confdefs.h. */
39575
39576
39577 $curl_includes_stdlib
39578
39579int main (void)
39580{
39581
39582 if(0 != strtoll(0, 0, 0))
39583 return 1;
39584
39585 ;
39586 return 0;
39587}
39588
39589_ACEOF
39590if ac_fn_c_try_compile "$LINENO"; then :
39591
39592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39593$as_echo "yes" >&6; }
39594 tst_compi_strtoll="yes"
39595
39596else
39597
39598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39599$as_echo "no" >&6; }
39600 tst_compi_strtoll="no"
39601
39602fi
39603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39604 fi
39605 #
39606 if test "$tst_compi_strtoll" = "yes"; then
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39608$as_echo_n "checking if strtoll usage allowed... " >&6; }
39609 if test "x$curl_disallow_strtoll" != "xyes"; then
39610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39611$as_echo "yes" >&6; }
39612 tst_allow_strtoll="yes"
39613 else
39614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39615$as_echo "no" >&6; }
39616 tst_allow_strtoll="no"
39617 fi
39618 fi
39619 #
39620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39621$as_echo_n "checking if strtoll might be used... " >&6; }
39622 if test "$tst_links_strtoll" = "yes" &&
39623 test "$tst_proto_strtoll" = "yes" &&
39624 test "$tst_compi_strtoll" = "yes" &&
39625 test "$tst_allow_strtoll" = "yes"; then
39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39627$as_echo "yes" >&6; }
39628
39629cat >>confdefs.h <<_ACEOF
39630#define HAVE_STRTOLL 1
39631_ACEOF
39632
39633 curl_cv_func_strtoll="yes"
39634 else
39635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39636$as_echo "no" >&6; }
39637 curl_cv_func_strtoll="no"
39638 fi
39639
39640
39641curl_includes_sys_uio="\
39642/* includes start */
39643#ifdef HAVE_SYS_TYPES_H
39644# include <sys/types.h>
39645#endif
39646#ifdef HAVE_SYS_UIO_H
39647# include <sys/uio.h>
39648#endif
39649/* includes end */"
39650 for ac_header in sys/types.h sys/uio.h
39651do :
39652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39653ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39654"
39655if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39656 cat >>confdefs.h <<_ACEOF
39657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39658_ACEOF
39659
39660fi
39661
39662done
39663
39664
39665
39666 #
39667 tst_links_writev="unknown"
39668 tst_proto_writev="unknown"
39669 tst_compi_writev="unknown"
39670 tst_allow_writev="unknown"
39671 #
39672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39673$as_echo_n "checking if writev can be linked... " >&6; }
39674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39675/* end confdefs.h. */
39676
39677
39678#define writev innocuous_writev
39679#ifdef __STDC__
39680# include <limits.h>
39681#else
39682# include <assert.h>
39683#endif
39684#undef writev
39685#ifdef __cplusplus
39686extern "C"
39687#endif
39688char writev ();
39689#if defined __stub_writev || defined __stub___writev
39690choke me
39691#endif
39692
39693int main (void)
39694{
39695return writev ();
39696 ;
39697 return 0;
39698}
39699
39700_ACEOF
39701if ac_fn_c_try_link "$LINENO"; then :
39702
39703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39704$as_echo "yes" >&6; }
39705 tst_links_writev="yes"
39706
39707else
39708
39709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39710$as_echo "no" >&6; }
39711 tst_links_writev="no"
39712
39713fi
39714rm -f core conftest.err conftest.$ac_objext \
39715 conftest$ac_exeext conftest.$ac_ext
39716 #
39717 if test "$tst_links_writev" = "yes"; then
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39719$as_echo_n "checking if writev is prototyped... " >&6; }
39720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39721/* end confdefs.h. */
39722
39723 $curl_includes_sys_uio
39724
39725_ACEOF
39726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39727 $EGREP "writev" >/dev/null 2>&1; then :
39728
39729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39730$as_echo "yes" >&6; }
39731 tst_proto_writev="yes"
39732
39733else
39734
39735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39736$as_echo "no" >&6; }
39737 tst_proto_writev="no"
39738
39739fi
39740rm -f conftest*
39741
39742 fi
39743 #
39744 if test "$tst_proto_writev" = "yes"; then
39745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39746$as_echo_n "checking if writev is compilable... " >&6; }
39747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39748/* end confdefs.h. */
39749
39750
39751 $curl_includes_sys_uio
39752
39753int main (void)
39754{
39755
39756 if(0 != writev(0, 0, 0))
39757 return 1;
39758
39759 ;
39760 return 0;
39761}
39762
39763_ACEOF
39764if ac_fn_c_try_compile "$LINENO"; then :
39765
39766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39767$as_echo "yes" >&6; }
39768 tst_compi_writev="yes"
39769
39770else
39771
39772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39773$as_echo "no" >&6; }
39774 tst_compi_writev="no"
39775
39776fi
39777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39778 fi
39779 #
39780 if test "$tst_compi_writev" = "yes"; then
39781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39782$as_echo_n "checking if writev usage allowed... " >&6; }
39783 if test "x$curl_disallow_writev" != "xyes"; then
39784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39785$as_echo "yes" >&6; }
39786 tst_allow_writev="yes"
39787 else
39788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39789$as_echo "no" >&6; }
39790 tst_allow_writev="no"
39791 fi
39792 fi
39793 #
39794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39795$as_echo_n "checking if writev might be used... " >&6; }
39796 if test "$tst_links_writev" = "yes" &&
39797 test "$tst_proto_writev" = "yes" &&
39798 test "$tst_compi_writev" = "yes" &&
39799 test "$tst_allow_writev" = "yes"; then
39800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39801$as_echo "yes" >&6; }
39802
39803cat >>confdefs.h <<_ACEOF
39804#define HAVE_WRITEV 1
39805_ACEOF
39806
39807 curl_cv_func_writev="yes"
39808 else
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39810$as_echo "no" >&6; }
39811 curl_cv_func_writev="no"
39812 fi
39813
39814
39815case $host in
39816 *msdosdjgpp)
39817 ac_cv_func_pipe=no
39818 skipcheck_pipe=yes
39819 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39820$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39821 ;;
39822esac
39823
39824for ac_func in geteuid \
39825 getpass_r \
39826 getppid \
39827 getpwuid \
39828 getpwuid_r \
39829 getrlimit \
39830 gettimeofday \
39831 if_nametoindex \
39832 pipe \
39833 setlocale \
39834 setmode \
39835 setrlimit \
39836 utime \
39837 utimes
39838
39839do :
39840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39841ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39842if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39843 cat >>confdefs.h <<_ACEOF
39844#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39845_ACEOF
39846
39847
39848else
39849
39850 func="$ac_func"
39851 eval skipcheck=\$skipcheck_$func
39852 if test "x$skipcheck" != "xyes"; then
39853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39854$as_echo_n "checking deeper for $func... " >&6; }
39855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39856/* end confdefs.h. */
39857
39858
39859
39860int main (void)
39861{
39862
39863 $func ();
39864
39865 ;
39866 return 0;
39867}
39868
39869_ACEOF
39870if ac_fn_c_try_link "$LINENO"; then :
39871
39872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39873$as_echo "yes" >&6; }
39874 eval "ac_cv_func_$func=yes"
39875
39876cat >>confdefs.h <<_ACEOF
39877#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39878_ACEOF
39879
39880
39881else
39882
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39884$as_echo "but still no" >&6; }
39885
39886fi
39887rm -f core conftest.err conftest.$ac_objext \
39888 conftest$ac_exeext conftest.$ac_ext
39889 fi
39890
39891fi
39892done
39893
39894
39895
39896 for ac_header in sys/types.h sys/socket.h netdb.h
39897do :
39898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39899ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39901 cat >>confdefs.h <<_ACEOF
39902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39903_ACEOF
39904
39905fi
39906
39907done
39908
39909 #
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39911$as_echo_n "checking for getnameinfo... " >&6; }
39912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39913/* end confdefs.h. */
39914
39915
39916#define getnameinfo innocuous_getnameinfo
39917#ifdef __STDC__
39918# include <limits.h>
39919#else
39920# include <assert.h>
39921#endif
39922#undef getnameinfo
39923#ifdef __cplusplus
39924extern "C"
39925#endif
39926char getnameinfo ();
39927#if defined __stub_getnameinfo || defined __stub___getnameinfo
39928choke me
39929#endif
39930
39931int main (void)
39932{
39933return getnameinfo ();
39934 ;
39935 return 0;
39936}
39937
39938_ACEOF
39939if ac_fn_c_try_link "$LINENO"; then :
39940
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39942$as_echo "yes" >&6; }
39943 curl_cv_getnameinfo="yes"
39944
39945else
39946
39947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39948$as_echo "no" >&6; }
39949 curl_cv_getnameinfo="no"
39950
39951fi
39952rm -f core conftest.err conftest.$ac_objext \
39953 conftest$ac_exeext conftest.$ac_ext
39954 #
39955 if test "$curl_cv_getnameinfo" != "yes"; then
39956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39957$as_echo_n "checking deeper for getnameinfo... " >&6; }
39958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39959/* end confdefs.h. */
39960
39961
39962
39963int main (void)
39964{
39965
39966 getnameinfo();
39967
39968 ;
39969 return 0;
39970}
39971
39972_ACEOF
39973if ac_fn_c_try_link "$LINENO"; then :
39974
39975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39976$as_echo "yes" >&6; }
39977 curl_cv_getnameinfo="yes"
39978
39979else
39980
39981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39982$as_echo "but still no" >&6; }
39983 curl_cv_getnameinfo="no"
39984
39985fi
39986rm -f core conftest.err conftest.$ac_objext \
39987 conftest$ac_exeext conftest.$ac_ext
39988 fi
39989 #
39990 if test "$curl_cv_getnameinfo" != "yes"; then
39991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39992$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39994/* end confdefs.h. */
39995
39996
39997#undef inline
39998#ifdef HAVE_WINDOWS_H
39999#ifndef WIN32_LEAN_AND_MEAN
40000#define WIN32_LEAN_AND_MEAN
40001#endif
40002#include <windows.h>
40003#ifdef HAVE_WINSOCK2_H
40004#include <winsock2.h>
40005#ifdef HAVE_WS2TCPIP_H
40006#include <ws2tcpip.h>
40007#endif
40008#endif
40009#else
40010#ifdef HAVE_SYS_TYPES_H
40011#include <sys/types.h>
40012#endif
40013#ifdef HAVE_SYS_SOCKET_H
40014#include <sys/socket.h>
40015#endif
40016#ifdef HAVE_NETDB_H
40017#include <netdb.h>
40018#endif
40019#endif
40020
40021int main (void)
40022{
40023
40024 getnameinfo(0, 0, 0, 0, 0, 0, 0);
40025
40026 ;
40027 return 0;
40028}
40029
40030_ACEOF
40031if ac_fn_c_try_link "$LINENO"; then :
40032
40033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40034$as_echo "yes" >&6; }
40035 curl_cv_getnameinfo="yes"
40036
40037else
40038
40039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40040$as_echo "but still no" >&6; }
40041 curl_cv_getnameinfo="no"
40042
40043fi
40044rm -f core conftest.err conftest.$ac_objext \
40045 conftest$ac_exeext conftest.$ac_ext
40046 fi
40047 #
40048 if test "$curl_cv_getnameinfo" = "yes"; then
40049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40050$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40051if ${curl_cv_func_getnameinfo_args+:} false; then :
40052 $as_echo_n "(cached) " >&6
40053else
40054
40055 curl_cv_func_getnameinfo_args="unknown"
40056 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40057 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40058 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40059 for gni_arg7 in 'int' 'unsigned int'; do
40060 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40062/* end confdefs.h. */
40063
40064
40065#undef inline
40066#ifdef HAVE_WINDOWS_H
40067#ifndef WIN32_LEAN_AND_MEAN
40068#define WIN32_LEAN_AND_MEAN
40069#endif
40070#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40071#undef _WIN32_WINNT
40072#define _WIN32_WINNT 0x0501
40073#endif
40074#include <windows.h>
40075#ifdef HAVE_WINSOCK2_H
40076#include <winsock2.h>
40077#ifdef HAVE_WS2TCPIP_H
40078#include <ws2tcpip.h>
40079#endif
40080#endif
40081#define GNICALLCONV WSAAPI
40082#else
40083#ifdef HAVE_SYS_TYPES_H
40084#include <sys/types.h>
40085#endif
40086#ifdef HAVE_SYS_SOCKET_H
40087#include <sys/socket.h>
40088#endif
40089#ifdef HAVE_NETDB_H
40090#include <netdb.h>
40091#endif
40092#define GNICALLCONV
40093#endif
40094 extern int GNICALLCONV
40095#ifdef __ANDROID__
40096__attribute__((overloadable))
40097#endif
40098 getnameinfo($gni_arg1, $gni_arg2,
40099 char *, $gni_arg46,
40100 char *, $gni_arg46,
40101 $gni_arg7);
40102
40103int main (void)
40104{
40105
40106 $gni_arg2 salen=0;
40107 $gni_arg46 hostlen=0;
40108 $gni_arg46 servlen=0;
40109 $gni_arg7 flags=0;
40110 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40111
40112 ;
40113 return 0;
40114}
40115
40116_ACEOF
40117if ac_fn_c_try_compile "$LINENO"; then :
40118
40119 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40120
40121fi
40122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40123 fi
40124 done
40125 done
40126 done
40127 done
40128
40129fi
40130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40131$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40132 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40134$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40136$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40137 else
40138 gni_prev_IFS=$IFS; IFS=','
40139 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40140 IFS=$gni_prev_IFS
40141 shift
40142 #
40143 gni_qual_type_arg1=$1
40144 #
40145
40146cat >>confdefs.h <<_ACEOF
40147#define GETNAMEINFO_TYPE_ARG2 $2
40148_ACEOF
40149
40150
40151cat >>confdefs.h <<_ACEOF
40152#define GETNAMEINFO_TYPE_ARG46 $3
40153_ACEOF
40154
40155
40156cat >>confdefs.h <<_ACEOF
40157#define GETNAMEINFO_TYPE_ARG7 $4
40158_ACEOF
40159
40160 #
40161 prev_sh_opts=$-
40162 #
40163 case $prev_sh_opts in
40164 *f*)
40165 ;;
40166 *)
40167 set -f
40168 ;;
40169 esac
40170 #
40171 case "$gni_qual_type_arg1" in
40172 const*)
40173 gni_qual_arg1=const
40174 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40175 ;;
40176 *)
40177 gni_qual_arg1=
40178 gni_type_arg1=$gni_qual_type_arg1
40179 ;;
40180 esac
40181 #
40182
40183cat >>confdefs.h <<_ACEOF
40184#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40185_ACEOF
40186
40187
40188cat >>confdefs.h <<_ACEOF
40189#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40190_ACEOF
40191
40192 #
40193 case $prev_sh_opts in
40194 *f*)
40195 ;;
40196 *)
40197 set +f
40198 ;;
40199 esac
40200 #
40201
40202cat >>confdefs.h <<_ACEOF
40203#define HAVE_GETNAMEINFO 1
40204_ACEOF
40205
40206 curl_cv_func_getnameinfo="yes"
40207 fi
40208 fi
40209
40210
40211if test "$ipv6" = "yes"; then
40212 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40213
40214$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40215
40216 IPV6_ENABLED=1
40217
40218 fi
40219
40220 for ac_header in stdio.h sys/types.h sys/socket.h \
40221 netdb.h netinet/in.h arpa/inet.h
40222do :
40223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40224ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40225if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40226 cat >>confdefs.h <<_ACEOF
40227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40228_ACEOF
40229
40230fi
40231
40232done
40233
40234 #
40235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40236$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40237if ${curl_cv_working_ni_withscopeid+:} false; then :
40238 $as_echo_n "(cached) " >&6
40239else
40240
40241 if test "$cross_compiling" = yes; then :
40242
40243 # Program is not run when cross-compiling. So we assume
40244 # NI_WITHSCOPEID will work if we are able to compile it.
40245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40246/* end confdefs.h. */
40247
40248
40249#include <sys/types.h>
40250#include <sys/socket.h>
40251#include <netdb.h>
40252
40253int main (void)
40254{
40255
40256 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40257
40258 ;
40259 return 0;
40260}
40261
40262_ACEOF
40263if ac_fn_c_try_compile "$LINENO"; then :
40264
40265 curl_cv_working_ni_withscopeid="yes"
40266
40267else
40268
40269 curl_cv_working_ni_withscopeid="no"
40270
40271fi
40272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40273
40274else
40275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40276/* end confdefs.h. */
40277
40278
40279#ifdef HAVE_STDLIB_H
40280#include <stdlib.h>
40281#endif
40282#ifdef HAVE_STDIO_H
40283#include <stdio.h>
40284#endif
40285#ifdef HAVE_SYS_TYPES_H
40286#include <sys/types.h>
40287#endif
40288#ifdef HAVE_SYS_SOCKET_H
40289#include <sys/socket.h>
40290#endif
40291#ifdef HAVE_NETDB_H
40292#include <netdb.h>
40293#endif
40294#ifdef HAVE_NETINET_IN_H
40295#include <netinet/in.h>
40296#endif
40297#ifdef HAVE_ARPA_INET_H
40298#include <arpa/inet.h>
40299#endif
40300
40301int main (void)
40302{
40303
40304#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40305#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40306 struct sockaddr_storage sa;
40307#else
40308 unsigned char sa[256];
40309#endif
40310 char hostbuf[NI_MAXHOST];
40311 int rc;
40312 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40313 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40314 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40315 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40316 if(fd < 0) {
40317 perror("socket()");
40318 return 1; /* Error creating socket */
40319 }
40320 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40321 if(rc) {
40322 perror("getsockname()");
40323 return 2; /* Error retrieving socket name */
40324 }
40325 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40326 if(rc) {
40327 printf("rc = %s\n", gai_strerror(rc));
40328 return 3; /* Error translating socket address */
40329 }
40330 return 0; /* Ok, NI_WITHSCOPEID works */
40331#else
40332 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40333#endif
40334
40335 ;
40336 return 0;
40337} # AC-LANG-PROGRAM
40338
40339_ACEOF
40340if ac_fn_c_try_run "$LINENO"; then :
40341
40342 # Exit code == 0. Program worked.
40343 curl_cv_working_ni_withscopeid="yes"
40344
40345else
40346
40347 # Exit code != 0. Program failed.
40348 curl_cv_working_ni_withscopeid="no"
40349
40350fi
40351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40352 conftest.$ac_objext conftest.beam conftest.$ac_ext
40353fi
40354 # AC-RUN-IFELSE
40355
40356fi
40357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40358$as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40359 case "$curl_cv_working_ni_withscopeid" in
40360 yes)
40361
40362$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40363
40364 ;;
40365 esac
40366
40367fi
40368
40369
40370 #
40371 tst_method="unknown"
40372
40373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40374$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40375 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40376 tst_method="fcntl O_NONBLOCK"
40377 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40378 tst_method="ioctl FIONBIO"
40379 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40380 tst_method="ioctlsocket FIONBIO"
40381 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40382 tst_method="IoctlSocket FIONBIO"
40383 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40384 tst_method="setsockopt SO_NONBLOCK"
40385 fi
40386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40387$as_echo "$tst_method" >&6; }
40388 if test "$tst_method" = "unknown"; then
40389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40390$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40391 fi
40392
40393
40394
40395# Extract the first word of "perl", so it can be a program name with args.
40396set dummy perl; ac_word=$2
40397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40398$as_echo_n "checking for $ac_word... " >&6; }
40399if ${ac_cv_path_PERL+:} false; then :
40400 $as_echo_n "(cached) " >&6
40401else
40402 case $PERL in
40403 [\\/]* | ?:[\\/]*)
40404 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40405 ;;
40406 *)
40407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40408as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40409for as_dir in $as_dummy
40410do
40411 IFS=$as_save_IFS
40412 test -z "$as_dir" && as_dir=.
40413 for ac_exec_ext in '' $ac_executable_extensions; do
40414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40415 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40417 break 2
40418 fi
40419done
40420 done
40421IFS=$as_save_IFS
40422
40423 ;;
40424esac
40425fi
40426PERL=$ac_cv_path_PERL
40427if test -n "$PERL"; then
40428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40429$as_echo "$PERL" >&6; }
40430else
40431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40432$as_echo "no" >&6; }
40433fi
40434
40435
40436
40437
40438for ac_prog in gnroff nroff
40439do
40440 # Extract the first word of "$ac_prog", so it can be a program name with args.
40441set dummy $ac_prog; ac_word=$2
40442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40443$as_echo_n "checking for $ac_word... " >&6; }
40444if ${ac_cv_path_NROFF+:} false; then :
40445 $as_echo_n "(cached) " >&6
40446else
40447 case $NROFF in
40448 [\\/]* | ?:[\\/]*)
40449 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40450 ;;
40451 *)
40452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40453as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40454for as_dir in $as_dummy
40455do
40456 IFS=$as_save_IFS
40457 test -z "$as_dir" && as_dir=.
40458 for ac_exec_ext in '' $ac_executable_extensions; do
40459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40460 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40462 break 2
40463 fi
40464done
40465 done
40466IFS=$as_save_IFS
40467
40468 ;;
40469esac
40470fi
40471NROFF=$ac_cv_path_NROFF
40472if test -n "$NROFF"; then
40473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40474$as_echo "$NROFF" >&6; }
40475else
40476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40477$as_echo "no" >&6; }
40478fi
40479
40480
40481 test -n "$NROFF" && break
40482done
40483
40484
40485
40486if test -n "$NROFF"; then
40487
40488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40489$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40490 MANOPT="-man"
40491 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40492 if test -z "$mancheck"; then
40493 MANOPT="-mandoc"
40494 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40495 if test -z "$mancheck"; then
40496 MANOPT=""
40497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40498$as_echo "failed" >&6; }
40499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40500$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40501 else
40502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40503$as_echo "$MANOPT" >&6; }
40504 fi
40505 else
40506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40507$as_echo "$MANOPT" >&6; }
40508 fi
40509
40510fi
40511
40512if test -z "$MANOPT"
40513then
40514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40515$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40516 USE_MANUAL="no";
40517fi
40518
40519
40520if test "$USE_MANUAL" = "1"; then
40521
40522$as_echo "#define USE_MANUAL 1" >>confdefs.h
40523
40524 curl_manual_msg="enabled"
40525fi
40526
40527 if test x"$USE_MANUAL" = x1; then
40528 USE_MANUAL_TRUE=
40529 USE_MANUAL_FALSE='#'
40530else
40531 USE_MANUAL_TRUE='#'
40532 USE_MANUAL_FALSE=
40533fi
40534
40535
40536
40537
40538
40539 #
40540 if test "$want_ares" = "yes"; then
40541 clean_CPPFLAGS="$CPPFLAGS"
40542 clean_LDFLAGS="$LDFLAGS"
40543 clean_LIBS="$LIBS"
40544 embedded_ares="unknown"
40545 configure_runpath=`pwd`
40546 embedded_ares_builddir="$configure_runpath/ares"
40547 if test -n "$want_ares_path"; then
40548 ares_CPPFLAGS="-I$want_ares_path/include"
40549 ares_LDFLAGS="-L$want_ares_path/lib"
40550 ares_LIBS="-lcares"
40551 else
40552 if test -d "$srcdir/ares"; then
40553 embedded_ares="yes"
40554 subdirs="$subdirs ares"
40555
40556 ares_CPPFLAGS=""
40557 ares_LDFLAGS="-L$embedded_ares_builddir"
40558 ares_LIBS="-lcares"
40559 else
40560 ares_CPPFLAGS=""
40561 ares_LDFLAGS=""
40562 ares_LIBS="-lcares"
40563 fi
40564 fi
40565 #
40566 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40567 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40568 LIBS="$ares_LIBS $clean_LIBS"
40569 #
40570 if test "$embedded_ares" != "yes"; then
40571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40572$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40574/* end confdefs.h. */
40575
40576
40577#include <ares.h>
40578 /* set of dummy functions in case c-ares was built with debug */
40579 void curl_dofree() { }
40580 void curl_sclose() { }
40581 void curl_domalloc() { }
40582 void curl_docalloc() { }
40583 void curl_socket() { }
40584
40585int main (void)
40586{
40587
40588 ares_channel channel;
40589 ares_cancel(channel); /* added in 1.2.0 */
40590 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40591 ares_dup(&channel, channel); /* added in 1.6.0 */
40592
40593 ;
40594 return 0;
40595}
40596
40597_ACEOF
40598if ac_fn_c_try_link "$LINENO"; then :
40599
40600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40601$as_echo "yes" >&6; }
40602
40603else
40604
40605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40606$as_echo "no" >&6; }
40607 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40608 CPPFLAGS="$clean_CPPFLAGS"
40609 LDFLAGS="$clean_LDFLAGS"
40610 LIBS="$clean_LIBS"
40611 # prevent usage
40612 want_ares="no"
40613
40614fi
40615rm -f core conftest.err conftest.$ac_objext \
40616 conftest$ac_exeext conftest.$ac_ext
40617 fi
40618 if test "$want_ares" = "yes"; then
40619
40620$as_echo "#define USE_ARES 1" >>confdefs.h
40621
40622 USE_ARES=1
40623
40624 curl_res_msg="c-ares"
40625 fi
40626 fi
40627
40628 if test x$embedded_ares = xyes; then
40629 USE_EMBEDDED_ARES_TRUE=
40630 USE_EMBEDDED_ARES_FALSE='#'
40631else
40632 USE_EMBEDDED_ARES_TRUE='#'
40633 USE_EMBEDDED_ARES_FALSE=
40634fi
40635
40636
40637if test "x$curl_cv_native_windows" != "xyes" &&
40638 test "x$enable_shared" = "xyes"; then
40639 build_libhostname=yes
40640else
40641 build_libhostname=no
40642fi
40643 if test x$build_libhostname = xyes; then
40644 BUILD_LIBHOSTNAME_TRUE=
40645 BUILD_LIBHOSTNAME_FALSE='#'
40646else
40647 BUILD_LIBHOSTNAME_TRUE='#'
40648 BUILD_LIBHOSTNAME_FALSE=
40649fi
40650
40651
40652if test "x$want_ares" != xyes; then
40653
40654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40655$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40656 OPT_THRES="default"
40657 # Check whether --enable-threaded_resolver was given.
40658if test "${enable_threaded_resolver+set}" = set; then :
40659 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40660fi
40661
40662 case "$OPT_THRES" in
40663 *)
40664 want_thres="yes"
40665 ;;
40666 no)
40667 want_thres="no"
40668 ;;
40669 esac
40670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40671$as_echo "$want_thres" >&6; }
40672
40673fi
40674
40675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40676$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40677# Check whether --enable-pthreads was given.
40678if test "${enable_pthreads+set}" = set; then :
40679 enableval=$enable_pthreads; case "$enableval" in
40680 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40681$as_echo "no" >&6; }
40682 want_pthreads=no
40683 ;;
40684 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40685$as_echo "yes" >&6; }
40686 want_pthreads=yes
40687 ;;
40688 esac
40689else
40690
40691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40692$as_echo "auto" >&6; }
40693 want_pthreads=auto
40694
40695
40696fi
40697
40698
40699if test "$want_pthreads" != "no"; then
40700 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40701 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40702 fi
40703 if test "$dontwant_rt" != "no"; then
40704 if test "$want_pthreads" = "yes"; then
40705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40706$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40707 fi
40708 want_pthreads=no
40709 fi
40710fi
40711
40712if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40713 want_pthreads=no
40714fi
40715
40716if test "$want_pthreads" != "no"; then
40717 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40718if test "x$ac_cv_header_pthread_h" = xyes; then :
40719
40720$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40721
40722 save_CFLAGS="$CFLAGS"
40723
40724 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40725if test "x$ac_cv_func_pthread_create" = xyes; then :
40726 USE_THREADS_POSIX=1
40727fi
40728
40729
40730 if test "$USE_THREADS_POSIX" != "1"
40731 then
40732 CFLAGS="$CFLAGS -pthread"
40733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40734$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40735if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40736 $as_echo_n "(cached) " >&6
40737else
40738 ac_check_lib_save_LIBS=$LIBS
40739LIBS="-lpthread $LIBS"
40740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40741/* end confdefs.h. */
40742
40743
40744#ifdef __cplusplus
40745extern "C"
40746#endif
40747char pthread_create ();
40748int main (void)
40749{
40750return pthread_create ();
40751 ;
40752 return 0;
40753}
40754_ACEOF
40755if ac_fn_c_try_link "$LINENO"; then :
40756 ac_cv_lib_pthread_pthread_create=yes
40757else
40758 ac_cv_lib_pthread_pthread_create=no
40759fi
40760rm -f core conftest.err conftest.$ac_objext \
40761 conftest$ac_exeext conftest.$ac_ext
40762LIBS=$ac_check_lib_save_LIBS
40763fi
40764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40765$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40766if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40767 USE_THREADS_POSIX=1
40768else
40769 CFLAGS="$save_CFLAGS"
40770fi
40771
40772 fi
40773
40774 if test "x$USE_THREADS_POSIX" = "x1"
40775 then
40776
40777$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40778
40779 curl_res_msg="POSIX threaded"
40780 fi
40781
40782fi
40783
40784
40785fi
40786
40787if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40788 if test "$want_pthreads" = "yes"; then
40789 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40790 fi
40791 if test "$curl_cv_native_windows" = "yes"; then
40792 USE_THREADS_WIN32=1
40793
40794$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40795
40796 curl_res_msg="Win32 threaded"
40797 else
40798 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40799 fi
40800fi
40801
40802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40803$as_echo_n "checking whether to enable verbose strings... " >&6; }
40804# Check whether --enable-verbose was given.
40805if test "${enable_verbose+set}" = set; then :
40806 enableval=$enable_verbose; case "$enableval" in
40807 no)
40808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40809$as_echo "no" >&6; }
40810
40811$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40812
40813 curl_verbose_msg="no"
40814 ;;
40815 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40816$as_echo "yes" >&6; }
40817 ;;
40818 esac
40819else
40820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40821$as_echo "yes" >&6; }
40822
40823fi
40824
40825
40826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40827$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40828# Check whether --enable-sspi was given.
40829if test "${enable_sspi+set}" = set; then :
40830 enableval=$enable_sspi; case "$enableval" in
40831 yes)
40832 if test "$curl_cv_native_windows" = "yes"; then
40833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40834$as_echo "yes" >&6; }
40835
40836$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40837
40838 USE_WINDOWS_SSPI=1
40839
40840 curl_sspi_msg="enabled"
40841 else
40842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40843$as_echo "no" >&6; }
40844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40845$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40846 fi
40847 ;;
40848 *)
40849 if test "x$WINSSL_ENABLED" = "x1"; then
40850 # --with-winssl implies --enable-sspi
40851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40852$as_echo "yes" >&6; }
40853 else
40854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40855$as_echo "no" >&6; }
40856 fi
40857 ;;
40858 esac
40859else
40860 if test "x$WINSSL_ENABLED" = "x1"; then
40861 # --with-winssl implies --enable-sspi
40862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40863$as_echo "yes" >&6; }
40864 else
40865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40866$as_echo "no" >&6; }
40867 fi
40868
40869fi
40870
40871
40872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40873$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40874# Check whether --enable-crypto-auth was given.
40875if test "${enable_crypto_auth+set}" = set; then :
40876 enableval=$enable_crypto_auth; case "$enableval" in
40877 no)
40878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40879$as_echo "no" >&6; }
40880
40881$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40882
40883 CURL_DISABLE_CRYPTO_AUTH=1
40884 ;;
40885 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40886$as_echo "yes" >&6; }
40887 ;;
40888 esac
40889else
40890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40891$as_echo "yes" >&6; }
40892
40893fi
40894
40895
40896
40897 OPT_NTLM_WB="default"
40898 # Check whether --enable-ntlm-wb was given.
40899if test "${enable_ntlm_wb+set}" = set; then :
40900 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40901fi
40902
40903 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40904 case "$OPT_NTLM_WB" in
40905 no)
40906 want_ntlm_wb="no"
40907 ;;
40908 default)
40909 want_ntlm_wb="yes"
40910 ;;
40911 *)
40912 want_ntlm_wb="yes"
40913 if test -n "$enableval" && test "$enableval" != "yes"; then
40914 want_ntlm_wb_file="$enableval"
40915 fi
40916 ;;
40917 esac
40918
40919
40920
40921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40922$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40923 if test "$curl_cv_native_windows" = "yes" ||
40924 test "x$SSL_ENABLED" = "x"; then
40925 want_ntlm_wb_file=""
40926 want_ntlm_wb="no"
40927 fi
40928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40929$as_echo "$want_ntlm_wb" >&6; }
40930 if test "$want_ntlm_wb" = "yes"; then
40931
40932$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40933
40934
40935cat >>confdefs.h <<_ACEOF
40936#define NTLM_WB_FILE "$want_ntlm_wb_file"
40937_ACEOF
40938
40939 NTLM_WB_ENABLED=1
40940 fi
40941
40942
40943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40944$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40945# Check whether --enable-tls-srp was given.
40946if test "${enable_tls_srp+set}" = set; then :
40947 enableval=$enable_tls_srp; case "$enableval" in
40948 no)
40949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40950$as_echo "no" >&6; }
40951
40952$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40953
40954 want_tls_srp=no
40955 ;;
40956 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40957$as_echo "yes" >&6; }
40958 want_tls_srp=yes
40959 ;;
40960 esac
40961else
40962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40963$as_echo "yes" >&6; }
40964 want_tls_srp=yes
40965
40966fi
40967
40968
40969if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40970
40971$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40972
40973 USE_TLS_SRP=1
40974 curl_tls_srp_msg="enabled"
40975fi
40976
40977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40978$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40979# Check whether --enable-unix-sockets was given.
40980if test "${enable_unix_sockets+set}" = set; then :
40981 enableval=$enable_unix_sockets; case "$enableval" in
40982 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40983$as_echo "no" >&6; }
40984 want_unix_sockets=no
40985 ;;
40986 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40987$as_echo "yes" >&6; }
40988 want_unix_sockets=yes
40989 ;;
40990 esac
40991else
40992
40993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40994$as_echo "auto" >&6; }
40995 want_unix_sockets=auto
40996
40997
40998fi
40999
41000if test "x$want_unix_sockets" != "xno"; then
41001 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41002 #include <sys/un.h>
41003
41004"
41005if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41006
41007
41008$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41009
41010 USE_UNIX_SOCKETS=1
41011
41012 curl_unix_sockets_msg="enabled"
41013
41014else
41015
41016 if test "x$want_unix_sockets" = "xyes"; then
41017 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41018 fi
41019
41020fi
41021
41022fi
41023
41024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41025$as_echo_n "checking whether to enable support for cookies... " >&6; }
41026# Check whether --enable-cookies was given.
41027if test "${enable_cookies+set}" = set; then :
41028 enableval=$enable_cookies; case "$enableval" in
41029 no)
41030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41031$as_echo "no" >&6; }
41032
41033$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41034
41035 ;;
41036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037$as_echo "yes" >&6; }
41038 ;;
41039 esac
41040else
41041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41042$as_echo "yes" >&6; }
41043
41044fi
41045
41046
41047
41048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41049$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41050 CFLAG_CURL_SYMBOL_HIDING=""
41051 doing_symbol_hiding="no"
41052 if test x"$curl_cv_native_windows" != "xyes" &&
41053 test "$want_symbol_hiding" = "yes" &&
41054 test "$supports_symbol_hiding" = "yes"; then
41055 doing_symbol_hiding="yes"
41056 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41057
41058cat >>confdefs.h <<_ACEOF
41059#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41060_ACEOF
41061
41062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41063$as_echo "yes" >&6; }
41064 else
41065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41066$as_echo "no" >&6; }
41067 fi
41068 if test x$doing_symbol_hiding = xyes; then
41069 DOING_CURL_SYMBOL_HIDING_TRUE=
41070 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41071else
41072 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41073 DOING_CURL_SYMBOL_HIDING_FALSE=
41074fi
41075
41076
41077
41078
41079
41080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
41081$as_echo_n "checking whether to enforce SONAME bump... " >&6; }
41082# Check whether --enable-soname-bump was given.
41083if test "${enable_soname_bump+set}" = set; then :
41084 enableval=$enable_soname_bump; case "$enableval" in
41085 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41086$as_echo "yes" >&6; }
41087 soname_bump=yes
41088 ;;
41089 *)
41090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41091$as_echo "no" >&6; }
41092 ;;
41093 esac
41094else
41095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
41096$as_echo "$soname_bump" >&6; }
41097
41098fi
41099
41100 if test x$soname_bump = xyes; then
41101 SONAME_BUMP_TRUE=
41102 SONAME_BUMP_FALSE='#'
41103else
41104 SONAME_BUMP_TRUE='#'
41105 SONAME_BUMP_FALSE=
41106fi
41107
41108
41109LIBCURL_LIBS=$LIBS
41110
41111
41112
41113
41114
41115BLANK_AT_MAKETIME=
41116
41117
41118 if test x$cross_compiling = xyes; then
41119 CROSSCOMPILING_TRUE=
41120 CROSSCOMPILING_FALSE='#'
41121else
41122 CROSSCOMPILING_TRUE='#'
41123 CROSSCOMPILING_FALSE=
41124fi
41125
41126
41127ENABLE_SHARED="$enable_shared"
41128
41129
41130ENABLE_STATIC="$enable_static"
41131
41132
41133
41134
41135if test "x$OPENSSL_ENABLED" = "x1"; then
41136 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41137elif test -n "$SSL_ENABLED"; then
41138 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41139fi
41140if test "x$IPV6_ENABLED" = "x1"; then
41141 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41142fi
41143if test "x$USE_UNIX_SOCKETS" = "x1"; then
41144 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41145fi
41146if test "x$HAVE_LIBZ" = "x1"; then
41147 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41148fi
41149if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41150 -o "x$USE_THREADS_WIN32" = "x1"; then
41151 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41152fi
41153if test "x$IDN_ENABLED" = "x1"; then
41154 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41155fi
41156if test "x$USE_WINDOWS_SSPI" = "x1"; then
41157 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41158fi
41159
41160if test "x$HAVE_GSSAPI" = "x1"; then
41161 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41162fi
41163
41164if test "x$curl_psl_msg" = "xyes"; then
41165 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41166fi
41167
41168if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41169 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41170 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41171fi
41172
41173if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41174 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41175 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41176fi
41177
41178if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41179 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41180 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41181 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41182 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41183
41184 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41185 "x$NTLM_WB_ENABLED" = "x1"; then
41186 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41187 fi
41188 fi
41189fi
41190
41191if test "x$USE_TLS_SRP" = "x1"; then
41192 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41193fi
41194
41195if test "x$USE_NGHTTP2" = "x1"; then
41196 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41197fi
41198
41199if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41200 -o "x$NSS_ENABLED" = "x1"; then
41201 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41202fi
41203
41204
41205
41206if test "x$CURL_DISABLE_HTTP" != "x1"; then
41207 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41208 if test "x$SSL_ENABLED" = "x1"; then
41209 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41210 fi
41211fi
41212if test "x$CURL_DISABLE_FTP" != "x1"; then
41213 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41214 if test "x$SSL_ENABLED" = "x1"; then
41215 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41216 fi
41217fi
41218if test "x$CURL_DISABLE_FILE" != "x1"; then
41219 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41220fi
41221if test "x$CURL_DISABLE_TELNET" != "x1"; then
41222 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41223fi
41224if test "x$CURL_DISABLE_LDAP" != "x1"; then
41225 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41226 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41227 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41228 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41229 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41230 fi
41231 fi
41232fi
41233if test "x$CURL_DISABLE_DICT" != "x1"; then
41234 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41235fi
41236if test "x$CURL_DISABLE_TFTP" != "x1"; then
41237 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41238fi
41239if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41240 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41241fi
41242if test "x$CURL_DISABLE_POP3" != "x1"; then
41243 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41244 if test "x$SSL_ENABLED" = "x1"; then
41245 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41246 fi
41247fi
41248if test "x$CURL_DISABLE_IMAP" != "x1"; then
41249 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41250 if test "x$SSL_ENABLED" = "x1"; then
41251 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41252 fi
41253fi
41254if test "x$CURL_DISABLE_SMB" != "x1" \
41255 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41256 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41257 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41258 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41259 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41260 if test "x$SSL_ENABLED" = "x1"; then
41261 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41262 fi
41263fi
41264if test "x$CURL_DISABLE_SMTP" != "x1"; then
41265 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41266 if test "x$SSL_ENABLED" = "x1"; then
41267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41268 fi
41269fi
41270if test "x$USE_LIBSSH2" = "x1"; then
41271 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41272 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41273fi
41274if test "x$CURL_DISABLE_RTSP" != "x1"; then
41275 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41276fi
41277if test "x$USE_LIBRTMP" = "x1"; then
41278 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41279fi
41280
41281SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41282
41283
41284
41285
41286squeeze CFLAGS
41287squeeze CPPFLAGS
41288squeeze DEFS
41289squeeze LDFLAGS
41290squeeze LIBS
41291
41292squeeze LIBCURL_LIBS
41293squeeze CURL_NETWORK_LIBS
41294squeeze CURL_NETWORK_AND_TIME_LIBS
41295
41296squeeze SUPPORT_FEATURES
41297squeeze SUPPORT_PROTOCOLS
41298
41299
41300
41301 xc_bad_var_libs=no
41302 for xc_word in $LIBS; do
41303 case "$xc_word" in
41304 -l* | --library=*)
41305 :
41306 ;;
41307 *)
41308 xc_bad_var_libs=yes
41309 ;;
41310 esac
41311 done
41312 if test $xc_bad_var_libs = yes; then
41313 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41314$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41315 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41316$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41317 fi
41318
41319
41320 xc_bad_var_ldflags=no
41321 for xc_word in $LDFLAGS; do
41322 case "$xc_word" in
41323 -D*)
41324 xc_bad_var_ldflags=yes
41325 ;;
41326 -U*)
41327 xc_bad_var_ldflags=yes
41328 ;;
41329 -I*)
41330 xc_bad_var_ldflags=yes
41331 ;;
41332 -l* | --library=*)
41333 xc_bad_var_ldflags=yes
41334 ;;
41335 esac
41336 done
41337 if test $xc_bad_var_ldflags = yes; then
41338 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41339$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41340 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41341 for xc_word in $LDFLAGS; do
41342 case "$xc_word" in
41343 -D*)
41344 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41345$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41346 ;;
41347 -U*)
41348 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41349$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41350 ;;
41351 -I*)
41352 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41353$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41354 ;;
41355 -l* | --library=*)
41356 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41357$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41358 ;;
41359 esac
41360 done
41361 fi
41362
41363
41364 xc_bad_var_cppflags=no
41365 for xc_word in $CPPFLAGS; do
41366 case "$xc_word" in
41367 -rpath*)
41368 xc_bad_var_cppflags=yes
41369 ;;
41370 -L* | --library-path=*)
41371 xc_bad_var_cppflags=yes
41372 ;;
41373 -l* | --library=*)
41374 xc_bad_var_cppflags=yes
41375 ;;
41376 esac
41377 done
41378 if test $xc_bad_var_cppflags = yes; then
41379 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41380$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41381 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41382 for xc_word in $CPPFLAGS; do
41383 case "$xc_word" in
41384 -rpath*)
41385 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41386$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41387 ;;
41388 -L* | --library-path=*)
41389 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41390$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41391 ;;
41392 -l* | --library=*)
41393 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41394$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41395 ;;
41396 esac
41397 done
41398 fi
41399
41400
41401 xc_bad_var_cflags=no
41402 for xc_word in $CFLAGS; do
41403 case "$xc_word" in
41404 -D*)
41405 xc_bad_var_cflags=yes
41406 ;;
41407 -U*)
41408 xc_bad_var_cflags=yes
41409 ;;
41410 -I*)
41411 xc_bad_var_cflags=yes
41412 ;;
41413 -rpath*)
41414 xc_bad_var_cflags=yes
41415 ;;
41416 -L* | --library-path=*)
41417 xc_bad_var_cflags=yes
41418 ;;
41419 -l* | --library=*)
41420 xc_bad_var_cflags=yes
41421 ;;
41422 esac
41423 done
41424 if test $xc_bad_var_cflags = yes; then
41425 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41426$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41427 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41428 for xc_word in $CFLAGS; do
41429 case "$xc_word" in
41430 -D*)
41431 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41432$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41433 ;;
41434 -U*)
41435 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41436$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41437 ;;
41438 -I*)
41439 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41440$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41441 ;;
41442 -rpath*)
41443 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41444$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41445 ;;
41446 -L* | --library-path=*)
41447 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41448$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41449 ;;
41450 -l* | --library=*)
41451 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41452$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41453 ;;
41454 esac
41455 done
41456 fi
41457
41458 if test $xc_bad_var_libs = yes ||
41459 test $xc_bad_var_cflags = yes ||
41460 test $xc_bad_var_ldflags = yes ||
41461 test $xc_bad_var_cppflags = yes; then
41462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41463$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41464 fi
41465
41466
41467if test "x$want_curldebug_assumed" = "xyes" &&
41468 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41469 ac_configure_args="$ac_configure_args --enable-curldebug"
41470fi
41471
41472ac_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 tests/fuzz/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"
41473
41474cat >confcache <<\_ACEOF
41475# This file is a shell script that caches the results of configure
41476# tests run on this system so they can be shared between configure
41477# scripts and configure runs, see configure's option --config-cache.
41478# It is not useful on other systems. If it contains results you don't
41479# want to keep, you may remove or edit it.
41480#
41481# config.status only pays attention to the cache file if you give it
41482# the --recheck option to rerun configure.
41483#
41484# `ac_cv_env_foo' variables (set or unset) will be overridden when
41485# loading this file, other *unset* `ac_cv_foo' will be assigned the
41486# following values.
41487
41488_ACEOF
41489
41490# The following way of writing the cache mishandles newlines in values,
41491# but we know of no workaround that is simple, portable, and efficient.
41492# So, we kill variables containing newlines.
41493# Ultrix sh set writes to stderr and can't be redirected directly,
41494# and sets the high bit in the cache file unless we assign to the vars.
41495(
41496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41497 eval ac_val=\$$ac_var
41498 case $ac_val in #(
41499 *${as_nl}*)
41500 case $ac_var in #(
41501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41502$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41503 esac
41504 case $ac_var in #(
41505 _ | IFS | as_nl) ;; #(
41506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41507 *) { eval $ac_var=; unset $ac_var;} ;;
41508 esac ;;
41509 esac
41510 done
41511
41512 (set) 2>&1 |
41513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41514 *${as_nl}ac_space=\ *)
41515 # `set' does not quote correctly, so add quotes: double-quote
41516 # substitution turns \\\\ into \\, and sed turns \\ into \.
41517 sed -n \
41518 "s/'/'\\\\''/g;
41519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41520 ;; #(
41521 *)
41522 # `set' quotes correctly as required by POSIX, so do not add quotes.
41523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41524 ;;
41525 esac |
41526 sort
41527) |
41528 sed '
41529 /^ac_cv_env_/b end
41530 t clear
41531 :clear
41532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41533 t end
41534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41535 :end' >>confcache
41536if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41537 if test -w "$cache_file"; then
41538 if test "x$cache_file" != "x/dev/null"; then
41539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41540$as_echo "$as_me: updating cache $cache_file" >&6;}
41541 if test ! -f "$cache_file" || test -h "$cache_file"; then
41542 cat confcache >"$cache_file"
41543 else
41544 case $cache_file in #(
41545 */* | ?:*)
41546 mv -f confcache "$cache_file"$$ &&
41547 mv -f "$cache_file"$$ "$cache_file" ;; #(
41548 *)
41549 mv -f confcache "$cache_file" ;;
41550 esac
41551 fi
41552 fi
41553 else
41554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41555$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41556 fi
41557fi
41558rm -f confcache
41559
41560test "x$prefix" = xNONE && prefix=$ac_default_prefix
41561# Let make expand exec_prefix.
41562test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41563
41564DEFS=-DHAVE_CONFIG_H
41565
41566ac_libobjs=
41567ac_ltlibobjs=
41568U=
41569for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41570 # 1. Remove the extension, and $U if already installed.
41571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41572 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41574 # will be set to the directory where LIBOBJS objects are built.
41575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41577done
41578LIBOBJS=$ac_libobjs
41579
41580LTLIBOBJS=$ac_ltlibobjs
41581
41582
41583if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41584 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41585Usually this means the macro was only invoked conditionally." "$LINENO" 5
41586fi
41587if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41588 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41589Usually this means the macro was only invoked conditionally." "$LINENO" 5
41590fi
41591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41592$as_echo_n "checking that generated files are newer than configure... " >&6; }
41593 if test -n "$am_sleep_pid"; then
41594 # Hide warnings about reused PIDs.
41595 wait $am_sleep_pid 2>/dev/null
41596 fi
41597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41598$as_echo "done" >&6; }
41599if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41600 as_fn_error $? "conditional \"AMDEP\" was never defined.
41601Usually this means the macro was only invoked conditionally." "$LINENO" 5
41602fi
41603if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41604 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41605Usually this means the macro was only invoked conditionally." "$LINENO" 5
41606fi
41607 if test -n "$EXEEXT"; then
41608 am__EXEEXT_TRUE=
41609 am__EXEEXT_FALSE='#'
41610else
41611 am__EXEEXT_TRUE='#'
41612 am__EXEEXT_FALSE=
41613fi
41614
41615if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41616 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41617Usually this means the macro was only invoked conditionally." "$LINENO" 5
41618fi
41619if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41620 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41621Usually this means the macro was only invoked conditionally." "$LINENO" 5
41622fi
41623if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41624 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41625Usually this means the macro was only invoked conditionally." "$LINENO" 5
41626fi
41627if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41628 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41629Usually this means the macro was only invoked conditionally." "$LINENO" 5
41630fi
41631if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41632 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41633Usually this means the macro was only invoked conditionally." "$LINENO" 5
41634fi
41635if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41636 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41637Usually this means the macro was only invoked conditionally." "$LINENO" 5
41638fi
41639if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41640 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41641Usually this means the macro was only invoked conditionally." "$LINENO" 5
41642fi
41643if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41644 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41645Usually this means the macro was only invoked conditionally." "$LINENO" 5
41646fi
41647if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41648 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41649Usually this means the macro was only invoked conditionally." "$LINENO" 5
41650fi
41651if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41652 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41653Usually this means the macro was only invoked conditionally." "$LINENO" 5
41654fi
41655if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41656 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41657Usually this means the macro was only invoked conditionally." "$LINENO" 5
41658fi
41659if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41660 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41661Usually this means the macro was only invoked conditionally." "$LINENO" 5
41662fi
41663if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41664 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41665Usually this means the macro was only invoked conditionally." "$LINENO" 5
41666fi
41667if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41668 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41669Usually this means the macro was only invoked conditionally." "$LINENO" 5
41670fi
41671if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41672 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41673Usually this means the macro was only invoked conditionally." "$LINENO" 5
41674fi
41675if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41676 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41677Usually this means the macro was only invoked conditionally." "$LINENO" 5
41678fi
41679if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41680 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41681Usually this means the macro was only invoked conditionally." "$LINENO" 5
41682fi
41683
41684: "${CONFIG_STATUS=./config.status}"
41685ac_write_fail=0
41686ac_clean_files_save=$ac_clean_files
41687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41688{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41689$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41690as_write_fail=0
41691cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41692#! $SHELL
41693# Generated by $as_me.
41694# Run this file to recreate the current configuration.
41695# Compiler output produced by configure, useful for debugging
41696# configure, is in config.log if it exists.
41697
41698debug=false
41699ac_cs_recheck=false
41700ac_cs_silent=false
41701
41702SHELL=\${CONFIG_SHELL-$SHELL}
41703export SHELL
41704_ASEOF
41705cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41706## -------------------- ##
41707## M4sh Initialization. ##
41708## -------------------- ##
41709
41710# Be more Bourne compatible
41711DUALCASE=1; export DUALCASE # for MKS sh
41712if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41713 emulate sh
41714 NULLCMD=:
41715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41716 # is contrary to our usage. Disable this feature.
41717 alias -g '${1+"$@"}'='"$@"'
41718 setopt NO_GLOB_SUBST
41719else
41720 case `(set -o) 2>/dev/null` in #(
41721 *posix*) :
41722 set -o posix ;; #(
41723 *) :
41724 ;;
41725esac
41726fi
41727
41728
41729as_nl='
41730'
41731export as_nl
41732# Printing a long string crashes Solaris 7 /usr/bin/printf.
41733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41736# Prefer a ksh shell builtin over an external printf program on Solaris,
41737# but without wasting forks for bash or zsh.
41738if test -z "$BASH_VERSION$ZSH_VERSION" \
41739 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41740 as_echo='print -r --'
41741 as_echo_n='print -rn --'
41742elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41743 as_echo='printf %s\n'
41744 as_echo_n='printf %s'
41745else
41746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41748 as_echo_n='/usr/ucb/echo -n'
41749 else
41750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41751 as_echo_n_body='eval
41752 arg=$1;
41753 case $arg in #(
41754 *"$as_nl"*)
41755 expr "X$arg" : "X\\(.*\\)$as_nl";
41756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41757 esac;
41758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41759 '
41760 export as_echo_n_body
41761 as_echo_n='sh -c $as_echo_n_body as_echo'
41762 fi
41763 export as_echo_body
41764 as_echo='sh -c $as_echo_body as_echo'
41765fi
41766
41767
41768
41769# IFS
41770# We need space, tab and new line, in precisely that order. Quoting is
41771# there to prevent editors from complaining about space-tab.
41772# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41773# splitting by setting IFS to empty value.)
41774IFS=" "" $as_nl"
41775
41776# Find who we are. Look in the path if we contain no directory separator.
41777as_myself=
41778case $0 in #((
41779 *[\\/]* ) as_myself=$0 ;;
41780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41781for as_dir in $PATH
41782do
41783 IFS=$as_save_IFS
41784 test -z "$as_dir" && as_dir=.
41785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41786 done
41787IFS=$as_save_IFS
41788
41789 ;;
41790esac
41791# We did not find ourselves, most probably we were run as `sh COMMAND'
41792# in which case we are not to be found in the path.
41793if test "x$as_myself" = x; then
41794 as_myself=$0
41795fi
41796if test ! -f "$as_myself"; then
41797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41798 exit 1
41799fi
41800
41801# Unset variables that we do not need and which cause bugs (e.g. in
41802# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41803# suppresses any "Segmentation fault" message there. '((' could
41804# trigger a bug in pdksh 5.2.14.
41805for as_var in BASH_ENV ENV MAIL MAILPATH
41806do eval test x\${$as_var+set} = xset \
41807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41808done
41809PS1='$ '
41810PS2='> '
41811PS4='+ '
41812
41813# NLS nuisances.
41814LC_ALL=C
41815export LC_ALL
41816LANGUAGE=C
41817export LANGUAGE
41818
41819# CDPATH.
41820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41821
41822
41823# as_fn_error STATUS ERROR [LINENO LOG_FD]
41824# ----------------------------------------
41825# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41826# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41827# script with STATUS, using 1 if that was 0.
41828as_fn_error ()
41829{
41830 as_status=$1; test $as_status -eq 0 && as_status=1
41831 if test "$4"; then
41832 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41834 fi
41835 $as_echo "$as_me: error: $2" >&2
41836 as_fn_exit $as_status
41837} # as_fn_error
41838
41839
41840# as_fn_set_status STATUS
41841# -----------------------
41842# Set $? to STATUS, without forking.
41843as_fn_set_status ()
41844{
41845 return $1
41846} # as_fn_set_status
41847
41848# as_fn_exit STATUS
41849# -----------------
41850# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41851as_fn_exit ()
41852{
41853 set +e
41854 as_fn_set_status $1
41855 exit $1
41856} # as_fn_exit
41857
41858# as_fn_unset VAR
41859# ---------------
41860# Portably unset VAR.
41861as_fn_unset ()
41862{
41863 { eval $1=; unset $1;}
41864}
41865as_unset=as_fn_unset
41866# as_fn_append VAR VALUE
41867# ----------------------
41868# Append the text in VALUE to the end of the definition contained in VAR. Take
41869# advantage of any shell optimizations that allow amortized linear growth over
41870# repeated appends, instead of the typical quadratic growth present in naive
41871# implementations.
41872if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41873 eval 'as_fn_append ()
41874 {
41875 eval $1+=\$2
41876 }'
41877else
41878 as_fn_append ()
41879 {
41880 eval $1=\$$1\$2
41881 }
41882fi # as_fn_append
41883
41884# as_fn_arith ARG...
41885# ------------------
41886# Perform arithmetic evaluation on the ARGs, and store the result in the
41887# global $as_val. Take advantage of shells that can avoid forks. The arguments
41888# must be portable across $(()) and expr.
41889if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41890 eval 'as_fn_arith ()
41891 {
41892 as_val=$(( $* ))
41893 }'
41894else
41895 as_fn_arith ()
41896 {
41897 as_val=`expr "$@" || test $? -eq 1`
41898 }
41899fi # as_fn_arith
41900
41901
41902if expr a : '\(a\)' >/dev/null 2>&1 &&
41903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41904 as_expr=expr
41905else
41906 as_expr=false
41907fi
41908
41909if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41910 as_basename=basename
41911else
41912 as_basename=false
41913fi
41914
41915if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41916 as_dirname=dirname
41917else
41918 as_dirname=false
41919fi
41920
41921as_me=`$as_basename -- "$0" ||
41922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41923 X"$0" : 'X\(//\)$' \| \
41924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41925$as_echo X/"$0" |
41926 sed '/^.*\/\([^/][^/]*\)\/*$/{
41927 s//\1/
41928 q
41929 }
41930 /^X\/\(\/\/\)$/{
41931 s//\1/
41932 q
41933 }
41934 /^X\/\(\/\).*/{
41935 s//\1/
41936 q
41937 }
41938 s/.*/./; q'`
41939
41940# Avoid depending upon Character Ranges.
41941as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41943as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41944as_cr_digits='0123456789'
41945as_cr_alnum=$as_cr_Letters$as_cr_digits
41946
41947ECHO_C= ECHO_N= ECHO_T=
41948case `echo -n x` in #(((((
41949-n*)
41950 case `echo 'xy\c'` in
41951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41952 xy) ECHO_C='\c';;
41953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41954 ECHO_T=' ';;
41955 esac;;
41956*)
41957 ECHO_N='-n';;
41958esac
41959
41960rm -f conf$$ conf$$.exe conf$$.file
41961if test -d conf$$.dir; then
41962 rm -f conf$$.dir/conf$$.file
41963else
41964 rm -f conf$$.dir
41965 mkdir conf$$.dir 2>/dev/null
41966fi
41967if (echo >conf$$.file) 2>/dev/null; then
41968 if ln -s conf$$.file conf$$ 2>/dev/null; then
41969 as_ln_s='ln -s'
41970 # ... but there are two gotchas:
41971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41973 # In both cases, we have to default to `cp -pR'.
41974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41975 as_ln_s='cp -pR'
41976 elif ln conf$$.file conf$$ 2>/dev/null; then
41977 as_ln_s=ln
41978 else
41979 as_ln_s='cp -pR'
41980 fi
41981else
41982 as_ln_s='cp -pR'
41983fi
41984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41985rmdir conf$$.dir 2>/dev/null
41986
41987
41988# as_fn_mkdir_p
41989# -------------
41990# Create "$as_dir" as a directory, including parents if necessary.
41991as_fn_mkdir_p ()
41992{
41993
41994 case $as_dir in #(
41995 -*) as_dir=./$as_dir;;
41996 esac
41997 test -d "$as_dir" || eval $as_mkdir_p || {
41998 as_dirs=
41999 while :; do
42000 case $as_dir in #(
42001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42002 *) as_qdir=$as_dir;;
42003 esac
42004 as_dirs="'$as_qdir' $as_dirs"
42005 as_dir=`$as_dirname -- "$as_dir" ||
42006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42007 X"$as_dir" : 'X\(//\)[^/]' \| \
42008 X"$as_dir" : 'X\(//\)$' \| \
42009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42010$as_echo X"$as_dir" |
42011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42012 s//\1/
42013 q
42014 }
42015 /^X\(\/\/\)[^/].*/{
42016 s//\1/
42017 q
42018 }
42019 /^X\(\/\/\)$/{
42020 s//\1/
42021 q
42022 }
42023 /^X\(\/\).*/{
42024 s//\1/
42025 q
42026 }
42027 s/.*/./; q'`
42028 test -d "$as_dir" && break
42029 done
42030 test -z "$as_dirs" || eval "mkdir $as_dirs"
42031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42032
42033
42034} # as_fn_mkdir_p
42035if mkdir -p . 2>/dev/null; then
42036 as_mkdir_p='mkdir -p "$as_dir"'
42037else
42038 test -d ./-p && rmdir ./-p
42039 as_mkdir_p=false
42040fi
42041
42042
42043# as_fn_executable_p FILE
42044# -----------------------
42045# Test if FILE is an executable regular file.
42046as_fn_executable_p ()
42047{
42048 test -f "$1" && test -x "$1"
42049} # as_fn_executable_p
42050as_test_x='test -x'
42051as_executable_p=as_fn_executable_p
42052
42053# Sed expression to map a string onto a valid CPP name.
42054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42055
42056# Sed expression to map a string onto a valid variable name.
42057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42058
42059
42060exec 6>&1
42061## ----------------------------------- ##
42062## Main body of $CONFIG_STATUS script. ##
42063## ----------------------------------- ##
42064_ASEOF
42065test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42066
42067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42068# Save the log message, to keep $0 and so on meaningful, and to
42069# report actual input values of CONFIG_FILES etc. instead of their
42070# values after options handling.
42071ac_log="
42072This file was extended by curl $as_me -, which was
42073generated by GNU Autoconf 2.69. Invocation command line was
42074
42075 CONFIG_FILES = $CONFIG_FILES
42076 CONFIG_HEADERS = $CONFIG_HEADERS
42077 CONFIG_LINKS = $CONFIG_LINKS
42078 CONFIG_COMMANDS = $CONFIG_COMMANDS
42079 $ $0 $@
42080
42081on `(hostname || uname -n) 2>/dev/null | sed 1q`
42082"
42083
42084_ACEOF
42085
42086case $ac_config_files in *"
42087"*) set x $ac_config_files; shift; ac_config_files=$*;;
42088esac
42089
42090case $ac_config_headers in *"
42091"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42092esac
42093
42094
42095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42096# Files that config.status was made for.
42097config_files="$ac_config_files"
42098config_headers="$ac_config_headers"
42099config_commands="$ac_config_commands"
42100
42101_ACEOF
42102
42103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42104ac_cs_usage="\
42105\`$as_me' instantiates files and other configuration actions
42106from templates according to the current configuration. Unless the files
42107and actions are specified as TAGs, all are instantiated by default.
42108
42109Usage: $0 [OPTION]... [TAG]...
42110
42111 -h, --help print this help, then exit
42112 -V, --version print version number and configuration settings, then exit
42113 --config print configuration, then exit
42114 -q, --quiet, --silent
42115 do not print progress messages
42116 -d, --debug don't remove temporary files
42117 --recheck update $as_me by reconfiguring in the same conditions
42118 --file=FILE[:TEMPLATE]
42119 instantiate the configuration file FILE
42120 --header=FILE[:TEMPLATE]
42121 instantiate the configuration header FILE
42122
42123Configuration files:
42124$config_files
42125
42126Configuration headers:
42127$config_headers
42128
42129Configuration commands:
42130$config_commands
42131
42132Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42133
42134_ACEOF
42135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42136ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42137ac_cs_version="\\
42138curl config.status -
42139configured by $0, generated by GNU Autoconf 2.69,
42140 with options \\"\$ac_cs_config\\"
42141
42142Copyright (C) 2012 Free Software Foundation, Inc.
42143This config.status script is free software; the Free Software Foundation
42144gives unlimited permission to copy, distribute and modify it."
42145
42146ac_pwd='$ac_pwd'
42147srcdir='$srcdir'
42148INSTALL='$INSTALL'
42149MKDIR_P='$MKDIR_P'
42150AWK='$AWK'
42151test -n "\$AWK" || AWK=awk
42152_ACEOF
42153
42154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42155# The default lists apply if the user does not specify any file.
42156ac_need_defaults=:
42157while test $# != 0
42158do
42159 case $1 in
42160 --*=?*)
42161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42163 ac_shift=:
42164 ;;
42165 --*=)
42166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42167 ac_optarg=
42168 ac_shift=:
42169 ;;
42170 *)
42171 ac_option=$1
42172 ac_optarg=$2
42173 ac_shift=shift
42174 ;;
42175 esac
42176
42177 case $ac_option in
42178 # Handling of the options.
42179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42180 ac_cs_recheck=: ;;
42181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42182 $as_echo "$ac_cs_version"; exit ;;
42183 --config | --confi | --conf | --con | --co | --c )
42184 $as_echo "$ac_cs_config"; exit ;;
42185 --debug | --debu | --deb | --de | --d | -d )
42186 debug=: ;;
42187 --file | --fil | --fi | --f )
42188 $ac_shift
42189 case $ac_optarg in
42190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42191 '') as_fn_error $? "missing file argument" ;;
42192 esac
42193 as_fn_append CONFIG_FILES " '$ac_optarg'"
42194 ac_need_defaults=false;;
42195 --header | --heade | --head | --hea )
42196 $ac_shift
42197 case $ac_optarg in
42198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42199 esac
42200 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42201 ac_need_defaults=false;;
42202 --he | --h)
42203 # Conflict between --help and --header
42204 as_fn_error $? "ambiguous option: \`$1'
42205Try \`$0 --help' for more information.";;
42206 --help | --hel | -h )
42207 $as_echo "$ac_cs_usage"; exit ;;
42208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42210 ac_cs_silent=: ;;
42211
42212 # This is an error.
42213 -*) as_fn_error $? "unrecognized option: \`$1'
42214Try \`$0 --help' for more information." ;;
42215
42216 *) as_fn_append ac_config_targets " $1"
42217 ac_need_defaults=false ;;
42218
42219 esac
42220 shift
42221done
42222
42223ac_configure_extra_args=
42224
42225if $ac_cs_silent; then
42226 exec 6>/dev/null
42227 ac_configure_extra_args="$ac_configure_extra_args --silent"
42228fi
42229
42230_ACEOF
42231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42232if \$ac_cs_recheck; then
42233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42234 shift
42235 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42236 CONFIG_SHELL='$SHELL'
42237 export CONFIG_SHELL
42238 exec "\$@"
42239fi
42240
42241_ACEOF
42242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42243exec 5>>config.log
42244{
42245 echo
42246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42247## Running $as_me. ##
42248_ASBOX
42249 $as_echo "$ac_log"
42250} >&5
42251
42252_ACEOF
42253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42254#
42255# INIT-COMMANDS
42256#
42257AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42258
42259
42260# The HP-UX ksh and POSIX shell print the target directory to stdout
42261# if CDPATH is set.
42262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42263
42264sed_quote_subst='$sed_quote_subst'
42265double_quote_subst='$double_quote_subst'
42266delay_variable_subst='$delay_variable_subst'
42267macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42268macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42269AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42270DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42271OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42272enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42273enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42274pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42275enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42276shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42277SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42278ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42279PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42280host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42281host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42282host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42283build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42284build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42285build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42286SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42287Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42288GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42289EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42290FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42291LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42292NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42293LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42294max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42295ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42296exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42297lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42298lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42299lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42300lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42301lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42304deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42305file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42306file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42307want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42308sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42309AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42310AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42311archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42312STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42313RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42314old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42315old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42316old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42317lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42318CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42319CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42320compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42321GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42322lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42324lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42325lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42326lt_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"`'
42327lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42328nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42329lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42330lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42331objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42332MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42333lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42334lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42335lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42336lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42337lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42338need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42339MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42340DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42341NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42342LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42343OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42344OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42345libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42346shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42347extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42348archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42349enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42350export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42351whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42352compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42353old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42354old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42355archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42356archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42357module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42358module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42359with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42360allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42361no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42362hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42363hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42364hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42365hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42366hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42367hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42368hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42369inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42370link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42371always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42372export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42373exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42374include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42375prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42376postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42377file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42378variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42379need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42380need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42381version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42382runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42383shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42384shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42385libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42386library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42387soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42388install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42389postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42390postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42391finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42392finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42393hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42394sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42395configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42396configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42397hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42398enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42399enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42400enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42401old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42402striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42403
42404LTCC='$LTCC'
42405LTCFLAGS='$LTCFLAGS'
42406compiler='$compiler_DEFAULT'
42407
42408# A function that is used when there is no print builtin or printf.
42409func_fallback_echo ()
42410{
42411 eval 'cat <<_LTECHO_EOF
42412\$1
42413_LTECHO_EOF'
42414}
42415
42416# Quote evaled strings.
42417for var in AS \
42418DLLTOOL \
42419OBJDUMP \
42420SHELL \
42421ECHO \
42422PATH_SEPARATOR \
42423SED \
42424GREP \
42425EGREP \
42426FGREP \
42427LD \
42428NM \
42429LN_S \
42430lt_SP2NL \
42431lt_NL2SP \
42432reload_flag \
42433deplibs_check_method \
42434file_magic_cmd \
42435file_magic_glob \
42436want_nocaseglob \
42437sharedlib_from_linklib_cmd \
42438AR \
42439AR_FLAGS \
42440archiver_list_spec \
42441STRIP \
42442RANLIB \
42443CC \
42444CFLAGS \
42445compiler \
42446lt_cv_sys_global_symbol_pipe \
42447lt_cv_sys_global_symbol_to_cdecl \
42448lt_cv_sys_global_symbol_to_import \
42449lt_cv_sys_global_symbol_to_c_name_address \
42450lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42451lt_cv_nm_interface \
42452nm_file_list_spec \
42453lt_cv_truncate_bin \
42454lt_prog_compiler_no_builtin_flag \
42455lt_prog_compiler_pic \
42456lt_prog_compiler_wl \
42457lt_prog_compiler_static \
42458lt_cv_prog_compiler_c_o \
42459need_locks \
42460MANIFEST_TOOL \
42461DSYMUTIL \
42462NMEDIT \
42463LIPO \
42464OTOOL \
42465OTOOL64 \
42466shrext_cmds \
42467export_dynamic_flag_spec \
42468whole_archive_flag_spec \
42469compiler_needs_object \
42470with_gnu_ld \
42471allow_undefined_flag \
42472no_undefined_flag \
42473hardcode_libdir_flag_spec \
42474hardcode_libdir_separator \
42475exclude_expsyms \
42476include_expsyms \
42477file_list_spec \
42478variables_saved_for_relink \
42479libname_spec \
42480library_names_spec \
42481soname_spec \
42482install_override_mode \
42483finish_eval \
42484old_striplib \
42485striplib; do
42486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42487 *[\\\\\\\`\\"\\\$]*)
42488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42489 ;;
42490 *)
42491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42492 ;;
42493 esac
42494done
42495
42496# Double-quote double-evaled strings.
42497for var in reload_cmds \
42498old_postinstall_cmds \
42499old_postuninstall_cmds \
42500old_archive_cmds \
42501extract_expsyms_cmds \
42502old_archive_from_new_cmds \
42503old_archive_from_expsyms_cmds \
42504archive_cmds \
42505archive_expsym_cmds \
42506module_cmds \
42507module_expsym_cmds \
42508export_symbols_cmds \
42509prelink_cmds \
42510postlink_cmds \
42511postinstall_cmds \
42512postuninstall_cmds \
42513finish_cmds \
42514sys_lib_search_path_spec \
42515configure_time_dlsearch_path \
42516configure_time_lt_sys_library_path; do
42517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42518 *[\\\\\\\`\\"\\\$]*)
42519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42520 ;;
42521 *)
42522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42523 ;;
42524 esac
42525done
42526
42527ac_aux_dir='$ac_aux_dir'
42528
42529# See if we are running on zsh, and set the options that allow our
42530# commands through without removal of \ escapes INIT.
42531if test -n "\${ZSH_VERSION+set}"; then
42532 setopt NO_GLOB_SUBST
42533fi
42534
42535
42536 PACKAGE='$PACKAGE'
42537 VERSION='$VERSION'
42538 RM='$RM'
42539 ofile='$ofile'
42540
42541
42542
42543
42544_ACEOF
42545
42546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42547
42548# Handling of arguments.
42549for ac_config_target in $ac_config_targets
42550do
42551 case $ac_config_target in
42552 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42553 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42554 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42555 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42556 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42557 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42558 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42559 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42560 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42561 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42562 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42563 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42564 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42565 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42566 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42567 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42568 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42569 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42570 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42571 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42572 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42573 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42574 "tests/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fuzz/Makefile" ;;
42575 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42576 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42577 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42578 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42579 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42580 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42581 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42582 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42583 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42584 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42585 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42586 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42587 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42588 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42589 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42590 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42591
42592 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42593 esac
42594done
42595
42596
42597# If the user did not use the arguments to specify the items to instantiate,
42598# then the envvar interface is used. Set only those that are not.
42599# We use the long form for the default assignment because of an extremely
42600# bizarre bug on SunOS 4.1.3.
42601if $ac_need_defaults; then
42602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42604 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42605fi
42606
42607# Have a temporary directory for convenience. Make it in the build tree
42608# simply because there is no reason against having it here, and in addition,
42609# creating and moving files from /tmp can sometimes cause problems.
42610# Hook for its removal unless debugging.
42611# Note that there is a small window in which the directory will not be cleaned:
42612# after its creation but before its name has been assigned to `$tmp'.
42613$debug ||
42614{
42615 tmp= ac_tmp=
42616 trap 'exit_status=$?
42617 : "${ac_tmp:=$tmp}"
42618 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42619' 0
42620 trap 'as_fn_exit 1' 1 2 13 15
42621}
42622# Create a (secure) tmp directory for tmp files.
42623
42624{
42625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42626 test -d "$tmp"
42627} ||
42628{
42629 tmp=./conf$$-$RANDOM
42630 (umask 077 && mkdir "$tmp")
42631} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42632ac_tmp=$tmp
42633
42634# Set up the scripts for CONFIG_FILES section.
42635# No need to generate them if there are no CONFIG_FILES.
42636# This happens for instance with `./config.status config.h'.
42637if test -n "$CONFIG_FILES"; then
42638
42639
42640ac_cr=`echo X | tr X '\015'`
42641# On cygwin, bash can eat \r inside `` if the user requested igncr.
42642# But we know of no other shell where ac_cr would be empty at this
42643# point, so we can use a bashism as a fallback.
42644if test "x$ac_cr" = x; then
42645 eval ac_cr=\$\'\\r\'
42646fi
42647ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42648if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42649 ac_cs_awk_cr='\\r'
42650else
42651 ac_cs_awk_cr=$ac_cr
42652fi
42653
42654echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42655_ACEOF
42656
42657
42658{
42659 echo "cat >conf$$subs.awk <<_ACEOF" &&
42660 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42661 echo "_ACEOF"
42662} >conf$$subs.sh ||
42663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42664ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42665ac_delim='%!_!# '
42666for ac_last_try in false false false false false :; do
42667 . ./conf$$subs.sh ||
42668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42669
42670 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42671 if test $ac_delim_n = $ac_delim_num; then
42672 break
42673 elif $ac_last_try; then
42674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42675 else
42676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42677 fi
42678done
42679rm -f conf$$subs.sh
42680
42681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42682cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42683_ACEOF
42684sed -n '
42685h
42686s/^/S["/; s/!.*/"]=/
42687p
42688g
42689s/^[^!]*!//
42690:repl
42691t repl
42692s/'"$ac_delim"'$//
42693t delim
42694:nl
42695h
42696s/\(.\{148\}\)..*/\1/
42697t more1
42698s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42699p
42700n
42701b repl
42702:more1
42703s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42704p
42705g
42706s/.\{148\}//
42707t nl
42708:delim
42709h
42710s/\(.\{148\}\)..*/\1/
42711t more2
42712s/["\\]/\\&/g; s/^/"/; s/$/"/
42713p
42714b
42715:more2
42716s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42717p
42718g
42719s/.\{148\}//
42720t delim
42721' <conf$$subs.awk | sed '
42722/^[^""]/{
42723 N
42724 s/\n//
42725}
42726' >>$CONFIG_STATUS || ac_write_fail=1
42727rm -f conf$$subs.awk
42728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42729_ACAWK
42730cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42731 for (key in S) S_is_set[key] = 1
42732 FS = ""
42733
42734}
42735{
42736 line = $ 0
42737 nfields = split(line, field, "@")
42738 substed = 0
42739 len = length(field[1])
42740 for (i = 2; i < nfields; i++) {
42741 key = field[i]
42742 keylen = length(key)
42743 if (S_is_set[key]) {
42744 value = S[key]
42745 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42746 len += length(value) + length(field[++i])
42747 substed = 1
42748 } else
42749 len += 1 + keylen
42750 }
42751
42752 print line
42753}
42754
42755_ACAWK
42756_ACEOF
42757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42758if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42759 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42760else
42761 cat
42762fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42763 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42764_ACEOF
42765
42766# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42767# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42768# trailing colons and then remove the whole line if VPATH becomes empty
42769# (actually we leave an empty line to preserve line numbers).
42770if test "x$srcdir" = x.; then
42771 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42772h
42773s///
42774s/^/:/
42775s/[ ]*$/:/
42776s/:\$(srcdir):/:/g
42777s/:\${srcdir}:/:/g
42778s/:@srcdir@:/:/g
42779s/^:*//
42780s/:*$//
42781x
42782s/\(=[ ]*\).*/\1/
42783G
42784s/\n//
42785s/^[^=]*=[ ]*$//
42786}'
42787fi
42788
42789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42790fi # test -n "$CONFIG_FILES"
42791
42792# Set up the scripts for CONFIG_HEADERS section.
42793# No need to generate them if there are no CONFIG_HEADERS.
42794# This happens for instance with `./config.status Makefile'.
42795if test -n "$CONFIG_HEADERS"; then
42796cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42797BEGIN {
42798_ACEOF
42799
42800# Transform confdefs.h into an awk script `defines.awk', embedded as
42801# here-document in config.status, that substitutes the proper values into
42802# config.h.in to produce config.h.
42803
42804# Create a delimiter string that does not exist in confdefs.h, to ease
42805# handling of long lines.
42806ac_delim='%!_!# '
42807for ac_last_try in false false :; do
42808 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42809 if test -z "$ac_tt"; then
42810 break
42811 elif $ac_last_try; then
42812 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42813 else
42814 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42815 fi
42816done
42817
42818# For the awk script, D is an array of macro values keyed by name,
42819# likewise P contains macro parameters if any. Preserve backslash
42820# newline sequences.
42821
42822ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42823sed -n '
42824s/.\{148\}/&'"$ac_delim"'/g
42825t rset
42826:rset
42827s/^[ ]*#[ ]*define[ ][ ]*/ /
42828t def
42829d
42830:def
42831s/\\$//
42832t bsnl
42833s/["\\]/\\&/g
42834s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42835D["\1"]=" \3"/p
42836s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42837d
42838:bsnl
42839s/["\\]/\\&/g
42840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42841D["\1"]=" \3\\\\\\n"\\/p
42842t cont
42843s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42844t cont
42845d
42846:cont
42847n
42848s/.\{148\}/&'"$ac_delim"'/g
42849t clear
42850:clear
42851s/\\$//
42852t bsnlc
42853s/["\\]/\\&/g; s/^/"/; s/$/"/p
42854d
42855:bsnlc
42856s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42857b cont
42858' <confdefs.h | sed '
42859s/'"$ac_delim"'/"\\\
42860"/g' >>$CONFIG_STATUS || ac_write_fail=1
42861
42862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42863 for (key in D) D_is_set[key] = 1
42864 FS = ""
42865}
42866/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42867 line = \$ 0
42868 split(line, arg, " ")
42869 if (arg[1] == "#") {
42870 defundef = arg[2]
42871 mac1 = arg[3]
42872 } else {
42873 defundef = substr(arg[1], 2)
42874 mac1 = arg[2]
42875 }
42876 split(mac1, mac2, "(") #)
42877 macro = mac2[1]
42878 prefix = substr(line, 1, index(line, defundef) - 1)
42879 if (D_is_set[macro]) {
42880 # Preserve the white space surrounding the "#".
42881 print prefix "define", macro P[macro] D[macro]
42882 next
42883 } else {
42884 # Replace #undef with comments. This is necessary, for example,
42885 # in the case of _POSIX_SOURCE, which is predefined and required
42886 # on some systems where configure will not decide to define it.
42887 if (defundef == "undef") {
42888 print "/*", prefix defundef, macro, "*/"
42889 next
42890 }
42891 }
42892}
42893{ print }
42894_ACAWK
42895_ACEOF
42896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42897 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42898fi # test -n "$CONFIG_HEADERS"
42899
42900
42901eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42902shift
42903for ac_tag
42904do
42905 case $ac_tag in
42906 :[FHLC]) ac_mode=$ac_tag; continue;;
42907 esac
42908 case $ac_mode$ac_tag in
42909 :[FHL]*:*);;
42910 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42911 :[FH]-) ac_tag=-:-;;
42912 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42913 esac
42914 ac_save_IFS=$IFS
42915 IFS=:
42916 set x $ac_tag
42917 IFS=$ac_save_IFS
42918 shift
42919 ac_file=$1
42920 shift
42921
42922 case $ac_mode in
42923 :L) ac_source=$1;;
42924 :[FH])
42925 ac_file_inputs=
42926 for ac_f
42927 do
42928 case $ac_f in
42929 -) ac_f="$ac_tmp/stdin";;
42930 *) # Look for the file first in the build tree, then in the source tree
42931 # (if the path is not absolute). The absolute path cannot be DOS-style,
42932 # because $ac_f cannot contain `:'.
42933 test -f "$ac_f" ||
42934 case $ac_f in
42935 [\\/$]*) false;;
42936 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42937 esac ||
42938 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42939 esac
42940 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42941 as_fn_append ac_file_inputs " '$ac_f'"
42942 done
42943
42944 # Let's still pretend it is `configure' which instantiates (i.e., don't
42945 # use $as_me), people would be surprised to read:
42946 # /* config.h. Generated by config.status. */
42947 configure_input='Generated from '`
42948 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42949 `' by configure.'
42950 if test x"$ac_file" != x-; then
42951 configure_input="$ac_file. $configure_input"
42952 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42953$as_echo "$as_me: creating $ac_file" >&6;}
42954 fi
42955 # Neutralize special characters interpreted by sed in replacement strings.
42956 case $configure_input in #(
42957 *\&* | *\|* | *\\* )
42958 ac_sed_conf_input=`$as_echo "$configure_input" |
42959 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42960 *) ac_sed_conf_input=$configure_input;;
42961 esac
42962
42963 case $ac_tag in
42964 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42966 esac
42967 ;;
42968 esac
42969
42970 ac_dir=`$as_dirname -- "$ac_file" ||
42971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42972 X"$ac_file" : 'X\(//\)[^/]' \| \
42973 X"$ac_file" : 'X\(//\)$' \| \
42974 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42975$as_echo X"$ac_file" |
42976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42977 s//\1/
42978 q
42979 }
42980 /^X\(\/\/\)[^/].*/{
42981 s//\1/
42982 q
42983 }
42984 /^X\(\/\/\)$/{
42985 s//\1/
42986 q
42987 }
42988 /^X\(\/\).*/{
42989 s//\1/
42990 q
42991 }
42992 s/.*/./; q'`
42993 as_dir="$ac_dir"; as_fn_mkdir_p
42994 ac_builddir=.
42995
42996case "$ac_dir" in
42997.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42998*)
42999 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43000 # A ".." for each directory in $ac_dir_suffix.
43001 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43002 case $ac_top_builddir_sub in
43003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43005 esac ;;
43006esac
43007ac_abs_top_builddir=$ac_pwd
43008ac_abs_builddir=$ac_pwd$ac_dir_suffix
43009# for backward compatibility:
43010ac_top_builddir=$ac_top_build_prefix
43011
43012case $srcdir in
43013 .) # We are building in place.
43014 ac_srcdir=.
43015 ac_top_srcdir=$ac_top_builddir_sub
43016 ac_abs_top_srcdir=$ac_pwd ;;
43017 [\\/]* | ?:[\\/]* ) # Absolute name.
43018 ac_srcdir=$srcdir$ac_dir_suffix;
43019 ac_top_srcdir=$srcdir
43020 ac_abs_top_srcdir=$srcdir ;;
43021 *) # Relative name.
43022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43023 ac_top_srcdir=$ac_top_build_prefix$srcdir
43024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43025esac
43026ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43027
43028
43029 case $ac_mode in
43030 :F)
43031 #
43032 # CONFIG_FILE
43033 #
43034
43035 case $INSTALL in
43036 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43037 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43038 esac
43039 ac_MKDIR_P=$MKDIR_P
43040 case $MKDIR_P in
43041 [\\/$]* | ?:[\\/]* ) ;;
43042 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43043 esac
43044_ACEOF
43045
43046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43047# If the template does not know about datarootdir, expand it.
43048# FIXME: This hack should be removed a few years after 2.60.
43049ac_datarootdir_hack=; ac_datarootdir_seen=
43050ac_sed_dataroot='
43051/datarootdir/ {
43052 p
43053 q
43054}
43055/@datadir@/p
43056/@docdir@/p
43057/@infodir@/p
43058/@localedir@/p
43059/@mandir@/p'
43060case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43061*datarootdir*) ac_datarootdir_seen=yes;;
43062*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43064$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43065_ACEOF
43066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43067 ac_datarootdir_hack='
43068 s&@datadir@&$datadir&g
43069 s&@docdir@&$docdir&g
43070 s&@infodir@&$infodir&g
43071 s&@localedir@&$localedir&g
43072 s&@mandir@&$mandir&g
43073 s&\\\${datarootdir}&$datarootdir&g' ;;
43074esac
43075_ACEOF
43076
43077# Neutralize VPATH when `$srcdir' = `.'.
43078# Shell code in configure.ac might set extrasub.
43079# FIXME: do we really want to maintain this feature?
43080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43081ac_sed_extra="$ac_vpsub
43082$extrasub
43083_ACEOF
43084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43085:t
43086/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43087s|@configure_input@|$ac_sed_conf_input|;t t
43088s&@top_builddir@&$ac_top_builddir_sub&;t t
43089s&@top_build_prefix@&$ac_top_build_prefix&;t t
43090s&@srcdir@&$ac_srcdir&;t t
43091s&@abs_srcdir@&$ac_abs_srcdir&;t t
43092s&@top_srcdir@&$ac_top_srcdir&;t t
43093s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43094s&@builddir@&$ac_builddir&;t t
43095s&@abs_builddir@&$ac_abs_builddir&;t t
43096s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43097s&@INSTALL@&$ac_INSTALL&;t t
43098s&@MKDIR_P@&$ac_MKDIR_P&;t t
43099$ac_datarootdir_hack
43100"
43101eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43102 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43103
43104test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43105 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43107 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43109which seems to be undefined. Please make sure it is defined" >&5
43110$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43111which seems to be undefined. Please make sure it is defined" >&2;}
43112
43113 rm -f "$ac_tmp/stdin"
43114 case $ac_file in
43115 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43116 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43117 esac \
43118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43119 ;;
43120 :H)
43121 #
43122 # CONFIG_HEADER
43123 #
43124 if test x"$ac_file" != x-; then
43125 {
43126 $as_echo "/* $configure_input */" \
43127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43128 } >"$ac_tmp/config.h" \
43129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43130 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43131 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43132$as_echo "$as_me: $ac_file is unchanged" >&6;}
43133 else
43134 rm -f "$ac_file"
43135 mv "$ac_tmp/config.h" "$ac_file" \
43136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43137 fi
43138 else
43139 $as_echo "/* $configure_input */" \
43140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43141 || as_fn_error $? "could not create -" "$LINENO" 5
43142 fi
43143# Compute "$ac_file"'s index in $config_headers.
43144_am_arg="$ac_file"
43145_am_stamp_count=1
43146for _am_header in $config_headers :; do
43147 case $_am_header in
43148 $_am_arg | $_am_arg:* )
43149 break ;;
43150 * )
43151 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43152 esac
43153done
43154echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43155$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43156 X"$_am_arg" : 'X\(//\)[^/]' \| \
43157 X"$_am_arg" : 'X\(//\)$' \| \
43158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43159$as_echo X"$_am_arg" |
43160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43161 s//\1/
43162 q
43163 }
43164 /^X\(\/\/\)[^/].*/{
43165 s//\1/
43166 q
43167 }
43168 /^X\(\/\/\)$/{
43169 s//\1/
43170 q
43171 }
43172 /^X\(\/\).*/{
43173 s//\1/
43174 q
43175 }
43176 s/.*/./; q'`/stamp-h$_am_stamp_count
43177 ;;
43178
43179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43180$as_echo "$as_me: executing $ac_file commands" >&6;}
43181 ;;
43182 esac
43183
43184
43185 case $ac_file$ac_mode in
43186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43187 # Older Autoconf quotes --file arguments for eval, but not when files
43188 # are listed without --file. Let's play safe and only enable the eval
43189 # if we detect the quoting.
43190 case $CONFIG_FILES in
43191 *\'*) eval set x "$CONFIG_FILES" ;;
43192 *) set x $CONFIG_FILES ;;
43193 esac
43194 shift
43195 for mf
43196 do
43197 # Strip MF so we end up with the name of the file.
43198 mf=`echo "$mf" | sed -e 's/:.*$//'`
43199 # Check whether this is an Automake generated Makefile or not.
43200 # We used to match only the files named 'Makefile.in', but
43201 # some people rename them; so instead we look at the file content.
43202 # Grep'ing the first line is not enough: some people post-process
43203 # each Makefile.in and add a new line on top of each file to say so.
43204 # Grep'ing the whole file is not good either: AIX grep has a line
43205 # limit of 2048, but all sed's we know have understand at least 4000.
43206 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43207 dirpart=`$as_dirname -- "$mf" ||
43208$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43209 X"$mf" : 'X\(//\)[^/]' \| \
43210 X"$mf" : 'X\(//\)$' \| \
43211 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43212$as_echo X"$mf" |
43213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43214 s//\1/
43215 q
43216 }
43217 /^X\(\/\/\)[^/].*/{
43218 s//\1/
43219 q
43220 }
43221 /^X\(\/\/\)$/{
43222 s//\1/
43223 q
43224 }
43225 /^X\(\/\).*/{
43226 s//\1/
43227 q
43228 }
43229 s/.*/./; q'`
43230 else
43231 continue
43232 fi
43233 # Extract the definition of DEPDIR, am__include, and am__quote
43234 # from the Makefile without running 'make'.
43235 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43236 test -z "$DEPDIR" && continue
43237 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43238 test -z "$am__include" && continue
43239 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43240 # Find all dependency output files, they are included files with
43241 # $(DEPDIR) in their names. We invoke sed twice because it is the
43242 # simplest approach to changing $(DEPDIR) to its actual value in the
43243 # expansion.
43244 for file in `sed -n "
43245 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43247 # Make sure the directory exists.
43248 test -f "$dirpart/$file" && continue
43249 fdir=`$as_dirname -- "$file" ||
43250$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43251 X"$file" : 'X\(//\)[^/]' \| \
43252 X"$file" : 'X\(//\)$' \| \
43253 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43254$as_echo X"$file" |
43255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43256 s//\1/
43257 q
43258 }
43259 /^X\(\/\/\)[^/].*/{
43260 s//\1/
43261 q
43262 }
43263 /^X\(\/\/\)$/{
43264 s//\1/
43265 q
43266 }
43267 /^X\(\/\).*/{
43268 s//\1/
43269 q
43270 }
43271 s/.*/./; q'`
43272 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43273 # echo "creating $dirpart/$file"
43274 echo '# dummy' > "$dirpart/$file"
43275 done
43276 done
43277}
43278 ;;
43279 "libtool":C)
43280
43281 # See if we are running on zsh, and set the options that allow our
43282 # commands through without removal of \ escapes.
43283 if test -n "${ZSH_VERSION+set}"; then
43284 setopt NO_GLOB_SUBST
43285 fi
43286
43287 cfgfile=${ofile}T
43288 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43289 $RM "$cfgfile"
43290
43291 cat <<_LT_EOF >> "$cfgfile"
43292#! $SHELL
43293# Generated automatically by $as_me ($PACKAGE) $VERSION
43294# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43295
43296# Provide generalized library-building support services.
43297# Written by Gordon Matzigkeit, 1996
43298
43299# Copyright (C) 2014 Free Software Foundation, Inc.
43300# This is free software; see the source for copying conditions. There is NO
43301# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43302
43303# GNU Libtool is free software; you can redistribute it and/or modify
43304# it under the terms of the GNU General Public License as published by
43305# the Free Software Foundation; either version 2 of of the License, or
43306# (at your option) any later version.
43307#
43308# As a special exception to the GNU General Public License, if you
43309# distribute this file as part of a program or library that is built
43310# using GNU Libtool, you may include this file under the same
43311# distribution terms that you use for the rest of that program.
43312#
43313# GNU Libtool is distributed in the hope that it will be useful, but
43314# WITHOUT ANY WARRANTY; without even the implied warranty of
43315# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43316# GNU General Public License for more details.
43317#
43318# You should have received a copy of the GNU General Public License
43319# along with this program. If not, see <http://www.gnu.org/licenses/>.
43320
43321
43322# The names of the tagged configurations supported by this script.
43323available_tags=''
43324
43325# Configured defaults for sys_lib_dlsearch_path munging.
43326: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43327
43328# ### BEGIN LIBTOOL CONFIG
43329
43330# Which release of libtool.m4 was used?
43331macro_version=$macro_version
43332macro_revision=$macro_revision
43333
43334# Assembler program.
43335AS=$lt_AS
43336
43337# DLL creation program.
43338DLLTOOL=$lt_DLLTOOL
43339
43340# Object dumper program.
43341OBJDUMP=$lt_OBJDUMP
43342
43343# Whether or not to build shared libraries.
43344build_libtool_libs=$enable_shared
43345
43346# Whether or not to build static libraries.
43347build_old_libs=$enable_static
43348
43349# What type of objects to build.
43350pic_mode=$pic_mode
43351
43352# Whether or not to optimize for fast installation.
43353fast_install=$enable_fast_install
43354
43355# Shared archive member basename,for filename based shared library versioning on AIX.
43356shared_archive_member_spec=$shared_archive_member_spec
43357
43358# Shell to use when invoking shell scripts.
43359SHELL=$lt_SHELL
43360
43361# An echo program that protects backslashes.
43362ECHO=$lt_ECHO
43363
43364# The PATH separator for the build system.
43365PATH_SEPARATOR=$lt_PATH_SEPARATOR
43366
43367# The host system.
43368host_alias=$host_alias
43369host=$host
43370host_os=$host_os
43371
43372# The build system.
43373build_alias=$build_alias
43374build=$build
43375build_os=$build_os
43376
43377# A sed program that does not truncate output.
43378SED=$lt_SED
43379
43380# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43381Xsed="\$SED -e 1s/^X//"
43382
43383# A grep program that handles long lines.
43384GREP=$lt_GREP
43385
43386# An ERE matcher.
43387EGREP=$lt_EGREP
43388
43389# A literal string matcher.
43390FGREP=$lt_FGREP
43391
43392# A BSD- or MS-compatible name lister.
43393NM=$lt_NM
43394
43395# Whether we need soft or hard links.
43396LN_S=$lt_LN_S
43397
43398# What is the maximum length of a command?
43399max_cmd_len=$max_cmd_len
43400
43401# Object file suffix (normally "o").
43402objext=$ac_objext
43403
43404# Executable file suffix (normally "").
43405exeext=$exeext
43406
43407# whether the shell understands "unset".
43408lt_unset=$lt_unset
43409
43410# turn spaces into newlines.
43411SP2NL=$lt_lt_SP2NL
43412
43413# turn newlines into spaces.
43414NL2SP=$lt_lt_NL2SP
43415
43416# convert \$build file names to \$host format.
43417to_host_file_cmd=$lt_cv_to_host_file_cmd
43418
43419# convert \$build files to toolchain format.
43420to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43421
43422# Method to check whether dependent libraries are shared objects.
43423deplibs_check_method=$lt_deplibs_check_method
43424
43425# Command to use when deplibs_check_method = "file_magic".
43426file_magic_cmd=$lt_file_magic_cmd
43427
43428# How to find potential files when deplibs_check_method = "file_magic".
43429file_magic_glob=$lt_file_magic_glob
43430
43431# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43432want_nocaseglob=$lt_want_nocaseglob
43433
43434# Command to associate shared and link libraries.
43435sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43436
43437# The archiver.
43438AR=$lt_AR
43439
43440# Flags to create an archive.
43441AR_FLAGS=$lt_AR_FLAGS
43442
43443# How to feed a file listing to the archiver.
43444archiver_list_spec=$lt_archiver_list_spec
43445
43446# A symbol stripping program.
43447STRIP=$lt_STRIP
43448
43449# Commands used to install an old-style archive.
43450RANLIB=$lt_RANLIB
43451old_postinstall_cmds=$lt_old_postinstall_cmds
43452old_postuninstall_cmds=$lt_old_postuninstall_cmds
43453
43454# Whether to use a lock for old archive extraction.
43455lock_old_archive_extraction=$lock_old_archive_extraction
43456
43457# A C compiler.
43458LTCC=$lt_CC
43459
43460# LTCC compiler flags.
43461LTCFLAGS=$lt_CFLAGS
43462
43463# Take the output of nm and produce a listing of raw symbols and C names.
43464global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43465
43466# Transform the output of nm in a proper C declaration.
43467global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43468
43469# Transform the output of nm into a list of symbols to manually relocate.
43470global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43471
43472# Transform the output of nm in a C name address pair.
43473global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43474
43475# Transform the output of nm in a C name address pair when lib prefix is needed.
43476global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43477
43478# The name lister interface.
43479nm_interface=$lt_lt_cv_nm_interface
43480
43481# Specify filename containing input files for \$NM.
43482nm_file_list_spec=$lt_nm_file_list_spec
43483
43484# The root where to search for dependent libraries,and where our libraries should be installed.
43485lt_sysroot=$lt_sysroot
43486
43487# Command to truncate a binary pipe.
43488lt_truncate_bin=$lt_lt_cv_truncate_bin
43489
43490# The name of the directory that contains temporary libtool files.
43491objdir=$objdir
43492
43493# Used to examine libraries when file_magic_cmd begins with "file".
43494MAGIC_CMD=$MAGIC_CMD
43495
43496# Must we lock files when doing compilation?
43497need_locks=$lt_need_locks
43498
43499# Manifest tool.
43500MANIFEST_TOOL=$lt_MANIFEST_TOOL
43501
43502# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43503DSYMUTIL=$lt_DSYMUTIL
43504
43505# Tool to change global to local symbols on Mac OS X.
43506NMEDIT=$lt_NMEDIT
43507
43508# Tool to manipulate fat objects and archives on Mac OS X.
43509LIPO=$lt_LIPO
43510
43511# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43512OTOOL=$lt_OTOOL
43513
43514# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43515OTOOL64=$lt_OTOOL64
43516
43517# Old archive suffix (normally "a").
43518libext=$libext
43519
43520# Shared library suffix (normally ".so").
43521shrext_cmds=$lt_shrext_cmds
43522
43523# The commands to extract the exported symbol list from a shared archive.
43524extract_expsyms_cmds=$lt_extract_expsyms_cmds
43525
43526# Variables whose values should be saved in libtool wrapper scripts and
43527# restored at link time.
43528variables_saved_for_relink=$lt_variables_saved_for_relink
43529
43530# Do we need the "lib" prefix for modules?
43531need_lib_prefix=$need_lib_prefix
43532
43533# Do we need a version for libraries?
43534need_version=$need_version
43535
43536# Library versioning type.
43537version_type=$version_type
43538
43539# Shared library runtime path variable.
43540runpath_var=$runpath_var
43541
43542# Shared library path variable.
43543shlibpath_var=$shlibpath_var
43544
43545# Is shlibpath searched before the hard-coded library search path?
43546shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43547
43548# Format of library name prefix.
43549libname_spec=$lt_libname_spec
43550
43551# List of archive names. First name is the real one, the rest are links.
43552# The last name is the one that the linker finds with -lNAME
43553library_names_spec=$lt_library_names_spec
43554
43555# The coded name of the library, if different from the real name.
43556soname_spec=$lt_soname_spec
43557
43558# Permission mode override for installation of shared libraries.
43559install_override_mode=$lt_install_override_mode
43560
43561# Command to use after installation of a shared archive.
43562postinstall_cmds=$lt_postinstall_cmds
43563
43564# Command to use after uninstallation of a shared archive.
43565postuninstall_cmds=$lt_postuninstall_cmds
43566
43567# Commands used to finish a libtool library installation in a directory.
43568finish_cmds=$lt_finish_cmds
43569
43570# As "finish_cmds", except a single script fragment to be evaled but
43571# not shown.
43572finish_eval=$lt_finish_eval
43573
43574# Whether we should hardcode library paths into libraries.
43575hardcode_into_libs=$hardcode_into_libs
43576
43577# Compile-time system search path for libraries.
43578sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43579
43580# Detected run-time system search path for libraries.
43581sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43582
43583# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43584configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43585
43586# Whether dlopen is supported.
43587dlopen_support=$enable_dlopen
43588
43589# Whether dlopen of programs is supported.
43590dlopen_self=$enable_dlopen_self
43591
43592# Whether dlopen of statically linked programs is supported.
43593dlopen_self_static=$enable_dlopen_self_static
43594
43595# Commands to strip libraries.
43596old_striplib=$lt_old_striplib
43597striplib=$lt_striplib
43598
43599
43600# The linker used to build libraries.
43601LD=$lt_LD
43602
43603# How to create reloadable object files.
43604reload_flag=$lt_reload_flag
43605reload_cmds=$lt_reload_cmds
43606
43607# Commands used to build an old-style archive.
43608old_archive_cmds=$lt_old_archive_cmds
43609
43610# A language specific compiler.
43611CC=$lt_compiler
43612
43613# Is the compiler the GNU compiler?
43614with_gcc=$GCC
43615
43616# Compiler flag to turn off builtin functions.
43617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43618
43619# Additional compiler flags for building library objects.
43620pic_flag=$lt_lt_prog_compiler_pic
43621
43622# How to pass a linker flag through the compiler.
43623wl=$lt_lt_prog_compiler_wl
43624
43625# Compiler flag to prevent dynamic linking.
43626link_static_flag=$lt_lt_prog_compiler_static
43627
43628# Does compiler simultaneously support -c and -o options?
43629compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43630
43631# Whether or not to add -lc for building shared libraries.
43632build_libtool_need_lc=$archive_cmds_need_lc
43633
43634# Whether or not to disallow shared libs when runtime libs are static.
43635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43636
43637# Compiler flag to allow reflexive dlopens.
43638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43639
43640# Compiler flag to generate shared objects directly from archives.
43641whole_archive_flag_spec=$lt_whole_archive_flag_spec
43642
43643# Whether the compiler copes with passing no objects directly.
43644compiler_needs_object=$lt_compiler_needs_object
43645
43646# Create an old-style archive from a shared archive.
43647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43648
43649# Create a temporary old-style archive to link instead of a shared archive.
43650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43651
43652# Commands used to build a shared archive.
43653archive_cmds=$lt_archive_cmds
43654archive_expsym_cmds=$lt_archive_expsym_cmds
43655
43656# Commands used to build a loadable module if different from building
43657# a shared archive.
43658module_cmds=$lt_module_cmds
43659module_expsym_cmds=$lt_module_expsym_cmds
43660
43661# Whether we are building with GNU ld or not.
43662with_gnu_ld=$lt_with_gnu_ld
43663
43664# Flag that allows shared libraries with undefined symbols to be built.
43665allow_undefined_flag=$lt_allow_undefined_flag
43666
43667# Flag that enforces no undefined symbols.
43668no_undefined_flag=$lt_no_undefined_flag
43669
43670# Flag to hardcode \$libdir into a binary during linking.
43671# This must work even if \$libdir does not exist
43672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43673
43674# Whether we need a single "-rpath" flag with a separated argument.
43675hardcode_libdir_separator=$lt_hardcode_libdir_separator
43676
43677# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43678# DIR into the resulting binary.
43679hardcode_direct=$hardcode_direct
43680
43681# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43682# DIR into the resulting binary and the resulting library dependency is
43683# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43684# library is relocated.
43685hardcode_direct_absolute=$hardcode_direct_absolute
43686
43687# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43688# into the resulting binary.
43689hardcode_minus_L=$hardcode_minus_L
43690
43691# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43692# into the resulting binary.
43693hardcode_shlibpath_var=$hardcode_shlibpath_var
43694
43695# Set to "yes" if building a shared library automatically hardcodes DIR
43696# into the library and all subsequent libraries and executables linked
43697# against it.
43698hardcode_automatic=$hardcode_automatic
43699
43700# Set to yes if linker adds runtime paths of dependent libraries
43701# to runtime path list.
43702inherit_rpath=$inherit_rpath
43703
43704# Whether libtool must link a program against all its dependency libraries.
43705link_all_deplibs=$link_all_deplibs
43706
43707# Set to "yes" if exported symbols are required.
43708always_export_symbols=$always_export_symbols
43709
43710# The commands to list exported symbols.
43711export_symbols_cmds=$lt_export_symbols_cmds
43712
43713# Symbols that should not be listed in the preloaded symbols.
43714exclude_expsyms=$lt_exclude_expsyms
43715
43716# Symbols that must always be exported.
43717include_expsyms=$lt_include_expsyms
43718
43719# Commands necessary for linking programs (against libraries) with templates.
43720prelink_cmds=$lt_prelink_cmds
43721
43722# Commands necessary for finishing linking programs.
43723postlink_cmds=$lt_postlink_cmds
43724
43725# Specify filename containing input files.
43726file_list_spec=$lt_file_list_spec
43727
43728# How to hardcode a shared library path into an executable.
43729hardcode_action=$hardcode_action
43730
43731# ### END LIBTOOL CONFIG
43732
43733_LT_EOF
43734
43735 cat <<'_LT_EOF' >> "$cfgfile"
43736
43737# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43738
43739# func_munge_path_list VARIABLE PATH
43740# -----------------------------------
43741# VARIABLE is name of variable containing _space_ separated list of
43742# directories to be munged by the contents of PATH, which is string
43743# having a format:
43744# "DIR[:DIR]:"
43745# string "DIR[ DIR]" will be prepended to VARIABLE
43746# ":DIR[:DIR]"
43747# string "DIR[ DIR]" will be appended to VARIABLE
43748# "DIRP[:DIRP]::[DIRA:]DIRA"
43749# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43750# "DIRA[ DIRA]" will be appended to VARIABLE
43751# "DIR[:DIR]"
43752# VARIABLE will be replaced by "DIR[ DIR]"
43753func_munge_path_list ()
43754{
43755 case x$2 in
43756 x)
43757 ;;
43758 *:)
43759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43760 ;;
43761 x:*)
43762 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43763 ;;
43764 *::*)
43765 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43766 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43767 ;;
43768 *)
43769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43770 ;;
43771 esac
43772}
43773
43774
43775# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43776func_cc_basename ()
43777{
43778 for cc_temp in $*""; do
43779 case $cc_temp in
43780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43782 \-*) ;;
43783 *) break;;
43784 esac
43785 done
43786 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43787}
43788
43789
43790# ### END FUNCTIONS SHARED WITH CONFIGURE
43791
43792_LT_EOF
43793
43794 case $host_os in
43795 aix3*)
43796 cat <<\_LT_EOF >> "$cfgfile"
43797# AIX sometimes has problems with the GCC collect2 program. For some
43798# reason, if we set the COLLECT_NAMES environment variable, the problems
43799# vanish in a puff of smoke.
43800if test set != "${COLLECT_NAMES+set}"; then
43801 COLLECT_NAMES=
43802 export COLLECT_NAMES
43803fi
43804_LT_EOF
43805 ;;
43806 esac
43807
43808
43809ltmain=$ac_aux_dir/ltmain.sh
43810
43811
43812 # We use sed instead of cat because bash on DJGPP gets confused if
43813 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43814 # text mode, it properly converts lines to CR/LF. This bash problem
43815 # is reportedly fixed, but why not run on old versions too?
43816 sed '$q' "$ltmain" >> "$cfgfile" \
43817 || (rm -f "$cfgfile"; exit 1)
43818
43819 mv -f "$cfgfile" "$ofile" ||
43820 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43821 chmod +x "$ofile"
43822
43823 ;;
43824
43825 esac
43826done # for ac_tag
43827
43828
43829as_fn_exit 0
43830_ACEOF
43831ac_clean_files=$ac_clean_files_save
43832
43833test $ac_write_fail = 0 ||
43834 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43835
43836
43837# configure is writing to config.log, and then calls config.status.
43838# config.status does its own redirection, appending to config.log.
43839# Unfortunately, on DOS this fails, as config.log is still kept open
43840# by configure, so config.status won't be able to write to it; its
43841# output is simply discarded. So we exec the FD to /dev/null,
43842# effectively closing config.log, so it can be properly (re)opened and
43843# appended to by config.status. When coming back to configure, we
43844# need to make the FD available again.
43845if test "$no_create" != yes; then
43846 ac_cs_success=:
43847 ac_config_status_args=
43848 test "$silent" = yes &&
43849 ac_config_status_args="$ac_config_status_args --quiet"
43850 exec 5>/dev/null
43851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43852 exec 5>>config.log
43853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43854 # would make configure fail if this is the last instruction.
43855 $ac_cs_success || as_fn_exit 1
43856fi
43857
43858#
43859# CONFIG_SUBDIRS section.
43860#
43861if test "$no_recursion" != yes; then
43862
43863 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43864 # so they do not pile up.
43865 ac_sub_configure_args=
43866 ac_prev=
43867 eval "set x $ac_configure_args"
43868 shift
43869 for ac_arg
43870 do
43871 if test -n "$ac_prev"; then
43872 ac_prev=
43873 continue
43874 fi
43875 case $ac_arg in
43876 -cache-file | --cache-file | --cache-fil | --cache-fi \
43877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43878 ac_prev=cache_file ;;
43879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43881 | --c=*)
43882 ;;
43883 --config-cache | -C)
43884 ;;
43885 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43886 ac_prev=srcdir ;;
43887 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43888 ;;
43889 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43890 ac_prev=prefix ;;
43891 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43892 ;;
43893 --disable-option-checking)
43894 ;;
43895 *)
43896 case $ac_arg in
43897 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43898 esac
43899 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43900 esac
43901 done
43902
43903 # Always prepend --prefix to ensure using the same prefix
43904 # in subdir configurations.
43905 ac_arg="--prefix=$prefix"
43906 case $ac_arg in
43907 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43908 esac
43909 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43910
43911 # Pass --silent
43912 if test "$silent" = yes; then
43913 ac_sub_configure_args="--silent $ac_sub_configure_args"
43914 fi
43915
43916 # Always prepend --disable-option-checking to silence warnings, since
43917 # different subdirs can have different --enable and --with options.
43918 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43919
43920 ac_popdir=`pwd`
43921 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43922
43923 # Do not complain, so a configure script can configure whichever
43924 # parts of a large source tree are present.
43925 test -d "$srcdir/$ac_dir" || continue
43926
43927 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43928 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43929 $as_echo "$ac_msg" >&6
43930 as_dir="$ac_dir"; as_fn_mkdir_p
43931 ac_builddir=.
43932
43933case "$ac_dir" in
43934.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43935*)
43936 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43937 # A ".." for each directory in $ac_dir_suffix.
43938 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43939 case $ac_top_builddir_sub in
43940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43942 esac ;;
43943esac
43944ac_abs_top_builddir=$ac_pwd
43945ac_abs_builddir=$ac_pwd$ac_dir_suffix
43946# for backward compatibility:
43947ac_top_builddir=$ac_top_build_prefix
43948
43949case $srcdir in
43950 .) # We are building in place.
43951 ac_srcdir=.
43952 ac_top_srcdir=$ac_top_builddir_sub
43953 ac_abs_top_srcdir=$ac_pwd ;;
43954 [\\/]* | ?:[\\/]* ) # Absolute name.
43955 ac_srcdir=$srcdir$ac_dir_suffix;
43956 ac_top_srcdir=$srcdir
43957 ac_abs_top_srcdir=$srcdir ;;
43958 *) # Relative name.
43959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43960 ac_top_srcdir=$ac_top_build_prefix$srcdir
43961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43962esac
43963ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43964
43965
43966 cd "$ac_dir"
43967
43968 # Check for guested configure; otherwise get Cygnus style configure.
43969 if test -f "$ac_srcdir/configure.gnu"; then
43970 ac_sub_configure=$ac_srcdir/configure.gnu
43971 elif test -f "$ac_srcdir/configure"; then
43972 ac_sub_configure=$ac_srcdir/configure
43973 elif test -f "$ac_srcdir/configure.in"; then
43974 # This should be Cygnus configure.
43975 ac_sub_configure=$ac_aux_dir/configure
43976 else
43977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43978$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43979 ac_sub_configure=
43980 fi
43981
43982 # The recursion is here.
43983 if test -n "$ac_sub_configure"; then
43984 # Make the cache file name correct relative to the subdirectory.
43985 case $cache_file in
43986 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43987 *) # Relative name.
43988 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43989 esac
43990
43991 { $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
43992$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43993 # The eval makes quoting arguments work.
43994 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43995 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43996 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43997 fi
43998
43999 cd "$ac_popdir"
44000 done
44001fi
44002if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44004$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44005fi
44006
44007
44008
44009 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44010 if test -z "$tmp_cpp"; then
44011 tmp_cpp='cpp'
44012 fi
44013 cat >./tests/configurehelp.pm <<_EOF
44014# This is a generated file. Do not edit.
44015
44016package configurehelp;
44017
44018use strict;
44019use warnings;
44020use Exporter;
44021
44022use vars qw(
44023 @ISA
44024 @EXPORT_OK
44025 \$Cpreprocessor
44026 );
44027
44028@ISA = qw(Exporter);
44029
44030@EXPORT_OK = qw(
44031 \$Cpreprocessor
44032 );
44033
44034\$Cpreprocessor = '$tmp_cpp';
44035
440361;
44037_EOF
44038
44039
44040
44041## ---------------------------------- ##
44042## Start of distclean amending code ##
44043## ---------------------------------- ##
44044
44045for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44046do
44047
44048if test ! -f "$xc_subdir/Makefile"; then
44049 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44050 exit 1
44051fi
44052
44053# Fetch dependency tracking file list from Makefile include lines.
44054
44055xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44056xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44057
44058# --disable-dependency-tracking might have been used, consequently
44059# there is nothing to amend without a dependency tracking file list.
44060
44061if test $xc_cnt_words -gt 0; then
44062
44063{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44064$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44065
44066# Build Makefile specific patch hunk.
44067
44068xc_p="$xc_subdir/xc_patch.tmp"
44069
44070xc_rm_depfiles=`echo "$xc_inc_lines" \
44071 | $SED 's%include% -rm -f%' 2>/dev/null`
44072
44073xc_dep_subdirs=`echo "$xc_inc_lines" \
44074 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44075 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44076 | sort | uniq`
44077
44078echo "$xc_rm_depfiles" >$xc_p
44079
44080for xc_dep_dir in $xc_dep_subdirs; do
44081 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44082 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44083 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44084 echo "${xc_tab}fi" >>$xc_p
44085done
44086
44087# Build Makefile patching sed scripts.
44088
44089xc_s1="$xc_subdir/xc_script_1.tmp"
44090xc_s2="$xc_subdir/xc_script_2.tmp"
44091xc_s3="$xc_subdir/xc_script_3.tmp"
44092
44093cat >$xc_s1 <<\_EOT
44094/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44095 s/^.*(DEPDIR)/___xc_depdir_line___/
44096}
44097/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44098 s/^.*(DEPDIR)/___xc_depdir_line___/
44099}
44100_EOT
44101
44102cat >$xc_s2 <<\_EOT
44103/___xc_depdir_line___$/{
44104 N
44105 /___xc_depdir_line___$/D
44106}
44107_EOT
44108
44109cat >$xc_s3 <<_EOT
44110/^___xc_depdir_line___/{
44111 r $xc_p
44112 d
44113}
44114_EOT
44115
44116# Apply patch to Makefile and cleanup.
44117
44118$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44119$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44120$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44121
44122if test -f "$xc_subdir/Makefile.tmp3"; then
44123 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44124fi
44125
44126test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44127test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44128test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44129
44130test -f "$xc_p" && rm -f "$xc_p"
44131test -f "$xc_s1" && rm -f "$xc_s1"
44132test -f "$xc_s2" && rm -f "$xc_s2"
44133test -f "$xc_s3" && rm -f "$xc_s3"
44134
44135fi
44136
44137done
44138
44139## -------------------------------- ##
44140## End of distclean amending code ##
44141## -------------------------------- ##
44142
44143
44144
44145{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44146
44147 curl version: ${CURLVERSION}
44148 Host setup: ${host}
44149 Install prefix: ${prefix}
44150 Compiler: ${CC}
44151 SSL support: ${curl_ssl_msg}
44152 SSH support: ${curl_ssh_msg}
44153 zlib support: ${curl_zlib_msg}
44154 GSS-API support: ${curl_gss_msg}
44155 TLS-SRP support: ${curl_tls_srp_msg}
44156 resolver: ${curl_res_msg}
44157 IPv6 support: ${curl_ipv6_msg}
44158 Unix sockets support: ${curl_unix_sockets_msg}
44159 IDN support: ${curl_idn_msg}
44160 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44161 Built-in manual: ${curl_manual_msg}
44162 --libcurl option: ${curl_libcurl_msg}
44163 Verbose errors: ${curl_verbose_msg}
44164 SSPI support: ${curl_sspi_msg}
44165 ca cert bundle: ${ca}${ca_warning}
44166 ca cert path: ${capath}${capath_warning}
44167 ca fallback: ${with_ca_fallback}
44168 LDAP support: ${curl_ldap_msg}
44169 LDAPS support: ${curl_ldaps_msg}
44170 RTSP support: ${curl_rtsp_msg}
44171 RTMP support: ${curl_rtmp_msg}
44172 metalink support: ${curl_mtlnk_msg}
44173 PSL support: ${curl_psl_msg}
44174 HTTP2 support: ${curl_h2_msg}
44175 Protocols: ${SUPPORT_PROTOCOLS}
44176" >&5
44177$as_echo "$as_me: Configured to build curl/libcurl:
44178
44179 curl version: ${CURLVERSION}
44180 Host setup: ${host}
44181 Install prefix: ${prefix}
44182 Compiler: ${CC}
44183 SSL support: ${curl_ssl_msg}
44184 SSH support: ${curl_ssh_msg}
44185 zlib support: ${curl_zlib_msg}
44186 GSS-API support: ${curl_gss_msg}
44187 TLS-SRP support: ${curl_tls_srp_msg}
44188 resolver: ${curl_res_msg}
44189 IPv6 support: ${curl_ipv6_msg}
44190 Unix sockets support: ${curl_unix_sockets_msg}
44191 IDN support: ${curl_idn_msg}
44192 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44193 Built-in manual: ${curl_manual_msg}
44194 --libcurl option: ${curl_libcurl_msg}
44195 Verbose errors: ${curl_verbose_msg}
44196 SSPI support: ${curl_sspi_msg}
44197 ca cert bundle: ${ca}${ca_warning}
44198 ca cert path: ${capath}${capath_warning}
44199 ca fallback: ${with_ca_fallback}
44200 LDAP support: ${curl_ldap_msg}
44201 LDAPS support: ${curl_ldaps_msg}
44202 RTSP support: ${curl_rtsp_msg}
44203 RTMP support: ${curl_rtmp_msg}
44204 metalink support: ${curl_mtlnk_msg}
44205 PSL support: ${curl_psl_msg}
44206 HTTP2 support: ${curl_h2_msg}
44207 Protocols: ${SUPPORT_PROTOCOLS}
44208" >&6;}
44209
44210if test "x$soname_bump" = "xyes"; then
44211
44212cat <<EOM
44213 SONAME bump: yes - WARNING: this library will be built with the SONAME
44214 number bumped due to (a detected) ABI breakage.
44215 See lib/README.curl_off_t for details on this.
44216EOM
44217
44218fi
44219